16 lines
3.4 MiB
16 lines
3.4 MiB
!function(e){function n(n){for(var t,a,i=n[0],o=n[1],s=0,c=[];s<i.length;s++)a=i[s],r[a]&&c.push(r[a][0]),r[a]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);for(l&&l(n);c.length;)c.shift()()}var t={},r={4:0,6:0};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var n=[],t=r[e];if(0!==t)if(t)n.push(t[2]);else{var i=new Promise(function(n,a){t=r[e]=[n,a]});n.push(t[2]=i);var o=document.getElementsByTagName("head")[0],s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+""+({}[e]||e)+".bundle.js"}(e);var l=setTimeout(function(){c({type:"timeout",target:s})},12e4);function c(n){s.onerror=s.onload=null,clearTimeout(l);var t=r[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src,o=new Error("Loading chunk "+e+" failed.\n("+a+": "+i+")");o.type=a,o.request=i,t[1](o)}r[e]=void 0}}s.onerror=s.onload=c,o.appendChild(s)}return Promise.all(n)},a.m=e,a.c=t,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},a.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="monaco-editor/",a.oe=function(e){throw console.error(e),e};var i=self.webpackJsonp=self.webpackJsonp||[],o=i.push.bind(i);i.push=n,i=i.slice();for(var s=0;s<i.length;s++)n(i[s]);var l=o;a(a.s=37)}([function(e,n,t){"use strict";(function(e,r){var a;t.d(n,"a",function(){return i}),t.d(n,"b",function(){return o}),function(){var n=Object.create(null);n["WinJS/Core/_WinJS"]={};var t=function(e,t,r){var a={},i=!1,o=t.map(function(e){return"exports"===e?(i=!0,a):n[e]}),s=r.apply({},o);n[e]=i?a:s};t("WinJS/Core/_Global",[],function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==e?e:{}}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){var n=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(t){null===n&&(n=e.setImmediate?e.setImmediate.bind(e):void 0!==r&&"function"==typeof r.nextTick?r.nextTick.bind(r):e.setTimeout.bind(e)),n(t)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){return e.msWriteProfilerMark||function(){}}),t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,n,t,r){function a(e,n,t){var r,a,i,o=Object.keys(n),s=Array.isArray(e);for(a=0,i=o.length;a<i;a++){var l=o[a],c=95!==l.charCodeAt(0),u=n[l];!u||"object"!=typeof u||void 0===u.value&&"function"!=typeof u.get&&"function"!=typeof u.set?c?s?e.forEach(function(e){e[l]=u}):e[l]=u:(r=r||{})[l]={value:u,enumerable:c,configurable:!0,writable:!0}:(void 0===u.enumerable&&(u.enumerable=c),t&&u.setName&&"function"==typeof u.setName&&u.setName(t+"."+l),(r=r||{})[l]=u)}r&&(s?e.forEach(function(e){Object.defineProperties(e,r)}):Object.defineProperties(e,r))}return function(){var t=e;function i(t,r){var a=t||{};if(r){var i=r.split(".");a===n&&"WinJS"===i[0]&&(a=e,i.splice(0,1));for(var o=0,s=i.length;o<s;o++){var l=i[o];a[l]||Object.defineProperty(a,l,{value:{},writable:!1,enumerable:!0,configurable:!0}),a=a[l]}}return a}function o(e,n,t){var r=i(e,n);return t&&a(r,t,n||"<ANONYMOUS>"),r}t.Namespace||(t.Namespace=Object.create(Object.prototype));var s={uninitialized:1,working:2,initialized:3};Object.defineProperties(t.Namespace,{defineWithParent:{value:o,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,t){return o(n,e,t)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var n,t,a=s.uninitialized;return{setName:function(e){n=e},get:function(){switch(a){case s.initialized:return t;case s.uninitialized:a=s.working;try{r("WinJS.Namespace._lazy:"+n+",StartTM"),t=e()}finally{r("WinJS.Namespace._lazy:"+n+",StopTM"),a=s.uninitialized}return e=null,a=s.initialized,t;case s.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(a){case s.working:throw"Illegal: reentrancy on initialization";default:a=s.initialized,t=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,t,r){var o=[e],s=null;return t&&(s=i(n,t),o.push(s)),a(o,r,t||"<ANONYMOUS>"),s},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function n(e,n,r){return e=e||function(){},t.markSupportedForProcessing(e),n&&a(e.prototype,n),r&&a(e,r),e}e.Namespace.define("WinJS.Class",{define:n,derive:function(e,r,i,o){if(e){r=r||function(){};var s=e.prototype;return r.prototype=Object.create(s),t.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),i&&a(r.prototype,i),o&&a(r,o),r}return n(r,i,o)},mix:function(e){var n,t;for(e=e||function(){},n=1,t=arguments.length;n<t;n++)a(e.prototype,arguments[n]);return e}})}(),{Namespace:e.Namespace,Class:e.Class}}),t("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function(e){var n=e.Class.derive(Error,function(e,n){this.name=e,this.message=n||e},{},{supportedForProcessing:!1});return e.Namespace.define("WinJS",{ErrorFromName:n}),n}),t("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function(e,n){function t(e){var n="_on"+e+"state";return{get:function(){var e=this[n];return e&&e.userHandler},set:function(t){var r=this[n];t?(r||(r={wrapper:function(e){return r.userHandler(e)},userHandler:t},Object.defineProperty(this,n,{value:r,enumerable:!1,writable:!0,configurable:!0}),this.addEventListener(e,r.wrapper,!1)),r.userHandler=t):r&&(this.removeEventListener(e,r.wrapper,!1),this[n]=null)},enumerable:!0}}var r=n.Class.define(function(e,n,t){this.detail=n,this.target=t,this.timeStamp=Date.now(),this.type=e},{bubbles:{value:!1,writable:!1},cancelable:{value:!1,writable:!1},currentTarget:{get:function(){return this.target}},defaultPrevented:{get:function(){return this._preventDefaultCalled}},trusted:{value:!1,writable:!1},eventPhase:{value:0,writable:!1},target:null,timeStamp:null,type:null,preventDefault:function(){this._preventDefaultCalled=!0},stopImmediatePropagation:function(){this._stopImmediatePropagationCalled=!0},stopPropagation:function(){}},{supportedForProcessing:!1}),a={_listeners:null,addEventListener:function(e,n,t){t=t||!1,this._listeners=this._listeners||{};for(var r=this._listeners[e]=this._listeners[e]||[],a=0,i=r.length;a<i;a++){var o=r[a];if(o.useCapture===t&&o.listener===n)return}r.push({listener:n,useCapture:t})},dispatchEvent:function(e,n){var t=this._listeners&&this._listeners[e];if(t){for(var a=new r(e,n,this),i=0,o=(t=t.slice(0,t.length)).length;i<o&&!a._stopImmediatePropagationCalled;i++)t[i].listener(a);return a.defaultPrevented||!1}return!1},removeEventListener:function(e,n,t){t=t||!1;var r=this._listeners&&this._listeners[e];if(r)for(var a=0,i=r.length;a<i;a++){var o=r[a];if(o.listener===n&&o.useCapture===t){r.splice(a,1),0===r.length&&delete this._listeners[e];break}}}};n.Namespace._moduleDefine(e,"WinJS.Utilities",{_createEventProperty:t,createEventProperties:function(){for(var e={},n=0,r=arguments.length;n<r;n++){var a=arguments[n];e["on"+a]=t(a)}return e},eventMixin:a})}),t("WinJS/Core/_Trace",["WinJS/Core/_Global"],function(e){function n(e){return e}return{_traceAsyncOperationStarting:e.Debug&&e.Debug.msTraceAsyncOperationStarting&&e.Debug.msTraceAsyncOperationStarting.bind(e.Debug)||n,_traceAsyncOperationCompleted:e.Debug&&e.Debug.msTraceAsyncOperationCompleted&&e.Debug.msTraceAsyncOperationCompleted.bind(e.Debug)||n,_traceAsyncCallbackStarting:e.Debug&&e.Debug.msTraceAsyncCallbackStarting&&e.Debug.msTraceAsyncCallbackStarting.bind(e.Debug)||n,_traceAsyncCallbackCompleted:e.Debug&&e.Debug.msTraceAsyncCallbackCompleted&&e.Debug.msTraceAsyncCallbackCompleted.bind(e.Debug)||n}}),t("WinJS/Promise/_StateMachine",["WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_Base","WinJS/Core/_ErrorFromName","WinJS/Core/_Events","WinJS/Core/_Trace"],function(e,n,t,r,a,i){e.Debug&&(e.Debug.setNonUserCodeExceptions=!0);var o=new(t.Class.mix(t.Class.define(null,{},{supportedForProcessing:!1}),a.eventMixin));o._listeners={};var s="error",l="Canceled",c=!1,u={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};u.all=u.promise|u.thenPromise|u.errorPromise|u.exceptionPromise|u.completePromise;var d,m,p,f,g,v,_,y,h,b,E=1;function T(){}d={name:"created",enter:function(e){e._setState(m)},cancel:T,done:T,then:T,_completed:T,_error:T,_notify:T,_progress:T,_setCompleteValue:T,_setErrorValue:T},m={name:"working",enter:T,cancel:function(e){e._setState(g)},done:D,then:H,_completed:L,_error:O,_notify:T,_progress:w,_setCompleteValue:G,_setErrorValue:V},p={name:"waiting",enter:function(e){var n=e._value;if(n instanceof B&&n._state!==b&&n._state!==y)P(n,{promise:e});else{var t=function(r){n._errorId?e._chainedError(r,n):(N(e,r,x,n,t),e._error(r))};t.handlesOnError=!0,n.then(e._completed.bind(e),t,e._progress.bind(e))}},cancel:function(e){e._setState(f)},done:D,then:H,_completed:L,_error:O,_notify:T,_progress:w,_setCompleteValue:G,_setErrorValue:V},f={name:"waiting_canceled",enter:function(e){e._setState(v);var n=e._value;n.cancel&&n.cancel()},cancel:T,done:D,then:H,_completed:L,_error:O,_notify:T,_progress:w,_setCompleteValue:G,_setErrorValue:V},g={name:"canceled",enter:function(e){e._setState(v),e._cancelAction()},cancel:T,done:D,then:H,_completed:L,_error:O,_notify:T,_progress:w,_setCompleteValue:G,_setErrorValue:V},v={name:"canceling",enter:function(e){var n=new Error(l);n.name=n.message,e._value=n,e._setState(h)},cancel:T,done:T,then:T,_completed:T,_error:T,_notify:T,_progress:T,_setCompleteValue:T,_setErrorValue:T},_={name:"complete_notify",enter:function(e){if(e.done=W.prototype.done,e.then=W.prototype.then,e._listeners)for(var n,t=[e];t.length;)(n=t.shift())._state._notify(n,t);e._setState(y)},cancel:T,done:null,then:null,_completed:T,_error:T,_notify:R,_progress:T,_setCompleteValue:T,_setErrorValue:T},y={name:"success",enter:function(e){e.done=W.prototype.done,e.then=W.prototype.then,e._cleanupAction()},cancel:T,done:null,then:null,_completed:T,_error:T,_notify:R,_progress:T,_setCompleteValue:T,_setErrorValue:T},h={name:"error_notify",enter:function(e){if(e.done=U.prototype.done,e.then=U.prototype.then,e._listeners)for(var n,t=[e];t.length;)(n=t.shift())._state._notify(n,t);e._setState(b)},cancel:T,done:null,then:null,_completed:T,_error:T,_notify:I,_progress:T,_setCompleteValue:T,_setErrorValue:T},b={name:"error",enter:function(e){e.done=U.prototype.done,e.then=U.prototype.then,e._cleanupAction()},cancel:T,done:null,then:null,_completed:T,_error:T,_notify:I,_progress:T,_setCompleteValue:T,_setErrorValue:T};var S=t.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this),this._run()},done:function(e,n,t){this._state.done(this,e,n,t)},then:function(e,n,t){return this._state.then(this,e,n,t)},_chainedError:function(e,n){var t=this._state._error(this,e,C,n);return this._run(),t},_completed:function(e){var n=this._state._completed(this,e);return this._run(),n},_error:function(e){var n=this._state._error(this,e,k);return this._run(),n},_progress:function(e){this._state._progress(this,e)},_setState:function(e){this._nextState=e},_setCompleteValue:function(e){this._state._setCompleteValue(this,e),this._run()},_setChainedErrorValue:function(e,n){var t=this._state._setErrorValue(this,e,C,n);return this._run(),t},_setExceptionValue:function(e){var n=this._state._setErrorValue(this,e,M);return this._run(),n},_run:function(){for(;this._nextState;)this._state=this._nextState,this._nextState=null,this._state.enter(this)}},{supportedForProcessing:!1});function L(e,n){var t;t=n&&"object"==typeof n&&"function"==typeof n.then?p:_,e._value=n,e._setState(t)}function A(e,n,t,r,a,i){return{exception:e,error:n,promise:t,handler:i,id:r,parent:a}}function x(e,n,t,r){var a=t._isException,i=t._errorId;return A(a?n:null,a?null:n,e,i,t,r)}function C(e,n,t){var r=t._isException,a=t._errorId;return F(e,a,r),A(r?n:null,r?null:n,e,a,t)}function k(e,n){var t=++E;return F(e,t),A(null,n,e,t)}function M(e,n){var t=++E;return F(e,t,!0),A(n,null,e,t)}function D(e,n,t,r){P(e,{c:n,e:t,p:r,asyncOpID:i._traceAsyncOperationStarting("WinJS.Promise.done")})}function O(e,n,t,r){e._value=n,N(e,n,t,r),e._setState(h)}function R(n,t){var r,a,o=n._value,s=n._listeners;if(s)for(n._listeners=null,r=0,a=Array.isArray(s)?s.length:1;r<a;r++){var l=1===a?s:s[r],c=l.c,u=l.promise;if(i._traceAsyncOperationCompleted(l.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),u){i._traceAsyncCallbackStarting(l.asyncOpID);try{u._setCompleteValue(c?c(o):o)}catch(e){u._setExceptionValue(e)}finally{i._traceAsyncCallbackCompleted()}u._state!==p&&u._listeners&&t.push(u)}else W.prototype.done.call(n,c)}}function I(n,t){var r,a,o=n._value,s=n._listeners;if(s)for(n._listeners=null,r=0,a=Array.isArray(s)?s.length:1;r<a;r++){var c=1===a?s:s[r],u=c.e,d=c.promise,m=e.Debug&&(o&&o.name===l?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR);if(i._traceAsyncOperationCompleted(c.asyncOpID,m),d){var f=!1;try{u?(i._traceAsyncCallbackStarting(c.asyncOpID),f=!0,u.handlesOnError||N(d,o,x,n,u),d._setCompleteValue(u(o))):d._setChainedErrorValue(o,n)}catch(e){d._setExceptionValue(e)}finally{f&&i._traceAsyncCallbackCompleted()}d._state!==p&&d._listeners&&t.push(d)}else U.prototype.done.call(n,null,u)}}function N(e,n,t,r,a){if(o._listeners[s]){if(n instanceof Error&&n.message===l)return;o.dispatchEvent(s,t(e,n,r,a))}}function w(e,n){var t,r,a=e._listeners;if(a)for(t=0,r=Array.isArray(a)?a.length:1;t<r;t++){var i=1===r?a:a[t],o=i.p;if(o)try{o(n)}catch(e){}i.c||i.e||!i.promise||i.promise._progress(n)}}function P(e,n){var t=e._listeners;t?(t=Array.isArray(t)?t:[t]).push(n):t=n,e._listeners=t}function F(e,n,t){e._isException=t||!1,e._errorId=n}function V(e,n,t,r){e._value=n,N(e,n,t,r),e._setState(b)}function G(e,n){var t;t=n&&"object"==typeof n&&"function"==typeof n.then?p:y,e._value=n,e._setState(t)}function H(e,n,t,r){var a=new B(e);return P(e,{promise:a,c:n,e:t,p:r,asyncOpID:i._traceAsyncOperationStarting("WinJS.Promise.then")}),a}var K,B=t.Class.derive(S,function(e){c&&(!0===c||c&u.thenPromise)&&(this._stack=q._getStack()),this._creator=e,this._setState(d),this._run()},{_creator:null,_cancelAction:function(){this._creator&&this._creator.cancel()},_cleanupAction:function(){this._creator=null}},{supportedForProcessing:!1}),U=t.Class.define(function(e){c&&(!0===c||c&u.errorPromise)&&(this._stack=q._getStack()),this._value=e,N(this,e,k)},{cancel:function(){},done:function(e,n){var t=this._value;if(n)try{n.handlesOnError||N(null,t,x,this,n);var r=n(t);return void(r&&"object"==typeof r&&"function"==typeof r.done&&r.done())}catch(e){t=e}t instanceof Error&&t.message===l||q._doneHandler(t)},then:function(e,n){if(!n)return this;var t,r=this._value;try{n.handlesOnError||N(null,r,x,this,n),t=new W(n(r))}catch(e){t=e===r?this:new j(e)}return t}},{supportedForProcessing:!1}),j=t.Class.derive(U,function(e){c&&(!0===c||c&u.exceptionPromise)&&(this._stack=q._getStack()),this._value=e,N(this,e,M)},{},{supportedForProcessing:!1}),W=t.Class.define(function(e){if(c&&(!0===c||c&u.completePromise)&&(this._stack=q._getStack()),e&&"object"==typeof e&&"function"==typeof e.then){var n=new B(null);return n._setCompleteValue(e),n}this._value=e},{cancel:function(){},done:function(e){if(e)try{var n=e(this._value);n&&"object"==typeof n&&"function"==typeof n.done&&n.done()}catch(e){q._doneHandler(e)}},then:function(e){try{var n=e?e(this._value):this._value;return n===this._value?this:new W(n)}catch(e){return new j(e)}}},{supportedForProcessing:!1});var q=t.Class.derive(S,function(e,n){c&&(!0===c||c&u.promise)&&(this._stack=q._getStack()),this._oncancel=n,this._setState(d),this._run();try{e(this._completed.bind(this),this._error.bind(this),this._progress.bind(this))}catch(e){this._setExceptionValue(e)}},{_oncancel:null,_cancelAction:function(){try{if(!this._oncancel)throw new Error("Promise did not implement oncancel");this._oncancel()}catch(e){e.message,e.stack;o.dispatchEvent("error",e)}},_cleanupAction:function(){this._oncancel=null}},{addEventListener:function(e,n,t){o.addEventListener(e,n,t)},any:function(e){return new q(function(n,t){var r=Object.keys(e);0===r.length&&n();var a=0;r.forEach(function(i){q.as(e[i]).then(function(){n({key:i,value:e[i]})},function(o){o instanceof Error&&o.name===l?++a===r.length&&n(q.cancel):t({key:i,value:e[i]})})})},function(){Object.keys(e).forEach(function(n){var t=q.as(e[n]);"function"==typeof t.cancel&&t.cancel()})})},as:function(e){return e&&"object"==typeof e&&"function"==typeof e.then?e:new W(e)},cancel:{get:function(){return K=K||new U(new r(l))}},dispatchEvent:function(e,n){return o.dispatchEvent(e,n)},is:function(e){return e&&"object"==typeof e&&"function"==typeof e.then},join:function(e){return new q(function(n,t,r){var a=Object.keys(e),i=Array.isArray(e)?[]:{},o=Array.isArray(e)?[]:{},s=0,c=a.length,u=function(e){if(0==--c){var s=Object.keys(i).length;if(0===s)n(o);else{var u=0;a.forEach(function(e){var n=i[e];n instanceof Error&&n.name===l&&u++}),u===s?n(q.cancel):t(i)}}else r({Key:e,Done:!0})};a.forEach(function(n){var t=e[n];void 0===t?s++:q.then(t,function(e){o[n]=e,u(n)},function(e){i[n]=e,u(n)})}),0!==(c-=s)||n(o)},function(){Object.keys(e).forEach(function(n){var t=q.as(e[n]);"function"==typeof t.cancel&&t.cancel()})})},removeEventListener:function(e,n,t){o.removeEventListener(e,n,t)},supportedForProcessing:!1,then:function(e,n,t,r){return q.as(e).then(n,t,r)},thenEach:function(e,n,t,r){var a=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(i){a[i]=q.as(e[i]).then(n,t,r)}),q.join(a)},timeout:function(t,r){var a,i,o=(a=t,new q(function(t){a?i=e.setTimeout(t,a):n._setImmediate(t)},function(){i&&e.clearTimeout(i)}));return r?function(e,n){var t=function(){e.cancel()};return e.then(function(){n.cancel()}),n.then(t,t),n}(o,r):o},wrap:function(e){return new W(e)},wrapError:function(e){return new U(e)},_veryExpensiveTagWithStack:{get:function(){return c},set:function(e){c=e}},_veryExpensiveTagWithStack_tag:u,_getStack:function(){if(e.Debug&&e.Debug.debuggerEnabled)try{throw new Error}catch(e){return e.stack}},_cancelBlocker:function(e,n){if(!q.is(e))return q.wrap(e);var t,r,a=new q(function(e,n){t=e,r=n},function(){t=null,r=null,n&&n()});return e.then(function(e){t&&t(e)},function(e){r&&r(e)}),a}});return Object.defineProperties(q,a.createEventProperties(s)),q._doneHandler=function(e){n._setImmediate(function(){throw e})},{PromiseStateMachine:S,Promise:q,state_created:d}}),t("WinJS/Promise",["WinJS/Core/_Base","WinJS/Promise/_StateMachine"],function(e,n){return e.Namespace.define("WinJS",{Promise:n.Promise}),n.Promise}),(a=n["WinJS/Core/_WinJS"]).TPromise=a.Promise,a.PPromise=a.Promise}();var i=a.Promise,o=a.TPromise;a.PPromise}).call(this,t(28),t(25))},function(e,n,t){"use strict";t.d(n,"b",function(){return r}),t.d(n,"a",function(){return l}),t.d(n,"d",function(){return c}),t.d(n,"k",function(){return u}),t.d(n,"f",function(){return d}),t.d(n,"h",function(){return m}),t.d(n,"c",function(){return p}),t.d(n,"j",function(){return f}),t.d(n,"i",function(){return g}),t.d(n,"g",function(){return _}),t.d(n,"e",function(){return y});var r,a=t(3),i=(t(0),t(22)),o=t(7),s=t(27);!function(e){var n={dispose:function(){}};e.None=function(){return n}}(r||(r={}));var l=function(){function e(e){this._options=e}return Object.defineProperty(e.prototype,"event",{get:function(){var n=this;return this._event||(this._event=function(t,r,a){n._listeners||(n._listeners=new s.a);var i=n._listeners.isEmpty();i&&n._options&&n._options.onFirstListenerAdd&&n._options.onFirstListenerAdd(n);var o,l=n._listeners.push(r?[t,r]:t);return i&&n._options&&n._options.onFirstListenerDidAdd&&n._options.onFirstListenerDidAdd(n),n._options&&n._options.onListenerDidAdd&&n._options.onListenerDidAdd(n,t,r),o={dispose:function(){o.dispose=e._noop,n._disposed||(l(),n._options&&n._options.onLastListenerRemove&&n._listeners.isEmpty()&&n._options.onLastListenerRemove(n))}},Array.isArray(a)&&a.push(o),o}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var n=this._listeners.iterator(),t=n.next();!t.done;t=n.next())this._deliveryQueue.push([t.value,e]);for(;this._deliveryQueue.length>0;){var r=this._deliveryQueue.shift(),a=r[0],i=r[1];try{"function"==typeof a?a.call(void 0,i):a[0].call(a[1],i)}catch(t){Object(o.e)(t)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}(),c=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new l({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var n=this,t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return Object(a.g)(Object(i.a)(function(){n.hasListeners&&n.unhook(t);var e=n.events.indexOf(t);n.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(n){return e.hook(n)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(n){return e.unhook(n)})},e.prototype.hook=function(e){var n=this;e.listener=e.event(function(e){return n.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();function u(e){return function(n,t,r){void 0===t&&(t=null);var a=e(function(e){return a.dispose(),n.call(t,e)},null,r);return a}}function d(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(n,t,r){return void 0===t&&(t=null),Object(a.c)(e.map(function(e){return e(function(e){return n.call(t,e)},null,r)}))}}function m(e,n,t,r){var a;void 0===t&&(t=100),void 0===r&&(r=!1);var i=void 0,o=void 0,s=0,c=new l({onFirstListenerAdd:function(){a=e(function(e){s++,i=n(i,e),r&&!o&&c.fire(i),clearTimeout(o),o=setTimeout(function(){var e=i;i=void 0,o=void 0,(!r||s>1)&&c.fire(e),s=0},t)})},onLastListenerRemove:function(){a.dispose()}});return c.event}var p=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var n=this;return function(t,r,a){return e(function(e){var a=n.buffers[n.buffers.length-1];a?a.push(function(){return t.call(r,e)}):t.call(r,e)},void 0,a)}},e.prototype.bufferEvents=function(e){var n=[];this.buffers.push(n),e(),this.buffers.pop(),n.forEach(function(e){return e()})},e}();function f(e,n){return function(t,r,a){return void 0===r&&(r=null),e(function(e){return t.call(r,n(e))},null,a)}}function g(e,n){return function(t,r,a){return void 0===r&&(r=null),e(function(e){return n(e)&&t.call(r,e)},null,a)}}var v=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(n){return new e(f(this._event,n))},e.prototype.forEach=function(n){return new e((t=this._event,r=n,function(e,n,a){return void 0===n&&(n=null),t(function(t){r(t),e.call(n,t)},null,a)}));var t,r},e.prototype.filter=function(n){return new e(g(this._event,n))},e.prototype.latch=function(){return new e((n=this._event,r=!0,g(n,function(e){var n=r||e!==t;return r=!1,t=e,n})));var n,t,r},e.prototype.on=function(e,n,t){return this._event(e,n,t)},e}();function _(e){return new v(e)}var y=function(){function e(){this.emitter=new l,this.event=this.emitter.event,this.disposable=a.e}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}()},function(e,n,t){"use strict";t.d(n,"a",function(){return a});var r=t(5),a=function(){function e(e,n,t,r){e>t||e===t&&n>r?(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=t,this.endColumn=r)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(n){return e.containsPosition(this,n)},e.containsPosition=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))},e.prototype.containsRange=function(n){return e.containsRange(this,n)},e.containsRange=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)))},e.prototype.plusRange=function(n){return e.plusRange(this,n)},e.plusRange=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)},e.prototype.intersectRanges=function(n){return e.intersectRanges(this,n)},e.intersectRanges=function(n,t){var r=n.startLineNumber,a=n.startColumn,i=n.endLineNumber,o=n.endColumn,s=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,u=t.endColumn;return r<s?(r=s,a=l):r===s&&(a=Math.max(a,l)),i>c?(i=c,o=u):i===c&&(o=Math.min(o,u)),r>i?null:r===i&&a>o?null:new e(r,a,i,o)},e.prototype.equalsRange=function(n){return e.equalsRange(this,n)},e.equalsRange=function(e,n){return!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn},e.prototype.getEndPosition=function(){return new r.a(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new r.a(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(n,t){return new e(this.startLineNumber,this.startColumn,n,t)},e.prototype.setStartPosition=function(n,t){return new e(n,t,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(n){return new e(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},e.fromPositions=function(n,t){return void 0===t&&(t=n),new e(n.lineNumber,n.column,t.lineNumber,t.column)},e.lift=function(n){return n?new e(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=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)},e.compareRangesUsingStarts=function(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},e.compareRangesUsingEnds=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},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}()},function(e,n,t){"use strict";t.d(n,"e",function(){return a}),t.d(n,"f",function(){return i}),t.d(n,"d",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"g",function(){return l}),t.d(n,"a",function(){return c}),t.d(n,"b",function(){return u});var r=t(22),a=Object.freeze({dispose:function(){}});function i(e){return"function"==typeof e.dispose&&0===e.dispose.length}function o(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose()}),[]):0===n.length?e?(e.dispose(),e):void 0:(o(e),o(n),[])}function s(e){return{dispose:function(){return o(e)}}}function l(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return{dispose:function(){for(var n=0,t=e;n<t.length;n++){(0,t[n])()}}}}var c=function(){function e(){this._toDispose=[]}return e.prototype.dispose=function(){this._toDispose=o(this._toDispose)},e.prototype._register=function(e){return this._toDispose.push(e),e},e}(),u=(function(){function e(){this.references=Object.create(null)}e.prototype.acquire=function(e){var n=this,t=this.references[e];t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});var a=t.object,i=Object(r.a)(function(){0==--t.counter&&(n.destroyReferencedObject(t.object),delete n.references[e])});return t.counter++,{object:a,dispose:i}}}(),function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}())},function(e,n,t){"use strict";t.r(n),t.d(n,"empty",function(){return a}),t.d(n,"isFalsyOrWhitespace",function(){return i}),t.d(n,"pad",function(){return o}),t.d(n,"format",function(){return l}),t.d(n,"escape",function(){return c}),t.d(n,"escapeRegExpCharacters",function(){return u}),t.d(n,"trim",function(){return d}),t.d(n,"ltrim",function(){return m}),t.d(n,"rtrim",function(){return p}),t.d(n,"convertSimple2RegExpPattern",function(){return f}),t.d(n,"stripWildcards",function(){return g}),t.d(n,"startsWith",function(){return v}),t.d(n,"endsWith",function(){return _}),t.d(n,"createRegExp",function(){return y}),t.d(n,"regExpLeadsToEndlessLoop",function(){return h}),t.d(n,"regExpContainsBackreference",function(){return b}),t.d(n,"canNormalize",function(){return E}),t.d(n,"normalizeNFC",function(){return S}),t.d(n,"normalizeNFD",function(){return A}),t.d(n,"firstNonWhitespaceIndex",function(){return k}),t.d(n,"getLeadingWhitespace",function(){return M}),t.d(n,"lastNonWhitespaceIndex",function(){return D}),t.d(n,"compare",function(){return O}),t.d(n,"compareIgnoreCase",function(){return R}),t.d(n,"equalsIgnoreCase",function(){return P}),t.d(n,"startsWithIgnoreCase",function(){return V}),t.d(n,"commonPrefixLength",function(){return G}),t.d(n,"commonSuffixLength",function(){return H}),t.d(n,"overlap",function(){return B}),t.d(n,"isHighSurrogate",function(){return U}),t.d(n,"isLowSurrogate",function(){return j}),t.d(n,"containsRTL",function(){return q}),t.d(n,"containsEmoji",function(){return J}),t.d(n,"isBasicASCII",function(){return Y}),t.d(n,"containsFullWidthCharacter",function(){return Q}),t.d(n,"isFullWidthCharacter",function(){return Z}),t.d(n,"lcut",function(){return $}),t.d(n,"removeAnsiEscapeCodes",function(){return re}),t.d(n,"UTF8_BOM_CHARACTER",function(){return ae}),t.d(n,"startsWithUTF8BOM",function(){return ie}),t.d(n,"stripUTF8BOM",function(){return oe}),t.d(n,"safeBtoa",function(){return se}),t.d(n,"repeat",function(){return le}),t.d(n,"fuzzyContains",function(){return ce}),t.d(n,"containsUppercaseCharacter",function(){return ue});var r=t(16),a="";function i(e){return!e||"string"!=typeof e||0===e.trim().length}function o(e,n,t){void 0===t&&(t="0");for(var r=""+e,a=[r],i=r.length;i<n;i++)a.push(t);return a.reverse().join("")}var s=/{(\d+)}/g;function l(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return 0===n.length?e:e.replace(s,function(e,t){var r=parseInt(t,10);return isNaN(r)||r<0||r>=n.length?e:n[r]})}function c(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function u(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function d(e,n){return void 0===n&&(n=" "),p(m(e,n),n)}function m(e,n){if(!e||!n)return e;var t=n.length;if(0===t||0===e.length)return e;for(var r=0;e.indexOf(n,r)===r;)r+=t;return e.substring(r)}function p(e,n){if(!e||!n)return e;var t=n.length,r=e.length;if(0===t||0===r)return e;for(var a=r,i=-1;-1!==(i=e.lastIndexOf(n,a-1))&&i+t===a;){if(0===i)return"";a=i}return e.substring(0,a)}function f(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function g(e){return e.replace(/\*/g,"")}function v(e,n){if(e.length<n.length)return!1;if(e===n)return!0;for(var t=0;t<n.length;t++)if(e[t]!==n[t])return!1;return!0}function _(e,n){var t=e.length-n.length;return t>0?e.indexOf(n,t)===t:0===t&&e===n}function y(e,n,t){if(void 0===t&&(t={}),!e)throw new Error("Cannot create regex from empty string");n||(e=u(e)),t.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var r="";return t.global&&(r+="g"),t.matchCase||(r+="i"),t.multiline&&(r+="m"),new RegExp(e,r)}function h(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&(e.exec("")&&0===e.lastIndex)}function b(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)}var E="function"==typeof"".normalize,T=new r.a(1e4);function S(e){return C(e,"NFC",T)}var L=new r.a(1e4);function A(e){return C(e,"NFD",L)}var x=/[^\u0000-\u0080]/;function C(e,n,t){if(!E||!e)return e;var r,a=t.get(e);return a||(r=x.test(e)?e.normalize(n):e,t.set(e,r),r)}function k(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}function M(e,n,t){void 0===n&&(n=0),void 0===t&&(t=e.length);for(var r=n;r<t;r++){var a=e.charCodeAt(r);if(32!==a&&9!==a)return e.substring(n,r)}return e.substring(n,t)}function D(e,n){void 0===n&&(n=e.length-1);for(var t=n;t>=0;t--){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1}function O(e,n){return e<n?-1:e>n?1:0}function R(e,n){for(var t=Math.min(e.length,n.length),r=0;r<t;r++){var a=e.charCodeAt(r),i=n.charCodeAt(r);if(a!==i){N(a)&&(a+=32),N(i)&&(i+=32);var o=a-i;if(0!==o)return I(a)&&I(i)?o:O(e.toLowerCase(),n.toLowerCase())}}return e.length<n.length?-1:e.length>n.length?1:0}function I(e){return e>=97&&e<=122}function N(e){return e>=65&&e<=90}function w(e){return I(e)||N(e)}function P(e,n){return(e?e.length:0)===(n?n.length:0)&&F(e,n)}function F(e,n,t){if(void 0===t&&(t=e.length),"string"!=typeof e||"string"!=typeof n)return!1;for(var r=0;r<t;r++){var a=e.charCodeAt(r),i=n.charCodeAt(r);if(a!==i)if(w(a)&&w(i)){var o=Math.abs(a-i);if(0!==o&&32!==o)return!1}else if(String.fromCharCode(a).toLowerCase()!==String.fromCharCode(i).toLowerCase())return!1}return!0}function V(e,n){var t=n.length;return!(n.length>e.length)&&F(e,n,t)}function G(e,n){var t,r=Math.min(e.length,n.length);for(t=0;t<r;t++)if(e.charCodeAt(t)!==n.charCodeAt(t))return t;return r}function H(e,n){var t,r=Math.min(e.length,n.length),a=e.length-1,i=n.length-1;for(t=0;t<r;t++)if(e.charCodeAt(a-t)!==n.charCodeAt(i-t))return t;return r}function K(e,n,t,r,a,i){for(;n<t&&a<i;){if(e[n]!==r[a])return!1;n+=1,a+=1}return!0}function B(e,n){var t=e.length,r=n.length,a=t-r;if(0===a)return e===n?t:0;for(a<0&&(r+=a,a=0);a<t&&r>0;){if(K(e,a,t,n,0,r))return r;r-=1,a+=1}return 0}function U(e){return 55296<=e&&e<=56319}function j(e){return 56320<=e&&e<=57343}var W=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function q(e){return W.test(e)}var z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;function J(e){return z.test(e)}var X=/^[\t\n\r\x20-\x7E]*$/;function Y(e){return X.test(e)}function Q(e){for(var n=0,t=e.length;n<t;n++)if(Z(e.charCodeAt(n)))return!0;return!1}function Z(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function $(e,n){if(e.length<n)return e;for(var t=/\b/g,r=0;t.test(e)&&!(e.length-t.lastIndex<n);)r=t.lastIndex,t.lastIndex+=1;return e.substring(r).replace(/^\s/,a)}var ee=/\x1B\x5B[12]?K/g,ne=/\x1b\[\d+m/g,te=/\x1b\[0?m/g;function re(e){return e&&(e=(e=(e=e.replace(ee,"")).replace(ne,"")).replace(te,"")),e}var ae=String.fromCharCode(65279);function ie(e){return e&&e.length>0&&65279===e.charCodeAt(0)}function oe(e){return ie(e)?e.substr(1):e}function se(e){return btoa(encodeURIComponent(e))}function le(e,n){for(var t="",r=0;r<n;r++)t+=e;return t}function ce(e,n){if(!e||!n)return!1;if(e.length<n.length)return!1;for(var t=n.length,r=e.toLowerCase(),a=0,i=-1;a<t;){var o=r.indexOf(n[a],i+1);if(o<0)return!1;i=o,a++}return!0}function ue(e,n){return void 0===n&&(n=!1),!!e&&(n&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}},function(e,n,t){"use strict";t.d(n,"a",function(){return r});var r=function(){function e(e,n){this.lineNumber=e,this.column=n}return e.prototype.equals=function(n){return e.equals(this,n)},e.equals=function(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column},e.prototype.isBefore=function(n){return e.isBefore(this,n)},e.isBefore=function(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<n.column},e.prototype.isBeforeOrEqual=function(n){return e.isBeforeOrEqual(this,n)},e.isBeforeOrEqual=function(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<=n.column},e.compare=function(e,n){var t=0|e.lineNumber,r=0|n.lineNumber;return t===r?(0|e.column)-(0|n.column):t-r},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(n){return new e(n.lineNumber,n.column)},e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},e}()},function(e,n,t){"use strict";(function(e,r){t.d(n,"g",function(){return f}),t.d(n,"d",function(){return g}),t.d(n,"c",function(){return v}),t.d(n,"e",function(){return _}),t.d(n,"f",function(){return y}),t.d(n,"b",function(){return h}),t.d(n,"h",function(){return E}),t.d(n,"a",function(){return T});var a,i=!1,o=!1,s=!1,l=!1,c=!1;if("object"==typeof e&&"function"==typeof e.nextTick&&"string"==typeof e.platform){i="win32"===e.platform,o="darwin"===e.platform,s="linux"===e.platform;var u=e.env.VSCODE_NLS_CONFIG;if(u)try{var d=JSON.parse(u),m=d.availableLanguages["*"];d.locale,m||"en",d._translationsConfigFile}catch(e){}l=!0}else if("object"==typeof navigator){var p=navigator.userAgent;i=p.indexOf("Windows")>=0,o=p.indexOf("Macintosh")>=0,s=p.indexOf("Linux")>=0,c=!0,navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(a||(a={}));a.Web;l&&(o?a.Mac:i?a.Windows:s&&a.Linux);var f=i,g=o,v=s,_=l,y=c;var h="object"==typeof self?self:"object"==typeof r?r:{},b=null;function E(n){return null===b&&(b=h.setImmediate?h.setImmediate.bind(h):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):h.setTimeout.bind(h)),b(n)}var T=o?2:i?1:3}).call(this,t(25),t(28))},function(e,n,t){"use strict";t.d(n,"e",function(){return i}),t.d(n,"f",function(){return o}),t.d(n,"g",function(){return s}),t.d(n,"d",function(){return c}),t.d(n,"a",function(){return u}),t.d(n,"b",function(){return d}),t.d(n,"c",function(){return m});var r={};t(0).b.addEventListener("error",function(e){var n=e.detail,t=n.id;n.parent?n.handler&&r&&delete r[t]:(r[t]=n,1===Object.keys(r).length&&setTimeout(function(){var e=r;r={},Object.keys(e).forEach(function(n){var t=e[n];t.exception?i(t.exception):t.error&&i(t.error),console.log("WARNING: Promise with no error callback:"+t.id),console.log(t),t.exception&&console.log(t.exception.stack)})},0))});var a=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.addListener=function(e){var n=this;return this.listeners.push(e),function(){n._removeListener(e)}},e.prototype.emit=function(e){this.listeners.forEach(function(n){n(e)})},e.prototype._removeListener=function(e){this.listeners.splice(this.listeners.indexOf(e),1)},e.prototype.setUnexpectedErrorHandler=function(e){this.unexpectedErrorHandler=e},e.prototype.getUnexpectedErrorHandler=function(){return this.unexpectedErrorHandler},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}());function i(e){c(e)||a.onUnexpectedError(e)}function o(e){c(e)||a.onUnexpectedExternalError(e)}function s(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var l="Canceled";function c(e){return e instanceof Error&&e.name===l&&e.message===l}function u(){var e=new Error(l);return e.name=e.message,e}function d(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function m(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},function(e,n,t){"use strict";t.d(n,"j",function(){return d}),t.d(n,"g",function(){return m}),t.d(n,"k",function(){return p}),t.d(n,"e",function(){return f}),t.d(n,"a",function(){return g}),t.d(n,"d",function(){return v}),t.d(n,"h",function(){return y}),t.d(n,"i",function(){return b}),t.d(n,"f",function(){return E}),t.d(n,"b",function(){return T}),t.d(n,"c",function(){return S});var r,a=t(7),i=t(0),o=t(20),s=t(3),l=t(1),c=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});function u(e){return e&&"function"==typeof e.then}function d(e){return u(e)?e:i.b.as(e)}function m(e){var n=new o.b;return new i.b(function(t,r,a){var o=e(n.token);o instanceof i.b?o.then(function(e){n.dispose(),t(e)},function(e){n.dispose(),r(e)},a):u(o)?o.then(function(e){n.dispose(),t(e)},function(e){n.dispose(),r(e)}):(n.dispose(),t(o))},function(){n.cancel()})}function p(e,n,t){var r=e.onCancellationRequested(function(){return n.cancel()});return t&&(n=n.then(void 0,function(e){if(!a.d(e))return i.b.wrapError(e)})),_(n,function(){return r.dispose()})}var f=function(){function e(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return e.prototype.queue=function(e){var n=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){var t=function(){n.queuedPromise=null;var e=n.queue(n.queuedPromiseFactory);return n.queuedPromiseFactory=null,e};this.queuedPromise=new i.b(function(e,r,a){n.activePromise.then(t,t,a).done(e)},function(){n.activePromise.cancel()})}return new i.b(function(e,t,r){n.queuedPromise.then(e,t,r)},function(){})}return this.activePromise=e(),new i.b(function(e,t,r){n.activePromise.done(function(t){n.activePromise=null,e(t)},function(e){n.activePromise=null,t(e)},r)},function(){n.activePromise.cancel()})},e}(),g=(function(){function e(){this.current=i.b.wrap(null)}e.prototype.queue=function(e){return this.current=this.current.then(function(){return e()})}}(),function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.onSuccess=null,this.task=null}return e.prototype.trigger=function(e,n){var t=this;return void 0===n&&(n=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new i.b(function(e){t.onSuccess=e},function(){}).then(function(){t.completionPromise=null,t.onSuccess=null;var e=t.task;return t.task=null,e()})),this.timeout=setTimeout(function(){t.timeout=null,t.onSuccess(null)},n),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.completionPromise.cancel(),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e}()),v=(function(e){function n(n){var t=e.call(this,n)||this;return t.throttler=new f,t}c(n,e),n.prototype.trigger=function(n,t){var r=this;return e.prototype.trigger.call(this,function(){return r.throttler.queue(n)},t)}}(g),function(){function e(){var e=this;this._isOpen=!1,this._promise=new i.b(function(n,t,r){e._completePromise=n},function(){console.warn("You should really not try to cancel this ready promise!")})}e.prototype.isOpen=function(){return this._isOpen},e.prototype.open=function(){this._isOpen=!0,this._completePromise(!0)},e.prototype.wait=function(){return this._promise}}(),function(e){function n(n){var t,r,i,o;return t=e.call(this,function(e,n,t){r=e,i=n,o=t},function(){i(a.a())})||this,n.then(r,i,o),t}return c(n,e),n}(i.b));function _(e,n){return t=e,i.b.is(t)&&"function"==typeof t.done?new i.b(function(t,r,i){e.done(function(e){try{n(e)}catch(e){a.e(e)}t(e)},function(e){try{n(e)}catch(e){a.e(e)}r(e)},function(e){i(e)})},function(){e.cancel()}):(e.then(function(e){return n()},function(e){return n()}),e);var t}function y(e){var n=[];return e=e.reverse(),i.b.as(null).then(function t(r){void 0!==r&&null!==r&&n.push(r);var a=e.length?e.pop()():null;return a?a.then(t):i.b.as(n)})}var h=function(e){function n(){return e.call(this,1)||this}return c(n,e),n}(function(){function e(e){this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new l.a}return Object.defineProperty(e.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.runningPromises+this.outstandingPromises.length},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var n=this;return new i.b(function(t,r,a){n.outstandingPromises.push({factory:e,c:t,e:r,p:a}),n.consume()})},e.prototype.consume=function(){for(var e=this;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){var n=this.outstandingPromises.shift();this.runningPromises++;var t=n.factory();t.done(n.c,n.e,n.p),t.done(function(){return e.consumed()},function(){return e.consumed()})}},e.prototype.consumed=function(){this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}());!function(){function e(){this.queues=Object.create(null)}e.prototype.queueFor=function(e){var n=this,t=e.toString();if(!this.queues[t]){var r=new h;r.onFinished(function(){r.dispose(),delete n.queues[t]}),this.queues[t]=r}return this.queues[t]}}();function b(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var a=setTimeout.apply(void 0,[e,n].concat(t));return{dispose:function(){clearTimeout(a)}}}var E=function(e){function n(){var n=e.call(this)||this;return n._token=-1,n}return c(n,e),n.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},n.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},n.prototype.cancelAndSet=function(e,n){var t=this;this.cancel(),this._token=setTimeout(function(){t._token=-1,e()},n)},n.prototype.setIfNotSet=function(e,n){var t=this;-1===this._token&&(this._token=setTimeout(function(){t._token=-1,e()},n))},n}(s.a),T=function(e){function n(){var n=e.call(this)||this;return n._token=-1,n}return c(n,e),n.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},n.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},n.prototype.cancelAndSet=function(e,n){this.cancel(),this._token=setInterval(function(){e()},n)},n}(s.a),S=function(){function e(e,n){this.timeoutToken=-1,this.runner=e,this.timeout=n,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.runner()},e}();!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}c(n,e),n.prototype.throttle=function(e){var n=this;return this.suspended=!0,_(e,function(){return n.resume()})},n.prototype.fire=function(n){return this.suspended?(this.lastEvent=n,void(this.hasLastEvent=!0)):e.prototype.fire.call(this,n)},n.prototype.resume=function(){this.suspended=!1,this.hasLastEvent&&this.fire(this.lastEvent),this.hasLastEvent=!1,this.lastEvent=void 0}}(l.a)},function(e,n,t){"use strict";t.d(n,"b",function(){return a}),t.d(n,"a",function(){return l});var r,a,i=t(2),o=t(5),s=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(a||(a={}));var l=function(e){function n(n,t,r,a){var i=e.call(this,n,t,r,a)||this;return i.selectionStartLineNumber=n,i.selectionStartColumn=t,i.positionLineNumber=r,i.positionColumn=a,i}return s(n,e),n.prototype.clone=function(){return new n(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},n.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},n.prototype.equalsSelection=function(e){return n.selectionsEqual(this,e)},n.selectionsEqual=function(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn},n.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?a.LTR:a.RTL},n.prototype.setEndPosition=function(e,t){return this.getDirection()===a.LTR?new n(this.startLineNumber,this.startColumn,e,t):new n(e,t,this.startLineNumber,this.startColumn)},n.prototype.getPosition=function(){return new o.a(this.positionLineNumber,this.positionColumn)},n.prototype.setStartPosition=function(e,t){return this.getDirection()===a.LTR?new n(e,t,this.endLineNumber,this.endColumn):new n(this.endLineNumber,this.endColumn,e,t)},n.fromPositions=function(e,t){return void 0===t&&(t=e),new n(e.lineNumber,e.column,t.lineNumber,t.column)},n.liftSelection=function(e){return new n(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},n.selectionsArrEqual=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},n.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},n.createWithDirection=function(e,t,r,i,o){return o===a.LTR?new n(e,t,r,i):new n(r,i,e,t)},n}(i.a)},,function(e,n,t){"use strict";var r,a=t(6),i=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});function o(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}function s(e){return encodeURIComponent(e).replace(/[!'()*]/g,o)}function l(e){return e.replace(/[#?]/,o)}var c=/^\w[\w\d+.-]*$/,u=/^\//,d=/^\/\//;var m="",p="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=/^\/[a-zA-Z]:/,v=/^(\/)?([A-Z]:)/,_=/^[a-zA-Z]:/,y=function(){function e(e,n,t,r,a){"object"==typeof e?(this.scheme=e.scheme||m,this.authority=e.authority||m,this.path=e.path||m,this.query=e.query||m,this.fragment=e.fragment||m):(this.scheme=e||m,this.authority=n||m,this.path=t||m,this.query=r||m,this.fragment=a||m,function(e){if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.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(d.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 ("//")')}(this))}return e.isUri=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)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return b(this)},enumerable:!0,configurable:!0}),e.prototype.with=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=m),void 0===t?t=this.authority:null===t&&(t=m),void 0===r?r=this.path:null===r&&(r=m),void 0===a?a=this.query:null===a&&(a=m),void 0===i?i=this.fragment:null===i&&(i=m),n===this.scheme&&t===this.authority&&r===this.path&&a===this.query&&i===this.fragment?this:new h(n,t,r,a,i)},e.parse=function(e){var n=f.exec(e);return n?new h(n[2]||m,decodeURIComponent(n[4]||m),decodeURIComponent(n[5]||m),decodeURIComponent(n[7]||m),decodeURIComponent(n[9]||m)):new h(m,m,m,m,m)},e.file=function(e){var n=m;if(a.g&&(e=e.replace(/\\/g,p)),e[0]===p&&e[1]===p){var t=e.indexOf(p,2);-1===t?(n=e.substring(2),e=p):(n=e.substring(2,t),e=e.substring(t)||p)}return _.test(e)?e=p+e:e[0]!==p&&(e=p+e),new h("file",n,e,m,m)},e.from=function(e){return new h(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),E(this,e)},e.prototype.toJSON=function(){var e={$mid:1,fsPath:this.fsPath,external:this.toString()};return 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},e.revive=function(n){if(n){if(n instanceof e)return n;var t=new h(n);return t._fsPath=n.fsPath,t._formatted=n.external,t}return n},e}();n.a=y;var h=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return i(n,e),Object.defineProperty(n.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this)),this._fsPath},enumerable:!0,configurable:!0}),n.prototype.toString=function(e){return void 0===e&&(e=!1),e?E(this,!0):(this._formatted||(this._formatted=E(this,!1)),this._formatted)},n}(y);function b(e){var n;return n=e.authority&&e.path&&"file"===e.scheme?"//"+e.authority+e.path:g.test(e.path)?e.path[1].toLowerCase()+e.path.substr(2):e.path,a.g&&(n=n.replace(/\//g,"\\")),n}function E(e,n){var t=n?l:s,r=[],a=e.scheme,i=e.authority,o=e.path,c=e.query,u=e.fragment;if(a&&r.push(a,":"),(i||"file"===a)&&r.push("//"),i){if(-1!==(_=i.indexOf("@"))){var d=i.substr(0,_);i=i.substr(_+1),-1===(_=d.indexOf(":"))?r.push(t(d)):r.push(t(d.substr(0,_)),":",t(d.substr(_+1))),r.push("@")}-1===(_=(i=i.toLowerCase()).indexOf(":"))?r.push(t(i)):r.push(t(i.substr(0,_)),i.substr(_))}if(o){var f=v.exec(o);f&&(o=f[1]?"/"+f[2].toLowerCase()+o.substr(3):f[2].toLowerCase()+o.substr(2));for(var g=0;;){var _;if(-1===(_=o.indexOf(p,g))){r.push(t(o.substring(g)));break}r.push(t(o.substring(g,_)),p),g=_+1}}return c&&r.push("?",t(c)),u&&r.push("#",t(u)),r.join(m)}},,,function(e,n,t){"use strict";t.d(n,"a",function(){return r}),t.d(n,"d",function(){return a}),t.d(n,"b",function(){return i}),t.d(n,"c",function(){return o});var r=function(){function e(e,n,t){for(var r=new Uint8Array(e*n),a=0,i=e*n;a<i;a++)r[a]=t;this._data=r,this.rows=e,this.cols=n}return e.prototype.get=function(e,n){return this._data[e*this.cols+n]},e.prototype.set=function(e,n,t){this._data[e*this.cols+n]=t},e}();function a(e){return e<0?0:e>255?255:0|e}function i(e){return e<0?0:e>4294967295?4294967295:0|e}function o(e){for(var n=e.length,t=new Uint32Array(n),r=0;r<n;r++)t[r]=i(e[r]);return t}},function(e,n,t){"use strict";t.d(n,"b",function(){return r}),t.d(n,"a",function(){return l}),t.d(n,"f",function(){return c}),t.d(n,"e",function(){return d}),t.d(n,"d",function(){return p}),t.d(n,"c",function(){return f});var r,a=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),i=new a,o=new a,s=new a;function l(e,n){return(e|(65535&n)<<16>>>0)>>>0}function c(e,n){if(0===e)return null;var t=(65535&e)>>>0,r=(4294901760&e)>>>16;return 0!==r?new m(u(t,n),u(r,n)):u(t,n)}function u(e,n){var t=!!(2048&e),r=!!(256&e);return new d(2===n?r:t,!!(1024&e),!!(512&e),2===n?t:r,255&e)}!function(){function e(e,n,t,r){void 0===t&&(t=n),void 0===r&&(r=t),i.define(e,n),o.define(e,t),s.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return i.keyCodeToStr(e)},e.fromString=function(e){return i.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||s.strToKeyCode(e)}}(r||(r={}));var d=function(){function e(e,n,t,r,a){this.type=1,this.ctrlKey=e,this.shiftKey=n,this.altKey=t,this.metaKey=r,this.keyCode=a}return e.prototype.equals=function(e){return 1===e.type&&(this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode)},e.prototype.getHashCode=function(){return""+(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),m=function(){function e(e,n){this.type=2,this.firstPart=e,this.chordPart=n}return e.prototype.getHashCode=function(){return this.firstPart.getHashCode()+";"+this.chordPart.getHashCode()},e}(),p=function(){return function(e,n,t,r,a,i){this.ctrlKey=e,this.shiftKey=n,this.altKey=t,this.metaKey=r,this.keyLabel=a,this.keyAriaLabel=i}}(),f=function(){return function(){}}()},function(e,n,t){"use strict";t.d(n,"c",function(){return u}),t.d(n,"b",function(){return d}),t.d(n,"a",function(){return m});var r,a=t(11),i=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});var o,s=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.join=function(e){return e.join("")},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},e.prototype.value=function(){return this._value[this._pos]},e}(),l=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.join=function(e){return e.join("/")},e.prototype.next=function(){this._from=this._to;for(var n=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(t===e._fwd||t===e._bwd){if(!n)break;this._from++}else n=!1}return this},e.prototype.cmp=function(e){for(var n=0,t=e.length,r=this._from;n<t&&r<this._to;){var a=e.charCodeAt(n)-this._value.charCodeAt(r);if(0!==a)return a;n+=1,r+=1}return t===this._to-this._from?0:n<t?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e._fwd="/".charCodeAt(0),e._bwd="\\".charCodeAt(0),e}(),c=function(){function e(){}return e.prototype.isEmpty=function(){return!(this.left||this.mid||this.right||this.element)},e}(),u=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new l)},e.forStrings=function(){return new e(new s)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,n){var t,r=this._iter.reset(e);for(this._root||(this._root=new c,this._root.str=r.value()),t=this._root;;){var a=r.cmp(t.str);if(a>0)t.left||(t.left=new c,t.left.str=r.value()),t=t.left;else if(a<0)t.right||(t.right=new c,t.right.str=r.value()),t=t.right;else{if(!r.hasNext())break;r.next(),t.mid||(t.mid=new c,t.mid.str=r.value()),t=t.mid}}var i=t.element;return t.element=n,i},e.prototype.get=function(e){for(var n=this._iter.reset(e),t=this._root;t;){var r=n.cmp(t.str);if(r>0)t=t.left;else if(r<0)t=t.right;else{if(!n.hasNext())break;n.next(),t=t.mid}}return t?t.element:void 0},e.prototype.delete=function(e){for(var n=this._iter.reset(e),t=[],r=this._root;r;){var a=n.cmp(r.str);if(a>0)t.push([1,r]),r=r.left;else if(a<0)t.push([-1,r]),r=r.right;else{if(!n.hasNext()){for(r.element=void 0;t.length>0&&r.isEmpty();){var i=t.pop(),o=i[0],s=i[1];switch(o){case 1:s.left=void 0;break;case 0:s.mid=void 0;break;case-1:s.right=void 0}r=s}break}n.next(),t.push([0,r]),r=r.mid}}},e.prototype.findSubstr=function(e){for(var n,t=this._iter.reset(e),r=this._root;r;){var a=t.cmp(r.str);if(a>0)r=r.left;else if(a<0)r=r.right;else{if(!t.hasNext())break;t.next(),n=r.element||n,r=r.mid}}return r&&r.element||n},e.prototype.findSuperstr=function(n){for(var t=this._iter.reset(n),r=this._root;r;){var a=t.cmp(r.str);if(a>0)r=r.left;else if(a<0)r=r.right;else{if(!t.hasNext()){if(!r.mid)return;var i=new e(this._iter);return i._root=r.mid,i}t.next(),r=r.mid}}},e.prototype.forEach=function(e){this._forEach(this._root,[],e)},e.prototype._forEach=function(e,n,t){e&&(this._forEach(e.left,n,t),n.push(e.str),e.element&&t(e.element,this._iter.join(n)),this._forEach(e.mid,n,t),n.pop(),this._forEach(e.right,n,t))},e}(),d=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,n){this.map.set(this.toKey(e),n)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return e=this.map,n=[],e.forEach(function(e){return n.push(e)}),n;var e,n},e.prototype.toKey=function(e){var n=e.toString();return this.ignoreCase&&(n=n.toLowerCase()),n},e.prototype.keys=function(){return(e=this.map,n=[],e.forEach(function(e,t){return n.push(t)}),n).map(a.a.parse);var e,n},e}();!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(o||(o={}));var m=function(e){function n(n,t){void 0===t&&(t=1);var r=e.call(this)||this;return r._limit=n,r._ratio=Math.min(Math.max(0,t),1),r}return i(n,e),Object.defineProperty(n.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),n.prototype.get=function(n){return e.prototype.get.call(this,n,o.AsNew)},n.prototype.peek=function(n){return e.prototype.get.call(this,n,o.None)},n.prototype.set=function(n,t){e.prototype.set.call(this,n,t,o.AsNew),this.checkTrim()},n.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},n}(function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,n){void 0===n&&(n=o.None);var t=this._map.get(e);if(t)return n!==o.None&&this.touch(t,n),t.value},e.prototype.set=function(e,n,t){void 0===t&&(t=o.None);var r=this._map.get(e);if(r)r.value=n,t!==o.None&&this.touch(r,t);else{switch(r={key:e,value:n,next:void 0,previous:void 0},t){case o.None:this.addItemLast(r);break;case o.AsOld:this.addItemFirst(r);break;case o.AsNew:default:this.addItemLast(r)}this._map.set(e,r),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,n){for(var t=this._head;t;)n?e.bind(n)(t.value,t.key,this):e(t.value,t.key,this),t=t.next},e.prototype.values=function(){for(var e=[],n=this._head;n;)e.push(n.value),n=n.next;return e},e.prototype.keys=function(){for(var e=[],n=this._head;n;)e.push(n.key),n=n.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var n=this._head,t=this.size;n&&t>e;)this._map.delete(n.key),n=n.next,t--;this._head=n,this._size=t,n.previous=void 0}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var n=e.next,t=e.previous;if(!n||!t)throw new Error("Invalid list");n.previous=t,t.next=n}},e.prototype.touch=function(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(n===o.AsOld||n===o.AsNew)if(n===o.AsOld){if(e===this._head)return;var t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(n===o.AsNew){if(e===this._tail)return;t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(n,t){e.push([t,n])}),e},e.prototype.fromJSON=function(e){this.clear();for(var n=0,t=e;n<t.length;n++){var r=t[n],a=r[0],i=r[1];this.set(a,i)}},e}())},function(e,n,t){"use strict";t.d(n,"b",function(){return r}),t.d(n,"a",function(){return a}),t.d(n,"c",function(){return i}),t.d(n,"d",function(){return o});var r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";var a=function(e){void 0===e&&(e="");for(var n="(-?\\d*\\.\\d\\w*)|([^",t=0;t<r.length;t++)e.indexOf(r[t])>=0||(n+="\\"+r[t]);return n+="\\s]+)",new RegExp(n,"g")}();function i(e){var n=a;if(e&&e instanceof RegExp)if(e.global)n=e;else{var t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),n=new RegExp(e.source,t)}return n.lastIndex=0,n}function o(e,n,t,r){n.lastIndex=0;var a=n.exec(t);if(!a)return null;var i=a[0].indexOf(" ")>=0?function(e,n,t,r){var a,i=e-1-r;for(n.lastIndex=0;a=n.exec(t);){if(a.index>i)return null;if(n.lastIndex>=i)return{word:a[0],startColumn:r+1+a.index,endColumn:r+1+n.lastIndex}}return null}(e,n,t,r):function(e,n,t,r){var a,i=e-1-r,o=t.lastIndexOf(" ",i-1)+1,s=t.indexOf(" ",i);for(-1===s&&(s=t.length),n.lastIndex=o;a=n.exec(t);)if(a.index<=i&&n.lastIndex>=i)return{word:a[0],startColumn:r+1+a.index,endColumn:r+1+n.lastIndex};return null}(e,n,t,r);return n.lastIndex=0,i}},function(e,n,t){"use strict";t.d(n,"a",function(){return r}),t.d(n,"b",function(){return a}),t.d(n,"c",function(){return i});var r=function(){function e(e,n,t){this.offset=0|e,this.type=n,this.language=t}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),a=function(){return function(e,n){this.tokens=e,this.endState=n}}(),i=function(){return function(e,n){this.tokens=e,this.endState=n}}()},function(e,n,t){"use strict";var r=function(){function e(e,n,t,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=t,this.modifiedLength=r}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function a(e){return{getLength:function(){return e.length},getElementHash:function(n){return e[n]}}}function i(e,n,t){return new u(a(e),a(n)).ComputeDiff(t)}t.d(n,"b",function(){return i}),t.d(n,"a",function(){return u});var o=function(){function e(){}return e.Assert=function(e,n){if(!e)throw new Error(n)},e}(),s=function(){function e(){}return e.Copy=function(e,n,t,r,a){for(var i=0;i<a;i++)t[r+i]=e[n+i]},e}(),l=function(){function e(){this.m_changes=[],this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),c=Object.prototype.hasOwnProperty,u=function(){function e(e,n,t){void 0===t&&(t=null),this.OriginalSequence=e,this.ModifiedSequence=n,this.ContinueProcessingPredicate=t,this.m_originalIds=[],this.m_modifiedIds=[],this.m_forwardHistory=[],this.m_reverseHistory=[],this.ComputeUniqueIdentifiers()}return e.prototype.ComputeUniqueIdentifiers=function(){var e=this.OriginalSequence.getLength(),n=this.ModifiedSequence.getLength();this.m_originalIds=new Array(e),this.m_modifiedIds=new Array(n);var t,r={},a=1;for(t=0;t<e;t++){var i=this.OriginalSequence.getElementHash(t);c.call(r,i)?this.m_originalIds[t]=r[i]:(this.m_originalIds[t]=a++,r[i]=this.m_originalIds[t])}for(t=0;t<n;t++){var o=this.ModifiedSequence.getElementHash(t);c.call(r,o)?this.m_modifiedIds[t]=r[o]:(this.m_modifiedIds[t]=a++,r[o]=this.m_modifiedIds[t])}},e.prototype.ElementsAreEqual=function(e,n){return this.m_originalIds[e]===this.m_modifiedIds[n]},e.prototype.OriginalElementsAreEqual=function(e,n){return this.m_originalIds[e]===this.m_originalIds[n]},e.prototype.ModifiedElementsAreEqual=function(e,n){return this.m_modifiedIds[e]===this.m_modifiedIds[n]},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,n,t,r,a){var i=this.ComputeDiffRecursive(e,n,t,r,[!1]);return a?this.ShiftChanges(i):i},e.prototype.ComputeDiffRecursive=function(e,n,t,a,i){for(i[0]=!1;e<=n&&t<=a&&this.ElementsAreEqual(e,t);)e++,t++;for(;n>=e&&a>=t&&this.ElementsAreEqual(n,a);)n--,a--;if(e>n||t>a){var s=void 0;return t<=a?(o.Assert(e===n+1,"originalStart should only be one more than originalEnd"),s=[new r(e,0,t,a-t+1)]):e<=n?(o.Assert(t===a+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(e,n-e+1,t,0)]):(o.Assert(e===n+1,"originalStart should only be one more than originalEnd"),o.Assert(t===a+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}var l=[0],c=[0],u=this.ComputeRecursionPoint(e,n,t,a,l,c,i),d=l[0],m=c[0];if(null!==u)return u;if(!i[0]){var p=this.ComputeDiffRecursive(e,d,t,m,i),f=[];return f=i[0]?[new r(d+1,n-(d+1)+1,m+1,a-(m+1)+1)]:this.ComputeDiffRecursive(d+1,n,m+1,a,i),this.ConcatenateChanges(p,f)}return[new r(e,n-e+1,t,a-t+1)]},e.prototype.WALKTRACE=function(e,n,t,a,i,o,s,c,u,d,m,p,f,g,v,_,y,h){var b,E,T=null,S=new l,L=n,A=t,x=f[0]-_[0]-a,C=Number.MIN_VALUE,k=this.m_forwardHistory.length-1;do{(E=x+e)===L||E<A&&u[E-1]<u[E+1]?(g=(m=u[E+1])-x-a,m<C&&S.MarkNextChange(),C=m,S.AddModifiedElement(m+1,g),x=E+1-e):(g=(m=u[E-1]+1)-x-a,m<C&&S.MarkNextChange(),C=m-1,S.AddOriginalElement(m,g+1),x=E-1-e),k>=0&&(e=(u=this.m_forwardHistory[k])[0],L=1,A=u.length-1)}while(--k>=-1);if(b=S.getReverseChanges(),h[0]){var M=f[0]+1,D=_[0]+1;if(null!==b&&b.length>0){var O=b[b.length-1];M=Math.max(M,O.getOriginalEnd()),D=Math.max(D,O.getModifiedEnd())}T=[new r(M,p-M+1,D,v-D+1)]}else{S=new l,L=o,A=s,x=f[0]-_[0]-c,C=Number.MAX_VALUE,k=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(E=x+i)===L||E<A&&d[E-1]>=d[E+1]?(g=(m=d[E+1]-1)-x-c,m>C&&S.MarkNextChange(),C=m+1,S.AddOriginalElement(m+1,g+1),x=E+1-i):(g=(m=d[E-1])-x-c,m>C&&S.MarkNextChange(),C=m,S.AddModifiedElement(m+1,g+1),x=E-1-i),k>=0&&(i=(d=this.m_reverseHistory[k])[0],L=1,A=d.length-1)}while(--k>=-1);T=S.getChanges()}return this.ConcatenateChanges(b,T)},e.prototype.ComputeRecursionPoint=function(e,n,t,a,i,o,l){var c,u,d,m=0,p=0,f=0,g=0;e--,t--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v,_,y=n-e+(a-t),h=y+1,b=new Array(h),E=new Array(h),T=a-t,S=n-e,L=e-t,A=n-a,x=(S-T)%2==0;for(b[T]=e,E[S]=n,l[0]=!1,d=1;d<=y/2+1;d++){var C=0,k=0;for(m=this.ClipDiagonalBound(T-d,d,T,h),p=this.ClipDiagonalBound(T+d,d,T,h),v=m;v<=p;v+=2){for(u=(c=v===m||v<p&&b[v-1]<b[v+1]?b[v+1]:b[v-1]+1)-(v-T)-L,_=c;c<n&&u<a&&this.ElementsAreEqual(c+1,u+1);)c++,u++;if(b[v]=c,c+u>C+k&&(C=c,k=u),!x&&Math.abs(v-S)<=d-1&&c>=E[v])return i[0]=c,o[0]=u,_<=E[v]&&d<=1448?this.WALKTRACE(T,m,p,L,S,f,g,A,b,E,c,n,i,u,a,o,x,l):null}var M=(C-e+(k-t)-d)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(C,this.OriginalSequence,M))return l[0]=!0,i[0]=C,o[0]=k,M>0&&d<=1448?this.WALKTRACE(T,m,p,L,S,f,g,A,b,E,c,n,i,u,a,o,x,l):[new r(++e,n-e+1,++t,a-t+1)];for(f=this.ClipDiagonalBound(S-d,d,S,h),g=this.ClipDiagonalBound(S+d,d,S,h),v=f;v<=g;v+=2){for(u=(c=v===f||v<g&&E[v-1]>=E[v+1]?E[v+1]-1:E[v-1])-(v-S)-A,_=c;c>e&&u>t&&this.ElementsAreEqual(c,u);)c--,u--;if(E[v]=c,x&&Math.abs(v-T)<=d&&c<=b[v])return i[0]=c,o[0]=u,_>=b[v]&&d<=1448?this.WALKTRACE(T,m,p,L,S,f,g,A,b,E,c,n,i,u,a,o,x,l):null}if(d<=1447){var D=new Array(p-m+2);D[0]=T-m+1,s.Copy(b,m,D,1,p-m+1),this.m_forwardHistory.push(D),(D=new Array(g-f+2))[0]=S-f+1,s.Copy(E,f,D,1,g-f+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(T,m,p,L,S,f,g,A,b,E,c,n,i,u,a,o,x,l)},e.prototype.ShiftChanges=function(e){var n;do{n=!1;for(var t=0;t<e.length;t++)for(var r=e[t],a=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength(),i=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength(),o=r.originalLength>0,s=r.modifiedLength>0;r.originalStart+r.originalLength<a&&r.modifiedStart+r.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!s||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));)r.originalStart++,r.modifiedStart++;var l=new Array,c=[null];for(t=0;t<e.length;t++)t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],c)?(n=!0,l.push(c[0]),t++):l.push(e[t]);e=l}while(n);for(t=e.length-1;t>=0;t--){r=e[t],a=0,i=0;if(t>0){var u=e[t-1];u.originalLength>0&&(a=u.originalStart+u.originalLength),u.modifiedLength>0&&(i=u.modifiedStart+u.modifiedLength)}o=r.originalLength>0,s=r.modifiedLength>0;for(var d=0,m=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength),p=1;;p++){var f=r.originalStart-p,g=r.modifiedStart-p;if(f<a||g<i)break;if(o&&!this.OriginalElementsAreEqual(f,f+r.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(g,g+r.modifiedLength))break;var v=this._boundaryScore(f,r.originalLength,g,r.modifiedLength);v>m&&(m=v,d=p)}r.originalStart-=d,r.modifiedStart-=d}return e},e.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this.OriginalSequence.getLength()-1||/^\s*$/.test(this.OriginalSequence.getElementHash(e))},e.prototype._OriginalRegionIsBoundary=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},e.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this.ModifiedSequence.getLength()-1||/^\s*$/.test(this.ModifiedSequence.getElementHash(e))},e.prototype._ModifiedRegionIsBoundary=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},e.prototype._boundaryScore=function(e,n,t,r){return(this._OriginalRegionIsBoundary(e,n)?1:0)+(this._ModifiedRegionIsBoundary(t,r)?1:0)},e.prototype.ConcatenateChanges=function(e,n){var t=[],r=null;return 0===e.length||0===n.length?n.length>0?n:e:this.ChangesOverlap(e[e.length-1],n[0],t)?(r=new Array(e.length+n.length-1),s.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],s.Copy(n,1,r,e.length,n.length-1),r):(r=new Array(e.length+n.length),s.Copy(e,0,r,0,e.length),s.Copy(n,0,r,e.length,n.length),r)},e.prototype.ChangesOverlap=function(e,n,t){if(o.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),o.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 a=e.originalStart,i=e.originalLength,s=e.modifiedStart,l=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new r(a,i,s,l),!0}return t[0]=null,!1},e.prototype.ClipDiagonalBound=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},e}()},function(e,n,t){"use strict";t.d(n,"a",function(){return r}),t.d(n,"b",function(){return s});var r,a=t(1),i=Object.freeze(function(e,n){var t=setTimeout(e.bind(n),0);return{dispose:function(){clearTimeout(t)}}});!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.b.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(r||(r={}));var o=function(){function e(){this._isCancelled=!1}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?i:(this._emitter||(this._emitter=new a.a),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)},e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new o),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof o&&this._token.dispose():this._token=r.None},e}()},function(e,n,t){"use strict";t.d(n,"a",function(){return a}),t.d(n,"b",function(){return i});var r=t(14),a=function(){function e(n){var t=Object(r.d)(n);this._defaultValue=t,this._asciiMap=e._createAsciiMap(t),this._map=new Map}return e._createAsciiMap=function(e){for(var n=new Uint8Array(256),t=0;t<256;t++)n[t]=e;return n},e.prototype.set=function(e,n){var t=Object(r.d)(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),i=function(){function e(){this._actual=new a(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}()},function(e,n,t){"use strict";function r(e){var n,t=this,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}t.d(n,"a",function(){return r})},function(e,n,t){"use strict";t.d(n,"a",function(){return i}),t.d(n,"b",function(){return o});var r=t(14),a=function(){return function(e,n){this.index=e,this.remainder=n}}(),i=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,n){e=Object(r.b)(e);var t=this.values,a=this.prefixSum,i=n.length;return 0!==i&&(this.values=new Uint32Array(t.length+i),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+i),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(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,n){return e=Object(r.b)(e),n=Object(r.b)(n),this.values[e]!==n&&(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,n){e=Object(r.b)(e),n=Object(r.b)(n);var t=this.values,a=this.prefixSum;if(e>=t.length)return!1;var i=t.length-e;return n>=i&&(n=i),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(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Object(r.b)(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=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]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var n,t,r,i=0,o=this.values.length-1;i<=o;)if(n=i+(o-i)/2|0,e<(r=(t=this.prefixSum[n])-this.values[n]))o=n-1;else{if(!(e>=t))break;i=n+1}return new a(n,e-r)},e}(),o=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new i(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,n){this._actual.insertValues(e,n)&&this._bustCache()},e.prototype.changeValue=function(e,n){this._actual.changeValue(e,n)&&this._bustCache()},e.prototype.removeValues=function(e,n){this._actual.removeValues(e,n)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var n=e-this._cacheAccumulatedValueStart;if(n>=0&&n<this._cache.length)return this._cache[n]}return this._actual.getIndexOf(e)},e.prototype.warmUpCache=function(e,n){for(var t=[],r=e;r<=n;r++)t[r-e]=this.getIndexOf(r);this._cache=t,this._cacheAccumulatedValueStart=e},e}()},function(e,n,t){"use strict";t.d(n,"c",function(){return m}),t.d(n,"a",function(){return f}),t.d(n,"b",function(){return g});var r,a=t(7),i=t(3),o=t(0),s=t(8),l=t(6),c=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),u="$initialize",d=!1;function m(e){l.f&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://git.spacen.net/Microsoft/monaco-editor#faq")),console.warn(e.message))}var p=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,n){var t=String(++this._lastSentReq),r={c:null,e:null},a=new o.b(function(e,n,t){r.c=e,r.e=n},function(){});return this._pendingReplies[t]=r,this._send({vsWorker:this._workerId,req:t,method:e,args:n}),a},e.prototype.handleMessage=function(e){var n;try{n=JSON.parse(e)}catch(e){}n&&n.vsWorker&&(-1!==this._workerId&&n.vsWorker!==this._workerId||this._handleMessage(n))},e.prototype._handleMessage=function(e){var n=this;if(e.seq){var t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");var r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){var i=t.err;return t.err.$isError&&((i=new Error).name=t.err.name,i.message=t.err.message,i.stack=t.err.stack),void r.e(i)}r.c(t.res)}else{var o=e,s=o.req;this._handler.handleMessage(o.method,o.args).then(function(e){n._send({vsWorker:n._workerId,seq:s,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=Object(a.g)(e.detail)),n._send({vsWorker:n._workerId,seq:s,res:void 0,err:Object(a.g)(e)})})}},e.prototype._send=function(e){var n=JSON.stringify(e);this._handler.sendMessage(n)},e}(),f=function(e){function n(n,t){var r=e.call(this)||this,a=null,i=null;r._worker=r._register(n.create("vs/base/common/worker/simpleWorker",function(e){r._protocol.handleMessage(e)},function(e){i(e)})),r._protocol=new p({sendMessage:function(e){r._worker.postMessage(e)},handleMessage:function(e,n){return o.b.as(null)}}),r._protocol.setWorkerId(r._worker.getId());var s=null;void 0!==self.require&&"function"==typeof self.require.getConfig?s=self.require.getConfig():void 0!==self.requirejs&&(s=self.requirejs.s.contexts._.config),r._lazyProxy=new o.b(function(e,n,t){a=e,i=n},function(){}),r._onModuleLoaded=r._protocol.sendMessage(u,[r._worker.getId(),t,s]),r._onModuleLoaded.then(function(e){for(var n={},t=0;t<e.length;t++)n[e[t]]=c(e[t],l);a(n)},function(e){i(e),r._onError("Worker failed to load "+t,e)});var l=function(e,n){return r._request(e,n)},c=function(e,n){return function(){var t=Array.prototype.slice.call(arguments,0);return n(e,t)}};return r}return c(n,e),n.prototype.getProxyObject=function(){return new s.d(this._lazyProxy)},n.prototype._request=function(e,n){var t=this;return new o.b(function(r,a,i){t._onModuleLoaded.then(function(){t._protocol.sendMessage(e,n).then(r,a)},a)},function(){})},n.prototype._onError=function(e,n){console.error(e),console.info(n)},n}(i.a),g=function(){function e(e,n){var t=this;this._requestHandler=n,this._protocol=new p({sendMessage:function(n){e(n)},handleMessage:function(e,n){return t._handleMessage(e,n)}})}return e.prototype.onmessage=function(e){this._protocol.handleMessage(e)},e.prototype._handleMessage=function(e,n){if(e===u)return this.initialize(n[0],n[1],n[2]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return o.b.wrapError(new Error("Missing requestHandler or method: "+e));try{return o.b.as(this._requestHandler[e].apply(this._requestHandler,n))}catch(e){return o.b.wrapError(e)}},e.prototype.initialize=function(e,n,t){var r,a,i=this;if(this._protocol.setWorkerId(e),this._requestHandler){var s=[];for(var l in this._requestHandler)"function"==typeof this._requestHandler[l]&&s.push(l);return o.b.as(s)}t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t));var c=new o.b(function(e,n,t){r=e,a=n});return self.require([n],function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[0];i._requestHandler=t.create();var a=[];for(var o in i._requestHandler)"function"==typeof i._requestHandler[o]&&a.push(o);r(a)},a),c},e}()},function(e,n){var t,r,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function m(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(m);u=!0;for(var n=c.length;n;){for(l=c,c=[];++d<n;)l&&l[d].run();d=-1,n=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function f(e,n){this.fun=e,this.array=n}function g(){}a.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];c.push(new f(e,n)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,n,t){"use strict";t.d(n,"a",function(){return v});var r,a,i=t(1),o=t(15),s=t(5),l=t(2),c=t(9),u=t(0),d=t(20),m=t(18),p=t(11);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(a||(a={}));var f,g=function(){function e(){}return e.chord=function(e,n){return Object(o.a)(e,n)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function v(){return{editor:void 0,languages:void 0,CancellationTokenSource:d.b,Emitter:i.a,KeyCode:f,KeyMod:g,Position:s.a,Range:l.a,Selection:c.a,SelectionDirection:c.b,Severity:r,MarkerSeverity:a,Promise:u.b,Uri:p.a,Token:m.a}}!function(e){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.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",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.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",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.MAX_VALUE=112]="MAX_VALUE"}(f||(f={}))},function(e,n,t){"use strict";t.d(n,"a",function(){return a});var r=function(){return function(e){this.element=e}}(),a=function(){function e(){}return e.prototype.isEmpty=function(){return!this._first},e.prototype.clear=function(){this._first=void 0,this._last=void 0},e.prototype.unshift=function(e){return this.insert(e,!1)},e.prototype.push=function(e){return this.insert(e,!0)},e.prototype.insert=function(e,n){var t=this,a=new r(e);if(this._first)if(n){var i=this._last;this._last=a,a.prev=i,i.next=a}else{var o=this._first;this._first=a,a.next=o,o.prev=a}else this._first=a,this._last=a;return function(){for(var e=t._first;e instanceof r;e=e.next)if(e===a){if(e.prev&&e.next){var n=e.prev;n.next=e.next,e.next.prev=n}else e.prev||e.next?e.next?e.prev||(t._first=t._first.next,t._first.prev=void 0):(t._last=t._last.prev,t._last.next=void 0):(t._first=void 0,t._last=void 0);break}}},e.prototype.iterator=function(){var e={done:void 0,value:void 0},n=this._first;return{next:function(){return n?(e.done=!1,e.value=n.element,n=n.next):(e.done=!0,e.value=void 0),e}}},e.prototype.toArray=function(){for(var e=[],n=this._first;n instanceof r;n=n.next)e.push(n.element);return e},e}()},function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n,t){"use strict";var r,a=t(11),i=t(0),o=t(2),s=t(19),l=t(4),c=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),u=5e3,d=3;function m(e,n,t,r){return new s.a(e,n,t).ComputeDiff(r)}var p=function(){function e(e,n,t){this.buffer=e,this.startMarkers=n,this.endMarkers=t}return e.prototype.getLength=function(){return this.startMarkers.length},e.prototype.getElementHash=function(e){return this.buffer.substring(this.startMarkers[e].offset,this.endMarkers[e].offset)},e.prototype.getStartLineNumber=function(e){return e===this.startMarkers.length?this.startMarkers[e-1].lineNumber+1:this.startMarkers[e].lineNumber},e.prototype.getStartColumn=function(e){return this.startMarkers[e].column},e.prototype.getEndLineNumber=function(e){return this.endMarkers[e].lineNumber},e.prototype.getEndColumn=function(e){return this.endMarkers[e].column},e}(),f=function(e){function n(t){for(var r="",a=[],i=[],o=0,s=0,l=t.length;s<l;s++){r+=t[s];var c=n._getFirstNonBlankColumn(t[s],1),u=n._getLastNonBlankColumn(t[s],1);a.push({offset:o+c-1,lineNumber:s+1,column:c}),i.push({offset:o+u-1,lineNumber:s+1,column:u}),o+=t[s].length}return e.call(this,r,a,i)||this}return c(n,e),n._getFirstNonBlankColumn=function(e,n){var t=l.firstNonWhitespaceIndex(e);return-1===t?n:t+1},n._getLastNonBlankColumn=function(e,n){var t=l.lastNonWhitespaceIndex(e);return-1===t?n:t+2},n.prototype.getCharSequence=function(e,n){for(var t=[],r=[],a=e;a<=n;a++)for(var i=this.startMarkers[a],o=this.endMarkers[a],s=i.offset;s<o.offset;s++)t.push({offset:s,lineNumber:i.lineNumber,column:i.column+(s-i.offset)}),r.push({offset:s+1,lineNumber:i.lineNumber,column:i.column+(s-i.offset)+1});return new p(this.buffer,t,r)},n}(p),g=function(){function e(e,n,t,r,a,i,o,s){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=t,this.originalEndColumn=r,this.modifiedStartLineNumber=a,this.modifiedStartColumn=i,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}return e.createFromDiffChange=function(n,t,r){var a,i,o,s,l,c,u,d;return 0===n.originalLength?(a=0,i=0,o=0,s=0):(a=t.getStartLineNumber(n.originalStart),i=t.getStartColumn(n.originalStart),o=t.getEndLineNumber(n.originalStart+n.originalLength-1),s=t.getEndColumn(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(l=0,c=0,u=0,d=0):(l=r.getStartLineNumber(n.modifiedStart),c=r.getStartColumn(n.modifiedStart),u=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1),d=r.getEndColumn(n.modifiedStart+n.modifiedLength-1)),new e(a,i,o,s,l,c,u,d)},e}();var v=function(){function e(e,n,t,r,a){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=t,this.modifiedEndLineNumber=r,this.charChanges=a}return e.createFromDiffResult=function(n,t,r,a,i){var o,s,l,c,u;if(0===n.originalLength?(o=t.getStartLineNumber(n.originalStart)-1,s=0):(o=t.getStartLineNumber(n.originalStart),s=t.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(l=r.getStartLineNumber(n.modifiedStart)-1,c=0):(l=r.getStartLineNumber(n.modifiedStart),c=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),0!==n.originalLength&&0!==n.modifiedLength&&a()){var p=t.getCharSequence(n.originalStart,n.originalStart+n.originalLength-1),f=r.getCharSequence(n.modifiedStart,n.modifiedStart+n.modifiedLength-1),v=m(p,f,a,!0);i&&(v=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)<d?(t.originalLength=i.originalStart+i.originalLength-t.originalStart,t.modifiedLength=i.modifiedStart+i.modifiedLength-t.modifiedStart):(n.push(i),t=i)}return n}(v)),u=[];for(var _=0,y=v.length;_<y;_++)u.push(g.createFromDiffChange(v[_],p,f))}return new e(o,s,l,c,u)},e}(),_=function(){function e(e,n,t){this.shouldPostProcessCharChanges=t.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=t.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=t.shouldMakePrettyDiff,this.maximumRunTimeMs=u,this.originalLines=e,this.modifiedLines=n,this.original=new f(e),this.modified=new f(n)}return e.prototype.computeDiff=function(){if(1===this.original.getLength()&&0===this.original.getElementHash(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.getLength(),charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];if(1===this.modified.getLength()&&0===this.modified.getElementHash(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:this.original.getLength(),modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];this.computationStartTime=(new Date).getTime();var e=m(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){for(var n=[],t=0,r=e.length;t<r;t++)n.push(v.createFromDiffResult(e[t],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldPostProcessCharChanges));return n}for(var a=[],i=0,o=0,s=(t=-1,e.length);t<s;t++){for(var l=t+1<s?e[t+1]:null,c=l?l.originalStart:this.originalLines.length,u=l?l.modifiedStart:this.modifiedLines.length;i<c&&o<u;){var d=this.originalLines[i],p=this.modifiedLines[o];if(d!==p){for(var g=f._getFirstNonBlankColumn(d,1),_=f._getFirstNonBlankColumn(p,1);g>1&&_>1;){if(d.charCodeAt(g-2)!==p.charCodeAt(_-2))break;g--,_--}(g>1||_>1)&&this._pushTrimWhitespaceCharChange(a,i+1,1,g,o+1,1,_);for(var y=f._getLastNonBlankColumn(d,1),h=f._getLastNonBlankColumn(p,1),b=d.length+1,E=p.length+1;y<b&&h<E;){if(d.charCodeAt(y-1)!==d.charCodeAt(h-1))break;y++,h++}(y<b||h<E)&&this._pushTrimWhitespaceCharChange(a,i+1,y,b,o+1,h,E)}i++,o++}l&&(a.push(v.createFromDiffResult(l,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldPostProcessCharChanges)),i+=l.originalLength,o+=l.modifiedLength)}return a},e.prototype._pushTrimWhitespaceCharChange=function(e,n,t,r,a,i,o){this._mergeTrimWhitespaceCharChange(e,n,t,r,a,i,o)||e.push(new v(n,n,a,a,[new g(n,t,n,r,a,i,a,o)]))},e.prototype._mergeTrimWhitespaceCharChange=function(e,n,t,r,a,i,o){var s=e.length;if(0===s)return!1;var l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===a&&(l.originalEndLineNumber=n,l.modifiedEndLineNumber=a,l.charChanges.push(new g(n,t,n,r,a,i,a,o)),!0))},e.prototype._continueProcessingPredicate=function(){return 0===this.maximumRunTimeMs||(new Date).getTime()-this.computationStartTime<this.maximumRunTimeMs},e}(),y=t(5),h=t(23),b=function(){function e(e,n,t,r){this._uri=e,this._lines=n,this._eol=t,this._versionId=r}return e.prototype.dispose=function(){this._lines.length=0},Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var n=e.changes,t=0,r=n.length;t<r;t++){var a=n[t];this._acceptDeleteRange(a.range),this._acceptInsertText(new y.a(a.range.startLineNumber,a.range.startColumn),a.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=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 h.a(t)}},e.prototype._setLineText=function(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=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))}},e.prototype._acceptInsertText=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}(),E=t(21),T=t(14),S=function(){function e(e){for(var n=0,t=0,r=0,a=e.length;r<a;r++){var i=e[r],o=i[0],s=i[1],l=i[2];s>n&&(n=s),o>t&&(t=o),l>t&&(t=l)}n++,t++;var c=new T.a(t,n,0);for(r=0,a=e.length;r<a;r++){var u=e[r];o=u[0],s=u[1],l=u[2];c.set(o,s,l)}this._states=c,this._maxCharCode=n}return e.prototype.nextState=function(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)},e}(),L=null;var A=null;var x=function(){function e(){}return e._createLink=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),l=n.charCodeAt(i);(40===s&&41===l||91===s&&93===l||123===s&&125===l)&&i--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+2},url:n.substring(r,i+1)}},e.computeLinks=function(n){for(var t=(null===L&&(L=new S([[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]])),L),r=function(){if(null===A){A=new E.a(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)A.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)A.set(".,;".charCodeAt(e),2)}return A}(),a=[],i=1,o=n.getLineCount();i<=o;i++){for(var s=n.getLineContent(i),l=s.length,c=0,u=0,d=0,m=1,p=!1,f=!1,g=!1;c<l;){var v=!1,_=s.charCodeAt(c);if(13===m){var y=void 0;switch(_){case 40:p=!0,y=0;break;case 41:y=p?0:1;break;case 91:f=!0,y=0;break;case 93:y=f?0:1;break;case 123:g=!0,y=0;break;case 125:y=g?0:1;break;case 39:y=34===d||96===d?0:1;break;case 34:y=39===d||96===d?0:1;break;case 96:y=39===d||34===d?0:1;break;default:y=r.get(_)}1===y&&(a.push(e._createLink(r,s,i,u,c)),v=!0)}else if(12===m){1===(y=r.get(_))?v=!0:m=13}else 0===(m=t.nextState(m,_))&&(v=!0);v&&(m=1,p=!1,f=!1,g=!1,u=c+1,d=_),c++}13===m&&a.push(e._createLink(r,s,i,u,l))}return a},e}();var C=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,n,t,r,a){var i;if(e&&n&&(i=this.doNavigateValueSet(n,a)))return{range:e,value:i};if(t&&r&&(i=this.doNavigateValueSet(r,a)))return{range:t,value:i};return null},e.prototype.doNavigateValueSet=function(e,n){var t=this.numberReplace(e,n);return null!==t?t:this.textReplace(e,n)},e.prototype.numberReplace=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},e.prototype.textReplace=function(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)},e.prototype.valueSetsReplace=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},e.prototype.valueSetReplace=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.INSTANCE=new e,e}(),k=t(17),M=t(26),D=t(6);t.d(n,"a",function(){return I});var O=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),R=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return O(n,e),Object.defineProperty(n.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),n.prototype.getValue=function(){return this.getText()},n.prototype.getLinesContent=function(){return this._lines.slice(0)},n.prototype.getLineCount=function(){return this._lines.length},n.prototype.getLineContent=function(e){return this._lines[e-1]},n.prototype.getWordAtPosition=function(e,n){var t=Object(k.d)(e.column,Object(k.c)(n),this._lines[e.lineNumber-1],0);return t?new o.a(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null},n.prototype.getWordUntilPosition=function(e,n){var t=this.getWordAtPosition(e,n);return t?{word:this._lines[e.lineNumber-1].substring(t.startColumn-1,e.column-1),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},n.prototype.createWordIterator=function(e){var n,t=this,r={done:!1,value:""},a=0,i=0,o=[],s=function(){if(i<o.length)r.done=!1,r.value=n.substring(o[i].start,o[i].end),i+=1;else{if(!(a>=t._lines.length))return n=t._lines[a],o=t._wordenize(n,e),i=0,a+=1,s();r.done=!0,r.value=void 0}return r};return{next:s}},n.prototype._wordenize=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},n.prototype.getValueInRange=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)},n.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},n.prototype.positionAt=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)}},n.prototype._validateRange=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},n.prototype._validatePosition=function(e){if(!y.a.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},n}(b),I=function(e){function n(n){var t=e.call(this,n)||this;return t._models=Object.create(null),t}return O(n,e),n.prototype.dispose=function(){this._models=Object.create(null)},n.prototype._getModel=function(e){return this._models[e]},n.prototype._getModels=function(){var e=this,n=[];return Object.keys(this._models).forEach(function(t){return n.push(e._models[t])}),n},n.prototype.acceptNewModel=function(e){this._models[e.url]=new R(a.a.parse(e.url),e.lines,e.EOL,e.versionId)},n.prototype.acceptModelChanged=function(e,n){this._models[e]&&this._models[e].onEvents(n)},n.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},n}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,n,t){var r=this._getModel(e),a=this._getModel(n);if(!r||!a)return null;var o=r.getLinesContent(),s=a.getLinesContent(),l=new _(o,s,{shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:t,shouldMakePrettyDiff:!0});return i.b.as(l.computeDiff())},e.prototype.computeDirtyDiff=function(e,n,t){var r=this._getModel(e),a=this._getModel(n);if(!r||!a)return null;var o=r.getLinesContent(),s=a.getLinesContent(),l=new _(o,s,{shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:t,shouldMakePrettyDiff:!0});return i.b.as(l.computeDiff())},e.prototype.computeMoreMinimalEdits=function(n,t){var r=this._getModel(n);if(!r)return i.b.as(t);for(var a,l=[],c=0,u=t;c<u.length;c++){var d=u[c],m=d.range,p=d.text,f=d.eol;if("number"==typeof f&&(a=f),m){var g=r.getValueInRange(m);if(g!==(p=p.replace(/\r\n|\n|\r/g,r.eol)))if(Math.max(p.length,g.length)>e._diffLimit)l.push({range:m,text:p});else for(var v=Object(s.b)(g,p,!1),_=r.offsetAt(o.a.lift(m).getStartPosition()),y=0,h=v;y<h.length;y++){var b=h[y],E=r.positionAt(_+b.originalStart),T=r.positionAt(_+b.originalStart+b.originalLength),S={text:p.substr(b.modifiedStart,b.modifiedLength),range:{startLineNumber:E.lineNumber,startColumn:E.column,endLineNumber:T.lineNumber,endColumn:T.column}};r.getValueInRange(S.range)!==S.text&&l.push(S)}}}return"number"==typeof a&&l.push({eol:a,text:void 0,range:void 0}),i.b.as(l)},e.prototype.computeLinks=function(e){var n=this._getModel(e);return n?i.b.as(function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?x.computeLinks(e):[]}(n)):null},e.prototype.textualSuggest=function(n,t,r,a){var o=this._getModel(n);if(o){var s=[],l=new RegExp(r,a),c=o.getWordUntilPosition(t,l).word,u=Object.create(null);u[c]=!0;for(var d=o.createWordIterator(l),m=d.next();!m.done&&s.length<=e._suggestionsLimit;m=d.next()){var p=m.value;u[p]||(u[p]=!0,isNaN(Number(p))&&s.push({type:"text",label:p,insertText:p,noAutoAccept:!0,overwriteBefore:c.length}))}return i.b.as({suggestions:s})}},e.prototype.navigateValueSet=function(e,n,t,r,a){var o=this._getModel(e);if(!o)return null;var s=new RegExp(r,a);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});var l=o.getValueInRange(n),c=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},s),u=null;null!==c&&(u=o.getValueInRange(c));var d=C.INSTANCE.navigateValueSet(n,l,c,u,t);return i.b.as(d)},e.prototype.loadForeignModule=function(e,n){var r=this,a={getMirrorModels:function(){return r._getModels()}};if(this._foreignModuleFactory){this._foreignModule=this._foreignModuleFactory(a,n);var o=[];for(var s in this._foreignModule)"function"==typeof this._foreignModule[s]&&o.push(s);return i.b.as(o)}return new i.b(function(i,o){t.e(0).then(function(){var o=[t(152)(e)];(function(e){r._foreignModule=e.create(a,n);var t=[];for(var o in r._foreignModule)"function"==typeof r._foreignModule[o]&&t.push(o);i(t)}).apply(null,o)}).catch(o.bind(this))})},e.prototype.fmr=function(e,n){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return i.b.wrapError(new Error("Missing requestHandler or method: "+e));try{return i.b.as(this._foreignModule[e].apply(this._foreignModule,n))}catch(e){return i.b.wrapError(e)}},e._diffLimit=1e4,e._suggestionsLimit=1e4,e}());"function"==typeof importScripts&&(D.b.monaco=Object(M.a)())},,function(e,n,t){"use strict";(function(e,r,a,i,o){t.d(n,"f",function(){return p}),t.d(n,"g",function(){return f}),t.d(n,"h",function(){return g}),t.d(n,"a",function(){return v}),t.d(n,"i",function(){return _}),t.d(n,"b",function(){return y}),t.d(n,"c",function(){return h}),t.d(n,"d",function(){return b}),t.d(n,"e",function(){return E});
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var s,l=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},c=(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}s(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});!function(e){!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={})),function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.StringLiteral=9]="StringLiteral",e[e.JsxText=10]="JsxText",e[e.JsxTextAllWhiteSpaces=11]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=12]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=13]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=14]="TemplateHead",e[e.TemplateMiddle=15]="TemplateMiddle",e[e.TemplateTail=16]="TemplateTail",e[e.OpenBraceToken=17]="OpenBraceToken",e[e.CloseBraceToken=18]="CloseBraceToken",e[e.OpenParenToken=19]="OpenParenToken",e[e.CloseParenToken=20]="CloseParenToken",e[e.OpenBracketToken=21]="OpenBracketToken",e[e.CloseBracketToken=22]="CloseBracketToken",e[e.DotToken=23]="DotToken",e[e.DotDotDotToken=24]="DotDotDotToken",e[e.SemicolonToken=25]="SemicolonToken",e[e.CommaToken=26]="CommaToken",e[e.LessThanToken=27]="LessThanToken",e[e.LessThanSlashToken=28]="LessThanSlashToken",e[e.GreaterThanToken=29]="GreaterThanToken",e[e.LessThanEqualsToken=30]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=31]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=32]="EqualsEqualsToken",e[e.ExclamationEqualsToken=33]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=34]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=35]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=36]="EqualsGreaterThanToken",e[e.PlusToken=37]="PlusToken",e[e.MinusToken=38]="MinusToken",e[e.AsteriskToken=39]="AsteriskToken",e[e.AsteriskAsteriskToken=40]="AsteriskAsteriskToken",e[e.SlashToken=41]="SlashToken",e[e.PercentToken=42]="PercentToken",e[e.PlusPlusToken=43]="PlusPlusToken",e[e.MinusMinusToken=44]="MinusMinusToken",e[e.LessThanLessThanToken=45]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=46]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=47]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=48]="AmpersandToken",e[e.BarToken=49]="BarToken",e[e.CaretToken=50]="CaretToken",e[e.ExclamationToken=51]="ExclamationToken",e[e.TildeToken=52]="TildeToken",e[e.AmpersandAmpersandToken=53]="AmpersandAmpersandToken",e[e.BarBarToken=54]="BarBarToken",e[e.QuestionToken=55]="QuestionToken",e[e.ColonToken=56]="ColonToken",e[e.AtToken=57]="AtToken",e[e.EqualsToken=58]="EqualsToken",e[e.PlusEqualsToken=59]="PlusEqualsToken",e[e.MinusEqualsToken=60]="MinusEqualsToken",e[e.AsteriskEqualsToken=61]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=62]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=63]="SlashEqualsToken",e[e.PercentEqualsToken=64]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=65]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=66]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=68]="AmpersandEqualsToken",e[e.BarEqualsToken=69]="BarEqualsToken",e[e.CaretEqualsToken=70]="CaretEqualsToken",e[e.Identifier=71]="Identifier",e[e.BreakKeyword=72]="BreakKeyword",e[e.CaseKeyword=73]="CaseKeyword",e[e.CatchKeyword=74]="CatchKeyword",e[e.ClassKeyword=75]="ClassKeyword",e[e.ConstKeyword=76]="ConstKeyword",e[e.ContinueKeyword=77]="ContinueKeyword",e[e.DebuggerKeyword=78]="DebuggerKeyword",e[e.DefaultKeyword=79]="DefaultKeyword",e[e.DeleteKeyword=80]="DeleteKeyword",e[e.DoKeyword=81]="DoKeyword",e[e.ElseKeyword=82]="ElseKeyword",e[e.EnumKeyword=83]="EnumKeyword",e[e.ExportKeyword=84]="ExportKeyword",e[e.ExtendsKeyword=85]="ExtendsKeyword",e[e.FalseKeyword=86]="FalseKeyword",e[e.FinallyKeyword=87]="FinallyKeyword",e[e.ForKeyword=88]="ForKeyword",e[e.FunctionKeyword=89]="FunctionKeyword",e[e.IfKeyword=90]="IfKeyword",e[e.ImportKeyword=91]="ImportKeyword",e[e.InKeyword=92]="InKeyword",e[e.InstanceOfKeyword=93]="InstanceOfKeyword",e[e.NewKeyword=94]="NewKeyword",e[e.NullKeyword=95]="NullKeyword",e[e.ReturnKeyword=96]="ReturnKeyword",e[e.SuperKeyword=97]="SuperKeyword",e[e.SwitchKeyword=98]="SwitchKeyword",e[e.ThisKeyword=99]="ThisKeyword",e[e.ThrowKeyword=100]="ThrowKeyword",e[e.TrueKeyword=101]="TrueKeyword",e[e.TryKeyword=102]="TryKeyword",e[e.TypeOfKeyword=103]="TypeOfKeyword",e[e.VarKeyword=104]="VarKeyword",e[e.VoidKeyword=105]="VoidKeyword",e[e.WhileKeyword=106]="WhileKeyword",e[e.WithKeyword=107]="WithKeyword",e[e.ImplementsKeyword=108]="ImplementsKeyword",e[e.InterfaceKeyword=109]="InterfaceKeyword",e[e.LetKeyword=110]="LetKeyword",e[e.PackageKeyword=111]="PackageKeyword",e[e.PrivateKeyword=112]="PrivateKeyword",e[e.ProtectedKeyword=113]="ProtectedKeyword",e[e.PublicKeyword=114]="PublicKeyword",e[e.StaticKeyword=115]="StaticKeyword",e[e.YieldKeyword=116]="YieldKeyword",e[e.AbstractKeyword=117]="AbstractKeyword",e[e.AsKeyword=118]="AsKeyword",e[e.AnyKeyword=119]="AnyKeyword",e[e.AsyncKeyword=120]="AsyncKeyword",e[e.AwaitKeyword=121]="AwaitKeyword",e[e.BooleanKeyword=122]="BooleanKeyword",e[e.ConstructorKeyword=123]="ConstructorKeyword",e[e.DeclareKeyword=124]="DeclareKeyword",e[e.GetKeyword=125]="GetKeyword",e[e.InferKeyword=126]="InferKeyword",e[e.IsKeyword=127]="IsKeyword",e[e.KeyOfKeyword=128]="KeyOfKeyword",e[e.ModuleKeyword=129]="ModuleKeyword",e[e.NamespaceKeyword=130]="NamespaceKeyword",e[e.NeverKeyword=131]="NeverKeyword",e[e.ReadonlyKeyword=132]="ReadonlyKeyword",e[e.RequireKeyword=133]="RequireKeyword",e[e.NumberKeyword=134]="NumberKeyword",e[e.ObjectKeyword=135]="ObjectKeyword",e[e.SetKeyword=136]="SetKeyword",e[e.StringKeyword=137]="StringKeyword",e[e.SymbolKeyword=138]="SymbolKeyword",e[e.TypeKeyword=139]="TypeKeyword",e[e.UndefinedKeyword=140]="UndefinedKeyword",e[e.UniqueKeyword=141]="UniqueKeyword",e[e.FromKeyword=142]="FromKeyword",e[e.GlobalKeyword=143]="GlobalKeyword",e[e.OfKeyword=144]="OfKeyword",e[e.QualifiedName=145]="QualifiedName",e[e.ComputedPropertyName=146]="ComputedPropertyName",e[e.TypeParameter=147]="TypeParameter",e[e.Parameter=148]="Parameter",e[e.Decorator=149]="Decorator",e[e.PropertySignature=150]="PropertySignature",e[e.PropertyDeclaration=151]="PropertyDeclaration",e[e.MethodSignature=152]="MethodSignature",e[e.MethodDeclaration=153]="MethodDeclaration",e[e.Constructor=154]="Constructor",e[e.GetAccessor=155]="GetAccessor",e[e.SetAccessor=156]="SetAccessor",e[e.CallSignature=157]="CallSignature",e[e.ConstructSignature=158]="ConstructSignature",e[e.IndexSignature=159]="IndexSignature",e[e.TypePredicate=160]="TypePredicate",e[e.TypeReference=161]="TypeReference",e[e.FunctionType=162]="FunctionType",e[e.ConstructorType=163]="ConstructorType",e[e.TypeQuery=164]="TypeQuery",e[e.TypeLiteral=165]="TypeLiteral",e[e.ArrayType=166]="ArrayType",e[e.TupleType=167]="TupleType",e[e.UnionType=168]="UnionType",e[e.IntersectionType=169]="IntersectionType",e[e.ConditionalType=170]="ConditionalType",e[e.InferType=171]="InferType",e[e.ParenthesizedType=172]="ParenthesizedType",e[e.ThisType=173]="ThisType",e[e.TypeOperator=174]="TypeOperator",e[e.IndexedAccessType=175]="IndexedAccessType",e[e.MappedType=176]="MappedType",e[e.LiteralType=177]="LiteralType",e[e.ObjectBindingPattern=178]="ObjectBindingPattern",e[e.ArrayBindingPattern=179]="ArrayBindingPattern",e[e.BindingElement=180]="BindingElement",e[e.ArrayLiteralExpression=181]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=182]="ObjectLiteralExpression",e[e.PropertyAccessExpression=183]="PropertyAccessExpression",e[e.ElementAccessExpression=184]="ElementAccessExpression",e[e.CallExpression=185]="CallExpression",e[e.NewExpression=186]="NewExpression",e[e.TaggedTemplateExpression=187]="TaggedTemplateExpression",e[e.TypeAssertionExpression=188]="TypeAssertionExpression",e[e.ParenthesizedExpression=189]="ParenthesizedExpression",e[e.FunctionExpression=190]="FunctionExpression",e[e.ArrowFunction=191]="ArrowFunction",e[e.DeleteExpression=192]="DeleteExpression",e[e.TypeOfExpression=193]="TypeOfExpression",e[e.VoidExpression=194]="VoidExpression",e[e.AwaitExpression=195]="AwaitExpression",e[e.PrefixUnaryExpression=196]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=197]="PostfixUnaryExpression",e[e.BinaryExpression=198]="BinaryExpression",e[e.ConditionalExpression=199]="ConditionalExpression",e[e.TemplateExpression=200]="TemplateExpression",e[e.YieldExpression=201]="YieldExpression",e[e.SpreadElement=202]="SpreadElement",e[e.ClassExpression=203]="ClassExpression",e[e.OmittedExpression=204]="OmittedExpression",e[e.ExpressionWithTypeArguments=205]="ExpressionWithTypeArguments",e[e.AsExpression=206]="AsExpression",e[e.NonNullExpression=207]="NonNullExpression",e[e.MetaProperty=208]="MetaProperty",e[e.TemplateSpan=209]="TemplateSpan",e[e.SemicolonClassElement=210]="SemicolonClassElement",e[e.Block=211]="Block",e[e.VariableStatement=212]="VariableStatement",e[e.EmptyStatement=213]="EmptyStatement",e[e.ExpressionStatement=214]="ExpressionStatement",e[e.IfStatement=215]="IfStatement",e[e.DoStatement=216]="DoStatement",e[e.WhileStatement=217]="WhileStatement",e[e.ForStatement=218]="ForStatement",e[e.ForInStatement=219]="ForInStatement",e[e.ForOfStatement=220]="ForOfStatement",e[e.ContinueStatement=221]="ContinueStatement",e[e.BreakStatement=222]="BreakStatement",e[e.ReturnStatement=223]="ReturnStatement",e[e.WithStatement=224]="WithStatement",e[e.SwitchStatement=225]="SwitchStatement",e[e.LabeledStatement=226]="LabeledStatement",e[e.ThrowStatement=227]="ThrowStatement",e[e.TryStatement=228]="TryStatement",e[e.DebuggerStatement=229]="DebuggerStatement",e[e.VariableDeclaration=230]="VariableDeclaration",e[e.VariableDeclarationList=231]="VariableDeclarationList",e[e.FunctionDeclaration=232]="FunctionDeclaration",e[e.ClassDeclaration=233]="ClassDeclaration",e[e.InterfaceDeclaration=234]="InterfaceDeclaration",e[e.TypeAliasDeclaration=235]="TypeAliasDeclaration",e[e.EnumDeclaration=236]="EnumDeclaration",e[e.ModuleDeclaration=237]="ModuleDeclaration",e[e.ModuleBlock=238]="ModuleBlock",e[e.CaseBlock=239]="CaseBlock",e[e.NamespaceExportDeclaration=240]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=241]="ImportEqualsDeclaration",e[e.ImportDeclaration=242]="ImportDeclaration",e[e.ImportClause=243]="ImportClause",e[e.NamespaceImport=244]="NamespaceImport",e[e.NamedImports=245]="NamedImports",e[e.ImportSpecifier=246]="ImportSpecifier",e[e.ExportAssignment=247]="ExportAssignment",e[e.ExportDeclaration=248]="ExportDeclaration",e[e.NamedExports=249]="NamedExports",e[e.ExportSpecifier=250]="ExportSpecifier",e[e.MissingDeclaration=251]="MissingDeclaration",e[e.ExternalModuleReference=252]="ExternalModuleReference",e[e.JsxElement=253]="JsxElement",e[e.JsxSelfClosingElement=254]="JsxSelfClosingElement",e[e.JsxOpeningElement=255]="JsxOpeningElement",e[e.JsxClosingElement=256]="JsxClosingElement",e[e.JsxFragment=257]="JsxFragment",e[e.JsxOpeningFragment=258]="JsxOpeningFragment",e[e.JsxClosingFragment=259]="JsxClosingFragment",e[e.JsxAttribute=260]="JsxAttribute",e[e.JsxAttributes=261]="JsxAttributes",e[e.JsxSpreadAttribute=262]="JsxSpreadAttribute",e[e.JsxExpression=263]="JsxExpression",e[e.CaseClause=264]="CaseClause",e[e.DefaultClause=265]="DefaultClause",e[e.HeritageClause=266]="HeritageClause",e[e.CatchClause=267]="CatchClause",e[e.PropertyAssignment=268]="PropertyAssignment",e[e.ShorthandPropertyAssignment=269]="ShorthandPropertyAssignment",e[e.SpreadAssignment=270]="SpreadAssignment",e[e.EnumMember=271]="EnumMember",e[e.SourceFile=272]="SourceFile",e[e.Bundle=273]="Bundle",e[e.JSDocTypeExpression=274]="JSDocTypeExpression",e[e.JSDocAllType=275]="JSDocAllType",e[e.JSDocUnknownType=276]="JSDocUnknownType",e[e.JSDocNullableType=277]="JSDocNullableType",e[e.JSDocNonNullableType=278]="JSDocNonNullableType",e[e.JSDocOptionalType=279]="JSDocOptionalType",e[e.JSDocFunctionType=280]="JSDocFunctionType",e[e.JSDocVariadicType=281]="JSDocVariadicType",e[e.JSDocComment=282]="JSDocComment",e[e.JSDocTypeLiteral=283]="JSDocTypeLiteral",e[e.JSDocTag=284]="JSDocTag",e[e.JSDocAugmentsTag=285]="JSDocAugmentsTag",e[e.JSDocClassTag=286]="JSDocClassTag",e[e.JSDocParameterTag=287]="JSDocParameterTag",e[e.JSDocReturnTag=288]="JSDocReturnTag",e[e.JSDocTypeTag=289]="JSDocTypeTag",e[e.JSDocTemplateTag=290]="JSDocTemplateTag",e[e.JSDocTypedefTag=291]="JSDocTypedefTag",e[e.JSDocPropertyTag=292]="JSDocPropertyTag",e[e.SyntaxList=293]="SyntaxList",e[e.NotEmittedStatement=294]="NotEmittedStatement",e[e.PartiallyEmittedExpression=295]="PartiallyEmittedExpression",e[e.CommaListExpression=296]="CommaListExpression",e[e.MergeDeclarationMarker=297]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=298]="EndOfDeclarationMarker",e[e.Count=299]="Count",e[e.FirstAssignment=58]="FirstAssignment",e[e.LastAssignment=70]="LastAssignment",e[e.FirstCompoundAssignment=59]="FirstCompoundAssignment",e[e.LastCompoundAssignment=70]="LastCompoundAssignment",e[e.FirstReservedWord=72]="FirstReservedWord",e[e.LastReservedWord=107]="LastReservedWord",e[e.FirstKeyword=72]="FirstKeyword",e[e.LastKeyword=144]="LastKeyword",e[e.FirstFutureReservedWord=108]="FirstFutureReservedWord",e[e.LastFutureReservedWord=116]="LastFutureReservedWord",e[e.FirstTypeNode=160]="FirstTypeNode",e[e.LastTypeNode=177]="LastTypeNode",e[e.FirstPunctuation=17]="FirstPunctuation",e[e.LastPunctuation=70]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=144]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=13]="LastLiteralToken",e[e.FirstTemplateToken=13]="FirstTemplateToken",e[e.LastTemplateToken=16]="LastTemplateToken",e[e.FirstBinaryOperator=27]="FirstBinaryOperator",e[e.LastBinaryOperator=70]="LastBinaryOperator",e[e.FirstNode=145]="FirstNode",e[e.FirstJSDocNode=274]="FirstJSDocNode",e[e.LastJSDocNode=292]="LastJSDocNode",e[e.FirstJSDocTagNode=284]="FirstJSDocTagNode",e[e.LastJSDocTagNode=292]="LastJSDocTagNode",e[e.FirstContextualKeyword=117]="FirstContextualKeyword",e[e.LastContextualKeyword=144]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.JSDoc=1048576]="JSDoc",e[e.Ambient=2097152]="Ambient",e[e.InWithStatement=4194304]="InWithStatement",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=6387712]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.SkipNameGenerationScope=8]="SkipNameGenerationScope",e[e.ReservedInNestedScopes=16]="ReservedInNestedScopes"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));var n,t=function(){return function(){}}();e.OperationCanceledException=t,function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.IgnoreErrors=3112960]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.StringLikeType=4]="StringLikeType",e[e.BooleanType=5]="BooleanType",e[e.ArrayLikeType=6]="ArrayLikeType",e[e.ESSymbolType=7]="ESSymbolType",e[e.Promise=8]="Promise",e[e.TypeWithCallSignature=9]="TypeWithCallSignature",e[e.ObjectType=10]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.JSContainer=67108864]="JSContainer",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=67216319]="Value",e[e.Type=67901928]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=67216318]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=67216319]="BlockScopedVariableExcludes",e[e.ParameterExcludes=67216319]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=68008959]="EnumMemberExcludes",e[e.FunctionExcludes=67215791]="FunctionExcludes",e[e.ClassExcludes=68008383]="ClassExcludes",e[e.InterfaceExcludes=67901832]="InterfaceExcludes",e[e.RegularEnumExcludes=68008191]="RegularEnumExcludes",e[e.ConstEnumExcludes=68008831]="ConstEnumExcludes",e[e.ValueModuleExcludes=67215503]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=67208127]="MethodExcludes",e[e.GetAccessorExcludes=67150783]="GetAccessorExcludes",e[e.SetAccessorExcludes=67183551]="SetAccessorExcludes",e[e.TypeParameterExcludes=67639784]="TypeParameterExcludes",e[e.TypeAliasExcludes=67901928]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.HasExports=1952]="HasExports",e[e.HasMembers=6240]="HasMembers",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.Partial=16]="Partial",e[e.HasNonUniformType=32]="HasNonUniformType",e[e.ContainsPublic=64]="ContainsPublic",e[e.ContainsProtected=128]="ContainsProtected",e[e.ContainsPrivate=256]="ContainsPrivate",e[e.ContainsStatic=512]="ContainsStatic",e[e.Late=1024]="Late",e[e.ReverseMapped=2048]="ReverseMapped",e[e.Synthetic=6]="Synthetic"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.CapturedBlockScopedBinding=131072]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=262144]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=524288]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=1048576]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=2097152]="NeedsLoopOutParameter",e[e.AssignmentsMarked=4194304]="AssignmentsMarked",e[e.ClassWithConstructorReference=8388608]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=16777216]="ConstructorReferenceInClass"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.String=2]="String",e[e.Number=4]="Number",e[e.Boolean=8]="Boolean",e[e.Enum=16]="Enum",e[e.StringLiteral=32]="StringLiteral",e[e.NumberLiteral=64]="NumberLiteral",e[e.BooleanLiteral=128]="BooleanLiteral",e[e.EnumLiteral=256]="EnumLiteral",e[e.ESSymbol=512]="ESSymbol",e[e.UniqueESSymbol=1024]="UniqueESSymbol",e[e.Void=2048]="Void",e[e.Undefined=4096]="Undefined",e[e.Null=8192]="Null",e[e.Never=16384]="Never",e[e.TypeParameter=32768]="TypeParameter",e[e.Object=65536]="Object",e[e.Union=131072]="Union",e[e.Intersection=262144]="Intersection",e[e.Index=524288]="Index",e[e.IndexedAccess=1048576]="IndexedAccess",e[e.Conditional=2097152]="Conditional",e[e.Substitution=4194304]="Substitution",e[e.FreshLiteral=8388608]="FreshLiteral",e[e.ContainsWideningType=16777216]="ContainsWideningType",e[e.ContainsObjectLiteral=33554432]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=67108864]="ContainsAnyFunctionType",e[e.NonPrimitive=134217728]="NonPrimitive",e[e.GenericMappedType=536870912]="GenericMappedType",e[e.Nullable=12288]="Nullable",e[e.Literal=224]="Literal",e[e.Unit=13536]="Unit",e[e.StringOrNumberLiteral=96]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=1120]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=14560]="DefinitelyFalsy",e[e.PossiblyFalsy=14574]="PossiblyFalsy",e[e.Intrinsic=134249103]="Intrinsic",e[e.Primitive=16382]="Primitive",e[e.StringLike=524322]="StringLike",e[e.NumberLike=84]="NumberLike",e[e.BooleanLike=136]="BooleanLike",e[e.EnumLike=272]="EnumLike",e[e.ESSymbolLike=1536]="ESSymbolLike",e[e.UnionOrIntersection=393216]="UnionOrIntersection",e[e.StructuredType=458752]="StructuredType",e[e.TypeVariable=1081344]="TypeVariable",e[e.InstantiableNonPrimitive=7372800]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=524288]="InstantiablePrimitive",e[e.Instantiable=7897088]="Instantiable",e[e.StructuredOrInstantiable=8355840]="StructuredOrInstantiable",e[e.Narrowable=142575359]="Narrowable",e[e.NotUnionOrUnit=134283777]="NotUnionOrUnit",e[e.RequiresWidening=50331648]="RequiresWidening",e[e.PropagatingFlags=117440512]="PropagatingFlags"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.ClassOrInterface=3]="ClassOrInterface"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent"}(e.Variance||(e.Variance={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.MappedTypeConstraint=4]="MappedTypeConstraint",e[e.ReturnType=8]="ReturnType",e[e.LiteralKeyof=16]="LiteralKeyof",e[e.NoConstraints=32]="NoConstraints",e[e.AlwaysStrict=64]="AlwaysStrict",e[e.PriorityImpliesCombination=28]="PriorityImpliesCombination"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.InferUnionTypes=1]="InferUnionTypes",e[e.NoDefault=2]="NoDefault",e[e.AnyDefault=4]="AnyDefault"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype"}(e.SpecialPropertyAssignmentKind||(e.SpecialPropertyAssignmentKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(n=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=n[e.category];return t?r.toLowerCase():r},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=6]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ESNext=6]="ESNext",e[e.Latest=6]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.Simple=0]="Simple",e[e.Pretty=1]="Pretty"}(e.DiagnosticStyle||(e.DiagnosticStyle={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.TypeScript=1]="TypeScript",e[e.ContainsTypeScript=2]="ContainsTypeScript",e[e.ContainsJsx=4]="ContainsJsx",e[e.ContainsESNext=8]="ContainsESNext",e[e.ContainsES2017=16]="ContainsES2017",e[e.ContainsES2016=32]="ContainsES2016",e[e.ES2015=64]="ES2015",e[e.ContainsES2015=128]="ContainsES2015",e[e.Generator=256]="Generator",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.DestructuringAssignment=1024]="DestructuringAssignment",e[e.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",e[e.ContainsDecorators=4096]="ContainsDecorators",e[e.ContainsPropertyInitializer=8192]="ContainsPropertyInitializer",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsCapturedLexicalThis=32768]="ContainsCapturedLexicalThis",e[e.ContainsLexicalThisInComputedPropertyName=65536]="ContainsLexicalThisInComputedPropertyName",e[e.ContainsDefaultValueAssignments=131072]="ContainsDefaultValueAssignments",e[e.ContainsParameterPropertyAssignments=262144]="ContainsParameterPropertyAssignments",e[e.ContainsSpread=524288]="ContainsSpread",e[e.ContainsObjectSpread=1048576]="ContainsObjectSpread",e[e.ContainsRest=524288]="ContainsRest",e[e.ContainsObjectRest=1048576]="ContainsObjectRest",e[e.ContainsComputedPropertyName=2097152]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=4194304]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=8388608]="ContainsBindingPattern",e[e.ContainsYield=16777216]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=33554432]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=67108864]="ContainsDynamicImport",e[e.Super=134217728]="Super",e[e.ContainsSuper=268435456]="ContainsSuper",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=3]="AssertTypeScript",e[e.AssertJsx=4]="AssertJsx",e[e.AssertESNext=8]="AssertESNext",e[e.AssertES2017=16]="AssertES2017",e[e.AssertES2016=32]="AssertES2016",e[e.AssertES2015=192]="AssertES2015",e[e.AssertGenerator=768]="AssertGenerator",e[e.AssertDestructuringAssignment=3072]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536872257]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=671089985]="PropertyAccessExcludes",e[e.NodeExcludes=939525441]="NodeExcludes",e[e.ArrowFunctionExcludes=1003902273]="ArrowFunctionExcludes",e[e.FunctionExcludes=1003935041]="FunctionExcludes",e[e.ConstructorExcludes=1003668801]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=1003668801]="MethodOrAccessorExcludes",e[e.ClassExcludes=942011713]="ClassExcludes",e[e.ModuleExcludes=977327425]="ModuleExcludes",e[e.TypeExcludes=-3]="TypeExcludes",e[e.ObjectLiteralExcludes=942740801]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=940049729]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=948962625]="VariableDeclarationListExcludes",e[e.ParameterExcludes=939525441]="ParameterExcludes",e[e.CatchClauseExcludes=940574017]="CatchClauseExcludes",e[e.BindingPatternExcludes=940049729]="BindingPatternExcludes",e[e.TypeScriptClassSyntaxMask=274432]="TypeScriptClassSyntaxMask",e[e.ES2015FunctionSyntaxMask=163840]="ES2015FunctionSyntaxMask"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.MakeTemplateObject=65536]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=65536]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified"}(e.EmitHint||(e.EmitHint={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",e[e.SingleElement=524288]="SingleElement",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=262576]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=262448]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=263122]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=131072]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26896]="TypeArguments",e[e.TypeParameters=26896]="TypeParameters",e[e.Parameters=1296]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",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}}}(u||(u={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(n){var t,r,a,i="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;n.mark=function(n){o&&(r.set(n,e.timestamp()),t.set(n,(t.get(n)||0)+1),i(n))},n.measure=function(n,t,i){if(o){var l=i&&r.get(i)||e.timestamp(),c=t&&r.get(t)||s;a.set(n,(a.get(n)||0)+(l-c))}},n.getCount=function(e){return t&&t.get(e)||0},n.getDuration=function(e){return a&&a.get(e)||0},n.forEachMeasure=function(e){a.forEach(function(n,t){e(t,n)})},n.enable=function(){t=e.createMap(),r=e.createMap(),a=e.createMap(),o=!0,s=e.timestamp()},n.disable=function(){o=!1}}(e.performance||(e.performance={}))}(u||(u={})),function(e){e.versionMajorMinor="2.8",e.version=e.versionMajorMinor+".1"}(u||(u={})),function(e){e.isExternalModuleNameRelative=function(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)},e.sortAndDeduplicateDiagnostics=function(n){return e.sortAndDeduplicate(n,e.compareDiagnostics)}}(u||(u={})),function(e){function n(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function t(){return new a}e.emptyArray=[],e.closeFileWatcher=function(e){e.close()},e.createMap=t,e.createUnderscoreEscapedMap=function(){return new a},e.createSymbolTable=function(e){var n=t();if(e)for(var r=0,a=e;r<a.length;r++){var i=a[r];n.set(i.escapedName,i)}return n},e.createMapFromTemplate=function(e){var n=new a;for(var t in e)C.call(e,t)&&n.set(t,e[t]);return n};var r,a="undefined"!=typeof Map&&"entries"in Map.prototype?Map:(r=function(){function e(e,n){this.index=0,this.data=e,this.selector=n,this.keys=Object.keys(e)}return e.prototype.next=function(){var e=this.index;return e<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[e]),done:!1}):{value:void 0,done:!0}},e}(),function(){function e(){this.data=n(),this.size=0}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,n){return this.has(e)||this.size++,this.data[e]=n,this},e.prototype.has=function(e){return e in this.data},e.prototype.delete=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},e.prototype.clear=function(){this.data=n(),this.size=0},e.prototype.keys=function(){return new r(this.data,function(e,n){return n})},e.prototype.values=function(){return new r(this.data,function(e,n){return e[n]})},e.prototype.entries=function(){return new r(this.data,function(e,n){return[n,e[n]]})},e.prototype.forEach=function(e){for(var n in this.data)e(this.data[n],n)},e}());function i(e,n){if(e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}}function o(e,n){if(e)for(var t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0}function s(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r,t))return r}}function l(e,n){for(var t=0;t<e.length;t++)if(n(e[t],t))return t;return-1}function c(e,n,t){if(void 0===t&&(t=W),e)for(var r=0,a=e;r<a.length;r++){if(t(a[r],n))return!0}return!1}function u(e,n,t){for(var r=t||0;r<e.length;r++)if(c(n,e.charCodeAt(r)))return r;return-1}function d(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r],r))}return t}function m(e){var n;if(e){n=[];for(var t=0,r=e;t<r.length;t++){var a=r[t];a&&(F(a)?y(n,a):n.push(a))}}return n}function p(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++){var a=n(e[r],r);a&&(F(a)?y(t,a):t.push(a))}}return t}function f(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 g(e,n,t){return e?0===e.length?[]:1===e.length?e.slice():t?function(e,n,t){var r=e.map(function(e,n){return n});b(e,r,t);for(var a=e[r[0]],i=[r[0]],o=1;o<r.length;o++){var s=r[o],l=e[s];n(a,l)||(i.push(s),a=l)}return i.sort(),i.map(function(n){return e[n]})}(e,n,t):function(e,n){for(var t=[],r=0,a=e;r<a.length;r++)h(t,a[r],n);return t}(e,n):void 0}function v(e,n,t){if(void 0===t&&(t=W),!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]))return!1;return!0}function _(e,n){return n<0?e.length+n:n}function y(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:_(n,t),r=void 0===r?n.length:_(n,r);for(var a=t;a<r&&a<n.length;a++)void 0!==n[a]&&e.push(n[a]);return e}function h(e,n,t){return!c(e,n,t)&&(e.push(n),!0)}function b(e,n,t){n.sort(function(n,r){return t(e[n],e[r])||X(n,r)})}function E(e,n){return e.slice().sort(n)}function T(e){var n=0;return{next:function(){return n===e.length?{value:void 0,done:!0}:{value:e[++n-1],done:!1}}}}function S(e,n){if(e&&(n=_(e,n))<e.length)return e[n]}function L(e){return S(e,-1)}function A(e,n,t,r,a){if(!e||0===e.length)return-1;for(var i=a||0,o=e.length-1,s=t(n);i<=o;){var l=i+(o-i>>1);switch(r(t(e[l]),s)){case-1:i=l+1;break;case 0:return l;case 1:o=l-1}}return~i}function x(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,l=void 0;for(arguments.length<=2?(l=e[o],o++):l=t;o<=s;)l=n(l,e[o],o),o++;return l}}return t}e.toPath=function(e,n,t){return t(fe(e)?oe(e):_e(e,n))},e.length=function(e){return e?e.length:0},e.forEach=i,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(),r=t.value;if(t.done)return;var a=n(r);if(void 0!==a)return a}},e.findAncestor=function(e,n){for(;e;){var t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}},e.zipWith=function(e,n,t){var r=[];Je.assertEqual(e.length,n.length);for(var a=0;a<e.length;a++)r.push(t(e[a],n[a],a));return r},e.zipToIterator=function(e,n){Je.assertEqual(e.length,n.length);var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:[e[++t-1],n[t-1]],done:!1}}}},e.zipToMap=function(e,n){Je.assert(e.length===n.length);for(var r=t(),a=0;a<e.length;++a)r.set(e[a],n[a]);return r},e.every=o,e.find=s,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=l,e.findMap=function(e,n){for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}Je.fail()},e.contains=c,e.arraysEqual=function(e,n,t){return void 0===t&&(t=W),e.length===n.length&&e.every(function(e,r){return t(e,n[r])})},e.indexOfAnyCharCode=u,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=d,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=m,e.flatMap=p,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:F(r)?T(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||F(i))&&(t||(t=e.slice(0,r)),F(i)?y(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.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.span=function(e,n){if(e){for(var t=0;t<e.length;t++)if(!n(e[t],t))return[e.slice(0,t),e.slice(t)];return[e.slice(0),[]]}},e.spanMap=function(e,n,t){var r;if(e){r=[];for(var a=e.length,i=void 0,o=void 0,s=0,l=0;s<a;){for(;l<a;){if(o=n(e[l],l),0===l)i=o;else if(o!==i)break;l++}if(s<l){var c=t(e.slice(s,l),i,s,l);c&&r.push(c),s=l}i=o,l++}}return r},e.mapEntries=function(e,n){if(e){var r=t();return e.forEach(function(e,t){var a=n(t,e),i=a[0],o=a[1];r.set(i,o)}),r}},e.some=f,e.concatenate=function(e,n){return f(n)?f(e)?e.concat(n):n:e},e.deduplicate=g,e.insertSorted=function(e,n,t){if(0!==e.length){var r=A(e,n,H,t);r<0&&e.splice(~r,0,n)}else e.push(n)},e.sortAndDeduplicate=function(e,n,t){return function(e,n){if(e){if(0===e.length)return[];for(var t=e[0],r=[t],a=1;a<e.length;a++){var i=e[a];switch(n(i,t)){case!0:case 0:continue;case-1:return Je.fail("Array is unsorted.")}r.push(t=i)}return r}}(E(e,n),t||n)},e.arrayIsEqualTo=v,e.changesAffectModuleResolution=function(e,n){return!(e&&e.module===n.module&&e.moduleResolution===n.moduleResolution&&e.noResolve===n.noResolve&&e.target===n.target&&e.noLib===n.noLib&&e.jsx===n.jsx&&e.allowJs===n.allowJs&&e.rootDir===n.rootDir&&e.configFilePath===n.configFilePath&&e.baseUrl===n.baseUrl&&e.maxNodeModuleJsDepth===n.maxNodeModuleJsDepth&&v(e.lib,n.lib)&&v(e.typeRoots,n.typeRoots)&&v(e.rootDirs,n.rootDirs)&&O(e.paths,n.paths))},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(e,n,t){if(!n||!e||0===n.length||0===e.length)return n;var r=[];e:for(var a=0,i=0;i<n.length;i++){i>0&&Je.assertGreaterThanOrEqual(t(n[i],n[i-1]),0);n:for(var o=a;a<e.length;a++)switch(a>o&&Je.assertGreaterThanOrEqual(t(e[a],e[a-1]),0),t(n[i],e[a])){case-1:r.push(n[i]);continue e;case 0:continue e;case 1:continue n}}return r},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=function(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)},e.addRange=y,e.pushIfUnique=h,e.appendIfUnique=function(e,n,t){return e?(h(e,n,t),e):[n]},e.sort=E,e.best=function(e,n){var t=e.next();if(!t.done)for(var r=t.value;;){var a=e.next(),i=a.value;if(a.done)return r;n(i,r)&&(r=i)}},e.arrayIterator=T,e.stableSort=function(e,n){var t=e.map(function(e,n){return n});return b(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=S,e.firstOrUndefined=function(e){return S(e,0)},e.first=function(e){return Je.assert(0!==e.length),e[0]},e.lastOrUndefined=L,e.last=function(e){return Je.assert(0!==e.length),e[e.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=A,e.reduceLeft=x;var C=Object.prototype.hasOwnProperty;function k(e,n){return C.call(e,n)}function M(e,n){for(var t,r=[],a=e.next(),i=a.value,o=a.done;!o;i=(t=e.next()).value,o=t.done,t)r.push(n?n(i):i);return r}function D(e,n){e.forEach(function(e,t){n.set(t,e)})}function O(e,n,t){if(void 0===t&&(t=W),e===n)return!0;if(!e||!n)return!1;for(var r in e)if(C.call(e,r)){if(void 0===!C.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(var r in n)if(C.call(n,r)&&!C.call(e,r))return!1;return!0}function R(e,n,r){void 0===r&&(r=H);for(var a=t(),i=0,o=e;i<o.length;i++){var s=o[i];a.set(n(s),r(s))}return a}function I(e,n,t){void 0===t&&(t=H);for(var r=N(),a=0,i=e;a<i.length;a++){var o=i[a];r.add(n(o),t(o))}return r}function N(){var e=t();return e.add=w,e.remove=P,e}function w(e,n){var t=this.get(e);return t?t.push(n):this.set(e,t=[n]),t}function P(e,n){var t=this.get(e);t&&(sn(t,n),t.length||this.delete(e))}function F(e){return Array.isArray?Array.isArray(e):e instanceof Array}function V(e){return"string"==typeof e}function G(e){}function H(e){return e}function K(e){return e.toLowerCase()}function B(e,n,t,r,a){if(a){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return x(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}}function U(e,n,t){return t=t||0,e.replace(/{(\d+)}/g,function(e,r){return n[+r+t]})}function j(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function W(e,n){return e===n}function q(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()}function z(e,n){return W(e,n)}function J(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function X(e,n){return J(e,n)}function Y(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 Q(e,n){return J(e,n)}e.hasProperty=k,e.getProperty=function(e,n){return C.call(e,n)?e[n]:void 0},e.getOwnKeys=function(e){var n=[];for(var t in e)C.call(e,t)&&n.push(t);return n},e.getOwnValues=function(e){var n=[];for(var t in e)C.call(e,t)&&n.push(e[t]);return n},e.arrayFrom=M,e.forEachEntry=function(e,n){for(var t,r=e.entries(),a=r.next(),i=a.value,o=a.done;!o;i=(t=r.next()).value,o=t.done,t){var s=i[0],l=n(i[1],s);if(l)return l}},e.forEachKey=function(e,n){for(var t,r=e.keys(),a=r.next(),i=a.value,o=a.done;!o;i=(t=r.next()).value,o=t.done,t){var s=n(i);if(s)return s}},e.copyEntries=D,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];for(var o in i)k(i,o)&&(e[o]=i[o])}return e},e.equalOwnProperties=O,e.arrayToMap=R,e.arrayToNumericMap=function(e,n,t){void 0===t&&(t=H);for(var r=[],a=0,i=e;a<i.length;a++){var o=i[a];r[n(o)]=t(o)}return r},e.arrayToSet=function(e,n){return R(e,n||function(e){return e},function(){return!0})},e.arrayToMultiMap=I,e.group=function(e,n){return M(I(e,n).values())},e.cloneMap=function(e){var n=t();return D(e,n),n},e.clone=function(e){var n={};for(var t in e)C.call(e,t)&&(n[t]=e[t]);return n},e.extend=function(e,n){var t={};for(var r in n)C.call(n,r)&&(t[r]=n[r]);for(var r in e)C.call(e,r)&&(t[r]=e[r]);return t},e.createMultiMap=N,e.isArray=F,e.toArray=function(e){return F(e)?e:[e]},e.isString=V,e.tryCast=function(e,n){return void 0!==e&&n(e)?e:void 0},e.cast=function(e,n){if(void 0!==e&&n(e))return e;e&&"number"==typeof e.kind?Je.fail("Invalid cast. The supplied "+Je.showSyntaxKind(e)+" did not pass the test '"+Je.getFunctionName(n)+"'."):Je.fail("Invalid cast. The supplied value did not pass the test '"+Je.getFunctionName(n)+"'.")},e.noop=G,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.identity=H,e.toLowerCase=K,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.chain=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 B.apply(void 0,d(i,function(n){return n(e)}))}}return r?function(a){return B(e(a),n(a),t(a),r(a))}:t?function(r){return B(e(r),n(r),t(r))}:n?function(t){return B(e(t),n(t))}:e?function(n){return B(e(n))}:function(e){return function(e){return e}}},e.compose=B,e.formatStringFromArgs=U,e.getLocaleSpecificMessage=j,e.createFileDiagnostic=function(e,n,t,r){Je.assertGreaterThanOrEqual(n,0),Je.assertGreaterThanOrEqual(t,0),e&&(Je.assertLessThanOrEqual(n,e.text.length),Je.assertLessThanOrEqual(n+t,e.text.length));var a=j(r);return arguments.length>4&&(a=U(a,arguments,4)),{file:e,start:n,length:t,messageText:a,category:r.category,code:r.code}},e.formatMessage=function(e,n){var t=j(n);return arguments.length>2&&(t=U(t,arguments,2)),t},e.createCompilerDiagnostic=function(e){var n=j(e);return arguments.length>1&&(n=U(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,n){var t=j(n);return arguments.length>2&&(t=U(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next;return t.next=n,e},e.equateValues=W,e.equateStringsCaseInsensitive=q,e.equateStringsCaseSensitive=z,e.compareValues=X,e.compareStringsCaseInsensitive=Y,e.compareStringsCaseSensitive=Q;var Z,$,ee=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 ne(e){return e.file?e.file.fileName:void 0}function te(e){return e.replace(/\\/g,"/")}function re(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var n=e.indexOf("/",2);if(n<0)return 2;var t=e.indexOf("/",n+1);return t<0?n+1:t+1}if(58===e.charCodeAt(1)&&(47===e.charCodeAt(2)||92===e.charCodeAt(2)))return 3;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var r=e.indexOf("://");return-1!==r?r+"://".length:0}e.getUILocale=function(){return $},e.setUILocale=function(e){$!==e&&($=e,Z=void 0)},e.compareStringsCaseSensitiveUI=function(e,n){return(Z||(Z=ee($)))(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.compareDiagnostics=function(e,n){return Q(ne(e),ne(n))||X(e.start,n.start)||X(e.length,n.length)||X(e.code,n.code)||function(e,n){for(;e&&n;){var t=V(e)?e:e.messageText,r=V(n)?n:n.messageText,a=Q(t,r);if(a)return a;e=V(e)?void 0:e.next,n=V(n)?void 0:n.next}return e||n?e?1:-1:0}(e.messageText,n.messageText)||0},e.compareBooleans=function(e,n){return X(e?1:0,n?1:0)},e.normalizeSlashes=te,e.getRootLength=re,e.directorySeparator="/";var ae=47;function ie(n,t){for(var r=[],a=0,i=n.substr(t).split(e.directorySeparator);a<i.length;a++){var o=i[a];"."!==o&&(".."===o&&r.length>0&&".."!==L(r)?r.pop():o&&r.push(o))}return r}function oe(e){return se(e).path}function se(n){var t=re(n=te(n)),r=n.substr(0,t),a=ie(n,t);if(a.length){var i=r+a.join(e.directorySeparator);return{path:le(n)?i+e.directorySeparator:i,parts:a}}return{path:r,parts:a}}function le(e){return e.charCodeAt(e.length-1)===ae}function ce(n){return n.substr(0,Math.max(re(n),n.lastIndexOf(e.directorySeparator)))}function ue(e){return e&&!fe(e)&&Ce(e,"://")}function de(e){return e.target||0}function me(n){return"number"==typeof n.module?n.module:de(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function pe(e){for(var n=!1,t=0;t<e.length;t++)if(42===e.charCodeAt(t)){if(n)return!1;n=!0}return!0}function fe(e){return e&&0!==re(e)}function ge(e,n){var t=ie(e,n);return[e.substr(0,n)].concat(t)}function ve(e,n){var t=re(e=te(e));return 0===t&&(t=re(e=Te(te(n),e))),ge(e,t)}function _e(e,n){return ye(ve(e,n))}function ye(n){if(n&&n.length)return n[0]+n.slice(1).join(e.directorySeparator)}function he(n,t){return ue(n)?function(n){for(var t=n.length,r=n.indexOf("://")+"://".length;r<t&&47===n.charCodeAt(r);)r++;if(r===t)return[n];var a=n.indexOf(e.directorySeparator,r);return-1!==a?ge(n,r=a+1):[n+e.directorySeparator]}(n):ve(n,t)}function be(n,t,r,a,i){var o,s=he(t,r),l=he(n,r);for(l.length>1&&""===L(l)&&l.pop(),o=0;o<s.length&&o<l.length&&a(l[o])===a(s[o]);o++);if(o){for(var c="",u=s.slice(o,s.length);o<l.length;o++)""!==l[o]&&(c=c+".."+e.directorySeparator);return c+u.join(e.directorySeparator)}var d=ye(s);return i&&fe(d)&&(d="file:///"+d),d}function Ee(n){if(void 0!==n){var t=n.lastIndexOf(e.directorySeparator);return t<0?n:n.substring(t+1)}}function Te(n,t){return n&&n.length?t&&t.length?0!==re(t)?t:n.charAt(n.length-1)===e.directorySeparator?n+t:n+e.directorySeparator+t:n:t}function Se(n){return n.charAt(n.length-1)===e.directorySeparator?n.substr(0,n.length-1):n}function Le(e,n,t,r){if(void 0===e||void 0===n)return!1;if(e===n)return!0;if((e=Se(e))===(n=Se(n)))return!0;var a=ve(e,t),i=ve(n,t);if(i.length<a.length)return!1;for(var o=r?q:z,s=0;s<a.length;s++)if(!o(a[s],i[s]))return!1;return!0}function Ae(e,n){return 0===e.lastIndexOf(n,0)}function xe(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function Ce(e,n){return-1!==e.indexOf(n)}function ke(e){return Ce(Ee(e),".")}function Me(e,n){return e.length>n.length&&xe(e,n)}function De(e,n){for(var t=0,r=n;t<r.length;t++){if(Me(e,r[t]))return!0}return!1}e.normalizePath=oe,e.normalizePathAndParts=se,e.pathEndsWithDirectorySeparator=le,e.getDirectoryPath=ce,e.isUrl=ue,e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.getEmitScriptTarget=de,e.getEmitModuleKind=me,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;return void 0===t&&(t=me(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t},e.getAllowSyntheticDefaultImports=function(n){var t=me(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop?t!==e.ModuleKind.None&&t<e.ModuleKind.ES2015:t===e.ModuleKind.System},e.getStrictOptionValue=function(e,n){return void 0===e[n]?e.strict:e[n]},e.hasZeroOrOneAsteriskCharacter=pe,e.isRootedDiskPath=fe,e.convertToRelativePath=function(e,n,t){return fe(e)?be(n,e,n,t,!1):e},e.getNormalizedPathComponents=ve,e.getNormalizedAbsolutePath=_e,e.getNormalizedPathFromPathComponents=ye,e.getRelativePathToDirectoryOrUrl=be,e.getBaseFileName=Ee,e.combinePaths=Te,e.removeTrailingDirectorySeparator=Se,e.ensureTrailingDirectorySeparator=function(n){return n.charAt(n.length-1)!==e.directorySeparator?n+e.directorySeparator:n},e.comparePaths=function(e,n,t,r){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;e=Se(e),n=Se(n);for(var a=ve(e,t),i=ve(n,t),o=Math.min(a.length,i.length),s=r?Y:Q,l=0;l<o;l++){var c=s(a[l],i[l]);if(0!==c)return c}return X(a.length,i.length)},e.containsPath=Le,e.startsWith=Ae,e.removePrefix=function(e,n){return Ae(e,n)?e.substr(n.length):e},e.endsWith=xe,e.removeSuffix=function(e,n){return xe(e,n)?e.slice(0,e.length-n.length):e},e.stringContains=Ce,e.hasExtension=ke,e.fileExtensionIs=Me,e.fileExtensionIsOneOf=De;var Oe=/[^\w\s\/]/g,Re=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Ie="(?!("+e.commonPackageFolders.join("|")+")(/|$))",Ne={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Ie+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Ke(e,Ne.singleAsteriskRegexFragment)}},we={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Ie+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Ke(e,we.singleAsteriskRegexFragment)}},Pe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Ke(e,Pe.singleAsteriskRegexFragment)}},Fe={files:Ne,directories:we,exclude:Pe};function Ve(e,n,t){var r=Ge(e,n,t);if(r&&r.length)return"^("+r.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===t?"($|/)":"$")}function Ge(n,t,r){if(void 0!==n&&0!==n.length)return p(n,function(n){return n&&function(n,t,r,a){var i=a.singleAsteriskRegexFragment,o=a.doubleAsteriskRegexFragment,s=a.replaceWildcardCharacter,l="",c=!1,u=ve(n,t),d=L(u);if("exclude"!==r&&"**"===d)return;u[0]=Se(u[0]),He(d)&&u.push("**","*");for(var m=0,p=0,f=u;p<f.length;p++){var g=f[p];if("**"===g)l+=o;else if("directories"===r&&(l+="(",m++),c&&(l+=e.directorySeparator),"exclude"!==r){var v="";42===g.charCodeAt(0)?(v+="([^./]"+i+")?",g=g.substr(1)):63===g.charCodeAt(0)&&(v+="[^./]",g=g.substr(1)),(v+=g.replace(Oe,s))!==g&&(l+=Ie),l+=v}else l+=g.replace(Oe,s);c=!0}for(;m>0;)l+=")?",m--;return l}(n,t,r,Fe[r])})}function He(e){return!/[.*?]/.test(e)}function Ke(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function Be(e,n,t,r,a){e=oe(e);var i=Te(a=oe(a),e);return{includeFilePatterns:d(Ge(t,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Ve(t,i,"files"),includeDirectoryPattern:Ve(t,i,"directories"),excludePattern:Ve(n,i,"exclude"),basePaths:function(e,n,t){var r=[e];if(n){for(var a=[],i=0,s=n;i<s.length;i++){var l=s[i],c=fe(l)?l:oe(Te(e,l));a.push(Ue(c))}a.sort(t?Q:Y);for(var u=function(n){o(r,function(r){return!Le(r,n,e,!t)})&&r.push(n)},d=0,m=a;d<m.length;d++){var p=m[d];u(p)}}return r}(e,t,r)}}function Ue(n){var t=u(n,Re);return t<0?ke(n)?Se(ce(n)):n:n.substring(0,n.lastIndexOf(e.directorySeparator,t))}function je(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=Ve,e.isImplicitGlob=He,e.getFileMatcherPatterns=Be,e.matchFiles=function(e,n,t,r,a,i,o,s){for(var c=Be(e=oe(e),t,r,a,i=oe(i)),u=a?"":"i",d=c.includeFilePatterns&&c.includeFilePatterns.map(function(e){return new RegExp(e,u)}),p=c.includeDirectoryPattern&&new RegExp(c.includeDirectoryPattern,u),f=c.excludePattern&&new RegExp(c.excludePattern,u),g=d?d.map(function(){return[]}):[[]],v=0,_=c.basePaths;v<_.length;v++){var y=_[v];h(y,Te(i,y),o)}return m(g);function h(e,t,r){for(var a=s(e),i=a.files,o=a.directories,c=function(r){var a=Te(e,r),i=Te(t,r);if(n&&!De(a,n))return"continue";if(f&&f.test(i))return"continue";if(d){var o=l(d,function(e){return e.test(i)});-1!==o&&g[o].push(a)}else g[0].push(a)},u=0,m=E(i,Q);u<m.length;u++)c(y=m[u]);if(void 0===r||0!=--r)for(var v=0,_=E(o,Q);v<_.length;v++){var y=_[v],b=Te(e,y),T=Te(t,y);p&&!p.test(T)||f&&f.test(T)||h(b,T,r)}}},e.ensureScriptKind=function(e,n){return n||je(e)||3},e.getScriptKindFromFileName=je,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var We=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);function qe(n,t){var r=n&&n.allowJs;return t&&0!==t.length&&r?g(We.concat(t.map(function(e){return e.extension})),z,Q):r?We:e.supportedTypeScriptExtensions}function ze(e,n){return e<2?0:e<n.length?2:n.length}e.getSupportedExtensions=qe,e.hasJavaScriptFileExtension=function(n){return i(e.supportedJavascriptExtensions,function(e){return Me(n,e)})},e.hasTypeScriptFileExtension=function(n){return i(e.supportedTypeScriptExtensions,function(e){return Me(n,e)})},e.isSupportedSourceFileName=function(e,n,t){if(!e)return!1;for(var r=0,a=qe(n,t);r<a.length;r++)if(Me(e,a[r]))return!0;return!1},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(e,n){for(var t=n.length-1;t>=0;t--)if(Me(e,n[t]))return ze(t,n);return 0},e.adjustExtensionPriority=ze,e.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var Je,Xe=[".d.ts",".ts",".js",".tsx",".jsx"];function Ye(e){for(var n=0,t=Xe;n<t.length;n++){var r=Qe(e,t[n]);if(void 0!==r)return r}return e}function Qe(e,n){return Me(e,n)?Ze(e,n):void 0}function Ze(e,n){return e.substring(0,e.length-n.length)}function $e(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 en(e,n){this.flags=n,Je.isDebugging&&(this.checker=e)}function nn(){}function tn(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 rn(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function an(e,n){for(var t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function on(e,n){e[n]=e[e.length-1],e.pop()}function sn(e,n){!function(e,n){for(var t=0;t<e.length;t++)if(n(e[t])){on(e,t);break}}(e,function(e){return e===n})}function ln(e,n,t){for(var r,a=-1,i=0,o=e;i<o.length;i++){var s=o[i],l=n(s);cn(l,t)&&l.prefix.length>a&&(a=l.prefix.length,r=s)}return r}function cn(e,n){var t=e.prefix,r=e.suffix;return n.length>=t.length+r.length&&Ae(n,t)&&xe(n,r)}function un(e){Je.assert(pe(e));var n=e.indexOf("*");return-1===n?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function dn(n){return s(e.supportedTypescriptExtensionsForExtractExtension,function(e){return Me(n,e)})||s(e.supportedJavascriptExtensions,function(e){return Me(n,e)})}e.removeFileExtension=Ye,e.tryRemoveExtension=Qe,e.removeExtension=Ze,e.changeExtension=function(e,n){return Ye(e)+n},e.removeMinAndVersionNumbers=function(e){var n=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(n,"").replace(n,"")},e.objectAllocator={getNodeConstructor:function(){return tn},getTokenConstructor:function(){return tn},getIdentifierConstructor:function(){return tn},getSourceFileConstructor:function(){return tn},getSymbolConstructor:function(){return $e},getTypeConstructor:function(){return en},getSignatureConstructor:function(){return nn},getSourceMapSourceConstructor:function(){return rn}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),function(n){function t(e,n,a,i){e||(a&&(n+="\r\nVerbose Debug Information: "+("string"==typeof a?a:a())),r(n?"False expression: "+n:"False expression.",i||t))}function r(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||r),t}function a(e,n){return t(void 0!==e&&null!==e,n),e}function i(n){var t=e.SyntaxKind;return t?t[n.kind]:n.kind.toString()}n.currentAssertionLevel=0,n.isDebugging=!1,n.shouldAssert=function(e){return n.currentAssertionLevel>=e},n.assert=t,n.assertEqual=function(e,n,t,a){e!==n&&r("Expected "+e+" === "+n+". "+(t?a?t+" "+a:t:""))},n.assertLessThan=function(e,n,t){e>=n&&r("Expected "+e+" < "+n+". "+(t||""))},n.assertLessThanOrEqual=function(e,n){e>n&&r("Expected "+e+" <= "+n)},n.assertGreaterThanOrEqual=function(e,n){e<n&&r("Expected "+e+" >= "+n)},n.fail=r,n.assertDefined=a,n.assertEachDefined=function(e,n){for(var t=0,r=e;t<r.length;t++)a(r[t],n);return e},n.assertNever=function e(n,t,a){return r(t||"Illegal value: "+n,a||e)},n.getFunctionName=function(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]:""},n.showSymbol=function(n){var t=e.SymbolFlags;return"{ flags: "+(t?function(e,n){for(var t=[],r=0;r<=30;r++){var a=1<<r;e&a&&t.push(n[a])}return t.join("|")}(n.flags,t):n.flags)+"; declarations: "+d(n.declarations,i)+" }"},n.showSyntaxKind=i}(Je=e.Debug||(e.Debug={})),e.orderedRemoveItem=function(e,n){for(var t=0;t<e.length;t++)if(e[t]===n)return an(e,t),!0;return!1},e.orderedRemoveItemAt=an,e.unorderedRemoveItemAt=on,e.unorderedRemoveItem=sn,e.createGetCanonicalFileName=function(e){return e?H:K},e.matchPatternOrExact=function(e,n){for(var t=[],r=0,a=e;r<a.length;r++){var i=a[r],o=un(i);if(o)t.push(o);else if(i===n)return i}return ln(t,function(e){return e},n)},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(e,n){return Je.assert(cn(e,n)),n.substring(e.prefix.length,n.length-e.suffix.length)},e.findBestPatternMatch=ln,e.tryParsePattern=un,e.positionIsSynthesized=function(e){return!(e>=0)},e.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},e.extensionFromPath=function(e){var n=dn(e);if(void 0!==n)return n;Je.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==dn(e)},e.tryGetExtensionFromPath=dn,e.getAnyExtensionFromPath=function(e){var n=Ee(e),t=n.lastIndexOf(".");if(t>=0)return n.substring(t)},e.isCheckJsEnabledForFile=function(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs},e.and=function(e,n){return function(t){return e(t)&&n(t)}},e.or=function(e,n){return function(t){return e(t)||n(t)}},e.assertTypeIsNever=function(e){},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,n,t,r,a,i){i=i||G;for(var o=0,s=0,l=e.length,c=n.length;o<l&&s<c;){var u=e[o],d=n[s],m=t(u,d);-1===m?(r(u),o++):1===m?(a(d),s++):(i(d,u),o++,s++)}for(;o<l;)r(e[o++]);for(;s<c;)a(n[s++])}}(u||(u={})),function(n){var i,o;n.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(i=n.FileWatcherEventKind||(n.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(o=n.PollingInterval||(n.PollingInterval={}));var s,c,u=[s=250,c=2*s,4*c];function d(e){return(n={})[o.Low]=e.Low,n[o.Medium]=e.Medium,n[o.High]=e.High,n;var n}n.watchFileUsingPriorityPollingInterval=function(e,n,t,r){return e.watchFile(n,t,function(e){return u[e]}(r))},n.missingFileModifiedTime=new Date(0);var m={Low:32,Medium:64,High:256},p=d(m);function f(e){if(e.getEnvironmentVariable){var t=function(e,n){var t=r(e);if(t)return a("Low"),a("Medium"),a("High"),!0;return!1;function a(e){n[e]=t[e]||n[e]}}("TSC_WATCH_POLLINGINTERVAL",o);p=a("TSC_WATCH_POLLINGCHUNKSIZE",m)||p,n.unchangedPollThresholds=a("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",m)||n.unchangedPollThresholds}function r(n){var t;return r("Low"),r("Medium"),r("High"),t;function r(r){var a=function(n,t){return e.getEnvironmentVariable(n+"_"+t.toUpperCase())}(n,r);a&&((t||(t={}))[r]=Number(a))}}function a(e,n){var a=r(e);return(t||a)&&d(a?l({},n,a):n)}}function g(e){var t=[],r=[],a=l(o.Low),i=l(o.Medium),s=l(o.High);return function(e,r,a){var i={fileName:e,callback:r,unchangedPolls:0,mtime:h(e)};return t.push(i),f(i,a),{close:function(){i.isClosed=!0,n.unorderedRemoveItem(t,i)}}};function l(e){var n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function c(e){e.pollIndex=d(e,e.pollingInterval,e.pollIndex,p[e.pollingInterval]),e.length?y(e.pollingInterval):(n.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function u(e){d(r,o.Low,0,r.length),c(e),!e.pollScheduled&&r.length&&y(o.Low)}function d(e,t,a,i){for(var s=e.length,l=a,c=0;c<i&&s>0;m(),s--){var u=e[a];if(u)if(u.isClosed)e[a]=void 0;else{c++;var d=v(u,h(u.fileName));u.isClosed?e[a]=void 0:d?(u.unchangedPolls=0,e!==r&&(e[a]=void 0,g(u))):u.unchangedPolls!==n.unchangedPollThresholds[t]?u.unchangedPolls++:e===r?(u.unchangedPolls=1,e[a]=void 0,f(u,o.Low)):t!==o.High&&(u.unchangedPolls++,e[a]=void 0,f(u,t===o.Low?o.Medium:o.High)),e[a]&&(l<a&&(e[l]=u,e[a]=void 0),l++)}}return a;function m(){++a===e.length&&(l<a&&(e.length=l),a=0,l=0)}}function m(e){switch(e){case o.Low:return a;case o.Medium:return i;case o.High:return s}}function f(e,n){m(n).push(e),_(n)}function g(e){r.push(e),_(o.Low)}function _(e){m(e).pollScheduled||y(e)}function y(n){m(n).pollScheduled=e.setTimeout(n===o.Low?u:c,n,m(n))}function h(t){return e.getModifiedTime(t)||n.missingFileModifiedTime}}function v(e,n){var t=e.mtime.getTime(),r=n.getTime();if(t!==r){e.mtime=n;var a=0===t?i.Created:0===r?i.Deleted:i.Changed;return e.callback(e.fileName,a),!0}return!1}function _(e){return t;function t(t,a){var i=e.watchDirectory(t,function(e){a(e),r(o,a)}),o={close:function(){i.close(),o.childWatches.forEach(n.closeFileWatcher),o=void 0},dirName:t,childWatches:n.emptyArray};return r(o,a),o}function r(r,a){r&&(r.childWatches=function(r,a,i){var o;return n.enumerateInsertsAndDeletes(e.directoryExists(r)?e.getAccessileSortedChildDirectories(r):n.emptyArray,a,function(t,a){return e.filePathComparer(n.getNormalizedAbsolutePath(t,r),a.dirName)},function(e){s(t(n.getNormalizedAbsolutePath(e,r),i))},n.closeFileWatcher,s),o||n.emptyArray;function s(e){(o||(o=[])).push(e)}}(r.dirName,r.childWatches,a))}}function y(){if(void 0!==e){var n=e.version;if(n){var t=n.indexOf(".");if(-1!==t)return parseInt(n.substring(1,t))}}}n.unchangedPollThresholds=d(m),n.setCustomPollingValues=f,n.createDynamicPriorityPollingWatchFile=g,n.onWatchedFileStat=v,n.createRecursiveDirectoryWatcher=_,n.getNodeMajorVersion=y,n.sys=function(){var s,l,c="\ufeff";if("undefined"!=typeof ChakraHost?(l=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)},s={newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,n){return ChakraHost.readFile(e)},writeFile:function(e,n,t){t&&(n=c+n),ChakraHost.writeFile(e,n)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(e,t,r,a,i){var o=n.getFileMatcherPatterns(e,r,a,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(e,t,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:l}):void 0!==e&&e.nextTick&&!e.browser&&(s=function(){var s,l=t(!function(){var e=new Error('Cannot find module "fs"');throw e.code="MODULE_NOT_FOUND",e}()),u=t(!function(){var e=new Error('Cannot find module "path"');throw e.code="MODULE_NOT_FOUND",e}()),d=t(!function(){var e=new Error('Cannot find module "os"');throw e.code="MODULE_NOT_FOUND",e}());try{s=t(!function(){var e=new Error('Cannot find module "crypto"');throw e.code="MODULE_NOT_FOUND",e}())}catch(e){s=void 0}var m,p=y()>=4,f=d.platform(),v="win32"!==f&&"win64"!==f&&!w((h=r,h.replace(/\w/g,function(e){var n=e.toUpperCase();return e===n?e.toLowerCase():n})));var h;!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(m||(m={}));var b,E=e.env.TSC_NONPOLLING_WATCHER,T=e.env.TSC_WATCHFILE,S=e.env.TSC_WATCHDIRECTORY,L={args:e.argv.slice(2),newLine:d.EOL,useCaseSensitiveFileNames:v,write:function(n){e.stdout.write(n)},readFile:function(e,n){if(w(e)){var t=l.readFileSync(e),r=t.length;if(r>=2&&254===t[0]&&255===t[1]){r&=-2;for(var a=0;a<r;a+=2){var i=t[a];t[a]=t[a+1],t[a+1]=i}return t.toString("utf16le",2)}return r>=2&&255===t[0]&&254===t[1]?t.toString("utf16le",2):r>=3&&239===t[0]&&187===t[1]&&191===t[2]?t.toString("utf8",3):t.toString("utf8")}},writeFile:function(e,n,t){var r;t&&(n=c+n);try{r=l.openSync(e,"w"),l.writeSync(r,n,void 0,"utf8")}finally{void 0!==r&&l.closeSync(r)}},watchFile:function(){switch(T){case"PriorityPollingInterval":return x;case"DynamicPriorityPolling":return g({getModifiedTime:F,setTimeout:setTimeout});case"UseFsEvents":return M;case"UseFsEventsWithFallbackDynamicPolling":return b=g({getModifiedTime:F,setTimeout:setTimeout}),e=b,function(n,t,r){return k(n,0,C(n,t),!1,e,r)};case"UseFsEventsOnParentDirectory":return A()}var e;return E?A():function(e,n){return x(e,n)}}(),watchDirectory:function(){if(p&&("win32"===e.platform||"darwin"===e.platform))return O;var t="RecursiveDirectoryUsingFsWatchFile"===S?R(x):"RecursiveDirectoryUsingDynamicPriorityPolling"===S?R(b||g({getModifiedTime:F,setTimeout:setTimeout})):O,r=_({filePathComparer:v?n.compareStringsCaseSensitive:n.compareStringsCaseInsensitive,directoryExists:P,getAccessileSortedChildDirectories:function(e){return I(e).directories},watchDirectory:t});return function(e,n,a){if(a)return r(e,n);t(e,n)}}(),resolvePath:function(e){return u.resolve(e)},fileExists:w,directoryExists:P,createDirectory:function(e){L.directoryExists(e)||l.mkdirSync(e)},getExecutingFilePath:function(){return r},getCurrentDirectory:function(){return e.cwd()},getDirectories:function(e){return n.filter(l.readdirSync(e),function(t){return N(n.combinePaths(e,t),1)})},getEnvironmentVariable:function(n){return e.env[n]||""},readDirectory:function(t,r,a,i,o){return n.matchFiles(t,r,a,i,v,e.cwd(),o,I)},getModifiedTime:F,createHash:s?function(e){var n=s.createHash("md5");return n.update(e),n.digest("hex")}:function(e){return""+e.split("").map(function(e){return e.charCodeAt(0)}).reduce(function(e,n){return(e<<5)+e+n},5381)},getMemoryUsage:function(){return a.gc&&a.gc(),e.memoryUsage().heapUsed},getFileSize:function(e){try{var n=l.statSync(e);if(n.isFile())return n.size}catch(e){}return 0},exit:function(n){e.exit(n)},realpath:function(e){try{return l.realpathSync(e)}catch(n){return e}},debugMode:n.some(e.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{t(!function(){var e=new Error('Cannot find module "source-map-support"');throw e.code="MODULE_NOT_FOUND",e}()).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){e.stdout.write("c")},setBlocking:function(){e.stdout&&e.stdout._handle&&e.stdout._handle.setBlocking&&e.stdout._handle.setBlocking(!0)}};return L;function A(){var e=n.createMultiMap(),t=n.createMap(),r=n.createGetCanonicalFileName(v);return function(a,o){var s=r(a);e.add(s,o);var l=n.getDirectoryPath(s)||".",c=t.get(l)||function(a,o){var s=D(a,function(t,o){var s=n.isString(o)?n.getNormalizedAbsolutePath(o,a):void 0,l=e.get(r(s));if(l)for(var c=0,u=l;c<u.length;c++){var d=u[c];d(s,i.Changed)}});return s.referenceCount=0,t.set(o,s),s}(n.getDirectoryPath(a)||".",l);return c.referenceCount++,{close:function(){1===c.referenceCount?(c.close(),t.delete(l)):c.referenceCount--,e.remove(s,o)}}}}function x(e,n,t){var r;return l.watchFile(e,{persistent:!0,interval:t||250},a),{close:function(){return l.unwatchFile(e,a)}};function a(t,a){var o=0==+a.mtime||r===i.Deleted;if(0==+t.mtime){if(o)return;r=i.Deleted}else if(o)r=i.Created;else{if(+t.mtime==+a.mtime)return;r=i.Changed}n(e,r)}}function C(e,n){return function(t){n(e,"rename"===t?w(e)?i.Created:i.Deleted:i.Changed)}}function k(n,t,r,a,o,s){var c,u=N(n,t)?m():f();return{close:function(){u.close(),u=void 0}};function d(e){r("rename",""),u&&(u.close(),u=e())}function m(){void 0===c&&(c=!p||"win32"!==e.platform&&"darwin"!==e.platform?{persistent:!0}:{persistent:!0,recursive:!!a});try{var t=l.watch(n,c,r);return t.on("error",function(){return d(f)}),t}catch(e){return o(n,function(e){return function(n,t){return e(t===i.Changed?"change":"rename","")}}(r),s)}}function f(){return o(n,function(e,r){r===i.Created&&N(n,t)&&d(m)},s)}}function M(e,n,t){return k(e,0,C(e,n),!1,x,t)}function D(e,n,t){return k(e,1,n,!!t,x)}function O(e,t,r){return D(e,function(e,t){return function(r,a){"rename"===r&&t(a?n.normalizePath(n.combinePaths(e,a)):e)}}(e,t),r)}function R(e){return function(n,t){return e(n,function(){return t(n)},o.Medium)}}function I(e){try{for(var t=l.readdirSync(e||".").sort(),r=[],a=[],i=0,o=t;i<o.length;i++){var s=o[i];if("."!==s&&".."!==s){var c=n.combinePaths(e,s),u=void 0;try{u=l.statSync(c)}catch(e){continue}u.isFile()?r.push(s):u.isDirectory()&&a.push(s)}}return{files:r,directories:a}}catch(e){return n.emptyFileSystemEntries}}function N(e,n){try{var t=l.statSync(e);switch(n){case 0:return t.isFile();case 1:return t.isDirectory()}}catch(e){return!1}}function w(e){return N(e,0)}function P(e){return N(e,1)}function F(e){try{return l.statSync(e).mtime}catch(e){return}}}()),s){var u=s.writeFile;s.writeFile=function(e,t,r){var a=n.getDirectoryPath(n.normalizeSlashes(e));a&&!s.directoryExists(a)&&function e(t,r){var a=n.getDirectoryPath(t),i=""!==a&&t!==a&&!r.directoryExists(a);i&&e(a,r),!i&&r.directoryExists(t)||r.createDirectory(t)}(a,s),u.call(s,e,t,r)}}return s}(),n.sys&&n.sys.getEnvironmentVariable&&(f(n.sys),n.Debug.currentAssertionLevel=/^development$/i.test(n.sys.getEnvironmentVariable("NODE_ENV"))?1:0),n.sys&&n.sys.debugMode&&(n.Debug.isDebugging=!0)}(u||(u={})),function(e){function n(e,n,t,r){return{code:e,category:n,key:t,message:r}}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."),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."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),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."),An_index_signature_parameter_type_must_be_string_or_number:n(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),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."),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_a_class_element:n(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),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_with_a_class_declaration:n(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_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_data_property:n(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_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."),A_0_modifier_cannot_be_used_with_an_interface_declaration:n(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:n(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),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."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:n(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),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:n(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression: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."),_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}'."),An_accessor_cannot_be_declared_in_an_ambient_context:n(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_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."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:n(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),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."),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."),A_tuple_type_element_list_cannot_be_empty:n(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),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."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:n(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."),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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a 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."),Catch_clause_variable_cannot_have_a_type_annotation:n(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),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."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:n(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),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."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:n(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:n(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:n(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in 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_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 to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:n(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),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_can_only_be_used_in_a_module:n(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),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."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:n(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:n(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),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."),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_expression_is_only_allowed_within_an_async_function:n(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:n(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),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_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:n(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:n(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:n(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier 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_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:n(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:n(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union 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."),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:n(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),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."),A_class_may_only_extend_another_class:n(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:n(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),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_is_missing_in_type_0:n(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:n(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","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}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:n(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:n(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),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'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:n(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),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."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:n(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:n(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),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_or_an_enum_type:n(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' 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_of_type_any_string_number_or_symbol:n(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:n(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:n(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' 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'."),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_be_referenced_in_its_initializer:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:n(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:n(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:n(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties: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 or has parameter properties."),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."),Getter_and_setter_accessors_do_not_agree_in_visibility:n(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:n(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:n(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:n(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),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."),Overload_signature_is_not_compatible_with_function_implementation:n(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),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}'."),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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:n(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class 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: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_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),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'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:n(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:n(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:n(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),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}'."),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_may_only_implement_another_class_or_interface:n(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),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_function_1_but_extended_class_2_defines_it_as_instance_member_property:n(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),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:n(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),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."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:n(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),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_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:n(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),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."),Type_0_has_no_property_1_and_no_string_index_signature:n(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:n(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),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'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:n(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:n(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of 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."),In_const_enum_declarations_member_initializer_must_be_constant_expression:n(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),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'."),Property_0_does_not_exist_on_const_enum_1:n(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),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_must_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type 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_next_method_of_an_iterator_must_have_a_value_property:n(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' 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_with_length_1_cannot_be_assigned_to_tuple_with_length_2:n(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{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."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:n(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),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_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:n(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type 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_a_class_or_interface_type:n(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),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."),Classes_containing_abstract_methods_must_be_marked_abstract:n(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),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."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:n(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses 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_constant_or_a_read_only_property:n(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:n(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:n(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_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_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' 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."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:n(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),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}."),Expected_0_arguments_but_got_1_or_more:n(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:n(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),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."),JSX_element_attributes_type_0_may_not_be_a_union_type:n(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:n(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:n(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),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."),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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:n(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:n(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),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."),get_and_set_accessor_must_have_the_same_this_type:n(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),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'?"),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."),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_declaration_0:n(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{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'."),Module_0_has_no_exported_member_1_Did_you_mean_2:n(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),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_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}'."),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}'."),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}."),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_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."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:n(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),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_in_can_have_at_most_one_Asterisk_character:n(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in 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."),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_map_files_instead_of_generated_locations:n(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),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_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),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"),Compilation_complete_Watching_for_file_changes:n(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),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}'."),Unsupported_locale_0:n(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),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_unsupported_extension_The_only_supported_extensions_are_1:n(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has 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:n(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),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."),Enables_experimental_support_for_ES7_async_functions:n(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),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_Colon_preserve_react_native_or_react:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),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."),Option_0_should_have_array_of_strings_as_a_value:n(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),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_string_got_1:n(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),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}'. ========"),Resolving_using_primary_search_paths:n(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:n(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),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."),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."),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."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:n(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output 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"),Basic_Options:n(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:n(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:n(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:n(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:n(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:n(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:n(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced 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_to_file_1_from_old_program:n(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:n(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:n(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),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."),Found_package_json_at_0_Package_ID_is_1:n(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),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."),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."),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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:n(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),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."),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),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_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:n(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` 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'."),A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime:n(7038,e.DiagnosticCategory.Error,"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038","A namespace-style import cannot be called or constructed, and will cause a failure at runtime."),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."),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_a_ts_file:n(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:n(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:n(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:n(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:n(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:n(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:n(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:n(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:n(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:n(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:n(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:n(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:n(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:n(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),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."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:n(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:n(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:n(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),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}'."),JSX_attribute_expected:n(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),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."),JSX_fragment_is_not_supported_when_using_jsxFactory:n(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:n(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),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}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:n(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),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_ES6_module:n(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 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."),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_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove 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_this_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable"),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"),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_function_0_to_class:n(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),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"),Annotate_with_types_from_JSDoc:n(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types 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_ES6_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 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}'")}}(u||(u={})),function(e){function n(e){return e>=71}e.tokenIsIdentifierOrKeyword=n,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||n(e)};var t=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:142,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:143,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:144,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,"</":28,">>":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),r=[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],a=[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],i=[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],o=[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];function s(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 l(e,n){return s(e,n>=1?i:r)}e.isUnicodeIdentifierStart=l;var c,u=(c=[],t.forEach(function(e,n){c[e]=n}),c);function d(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&&_(a)&&(n.push(r),r=t)}}return n.push(r),n}function m(n,t,r,a){(t<0||t>=n.length)&&e.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+n.length+" , line map is correct? "+(void 0!==a?e.arraysEqual(n,d(a)):"unknown"));var i=n[t]+r;return t<n.length-1?e.Debug.assert(i<n[t+1]):void 0!==a&&e.Debug.assert(i<=a.length),i}function p(e){return e.lineMap||(e.lineMap=d(e.text))}function f(n,t){var r=e.binarySearch(n,t,e.identity,e.compareValues);return r<0&&(r=~r-1,e.Debug.assert(-1!==r,"position cannot precede the beginning of the file")),{line:r,character:t-n[r]}}function g(e){return v(e)||_(e)}function v(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 _(e){return 10===e||13===e||8232===e||8233===e}function y(e){return e>=48&&e<=57}function h(e){return e>=48&&e<=55}e.tokenToString=function(e){return u[e]},e.stringToToken=function(e){return t.get(e)},e.computeLineStarts=d,e.getPositionOfLineAndCharacter=function(e,n,t){return m(p(e),n,t,e.text)},e.computePositionOfLineAndCharacter=m,e.getLineStarts=p,e.computeLineAndCharacterOfPosition=f,e.getLineAndCharacterOfPosition=function(e,n){return f(p(e),n)},e.isWhiteSpaceLike=g,e.isWhiteSpaceSingleLine=v,e.isLineBreak=_,e.isOctalDigit=h,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){if(void 0===a&&(a=!1),e.positionIsSynthesized(t))return t;for(;;){var i=n.charCodeAt(t);switch(i){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;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&&!_(n.charCodeAt(t));)t++;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++}continue}break;case 60:case 124:case 61:case 62:if(E(n,t)){t=T(n,t);continue}break;case 35:if(0===t&&L(n,t)){t=A(n,t);continue}break;default:if(i>127&&g(i)){t++;continue}}return t}};var b="<<<<<<<".length;function E(n,t){if(e.Debug.assert(t>=0),0===t||_(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+b<n.length){for(var a=0;a<b;a++)if(n.charCodeAt(t+a)!==r)return!1;return 61===r||32===n.charCodeAt(t+b)}}return!1}function T(n,t,r){r&&r(e.Diagnostics.Merge_conflict_marker_encountered,t,b);var a=n.charCodeAt(t),i=n.length;if(60===a||62===a)for(;t<i&&!_(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&&E(n,t))break;t++}return t}var S=/^#!.*/;function L(n,t){return e.Debug.assert(0===t),S.test(n)}function A(e,n){return n+=S.exec(e)[0].length}function x(e,n,t,r,a,i,o){var s,l,c,u,d=!1,m=r||0===t,p=o;e:for(;t>=0&&t<n.length;){var f=n.charCodeAt(t);switch(f){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;m=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:var v=n.charCodeAt(t+1),y=!1;if(47===v||42===v){var h=47===v?2:3,b=t;if(t+=2,47===v)for(;t<n.length;){if(_(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(m){if(d){if(p=a(s,l,c,u,i,p),!e&&p)return p;d=!1}s=b,l=t,c=h,u=y,d=!0}continue}break e;default:if(f>127&&g(f)){d&&_(f)&&(u=!0),t++;continue}break e}}return d&&(p=a(s,l,c,u,i,p)),p}function C(e,n,t,r,a){return x(!0,e,n,!1,t,r,a)}function k(e,n,t,r,a){return x(!0,e,n,!0,t,r,a)}function M(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function D(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&l(e,n)}function O(e,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,n){return s(e,n>=1?o:a)}(e,n)}e.forEachLeadingCommentRange=function(e,n,t,r){return x(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return x(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=C,e.reduceEachTrailingCommentRange=k,e.getLeadingCommentRanges=function(e,n){return C(e,n,M,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return k(e,n,M,void 0,void 0)},e.getShebang=function(e){var n=S.exec(e);if(n)return n[0]},e.isIdentifierStart=D,e.isIdentifierPart=O,e.isIdentifierText=function(e,n){if(!D(e.charCodeAt(0),n))return!1;for(var t=1;t<e.length;t++)if(!O(e.charCodeAt(t),n))return!1;return!0},e.createScanner=function(r,a,i,o,s,l,c){var u,d,m,p,f,b,S;return void 0===i&&(i=0),q(o,l,c),{getStartPos:function(){return m},getTextPos:function(){return u},getToken:function(){return f},getTokenPos:function(){return p},getTokenText:function(){return o.substring(p,u)},getTokenValue:function(){return b},hasExtendedUnicodeEscape:function(){return 0!=(8&S)},hasPrecedingLineBreak:function(){return 0!=(1&S)},isIdentifier:function(){return 71===f||f>107},isReservedWord:function(){return f>=72&&f<=107},isUnterminated:function(){return 0!=(4&S)},getTokenFlags:function(){return S},reScanGreaterToken:function(){if(29===f){if(62===o.charCodeAt(u))return 62===o.charCodeAt(u+1)?61===o.charCodeAt(u+2)?(u+=3,f=67):(u+=2,f=47):61===o.charCodeAt(u+1)?(u+=2,f=66):(u++,f=46);if(61===o.charCodeAt(u))return u++,f=31}return f},reScanSlashToken:function(){if(41===f||63===f){for(var n=p+1,t=!1,a=!1;;){if(n>=d){S|=4,x(e.Diagnostics.Unterminated_regular_expression_literal);break}var i=o.charCodeAt(n);if(_(i)){S|=4,x(e.Diagnostics.Unterminated_regular_expression_literal);break}if(t)t=!1;else{if(47===i&&!a){n++;break}91===i?a=!0:92===i?t=!0:93===i&&(a=!1)}n++}for(;n<d&&O(o.charCodeAt(n),r);)n++;u=n,b=o.substring(p,u),f=12}return f},reScanTemplateToken:function(){return e.Debug.assert(18===f,"'reScanTemplateToken' should only be called on a '}'"),u=p,f=P()},scanJsxIdentifier:function(){if(n(f)){for(var e=u;u<d;){var t=o.charCodeAt(u);if(45!==t&&(e===u?!D(t,r):!O(t,r)))break;u++}b+=o.substring(e,u)}return f},scanJsxAttributeValue:function(){switch(m=u,o.charCodeAt(u)){case 34:case 39:return b=w(!0),f=9;default:return U()}},reScanJsxToken:function(){return u=p=m,f=j()},scanJsxToken:j,scanJSDocToken:function(){if(u>=d)return f=1;m=u,p=u;var e=o.charCodeAt(u);switch(u++,e){case 9:case 11:case 12:case 32:for(;u<d&&v(o.charCodeAt(u));)u++;return f=5;case 64:return f=57;case 10:case 13:return f=4;case 42:return f=39;case 123:return f=17;case 125:return f=18;case 91:return f=21;case 93:return f=22;case 60:return f=27;case 61:return f=58;case 44:return f=26;case 46:return f=23}if(D(e,6)){for(;O(o.charCodeAt(u),6)&&u<d;)u++;return b=o.substring(p,u),f=71}return f=0},scan:U,getText:function(){return o},setText:q,setScriptTarget:function(e){r=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:z,tryScan:function(e){return W(e,!1)},lookAhead:function(e){return W(e,!0)},scanRange:function(e,n,t){var r=d,a=u,i=m,s=p,l=f,c=b,g=S;q(o,e,n);var v=t();return d=r,u=a,m=i,p=s,f=l,b=c,S=g,v}};function x(e,n,t){if(void 0===n&&(n=u),s){var r=u;u=n,s(e,t||0),u=r}}function C(){for(var n=u,t=!1,r=!1,a="";;){var i=o.charCodeAt(u);if(95!==i){if(!y(i))break;t=!0,r=!1,u++}else S|=512,t?(t=!1,r=!0,a+=o.substring(n,u)):x(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),n=++u}return 95===o.charCodeAt(u-1)&&x(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),a+o.substring(n,u)}function k(){var n,t,r=u,a=C();46===o.charCodeAt(u)&&(u++,n=C());var i=u;if(69===o.charCodeAt(u)||101===o.charCodeAt(u)){u++,S|=16,43!==o.charCodeAt(u)&&45!==o.charCodeAt(u)||u++;var s=u,l=C();l?(t=o.substring(i,s)+l,i=u):x(e.Diagnostics.Digit_expected)}if(512&S){var c=a;return n&&(c+="."+n),t&&(c+=t),""+ +c}return""+ +o.substring(r,i)}function M(){for(var e=u;h(o.charCodeAt(u));)u++;return+o.substring(e,u)}function R(e,n){return N(e,!1,n)}function I(e,n){return N(e,!0,n)}function N(n,t,r){for(var a=0,i=0,s=!1,l=!1;a<n||t;){var c=o.charCodeAt(u);if(r&&95===c)S|=512,s?(s=!1,l=!0):x(l?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(s=r,c>=48&&c<=57)i=16*i+c-48;else if(c>=65&&c<=70)i=16*i+c-65+10;else{if(!(c>=97&&c<=102))break;i=16*i+c-97+10}u++,a++,l=!1}}return a<n&&(i=-1),95===o.charCodeAt(u-1)&&x(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i}function w(n){void 0===n&&(n=!1);for(var t=o.charCodeAt(u),r="",a=++u;;){if(u>=d){r+=o.substring(a,u),S|=4,x(e.Diagnostics.Unterminated_string_literal);break}var i=o.charCodeAt(u);if(i===t){r+=o.substring(a,u),u++;break}if(92!==i||n){if(_(i)&&!n){r+=o.substring(a,u),S|=4,x(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=o.substring(a,u),r+=F(),a=u}return r}function P(){for(var n,t=96===o.charCodeAt(u),r=++u,a="";;){if(u>=d){a+=o.substring(r,u),S|=4,x(e.Diagnostics.Unterminated_template_literal),n=t?13:16;break}var i=o.charCodeAt(u);if(96===i){a+=o.substring(r,u),u++,n=t?13:16;break}if(36===i&&u+1<d&&123===o.charCodeAt(u+1)){a+=o.substring(r,u),u+=2,n=t?14:15;break}92!==i?13!==i?u++:(a+=o.substring(r,u),++u<d&&10===o.charCodeAt(u)&&u++,a+="\n",r=u):(a+=o.substring(r,u),a+=F(),r=u)}return e.Debug.assert(void 0!==n),b=a,n}function F(){if(++u>=d)return x(e.Diagnostics.Unexpected_end_of_text),"";var n,t,r=o.charCodeAt(u);switch(u++,r){case 48:return"\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:return u<d&&123===o.charCodeAt(u)?(S|=8,u++,n=I(1,!1),t=!1,n<0?(x(e.Diagnostics.Hexadecimal_digit_expected),t=!0):n>1114111&&(x(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),t=!0),u>=d?(x(e.Diagnostics.Unexpected_end_of_text),t=!0):125===o.charCodeAt(u)?u++:(x(e.Diagnostics.Unterminated_Unicode_escape_sequence),t=!0),t?"":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)}(n)):V(4);case 120:return V(2);case 13:u<d&&10===o.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function V(n){var t=R(n,!1);return t>=0?String.fromCharCode(t):(x(e.Diagnostics.Hexadecimal_digit_expected),"")}function G(){if(u+5<d&&117===o.charCodeAt(u+1)){var e=u;u+=2;var n=R(4,!1);return u=e,n}return-1}function H(){for(var e="",n=u;u<d;){var t=o.charCodeAt(u);if(O(t,r))u++;else{if(92!==t)break;if(!((t=G())>=0&&O(t,r)))break;e+=o.substring(n,u),e+=String.fromCharCode(t),n=u+=6}}return e+=o.substring(n,u)}function K(){var e=b.length;if(e>=2&&e<=11){var n=b.charCodeAt(0);if(n>=97&&n<=122&&void 0!==(f=t.get(b)))return f}return f=71}function B(n){e.Debug.assert(2===n||8===n,"Expected either base 2 or base 8");for(var t=0,r=0,a=!1,i=!1;;){var s=o.charCodeAt(u);if(95!==s){a=!0;var l=s-48;if(!y(s)||l>=n)break;t=t*n+l,u++,r++,i=!1}else S|=512,a?(a=!1,i=!0):x(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 0===r?-1:95===o.charCodeAt(u-1)?(x(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t):t}function U(){for(m=u,S=0;;){if(p=u,u>=d)return f=1;var n=o.charCodeAt(u);if(35===n&&0===u&&L(o,u)){if(u=A(o,u),a)continue;return f=6}switch(n){case 10:case 13:if(S|=1,a){u++;continue}return 13===n&&u+1<d&&10===o.charCodeAt(u+1)?u+=2:u++,f=4;case 9:case 11:case 12:case 32:if(a){u++;continue}for(;u<d&&v(o.charCodeAt(u));)u++;return f=5;case 33:return 61===o.charCodeAt(u+1)?61===o.charCodeAt(u+2)?(u+=3,f=35):(u+=2,f=33):(u++,f=51);case 34:case 39:return b=w(),f=9;case 96:return f=P();case 37:return 61===o.charCodeAt(u+1)?(u+=2,f=64):(u++,f=42);case 38:return 38===o.charCodeAt(u+1)?(u+=2,f=53):61===o.charCodeAt(u+1)?(u+=2,f=68):(u++,f=48);case 40:return u++,f=19;case 41:return u++,f=20;case 42:return 61===o.charCodeAt(u+1)?(u+=2,f=61):42===o.charCodeAt(u+1)?61===o.charCodeAt(u+2)?(u+=3,f=62):(u+=2,f=40):(u++,f=39);case 43:return 43===o.charCodeAt(u+1)?(u+=2,f=43):61===o.charCodeAt(u+1)?(u+=2,f=59):(u++,f=37);case 44:return u++,f=26;case 45:return 45===o.charCodeAt(u+1)?(u+=2,f=44):61===o.charCodeAt(u+1)?(u+=2,f=60):(u++,f=38);case 46:return y(o.charCodeAt(u+1))?(b=k(),f=8):46===o.charCodeAt(u+1)&&46===o.charCodeAt(u+2)?(u+=3,f=24):(u++,f=23);case 47:if(47===o.charCodeAt(u+1)){for(u+=2;u<d&&!_(o.charCodeAt(u));)u++;if(a)continue;return f=2}if(42===o.charCodeAt(u+1)){u+=2,42===o.charCodeAt(u)&&47!==o.charCodeAt(u+1)&&(S|=2);for(var t=!1;u<d;){var s=o.charCodeAt(u);if(42===s&&47===o.charCodeAt(u+1)){u+=2,t=!0;break}_(s)&&(S|=1),u++}if(t||x(e.Diagnostics.Asterisk_Slash_expected),a)continue;return t||(S|=4),f=3}return 61===o.charCodeAt(u+1)?(u+=2,f=63):(u++,f=41);case 48:var l;if(u+2<d&&(88===o.charCodeAt(u+1)||120===o.charCodeAt(u+1)))return u+=2,(l=I(1,!0))<0&&(x(e.Diagnostics.Hexadecimal_digit_expected),l=0),b=""+l,S|=64,f=8;if(u+2<d&&(66===o.charCodeAt(u+1)||98===o.charCodeAt(u+1)))return u+=2,(l=B(2))<0&&(x(e.Diagnostics.Binary_digit_expected),l=0),b=""+l,S|=128,f=8;if(u+2<d&&(79===o.charCodeAt(u+1)||111===o.charCodeAt(u+1)))return u+=2,(l=B(8))<0&&(x(e.Diagnostics.Octal_digit_expected),l=0),b=""+l,S|=256,f=8;if(u+1<d&&h(o.charCodeAt(u+1)))return b=""+M(),S|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return b=k(),f=8;case 58:return u++,f=56;case 59:return u++,f=25;case 60:if(E(o,u)){if(u=T(o,u,x),a)continue;return f=7}return 60===o.charCodeAt(u+1)?61===o.charCodeAt(u+2)?(u+=3,f=65):(u+=2,f=45):61===o.charCodeAt(u+1)?(u+=2,f=30):1===i&&47===o.charCodeAt(u+1)&&42!==o.charCodeAt(u+2)?(u+=2,f=28):(u++,f=27);case 61:if(E(o,u)){if(u=T(o,u,x),a)continue;return f=7}return 61===o.charCodeAt(u+1)?61===o.charCodeAt(u+2)?(u+=3,f=34):(u+=2,f=32):62===o.charCodeAt(u+1)?(u+=2,f=36):(u++,f=58);case 62:if(E(o,u)){if(u=T(o,u,x),a)continue;return f=7}return u++,f=29;case 63:return u++,f=55;case 91:return u++,f=21;case 93:return u++,f=22;case 94:return 61===o.charCodeAt(u+1)?(u+=2,f=70):(u++,f=50);case 123:return u++,f=17;case 124:if(E(o,u)){if(u=T(o,u,x),a)continue;return f=7}return 124===o.charCodeAt(u+1)?(u+=2,f=54):61===o.charCodeAt(u+1)?(u+=2,f=69):(u++,f=49);case 125:return u++,f=18;case 126:return u++,f=52;case 64:return u++,f=57;case 92:var c=G();return c>=0&&D(c,r)?(u+=6,b=String.fromCharCode(c)+H(),f=K()):(x(e.Diagnostics.Invalid_character),u++,f=0);default:if(D(n,r)){for(u++;u<d&&O(n=o.charCodeAt(u),r);)u++;return b=o.substring(p,u),92===n&&(b+=H()),f=K()}if(v(n)){u++;continue}if(_(n)){S|=1,u++;continue}return x(e.Diagnostics.Invalid_character),u++,f=0}}}function j(){if(m=p=u,u>=d)return f=1;var e=o.charCodeAt(u);if(60===e)return 47===o.charCodeAt(u+1)?(u+=2,f=28):(u++,f=27);if(123===e)return u++,f=17;for(var n=0;u<d&&123!==(e=o.charCodeAt(u));){if(60===e){if(E(o,u))return u=T(o,u,x),f=7;break}_(e)&&0===n?n=-1:g(e)||(n=u),u++}return-1===n?11:10}function W(e,n){var t=u,r=m,a=p,i=f,o=b,s=S,l=e();return l&&!n||(u=t,m=r,p=a,f=i,b=o,S=s),l}function q(e,n,t){o=e||"",d=void 0===t?o.length:n+t,z(n||0)}function z(n){e.Debug.assert(n>=0),u=n,m=n,p=n,f=0,b=void 0,S=0}}}(u||(u={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",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}};var n,t,r=(n="",{getText:function(){return n},write:t=function(e){return n+=e},rawWrite:t,writeTextOfNode:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:t,getTextPos:function(){return n.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return n+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return n=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function a(e){return e.end-e.pos}function i(n){return function(n){if(!(262144&n.flags)){var t=0!=(32768&n.flags)||e.forEachChild(n,i);t&&(n.flags|=131072),n.flags|=262144}}(n),0!=(131072&n.flags)}function o(e){for(;e&&272!==e.kind;)e=e.parent;return e}function s(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 c(e){return!l(e)}function u(e,n){return 42===e.charCodeAt(n.pos+1)&&33===e.charCodeAt(n.pos+2)}function d(n,t,r){return l(n)?n.pos:e.isJSDocNode(n)?e.skipTrivia((t||o(n)).text,n.pos,!1,!0):r&&e.hasJSDocNodes(n)?d(n.jsDoc[0]):293===n.kind&&n._children.length>0?d(n._children[0],t,r):e.skipTrivia((t||o(n)).text,n.pos)}function m(e,n,t){return void 0===t&&(t=!1),p(e.text,n,t)}function p(n,t,r){return void 0===r&&(r=!1),l(t)?"":n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end)}function f(e,n){return void 0===n&&(n=!1),m(o(e),e,n)}function g(e){return e.pos}function v(e){var n=e.emitNode;return n&&n.flags}function _(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function y(e){var n=Ee(e);return 230===n.kind&&267===n.parent.kind}function h(n){return e.isModuleDeclaration(n)&&(9===n.name.kind||E(n))}function b(n){return e.isModuleDeclaration(n)&&9===n.name.kind}function E(e){return!!(512&e.flags)}function T(n){switch(n.parent.kind){case 272:return e.isExternalModule(n.parent);case 238:return h(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function S(n,t){switch(n.kind){case 272:case 239:case 267:case 237:case 218:case 219:case 220:case 154:case 153:case 155:case 156:case 232:case 190:case 191:return!0;case 211:return t&&!e.isFunctionLike(t)}return!1}function L(e){return 0===a(e)?"(Missing)":f(e)}function A(n){switch(n.kind){case 71:return n.escapedText;case 9:case 8:return _(n.text);case 146:return fe(n.expression)?_(n.expression.text):void 0;default:e.Debug.assertNever(n)}}function x(n,t,r,a,i,o,s){var l=k(n,t);return e.createFileDiagnostic(n,l.start,l.length,r,a,i,o,s)}function C(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 k(n,t){var r=t;switch(t.kind){case 272:var a=e.skipTrivia(n.text,0,!1);return a===n.text.length?e.createTextSpan(0,0):C(n,a);case 230:case 180:case 233:case 203:case 234:case 237:case 236:case 271:case 232:case 190:case 153:case 155:case 156:case 235:r=t.name;break;case 191:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&211===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,s(a,n)-r+1)}return e.createTextSpanFromBounds(r,t.end)}(n,t)}if(void 0===r)return C(n,t.pos);var i=l(r),o=i?r.pos:e.skipTrivia(n.text,r.pos);return i?(e.Debug.assert(o===r.pos,"This failure could trigger https://git.spacen.net/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o===r.end,"This failure could trigger https://git.spacen.net/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(o>=r.pos,"This failure could trigger https://git.spacen.net/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=r.end,"This failure could trigger https://git.spacen.net/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,r.end)}function M(n){return!!(2&e.getCombinedNodeFlags(n))||!!(2048&e.getCombinedModifierFlags(n))}e.usingSingleLineStringWriter=function(e){var n=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(n)}},e.getFullWidth=a,e.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},e.setResolvedModule=function(n,t,r){n.resolvedModules||(n.resolvedModules=e.createMap()),n.resolvedModules.set(t,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=e.createMap()),n.resolvedTypeReferenceDirectiveNames.set(t,r)},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;return(t?n+"/"+t:n)+"@"+r},e.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary},e.hasChangesInResolutions=function(n,t,r,a){e.Debug.assert(n.length===t.length);for(var i=0;i<n.length;i++){var o=t[i],s=r&&r.get(n[i]);if(s?!o||!a(s,o):o)return!0}return!1},e.containsParseError=i,e.getSourceFileOfNode=o,e.isStatementWithLocals=function(e){switch(e.kind){case 211:case 239:case 218:case 219:case 220: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=o(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=s,e.nodeIsMissing=l,e.nodeIsPresent=c,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!!(a.match(e.fullTripleSlashReferencePathRegEx)||a.match(e.fullTripleSlashAMDReferencePathRegEx)||a.match(D)||a.match(O))}return!1},e.isPinnedComment=u,e.getTokenPosOfNode=d,e.getNonDecoratorTokenPosOfNode=function(n,t){return l(n)||!n.decorators?d(n,t):e.skipTrivia((t||o(n)).text,n.decorators.end)},e.getSourceTextOfNodeFromSourceFile=m,e.getTextOfNodeFromSourceText=p,e.getTextOfNode=f,e.indexOfNode=function(n,t){return e.binarySearch(n,t,g,e.compareValues)},e.getEmitFlags=v,e.getLiteralText=function(n,t){if(!Te(n)&&n.parent&&!(e.isNumericLiteral(n)&&512&n.numericLiteralFlags))return m(t,n);var r=16777216&v(n)?De:Ne;switch(n.kind){case 9:return n.singleQuote?"'"+r(n.text,39)+"'":'"'+r(n.text,34)+'"';case 13:return"`"+r(n.text,96)+"`";case 14:return"`"+r(n.text,96)+"${";case 15:return"}"+r(n.text,96)+"${";case 16:return"}"+r(n.text,96)+"`";case 8:case 12:return n.text}e.Debug.fail("Literal kind '"+n.kind+"' not accounted for.")},e.getTextOfConstantValue=function(n){return e.isString(n)?'"'+Ne(n)+'"':""+n},e.escapeLeadingUnderscores=_,e.escapeIdentifier=function(e){return e},e.makeIdentifierFromModuleName=function(n){return e.getBaseFileName(n).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(n){return 0!=(3&e.getCombinedNodeFlags(n))||y(n)},e.isCatchClauseVariableDeclarationOrBindingElement=y,e.isAmbientModule=h,e.isModuleWithStringLiteralName=b,e.isNonGlobalAmbientModule=function(n){return e.isModuleDeclaration(n)&&e.isStringLiteral(n.name)},e.isShorthandAmbientModuleSymbol=function(e){return(n=e.valueDeclaration)&&237===n.kind&&!n.body;var n},e.isBlockScopedContainerTopLevel=function(n){return 272===n.kind||237===n.kind||e.isFunctionLike(n)},e.isGlobalScopeAugmentation=E,e.isExternalModuleAugmentation=function(e){return h(e)&&T(e)},e.isModuleAugmentationExternal=T,e.isEffectiveExternalModule=function(n,t){return e.isExternalModule(n)||t.isolatedModules||e.getEmitModuleKind(t)===e.ModuleKind.CommonJS&&!!n.commonJsModuleIndicator},e.isBlockScope=S,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 157:case 158:case 152:case 159:case 162:case 163:case 280:case 233:case 203:case 234:case 235:case 290:case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return e.assertTypeIsNever(n),!1}},e.isAnyImportSyntax=function(e){switch(e.kind){case 242:case 241:return!0;default:return!1}},e.getEnclosingBlockScopeContainer=function(e){for(var n=e.parent;n;){if(S(n,n.parent))return n;n=n.parent}},e.declarationNameToString=L,e.getNameFromIndexInfo=function(e){return e.declaration?L(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=A,e.entityNameToString=function n(t){switch(t.kind){case 71:return 0===a(t)?e.idText(t):f(t);case 145:return n(t.left)+"."+n(t.right);case 183:return n(t.expression)+"."+n(t.name)}},e.createDiagnosticForNode=function(e,n,t,r,a,i){return x(o(e),e,n,t,r,a,i)},e.createDiagnosticForNodeArray=function(n,t,r,a,i,o,s){var l=e.skipTrivia(n.text,t.pos);return e.createFileDiagnostic(n,l,t.end-l,r,a,i,o,s)},e.createDiagnosticForNodeInSourceFile=x,e.createDiagnosticForNodeSpan=function(n,t,r,a,i,o,s,l){var c=e.skipTrivia(n.text,t.pos);return e.createFileDiagnostic(n,c,r.end-c,a,i,o,s,l)},e.createDiagnosticForNodeFromMessageChain=function(e,n){var t=o(e),r=k(t,e);return{file:t,start:r.start,length:r.length,code:n.code,category:n.category,messageText:n.next?n:n.messageText}},e.getSpanOfTokenAtPosition=C,e.getErrorSpanForNode=k,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isConstEnumDeclaration=function(e){return 236===e.kind&&M(e)},e.isConst=M,e.isLet=function(n){return!!(1&e.getCombinedNodeFlags(n))},e.isSuperCall=function(e){return 185===e.kind&&97===e.expression.kind},e.isImportCall=function(e){return 185===e.kind&&91===e.expression.kind},e.isPrologueDirective=function(e){return 214===e.kind&&9===e.expression.kind},e.getLeadingCommentRangesOfNode=function(n,t){return 10!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=148===n.kind||147===n.kind||190===n.kind||191===n.kind||189===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*)('|")(.+?)\2.*?\/>/;var D=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var O=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function R(n){if(160<=n.kind&&n.kind<=177)return!0;switch(n.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 194!==n.parent.kind;case 205:return!mn(n);case 147:return 176===n.parent.kind||171===n.parent.kind;case 71:145===n.parent.kind&&n.parent.right===n?n=n.parent:183===n.parent.kind&&n.parent.name===n&&(n=n.parent),e.Debug.assert(71===n.kind||145===n.kind||183===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 183:case 99:var t=n.parent;if(164===t.kind)return!1;if(160<=t.kind&&t.kind<=177)return!0;switch(t.kind){case 205:return!mn(t);case 147:return n===t.constraint;case 151:case 150:case 148:case 230:return n===t.type;case 232:case 190:case 191:case 154:case 153:case 152:case 155:case 156:return n===t.type;case 157:case 158:case 159:case 188:return n===t.type;case 185:case 186:return e.contains(t.typeArguments,n);case 187:return!1}}return!1}function I(e){if(e)switch(e.kind){case 180:case 271:case 148:case 268:case 151:case 150:case 269:case 230:return!0}return!1}function N(e){return 231===e.parent.kind&&212===e.parent.parent.kind}function w(n,t){for(;;){if(!(n=n.parent))return;switch(n.kind){case 146:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 149:148===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 191:if(!t)continue;case 232:case 190:case 237:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 236:case 272:return n}}}function P(e,n,t){switch(e.kind){case 233:return!0;case 151:return 233===n.kind;case 155:case 156:case 153:return void 0!==e.body&&233===n.kind;case 148:return void 0!==n.body&&(154===n.kind||153===n.kind||156===n.kind)&&233===t.kind}return!1}function F(e,n,t){return void 0!==e.decorators&&P(e,n,t)}function V(e,n,t){return F(e,n,t)||G(e,n)}function G(n,t){switch(n.kind){case 233:return e.forEach(n.members,function(e){return V(e,n,t)});case 153:case 156:return e.forEach(n.parameters,function(e){return F(e,n,t)})}}function H(e){var n=e.parent;return(255===n.kind||254===n.kind||256===n.kind)&&n.tagName===e}function K(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 206:case 188:case 207:case 189:case 190:case 203:case 191:case 194:case 192:case 193:case 196:case 197:case 198:case 199:case 202:case 200:case 13:case 204:case 253:case 254:case 257:case 201:case 195:case 208:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||H(e);case 71:if(164===e.parent.kind||H(e))return!0;case 8:case 9:case 99:return B(e);default:return!1}}function B(e){var n=e.parent;switch(n.kind){case 230:case 148:case 151:case 150:case 271:case 268:case 180:return n.initializer===e;case 214:case 215:case 216:case 217:case 223:case 224:case 225:case 264:case 227:return n.expression===e;case 218:var t=n;return t.initializer===e&&231!==t.initializer.kind||t.condition===e||t.incrementor===e;case 219:case 220:var r=n;return r.initializer===e&&231!==r.initializer.kind||r.expression===e;case 188:case 206:case 209:case 146:return e===n.expression;case 149:case 263:case 262:case 270:return!0;case 205:return n.expression===e&&mn(n);default:return K(n)}}function U(e){return 241===e.kind&&252===e.moduleReference.kind}function j(e){return W(e)}function W(e){return e&&!!(65536&e.flags)}function q(n){if(n&&e.isVariableDeclaration(n)&&n.initializer)return J(n.initializer,!1)||e.isIdentifier(n.name)&&X(n.name,n.initializer,!1)}function z(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&58===n.parent.operatorToken.kind){var t=e.isPropertyAccessExpression(n.parent.left)&&"prototype"===n.parent.left.name.escapedText;return J(n.parent.right,t)||X(n.parent.left,n.parent.right,t)}}function J(n,t){if(e.isCallExpression(n)){var r=le(n.expression);return 190===r.kind||191===r.kind?n:void 0}return 190===n.kind||203===n.kind?n:e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function X(n,t,r){var a=e.isBinaryExpression(t)&&54===t.operatorToken.kind&&J(t.right,r);if(a&&function n(t,r){if(e.isIdentifier(t)&&e.isIdentifier(r))return t.escapedText===r.escapedText;if(e.isIdentifier(t)&&e.isPropertyAccessExpression(r))return(99===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&n(t,r.name);if(e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r))return t.name.escapedText===r.name.escapedText&&n(t.expression,r.expression);return!1}(n,t.left))return a}function Y(n){if(!W(n)||58!==n.operatorToken.kind||!e.isPropertyAccessExpression(n.left))return 0;var t=n.left;if(99===t.expression.kind)return 4;if(e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText)return 2;if(pn(t.expression)){if("prototype"===t.name.escapedText&&e.isObjectLiteralExpression(n.right))return 6;if(e.isPropertyAccessExpression(t.expression)&&"prototype"===t.expression.name.escapedText)return 3;for(var r=t;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var a=r.expression;return"exports"===a.escapedText||"module"===a.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function Q(n){return e.isExpressionStatement(n)&&n.expression&&e.isBinaryExpression(n.expression)&&58===n.expression.operatorToken.kind&&n.expression.right}function Z(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==Y(n.expression)&&e.isBinaryExpression(n.expression.right)&&54===n.expression.right.operatorToken.kind&&n.expression.right.right}function $(e){switch(e.kind){case 212:var n=ee(e);return n&&n.initializer;case 151:return e.initializer}}function ee(n){return e.isVariableStatement(n)&&n.declarationList.declarations.length>0&&n.declarationList.declarations[0]}function ne(e){return 237===e.kind&&e.body&&237===e.body.kind&&e.body}function te(n){var t=re(n),r=Z(t)||Q(t)||$(t)||ee(t)||ne(t)||t;return r&&e.isFunctionLike(r)?r:void 0}function re(n){return e.Debug.assert(282===n.parent.kind),n.parent.parent}function ae(e){return void 0!==e.dotDotDotToken}function ie(e){for(var n=e.parent;;){switch(n.kind){case 198:var t=n.operatorToken.kind;return cn(t)&&n.left===e?58===t?1:2:0;case 196:case 197:var r=n.operator;return 43===r||44===r?2:0;case 219:case 220:return n.initializer===e?1:0;case 189:case 181:case 202:case 207:e=n;break;case 269:if(n.name!==e)return 0;e=n.parent;break;case 268:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function oe(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function se(e){return oe(e,189)}function le(e){for(;189===e.kind;)e=e.expression;return e}function ce(e){return pn(e.expression)}function ue(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 de(e){return 72<=e&&e<=144}function me(e){return 117<=e&&e<=144}function pe(e){return de(e)&&!me(e)}function fe(e){var n=e.kind;return 9===n||8===n}function ge(n){var t=e.getNameOfDeclaration(n);return t&&ve(t)}function ve(e){return 146===e.kind&&!fe(e.expression)&&!_e(e.expression)}function _e(n){return e.isPropertyAccessExpression(n)&&be(n.expression)}function ye(n){if(71===n.kind)return n.escapedText;if(9===n.kind||8===n.kind)return _(n.text);if(146===n.kind){var t=n.expression;if(_e(t))return he(e.idText(t.name));if(9===t.kind||8===t.kind)return _(t.text)}}function he(e){return"__@"+e}function be(e){return 71===e.kind&&"Symbol"===e.escapedText}function Ee(e){for(;180===e.kind;)e=e.parent.parent;return e}function Te(n){return e.positionIsSynthesized(n.pos)||e.positionIsSynthesized(n.end)}function Se(e,n,t){switch(e){case 186:return t?0:1;case 196:case 193:case 194:case 192:case 195:case 199:case 201:return 1;case 198:switch(n){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function Le(e){return 198===e.kind?e.operatorToken.kind:196===e.kind||197===e.kind?e.operator:e.kind}function Ae(e,n,t){switch(e){case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 181:case 182:case 190:case 191:case 203:case 253:case 254:case 257:case 12:case 13:case 200:case 189:case 204:return 19;case 187:case 183:case 184:return 18;case 186:return t?18:17;case 185:return 17;case 197:return 16;case 196:case 193:case 194:case 192:case 195:return 15;case 198:switch(n){case 51:case 52:return 15;case 40:case 39:case 41:case 42:return 14;case 37:case 38:return 13;case 45:case 46:case 47:return 12;case 27:case 30:case 29:case 31:case 92:case 93:return 11;case 32:case 34:case 33:case 35:return 10;case 48:return 9;case 50:return 8;case 49:return 7;case 53:return 6;case 54:return 5;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;case 26:return 0;default:return-1}case 199:return 4;case 201:return 2;case 202:return 1;case 296:return 0;default:return-1}}e.isPartOfTypeNode=R,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 223:return t(r);case 239:case 211:case 215:case 216:case 217:case 218:case 219:case 220:case 224:case 225:case 264:case 265:case 226:case 228:case 267:return e.forEachChild(r,n)}}(n)},e.forEachYieldExpression=function(n,t){return function n(r){switch(r.kind){case 201:t(r);var a=r.expression;return void(a&&n(a));case 236:case 234:case 237:case 235:case 233:case 203:return;default:if(e.isFunctionLike(r)){if(r.name&&146===r.name.kind)return void n(r.name.expression)}else R(r)||e.forEachChild(r,n)}}(n)},e.getRestParameterElementType=function(n){return n&&166===n.kind?n.elementType:n&&161===n.kind?e.singleOrUndefined(n.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 234:case 233:case 203:case 165:return e.members;case 182:return e.properties}},e.isVariableLike=I,e.isVariableDeclarationInVariableStatement=N,e.isValidESSymbolDeclaration=function(n){return e.isVariableDeclaration(n)?M(n)&&e.isIdentifier(n.name)&&N(n):e.isPropertyDeclaration(n)?rn(n)&&tn(n):e.isPropertySignature(n)&&rn(n)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 153:case 152:case 154:case 155:case 156:case 232:case 190:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,n){for(;;){if(n&&n(e),226!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(n){return n&&211===n.kind&&e.isFunctionLike(n.parent)},e.isObjectLiteralMethod=function(e){return e&&153===e.kind&&182===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 153===e.kind&&(182===e.parent.kind||203===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=function(n,t,r){return e.filter(n.properties,function(e){if(268===e.kind){var n=A(e.name);return t===n||r&&r===n}})},e.getContainingFunction=function(n){return e.findAncestor(n.parent,e.isFunctionLike)},e.getContainingClass=function(n){return e.findAncestor(n.parent,e.isClassLike)},e.getThisContainer=w,e.getNewTargetContainer=function(e){var n=w(e,!1);if(n)switch(n.kind){case 154:case 232:case 190:return n}},e.getSuperContainer=function(n,t){for(;;){if(!(n=n.parent))return n;switch(n.kind){case 146:n=n.parent;break;case 232:case 190:case 191:if(!t)continue;case 151:case 150:case 153:case 152:case 154:case 155:case 156:return n;case 149:148===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(190===e.kind||191===e.kind){for(var n=e,t=e.parent;189===t.kind;)n=t,t=t.parent;if(185===t.kind&&t.expression===n)return t}},e.isSuperProperty=function(e){var n=e.kind;return(183===n||184===n)&&97===e.expression.kind},e.isThisProperty=function(e){var n=e.kind;return(183===n||184===n)&&99===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 161:return e.typeName;case 205:return pn(e.expression)?e.expression:void 0;case 71:case 145:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 187:return e.tag;case 255:case 254:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=P,e.nodeIsDecorated=F,e.nodeOrChildIsDecorated=V,e.childIsDecorated=G,e.isJSXTagName=H,e.isExpressionNode=K,e.isInExpressionContext=B,e.isExternalModuleImportEqualsDeclaration=U,e.getExternalModuleImportEqualsDeclarationExpression=function(n){return e.Debug.assert(U(n)),n.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 241===e.kind&&252!==e.moduleReference.kind},e.isSourceFileJavaScript=j,e.isInJavaScriptFile=W,e.isInJSDoc=function(e){return e&&!!(1048576&e.flags)},e.isJSDocIndexSignature=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&n.typeArguments&&2===n.typeArguments.length&&(137===n.typeArguments[0].kind||134===n.typeArguments[0].kind)},e.isRequireCall=function(e,n){if(185!==e.kind)return!1;var t=e,r=t.expression,a=t.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==a.length)return!1;var i=a[0];return!n||9===i.kind||13===i.kind},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,n){return 34===m(n,e).charCodeAt(0)},e.getJSInitializerSymbol=function(e){if(!e||!e.valueDeclaration)return e;var n=e.valueDeclaration,t=q(n)||z(n);return t&&t.symbol?t.symbol:e},e.getDeclaredJavascriptInitializer=q,e.getAssignedJavascriptInitializer=z,e.getJavascriptInitializer=J,e.getOuterNameOfJsInitializer=function(n){if(e.isBinaryExpression(n.parent)){var t=54===n.parent.operatorToken.kind&&e.isBinaryExpression(n.parent.parent)?n.parent.parent:n.parent;if(58===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name},e.getRightMostAssignedExpression=function(e){for(;dn(e,!0);)e=e.right;return e},e.isExportsIdentifier=function(n){return e.isIdentifier(n)&&"exports"===n.escapedText},e.isModuleExportsPropertyAccessExpression=function(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.expression)&&"module"===n.expression.escapedText&&"exports"===n.name.escapedText},e.getSpecialPropertyAssignmentKind=Y,e.isSpecialPropertyDeclaration=function(n){return W(n)&&n.parent&&214===n.parent.kind&&!!e.getJSDocTypeTag(n.parent)},e.getExternalModuleName=function(e){if(242===e.kind)return e.moduleSpecifier;if(241===e.kind){var n=e.moduleReference;if(252===n.kind)return n.expression}return 248===e.kind?e.moduleSpecifier:b(e)?e.name:void 0},e.getNamespaceDeclarationNode=function(n){switch(n.kind){case 242:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 241:return n;case 248:return;default:return e.Debug.assertNever(n)}},e.isDefaultImport=function(e){return 242===e.kind&&e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 148:case 153:case 152:case 269:case 268:case 151:case 150:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(e){return 280===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.getJSDocCommentsAndTags=function(n){var t;return function n(r){var a=r.parent;a&&(268===a.kind||151===a.kind||ne(a))&&n(a),a&&a.parent&&(ee(a.parent)===r||Q(a.parent))&&n(a.parent),a&&a.parent&&a.parent.parent&&($(a.parent.parent)===r||Z(a.parent.parent))&&n(a.parent.parent),(e.isBinaryExpression(r)&&0!==Y(r)||183===r.kind&&r.parent&&214===r.parent.kind)&&n(a),148===r.kind&&(t=e.addRange(t,e.getJSDocParameterTags(r))),I(r)&&e.hasInitializer(r)&&e.hasJSDocNodes(r.initializer)&&(t=e.addRange(t,r.initializer.jsDoc)),e.hasJSDocNodes(r)&&(t=e.addRange(t,r.jsDoc))}(n),t||e.emptyArray},e.getParameterSymbolFromJSDoc=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=te(n);if(r){var a=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===t});return a&&a.symbol}}},e.getHostSignatureFromJSDoc=te,e.getJSDocHost=re,e.getTypeParameterFromJsDoc=function(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===t})},e.hasRestParameter=function(n){var t=e.lastOrUndefined(n.parameters);return t&&ae(t)},e.isRestParameter=ae,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=ie,e.isAssignmentTarget=function(e){return 0!==ie(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 211:case 212:case 224:case 215:case 225:case 239:case 264:case 265:case 226:case 218:case 219:case 220:case 216:case 217:case 228:case 267:return!0}return!1},e.walkUpParenthesizedTypes=function(e){return oe(e,172)},e.walkUpParenthesizedExpressions=se,e.skipParentheses=le,e.isDeleteTarget=function(e){return(183===e.kind||184===e.kind)&&(e=se(e.parent))&&192===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.isAnyDeclarationName=function(n){switch(n.kind){case 71:case 9:case 8:if(e.isDeclaration(n.parent))return n.parent.name===n;var t=n.parent.parent;return e.isBinaryExpression(t)&&0!==Y(t)&&e.getNameOfDeclaration(t)===n;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(n){return(9===n.kind||8===n.kind)&&146===n.parent.kind&&e.isDeclaration(n.parent.parent)},e.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 271:case 268:case 183:return n.name===e;case 145:if(n.right===e){for(;145===n.kind;)n=n.parent;return 164===n.kind}return!1;case 180:case 246:return n.propertyName===e;case 250:case 260:return!0}return!1},e.isAliasSymbolDeclaration=function(e){return 241===e.kind||240===e.kind||243===e.kind&&!!e.name||244===e.kind||246===e.kind||250===e.kind||247===e.kind&&ce(e)},e.exportAssignmentIsAlias=ce,e.getClassExtendsHeritageClauseElement=function(e){var n=ue(e.heritageClauses,85);return n&&n.types.length>0?n.types[0]:void 0},e.getClassImplementsHeritageClauseElements=function(e){var n=ue(e.heritageClauses,108);return n?n.types:void 0},e.getInterfaceBaseTypeNodes=function(e){var n=ue(e.heritageClauses,85);return n?n.types:void 0},e.getHeritageClause=ue,e.tryResolveScriptReference=function(n,t,r){if(!n.getCompilerOptions().noResolve){var a=e.isRootedDiskPath(r.fileName)?r.fileName:e.combinePaths(e.getDirectoryPath(t.fileName),r.fileName);return n.getSourceFile(a)}},e.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},e.isKeyword=de,e.isContextualKeyword=me,e.isNonContextualKeyword=pe,e.isStringANonContextualKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&pe(t)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var n=0;switch(e.kind){case 232:case 190:case 153:e.asteriskToken&&(n|=1);case 191:nn(e,256)&&(n|=2)}return e.body||(n|=4),n},e.isAsyncFunction=function(e){switch(e.kind){case 232:case 190:case 191:case 153:return void 0!==e.body&&void 0===e.asteriskToken&&nn(e,256)}return!1},e.isStringOrNumericLiteral=fe,e.hasDynamicName=ge,e.isDynamicName=ve,e.isWellKnownSymbolSyntactically=_e,e.getPropertyNameForPropertyNameNode=ye,e.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(n){return 71===n.kind?e.idText(n):n.text},e.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:_(e.text)},e.getPropertyNameForKnownSymbolName=he,e.isKnownSymbol=function(n){return e.startsWith(n.escapedName,"__@")},e.isESSymbolIdentifier=be,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 148===Ee(e).kind},e.getRootDeclaration=Ee,e.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 154===n||190===n||232===n||191===n||153===n||155===n||156===n||237===n||272===n},e.nodeIsSynthesized=Te,e.getOriginalSourceFile=function(n){return e.getParseTreeNode(n,e.isSourceFile)||n},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var n=Le(e),t=186===e.kind&&void 0!==e.arguments;return Se(e.kind,n,t)},e.getOperatorAssociativity=Se,e.getExpressionPrecedence=function(e){var n=Le(e),t=186===e.kind&&void 0!==e.arguments;return Ae(e.kind,n,t)},e.getOperator=Le,e.getOperatorPrecedence=Ae,e.createDiagnosticCollection=function(){var n=[],t=[],r=e.createMap(),a=!1,i=0;return{add:function(o){var s;o.file?(s=r.get(o.file.fileName))||(s=[],r.set(o.file.fileName,s),e.insertSorted(t,o.file.fileName,e.compareStringsCaseSensitive)):(a&&(a=!1,n=n.slice()),s=n),e.insertSorted(s,o,e.compareDiagnostics),i++},getGlobalDiagnostics:function(){return a=!0,n},getDiagnostics:function(a){if(a)return r.get(a)||[];var i=e.flatMap(t,function(e){return r.get(e)});return n.length?(i.unshift.apply(i,n),i):i},getModificationCount:function(){return i},reattachFileDiagnostics:function(n){e.forEach(r.get(n.fileName),function(e){return e.file=n})}}};var xe=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ce=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ke=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Me=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085"});function De(e,n){var t=96===n?ke:39===n?Ce:xe;return e.replace(t,Oe)}function Oe(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Me.get(e)||Re(e.charCodeAt(0))}function Re(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=De,e.isIntrinsicJsxName=function(e){var n=e.charCodeAt(0);return n>=97&&n<=122||e.indexOf("-")>-1};var Ie=/[^\u0000-\u007F]/g;function Ne(e,n){return e=De(e,n),Ie.test(e)?e.replace(Ie,function(e){return Re(e.charCodeAt(0))}):e}e.escapeNonAsciiString=Ne;var we=[""," "];function Pe(e){return void 0===we[e]&&(we[e]=Pe(e-1)+we[1]),we[e]}function Fe(){return we[1].length}function Ve(e,n){return n.moduleName||Ge(e,n.fileName)}function Ge(n,t){var r=function(e){return n.getCanonicalFileName(e)},a=e.toPath(n.getCommonSourceDirectory(),n.getCurrentDirectory(),r),i=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(a,i,a,r,!1);return e.removeFileExtension(o)}function He(e,n,t){return!(n.noEmitForJsFiles&&j(e)||e.isDeclarationFile||t(e))}function Ke(n,t,r){var a=e.getNormalizedAbsolutePath(n.fileName,t.getCurrentDirectory()),i=t.getCommonSourceDirectory();return a=0===t.getCanonicalFileName(a).indexOf(t.getCanonicalFileName(i))?a.substring(i.length):a,e.combinePaths(r,a)}function Be(n,t){return e.getLineAndCharacterOfPosition(n,t).line}function Ue(n,t){return e.computeLineAndCharacterOfPosition(n,t).line}function je(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&We(e.parameters[0]);return e.parameters[n?1:0]}}function We(e){return qe(e.name)}function qe(e){return e&&71===e.kind&&ze(e)}function ze(e){return 99===e.originalKeywordKind}function Je(n){return n.type||(W(n)?e.getJSDocType(n):void 0)}function Xe(n){var t=e.getJSDocTemplateTag(n);return t&&t.typeParameters}function Ye(e,n,t,r){Qe(e,n,t.pos,r)}function Qe(e,n,t,r){r&&r.length&&t!==r[0].pos&&Ue(e,t)!==Ue(e,r[0].pos)&&n.writeLine()}function Ze(e,n,t,r,a,i,o,s){if(r&&r.length>0){a&&t.write(" ");for(var l=!1,c=0,u=r;c<u.length;c++){var d=u[c];l&&(t.write(" "),l=!1),s(e,n,t,d.pos,d.end,o),d.hasTrailingNewLine?t.writeLine():l=!0}l&&i&&t.write(" ")}}function $e(e,n,t,r,a,i){var o=Math.min(n,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(t.write(s),o!==n&&t.writeLine()):t.writeLiteral(r)}function en(n,t,r){for(var a=0;t<r&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));t++)9===n.charCodeAt(t)?a+=Fe()-a%Fe():a++;return a}function nn(e,n){return!!an(e,n)}function tn(e){return nn(e,32)}function rn(e){return nn(e,64)}function an(e,n){return on(e)&n}function on(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var n=sn(e);return e.modifierFlagsCache=536870912|n,n}function sn(e){var n=0;if(e.modifiers)for(var t=0,r=e.modifiers;t<r.length;t++){n|=ln(r[t].kind)}return(4&e.flags||71===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function ln(e){switch(e){case 115:return 32;case 114:return 4;case 113:return 16;case 112:return 8;case 117:return 128;case 84:return 1;case 124:return 2;case 76:return 2048;case 79:return 512;case 120:return 256;case 132:return 64}return 0}function cn(e){return e>=58&&e<=70}function un(n){if(205===n.kind&&85===n.parent.token&&e.isClassLike(n.parent.parent))return n.parent.parent}function dn(n,t){return e.isBinaryExpression(n)&&(t?58===n.operatorToken.kind:cn(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function mn(e){return void 0!==un(e)}function pn(e){return 71===e.kind||183===e.kind&&pn(e.expression)}e.getIndentString=Pe,e.getIndentSize=Fe,e.createTextWriter=function(n){var t,r,a,i,o;function s(e){e&&e.length&&(a&&(t+=Pe(r),a=!1),t+=e)}function l(){t="",r=0,a=!0,i=0,o=0}return l(),{write:s,rawWrite:function(e){void 0!==e&&(a&&(a=!1),t+=e)},writeTextOfNode:function(e,n){s(p(e,n))},writeLiteral:function(n){if(n&&n.length){s(n);var r=e.computeLineStarts(n);r.length>1&&(i=i+r.length-1,o=t.length-n.length+e.lastOrUndefined(r))}},writeLine:function(){a||(i++,o=(t+=n).length,a=!0)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return i+1},getColumn:function(){return a?r*Fe()+1:t.length-o+1},getText:function(){return t},isAtStartOfLine:function(){return a},clear:l,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:s,writeOperator:s,writeParameter:s,writeProperty:s,writePunctuation:s,writeSpace:s,writeStringLiteral:s,writeSymbol:s}},e.getResolvedExternalModuleName=Ve,e.getExternalModuleNameFromDeclaration=function(e,n,t){var r=n.getExternalModuleFileFromDeclaration(t);if(r&&!r.isDeclarationFile)return Ve(e,r)},e.getExternalModuleNameFromPath=Ge,e.getOwnEmitOutputFilePath=function(n,t,r){var a=t.getCompilerOptions();return(a.outDir?e.removeFileExtension(Ke(n,t,a.outDir)):e.removeFileExtension(n.fileName))+r},e.getDeclarationEmitOutputFilePath=function(n,t){var r=t.getCompilerOptions(),a=r.declarationDir||r.outDir,i=a?Ke(n,t,a):n.fileName;return e.removeFileExtension(i)+".d.ts"},e.getSourceFilesToEmit=function(n,t){var r=n.getCompilerOptions(),a=function(e){return n.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var i=e.getEmitModuleKind(r),o=i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(n.getSourceFiles(),function(n){return(o||!e.isExternalModule(n))&&He(n,r,a)})}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,function(e){return He(e,r,a)})},e.sourceFileMayBeEmitted=He,e.getSourceFilePathInNewDir=Ke,e.writeFile=function(n,t,r,a,i,o){n.writeFile(r,a,i,function(n){t.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))},o)},e.getLineOfLocalPosition=Be,e.getLineOfLocalPositionFromLineMap=Ue,e.getFirstConstructorWithBody=function(n){return e.forEach(n.members,function(e){if(154===e.kind&&c(e.body))return e})},e.getSetAccessorTypeAnnotationNode=function(e){var n=je(e);return n&&n.type},e.getThisParameter=function(e){if(e.parameters.length){var n=e.parameters[0];if(We(n))return n}},e.parameterIsThisKeyword=We,e.isThisIdentifier=qe,e.identifierIsThisKeyword=ze,e.getAllAccessorDeclarations=function(n,t){var r,a,i,o;return ge(t)?(r=t,155===t.kind?i=t:156===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,function(e){155!==e.kind&&156!==e.kind||nn(e,32)!==nn(t,32)||ye(e.name)===ye(t.name)&&(r?a||(a=e):r=e,155!==e.kind||i||(i=e),156!==e.kind||o||(o=e))}),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Je,e.getEffectiveReturnTypeNode=function(n){return n.type||(W(n)?e.getJSDocReturnType(n):void 0)},e.getEffectiveTypeParameterDeclarations=function(e){return e.typeParameters||(W(e)?Xe(e):void 0)},e.getJSDocTypeParameterDeclarations=Xe,e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=je(e);return n&&Je(n)},e.emitNewLineBeforeLeadingComments=Ye,e.emitNewLineBeforeLeadingCommentsOfPosition=Qe,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&Ue(e,t)!==Ue(e,r)&&n.writeLine()},e.emitComments=Ze,e.emitDetachedComments=function(n,t,r,a,i,o,s){var l,c;if(s?0===i.pos&&(l=e.filter(e.getLeadingCommentRanges(n,i.pos),function(e){return u(n,e)})):l=e.getLeadingCommentRanges(n,i.pos),l){for(var d=[],m=void 0,p=0,f=l;p<f.length;p++){var g=f[p];if(m){var v=Ue(t,m.end);if(Ue(t,g.pos)>=v+2)break}d.push(g),m=g}d.length&&(v=Ue(t,e.lastOrUndefined(d).end),Ue(t,e.skipTrivia(n,i.pos))>=v+2&&(Ye(t,r,i,l),Ze(n,t,r,d,!1,!0,o,a),c={nodePos:i.pos,detachedCommentEndPos:e.lastOrUndefined(d).end}))}return c},e.writeCommentRange=function(n,t,r,a,i,o){if(42===n.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(t,a),l=t.length,c=void 0,u=a,d=s.line;u<i;d++){var m=d+1===l?n.length+1:t[d+1];if(u!==a){void 0===c&&(c=en(n,t[s.line],a));var p=r.getIndent()*Fe()-c+en(n,u,m);if(p>0){var f=p%Fe(),g=Pe((p-f)/Fe());for(r.rawWrite(g);f;)r.rawWrite(" "),f--}else r.rawWrite("")}$e(n,i,r,o,u,m),u=m}else r.write(n.substring(a,i))},e.hasModifiers=function(e){return 0!==on(e)},e.hasModifier=nn,e.hasStaticModifier=tn,e.hasReadonlyModifier=rn,e.getSelectedModifierFlags=an,e.getModifierFlags=on,e.getModifierFlagsNoCache=sn,e.modifierToFlag=ln,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=cn,e.tryGetClassExtendingExpressionWithTypeArguments=un,e.isAssignmentExpression=dn,e.isDestructuringAssignment=function(e){if(dn(e,!0)){var n=e.left.kind;return 182===n||181===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=mn,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(n){return 205===n.kind&&pn(n.expression)&&n.parent&&108===n.parent.token&&n.parent.parent&&e.isClassLike(n.parent.parent)},e.isEntityNameExpression=pn,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 145===e.parent.kind&&e.parent.right===e||183===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 182===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 181===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(n){return function(n){return n&&e.length(n.declarations)>0&&nn(n.declarations[0],512)}(n)?n.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(n){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(t){return e.fileExtensionIs(n,t)})};var fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=function(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),l=0,c=s.length;l<c;)t=s[l]>>2,r=(3&s[l])<<4|s[l+1]>>4,a=(15&s[l+1])<<2|s[l+2]>>6,i=63&s[l+2],l+1>=c?a=i=64:l+2>=c&&(i=64),o+=fn.charAt(t)+fn.charAt(r)+fn.charAt(a)+fn.charAt(i),l+=3;return o};var gn,vn="\r\n",_n="\n";function yn(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=a.length-1;s>=0&&0!==o;s--){var l=a[s],c=l[0],u=l[1];0!==c&&(o&c)===c&&(o&=~c,i=u+(i?", ":"")+i)}if(0===o)return i}else for(var d=0,m=a;d<m.length;d++){var p=m[d];c=p[0],u=p[1];if(c===n)return u}return n.toString()}function hn(e,n){return{pos:e,end:n}}function bn(e,n){return hn(n,e.end)}function En(e){return e.decorators&&e.decorators.length>0?bn(e,e.decorators.end):e}function Tn(e,n,t){return Sn(Ln(e,t),n.end,t)}function Sn(e,n,t){return e===n||Be(t,e)===Be(t,n)}function Ln(n,t){return e.positionIsSynthesized(n.pos)?-1:e.skipTrivia(t.text,n.pos)}function An(e){return void 0!==e.initializer}function xn(e){return 33554432&e.flags?e.checkFlags:0}function Cn(e){var n=e.parent;if(!n)return 0;switch(n.kind){case 197:case 196:var t=n.operator;return 43===t||44===t?o():0;case 198:var r=n,a=r.left,i=r.operatorToken;return a===e&&cn(i.kind)?o():0;case 183:return n.name!==e?0:Cn(n);default:return 0}function o(){return n.parent&&214===n.parent.kind?1:2}}function kn(n,t){for(;;){var r=t(n);if(void 0!==r)return r;var a=e.getDirectoryPath(n);if(a===n)return;n=a}}function Mn(e){if(32&e.flags){var n=Dn(e);return!!n&&nn(n,128)}return!1}function Dn(n){return e.find(n.declarations,e.isClassLike)}function On(e){return 65536&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(n,t){switch(n.newLine){case 0:return vn;case 1:return _n}return t?t():e.sys?e.sys.newLine:vn},e.formatSyntaxKind=function(n){return yn(n,e.SyntaxKind,!1)},e.formatModifierFlags=function(n){return yn(n,e.ModifierFlags,!0)},e.formatTransformFlags=function(n){return yn(n,e.TransformFlags,!0)},e.formatEmitFlags=function(n){return yn(n,e.EmitFlags,!0)},e.formatSymbolFlags=function(n){return yn(n,e.SymbolFlags,!0)},e.formatTypeFlags=function(n){return yn(n,e.TypeFlags,!0)},e.formatObjectFlags=function(n){return yn(n,e.ObjectFlags,!0)},e.createRange=hn,e.moveRangeEnd=function(e,n){return hn(e.pos,n)},e.moveRangePos=bn,e.moveRangePastDecorators=En,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?bn(e,e.modifiers.end):En(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return hn(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return Tn(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return Sn(Ln(e,t),Ln(n,t),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return Sn(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=Tn,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return Sn(e.end,Ln(n,t),t)},e.positionsAreOnSameLine=Sn,e.getStartPositionOfRange=Ln,e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 236:case 237:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,An)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.getCheckFlags=xn,e.getDeclarationModifierFlagsFromSymbol=function(n){if(n.valueDeclaration){var t=e.getCombinedModifierFlags(n.valueDeclaration);return n.parent&&32&n.parent.flags?t:-29&t}if(6&xn(n)){var r=n.checkFlags;return(256&r?8:64&r?4:16)|(512&r?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===Cn(e)},e.isWriteAccess=function(e){return 0!==Cn(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(gn||(gn={})),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.mutateMap=function(e,n,t){var r=t.createNewValue,a=t.onDeleteValue,i=t.onExistingValue;e.forEach(function(t,r){var o=n.get(r);void 0===o?(e.delete(r),a(t,r)):i&&i(t,o,r)}),n.forEach(function(n,t){e.has(t)||e.set(t,r(t,n))})},e.forEachAncestorDirectory=kn,e.isAbstractConstructorType=function(e){return!!(16&On(e))&&!!e.symbol&&Mn(e.symbol)},e.isAbstractConstructorSymbol=Mn,e.getClassLikeDeclarationOfSymbol=Dn,e.getObjectFlags=On,e.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,n){return!!kn(e,function(e){return!!n(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:f(t)}}(u||(u={})),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 l(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function c(n){return!!e.isBindingPattern(n)&&e.every(n.elements,u)}function u(n){return!!e.isOmittedExpression(n)||c(n.name)}function d(n){for(;n&&(180===n.kind||e.isBindingPattern(n));)n=n.parent;return n}function m(e,n){if(e)for(;void 0!==e.original;)e=e.original;return!n||n(e)?e:void 0}function p(e){return 0==(8&e.flags)}function f(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 g(n){var t=_(n);return e.isIdentifier(t)?t:void 0}function v(n){return n.name||function(n){var t=n.parent.parent;if(t){if(e.isDeclaration(t))return g(t);switch(t.kind){case 212:return t.declarationList&&t.declarationList.declarations[0]?g(t.declarationList.declarations[0]):void 0;case 214:var r=t.expression;switch(r.kind){case 183:return r.name;case 184:var a=r.argumentExpression;if(e.isIdentifier(a))return a}return;case 1:return;case 189:return g(t.expression);case 226:return e.isDeclaration(t.statement)||e.isExpression(t.statement)?g(t.statement):void 0;default:e.Debug.assertNever(t,"Found typedef tag attached to node which it should not be!")}}}(n)}function _(n){if(n){switch(n.kind){case 71:return n;case 292:case 287:var t=n.name;if(145===t.kind)return t.right;break;case 198:var r=n;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:case 3:return r.left.name;default:return}case 291:return v(n);case 247:var a=n.expression;return e.isIdentifier(a)?a:void 0}return n.name}}function y(n){if(n.name&&e.isIdentifier(n.name)){var t=n.name.escapedText;return b(n.parent).filter(function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===t})}}function h(e){return E(e,288)}function b(n){var t=n.jsDocCache;return void 0===t&&(n.jsDocCache=t=e.flatMap(e.getJSDocCommentsAndTags(n),function(n){return e.isJSDoc(n)?n.tags:n})),t}function E(n,t){var r=b(n);return e.find(r,function(e){return e.kind===t})}e.getDefaultLibFileName=function(e){switch(e.target){case 6:return"lib.esnext.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.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=l,e.unchangedTextChangeRange=l(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,c=1;c<t.length;c++){var u=t[c],d=a,m=i,p=o,f=u.span.start,g=n(u.span),v=f+u.newLength;a=Math.min(d,f),i=Math.max(m,m+(g-p)),o=Math.max(v,v+(p-g))}return l(s(a,i),o-a)},e.getTypeParameterOwner=function(n){if(n&&147===n.kind)for(var t=n;t;t=t.parent)if(e.isFunctionLike(t)||e.isClassLike(t)||234===t.kind)return t},e.isParameterPropertyDeclaration=function(n){return e.hasModifier(n,92)&&154===n.parent.kind&&e.isClassLike(n.parent.parent)},e.isEmptyBindingPattern=c,e.isEmptyBindingElement=u,e.getCombinedModifierFlags=function(n){n=d(n);var t=e.getModifierFlags(n);return 230===n.kind&&(n=n.parent),n&&231===n.kind&&(t|=e.getModifierFlags(n),n=n.parent),n&&212===n.kind&&(t|=e.getModifierFlags(n)),t},e.getCombinedNodeFlags=function(e){var n=(e=d(e)).flags;return 230===e.kind&&(e=e.parent),e&&231===e.kind&&(n|=e.flags,e=e.parent),e&&212===e.kind&&(n|=e.flags),n},e.validateLocaleAndSetLanguage=function(n,t,r){var a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(n.toLowerCase());if(a){var i=a[1];o(i,a[3],r)||o(i,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 o(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 l="";try{l=t.readFile(s)}catch(n){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(l)}catch(n){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=m,e.isParseTreeNode=p,e.getParseTreeNode=function(e,n){return void 0===e||p(e)?e:!p(e=m(e))||n&&!n(e)?void 0:e},e.unescapeLeadingUnderscores=f,e.idText=function(e){return f(e.escapedText)},e.symbolName=function(e){return f(e.escapedName)},e.unescapeIdentifier=function(e){return e},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=function(e){return!!e.name},e.getNameOfDeclaration=_,e.getJSDocParameterTags=y,e.hasJSDocParameterTags=function(e){return!!E(e,287)},e.getJSDocAugmentsTag=function(e){return E(e,285)},e.getJSDocClassTag=function(e){return E(e,286)},e.getJSDocReturnTag=h,e.getJSDocTemplateTag=function(e){return E(e,290)},e.getJSDocTypeTag=function(e){var n=E(e,289);if(n&&n.typeExpression&&n.typeExpression.type)return n},e.getJSDocType=function(n){var t=E(n,289);if(!t&&148===n.kind){var r=y(n);r&&(t=e.find(r,function(e){return!!e.typeExpression}))}return t&&t.typeExpression&&t.typeExpression.type},e.getJSDocReturnType=function(e){var n=h(e);return n&&n.typeExpression&&n.typeExpression.type},e.getJSDocTags=b,e.getAllJSDocTagsOfKind=function(n,t){var r=b(n);return e.filter(r,function(e){return e.kind===t})}}(u||(u={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isStringLiteral=function(e){return 9===e.kind},e.isJsxText=function(e){return 10===e.kind},e.isRegularExpressionLiteral=function(e){return 12===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 13===e.kind},e.isTemplateHead=function(e){return 14===e.kind},e.isTemplateMiddle=function(e){return 15===e.kind},e.isTemplateTail=function(e){return 16===e.kind},e.isIdentifier=function(e){return 71===e.kind},e.isQualifiedName=function(e){return 145===e.kind},e.isComputedPropertyName=function(e){return 146===e.kind},e.isTypeParameterDeclaration=function(e){return 147===e.kind},e.isParameter=function(e){return 148===e.kind},e.isDecorator=function(e){return 149===e.kind},e.isPropertySignature=function(e){return 150===e.kind},e.isPropertyDeclaration=function(e){return 151===e.kind},e.isMethodSignature=function(e){return 152===e.kind},e.isMethodDeclaration=function(e){return 153===e.kind},e.isConstructorDeclaration=function(e){return 154===e.kind},e.isGetAccessorDeclaration=function(e){return 155===e.kind},e.isSetAccessorDeclaration=function(e){return 156===e.kind},e.isCallSignatureDeclaration=function(e){return 157===e.kind},e.isConstructSignatureDeclaration=function(e){return 158===e.kind},e.isIndexSignatureDeclaration=function(e){return 159===e.kind},e.isTypePredicateNode=function(e){return 160===e.kind},e.isTypeReferenceNode=function(e){return 161===e.kind},e.isFunctionTypeNode=function(e){return 162===e.kind},e.isConstructorTypeNode=function(e){return 163===e.kind},e.isTypeQueryNode=function(e){return 164===e.kind},e.isTypeLiteralNode=function(e){return 165===e.kind},e.isArrayTypeNode=function(e){return 166===e.kind},e.isTupleTypeNode=function(e){return 167===e.kind},e.isUnionTypeNode=function(e){return 168===e.kind},e.isIntersectionTypeNode=function(e){return 169===e.kind},e.isConditionalTypeNode=function(e){return 170===e.kind},e.isInferTypeNode=function(e){return 171===e.kind},e.isParenthesizedTypeNode=function(e){return 172===e.kind},e.isThisTypeNode=function(e){return 173===e.kind},e.isTypeOperatorNode=function(e){return 174===e.kind},e.isIndexedAccessTypeNode=function(e){return 175===e.kind},e.isMappedTypeNode=function(e){return 176===e.kind},e.isLiteralTypeNode=function(e){return 177===e.kind},e.isObjectBindingPattern=function(e){return 178===e.kind},e.isArrayBindingPattern=function(e){return 179===e.kind},e.isBindingElement=function(e){return 180===e.kind},e.isArrayLiteralExpression=function(e){return 181===e.kind},e.isObjectLiteralExpression=function(e){return 182===e.kind},e.isPropertyAccessExpression=function(e){return 183===e.kind},e.isElementAccessExpression=function(e){return 184===e.kind},e.isCallExpression=function(e){return 185===e.kind},e.isNewExpression=function(e){return 186===e.kind},e.isTaggedTemplateExpression=function(e){return 187===e.kind},e.isTypeAssertion=function(e){return 188===e.kind},e.isParenthesizedExpression=function(e){return 189===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;295===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 190===e.kind},e.isArrowFunction=function(e){return 191===e.kind},e.isDeleteExpression=function(e){return 192===e.kind},e.isTypeOfExpression=function(e){return 193===e.kind},e.isVoidExpression=function(e){return 194===e.kind},e.isAwaitExpression=function(e){return 195===e.kind},e.isPrefixUnaryExpression=function(e){return 196===e.kind},e.isPostfixUnaryExpression=function(e){return 197===e.kind},e.isBinaryExpression=function(e){return 198===e.kind},e.isConditionalExpression=function(e){return 199===e.kind},e.isTemplateExpression=function(e){return 200===e.kind},e.isYieldExpression=function(e){return 201===e.kind},e.isSpreadElement=function(e){return 202===e.kind},e.isClassExpression=function(e){return 203===e.kind},e.isOmittedExpression=function(e){return 204===e.kind},e.isExpressionWithTypeArguments=function(e){return 205===e.kind},e.isAsExpression=function(e){return 206===e.kind},e.isNonNullExpression=function(e){return 207===e.kind},e.isMetaProperty=function(e){return 208===e.kind},e.isTemplateSpan=function(e){return 209===e.kind},e.isSemicolonClassElement=function(e){return 210===e.kind},e.isBlock=function(e){return 211===e.kind},e.isVariableStatement=function(e){return 212===e.kind},e.isEmptyStatement=function(e){return 213===e.kind},e.isExpressionStatement=function(e){return 214===e.kind},e.isIfStatement=function(e){return 215===e.kind},e.isDoStatement=function(e){return 216===e.kind},e.isWhileStatement=function(e){return 217===e.kind},e.isForStatement=function(e){return 218===e.kind},e.isForInStatement=function(e){return 219===e.kind},e.isForOfStatement=function(e){return 220===e.kind},e.isContinueStatement=function(e){return 221===e.kind},e.isBreakStatement=function(e){return 222===e.kind},e.isBreakOrContinueStatement=function(e){return 222===e.kind||221===e.kind},e.isReturnStatement=function(e){return 223===e.kind},e.isWithStatement=function(e){return 224===e.kind},e.isSwitchStatement=function(e){return 225===e.kind},e.isLabeledStatement=function(e){return 226===e.kind},e.isThrowStatement=function(e){return 227===e.kind},e.isTryStatement=function(e){return 228===e.kind},e.isDebuggerStatement=function(e){return 229===e.kind},e.isVariableDeclaration=function(e){return 230===e.kind},e.isVariableDeclarationList=function(e){return 231===e.kind},e.isFunctionDeclaration=function(e){return 232===e.kind},e.isClassDeclaration=function(e){return 233===e.kind},e.isInterfaceDeclaration=function(e){return 234===e.kind},e.isTypeAliasDeclaration=function(e){return 235===e.kind},e.isEnumDeclaration=function(e){return 236===e.kind},e.isModuleDeclaration=function(e){return 237===e.kind},e.isModuleBlock=function(e){return 238===e.kind},e.isCaseBlock=function(e){return 239===e.kind},e.isNamespaceExportDeclaration=function(e){return 240===e.kind},e.isImportEqualsDeclaration=function(e){return 241===e.kind},e.isImportDeclaration=function(e){return 242===e.kind},e.isImportClause=function(e){return 243===e.kind},e.isNamespaceImport=function(e){return 244===e.kind},e.isNamedImports=function(e){return 245===e.kind},e.isImportSpecifier=function(e){return 246===e.kind},e.isExportAssignment=function(e){return 247===e.kind},e.isExportDeclaration=function(e){return 248===e.kind},e.isNamedExports=function(e){return 249===e.kind},e.isExportSpecifier=function(e){return 250===e.kind},e.isMissingDeclaration=function(e){return 251===e.kind},e.isExternalModuleReference=function(e){return 252===e.kind},e.isJsxElement=function(e){return 253===e.kind},e.isJsxSelfClosingElement=function(e){return 254===e.kind},e.isJsxOpeningElement=function(e){return 255===e.kind},e.isJsxClosingElement=function(e){return 256===e.kind},e.isJsxFragment=function(e){return 257===e.kind},e.isJsxOpeningFragment=function(e){return 258===e.kind},e.isJsxClosingFragment=function(e){return 259===e.kind},e.isJsxAttribute=function(e){return 260===e.kind},e.isJsxAttributes=function(e){return 261===e.kind},e.isJsxSpreadAttribute=function(e){return 262===e.kind},e.isJsxExpression=function(e){return 263===e.kind},e.isCaseClause=function(e){return 264===e.kind},e.isDefaultClause=function(e){return 265===e.kind},e.isHeritageClause=function(e){return 266===e.kind},e.isCatchClause=function(e){return 267===e.kind},e.isPropertyAssignment=function(e){return 268===e.kind},e.isShorthandPropertyAssignment=function(e){return 269===e.kind},e.isSpreadAssignment=function(e){return 270===e.kind},e.isEnumMember=function(e){return 271===e.kind},e.isSourceFile=function(e){return 272===e.kind},e.isBundle=function(e){return 273===e.kind},e.isJSDocTypeExpression=function(e){return 274===e.kind},e.isJSDocAllType=function(e){return 275===e.kind},e.isJSDocUnknownType=function(e){return 276===e.kind},e.isJSDocNullableType=function(e){return 277===e.kind},e.isJSDocNonNullableType=function(e){return 278===e.kind},e.isJSDocOptionalType=function(e){return 279===e.kind},e.isJSDocFunctionType=function(e){return 280===e.kind},e.isJSDocVariadicType=function(e){return 281===e.kind},e.isJSDoc=function(e){return 282===e.kind},e.isJSDocAugmentsTag=function(e){return 285===e.kind},e.isJSDocParameterTag=function(e){return 287===e.kind},e.isJSDocReturnTag=function(e){return 288===e.kind},e.isJSDocTypeTag=function(e){return 289===e.kind},e.isJSDocTemplateTag=function(e){return 290===e.kind},e.isJSDocTypedefTag=function(e){return 291===e.kind},e.isJSDocPropertyTag=function(e){return 292===e.kind},e.isJSDocPropertyLikeTag=function(e){return 292===e.kind||287===e.kind},e.isJSDocTypeLiteral=function(e){return 283===e.kind}}(u||(u={})),function(e){function n(e){return e>=145}function t(e){return 8<=e&&e<=13}function r(e){return 13<=e&&e<=16}function a(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function i(e){return e&&s(e.kind)}function o(e){switch(e){case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return!1}}function s(e){switch(e){case 152:case 157:case 158:case 159:case 162:case 280:case 163:return!0;default:return o(e)}}function l(e){switch(e.kind){case 178:case 182:return!0}return!1}function c(e){switch(e.kind){case 179:case 181:return!0}return!1}function u(e){switch(e){case 183:case 184:case 186:case 185:case 253:case 254:case 257:case 187:case 181:case 189:case 182:case 203:case 190:case 71:case 12:case 8:case 9:case 13:case 200:case 86:case 95:case 99:case 101:case 97:case 207:case 208:case 91:return!0;default:return!1}}function d(e){switch(e){case 196:case 197:case 192:case 193:case 194:case 195:case 188:return!0;default:return u(e)}}function m(n){return function(e){switch(e){case 199:case 201:case 191:case 198:case 202:case 206:case 204:case 296:case 295:return!0;default:return d(e)}}(e.skipPartiallyEmittedExpressions(n).kind)}function p(e){return 295===e.kind}function f(e){return 294===e.kind}function g(e){return 232===e||251===e||233===e||234===e||235===e||236===e||237===e||242===e||241===e||248===e||247===e||240===e}function v(e){return 222===e||221===e||229===e||216===e||214===e||213===e||219===e||220===e||218===e||215===e||226===e||223===e||225===e||227===e||228===e||212===e||217===e||224===e||294===e||298===e||297===e}function _(e){return e.kind>=284&&e.kind<=292}function y(e){return!!e.initializer}e.isSyntaxList=function(e){return 293===e.kind},e.isNode=function(e){return n(e.kind)},e.isNodeKind=n,e.isToken=function(e){return e.kind>=0&&e.kind<=144},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=t,e.isLiteralExpression=function(e){return t(e.kind)},e.isTemplateLiteralKind=r,e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 15===n||16===n},e.isStringTextContainingNode=function(e){return 9===e.kind||r(e.kind)},e.isGeneratedIdentifier=function(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0},e.isModifierKind=a,e.isModifier=function(e){return a(e.kind)},e.isEntityName=function(e){var n=e.kind;return 145===n||71===n},e.isPropertyName=function(e){var n=e.kind;return 71===n||9===n||8===n||146===n},e.isBindingName=function(e){var n=e.kind;return 71===n||178===n||179===n},e.isFunctionLike=i,e.isFunctionLikeDeclaration=function(e){return e&&o(e.kind)},e.isFunctionLikeKind=s,e.isFunctionOrModuleBlock=function(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&i(n.parent)},e.isClassElement=function(e){var n=e.kind;return 154===n||151===n||153===n||155===n||156===n||159===n||210===n||251===n},e.isClassLike=function(e){return e&&(233===e.kind||203===e.kind)},e.isAccessor=function(e){return e&&(155===e.kind||156===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}},e.isTypeElement=function(e){var n=e.kind;return 158===n||157===n||150===n||152===n||159===n||251===n},e.isObjectLiteralElementLike=function(e){var n=e.kind;return 268===n||269===n||270===n||153===n||155===n||156===n||251===n},e.isTypeNode=function(e){return(n=e.kind)>=160&&n<=177||119===n||134===n||135===n||122===n||137===n||138===n||99===n||105===n||140===n||95===n||131===n||205===n||275===n||276===n||277===n||278===n||279===n||280===n||281===n;var n},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 162:case 163:return!0}return!1},e.isBindingPattern=function(e){if(e){var n=e.kind;return 179===n||178===n}return!1},e.isAssignmentPattern=function(e){var n=e.kind;return 181===n||182===n},e.isArrayBindingElement=function(e){var n=e.kind;return 180===n||204===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 230:case 148:case 180:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return l(e)||c(e)},e.isObjectBindingOrAssignmentPattern=l,e.isArrayBindingOrAssignmentPattern=c,e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 183===n||145===n},e.isCallLikeExpression=function(e){switch(e.kind){case 255:case 254:case 185:case 186:case 187:case 149:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 185===e.kind||186===e.kind},e.isTemplateLiteral=function(e){var n=e.kind;return 200===n||13===n},e.isLeftHandSideExpression=function(n){return u(e.skipPartiallyEmittedExpressions(n).kind)},e.isUnaryExpression=function(n){return d(e.skipPartiallyEmittedExpressions(n).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 197:return!0;case 196:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=m,e.isAssertionExpression=function(e){var n=e.kind;return 188===n||206===n},e.isPartiallyEmittedExpression=p,e.isNotEmittedStatement=f,e.isNotEmittedOrPartiallyEmittedNode=function(e){return f(e)||p(e)},e.isIterationStatement=function e(n,t){switch(n.kind){case 218:case 219:case 220:case 216:case 217:return!0;case 226:return t&&e(n.statement,t)}return!1},e.isForInOrOfStatement=function(e){return 219===e.kind||220===e.kind},e.isConciseBody=function(n){return e.isBlock(n)||m(n)},e.isFunctionBody=function(n){return e.isBlock(n)},e.isForInitializer=function(n){return e.isVariableDeclarationList(n)||m(n)},e.isModuleBody=function(e){var n=e.kind;return 238===n||237===n||71===n},e.isNamespaceBody=function(e){var n=e.kind;return 238===n||237===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 71===n||237===n},e.isNamedImportBindings=function(e){var n=e.kind;return 245===n||244===n},e.isModuleOrEnumDeclaration=function(e){return 237===e.kind||236===e.kind},e.isDeclaration=function(n){return 147===n.kind?290!==n.parent.kind||e.isInJavaScriptFile(n):191===(t=n.kind)||180===t||233===t||203===t||154===t||236===t||271===t||250===t||232===t||190===t||155===t||243===t||241===t||246===t||234===t||260===t||153===t||152===t||237===t||240===t||244===t||148===t||268===t||151===t||150===t||156===t||269===t||235===t||147===t||230===t||291===t;var t},e.isDeclarationStatement=function(e){return g(e.kind)},e.isStatementButNotDeclaration=function(e){return v(e.kind)},e.isStatement=function(n){var t=n.kind;return v(t)||g(t)||function(n){return 211===n.kind&&((void 0===n.parent||228!==n.parent.kind&&267!==n.parent.kind)&&!e.isFunctionBlock(n))}(n)},e.isModuleReference=function(e){var n=e.kind;return 252===n||145===n||71===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 99===n||71===n||183===n},e.isJsxChild=function(e){var n=e.kind;return 253===n||263===n||254===n||10===n||257===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 260===n||262===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 9===n||263===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 255===n||254===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 264===n||265===n},e.isJSDocNode=function(e){return e.kind>=274&&e.kind<=292},e.isJSDocCommentContainingNode=function(n){return 282===n.kind||_(n)||e.isJSDocTypeLiteral(n)},e.isJSDocTag=_,e.isSetAccessor=function(e){return 156===e.kind},e.isGetAccessor=function(e){return 155===e.kind},e.hasJSDocNodes=function(e){return!!e.jsDoc&&e.jsDoc.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=y,e.hasOnlyExpressionInitializer=function(n){return y(n)&&!e.isForStatement(n)&&!e.isForInStatement(n)&&!e.isForOfStatement(n)&&!e.isJsxAttribute(n)},e.isObjectLiteralElement=function(e){switch(e.kind){case 260:case 262:case 268:case 269:case 153:case 155:case 156:return!0;default:return!1}},e.isTypeReferenceType=function(e){return 161===e.kind||205===e.kind},e.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind}}(u||(u={})),function(e){var n,t,r,a,i,o,s;function l(e,n){return n&&e(n)}function c(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 u(e,n,t){if(e&&!(e.kind<=144))switch(e.kind){case 145:return l(n,e.left)||l(n,e.right);case 147:return l(n,e.name)||l(n,e.constraint)||l(n,e.default)||l(n,e.expression);case 269:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.questionToken)||l(n,e.equalsToken)||l(n,e.objectAssignmentInitializer);case 270:return l(n,e.expression);case 148:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.dotDotDotToken)||l(n,e.name)||l(n,e.questionToken)||l(n,e.type)||l(n,e.initializer);case 151:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.questionToken)||l(n,e.exclamationToken)||l(n,e.type)||l(n,e.initializer);case 150:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.questionToken)||l(n,e.type)||l(n,e.initializer);case 268:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.questionToken)||l(n,e.initializer);case 230:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.exclamationToken)||l(n,e.type)||l(n,e.initializer);case 180:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.dotDotDotToken)||l(n,e.propertyName)||l(n,e.name)||l(n,e.initializer);case 162:case 163:case 157:case 158:case 159:return c(n,t,e.decorators)||c(n,t,e.modifiers)||c(n,t,e.typeParameters)||c(n,t,e.parameters)||l(n,e.type);case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.asteriskToken)||l(n,e.name)||l(n,e.questionToken)||c(n,t,e.typeParameters)||c(n,t,e.parameters)||l(n,e.type)||l(n,e.equalsGreaterThanToken)||l(n,e.body);case 161:return l(n,e.typeName)||c(n,t,e.typeArguments);case 160:return l(n,e.parameterName)||l(n,e.type);case 164:return l(n,e.exprName);case 165:return c(n,t,e.members);case 166:return l(n,e.elementType);case 167:return c(n,t,e.elementTypes);case 168:case 169:return c(n,t,e.types);case 170:return l(n,e.checkType)||l(n,e.extendsType)||l(n,e.trueType)||l(n,e.falseType);case 171:return l(n,e.typeParameter);case 172:case 174:return l(n,e.type);case 175:return l(n,e.objectType)||l(n,e.indexType);case 176:return l(n,e.readonlyToken)||l(n,e.typeParameter)||l(n,e.questionToken)||l(n,e.type);case 177:return l(n,e.literal);case 178:case 179:case 181:return c(n,t,e.elements);case 182:return c(n,t,e.properties);case 183:return l(n,e.expression)||l(n,e.name);case 184:return l(n,e.expression)||l(n,e.argumentExpression);case 185:case 186:return l(n,e.expression)||c(n,t,e.typeArguments)||c(n,t,e.arguments);case 187:return l(n,e.tag)||l(n,e.template);case 188:return l(n,e.type)||l(n,e.expression);case 189:case 192:case 193:case 194:return l(n,e.expression);case 196:return l(n,e.operand);case 201:return l(n,e.asteriskToken)||l(n,e.expression);case 195:return l(n,e.expression);case 197:return l(n,e.operand);case 198:return l(n,e.left)||l(n,e.operatorToken)||l(n,e.right);case 206:return l(n,e.expression)||l(n,e.type);case 207:return l(n,e.expression);case 208:return l(n,e.name);case 199:return l(n,e.condition)||l(n,e.questionToken)||l(n,e.whenTrue)||l(n,e.colonToken)||l(n,e.whenFalse);case 202:return l(n,e.expression);case 211:case 238:return c(n,t,e.statements);case 272:return c(n,t,e.statements)||l(n,e.endOfFileToken);case 212:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.declarationList);case 231:return c(n,t,e.declarations);case 214:return l(n,e.expression);case 215:return l(n,e.expression)||l(n,e.thenStatement)||l(n,e.elseStatement);case 216:return l(n,e.statement)||l(n,e.expression);case 217:return l(n,e.expression)||l(n,e.statement);case 218:return l(n,e.initializer)||l(n,e.condition)||l(n,e.incrementor)||l(n,e.statement);case 219:return l(n,e.initializer)||l(n,e.expression)||l(n,e.statement);case 220:return l(n,e.awaitModifier)||l(n,e.initializer)||l(n,e.expression)||l(n,e.statement);case 221:case 222:return l(n,e.label);case 223:return l(n,e.expression);case 224:return l(n,e.expression)||l(n,e.statement);case 225:return l(n,e.expression)||l(n,e.caseBlock);case 239:return c(n,t,e.clauses);case 264:return l(n,e.expression)||c(n,t,e.statements);case 265:return c(n,t,e.statements);case 226:return l(n,e.label)||l(n,e.statement);case 227:return l(n,e.expression);case 228:return l(n,e.tryBlock)||l(n,e.catchClause)||l(n,e.finallyBlock);case 267:return l(n,e.variableDeclaration)||l(n,e.block);case 149:return l(n,e.expression);case 233:case 203:case 234:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||c(n,t,e.typeParameters)||c(n,t,e.heritageClauses)||c(n,t,e.members);case 235:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||c(n,t,e.typeParameters)||l(n,e.type);case 236:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||c(n,t,e.members);case 271:return l(n,e.name)||l(n,e.initializer);case 237:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.body);case 241:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.name)||l(n,e.moduleReference);case 242:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.importClause)||l(n,e.moduleSpecifier);case 243:return l(n,e.name)||l(n,e.namedBindings);case 240:case 244:return l(n,e.name);case 245:case 249:return c(n,t,e.elements);case 248:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.exportClause)||l(n,e.moduleSpecifier);case 246:case 250:return l(n,e.propertyName)||l(n,e.name);case 247:return c(n,t,e.decorators)||c(n,t,e.modifiers)||l(n,e.expression);case 200:return l(n,e.head)||c(n,t,e.templateSpans);case 209:return l(n,e.expression)||l(n,e.literal);case 146:return l(n,e.expression);case 266:return c(n,t,e.types);case 205:return l(n,e.expression)||c(n,t,e.typeArguments);case 252:return l(n,e.expression);case 251:return c(n,t,e.decorators);case 296:return c(n,t,e.elements);case 253:return l(n,e.openingElement)||c(n,t,e.children)||l(n,e.closingElement);case 257:return l(n,e.openingFragment)||c(n,t,e.children)||l(n,e.closingFragment);case 254:case 255:return l(n,e.tagName)||l(n,e.attributes);case 261:return c(n,t,e.properties);case 260:return l(n,e.name)||l(n,e.initializer);case 262:return l(n,e.expression);case 263:return l(n,e.dotDotDotToken)||l(n,e.expression);case 256:return l(n,e.tagName);case 274:case 278:case 277:case 279:return l(n,e.type);case 280:return c(n,t,e.parameters)||l(n,e.type);case 281:return l(n,e.type);case 282:return c(n,t,e.tags);case 287:case 292:return e.isNameFirst?l(n,e.name)||l(n,e.typeExpression):l(n,e.typeExpression)||l(n,e.name);case 288:case 289:return l(n,e.typeExpression);case 285:return l(n,e.class);case 290:return c(n,t,e.typeParameters);case 291:return e.typeExpression&&274===e.typeExpression.kind?l(n,e.typeExpression)||l(n,e.fullName):l(n,e.fullName)||l(n,e.typeExpression);case 283:if(e.jsDocPropertyTags)for(var r=0,a=e.jsDocPropertyTags;r<a.length;r++){l(n,a[r])}return;case 295:return l(n,e.expression)}}function d(n,t){for(var r=e.createScanner(n.languageVersion,!1,0,t),a=[];;){var i=r.scan();if(!e.isTrivia(i))break;var o={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()};_(a,o,t.substring(o.pos,o.end))}n.pragmas=e.createMap();for(var s=0,l=a;s<l.length;s++){var c=l[s];if(n.pragmas.has(c.name)){var u=n.pragmas.get(c.name);u instanceof Array?u.push(c.args):n.pragmas.set(c.name,[u,c.args])}else n.pragmas.set(c.name,c.args)}}function m(n,t){n.checkJsDirective=void 0,n.referencedFiles=[],n.typeReferenceDirectives=[],n.amdDependencies=[],n.hasNoDefaultLib=!1,n.pragmas.forEach(function(r,a){switch(a){case"reference":var i=n.referencedFiles,o=n.typeReferenceDirectives;e.forEach(e.toArray(r),function(r){r.arguments["no-default-lib"]?n.hasNoDefaultLib=!0:r.arguments.types?o.push({pos:r.arguments.types.pos,end:r.arguments.types.end,fileName:r.arguments.types.value}):r.arguments.path?i.push({pos:r.arguments.path.pos,end:r.arguments.path.end,fileName:r.arguments.path.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){var n=e.arguments;return{name:n.name,path:n.path}});break;case"amd-module":if(r instanceof Array)for(var s=0,l=r;s<l.length;s++){var c=l[s];n.moduleName&&t(c.range.pos,c.range.end-c.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),n.moduleName=c.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":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.RequireCompleteParameterList=8]="RequireCompleteParameterList",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(n||(n={})),e.createNode=function(n,o,s){return 272===n?new(i||(i=e.objectAllocator.getSourceFileConstructor()))(n,o,s):71===n?new(a||(a=e.objectAllocator.getIdentifierConstructor()))(n,o,s):e.isNodeKind(n)?new(t||(t=e.objectAllocator.getNodeConstructor()))(n,o,s):new(r||(r=e.objectAllocator.getTokenConstructor()))(n,o,s)},e.forEachChild=u,e.createSourceFile=function(n,t,r,a,i){void 0===a&&(a=!1),e.performance.mark("beforeParse");var s=o.parseSourceFile(n,t,r,void 0,a,i);return e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,n){return o.parseIsolatedEntityName(e,n)},e.parseJsonText=function(e,n){return o.parseJsonText(e,n)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,n,t,r){var a=s.updateSourceFile(e,n,t,r);return a.flags|=524288&e.flags,a},e.parseIsolatedJSDocComment=function(e,n,t){var r=o.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&o.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,n,t){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(n){var t,r,a,i,o,s,l,c,p,f,g,v,_,y,h,b,E,T=e.createScanner(6,!0),S=10240,L=!1;function A(e){return 4===e||2===e||1===e||6===e?1:0}function x(n,o,c,u){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),i=e.objectAllocator.getSourceFileConstructor(),p=n,l=c,s=[],_=0,g=e.createMap(),v=0,f=0,u){case 1:case 2:case 6:y=65536;break;default:y=0}L=!1,T.setText(p),T.setOnError(J),T.setScriptTarget(o),T.setLanguageVariant(A(u))}function C(){T.setText(""),T.setOnError(void 0),s=void 0,o=void 0,g=void 0,l=void 0,p=void 0}function k(n,t,r,a){var i=function(n){return e.fileExtensionIs(n,".d.ts")}(n);return i&&(y|=2097152),(o=O(n,t,a,i)).flags=y,Q(),d(o,p),m(o,function(n,t,r){s.push(e.createFileDiagnostic(o,n,t,r))}),o.statements=Ve(0,Rt),e.Debug.assert(1===Y()),o.endOfFileToken=M(ce()),function(n){n.externalModuleIndicator=e.forEach(n.statements,function(n){return e.hasModifier(n,1)||241===n.kind&&252===n.moduleReference.kind||242===n.kind||247===n.kind||248===n.kind?n:void 0})}(o),o.nodeCount=f,o.identifierCount=v,o.identifiers=g,o.parseDiagnostics=s,r&&D(o),o}function M(n){var t=e.getJSDocCommentRanges(n,o.text);if(t)for(var r=0,a=t;r<a.length;r++){var i=a[r];n.jsDoc=e.append(n.jsDoc,E.parseJSDocComment(n,i.pos,i.end-i.pos))}return n}function D(n){var t=n;return void u(n,function n(r){if(r.parent!==t){r.parent=t;var a=t;if(t=r,u(r,n),e.hasJSDocNodes(r))for(var i=0,o=r.jsDoc;i<o.length;i++){var s=o[i];s.parent=r,t=s,u(s,n)}t=a}})}function O(n,t,r,a){var o=new i(272,0,p.length);return f++,o.text=p,o.bindDiagnostics=[],o.languageVersion=t,o.fileName=e.normalizePath(n),o.languageVariant=A(r),o.isDeclarationFile=a,o.scriptKind=r,o}function R(e,n){e?y|=n:y&=~n}function I(e){R(e,2048)}function N(e){R(e,4096)}function w(e){R(e,8192)}function P(e){R(e,16384)}function F(e,n){var t=e&y;if(t){R(!1,t);var r=n();return R(!0,t),r}return n()}function V(e,n){var t=e&~y;if(t){R(!0,t);var r=n();return R(!1,t),r}return n()}function G(e){return F(2048,e)}function H(e){return V(16384,e)}function K(e){return 0!=(y&e)}function B(){return K(4096)}function U(){return K(2048)}function j(){return K(8192)}function W(){return K(16384)}function q(e,n){var t=T.getTokenPos();z(t,T.getTextPos()-t,e,n)}function z(n,t,r,a){var i=e.lastOrUndefined(s);i&&n===i.start||s.push(e.createFileDiagnostic(o,n,t,r,a)),L=!0}function J(e,n){z(T.getTextPos(),n||0,e)}function X(){return T.getStartPos()}function Y(){return c}function Q(){return c=T.scan()}function Z(){return c=T.reScanGreaterToken()}function $(){return c=T.scanJsxIdentifier()}function ee(){return c=T.scanJsxToken()}function ne(n,t){var r=c,a=s.length,i=L,o=y,l=t?T.lookAhead(n):T.tryScan(n);return e.Debug.assert(o===y),l&&!t||(c=r,s.length=a,L=i),l}function te(e){return ne(e,!0)}function re(e){return ne(e,!1)}function ae(){return 71===Y()||(116!==Y()||!B())&&((121!==Y()||!W())&&Y()>107)}function ie(n,t,r){return void 0===r&&(r=!0),Y()===n?(r&&Q(),!0):(t?q(t):q(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function oe(e){return Y()===e&&(Q(),!0)}function se(e){if(Y()===e)return ce()}function le(n,t,r){return se(n)||ve(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function ce(){var e=me(Y());return Q(),ge(e)}function ue(){return 25===Y()||(18===Y()||1===Y()||T.hasPrecedingLineBreak())}function de(){return ue()?(25===Y()&&Q(),!0):ie(25)}function me(n,i){f++;var o=i>=0?i:T.getStartPos();return e.isNodeKind(n)||0===n?new t(n,o,o):71===n?new a(n,o,o):new r(n,o,o)}function pe(e){var n=me(e);return 2&T.getTokenFlags()&&M(n),n}function fe(e,n,t){var r=e.length,a=r>=1&&r<=4?e.slice():e;return a.pos=n,a.end=void 0===t?T.getStartPos():t,a}function ge(e,n){return e.end=void 0===n?T.getStartPos():n,y&&(e.flags|=y),L&&(L=!1,e.flags|=32768),e}function ve(n,t,r,a){t?z(T.getStartPos(),0,r,a):q(r,a);var i=me(n);return 71===n?i.escapedText="":(e.isLiteralKind(n)||e.isTemplateLiteralKind(n))&&(i.text=""),ge(i)}function _e(e){var n=g.get(e);return void 0===n&&g.set(e,n=e),n}function ye(n,t){if(v++,n){var r=me(71);return 71!==Y()&&(r.originalKeywordKind=Y()),r.escapedText=e.escapeLeadingUnderscores(_e(T.getTokenValue())),Q(),ge(r)}return ve(71,1===Y(),t||e.Diagnostics.Identifier_expected)}function he(e){return ye(ae(),e)}function be(n){return ye(e.tokenIsIdentifierOrKeyword(Y()),n)}function Ee(){return e.tokenIsIdentifierOrKeyword(Y())||9===Y()||8===Y()}function Te(e){if(9===Y()||8===Y()){var n=Ye();return n.text=_e(n.text),n}return e&&21===Y()?function(){var e=me(146);return ie(21),e.expression=G(Fn),ie(22),ge(e)}():be()}function Se(){return Te(!0)}function Le(e){return Y()===e&&re(xe)}function Ae(){return Q(),!T.hasPrecedingLineBreak()&&Ce()}function xe(){return 76===Y()?83===Q():84===Y()?(Q(),79===Y()?te(ke):39!==Y()&&118!==Y()&&17!==Y()&&Ce()):79===Y()?ke():115===Y()?(Q(),Ce()):Ae()}function Ce(){return 21===Y()||17===Y()||39===Y()||24===Y()||Ee()}function ke(){return Q(),75===Y()||89===Y()||109===Y()||117===Y()&&te(At)||120===Y()&&te(xt)}function Me(n,t){if(He(n))return!0;switch(n){case 0:case 1:case 3:return!(25===Y()&&t)&&Dt();case 2:return 73===Y()||79===Y();case 4:return te(mn);case 5:return te(Zt)||25===Y()&&!t;case 6:return 21===Y()||Ee();case 12:return 21===Y()||39===Y()||24===Y()||Ee();case 17:return Ee();case 9:return 21===Y()||24===Y()||Ee();case 7:return 17===Y()?te(De):t?ae()&&!Ne():wn()&&!Ne();case 8:return Ht();case 10:return 26===Y()||24===Y()||Ht();case 18:return ae();case 15:if(26===Y())return!0;case 11:return 24===Y()||Pn();case 16:return rn();case 19:case 20:return 26===Y()||Sn();case 21:return cr();case 22:return e.tokenIsIdentifierOrKeyword(Y());case 13:return e.tokenIsIdentifierOrKeyword(Y())||17===Y();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function De(){if(e.Debug.assert(17===Y()),18===Q()){var n=Q();return 26===n||17===n||85===n||108===n}return!0}function Oe(){return Q(),ae()}function Re(){return Q(),e.tokenIsIdentifierOrKeyword(Y())}function Ie(){return Q(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Y())}function Ne(){return(108===Y()||85===Y())&&te(we)}function we(){return Q(),Pn()}function Pe(){return Q(),Sn()}function Fe(e){if(1===Y())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===Y();case 3:return 18===Y()||73===Y()||79===Y();case 7:return 17===Y()||85===Y()||108===Y();case 8:return function(){if(ue())return!0;if(zn(Y()))return!0;if(36===Y())return!0;return!1}();case 18:return 29===Y()||19===Y()||17===Y()||85===Y()||108===Y();case 11:return 20===Y()||25===Y();case 15:case 20:case 10:return 22===Y();case 16:case 17:return 20===Y()||22===Y();case 19:return 26!==Y();case 21:return 17===Y()||18===Y();case 13:return 29===Y()||41===Y();case 14:return 27===Y()&&te(fr)}}function Ve(e,n){var t=_;_|=1<<e;for(var r=[],a=X();!Fe(e);)if(Me(e,!1)){var i=Ge(e,n);r.push(i)}else if(Ke(e))break;return _=t,fe(r,a)}function Ge(e,n){var t=He(e);return t?function(e){return T.setTextPos(e.end),Q(),e}(t):n()}function He(n){if(!L&&l){var t=l.currentNode(T.getStartPos());if(!e.nodeIsMissing(t))if(!t.intersectsChange)if(!e.containsParseError(t))if((6387712&t.flags)===y&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 154:case 159:case 155:case 156:case 151:case 210:return!0;case 153:var n=e,t=71===n.name.kind&&123===n.name.originalKeywordKind;return!t}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 264:case 265:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 232:case 212:case 211:case 215:case 214:case 227:case 223:case 225:case 222:case 221:case 219:case 220:case 218:case 217:case 224:case 213:case 228:case 226:case 216:case 229:case 242:case 241:case 248:case 247:case 237:case 233:case 234:case 236:case 235:return!0}return!1}(e);case 6:return function(e){return 271===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 158:case 152:case 159:case 150:case 157:return!0}return!1}(e);case 8:return function(e){if(230!==e.kind)return!1;return void 0===e.initializer}(e);case 16:return function(e){if(148!==e.kind)return!1;return void 0===e.initializer}(e);case 17:return!1}return!1}(t,n))return t.jsDocCache&&(t.jsDocCache=void 0),t}}function Ke(n){return q(function(n){switch(n){case 0:case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 17:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 16:return e.Diagnostics.Parameter_declaration_expected;case 18:return e.Diagnostics.Type_parameter_declaration_expected;case 19:return e.Diagnostics.Type_argument_expected;case 20:return e.Diagnostics.Type_expected;case 21:return e.Diagnostics.Unexpected_token_expected;case 22:case 13:case 14:return e.Diagnostics.Identifier_expected}}(n)),!!function(){for(var e=0;e<23;e++)if(_&1<<e&&(Me(e,!0)||Fe(e)))return!0;return!1}()||(Q(),!1)}function Be(e,n,t){var r=_;_|=1<<e;for(var a=[],i=X(),o=-1;;)if(Me(e,!1)){var s=T.getStartPos();if(a.push(Ge(e,n)),o=T.getTokenPos(),oe(26))continue;if(o=-1,Fe(e))break;ie(26),t&&25===Y()&&!T.hasPrecedingLineBreak()&&Q(),s===T.getStartPos()&&Q()}else{if(Fe(e))break;if(Ke(e))break}_=r;var l=fe(a,i);return o>=0&&(l.hasTrailingComma=!0),l}function Ue(){return fe([],X())}function je(e,n,t,r){if(ie(t)){var a=Be(e,n);return ie(r),a}return Ue()}function We(e,n){for(var t=e?be(n):he(n),r=T.getStartPos();oe(23);){if(27===Y()){t.jsdocDotPos=r;break}r=T.getStartPos(),t=qe(t,ze(e))}return t}function qe(e,n){var t=me(145,e.pos);return t.left=e,t.right=n,ge(t)}function ze(n){if(T.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Y())&&te(Lt))return ve(71,!0,e.Diagnostics.Identifier_expected);return n?be():he()}function Je(){var n,t=me(200);t.head=(n=Qe(Y()),e.Debug.assert(14===n.kind,"Template head has wrong token kind"),n),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var r=[],a=X();do{r.push(Xe())}while(15===e.lastOrUndefined(r).literal.kind);return t.templateSpans=fe(r,a),ge(t)}function Xe(){var n,t,r=me(209);return r.expression=G(Fn),18===Y()?(c=T.reScanTemplateToken(),t=Qe(Y()),e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),n=t):n=le(16,e.Diagnostics._0_expected,e.tokenToString(18)),r.literal=n,ge(r)}function Ye(){return Qe(Y())}function Qe(e){var n=me(e),t=T.getTokenValue();return n.text=t,T.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),T.isUnterminated()&&(n.isUnterminated=!0),8===n.kind&&(n.numericLiteralFlags=1008&T.getTokenFlags()),Q(),ge(n),n}function Ze(){var n=me(161);return n.typeName=We(!0,e.Diagnostics.Type_expected),T.hasPrecedingLineBreak()||27!==Y()||(n.typeArguments=je(19,Rn,27,29)),ge(n)}function $e(){var e=me(148);return 99!==Y()&&94!==Y()||(e.name=be(),ie(56)),e.type=Rn(),ge(e)}function en(){var e=me(147);return e.name=he(),oe(85)&&(Sn()||!Pn()?e.constraint=Rn():e.expression=Zn()),oe(58)&&(e.default=Rn()),ge(e)}function nn(){if(27===Y())return je(18,en,27,29)}function tn(){if(oe(56))return Rn()}function rn(){return 24===Y()||Ht()||e.isModifierKind(Y())||57===Y()||Sn(!0)}function an(){var n=pe(148);return 99===Y()?(n.name=ye(!0),n.type=tn(),ge(n)):(n.decorators=$t(),n.modifiers=er(),n.dotDotDotToken=se(24),n.name=Kt(),0===e.getFullWidth(n.name)&&!e.hasModifiers(n)&&e.isModifierKind(Y())&&Q(),n.questionToken=se(55),n.type=tn(),n.initializer=Vn(),ge(n))}function on(n,t,r){32&t||(r.typeParameters=nn()),r.parameters=function(e){if(ie(19)){var n=B(),t=W();N(!!(1&e)),P(!!(2&e));var r=Be(16,32&e?$e:an);if(N(n),P(t),!ie(20)&&8&e)return;return r}return 8&e?void 0:Ue()}(t),r.type=function(n,t){return function(n,t){if(36===n)return ie(n),!0;if(oe(56))return!0;if(t&&36===Y())return q(e.Diagnostics._0_expected,e.tokenToString(56)),Q(),!0;return!1}(n,t)?function(){var e=ae()&&re(On),n=Rn();if(e){var t=me(160,e.pos);return t.parameterName=e,t.type=n,ge(t)}return n}():void 0}(n,!!(4&t))}function sn(){oe(26)||de()}function ln(e){var n=pe(e);return 158===e&&ie(94),on(56,4,n),sn(),ge(n)}function cn(){return 21===Y()&&te(un)}function un(){if(Q(),24===Y()||22===Y())return!0;if(e.isModifierKind(Y())){if(Q(),ae())return!0}else{if(!ae())return!1;Q()}return 56===Y()||26===Y()||55===Y()&&(Q(),56===Y()||26===Y()||22===Y())}function dn(e){return e.kind=159,e.parameters=je(16,an,21,22),e.type=Nn(),sn(),ge(e)}function mn(){if(19===Y()||27===Y())return!0;for(var n;e.isModifierKind(Y());)n=!0,Q();return 21===Y()||(Ee()&&(n=!0,Q()),!!n&&(19===Y()||27===Y()||55===Y()||56===Y()||26===Y()||ue()))}function pn(){if(19===Y()||27===Y())return ln(157);if(94===Y()&&te(fn))return ln(158);var e=pe(0);return e.modifiers=er(),cn()?dn(e):function(e){return e.name=Se(),e.questionToken=se(55),19===Y()||27===Y()?(e.kind=152,on(56,4,e)):(e.kind=150,e.type=Nn(),58===Y()&&(e.initializer=Vn())),sn(),ge(e)}(e)}function fn(){return Q(),19===Y()||27===Y()}function gn(){var e;return ie(17)?(e=Ve(4,pn),ie(18)):e=Ue(),e}function vn(){return Q(),37===Y()||38===Y()?132===Q():(132===Y()&&Q(),21===Y()&&Oe()&&92===Q())}function _n(){var e=me(176);return ie(17),132!==Y()&&37!==Y()&&38!==Y()||(e.readonlyToken=ce(),132!==e.readonlyToken.kind&&le(132)),ie(21),e.typeParameter=function(){var e=me(147);return e.name=he(),ie(92),e.constraint=Rn(),ge(e)}(),ie(22),55!==Y()&&37!==Y()&&38!==Y()||(e.questionToken=ce(),55!==e.questionToken.kind&&le(55)),e.type=Nn(),de(),ie(18),ge(e)}function yn(e){var n=pe(e);return 163===e&&ie(94),on(36,4,n),ge(n)}function hn(){var e=ce();return 23===Y()?void 0:e}function bn(e){var n,t=me(177);e&&((n=me(196)).operator=38,Q());var r=101===Y()||86===Y()?ce():Qe(Y());return e&&(n.operand=r,ge(n),r=n),t.literal=r,ge(t)}function En(){return 8===Q()}function Tn(){switch(Y()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return re(hn)||Ze();case 39:return t=me(275),Q(),ge(t);case 55:return function(){var e,n=T.getStartPos();return Q(),26===Y()||18===Y()||20===Y()||29===Y()||58===Y()||49===Y()?ge(e=me(276,n)):((e=me(277,n)).type=Rn(),ge(e))}();case 89:return function(){if(te(pr)){var e=pe(280);return Q(),on(56,36,e),ge(e)}var n=me(161);return n.typeName=be(),ge(n)}();case 51:return function(e){var n=me(e);return Q(),n.type=Tn(),ge(n)}(278);case 13:case 9:case 8:case 101:case 86:return bn();case 38:return te(En)?bn(!0):Ze();case 105:case 95:return ce();case 99:var e=(n=me(173),Q(),ge(n));return 127!==Y()||T.hasPrecedingLineBreak()?e:function(e){Q();var n=me(160,e.pos);return n.parameterName=e,n.type=Rn(),ge(n)}(e);case 103:return function(){var e=me(164);return ie(103),e.exprName=We(!0),ge(e)}();case 17:return te(vn)?_n():function(){var e=me(165);return e.members=gn(),ge(e)}();case 21:return function(){var e=me(167);return e.elementTypes=je(20,Rn,21,22),ge(e)}();case 19:return function(){var e=me(172);return ie(19),e.type=Rn(),ie(20),ge(e)}();default:return Ze()}var n,t}function Sn(e){switch(Y()){case 119:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:return!0;case 38:return!e&&te(En);case 19:return!e&&te(Ln);default:return ae()}}function Ln(){return Q(),20===Y()||rn()||Sn()}function An(){for(var e=Tn();!T.hasPrecedingLineBreak();)switch(Y()){case 58:if(!(1048576&y))return e;e=xn(279,e);break;case 51:e=xn(278,e);break;case 55:if(!(1048576&y)&&te(Pe))return e;e=xn(277,e);break;case 21:var n;if(ie(21),Sn())(n=me(175,e.pos)).objectType=e,n.indexType=Rn(),ie(22),e=ge(n);else(n=me(166,e.pos)).elementType=e,ie(22),e=ge(n);break;default:return e}return e}function xn(e,n){Q();var t=me(e,n.pos);return t.type=n,ge(t)}function Cn(){var e=Y();switch(e){case 128:case 141:return function(e){var n=me(174);return ie(e),n.operator=e,n.type=Cn(),ge(n)}(e);case 126:return function(){var e=me(171);ie(126);var n=me(147);return n.name=he(),e.typeParameter=ge(n),ge(e)}();case 24:var n=me(281);return Q(),n.type=An(),ge(n)}return An()}function kn(e,n,t){oe(t);var r=n();if(Y()===t){for(var a=[r];oe(t);)a.push(n());var i=me(e,r.pos);i.types=fe(a,r.pos),r=ge(i)}return r}function Mn(){return kn(169,Cn,48)}function Dn(){if(Q(),20===Y()||24===Y())return!0;if(function(){if(e.isModifierKind(Y())&&er(),ae()||99===Y())return Q(),!0;if(21===Y()||17===Y()){var n=s.length;return Kt(),n===s.length}return!1}()){if(56===Y()||26===Y()||55===Y()||58===Y())return!0;if(20===Y()&&(Q(),36===Y()))return!0}return!1}function On(){var e=he();if(127===Y()&&!T.hasPrecedingLineBreak())return Q(),e}function Rn(){return F(20480,In)}function In(e){if(27===Y()||19===Y()&&te(Dn))return yn(162);if(94===Y())return yn(163);var n=kn(168,Mn,49);if(!e&&!T.hasPrecedingLineBreak()&&oe(85)){var t=me(170,n.pos);return t.checkType=n,t.extendsType=In(!0),ie(55),t.trueType=In(),ie(56),t.falseType=In(),ge(t)}return n}function Nn(){return oe(56)?Rn():void 0}function wn(){switch(Y()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return te(fn);default:return ae()}}function Pn(){if(wn())return!0;switch(Y()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!function(){if(U()&&92===Y())return!1;return Xn()>0}()||ae()}}function Fn(){var e=j();e&&w(!1);for(var n,t=Gn();n=se(26);)t=Yn(t,n,Gn());return e&&w(!0),t}function Vn(){return oe(58)?Gn():void 0}function Gn(){if(function(){if(116===Y())return!!B()||te(Ct);return!1}())return n=me(201),Q(),T.hasPrecedingLineBreak()||39!==Y()&&!Pn()?ge(n):(n.asteriskToken=se(39),n.expression=Gn(),ge(n));var n,t=function(){var n=function(){if(19===Y()||27===Y()||120===Y())return te(Kn);if(36===Y())return 1;return 0}();if(0===n)return;var t=1===n?jn(!0):re(Bn);if(!t)return;var r=e.hasModifier(t,256),a=Y();return t.equalsGreaterThanToken=le(36),t.body=36===a||17===a?Wn(r):he(),ge(t)}()||function(){if(120===Y()&&1===te(Un)){var e=nr(),n=qn(0);return Hn(n,e)}return}();if(t)return t;var r=qn(0);return 71===r.kind&&36===Y()?Hn(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(Z())?Yn(r,ce(),Gn()):function(n){var t=se(55);if(!t)return n;var r=me(199,n.pos);return r.condition=n,r.questionToken=t,r.whenTrue=F(S,Gn),r.colonToken=le(56),r.whenFalse=e.nodeIsPresent(r.colonToken)?Gn():ve(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),ge(r)}(r)}function Hn(n,t){var r;e.Debug.assert(36===Y(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),t?(r=me(191,t.pos)).modifiers=t:r=me(191,n.pos);var a=me(148,n.pos);return a.name=n,ge(a),r.parameters=fe([a],a.pos,a.end),r.equalsGreaterThanToken=le(36),r.body=Wn(!!t),M(ge(r))}function Kn(){if(120===Y()){if(Q(),T.hasPrecedingLineBreak())return 0;if(19!==Y()&&27!==Y())return 0}var n=Y(),t=Q();if(19===n){if(20===t)switch(Q()){case 36:case 56:case 17:return 1;default:return 0}if(21===t||17===t)return 2;if(24===t)return 1;if(e.isModifierKind(t)&&120!==t&&te(Oe))return 1;if(!ae())return 0;switch(Q()){case 56:return 1;case 55:return Q(),56===Y()||26===Y()||58===Y()||20===Y()?1:0;case 26:case 58:case 20:return 2}return 0}return e.Debug.assert(27===n),ae()?1===o.languageVariant?te(function(){var e=Q();if(85===e)switch(Q()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function Bn(){return jn(!1)}function Un(){if(120===Y()){if(Q(),T.hasPrecedingLineBreak()||36===Y())return 0;var e=qn(0);if(!T.hasPrecedingLineBreak()&&71===e.kind&&36===Y())return 1}return 0}function jn(n){var t=pe(191);if(t.modifiers=nr(),on(56,(e.hasModifier(t,256)?2:0)|(n?0:8),t),t.parameters&&(n||36===Y()||17===Y()))return t}function Wn(e){return 17===Y()?ht(e?2:0):25===Y()||89===Y()||75===Y()||!Dt()||17!==Y()&&89!==Y()&&75!==Y()&&57!==Y()&&Pn()?e?H(Gn):F(16384,Gn):ht(16|(e?2:0))}function qn(e){return Jn(e,Zn())}function zn(e){return 92===e||144===e}function Jn(e,n){for(;;){Z();var t=Xn();if(!(40===Y()?t>=e:t>e))break;if(92===Y()&&U())break;if(118===Y()){if(T.hasPrecedingLineBreak())break;Q(),n=Qn(n,Rn())}else n=Yn(n,ce(),qn(t))}return n}function Xn(){switch(Y()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function Yn(e,n,t){var r=me(198,e.pos);return r.left=e,r.operatorToken=n,r.right=t,ge(r)}function Qn(e,n){var t=me(206,e.pos);return t.expression=e,t.type=n,ge(t)}function Zn(){if(function(){switch(Y()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==o.languageVariant)return!1;default:return!0}}()){var n=et();return 40===Y()?Jn(Xn(),n):n}var t=Y(),r=$n();if(40===Y()){var a=e.skipTrivia(p,r.pos);188===r.kind?z(a,r.end-a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):z(a,r.end-a,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(t))}return r}function $n(){switch(Y()){case 37:case 38:case 52:case 51:return(e=me(196)).operator=Y(),Q(),e.operand=$n(),ge(e);case 80:return function(){var e=me(192);return Q(),e.expression=$n(),ge(e)}();case 103:return function(){var e=me(193);return Q(),e.expression=$n(),ge(e)}();case 105:return function(){var e=me(194);return Q(),e.expression=$n(),ge(e)}();case 27:return function(){var e=me(188);return ie(27),e.type=Rn(),ie(29),e.expression=$n(),ge(e)}();case 121:if(121===Y()&&(W()||te(Ct)))return function(){var e=me(195);return Q(),e.expression=$n(),ge(e)}();default:return et()}var e}function et(){if(43===Y()||44===Y())return(n=me(196)).operator=Y(),Q(),n.operand=nt(),ge(n);if(1===o.languageVariant&&27===Y()&&te(Ie))return rt(!0);var n,t=nt();return e.Debug.assert(e.isLeftHandSideExpression(t)),43!==Y()&&44!==Y()||T.hasPrecedingLineBreak()?t:((n=me(197,t.pos)).operand=t,n.operator=Y(),Q(),ge(n))}function nt(){var n;return 91===Y()&&te(fn)?(o.flags|=524288,n=ce()):n=97===Y()?function(){var n=ce();if(19===Y()||23===Y()||21===Y())return n;var t=me(183,n.pos);return t.expression=n,le(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),t.name=ze(!0),ge(t)}():tt(),function(e){for(;;)if(e=ct(e),27!==Y()){if(19!==Y())return e;var n=me(185,e.pos);n.expression=e,n.arguments=ut(),e=ge(n)}else{var t=re(dt);if(!t)return e;var n=me(185,e.pos);n.expression=e,n.typeArguments=t,n.arguments=ut(),e=ge(n)}}(n)}function tt(){return ct(function(){switch(Y()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return ce();case 19:return n=pe(189),ie(19),n.expression=G(Fn),ie(20),ge(n);case 21:return function(){var e=me(181);ie(21),T.hasPrecedingLineBreak()&&(e.multiLine=!0);return e.elements=Be(15,mt),ie(22),ge(e)}();case 17:return gt();case 120:if(!te(xt))break;return vt();case 75:return ar(pe(0),203);case 89:return vt();case 94:return function(){var e=T.getStartPos();if(ie(94),oe(23)){var n=me(208,e);return n.keywordToken=94,n.name=be(),ge(n)}var t=me(186,e);t.expression=tt(),t.typeArguments=re(dt),(t.typeArguments||19===Y())&&(t.arguments=ut());return ge(t)}();case 41:case 63:if(12===(c=T.reScanSlashToken()))return Ye();break;case 14:return Je()}var n;return he(e.Diagnostics.Expression_expected)}())}function rt(n){var t,r=function(e){var n=T.getStartPos();if(ie(27),29===Y()){var t=me(258,n);return ee(),ge(t)}var r,a=ot(),i=(o=me(261),o.properties=Ve(13,lt),ge(o));var o;29===Y()?(r=me(255,n),ee()):(ie(41),e?ie(29):(ie(29,void 0,!1),ee()),r=me(254,n));return r.tagName=a,r.attributes=i,ge(r)}(n);if(255===r.kind)(a=me(253,r.pos)).openingElement=r,a.children=it(a.openingElement),a.closingElement=function(e){var n=me(256);ie(28),n.tagName=ot(),e?ie(29):(ie(29,void 0,!1),ee());return ge(n)}(n),function e(n,t){return n.kind===t.kind&&(71===n.kind?n.escapedText===t.escapedText:99===n.kind||n.name.escapedText===t.name.escapedText&&e(n.expression,t.expression))}(a.openingElement.tagName,a.closingElement.tagName)||z(a.closingElement.pos,a.closingElement.end-a.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(p,a.openingElement.tagName)),t=ge(a);else if(258===r.kind){var a;(a=me(257,r.pos)).openingFragment=r,a.children=it(a.openingFragment),a.closingFragment=function(n){var t=me(259);if(ie(28),e.tokenIsIdentifierOrKeyword(Y())){var r=ot();z(r.pos,r.end-r.pos,e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}n?ie(29):(ie(29,void 0,!1),ee());return ge(t)}(n),t=ge(a)}else e.Debug.assert(254===r.kind),t=r;if(n&&27===Y()){var i=re(function(){return rt(!0)});if(i){q(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=me(198,t.pos);return o.end=i.end,o.left=t,o.right=i,o.operatorToken=ve(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return t}function at(){switch(Y()){case 10:case 11:return(n=me(10)).containsOnlyWhiteSpaces=11===c,c=T.scanJsxToken(),ge(n);case 17:return st(!1);case 27:return rt(!1)}var n;e.Debug.fail("Unknown JSX child kind "+Y())}function it(n){var t=[],r=X(),a=_;for(_|=16384;c=T.reScanJsxToken(),28!==Y();){if(1===Y()){if(e.isJsxOpeningFragment(n))z(n.pos,n.end-n.pos,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var i=n.tagName;z(i.pos,i.end-i.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(p,i))}break}if(7===Y())break;var o=at();o&&t.push(o)}return _=a,fe(t,r)}function ot(){$();for(var e=99===Y()?ce():be();oe(23);){var n=me(183,e.pos);n.expression=e,n.name=ze(!0),e=ge(n)}return e}function st(e){var n=me(263);if(ie(17))return 18!==Y()&&(n.dotDotDotToken=se(24),n.expression=Gn()),e?ie(18):(ie(18,void 0,!1),ee()),ge(n)}function lt(){if(17===Y())return function(){var e=me(262);return ie(17),ie(24),e.expression=Fn(),ie(18),ge(e)}();$();var e=me(260);if(e.name=be(),58===Y())switch(c=T.scanJsxAttributeValue()){case 9:e.initializer=Ye();break;default:e.initializer=st(!0)}return ge(e)}function ct(e){for(;;){if(se(23)){var n=me(183,e.pos);n.expression=e,n.name=ze(!0),e=ge(n)}else if(51!==Y()||T.hasPrecedingLineBreak())if(j()||!oe(21)){if(13!==Y()&&14!==Y())return e;var t=me(187,e.pos);t.tag=e,t.template=13===Y()?Ye():Je(),e=ge(t)}else{var r=me(184,e.pos);if(r.expression=e,22!==Y()&&(r.argumentExpression=G(Fn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var a=r.argumentExpression;a.text=_e(a.text)}ie(22),e=ge(r)}else{Q();var i=me(207,e.pos);i.expression=e,e=ge(i)}}}function ut(){ie(19);var e=Be(11,pt);return ie(20),e}function dt(){if(oe(27)){var e=Be(19,Rn);if(ie(29))return e&&function(){switch(Y()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}()?e:void 0}}function mt(){return 24===Y()?(e=me(202),ie(24),e.expression=Gn(),ge(e)):26===Y()?me(204):Gn();var e}function pt(){return F(S,mt)}function ft(){var e=pe(0);if(se(24))return e.kind=270,e.expression=Gn(),ge(e);if(e.decorators=$t(),e.modifiers=er(),Le(125))return Yt(e,155);if(Le(136))return Yt(e,156);var n=se(39),t=ae();if(e.name=Se(),e.questionToken=se(55),n||19===Y()||27===Y())return Jt(e,n);if(t&&(26===Y()||18===Y()||58===Y())){e.kind=269;var r=se(58);r&&(e.equalsToken=r,e.objectAssignmentInitializer=G(Gn))}else e.kind=268,ie(56),e.initializer=G(Gn);return ge(e)}function gt(){var e=me(182);return ie(17),T.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Be(12,ft,!0),ie(18),ge(e)}function vt(){var n=j();n&&w(!1);var t=pe(190);t.modifiers=er(),ie(89),t.asteriskToken=se(39);var r=t.asteriskToken?1:0,a=e.hasModifier(t,256)?2:0;return t.name=r&&a?V(20480,_t):r?function(e){return V(4096,e)}(_t):a?H(_t):_t(),on(56,r|a,t),t.body=ht(r|a),n&&w(!0),ge(t)}function _t(){return ae()?he():void 0}function yt(e,n){var t=me(211);return ie(17,n)||e?(T.hasPrecedingLineBreak()&&(t.multiLine=!0),t.statements=Ve(1,Rt),ie(18)):t.statements=Ue(),ge(t)}function ht(e,n){var t=B();N(!!(1&e));var r=W();P(!!(2&e));var a=j();a&&w(!1);var i=yt(!!(16&e),n);return a&&w(!0),N(t),P(r),i}function bt(){var e=X();ie(88);var n,t,r=se(121);if(ie(19),25!==Y()&&(n=104===Y()||110===Y()||76===Y()?jt(!0):V(2048,Fn)),r?ie(144):oe(144)){var a=me(220,e);a.awaitModifier=r,a.initializer=n,a.expression=G(Gn),ie(20),t=a}else if(oe(92)){var i=me(219,e);i.initializer=n,i.expression=G(Fn),ie(20),t=i}else{var o=me(218,e);o.initializer=n,ie(25),25!==Y()&&20!==Y()&&(o.condition=G(Fn)),ie(25),20!==Y()&&(o.incrementor=G(Fn)),ie(20),t=o}return t.statement=Rt(),ge(t)}function Et(e){var n=me(e);return ie(222===e?72:77),ue()||(n.label=he()),de(),ge(n)}function Tt(){return 73===Y()?(e=me(264),ie(73),e.expression=G(Fn),ie(56),e.statements=Ve(3,Rt),ge(e)):function(){var e=me(265);return ie(79),ie(56),e.statements=Ve(3,Rt),ge(e)}();var e}function St(){var e=me(228);return ie(102),e.tryBlock=yt(!1),e.catchClause=74===Y()?function(){var e=me(267);ie(74),oe(19)?(e.variableDeclaration=Ut(),ie(20)):e.variableDeclaration=void 0;return e.block=yt(!1),ge(e)}():void 0,e.catchClause&&87!==Y()||(ie(87),e.finallyBlock=yt(!1)),ge(e)}function Lt(){return Q(),e.tokenIsIdentifierOrKeyword(Y())&&!T.hasPrecedingLineBreak()}function At(){return Q(),75===Y()&&!T.hasPrecedingLineBreak()}function xt(){return Q(),89===Y()&&!T.hasPrecedingLineBreak()}function Ct(){return Q(),(e.tokenIsIdentifierOrKeyword(Y())||8===Y()||9===Y())&&!T.hasPrecedingLineBreak()}function kt(){for(;;)switch(Y()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return Q(),!T.hasPrecedingLineBreak()&&ae();case 129:case 130:return Pt();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(Q(),T.hasPrecedingLineBreak())return!1;continue;case 143:return Q(),17===Y()||71===Y()||84===Y();case 91:return Q(),9===Y()||39===Y()||17===Y()||e.tokenIsIdentifierOrKeyword(Y());case 84:if(Q(),58===Y()||39===Y()||17===Y()||79===Y()||118===Y())return!0;continue;case 115:Q();continue;default:return!1}}function Mt(){return te(kt)}function Dt(){switch(Y()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Mt()||te(fn);case 76:case 84:return Mt();case 120:case 124:case 109:case 129:case 130:case 139:case 143:return!0;case 114:case 112:case 113:case 115:case 132:return Mt()||!te(Lt);default:return Pn()}}function Ot(){return Q(),ae()||17===Y()||21===Y()}function Rt(){switch(Y()){case 25:return e=me(213),ie(25),ge(e);case 17:return yt(!1);case 104:return qt(pe(230));case 110:if(te(Ot))return qt(pe(230));break;case 89:return zt(pe(232));case 75:return rr(pe(233));case 90:return function(){var e=me(215);return ie(90),ie(19),e.expression=G(Fn),ie(20),e.thenStatement=Rt(),e.elseStatement=oe(82)?Rt():void 0,ge(e)}();case 81:return function(){var e=me(216);return ie(81),e.statement=Rt(),ie(106),ie(19),e.expression=G(Fn),ie(20),oe(25),ge(e)}();case 106:return function(){var e=me(217);return ie(106),ie(19),e.expression=G(Fn),ie(20),e.statement=Rt(),ge(e)}();case 88:return bt();case 77:return Et(221);case 72:return Et(222);case 96:return function(){var e=me(223);return ie(96),ue()||(e.expression=G(Fn)),de(),ge(e)}();case 107:return function(){var e=me(224);return ie(107),ie(19),e.expression=G(Fn),ie(20),e.statement=V(4194304,Rt),ge(e)}();case 98:return function(){var e=me(225);ie(98),ie(19),e.expression=G(Fn),ie(20);var n=me(239);return ie(17),n.clauses=Ve(2,Tt),ie(18),e.caseBlock=ge(n),ge(e)}();case 100:return function(){var e=me(227);return ie(100),e.expression=T.hasPrecedingLineBreak()?void 0:G(Fn),de(),ge(e)}();case 102:case 74:case 87:return St();case 78:return function(){var e=me(229);return ie(78),de(),ge(e)}();case 57:return Nt();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 143:if(Mt())return Nt()}var e;return function(){var e=pe(0),n=G(Fn);return 71===n.kind&&oe(56)?(e.kind=226,e.label=n,e.statement=Rt()):(e.kind=214,e.expression=n,de()),ge(e)}()}function It(e){return 124===e.kind}function Nt(){var n=pe(0);if(n.decorators=$t(),n.modifiers=er(),e.some(n.modifiers,It)){for(var t=0,r=n.modifiers;t<r.length;t++){r[t].flags|=2097152}return V(2097152,function(){return wt(n)})}return wt(n)}function wt(n){switch(Y()){case 104:case 110:case 76:return qt(n);case 89:return zt(n);case 75:return rr(n);case 109:return function(e){return e.kind=234,ie(109),e.name=he(),e.typeParameters=nn(),e.heritageClauses=ir(),e.members=gn(),ge(e)}(n);case 139:return function(e){return e.kind=235,ie(139),e.name=he(),e.typeParameters=nn(),ie(58),e.type=Rn(),de(),ge(e)}(n);case 83:return function(e){e.kind=236,ie(83),e.name=he(),ie(17)?(e.members=Be(6,ur),ie(18)):e.members=Ue();return ge(e)}(n);case 143:case 129:case 130:return function(e){var n=0;if(143===Y())return mr(e);if(oe(130))n|=16;else if(ie(129),9===Y())return mr(e);return function e(n,t){n.kind=237;var r=16&t;n.flags|=t;n.name=he();n.body=oe(23)?e(me(0),4|r):dr();return ge(n)}(e,n)}(n);case 91:return function(e){ie(91);var n,t=T.getStartPos();if(ae()&&(n=he(),26!==Y()&&142!==Y()))return function(e,n){return e.kind=241,e.name=n,ie(58),e.moduleReference=function(){return 133===Y()&&te(pr)?(e=me(252),ie(133),ie(19),e.expression=gr(),ie(20),ge(e)):We(!1);var e}(),de(),ge(e)}(e,n);e.kind=242,(n||39===Y()||17===Y())&&(e.importClause=function(e,n){var t=me(243,n);e&&(t.name=e);t.name&&!oe(26)||(t.namedBindings=39===Y()?(r=me(244),ie(39),ie(118),r.name=he(),ge(r)):vr(245));var r;return ge(t)}(n,t),ie(142));return e.moduleSpecifier=gr(),de(),ge(e)}(n);case 84:switch(Q(),Y()){case 79:case 58:return function(e){e.kind=247,oe(58)?e.isExportEquals=!0:ie(79);return e.expression=Gn(),de(),ge(e)}(n);case 118:return function(e){return e.kind=240,ie(118),ie(130),e.name=he(),de(),ge(e)}(n);default:return function(e){e.kind=248,oe(39)?(ie(142),e.moduleSpecifier=gr()):(e.exportClause=vr(249),(142===Y()||9===Y()&&!T.hasPrecedingLineBreak())&&(ie(142),e.moduleSpecifier=gr()));return de(),ge(e)}(n)}default:if(n.decorators||n.modifiers){var t=ve(251,!0,e.Diagnostics.Declaration_expected);return t.pos=n.pos,t.decorators=n.decorators,t.modifiers=n.modifiers,ge(t)}}}function Pt(){return Q(),!T.hasPrecedingLineBreak()&&(ae()||9===Y())}function Ft(e,n){if(17===Y()||!ue())return ht(e,n);de()}function Vt(){if(26===Y())return me(204);var e=me(180);return e.dotDotDotToken=se(24),e.name=Kt(),e.initializer=Vn(),ge(e)}function Gt(){var e=me(180);e.dotDotDotToken=se(24);var n=ae(),t=Se();return n&&56!==Y()?e.name=t:(ie(56),e.propertyName=t,e.name=Kt()),e.initializer=Vn(),ge(e)}function Ht(){return 17===Y()||21===Y()||ae()}function Kt(){return 21===Y()?(e=me(179),ie(21),e.elements=Be(10,Vt),ie(22),ge(e)):17===Y()?function(){var e=me(178);return ie(17),e.elements=Be(9,Gt),ie(18),ge(e)}():he();var e}function Bt(){return Ut(!0)}function Ut(e){var n=me(230);return n.name=Kt(),e&&71===n.name.kind&&51===Y()&&!T.hasPrecedingLineBreak()&&(n.exclamationToken=ce()),n.type=Nn(),zn(Y())||(n.initializer=Vn()),ge(n)}function jt(n){var t=me(231);switch(Y()){case 104:break;case 110:t.flags|=1;break;case 76:t.flags|=2;break;default:e.Debug.fail()}if(Q(),144===Y()&&te(Wt))t.declarations=Ue();else{var r=U();I(n),t.declarations=Be(8,n?Ut:Bt),I(r)}return ge(t)}function Wt(){return Oe()&&20===Q()}function qt(e){return e.kind=212,e.declarationList=jt(!1),de(),ge(e)}function zt(n){n.kind=232,ie(89),n.asteriskToken=se(39),n.name=e.hasModifier(n,512)?_t():he();var t=n.asteriskToken?1:0,r=e.hasModifier(n,256)?2:0;return on(56,t|r,n),n.body=Ft(t|r,e.Diagnostics.or_expected),ge(n)}function Jt(n,t,r){n.kind=153,n.asteriskToken=t;var a=t?1:0,i=e.hasModifier(n,256)?2:0;return on(56,a|i,n),n.body=Ft(a|i,r),ge(n)}function Xt(n){return n.kind=151,n.questionToken||51!==Y()||T.hasPrecedingLineBreak()||(n.exclamationToken=ce()),n.type=Nn(),n.initializer=e.hasModifier(n,32)?G(Vn):F(6144,Vn),de(),ge(n)}function Yt(e,n){return e.kind=n,e.name=Se(),on(56,0,e),e.body=Ft(0),ge(e)}function Qt(e){switch(e){case 114:case 112:case 113:case 115:case 132:return!0;default:return!1}}function Zt(){var n;if(57===Y())return!0;for(;e.isModifierKind(Y());){if(Qt(n=Y()))return!0;Q()}if(39===Y())return!0;if(Ee()&&(n=Y(),Q()),21===Y())return!0;if(void 0!==n){if(!e.isKeyword(n)||136===n||125===n)return!0;switch(Y()){case 19:case 27:case 51:case 56:case 58:case 55:return!0;default:return ue()}}return!1}function $t(){for(var e,n=X();;){var t=X();if(!oe(57))break;var r=me(149,t);r.expression=V(8192,nt),ge(r),(e||(e=[])).push(r)}return e&&fe(e,n)}function er(n){for(var t,r=X();;){var a=T.getStartPos(),i=Y();if(76===Y()&&n){if(!re(Ae))break}else if(!e.isModifierKind(Y())||!re(xe))break;var o=ge(me(i,a));(t||(t=[])).push(o)}return t&&fe(t,r)}function nr(){var e;if(120===Y()){var n=T.getStartPos(),t=Y();Q(),e=fe([ge(me(t,n))],n)}return e}function tr(){if(25===Y()){var n=me(210);return Q(),ge(n)}var t=pe(0);return t.decorators=$t(),t.modifiers=er(!0),Le(125)?Yt(t,155):Le(136)?Yt(t,156):123===Y()?function(n){return n.kind=154,ie(123),on(56,0,n),n.body=Ft(0,e.Diagnostics.or_expected),ge(n)}(t):cn()?dn(t):e.tokenIsIdentifierOrKeyword(Y())||9===Y()||8===Y()||39===Y()||21===Y()?function(n){var t=se(39);return n.name=Se(),n.questionToken=se(55),t||19===Y()||27===Y()?Jt(n,t,e.Diagnostics.or_expected):Xt(n)}(t):t.decorators||t.modifiers?(t.name=ve(71,!0,e.Diagnostics.Declaration_expected),Xt(t)):void e.Debug.fail("Should not have attempted to parse class member declaration.")}function rr(e){return ar(e,233)}function ar(e,n){return e.kind=n,ie(75),e.name=!ae()||108===Y()&&te(Re)?void 0:he(),e.typeParameters=nn(),e.heritageClauses=ir(),ie(17)?(e.members=Ve(5,tr),ie(18)):e.members=Ue(),ge(e)}function ir(){if(cr())return Ve(21,or)}function or(){var e=Y();if(85===e||108===e){var n=me(266);return n.token=e,Q(),n.types=Be(7,sr),ge(n)}}function sr(){var e=me(205);return e.expression=nt(),e.typeArguments=lr(),ge(e)}function lr(){return 27===Y()?je(19,Rn,27,29):void 0}function cr(){return 85===Y()||108===Y()}function ur(){var e=pe(271);return e.name=Se(),e.initializer=G(Vn),ge(e)}function dr(){var e=me(238);return ie(17)?(e.statements=Ve(1,Rt),ie(18)):e.statements=Ue(),ge(e)}function mr(e){return e.kind=237,143===Y()?(e.name=he(),e.flags|=512):(e.name=Ye(),e.name.text=_e(e.name.text)),17===Y()?e.body=dr():de(),ge(e)}function pr(){return 19===Q()}function fr(){return 41===Q()}function gr(){if(9===Y()){var e=Ye();return e.text=_e(e.text),e}return Fn()}function vr(e){var n=me(e);return n.elements=je(22,245===e?yr:_r,17,18),ge(n)}function _r(){return hr(250)}function yr(){return hr(246)}function hr(n){var t=me(n),r=e.isKeyword(Y())&&!ae(),a=T.getTokenPos(),i=T.getTextPos(),o=be();return 118===Y()?(t.propertyName=o,ie(118),r=e.isKeyword(Y())&&!ae(),a=T.getTokenPos(),i=T.getTextPos(),t.name=be()):t.name=o,246===n&&r&&z(a,i-a,e.Diagnostics.Identifier_expected),ge(t)}n.parseSourceFile=function(n,t,r,a,i,o){x(t,r,a,o=e.ensureScriptKind(n,o));var s=k(n,r,i,o);return C(),s},n.parseIsolatedEntityName=function(e,n){x(e,n,void 0,1),Q();var t=We(!0),r=1===Y()&&!s.length;return C(),r?t:void 0},n.parseJsonText=function(n,t){x(t,2,void 0,6);var r=o=O(n,2,6,!1);return Q(),1===Y()?o.endOfFileToken=ce():17===Y()||te(function(){return 9===Y()})?(r.jsonObject=gt(),o.endOfFileToken=le(1,e.Diagnostics.Unexpected_token)):ie(17),o.parseDiagnostics=s,C(),r},n.fixupParentReferences=D,function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.RestProperties=17]="RestProperties",e[e.TypeParameters=18]="TypeParameters",e[e.TypeArguments=19]="TypeArguments",e[e.TupleElementTypes=20]="TupleElementTypes",e[e.HeritageClauses=21]="HeritageClauses",e[e.ImportOrExportSpecifiers=22]="ImportOrExportSpecifiers",e[e.Count=23]="Count"}(h||(h={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(b||(b={})),function(n){function t(e){var n=me(274,T.getTokenPos()),t=(e?oe:ie)(17);return n.type=V(1048576,Rn),e&&!t||ie(18),D(n),ge(n)}var r,a;function i(n,r){var a=p;n=n||0;var i,o,s,l=void 0===r?a.length:n+r;r=l-n,e.Debug.assert(n>=0),e.Debug.assert(n<=l),e.Debug.assert(l<=a.length);var u,d=[];return function(e,n){return 47===e.charCodeAt(n)&&42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&42!==e.charCodeAt(n+3)}(a,n)?(T.scanRange(n+3,r-5,function(){var e,t=1,r=n-Math.max(a.lastIndexOf("\n",n),0)+4;function c(n){e||(e=r),d.push(n),r+=n.length}for(var p=M();5===p;)p=M();4===p&&(t=0,r=0,p=M());e:for(;;){switch(p){case 57:0===t||1===t?(f(d),v(r),t=0,e=void 0,r++):c(T.getTokenText());break;case 4:d.push(T.getTokenText()),t=0,r=0;break;case 39:var g=T.getTokenText();1===t||2===t?(t=2,c(g)):(t=1,r+=g.length);break;case 71:c(T.getTokenText()),t=2;break;case 5:var _=T.getTokenText();2===t?d.push(_):void 0!==e&&r+_.length>e&&d.push(_.slice(e-r-1)),r+=_.length;break;case 1:break e;default:t=2,c(T.getTokenText())}p=M()}m(d),f(d),u=function(){var e=me(282,n);return e.tags=i&&fe(i,o,s),e.comment=d.length?d.join(""):void 0,ge(e,l)}()}),u):u;function m(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function f(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function g(){for(;5===Y()||4===Y();)M()}function v(n){e.Debug.assert(57===Y());var t=me(57,T.getTokenPos());t.end=T.getTextPos(),M();var r=D();if(g(),r){var a;if(r)switch(r.escapedText){case"augments":case"extends":a=function(e,n){var t=me(285,e.pos);return t.atToken=e,t.tagName=n,t.class=function(){var e=oe(17),n=me(205);n.expression=function(){for(var e=D(!0);oe(23);){var n=me(183,e.pos);n.expression=e,n.name=D(),e=ge(n)}return e}(),n.typeArguments=lr();var t=ge(n);return e&&ie(18),t}(),ge(t)}(t,r);break;case"class":case"constructor":a=function(e,n){var t=me(286,e.pos);return t.atToken=e,t.tagName=n,ge(t)}(t,r);break;case"arg":case"argument":case"param":a=S(t,r,1);break;case"return":case"returns":a=function(n,t){e.forEach(i,function(e){return 288===e.kind})&&z(t.pos,T.getTokenPos()-t.pos,e.Diagnostics._0_tag_already_specified,t.escapedText);var r=me(288,n.pos);return r.atToken=n,r.tagName=t,r.typeExpression=h(),ge(r)}(t,r);break;case"template":a=function(n,t){e.some(i,e.isJSDocTemplateTag)&&z(t.pos,T.getTokenPos()-t.pos,e.Diagnostics._0_tag_already_specified,t.escapedText);var r=[],a=X();for(;;){var o=me(147),s=k();if(g(),!s)return void z(T.getStartPos(),0,e.Diagnostics.Identifier_expected);if(o.name=s,ge(o),r.push(o),26!==Y())break;M(),g()}var l=me(290,n.pos);return l.atToken=n,l.tagName=t,l.typeParameters=fe(r,a),ge(l),l}(t,r);break;case"type":a=L(t,r);break;case"typedef":a=function(n,t){var r=h();g();var a=me(291,n.pos);if(a.atToken=n,a.tagName=t,a.fullName=function e(n){var t=T.getTokenPos(),r=D();if(r&&oe(23)){var a=me(237,t);return a.flags|=n,a.name=r,a.body=e(4),ge(a)}return r&&4&n&&(r.isInJSDocNamespace=!0),r}(0),a.fullName)for(var i=a.fullName;;){if(71===i.kind||!i.body){a.name=71===i.kind?i:i.name;break}i=i.body}if(g(),a.typeExpression=r,!r||E(r.type)){for(var o=void 0,s=void 0,l=void 0,c=T.getStartPos();o=re(function(){return x(0)});)if(s||(s=me(283,c)),289===o.kind){if(l)break;l=o}else s.jsDocPropertyTags=e.append(s.jsDocPropertyTags,o);s&&(r&&166===r.type.kind&&(s.isArrayType=!0),a.typeExpression=l&&l.typeExpression&&!E(l.typeExpression.type)?l.typeExpression:ge(s))}return ge(a)}(t,r);break;default:a=y(t,r)}else a=y(t,r);a&&(a.comment=_(n+a.end-a.pos),function(e){i?i.push(e):(i=[e],o=e.pos);s=e.end}(a))}}function _(e){var n,t=[],r=0;function a(r){n||(n=e),t.push(r),e+=r.length}var i=Y();e:for(;;){switch(i){case 4:r>=1&&(r=0,t.push(T.getTokenText())),e=0;break;case 57:T.setTextPos(T.getTextPos()-1);case 1:break e;case 5:if(2===r)a(T.getTokenText());else{var o=T.getTokenText();void 0!==n&&e+o.length>n&&t.push(o.slice(n-e-1)),e+=o.length}break;case 39:if(0===r){r=1,e+=1;break}default:r=2,a(T.getTokenText())}i=M()}return m(t),f(t),0===t.length?void 0:t.join("")}function y(e,n){var t=me(284,e.pos);return t.atToken=e,t.tagName=n,ge(t)}function h(){return g(),17===Y()?t():void 0}function b(){var e=oe(21),n=function(){var e=D(!0);oe(21)&&ie(22);for(;oe(23);){var n=D(!0);oe(21)&&ie(22),e=qe(e,n)}return e}();return e&&(g(),se(58)&&Fn(),ie(22)),{name:n,isBracketed:e}}function E(n){switch(n.kind){case 135:return!0;case 166:return E(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText}}function S(n,t,r){var a=h(),i=!a;g();var o=b(),s=o.name,l=o.isBracketed;g(),i&&(a=h());var c=me(1===r?287:292,n.pos),u=function(n,t){if(n&&E(n.type)){for(var r=me(274,T.getTokenPos()),a=void 0,i=void 0,o=T.getStartPos(),s=void 0;a=re(function(){return x(1,t)});)s=e.append(s,a);if(s)return(i=me(283,o)).jsDocPropertyTags=s,166===n.type.kind&&(i.isArrayType=!0),r.type=ge(i),ge(r)}}(a,s);return u&&(a=u,i=!0),c.atToken=n,c.tagName=t,c.typeExpression=a,c.name=s,c.isNameFirst=i,c.isBracketed=l,ge(c)}function L(n,r){e.forEach(i,function(e){return 289===e.kind})&&z(r.pos,T.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.escapedText);var a=me(289,n.pos);return a.atToken=n,a.tagName=r,a.typeExpression=t(!0),ge(a)}function A(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 x(n,t){for(var r=!0,a=!1;;)switch(M()){case 57:if(r){var i=C(n);return!(i&&287===i.kind&&(e.isIdentifier(i.name)||!A(t,i.name.left)))&&i}a=!1;break;case 4:r=!0,a=!1;break;case 39:a&&(r=!1),a=!0;break;case 71:r=!1;break;case 1:return!1}}function C(n){e.Debug.assert(57===Y());var t=me(57);t.end=T.getTextPos(),M();var r,a=D();if(g(),!a)return!1;switch(a.escapedText){case"type":return 0===n&&L(t,a);case"prop":case"property":r=0;break;case"arg":case"argument":case"param":r=1;break;default:return!1}if(n!==r)return!1;var i=S(t,a,n);return i.comment=_(i.end-i.pos),i}function k(){var e=oe(17),n=D();return e&&ie(18),n}function M(){return c=T.scanJSDocToken()}function D(n){if(void 0===n&&(n=!1),!e.tokenIsIdentifierOrKeyword(Y()))return n?ve(71,!0,e.Diagnostics.Identifier_expected):void q(e.Diagnostics.Identifier_expected);var t=T.getTokenPos(),r=T.getTextPos(),i=me(71,t);return i.escapedText=e.escapeLeadingUnderscores(a.substring(t,r)),ge(i,r),M(),i}}n.parseJSDocTypeExpressionForTests=function(e,n,r){x(e,6,void 0,1),o=O("file.js",6,1,!1),T.setText(e,n,r),c=T.scan();var a=t(),i=s;return C(),a?{jsDocTypeExpression:a,diagnostics:i}:void 0},n.parseJSDocTypeExpression=t,n.parseIsolatedJSDocComment=function(e,n,t){x(e,6,void 0,1),o={languageVariant:0,text:e};var r=i(n,t),a=s;return C(),r?{jsDoc:r,diagnostics:a}:void 0},n.parseJSDocComment=function(e,n,t){var r,a=c,l=s.length,u=L,d=i(n,t);return d&&(d.parent=e),65536&y&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(r=o.jsDocDiagnostics).push.apply(r,s)),c=a,s.length=l,L=u,d},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(r||(r={})),function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter"}(a||(a={})),n.parseJSDocCommentWorker=i}(E=n.JSDocParser||(n.JSDocParser={}))}(o||(o={})),function(n){function t(n,t,a,o,s,l){return void(t?d(n):c(n));function c(n){var t="";if(l&&r(n)&&(t=o.substring(n.pos,n.end)),n._children&&(n._children=void 0),n.pos+=a,n.end+=a,l&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),u(n,c,d),e.hasJSDocNodes(n))for(var m=0,p=n.jsDoc;m<p.length;m++){u(p[m],c,d)}i(n,l)}function d(e){e._children=void 0,e.pos+=a,e.end+=a;for(var n=0,t=e;n<t.length;n++){c(t[n])}}}function r(e){switch(e.kind){case 9:case 8:case 71: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),n.pos=Math.min(n.pos,a),n.end>=r?n.end+=i:n.end=Math.min(n.end,a),e.Debug.assert(n.pos<=n.end),n.parent&&(e.Debug.assert(n.pos>=n.parent.pos),e.Debug.assert(n.end<=n.parent.end))}function i(n,t){if(t){var r=n.pos;u(n,function(n){e.Debug.assert(n.pos>=r),r=n.end}),e.Debug.assert(r<=n.end)}}function s(n,t){var r,a=n;if(u(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 u(i,n),!0;e.Debug.assert(i.end<=t),r=i}),r){var i=function(e){for(;;){var n=o(e);if(!n)return e;e=n}}(r);i.pos>a.pos&&(a=i)}return a;function o(n){var t;return u(n,function(n){e.nodeIsPresent(n)&&(t=n)}),t}}function l(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 l=i.substring(e.textSpanEnd(r.span),i.length),c=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(l===c)}}var c;n.updateSourceFile=function(n,r,c,d){if(l(n,r,c,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(c))return n;if(0===n.statements.length)return o.parseSourceFile(n.fileName,r,n.languageVersion,void 0,!0,n.scriptKind);var m=n;e.Debug.assert(!m.hasBeenIncrementallyParsed),m.hasBeenIncrementallyParsed=!0;var p=n.text,f=function(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&&(a=t[++r]),a&&a.pos===o||function(e){return t=void 0,r=-1,a=void 0,void u(n,i,o);function i(n){return e>=n.pos&&e<n.end&&(u(n,i,o),!0)}function o(n){if(e>=n.pos&&e<n.end)for(var s=0;s<n.length;s++){var l=n[s];if(l){if(l.pos===e)return t=n,r=s,a=l,!0;if(l.pos<e&&e<l.end)return u(l,i,o),!0}}return!1}}(o)),i=o,e.Debug.assert(!a||a.pos===o),a}}}(n),g=function(n,t){for(var r=t.span.start,a=0;r>0&&a<=1;a++){var i=s(n,r);e.Debug.assert(i.pos<=r);var o=i.pos;r=Math.max(0,o-1)}var l=e.createTextSpanFromBounds(r,e.textSpanEnd(t.span)),c=t.newLength+(t.span.start-r);return e.createTextChangeRange(l,c)}(n,c);l(n,r,g,d),e.Debug.assert(g.span.start<=c.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(c.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(c)));var v=e.textChangeRangeNewSpan(g).length-g.span.length;return function(n,r,o,s,l,c,d,m){return void p(n);function p(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!1,l,c,d,m);else{var g=n.end;if(g>=r)return n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,l),u(n,p,f),void i(n,m);e.Debug.assert(g<r)}}function f(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!0,l,c,d,m);else{var i=n.end;if(i>=r){n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,l);for(var u=0,f=n;u<f.length;u++){var g=f[u];p(g)}}else e.Debug.assert(i<r)}}}(m,g.span.start,e.textSpanEnd(g.span),e.textSpanEnd(e.textChangeRangeNewSpan(g)),v,p,r,d),o.parseSourceFile(n.fileName,r,n.languageVersion,f,!0,n.scriptKind)},function(e){e[e.Value=-1]="Value"}(c||(c={}))}(s||(s={})),e.processCommentPragmas=d,e.processPragmasIntoFields=m;var p=e.createMap();function f(e){if(p.has(e))return p.get(e);var n=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return p.set(e,n),n}var g=/^\/\/\/\s*<(\S+)\s.*?\/>/im,v=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function _(n,t,r){var a=g.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={},l=0,c=o.args;l<c.length;l++){var u=c[l],d=f(u.name).exec(r);if(!d&&!u.optional)return;if(d)if(u.captureSpan){var m=t.pos+d.index+d[1].length+d[2].length;s[u.name]={value:d[3],pos:m,end:m+d[3].length}}else s[u.name]=d[3]}n.push({name:i,args:{arguments:s,range:t}})}else n.push({name:i,args:{arguments:{},range:t}})}else{var p=v.exec(r);if(p)return y(n,t,2,p);for(var _,h=/\s*@(\S+)\s*(.*)\s*$/gim;_=h.exec(r);)y(n,t,4,_)}}function y(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=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}})}}}}(u||(u={})),function(e){var n;function t(n){return n.body?function n(r){switch(r.kind){case 234:case 235:return 0;case 236:if(e.isConst(r))return 2;break;case 242:case 241:if(!e.hasModifier(r,1))return 0;break;case 238:var a=0;return e.forEachChild(r,function(t){var r=n(t);switch(r){case 0:return;case 2:return void(a=2);case 1:return a=1,!0;default:e.Debug.assertNever(r)}}),a;case 237:return t(r);case 71:if(r.isInJSDocNamespace)return 0}return 1}(n.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(n||(n={}));var r=function(){var n,r,u,d,m,p,f,g,v,_,y,h,b,E,T,S,L,A,x,C,k,M,D=0,O={flags:1},R={flags:1},I=0;function N(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,a,i,o)}return function(t,a){n=t,r=a,u=e.getEmitScriptTarget(r),x=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,a),k=e.createUnderscoreEscapedMap(),D=0,M=n.isDeclarationFile,C=e.objectAllocator.getSymbolConstructor(),n.locals||(Te(n),n.symbolCount=D,n.classifiableNames=k);n=void 0,r=void 0,u=void 0,d=void 0,m=void 0,p=void 0,f=void 0,g=!1,v=void 0,_=void 0,y=void 0,h=void 0,b=void 0,E=void 0,S=void 0,L=!1,A=0,I=0};function w(e,n){return D++,new C(e,n)}function P(n,t,r){if(n.flags|=r,t.symbol=n,n.declarations?n.declarations.push(t):n.declarations=[t],1952&r&&!n.exports&&(n.exports=e.createSymbolTable()),6240&r&&!n.members&&(n.members=e.createSymbolTable()),67216319&r){var a=n.valueDeclaration;(!a||a.kind!==t.kind&&237===a.kind)&&(n.valueDeclaration=t)}}function F(n){if(247===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":'"'+r+'"'}if(146===t.kind){var a=t.expression;return e.isStringOrNumericLiteral(a)?e.escapeLeadingUnderscores(a.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(a)),e.getPropertyNameForKnownSymbolName(e.idText(a.name)))}return e.isPropertyNameLiteral(t)?e.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(n.kind){case 154:return"__constructor";case 162:case 157:return"__call";case 163:case 158:return"__new";case 159:return"__index";case 248:return"__export";case 198:if(2===e.getSpecialPropertyAssignmentKind(n))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 232:case 233:return e.hasModifier(n,512)?"default":void 0;case 280:return e.isJSDocConstructSignature(n)?"__new":"__call";case 148:e.Debug.assert(280===n.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[n.parent.kind]:n.parent.kind)+", expected JSDocFunctionType"});var i=n.parent,o=i.parameters.indexOf(n);return"arg"+o;case 291:var s=e.getNameOfJSDocTypedef(n);return void 0!==s?s.escapedText:void 0}}function V(n){return e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(F(n))}function G(t,r,a,i,o,s){e.Debug.assert(!e.hasDynamicName(a));var l,c=e.hasModifier(a,512),u=c&&r?"default":F(a);if(void 0===u)l=w(0,"__missing");else if(l=t.get(u),2885600&i&&k.set(u,!0),l){if(s&&!l.isReplaceableByMethod)return l;if(l.flags&o)if(l.isReplaceableByMethod)t.set(u,l=w(0,u));else{e.isNamedDeclaration(a)&&(a.name.parent=a);var d=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;(384&l.flags||384&i)&&(d=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),l.declarations&&l.declarations.length&&(c?d=e.Diagnostics.A_module_cannot_have_multiple_default_exports:l.declarations&&l.declarations.length&&(c||247===a.kind&&!a.isExportEquals)&&(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(l.declarations,function(t){n.bindDiagnostics.push(N(e.getNameOfDeclaration(t)||t,d,V(t)))}),n.bindDiagnostics.push(N(e.getNameOfDeclaration(a)||a,d,V(a))),l=w(0,u)}}else t.set(u,l=w(0,u)),s&&(l.isReplaceableByMethod=!0);return P(l,a,i),l.parent?e.Debug.assert(l.parent===r,"Existing symbol parent should match new one"):l.parent=r,l}function H(n,t,r){var a=1&e.getCombinedModifierFlags(n);if(2097152&t)return 250===n.kind||241===n.kind&&a?G(m.symbol.exports,m.symbol,n,t,r):G(m.locals,void 0,n,t,r);291===n.kind&&e.Debug.assert(e.isInJavaScriptFile(n));var i=e.isJSDocTypedefTag(n)&&n.name&&71===n.name.kind&&n.name.isInJSDocNamespace;if(!e.isAmbientModule(n)&&(a||32&m.flags)||i){var o=67216319&t?1048576:0,s=G(m.locals,void 0,n,o,r);return s.exportSymbol=G(m.symbol.exports,m.symbol,n,t,r),n.localSymbol=s,s}return G(m.locals,void 0,n,t,r)}function K(e){if(M)j(e);else if(536870912&e.transformFlags)M=!0,j(e),M=!1,I|=e.transformFlags&~l(e.kind);else{var n=I;I=0,j(e),I=n|s(e,I)}}function B(n){if(void 0!==n)if(M)e.forEach(n,Te);else{var t=I;I=0;for(var r=0,a=0,i=n;a<i.length;a++){var o=i[a];Te(o),r|=-536870913&o.transformFlags}n.transformFlags=536870912|r,I|=t}}function U(n){e.forEachChild(n,Te,B)}function j(a){if(e.hasJSDocNodes(a))if(e.isInJavaScriptFile(a))for(var i=0,o=a.jsDoc;i<o.length;i++){var s=o[i];Te(s)}else for(var l=0,u=a.jsDoc;l<u.length;l++){var s=u[l];c(a,s)}if(function(n){if(!(1&v.flags))return!1;if(v===O){var a=e.isStatementButNotDeclaration(n)&&213!==n.kind||233===n.kind||237===n.kind&&function(e){var n=t(e);return 1===n||2===n&&r.preserveConstEnums}(n)||236===n.kind&&(!e.isConstEnumDeclaration(n)||r.preserveConstEnums);if(a){v=R;var i=!r.allowUnreachableCode&&!(2097152&n.flags)&&(212!==n.kind||3&e.getCombinedNodeFlags(n.declarationList)||e.forEach(n.declarationList.declarations,function(e){return e.initializer}));i&&Ee(n,e.Diagnostics.Unreachable_code_detected)}}return!0}(a))U(a);else switch(a.kind){case 217:!function(e){var n=Y(),t=X(),r=X();Z(n,v),v=n,ie(e.expression,t,r),v=re(t),oe(e.statement,r,n),Z(n,v),v=re(r)}(a);break;case 216:!function(n){var t=Y(),r=226===n.parent.kind?e.lastOrUndefined(S):void 0,a=r?r.continueTarget:X(),i=r?r.breakTarget:X();Z(t,v),v=t,oe(n.statement,i,a),Z(a,v),v=re(a),ie(n.expression,t,i),v=re(i)}(a);break;case 218:!function(e){var n=Y(),t=X(),r=X();Te(e.initializer),Z(n,v),v=n,ie(e.condition,t,r),v=re(t),oe(e.statement,r,n),Te(e.incrementor),Z(n,v),v=re(r)}(a);break;case 219:case 220:!function(e){var n=Y(),t=X();Z(n,v),v=n,220===e.kind&&Te(e.awaitModifier);Te(e.expression),Z(t,v),Te(e.initializer),231!==e.initializer.kind&&ce(e.initializer);oe(e.statement,t,n),Z(n,v),v=re(t)}(a);break;case 215:!function(e){var n=X(),t=X(),r=X();ie(e.expression,n,t),v=re(n),Te(e.thenStatement),Z(r,v),v=re(t),Te(e.elseStatement),Z(r,v),v=re(r)}(a);break;case 223:case 227:!function(e){Te(e.expression),223===e.kind&&(L=!0,h&&Z(h,v));v=O}(a);break;case 222:case 221:!function(e){if(Te(e.label),e.label){var n=function(e){if(S)for(var n=0,t=S;n<t.length;n++){var r=t[n];if(r.name===e)return r}return}(e.label.escapedText);n&&(n.referenced=!0,se(e,n.breakTarget,n.continueTarget))}else se(e,_,y)}(a);break;case 228:!function(e){var n=X(),t=v;Te(e.tryBlock),Z(n,v);var r=v,a=O;e.catchClause&&(v=t,Te(e.catchClause),Z(n,v),a=v);if(e.finallyBlock){var i={flags:2048,antecedent:t,lock:{}};if(Z(n,i),v=re(n),Te(e.finallyBlock),1&v.flags||1&r.flags&&1&a.flags&&(v=r===R||a===R?R:O),!(1&v.flags)){var o={flags:4096,antecedent:v};i.lock=o,v=o}}else v=re(n)}(a);break;case 225:!function(n){var t=X();Te(n.expression);var r=_,a=T;_=t,T=v,Te(n.caseBlock),Z(t,v);var i=e.forEach(n.caseBlock.clauses,function(e){return 265===e.kind});n.possiblyExhaustive=!i&&!t.antecedents,i||Z(t,ee(T,n,0,0));_=r,T=a,v=re(t)}(a);break;case 239:!function(n){var t=I;I=0;for(var a=n.clauses,i=O,o=0;o<a.length;o++){for(var s=o;!a[o].statements.length&&o+1<a.length;)Te(a[o]),o++;var l=X();Z(l,ee(T,n.parent,s,o+1)),Z(l,i),v=re(l);var c=a[o];Te(c),i=v,1&v.flags||o===a.length-1||!r.noFallthroughCasesInSwitch||Ee(c,e.Diagnostics.Fallthrough_case_in_switch)}a.transformFlags=536870912|I,I|=t}(a);break;case 264:!function(e){var n=v;v=T,Te(e.expression),v=n,B(e.statements)}(a);break;case 226:!function(t){var a=Y(),i=X();Te(t.label),Z(a,v);var o=function(e,n,t){var r={name:e,breakTarget:n,continueTarget:t,referenced:!1};return(S||(S=[])).push(r),r}(t.label.escapedText,i,a);Te(t.statement),S.pop(),o.referenced||r.allowUnusedLabels||n.bindDiagnostics.push(N(t.label,e.Diagnostics.Unused_label));t.statement&&216===t.statement.kind||(Z(i,v),v=re(i))}(a);break;case 196:!function(e){if(51===e.operator){var n=b;b=E,E=n,U(e),E=b,b=n}else U(e),43!==e.operator&&44!==e.operator||ce(e.operand)}(a);break;case 197:!function(e){U(e),(43===e.operator||44===e.operator)&&ce(e.operand)}(a);break;case 198:!function(n){var t=n.operatorToken.kind;if(53===t||54===t)if(function(e){for(;189===e.parent.kind||196===e.parent.kind&&51===e.parent.operator;)e=e.parent;return!function(e){var n=e.parent;switch(n.kind){case 215:case 217:case 216:return n.expression===e;case 218:case 199:return n.condition===e}return!1}(e)&&!ae(e.parent)}(n)){var r=X();ue(n,r,r),v=re(r)}else ue(n,b,E);else if(U(n),e.isAssignmentOperator(t)&&!e.isAssignmentTarget(n)&&(ce(n.left),58===t&&184===n.left.kind)){var a=n.left;J(a.expression)&&(v=te(v,n))}}(a);break;case 192:!function(e){U(e),183===e.expression.kind&&ce(e.expression)}(a);break;case 199:!function(e){var n=X(),t=X(),r=X();ie(e.condition,n,t),v=re(n),Te(e.questionToken),Te(e.whenTrue),Z(r,v),v=re(t),Te(e.colonToken),Te(e.whenFalse),Z(r,v),v=re(r)}(a);break;case 230:!function(n){U(n),(n.initializer||e.isForInOrOfStatement(n.parent.parent))&&function n(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];n(o)}else v=ne(v,t)}(n)}(a);break;case 185:!function(n){var t=n.expression;for(;189===t.kind;)t=t.expression;190===t.kind||191===t.kind?(B(n.typeArguments),B(n.arguments),Te(n.expression)):U(n);if(183===n.expression.kind){var r=n.expression;J(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(v=te(v,n))}}(a);break;case 282:!function(n){e.forEachChild(n,function(e){291!==e.kind&&Te(e)})}(a);break;case 291:!function(n){e.forEachChild(n,function(e){n.fullName&&e===n.name&&71!==n.fullName.kind||Te(e)})}(a);break;default:U(a)}}function W(n){switch(n.kind){case 71:case 99:case 183:return q(n);case 185:return function(e){if(e.arguments)for(var n=0,t=e.arguments;n<t.length;n++){var r=t[n];if(q(r))return!0}if(183===e.expression.kind&&q(e.expression.expression))return!0;return!1}(n);case 189:return W(n.expression);case 198:return function(n){switch(n.operatorToken.kind){case 58:return q(n.left);case 32:case 33:case 34:case 35:return J(n.left)||J(n.right)||z(n.right,n.left)||z(n.left,n.right);case 93:return J(n.left);case 92:return t=n.left,r=n.right,e.isStringLiteralLike(t)&&W(r);case 26:return W(n.right)}var t,r;return!1}(n);case 196:return 51===n.operator&&W(n.operand)}return!1}function q(e){return 71===e.kind||99===e.kind||97===e.kind||183===e.kind&&q(e.expression)}function z(n,t){return e.isTypeOfExpression(n)&&J(n.expression)&&e.isStringLiteralLike(t)}function J(e){switch(e.kind){case 189:return J(e.expression);case 198:switch(e.operatorToken.kind){case 58:return J(e.left);case 26:return J(e.right)}}return q(e)}function X(){return{flags:4,antecedents:void 0}}function Y(){return{flags:8,antecedents:void 0}}function Q(e){e.flags|=512&e.flags?1024:512}function Z(n,t){1&t.flags||e.contains(n.antecedents,t)||((n.antecedents||(n.antecedents=[])).push(t),Q(t))}function $(e,n,t){return 1&n.flags?n:t?101===t.kind&&64&e||86===t.kind&&32&e?O:W(t)?(Q(n),{flags:e,expression:t,antecedent:n}):n:32&e?n:O}function ee(e,n,t,r){return W(n.expression)?(Q(e),{flags:128,switchStatement:n,clauseStart:t,clauseEnd:r,antecedent:e}):e}function ne(e,n){return Q(e),{flags:16,antecedent:e,node:n}}function te(e,n){Q(e);var t={flags:256,antecedent:e,node:n};return t}function re(e){var n=e.antecedents;return n?1===n.length?n[0]:e:O}function ae(e){for(;;)if(189===e.kind)e=e.expression;else{if(196!==e.kind||51!==e.operator)return 198===e.kind&&(53===e.operatorToken.kind||54===e.operatorToken.kind);e=e.operand}}function ie(e,n,t){var r=b,a=E;b=n,E=t,Te(e),b=r,E=a,e&&ae(e)||(Z(n,$(32,v,e)),Z(t,$(64,v,e)))}function oe(e,n,t){var r=_,a=y;_=n,y=t,Te(e),_=r,y=a}function se(e,n,t){var r=222===e.kind?n:t;r&&(Z(r,v),v=O)}function le(e){198===e.kind&&58===e.operatorToken.kind?ce(e.left):ce(e)}function ce(e){if(q(e))v=ne(v,e);else if(181===e.kind)for(var n=0,t=e.elements;n<t.length;n++){var r=t[n];202===r.kind?ce(r.expression):le(r)}else if(182===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];268===o.kind?le(o.initializer):269===o.kind?ce(o.name):270===o.kind&&ce(o.expression)}}function ue(e,n,t){var r=X();53===e.operatorToken.kind?ie(e.left,r,t):ie(e.left,n,r),v=re(r),Te(e.operatorToken),ie(e.right,n,t)}function de(e){f&&(f.nextContainer=e),f=e}function me(t,r,a){switch(m.kind){case 237:return H(t,r,a);case 272:return function(t,r,a){return e.isExternalModule(n)?H(t,r,a):G(n.locals,void 0,t,r,a)}(t,r,a);case 203:case 233:return function(n,t,r){return e.hasModifier(n,32)?G(m.symbol.exports,m.symbol,n,t,r):G(m.symbol.members,m.symbol,n,t,r)}(t,r,a);case 236:return G(m.symbol.exports,m.symbol,t,r,a);case 165:case 283:case 182:case 234:case 261:return G(m.symbol.members,m.symbol,t,r,a);case 162:case 163:case 157:case 158:case 159:case 153:case 152:case 154:case 155:case 156:case 232:case 190:case 191:case 280:case 235:case 176:return G(m.locals,void 0,t,r,a)}}function pe(e){2097152&e.flags&&!function(e){var n=272===e.kind?e:e.body;if(n&&(272===n.kind||238===n.kind))for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if(248===a.kind||247===a.kind)return!0}return!1}(e)?e.flags|=32:e.flags&=-33}function fe(e){var n=t(e),r=0!==n;return me(e,r?512:1024,r?67215503:0),n}function ge(e,n,t){var r=w(n,t);106508&n&&(r.parent=m.symbol),P(r,e,n)}function ve(n,t,r){switch(p.kind){case 237:H(n,t,r);break;case 272:if(e.isExternalModule(m)){H(n,t,r);break}default:p.locals||(p.locals=e.createSymbolTable(),de(p)),G(p.locals,void 0,n,t,r)}}function _e(t){!(x&&t.originalKeywordKind>=108&&t.originalKeywordKind<=116)||e.isIdentifierName(t)||2097152&t.flags||n.parseDiagnostics.length||n.bindDiagnostics.push(N(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)))}function ye(t,r){if(r&&71===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.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_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 he(e){x&&ye(e,e.name)}function be(t){if(u<2&&272!==p.kind&&237!==p.kind&&!e.isFunctionLike(p)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function Ee(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 Te(t){if(t){t.parent=d;var r=x;if(e.isInJavaScriptFile(t)&&function(n){if(!e.hasJSDocNodes(n))return;for(var t=0,r=n.jsDoc;t<r.length;t++){var a=r[t];if(a.tags)for(var i=0,o=a.tags;i<o.length;i++){var s=o[i];if(291===s.kind){var l=d;d=a,Te(s),d=l}}}}(t),function(t){switch(t.kind){case 71:if(t.isInJSDocNamespace){for(var r=t.parent;r&&291!==r.kind;)r=r.parent;ve(r,524288,67901928);break}case 99:return v&&(e.isExpression(t)||269===d.kind)&&(t.flowNode=v),_e(t);case 183:v&&q(t)&&(t.flowNode=v),e.isSpecialPropertyDeclaration(t)&&function(n){99===n.expression.kind?Ce(n):e.isEntityNameExpression(n)&&272===n.parent.parent.kind&&(e.isPropertyAccessExpression(n.expression)&&"prototype"===n.expression.name.escapedText?ke(n,n.parent):Me(n))}(t);break;case 198:var o=e.getSpecialPropertyAssignmentKind(t);switch(o){case 1:xe(t);break;case 2:!function(t){var r=e.getRightMostAssignedExpression(t.right);if(e.isEmptyObjectLiteral(r)||m===n&&a(n,r))return void Ae(t);Ae(t),G(n.symbol.exports,n.symbol,t,1049092,0)}(t);break;case 3:ke(t.left,t);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var n=e.left;De(n,n,!1)}(t);break;case 4:Ce(t);break;case 5:!function(t){var r=t.left;t.left.parent=t,t.right.parent=t,e.isIdentifier(r.expression)&&m===n&&i(n,r.expression)?xe(t):Me(r)}(t);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}return function(n){x&&e.isLeftHandSideExpression(n.left)&&e.isAssignmentOperator(n.operatorToken.kind)&&ye(n,n.left)}(t);case 267:return function(e){x&&e.variableDeclaration&&ye(e,e.variableDeclaration.name)}(t);case 192:return function(t){if(x&&71===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))}}(t);case 8:return function(t){x&&32&t.numericLiteralFlags&&n.bindDiagnostics.push(N(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(t);case 197:return function(e){x&&ye(e,e.operand)}(t);case 196:return function(e){x&&(43!==e.operator&&44!==e.operator||ye(e,e.operand))}(t);case 224:return function(n){x&&Ee(n,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(t);case 173:return void(g=!0);case 160:break;case 147:return function(n){if(171===n.parent.kind){var t=function(e){for(;e;){var n=e.parent;if(n&&170===n.kind&&n.extendsType===e)return n;e=n}return}(n.parent);t?(t.locals||(t.locals=e.createSymbolTable()),G(t.locals,void 0,n,262144,67639784)):ge(n,262144,F(n))}else me(n,262144,67639784)}(t);case 148:return function(n){!x||2097152&n.flags||ye(n,n.name);e.isBindingPattern(n.name)?ge(n,1,"__"+n.parent.parameters.indexOf(n)):me(n,1,67216319);if(e.isParameterPropertyDeclaration(n)){var t=n.parent.parent;G(t.symbol.members,t.symbol,n,4|(n.questionToken?16777216:0),0)}}(t);case 230:return Ie(t);case 180:return t.flowNode=v,Ie(t);case 151:case 150:return function(e){return Ne(e,4|(e.questionToken?16777216:0),0)}(t);case 268:case 269:return Ne(t,4,0);case 271:return Ne(t,8,68008959);case 157:case 158:case 159:return me(t,131072,0);case 153:case 152:return Ne(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:67208127);case 232:return function(t){n.isDeclarationFile||2097152&t.flags||e.isAsyncFunction(t)&&(A|=1024);he(t),x?(be(t),ve(t,16,67215791)):me(t,16,67215791)}(t);case 154:return me(t,16384,0);case 155:return Ne(t,32768,67150783);case 156:return Ne(t,65536,67183551);case 162:case 280:case 163:return function(n){var t=w(131072,F(n));P(t,n,131072);var r=w(2048,"__type");P(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(t);case 165:case 283:case 176:return function(e){return ge(e,2048,"__type")}(t);case 182:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),x)for(var a=e.createUnderscoreEscapedMap(),i=0,o=t.properties;i<o.length;i++){var s=o[i];if(270!==s.kind&&71===s.name.kind){var l=s.name,c=268===s.kind||269===s.kind||153===s.kind?1:2,u=a.get(l.escapedText);if(u){if(1===c&&1===u){var d=e.getErrorSpanForNode(n,l);n.bindDiagnostics.push(e.createFileDiagnostic(n,d.start,d.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else a.set(l.escapedText,c)}}return ge(t,4096,"__object")}(t);case 190:case 191:return function(t){n.isDeclarationFile||2097152&t.flags||e.isAsyncFunction(t)&&(A|=1024);v&&(t.flowNode=v);he(t);var r=t.name?t.name.escapedText:"__function";return ge(t,16,r)}(t);case 185:e.isInJavaScriptFile(t)&&function(t){!n.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&Ae(t)}(t);break;case 203:case 233:return x=!0,function(t){if(233===t.kind)ve(t,32,68008383);else{var r=t.name?t.name.escapedText:"__class";ge(t,32,r),t.name&&k.set(t.name.escapedText,!0)}var a=t.symbol,i=w(4194308,"prototype"),o=a.exports.get(i.escapedName);o&&(t.name&&(t.name.parent=t),n.bindDiagnostics.push(N(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i))));a.exports.set(i.escapedName,i),i.parent=a}(t);case 234:return ve(t,64,67901832);case 235:return ve(t,524288,67901928);case 236:return function(n){return e.isConst(n)?ve(n,128,68008831):ve(n,256,68008191)}(t);case 237:return function(t){if(pe(t),e.isAmbientModule(t))if(e.hasModifier(t,1)&&Ee(t,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(t))fe(t);else{var r=void 0;if(9===t.name.kind){var a=t.name.text;e.hasZeroOrOneAsteriskCharacter(a)?r=e.tryParsePattern(a):Ee(t.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a)}var i=me(t,512,67215503);n.patternAmbientModules=e.append(n.patternAmbientModules,r&&{pattern:r,symbol:i})}else{var o=fe(t);if(0!==o){var i=t.symbol;i.constEnumOnlyModule=!(304&i.flags)&&2===o&&!1!==i.constEnumOnlyModule}}}(t);case 261:return function(e){return ge(e,4096,"__jsxAttributes")}(t);case 260:return function(e,n,t){return me(e,n,t)}(t,4,0);case 241:case 244:case 246:case 250:return me(t,2097152,2097152);case 240:return function(t){t.modifiers&&t.modifiers.length&&n.bindDiagnostics.push(N(t,e.Diagnostics.Modifiers_cannot_appear_here));if(272!==t.parent.kind)return void n.bindDiagnostics.push(N(t,e.Diagnostics.Global_module_exports_may_only_appear_at_top_level));var r=t.parent;if(!e.isExternalModule(r))return void n.bindDiagnostics.push(N(t,e.Diagnostics.Global_module_exports_may_only_appear_in_module_files));if(!r.isDeclarationFile)return void n.bindDiagnostics.push(N(t,e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files));n.symbol.globalExports=n.symbol.globalExports||e.createSymbolTable(),G(n.symbol.globalExports,n.symbol,t,2097152,2097152)}(t);case 243:return function(e){e.name&&me(e,2097152,2097152)}(t);case 248:return function(e){m.symbol&&m.symbol.exports?e.exportClause||G(m.symbol.exports,m.symbol,e,8388608,0):ge(e,8388608,F(e))}(t);case 247:return function(n){if(m.symbol&&m.symbol.exports){var t=247===n.kind&&e.exportAssignmentIsAlias(n)?2097152:4;G(m.symbol.exports,m.symbol,n,t,67108863)}else ge(n,2097152,F(n))}(t);case 272:return Se(t.statements),pe(n),void(e.isExternalModule(n)&&Le());case 211:if(!e.isFunctionLike(t.parent))return;case 238:return Se(t.statements);case 287:if(283!==t.parent.kind)break;case 292:var s=t,l=s.isBracketed||s.typeExpression&&279===s.typeExpression.type.kind?16777220:4;return me(s,l,0);case 291:var c=t.fullName;if(!c||71===c.kind)ve(t,524288,67901928)}}(t),t.kind>144){var o=d;d=t;var l=function(n){switch(n.kind){case 203:case 233:case 236:case 182:case 165:case 283:case 261:return 1;case 234:return 65;case 237:case 235:case 176:return 33;case 272:return 37;case 153:if(e.isObjectLiteralOrClassExpressionMethod(n))return 173;case 154:case 232:case 152:case 155:case 156:case 157:case 280:case 162:case 158:case 159:case 163:return 45;case 190:case 191:return 61;case 238:return 4;case 151:return n.initializer?4:0;case 267:case 218:case 219:case 220:case 239:return 2;case 211:return e.isFunctionLike(n.parent)?0:2}return 0}(t);0===l?K(t):function(n,t){var r=m,a=p;1&t?(m=p=n,32&t&&(m.locals=e.createSymbolTable()),de(m)):2&t&&((p=n).locals=void 0);if(4&t){var i=v,o=_,s=y,l=h,c=S,u=L,d=16&t&&!e.hasModifier(n,256)&&!!e.getImmediatelyInvokedFunctionExpression(n);d||(v={flags:2},144&t&&(v.container=n)),h=d||154===n.kind?X():void 0,_=void 0,y=void 0,S=void 0,L=!1,K(n),n.flags&=-1409,!(1&v.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=128,L&&(n.flags|=256)),272===n.kind&&(n.flags|=A),h&&(Z(h,v),v=re(h),154===n.kind&&(n.returnFlowNode=v)),d||(v=i),_=o,y=s,h=l,S=c,L=u}else 64&t?(g=!1,K(n),n.flags=g?64|n.flags:-65&n.flags):K(n);m=r,p=a}(t,l),d=o}else M||0!=(536870912&t.transformFlags)||(I|=s(t,0));x=r}}function Se(t){if(!x)for(var r=0,a=t;r<a.length;r++){var i=a[r];if(!e.isPrologueDirective(i))return;if(o=i,void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(n,o.expression))||"'use strict'"===s)return void(x=!0)}var o,s}function Le(){ge(n,512,'"'+e.removeFileExtension(n.fileName)+'"')}function Ae(e){n.commonJsModuleIndicator||(n.commonJsModuleIndicator=e,n.externalModuleIndicator||Le())}function xe(n){Ae(n);var t=n.left,r=Re(t.expression,function(n,t){if(t){var r=e.getJSInitializerSymbol(t);return P(r,n,67110400),r}});r&&G(r.exports,r,t,1048580,0)}function Ce(n){e.Debug.assert(e.isInJavaScriptFile(n));var t=e.getThisContainer(n,!1);switch(t.kind){case 232:case 190:t.symbol.members=t.symbol.members||e.createSymbolTable(),G(t.symbol.members,t.symbol,n,4,0);break;case 154:case 151:case 153:case 155:case 156:var r=t.parent,a=e.hasModifier(t,32)?r.symbol.exports:r.symbol.members;G(a,r.symbol,n,4,0,!0)}}function ke(e,n){var t=e.expression,r=t.expression;e.parent=n,r.parent=t,t.parent=e,De(r,e,!0)}function Me(e){e.expression.parent=e,De(e.expression,e,!1)}function De(n,t,r){var a,i=e.getJSInitializerSymbol(Oe(n));if(e.isBinaryExpression(t.parent)){var o=e.isPropertyAccessExpression(t.parent.left)&&"prototype"===t.parent.left.name.escapedText;a=272===t.parent.parent.parent.kind&&!!e.getJavascriptInitializer(t.parent.right,o)}else a=272===t.parent.parent.kind;if(!r&&(!i||!(1920&i.flags))&&a){Re(t.expression,function(e,n){return n?(P(n,e,67110400),n):i=G(i?i.exports:m.locals,i,e,67110400,106639)})}if(i&&5168&i.flags){var s=r?i.members||(i.members=e.createSymbolTable()):i.exports||(i.exports=e.createSymbolTable()),l=4|(a?67108864:0),c=0&~(a?67108864:0);G(s,i,t,l,c)}}function Oe(n){if(e.isIdentifier(n))return o(m,n.escapedText);var t=e.getJSInitializerSymbol(Oe(n.expression));return t&&t.exports&&t.exports.get(n.name.escapedText)}function Re(t,r){if(a(n,t))return n.symbol;if(e.isIdentifier(t))return r(t,Oe(t));var i=e.getJSInitializerSymbol(Re(t.expression,r));return e.Debug.assert(!!i&&!!i.exports),r(t.name,i.exports.get(t.name.escapedText))}function Ie(n){x&&ye(n,n.name),e.isBindingPattern(n.name)||(e.isBlockOrCatchScoped(n)?function(e){ve(e,2,67216319)}(n):e.isParameterDeclaration(n)?me(n,1,67216319):me(n,1,67216318))}function Ne(t,r,a){return n.isDeclarationFile||2097152&t.flags||!e.isAsyncFunction(t)||(A|=1024),v&&e.isObjectLiteralOrClassExpressionMethod(t)&&(t.flowNode=v),e.hasDynamicName(t)?ge(t,r,"__computed"):me(t,r,a)}}();function a(n,t){return e.isExportsIdentifier(t)||e.isModuleExportsPropertyAccessExpression(t)||e.isIdentifier(t)&&i(n,t)}function i(n,t){var r=o(n,t.escapedText);return r&&r.valueDeclaration&&e.isVariableDeclaration(r.valueDeclaration)&&r.valueDeclaration.initializer&&function n(t,r){return a(t,r)||e.isAssignmentExpression(r,!0)&&(n(t,r.left)||n(t,r.right))}(n,r.valueDeclaration.initializer)}function o(e,n){var t=e.locals&&e.locals.get(n);return t?t.exportSymbol||t:e.symbol&&e.symbol.exports&&e.symbol.exports.get(n)}function s(n,t){var r=n.kind;switch(r){case 185:return function(e,n){var t=n,r=e.expression;e.typeArguments&&(t|=3);(524288&n||402653184&r.transformFlags)&&(t|=192,268435456&r.transformFlags&&(t|=16384));91===r.kind&&(t|=67108864,16384&n&&(t|=32768));return e.transformFlags=536870912|t,-940049730&t}(n,t);case 186:return function(e,n){var t=n;e.typeArguments&&(t|=3);524288&n&&(t|=192);return e.transformFlags=536870912|t,-940049730&t}(n,t);case 237:return function(n,t){var r=3;0==(2&e.getModifierFlags(n))&&(r|=t);return n.transformFlags=536870912|r,-977327426&r}(n,t);case 189:return function(e,n){var t=n,r=e.expression,a=r.kind,i=r.transformFlags;206!==a&&188!==a||(t|=3);1024&i&&(t|=1024);return e.transformFlags=536870912|t,-536872258&t}(n,t);case 198:return function(e,n){var t=n,r=e.operatorToken.kind,a=e.left.kind;58===r&&182===a?t|=3272:58===r&&181===a?t|=3264:40!==r&&62!==r||(t|=32);return e.transformFlags=536870912|t,-939525442&t}(n,t);case 214:return function(e,n){var t=n;1024&e.expression.transformFlags&&(t|=192);return e.transformFlags=536870912|t,-939525442&t}(n,t);case 148:return function(n,t){var r=t,a=n.name,i=n.initializer,o=n.dotDotDotToken;(n.questionToken||n.type||4096&t||e.isThisIdentifier(a))&&(r|=3);e.hasModifier(n,92)&&(r|=262147);1048576&t&&(r|=8);(8388608&t||i||o)&&(r|=131264);return n.transformFlags=536870912|r,-939525442&r}(n,t);case 191:return function(n,t){var r=192|t;(e.hasModifier(n,2270)||n.typeParameters||n.type)&&(r|=3);e.hasModifier(n,256)&&(r|=16);1048576&t&&(r|=8);16384&t&&(r|=32768);return n.transformFlags=536870912|r,-1003902274&r}(n,t);case 190:return function(n,t){var r=t;(e.hasModifier(n,2270)||n.typeParameters||n.type)&&(r|=3);e.hasModifier(n,256)&&(r|=n.asteriskToken?8:16);1048576&t&&(r|=8);163840&t&&(r|=192);n.asteriskToken&&(r|=768);return n.transformFlags=536870912|r,-1003935042&r}(n,t);case 232:return function(n,t){var r,a=e.getModifierFlags(n);!n.body||2&a?r=3:(r=33554432|t,(2270&a||n.typeParameters||n.type)&&(r|=3),256&a&&(r|=n.asteriskToken?8:16),1048576&t&&(r|=8),163840&t&&(r|=192),n.asteriskToken&&(r|=768));return n.transformFlags=536870912|r,-1003935042&r}(n,t);case 230:return function(e,n){var t=n;t|=8388800,1048576&n&&(t|=8);e.type&&(t|=3);return e.transformFlags=536870912|t,-939525442&t}(n,t);case 231:return function(e,n){var t=33554432|n;8388608&n&&(t|=192);3&e.flags&&(t|=4194496);return e.transformFlags=536870912|t,-948962626&t}(n,t);case 212:return function(n,t){var r,a=n.declarationList.transformFlags;e.hasModifier(n,2)?r=3:(r=t,8388608&a&&(r|=192));return n.transformFlags=536870912|r,-939525442&r}(n,t);case 226:return function(n,t){var r=t;4194304&t&&e.isIterationStatement(n,!0)&&(r|=192);return n.transformFlags=536870912|r,-939525442&r}(n,t);case 233:return function(n,t){var r;e.hasModifier(n,2)?r=3:(r=192|t,(274432&t||n.typeParameters)&&(r|=3),65536&t&&(r|=16384));return n.transformFlags=536870912|r,-942011714&r}(n,t);case 203:return function(e,n){var t=192|n;(274432&n||e.typeParameters)&&(t|=3);65536&n&&(t|=16384);return e.transformFlags=536870912|t,-942011714&t}(n,t);case 266:return function(n,t){var r=t;switch(n.token){case 85:r|=192;break;case 108:r|=3;break;default:e.Debug.fail("Unexpected token for heritage clause")}return n.transformFlags=536870912|r,-939525442&r}(n,t);case 267:return function(n,t){var r=t;n.variableDeclaration?e.isBindingPattern(n.variableDeclaration.name)&&(r|=192):r|=8;return n.transformFlags=536870912|r,-940574018&r}(n,t);case 205:return function(e,n){var t=192|n;e.typeArguments&&(t|=3);return e.transformFlags=536870912|t,-939525442&t}(n,t);case 154:return function(n,t){var r=t;!e.hasModifier(n,2270)&&n.body||(r|=3);1048576&t&&(r|=8);return n.transformFlags=536870912|r,-1003668802&r}(n,t);case 151:return function(e,n){var t=3|n;e.initializer&&(t|=8192);return e.transformFlags=536870912|t,-939525442&t}(n,t);case 153:return function(n,t){var r=192|t;(n.decorators||e.hasModifier(n,2270)||n.typeParameters||n.type||n.name&&e.isComputedPropertyName(n.name)||!n.body)&&(r|=3);1048576&t&&(r|=8);e.hasModifier(n,256)&&(r|=n.asteriskToken?8:16);n.asteriskToken&&(r|=768);return n.transformFlags=536870912|r,-1003668802&r}(n,t);case 155:case 156:return function(n,t){var r=t;(n.decorators||e.hasModifier(n,2270)||n.type||n.name&&e.isComputedPropertyName(n.name)||!n.body)&&(r|=3);1048576&t&&(r|=8);return n.transformFlags=536870912|r,-1003668802&r}(n,t);case 241:return function(n,t){var r=t;e.isExternalModuleImportEqualsDeclaration(n)||(r|=3);return n.transformFlags=536870912|r,-939525442&r}(n,t);case 183:return function(e,n){var t=n;134217728&t&&(t^=134217728,t|=268435456);return e.transformFlags=536870912|t,-671089986&t}(n,t);case 184:return function(e,n){var t=n;134217728&e.expression.transformFlags&&(t&=-134217729,t|=268435456);return e.transformFlags=536870912|t,-671089986&t}(n,t);default:return function(e,n,t){var r=t,a=939525441;switch(n){case 120:case 195:r|=24;break;case 188:case 206:case 295:r|=3,a=536872257;break;case 114:case 112:case 113:case 117:case 124:case 76:case 236:case 271:case 207:case 132:r|=3;break;case 253:case 254:case 255:case 10:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:r|=4;break;case 13:case 14:case 15:case 16:case 200:case 187:case 269:case 115:case 208:r|=192;break;case 9:e.hasExtendedUnicodeEscape&&(r|=192);break;case 8:384&e.numericLiteralFlags&&(r|=192);break;case 220:e.awaitModifier&&(r|=8),r|=192;break;case 201:r|=16777416;break;case 119:case 134:case 131:case 135:case 137:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 234:case 235:case 173:case 174:case 175:case 176:case 177:case 240:r=3,a=-3;break;case 146:r|=2097152,16384&t&&(r|=65536);break;case 202:r|=524480;break;case 270:r|=1048584;break;case 97:r|=134217920,a=536872257;break;case 99:r|=16384;break;case 178:r|=8388800,524288&t&&(r|=1048584),a=940049729;break;case 179:r|=8388800,a=940049729;break;case 180:r|=192,e.dotDotDotToken&&(r|=524288);break;case 149:r|=4099;break;case 182:a=942740801,2097152&t&&(r|=192),65536&t&&(r|=16384),1048576&t&&(r|=8);break;case 181:case 186:a=940049729,524288&t&&(r|=192);break;case 216:case 217:case 218:case 219:4194304&t&&(r|=192);break;case 272:32768&t&&(r|=192);break;case 223:case 221:case 222:r|=33554432}return e.transformFlags=536870912|r,r&~a}(n,r,t)}}function l(e){if(e>=160&&e<=177)return-3;switch(e){case 185:case 186:case 181:return 940049729;case 237:return 977327425;case 148:return 939525441;case 191:return 1003902273;case 190:case 232:return 1003935041;case 231:return 948962625;case 233:case 203:return 942011713;case 154:return 1003668801;case 153:case 155:case 156:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 234:case 235:return-3;case 182:return 942740801;case 267:return 940574017;case 178:case 179:return 940049729;case 188:case 206:case 295:case 189:case 97:return 536872257;case 183:case 184:return 671089985;default:return 939525441}}function c(n,t){t.parent=n,e.forEachChild(t,function(e){return c(t,e)})}e.bindSourceFile=function(n,t){e.performance.mark("beforeBind"),r(n,t),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=a,e.computeTransformFlagsForNode=s,e.getTransformFlagsSubtreeExclusions=l}(u||(u={})),function(e){e.createGetSymbolWalker=function(n,t,r,a,i,o,s,l,c,u){return function(d){void 0===d&&(d=function(){return!0});var m=[],p=[];return{walkType:function(n){try{return f(n),{visitedTypes:e.getOwnValues(m),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(m),e.clear(p)}},walkSymbol:function(n){try{return _(n),{visitedTypes:e.getOwnValues(m),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(m),e.clear(p)}}};function f(n){if(n&&!m[n.id]){m[n.id]=n;var t=_(n.symbol);if(!t){if(65536&n.flags){var r=n,i=r.objectFlags;4&i&&function(n){f(n.target),e.forEach(n.typeArguments,f)}(n),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(n),3&i&&(v(o=n),e.forEach(o.typeParameters,f),e.forEach(a(o),f),f(o.thisType)),24&i&&v(r)}var o;32768&n.flags&&function(e){f(c(e))}(n),393216&n.flags&&function(n){e.forEach(n.types,f)}(n),524288&n.flags&&function(e){f(e.type)}(n),1048576&n.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(n)}}}function g(a){var i=t(a);i&&f(i.type),e.forEach(a.typeParameters,f);for(var o=0,s=a.parameters;o<s.length;o++){var l=s[o];_(l)}f(n(a)),f(r(a))}function v(e){var n=l(e,0);f(n);var t=l(e,1);f(t);for(var r=i(e),a=0,o=r.callSignatures;a<o.length;a++){var s=o[a];g(s)}for(var c=0,u=r.constructSignatures;c<u.length;c++){var s=u[c];g(s)}for(var d=0,m=r.properties;d<m.length;d++){var p=m[d];_(p)}}function _(n){if(n){var t=e.getSymbolId(n);if(!p[t]){if(p[t]=n,!d(n))return!0;var r=o(n);f(r),1952&n.flags&&n.exports.forEach(_),e.forEach(n.declarations,function(e){if(e.type&&164===e.type.kind){var n=e.type,t=s(u(n.exprName));_(t)}})}}}}}}(u||(u={})),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(e,n){return n&&{path:n.path,extension:n.ext,packageId:e}}function a(e){return r(void 0,e)}var i;function o(n){if(n)return e.Debug.assert(e.extensionIsTypeScript(n.extension)),{fileName:n.path,packageId:n.packageId}}function s(e,n,t,r){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:n,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function c(t,r,a,i){return t?o("typings")||o("types"):o("main");function o(t){if(e.hasProperty(r,t)){var o=r[t];if(e.isString(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,t,o,s),s}i.traceEnabled&&n(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,t,typeof o)}else i.traceEnabled&&n(i.host,e.Diagnostics.package_json_does_not_have_a_0_field,t)}}function u(e,n){try{var t=n.readFile(e);return t?JSON.parse(t):{}}catch(e){return{}}}function d(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,m)];var r;return e.forEachAncestorDirectory(e.normalizePath(n),function(n){var a=e.combinePaths(n,m);t.directoryExists(a)&&(r||(r=[])).push(a)}),r}(r,t):void 0);var r}e.trace=n,e.isTraceEnabled=t,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.DtsOnly=2]="DtsOnly"}(i||(i={})),e.getEffectiveTypeRoots=d;var m=e.combinePaths("node_modules","@types");function p(n,t,r,a){return{getOrCreateCacheForDirectory:function(t){var i=e.toPath(t,r,a),o=n.get(i);o||(o=e.createMap(),n.set(i,o));return o},getOrCreateCacheForModuleName:function(n){if(e.isExternalModuleNameRelative(n))return;var i=t.get(n);i||(i=function(){var n=e.createMap();return{get:function(t){return n.get(e.toPath(t,r,a))},set:function(t,i){var o=e.toPath(t,r,a);if(n.has(o))return;n.set(o,i);var s=i.resolvedModule&&i.resolvedModule.resolvedFileName,l=function(n,t){if(void 0===t)return;var i=e.toPath(e.getDirectoryPath(t),r,a),o=0;for(;o<Math.min(n.length,i.length)&&n.charCodeAt(o)===i.charCodeAt(o);)o++;var s=n.lastIndexOf(e.directorySeparator,o);if(s<0)return;return n.substr(0,s)}(o,s),c=o;for(;;){var u=e.getDirectoryPath(c);if(u===c||n.has(u))break;if(n.set(u,i),(c=u)===l)break}}}}(),t.set(n,i));return i}}}function f(t,r,i,o,s,l){return e.isExternalModuleNameRelative(r)?function(t,r,a,i,o,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&n(s.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var l,c,u=e.normalizePath(e.combinePaths(a,r)),d=0,m=s.compilerOptions.rootDirs;d<m.length;d++){var p=m[d],f=e.normalizePath(p);e.endsWith(f,e.directorySeparator)||(f+=e.directorySeparator);var g=e.startsWith(u,f)&&(void 0===c||c.length<f.length);s.traceEnabled&&n(s.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,f,u,g),g&&(c=f,l=p)}if(c){s.traceEnabled&&n(s.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,u,c);var v=u.substr(c.length);s.traceEnabled&&n(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,v,c,u);var _=i(t,u,o,!T(a,s.host),s);if(_)return _;s.traceEnabled&&n(s.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=s.compilerOptions.rootDirs;y<h.length;y++){var p=h[y];if(p!==l){var b=e.combinePaths(e.normalizePath(p),v);s.traceEnabled&&n(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,v,p,b);var E=e.getDirectoryPath(b),S=i(t,b,o,!T(E,s.host),s);if(S)return S}}s.traceEnabled&&n(s.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(t,r,i,o,s,l):function(t,r,i,o,s){if(!s.compilerOptions.baseUrl)return;s.traceEnabled&&n(s.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s.compilerOptions.baseUrl,r);var l;s.compilerOptions.paths&&(s.traceEnabled&&n(s.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r),l=e.matchPatternOrExact(e.getOwnKeys(s.compilerOptions.paths),r));if(l){var c=e.isString(l)?void 0:e.matchedText(l,r),u=e.isString(l)?l:e.patternText(l);return s.traceEnabled&&n(s.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,u),e.forEach(s.compilerOptions.paths[u],function(r){var l=c?r.replace("*",c):r,u=e.normalizePath(e.combinePaths(s.compilerOptions.baseUrl,l));s.traceEnabled&&n(s.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,l);var d=e.tryGetExtensionFromPath(u);if(void 0!==d){var m=x(u,o,!1,s);if(void 0!==m)return a({path:m,ext:d})}return i(t,u,o,!T(e.getDirectoryPath(u),s.host),s)})}var d=e.normalizePath(e.combinePaths(s.compilerOptions.baseUrl,r));return s.traceEnabled&&n(s.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,s.compilerOptions.baseUrl,d),i(t,d,o,!T(e.getDirectoryPath(d),s.host),s)}(t,r,o,s,l)}function g(n,t,r,a,i){return v(n,e.getDirectoryPath(t),r,a,i,!1)}function v(r,a,o,c,u,d){var m=t(o,c),p=[],g={compilerOptions:o,host:c,traceEnabled:m},v=d?b(i.JavaScript):b(i.TypeScript)||b(i.JavaScript);if(v&&v.value){var h=v.value;return s(h.resolved,h.originalPath,h.isExternalLibraryImport,p)}return{resolvedModule:void 0,failedLookupLocations:p};function b(t){var s=f(t,r,a,function(e,n,t,r,a){return y(e,n,t,r,a,!0)},p,g);if(s)return K({resolved:s,isExternalLibraryImport:!1});if(e.isExternalModuleNameRelative(r)){var d=e.normalizePathAndParts(e.combinePaths(a,r)),v=d.path,h=d.parts,b=y(t,v,p,!1,g,!0);return b&&K({resolved:b,isExternalLibraryImport:e.contains(h,"node_modules")})}m&&n(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,r,i[t]);var E=I(t,r,a,p,g,u);if(E){var T=E.value,S=void 0;if(!o.preserveSymlinks&&T){S=T.path;var L=_(E.value.path,c,m);L===S&&(S=void 0),T=l({},T,{path:L})}return{value:T&&{resolved:T,originalPath:S,isExternalLibraryImport:!0}}}}}function _(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),i}function y(t,a,o,s,l,c){if(l.traceEnabled&&n(l.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,a,i[t]),!e.pathEndsWithDirectorySeparator(a)){if(!s){var u=e.getDirectoryPath(a);T(u,l.host)||(l.traceEnabled&&n(l.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),s=!0)}var d=L(t,a,o,s,l);if(d){var m=c?function(n){var t=e.normalizePath(n.path),r=t.lastIndexOf(h);if(-1===r)return;var a=r+h.length,i=b(t,a);64===t.charCodeAt(a)&&(i=b(t,i));var o=t.slice(0,i),s=e.removeExtension(t.slice(i+1),n.ext)+".d.ts";return{packageDirectory:o,subModuleName:s}}(d):void 0;return r(m&&M(m.packageDirectory,m.subModuleName,o,!1,l).packageId,d)}}s||(T(a,l.host)||(l.traceEnabled&&n(l.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),s=!0));return C(t,a,o,s,l,c)}e.resolveTypeReferenceDirective=function(r,a,s,c){var u=t(s,c),m={compilerOptions:s,host:c,traceEnabled:u},p=d(s,c);u&&(void 0===a?void 0===p?n(c,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r):n(c,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,p):void 0===p?n(c,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,a):n(c,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,a,p));var f,g=[],v=function(){if(p&&p.length)return u&&n(c,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.forEach(p,function(t){var a=e.combinePaths(t,r),s=e.getDirectoryPath(a),l=T(s,c);return!l&&u&&n(c,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),o(C(i.DtsOnly,a,g,!l,m))});u&&n(c,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),y=!0;return v||(v=function(){var t,s=a&&e.getDirectoryPath(a);if(void 0!==s){u&&n(c,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,s);var l=I(i.DtsOnly,r,s,g,m,void 0);return!(t=o(l&&l.value))&&u&&n(c,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r),t}u&&n(c,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),y=!1),v&&(s.preserveSymlinks||(v=l({},v,{fileName:_(v.fileName,c,u)})),u&&n(c,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,v.fileName,y),f={primary:y,resolvedFileName:v.fileName,packageId:v.packageId}),{resolvedTypeReferenceDirective:f,failedLookupLocations:g}},e.getAutomaticTypeDirectiveNames=function(n,t){if(n.types)return n.types;var r=[];if(t.directoryExists&&t.getDirectories){var a=d(n,t);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(t.directoryExists(s))for(var l=0,c=t.getDirectories(s);l<c.length;l++){var m=c[l],p=e.normalizePath(m),f=D(e.combinePaths(s,p));t.fileExists(f)&&null===u(f,t).typings||r.push(e.getBaseFileName(p))}}}return r},e.createModuleResolutionCache=function(n,t){return p(e.createMap(),e.createMap(),n,t)},e.createModuleResolutionCacheWithMaps=p,e.resolveModuleName=function(r,a,i,o,s){var l=t(i,o);l&&n(o,e.Diagnostics.Resolving_module_0_from_1,r,a);var c=e.getDirectoryPath(a),u=s&&s.getOrCreateCacheForDirectory(c),d=u&&u.get(r);if(d)l&&n(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,c);else{var m=i.moduleResolution;switch(void 0===m?(m=e.getEmitModuleKind(i)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,l&&n(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[m])):l&&n(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[m]),m){case e.ModuleResolutionKind.NodeJs:d=g(r,a,i,o,s);break;case e.ModuleResolutionKind.Classic:d=H(r,a,i,o,s);break;default:e.Debug.fail("Unexpected moduleResolution: "+m)}if(u){u.set(r,d);var p=s.getOrCreateCacheForModuleName(r);p&&p.set(c,d)}}return l&&(d.resolvedModule?n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,r,d.resolvedModule.resolvedFileName):n(o,e.Diagnostics.Module_name_0_was_not_resolved,r)),d},e.nodeModuleNameResolver=g,e.resolveJavaScriptModule=function(n,t,r){var a=v(n,t,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,!0),i=a.resolvedModule,o=a.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+n+"' starting at '"+t+"'. Looked in: "+o.join(", "));return i.resolvedFileName};var h="/node_modules/";function b(n,t){var r=n.indexOf(e.directorySeparator,t+1);return-1===r?t:r}function E(n){return""===n?"index.d.ts":e.endsWith(n,".d.ts")?n:e.endsWith(n,"/index")?n+".d.ts":n+"/index.d.ts"}function T(e,n){return!n.directoryExists||n.directoryExists(e)}function S(e,n,t,r,i){return a(L(e,n,t,r,i))}function L(t,r,a,i,o){var s=A(r,t,a,i,o);if(s)return s;if(e.hasJavaScriptFileExtension(r)){var l=e.removeFileExtension(r);if(o.traceEnabled){var c=r.substring(l.length);n(o.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,c)}return A(l,t,a,i,o)}}function A(n,t,r,a,o){if(!a){var s=e.getDirectoryPath(n);s&&(a=!T(s,o.host))}switch(t){case i.DtsOnly:return l(".d.ts");case i.TypeScript:return l(".ts")||l(".tsx")||l(".d.ts");case i.JavaScript:return l(".js")||l(".jsx")}function l(e){var t=x(n+e,r,a,o);return t&&{path:t,ext:e}}}function x(t,r,a,i){if(!a){if(i.host.fileExists(t))return i.traceEnabled&&n(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,t),t;i.traceEnabled&&n(i.host,e.Diagnostics.File_0_does_not_exist,t)}r.push(t)}function C(e,n,t,a,i,o){void 0===o&&(o=!0);var s=o?M(n,"",t,a,i):{packageJsonContent:void 0,packageId:void 0},l=s.packageJsonContent;return r(s.packageId,k(e,n,t,a,i,l))}function k(t,r,a,o,s,l){var u=l&&function(t,r,a,o,s){var l=c(r!==i.JavaScript,t,a,s);if(!l)return;var u=!T(e.getDirectoryPath(l),s.host),d=x(l,o,u,s);if(d){var m=d&&function(n,t){var r=e.tryGetExtensionFromPath(t);return void 0!==r&&function(e,n){switch(e){case i.JavaScript:return".js"===n||".jsx"===n;case i.TypeScript:return".ts"===n||".tsx"===n||".d.ts"===n;case i.DtsOnly:return".d.ts"===n}}(n,r)?{path:t,ext:r}:void 0}(r,d);if(m)return m;s.traceEnabled&&n(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,d)}var p=y(r===i.DtsOnly?i.TypeScript:r,l,o,u,s,!1);if(p)return e.Debug.assert(void 0===p.packageId),{path:p.path,ext:p.extension}}(l,t,r,a,s);if(u)return u;var d=!o&&T(r,s.host);return L(t,e.combinePaths(r,"index"),a,!d,s)}function M(t,r,a,i,o){var s=o.host,l=o.traceEnabled,d=!i&&T(t,s),m=D(t);if(d&&s.fileExists(m)){var p=u(m,s);if(""===r){var f=c(!0,p,t,o);if("string"==typeof f)r=E(f.substring(t.length+1));else{var g=c(!1,p,t,o);r="string"==typeof g?e.removeExtension(e.removeExtension(g.substring(t.length+1),".js"),".jsx")+".d.ts":"index.d.ts"}}e.endsWith(r,".d.ts")||(r=E(r));var v="string"==typeof p.name&&"string"==typeof p.version?{name:p.name,subModuleName:r,version:p.version}:void 0;return l&&(v?n(s,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,m,e.packageIdToString(v)):n(s,e.Diagnostics.Found_package_json_at_0,m)),{found:!0,packageJsonContent:p,packageId:v}}return d&&l&&n(s,e.Diagnostics.File_0_does_not_exist,m),a.push(m),{found:!1,packageJsonContent:void 0,packageId:void 0}}function D(n){return e.combinePaths(n,"package.json")}function O(n,t,a,i,o,s){var l,c,u=e.normalizePath(e.combinePaths(a,t)),d=M(u,"",o,!i,s);if(d.found)l=d.packageJsonContent,c=d.packageId;else{var m=R(t),p=m.packageName,f=m.rest;if(""!==f)c=M(e.combinePaths(a,p),f,o,!i,s).packageId}return r(c,L(n,u,o,!i,s)||k(n,u,o,!i,s,l))}function R(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 I(e,n,t,r,a,i){return N(e,n,t,r,a,!1,i)}function N(n,t,r,a,i,o,s){var l=s&&s.getOrCreateCacheForModuleName(t);return e.forEachAncestorDirectory(e.normalizeSlashes(r),function(r){if("node_modules"!==e.getBaseFileName(r)){var s=G(l,t,r,i.traceEnabled,i.host,a);return s||K(w(n,t,r,a,i,o))}})}function w(t,r,a,o,s,l){void 0===l&&(l=!1);var c=e.combinePaths(a,"node_modules"),u=T(c,s.host);!u&&s.traceEnabled&&n(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var d=l?void 0:O(t,r,c,u,o,s);if(d)return d;if(t!==i.JavaScript){var m=e.combinePaths(c,"@types"),p=u;return u&&!T(m,s.host)&&(s.traceEnabled&&n(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,m),p=!1),O(i.DtsOnly,function(t,r){var a=F(t);r.traceEnabled&&a!==t&&n(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,a);return a}(r,s),m,p,o,s)}}e.directoryProbablyExists=T,e.getPackageName=R;var P="__";function F(n){if(e.startsWith(n,"@")){var t=n.replace(e.directorySeparator,P);if(t!==n)return t.slice(1)}return n}function V(n){return e.stringContains(n,P)?"@"+n.replace(P,e.directorySeparator):n}function G(t,r,a,i,o,s){var l=t&&t.get(a);if(l)return i&&n(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,a),s.push.apply(s,l.failedLookupLocations),{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId}}}function H(n,r,a,o,l){var c=t(a,o),u={compilerOptions:a,host:o,traceEnabled:c},d=[],m=e.getDirectoryPath(r),p=g(i.TypeScript)||g(i.JavaScript);return s(p&&p.value,void 0,!1,d);function g(t){var r=f(t,n,m,S,d,u);if(r)return{value:r};var a=l&&l.getOrCreateCacheForModuleName(n);if(e.isExternalModuleNameRelative(n)){var s=e.normalizePath(e.combinePaths(m,n));return K(S(t,s,d,!1,u))}var p=e.forEachAncestorDirectory(m,function(r){var i=G(a,n,r,c,o,d);if(i)return i;var s=e.normalizePath(e.combinePaths(r,n));return K(S(t,s,d,!1,u))});return p||(t===i.TypeScript?function(e,n,t,r){return N(i.DtsOnly,e,n,t,r,!0,void 0)}(n,m,d,u):void 0)}}function K(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+F(e)},e.getMangledNameForScopedPackage=F,e.getPackageNameFromAtTypesDirectory=function(n){var t=e.removePrefix(n,"@types/");return t!==n?V(t):n},e.getUnmangledNameForScopedPackage=V,e.classicNameResolver=H,e.loadModuleFromGlobalCache=function(r,a,o,l,c){var u=t(o,l);u&&n(l,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 d={compilerOptions:o,host:l,traceEnabled:u},m=[];return s(w(i.DtsOnly,r,c,m,d),void 0,!0,m)}}(u||(u={})),function(e){var n,t=/^".+"$/,r=1,a=1,i=1,o=1;function s(e){return e.id||(e.id=a,a++),e.id}function c(e){return e.id||(e.id=r,r++),e.id}function u(n,t){var r=e.getModuleInstanceState(n);return 1===r||t&&2===r}function d(n){switch(n.parent.kind){case 246:case 250:return e.isIdentifier(n);default:return e.isDeclarationName(n)}}function m(e){switch(e.kind){case 243:case 241:case 244:case 246:return!0;case 71:return 246===e.parent.kind;default:return!1}}e.getNodeId=s,e.getSymbolId=c,e.isInstantiatedModule=u,e.createTypeChecker=function(r,a){var p,f,g,v=e.objectAllocator.getSymbolConstructor(),_=e.objectAllocator.getTypeConstructor(),y=e.objectAllocator.getSignatureConstructor(),h=0,b=0,E=0,T=0,S=e.createSymbolTable(),L=e.identity,A=r.getCompilerOptions(),x=e.getEmitScriptTarget(A),C=e.getEmitModuleKind(A),k=!!A.noUnusedLocals||!!A.noUnusedParameters,M=e.getAllowSyntheticDefaultImports(A),D=e.getStrictOptionValue(A,"strictNullChecks"),O=e.getStrictOptionValue(A,"strictFunctionTypes"),R=e.getStrictOptionValue(A,"strictPropertyInitialization"),I=e.getStrictOptionValue(A,"noImplicitAny"),N=e.getStrictOptionValue(A,"noImplicitThis"),w=function(){var n,t=r.getResolvedTypeReferenceDirectives();return t&&(n=e.createMap(),t.forEach(function(e,t){if(e){var a=r.getSourceFile(e.resolvedFileName);n.set(a.path,t)}})),{getReferencedExportContainer:Wg,getReferencedImportDeclaration:qg,getReferencedDeclarationWithCollidingName:Jg,isDeclarationWithCollidingName:Xg,isValueAliasDeclaration:function(n){return!(n=e.getParseTreeNode(n))||Yg(n)},hasGlobalName:dv,isReferencedAliasDeclaration:function(n,t){return!(n=e.getParseTreeNode(n))||function n(t,r){if(e.isAliasSymbolDeclaration(t)){var a=ar(t);if(a&&_t(a).referenced)return!0;var i=_t(a).target;if(i&&1&e.getModifierFlags(t)&&67216319&i.flags)return!0}return!!r&&e.forEachChild(t,function(e){return n(e,r)})}(n,t)},getNodeCheckFlags:function(n){return(n=e.getParseTreeNode(n))?rv(n):void 0},isTopLevelValueImportEqualsWithEntityName:Qg,isDeclarationVisible:Nr,isImplementationOfOverload:ev,isRequiredInitializedParameter:nv,isOptionalUninitializedParameterProperty:tv,writeTypeOfDeclaration:lv,writeReturnTypeOfSignatureDeclaration:cv,writeTypeOfExpression:uv,isSymbolAccessible:Er,isEntityNameVisible:Lr,getConstantValue:function(n){return(n=e.getParseTreeNode(n,iv))?ov(n):void 0},collectLinkedAliases:wr,getReferencedValueDeclaration:pv,getTypeReferenceSerializationKind:sv,isOptionalParameter:Ji,moduleExportsSomeValue:jg,isArgumentsLocalBinding:Ug,getExternalModuleFileFromDeclaration:vv,getTypeReferenceDirectivesForEntityName:function(e){if(n){var t=183===e.kind||71===e.kind&&zc(e)?68264895:67903464,r=Ut(e,t,!0);return r&&r!==X?a(r,t):void 0}},getTypeReferenceDirectivesForSymbol:a,isLiteralConstDeclaration:fv,isLateBound:function(n){var t=(n=e.getParseTreeNode(n,e.isDeclaration))&&ar(n);return!!(t&&1024&e.getCheckFlags(t))},writeLiteralConstValue:gv,getJsxFactoryEntity:function(n){return n?(st(n),e.getSourceFileOfNode(n).localJsxFactory||Kn):Kn}};function a(t,r){if(n&&function(t){if(!t.declarations)return!1;for(var r=t;;){var a=ir(r);if(!a)break;r=a}if(r.valueDeclaration&&272===r.valueDeclaration.kind&&512&r.flags)return!1;for(var i=0,o=t.declarations;i<o.length;i++){var s=o[i],l=e.getSourceFileOfNode(s);if(n.has(l.path))return!0}return!1}(t)){for(var a,i=0,o=t.declarations;i<o.length;i++){var s=o[i];if(s.symbol&&s.symbol.flags&r){var l=e.getSourceFileOfNode(s),c=n.get(l.path);if(!c)return;(a||(a=[])).push(c)}}return a}}}(),P=function(){return{typeToTypeNode:function(r,a,i,o){e.Debug.assert(void 0===a||0==(8&a.flags));var s=n(a,i,o),l=t(r,s),c=s.encounteredError?void 0:l;return c},indexInfoToIndexSignatureDeclaration:function(t,r,i,o,s){e.Debug.assert(void 0===i||0==(8&i.flags));var l=n(i,o,s),c=a(t,r,l),u=l.encounteredError?void 0:c;return u},signatureToSignatureDeclaration:function(t,r,a,o,s){e.Debug.assert(void 0===a||0==(8&a.flags));var l=n(a,o,s),c=i(t,r,l),u=l.encounteredError?void 0:c;return u},symbolToEntityName:function(t,r,a,i,o){e.Debug.assert(void 0===a||0==(8&a.flags));var s=n(a,i,o),l=d(t,s,r,!1),c=s.encounteredError?void 0:l;return c},symbolToExpression:function(t,r,a,i,o){e.Debug.assert(void 0===a||0==(8&a.flags));var s=n(a,i,o),c=function(n,t,r){var a=l(n,t,r);return function n(r,a){var i=u(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=Ir(o,t);0===a&&(t.flags^=16777216);var l=s.charCodeAt(0),c=e.isIdentifierStart(l,x);if(0===a||c){var d=e.setEmitFlags(e.createIdentifier(s,i),16777216);return d.symbol=o,a>0?e.createPropertyAccess(n(r,a-1),d):d}91===l&&(s=s.substring(1,s.length-1),l=s.charCodeAt(0));var m=void 0;return e.isSingleOrDoubleQuote(l)?(m=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===l:""+ +s===s&&(m=e.createLiteral(+s)),m||((m=e.setEmitFlags(e.createIdentifier(s,i),16777216)).symbol=o),e.createElementAccess(n(r,a-1),m)}(a,a.length-1)}(t,s,r),d=s.encounteredError?void 0:c;return d},symbolToTypeParameterDeclarations:function(t,r,a,i){e.Debug.assert(void 0===r||0==(8&r.flags));var o=n(r,a,i),s=c(t,o),l=o.encounteredError?void 0:s;return l},symbolToParameterDeclaration:function(t,r,a,i){e.Debug.assert(void 0===r||0==(8&r.flags));var o=n(r,a,i),l=s(t,o),c=o.encounteredError?void 0:l;return c},typeParameterToDeclaration:function(t,r,a,i){e.Debug.assert(void 0===r||0==(8&r.flags));var s=n(r,a,i),l=o(t,s),c=s.encounteredError?void 0:l;return c}};function n(n,t,r){return{enclosingDeclaration:n,flags:t,tracker:r&&r.trackSymbol?r:{trackSymbol:e.noop},encounteredError:!1,symbolStack:void 0,inferTypeParameters:void 0}}function t(n,s){var l=8388608&s.flags;if(s.flags&=-8388609,n){if(1&n.flags)return e.createKeywordTypeNode(119);if(2&n.flags)return e.createKeywordTypeNode(137);if(4&n.flags)return e.createKeywordTypeNode(134);if(8&n.flags)return e.createKeywordTypeNode(122);if(256&n.flags&&!(131072&n.flags)){var c=ir(n.symbol),u=d(c,s,67901928,!1),m=Ra(c)===n?u:e.createQualifiedName(u,e.symbolName(n.symbol));return e.createTypeReferenceNode(m,void 0)}if(272&n.flags){var p=d(n.symbol,s,67901928,!1);return e.createTypeReferenceNode(p,void 0)}if(32&n.flags)return e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(n.value),16777216));if(64&n.flags)return e.createLiteralTypeNode(e.createLiteral(n.value));if(128&n.flags)return"true"===n.intrinsicName?e.createTrue():e.createFalse();if(1024&n.flags){if(!(1048576&s.flags)){if(br(n.symbol,s.enclosingDeclaration))return e.createTypeQueryNode(d(n.symbol,s,67216319,!1));s.tracker.reportInaccessibleUniqueSymbolError&&s.tracker.reportInaccessibleUniqueSymbolError()}return e.createTypeOperatorNode(141,e.createKeywordTypeNode(138))}if(2048&n.flags)return e.createKeywordTypeNode(105);if(4096&n.flags)return e.createKeywordTypeNode(140);if(8192&n.flags)return e.createKeywordTypeNode(95);if(16384&n.flags)return e.createKeywordTypeNode(131);if(512&n.flags)return e.createKeywordTypeNode(138);if(134217728&n.flags)return e.createKeywordTypeNode(135);if(32768&n.flags&&n.isThisType)return 4194304&s.flags&&(s.encounteredError||32768&s.flags||(s.encounteredError=!0),s.tracker.reportInaccessibleThisError&&s.tracker.reportInaccessibleThisError()),e.createThis();var f,g,v=e.getObjectFlags(n);if(4&v)return e.Debug.assert(!!(65536&n.flags)),function(n){var a=n.typeArguments||e.emptyArray;if(n.target===De){if(2&s.flags){var i=t(a[0],s);return e.createTypeReferenceNode("Array",[i])}var o=t(a[0],s);return e.createArrayTypeNode(o)}if(8&n.target.objectFlags){if(a.length>0){var l=r(a.slice(0,Ao(n)),s);if(l&&l.length>0)return e.createTupleTypeNode(l)}return s.encounteredError||524288&s.flags?e.createTupleTypeNode([]):void(s.encounteredError=!0)}if(2048&s.flags&&n.symbol.valueDeclaration&&203===n.symbol.valueDeclaration.kind)return M(n);var c=n.target.outerTypeParameters,u=0,d=void 0;if(c)for(var m=c.length;u<m;){var p=u,f=bo(c[u]);do{u++}while(u<m&&bo(c[u])===f);if(!e.rangeEquals(c,a,p,u)){var g=r(a.slice(p,u),s),v=g&&e.createNodeArray(g),_=O(f);(71===_.kind?_:_.right).typeArguments=v,d?(e.Debug.assert(!d.right),d=R(d,_),d=e.createQualifiedName(d,void 0)):d=e.createQualifiedName(_,void 0)}}var y=void 0,h=O(n.symbol);d?(e.Debug.assert(!d.right),d=R(d,h),y=d):y=h;var b=void 0;if(a.length>0){var E=(n.target.typeParameters||e.emptyArray).length;b=r(a.slice(u,E),s)}if(b){var T=71===y.kind?y:y.right;T.typeArguments=void 0}return e.createTypeReferenceNode(y,b)}(n);if(32768&n.flags||3&v){if(32768&n.flags&&e.contains(s.inferTypeParameters,n))return e.createInferTypeNode(e.createTypeParameterDeclaration(Ir(n.symbol)));var p=n.symbol?d(n.symbol,s,67901928,!1):e.createIdentifier("?");return e.createTypeReferenceNode(p,void 0)}if(!l&&n.aliasSymbol&&(16384&s.flags||(f=n.aliasSymbol,g=s.enclosingDeclaration,0===Er(f,g,67901928,!1).accessibility))){var p=O(n.aliasSymbol),_=r(n.aliasTypeArguments,s);return e.createTypeReferenceNode(p,_)}if(393216&n.flags){var y=131072&n.flags?function(e){for(var n=[],t=0,r=0;r<e.length;r++){var a=e[r];if(t|=a.flags,!(12288&a.flags)){if(384&a.flags){var i=128&a.flags?ce:ka(a);if(131072&i.flags){var o=i.types.length;if(r+o<=e.length&&e[r+o-1]===i.types[o-1]){n.push(i),r+=o-1;continue}}}n.push(a)}}return 8192&t&&n.push(re),4096&t&&n.push(ne),n||e}(n.types):n.types,h=r(y,s);if(h&&h.length>0){var b=e.createUnionOrIntersectionTypeNode(131072&n.flags?168:169,h);return b}s.encounteredError||262144&s.flags||(s.encounteredError=!0)}else{if(48&v)return e.Debug.assert(!!(65536&n.flags)),M(n);if(524288&n.flags){var E=n.type,T=t(E,s);return e.createTypeOperatorNode(T)}if(1048576&n.flags){var S=t(n.objectType,s),T=t(n.indexType,s);return e.createIndexedAccessTypeNode(S,T)}if(2097152&n.flags){var L=t(n.checkType,s),A=s.inferTypeParameters;s.inferTypeParameters=n.root.inferTypeParameters;var x=t(n.extendsType,s);s.inferTypeParameters=A;var C=t(ws(n),s),k=t(Ps(n),s);return e.createConditionalTypeNode(L,x,C,k)}if(4194304&n.flags)return t(n.typeVariable,s);e.Debug.fail("Should be unreachable.")}}else s.encounteredError=!0;function M(n){var t=n.symbol;if(t){if(32&t.flags&&!oa(t)&&!(203===t.valueDeclaration.kind&&2048&s.flags)||896&t.flags||function(){var n=!!(8192&t.flags)&&e.some(t.declarations,function(n){return e.hasModifier(n,32)}),r=!!(16&t.flags)&&(t.parent||e.forEach(t.declarations,function(e){return 272===e.parent.kind||238===e.parent.kind}));if(n||r)return(!!(4096&s.flags)||e.contains(s.symbolStack,t))&&(!(8&s.flags)||br(t,s.enclosingDeclaration))}())return function(n,t){var r=d(n,s,t,!1);return e.createTypeQueryNode(r)}(t,67216319);if(e.contains(s.symbolStack,t)){var r=function(n){if(n.symbol&&2048&n.symbol.flags){var t=e.findAncestor(n.symbol.declarations[0].parent,function(e){return 172!==e.kind});if(235===t.kind)return ar(t)}}(n);if(r){var a=d(r,s,67901928,!1);return e.createTypeReferenceNode(a,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]);var i=16&e.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags;if(i)return D(n);s.symbolStack.push(t);var o=D(n);return s.symbolStack.pop(),o}return D(n)}function D(n){if(vi(n))return function(n){e.Debug.assert(!!(65536&n.flags));var r=n.declaration.readonlyToken?e.createToken(n.declaration.readonlyToken.kind):void 0,a=n.declaration.questionToken?e.createToken(n.declaration.questionToken.kind):void 0,i=o(ci(n),s,ui(n)),l=t(di(n),s),c=e.createMappedTypeNode(r,i,a,l);return e.setEmitFlags(c,1)}(n);var r=_i(n);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length){var l=r.callSignatures[0],c=i(l,162,s);return c}if(1===r.constructSignatures.length&&!r.callSignatures.length){var l=r.constructSignatures[0],c=i(l,163,s);return c}}var u=s.flags;s.flags|=4194304;var m=function(n){for(var r=[],o=0,l=n.callSignatures;o<l.length;o++){var c=l[o];r.push(i(c,157,s))}for(var u=0,m=n.constructSignatures;u<m.length;u++){var c=m[u];r.push(i(c,158,s))}if(n.stringIndexInfo){var p=2048&n.objectFlags?_o(Q,n.stringIndexInfo.isReadonly,n.stringIndexInfo.declaration):n.stringIndexInfo;r.push(a(p,0,s))}n.numberIndexInfo&&r.push(a(n.numberIndexInfo,1,s));var f=n.properties;if(!f)return r;for(var g=0,v=f;g<v.length;g++){var _=v[g];if(2048&s.flags){if(4194304&_.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(_)&&s.tracker.reportPrivateInBaseOfClassExpression&&s.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(_.escapedName))}var y=2048&e.getCheckFlags(_)&&33554432&s.flags?Q:ca(_),h=s.enclosingDeclaration;if(s.enclosingDeclaration=void 0,1024&e.getCheckFlags(_)){var b=e.firstOrUndefined(_.declarations),E=Ua(b)&&Ut(b.name.expression,67216319);E&&s.tracker.trackSymbol&&s.tracker.trackSymbol(E,h,67216319)}var T=d(_,s,67216319,!0);s.enclosingDeclaration=h;var S=16777216&_.flags?e.createToken(55):void 0;if(8208&_.flags&&!yi(y).length)for(var L=Gi(y,0),A=0,x=L;A<x.length;A++){var c=x[A],C=i(c,152,s);C.name=T,C.questionToken=S,r.push(C)}else{var k=s.flags;s.flags|=2048&e.getCheckFlags(_)?33554432:0;var M=y?t(y,s):e.createKeywordTypeNode(119);s.flags=k;var D=_p(_)?[e.createToken(132)]:void 0,O=e.createPropertySignature(D,T,S,M,void 0);r.push(O)}}return r.length?r:void 0}(r);s.flags=u;var p=e.createTypeLiteralNode(m);return e.setEmitFlags(p,1024&s.flags?0:1)}function O(n){var t=32&n.flags||!mr(n.escapedName)?d(n,s,67901928,!1):e.createIdentifier("");return t}function R(n,t){if(e.Debug.assert(void 0===n.right),71===t.kind)return n.right=t,n;for(var r=t;71!==r.left.kind;)r=r.left;return n.right=r.left,r.left=n,t}}function r(n,r){if(e.some(n)){for(var a=[],i=0,o=n;i<o.length;i++){var s=o[i],l=t(s,r);l&&a.push(l)}return a}}function a(n,r,a){var i=e.getNameFromIndexInfo(n)||"x",o=e.createKeywordTypeNode(0===r?137:134),s=e.createParameter(void 0,void 0,void 0,i,void 0,o,void 0),l=n.type?t(n.type,a):t(Q,a);return n.type||2097152&a.flags||(a.encounteredError=!0),e.createIndexSignature(void 0,n.isReadonly?[e.createToken(132)]:void 0,[s],l)}function i(n,r,a){var i,l;32&a.flags&&n.target&&n.mapper&&n.target.typeParameters?l=n.target.typeParameters.map(function(e){return t(pl(e,n.mapper),a)}):i=n.typeParameters&&n.typeParameters.map(function(e){return o(e,a)});var c,u=n.parameters.map(function(e){return s(e,a)});if(n.thisParameter){var d=s(n.thisParameter,a);u.unshift(d)}var m=ao(n);if(m){var p=1===m.kind?e.setEmitFlags(e.createIdentifier(m.parameterName),16777216):e.createThisTypeNode(),f=t(m.type,a);c=e.createTypePredicateNode(p,f)}else{var g=io(n);c=g&&t(g,a)}return 256&a.flags?c&&119===c.kind&&(c=void 0):c||(c=e.createKeywordTypeNode(119)),e.createSignatureDeclaration(r,i,u,c,l)}function o(n,r,a){void 0===a&&(a=ho(n));var i=r.flags;r.flags&=-513;var o=d(n.symbol,r,67901928,!0),s=a&&t(a,r),l=Ri(n),c=l&&t(l,r);return r.flags=i,e.createTypeParameterDeclaration(o,s,c)}function s(n,r){var a=e.getDeclarationOfKind(n,148);e.Debug.assert(!!a||ut(n)&&!!n.isRestParameter);var i=ca(n);a&&nv(a)&&(i=fc(i));var o=t(i,r),s=!(8192&r.flags)&&a&&a.modifiers&&a.modifiers.map(e.getSynthesizedClone),l=!a||e.isRestParameter(a)?e.createToken(24):void 0,c=a&&a.name?71===a.name.kind?e.setEmitFlags(e.getSynthesizedClone(a.name),16777216):function n(t){var r=e.visitEachChild(t,n,e.nullTransformationContext,void 0,n),a=e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r);return 180===a.kind&&(a.initializer=void 0),e.setEmitFlags(a,16777217)}(a.name):e.symbolName(n),u=a&&Ji(a)?e.createToken(55):void 0,d=e.createParameter(void 0,s,l,c,u,o,void 0);return d}function l(n,t,r){var a;t.tracker.trackSymbol(n,t.enclosingDeclaration,r);var i=262144&n.flags;return!i&&(t.enclosingDeclaration||64&t.flags)?(a=function n(r,a,i){var o,s=yr(r,t.enclosingDeclaration,a,!!(128&t.flags));if(!s||hr(s[0],t.enclosingDeclaration,1===s.length?a:_r(a))){var l=ir(s?s[0]:r);if(l){var c=n(l,_r(a),!1);c&&(o=l,s=c.concat(s||[r]))}}return s||(!i&&(!o&&e.forEach(r.declarations,Tr)||6144&r.flags)?void 0:[r])}(n,r,!0),e.Debug.assert(a&&a.length>0)):a=[n],a}function c(n,t){var r,a=ug(n);return 524384&a.flags&&(r=e.createNodeArray(e.map(va(n),function(e){return o(e,t)}))),r}function u(n,t,a){e.Debug.assert(n&&0<=t&&t<n.length);var i,o=n[t];if(512&a.flags&&t<n.length-1){var s=o,l=n[t+1];if(1&e.getCheckFlags(l)){var u=function(n){return e.concatenate(ga(n),va(n))}(2097152&s.flags?Vt(s):s);i=r(e.map(u,l.mapper),a)}else i=c(o,a)}return i}function d(n,t,r,a){var i=l(n,t,r);return!a||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function n(r,a){var i=u(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=Ir(o,t);0===a&&(t.flags^=16777216);var l=e.setEmitFlags(e.createIdentifier(s,i),16777216);return l.symbol=o,a>0?e.createQualifiedName(n(r,a-1),l):l}(i,i.length-1)}}(),F=ct(4,"undefined");F.declarations=[];var V,G,H=ct(4,"arguments"),K={getNodeCount:function(){return e.sum(r.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(r.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(r.getSourceFiles(),"symbolCount")+b},getTypeCount:function(){return h},isUndefinedSymbol:function(e){return e===F},isArgumentsSymbol:function(e){return e===H},isUnknownSymbol:function(e){return e===X},getMergedSymbol:rr,getDiagnostics:Dg,getGlobalDiagnostics:function(){return Og(),Fn.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(n,t){return(t=e.getParseTreeNode(t))?function(n,t){if(n=n.exportSymbol||n,71===t.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=Kp(t);if(or(yt(t).resolvedSymbol)===n)return r}return ca(n)}(n,t):ee},getSymbolsOfParameterPropertyDeclaration:function(n,t){return n=e.getParseTreeNode(n,e.isParameter),e.Debug.assert(void 0!==n,"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=bt(r.locals,t,67216319),o=bt(Ja(a.symbol),t,67216319);if(i&&o)return[i,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Ra,getPropertiesOfType:Ei,getPropertyOfType:function(n,t){return Fi(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:Bi,getSignaturesOfType:Gi,getIndexTypeOfType:Ui,getBaseTypes:Sa,getBaseTypeOfLiteralType:ac,getWidenedType:Sc,getTypeFromTypeNode:function(n){return(n=e.getParseTreeNode(n,e.isTypeNode))?Qs(n):ee},getParameterType:ap,getReturnTypeOfSignature:io,getNullableType:pc,getNonNullableType:gc,typeToTypeNode:P.typeToTypeNode,indexInfoToIndexSignatureDeclaration:P.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:P.signatureToSignatureDeclaration,symbolToEntityName:P.symbolToEntityName,symbolToExpression:P.symbolToExpression,symbolToTypeParameterDeclarations:P.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:P.symbolToParameterDeclaration,typeParameterToDeclaration:P.typeParameterToDeclaration,getSymbolsInScope:function(n,t){return(n=e.getParseTreeNode(n))?function(n,t){if(4194304&n.flags)return[];var r=e.createSymbolTable(),a=!1;return function(){for(;n;){switch(n.locals&&!ht(n)&&o(n.locals,t),n.kind){case 237:o(ar(n).exports,2623475&t);break;case 236:o(ar(n).exports,8&t);break;case 203:var r=n.name;r&&i(n.symbol,t);case 233:case 234:a||o(Ja(ar(n)),67901928&t);break;case 190:var s=n.name;s&&i(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&i(H,t),a=e.hasModifier(n,32),n=n.parent}o(mn,t)}(),Wi(r);function i(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var a=n.escapedName;r.has(a)||r.set(a,n)}}function o(e,n){n&&e.forEach(function(e){i(e,n)})}}(n,t):[]},getSymbolAtLocation:function(n){return(n=e.getParseTreeNode(n))?Vg(n):void 0},getShorthandAssignmentValueSymbol:function(n){return(n=e.getParseTreeNode(n))?function(e){if(e&&269===e.kind)return Ut(e.name,69313471)}(n):void 0},getExportSpecifierLocalTargetSymbol:function(n){return(n=e.getParseTreeNode(n,e.isExportSpecifier))?function(e){return e.parent.parent.moduleSpecifier?It(e.parent.parent,e):Ut(e.propertyName||e.name,70107135)}(n):void 0},getExportSymbolOfSymbol:function(e){return rr(e.exportSymbol||e)},getTypeAtLocation:function(n){return(n=e.getParseTreeNode(n))?Gg(n):ee},getPropertySymbolOfDestructuringAssignment:function(n){return(n=e.getParseTreeNode(n,e.isIdentifier))?function(n){var t=function n(t){if(e.Debug.assert(182===t.kind||181===t.kind),220===t.parent.kind){var r=zf(t.parent.expression,t.parent.awaitModifier);return kp(t,r||ee)}if(198===t.parent.kind){var r=Kp(t.parent.right);return kp(t,r||ee)}if(268===t.parent.kind){var a=n(t.parent.parent);return xp(a||ee,t.parent)}e.Debug.assert(181===t.parent.kind);var i=n(t.parent),o=Jf(i||ee,t.parent,!1,!1)||ee;return Cp(t.parent,i,t.parent.elements.indexOf(t),o||ee)}(n.parent.parent);return t&&Fi(t,n.escapedText)}(n):void 0},signatureToString:function(n,t,r,a){return xr(n,e.getParseTreeNode(t),r,a)},typeToString:function(n,t,r){return Cr(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,a){return Ar(n,e.getParseTreeNode(t),r,a)},typePredicateToString:function(n,t,r){return Mr(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,a,i){return xr(n,e.getParseTreeNode(t),r,a,i)},writeType:function(n,t,r,a){return Cr(n,e.getParseTreeNode(t),r,a)},writeSymbol:function(n,t,r,a,i){return Ar(n,e.getParseTreeNode(t),r,a,i)},writeTypePredicate:function(n,t,r,a){return Mr(n,e.getParseTreeNode(t),r,a)},getSymbolDisplayBuilder:function(){return{buildTypeDisplay:function(e,t,r,a){Cr(e,r,a,n(t))},buildSymbolDisplay:function(e,t,r,a,i){Ar(e,r,a,4|i,n(t))},buildSignatureDisplay:function(e,t,r,a,i){xr(e,r,a,i,n(t))},buildIndexSignatureDisplay:function(t,r,a,i,o){var s=P.indexInfoToIndexSignatureDeclaration(t,a,i,3112960|kr(o),r),l=e.createPrinter({removeComments:!0});l.writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),n(r))},buildParameterDisplay:function(t,r,a,i){var o=P.symbolToParameterDeclaration(t,a,3112960|kr(i),r),s=e.createPrinter({removeComments:!0});s.writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(a)),n(r))},buildTypeParameterDisplay:function(t,r,a,i){var o=P.typeParameterToDeclaration(t,a,3121152|kr(i),r),s=e.createPrinter({removeComments:!0});s.writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(a)),n(r))},buildTypePredicateDisplay:function(e,t,r,a){Mr(e,r,a,n(t))},buildTypeParameterDisplayFromSymbol:function(t,r,a,i){var o=P.symbolToTypeParameterDeclarations(t,a,3112960|kr(i),r),s=e.createPrinter({removeComments:!0});s.writeList(26896,o,e.getSourceFileOfNode(e.getParseTreeNode(a)),n(r))},buildDisplayForParametersAndDelimiters:function(t,r,a,i,o){var s=e.createPrinter({removeComments:!0}),l=3121152|kr(o),c=t?[P.symbolToParameterDeclaration(t,i,l)]:[],u=e.createNodeArray(c.concat(e.map(r,function(e){return P.symbolToParameterDeclaration(e,i,l)})));s.writeList(1296,u,e.getSourceFileOfNode(e.getParseTreeNode(i)),n(a))},buildDisplayForTypeParametersAndDelimiters:function(t,r,a,i){var o=e.createPrinter({removeComments:!0}),s=e.createNodeArray(e.map(t,function(e){return P.typeParameterToDeclaration(e,a,kr(i))}));o.writeList(26896,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),n(r))},buildReturnTypeDisplay:function(t,r,a,i){r.writePunctuation(":"),r.writeSpace(" ");var o=ao(t);if(o)return Mr(o,a,i,n(r));var s=P.typeToTypeNode(io(t),a,3112960|kr(i),r),l=e.createPrinter({removeComments:!0});l.writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),n(r))}};function n(n){return{write:e.noop,writeTextOfNode:e.noop,writeLine:e.noop,increaseIndent:function(){return n.increaseIndent()},decreaseIndent:function(){return n.decreaseIndent()},getText:function(){return""},rawWrite:e.noop,writeLiteral:function(e){return n.writeStringLiteral(e)},getTextPos:function(){return 0},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},clear:function(){return n.clear()},writeKeyword:function(e){return n.writeKeyword(e)},writeOperator:function(e){return n.writeOperator(e)},writePunctuation:function(e){return n.writePunctuation(e)},writeSpace:function(e){return n.writeSpace(e)},writeStringLiteral:function(e){return n.writeStringLiteral(e)},writeParameter:function(e){return n.writeParameter(e)},writeProperty:function(e){return n.writeProperty(e)},writeSymbol:function(e,t){return n.writeSymbol(e,t)},trackSymbol:function(e,t,r){return n.trackSymbol&&n.trackSymbol(e,t,r)},reportInaccessibleThisError:function(){return n.reportInaccessibleThisError&&n.reportInaccessibleThisError()},reportPrivateInBaseOfClassExpression:function(e){return n.reportPrivateInBaseOfClassExpression&&n.reportPrivateInBaseOfClassExpression(e)},reportInaccessibleUniqueSymbolError:function(){return n.reportInaccessibleUniqueSymbolError&&n.reportInaccessibleUniqueSymbolError()}}}},getAugmentedPropertiesOfType:Kg,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(_t(n).containingType.types,function(e){return Fi(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){for(var n,t=e;t=_t(t).target;)n=t;return n}(n))}}(t);return r?e.flatMap(r,n):[t]},getContextualType:function(n){return(n=e.getParseTreeNode(n,e.isExpression))?pd(n):void 0},getContextualTypeForArgumentAtIndex:function(n,t){return(n=e.getParseTreeNode(n,e.isCallLikeExpression))&&ad(n,t)},getContextualTypeForJsxAttribute:function(n){return(n=e.getParseTreeNode(n,e.isJsxAttributeLike))&&dd(n)},isContextSensitive:vl,getFullyQualifiedName:Bt,getResolvedSignature:function(n,t,r){n=e.getParseTreeNode(n,e.isCallLikeExpression),V=r;var a=n?jm(n,t):void 0;return V=void 0,a},getConstantValue:function(n){return(n=e.getParseTreeNode(n,iv))?ov(n):void 0},isValidPropertyAccess:function(n,t){return!!(n=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedName))&&function(e,n){var t=183===e.kind?e.expression:e.left;return dm(e,t,n,Sc(Bp(t)))}(n,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){return!!(n=e.getParseTreeNode(n,e.isPropertyAccessExpression))&&function(n,t,r){return dm(n,n.expression,r.escapedName,t)&&(!(8192&r.flags)||(a=t,i=Gi(gc(sa(r)),0),e.Debug.assert(0!==i.length),i.some(function(e){var n=to(e);return!n||Ll(a,function(e,n,t){if(!e.typeParameters)return n;var r=kc(e.typeParameters,e,0);return Fc(r.inferences,t,n),pl(n,co(e,Wc(r)))}(e,n,a))})));var a,i}(n,t,r)},getSignatureFromDeclaration:function(n){return(n=e.getParseTreeNode(n,e.isFunctionLike))?$i(n):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?ev(t):void 0},getImmediateAliasedSymbol:function(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=_t(n);if(!t.immediateTarget){var r=Dt(n);e.Debug.assert(!!r),t.immediateTarget=wt(r,!0)}return t.immediateTarget},getAliasedSymbol:Vt,getEmitResolver:function(e,n){return Dg(e,n),w},getExportsOfModule:Qt,getExportsAndPropertiesOfModule:function(n){var t=Qt(n),r=Jt(n);return r!==n&&e.addRange(t,Ei(ca(r))),t},getSymbolWalker:e.createGetSymbolWalker(oo,ao,io,Sa,_i,ca,qc,Ki,ho,yg),getAmbientModules:function(){return xe||(xe=[],mn.forEach(function(e,n){t.test(n)&&xe.push(e)})),xe},getAllAttributesTypeFromJsxOpeningLikeElement:function(n){return(n=e.getParseTreeNode(n,e.isJsxOpeningLikeElement))?function(e){return Od(e.tagName)?Ud(e):jd(e,!0)}(n):void 0},getJsxIntrinsicTagNamesAt:function(t){var r=wd(n.IntrinsicElements,t);return r?Ei(r):e.emptyArray},isOptionalParameter:function(n){return!!(n=e.getParseTreeNode(n,e.isParameter))&&Ji(n)},tryGetMemberInModuleExports:function(n,t){return Zt(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(e,n){var t=Zt(e,n);if(t)return t;var r=Jt(n);if(r!==n){var a=ca(r);return 16382&a.flags?void 0:Fi(a,e)}}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return zi(e,!1)},getApparentType:Ii,getUnionType:gs,createAnonymousType:gr,createSignature:Za,createSymbol:ct,createIndexInfo:_o,getAnyType:function(){return Q},getStringType:function(){return ie},getNumberType:function(){return oe},createPromiseType:sp,createArrayType:is,getBooleanType:function(){return ce},getVoidType:function(){return de},getUndefinedType:function(){return ne},getNullType:function(){return re},getESSymbolType:function(){return ue},getNeverType:function(){return me},isSymbolAccessible:Er,isArrayLikeType:ec,getAllPossiblePropertiesOfTypes:function(n){var t=gs(n);if(!(131072&t.flags))return Kg(t);for(var r=e.createSymbolTable(),a=0,i=n;a<i.length;a++)for(var o=i[a],s=0,l=Kg(o);s<l.length;s++){var c=l[s].escapedName;if(!r.has(c)){var u=Ni(t,c);u&&r.set(c,u)}}return e.arrayFrom(r.values())},getSuggestionForNonexistentProperty:function(e,n){return om(e,n)},getSuggestionForNonexistentSymbol:function(n,t,r){return sm(n,e.escapeLeadingUnderscores(t),r)},getBaseConstraintOfType:Ci,getDefaultFromTypeParameter:function(e){return e&&32768&e.flags?Ri(e):void 0},resolveName:function(n,t,r,a){return Tt(t,e.escapeLeadingUnderscores(n),r,void 0,void 0,!1,a)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(st(n))},getAccessibleSymbolChain:yr,getTypePredicateOfSignature:ao,resolveExternalModuleSymbol:Jt,tryGetThisTypeAt:function(n){return(n=e.getParseTreeNode(n))&&Ju(n)},getTypeArgumentConstraint:function(n){return(n=e.getParseTreeNode(n,e.isTypeNode))&&function(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(t){var r=nf(t),a=Si(r[t.typeArguments.indexOf(n)]);return a&&pl(a,nl(r,$p(t,r)))}}(n)},getSuggestionDiagnostics:function(n){return Vn.get(n.fileName)||e.emptyArray}},B=[],U=e.createMap(),j=e.createMap(),W=e.createMap(),q=e.createMap(),z=[],J=e.createMap(),X=ct(4,"unknown"),Y=ct(0,"__resolving__"),Q=ur(1,"any"),Z=ur(1,"any"),$=ur(1,"any"),ee=ur(1,"unknown"),ne=ur(4096,"undefined"),te=D?ne:ur(16781312,"undefined"),re=ur(8192,"null"),ae=D?re:ur(16785408,"null"),ie=ur(2,"string"),oe=ur(4,"number"),se=ur(128,"true"),le=ur(128,"false"),ce=((G=gs([se,le])).flags|=8,G.intrinsicName="boolean",G),ue=ur(512,"symbol"),de=ur(2048,"void"),me=ur(16384,"never"),pe=ur(16384,"never"),fe=ur(16384,"never"),ge=ur(134217728,"object"),ve=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),_e=ct(2048,"__type");_e.members=e.createSymbolTable();var ye=gr(_e,S,e.emptyArray,e.emptyArray,void 0,void 0),he=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0);he.instantiations=e.createMap();var be=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0);be.flags|=67108864;var Ee=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),Te=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),Se=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),Le=cr(32768),Ae=cr(32768);Ae.constraint=Le;var xe,Ce,ke,Me,De,Oe,Re,Ie,Ne,we,Pe,Fe,Ve,Ge,He,Ke,Be,Ue,je,We,qe,ze,Je,Xe,Ye,Qe,Ze,$e,en,nn,tn,rn=cr(32768),an=Xi("<<unresolved>>",0,Q),on=Za(void 0,void 0,void 0,e.emptyArray,Q,void 0,0,!1,!1),sn=Za(void 0,void 0,void 0,e.emptyArray,ee,void 0,0,!1,!1),ln=Za(void 0,void 0,void 0,e.emptyArray,Q,void 0,0,!1,!1),cn=Za(void 0,void 0,void 0,e.emptyArray,pe,void 0,0,!1,!1),un=_o(ie,!0),dn=_o(Q,!1),mn=e.createSymbolTable(),pn=e.createMap(),fn=0,gn=0,vn=0,_n=!1,yn=Js(""),hn=Js(0),bn=[],En=[],Tn=[],Sn=0,Ln=10,An=[],xn=[],Cn=[],kn=[],Mn=[],Dn=[],On=[],Rn=[],In=[],Nn=[],wn=[],Pn=[],Fn=e.createDiagnosticCollection(),Vn=e.createMultiMap();function Gn(n){Vn.add(n.file.fileName,l({},n,{category:e.DiagnosticCategory.Suggestion}))}!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.All=4194303]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=1972176]="ObjectStrictFacts",e[e.ObjectFacts=4184016]="ObjectFacts",e[e.FunctionStrictFacts=1970144]="FunctionStrictFacts",e[e.FunctionFacts=4181984]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(tn||(tn={}));var Hn,Kn,Bn,Un,jn,Wn,qn,zn,Jn,Xn=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Yn=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Qn=e.createMapFromTemplate({string:ie,number:oe,boolean:ce,symbol:ue,undefined:ne}),Zn=gs(e.arrayFrom(Xn.keys(),Js)),$n=e.createMap(),et=e.createMap(),nt=e.createMap(),tt=e.createMap(),rt=e.createMap(),at=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ResolvedBaseConstraint=4]="ResolvedBaseConstraint"}(Bn||(Bn={})),function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(Un||(Un={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(jn||(jn={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(Wn||(Wn={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(qn||(qn={})),function(e){e[e.Any=1]="Any",e[e.Undefined=2]="Undefined",e[e.Null=4]="Null",e[e.Never=8]="Never",e[e.NonWideningType=16]="NonWideningType",e[e.String=32]="String",e[e.Number=64]="Number",e[e.ESSymbol=128]="ESSymbol",e[e.LiteralOrUniqueESSymbol=256]="LiteralOrUniqueESSymbol",e[e.ObjectType=512]="ObjectType",e[e.EmptyObject=1024]="EmptyObject",e[e.Union=2048]="Union",e[e.Wildcard=4096]="Wildcard"}(zn||(zn={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(Jn||(Jn={}));var it=e.createSymbolTable();it.set(F.escapedName,F);var ot=e.and(Ag,function(n){return!e.isAccessor(n)});return function(){for(var n=0,t=r.getSourceFiles();n<t.length;n++){var a=t[n];e.bindSourceFile(a,A)}for(var i,o=0,s=r.getSourceFiles();o<s.length;o++){var a=s[o];if(e.isExternalOrCommonJsModule(a)||gt(mn,a.locals),a.patternAmbientModules&&a.patternAmbientModules.length&&(Ce=e.concatenate(Ce,a.patternAmbientModules)),a.moduleAugmentations.length&&(i||(i=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports){var l=a.symbol.globalExports;l.forEach(function(e,n){mn.has(n)||mn.set(n,e)})}}if(i)for(var c=0,u=i;c<u.length;c++)for(var d=u[c],m=0,p=d;m<p.length;m++){var f=p[m];e.isGlobalScopeAugmentation(f.parent)&&vt(f)}if(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 Fn.add(e.createDiagnosticForNode(r,t,n))}}(e.unescapeLeadingUnderscores(a),r)):n.set(a,t)})}(mn,it,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),_t(F).type=te,_t(H).type=Bo("IArguments",0,!0),_t(X).type=ee,De=Bo("Array",1,!0),ke=Bo("Object",0,!0),Me=Bo("Function",0,!0),Re=Bo("String",0,!0),Ie=Bo("Number",0,!0),Ne=Bo("Boolean",0,!0),we=Bo("RegExp",0,!0),Fe=is(Q),(Ve=is(Z))===ve&&(Ve=gr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0)),Oe=$o("ReadonlyArray",1),Ge=Oe?es(Oe,[Q]):Fe,Pe=$o("ThisType",1),i)for(var g=0,v=i;g<v.length;g++)for(var d=v[g],_=0,y=d;_<y.length;_++){var f=y[_];e.isGlobalScopeAugmentation(f.parent)||vt(f)}}(),K;function st(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var a=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(a.arguments.factory,x),t.localJsxFactory)return t.localJsxNamespace=yg(t.localJsxFactory).escapedText}}}return Hn||(Hn="React",A.jsxFactory?(Kn=e.parseIsolatedEntityName(A.jsxFactory,x))&&(Hn=yg(Kn).escapedText):A.reactNamespace&&(Hn=e.escapeLeadingUnderscores(A.reactNamespace))),Hn}function lt(n,t,r,a,i,o){var s=n?e.createDiagnosticForNode(n,t,r,a,i,o):e.createCompilerDiagnostic(t,r,a,i,o);Fn.add(s)}function ct(e,n,t){b++;var r=new v(33554432|e,n);return r.checkFlags=t||0,r}function ut(e){return 0!=(33554432&e.flags)}function dt(e){var n=0;return 2&e&&(n|=67216319),1&e&&(n|=67216318),4&e&&(n|=0),8&e&&(n|=68008959),16&e&&(n|=67215791),32&e&&(n|=68008383),64&e&&(n|=67901832),256&e&&(n|=68008191),128&e&&(n|=68008831),512&e&&(n|=67215503),8192&e&&(n|=67208127),32768&e&&(n|=67150783),65536&e&&(n|=67183551),262144&e&&(n|=67639784),524288&e&&(n|=67901928),2097152&e&&(n|=2097152),n}function mt(e,n){n.mergeId||(n.mergeId=i,i++),An[n.mergeId]=e}function pt(n){var t=ct(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=e.cloneMap(n.members)),n.exports&&(t.exports=e.cloneMap(n.exports)),mt(t,n),t}function ft(n,t){if(!(n.flags&dt(t.flags))||67108864&(t.flags|n.flags)){if(512&t.flags&&512&n.flags&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&(!n.valueDeclaration||237===n.valueDeclaration.kind&&237!==t.valueDeclaration.kind)&&(n.valueDeclaration=t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),gt(n.members,t.members)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),gt(n.exports,t.exports)),67108864&(t.flags|n.flags)){var r=e.getJSInitializerSymbol(t),a=e.getJSInitializerSymbol(n);r===t&&a===n||ft(a,r)}mt(n,t)}else if(1024&n.flags)lt(e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ar(n));else{var i=384&n.flags||384&t.flags?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:2&n.flags||2&t.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;e.forEach(t.declarations,function(n){lt((e.getJavascriptInitializer(n,!1)?e.getOuterNameOfJsInitializer(n):e.getNameOfDeclaration(n))||n,i,Ar(t))}),e.forEach(n.declarations,function(n){lt((e.getJavascriptInitializer(n,!1)?e.getOuterNameOfJsInitializer(n):e.getNameOfDeclaration(n))||n,i,Ar(t))})}}function gt(e,n){n.forEach(function(n,t){var r=e.get(t);r?(33554432&r.flags||(r=pt(r),e.set(t,r)),ft(r,n)):e.set(t,n)})}function vt(n){var t=n.parent;if(t.symbol.declarations[0]===t)if(e.isGlobalScopeAugmentation(t))gt(mn,t.symbol.exports);else{var r=Wt(n,n,2097152&n.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!r)return;1920&(r=Jt(r)).flags?ft(r=33554432&r.flags?r:pt(r),t.symbol):lt(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}else e.Debug.assert(t.symbol.declarations.length>1)}function _t(e){if(33554432&e.flags)return e;var n=c(e);return xn[n]||(xn[n]={})}function yt(e){var n=s(e);return Cn[n]||(Cn[n]={flags:0})}function ht(n){return 272===n.kind&&!e.isExternalOrCommonJsModule(n)}function bt(n,t,r){if(r){var a=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=Vt(a);if(i===X||i.flags&r)return a}}}}function Et(n,t){var a=e.getSourceFileOfNode(n),i=e.getSourceFileOfNode(t);if(a!==i){if(C&&(a.externalModuleIndicator||i.externalModuleIndicator)||!A.outFile&&!A.out||zc(t)||2097152&n.flags)return!0;if(c(t,n))return!0;var o=r.getSourceFiles();return o.indexOf(a)<=o.indexOf(i)}if(n.pos<=t.pos){if(180===n.kind){var s=e.getAncestor(t,180);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.pos<s.pos:Et(e.getAncestor(n,230),t)}return 230!==n.kind||!function(n,t){var r=e.getEnclosingBlockScopeContainer(n);switch(n.parent.parent.kind){case 212:case 218:case 220:if(kt(t,n,r))return!0}return e.isForInOrOfStatement(n.parent.parent)&&kt(t,n.parent.parent.expression,r)}(n,t)}if(250===t.parent.kind||247===t.parent.kind&&t.parent.isExportEquals)return!0;if(247===t.kind&&t.isExportEquals)return!0;var l=e.getEnclosingBlockScopeContainer(n);return zc(t)||c(t,n,l);function c(n,t,r){return!!e.findAncestor(n,function(a){if(a===r)return"quit";if(e.isFunctionLike(a))return!0;if(a.parent&&151===a.parent.kind&&a.parent.initializer===a)if(e.hasModifier(a.parent,32)){if(153===t.kind)return!0}else if(151!==t.kind||e.hasModifier(t,32)||e.getContainingClass(n)!==e.getContainingClass(t))return!0})}}function Tt(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),St(e,n,t,r,a,i,o,bt,s)}function St(n,t,r,a,i,o,s,l,c){var u,d,m,p,f,g=n,v=n,_=!1;e:for(;n;){if(n.locals&&!ht(n)&&(u=l(n.locals,t,r))){var y=!0;if(e.isFunctionLike(n)&&d&&d!==n.body?(r&u.flags&67901928&&282!==d.kind&&(y=!!(262144&u.flags)&&(d===n.type||148===d.kind||147===d.kind)),67216319&r&&1&u.flags&&(y=148===d.kind||d===n.type&&148===u.valueDeclaration.kind)):170===n.kind&&(y=d===n.trueType),y)break e;u=void 0}switch(n.kind){case 272:if(!e.isExternalOrCommonJsModule(n))break;_=!0;case 237:var h=ar(n).exports;if(272===n.kind||e.isAmbientModule(n)){if(u=h.get("default")){var b=e.getLocalSymbolForExportDefault(u);if(b&&u.flags&r&&b.escapedName===t)break e;u=void 0}var E=h.get(t);if(E&&2097152===E.flags&&e.getDeclarationOfKind(E,250))break}if(u=l(h,t,2623475&r))break e;break;case 236:if(u=l(ar(n).exports,t,8&r))break e;break;case 151:case 150:if(e.isClassLike(n.parent)&&!e.hasModifier(n,32)){var T=lr(n.parent);T&&T.locals&&l(T.locals,t,67216319&r)&&(p=n)}break;case 233:case 203:case 234:if(u=l(Ja(ar(n)),t,67901928&r)){if(!xt(u,n)){u=void 0;break}if(d&&e.hasModifier(d,32))return void lt(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(203===n.kind&&32&r){var S=n.name;if(S&&t===S.escapedText){u=n.symbol;break e}}break;case 205:if(d===n.expression&&85===n.parent.token){var L=n.parent.parent;if(e.isClassLike(L)&&(u=l(ar(L).members,t,67901928&r)))return void(a&<(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 146:if(f=n.parent.parent,(e.isClassLike(f)||234===f.kind)&&(u=l(ar(f).members,t,67901928&r)))return void lt(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 153:case 152:case 154:case 155:case 156:case 232:case 191:if(3&r&&"arguments"===t){u=H;break e}break;case 190:if(3&r&&"arguments"===t){u=H;break e}if(16&r){var A=n.name;if(A&&t===A.escapedText){u=n.symbol;break e}}break;case 149:n.parent&&148===n.parent.kind&&(n=n.parent),n.parent&&e.isClassElement(n.parent)&&(n=n.parent)}Lt(n)&&(m=n),d=n,n=n.parent}if(o&&u&&a&&k&&(!m||u!==m.symbol)&&(u.isReferenced|=r),!u){if(d&&(e.Debug.assert(272===d.kind),d.commonJsModuleIndicator&&"exports"===t))return d.symbol;s||(u=l(mn,t,r))}if(u){if(a){if(p){var x=p.name;return void lt(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(x),At(i))}if(v&&(2&r||(32&r||384&r)&&67216319==(67216319&r))){var C=or(u);(2&C.flags||32&C.flags||384&C.flags)&&function(n,t){e.Debug.assert(!!(2&n.flags||32&n.flags||384&n.flags));var r=e.forEach(n.declarations,function(n){return e.isBlockOrCatchScoped(n)||e.isClassLike(n)||236===n.kind?n:void 0});e.Debug.assert(void 0!==r,"Declaration to checkResolvedBlockScopedVariable is undefined"),2097152&r.flags||Et(r,t)||(2&n.flags?lt(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(r))):32&n.flags?lt(t,e.Diagnostics.Class_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(r))):256&n.flags&<(t,e.Diagnostics.Enum_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(r))))}(C,v)}if(u&&_&&67216319==(67216319&r)){var M=u.declarations;M&&1===M.length&&240===M[0].kind&<(v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}}return u}if(a&&(!v||!(function(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||Ig(n)||zc(n))return!1;for(var a=e.getThisContainer(n,!0),i=a;i;){if(e.isClassLike(i.parent)){var o=ar(i.parent);if(!o)break;var s=ca(o);if(Fi(s,t))return lt(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,At(r),Ar(o)),!0;if(i===a&&!e.hasModifier(i,32)){var l=Ra(o).thisType;if(Fi(l,t))return lt(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,At(r)),!0}}i=i.parent}return!1}(v,t,i)||Ct(v)||function(n,t,r){var a=1920|(e.isInJavaScriptFile(n)?67216319:0);if(r===a){var i=Ft(Tt(n,t,67901928&~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,l=Fi(Ra(i),s);if(l)return lt(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 lt(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}(v,t,r)||function(n,t,r){if(67216319&r){if("any"===t||"string"===t||"number"===t||"boolean"===t||"never"===t)return lt(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var a=Ft(Tt(n,t,792640,void 0,void 0,!1));if(a&&!(1024&a.flags))return lt(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)||function(n,t,r){if(107031&r){var a=Ft(Tt(n,t,1024,void 0,void 0,!1));if(a)return lt(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(792640&r){var a=Ft(Tt(n,t,1536,void 0,void 0,!1));if(a)return lt(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)))){var D=void 0;c&&Sn<Ln&&(D=sm(g,t,r))&<(v,c,At(i),D),D||lt(v,a,At(i)),Sn++}}function Lt(e){switch(e.kind){case 232:case 233:case 234:case 236:case 235:case 237:return!0;default:return!1}}function At(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function xt(e,n){for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t];if(147===a.kind&&a.parent===n)return!0}return!1}function Ct(n){var t=function n(t){switch(t.kind){case 71:case 183:return t.parent?n(t.parent):void 0;case 205:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}(n),r=!(!t||!Ut(t,64,!0));return r&<(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),r}function kt(n,t,r){return t&&!!e.findAncestor(n,function(n){return n===r||e.isFunctionLike(n)?"quit":n===t})}function Mt(e){switch(e.kind){case 241:return e;case 243:return e.parent;case 244:return e.parent.parent;case 246:return e.parent.parent.parent;default:return}}function Dt(n){return e.find(n.declarations,e.isAliasSymbolDeclaration)}function Ot(e,n,t){var r=e.exports.get("export=");return r?Fi(ca(r),n):Ft(e.exports.get(n),t)}function Rt(n,t,r){return!!M&&(!n||n.isDeclarationFile?!Ot(t,"default",r)&&!Ot(t,e.escapeLeadingUnderscores("__esModule"),r):e.isSourceFileJavaScript(n)?!n.externalModuleIndicator&&!Ot(t,e.escapeLeadingUnderscores("__esModule"),r):Yt(t))}function It(n,t,r){var a=jt(n,n.moduleSpecifier),i=Xt(a,n.moduleSpecifier,r);if(i){var o=t.propertyName||t.name;if(o.escapedText){if(e.isShorthandAmbientModuleSymbol(a))return a;var s=void 0;s=Ft(s=a&&a.exports&&a.exports.get("export=")?Fi(ca(i),o.escapedText):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return Ft(Fi(Qs(t),n))}}(i,o.escapedText),r);var l=function(e,n,t){if(1536&e.flags)return Ft($t(e).get(n),t)}(i,o.escapedText,r);!l&&M&&"default"===o.escapedText&&(l=Jt(a,r)||Ft(a,r));var c=l&&s?function(n,t){if(n===X&&t===X)return X;if(67903464&n.flags)return n;var r=ct(n.flags|t.flags,n.escapedName);return r.declarations=e.concatenate(n.declarations,t.declarations),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=t.members),n.exports&&(r.exports=n.exports),r}(s,l):l||s;if(!c){var u=Bt(a),d=e.declarationNameToString(o),m=function(n,t){var r=t.exports&&lm(e.idText(n),Qt(t),2623475);return r&&e.symbolName(r)}(o,i);void 0!==m?lt(o,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,u,d,m):lt(o,e.Diagnostics.Module_0_has_no_exported_member_1,u,d)}return c}}}function Nt(e,n,t){return e.parent.parent.moduleSpecifier?It(e.parent.parent,e,t):Ut(e.propertyName||e.name,n,!1,t)}function wt(n,t){switch(n.kind){case 241:return function(n,t){return 252===n.moduleReference.kind?Jt(jt(n,e.getExternalModuleImportEqualsDeclarationExpression(n))):Kt(n.moduleReference,t)}(n,t);case 243:return function(n,t){var r=jt(n,n.parent.moduleSpecifier);if(r){var a=void 0;a=e.isShorthandAmbientModuleSymbol(r)?r:Ot(r,"default",t);var i=Rt(e.find(r.declarations,e.isSourceFile),r,t);if(a||i){if(!a&&i)return Jt(r,t)||Ft(r,t)}else lt(n.name,e.Diagnostics.Module_0_has_no_default_export,Ar(r));return a}}(n,t);case 244:return function(e,n){var t=e.parent.parent.moduleSpecifier;return Xt(jt(e,t),t,n)}(n,t);case 246:return function(e,n){return It(e.parent.parent.parent,e,n)}(n,t);case 250:return Nt(n,68009983,t);case 247:return function(e,n){return Ut(e.expression,68009983,!1,n)}(n,t);case 240:return function(e,n){return Jt(e.parent.symbol,n)}(n,t)}}function Pt(e,n){return void 0===n&&(n=68009983),e&&2097152==(e.flags&(2097152|n))}function Ft(e,n){return!n&&Pt(e)?Vt(e):e}function Vt(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=_t(n);if(t.target)t.target===Y&&(t.target=X);else{t.target=Y;var r=Dt(n);e.Debug.assert(!!r);var a=wt(r);t.target===Y?t.target=a||X:lt(r,e.Diagnostics.Circular_definition_of_import_alias_0,Ar(n))}return t.target}function Gt(e){var n=ar(e),t=Vt(n);t&&(t===X||67216319&t.flags&&!$g(t))&&Ht(n)}function Ht(n){var t=_t(n);if(!t.referenced){t.referenced=!0;var r=Dt(n);e.Debug.assert(!!r),247===r.kind?Np(r.expression):250===r.kind?Np(r.propertyName||r.name):e.isInternalModuleImportEqualsDeclaration(r)&&Np(r.moduleReference)}}function Kt(n,t){return 71===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),71===n.kind||145===n.parent.kind?Ut(n,1920,!1,t):(e.Debug.assert(241===n.parent.kind),Ut(n,68009983,!1,t))}function Bt(e){return e.parent?Bt(e.parent)+"."+Ar(e):Ar(e)}function Ut(n,t,r,a,i){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJavaScriptFile(n)?67216319&t:0);if(71===n.kind){var l=t===s?e.Diagnostics.Cannot_find_namespace_0:e.Diagnostics.Cannot_find_name_0;if(!(o=Tt(i||n,n.escapedText,t,r?void 0:l,n,!0)))return}else if(145===n.kind||183===n.kind){var c=145===n.kind?n.left:n.expression,u=145===n.kind?n.right:n.name,d=Ut(c,s,r,!1,i);if(!d||e.nodeIsMissing(u))return;if(d===X)return d;if(e.isInJavaScriptFile(n)){var m=e.getDeclaredJavascriptInitializer(d.valueDeclaration)||e.getAssignedJavascriptInitializer(d.valueDeclaration);if(m&&(d=ar(m)),d.valueDeclaration&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&ep(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=jt(p,p);if(f){var g=Jt(f);g&&(d=g)}}}if(!(o=bt($t(d),u.escapedText,t)))return void(r||lt(u,e.Diagnostics.Namespace_0_has_no_exported_member_1,Bt(d),e.declarationNameToString(u)))}else e.Debug.assertNever(n,"Unknown entity name kind.");return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&t||a?o:Vt(o)}}function jt(n,t){return Wt(n,t,e.Diagnostics.Cannot_find_module_0)}function Wt(n,t,r,a){return void 0===a&&(a=!1),e.isStringLiteralLike(t)?qt(n,t.text,r,t,a):void 0}function qt(n,t,a,i,o){if(void 0===o&&(o=!1),void 0!==t){e.startsWith(t,"@types/")&<(i,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(t,"@types/"),t);var s=zi(t,!0);if(s)return s;var l=e.getResolvedModule(e.getSourceFileOfNode(n),t),c=l&&e.getResolutionDiagnostic(A,l),u=l&&!c&&r.getSourceFile(l.resolvedFileName);if(u)return u.symbol?(l.isExternalLibraryImport&&!e.extensionIsTypeScript(l.extension)&&Gn(zt(i,l,t)),rr(u.symbol)):void(a&<(i,e.Diagnostics.File_0_is_not_a_module,u.fileName));if(Ce){var d=e.findBestPatternMatch(Ce,function(e){return e.pattern},t);if(d)return rr(d.symbol)}if(l&&!e.extensionIsTypeScript(l.extension)&&void 0===c||c===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?lt(i,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,l.resolvedFileName):function(e,n){e?Fn.add(n):Gn(n)}(I&&!!a,zt(i,l,t));else if(a)if(c)lt(i,c,t,l.resolvedFileName);else{var m=e.tryExtractTypeScriptExtension(t);m?lt(i,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,m,e.removeExtension(t,m)):lt(i,a,t)}}}function zt(n,t,r){var a=t.packageId,i=t.resolvedFileName,o=a&&e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,e.getMangledNameForScopedPackage(a.name));return e.createDiagnosticForNodeFromMessageChain(n,e.chainDiagnosticMessages(o,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,i))}function Jt(e,n){return e&&rr(Ft(e.exports.get("export="),n))||e}function Xt(n,t,r){var a=Jt(n,r);if(!r&&a){if(!(1539&a.flags))return lt(t,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,Ar(n)),a;if(A.esModuleInterop){var i=t.parent;if(e.isImportDeclaration(i)&&e.getNamespaceDeclarationNode(i)||e.isImportCall(i)){var o=ca(a),s=Vi(o,0);if(s&&s.length||(s=Vi(o,1)),s&&s.length){var l=$m(o,a,n),c=ct(a.flags,a.escapedName);c.declarations=a.declarations?a.declarations.slice():[],c.parent=a.parent,c.target=a,c.originatingImport=i,a.valueDeclaration&&(c.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(c.constEnumOnlyModule=!0),a.members&&(c.members=e.cloneMap(a.members)),a.exports&&(c.exports=e.cloneMap(a.exports));var u=_i(l);return c.type=gr(c,u.members,e.emptyArray,e.emptyArray,u.stringIndexInfo,u.numberIndexInfo),c}}}}return a}function Yt(e){return void 0!==e.exports.get("export=")}function Qt(e){return Wi(er(e))}function Zt(e,n){var t=er(n);if(t)return t.get(e)}function $t(e){return 32&e.flags?za(e,"resolvedExports"):1536&e.flags?er(e):e.exports||S}function er(e){var n=_t(e);return n.resolvedExports||(n.resolvedExports=tr(e))}function nr(n,t,r,a){t&&t.forEach(function(t,i){if("default"!==i){var o=n.get(i);if(o){if(r&&a&&o&&Ft(o)!==Ft(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 tr(n){var t=[];return function n(r){if(r&&1952&r.flags&&e.pushIfUnique(t,r)){var a=e.cloneMap(r.exports),i=r.exports.get("__export");if(i){for(var o=e.createSymbolTable(),s=e.createMap(),l=0,c=i.declarations;l<c.length;l++){var u=c[l],d=jt(u,u.moduleSpecifier),m=n(d);nr(o,m,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 l=o[i];Fn.add(e.createDiagnosticForNode(l,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)))}}),nr(a,o)}return a}}(n=Jt(n))||S}function rr(e){var n;return e&&e.mergeId&&(n=An[e.mergeId])?n:e}function ar(e){return rr(e.symbol&&Xa(e.symbol))}function ir(e){return rr(e.parent&&Xa(e.parent))}function or(e){return e&&0!=(1048576&e.flags)?rr(e.exportSymbol):e}function sr(e){return!!(67216319&e.flags||2097152&e.flags&&67216319&Vt(e).flags)}function lr(n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t];if(154===a.kind&&e.nodeIsPresent(a.body))return a}}function cr(e){var n=new _(K,e);return h++,n.id=h,n}function ur(e,n){var t=cr(e);return t.intrinsicName=n,t}function dr(e,n){var t=cr(65536);return t.objectFlags=e,t.symbol=n,t}function mr(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function pr(n){var t;return n.forEach(function(e,n){mr(n)||(t||(t=[]),sr(e)&&t.push(e))}),t||e.emptyArray}function fr(e,n,t,r,a,i){return e.members=n,e.properties=pr(n),e.callSignatures=t,e.constructSignatures=r,a&&(e.stringIndexInfo=a),i&&(e.numberIndexInfo=i),e}function gr(e,n,t,r,a,i){return fr(dr(16,e),n,t,r,a,i)}function vr(n,t){for(var r,a=n;a;a=a.parent){if(a.locals&&!ht(a)&&(r=t(a.locals)))return r;switch(a.kind){case 272:if(!e.isExternalOrCommonJsModule(a))break;case 237:if(r=t(ar(a).exports))return r}}return t(mn)}function _r(e){return 67216319===e?67216319:1920}function yr(n,t,r,a,i){if(void 0===i&&(i=e.createMap()),n&&!function(e){if(e.declarations&&e.declarations.length){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];switch(r.kind){case 151:case 153:case 155:case 156:continue;default:return!1}}return!0}return!1}(n)){var o,s=""+c(n);return i.has(s)?o=i.get(s):i.set(s,o=[]),vr(t,l)}function l(i,s){if(e.pushIfUnique(o,i)){var c=function(i,o){return d(i.get(n.escapedName),void 0,o)?[n]:e.forEachEntry(i,function(n){if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!a||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))){var i=Vt(n);if(d(n,i,o))return[n];var s=$t(i),c=s&&l(s,!0);if(c&&u(n,_r(r)))return[n].concat(c)}})}(i,s);return o.pop(),c}}function u(e,n){return!hr(e,t,n)||!!yr(e.parent,t,_r(n),a,i)}function d(t,a,i){return n===(a||t)&&!e.some(t.declarations,Tr)&&(i||u(t,r))}}function hr(n,t,r){var a=!1;return vr(t,function(t){var i=t.get(n.escapedName);return!!i&&(i===n||!!((i=2097152&i.flags&&!e.getDeclarationOfKind(i,250)?Vt(i):i).flags&r)&&(a=!0,!0))}),a}function br(e,n){return 0===Er(e,n,67216319,!1).accessibility}function Er(n,t,r,a){if(n&&t&&!(262144&n.flags)){for(var i=n,o=r;n;){var s=yr(n,t,o,!1);if(s){var l=Sr(s[0],a);return l||{accessibility:1,errorSymbolName:Ar(i,t,r),errorModuleName:n!==i?Ar(n,t,1920):void 0}}o=_r(r),n=ir(n)}var c=e.forEach(i.declarations,u);return c&&c!==u(t)?{accessibility:2,errorSymbolName:Ar(i,t,r),errorModuleName:Ar(c)}:{accessibility:1,errorSymbolName:Ar(i,t,r)}}return{accessibility:0};function u(n){var t=e.findAncestor(n,Tr);return t&&ar(t)}}function Tr(n){return e.isAmbientModule(n)||272===n.kind&&e.isExternalOrCommonJsModule(n)}function Sr(n,t){var r;if(!e.forEach(n.declarations,function(n){return!function(n){if(!Nr(n)){var a=Mt(n);return!(!a||e.hasModifier(a,1)||!Nr(a.parent)||(t&&(yt(n).isVisible=!0,r=e.appendIfUnique(r,a)),0))}return!0}(n)}))return{accessibility:0,aliasesToMakeVisible:r}}function Lr(n,t){var r;r=164===n.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||146===n.parent.kind?68264895:145===n.kind||183===n.kind||241===n.parent.kind?1920:67901928;var a=yg(n),i=Tt(t,a.escapedText,r,void 0,void 0,!1);return i&&Sr(i,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function Ar(n,t,r,a,i){void 0===a&&(a=4);var o=3112960;2&a&&(o|=128),1&a&&(o|=512),8&a&&(o|=16384);var s=4&a?P.symbolToExpression:P.symbolToEntityName;return i?l(i).getText():e.usingSingleLineStringWriter(l);function l(a){var i=s(n,r,t,o),l=e.createPrinter({removeComments:!0}),c=t&&e.getSourceFileOfNode(t);return l.writeNode(4,i,c,a),a}}function xr(n,t,r,a,i){return i?o(i).getText():e.usingSingleLineStringWriter(o);function o(i){var o;o=262144&r?1===a?163:162:1===a?158:157;var s=P.signatureToSignatureDeclaration(n,o,t,3113472|kr(r)),l=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),c=t&&e.getSourceFileOfNode(t);return l.writeNode(4,s,c,i),i}}function Cr(n,t,r,a){void 0===r&&(r=1048576),void 0===a&&(a=e.createTextWriter(""));var i=P.typeToTypeNode(n,t,3112960|kr(r),a);e.Debug.assert(void 0!==i,"should always get typenode");var o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);o.writeNode(4,i,s,a);var l=a.getText(),c=A.noErrorTruncation||1&r?void 0:100;return c&&l&&l.length>=c?l.substr(0,c-"...".length)+"...":l}function kr(e){return 9469291&e}function Mr(n,t,r,a){return a?i(a).getText():e.usingSingleLineStringWriter(i);function i(a){var i=e.createTypePredicateNode(1===n.kind?e.createIdentifier(n.parameterName):e.createThisTypeNode(),P.typeToTypeNode(n.type,t,3113472|kr(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,i,s,a),a}}function Dr(e){return 8===e?"private":16===e?"protected":"public"}function Or(n){return n&&n.parent&&238===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function Rr(n){return 272===n.kind||e.isAmbientModule(n)}function Ir(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],Rr)!==e.findAncestor(t.enclosingDeclaration,Rr)))return"default";if(n.declarations&&n.declarations.length){var r=n.declarations[0],a=e.getNameOfDeclaration(r);if(a)return e.declarationNameToString(a);if(r.parent&&230===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),r.kind){case 203:return"(Anonymous class)";case 190:case 191:return"(Anonymous function)"}}if(n.nameType&&32&n.nameType.flags){var i=n.nameType.value;if(!e.isIdentifierText(i,A.target))return'"'+e.escapeString(i,34)+'"'}return e.symbolName(n)}function Nr(n){if(n){var t=yt(n);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(n.kind){case 180:return Nr(n.parent.parent);case 230:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 237:case 233:case 234:case 235:case 232:case 236:case 241:if(e.isExternalModuleAugmentation(n))return!0;var t=Hr(n);return 1&e.getCombinedModifierFlags(n)||241!==n.kind&&272!==t.kind&&2097152&t.flags?Nr(t):ht(t);case 151:case 150:case 155:case 156:case 153:case 152:if(e.hasModifier(n,24))return!1;case 154:case 158:case 157:case 159:case 148:case 238:case 162:case 163:case 165:case 161:case 166:case 167:case 168:case 169:case 172:return Nr(n.parent);case 243:case 244:case 246:return!1;case 147:case 272:case 240:return!0;case 247:default:return!1}}()),t.isVisible}return!1}function wr(n,t){var r,a;return n.parent&&247===n.parent.kind?r=Tt(n,n.escapedText,70107135,void 0,n,!1):250===n.parent.kind&&(r=Nt(n.parent,70107135)),r&&function n(r){e.forEach(r,function(r){var i=Mt(r)||r;if(t?yt(r).isVisible=!0:(a=a||[],e.pushIfUnique(a,i)),e.isInternalModuleImportEqualsDeclaration(r)){var o=r.moduleReference,s=yg(o),l=Tt(r,s.escapedText,68009983,void 0,void 0,!1);l&&n(l.declarations)}})}(r.declarations),a}function Pr(e,n){var t=Fr(e,n);if(t>=0){for(var r=bn.length,a=t;a<r;a++)En[a]=!1;return!1}return bn.push(e),En.push(!0),Tn.push(n),!0}function Fr(e,n){for(var t=bn.length-1;t>=0;t--){if(Vr(bn[t],Tn[t]))return-1;if(bn[t]===e&&Tn[t]===n)return t}return-1}function Vr(n,t){if(0===t)return _t(n).type;if(2===t)return _t(n).declaredType;if(1===t)return n.resolvedBaseConstructorType;if(3===t)return n.resolvedReturnType;if(4===t){var r=n.resolvedBaseConstraint;return r&&r!==Te}e.Debug.fail("Unhandled TypeSystemPropertyName "+t)}function Gr(){return bn.pop(),Tn.pop(),En.pop()}function Hr(n){return(n=e.findAncestor(e.getRootDeclaration(n),function(e){switch(e.kind){case 230:case 231:case 246:case 245:case 244:case 243:return!1;default:return!0}}))&&n.parent}function Kr(e,n){var t=Fi(e,n);return t?ca(t):void 0}function Br(e){return e&&0!=(1&e.flags)}function Ur(e){var n=ar(e);return n&&_t(n).type||Yr(e,!1)}function jr(n){return 146===n.kind&&!e.isStringOrNumericLiteral(n.expression)}function Wr(n,t,r){if(16384&(n=yu(n,function(e){return!(12288&e.flags)})).flags)return ve;if(131072&n.flags)return hu(n,function(e){return Wr(e,t,r)});for(var a=e.createSymbolTable(),i=e.createUnderscoreEscapedMap(),o=0,s=t;o<s.length;o++){var l=s[o];i.set(e.getTextOfPropertyName(l),!0)}for(var c=0,u=Ei(n);c<u.length;c++){var d=u[c],m=i.has(d.escapedName),p=24&e.getDeclarationModifierFlagsFromSymbol(d),f=65536&d.flags&&!(32768&d.flags);m||p||js(d)||f||a.set(d.escapedName,d)}var g=Bi(n,0),v=Bi(n,1);return gr(r,a,e.emptyArray,e.emptyArray,g,v)}function qr(n){var t,r=n.parent,a=Ur(r.parent);if(a===ee)return ee;if(!a)return n.initializer?Pp(n):a;if(Br(a))return a;if(178===r.kind)if(n.dotDotDotToken){if(!Md(a))return lt(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ee;for(var i=[],o=0,s=r.elements;o<s.length;o++){var l=s[o];l.dotDotDotToken||i.push(l.propertyName||l.name)}t=Wr(a,i,n.symbol)}else{var c=n.propertyName||n.name;if(jr(c))return Q;var u=e.getTextOfPropertyName(c);D&&2097152&n.flags&&e.isParameterDeclaration(n)&&(a=gc(a));var d=Kr(a,u),m=d&&Hu(d,n.name);if(!(t=m&&Iu(n,m)||Ad(u)&&Ui(a,1)||Ui(a,0)))return lt(c,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Cr(a),e.declarationNameToString(c)),ee}else{var p=Jf(a,r,!1,!1);if(n.dotDotDotToken)t=is(p);else{var f=""+r.elements.indexOf(n);if(!(t=nc(a)?Kr(a,f):p))return lc(a)?lt(n,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Cr(a),Ao(a),r.elements.length):lt(n,e.Diagnostics.Type_0_has_no_property_1,Cr(a),f),ee}}return!D||!n.initializer||4096&uc(Np(n.initializer))||(t=tu(t,131072)),n.initializer?gs([t,Np(n.initializer)],2):t}function zr(n){var t=e.getJSDocType(n);if(t)return Qs(t)}function Jr(n){var t=e.skipParentheses(n);return 181===t.kind&&0===t.elements.length}function Xr(e,n){return void 0===n&&(n=!0),D&&n?fc(e):e}function Yr(n,t){if(e.isVariableDeclaration(n)&&219===n.parent.parent.kind){var r=Ts(em(n.parent.parent.expression));return 557056&r.flags?r:ie}if(e.isVariableDeclaration(n)&&220===n.parent.parent.kind){var a=n.parent.parent;return zf(a.expression,a.awaitModifier)||Q}if(e.isBindingPattern(n.parent))return qr(n);var i=!1;if(t){if(e.isInJavaScriptFile(n)&&e.isParameter(n)){var o=e.getJSDocParameterTags(n);i=!!(o&&o.length>0&&e.find(o,function(e){return e.isBracketed}))}e.isBindingElement(n)||e.isVariableDeclaration(n)||!n.questionToken||(i=!0)}var s,l,c=na(n);if(c)return Xr(c,i);if((I||e.isInJavaScriptFile(n))&&230===n.kind&&!e.isBindingPattern(n.name)&&!(1&e.getCombinedModifierFlags(n))&&!(2097152&n.flags)){if(!(2&e.getCombinedNodeFlags(n)||n.initializer&&(s=n.initializer,l=e.skipParentheses(s),95!==l.kind&&(71!==l.kind||qc(l)!==F))))return Z;if(n.initializer&&Jr(n.initializer))return Ve}if(148===n.kind){var u=n.parent;if(156===u.kind&&!ja(u)){var d=e.getDeclarationOfKind(ar(n.parent),155);if(d){var m=$i(d),p=Rv(u);return p&&n===p?(e.Debug.assert(!p.type),ca(m.thisParameter)):io(m)}}var f=void 0;if(f="this"===n.symbol.escapedName?$u(u):ed(n))return Xr(f,i)}return n.initializer?Xr(f=Pp(n),i):e.isJsxAttribute(n)?se:e.isBindingPattern(n.name)?Zr(n.name,!1,!0):void 0}function Qr(n,t,r){return n.initializer?Pp(n):e.isBindingPattern(n.name)?Zr(n.name,t,r):(r&&I&&!ea(n)&&Ac(n,Q),Q)}function Zr(n,t,r){return 178===n.kind?function(n,t,r){var a,i=e.createSymbolTable(),o=!1;e.forEach(n.elements,function(n){var s=n.propertyName||n.name;if(jr(s))o=!0;else if(n.dotDotDotToken)a=_o(Q,!1);else{var l=e.getTextOfPropertyName(s),c=ct(4|(n.initializer?16777216:0),l);c.type=Qr(n,t,r),c.bindingElement=n,i.set(c.escapedName,c)}});var s=gr(void 0,i,e.emptyArray,e.emptyArray,a,void 0);return t&&(s.pattern=n),o&&(s.objectFlags|=512),s}(n,t,r):function(n,t,r){var a=n.elements,i=e.lastOrUndefined(a);if(0===a.length||!e.isOmittedExpression(i)&&i.dotDotDotToken)return x>=2?rs(Q):Fe;var o=ss(e.map(a,function(n){return e.isOmittedExpression(n)?Q:Qr(n,t,r)}));return t&&((o=Lo(o)).pattern=n),o}(n,t,r)}function $r(n,t){var r=Yr(n,!0);return r?(t&&xc(n,r),1024&r.flags&&(e.isBindingElement(n)||!n.type)&&r.symbol!==ar(n)&&(r=ue),Sc(r)):(r=e.isParameter(n)&&n.dotDotDotToken?Fe:Q,t&&I&&(ea(n)||Ac(n,r)),r)}function ea(n){var t=e.getRootDeclaration(n);return of(148===t.kind?t.parent:t)}function na(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Qs(t)}function ta(n){var t,r=_t(n);if(!r.type){if(4194304&n.flags)return r.type=(t=Ra(ir(n))).typeParameters?So(t,e.map(t.typeParameters,function(e){return Q})):t;var a=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(a))return r.type=Q;if(247===a.kind)return r.type=Bp(a.expression);if(e.isInJavaScriptFile(a)&&e.isJSDocPropertyLikeTag(a)&&a.typeExpression)return r.type=Qs(a.typeExpression.type);if(!Pr(n,0))return ee;var i=void 0;if(198===a.kind||183===a.kind&&198===a.parent.kind)i=function(n){var t=e.getAssignedJavascriptInitializer(n.valueDeclaration);if(t)return ic(Np(t));for(var r,a=[],i=!1,o=!1,s=0,l=n.declarations;s<l.length;s++){var c=l[s],u=198===c.kind?c:183===c.kind?e.getAncestor(c,198):void 0;if(!u)return ee;e.isPropertyAccessExpression(u.left)&&99===u.left.expression.kind&&(154===e.getThisContainer(u,!1).kind?i=!0:o=!0);var d=zr(u.parent);if(d){var m=Sc(d);r?r===ee||m===ee||bl(r,m)||67108864&n.flags||Kf(r,c,m):r=m}else r||a.push(ic(Np(u.right)))}return Sc(Xr(r||gs(a,2),o&&!i))}(n);else if(e.isJSDocPropertyTag(a)||e.isPropertyAccessExpression(a)||e.isIdentifier(a)||e.isMethodDeclaration(a)&&!e.isObjectLiteralMethod(a)||e.isMethodSignature(a)){if(9136&n.flags)return sa(n);i=na(a)||Q}else e.isPropertyAssignment(a)?i=na(a)||Vp(a):e.isJsxAttribute(a)?i=na(a)||Rd(a):e.isShorthandPropertyAssignment(a)?i=na(a)||Fp(a.name,0):e.isObjectLiteralMethod(a)?i=na(a)||Gp(a,0):e.isParameter(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isVariableDeclaration(a)||e.isBindingElement(a)?i=$r(a,!0):e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(a));Gr()||(i=la(n)),r.type=i}return r.type}function ra(n){if(n){if(155===n.kind){var t=e.getEffectiveReturnTypeNode(n);return t&&Qs(t)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(n);return r&&Qs(r)}}function aa(e){return to($i(e))}function ia(n){var t=_t(n);if(!t.type){var r=e.getDeclarationOfKind(n,155),a=e.getDeclarationOfKind(n,156);if(r&&e.isInJavaScriptFile(r)){var i=zr(r);if(i)return t.type=i}if(!Pr(n,0))return ee;var o=void 0,s=ra(r);if(s)o=s;else{var l=ra(a);l?o=l:r&&r.body?o=cp(r):(I&&(a?lt(a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ar(n)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),lt(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ar(n)))),o=Q)}Gr()||(o=Q,I&<(e.getDeclarationOfKind(n,155),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,Ar(n))),t.type=o}return t.type}function oa(e){var n=Ta(Aa(e));return 1081344&n.flags?n:void 0}function sa(n){var t=_t(n);if(!t.type)if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))t.type=Q;else{var r=dr(16,n);if(32&n.flags){var a=oa(n);t.type=a?bs([r,a]):r}else t.type=D&&16777216&n.flags?fc(r):r}return t.type}function la(n){return e.getEffectiveTypeAnnotationNode(n.valueDeclaration)?(lt(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ar(n)),ee):(I&<(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,Ar(n)),Q)}function ca(n){return 1&e.getCheckFlags(n)?function(n){var t=_t(n);if(!t.type)if(100===T)lt(n.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),t.type=ee;else{if(!Pr(n,0))return ee;T++;var r=pl(ca(t.target),t.mapper);T--,Gr()||(r=la(n)),t.type=r}return t.type}(n):2048&e.getCheckFlags(n)?function(e){return Nc(e.propertyType,e.mappedType)}(n):7&n.flags?ta(n):9136&n.flags?sa(n):8&n.flags?function(e){var n=_t(e);return n.type||(n.type=Da(e)),n.type}(n):98304&n.flags?ia(n):2097152&n.flags?function(e){var n=_t(e);if(!n.type){var t=Vt(e);n.type=67216319&t.flags?ca(t):ee}return n.type}(n):ee}function ua(n,t){return void 0!==n&&void 0!==t&&0!=(4&e.getObjectFlags(n))&&n.target===t}function da(n){return 4&e.getObjectFlags(n)?n.target:n}function ma(n,t){return function n(r){if(7&e.getObjectFlags(r)){var a=da(r);return a===t||e.forEach(Sa(a),n)}if(262144&r.flags)return e.forEach(r.types,n)}(n)}function pa(n,t){for(var r=0,a=t;r<a.length;r++){var i=Oa(ar(a[r]));n=e.appendIfUnique(n,i)}return n}function fa(n,t){for(;;){if(!(n=n.parent))return;switch(n.kind){case 233:case 203:case 234:case 157:case 158:case 152:case 162:case 163:case 280:case 232:case 153:case 190:case 191:case 235:case 290:case 176:case 170:var r=fa(n,t);if(176===n.kind)return e.append(r,Oa(ar(n.typeParameter)));if(170===n.kind)return e.concatenate(r,Fs(n));var a=pa(r,e.getEffectiveTypeParameterDeclarations(n)||e.emptyArray),i=t&&(233===n.kind||203===n.kind||234===n.kind)&&Aa(ar(n)).thisType;return i?e.append(a,i):a}}}function ga(n){return fa(32&n.flags?n.valueDeclaration:e.getDeclarationOfKind(n,234))}function va(e){for(var n,t=0,r=e.declarations;t<r.length;t++){var a=r[t];if(234===a.kind||233===a.kind||203===a.kind||235===a.kind){var i=a;i.typeParameters&&(n=pa(n,i.typeParameters))}}return n}function _a(e){var n=Gi(e,1);if(1===n.length){var t=n[0];return!t.typeParameters&&1===t.parameters.length&&t.hasRestParameter&&rp(t.parameters[0])===Fe}return!1}function ya(e){if(La(e)&&Gi(e,1).length>0)return!0;if(1081344&e.flags){var n=Ci(e);return n&&La(n)&&_a(n)}return!1}function ha(n){var t=n.symbol.valueDeclaration;if(e.isInJavaScriptFile(t)){var r=e.getJSDocAugmentsTag(t);if(r)return r.class}return e.getClassExtendsHeritageClauseElement(t)}function ba(n,t,r){var a=e.length(t),i=e.isInJavaScriptFile(r);return e.filter(Gi(n,1),function(n){return(i||a>=Qi(n.typeParameters))&&a<=e.length(n.typeParameters)})}function Ea(n,t,r){var a=ba(n,t,r),i=e.map(t,Qs);return e.sameMap(a,function(n){return e.some(n.typeParameters)?so(n,i,e.isInJavaScriptFile(r)):n})}function Ta(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getClassExtendsHeritageClauseElement(t),a=ha(n);if(!a)return n.resolvedBaseConstructorType=ne;if(!Pr(n,1))return ee;var i=Bp(a.expression);if(r&&a!==r&&(e.Debug.assert(!r.typeArguments),Bp(r.expression)),327680&i.flags&&_i(i),!Gr())return lt(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ar(n.symbol)),n.resolvedBaseConstructorType=ee;if(!(1&i.flags||i===ae||ya(i)))return lt(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Cr(i)),n.resolvedBaseConstructorType=ee;n.resolvedBaseConstructorType=i}return n.resolvedBaseConstructorType}function Sa(n){return n.resolvedBaseTypes||(8&n.objectFlags?n.resolvedBaseTypes=[is(gs(n.typeParameters))]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=Ii(Ta(n));if(!(327681&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,a=ha(n),i=Fo(a),o=t&&t.symbol?Ra(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=e.typeArguments;return n[t].symbol!==r[t].symbol}return!0}(o))r=xo(a,t.symbol,i);else if(1&t.flags)r=t;else{var s=Ea(t,a.typeArguments,a);if(!s.length)return lt(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=io(s[0])}r===ee?n.resolvedBaseTypes=e.emptyArray:La(r)?n===r||ma(r,n)?(lt(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Cr(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray):(n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[r]):(lt(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Cr(r)),n.resolvedBaseTypes=e.emptyArray)}(n),64&n.symbol.flags&&function(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t<r.length;t++){var a=r[t];if(234===a.kind&&e.getInterfaceBaseTypeNodes(a))for(var i=0,o=e.getInterfaceBaseTypeNodes(a);i<o.length;i++){var s=o[i],l=Qs(s);l!==ee&&(La(l)?n===l||ma(l,n)?lt(a,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Cr(n,void 0,2)):n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[l]:n.resolvedBaseTypes.push(l):lt(s,e.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}(n)):e.Debug.fail("type must be class or interface")),n.resolvedBaseTypes}function La(n){return 134283265&n.flags&&!vi(n)||262144&n.flags&&!e.forEach(n.types,function(e){return!La(e)})}function Aa(n){var t=_t(n);if(!t.declaredType){var r=32&n.flags?1:2,a=t.declaredType=dr(r,n),i=ga(n),o=va(n);(i||o||1===r||!function(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];if(234===a.kind){if(64&a.flags)return!1;var i=e.getInterfaceBaseTypeNodes(a);if(i)for(var o=0,s=i;o<s.length;o++){var l=s[o];if(e.isEntityNameExpression(l.expression)){var c=Ut(l.expression,67901928,!0);if(!c||!(64&c.flags)||Aa(c).thisType)return!1}}}}return!0}(n))&&(a.objectFlags|=4,a.typeParameters=e.concatenate(i,o),a.outerTypeParameters=i,a.localTypeParameters=o,a.instantiations=e.createMap(),a.instantiations.set(Eo(a.typeParameters),a),a.target=a,a.typeArguments=a.typeParameters,a.thisType=cr(32768),a.thisType.isThisType=!0,a.thisType.symbol=n,a.thisType.constraint=a)}return t.declaredType}function xa(n){var t=n.initializer;if(!t)return!(2097152&n.flags);switch(t.kind){case 9:case 8:return!0;case 196:return 38===t.operator&&8===t.operand.kind;case 71:return e.nodeIsMissing(t)||!!ar(n.parent).exports.get(t.escapedText);default:return!1}}function Ca(e){var n=_t(e);if(void 0!==n.enumKind)return n.enumKind;for(var t=!1,r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(236===i.kind)for(var o=0,s=i.members;o<s.length;o++){var l=s[o];if(l.initializer&&9===l.initializer.kind)return n.enumKind=1;xa(l)||(t=!0)}}return n.enumKind=t?0:1}function ka(e){return 256&e.flags&&!(131072&e.flags)?Ra(ir(e.symbol)):e}function Ma(e){var n=_t(e);if(n.declaredType)return n.declaredType;if(1===Ca(e)){E++;for(var t=[],r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(236===i.kind)for(var o=0,s=i.members;o<s.length;o++){var l=s[o],c=Js(av(l),E,ar(l));_t(ar(l)).declaredType=c,t.push(c)}}if(t.length){var u=gs(t,1,e,void 0);return 131072&u.flags&&(u.flags|=256,u.symbol=e),n.declaredType=u}}var d=cr(16);return d.symbol=e,n.declaredType=d}function Da(e){var n=_t(e);if(!n.declaredType){var t=Ma(ir(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function Oa(e){var n=_t(e);if(!n.declaredType){var t=cr(32768);t.symbol=e,n.declaredType=t}return n.declaredType}function Ra(e){return Ia(e)||ee}function Ia(n){return 96&n.flags?Aa(n):524288&n.flags?function(n){var t=_t(n);if(!t.declaredType){if(!Pr(n,2))return ee;var r=e.find(n.declarations,function(e){return 291===e.kind||235===e.kind}),a=291===r.kind?r.typeExpression:r.type,i=a?Qs(a):ee;if(Gr()){var o=va(n);o&&(t.typeParameters=o,t.instantiations=e.createMap(),t.instantiations.set(Eo(o),i))}else i=ee,lt(r.name,e.Diagnostics.Type_alias_0_circularly_references_itself,Ar(n));t.declaredType=i}return t.declaredType}(n):262144&n.flags?Oa(n):384&n.flags?Ma(n):8&n.flags?Da(n):2097152&n.flags?function(e){var n=_t(e);return n.declaredType||(n.declaredType=Ra(Vt(e))),n.declaredType}(n):void 0}function Na(e){switch(e.kind){case 119:case 137:case 134:case 122:case 138:case 135:case 105:case 140:case 95:case 131:case 177:return!0;case 166:return Na(e.elementType);case 161:return!e.typeArguments||e.typeArguments.every(Na)}return!1}function wa(e){return!e.constraint||Na(e.constraint)}function Pa(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?Na(t):!e.hasInitializer(n)}function Fa(n){if(n.declarations&&1===n.declarations.length){var t=n.declarations[0];if(t)switch(t.kind){case 151:case 150:return Pa(t);case 153:case 152:case 154:return r=t,a=e.getEffectiveReturnTypeNode(r),(154===r.kind||a&&Na(a))&&r.parameters.every(Pa)&&(!r.typeParameters||r.typeParameters.every(wa))}}var r,a;return!1}function Va(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&&Fa(s)?s:ll(s,t))}return a}function Ga(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];e.has(a.escapedName)||e.set(a.escapedName,a)}}function Ha(e){if(!e.declaredProperties){var n=e.symbol,t=Ja(n);e.declaredProperties=pr(t),e.declaredCallSignatures=no(t.get("__call")),e.declaredConstructSignatures=no(t.get("__new")),e.declaredStringIndexInfo=yo(n,0),e.declaredNumberIndexInfo=yo(n,1)}return e}function Ka(e){return!!(1120&e.flags)}function Ba(n){return e.isComputedPropertyName(n)&&e.isEntityNameExpression(n.expression)&&Ka(xd(n))}function Ua(n){var t=e.getNameOfDeclaration(n);return t&&Ba(t)}function ja(n){return e.hasDynamicName(n)&&!Ua(n)}function Wa(n){return 1024&n.flags?"__@"+n.symbol.escapedName+"@"+c(n.symbol):96&n.flags?e.escapeLeadingUnderscores(""+n.value):void 0}function qa(n,t,r,a){e.Debug.assert(!!a.symbol,"The member is expected to have a symbol.");var i=yt(a);if(!i.resolvedSymbol){i.resolvedSymbol=a.symbol;var o=xd(a.name);if(Ka(o)){var s=Wa(o),l=a.symbol.flags,c=r.get(s);c||r.set(s,c=ct(0,s,1024));var u=t&&t.get(s);if(c.flags&dt(l)||u){var d=u?e.concatenate(u.declarations,c.declarations):c.declarations,m=e.declarationNameToString(a.name);e.forEach(d,function(n){return lt(e.getNameOfDeclaration(n)||n,e.Diagnostics.Duplicate_declaration_0,m)}),lt(a.name||a,e.Diagnostics.Duplicate_declaration_0,m),c=ct(0,s,1024)}var p=_t(c);return p.nameType||(p.nameType=o),function(n,t,r){if(e.Debug.assert(!!(1024&e.getCheckFlags(n)),"Expected a late-bound symbol."),n.flags|=r,_t(t.symbol).lateSymbol=n,n.declarations?n.declarations.push(t):n.declarations=[t],67216319&r){var a=n.valueDeclaration;a&&a.kind===t.kind||(n.valueDeclaration=t)}}(c,a,l),c.parent?e.Debug.assert(c.parent===n,"Existing symbol parent should match new one"):c.parent=n,i.resolvedSymbol=c}}return i.resolvedSymbol}function za(n,t){var r=_t(n);if(!r[t]){var a="resolvedExports"===t,i=a?1536&n.flags?tr(n):n.exports:n.members;r[t]=i||S;for(var o=e.createSymbolTable(),s=0,l=n.declarations;s<l.length;s++){var c=l[s],u=e.getMembersOfDeclaration(c);if(u)for(var d=0,m=u;d<m.length;d++){var p=m[d];a===e.hasStaticModifier(p)&&Ua(p)&&qa(n,i,o,p)}}r[t]=function(n,t){if(!n||0===n.size)return t;if(!t||0===t.size)return n;var r=e.createSymbolTable();return gt(r,n),gt(r,t),r}(i,o)||S}return r[t]}function Ja(e){return 6240&e.flags?za(e,"resolvedMembers"):e.members||S}function Xa(n){if(106500&n.flags&&"__computed"===n.escapedName){var t=_t(n);return!t.lateSymbol&&e.some(n.declarations,Ua)&&(e.some(n.declarations,e.hasStaticModifier)?$t(n.parent):Ja(n.parent)),t.lateSymbol||(t.lateSymbol=n)}return n}function Ya(n,t,r){if(4&e.getObjectFlags(n)){var a=n.target,i=n.typeArguments;if(e.length(a.typeParameters)===e.length(i)){var o=So(a,e.concatenate(i,[t||a.thisType]));return r?Ii(o):o}}else if(262144&n.flags)return bs(e.map(n.types,function(e){return Ya(e,t,r)}));return r?Ii(n):n}function Qa(n,t,r,a){var i,o,s,l,c,u;e.rangeEquals(r,a,0,r.length)?(i=L,o=t.symbol?Ja(t.symbol):e.createSymbolTable(t.declaredProperties),s=t.declaredCallSignatures,l=t.declaredConstructSignatures,c=t.declaredStringIndexInfo,u=t.declaredNumberIndexInfo):(i=nl(r,a),o=Va(t.declaredProperties,i,1===r.length),s=el(t.declaredCallSignatures,i),l=el(t.declaredConstructSignatures,i),c=gl(t.declaredStringIndexInfo,i),u=gl(t.declaredNumberIndexInfo,i));var d=Sa(t);if(d.length){t.symbol&&o===Ja(t.symbol)&&(o=e.createSymbolTable(t.declaredProperties)),fr(n,o,s,l,c,u);for(var m=e.lastOrUndefined(a),p=0,f=d;p<f.length;p++){var g=f[p],v=m?Ya(pl(g,i),m):g;Ga(o,Ei(v)),s=e.concatenate(s,Gi(v,0)),l=e.concatenate(l,Gi(v,1)),c||(c=v===Q?_o(Q,!1):Bi(v,0)),u=u||Bi(v,1)}}fr(n,o,s,l,c,u)}function Za(e,n,t,r,a,i,o,s,l){var c=new y(K);return c.declaration=e,c.typeParameters=n,c.parameters=r,c.thisParameter=t,c.resolvedReturnType=a,c.resolvedTypePredicate=i,c.minArgumentCount=o,c.hasRestParameter=s,c.hasLiteralTypes=l,c.target=void 0,c.mapper=void 0,c}function $a(e){return Za(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function ei(e,n,t,r,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if(Yl(s,n,t,r,a,El))return s}}function ni(n,t,r){if(t.typeParameters){if(r>0)return;for(var a=1;a<n.length;a++)if(!ei(n[a],t,!1,!1,!1))return;return[t]}var i;for(a=0;a<n.length;a++){var o=a===r?t:ei(n[a],t,!0,!0,!0);if(!o)return;i=e.appendIfUnique(i,o)}return i}function ti(n,t){for(var r,a=e.map(n,function(e){return Gi(e,t)}),i=0;i<a.length;i++)for(var o=0,s=a[i];o<s.length;o++){var l=s[o];if(!r||!ei(r,l,!1,!0,!0)){var c=ni(a,l,i);if(c){var u=l;if(c.length>1){var d=l.thisParameter;if(e.forEach(c,function(e){return e.thisParameter})){var m=gs(e.map(c,function(e){return e.thisParameter?ca(e.thisParameter):Q}),2);d=_c(l.thisParameter,m)}(u=$a(l)).thisParameter=d,u.unionSignatures=c}(r||(r=[])).push(u)}}}return r||e.emptyArray}function ri(e,n){for(var t=[],r=!1,a=0,i=e;a<i.length;a++){var o=Bi(i[a],n);if(!o)return;t.push(o.type),r=r||o.isReadonly}return _o(gs(t,2),r)}function ai(e,n){return e?n?bs([e,n]):e:n}function ii(e,n){return e?n?_o(bs([e.type,n.type]),e.isReadonly&&n.isReadonly):e:n}function oi(e,n){return e&&n&&_o(gs([e.type,n.type]),e.isReadonly||n.isReadonly)}function si(n){for(var t,r,a=e.emptyArray,i=e.emptyArray,o=n.types,s=e.countWhere(o,_a),l=function(l){var c=n.types[l];if(0===s||s===o.length&&0===l||!_a(c)){var u=Gi(c,1);u.length&&s>0&&(u=e.map(u,function(e){var n=$a(e);return n.resolvedReturnType=function(e,n,t){for(var r=[],a=0;a<n.length;a++)a===t?r.push(e):_a(n[a])&&r.push(io(Gi(n[a],1)[0]));return bs(r)}(io(e),o,l),n})),i=e.concatenate(i,u)}a=e.concatenate(a,Gi(c,0)),t=ii(t,Bi(c,0)),r=ii(r,Bi(c,1))},c=0;c<o.length;c++)l(c);fr(n,S,a,i,t,r)}function li(n){var t=n.symbol;if(n.target)fr(n,r=Va(yi(n.target),n.mapper,!1),el(Gi(n.target,0),n.mapper),s=el(Gi(n.target,1),n.mapper),a=gl(Bi(n.target,0),n.mapper),o=gl(Bi(n.target,1),n.mapper));else if(2048&t.flags)fr(n,r=Ja(t),no(r.get("__call")),s=no(r.get("__new")),a=yo(t,0),o=yo(t,1));else{var r=S,a=void 0;if(t.exports&&(r=$t(t)),fr(n,r,e.emptyArray,e.emptyArray,void 0,void 0),32&t.flags){var i=Ta(l=Aa(t));1409024&i.flags?Ga(r=e.createSymbolTable(pr(r)),Ei(i)):i===Q&&(a=_o(Q,!1))}var o=384&t.flags?un:void 0;if(fr(n,r,e.emptyArray,e.emptyArray,a,o),8208&t.flags&&(n.callSignatures=no(t)),32&t.flags){var s,l=Aa(t);(s=no(t.members.get("__constructor"))).length||(s=function(n){var t=Gi(Ta(n),1);if(0===t.length)return[Za(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,!1,!1)];for(var r=ha(n),a=e.isInJavaScriptFile(r),i=Fo(r),o=e.length(i),s=[],l=0,c=t;l<c.length;l++){var u=c[l],d=Qi(u.typeParameters),m=e.length(u.typeParameters);if(a||o>=d&&o<=m){var p=m?lo(u,Zi(i,u.typeParameters,d,a)):$a(u);p.typeParameters=n.localTypeParameters,p.resolvedReturnType=n,s.push(p)}}return s}(l)),n.constructSignatures=s}}}function ci(e){return e.typeParameter||(e.typeParameter=Oa(ar(e.declaration.typeParameter)))}function ui(e){return e.constraintType||(e.constraintType=pl(Si(ci(e)),e.mapper||L)||ee)}function di(e){return e.templateType||(e.templateType=e.declaration.type?pl(Xr(Qs(e.declaration.type),!!(4&pi(e))),e.mapper||L):ee)}function mi(e){if(!e.modifiersType){var n=e.declaration.typeParameter.constraint;if(174===n.kind&&128===n.operator)e.modifiersType=pl(Qs(n.type),e.mapper||L);else{var t=ui(Rs(e.declaration)),r=t&&32768&t.flags?Si(t):t;e.modifiersType=r&&524288&r.flags?pl(r.type,e.mapper||L):ve}}return e.modifiersType}function pi(e){var n=e.declaration;return(n.readonlyToken?38===n.readonlyToken.kind?2:1:0)|(n.questionToken?38===n.questionToken.kind?8:4:0)}function fi(e){var n=pi(e);return 8&n?-1:4&n?1:0}function gi(e){var n=fi(e),t=mi(e);return n||(vi(t)?fi(t):0)}function vi(n){return 32&e.getObjectFlags(n)&&As(ui(n))}function _i(n){return n.members||(65536&n.flags?4&n.objectFlags?function(n){var t=Ha(n.target),r=e.concatenate(t.typeParameters,[t.thisType]);Qa(n,t,r,n.typeArguments&&n.typeArguments.length===r.length?n.typeArguments:e.concatenate(n.typeArguments,[n]))}(n):3&n.objectFlags?function(n){Qa(n,Ha(n),e.emptyArray,e.emptyArray)}(n):2048&n.objectFlags?function(n){for(var t=Bi(n.source,0),r=pi(n.mappedType),a=!(1&r),i=4&r?0:16777216,o=t&&_o(Nc(t.type,n.mappedType),a&&t.isReadonly),s=e.createSymbolTable(),l=0,c=Ei(n.source);l<c.length;l++){var u=c[l],d=2048|(a&&_p(u)?8:0),m=ct(4|u.flags&i,u.escapedName,d);m.declarations=u.declarations,m.propertyType=ca(u),m.mappedType=n.mappedType,s.set(u.escapedName,m)}fr(n,s,e.emptyArray,e.emptyArray,o,void 0)}(n):16&n.objectFlags?li(n):32&n.objectFlags&&function(n){var t,r=e.createSymbolTable();fr(n,S,e.emptyArray,e.emptyArray,void 0,void 0);var a=ci(n),i=ui(n),o=di(n.target||n),s=Ii(mi(n)),l=pi(n),c=n.declaration.typeParameter.constraint;if(174===c.kind&&128===c.operator){for(var u=0,d=Ei(s);u<d.length;u++){var m=d[u];f(Es(m),m)}(1&s.flags||Bi(s,0))&&f(ie)}else{var p=7372800&i.flags?Ii(i):i;_u(524288&p.flags?Ts(Ii(p.type)):p,f)}function f(e,i){var c;"object"==typeof i&&(c=i);var u=rl(n.mapper,nl([a],[e])),d=pl(o,u);if(32&e.flags){var m=Wa(e),p=Fi(s,m),f=!!(4&l||!(8&l)&&p&&16777216&p.flags),g=!!(1&l||!(2&l)&&p&&_p(p)),v=ct(4|(f?16777216:0),m,g?8:0);v.type=D&&f&&!Ll(ne,d)?fc(d):D&&!f&&p&&16777216&p.flags?tu(d,131072):d,c&&(v.syntheticOrigin=c,v.declarations=c.declarations),v.nameType=e,r.set(m,v)}else 3&e.flags&&(t=_o(d,!!(1&l)))}fr(n,r,e.emptyArray,e.emptyArray,t,void 0)}(n):131072&n.flags?function(e){var n=ti(e.types,0),t=ti(e.types,1),r=ri(e.types,0),a=ri(e.types,1);fr(e,S,n,t,r,a)}(n):262144&n.flags&&si(n)),n}function yi(n){return 65536&n.flags?_i(n).properties:e.emptyArray}function hi(e,n){if(65536&e.flags){var t=_i(e).members.get(n);if(t&&sr(t))return t}}function bi(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,a=n.types;r<a.length;r++){for(var i=0,o=Ei(a[r]);i<o.length;i++){var s=o[i];if(!t.has(s.escapedName)){var l=Pi(n,s.escapedName);l&&t.set(s.escapedName,l)}}if(131072&n.flags)break}n.resolvedProperties=pr(t)}return n.resolvedProperties}function Ei(e){return 393216&(e=Ii(e)).flags?bi(e):yi(e)}function Ti(e){return 32768&e.flags?Si(e):1048576&e.flags?function(e){var n=ks(e);if(n)return n;var t=Ci(e.objectType),r=Ci(e.indexType);return(r!==ie||Bi(t||e.objectType,0))&&(t||r)?Ds(t||e.objectType,r||e.indexType):void 0}(e):2097152&e.flags?xi(e):Ci(e)}function Si(e){return Mi(e)?ho(e):void 0}function Li(e){return gs([ws(e),Ps(e)])}function Ai(e){if(e.root.isDistributive){var n=Ti(e.checkType);if(n)return ml(e,rl(nl([e.root.checkType],[n]),e.mapper))}}function xi(e){return Ai(e)||Li(e)}function Ci(e){var n=function(e){if(7766016&e.flags){var n=Di(e);if(n!==Ee&&n!==Te)return n}}(e);return!n&&524288&e.flags?ie:n}function ki(e){return Ci(e)||e}function Mi(e){return Di(e)!==Te}function Di(e){var n;if(!e.resolvedBaseConstraint){var t=r(e);e.resolvedBaseConstraint=n?Te:Ya(t||Ee,e)}return e.resolvedBaseConstraint;function r(e){if(Pr(e,4)){var t=function(e){if(32768&e.flags){var n=ho(e);return e.isThisType||!n?n:r(n)}if(393216&e.flags){for(var t=e.types,a=[],i=0,o=t;i<o.length;i++){var s=o[i],l=r(s);l&&a.push(l)}return 131072&e.flags&&a.length===t.length?gs(a):262144&e.flags&&a.length?bs(a):void 0}if(524288&e.flags)return ie;if(1048576&e.flags){var c=ks(e);if(c)return r(c);var u=r(e.objectType),d=r(e.indexType),m=u&&d?Ds(u,d):void 0;return m&&m!==ee?r(m):void 0}if(2097152&e.flags){var n=xi(e);return n&&r(n)}return 4194304&e.flags?r(e.substitute):vi(e)?ve:e}(e);if(Gr())return t;n=!0}else n=!0}}function Oi(n){if(n.default)n.default===Se&&(n.default=Te);else if(n.target){var t=Oi(n.target);n.default=t?pl(t,n.mapper):Ee}else{n.default=Se;var r=n.symbol&&e.forEach(n.symbol.declarations,function(n){return e.isTypeParameterDeclaration(n)&&n.default}),a=r?Qs(r):Ee;n.default===Se&&(n.default=a)}return n.default}function Ri(e){var n=Oi(e);return n!==Ee&&n!==Te?n:void 0}function Ii(e){var n=7897088&e.flags?Ci(e)||ve:e;return 262144&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Ya(e,e,!0))}(n):524322&n.flags?Re:84&n.flags?Ie:136&n.flags?Ne:1536&n.flags?jo(x>=2):134217728&n.flags?ve:n}function Ni(n,t){for(var r,a=131072&n.flags,i=a?24:0,o=a?0:16777216,s=4,l=0,c=0,u=n.types;c<u.length;c++)if((y=Ii(u[c]))!==ee){var d=(_=Fi(y,t))?e.getDeclarationModifierFlagsFromSymbol(_):0;!_||d&i?a&&(l|=16):(o&=_.flags,r=e.appendIfUnique(r,_),l|=(_p(_)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),Qd(_)||(s=2))}if(r){if(1===r.length&&!(16&l))return r[0];for(var m,p=[],f=[],g=0,v=r;g<v.length;g++){var _;(_=v[g]).declarations&&e.addRange(f,_.declarations);var y=ca(_);m?y!==m&&(l|=32):m=y,p.push(y)}var h=ct(4|o,t,s|l);return h.containingType=n,h.declarations=f,h.type=a?gs(p):bs(p),h}}function wi(n,t){var r=n.propertyCache||(n.propertyCache=e.createSymbolTable()),a=r.get(t);return a||(a=Ni(n,t))&&r.set(t,a),a}function Pi(n,t){var r=wi(n,t);return!r||16&e.getCheckFlags(r)?void 0:r}function Fi(e,n){if(65536&(e=Ii(e)).flags){var t=_i(e),r=t.members.get(n);if(r&&sr(r))return r;if(t===be||t.callSignatures.length||t.constructSignatures.length){var a=hi(Me,n);if(a)return a}return hi(ke,n)}if(393216&e.flags)return Pi(e,n)}function Vi(n,t){if(458752&n.flags){var r=_i(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function Gi(e,n){return Vi(Ii(e),n)}function Hi(e,n){if(458752&e.flags){var t=_i(e);return 0===n?t.stringIndexInfo:t.numberIndexInfo}}function Ki(e,n){var t=Hi(e,n);return t&&t.type}function Bi(e,n){return Hi(Ii(e),n)}function Ui(e,n){return Ki(Ii(e),n)}function ji(e,n){if(vc(e)){for(var t=[],r=0,a=Ei(e);r<a.length;r++){var i=a[r];(0===n||Ad(i.escapedName))&&t.push(ca(i))}if(t.length)return gs(t,2)}}function Wi(e){var n=[];return e.forEach(function(e,t){mr(t)||n.push(e)}),n}function qi(n){if(e.isInJavaScriptFile(n)){if(n.type&&279===n.type.kind)return!0;var t=e.getJSDocParameterTags(n);if(t)for(var r=0,a=t;r<a.length;r++){var i=a[r];if(i.isBracketed)return!0;if(i.typeExpression)return 279===i.typeExpression.type.kind}}}function zi(n,t){if(!e.isExternalModuleNameRelative(n)){var r=bt(mn,'"'+n+'"',512);return r&&t?rr(r):r}}function Ji(n){if(e.hasQuestionToken(n)||qi(n))return!0;if(n.initializer){var t=$i(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=t.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!a&&!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length}function Xi(e,n,t){return{kind:1,parameterName:e,parameterIndex:n,type:t}}function Yi(e){return{kind:0,type:e}}function Qi(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 Zi(n,t,r,a){var i=e.length(t);if(i){var o=e.length(n);if(a||o>=r&&o<=i){n||(n=[]);for(var s=o;s<i;s++)n[s]=jc(a);for(s=o;s<i;s++){var l=nl(t,n),c=Ri(t[s]);c&&bl(c,ve)&&a&&(c=Q),n[s]=c?pl(c,l):jc(a)}n.length=t.length}}return n}function $i(n){var t,r=yt(n);if(!r.resolvedSignature){for(var a=[],i=!1,o=0,s=void 0,l=void 0,c=e.getImmediatelyInvokedFunctionExpression(n),u=e.isJSDocConstructSignature(n),d=!c&&!u&&e.isInJavaScriptFile(n)&&!e.hasJSDocParameterTags(n),m=u?1:0;m<n.parameters.length;m++){var p=n.parameters[m],f=p.symbol;f&&4&f.flags&&!e.isBindingPattern(p.name)&&(f=Tt(p,f.escapedName,67216319,void 0,void 0,!1)),0===m&&"this"===f.escapedName?(l=!0,s=p.symbol):a.push(f),p.type&&177===p.type.kind&&(i=!0),p.initializer||p.questionToken||p.dotDotDotToken||c&&a.length>c.arguments.length&&!p.type||qi(p)||d||(o=a.length)}if(!(155!==n.kind&&156!==n.kind||ja(n)||l&&s)){var g=155===n.kind?156:155,v=e.getDeclarationOfKind(ar(n),g);v&&(s=(t=Rv(v))&&t.symbol)}var _=154===n.kind?Aa(rr(n.parent.symbol)):void 0,y=_?_.localTypeParameters:function(n){var t;return e.forEach(e.getEffectiveTypeParameterDeclarations(n),function(n){var r=Oa(n.symbol);t=e.appendIfUnique(t,r)}),t}(n),h=function(n,t,r){if(t)return Qs(n.parameters[0].type);if(r)return r;var a=e.getEffectiveReturnTypeNode(n);if(a)return Qs(a);if(155===n.kind&&!ja(n)){var i=e.getDeclarationOfKind(ar(n),156);return ra(i)}return e.nodeIsMissing(n.body)?Q:void 0}(n,u,_),b=e.hasRestParameter(n)||e.isInJavaScriptFile(n)&&function(n,t){if(!eo(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=ct(3,"args");return o.type=i?is(Qs(i.type)):Fe,o.isRestParameter=!0,i&&t.pop(),t.push(o),!0}(n,a);r.resolvedSignature=Za(n,y,s,a,h,void 0,o,b,i)}return r.resolvedSignature}function eo(n){var t=yt(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 71:return"arguments"===t.escapedText&&e.isExpressionNode(t);case 151:case 153:case 155:case 156:return 146===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function no(n){if(!n)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var a=n.declarations[r];switch(a.kind){case 162:case 163:case 232:case 153:case 152:case 154:case 157:case 158:case 159:case 155:case 156:case 190:case 191:case 280:if(r>0&&a.body){var i=n.declarations[r-1];if(a.parent===i.parent&&a.kind===i.kind&&a.pos===i.end)break}t.push($i(a))}}return t}function to(e){if(e.thisParameter)return ca(e.thisParameter)}function ro(e){return void 0!==ao(e)}function ao(n){if(!n.resolvedTypePredicate){if(n.target){var t=ao(n.target);n.resolvedTypePredicate=t?(s=t,l=n.mapper,e.isIdentifierTypePredicate(s)?{kind:1,parameterName:s.parameterName,parameterIndex:s.parameterIndex,type:pl(s.type,l)}:{kind:0,type:pl(s.type,l)}):an}else if(n.unionSignatures)n.resolvedTypePredicate=function(n){for(var t,r=[],a=0,i=n;a<i.length;a++){var o=i[a],s=ao(o);if(s){if(t){if(!vs(t,s))return}else t=s;r.push(s.type)}}if(t){var l=gs(r);return e.isIdentifierTypePredicate(t)?Xi(t.parameterName,t.parameterIndex,l):Yi(l)}}(n.unionSignatures)||an;else{var r=n.declaration;n.resolvedTypePredicate=r&&r.type&&160===r.type.kind?(a=r.type,i=a.parameterName,o=Qs(a.type),71===i.kind?Xi(i&&i.escapedText,i&&function(e,n){if(e)for(var t=0;t<e.length;t++){var r=e[t];if(71===r.name.kind&&r.name.escapedText===n.escapedText)return t}return-1}(a.parent.parameters,i),o):Yi(o)):an}e.Debug.assert(!!n.resolvedTypePredicate)}var a,i,o,s,l;return n.resolvedTypePredicate===an?void 0:n.resolvedTypePredicate}function io(n){if(!n.resolvedReturnType){if(!Pr(n,3))return ee;var t=void 0;if(t=n.target?pl(io(n.target),n.mapper):n.unionSignatures?gs(e.map(n.unionSignatures,io),2):cp(n.declaration),!Gr()&&(t=Q,I)){var r=n.declaration,a=e.getNameOfDeclaration(r);a?lt(a,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(a)):lt(r,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}n.resolvedReturnType=t}return n.resolvedReturnType}function oo(n){if(n.hasRestParameter){var t=ca(e.lastOrUndefined(n.parameters));if(4&e.getObjectFlags(t)&&t.target===De)return t.typeArguments[0]}return Q}function so(n,t,r){t=Zi(t,n.typeParameters,Qi(n.typeParameters),r);var a=n.instantiations||(n.instantiations=e.createMap()),i=Eo(t),o=a.get(i);return o||a.set(i,o=lo(n,t)),o}function lo(e,n){return sl(e,co(e,n),!0)}function co(e,n){return nl(e.typeParameters,n)}function uo(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return sl(e,tl(e.typeParameters),!0)}(e)):e}function mo(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=function(n){return so(n,e.map(n.typeParameters,function(e){return e.target&&!Si(e.target)?e.target:e}),e.isInJavaScriptFile(n.declaration))}(n)):n}function po(n){var t=n.typeParameters;if(t){var r=tl(t);return sl(n,nl(t,e.map(t,function(e){return pl(Ci(e),r)||ve})),!0)}return n}function fo(n){if(!n.isolatedSignatureType){var t=154===n.declaration.kind||158===n.declaration.kind,r=dr(16);r.members=S,r.properties=e.emptyArray,r.callSignatures=t?e.emptyArray:[n],r.constructSignatures=t?[n]:e.emptyArray,n.isolatedSignatureType=r}return n.isolatedSignatureType}function go(e){return e.members.get("__index")}function vo(e,n){var t=1===n?134:137,r=go(e);if(r)for(var a=0,i=r.declarations;a<i.length;a++){var o=i[a];if(1===o.parameters.length){var s=o.parameters[0];if(s&&s.type&&s.type.kind===t)return o}}}function _o(e,n,t){return{type:e,isReadonly:n,declaration:t}}function yo(n,t){var r=vo(n,t);if(r)return _o(r.type?Qs(r.type):Q,e.hasModifier(r,64),r)}function ho(n){if(!n.constraint)if(n.target){var t=Si(n.target);n.constraint=t?pl(t,n.mapper):Ee}else{var r=(a=n).symbol&&e.getDeclarationOfKind(a.symbol,147).constraint;n.constraint=r?Qs(r):function(n){var t;if(n.symbol)for(var r=0,a=n.symbol.declarations;r<a.length;r++){var i=a[r];if(171===i.parent.kind&&161===i.parent.parent.kind){var o=i.parent.parent,s=nf(o);if(s){var l=o.typeArguments.indexOf(i.parent);if(l<s.length){var c=Si(s[l]);if(c){var u=pl(c,nl(s,$p(o,s)));u!==n&&(t=e.append(t,u))}}}}}return t&&bs(t)}(n)||Ee}var a;return n.constraint===Ee?void 0:n.constraint}function bo(n){return ar(e.getDeclarationOfKind(n.symbol,147).parent)}function Eo(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 To(e,n){for(var t=0,r=0,a=e;r<a.length;r++){var i=a[r];i.flags&n||(t|=i.flags)}return 117440512&t}function So(e,n){var t=Eo(n),r=e.instantiations.get(t);return r||(r=dr(4,e.symbol),e.instantiations.set(t,r),r.flags|=n?To(n,0):0,r.target=e,r.typeArguments=n),r}function Lo(e){var n=cr(e.flags);return n.symbol=e.symbol,n.objectFlags=e.objectFlags,n.target=e.target,n.typeArguments=e.typeArguments,n}function Ao(n){return e.length(n.target.typeParameters)}function xo(n,t,r){var a=Ra(rr(t)),i=a.localTypeParameters;if(i){var o=e.length(n.typeArguments),s=Qi(i),l=e.isInJavaScriptFile(n);if((I||!l)&&(o<s||o>i.length)){var c=l&&285!==n.parent.kind;if(lt(n,s===i.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,Cr(a,void 0,2),s,i.length),!l)return ee}return So(a,e.concatenate(a.outerTypeParameters,Zi(r,i,s,l)))}return wo(n,t)?a:ee}function Co(n,t){var r=Ra(n),a=_t(n),i=a.typeParameters,o=Eo(t),s=a.instantiations.get(o);return s||a.instantiations.set(o,s=pl(r,nl(i,Zi(t,i,Qi(i),e.isInJavaScriptFile(n.valueDeclaration))))),s}function ko(n){switch(n.kind){case 161:return n.typeName;case 205:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function Mo(e,n){return e&&Ut(e,n)||X}function Do(n,t,r){return 96&t.flags?xo(n,t,r):524288&t.flags?function(n,t,r){var a=Ra(t),i=_t(t).typeParameters;if(i){var o=e.length(n.typeArguments),s=Qi(i);return o<s||o>i.length?(lt(n,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ar(t),s,i.length),ee):Co(t,r)}return wo(n,t)?a:ee}(n,t,r):16&t.flags&&No(n)&&(t.members||e.getJSDocClassTag(t.valueDeclaration))?Jm(t):void 0}function Oo(e){return 167===e.kind&&1===e.elementTypes.length}function Ro(e,n,t){return Oo(n)&&Oo(t)?Ro(e,n.elementTypes[0],t.elementTypes[0]):Is(Qs(n))===e?Qs(t):void 0}function Io(n,t){for(var r;e.isPartOfTypeNode(t);){var a=t.parent;if(170===a.kind&&t===a.trueType){var i=Ro(n,a.checkType,a.extendsType);i&&(r=e.append(r,i))}t=a}return r?function(e,n){var t=cr(4194304);return t.typeVariable=e,t.substitute=n,t}(n,bs(e.append(r,n))):n}function No(e){return 1048576&e.flags&&161===e.kind}function wo(n,t){return!n.typeArguments||(lt(n,e.Diagnostics.Type_0_is_not_generic,t?Ar(t):e.declarationNameToString(n.typeName)),!1)}function Po(n){var t=yt(n);if(!t.resolvedType){var r=void 0,a=void 0,i=67901928;No(n)&&(a=function(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return wo(n),ie;case"Number":return wo(n),oe;case"Boolean":return wo(n),ce;case"Void":return wo(n),de;case"Undefined":return wo(n),ne;case"Null":return wo(n),re;case"Function":case"function":return wo(n),Me;case"Array":case"array":return t&&t.length?void 0:Fe;case"Promise":case"promise":return t&&t.length?void 0:sp(Q);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=Qs(t[0]),a=_o(Qs(t[1]),!1);return gr(void 0,S,e.emptyArray,e.emptyArray,r===ie&&a,r===oe&&a)}return Q}return wo(n),Q}}}(n),i|=67216319),a||(a=function(e,n){var t=Fo(e);if(n===X)return ee;var r=Do(e,n,t);if(r)return r;var a=Ia(n);if(a)return wo(e,n)?32768&a.flags?Io(a,e):a:ee;if(!(67216319&n.flags&&No(e)))return ee;var i=qm(n),o=ca(n),s=o.symbol&&!Xm(o)&&Do(e,o.symbol,t);return s||i?s&&i?bs([i,s]):s||i:(Mo(ko(e),67901928),o)}(n,r=Mo(ko(n),i))),t.resolvedSymbol=r,t.resolvedType=a}return t.resolvedType}function Fo(n){return e.map(n.typeArguments,Qs)}function Vo(e){var n=yt(e);return n.resolvedType||(n.resolvedType=Sc(Bp(e.exprName))),n.resolvedType}function Go(n,t){function r(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];switch(r.kind){case 233:case 234:case 236:return r}}}if(!n)return t?he:ve;var a=Ra(n);return 65536&a.flags?e.length(a.typeParameters)!==t?(lt(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?he:ve):a:(lt(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?he:ve)}function Ho(n,t){return Ko(n,67216319,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Ko(e,n,t){return Tt(void 0,e,n,t,e,!1)}function Bo(n,t,r){var a=function(n,t){return Ko(n,67901928,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}(n,r);return a||r?Go(a,t):void 0}function Uo(e){return Ke||(Ke=Ho("Symbol",e))}function jo(e){return Be||(Be=Bo("Symbol",0,e))||ve}function Wo(e){return je||(je=Bo("Promise",1,e))||he}function qo(e){return We||(We=Ho("Promise",e))}function zo(e){return Ye||(Ye=Bo("AsyncIterable",1,e))||he}function Jo(e){return Qe||(Qe=Bo("AsyncIterator",1,e))||he}function Xo(e){return Ze||(Ze=Bo("AsyncIterableIterator",1,e))||he}function Yo(e){return ze||(ze=Bo("Iterable",1,e))||he}function Qo(e){return Je||(Je=Bo("Iterator",1,e))||he}function Zo(e){return Xe||(Xe=Bo("IterableIterator",1,e))||he}function $o(e,n){void 0===n&&(n=0);var t=Ko(e,67901928,void 0);return t&&Go(t,n)}function es(e,n){return e!==he?So(e,n):ve}function ns(e){return es(Ue||(Ue=Bo("TypedPropertyDescriptor",1,!0))||he,[e])}function ts(e){return es(Xo(!0),[e])}function rs(e){return es(Yo(!0),[e])}function as(e){return es(Zo(!0),[e])}function is(e){return es(De,[e])}function os(n){return B[n]||(B[n]=function(n){for(var t=[],r=[],a=0;a<n;a++){var i=cr(32768);t.push(i);var o=ct(4,""+a);o.type=i,r.push(o)}var s=ct(4,"length");s.type=Js(n),r.push(s);var l=dr(12);return l.typeParameters=t,l.outerTypeParameters=void 0,l.localTypeParameters=t,l.instantiations=e.createMap(),l.instantiations.set(Eo(l.typeParameters),l),l.target=l,l.typeArguments=l.typeParameters,l.thisType=cr(32768),l.thisType.isThisType=!0,l.thisType.constraint=l,l.declaredProperties=r,l.declaredCallSignatures=e.emptyArray,l.declaredConstructSignatures=e.emptyArray,l.declaredStringIndexInfo=void 0,l.declaredNumberIndexInfo=void 0,l}(n))}function ss(e){return So(os(e.length),e)}function ls(e){return e.id}function cs(n,t){return e.binarySearch(n,t,ls,e.compareValues)>=0}function us(n,t,r){var a=r.flags;if(131072&a)t=ds(n,t,r.types);else if(1&a)t|=1,r===$&&(t|=4096);else if(!D&&12288&a)4096&a&&(t|=2),8192&a&&(t|=4),16777216&a||(t|=16);else if(!(16384&a||262144&a&&function(e){for(var n=0,t=0,r=e.types;t<r.length;t++){var a=r[t];if(13536&a.flags&&13536&n)return!0;if(12288&(n|=a.flags)&&134283264&n)return!0}return!1}(r))){2&a&&(t|=32),4&a&&(t|=64),512&a&&(t|=128),1120&a&&(t|=256);var i=n.length,o=i&&r.id>n[i-1].id?~i:e.binarySearch(n,r,ls,e.compareValues);o<0&&(65536&a&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&ms(n,r)||n.splice(~o,0,r))}return t}function ds(e,n,t){for(var r=0,a=t;r<a.length;r++)n=us(e,n,a[r]);return n}function ms(e,n){for(var t=0,r=e;t<r.length;t++)if(bl(r[t],n))return!0;return!1}function ps(n,t){for(var r=0,a=t;r<a.length;r++){var i=a[r];if(n!==i&&Sl(n,i)&&(!(1&e.getObjectFlags(da(n)))||!(1&e.getObjectFlags(da(i)))||Al(n,i)))return!0}return!1}function fs(n){if(0!==n.length&&!function(e){var n=e[0];if(256&n.flags){for(var t=ir(n.symbol),r=1;r<e.length;r++){var a=e[r];if(!(256&a.flags)||t!==ir(a.symbol))return!1}return!0}return!1}(n))for(var t=n.length;t>0;)ps(n[--t],n)&&e.orderedRemoveItemAt(n,t)}function gs(n,t,r,a){if(void 0===t&&(t=1),0===n.length)return me;if(1===n.length)return n[0];var i=[],o=ds(i,0,n);if(1&o)return 4096&o?$:Q;switch(t){case 1:256&o&&function(n,t){for(var r=n.length;r>0;){var a=n[--r];(32&a.flags&&32&t||64&a.flags&&64&t||1024&a.flags&&128&t||96&a.flags&&8388608&a.flags&&cs(n,a.regularType))&&e.orderedRemoveItemAt(n,r)}}(i,o);break;case 2:fs(i)}return 0===i.length?4&o?16&o?re:ae:2&o?16&o?ne:te:me:_s(i,r,a)}function vs(n,t){return e.isIdentifierTypePredicate(n)?e.isIdentifierTypePredicate(t)&&n.parameterIndex===t.parameterIndex:!e.isIdentifierTypePredicate(t)}function _s(e,n,t){if(0===e.length)return me;if(1===e.length)return e[0];var r=Eo(e),a=U.get(r);return a||(a=cr(131072|To(e,12288)),U.set(r,a),a.types=e,a.aliasSymbol=n,a.aliasTypeArguments=t),a}function ys(n,t,r){var a=r.flags;return 262144&a?t=hs(n,t,r.types):1&a?(t|=1,r===$&&(t|=4096)):16384&a?t|=8:16&e.getObjectFlags(r)&&Il(r)?t|=1024:!D&&12288&a||e.contains(n,r)||(65536&a&&(t|=512),131072&a&&(t|=2048),65536&a&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&ms(n,r)||n.push(r)),t}function hs(e,n,t){for(var r=0,a=t;r<a.length;r++)n=ys(e,n,zs(a[r]));return n}function bs(n,t,r){if(0===n.length)return ve;var a=[],i=hs(a,0,n);if(8&i)return me;if(1&i)return 4096&i?$:Q;if(1024&i&&!(512&i)&&a.push(ve),1===a.length)return a[0];if(2048&i){var o=e.findIndex(a,function(e){return 0!=(131072&e.flags)}),s=a[o];return gs(e.map(s.types,function(n){return bs(e.replaceElement(a,o,n))}),1,t,r)}var l=Eo(a),c=j.get(l);return c||(c=cr(262144|To(a,12288)),j.set(l,c),c.types=a,c.aliasSymbol=t,c.aliasTypeArguments=r),c}function Es(n){var t=_t(Xa(n));return t.nameType||(t.target&&t.target!==X&&t.target!==Y?(e.Debug.assert(t.target.escapedName===n.escapedName||"__computed"===t.target.escapedName,"Target symbol and symbol do not have the same name"),t.nameType=Es(t.target)):t.nameType=24&e.getDeclarationModifierFlagsFromSymbol(n)||e.isKnownSymbol(n)?me:Js(e.symbolName(n))),t.nameType}function Ts(n){return 262144&n.flags?gs(e.map(n.types,function(e){return Ts(e)})):Ep(n,7372800)?function(e){return e.resolvedIndexType||(e.resolvedIndexType=cr(524288),e.resolvedIndexType.type=e),e.resolvedIndexType}(n):32&e.getObjectFlags(n)?ui(n):n===$?$:1&n.flags||Bi(n,0)?ie:function(n){return gs(e.map(Ei(n),Es))}(n)}function Ss(n,t,r,a){var i=r&&184===r.kind?r:void 0,o=Ka(t)?Wa(t):i&&fm(i.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(i.argumentExpression.name)):void 0;if(void 0!==o){var s=Fi(n,o);if(s){if(i){if(um(s,i,99===i.expression.kind),e.isAssignmentTarget(i)&&(yp(i,s)||hp(i)))return lt(i.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ar(s)),ee;a&&(yt(r).resolvedSymbol=s)}return ca(s)}}if(!(12288&t.flags)&&Tp(t,525942)){if(Br(n))return n;var l=Tp(t,84)&&Bi(n,1)||Bi(n,0)||void 0;if(l)return i&&l.isReadonly&&(e.isAssignmentTarget(i)||e.isDeleteTarget(i))&<(i,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Cr(n)),l.type;if(i&&!Lp(n))return I&&!A.suppressImplicitAnyIndexErrors&&(Ui(n,1)?lt(i.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):lt(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Cr(n))),Q}if(r){var c=184===r.kind?r.argumentExpression:r.indexType;return 96&t.flags?lt(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+t.value,Cr(n)):6&t.flags?lt(c,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Cr(n),Cr(t)):lt(c,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Cr(t)),ee}return Q}function Ls(e){return Ep(e,544243712)}function As(e){return Ep(e,7897088)}function xs(e){if(65536&e.flags&&!vi(e)){var n=_i(e);return 0===n.properties.length&&0===n.callSignatures.length&&0===n.constructSignatures.length&&n.stringIndexInfo&&!n.numberIndexInfo}return!1}function Cs(n){return 32&e.getObjectFlags(n)&&di(n)===me}function ks(n){var t=n.objectType;if(262144&t.flags&&Ls(t)){if(e.some(t.types,xs)){for(var r=[],a=[],i=0,o=t.types;i<o.length;i++){var s=o[i];xs(s)?a.push(Ui(s,0)):r.push(s)}return gs([Ds(bs(r),n.indexType),bs(a)])}if(e.some(t.types,Cs))return Ds(bs(e.filter(t.types,function(e){return!Cs(e)})),n.indexType)}if(vi(t))return Ms(t,n);if(32768&t.flags){var l=ho(t);if(l&&vi(l))return Ms(l,n)}}function Ms(e,n){var t=nl([ci(e)],[n.indexType]),r=rl(e.mapper,t);return pl(di(e),r)}function Ds(e,n,t){if(e===$||n===$)return $;if(As(n)||(!t||184!==t.kind)&&Ls(e)){if(1&e.flags)return e;var r=e.id+","+n.id,a=q.get(r);return a||q.set(r,a=function(e,n){var t=cr(1048576);return t.objectType=e,t.indexType=n,t}(e,n)),a}var i=Ii(e);if(131072&n.flags&&!(8&n.flags)){for(var o=[],s=0,l=n.types;s<l.length;s++){var c=Ss(i,l[s],t,!1);if(c===ee)return ee;o.push(c)}return gs(o)}return Ss(i,n,t,!0)}function Os(e){var n=yt(e);if(!n.resolvedType){var t=Qs(e.objectType),r=Qs(e.indexType),a=Ds(t,r,e);n.resolvedType=1048576&a.flags&&a.objectType===t&&a.indexType===r?Io(a,e):a}return n.resolvedType}function Rs(e){var n=yt(e);if(!n.resolvedType){var t=dr(32,e.symbol);t.declaration=e,t.aliasSymbol=Gs(e),t.aliasTypeArguments=Hs(e),n.resolvedType=t,ui(t)}return n.resolvedType}function Is(e){return 4194304&e.flags?e.typeVariable:e}function Ns(e,n){var t=pl(e.checkType,n),r=pl(e.extendsType,n);if(t===$||r===$)return $;if(!e.isDistributive||!Ep(t,7897088)){var a=void 0;if(e.inferTypeParameters){var i=kc(e.inferTypeParameters,void 0,0);Fc(i.inferences,t,r,96),a=rl(n,i)}if(1&t.flags)return gs([pl(e.trueType,a||n),pl(e.falseType,n)]);var o=a?pl(e.extendsType,a):r;if(!Ll(fl(t),fl(o)))return pl(e.falseType,n);if(Vl(t,o,nt,void 0))return pl(e.trueType,a||n)}var s=Is(t),l=cr(2097152);return l.root=e,l.checkType=s,l.extendsType=r,l.mapper=n,l.aliasSymbol=e.aliasSymbol,l.aliasTypeArguments=$s(e.aliasTypeArguments,n),l}function ws(e){return e.resolvedTrueType||(e.resolvedTrueType=pl(e.root.trueType,e.mapper))}function Ps(e){return e.resolvedFalseType||(e.resolvedFalseType=pl(e.root.falseType,e.mapper))}function Fs(n){var t;return n.locals&&n.locals.forEach(function(n){262144&n.flags&&(t=e.append(t,Ra(n)))}),t}function Vs(n){var t=yt(n);if(!t.resolvedType){var r=Gs(n);if(0!==Ja(n.symbol).size||r){var a=dr(16,n.symbol);a.aliasSymbol=r,a.aliasTypeArguments=Hs(n),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(a=is(a)),t.resolvedType=a}else t.resolvedType=ye}return t.resolvedType}function Gs(e){return 235===e.parent.kind?ar(e.parent):void 0}function Hs(e){var n=Gs(e);return n?va(n):void 0}function Ks(n,t,r,a,i){if(1&n.flags||1&t.flags)return Q;if(16384&n.flags)return t;if(16384&t.flags)return n;if(131072&n.flags)return hu(n,function(e){return Ks(e,t,r,a,i)});if(131072&t.flags)return hu(t,function(e){return Ks(n,e,r,a,i)});if(134742526&t.flags)return n;var o,s,l=e.createSymbolTable(),c=e.createUnderscoreEscapedMap();n===ve?(o=Bi(t,0),s=Bi(t,1)):(o=oi(Bi(n,0),Bi(t,0)),s=oi(Bi(n,1),Bi(t,1)));for(var u=0,d=Ei(t);u<d.length;u++){var m=65536&(v=d[u]).flags&&!(32768&v.flags);24&e.getDeclarationModifierFlagsFromSymbol(v)?c.set(v.escapedName,!0):js(v)||m||l.set(v.escapedName,Bs(v))}for(var p=0,f=Ei(n);p<f.length;p++){var g=f[p];if(!(65536&g.flags&&!(32768&g.flags)||c.has(g.escapedName)||js(g)))if(l.has(g.escapedName)){var v,_=ca(v=l.get(g.escapedName));if(16777216&v.flags){var y=e.concatenate(g.declarations,v.declarations),h=ct(4|16777216&g.flags,g.escapedName);h.type=gs([ca(g),tu(_,131072)]),h.leftSpread=g,h.rightSpread=v,h.declarations=y,l.set(g.escapedName,h)}}else l.set(g.escapedName,Bs(g))}var b=gr(r,l,e.emptyArray,e.emptyArray,Us(o),Us(s));return b.flags|=33554432|a,b.objectFlags|=1152|i,b}function Bs(e){if(!_p(e))return e;var n=ct(4|16777216&e.flags,e.escapedName);return n.type=ca(e),n.declarations=e.declarations,n.syntheticOrigin=e,n}function Us(e){return e&&e.isReadonly?_o(e.type,!1,e.declaration):e}function js(n){return 8192&n.flags&&e.find(n.declarations,function(n){return e.isClassLike(n.parent)})}function Ws(e,n,t){var r=cr(e);return r.symbol=t,r.value=n,r}function qs(e){if(96&e.flags&&!(8388608&e.flags)){if(!e.freshType){var n=Ws(8388608|e.flags,e.value,e.symbol);n.regularType=e,e.freshType=n}return e.freshType}return e}function zs(e){return 96&e.flags&&8388608&e.flags?e.regularType:e}function Js(e,n,t){var r="number"==typeof e?"#":"@",a=n?n+r+e:r+e,i=W.get(a);if(!i){var o=("number"==typeof e?64:32)|(n?256:0);W.set(a,i=Ws(o,e,t))}return i}function Xs(n){if(e.isValidESSymbolDeclaration(n)){var t=ar(n),r=_t(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=function(e){var n=cr(1024);return n.symbol=e,n}(t))}return ue}function Ys(n){var t=yt(n);return t.resolvedType||(t.resolvedType=function(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;return!r||!e.isClassLike(r)&&234!==r.kind||e.hasModifier(t,32)||154===t.kind&&!e.isNodeDescendantOf(n,t.body)?(lt(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ee):Aa(ar(r)).thisType}(n)),t.resolvedType}function Qs(n){switch(n.kind){case 119:case 275:case 276:return Q;case 137:return ie;case 134:return oe;case 122:return ce;case 138:return ue;case 105:return de;case 140:return ne;case 95:return re;case 131:return me;case 135:return 65536&n.flags?Q:ge;case 173:case 99:return Ys(n);case 177:return function(e){var n=yt(e);return n.resolvedType||(n.resolvedType=zs(Bp(e.literal))),n.resolvedType}(n);case 161:return Po(n);case 160:return ce;case 205:return Po(n);case 164:return Vo(n);case 166:return function(e){var n=yt(e);return n.resolvedType||(n.resolvedType=is(Qs(e.elementType))),n.resolvedType}(n);case 167:return function(n){var t=yt(n);return t.resolvedType||(t.resolvedType=ss(e.map(n.elementTypes,Qs))),t.resolvedType}(n);case 168:return function(n){var t=yt(n);return t.resolvedType||(t.resolvedType=gs(e.map(n.types,Qs),1,Gs(n),Hs(n))),t.resolvedType}(n);case 169:return function(n){var t=yt(n);return t.resolvedType||(t.resolvedType=bs(e.map(n.types,Qs),Gs(n),Hs(n))),t.resolvedType}(n);case 277:return function(e){var n=Qs(e.type);return D?pc(n,8192):n}(n);case 279:return Xr(Qs(n.type));case 172:case 278:case 274:return Qs(n.type);case 281:return function(n){var t=Qs(n.type),r=n.parent,a=r.parent;if(e.isJSDocTypeExpression(r)&&e.isJSDocParameterTag(a)){var i=e.getHostSignatureFromJSDoc(a);if(i){var o=e.lastOrUndefined(i.parameters),s=e.getParameterSymbolFromJSDoc(a);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return is(t)}}return Xr(t)}(n);case 162:case 163:case 165:case 283:case 280:return Vs(n);case 174:return function(n){var t=yt(n);if(!t.resolvedType)switch(n.operator){case 128:t.resolvedType=Ts(Qs(n.type));break;case 141:t.resolvedType=138===n.type.kind?Xs(e.walkUpParenthesizedTypes(n.parent)):ee}return t.resolvedType}(n);case 175:return Os(n);case 176:return Rs(n);case 170:return function(n){var t=yt(n);if(!t.resolvedType){var r=Qs(n.checkType),a=Hs(n),i=fa(n,!0),o=a?i:e.filter(i,function(e){return ul(e,n)}),s={node:n,checkType:r,extendsType:Qs(n.extendsType),trueType:Qs(n.trueType),falseType:Qs(n.falseType),isDistributive:!!(32768&r.flags),inferTypeParameters:Fs(n),outerTypeParameters:o,instantiations:void 0,aliasSymbol:Gs(n),aliasTypeArguments:a};t.resolvedType=Ns(s,void 0),o&&(s.instantiations=e.createMap(),s.instantiations.set(Eo(o),t.resolvedType))}return t.resolvedType}(n);case 171:return function(e){var n=yt(e);return n.resolvedType||(n.resolvedType=Oa(ar(e.typeParameter))),n.resolvedType}(n);case 71:case 145:var t=Vg(n);return t&&Ra(t);default:return ee}}function Zs(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 $s(e,n){return Zs(e,n,pl)}function el(e,n){return Zs(e,n,sl)}function nl(n,t){return e.Debug.assert(void 0===t||n.length===t.length),1===n.length?(s=n[0],l=t?t[0]:Q,function(e){return e===s?l:e}):2===n.length?(r=n[0],a=t?t[0]:Q,i=n[1],o=t?t[1]:Q,function(e){return e===r?a:e===i?o:e}):function(e,n){return function(t){for(var r=0;r<e.length;r++)if(t===e[r])return n?n[r]:Q;return t}}(n,t);var r,a,i,o,s,l}function tl(e){return nl(e,void 0)}function rl(e,n){return e?n?function(t){return pl(e(t),n)}:e:n}function al(e,n,t){return function(r){return r===e?n:t(r)}}function il(e){return 32768&e.flags?$:e}function ol(e){var n=cr(32768);return n.symbol=e.symbol,n.target=e,n}function sl(n,t,r){var a;if(n.typeParameters&&!r){a=e.map(n.typeParameters,ol),t=rl(nl(n.typeParameters,a),t);for(var i=0,o=a;i<o.length;i++)o[i].mapper=t}var s=Za(n.declaration,a,n.thisParameter&&ll(n.thisParameter,t),Zs(n.parameters,t,ll),void 0,void 0,n.minArgumentCount,n.hasRestParameter,n.hasLiteralTypes);return s.target=n,s.mapper=t,s}function ll(n,t){var r=_t(n);if(r.type&&!Ep(r.type,7962624))return n;1&e.getCheckFlags(n)&&(n=r.target,t=rl(r.mapper,t));var a=ct(n.flags,n.escapedName,1);return a.declarations=n.declarations,a.parent=n.parent,a.target=n,a.mapper=t,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.isRestParameter&&(a.isRestParameter=n.isRestParameter),a}function cl(n,t){var r=64&n.objectFlags?n.target:n,a=r.symbol,i=_t(a),o=i.outerTypeParameters;if(!o){var s=a.declarations[0],l=fa(s,!0)||e.emptyArray;o=2048&a.flags&&!r.aliasTypeArguments?e.filter(l,function(e){return ul(e,s)}):l,i.outerTypeParameters=o,o.length&&(i.instantiations=e.createMap(),i.instantiations.set(Eo(o),r))}if(o.length){var c=64&n.objectFlags?rl(n.mapper,t):t,u=e.map(o,c),d=Eo(u),m=i.instantiations.get(d);if(!m){var p=nl(o,u);m=32&r.objectFlags?function(e,n){var t=ui(e);if(524288&t.flags){var r=t.type;if(32768&r.flags){var a=pl(r,n);if(r!==a)return hu(a,function(t){return function(e){return 7700481&e.flags}(t)?dl(e,al(r,t,n)):t})}}return dl(e,n)}(r,p):dl(r,p),i.instantiations.set(d,m)}return m}return n}function ul(n,t){if(n.symbol&&n.symbol.declarations&&1===n.symbol.declarations.length){var r=n.symbol.declarations[0].parent;if(e.findAncestor(t,function(e){return 211===e.kind?"quit":e===r}))return e.forEachChild(t,function t(r){switch(r.kind){case 173:return n.isThisType;case 71:return!n.isThisType&&e.isPartOfTypeNode(r)&&Qs(r)===n;case 164:return!0}return e.forEachChild(r,t)})}return!0}function dl(e,n){var t=dr(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(t.declaration=e.declaration),t.target=e,t.mapper=n,t.aliasSymbol=e.aliasSymbol,t.aliasTypeArguments=$s(e.aliasTypeArguments,n),t}function ml(n,t){var r=n.root;if(r.outerTypeParameters){var a=e.map(r.outerTypeParameters,t),i=Eo(a),o=r.instantiations.get(i);return o||(o=function(e,n){if(e.isDistributive){var t=e.checkType,r=n(t);if(t!==r&&147456&r.flags)return hu(r,function(r){return Ns(e,al(t,r,n))})}return Ns(e,n)}(r,nl(r.outerTypeParameters,a)),r.instantiations.set(i,o)),o}return n}function pl(e,n){if(e&&n&&n!==L){if(32768&e.flags)return n(e);if(65536&e.flags){if(16&e.objectFlags)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?cl(e,n):e;if(32&e.objectFlags)return cl(e,n);if(4&e.objectFlags){var t=e.typeArguments,r=$s(t,n);return r!==t?So(e.target,r):e}}var a,i;if(131072&e.flags&&!(16382&e.flags))return(i=$s(a=e.types,n))!==a?gs(i,1,e.aliasSymbol,$s(e.aliasTypeArguments,n)):e;if(262144&e.flags)return(i=$s(a=e.types,n))!==a?bs(i,e.aliasSymbol,$s(e.aliasTypeArguments,n)):e;if(524288&e.flags)return Ts(pl(e.type,n));if(1048576&e.flags)return Ds(pl(e.objectType,n),pl(e.indexType,n));if(2097152&e.flags)return ml(e,rl(e.mapper,n));if(4194304&e.flags)return pl(e.typeVariable,n)}return e}function fl(e){return 32767&e.flags?e:e.wildcardInstantiation||(e.wildcardInstantiation=pl(e,il))}function gl(e,n){return e&&_o(pl(e.type,n),e.isReadonly,e.declaration)}function vl(n){switch(e.Debug.assert(153!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 190:case 191:case 153:return _l(n);case 182:return e.forEach(n.properties,vl);case 181:return e.forEach(n.elements,vl);case 199:return vl(n.whenTrue)||vl(n.whenFalse);case 198:return 54===n.operatorToken.kind&&(vl(n.left)||vl(n.right));case 268:return vl(n.initializer);case 189:return vl(n.expression);case 261:return e.forEach(n.properties,vl);case 260:return n.initializer&&vl(n.initializer);case 263:return n.expression&&vl(n.expression)}return!1}function _l(n){if(n.typeParameters)return!1;if(e.forEach(n.parameters,function(n){return!e.getEffectiveTypeAnnotationNode(n)}))return!0;if(191!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!e.parameterIsThisKeyword(t))return!0}return 211!==n.body.kind&&vl(n.body)}function yl(n){return(yd(n)||e.isObjectLiteralMethod(n))&&_l(n)}function hl(n){if(65536&n.flags){var t=_i(n);if(t.constructSignatures.length){var r=dr(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(262144&n.flags)return bs(e.map(n.types,hl));return n}function bl(e,n){return Pl(e,n,rt)}function El(e,n){return Pl(e,n,rt)?-1:0}function Tl(e,n){return Pl(e,n,et)?-1:0}function Sl(e,n){return Pl(e,n,$n)}function Ll(e,n){return Pl(e,n,et)}function Al(n,t){return 131072&n.flags?e.every(n.types,function(e){return Al(e,t)}):131072&t.flags?e.some(t.types,function(e){return Al(n,e)}):7372800&n.flags?Al(Ci(n)||ve,t):t===ke||t===Me?Sl(n,t):ma(n,da(t))}function xl(e,n){return Pl(e,n,tt)}function Cl(e,n){return xl(e,n)||xl(n,e)}function kl(e,n,t,r,a){return Vl(e,n,et,t,r,a)}function Ml(e,n,t,r,a){return Vl(e,n,tt,t,r,a)}function Dl(n,t,r,a,i,o,s){if(n===t)return-1;if(!t.hasRestParameter&&n.minArgumentCount>t.parameters.length)return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=Em(n,t=mo(t),void 0,s));var l=t.declaration?t.declaration.kind:0,c=!r&&O&&153!==l&&152!==l&&154!==l,u=-1,d=to(n);if(d&&d!==de){var m=to(t);if(m){if(!(h=!c&&s(d,m,!1)||s(m,d,i)))return i&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;u&=h}}for(var p=Rl(n),f=Rl(t),g=function(e,n,t,r){return e.hasRestParameter===t.hasRestParameter?e.hasRestParameter?Math.max(n,r)+1:Math.min(n,r):e.hasRestParameter?r:n}(n,p,t,f),v=n.parameters,_=t.parameters,y=0;y<g;y++){var h,b=y<p?rp(v[y]):oo(n),E=y<f?rp(_[y]):oo(t),T=r?void 0:bm(gc(b)),S=r?void 0:bm(gc(E));if(!(h=T&&S&&!ro(T)&&!ro(S)&&(12288&uc(b))==(12288&uc(E))?Dl(S,T,c?2:1,!1,i,o,s):!r&&!c&&s(b,E,!1)||s(E,b,i)))return i&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.symbolName(v[y<p?y:p]),e.symbolName(_[y<f?y:f])),0;u&=h}if(!a){var L=io(t);if(L===de)return u;var A=io(n),x=ao(t);if(x){var C=ao(n);if(C)u&=function(n,t,r,a,i,o,s){if(n.kind!==t.kind)return i&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Mr(n),Mr(t))),0;if(1===n.kind){var l=t,c=n.parameterIndex-(e.getThisParameter(r)?1:0),u=l.parameterIndex-(e.getThisParameter(a)?1:0);if(c!==u)return i&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,l.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Mr(n),Mr(t))),0}var d=s(n.type,t.type,i);return 0===d&&i&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Mr(n),Mr(t)),d}(C,x,n.declaration,t.declaration,i,o,s);else if(e.isIdentifierTypePredicate(x))return i&&o(e.Diagnostics.Signature_0_must_be_a_type_predicate,xr(n)),0}else u&=1===r&&s(L,A,!1)||s(A,L,i)}return u}function Ol(e,n){var t=uo(e),r=uo(n),a=io(t),i=io(r);return!(i!==de&&!Pl(i,a,et)&&!Pl(a,i,et))&&0!==Dl(t,r,0,!0,!1,void 0,Tl)}function Rl(e){var n=e.parameters.length;return e.hasRestParameter?n-1:n}function Il(n){return 65536&n.flags?0===(t=_i(n)).properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo:!!(134217728&n.flags)||(131072&n.flags?e.forEach(n.types,Il):!!(262144&n.flags)&&!e.forEach(n.types,function(e){return!Il(e)}));var t}function Nl(n,t,r){if(n===t)return!0;var a=c(n)+","+c(t),i=at.get(a);if(void 0!==i)return i;if(!(n.escapedName===t.escapedName&&256&n.flags&&256&t.flags))return at.set(a,!1),!1;for(var o=ca(t),s=0,l=Ei(ca(n));s<l.length;s++){var u=l[s];if(8&u.flags){var d=Fi(o,u.escapedName);if(!(d&&8&d.flags))return r&&r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),Cr(Ra(t),void 0,64)),at.set(a,!1),!1}}return at.set(a,!0),!0}function wl(e,n,t,r){var a=e.flags,i=n.flags;if(1&i||16384&a||e===$)return!0;if(16384&i)return!1;if(524322&a&&2&i)return!0;if(32&a&&256&a&&32&i&&!(256&i)&&e.value===n.value)return!0;if(84&a&&4&i)return!0;if(64&a&&256&a&&64&i&&!(256&i)&&e.value===n.value)return!0;if(136&a&&8&i)return!0;if(1536&a&&512&i)return!0;if(16&a&&16&i&&Nl(e.symbol,n.symbol,r))return!0;if(256&a&&256&i){if(131072&a&&131072&i&&Nl(e.symbol,n.symbol,r))return!0;if(224&a&&224&i&&e.value===n.value&&Nl(ir(e.symbol),ir(n.symbol),r))return!0}if(4096&a&&(!D||6144&i))return!0;if(8192&a&&(!D||8192&i))return!0;if(65536&a&&134217728&i)return!0;if(1024&a||1024&i)return!1;if(t===et||t===nt||t===tt){if(1&a)return!0;if(68&a&&!(256&a)&&(16&i||64&i&&256&i))return!0}return!1}function Pl(e,n,t){if(96&e.flags&&8388608&e.flags&&(e=e.regularType),96&n.flags&&8388608&n.flags&&(n=n.regularType),e===n||t===tt&&!(16384&n.flags)&&wl(n,e,t)||t!==rt&&wl(e,n,t))return!0;if(65536&e.flags&&65536&n.flags){var r=t.get(jl(e,n,t));if(void 0!==r)return 1===r}return!!(8355840&e.flags||8355840&n.flags)&&Vl(e,n,t,void 0)}function Fl(n,t,r){return 4096&e.getObjectFlags(n)&&!(Dd(t.escapedName)||r)}function Vl(n,t,r,a,i,o){var s,l,c,u,d=0,m=0,p=0,f=!1,g=!1;e.Debug.assert(r!==rt||!a,"no error reporting in identity checking");var v=E(n,t,!!a,i);if(f)lt(a,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Cr(n),Cr(t));else if(s){if(o){var _=o();_&&(s=e.concatenateDiagnosticMessageChains(_,s))}Fn.add(e.createDiagnosticForNodeFromMessageChain(a,s))}if(i&&a&&!v&&n.symbol){var y=_t(n.symbol);y.originatingImport&&!e.isImportCall(y.originatingImport)&&Vl(ca(y.target),t,r,void 0)&&Fn.add(e.createDiagnosticForNode(y.originatingImport,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime))}return 0!==v;function h(n,t,r,i){e.Debug.assert(!!a),s=e.chainDiagnosticMessages(s,n,t,r,i)}function b(n,t,a){var i=Cr(t),o=Cr(a);i===o&&(i=Cr(t,void 0,64),o=Cr(a,void 0,64)),n||(n=r===tt?e.Diagnostics.Type_0_is_not_comparable_to_type_1:i===o?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),h(n,i,o)}function E(n,t,i,o){if(96&n.flags&&8388608&n.flags&&(n=n.regularType),96&t.flags&&8388608&t.flags&&(t=t.regularType),4194304&n.flags&&(n=r===nt?n.typeVariable:n.substitute),4194304&t.flags&&(t=t.typeVariable),n===t)return-1;if(r===rt)return function(e,n){var t,r=e.flags&n.flags;return 65536&r?C(e,n,!1):393216&r&&(t=T(e,n))&&(t&=T(n,e))?t:524288&r?E(e.type,n.type,!1):1048576&r&&(t=E(e.objectType,n.objectType,!1))&&(t&=E(e.indexType,n.indexType,!1))?t:2097152&r&&e.root.isDistributive===n.root.isDistributive&&(t=E(e.checkType,n.checkType,!1))&&(t&=E(e.extendsType,n.extendsType,!1))&&(t&=E(ws(e),ws(n),!1))&&(t&=E(Ps(e),Ps(n),!1))?t:4194304&r?E(e.substitute,n.substitute,!1):0}(n,t);if(r===tt&&!(16384&t.flags)&&wl(t,n,r)||wl(n,t,r,i?h:void 0))return-1;if(Hc(n)&&8388608&n.flags){var l=131072&t.flags?L(n,t):void 0;if(function n(t,i,o,s){if(Ep(i,65536)&&!(512&e.getObjectFlags(i))){var l=!!(4096&e.getObjectFlags(t));if((r===et||r===nt||r===tt)&&(vu(ke,i)||!l&&Il(i)))return!1;if(o)return n(t,o,void 0,s);for(var c=function(n){if(!Xd(i,n.escapedName,l)){if(s)if(e.Debug.assert(!!a),e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a))h(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ar(n),Cr(i));else{var r=t.symbol&&e.firstOrUndefined(t.symbol.declarations),o=void 0;if(n.valueDeclaration&&e.findAncestor(n.valueDeclaration,function(e){return e===r})){var c=n.valueDeclaration;e.Debug.assertNode(c,e.isObjectLiteralElementLike),a=c,e.isIdentifier(c.name)&&(o=om(c.name,i))}void 0!==o?h(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ar(n),Cr(i),o):h(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ar(n),Cr(i))}return{value:!0}}},u=0,d=yi(t);u<d.length;u++){var m=d[u],p=c(m);if("object"==typeof p)return p.value}}return!1}(n,t,l,i))return i&&b(o,n,t),0;(function(e){if(!(393216&e.flags))return!1;for(var n=!1,t=0,r=e.types;t<r.length;t++)if(!(12288&r[t].flags)){if(n)return!0;n=!0}return!1})(t)&&!l&&(n=yc(n))}if(r!==tt&&!(393216&n.flags)&&!(131072&t.flags)&&!g&&n!==ke&&(Ei(n).length>0||Bg(n))&&M(t)&&!function(n,t){for(var r=!!(4096&e.getObjectFlags(n)),a=0,i=Ei(n);a<i.length;a++){var o=i[a];if(Xd(t,o.escapedName,r))return!0}return!1}(n,t)){if(i){var c=Gi(n,0),u=Gi(n,1);c.length>0&&E(io(c[0]),t,!1)||u.length>0&&E(io(u[0]),t,!1)?h(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Cr(n),Cr(t)):h(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Cr(n),Cr(t))}return 0}var d=0,m=s,p=g;return g=!1,131072&n.flags?d=r===tt?x(n,t,i&&!(16382&n.flags)):function(e,n,t){for(var r=-1,a=0,i=e.types;a<i.length;a++){var o=i[a],s=E(o,n,t);if(!s)return 0;r&=s}return r}(n,t,i&&!(16382&n.flags)):(131072&t.flags?d=S(n,t,i&&!(16382&n.flags)&&!(16382&t.flags)):262144&t.flags?(g=!0,d=function(e,n,t){for(var r=-1,a=0,i=n.types;a<i.length;a++){var o=i[a],s=E(e,o,t);if(!s)return 0;r&=s}return r}(n,t,i)):262144&n.flags&&(d=x(n,t,!1)),!d&&(8355840&n.flags||8355840&t.flags)&&(d=C(n,t,i))&&(s=m)),g=p,!d&&i&&(65536&n.flags&&16382&t.flags?function(n,t){var r=Cr(n),a=Cr(t);(Re===n&&ie===t||Ie===n&&oe===t||Ne===n&&ce===t||jo(!1)===n&&ue===t)&&h(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,r)}(n,t):n.symbol&&65536&n.flags&&ke===n&&h(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),b(o,n,t)),d}function T(e,n){for(var t=-1,r=0,a=e.types;r<a.length;r++){var i=S(a[r],n,!1);if(!i)return 0;t&=i}return t}function S(e,n,t){var r=n.types;if(131072&n.flags&&cs(r,e))return-1;for(var a=0,i=r;a<i.length;a++){var o=E(e,i[a],!1);if(o)return o}return t&&E(e,L(e,n)||r[r.length-1],!0),0}function L(e,n){var t,r=yi(e);if(r){var a=function(e,n){for(var t,r=0,a=e;r<a.length;r++){var i=a[r];if(Zc(n,i.escapedName)){if(t){t.push(i);continue}t=[i]}}return t}(r,n);if(a)for(var i=0,o=a;i<o.length;i++)for(var s=o[i],l=ca(s),c=0,u=n.types;c<u.length;c++){var d=u[c],m=Kr(d,s.escapedName);if(m&&E(l,m)){if(d===t)continue;if(t)return;t=d}}}return t}function x(e,n,t){var r=e.types;if(131072&e.flags&&cs(r,n))return-1;for(var a=r.length,i=0;i<a;i++){var o=E(r[i],n,t&&i===a-1);if(o)return o}return 0}function C(n,t,a){if(f)return 0;var i=jl(n,t,r),o=r.get(i);if(void 0!==o){if(!a||2!==o)return 1===o?-1:0;r.set(i,3)}if(l){for(var g=0;g<d;g++)if(i===l[g])return 1;if(100===m)return f=!0,0}else l=[],c=[],u=[];var v=d;l[d]=i,d++,c[m]=n,u[m]=t,m++;var _=p;1&p||!Jl(n,c,m)||(p|=1),2&p||!Jl(t,u,m)||(p|=2);var y=3!==p?function(n,t,a){var i,o,l,c=s;if(32768&t.flags){if(32&e.getObjectFlags(n)&&ui(n)===Ts(t)&&!(4&pi(n))){var u=di(n),d=Ds(t,ci(n));if(i=E(u,d,a))return i}}else if(524288&t.flags){if(524288&n.flags&&(i=E(t.type,n.type,!1)))return i;var m=k(t.type);if(m&&(i=E(n,Ts(m),a)))return i}else if(1048576&t.flags){var m=k(t);if(m&&(i=E(n,m,a)))return s=c,i}else if(vi(t)){var p=di(t),f=pi(t);if(!(8&f)){if(1048576&p.flags&&p.objectType===n&&p.indexType===ci(t))return-1;if(!vi(n)&&ui(t)===Ts(n)){var d=Ds(n,ci(t)),u=di(t);if(i=E(d,u,a))return s=c,i}}}if(32768&n.flags){var m=k(n);if(m||!(134217728&t.flags)){(!m||1&m.flags)&&(m=ve);var g=a&&m!==ve;if(i=E(m,t,g))return s=c,i}}else if(1048576&n.flags){var m=k(n);if(m){if(i=E(m,t,a))return s=c,i}else if(1048576&t.flags&&((i=E(n.objectType,t.objectType,a))&&(i&=E(n.indexType,t.indexType,a)),i))return s=c,i}else if(2097152&n.flags){if(2097152&t.flags){if(bl(n.checkType,t.checkType)&&bl(n.extendsType,t.extendsType)&&((i=E(ws(n),ws(t),a))&&(i&=E(Ps(n),Ps(t),a)),i))return s=c,i}else if(r!==nt){var v=Ai(n);if(v&&(i=E(v,t,a)))return s=c,i;var _=Li(n);if(_&&(i=E(_,t,a)))return s=c,i}}else{if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&n.target===t.target&&!(8192&e.getObjectFlags(n)||8192&e.getObjectFlags(t))){var y=Hl(n.target);if(i=function(n,t,a,i){var o=n.typeArguments||e.emptyArray,s=t.typeArguments||e.emptyArray;if(o.length!==s.length&&r===rt)return 0;for(var l=o.length<=s.length?o.length:s.length,c=-1,u=0;u<l;u++){var d=u<a.length?a[u]:1;if(4!==d){var m=o[u],p=s[u],f=-1;if(1===d?f=E(m,p,i):2===d?f=E(p,m,i):3===d?(f=E(p,m,!1))||(f=E(m,p,i)):(f=E(m,p,i))&&(f&=E(p,m,i)),!f)return 0;c&=f}}return c}(n,t,y,a))return i;if(y!==e.emptyArray&&!function(e,n){for(var t=0;t<n.length;t++)if(1===n[t]&&2048&e.typeArguments[t].flags)return!0;return!1}(t,y)){if(!a||!e.some(y,function(e){return 0===e}))return 0;o=s,s=c}}var b=!!(16382&n.flags);if(r!==rt&&(n=Ii(n)),327680&n.flags&&65536&t.flags){var T=a&&s===c&&!b;if(l=t,32&e.getObjectFlags(l)&&4&pi(l)&&!vi(n)&&Il(n)?i=-1:vi(t)?i=vi(n)?function(e,n,t){var a;if((r===tt||(r===rt?pi(e)===pi(n):gi(e)<=gi(n)))&&(a=E(ui(n),ui(e),t))){var i=nl([ci(e)],[ci(n)]);return a&E(pl(di(e),i),di(n),t)}return 0}(n,t,T):0:(i=function(n,t,a){if(r===rt)return function(e,n){if(!(65536&e.flags&&65536&n.flags))return 0;var t=yi(e),r=yi(n);if(t.length!==r.length)return 0;for(var a=-1,i=0,o=t;i<o.length;i++){var s=o[i],l=hi(n,s.escapedName);if(!l)return 0;var c=Xl(s,l,E);if(!c)return 0;a&=c}return a}(n,t);var i,o,s=!(r!==$n||Hc(n)||(i=n,o=$l(i)?i.typeArguments[0]:void 0,o===te||o===fe)),l=wc(n,t,s);if(l)return a&&h(e.Diagnostics.Property_0_is_missing_in_type_1,Ar(l),Cr(n)),0;if(Hc(t))for(var c=0,u=Ei(n);c<u.length;c++){var d=u[c];if(!hi(t,d.escapedName)){var m=ca(d);if(m!==ne&&m!==te)return a&&h(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ar(d),Cr(t)),0}}for(var p=-1,f=0,g=yi(t);f<g.length;f++){var v=g[f];if(!(4194304&v.flags)){var d=Fi(n,v.escapedName);if(d&&d!==v){if(Fl(n,d,ca(v)))continue;var _=e.getDeclarationModifierFlagsFromSymbol(d),y=e.getDeclarationModifierFlagsFromSymbol(v);if(8&_||8&y){if(256&e.getCheckFlags(d))return a&&h(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Ar(d),Cr(n)),0;if(d.valueDeclaration!==v.valueDeclaration)return a&&(8&_&&8&y?h(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ar(v)):h(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ar(v),Cr(8&_?n:t),Cr(8&_?t:n))),0}else if(16&y){if(!zl(d,v))return a&&h(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ar(v),Cr(ql(d)||n),Cr(ql(v)||t)),0}else if(16&_)return a&&h(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ar(v),Cr(n),Cr(t)),0;var b=E(ca(d),ca(v),a);if(!b)return a&&h(e.Diagnostics.Types_of_property_0_are_incompatible,Ar(v)),0;if(p&=b,r!==tt&&16777216&d.flags&&!(16777216&v.flags))return a&&h(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ar(v),Cr(n),Cr(t)),0}}}return p}(n,t,T))&&(i&=D(n,t,0,T))&&(i&=D(n,t,1,T))&&(i&=I(n,t,0,b,T))&&(i&=I(n,t,1,b,T)),i){if(!o)return s=c,i;s=o}}}return 0}(n,t,a):1;if(p=_,m--,y){if(-1===y||0===m){for(g=v;g<d;g++)r.set(l[g],1);d=v}}else r.set(i,a?3:2),d=v;return y}function k(e){return r===nt?void 0:Ti(e)}function M(n){if(65536&n.flags){var t=_i(n);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo&&t.properties.length>0&&e.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&n.flags)&&e.every(n.types,M)}function D(n,t,a,i){if(r===rt)return function(e,n,t){var r=Gi(e,t),a=Gi(n,t);if(r.length!==a.length)return 0;for(var i=-1,o=0;o<r.length;o++){var s=Yl(r[o],a[o],!1,!1,!1,E);if(!s)return 0;i&=s}return i}(n,t,a);if(t===be||n===be)return-1;var o=Gi(n,a),l=Gi(t,a);if(1===a&&o.length&&l.length){if(e.isAbstractConstructorType(n)&&!e.isAbstractConstructorType(t))return i&&h(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.getSelectedModifierFlags(n.declaration,24),i=e.getSelectedModifierFlags(t.declaration,24);return 8===i||(16===i&&8!==a||(16!==i&&!a||(r&&h(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Dr(a),Dr(i)),!1)))}(o[0],l[0],i))return 0}var c=-1,u=s;if(64&e.getObjectFlags(n)&&64&e.getObjectFlags(t)&&n.symbol===t.symbol)for(var d=0;d<l.length;d++){if(!(b=O(o[d],l[d],!0,i)))return 0;c&=b}else if(1===o.length&&1===l.length){var m=r===tt||A.noStrictGenericChecks;c=O(o[0],l[0],m,i)}else e:for(var p=0,f=l;p<f.length;p++){for(var g=f[p],v=i,_=0,y=o;_<y.length;_++){var b;if(b=O(y[_],g,!0,v)){c&=b,s=u;continue e}v=!1}return v&&h(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Cr(n),xr(g,void 0,void 0,a)),0}return c}function O(e,n,t,r){return Dl(t?uo(e):e,t?uo(n):n,0,!1,r,h,E)}function R(n,t,r){var a=E(n.type,t.type,r);return!a&&r&&h(e.Diagnostics.Index_signatures_are_incompatible),a}function I(n,t,a,i,o){if(r===rt)return function(e,n,t){var r=Bi(n,t),a=Bi(e,t);return a||r?a&&r&&a.isReadonly===r.isReadonly?E(a.type,r.type):0:-1}(n,t,a);var s=Bi(t,a);if(!s||1&s.type.flags&&!i)return-1;var l=Bi(n,a)||1===a&&Bi(n,0);if(l)return R(l,s,o);if(vi(n))return 0===a&&E(di(n),s.type,o);if(vc(n)){var c=-1;if(0===a){var u=Bi(n,1);u&&(c=R(u,s,o))}return c&&(c&=function(n,t,r,a){for(var i=-1,o=0,s=yi(n);o<s.length;o++){var l=s[o];if(!Fl(n,l,void 0)){var c=Es(l);if((void 0===c||E(c,ie)||E(c,oe))&&(0===r||Ad(l.escapedName))){var u=E(ca(l),t,a);if(!u)return a&&h(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Ar(l)),0;i&=u}}}return i}(n,s.type,a,o)),c}return o&&h(e.Diagnostics.Index_signature_is_missing_in_type_0,Cr(n)),0}}function Gl(n,t,r){var a=So(n,e.map(n.typeParameters,function(e){return e===t?r:e}));return a.objectFlags|=8192,a}function Hl(n){if(!O)return e.emptyArray;var t=n.typeParameters||e.emptyArray,r=n.variances;if(!r){if(n===De||n===Oe)r=[1];else{n.variances=e.emptyArray,r=[];for(var a=0,i=t;a<i.length;a++){var o=i[a],s=Gl(n,o,Le),l=Gl(n,o,Ae),c=(Ll(l,s)?1:0)|(Ll(s,l)?2:0);3===c&&Ll(Gl(n,o,rn),s)&&(c=4),r.push(c)}}n.variances=r}return r}function Kl(e){return 32768&e.flags&&!ho(e)}function Bl(n){return 4&e.getObjectFlags(n)&&e.some(n.typeArguments,function(e){return Kl(e)||Bl(e)})}function Ul(e,n,t){void 0===t&&(t=0);for(var r=""+e.target.id,a=0,i=e.typeArguments;a<i.length;a++){var o=i[a];if(Kl(o)){var s=n.indexOf(o);s<0&&(s=n.length,n.push(o)),r+="="+s}else t<4&&Bl(o)?r+="<"+Ul(o,n,t+1)+">":r+="-"+o.id}return r}function jl(e,n,t){if(t===rt&&e.id>n.id){var r=e;e=n,n=r}if(Bl(e)&&Bl(n)){var a=[];return Ul(e,a)+","+Ul(n,a)}return e.id+","+n.id}function Wl(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,a=n.containingType.types;r<a.length;r++){var i=Fi(a[r],n.escapedName),o=i&&Wl(i,t);if(o)return o}}function ql(e){return e.parent&&32&e.parent.flags?Ra(ir(e)):void 0}function zl(n,t){return!Wl(t,function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t))&&(r=n,a=ql(t),!Wl(r,function(e){var n=ql(e);return!!n&&ma(n,a)}));var r,a})}function Jl(e,n,t){if(t>=5&&65536&e.flags){var r=e.symbol;if(r)for(var a=0,i=0;i<t;i++){var o=n[i];if(65536&o.flags&&o.symbol===r&&++a>=5)return!0}}return!1}function Xl(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(ug(n)!==ug(t))return 0}else if((16777216&n.flags)!=(16777216&t.flags))return 0;return _p(n)!==_p(t)?0:r(ca(n),ca(t))}function Yl(n,t,r,a,i,o){if(n===t)return-1;if(!function(e,n,t){if(e.parameters.length===n.parameters.length&&e.minArgumentCount===n.minArgumentCount&&e.hasRestParameter===n.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,a=n.hasRestParameter?1:0;return!!(t&&e.minArgumentCount<=n.minArgumentCount&&(r>a||r===a&&e.parameters.length>=n.parameters.length))}(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;n=uo(n),t=uo(t);var s=-1;if(!a){var l=to(n);if(l){var c=to(t);if(c){if(!(m=o(l,c)))return 0;s&=m}}}for(var u=t.parameters.length,d=0;d<u;d++){var m;if(!(m=o(Ql(n,d)?oo(n):rp(n.parameters[d]),Ql(t,d)?oo(t):rp(t.parameters[d]))))return 0;s&=m}if(!i){var p=ao(n),f=ao(t);s&=void 0!==p||void 0!==f?function(e,n,t){return void 0!==e&&void 0!==n&&vs(e,n)?t(e.type,n.type):0}(p,f,o):o(io(n),io(t))}return s}function Ql(e,n){return e.hasRestParameter&&n>=e.parameters.length-1}function Zl(n){return function(e){for(var n,t=0,r=e;t<r.length;t++){var a=r[t],i=ac(a);if(n||(n=i),i===a||i!==n)return!1}return!0}(n)?gs(n):e.reduceLeft(n,function(e,n){return Sl(e,n)?n:e})}function $l(n){return 4&e.getObjectFlags(n)&&n.target===De}function ec(n){return 4&e.getObjectFlags(n)&&(n.target===De||n.target===Oe)||!(12288&n.flags)&&Ll(n,Ge)}function nc(e){return!!Fi(e,"0")}function tc(e){return!!(13536&e.flags)}function rc(n){return!!(8&n.flags)||(131072&n.flags?!!(256&n.flags)||!e.forEach(n.types,function(e){return!tc(e)}):tc(n))}function ac(n){return 256&n.flags?ka(n):32&n.flags?ie:64&n.flags?oe:128&n.flags?ce:131072&n.flags?gs(e.sameMap(n.types,ac)):n}function ic(n){return 256&n.flags?ka(n):32&n.flags&&8388608&n.flags?ie:64&n.flags&&8388608&n.flags?oe:128&n.flags?ce:131072&n.flags?gs(e.sameMap(n.types,ic)):n}function oc(n){return 1024&n.flags?ue:131072&n.flags?gs(e.sameMap(n.types,oc)):n}function sc(n,t){return function n(t,r){if(r){if(393216&r.flags){var a=r.types;return e.some(a,function(e){return n(t,e)})}if(7372800&r.flags){var i=Ci(r)||ve;return 2&i.flags&&Ep(t,32)||4&i.flags&&Ep(t,64)||8&i.flags&&Ep(t,128)||512&i.flags&&Ep(t,1024)||n(t,i)}return 524320&r.flags&&Ep(t,32)||64&r.flags&&Ep(t,64)||128&r.flags&&Ep(t,128)||1024&r.flags&&Ep(t,1024)}return!1}(n,t)||(n=oc(ic(n))),n}function lc(n){return!!(4&e.getObjectFlags(n)&&8&n.target.objectFlags)}function cc(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=uc(r[t]);return n}function uc(e){return 131072&e.flags?cc(e.types):32&e.flags?""===e.value?32:0:64&e.flags?0===e.value?64:0:128&e.flags?e===le?128:0:14574&e.flags}function dc(e){return 14560&uc(e)?yu(e,function(e){return!(14560&uc(e))}):e}function mc(e){return 2&e.flags?yn:4&e.flags?hn:8&e.flags||e===le?le:14336&e.flags||32&e.flags&&""===e.value||64&e.flags&&0===e.value?e:me}function pc(e,n){var t=n&~e.flags&12288;return 0===t?e:gs(4096===t?[e,ne]:8192===t?[e,re]:[e,ne,re])}function fc(n){return e.Debug.assert(D),4096&n.flags?n:gs([n,ne])}function gc(e){return D?function(e){return He||(He=Ko("NonNullable",524288,void 0)||X),He!==X?Co(He,[e]):tu(e,524288)}(e):e}function vc(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!Bg(e)}function _c(e,n){var t=ct(e.flags,e.escapedName);return t.declarations=e.declarations,t.parent=e.parent,t.type=n,t.target=e,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),t}function yc(n){if(!(Hc(n)&&8388608&n.flags))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=yi(n);a<i.length;a++){var o=i[a],s=ca(o),l=t(s);r.set(o.escapedName,l===s?o:_c(o,l))}return r}(n,yc),i=gr(r.symbol,a,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return i.flags=-8388609&r.flags,i.objectFlags|=128,n.regularType=i,i}function hc(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedPropertyNames:void 0}}function bc(n){if(!n.resolvedPropertyNames){for(var t=e.createMap(),r=0,a=function e(n){if(!n.siblings){for(var t=[],r=0,a=e(n.parent);r<a.length;r++){var i=a[r];if(Hc(i)){var o=hi(i,n.propertyName);o&&_u(ca(o),function(e){t.push(e)})}}n.siblings=t}return n.siblings}(n);r<a.length;r++){var i=a[r];if(Hc(i)&&!(1024&e.getObjectFlags(i)))for(var o=0,s=Ei(i);o<s.length;o++){var l=s[o];t.set(l.escapedName,!0)}}n.resolvedPropertyNames=e.arrayFrom(t.keys())}return n.resolvedPropertyNames}function Ec(e,n){var t=ca(e),r=Lc(t,n&&hc(n,e.escapedName,void 0));return r===t?e:_c(e,r)}function Tc(n){var t=J.get(n);if(t)return t;var r=ct(16777220,n);r.type=ne;var a=Js(e.unescapeLeadingUnderscores(n));return 32&a.flags&&(r.nameType=a),J.set(n,r),r}function Sc(e){return Lc(e,void 0)}function Lc(n,t){if(50331648&n.flags){if(12288&n.flags)return Q;if(Hc(n))return function(n,t){for(var r=e.createSymbolTable(),a=0,i=yi(n);a<i.length;a++){var o=i[a];r.set(o.escapedName,4&o.flags?Ec(o,t):o)}if(t)for(var s=0,l=bc(t);s<l.length;s++){var c=l[s];r.has(c)||r.set(c,Tc(c))}var u=Bi(n,0),d=Bi(n,1);return gr(n.symbol,r,e.emptyArray,e.emptyArray,u&&_o(Sc(u.type),u.isReadonly),d&&_o(Sc(d.type),d.isReadonly))}(n,t);if(131072&n.flags){var r=t||hc(void 0,void 0,n.types),a=e.sameMap(n.types,function(e){return 12288&e.flags?e:Lc(e,r)});return gs(a,e.some(a,Il)?2:1)}if($l(n)||lc(n))return So(n.target,e.sameMap(n.typeArguments,Sc))}return n}function Ac(n,t){var r,a=Cr(Sc(t));switch(n.kind){case 151:case 150:r=e.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 148:r=n.dotDotDotToken?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 180:r=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 232:case 153:case 152:case 155:case 156:case 190:case 191:if(!n.name)return void lt(n,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);r=e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;case 176:return void lt(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);default:r=e.Diagnostics.Variable_0_implicitly_has_an_1_type}lt(n,r,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}function xc(n,t){a&&I&&16777216&t.flags&&(function n(t){var r=!1;if(16777216&t.flags){if(131072&t.flags)if(e.some(t.types,Il))r=!0;else for(var a=0,i=t.types;a<i.length;a++)n(u=i[a])&&(r=!0);if($l(t)||lc(t))for(var o=0,s=t.typeArguments;o<s.length;o++)n(u=s[o])&&(r=!0);if(Hc(t))for(var l=0,c=yi(t);l<c.length;l++){var u,d=c[l];16777216&(u=ca(d)).flags&&(n(u)||lt(d.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Ar(d),Cr(Sc(u))),r=!0)}}return r}(t)||Ac(n,t))}function Cc(e,n,t){var r,a=e.parameters.length,i=n.parameters.length;r=e.hasRestParameter&&n.hasRestParameter?Math.max(a,i):e.hasRestParameter?i:n.hasRestParameter?a:Math.min(a,i);for(var o=0;o<r;o++)t(ap(e,o),ap(n,o))}function kc(e,n,t,r,a){var i=a?a.map(Dc):e.map(Mc),o=function(e){for(var n=0;n<i.length;n++)if(e===i[n].typeParameter)return i[n].isFixed=!0,Uc(o,n);return e};return o.typeParameters=e,o.signature=n,o.inferences=i,o.flags=t,o.compareTypes=r||Tl,o}function Mc(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Dc(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}}function Oc(n){var t=e.getObjectFlags(n);return!!(7897088&n.flags||4&t&&e.forEach(n.typeArguments,Oc)||16&t&&n.symbol&&10288&n.symbol.flags||32&t||393216&n.flags&&function(n){return void 0===n.couldContainTypeVariables&&(n.couldContainTypeVariables=e.forEach(n.types,Oc)),n.couldContainTypeVariables}(n))}function Rc(n,t){return n===t||393216&n.flags&&e.forEach(n.types,function(e){return Rc(e,t)})}function Ic(e,n){var t=e.id+","+n.id;if(pn.has(t))return pn.get(t);pn.set(t,void 0);var r=function(e,n){var t=Ei(e);if(0!==t.length||Bi(e,0)){for(var r=0,a=t;r<a.length;r++){var i=a[r];if(67108864&ca(i).flags)return}var o=dr(2064,void 0);return o.source=e,o.mappedType=n,o}}(e,n);return pn.set(t,r),r}function Nc(e,n){var t=Ds(ui(n).type,ci(n)),r=di(n),a=Mc(t);return Fc([a],e,r),Pc(a)}function wc(e,n,t){for(var r=0,a=262144&n.flags?bi(n):yi(n);r<a.length;r++){var i=a[r];if((t||!(16777216&i.flags))&&!Fi(e,i.escapedName))return i}}function Pc(e){return e.candidates?gs(e.candidates,2):e.contraCandidates?bs(e.contraCandidates):ve}function Fc(n,t,r,a){var i,o;void 0===a&&(a=0);var s,l=!1;function c(n,t){if(Oc(t)){if(n===$){var p=s;return s=n,c(t,t),void(s=p)}if(n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol)for(var f=n.aliasTypeArguments,g=t.aliasTypeArguments,v=0;v<f.length;v++)c(f[v],g[v]);else{if(131072&n.flags&&131072&t.flags&&!(256&n.flags&&256&t.flags)||262144&n.flags&&262144&t.flags){if(n===t){for(var _=0,y=n.types;_<y.length;_++)c(I=y[_],I);return}for(var h=void 0,b=0,E=n.types;b<E.length;b++)if(Vc(I=E[b],t.types))(h||(h=[])).push(I),c(I,I);else if(96&I.flags){var T=ac(I);Vc(T,t.types)&&(h||(h=[])).push(I,T)}h&&(n=Gc(n,h),t=Gc(t,h))}if(1081344&t.flags){if(67108864&n.flags||n===pe)return;var S=d(t);if(S){if(!S.isFixed){if((void 0===S.priority||a<S.priority)&&(S.candidates=void 0,S.contraCandidates=void 0,S.priority=a),a===S.priority){var L=s||n;l?S.contraCandidates=e.append(S.contraCandidates,L):S.candidates=e.append(S.candidates,L)}8&a||!(32768&t.flags)||Rc(r,t)||(S.topLevel=!1)}return}}if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&n.target===t.target){f=n.typeArguments||e.emptyArray,g=t.typeArguments||e.emptyArray;var A=f.length<g.length?f.length:g.length,x=Hl(n.target);for(v=0;v<A;v++)v<x.length&&2===x[v]?u(f[v],g[v]):c(f[v],g[v])}else if(524288&n.flags&&524288&t.flags)l=!l,c(n.type,t.type),l=!l;else if((rc(n)||2&n.flags)&&524288&t.flags){var C=function(n){var t=e.createSymbolTable();_u(n,function(n){if(32&n.flags){var r=e.escapeLeadingUnderscores(n.value),a=ct(4,r);a.type=Q,n.symbol&&(a.declarations=n.symbol.declarations,a.valueDeclaration=n.symbol.valueDeclaration),t.set(r,a)}});var r=2&n.flags?_o(ve,!1):void 0;return gr(void 0,t,e.emptyArray,e.emptyArray,r,void 0)}(n);l=!l;var k=a;a|=16,c(C,t.type),a=k,l=!l}else if(1048576&n.flags&&1048576&t.flags)c(n.objectType,t.objectType),c(n.indexType,t.indexType);else if(2097152&n.flags&&2097152&t.flags)c(n.checkType,t.checkType),c(n.extendsType,t.extendsType),c(ws(n),ws(t)),c(Ps(n),Ps(t));else if(393216&t.flags){for(var M=0,D=void 0,O=0,R=g=t.types;O<R.length;O++){var I;d(I=R[O])?(D=I,M++):c(n,I)}1===M&&(k=a,a|=1,c(n,D),a=k)}else if(131072&n.flags)for(var N=0,w=f=n.types;N<w.length;N++)c(w[N],t);else if(32&a&&8159232&n.flags||(n=Ii(n)),327680&n.flags){var P=n.id+","+t.id;if(o&&o.get(P))return;(o||(o=e.createMap())).set(P,!0);var F=65536&t.flags&&!(16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)?t.symbol:void 0;if(F){if(e.contains(i,F))return;(i||(i=[])).push(F),m(n,t),i.pop()}else m(n,t)}}}}function u(e,n){O||64&a?(l=!l,c(e,n),l=!l):c(e,n)}function d(e){if(1081344&e.flags)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(e===a.typeParameter)return a}}function m(n,t){if(vi(n)&&vi(t)&&(c(ui(n),ui(t)),c(di(n),di(t))),32&e.getObjectFlags(t)){var r=ui(t);if(524288&r.flags){var i=d(r.type);if(i&&!i.isFixed){var o=Ic(n,t);if(o){var s=a;a|=2,c(o,i.typeParameter),a=s}}return}if(32768&r.flags)return s=a,a|=4,c(Ts(n),r),a=s,void c(gs(e.map(Ei(n),ca)),di(t))}wc(n,t,!1)&&wc(t,n,!1)||(function(e,n){for(var t=0,r=yi(n);t<r.length;t++){var a=r[t],i=Fi(e,a.escapedName);i&&c(ca(i),ca(a))}}(n,t),p(n,t,0),p(n,t,1),function(e,n){var t=Ui(n,0);if(t){var r=Ui(e,0)||ji(e,0);r&&c(r,t)}var a=Ui(n,1);if(a){var r=Ui(e,1)||Ui(e,0)||ji(e,1);r&&c(r,a)}}(n,t))}function p(e,n,t){for(var r=Gi(e,t),a=Gi(n,t),i=r.length,o=a.length,s=i<o?i:o,l=0;l<s;l++)f(po(r[i-s+l]),po(a[o-s+l]))}function f(e,n){Cc(e,n,u);var t=ao(e),r=ao(n);t&&r&&t.kind===r.kind?c(t.type,r.type):c(io(e),io(n))}c(t,r)}function Vc(e,n){for(var t=0,r=n;t<r.length;t++)if(bl(r[t],e))return!0;return!1}function Gc(e,n){for(var t=[],r=0,a=e.types;r<a.length;r++){var i=a[r];Vc(i,n)||t.push(i)}return 131072&e.flags?gs(t):bs(t)}function Hc(n){return!!(128&e.getObjectFlags(n))}function Kc(n){return 28&n.priority?bs(n.contraCandidates):(t=n.contraCandidates,e.reduceLeft(t,function(e,n){return Sl(n,e)?n:e}));var t}function Bc(n,t,r){var a,i,o=function(n){if(n.length>1){var t=e.filter(n,Hc);if(t.length){var r=Sc(gs(t,2));return e.concatenate(e.filter(n,function(e){return!Hc(e)}),[r])}}return n}(n.candidates),s=!n.topLevel||(a=n.typeParameter,(i=Si(a))&&Ep(i,540670))||!n.isFixed&&Rc(io(r),n.typeParameter)?o:e.sameMap(o,ic);return Sc(1&t.flags||28&n.priority?gs(s,2):function(n){if(!D)return Zl(n);var t=e.filter(n,function(e){return!(12288&e.flags)});return t.length?pc(Zl(t),12288&cc(n)):gs(n,2)}(s))}function Uc(e,n){var t=e.inferences[n],r=t.inferredType;if(!r){var a=e.signature;if(a)if(t.candidates)16384&(r=Bc(t,e,a)).flags&&t.contraCandidates&&(r=Kc(t));else if(t.contraCandidates)r=Kc(t);else if(2&e.flags)r=pe;else{var i=Ri(t.typeParameter);r=i?pl(i,rl(function(e,n){return function(t){return e.indexOf(t)>=n?ve:t}}(e.signature.typeParameters,n),e)):jc(!!(4&e.flags))}else r=Pc(t);r=oc(r),t.inferredType=r;var o=Si(t.typeParameter);if(o){var s=pl(o,e);e.compareTypes(r,Ya(s,r))||(t.inferredType=r=oc(s))}}return r}function jc(e){return e?Q:ve}function Wc(e){for(var n=[],t=0;t<e.inferences.length;t++)n.push(Uc(e,t));return n}function qc(n){var t=yt(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&Tt(n,n.escapedText,68264895,e.Diagnostics.Cannot_find_name_0,n,!e.isWriteOnlyAccess(n),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||X),t.resolvedSymbol}function zc(n){return!!e.findAncestor(n,function(e){return 164===e.kind||71!==e.kind&&145!==e.kind&&"quit"})}function Jc(n){if(178!==n.parent.kind)return""+n.parent.elements.indexOf(n);var t=n.propertyName||n.name;switch(t.kind){case 71:return e.idText(t);case 146:return e.isStringOrNumericLiteral(t.expression)?t.expression.text:void 0;case 9:case 8:return t.text;default:e.Debug.fail("Unexpected name kind for binding element name")}}function Xc(e,n){switch(e.kind){case 71:return 71===n.kind&&qc(e)===qc(n)||(230===n.kind||180===n.kind)&&or(qc(e))===ar(n);case 99:return 99===n.kind;case 97:return 97===n.kind;case 183:return 183===n.kind&&e.name.escapedText===n.name.escapedText&&Xc(e.expression,n.expression);case 180:if(183!==n.kind)return!1;var t=n;if(t.name.escapedText!==Jc(e))return!1;if(180===e.parent.parent.kind&&Xc(e.parent.parent,t.expression))return!0;if(230===e.parent.parent.kind){var r=e.parent.parent.initializer;return r&&Xc(r,t.expression)}}return!1}function Yc(e,n){for(;183===e.kind;)if(Xc(e=e.expression,n))return!0;return!1}function Qc(e,n){return 183===n.kind&&Yc(e,n.expression)&&Zc(function e(n){if(71===n.kind)return ca(qc(n));if(183===n.kind){var t=e(n.expression);return t&&Kr(t,n.name.escapedText)}}(n.expression),n.name.escapedText)}function Zc(n,t){if(n&&131072&n.flags){var r=wi(n,t);if(r&&2&e.getCheckFlags(r))return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=32&r.checkFlags&&rc(ca(r))),r.isDiscriminantProperty}return!1}function $c(e,n){return Xc(e,n)||Yc(e,n)}function eu(e,n){if(e!==n){if(16384&n.flags)return n;var t=yu(e,function(e){return function(e,n){if(!(131072&e.flags))return Ll(e,n);for(var t=0,r=e.types;t<r.length;t++)if(Ll(r[t],n))return!0;return!1}(n,e)});if(!(16384&t.flags))return t}return e}function nu(e){var n=e.flags;if(2&n)return D?4079361:4194049;if(32&n){var t=""===e.value;return D?t?3030785:1982209:t?3145473:4194049}if(20&n)return D?4079234:4193922;if(64&n){var r=0===e.value;return D?r?3030658:1982082:r?3145346:4193922}return 8&n?D?4078980:4193668:136&n?D?e===le?3030404:1981828:e===le?3145092:4193668:65536&n?function(e){var n=_i(e);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&Sl(e,Me))}(e)?D?1970144:4181984:D?1972176:4184016:6144&n?2457472:8192&n?2340752:1536&n?D?1981320:4193160:134217728&n?D?1972176:4184016:7897088&n?nu(Ci(e)||ve):393216&n?function(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=nu(r[t]);return n}(e.types):4194303}function tu(e,n){return yu(e,function(e){return 0!=(nu(e)&n)})}function ru(e,n){if(n){var t=Kp(n);return gs([tu(e,131072),t])}return e}function au(n,t){var r=e.getTextOfPropertyName(t);return Kr(n,r)||Ad(r)&&Ui(n,1)||Ui(n,0)||ee}function iu(e,n){return nc(e)&&Kr(e,""+n)||Jf(e,void 0,!1,!1)||ee}function ou(e){return is(Jf(e,void 0,!1,!1)||ee)}function su(e){return 198===e.parent.kind&&e.parent.left===e||220===e.parent.kind&&e.parent.initializer===e}function lu(e){return au(cu(e.parent),e.name)}function cu(e){var n=e.parent;switch(n.kind){case 219:return ie;case 220:return zf(n.expression,n.awaitModifier)||ee;case 198:return function(e){return 181===e.parent.kind&&su(e.parent)||268===e.parent.kind&&su(e.parent.parent)?ru(cu(e),e.right):Kp(e.right)}(n);case 192:return ne;case 181:return function(e,n){return iu(cu(e),e.elements.indexOf(n))}(n,e);case 202:return function(e){return ou(cu(e.parent))}(n);case 268:return lu(n);case 269:return function(e){return ru(lu(e),e.objectAssignmentInitializer)}(n)}return ee}function uu(e){return e.initializer?function(e){return yt(e).resolvedType||Kp(e)}(e.initializer):219===e.parent.parent.kind?ie:220===e.parent.parent.kind&&zf(e.parent.parent.expression,e.parent.parent.awaitModifier)||ee}function du(e){return 230===e.kind?uu(e):function(e){var n=e.parent,t=du(n.parent);return ru(178===n.kind?au(t,e.propertyName||e.name):e.dotDotDotToken?ou(t):iu(t,n.elements.indexOf(e)),e.initializer)}(e)}function mu(e){return 230===e.kind||180===e.kind?du(e):cu(e)}function pu(e){switch(e.kind){case 189:return pu(e.expression);case 198:switch(e.operatorToken.kind){case 58:return pu(e.left);case 26:return pu(e.right)}}return e}function fu(e){if(264===e.kind){var n=zs(Kp(e.expression));return tc(n)?n:void 0}return me}function gu(n){var t=yt(n);if(!t.switchTypes){t.switchTypes=[];for(var r=0,a=n.caseBlock.clauses;r<a.length;r++){var i=fu(a[r]);if(void 0===i)return t.switchTypes=e.emptyArray;t.switchTypes.push(i)}}return t.switchTypes}function vu(e,n){return e===n||131072&n.flags&&function(e,n){if(131072&e.flags){for(var t=0,r=e.types;t<r.length;t++){var a=r[t];if(!cs(n.types,a))return!1}return!0}return!!(256&e.flags&&ka(e)===n)||cs(n.types,e)}(e,n)}function _u(n,t){return 131072&n.flags?e.forEach(n.types,t):t(n)}function yu(n,t){if(131072&n.flags){var r=n.types,a=e.filter(r,t);return a===r?n:_s(a)}return t(n)?n:me}function hu(e,n,t){if(16384&e.flags)return e;if(!(131072&e.flags))return n(e);for(var r,a,i=0,o=e.types;i<o.length;i++){var s=n(o[i]);s&&(r?a?a.push(s):a=[r,s]:r=s)}return a?gs(a,t?0:1):r}function bu(e,n){return yu(e,function(e){return 0!=(e.flags&n)})}function Eu(e,n){return vu(ie,e)&&Ep(n,32)||vu(oe,e)&&Ep(n,64)?hu(e,function(e){return 2&e.flags?bu(n,34):4&e.flags?bu(n,68):e}):e}function Tu(e){return 0===e.flags}function Su(e){return 0===e.flags?e.type:e}function Lu(e,n){return n?{flags:0,type:e}:e}function Au(e){return z[e.id]||(z[e.id]=function(e){var n=dr(256);return n.elementType=e,n}(e))}function xu(e,n){var t=ac(function(e){var n=e.contextualType;e.contextualType=Q;var t=Kp(e);return e.contextualType=n,t}(n));return vu(t,e.elementType)?e:Au(gs([e.elementType,t]))}function Cu(e){return e.finalArrayType||(e.finalArrayType=16384&(n=e.elementType).flags?Ve:is(131072&n.flags?gs(n.types,2):n));var n}function ku(n){return 256&e.getObjectFlags(n)?Cu(n):n}function Mu(n){return 256&e.getObjectFlags(n)?n.elementType:me}function Du(n,t){return function(n){for(var t=!1,r=0,a=n;r<a.length;r++){var i=a[r];if(!(16384&i.flags)){if(!(256&e.getObjectFlags(i)))return!1;t=!0}}return t}(n)?Au(gs(e.map(n,Mu))):gs(e.sameMap(n,ku),t)}function Ou(n){var t=function e(n){var t=n.parent;return 189===t.kind||198===t.kind&&58===t.operatorToken.kind&&t.left===n||198===t.kind&&26===t.operatorToken.kind&&t.right===n?e(t):n}(n),r=t.parent,a=183===r.kind&&("length"===r.name.escapedText||185===r.parent.kind&&e.isPushOrUnshiftIdentifier(r.name)),i=184===r.kind&&r.expression===t&&198===r.parent.kind&&58===r.parent.operatorToken.kind&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&Tp(Kp(r.argumentExpression),84);return a||i}function Ru(n){var t=yt(n);return void 0===t.maybeTypePredicate&&(t.maybeTypePredicate=function(n){if(97!==n.expression.kind){var t=em(n.expression);if(t!==pe){var r=Ii(t);return r!==ee&&e.some(Gi(r,0),ro)}}return!1}(n)),t.maybeTypePredicate}function Iu(n,t,r,a,i){var s;void 0===r&&(r=t);var l=0;if(_n)return ee;if(!n.flowNode||!i&&!(142575359&t.flags))return t;var u=vn,d=Su(p(n.flowNode));vn=u;var m=256&e.getObjectFlags(d)&&Ou(n)?Fe:ku(d);return n.parent&&207===n.parent.kind&&16384&tu(m,524288).flags?t:m;function p(i){if(2500===l)return _n=!0,o=n,s=e.findAncestor(o,e.isFunctionOrModuleBlock),c=e.getSourceFileOfNode(o),d=e.getSpanOfTokenAtPosition(c,s.statements.pos),Fn.add(e.createFileDiagnostic(c,d.start,d.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),ee;var o,s,c,d;for(l++;;){var m=i.flags;if(1024&m)for(var b=u;b<vn;b++)if(Rn[b]===i)return l--,In[b];var E=void 0;if(4096&m)i.locked=!0,E=p(i.antecedent),i.locked=!1;else{if(2048&m){i=i.antecedent;continue}if(16&m){if(!(E=f(i))){i=i.antecedent;continue}}else if(96&m)E=v(i);else if(128&m)E=_(i);else if(12&m){if(1===i.antecedents.length){i=i.antecedents[0];continue}E=4&m?y(i):h(i)}else if(256&m){if(!(E=g(i))){i=i.antecedent;continue}}else if(2&m){var T=i.container;if(T&&T!==a&&183!==n.kind&&99!==n.kind){i=T.flowNode;continue}E=r}else E=Gf(t)}return 1024&m&&(Rn[vn]=i,In[vn]=E,vn++),l--,E}}function f(r){var a=r.node;if(Xc(n,a)){if(2===e.getAssignmentTargetKind(a)){var i=p(r.antecedent);return Lu(ac(Su(i)),Tu(i))}if(t===Z||t===Ve){if(function(e){return 230===e.kind&&e.initializer&&Jr(e.initializer)||180!==e.kind&&198===e.parent.kind&&Jr(e.parent.right)}(a))return Au(me);var o=ac(mu(a));return Ll(o,t)?o:Fe}return 131072&t.flags?eu(t,mu(a)):t}if(Yc(n,a))return t}function g(r){if(t===Z||t===Ve){var a=r.node,i=185===a.kind?a.expression.expression:a.left.expression;if(Xc(n,pu(i))){var o=p(r.antecedent),s=Su(o);if(256&e.getObjectFlags(s)){var l=s;if(185===a.kind)for(var c=0,u=a.arguments;c<u.length;c++)l=xu(l,u[c]);else Tp(Kp(a.left.argumentExpression),84)&&(l=xu(l,a.right));return l===s?o:Lu(l,Tu(o))}return o}}}function v(e){var n=p(e.antecedent),t=Su(n);if(16384&t.flags)return n;var r=0!=(32&e.flags),a=ku(t),i=O(a,e.expression,r);if(i===a)return n;var o=Tu(n);return Lu(o&&16384&i.flags?pe:i,o)}function _(e){var t=p(e.antecedent),r=Su(t),a=e.switchStatement.expression;return Xc(n,a)?r=C(r,e.switchStatement,e.clauseStart,e.clauseEnd):b(a,r)&&(r=E(r,a,function(n){return C(n,e.switchStatement,e.clauseStart,e.clauseEnd)})),Lu(r,Tu(t))}function y(n){for(var a=[],i=!1,o=!1,s=0,l=n.antecedents;s<l.length;s++){var c=l[s];if(!(2048&c.flags&&c.lock.locked)){var u=p(c),d=Su(u);if(d===t&&t===r)return d;e.pushIfUnique(a,d),vu(d,t)||(i=!0),Tu(u)&&(o=!0)}}return Lu(Du(a,i?2:1),o)}function h(r){var a=function(e){return e.id||(e.id=o,o++),e.id}(r),i=kn[a]||(kn[a]=e.createMap());if(!s&&!(s=function n(t){if(71===t.kind){var r=qc(t);return r!==X?(Vu(t)?"@":"")+c(r):void 0}if(99===t.kind)return"0";if(183===t.kind)return(i=n(t.expression))&&i+"."+e.idText(t.name);if(180===t.kind){var a=t.parent.parent,i=180===a.kind?n(a):a.initializer&&n(a.initializer),o=Jc(t);return i&&o&&i+"."+o}}(n)))return t;var l=i.get(s);if(l)return l;for(var u=fn;u<gn;u++)if(Mn[u]===r&&Dn[u]===s&&On[u].length)return Lu(Du(On[u],1),!0);var d,m=[],f=!1;Mn[gn]=r,Dn[gn]=s,On[gn]=m;for(var g=0,v=r.antecedents;g<v.length;g++){var _=v[g];gn++;var y=p(_);gn--,d||(d=y);var h=Su(y),b=i.get(s);if(b)return b;if(e.pushIfUnique(m,h),vu(h,t)||(f=!0),h===t)break}var E=Du(m,f?2:1);return Tu(d)?Lu(E,!0):(i.set(s,E),E)}function b(e,t){return 183===e.kind&&131072&t.flags&&Xc(n,e.expression)&&Zc(t,e.name.escapedText)}function E(e,n,t){var r=n.name.escapedText,a=Kr(e,r),i=a&&t(a);return a===i?e:yu(e,function(e){return xl(Kr(e,r),i)})}function T(e,r,a){return Xc(n,r)?tu(e,a?1048576:2097152):b(r,t)?E(e,r,function(e){return tu(e,a?1048576:2097152)}):Qc(n,r)?t:e}function S(n,t,r){if(196608&n.flags||32768&n.flags&&n.isThisType){var a=e.escapeLeadingUnderscores(t.text);return yu(n,function(e){return function(e,n,t){if(Bi(e,0))return!0;var r=Fi(e,n);return r?!!(16777216&r.flags)||t:!t}(e,a,r)})}return n}function L(r,a,i){switch(a.operatorToken.kind){case 58:return T(r,a.left,i);case 32:case 33:case 34:case 35:var o=a.operatorToken.kind,s=pu(a.left),l=pu(a.right);if(193===s.kind&&e.isStringLiteralLike(l))return x(r,s,o,l,i);if(193===l.kind&&e.isStringLiteralLike(s))return x(r,l,o,s,i);if(Xc(n,s))return A(r,o,l,i);if(Xc(n,l))return A(r,o,s,i);if(b(s,t))return E(r,s,function(e){return A(e,o,l,i)});if(b(l,t))return E(r,l,function(e){return A(e,o,s,i)});if(Qc(n,s)||Qc(n,l))return t;break;case 93:return function(r,a,i){var o=pu(a.left);if(!Xc(n,o))return Yc(n,o)?t:r;var s,l=Kp(a.right);if(!Sl(l,Me))return r;var c=Fi(l,"prototype");if(c){var u=ca(c);Br(u)||(s=u)}if(Br(r)&&(s===ke||s===Me))return r;if(!s){var d=void 0;2&e.getObjectFlags(l)?d=Ha(l).declaredConstructSignatures:16&e.getObjectFlags(l)&&(d=Gi(l,1)),d&&d.length&&(s=gs(e.map(d,function(e){return io(uo(e))})))}return s?k(r,s,i,Al):r}(r,a,i);case 92:var c=pu(a.right);if(e.isStringLiteralLike(a.left)&&Xc(n,c))return S(r,a.left,i);break;case 26:return O(r,a.right,i)}return r}function A(e,n,t,r){if(1&e.flags)return e;33!==n&&35!==n||(r=!r);var a=Kp(t);if(12288&a.flags)return D?tu(e,32===n||33===n?r?65536:524288:95===t.kind?r?32768:262144:r?16384:131072):e;if(134283777&e.flags)return e;if(r){var i=yu(e,function(e){return Cl(e,a)});return 16384&i.flags?e:Eu(i,a)}if(tc(a)){var o=zs(a);return yu(e,function(e){return zs(e)!==o})}return e}function x(e,r,a,i,o){var s=pu(r.expression);if(!Xc(n,s))return Yc(n,s)?t:e;if(33!==a&&35!==a||(o=!o),o&&!(131072&e.flags)){var l=Qn.get(i.text);if(l){if(Sl(l,e))return l;if(7897088&e.flags&&Sl(l,Ci(e)||Q))return bs([e,l])}}return tu(e,o?Xn.get(i.text)||64:Yn.get(i.text)||8192)}function C(n,t,r,a){var i=gu(t);if(!i.length)return n;var o=i.slice(r,a),s=r===a||e.contains(o,me),l=gs(o),c=16384&l.flags?me:Eu(yu(n,function(e){return Cl(l,e)}),l);if(!s)return c;var u=yu(n,function(n){return!(tc(n)&&e.contains(i,zs(n)))});return 16384&c.flags?u:gs([c,u])}function k(e,n,t,r){if(!t)return yu(e,function(e){return!r(e,n)});if(131072&e.flags){var a=yu(e,function(e){return r(e,n)});if(!(16384&a.flags))return a}return Sl(n,e)?n:Ll(e,n)?e:Ll(n,e)?n:bs([e,n])}function M(r,a,i){if(!function(e,n){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if($c(n,r[t]))return!0;return!(183!==e.expression.kind||!$c(n,e.expression.expression))}(a,n)||!Ru(a))return r;var o=jm(a),s=ao(o);if(!s)return r;if(Br(r)&&(s.type===ke||s.type===Me))return r;if(e.isIdentifierTypePredicate(s)){var l=a.arguments[s.parameterIndex-(o.thisParameter?1:0)];if(l){if(Xc(n,l))return k(r,s.type,i,Sl);if(Yc(n,l))return t}}else{var c=e.skipParentheses(a.expression);if(184===c.kind||183===c.kind){var u=c,d=e.skipParentheses(u.expression);if(Xc(n,d))return k(r,s.type,i,Sl);if(Yc(n,d))return t}}return r}function O(e,n,t){switch(n.kind){case 71:case 99:case 97:case 183:return T(e,n,t);case 185:return M(e,n,t);case 189:return O(e,n.expression,t);case 198:return L(e,n,t);case 196:if(51===n.operator)return O(e,n.operand,!t)}return e}}function Nu(n){return e.findAncestor(n.parent,function(n){return e.isFunctionLike(n)&&!e.getImmediatelyInvokedFunctionExpression(n)||238===n.kind||272===n.kind||151===n.kind})}function wu(n){var t,r=e.getRootDeclaration(n.valueDeclaration).parent,a=yt(r);return 4194304&a.flags||(a.flags|=4194304,t=r,e.findAncestor(t.parent,function(n){return e.isFunctionLike(n)&&!!(4194304&yt(n).flags)})||Pu(r)),n.isAssigned||!1}function Pu(n){if(71===n.kind){if(e.isAssignmentTarget(n)){var t=qc(n);t.valueDeclaration&&148===e.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0)}}else e.forEachChild(n,Pu)}function Fu(e){return 3&e.flags&&0!=(2&Yd(e))&&ca(e)!==Ve}function Vu(e){var n=e.parent;return 183===n.kind||185===n.kind&&n.expression===e||184===n.kind&&n.expression===e||180===n.kind&&n.name===e&&!!n.initializer}function Gu(e){return 7372800&e.flags&&Ep(Ci(e)||ve,12288)}function Hu(e,n){return Vu(n)&&_u(e,Gu)?hu(Sc(e),ki):e}function Ku(e,n){!Pt(e,67216319)||zc(n)||$g(Vt(e))||Ht(e)}function Bu(n){var t=qc(n);if(t===X)return ee;if(t===H){var r=e.getContainingFunction(n);return x<2&&(191===r.kind?lt(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(r,256)&<(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)),yt(r).flags|=8192,ca(t)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||Ku(t,n);var a=or(t),i=a.valueDeclaration;if(32&a.flags)if(233===i.kind&&e.nodeIsDecorated(i))for(r=e.getContainingClass(n);void 0!==r;){if(r===i&&r.name!==n){yt(i).flags|=8388608,yt(n).flags|=16777216;break}r=e.getContainingClass(r)}else if(203===i.kind)for(r=e.getThisContainer(n,!1);void 0!==r;){if(r.parent===i){151===r.kind&&e.hasModifier(r,32)&&(yt(i).flags|=8388608,yt(n).flags|=16777216);break}r=e.getThisContainer(r,!1)}wf(n,n),Of(n,n),Rf(n,n),function(n,t){if(!(x>=2||0==(34&t.flags)||267===t.valueDeclaration.parent.kind)){for(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,r),i=r,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}o&&(a&&(yt(i).flags|=65536),218===r.kind&&e.getAncestor(t.valueDeclaration,231).parent===r&&function(n,t){for(var r=n;189===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(196===r.parent.kind||197===r.parent.kind){var i=r.parent;a=43===i.operator||44===i.operator}return!!a&&!!e.findAncestor(r,function(e){return e===t?"quit":e===t.statement})}(n,r)&&(yt(t.valueDeclaration).flags|=2097152),yt(t.valueDeclaration).flags|=262144),a&&(yt(t.valueDeclaration).flags|=131072)}}(n,t);var o=Hu(ca(a),n),s=e.getAssignmentTargetKind(n);if(s){if(!(3&a.flags))return lt(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Ar(t)),ee;if(_p(a))return lt(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ar(t)),ee}var l=2097152&a.flags;if(3&a.flags){if(1===s)return o}else{if(!l)return o;i=e.find(t.declarations,m)}if(!i)return o;for(var c=148===e.getRootDeclaration(i).kind,u=Nu(i),d=Nu(n),p=d!==u,f=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&su(n.parent.parent);d!==u&&(190===d.kind||191===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&(Fu(a)||c&&!wu(a));)d=Nu(d);var g=c||l||p||f||o!==Z&&o!==Ve&&(!D||0!=(1&o.flags)||zc(n)||250===n.parent.kind)||207===n.parent.kind||230===i.kind&&i.exclamationToken||2097152&i.flags,v=Iu(n,o,g?c?function(e,n){return D&&148===n.kind&&n.initializer&&4096&uc(e)&&!(4096&uc(Bp(n.initializer)))?tu(e,131072):e}(o,i):o:o===Z||o===Ve?ne:fc(o),d,!g);if(o===Z||o===Ve){if(v===Z||v===Ve)return I&&(lt(e.getNameOfDeclaration(i),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ar(t),Cr(v)),lt(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ar(t),Cr(v))),Gf(v)}else if(!g&&!(4096&uc(o))&&4096&uc(v))return lt(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ar(t)),o;return s?ac(v):v}function Uu(e,n){yt(e).flags|=2,151===n.kind||154===n.kind?yt(n.parent).flags|=4:yt(n).flags|=4}function ju(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,ju)}function Wu(e){var n=yt(e);return void 0===n.hasSuperCall&&(n.superCall=ju(e.body),n.hasSuperCall=!!n.superCall),n.superCall}function qu(e){return Ta(Ra(ar(e)))===ae}function zu(n,t,r){var a=t.parent;if(e.getClassExtendsHeritageClauseElement(a)&&!qu(a)){var i=Wu(t);(!i||i.end>n.pos)&<(n,r)}}function Ju(n,t){if(void 0===t&&(t=e.getThisContainer(n,!1)),e.isFunctionLike(t)&&(!nd(n)||e.getThisParameter(t))){if(190===t.kind&&198===t.parent.kind&&3===e.getSpecialPropertyAssignmentKind(t.parent)){var r=Bp(t.parent.left.expression.expression).symbol;if(r&&r.members&&16&r.flags)return Iu(n,Jm(r))}var a=aa(t)||$u(t);if(a)return Iu(n,a)}if(e.isClassLike(t.parent)){var i=ar(t.parent);return Iu(n,o=e.hasModifier(t,32)?ca(i):Ra(i).thisType)}var o;if(e.isInJavaScriptFile(n)&&(o=function(n){var t=e.getJSDocType(n);if(t&&280===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Qs(r.parameters[0].type)}}(t))&&o!==ee)return Iu(n,o)}function Xu(n,t){return!!e.findAncestor(n,function(e){return e===t?"quit":148===e.kind})}function Yu(n){var t=185===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),a=!1;if(!t)for(;r&&191===r.kind;)r=e.getSuperContainer(r,!0),a=x<2;var i=0;if(!function(n){return!!n&&(t?154===n.kind:!(!e.isClassLike(n.parent)&&182!==n.parent.kind)&&(e.hasModifier(n,32)?153===n.kind||152===n.kind||155===n.kind||156===n.kind:153===n.kind||152===n.kind||155===n.kind||156===n.kind||151===n.kind||150===n.kind||154===n.kind))}(r)){var o=e.findAncestor(n,function(e){return e===r?"quit":146===e.kind});return o&&146===o.kind?lt(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?lt(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||182===r.parent.kind)?lt(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):lt(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ee}if(t||154!==r.kind||zu(n,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=e.hasModifier(r,32)||t?512:256,yt(n).flags|=i,153===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?yt(r).flags|=4096:yt(r).flags|=2048),a&&Uu(n.parent,r),182===r.parent.kind)return x<2?(lt(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ee):Q;var s=r.parent;if(!e.getClassExtendsHeritageClauseElement(s))return lt(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ee;var l=Ra(ar(s)),c=l&&Sa(l)[0];return c?154===r.kind&&Xu(n,r)?(lt(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ee):512===i?Ta(l):Ya(c,l.thisType):ee}function Qu(n){return 4&e.getObjectFlags(n)&&n.target===Pe?n.typeArguments[0]:void 0}function Zu(n){return hu(n,function(n){return 262144&n.flags?e.forEach(n.types,Qu):Qu(n)})}function $u(n){if(191!==n.kind){if(yl(n)){var t=Ed(n);if(t){var r=t.thisParameter;if(r)return ca(r)}}var a=e.isInJavaScriptFile(n);if(N||a){var i=function(e){return 153!==e.kind&&155!==e.kind&&156!==e.kind||182!==e.parent.kind?190===e.kind&&268===e.parent.kind?e.parent.parent:void 0:e.parent}(n);if(i){for(var o=md(i),s=i,l=o;l;){var c=Zu(l);if(c)return pl(c,fd(i));if(268!==s.parent.kind)break;l=md(s=s.parent.parent)}return o?gc(o):Np(i)}var u=n.parent;if(198===u.kind&&58===u.operatorToken.kind){var d=u.left;if(183===d.kind||184===d.kind){var m=d.expression;if(a&&e.isIdentifier(m)){var p=e.getSourceFileOfNode(u);if(p.commonJsModuleIndicator&&qc(m)===p.symbol)return}return Np(m)}}}}}function ed(n){var t=n.parent;if(yl(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var a=t.parameters.indexOf(n);if(n.dotDotDotToken){for(var i=[],o=a;o<r.arguments.length;o++)i.push(ic(Bp(r.arguments[o])));return i.length?is(gs(i)):void 0}var s=yt(r),l=s.resolvedSignature;s.resolvedSignature=on;var c=a<r.arguments.length?ic(Bp(r.arguments[a])):n.initializer?void 0:te;return s.resolvedSignature=l,c}var u=Ed(t);if(u){var d=e.hasRestParameter(t),m=t.parameters.length-(d?1:0);if(a=t.parameters.indexOf(n),void 0===e.getThisParameter(t)||u.thisParameter||(e.Debug.assert(0!==a),a-=1),a<m)return ap(u,a);if(d&&a===t.parameters.length-1&&Ql(u,t.parameters.length-1))return ca(e.lastOrUndefined(u.parameters))}}}function nd(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 td(n){if(154===n.kind||e.getEffectiveReturnTypeNode(n)||eg(n))return io($i(n));var t=hd(n);return t&&!function(e){return!e.resolvedReturnType&&Fr(e,3)>=0}(t)?io(t):void 0}function rd(e,n){var t=Cm(e).indexOf(n);return-1===t?void 0:ad(e,t)}function ad(e,n){return ap(yt(e).resolvedSignature===ln?ln:jm(e),n)}function id(n){var t=n.parent,r=t.left,a=t.operatorToken,i=t.right;switch(a.kind){case 58:return n===i&&function(n){var t=e.getSpecialPropertyAssignmentKind(n);switch(t){case 0:return!0;case 5:return!n.left.symbol;case 1:case 2:case 3:case 4:case 6:return!1;default:e.Debug.assertNever(t)}}(t)?Kp(r):void 0;case 54:var o=pd(t);return o||n!==i||e.getDeclaredJavascriptInitializer(t.parent)||e.getAssignedJavascriptInitializer(t)?o:Kp(r,!0);case 53:case 26:return n===i?pd(t):void 0;default:return}}function od(e,n){return hu(e,function(e){var t=458752&e.flags?Fi(e,n):void 0;return t?ca(t):void 0},!0)}function sd(e,n){return hu(e,function(e){return Ki(e,n)},!0)}function ld(e){var n=md(e.parent);if(n){if(!ja(e)){var t=od(n,ar(e).escapedName);if(t)return t}return Ld(e.name)&&sd(n,1)||sd(n,0)}}function cd(e,n){return e&&(od(e,""+n)||sd(e,1)||Xf(e,void 0,!1,!1,!1))}function ud(n){var t=n.parent;return e.isJsxAttributeLike(t)?pd(n):e.isJsxElement(t)?function(e){var n=md(e.openingElement.tagName),t=Hd(Fd(e));return n&&!Br(n)&&t&&""!==t?od(n,t):void 0}(t):void 0}function dd(n){if(e.isJsxAttribute(n)){var t=md(n.parent);if(!t||Br(t))return;return od(t,n.name.escapedText)}return pd(n.parent)}function md(n){var t,r=pd(n);if(!((r=r&&hu(r,Ii))&&131072&r.flags&&e.isObjectLiteralExpression(n)))return r;e:for(var a=0,i=n.properties;a<i.length;a++){var o=i[a];if(o.symbol&&268===o.kind&&Zc(r,o.symbol.escapedName))for(var s=Gg(o.initializer),l=0,c=r.types;l<c.length;l++){var u=c[l],d=Kr(u,o.symbol.escapedName);if(d&&kl(s,d,void 0)){if(t){if(u===t)continue;t=void 0;break e}t=u}}}return t||r}function pd(t){if(!(4194304&t.flags)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 230:case 148:case 151:case 150:case 180:return function(n){var t=n.parent;if(e.hasInitializer(t)&&n===t.initializer){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Qs(r);if(148===t.kind){var a=ed(t);if(a)return a}if(e.isBindingPattern(t.name))return Zr(t.name,!0,!1);if(e.isBindingPattern(t.parent)){var i=t.parent.parent,o=t.propertyName||t.name;if(180!==i.kind){var s=e.getEffectiveTypeAnnotationNode(i);if(s&&!e.isBindingPattern(o)){var l=e.getTextOfPropertyName(o);if(l)return Kr(Qs(s),l)}}}}}(t);case 191:case 223:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t);if(1&r)return;var a=td(t);return 2&r?a&&uf(a):a}}(t);case 201:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),a=td(t);if(a)return n.asteriskToken?a:Zf(a,0!=(2&r))}}(r);case 185:case 186:return rd(r,t);case 188:case 206:return Qs(r.type);case 198:return id(t);case 268:case 269:return ld(r);case 270:return md(r.parent);case 181:var a=r;return cd(md(a),e.indexOfNode(a.elements,t));case 199:return function(e){var n=e.parent;return e===n.whenTrue||e===n.whenFalse?pd(n):void 0}(t);case 209:return e.Debug.assert(200===r.parent.kind),function(e,n){if(187===e.parent.kind)return rd(e.parent,n)}(r.parent,t);case 189:var i=e.isInJavaScriptFile(r)?e.getJSDocTypeTag(r):void 0;return i?Qs(i.typeExpression.type):pd(r);case 263:return ud(r);case 260:case 262:return dd(r);case 255:case 254:return function(t){if(Od(t.tagName))return Ud(t);var r=Bp(t.tagName);if(Br(r))return Q;var a=e.isInJavaScriptFile(t);return hu(r,function(r){return function(t,r,a){if(2&t.flags)return Q;if(32&t.flags){var i=wd(n.IntrinsicElements,a);if(i!==ee){var o=t.value,s=Fi(i,e.escapeLeadingUnderscores(o));if(s)return ca(s);var l=Ui(i,0);if(l)return l}return Q}var c=Gi(t,1),u=!0;return 0===c.length&&(c=Gi(t,0),u=!1,0===c.length)?ee:gs(e.map(c,u?function(e){return function(e,n,t){var r=io(e);return r?vd(r,n,t):gd(e,t)}(e,r,a)}:function(e){return gd(e,a)}),0)}(r,a,t)})}(r)}}}function fd(n){return(n=e.findAncestor(n,function(e){return!!e.contextualMapper}))?n.contextualMapper:L}function gd(e,t){var r=ip(e),a=wd(n.IntrinsicAttributes,t);return a!==ee&&(r=ai(a,r)),r}function vd(e,t,r){if(Br(e))return e;var a=Gd(Fd(r));if(void 0===a)return Q;if(""===a)return e;var i=Kr(e,a);if(i){if(Br(i))return i;var o=i,s=wd(n.IntrinsicClassAttributes,r);if(s!==ee){var l=va(s.symbol);o=ai(l?So(s,Zi([e],l,Qi(l),t)):s,o)}var c=wd(n.IntrinsicAttributes,r);return c!==ee&&(o=ai(c,o)),o}return ve}function _d(n,t){var r=Gi(n,0);if(1===r.length){var a=r[0];if(!function(n,t){for(var r=0;r<t.parameters.length;r++){var a=t.parameters[r];if(a.initializer||a.questionToken||a.dotDotDotToken||qi(a))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--,(n.hasRestParameter?Number.MAX_VALUE:n.parameters.length)<r}(a,t))return a}}function yd(e){return 190===e.kind||191===e.kind}function hd(n){return yd(n)||e.isObjectLiteralMethod(n)?Ed(n):void 0}function bd(n){return e.isObjectLiteralMethod(n)?function(n){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(4194304&n.flags))return ld(n)}(n):md(n)}function Ed(n){e.Debug.assert(153!==n.kind||e.isObjectLiteralMethod(n));var t=bd(n);if(t){if(!(131072&t.flags))return _d(t,n);for(var r,a,i=0,o=t.types;i<o.length;i++){var s=_d(o[i],n);if(s)if(r){if(!Yl(r[0],s,!1,!0,!0,El))return;r.push(s)}else r=[s]}return r&&((a=$a(r[0])).unionSignatures=r),a}}function Td(e){return 180===e.kind&&!!e.initializer||198===e.kind&&58===e.operatorToken.kind}function Sd(n,t){for(var r=n.elements,a=!1,i=[],o=e.isAssignmentTarget(n),s=md(n),l=0;l<r.length;l++){var c=r[l];if(o&&202===c.kind){var u=Bp(c.expression,t),d=Ui(u,1)||Xf(u,void 0,!1,!1,!1);d&&i.push(d)}else{var m=Fp(c,t,cd(s,l));i.push(m)}a=a||202===c.kind}if(!a){if(o&&i.length)return(m=Lo(ss(i))).pattern=n,m;if(s&&function(n){return!!(131072&n.flags?e.forEach(n.types,nc):nc(n))}(s)){var p=s.pattern;if(p&&(179===p.kind||181===p.kind))for(var f=p.elements,g=i.length;g<f.length;g++){var v=f[g];Td(v)?i.push(s.typeArguments[g]):(204!==v.kind&<(v,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.push(D?fe:te))}if(i.length)return ss(i)}}return is(i.length?gs(i,2):D?fe:te)}function Ld(e){switch(e.kind){case 146:return function(e){return Tp(xd(e),84)}(e);case 71:return Ad(e.escapedText);case 8:case 9:return Ad(e.text);default:return!1}}function Ad(e){return(+e).toString()===e}function xd(n){var t=yt(n.expression);return t.resolvedType||(t.resolvedType=Bp(n.expression),12288&t.resolvedType.flags||!Tp(t.resolvedType,525942)&&!Ll(t.resolvedType,gs([ie,oe,ue]))?lt(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):fm(n.expression,t.resolvedType,!0)),t.resolvedType}function Cd(e,n,t,r){for(var a=[],i=0;i<t.length;i++)(0===r||Ld(e[i+n].name))&&a.push(ca(t[i]));return _o(a.length?gs(a,2):ne,!1)}function kd(n,t){var r,a=e.isAssignmentTarget(n);!function(n,t){var r;!function(e){e[e.Property=1]="Property",e[e.GetAccessor=2]="GetAccessor",e[e.SetAccessor=4]="SetAccessor",e[e.GetOrSetAccessor=6]="GetOrSetAccessor"}(r||(r={}));for(var a=e.createUnderscoreEscapedMap(),i=0,o=n.properties;i<o.length;i++){var s=o[i];if(270!==s.kind){var l=s.name;if(146===l.kind&&kv(l),269===s.kind&&!t&&s.objectAssignmentInitializer)return Hv(s.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(s.modifiers)for(var c=0,u=s.modifiers;c<u.length;c++){var d=u[c];120===d.kind&&153===s.kind||Hv(d,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(d))}var m=void 0;switch(s.kind){case 268:case 269:Dv(s.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===l.kind&&Bv(l);case 153:m=1;break;case 155:m=2;break;case 156:m=4;break;default:e.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var p=e.getPropertyNameForPropertyNameNode(l);if(void 0!==p){var f=a.get(p);if(f)if(1===m&&1===f)Hv(l,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(l));else{if(!(6&m&&6&f))return Hv(l,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===f||m===f)return Hv(l,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);a.set(p,m|f)}else a.set(p,m)}}}}(n,a);var i=[],o=ve,s=8388608,l=md(n),c=l&&l.pattern&&(178===l.pattern.kind||182===l.pattern.kind),u=e.isInJavaScriptFile(n),d=!l&&u,m=0,p=!1,f=!1,g=!1;if(u&&0===n.properties.length){var v=ar(n);if(v.exports)return r=v.exports,v.exports.forEach(function(e){return i.push(rr(e))}),I()}r=e.createSymbolTable();for(var _=0,y=0;y<n.properties.length;y++){var h=n.properties[y],b=ar(h),E=void 0;if(268===h.kind||269===h.kind||e.isObjectLiteralMethod(h)){var T=void 0;u&&(T=zr(h));var S=void 0;if(268===h.kind){if(146===h.name.kind){var L=xd(h.name);224&L.flags&&(E=e.escapeLeadingUnderscores(""+L.value))}S=Vp(h,t)}else 153===h.kind?S=Gp(h,t):(e.Debug.assert(269===h.kind),S=Fp(h.name,t));T&&(kl(S,T,h),S=T),m|=S.flags;var C=Ua(h)?xd(h.name):void 0,k=C&&Ka(C),M=k?ct(4|b.flags,Wa(C),1024):ct(4|b.flags,E||b.escapedName);if(k&&(M.nameType=C),a)(268===h.kind&&Td(h.initializer)||269===h.kind&&h.objectAssignmentInitializer)&&(M.flags|=16777216),!E&&e.hasDynamicName(h)&&(p=!0);else if(c&&!(512&e.getObjectFlags(l))){var D=Fi(l,b.escapedName);D?M.flags|=16777216&D.flags:A.suppressExcessPropertyErrors||Bi(l,0)||lt(h.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ar(b),Cr(l))}M.declarations=b.declarations,M.parent=b.parent,b.valueDeclaration&&(M.valueDeclaration=b.valueDeclaration),M.type=S,M.target=b,b=M}else{if(270===h.kind){if(x<2&&_v(h,2),i.length>0&&(o=Ks(o,I(),n.symbol,s,0),i=[],r=e.createSymbolTable(),f=!1,g=!1,m=0),!Md(S=Bp(h.expression)))return lt(h,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ee;o=Ks(o,S,n.symbol,s,0),_=y+1;continue}e.Debug.assert(155===h.kind||156===h.kind),kg(h)}!E&&ja(h)?Ld(h.name)?g=!0:f=!0:r.set(b.escapedName,b),i.push(b)}if(c)for(var O=0,R=Ei(l);O<R.length;O++)M=R[O],r.get(M.escapedName)||o&&Fi(o,M.escapedName)||(16777216&M.flags||lt(M.valueDeclaration||M.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),r.set(M.escapedName,M),i.push(M));return o!==ve?(i.length>0&&(o=Ks(o,I(),n.symbol,s,0)),o):I();function I(){var t=d?dn:f?Cd(n.properties,_,i,0):void 0,o=g&&!d?Cd(n.properties,_,i,1):void 0,l=gr(n.symbol,r,e.emptyArray,e.emptyArray,t,o),c=A.suppressExcessPropertyErrors?0:8388608;return l.flags|=33554432|c|117440512&m,l.objectFlags|=128,p&&(l.objectFlags|=512),a&&(l.pattern=n),12288&l.flags||(s|=117440512&l.flags),l}}function Md(n){return!!(134217729&n.flags||14560&uc(n)&&Md(dc(n))||65536&n.flags&&!vi(n)||393216&n.flags&&!e.forEach(n.types,function(e){return!Md(e)}))}function Dd(n){return!e.stringContains(n,"-")}function Od(n){switch(n.kind){case 183:case 99:return!1;case 71:return e.isIntrinsicJsxName(n.escapedText);default:e.Debug.fail()}}function Rd(e,n){return e.initializer?Fp(e.initializer,n):se}function Id(n,t){for(var r,a=n.attributes,i=e.createSymbolTable(),o=ve,s=!1,l=!1,c=Hd(Fd(n)),u=0,d=a.properties;u<d.length;u++){var m=d[u],p=m.symbol;if(e.isJsxAttribute(m)){var f=Rd(m,t),g=ct(33554436|p.flags,p.escapedName);g.declarations=p.declarations,g.parent=p.parent,p.valueDeclaration&&(g.valueDeclaration=p.valueDeclaration),g.type=f,g.target=p,i.set(g.escapedName,g),m.name.escapedText===c&&(l=!0)}else e.Debug.assert(262===m.kind),i.size>0&&(o=Ks(o,b(),a.symbol,0,4096),i=e.createSymbolTable()),Br(f=Np(m.expression,t))&&(s=!0),Md(f)?o=Ks(o,f,n.symbol,0,4096):r=r?bs([r,f]):f}s||i.size>0&&(o=Ks(o,b(),a.symbol,0,4096));var v=253===n.parent.kind?n.parent:void 0;if(v&&v.openingElement===n&&v.children.length>0){var _=Nd(v,t);if(!s&&c&&""!==c){l&<(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(c));var y=ct(33554436,c);y.type=1===_.length?_[0]:is(gs(_));var h=e.createSymbolTable();h.set(c,y),o=Ks(o,gr(a.symbol,h,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,0,4096)}}return s?Q:r&&o!==ve?bs([r,o]):r||o;function b(){var n=gr(a.symbol,i,e.emptyArray,e.emptyArray,void 0,void 0);return n.flags|=33554432,n.objectFlags|=4224,n}}function Nd(e,n){for(var t=[],r=0,a=e.children;r<a.length;r++){var i=a[r];10===i.kind?i.containsOnlyWhiteSpaces||t.push(ie):t.push(Fp(i,n))}return t}function wd(e,n){var t=Fd(n),r=t&&$t(t),a=r&&bt(r,e,67901928);return a?Ra(a):ee}function Pd(t){var r=yt(t);if(!r.resolvedSymbol){var a=wd(n.IntrinsicElements,t);if(a!==ee){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Fi(a,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Ui(a,0)?(r.jsxFlags|=2,r.resolvedSymbol=a.symbol):(lt(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+n.IntrinsicElements),r.resolvedSymbol=X)}return I&<(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(n.IntrinsicElements)),r.resolvedSymbol=X}return r.resolvedSymbol}function Fd(e){var t=st(e),r=Tt(e,t,1920,void 0,t,!1);if(r){var a=bt($t(Ft(r)),n.JSX,1920);if(a)return a}return Ko(n.JSX,1920,void 0)}function Vd(n,t){var r=t&&bt(t.exports,n,67901928),a=r&&Ra(r),i=a&&Ei(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&<(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function Gd(e){return Vd(n.ElementAttributesPropertyNameContainer,e)}function Hd(e){return Vd(n.ElementChildrenAttributeNameContainer,e)}function Kd(e){if(e){if(262144&e.flags){for(var n=[],t=0,r=e.types;t<r.length;t++){var a=r[t];n.push(Ii(a))}return bs(n)}return Ii(e)}}function Bd(t,r,a,i){if(131072&a.flags)return gs(a.types.map(function(e){return Bd(t,r,e,i)}),2);if(2&a.flags)return Q;if(32&a.flags){var o=wd(n.IntrinsicElements,t);if(o!==ee){var s=a.value,l=Fi(o,e.escapeLeadingUnderscores(s));if(l)return ca(l);var c=Ui(o,0);if(c)return c;lt(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,s,"JSX."+n.IntrinsicElements)}return Q}var u=function(n,t){if(e.Debug.assert(!(131072&t.flags)),Br(t))return Q;var r=Gi(t,1);if(0===r.length&&0===(r=Gi(t,0)).length)return lt(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),ee;for(var a=[],i=0,o=r;i<o.length;i++){var s=o[i];if(s.typeParameters){var l=e.isInJavaScriptFile(n),c=Tm(s,n,kc(s.typeParameters,s,l?4:0));a.push(so(s,c,l))}else a.push(s)}return gs(e.map(a,io),2)}(t,a),d=r?function(t,r,a,i){if(e.Debug.assert(!(131072&r.flags)),!i||!Ll(a,i)){var o=zd(t);if(o){var s=[];Km(t,r,s);for(var l=void 0,c=void 0,u=0,d=s;u<d.length;u++){var m=d[u],p=io(m),f=p&&(0===m.parameters.length?ve:ca(m.parameters[0]));if(f=Kd(f),p&&Ll(p,o)){for(var g=!0,v=0,_=t.attributes.properties;v<_.length;v++){var y=_[v];if(e.isJsxAttribute(y)&&Dd(y.name.escapedText)&&!Fi(f,y.name.escapedText)){g=!1;break}}g&&(l=ai(l,f)),c=ai(c,f)}}l||(l=c);var h=wd(n.IntrinsicAttributes,t);return h!==ee&&(l=ai(h,l)),l}}}(t,a,u,i):function(t,r,a,i){if(e.Debug.assert(!(131072&r.flags)),!i||!Ll(a,i)){var o=zd(t);if(o){var s=Km(t,r,void 0);if(s!==sn){var l=s&&io(s),c=l&&(0===s.parameters.length?ve:ca(s.parameters[0]));if(c=Kd(c),l&&Ll(l,o)){var u=wd(n.IntrinsicAttributes,t);return u!==ee&&(c=ai(u,c)),c}}}}}(t,a,u,i);return d||(i&&Vl(u,i,et,t,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements),vd(u,e.isInJavaScriptFile(t),t))}function Ud(n){e.Debug.assert(Od(n.tagName));var t=yt(n);if(!t.resolvedJsxElementAttributesType){var r=Pd(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=ca(r):2&t.jsxFlags?t.resolvedJsxElementAttributesType=yo(r,0).type:t.resolvedJsxElementAttributesType=ee}return t.resolvedJsxElementAttributesType}function jd(e,t){return Bd(e,t,Bp(e.tagName),(r=e,(a=wd(n.ElementClass,r))===ee?void 0:a));var r,a}function Wd(e){var n;return Fi(Od((n=e.parent.parent).tagName)?Ud(n):jd(n,!1),e.name.escapedText)||X}function qd(e){return wd(n.Element,e)}function zd(e){var n=qd(e);if(n)return gs([n,re])}function Jd(n,t){var r,a=e.isJsxOpeningLikeElement(n);a&&function(n){for(var t=e.createUnderscoreEscapedMap(),r=0,a=n.attributes.properties;r<a.length;r++){var i=a[r];if(262!==i.kind){var o=i.name,s=i.initializer;if(t.get(o.escapedText))return Hv(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(o.escapedText,!0),s&&263===s.kind&&!s.expression)return Hv(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(n),r=n,0===(A.jsx||0)&<(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===qd(r)&&I&<(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var i=Fn&&2===A.jsx?e.Diagnostics.Cannot_find_name_0:void 0,o=st(n),s=Tt(a?n.tagName:n,o,67216319,i,o,!0);s&&(s.isReferenced=67108863,2097152&s.flags&&!$g(Vt(s))&&Ht(s)),a?function(n,t){var r=Od(n.tagName)?Ud(n):jd(n,!1),a=Id(n,t);if(r===ve&&(Br(a)||Ei(a).length>0))lt(n,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Gd(Fd(n))));else{var i=kl(a,r,n.attributes.properties.length>0?n.attributes:n);if(i&&!Br(a)&&!Br(r))for(var o=0,s=n.attributes.properties;o<s.length;o++){var l=s[o];if(e.isJsxAttribute(l)){var c=l.name,u=Dd(e.idText(c))||!!Fi(r,c.escapedText);if(u&&!Xd(r,c.escapedText,!0)){lt(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(c),Cr(r));break}}}}}(n,t):Nd(n.parent)}function Xd(e,n,t){if(65536&e.flags){var r=_i(e);if(r.stringIndexInfo||r.numberIndexInfo&&Ad(n)||hi(e,n)||t&&!Dd(n))return!0}else if(393216&e.flags)for(var a=0,i=e.types;a<i.length;a++)if(Xd(i[a],n,t))return!0;return!1}function Yd(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function Qd(n){return!!(8192&n.flags||4&e.getCheckFlags(n))}function Zd(n,t,r,a){var i,o=e.getDeclarationModifierFlagsFromSymbol(a),s=183===n.kind||230===n.kind?n.name:n.right;if(256&e.getCheckFlags(a))return lt(s,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Ar(a),Cr(r)),!1;if(97===t.kind){if(x<2&&$d(a))return lt(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return lt(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ar(a),Cr(ql(a))),!1}if(128&o&&e.isThisProperty(n)&&$d(a)&&(i=e.getClassLikeDeclarationOfSymbol(ir(a)))&&function(n,t){return e.findAncestor(n,function(n){return!(!e.isConstructorDeclaration(n)||!e.nodeIsPresent(n.body)||n.parent!==t)||!(n!==t&&!e.isFunctionLikeDeclaration(n))&&"quit"})}(n,i))return lt(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ar(a),e.getTextOfIdentifierOrLiteral(i.name)),!1;if(!(24&o))return!0;if(8&o)return!!wg(n,i=e.getClassLikeDeclarationOfSymbol(ir(a)))||(lt(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ar(a),Cr(ql(a))),!1);if(97===t.kind)return!0;var l=Ng(n,function(n){var t=Ra(ar(n));return function(n,t){return Wl(t,function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t))&&!ma(n,ql(t))})?void 0:n}(t,a)?t:void 0});return l?!!(32&o)||(32768&r.flags&&(r=r.isThisType?Si(r):Ci(r)),!(!r||!ma(r,l))||(lt(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Ar(a),Cr(l)),!1)):(lt(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ar(a),Cr(ql(a)||r)),!1)}function $d(e){return Wl(e,function(e){var n,t=(n=e).valueDeclaration?n.valueDeclaration.kind:151;return 153!==t&&152!==t})}function em(e,n,t,r){return nm(Bp(e),e,n,t,r)}function nm(n,t,r,a,i){var o=12288&(D?uc(n):n.flags);if(o){lt(t,4096&o?8192&o?i||e.Diagnostics.Object_is_possibly_null_or_undefined:a||e.Diagnostics.Object_is_possibly_undefined:r||e.Diagnostics.Object_is_possibly_null);var s=gc(n);return 28672&s.flags?ee:s}return n}function tm(e){return am(e,e.expression,e.name)}function rm(e){return am(e,e.left,e.right)}function am(n,t,r){var a,i=em(t),o=yt(t).resolvedSymbol,s=Ii(Sc(i));if(Br(s)||s===pe)return e.isIdentifier(t)&&o&&Ku(o,n),s;var l=e.getAssignmentTargetKind(n),c=Fi(s,r.escapedText);if(!e.isIdentifier(t)||!o||c&&$g(c)||Ku(o,n),c){if(function(n,t,r){var a=n.valueDeclaration;a&&(!function(n){return!!e.findAncestor(n,function(n){switch(n.kind){case 151:return!0;case 268:return!1;default:return!e.isExpressionNode(n)&&"quit"}})}(t)||Et(a,r)||function(e){if(!(32&e.parent.flags))return!1;for(var n=ca(e.parent);;){if(!(n=im(n)))return!1;var t=hi(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(n)?233!==a.kind||161===t.parent.kind||2097152&a.flags||Et(a,r)||lt(r,e.Diagnostics.Class_0_used_before_its_declaration,e.idText(r)):lt(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.idText(r)))}(c,n,r),um(c,n,99===t.kind),yt(n).resolvedSymbol=c,Zd(n,t,s,c),l&&(yp(n,c)||hp(n)))return lt(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,e.idText(r)),ee;a=Hu(ca(c),n)}else{var u=Bi(s,0);if(!u||!u.type)return r.escapedText&&!Ct(n)&&function(n,t){var r;if(131072&t.flags&&!(16382&t.flags))for(var a=0,i=t.types;a<i.length;a++){var o=i[a];if(!Fi(o,n.escapedText)){r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Cr(o));break}}var s=om(n,t);r=void 0!==s?e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(n),Cr(t),s):e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Cr(t)),Fn.add(e.createDiagnosticForNodeFromMessageChain(n,r))}(r,32768&i.flags&&i.isThisType?s:i),ee;u.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&<(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Cr(s)),a=u.type}if(183!==n.kind||1===l||c&&!(98311&c.flags)&&!(8192&c.flags&&131072&a.flags))return a;var d=!1;if(D&&R&&99===t.kind){var m=c&&c.valueDeclaration;if(m&&dg(m)){var p=Nu(n);154===p.kind&&p.parent===m.parent&&(d=!0)}}var f=Iu(n,a,d?fc(a):a);return d&&!(4096&uc(a))&&4096&uc(f)?(lt(r,e.Diagnostics.Property_0_is_used_before_being_assigned,Ar(c)),a):l?ac(f):f}function im(n){var t=Sa(n);if(0!==t.length)return e.Debug.assert(1===t.length),t[0]}function om(n,t){var r=lm(e.idText(n),Ei(t),67216319);return r&&e.symbolName(r)}function sm(n,t,r){e.Debug.assert(void 0!==t,"outername should always be defined");var a=St(n,t,r,void 0,t,!1,!1,function(n,r,a){return e.Debug.assertEqual(t,r,"name should equal outerName"),bt(n,r,a)||lm(e.unescapeLeadingUnderscores(r),e.arrayFrom(n.values()),a)});return a&&e.symbolName(a)}function lm(n,t,r){for(var a,i=Math.min(2,Math.floor(.34*n.length)),o=Math.floor(.4*n.length)+1,s=!1,l=n.toLowerCase(),c=0,u=t;c<u.length;c++){var d=u[c],m=e.symbolName(d);if(d.flags&r&&Math.abs(m.length-l.length)<=i){var p=m.toLowerCase();if(p===l)return d;if(!(s||m.length<3)){var f=cm(l,p,o-1);void 0!==f&&(f<3?(s=!0,a=d):(e.Debug.assert(f<o),o=f,a=d))}}}return a}function cm(e,n,t){for(var r=new Array(n.length+1),a=new Array(n.length+1),i=t+1,o=0;o<=n.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),l=o>t?o-t:1,c=n.length>t+o?t+o:n.length;a[0]=o;for(var u=o,d=1;d<l;d++)a[d]=i;for(d=l;d<=c;d++){var m=s===n.charCodeAt(d-1)?r[d-1]:Math.min(r[d]+1,a[d-1]+1,r[d-1]+2);a[d]=m,u=Math.min(u,m)}for(d=c+1;d<=n.length;d++)a[d]=i;if(u>t)return;var p=r;r=a,a=p}var f=r[n.length];return f>t?void 0:f}function um(n,t,r){if(n&&k&&106500&n.flags&&n.valueDeclaration&&e.hasModifier(n.valueDeclaration,8)&&(!t||!e.isWriteOnlyAccess(t)||65536&n.flags&&!(32768&n.flags))){if(r){var a=e.findAncestor(t,e.isFunctionLikeDeclaration);if(a&&a.symbol===n)return}(1&e.getCheckFlags(n)?_t(n).target:n).isReferenced=67108863}}function dm(n,t,r,a){if(a===ee||Br(a))return!0;var i=Fi(a,r);return i?Zd(n,t,a,i):e.isInJavaScriptFile(n)&&131072&a.flags&&a.types.some(function(e){return dm(n,t,r,e)})}function mm(n){var t=n.initializer;if(231===t.kind){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return ar(r)}else if(71===t.kind)return qc(t)}function pm(n){var t=em(n.expression),r=n.argumentExpression;if(!r){var a,i=e.getSourceFileOfNode(n);return 186===n.parent.kind&&n.parent.expression===n?Gv(i,a=e.skipTrivia(i.text,n.expression.end),n.end-a,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):Gv(i,a=n.end-"]".length,n.end-a,e.Diagnostics.Expression_expected),ee}var o=function(n){var t,r=e.skipParentheses(n);if(71===r.kind){var a=qc(r);if(3&a.flags)for(var i=n,o=n.parent;o;){if(219===o.kind&&i===o.statement&&mm(o)===a&&Ui(t=Kp(o.expression),1)&&!Ui(t,0))return!0;i=o,o=o.parent}}return!1}(r)?oe:Bp(r);return t===ee||t===pe?t:Lp(t)&&9!==r.kind?(lt(r,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ee):rf(Ds(t,o,n),n)}function fm(n,t,r){if(t===ee)return!1;if(!e.isWellKnownSymbolSyntactically(n))return!1;if(0==(1536&t.flags))return r&<(n,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(n)),!1;var a=n.expression,i=qc(a);if(!i)return!1;var o=Uo(!0);return!(!o||i!==o&&(r&<(a,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function gm(n){return e.isCallOrNewExpression(n)}function vm(n){return gm(n)&&e.forEach(n.typeArguments,xg),187===n.kind?Bp(n.template):149!==n.kind&&e.forEach(n.arguments,function(e){Bp(e)}),on}function _m(e){return vm(e),sn}function ym(e){for(var n=0;n<e.length;n++){var t=e[n];if(t&&202===t.kind)return n}return-1}function hm(n,t,r,a){var i,o,s;void 0===a&&(a=!1);var l=-1;if(e.isJsxOpeningLikeElement(n))return!0;if(187===n.kind)if(i=t.length,o=void 0,200===n.template.kind){var c=e.lastOrUndefined(n.template.templateSpans);e.Debug.assert(void 0!==c),s=e.nodeIsMissing(c.literal)||!!c.literal.isUnterminated}else{var u=n.template;e.Debug.assert(13===u.kind),s=!!u.isUnterminated}else if(149===n.kind)o=void 0,i=km(n,void 0,r);else{if(!n.arguments)return e.Debug.assert(186===n.kind),0===r.minArgumentCount;i=a?t.length+1:t.length,s=n.arguments.end===n.end,o=n.typeArguments,l=ym(t)}var d=e.length(r.typeParameters),m=Qi(r.typeParameters);if(o&&!(o.length>=m&&o.length<=d))return!1;if(l>=0)return Ql(r,l)||r.minArgumentCount<=l&&l<r.parameters.length;if(!r.hasRestParameter&&i>r.parameters.length)return!1;var p=i>=r.minArgumentCount;return s||p}function bm(e){if(65536&e.flags){var n=_i(e);if(1===n.callSignatures.length&&0===n.constructSignatures.length&&0===n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo)return n.callSignatures[0]}}function Em(n,t,r,a){var i=kc(n.typeParameters,n,1,a);return Cc(t,n,function(e,n){Fc(i.inferences,pl(e,r||L),n)}),r||Fc(i.inferences,io(t),io(n),8),so(n,Wc(i),e.isInJavaScriptFile(t.declaration))}function Tm(e,n,t){var r=ap(e,0),a=Ip(n.attributes,r,L);Fc(t.inferences,a,r);var i=ap(e,0),o=Ip(n.attributes,i,t);return Fc(t.inferences,o,i),Wc(t)}function Sm(n,t,r,a,i){for(var o=0,s=i.inferences;o<s.length;o++){var l=s[o];l.isFixed||(l.inferredType=void 0)}if(149!==n.kind){var c=pd(n);if(c){var u=pl(c,function(e){return e&&function(e){return!!e.typeParameters}(e)?kc(e.typeParameters,e.signature,2|e.flags,e.compareTypes,e.inferences):e}(fd(n))),d=bm(u),m=d&&d.typeParameters?fo(so(d,d.typeParameters,e.isInJavaScriptFile(n))):u,p=io(t);Fc(i.inferences,m,p,8)}}var f=to(t);if(f){var g=xm(n),v=g?Bp(g):de;Fc(i.inferences,v,f)}for(var _=km(n,r,t),y=0;y<_;y++)if(void 0===(E=Rm(n,r,y))||204!==E.kind){var h=ap(t,y),b=Om(n,y);void 0===b&&(b=Ip(E,h,a&&void 0!==a[y]?L:i)),Fc(i.inferences,b,h)}if(a)for(y=0;y<_;y++)if(!1===a[y]){var E=r[y];h=ap(t,y),Fc(i.inferences,Ip(E,h,i),h)}return Wc(i)}function Lm(n,t,r,a){for(var i,o=e.isInJavaScriptFile(n.declaration),s=n.typeParameters,l=Zi(e.map(t,Qs),s,Qi(s),o),c=0;c<t.length;c++){e.Debug.assert(void 0!==s[c],"Should not call checkTypeArguments with too many type arguments");var u=Si(s[c]);if(u){var d=r&&a&&function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)},m=a||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;i||(i=nl(s,l));var p=l[c];if(!kl(p,Ya(pl(u,i),p),r?t[c]:void 0,m,d))return!1}}return l}function Am(n,t,r,a,i,o){if(e.isJsxOpeningLikeElement(n))return function(n,t,r){if(n.attributes.end===n.end)return!0;for(var a=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,i=ap(t,0),o=Ip(n.attributes,i,void 0),s=0,l=Ei(o);s<l.length;s++){var c=l[s];if(!Fi(i,c.escapedName)&&Dd(c.escapedName))return!1}return Vl(o,i,r,void 0,a)}(n,r,a);var s=to(r);if(s&&s!==de&&186!==n.kind){var l=xm(n),c=l?Bp(l):de,u=o?l||n:void 0,d=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Vl(c,to(r),a,u,d))return!1}for(var m=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=km(n,t,r),f=0;f<p;f++){var g=Rm(n,t,f);if(void 0===g||204!==g.kind){var v=ap(r,f),_=Om(n,f)||Ip(g,v,i&&i[f]?L:void 0);if(!Vl(i?yc(_):_,v,a,u=o?Im(n,f,g):void 0,m))return!1}}return!0}function xm(e){if(185===e.kind){var n=e.expression;if(183===n.kind)return n.expression;if(184===n.kind)return n.expression}}function Cm(n){if(187===n.kind){var t=n.template,r=[void 0];return 200===t.kind&&e.forEach(t.templateSpans,function(e){r.push(e.expression)}),r}return 149===n.kind?void 0:e.isJsxOpeningLikeElement(n)?n.attributes.properties.length>0?[n.attributes]:e.emptyArray:n.arguments||e.emptyArray}function km(e,n,t){if(149!==e.kind)return n.length;switch(e.parent.kind){case 233:case 203:return 1;case 151:return 2;case 153:case 155:case 156:return 0===x?2:t.parameters.length>=3?3:2;case 148:return 3}}function Mm(n){return 233===n.kind?ca(ar(n)):148===n.kind&&154===(n=n.parent).kind?ca(ar(n)):151===n.kind||153===n.kind||155===n.kind||156===n.kind?function(n){var t=ar(n.parent);return e.hasModifier(n,32)?ca(t):Ra(t)}(n):(e.Debug.fail("Unsupported decorator target."),ee)}function Dm(n,t){return 0===t?Mm(n.parent):1===t?function(n){if(233===n.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ee;if(148===n.kind&&154===(n=n.parent).kind)return Q;if(151===n.kind||153===n.kind||155===n.kind||156===n.kind){var t=n;switch(t.name.kind){case 71:return Js(e.idText(t.name));case 8:case 9:return Js(t.name.text);case 146:var r=xd(t.name);return Tp(r,1536)?r:ie;default:return e.Debug.fail("Unsupported property name."),ee}}return e.Debug.fail("Unsupported decorator target."),ee}(n.parent):2===t?function(n){return 233===n.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),ee):148===n.kind?oe:151===n.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),ee):153===n.kind||155===n.kind||156===n.kind?ns(Gg(n)):(e.Debug.fail("Unsupported decorator target."),ee)}(n.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ee)}function Om(e,n){return 149===e.kind?Dm(e,n):0===n&&187===e.kind?$e||($e=Bo("TemplateStringsArray",0,!0))||ve:void 0}function Rm(e,n,t){if(149!==e.kind&&(0!==t||187!==e.kind))return n[t]}function Im(e,n,t){return 149===e.kind?e.expression:0===n&&187===e.kind?e.template:t}function Nm(n,t,r,i){var o,s=187===n.kind,l=149===n.kind,c=e.isJsxOpeningLikeElement(n);s||l||c||(o=n.typeArguments,97!==n.expression.kind&&e.forEach(o,xg));var u=r||[];if(function(n,t){var r,a,i,o,s=0,l=-1;e.Debug.assert(!t.length);for(var c=0,u=n;c<u.length;c++){var d=u[c],m=d.declaration&&ar(d.declaration),p=d.declaration&&d.declaration.parent;a&&m!==a?(i=s=t.length,r=p):r&&p===r?i++:(r=p,i=s),a=m,d.hasLiteralTypes?(o=++l,s++):o=i,t.splice(o,0,d)}}(t,u),!u.length)return Fn.add(e.createDiagnosticForNode(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),_m(n);var d,m,p,f,g=Cm(n),v=1===u.length&&!u[0].typeParameters,_=0;if(!l&&!v)for(var y=s?1:0;y<g.length;y++)vl(g[y])&&(d||(d=new Array(g.length)),d[y]=!0,_++);var h=r&&185===n.kind&&n.arguments.hasTrailingComma;if(u.length>1&&(f=F(u,$n,h)),f||(f=F(u,et,h)),f)return f;if(m){if(c)return m;Am(n,g,m,et,void 0,!0)}else if(p)Lm(p,n.typeArguments,!0,i);else if(o&&e.every(t,function(n){return e.length(n.typeParameters)!==o.length})){for(var b=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY,T=0,S=t;T<S.length;T++){var L=S[T];b=Math.min(b,Qi(L.typeParameters)),E=Math.max(E,e.length(L.typeParameters))}var A=b<E?b+"-"+E:b;Fn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),o,e.Diagnostics.Expected_0_type_arguments_but_got_1,A,o.length))}else if(g){b=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(var x=0,C=t;x<C.length;x++)L=C[x],b=Math.min(b,L.minArgumentCount),E=Math.max(E,L.parameters.length);var k=e.some(t,function(e){return e.hasRestParameter}),M=ym(g)>-1,D=(A=k?b:b<E?b+"-"+E:b,g.length);D<=E&&M&&D--;var O=k&&M?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:k?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:M?e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;Fn.add(e.createDiagnosticForNode(n,O,A,D))}else i&&Fn.add(e.createDiagnosticForNode(n,i));if(!a){e.Debug.assert(u.length>0);var R=function(e,n){for(var t=-1,r=-1,a=0;a<e.length;a++){var i=e[a];if(i.hasRestParameter||i.parameters.length>=n)return a;i.parameters.length>r&&(r=i.parameters.length,t=a)}return t}(u,void 0===V?g.length:V),I=u[R],N=I.typeParameters;if(N&&gm(n)&&n.typeArguments){for(var w=n.typeArguments.map(Gg);w.length>N.length;)w.pop();for(;w.length<N.length;)w.push(jc(e.isInJavaScriptFile(n)));var P=lo(I,w);return u[R]=P,P}return I}return _m(n);function F(t,r,a){if(void 0===a&&(a=!1),m=void 0,p=void 0,v){var i=t[0];if(!hm(n,g,i,a))return;return Am(n,g,i,r,d,!1)?i:void(m=i)}for(var s=0;s<t.length;s++){var l=t[s];if(hm(n,g,l,a)){i=void 0;for(var c=l.typeParameters?kc(l.typeParameters,l,e.isInJavaScriptFile(n)?4:0):void 0;;){if((i=l).typeParameters){var u=void 0;if(o){var f=Lm(i,o,!1);if(!f){p=l;break}u=f}else u=Sm(n,i,g,d,c);i=so(i,u,e.isInJavaScriptFile(i.declaration))}if(!Am(n,g,i,r,d,!1)){m=i;break}if(0===_)return t[s]=i,i;--_>0?d[d.indexOf(!0)]=!1:d=void 0}}}}}function wm(e,n,t,r){return Br(e)||Br(n)&&32768&e.flags||!t&&!r&&!(147456&n.flags)&&Ll(e,Me)}function Pm(n,t){if(n.arguments&&x<1){var r=ym(n.arguments);r>=0&<(n.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=em(n.expression);if(a===pe)return cn;if((a=Ii(a))===ee)return _m(n);if(Br(a))return n.typeArguments&<(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),vm(n);var i=Gi(a,1);if(i.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,a=e.getSelectedModifierFlags(r,24);if(!a)return!0;var i=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=Ra(r.parent.symbol);if(!wg(n,i)){var s=e.getContainingClass(n);if(s)for(var l=Gg(s),c=Sa(l);c.length;){var u=c[0];if(16&a&&u.symbol===r.parent.symbol)return!0;c=Sa(u)}return 8&a&<(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Cr(o)),16&a&<(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Cr(o)),!1}return!0}(n,i[0]))return _m(n);var o=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return o&&e.hasModifier(o,128)?(lt(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),_m(n)):Nm(n,i,t)}var s=Gi(a,0);if(s.length){var l=Nm(n,s,t);return Wm(l.declaration)||io(l)===de||lt(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),to(l)===de&<(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),l}return Fm(n,a,1),_m(n)}function Fm(n,t,r){lt(n,0===r?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,Cr(t)),Vm(t,r)}function Vm(n,t){if(n.symbol){var r=_t(n.symbol).originatingImport;if(r&&!e.isImportCall(r)){var a=Gi(ca(_t(n.symbol).target),t);if(!a||!a.length)return;lt(r,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function Gm(n){switch(n.parent.kind){case 233:case 203:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 148:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 153:case 155:case 156:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function Hm(n,t){var r=Bp(n.expression),a=Ii(r);if(a===ee)return _m(n);var i,o,s=Gi(a,0),l=Gi(a,1);if(wm(r,a,s.length,l.length))return vm(n);if(i=n,(o=s).length&&e.every(o,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<km(i,void 0,e)})){var c=e.getTextOfNode(n.expression,!1);return lt(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,c),_m(n)}var u=Gm(n);if(!s.length){var d=void 0;return d=e.chainDiagnosticMessages(d,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Cr(a)),d=e.chainDiagnosticMessages(d,u),Fn.add(e.createDiagnosticForNodeFromMessageChain(n,d)),Vm(a,0),_m(n)}return Nm(n,s,t,u)}function Km(n,t,r){return e.Debug.assert(!(131072&t.flags)),Bm(n,t,r)}function Bm(e,n,t){if(131072&n.flags){for(var r=void 0,a=0,i=n.types;a<i.length;a++){var o=i[a];r=r||Bm(e,o,t)}return r}var s=n&&Gi(n,0);if(s&&s.length>0)return Nm(e,s,t)}function Um(n,t){switch(n.kind){case 185:return function(n,t){if(97===n.expression.kind){var r=Yu(n.expression);if(r!==ee){var a=e.getClassExtendsHeritageClauseElement(e.getContainingClass(n));if(a)return Nm(n,Ea(r,a.typeArguments,a),t)}return vm(n)}var i=em(n.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(i===pe)return cn;var o=Ii(i);if(o===ee)return _m(n);var s=Gi(o,0),l=Gi(o,1);return wm(i,o,s.length,l.length)?(i!==ee&&n.typeArguments&<(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),vm(n)):s.length?Nm(n,s,t):(l.length?lt(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Cr(i)):Fm(n,o,0),_m(n))}(n,t);case 186:return Pm(n,t);case 187:return function(e,n){var t=Bp(e.tag),r=Ii(t);if(r===ee)return _m(e);var a=Gi(r,0),i=Gi(r,1);return wm(t,r,a.length,i.length)?vm(e):a.length?Nm(e,a,n):(Fm(e,r,0),_m(e))}(n,t);case 149:return Hm(n,t);case 255:case 254:return Bm(n,Bp(n.tagName),t)||sn}e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function jm(e,n){var t=yt(e),r=t.resolvedSignature;if(r&&r!==ln&&!n)return r;t.resolvedSignature=ln;var a=Um(e,n);return t.resolvedSignature=fn===gn?a:r,a}function Wm(n){if(n&&e.isInJavaScriptFile(n)){if(e.getJSDocClassTag(n))return!0;var t=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?ar(n):e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?ar(n.initializer):void 0;return t&&void 0!==t.members}return!1}function qm(n){var t=n.valueDeclaration,r=t&&t.parent&&(e.isBinaryExpression(t.parent)&&ar(t.parent.left)||e.isVariableDeclaration(t.parent)&&ar(t.parent));if(r){var a=e.forEach(r.declarations,zm);if(a)return Bp(a)}}function zm(n){if(!n.parent)return!1;for(var t=n.parent;t&&183===t.kind;)t=t.parent;return t&&e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&"prototype"===t.left.name.escapedText&&58===t.operatorToken.kind&&e.isObjectLiteralExpression(t.right)&&t.right}function Jm(n){var t=_t(n);return t.inferredClassType||(t.inferredClassType=gr(n,Ja(n)||S,e.emptyArray,e.emptyArray,void 0,void 0)),t.inferredClassType}function Xm(n){return n.symbol&&16&e.getObjectFlags(n)&&_t(n.symbol).inferredClassType===n}function Ym(n){Lv(n,n.typeArguments)||Av(n.arguments);var t=jm(n);if(97===n.expression.kind)return de;if(186===n.kind){var r=t.declaration;if(r&&154!==r.kind&&158!==r.kind&&163!==r.kind&&!e.isJSDocConstructSignature(r)){var a=Bp(n.expression).symbol;a||71!==n.expression.kind||(a=qc(n.expression));var i=a&&function(n){var t,r=e.getDeclaredJavascriptInitializer(n.valueDeclaration);r&&(n=ar(r)),Wm(n.valueDeclaration)&&(t=Jm(n));var a=qm(n),i=ca(n);return i.symbol&&!Xm(i)&&Wm(i.symbol.valueDeclaration)&&(t=Jm(i.symbol)),a&&t?bs([t,a]):a||t}(a);return i||(I&<(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Q)}}if(e.isInJavaScriptFile(n)&&ep(n))return function(e){var n=jt(e,e);if(n){var t=Jt(n);if(t)return ca(t)}return Q}(n.arguments[0]);var o=io(t);return 1536&o.flags&&Qm(n)?Xs(e.walkUpParenthesizedExpressions(n.parent)):o}function Qm(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=Uo(!1);return!!r&&r===Tt(t,"Symbol",67216319,void 0,void 0,!1)}function Zm(n){if(Av(n.arguments)||function(n){if(C===e.ModuleKind.ES2015)return Hv(n,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(n.typeArguments)return Hv(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;if(1!==t.length)return Hv(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);e.isSpreadElement(t[0])&&Hv(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(n),0===n.arguments.length)return lp(n,Q);for(var t=n.arguments[0],r=Np(t),a=1;a<n.arguments.length;++a)Np(n.arguments[a]);(4096&r.flags||8192&r.flags||!Ll(r,ie))&<(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Cr(r));var i=jt(n,t);if(i){var o=Xt(i,t,!0);if(o)return lp(n,$m(ca(o),o,i))}return lp(n,Q)}function $m(n,t,r){if(M&&n&&n!==ee){var a=n;if(!a.syntheticType)if(Rt(e.find(r.declarations,e.isSourceFile),r,!1)){var i=e.createSymbolTable(),o=ct(2097152,"default");o.target=Ft(t),i.set("default",o);var s=ct(2048,"__type"),l=gr(s,i,e.emptyArray,e.emptyArray,void 0,void 0);s.type=l,a.syntheticType=Md(n)?Ks(n,l,s,0,0):l}else a.syntheticType=n;return a.syntheticType}return n}function ep(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=Tt(n.expression,n.expression.escapedText,67216319,void 0,void 0,!0);if(!t)return!0;if(2097152&t.flags)return!1;var r=16&t.flags?232:3&t.flags?230:0;if(0!==r){var a=e.getDeclarationOfKind(t,r);return!!a&&!!(2097152&a.flags)}return!1}function np(n,t,r,i){var o=yc(ac(Bp(r,i)));xg(t);var s=Qs(t);return a&&s!==ee&&(xl(s,Sc(o))||Ml(o,s,n,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)),s}function tp(n){!function(n){94===n.keywordToken&&"target"!==n.name.escapedText&&Hv(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")}(n);var t=e.getNewTargetContainer(n);return t?154===t.kind?ca(ar(t.parent)):ca(ar(t)):(lt(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ee)}function rp(n){var t=ca(n);if(D){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return fc(t)}return t}function ap(e,n){return e.hasRestParameter?n<e.parameters.length-1?rp(e.parameters[n]):oo(e):n<e.parameters.length?rp(e.parameters[n]):Q}function ip(e){return e.parameters.length>0?ap(e,0):me}function op(n,t){var r=_t(n);if(!r.type){r.type=t;var a=n.valueDeclaration;71!==a.name.kind&&(r.type===ve&&(r.type=Zr(a.name)),function n(t){for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||(71===i.name.kind?_t(ar(i)).type=qr(i):n(i.name))}}(a.name))}}function sp(e){var n=Wo(!0);return n!==he?So(n,[e=pf(e)||ve]):ve}function lp(n,t){var r=sp(t);return r===ve?(lt(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),ee):(qo(!0)||lt(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 cp(n,t){if(!n.body)return ee;var r,a=e.getFunctionFlags(n);if(211!==n.body.kind)r=Np(n.body,t),2&a&&(r=mf(r,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{var i=function(n,t){var r=e.getFunctionFlags(n),a=[],i=mp(n),o=!1;if(e.forEachReturnStatement(n.body,function(s){var l=s.expression;if(l){var c=Np(l,t);2&r&&(c=mf(c,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),16384&c.flags&&(o=!0),e.pushIfUnique(a,c)}else i=!0}),0!==a.length||i||!o&&!function(e){switch(e.kind){case 190:case 191:return!0;case 153:return 182===e.parent.kind;default:return!1}}(n))return D&&a.length&&i&&e.pushIfUnique(a,ne),a}(n,t);if(1&a){if(!(i=e.concatenate(function(n,t){var r=[],a=0!=(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,function(n){e.pushIfUnique(r,up(n,a,t))}),r}(n,t),i))||0===i.length){var o=2&a?ts(Q):as(Q);return I&<(n.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,Cr(o)),o}}else{if(!i)return 2&a?lp(n,me):me;if(0===i.length)return 2&a?lp(n,de):de}r=gs(i,2)}var s=hd(n);if(s||xc(n,r),tc(r)){var l=s?s===$i(n)?r:io(s):void 0;if(l)switch(3&a){case 3:l=Zf(l,!0);break;case 1:l=Zf(l,!1);break;case 2:l=df(l)}r=sc(r,l)}var c=Sc(r);switch(3&a){case 3:return ts(c);case 1:return as(c);case 2:return sp(c);default:return c}}function up(n,t,r){var a=n.expression||n,i=n.expression?Np(n.expression,r):te,o=n.asteriskToken?Jf(i,a,!1,t):i;return t?pf(o,a,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 dp(n){if(!n.possiblyExhaustive)return!1;var t=Kp(n.expression);if(!rc(t))return!1;var r,a,i=gu(n);return!!i.length&&(r=hu(t,zs),a=i,131072&r.flags?!e.forEach(r.types,function(n){return!e.contains(a,n)}):e.contains(a,r))}function mp(n){return!!(128&n.flags)&&!e.some(n.body.statements,function(e){return 225===e.kind&&dp(e)})}function pp(n,t){if(a&&(!t||!Ep(t,2049))&&152!==n.kind&&!e.nodeIsMissing(n.body)&&211===n.body.kind&&mp(n)){var r=256&n.flags;if(t&&16384&t.flags)lt(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(t&&!r)lt(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(t&&D&&!Ll(ne,t))lt(e.getEffectiveReturnTypeNode(n),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(A.noImplicitReturns){if(!t){if(!r)return;if(ng(n,io($i(n))))return}lt(e.getEffectiveReturnTypeNode(n)||n,e.Diagnostics.Not_all_code_paths_return_a_value)}}}function fp(n,t){if(e.Debug.assert(153!==n.kind||e.isObjectLiteralMethod(n)),1===t&&vl(n))return kg(n),be;Sv(n)||190!==n.kind||Mv(n);var r=yt(n),i=ca(n.symbol);if(!(1024&r.flags)){var o=Ed(n);if(!(1024&r.flags)){if(r.flags|=1024,o){var s=Gi(i,0)[0];if(vl(n)){var l=fd(n);2===t&&function(n,t,r){for(var a=n.parameters.length-(n.hasRestParameter?1:0),i=0;i<a;i++){var o=n.parameters[i].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Fc(r.inferences,Qs(s),ap(t,i))}}}(s,o,l),function(n,t){n.typeParameters=t.typeParameters,t.thisParameter&&(!(i=n.thisParameter)||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(n.thisParameter=_c(t.thisParameter,void 0)),op(n.thisParameter,ca(t.thisParameter)));for(var r=n.parameters.length-(n.hasRestParameter?1:0),a=0;a<r;a++){var i=n.parameters[a];e.getEffectiveTypeAnnotationNode(i.valueDeclaration)||op(i,ap(t,a))}n.hasRestParameter&&Ql(t,n.parameters.length-1)&&(!ut(i=e.lastOrUndefined(n.parameters))&&e.getEffectiveTypeAnnotationNode(i.valueDeclaration)||op(i,ca(e.lastOrUndefined(t.parameters))))}(s,l===L?o:sl(o,l))}if(!e.getEffectiveReturnTypeNode(n)&&!s.resolvedReturnType){var c=cp(n,t);s.resolvedReturnType||(s.resolvedReturnType=c)}}qp(n),kg(n)}}return a&&153!==n.kind&&(wf(n,n.name),Of(n,n.name),Rf(n,n.name)),i}function gp(n){e.Debug.assert(153!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=e.getEffectiveReturnTypeNode(n),a=r&&(2==(3&t)?ff(n):Qs(r));if(0==(1&t)&&pp(n,a),n.body){if(r||io($i(n)),211===n.body.kind)xg(n.body);else{var i=Bp(n.body);a&&kl(2==(3&t)?mf(i,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):i,a,n.body)}Tf(n)}}function vp(e,n,t){return!!Tp(n,84)||(lt(e,t),!1)}function _p(n){return!!(8&e.getCheckFlags(n)||4&n.flags&&64&e.getDeclarationModifierFlagsFromSymbol(n)||3&n.flags&&2&Yd(n)||98304&n.flags&&!(65536&n.flags)||8&n.flags)}function yp(n,t){if(_p(t)){if(4&t.flags&&(183===n.kind||184===n.kind)&&99===n.expression.kind){var r=e.getContainingFunction(n);return!r||154!==r.kind||!(r.parent===t.valueDeclaration.parent||r===t.valueDeclaration.parent)}return!0}return!1}function hp(n){if(183===n.kind||184===n.kind){var t=e.skipParentheses(n.expression);if(71===t.kind){var r=yt(t).resolvedSymbol;if(2097152&r.flags){var a=Dt(r);return a&&244===a.kind}}}return!1}function bp(n,t){var r=e.skipOuterExpressions(n,3);return 71===r.kind||183===r.kind||184===r.kind||(lt(n,t),!1)}function Ep(e,n){if(e.flags&n||536870912&n&&vi(e))return!0;if(393216&e.flags)for(var t=0,r=e.types;t<r.length;t++)if(Ep(r[t],n))return!0;return!1}function Tp(e,n,t){return!!(e.flags&n)||!(t&&14337&e.flags)&&(84&n&&Ll(e,oe)||524322&n&&Ll(e,ie)||136&n&&Ll(e,ce)||2048&n&&Ll(e,de)||16384&n&&Ll(e,me)||8192&n&&Ll(e,re)||4096&n&&Ll(e,ne)||512&n&&Ll(e,ue)||134217728&n&&Ll(e,ge))}function Sp(n,t,r){return 131072&n.flags?e.every(n.types,function(e){return Sp(e,t,r)}):Tp(n,t,r)}function Lp(n){return 16&e.getObjectFlags(n)&&n.symbol&&Ap(n.symbol)}function Ap(e){return 0!=(128&e.flags)}function xp(n,t,r){if(268===t.kind||269===t.kind){var a=t.name;if(146===a.kind&&xd(a),jr(a))return;var i=e.getTextOfPropertyName(a);if(l=Br(n)?n:Kr(n,i)||Ad(i)&&Ui(n,1)||Ui(n,0))return 269===t.kind?kp(t,l):kp(t.initializer,l);lt(a,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Cr(n),e.declarationNameToString(a))}else{if(270===t.kind){x<6&&_v(t,4);var o=[];if(r)for(var s=0;s<r.length-1;s++)o.push(r[s].name);var l=Wr(n,o,n.symbol);return kp(t.expression,l)}lt(t,e.Diagnostics.Property_assignment_expected)}}function Cp(n,t,r,a,i){var o=n.elements,s=o[r];if(204!==s.kind)if(202!==s.kind){var l=""+r,c=Br(t)?t:nc(t)?Kr(t,l):a;if(c)return kp(s,c,i);Bp(s),lc(t)?lt(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Cr(t),Ao(t),o.length):lt(s,e.Diagnostics.Type_0_has_no_property_1,Cr(t),l)}else if(r<o.length-1)lt(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(198!==u.kind||58!==u.operatorToken.kind)return kp(u,is(a),i);lt(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function kp(n,t,r){var a;if(269===n.kind){var i=n;i.objectAssignmentInitializer&&(!D||4096&uc(Bp(i.objectAssignmentInitializer))||(t=tu(t,131072)),Op(i.name,i.equalsToken,i.objectAssignmentInitializer,r)),a=n.name}else a=n;return 198===a.kind&&58===a.operatorToken.kind&&(Dp(a,r),a=a.left),182===a.kind?function(e,n){var t=e.properties;if(D&&0===t.length)return nm(n,e);for(var r=0,a=t;r<a.length;r++)xp(n,a[r],t);return n}(a,t):181===a.kind?function(e,n,t){x<2&&A.downlevelIteration&&_v(e,512);for(var r=Jf(n,e,!1,!1)||ee,a=e.elements,i=0;i<a.length;i++)Cp(e,n,i,r,t);return n}(a,t,r):function(n,t,r){var a=Bp(n,r),i=270===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;return bp(n,i)&&kl(t,a,n,void 0),t}(a,t,r)}function Mp(e,n){return 0!=(12288&n.flags)||xl(e,n)}function Dp(n,t){return e.isInJavaScriptFile(n)&&e.getAssignedJavascriptInitializer(n)?Bp(n.right,t):Op(n.left,n.operatorToken,n.right,t,n)}function Op(n,t,r,i,o){var s=t.kind;if(58===s&&(182===n.kind||181===n.kind))return kp(n,Bp(r,i),i);var l,c,u=Bp(n,i),d=Bp(r,i);switch(s){case 39:case 40:case 61:case 62:case 41:case 63:case 42:case 64:case 38:case 60:case 45:case 65:case 46:case 66:case 47:case 67:case 49:case 69:case 50:case 70:case 48:case 68:if(u===pe||d===pe)return pe;u=nm(u,n),d=nm(d,r);var m=void 0;if(136&u.flags&&136&d.flags&&void 0!==(m=function(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}(t.kind)))lt(o||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(m));else{var p=vp(n,u,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),f=vp(r,d,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);p&&f&&h(oe)}return oe;case 37:case 59:if(u===pe||d===pe)return pe;Tp(u,524322)||Tp(d,524322)||(u=nm(u,n),d=nm(d,r));var g=void 0;return Tp(u,84,!0)&&Tp(d,84,!0)?g=oe:Tp(u,524322,!0)||Tp(d,524322,!0)?g=ie:(Br(u)||Br(d))&&(g=u===ee||d===ee?ee:Q),g&&!y(s)?g:g?(59===s&&h(g),g):(b(),Q);case 27:case 29:case 30:case 31:return y(s)&&(u=ac(nm(u,n)),d=ac(nm(d,r)),xl(u,d)||xl(d,u)||b()),ce;case 32:case 33:case 34:case 35:var v=rc(u),_=rc(d);return v&&_||(u=v?ac(u):u,d=_?ac(d):d),Mp(u,d)||Mp(d,u)||b(),ce;case 93:return function(n,t,r,a){return r===pe||a===pe?pe:(!Br(r)&&Sp(r,16382)&<(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Br(a)||Bg(a)||Sl(a,Me)||lt(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),ce)}(n,r,u,d);case 92:return function(n,t,r,a){return r===pe||a===pe?pe:(r=nm(r,n),a=nm(a,t),xl(r,ie)||Tp(r,1620)||lt(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Tp(a,141590528)||lt(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ce)}(n,r,u,d);case 53:return 1048576&nu(u)?gs([(c=D?u:ac(d),hu(c,mc)),d]):u;case 54:return 2097152&nu(u)?gs([dc(u),d],2):u;case 58:return h(d),yc(d);case 26:return!A.allowUnreachableCode&&function n(t){switch((t=e.skipParentheses(t)).kind){case 71:case 9:case 12:case 187:case 200:case 13:case 8:case 101:case 86:case 95:case 140:case 190:case 203:case 191:case 181:case 182:case 193:case 207:case 254:case 253:return!0;case 199:return n(t.whenTrue)&&n(t.whenFalse);case 198:return!e.isAssignmentOperator(t.operatorToken.kind)&&n(t.left)&&n(t.right);case 196:case 197:switch(t.operator){case 51:case 37:case 38:case 52:return!0}return!1;case 194:case 188:case 206:default:return!1}}(n)&&(71!==(l=r).kind||"eval"!==l.escapedText)&<(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),d}function y(t){var a=Ep(u,1536)?n:Ep(d,1536)?r:void 0;return!a||(lt(a,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t)),!1)}function h(t){a&&e.isAssignmentOperator(s)&&bp(n,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&kl(t,u,n,void 0)}function b(){lt(o||t,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),Cr(u),Cr(d))}}function Rp(n){a&&(4096&n.flags&&!function(n){for(var t=n,r=n.parent;r;){if(e.isFunctionLike(r)&&t===r.body)return!1;if(e.isClassLike(t))return!0;t=r,r=r.parent}return!1}(n)||Vv(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),nd(n)&<(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(n),r=t?e.getFunctionFlags(t):0;if(!(1&r))return Q;n.asteriskToken&&(3==(3&r)&&x<6&&_v(n,26624),1==(3&r)&&x<2&&A.downlevelIteration&&_v(n,256));var i=0!=(2&r),o=up(n,i),s=e.getEffectiveReturnTypeNode(t);return s&&kl(o,Zf(Qs(s),i)||Q,n.expression||n,void 0),Q}function Ip(e,n,t){var r=function(e){return 261===e.kind?e.parent.parent:e}(e),a=r.contextualType,i=r.contextualMapper;r.contextualType=n,r.contextualMapper=t;var o=Bp(e,t===L?1:t?2:3);return r.contextualType=a,r.contextualMapper=i,o}function Np(e,n){var t=yt(e);if(!t.resolvedType){if(n)return Bp(e,n);var r=fn;fn=gn,t.resolvedType=Bp(e,n),fn=r}return t.resolvedType}function wp(n){return 188===(n=e.skipParentheses(n)).kind||206===n.kind}function Pp(n){var t=e.isInJavaScriptFile(n)&&e.getDeclaredJavascriptInitializer(n)||n.initializer,r=Kp(t,!0);return 2&e.getCombinedNodeFlags(n)||64&e.getCombinedModifierFlags(n)&&!e.isParameterPropertyDeclaration(n)||wp(t)?r:ic(r)}function Fp(e,n,t){2===arguments.length&&(t=pd(e));var r=Bp(e,n);return wp(e)?r:sc(r,t)}function Vp(e,n){return 146===e.name.kind&&xd(e.name),Fp(e.initializer,n)}function Gp(e,n){return Nv(e),146===e.name.kind&&xd(e.name),Hp(e,fp(e,n),n)}function Hp(e,n,t){if(2===t){var r=bm(n);if(r&&r.typeParameters){var a=md(e);if(a){var i=bm(gc(a));if(i&&!i.typeParameters)return fo(Em(r,i,fd(e)))}}}return n}function Kp(n,t){if(185===n.kind&&97!==n.expression.kind&&!e.isRequireCall(n,!0)&&!Qm(n)){var r=bm(em(n.expression));if(r&&!r.typeParameters)return io(r)}return t?Np(n):Bp(n)}function Bp(n,t){var r;return Lp(r=145===n.kind?rm(n):Hp(n,function(n,t){switch(n.kind){case 71:return Bu(n);case 99:return function(n){var t=e.getThisContainer(n,!0),r=!1;switch(154===t.kind&&zu(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),191===t.kind&&(t=e.getThisContainer(t,!1),r=x<2),t.kind){case 237:lt(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 236:lt(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:Xu(n,t)&<(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:e.hasModifier(t,32)&<(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:lt(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&Uu(n,t);var a=Ju(n,t);return!a&&N&<(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),a||Q}(n);case 97:return Yu(n);case 95:return ae;case 13:case 9:return qs(Js(n.text));case 8:return Bv(n),qs(Js(+n.text));case 101:return se;case 86:return le;case 200:return function(n){return e.forEach(n.templateSpans,function(e){Bp(e.expression)}),ie}(n);case 12:return we;case 181:return Sd(n,t);case 182:return kd(n,t);case 183:return tm(n);case 184:return pm(n);case 185:if(91===n.expression.kind)return Zm(n);case 186:return Ym(n);case 187:return function(e){return x<2&&_v(e,65536),io(jm(e))}(n);case 189:return function(n,t){var r=e.isInJavaScriptFile(n)?e.getJSDocTypeTag(n):void 0;return r?np(r,r.typeExpression.type,n.expression,t):Bp(n.expression,t)}(n,t);case 203:return function(e){return lg(e),kg(e),ca(ar(e))}(n);case 190:case 191:return fp(n,t);case 193:return function(e){return Bp(e.expression),Zn}(n);case 188:case 206:return function(e){return np(e,e.type,e.expression)}(n);case 207:return function(e){return gc(Bp(e.expression))}(n);case 208:return tp(n);case 192:return function(n){Bp(n.expression);var t=e.skipParentheses(n.expression);if(183!==t.kind&&184!==t.kind)return lt(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ce;var r=or(yt(t).resolvedSymbol);return r&&_p(r)&<(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),ce}(n);case 194:return function(e){return Bp(e.expression),te}(n);case 195:return function(n){return a&&(16384&n.flags||Vv(n,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),nd(n)&<(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),mf(Bp(n.expression),n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(n);case 196:return function(n){var t=Bp(n.operand);if(t===pe)return pe;if(8===n.operand.kind){if(38===n.operator)return qs(Js(-n.operand.text));if(37===n.operator)return qs(Js(+n.operand.text))}switch(n.operator){case 37:case 38:case 52:return nm(t,n.operand),Ep(t,1536)&<(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),oe;case 51:var r=3145728&nu(t);return 1048576===r?le:2097152===r?se:ce;case 43:case 44:return vp(n.operand,nm(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&bp(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),oe}return ee}(n);case 197:return function(n){var t=Bp(n.operand);return t===pe?pe:(vp(n.operand,nm(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&bp(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),oe)}(n);case 198:return Dp(n,t);case 199:return function(e,n){return Bp(e.condition),gs([Bp(e.whenTrue,n),Bp(e.whenFalse,n)],2)}(n,t);case 202:return function(e,n){return x<2&&A.downlevelIteration&&_v(e,1536),Jf(Bp(e.expression,n),e.expression,!1,!1)}(n,t);case 204:return te;case 201:return Rp(n);case 263:return function(n,t){if(n.expression){var r=Bp(n.expression,t);return n.dotDotDotToken&&r!==Q&&!$l(r)&<(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return ee}(n,t);case 253:return function(e,n){return Jd(e.openingElement,n),Od(e.closingElement.tagName)?Pd(e.closingElement):Bp(e.closingElement.tagName),qd(e)||Q}(n,t);case 254:return function(e,n){return Jd(e,n),qd(e)||Q}(n,t);case 257:return function(n,t){return Jd(n.openingFragment,t),2===A.jsx&&(A.jsxFactory||e.getSourceFileOfNode(n).pragmas.has("jsx"))&<(n,A.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),qd(n)||Q}(n,t);case 261:return function(e,n){return Id(e.parent,n)}(n,t);case 255:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ee}(n,t),t))&&(183===n.parent.kind&&n.parent.expression===n||184===n.parent.kind&&n.parent.expression===n||(71===n.kind||145===n.kind)&&Pg(n)||164===n.parent.kind&&n.parent.exprName===n||lt(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)),r}function Up(n){n.expression&&Vv(n.expression,e.Diagnostics.Type_expected),xg(n.constraint),xg(n.default);var t=Oa(ar(n));Mi(t)||lt(n.constraint,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Cr(t)),function(e){return Oi(e)!==Te}(t)||lt(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Cr(t));var r=Si(t),i=Ri(t);r&&i&&kl(i,Ya(r,i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),a&&ag(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function jp(n){hv(n),Hf(n);var t=e.getContainingFunction(n);e.hasModifier(n,92)&&(154===t.kind&&e.nodeIsPresent(t.body)||lt(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&<(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)&<(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),154!==t.kind&&158!==t.kind&&163!==t.kind||lt(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!n.dotDotDotToken||e.isBindingPattern(n.name)||$l(ca(n.symbol))||lt(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Wp(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(71===s.kind&&s.escapedText===r)return lt(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((179===s.kind||178===s.kind)&&Wp(s,t,r))return!0}}}function qp(n){159===n.kind?function(n){hv(n)||function(n){var t=n.parameters[0];if(1!==n.parameters.length)return Hv(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(t.dotDotDotToken)return Hv(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(t))return Hv(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Hv(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Hv(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Hv(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(137!==t.type.kind&&134!==t.type.kind){var r=Qs(t.type);return 2&r.flags||4&r.flags?Hv(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(t.name),Cr(r),Cr(Qs(n.type))):Sp(r,32,!0)?Hv(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Hv(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}n.type||Hv(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(n)}(n):162!==n.kind&&232!==n.kind&&163!==n.kind&&157!==n.kind&&154!==n.kind&&158!==n.kind||Sv(n);var t=e.getFunctionFlags(n);if(4&t||(3==(3&t)&&x<6&&_v(n,6144),2==(3&t)&&x<4&&_v(n,64),0!=(3&t)&&x<2&&_v(n,128)),ig(n.typeParameters),e.forEach(n.parameters,jp),n.type&&xg(n.type),a){!function(n){!e.hasRestParameter(n)||2097152&n.flags||e.nodeIsMissing(n.body)||e.forEach(n.parameters,function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===H.escapedName&<(n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(n);var r=e.getEffectiveReturnTypeNode(n);if(I&&!r)switch(n.kind){case 158:lt(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 157:lt(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var i=e.getFunctionFlags(n);if(1==(5&i)){var o=Qs(r);if(o===de)lt(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Zf(o,0!=(2&i))||Q;kl(2&i?ts(s):as(s),o,r)}}else 2==(3&i)&&ff(n)}k&&!n.body&&Cf(n)}}function zp(n){for(var t=e.createMap(),r=0,a=n.members;r<a.length;r++){var i=a[r];if(150===i.kind){var o=void 0;switch(i.name.kind){case 9:case 8:o=i.name.text;break;case 71:o=e.idText(i.name);break;default:continue}t.get(o)?(lt(e.getNameOfDeclaration(i.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),lt(i.name,e.Diagnostics.Duplicate_identifier_0,o)):t.set(o,!0)}}}function Jp(n){if(234===n.kind){var t=ar(n);if(t.declarations.length>0&&t.declarations[0]!==n)return}var r=go(ar(n));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o<s.length;o++){var l=s[o];if(1===l.parameters.length&&l.parameters[0].type)switch(l.parameters[0].type.kind){case 137:i?lt(l,e.Diagnostics.Duplicate_string_index_signature):i=!0;break;case 134:a?lt(l,e.Diagnostics.Duplicate_number_index_signature):a=!0}}}function Xp(n){hv(n)||function(n){if(e.isClassLike(n.parent)){if(Iv(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(234===n.parent.kind){if(Iv(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 Hv(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(165===n.parent.kind){if(Iv(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 Hv(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}return 2097152&n.flags&&n.initializer?Vv(n.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||2097152&n.flags||e.hasModifier(n,160))?Hv(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):void 0}(n)||kv(n.name),Hf(n)}function Yp(n){qp(n),function(n){var t=e.getEffectiveTypeParameterDeclarations(n);if(t){var r=e.isNodeArray(t)?t:e.first(t),a=r.pos,i=r.end;return Gv(n,a,i-a,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(n)||function(n){var t=e.getEffectiveReturnTypeNode(n);t&&Hv(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(n),xg(n.body),Tf(n);var t=ar(n);if(n===e.getDeclarationOfKind(t,n.kind)&&lf(t),!e.nodeIsMissing(n.body)&&a){var r=n.parent;if(e.getClassExtendsHeritageClauseElement(r)){Uu(n.parent,r);var i=qu(r),o=Wu(n);if(o){if(i&<(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),e.some(n.parent.members,function(n){return 151===n.kind&&!e.hasModifier(n,32)&&!!n.initializer})||e.some(n.parameters,function(n){return e.hasModifier(n,92)})){for(var s=void 0,l=0,c=n.body.statements;l<c.length;l++){var u=c[l];if(214===u.kind&&e.isSuperCall(u.expression)){s=u;break}if(!e.isPrologueDirective(u))break}s||lt(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else i||lt(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Qp(n){if(a){if(Sv(n)||function(n){var t=n.kind;if(x<1)return Hv(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(2097152&n.flags)return Hv(n.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===n.body&&!e.hasModifier(n,128))return Gv(n,n.end-1,";".length,e.Diagnostics._0_expected,"{");if(n.body&&e.hasModifier(n,128))return Hv(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.typeParameters)return Hv(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return Rv(e)||e.parameters.length===(155===e.kind?0:1)}(n))return Hv(n.name,155===t?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(156===t){if(n.type)return Hv(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=n.parameters[0];if(r.dotDotDotToken)return Hv(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Hv(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Hv(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}(n)||kv(n.name),hf(n),qp(n),155===n.kind&&!(2097152&n.flags)&&e.nodeIsPresent(n.body)&&128&n.flags&&(256&n.flags||lt(n.name,e.Diagnostics.A_get_accessor_must_return_a_value)),146===n.name.kind&&xd(n.name),!ja(n)){var t=155===n.kind?156:155,r=e.getDeclarationOfKind(ar(n),t);if(r){var i=e.getModifierFlags(n),o=e.getModifierFlags(r);(28&i)!=(28&o)&<(n.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&i)!=(128&o)&<(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Zp(n,r,ra,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),Zp(n,r,aa,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=ia(ar(n));155===n.kind&&pp(n,s)}xg(n.body),Tf(n)}function Zp(e,n,t,r){var a=t(e),i=t(n);a&&i&&!bl(a,i)&<(e,r)}function $p(n,t){return Zi(e.map(n.typeArguments,Qs),t,Qi(t),e.isInJavaScriptFile(n))}function ef(n,t){for(var r,a,i=!0,o=0;o<t.length;o++){var s=Si(t[o]);s&&(r||(a=nl(t,r=$p(n,t))),i=i&&kl(r[o],pl(s,a),n.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function nf(n){var t=Po(n);if(t!==ee){var r=yt(n).resolvedSymbol;if(r)return 524288&r.flags&&_t(r).typeParameters||(4&e.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function tf(n){Lv(n,n.typeArguments),161!==n.kind||void 0===n.typeName.jsdocDotPos||e.isInJavaScriptFile(n)||e.isInJSDoc(n)||Gv(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var t=Po(n);if(t!==ee){if(n.typeArguments&&(e.forEach(n.typeArguments,xg),a)){var r=nf(n);r&&ef(n,r)}16&t.flags&&8&yt(n).resolvedSymbol.flags&<(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Cr(t))}}function rf(n,t){if(!(1048576&n.flags))return n;var r=n.objectType,a=n.indexType;return Ll(a,Ts(r))?(184===t.kind&&e.isAssignmentTarget(t)&&32&e.getObjectFlags(r)&&1&pi(r)&<(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Cr(r)),n):Bi(Ii(r),1)&&Tp(a,84)?n:(lt(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Cr(a),Cr(r)),n)}function af(n){!function(n){if(141===n.operator){if(138!==n.type.kind)return Hv(n.type,e.Diagnostics._0_expected,e.tokenToString(138));var t=e.walkUpParenthesizedTypes(n.parent);switch(t.kind){case 230:var r=t;if(71!==r.name.kind)return Hv(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return Hv(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return Hv(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 151:if(!e.hasModifier(t,32)||!e.hasModifier(t,64))return Hv(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 150:if(!e.hasModifier(t,64))return Hv(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Hv(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}(n),xg(n.type)}function of(n){return e.hasModifier(n,8)&&!!(2097152&n.flags)}function sf(n,t){var r=e.getCombinedModifierFlags(n);return 234!==n.parent.kind&&233!==n.parent.kind&&203!==n.parent.kind&&2097152&n.flags&&(2&r||(r|=1),r|=2),r&t}function lf(n){if(a){for(var t,r,i,o=0,s=155,l=!1,c=!0,u=!1,d=n.declarations,m=0!=(16384&n.flags),p=!1,f=!1,g=0,v=d;g<v.length;g++){var _=v[g],y=2097152&_.flags,h=234===_.parent.kind||165===_.parent.kind||y;if(h&&(i=void 0),232===_.kind||153===_.kind||152===_.kind||154===_.kind){var b=sf(_,155);o|=b,s&=b,l=l||e.hasQuestionToken(_),c=c&&e.hasQuestionToken(_),e.nodeIsPresent(_.body)&&t?m?f=!0:p=!0:i&&i.parent===_.parent&&i.end!==_.pos&&C(i),e.nodeIsPresent(_.body)?t||(t=_):u=!0,i=_,h||(r=_)}}if(f&&e.forEach(d,function(n){lt(n,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),p&&e.forEach(d,function(n){lt(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_function_implementation)}),!r||r.body||e.hasModifier(r,128)||r.questionToken||C(r),u&&(function(n,t,r,a,i){if(0!=(a^i)){var o=sf(x(n,t),r);e.forEach(n,function(n){var t=sf(n,r)^o;1&t?lt(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?lt(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?lt(e.getNameOfDeclaration(n)||n,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&<(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(d,t,155,o,s),function(n,t,r,a){if(r!==a){var i=e.hasQuestionToken(x(n,t));e.forEach(n,function(n){e.hasQuestionToken(n)!==i&<(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(d,t,l,c),t))for(var E=no(n),T=$i(t),S=0,L=E;S<L.length;S++){var A=L[S];if(!Ol(T,A)){lt(A.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}function x(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function C(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.isComputedPropertyName(n.name)&&e.isComputedPropertyName(i)||!e.isComputedPropertyName(n.name)&&!e.isComputedPropertyName(i)&&e.getEscapedTextOfIdentifierOrLiteral(n.name)===e.getEscapedTextOfIdentifierOrLiteral(i)))return void(153!==n.kind&&152!==n.kind||e.hasModifier(n,32)===e.hasModifier(r,32)||lt(a,e.hasModifier(n,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(r.body))return void lt(a,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(n.name))}var o=n.name||n;m?lt(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(n,128)?lt(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):lt(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function cf(n){if(a){var t=n.localSymbol;if((t||(t=ar(n)).exportSymbol)&&e.getDeclarationOfKind(t,n.kind)===n){for(var r=0,i=0,o=0,s=0,l=t.declarations;s<l.length;s++){var c=y(v=l[s]),u=sf(v,513);1&u?512&u?o|=c:r|=c:i|=c}var d,m=r&i,p=o&(r|i);if(m||p)for(var f=0,g=t.declarations;f<g.length;f++){c=y(v=g[f]);var v,_=e.getNameOfDeclaration(v);c&p?lt(_,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(_)):c&m&<(_,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(_))}!function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(d||(d={}))}}function y(n){switch(n.kind){case 234:case 235:case 291:return 2;case 237:return e.isAmbientModule(n)||0!==e.getModuleInstanceState(n)?5:4;case 233:case 236:return 3;case 272:return 7;case 241:case 244:case 243:var t=0,r=Vt(ar(n));return e.forEach(r.declarations,function(e){t|=y(e)}),t;case 230:case 180:case 232:case 246:return 1;default:e.Debug.fail(e.Debug.showSyntaxKind(n))}}}function uf(e,n,t){var r=df(e,n);return r&&pf(r,n,t)}function df(n,t){if(!Br(n)){var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(ua(n,Wo(!1)))return r.promisedTypeOfPromise=n.typeArguments[0];var a=Kr(n,"then");if(!Br(a)){var i=a?Gi(a,0):e.emptyArray;if(0!==i.length){var o=tu(gs(e.map(i,ip)),524288);if(!Br(o)){var s=Gi(o,0);if(0!==s.length)return r.promisedTypeOfPromise=gs(e.map(s,ip),2);t&<(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&<(t,e.Diagnostics.A_promise_must_have_a_then_method)}}}function mf(e,n,t){return pf(e,n,t)||ee}function pf(n,t,r){var a=n;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(Br(n))return a.awaitedTypeOfType=n;if(131072&n.flags){for(var i=void 0,o=0,s=n.types;o<s.length;o++){var l=s[o];i=e.append(i,pf(l,t,r))}if(!i)return;return a.awaitedTypeOfType=gs(i)}var c=df(n);if(c){if(n.id===c.id||Pn.indexOf(c.id)>=0)return void(t&<(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Pn.push(n.id);var u=pf(c,t,r);if(Pn.pop(),!u)return;return a.awaitedTypeOfType=u}var d=Kr(n,"then");if(!(d&&Gi(d,0).length>0))return a.awaitedTypeOfType=n;t&&(e.Debug.assert(!!r),lt(t,r))}function ff(n){var t=e.getEffectiveReturnTypeNode(n),r=Qs(t);if(x>=2){if(r===ee)return ee;var a=Wo(!0);if(a!==he&&!ua(r,a))return lt(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ee}else{if(function(n){vf(n&&e.getEntityNameFromTypeNode(n))}(t),r===ee)return ee;var i=e.getEntityNameFromTypeNode(t);if(void 0===i)return lt(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,Cr(r)),ee;var o=Ut(i,67216319,!0),s=o?ca(o):ee;if(s===ee)return 71===i.kind&&"Promise"===i.escapedText&&da(r)===Wo(!1)?lt(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):lt(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)),ee;var l=qe||(qe=Bo("PromiseConstructorLike",0,!0))||ve;if(l===ve)return lt(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)),ee;if(!kl(s,l,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 ee;var c=i&&yg(i),u=bt(n.locals,c.escapedText,67216319);if(u)return lt(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(c),e.entityNameToString(i)),ee}return mf(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function gf(n){var t=io(jm(n));if(!(1&t.flags)){var r,a,i=Gm(n);switch(n.parent.kind){case 233:r=gs([ca(ar(n.parent)),de]);break;case 148:r=de,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:r=de,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:r=gs([ns(Gg(n.parent)),de])}kl(t,r,n,i,function(){return a})}}function vf(e){if(e){var n=yg(e),t=2097152|(71===e.kind?67901928:1920),r=Tt(n,n.escapedText,t,void 0,void 0,!0);r&&2097152&r.flags&&sr(r)&&!$g(Vt(r))&&Ht(r)}}function _f(n){var t=function n(t){if(t)switch(t.kind){case 169:case 168:for(var r=void 0,a=0,i=t.types;a<i.length;a++){for(var o=i[a];172===o.kind;)o=o.type;if(131!==o.kind&&(D||95!==o.kind&&140!==o.kind)){var s=n(o);if(!s)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(s)||r.escapedText!==s.escapedText)return}else r=s}}return r;case 172:return n(t.type);case 161:return t.typeName}}(n);t&&e.isEntityName(t)&&vf(t)}function yf(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function hf(n){if(n.decorators&&e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){A.experimentalDecorators||lt(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);var t=n.decorators[0];if(_v(t,8),148===n.kind&&_v(t,32),A.emitDecoratorMetadata)switch(_v(t,16),n.kind){case 233:var r=e.getFirstConstructorWithBody(n);if(r)for(var a=0,i=r.parameters;a<i.length;a++)_f(yf(i[a]));break;case 153:case 155:case 156:for(var o=0,s=n.parameters;o<s.length;o++)_f(yf(s[o]));_f(e.getEffectiveReturnTypeNode(n));break;case 151:_f(e.getEffectiveTypeAnnotationNode(n));break;case 148:_f(yf(n));for(var l=0,c=n.parent.parameters;l<c.length;l++)_f(yf(c[l]))}e.forEach(n.decorators,gf)}}function bf(e){switch(e.kind){case 71:return e;case 183:return e.name;default:return}}function Ef(n){hf(n),qp(n);var t=e.getFunctionFlags(n);if(n.name&&146===n.name.kind&&xd(n.name),!ja(n)){var r=ar(n),i=n.localSymbol||r,o=e.find(i.declarations,function(e){return e.kind===n.kind&&!(65536&e.flags)});n===o&&lf(i),r.parent&&e.getDeclarationOfKind(r,n.kind)===n&&lf(r)}var s=152===n.kind?void 0:n.body;xg(s);var l=e.getEffectiveReturnTypeNode(n);if(0==(1&t)){var c=l&&(2&t?ff(n):Qs(l));pp(n,c)}a&&!l&&(I&&e.nodeIsMissing(s)&&!of(n)&&Ac(n,Q),1&t&&e.nodeIsPresent(s)&&io($i(n))),Tf(n)}function Tf(e){nn&&nn.push(e)}function Sf(n){!k||2097152&n.flags||n.locals.forEach(function(n){if(262144&n.flags?3&n.flags&&!(3&n.isReferenced):!n.isReferenced)if(n.valueDeclaration&&148===e.getRootDeclaration(n.valueDeclaration).kind){var t=e.getRootDeclaration(n.valueDeclaration),r=e.getNameOfDeclaration(n.valueDeclaration);!A.noUnusedParameters||e.isParameterPropertyDeclaration(t)||e.parameterIsThisKeyword(t)||(a=r)&&Af(a)||lt(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(n))}else A.noUnusedLocals&&e.forEach(n.declarations,function(t){return Lf(t,e.symbolName(n))});var a})}function Lf(n,t){var r=e.getNameOfDeclaration(n)||n;if(Af(r)){var a=e.getRootDeclaration(r.parent);if(230===a.kind&&e.isForInOrOfStatement(a.parent.parent)||147===a.kind)return}(function(n){if(e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)){var t=e.lastOrUndefined(n.parent.elements);return t!==n&&!!t.dotDotDotToken}return!1})(71===r.kind?r.parent:r)||Fn.add(e.createDiagnosticForNodeSpan(e.getSourceFileOfNode(n),n,r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,t))}function Af(n){return e.isIdentifier(n)&&95===e.idText(n).charCodeAt(0)}function xf(n){if(A.noUnusedLocals&&!(2097152&n.flags))for(var t=0,r=n.members;t<r.length;t++){var a=r[t];switch(a.kind){case 153:case 151:case 155:case 156:if(156===a.kind&&32768&a.symbol.flags)break;var i=ar(a);!i.isReferenced&&e.hasModifier(a,8)&<(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ar(i));break;case 154:for(var o=0,s=a.parameters;o<s.length;o++){var l=s[o];!l.symbol.isReferenced&&e.hasModifier(l,8)&<(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol))}break;case 159:case 210:break;default:e.Debug.fail()}}}function Cf(n){if(A.noUnusedParameters&&!(2097152&n.flags)&&n.typeParameters){var t=ar(n);if((t&&t.declarations&&e.lastOrUndefined(t.declarations))!==n)return;for(var r=0,a=n.typeParameters;r<a.length;r++){var i=a[r];262144&rr(i.symbol).isReferenced||Af(i.name)||lt(i.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(i.symbol))}}}function kf(n){if(A.noUnusedLocals&&!(2097152&n.flags)){var t=e.createMap();n.locals.forEach(function(n){var r,a;if(!n.isReferenced&&!n.exportSymbol)for(var i=0,o=n.declarations;i<o.length;i++){var l=o[i];if(!e.isAmbientModule(l))if(243===(a=l).kind||246===a.kind||244===a.kind){var c=243===(r=l).kind?r:244===r.kind?r.parent:r.parent.parent,u=String(s(c)),d=t.get(u);d?d[1].push(l):t.set(u,[c,[l]])}else Lf(l,e.symbolName(n))}}),t.forEach(function(n){var t=n[0],r=n[1],a=t.parent;if(function(n,t){var r=n.name,a=n.namedBindings;return r&&t(n)||a&&(244===a.kind?t(a):e.forEach(a.elements,t))}(t,function(n){return!e.contains(r,n)}))for(var i=0,o=r;i<o.length;i++){var s=o[i];Lf(s,e.idText(s.name))}else 1===r.length?lt(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(r).name)):lt(a,e.Diagnostics.All_imports_in_import_declaration_are_unused,e.showModuleSpecifier(a))})}}function Mf(n){if(211===n.kind&&Kv(n),e.isFunctionOrModuleBlock(n)){var t=_n;e.forEach(n.statements,xg),_n=t}else e.forEach(n.statements,xg);n.locals&&Tf(n)}function Df(n,t,r){if(!t||t.escapedText!==r)return!1;if(151===n.kind||150===n.kind||153===n.kind||152===n.kind||155===n.kind||156===n.kind)return!1;if(2097152&n.flags)return!1;var a=e.getRootDeclaration(n);return 148!==a.kind||!e.nodeIsMissing(a.parent.body)}function Of(e,n){Df(e,n,"_this")&&Nn.push(e)}function Rf(e,n){Df(e,n,"_newTarget")&&wn.push(e)}function If(n){e.findAncestor(n,function(t){if(4&rv(t))return 71!==n.kind?lt(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):lt(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0})}function Nf(n){e.findAncestor(n,function(t){if(8&rv(t))return 71!==n.kind?lt(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):lt(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0})}function wf(n,t){if(Df(n,t,"_super")){var r=e.getContainingClass(n);!r||2097152&r.flags||e.getClassExtendsHeritageClauseElement(r)&<(n,71!==n.kind?e.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:e.Diagnostics.Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference)}}function Pf(n,t){if(!(C>=e.ModuleKind.ES2015)&&(Df(n,t,"require")||Df(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Hr(n);272===r.kind&&e.isExternalOrCommonJsModule(r)&<(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function Ff(n,t){if(!(x>=4)&&Df(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Hr(n);272===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&<(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))}}function Vf(n){if(148===e.getRootDeclaration(n).kind){var t=e.getContainingFunction(n);!function r(a){if(!e.isTypeNode(a)&&!e.isDeclarationName(a)){if(183===a.kind)return r(a.expression);if(71!==a.kind)return e.forEachChild(a,r);var i=Tt(a,a.escapedText,69313471,void 0,void 0,!1);if(i&&i!==X&&i.valueDeclaration)if(i.valueDeclaration!==n){var o=e.getEnclosingBlockScopeContainer(i.valueDeclaration);if(o===t){if(148===i.valueDeclaration.kind||180===i.valueDeclaration.kind){if(i.valueDeclaration.pos<n.pos)return;if(e.findAncestor(a,function(t){return t===n.initializer?"quit":e.isFunctionLike(t.parent)||151===t.parent.kind&&!e.hasModifier(t.parent,32)&&e.isClassLike(t.parent.parent)}))return}lt(a,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(n.name),e.declarationNameToString(a))}}else lt(a,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(n.name))}}(n.initializer)}}function Gf(e){return e===Z?Q:e===Ve?Fe:e}function Hf(n){if(hf(n),e.isBindingElement(n)||xg(n.type),n.name){if(146===n.name.kind&&(xd(n.name),n.initializer&&Np(n.initializer)),180===n.kind){178===n.parent.kind&&x<6&&_v(n,4),n.propertyName&&146===n.propertyName.kind&&xd(n.propertyName);var t=n.parent.parent,r=Ur(t),a=n.propertyName||n.name;if(!e.isBindingPattern(a)){var i=Fi(r,e.getTextOfPropertyName(a));um(i,void 0,!1),t.initializer&&i&&Zd(t,t.initializer,r,i)}}if(e.isBindingPattern(n.name)&&(179===n.name.kind&&x<2&&A.downlevelIteration&&_v(n,512),e.forEach(n.name.elements,xg)),n.initializer&&148===e.getRootDeclaration(n).kind&&e.nodeIsMissing(e.getContainingFunction(n).body))lt(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){if(n.initializer&&219!==n.parent.parent.kind){var o=Np(n.initializer);D&&0===n.name.elements.length?nm(o,n):kl(o,$r(n),n,void 0),Vf(n)}}else{var s=ar(n),l=Gf(ca(s));if(n===s.valueDeclaration)n.initializer&&219!==n.parent.parent.kind&&(kl(Np(e.isInJavaScriptFile(n)&&e.getDeclaredJavascriptInitializer(n)||n.initializer),l,n,void 0),Vf(n));else{var c=Gf($r(n));l===ee||c===ee||bl(l,c)||67108864&s.flags||Kf(l,n,c),n.initializer&&kl(Np(n.initializer),c,n,void 0),u=n,d=s.valueDeclaration,148===u.kind&&230===d.kind||230===u.kind&&148===d.kind||e.hasQuestionToken(u)===e.hasQuestionToken(d)&&e.getSelectedModifierFlags(u,504)===e.getSelectedModifierFlags(d,504)||(lt(e.getNameOfDeclaration(s.valueDeclaration),e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name)),lt(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name)))}151!==n.kind&&150!==n.kind&&(cf(n),230!==n.kind&&180!==n.kind||function(n){if(0==(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(230!==n.kind||n.initializer)){var t=ar(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=Tt(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&Yd(r)){var a=e.getAncestor(r.valueDeclaration,231),i=212===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!i||!(211===i.kind&&e.isFunctionLike(i.parent)||238===i.kind||237===i.kind||272===i.kind)){var o=Ar(r);lt(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),wf(n,n.name),Of(n,n.name),Rf(n,n.name),Pf(n,n.name),Ff(n,n.name))}}var u,d}function Kf(n,t,r){var a=e.getNameOfDeclaration(t);lt(a,151===t.kind||150===t.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,e.declarationNameToString(a),Cr(n),Cr(r))}function Bf(n){return function(n){if(219!==n.parent.parent.kind&&220!==n.parent.parent.kind)if(2097152&n.flags){if(n.initializer){if(!e.isConst(n)||n.type){var t="=".length;return Gv(n,n.initializer.pos-t,t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!wv(n.initializer))return Hv(n.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(n.initializer&&(!e.isConst(n)||!wv(n.initializer))){var t="=".length;return Gv(n,n.initializer.pos-t,t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return Hv(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(n))return Hv(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(212!==n.parent.parent.kind||!n.type||n.initializer||2097152&n.flags))return Hv(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);A.module===e.ModuleKind.ES2015||A.module===e.ModuleKind.ESNext||A.module===e.ModuleKind.System||A.noEmit||2097152&n.parent.parent.flags||!e.hasModifier(n.parent.parent,1)||function n(t){if(71===t.kind){if("__esModule"===e.idText(t))return Hv(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,a=0,i=r;a<i.length;a++){var o=i[a];if(!e.isOmittedExpression(o))return n(o.name)}}(n.name),(e.isLet(n)||e.isConst(n))&&function n(t){if(71===t.kind){if(110===t.originalKeywordKind)return Hv(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=t.elements,a=0,i=r;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||n(o.name)}}(n.name)}(n),Hf(n)}function Uf(n){return function(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return Hv(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(179===n.name.kind||178===n.name.kind)return Hv(n.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(n.propertyName)return Hv(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);n.initializer&&Gv(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(n),Hf(n)}function jf(n){hv(n)||Pv(n.declarationList)||function(n){if(!function e(n){switch(n.kind){case 215:case 216:case 217:case 224:case 218:case 219:case 220:return!1;case 226:return e(n.parent)}return!0}(n.parent)){if(e.isLet(n.declarationList))return Hv(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isConst(n.declarationList)&&Hv(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(n),e.forEach(n.declarationList.declarations,xg)}function Wf(n){Ov(n);var t,r=em(n.expression);if(231===n.initializer.kind){var a=n.initializer.declarations[0];a&&e.isBindingPattern(a.name)&<(a.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),qf(n)}else{var i=n.initializer,o=Bp(i);181===i.kind||182===i.kind?lt(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ll(16384&(t=Ts(r)).flags?ie:t,o)?bp(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):lt(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}Tp(r,141590528)||lt(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),xg(n.statement),n.locals&&Tf(n)}function qf(e){var n=e.initializer;n.declarations.length>=1&&Bf(n.declarations[0])}function zf(e,n){return Jf(em(e),e,!0,void 0!==n)}function Jf(e,n,t,r){return Br(e)?e:Xf(e,n,t,r,!0)||Q}function Xf(n,t,r,a,i){var o=x>=2,s=!o&&A.downlevelIteration;if(o||s||a){var l=Yf(n,o?t:void 0,a,!0,i);if(l||o)return l}var c=n,u=!1,d=!1;if(r){if(131072&c.flags){var m=n.types,p=e.filter(m,function(e){return!(524322&e.flags)});p!==m&&(c=gs(p,2))}else 524322&c.flags&&(c=me);if((d=c!==n)&&(x<1&&t&&(lt(t,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),u=!0),16384&c.flags))return ie}if(!ec(c))return t&&!u&<(t,!r||d?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?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:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Cr(c)),d?ie:void 0;var f=Ui(c,1);return d&&f?524322&f.flags?ie:gs([f,ie],2):f}function Yf(n,t,r,a,i){if(!Br(n))return hu(n,function(n){var o=n;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(ua(n,zo(!1))||ua(n,Xo(!1)))return o.iteratedTypeOfAsyncIterable=n.typeArguments[0]}if(a){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(ua(n,Yo(!1))||ua(n,Zo(!1)))return o.iteratedTypeOfIterable=n.typeArguments[0]}var s=r&&Kr(n,e.getPropertyNameForKnownSymbolName("asyncIterator")),l=s||a&&Kr(n,e.getPropertyNameForKnownSymbolName("iterator"));if(!Br(l)){var c=l&&Gi(l,0);if(e.some(c)){var u=Qf(gs(e.map(c,io),2),t,!!s);return i&&t&&u&&kl(n,s?function(e){return es(zo(!0),[e])}(u):rs(u),t),s?o.iteratedTypeOfAsyncIterable=u:o.iteratedTypeOfIterable=u}t&&(lt(t,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),t=void 0)}})}function Qf(n,t,r){if(!Br(n)){var a=n;if(r?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator)return r?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator;if(ua(n,(r?Jo:Qo)(!1)))return r?a.iteratedTypeOfAsyncIterator=n.typeArguments[0]:a.iteratedTypeOfIterator=n.typeArguments[0];var i=Kr(n,"next");if(!Br(i)){var o=i?Gi(i,0):e.emptyArray;if(0!==o.length){var s=gs(e.map(o,io),2);if(!(Br(s)||r&&Br(s=uf(s,t,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))){var l=s&&Kr(s,"value");if(l)return r?a.iteratedTypeOfAsyncIterator=l:a.iteratedTypeOfIterator=l;t&<(t,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else t&<(t,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function Zf(e,n){if(!Br(e))return Yf(e,void 0,n,!n,!1)||Qf(e,void 0,n)}function $f(n){Kv(n)||function(n){for(var t=n;t;){if(e.isFunctionLike(t))return Hv(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 226:if(n.label&&t.label.escapedText===n.label.escapedText){var r=221===n.kind&&!e.isIterationStatement(t.statement,!0);return!!r&&Hv(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 225:if(222===n.kind&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1}t=t.parent}if(n.label){var a=222===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;return Hv(n,a)}var a=222===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;Hv(n,a)}(n)}function eg(n){return 155===n.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(n.symbol,156))}function ng(n,t){var r=2==(3&e.getFunctionFlags(n))?df(t):t;return r&&Ep(r,2049)}function tg(n){Kv(n)||void 0===n.expression&&function(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!Fv(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);Fn.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,t,r,a,i))}}(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&Bp(n.expression)}function rg(n){var t,r=vo(n.symbol,1),a=vo(n.symbol,0),i=Ui(n,0),o=Ui(n,1);if((i||o)&&(e.forEach(yi(n),function(e){var t=ca(e);m(e,t,n,a,i,0),m(e,t,n,r,o,1)}),1&e.getObjectFlags(n)&&e.isClassLike(n.symbol.valueDeclaration)))for(var s=0,l=n.symbol.valueDeclaration.members;s<l.length;s++){var c=l[s];if(!e.hasModifier(c,32)&&ja(c)){var u=ar(c),d=ca(u);m(u,d,n,a,i,0),m(u,d,n,r,o,1)}}function m(n,t,r,a,i,o){if(i&&!e.isKnownSymbol(n)){var s,l=n.valueDeclaration;if(1!==o||(l?Ld(e.getNameOfDeclaration(l)):Ad(n.escapedName)))!l||198!==l.kind&&146!==e.getNameOfDeclaration(l).kind&&n.parent!==r.symbol?a?s=a:2&e.getObjectFlags(r)&&(s=e.forEach(Sa(r),function(e){return hi(e,n.escapedName)&&Ui(e,o)})?void 0:r.symbol.declarations[0]):s=l,s&&!Ll(t,i)&<(s,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Ar(n),Cr(t),Cr(i))}}i&&o&&!(t=r||a)&&2&e.getObjectFlags(n)&&(t=e.forEach(Sa(n),function(e){return Ui(e,0)&&Ui(e,1)})?void 0:n.symbol.declarations[0]),t&&!Ll(o,i)&<(t,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Cr(o),Cr(i))}function ag(e,n){switch(e.escapedText){case"any":case"number":case"boolean":case"string":case"symbol":case"void":case"object":lt(e,n,e.escapedText)}}function ig(n){if(n)for(var t=!1,r=0;r<n.length;r++){var i=n[r];if(Up(i),a){i.default?t=!0:t&<(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<r;o++)n[o].symbol===i.symbol&<(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function og(n){if(1!==n.declarations.length){var t=_t(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=function(n){return e.filter(n.declarations,function(e){return 233===e.kind||234===e.kind})}(n);if(r.length<=1)return;if(!function(n,t){for(var r=e.length(t),a=Qi(t),i=0,o=n;i<o.length;i++){var s=o[i],l=e.length(s.typeParameters);if(l<a||l>r)return!1;for(var c=0;c<l;c++){var u=s.typeParameters[c],d=t[c];if(u.name.escapedText!==d.symbol.escapedName)return!1;var m=u.constraint&&Qs(u.constraint),p=ho(d);if(m&&(!p||!bl(m,p)))return!1;var f=u.default&&Qs(u.default),g=Ri(d);if(f&&g&&!bl(f,g))return!1}}return!0}(r,Ra(n).localTypeParameters))for(var a=Ar(n),i=0,o=r;i<o.length;i++)lt(o[i].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,a)}}}function sg(n){e.forEach(n.members,xg),Tf(n)}function lg(n){!function(n){var t=e.getSourceFileOfNode(n);(function(n){var t=!1,r=!1;if(!hv(n)&&n.heritageClauses)for(var a=0,i=n.heritageClauses;a<i.length;a++){var o=i[a];if(85===o.token){if(t)return Vv(o,e.Diagnostics.extends_clause_already_seen);if(r)return Vv(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return Vv(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(108===o.token),r)return Vv(o,e.Diagnostics.implements_clause_already_seen);r=!0}xv(o)}})(n)||Tv(n.typeParameters,t)}(n),hf(n),n.name&&(ag(n.name,e.Diagnostics.Class_name_cannot_be_0),Of(n,n.name),Rf(n,n.name),Pf(n,n.name),Ff(n,n.name)),ig(n.typeParameters),cf(n);var t=ar(n),r=Ra(t),i=Ya(r),o=ca(t);og(t),function(n){var t;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(t||(t={}));for(var r=e.createUnderscoreEscapedMap(),a=e.createUnderscoreEscapedMap(),i=0,o=n.members;i<o.length;i++){var s=o[i];if(154===s.kind)for(var l=0,c=s.parameters;l<c.length;l++){var u=c[l];e.isParameterPropertyDeclaration(u)&&!e.isBindingPattern(u.name)&&p(r,u.name,u.name.escapedText,3)}else{var d=e.hasModifier(s,32)?a:r,m=s.name&&e.getPropertyNameForPropertyNameNode(s.name);if(m)switch(s.kind){case 155:p(d,s.name,m,1);break;case 156:p(d,s.name,m,2);break;case 151:p(d,s.name,m,3);break;case 153:p(d,s.name,m,4)}}}function p(n,t,r,a){var i=n.get(r);i?4&i?4!==a&<(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):i&a?lt(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):n.set(r,i|a):n.set(r,a)}}(n),2097152&n.flags||function(n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t],i=a.name;if(e.hasModifier(a,32)&&i){var o=e.getPropertyNameForPropertyNameNode(i);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":lt(i,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,Ir(ar(n)))}}}}(n);var s=e.getClassExtendsHeritageClauseElement(n);if(s){x<2&&_v(s.parent,1);var l=Sa(r);if(l.length&&a){var c=l[0],u=Ta(r),d=Ii(u);if(function(n,t){var r=Gi(n,1);if(r.length){var a=r[0].declaration;if(a&&e.hasModifier(a,8)){var i=e.getClassLikeDeclarationOfSymbol(n.symbol);wg(t,i)||lt(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Bt(n.symbol))}}}(d,s),xg(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,xg);for(var m=0,p=ba(d,s.typeArguments,s);m<p.length&&ef(s,p[m].typeParameters);m++);}if(kl(i,b=Ya(c,r.thisType),void 0)||cg(n,i,b,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),kl(o,hl(d),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),1081344&u.flags&&!_a(o)&<(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(d.symbol&&32&d.symbol.flags||1081344&u.flags)){var f=Ea(d,s.typeArguments,s);e.forEach(f,function(e){return io(e)!==c})&<(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(n,t){for(var r=0,a=Ei(t);r<a.length;r++){var i=a[r],o=ug(i);if(!(4194304&o.flags)){var s=ug(hi(n,o.escapedName)),l=e.getDeclarationModifierFlagsFromSymbol(o);if(e.Debug.assert(!!s,"derived should point to something, even if it is the base class' declaration."),s)if(s===o){var c=e.getClassLikeDeclarationOfSymbol(n.symbol);!(128&l)||c&&e.hasModifier(c,128)||(203===c.kind?lt(c,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ar(i),Cr(t)):lt(c,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Cr(n),Ar(i),Cr(t)))}else{var u=e.getDeclarationModifierFlagsFromSymbol(s);if(8&l||8&u)continue;if(Qd(o)&&Qd(s)||98308&o.flags&&98308&s.flags)continue;var d=void 0;d=Qd(o)?98304&s.flags?e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:4&o.flags?e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function,lt(e.getNameOfDeclaration(s.valueDeclaration)||s.valueDeclaration,d,Cr(t),Ar(o),Cr(n))}}}}(r,c)}}var g=e.getClassImplementsHeritageClauseElements(n);if(g)for(var v=0,_=g;v<_.length;v++){var y=_[v];if(e.isEntityNameExpression(y.expression)||lt(y.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),tf(y),a){var h=Qs(y);if(h!==ee)if(La(h)){var b,E=h.symbol&&32&h.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;kl(i,b=Ya(h,r.thisType),void 0)||cg(n,i,b,E)}else lt(y,e.Diagnostics.A_class_may_only_implement_another_class_or_interface)}}a&&(rg(r),Jp(n),function(n){if(D&&R&&!(2097152&n.flags))for(var t=lr(n),r=0,a=n.members;r<a.length;r++){var i=a[r];if(dg(i)){var o=i.name;if(e.isIdentifier(o)){var s=ca(ar(i));1&s.flags||4096&uc(s)||t&&mg(o,s,t)||lt(i.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(n))}function cg(n,t,r,a){for(var i=!1,o=function(n){if(e.hasStaticModifier(n))return"continue";var a=n.name&&Vg(n.name)||Vg(n);if(a){var o=Fi(t,a.escapedName),s=Fi(r,a.escapedName);o&&s&&(kl(ca(o),ca(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,Ar(a),Cr(t),Cr(r))})||(i=!0))}},s=0,l=n.members;s<l.length;s++)o(l[s]);i||kl(t,r,n.name||n,a)}function ug(n){return 1&e.getCheckFlags(n)?n.target:n}function dg(n){return 151===n.kind&&!e.hasModifier(n,160)&&!n.exclamationToken&&!n.initializer}function mg(n,t,r){var a=e.createPropertyAccess(e.createThis(),n);return a.flowNode=r.returnFlowNode,!(4096&uc(Iu(a,t,fc(t))))}function pg(n){if(hv(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(85!==i.token)return e.Debug.assert(108===i.token),Vv(i,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return Vv(i,e.Diagnostics.extends_clause_already_seen);t=!0,xv(i)}}(n),ig(n.typeParameters),a){ag(n.name,e.Diagnostics.Interface_name_cannot_be_0),cf(n);var t=ar(n);if(og(t),n===e.getDeclarationOfKind(t,234)){var r=Ra(t),i=Ya(r);if(function(n,t){var r=Sa(n);if(r.length<2)return!0;var a=e.createUnderscoreEscapedMap();e.forEach(Ha(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 l=s[o],c=0,u=Ei(Ya(l,n.thisType));c<u.length;c++){var d=u[c],m=a.get(d.escapedName);if(m){if(m.containingType!==n&&0===Xl(m.prop,d,El)){i=!1;var p=Cr(m.containingType),f=Cr(l),g=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ar(d),p,f);g=e.chainDiagnosticMessages(g,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Cr(n),p,f),Fn.add(e.createDiagnosticForNodeFromMessageChain(t,g))}}else a.set(d.escapedName,{prop:d,containingType:l})}return i}(r,n.name)){for(var o=0,s=Sa(r);o<s.length;o++)kl(i,Ya(s[o],r.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);rg(r)}}zp(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),function(n){e.isEntityNameExpression(n.expression)||lt(n.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),tf(n)}),e.forEach(n.members,xg),a&&(Jp(n),Tf(n))}function fg(e){var n=yt(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=gg(i,t);yt(i).enumMemberValue=o,t="number"==typeof o?o+1:void 0}}}function gg(n,t){if(jr(n.name))lt(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);Ad(r)&&"Infinity"!==(a=r)&&"-Infinity"!==a&&"NaN"!==a&<(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}var a;return n.initializer?function(n){var t=Ca(ar(n.parent)),r=e.isConst(n.parent),a=n.initializer,i=1!==t||xa(n)?function t(r){switch(r.kind){case 196:var a=t(r.operand);if("number"==typeof a)switch(r.operator){case 37:return a;case 38:return-a;case 52:return~a}break;case 198:var i=t(r.left),s=t(r.right);if("number"==typeof i&&"number"==typeof s)switch(r.operatorToken.kind){case 49:return i|s;case 48:return i&s;case 46:return i>>s;case 47:return i>>>s;case 45:return i<<s;case 50:return i^s;case 39:return i*s;case 41:return i/s;case 37:return i+s;case 38:return i-s;case 42:return i%s;case 40:return Math.pow(i,s)}break;case 9:return r.text;case 8:return Bv(r),+r.text;case 189:return t(r.expression);case 71:return e.nodeIsMissing(r)?0:o(r,ar(n.parent),r.escapedText);case 184:case 183:var l=r;if(function e(n){return 71===n.kind||183===n.kind&&e(n.expression)||184===n.kind&&e(n.expression)&&9===n.argumentExpression.kind}(l)){var c=Kp(l.expression);if(c.symbol&&384&c.symbol.flags){var u=void 0;if(183===l.kind)u=l.name.escapedText;else{var d=l.argumentExpression;e.Debug.assert(e.isLiteralExpression(d)),u=e.escapeLeadingUnderscores(d.text)}return o(r,c.symbol,u)}}}}(a):void 0;if(void 0!==i)r&&"number"==typeof i&&!isFinite(i)&<(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 lt(a,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;r?lt(a,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):2097152&n.parent.flags?lt(a,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):kl(Bp(a),Ra(ar(n.parent)),a,void 0)}return i;function o(t,r,a){var i=r.exports.get(a);if(i){var o=i.valueDeclaration;if(o!==n)return Et(o,n)?av(o):(lt(t,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(n):2097152&n.parent.flags&&!e.isConst(n.parent)?void 0:void 0!==t?t:void lt(n.name,e.Diagnostics.Enum_member_must_have_initializer)}function vg(n){if(a){var t=e.isGlobalScopeAugmentation(n),r=2097152&n.flags;t&&!r&<(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(Tg(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;hv(n)||r||9!==n.name.kind||Hv(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&(Of(n,n.name),Pf(n,n.name),Ff(n,n.name)),cf(n);var o=ar(n);if(512&o.flags&&o.declarations.length>1&&!r&&u(n,A.preserveConstEnums||A.isolatedModules)){var s=function(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];if((233===a.kind||232===a.kind&&e.nodeIsPresent(a.body))&&!(2097152&a.flags))return a}}(o);s&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(s)?lt(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&<(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var l=e.getDeclarationOfKind(o,233);l&&(m=n,p=l,f=e.getEnclosingBlockScopeContainer(m),g=e.getEnclosingBlockScopeContainer(p),ht(f)?ht(g):!ht(g)&&f===g)&&(yt(n).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(n)){if((t||33554432&ar(n).flags)&&n.body)for(var c=0,d=n.body.statements;c<d.length;c++)_g(d[c],t)}else ht(n.parent)?t?lt(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))&<(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):lt(n.name,t?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)}var m,p,f,g;n.body&&(xg(n.body),e.isGlobalScopeAugmentation(n)||Tf(n))}function _g(n,t){switch(n.kind){case 212:for(var r=0,a=n.declarationList.declarations;r<a.length;r++)_g(a[r],t);break;case 247:case 248:Vv(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 241:case 242:Vv(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 180:case 230:var i=n.name;if(e.isBindingPattern(i)){for(var o=0,s=i.elements;o<s.length;o++)_g(s[o],t);break}case 233:case 236:case 232:case 234:case 237:case 235:if(t)return;var l=ar(n);if(l){var c=!(33554432&l.flags);c||(c=e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function yg(e){switch(e.kind){case 71:return e;case 145:do{e=e.left}while(71!==e.kind);return e;case 183:do{e=e.expression}while(71!==e.kind);return e}}function hg(n){var t=e.getExternalModuleName(n);if(e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return lt(t,e.Diagnostics.String_literal_expected),!1;var r=238===n.parent.kind&&e.isAmbientModule(n.parent.parent);return 272===n.parent.kind||r?!(r&&e.isExternalModuleNameRelative(t.text)&&!Or(n)&&(lt(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(lt(t,248===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 bg(n){var t=ar(n),r=Vt(t);if(r!==X){var a=(68264895&t.flags?67216319:0)|(67901928&t.flags?67901928:0)|(1920&t.flags?1920:0);r.flags&a&<(n,250===n.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Ar(t)),!A.isolatedModules||250!==n.kind||67216319&r.flags||2097152&n.flags||lt(n,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Eg(e){Of(e,e.name),Pf(e,e.name),Ff(e,e.name),bg(e)}function Tg(e,n){var t=272===e.parent.kind||238===e.parent.kind||237===e.parent.kind;return t||Vv(e,n),!t}function Sg(n){if(bg(n),A.declaration&&wr(n.propertyName||n.name,!0),!n.parent.parent.moduleSpecifier){var t=n.propertyName||n.name,r=Tt(t,t.escapedText,70107135,void 0,void 0,!0);r&&(r===F||ht(Hr(r.declarations[0])))?lt(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t)):Gt(n)}}function Lg(n){var t=ar(n),r=_t(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=Dt(a)||a.valueDeclaration;Or(i)||lt(i,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=er(t);o&&o.forEach(function(n,t){var r=n.declarations,a=n.flags;if("__export"!==t&&!(1984&a)){var i=e.countWhere(r,ot);if(!(524288&a&&i<=2)&&i>1)for(var o=0,s=r;o<s.length;o++){var l=s[o];Ag(l)&&Fn.add(e.createDiagnosticForNode(l,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(t)))}}}),r.exportsChecked=!0}}function Ag(e){return 232!==e.kind&&153!==e.kind||!!e.body}function xg(n){if(n){if(e.isInJavaScriptFile(n)&&n.jsDoc)for(var t=0,r=n.jsDoc;t<r.length;t++){var i=r[t].tags;e.forEach(i,xg)}var o=n.kind;if(p)switch(o){case 237:case 233:case 234:case 232:p.throwIfCancellationRequested()}switch(o){case 147:return Up(n);case 148:return jp(n);case 151:case 150:return Xp(n);case 162:case 163:case 157:case 158:case 159:return qp(n);case 153:case 152:return function(n){Nv(n)||kv(n.name),Ef(n),e.hasModifier(n,128)&&153===n.kind&&n.body&<(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}(n);case 154:return Yp(n);case 155:case 156:return Qp(n);case 161:return tf(n);case 160:return function(n){var t=function(e){switch(e.parent.kind){case 191:case 157:case 232:case 190:case 162:case 153:case 152:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=ao($i(t));if(r){xg(n.type);var a=n.parameterName;if(e.isThisTypePredicate(r))Ys(a);else if(r.parameterIndex>=0)t.parameters[r.parameterIndex].dotDotDotToken?lt(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):kl(r.type,Gg(t.parameters[r.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(a){for(var i=!1,o=0,s=t.parameters;o<s.length;o++){var l=s[o].name;if(e.isBindingPattern(l)&&Wp(l,a,r.parameterName)){i=!0;break}}i||lt(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,r.parameterName)}}}else lt(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(n);case 164:return function(e){Vo(e)}(n);case 165:return function(n){e.forEach(n.members,xg),a&&(rg(Vs(n)),Jp(n),zp(n))}(n);case 166:return function(e){xg(e.elementType)}(n);case 167:return function(n){Ev(n.elementTypes)||0!==n.elementTypes.length||Hv(n,e.Diagnostics.A_tuple_type_element_list_cannot_be_empty),e.forEach(n.elementTypes,xg)}(n);case 168:case 169:return function(n){e.forEach(n.types,xg)}(n);case 172:return xg(n.type);case 174:return af(n);case 170:return function(n){e.forEachChild(n,xg)}(n);case 171:return function(n){e.findAncestor(n,function(e){return e.parent&&170===e.parent.kind&&e.parent.extendsType===e})||Hv(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),xg(n.typeParameter)}(n);case 285:return function(n){var t=e.getJSDocHost(n);if(e.isClassDeclaration(t)||e.isClassExpression(t)){var r=e.getAllJSDocTagsOfKind(t,285);e.Debug.assert(r.length>0),r.length>1&<(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=bf(n.class.expression),i=e.getClassExtendsHeritageClauseElement(t);if(i){var o=bf(i.expression);o&&a.escapedText!==o.escapedText&<(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(o))}}else lt(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 291:return function(n){n.typeExpression||lt(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags)}(n);case 287:return function(n){if(xg(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);t&&(eo(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!$l(Qs(n.typeExpression.type))&<(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(145===n.name.kind?n.name.right:n.name)):lt(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(145===n.name.kind?n.name.right:n.name)))}}(n);case 280:qp(n);case 278:case 277:case 275:case 276:return Cg(n),void e.forEachChild(n,xg);case 281:return void function(n){Cg(n),xg(n.type);var t=n.parent;e.isJSDocTypeExpression(t)||lt(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=t.parent;if(e.isJSDocParameterTag(r)){var a=e.getParameterSymbolFromJSDoc(r);if(a){var i=e.getHostSignatureFromJSDoc(r);i&&e.last(i.parameters).symbol===a||lt(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else lt(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}(n);case 274:return xg(n.type);case 175:return function(e){xg(e.objectType),xg(e.indexType),rf(Os(e),e)}(n);case 176:return function(e){xg(e.typeParameter),xg(e.type),I&&!e.type&&Ac(e,Q),kl(ui(Rs(e)),ie,e.typeParameter.constraint)}(n);case 232:return function(e){a&&(Ef(e),Mv(e),wf(e,e.name),Of(e,e.name),Rf(e,e.name),Pf(e,e.name),Ff(e,e.name))}(n);case 211:case 238:return Mf(n);case 212:return jf(n);case 214:return function(e){Kv(e),Bp(e.expression)}(n);case 215:return function(n){Kv(n),Bp(n.expression),xg(n.thenStatement),213===n.thenStatement.kind&<(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),xg(n.elseStatement)}(n);case 216:return function(e){Kv(e),xg(e.statement),Bp(e.expression)}(n);case 217:return function(e){Kv(e),Bp(e.expression),xg(e.statement)}(n);case 218:return function(n){Kv(n)||n.initializer&&231===n.initializer.kind&&Pv(n.initializer),n.initializer&&(231===n.initializer.kind?e.forEach(n.initializer.declarations,Bf):Bp(n.initializer)),n.condition&&Bp(n.condition),n.incrementor&&Bp(n.incrementor),xg(n.statement),n.locals&&Tf(n)}(n);case 219:return Wf(n);case 220:return function(n){if(Ov(n),220===n.kind&&(n.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(n)))&&x<6&&_v(n,16384):A.downlevelIteration&&x<2&&_v(n,256)),231===n.initializer.kind)qf(n);else{var t=n.initializer,r=zf(n.expression,n.awaitModifier);if(181===t.kind||182===t.kind)kp(t,r||ee);else{var a=Bp(t);bp(t,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&kl(r,a,t,void 0)}}xg(n.statement),n.locals&&Tf(n)}(n);case 221:case 222:return $f(n);case 223:return function(n){if(!Kv(n)){var t=e.getContainingFunction(n);if(t){var r=io($i(t)),a=e.getFunctionFlags(t),i=1&a;if(D||n.expression||16384&r.flags){var o=n.expression?Np(n.expression):ne;if(i)return;if(156===t.kind)n.expression&<(n,e.Diagnostics.Setters_cannot_return_a_value);else if(154===t.kind)n.expression&&!kl(o,r,n)&<(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(t)||eg(t))if(2&a){var s=df(r),l=mf(o,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);s&&kl(l,s,n)}else kl(o,r,n)}else 154===t.kind||!A.noImplicitReturns||ng(t,r)||i||lt(n,e.Diagnostics.Not_all_code_paths_return_a_value)}else Vv(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(n);case 224:return function(n){Kv(n)||16384&n.flags&&Vv(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Bp(n.expression);var t=e.getSourceFileOfNode(n);if(!Fv(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start;Gv(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 225:return function(n){var t;Kv(n);var r=!1,i=Bp(n.expression),o=rc(i);e.forEach(n.caseBlock.clauses,function(s){if(265===s.kind&&!r)if(void 0===t)t=s;else{var l=e.getSourceFileOfNode(n),c=e.skipTrivia(l.text,s.pos);Gv(l,c,(s.statements.length>0?s.statements[0].pos:s.end)-c,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0}if(a&&264===s.kind){var u=Bp(s.expression),d=rc(u),m=i;d&&o||(u=d?ac(u):u,m=ac(i)),Mp(m,u)||Ml(u,m,s.expression,void 0)}e.forEach(s.statements,xg)}),n.caseBlock.locals&&Tf(n.caseBlock)}(n);case 226:return function(n){Kv(n)||e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)?"quit":226===t.kind&&t.label.escapedText===n.label.escapedText?(Hv(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0):void 0}),xg(n.statement)}(n);case 227:return tg(n);case 228:return function(n){Kv(n),Mf(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration)if(t.variableDeclaration.type)Vv(t.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(t.variableDeclaration.initializer)Vv(t.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=t.block.locals;r&&e.forEachKey(t.locals,function(n){var t=r.get(n);t&&0!=(2&t.flags)&&Hv(t.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,n)})}Mf(t.block)}n.finallyBlock&&Mf(n.finallyBlock)}(n);case 230:return Bf(n);case 180:return Uf(n);case 233:return function(n){n.name||e.hasModifier(n,512)||Vv(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),lg(n),e.forEach(n.members,xg),Tf(n)}(n);case 234:return pg(n);case 235:return function(n){hv(n),ag(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),ig(n.typeParameters),xg(n.type),Tf(n)}(n);case 236:return function(n){if(a){hv(n),ag(n.name,e.Diagnostics.Enum_name_cannot_be_0),Of(n,n.name),Rf(n,n.name),Pf(n,n.name),Ff(n,n.name),cf(n),fg(n);var t=e.isConst(n);A.isolatedModules&&t&&2097152&n.flags&<(n.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var r=ar(n);if(n===e.getDeclarationOfKind(r,n.kind)){r.declarations.length>1&&e.forEach(r.declarations,function(n){e.isConstEnumDeclaration(n)!==t&<(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(r.declarations,function(n){if(236!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(i?lt(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 237:return vg(n);case 242:return function(n){if(!Tg(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!hv(n)&&e.hasModifiers(n)&&Vv(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),hg(n))){var t=n.importClause;t&&(t.name&&Eg(t),t.namedBindings&&(244===t.namedBindings.kind?Eg(t.namedBindings):e.forEach(t.namedBindings.elements,Eg)))}}(n);case 241:return function(n){if(!Tg(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(hv(n),e.isInternalModuleImportEqualsDeclaration(n)||hg(n)))if(Eg(n),e.hasModifier(n,1)&&Gt(n),252!==n.moduleReference.kind){var t=Vt(ar(n));if(t!==X){if(67216319&t.flags){var r=yg(n.moduleReference);1920&Ut(r,67217343).flags||lt(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}67901928&t.flags&&ag(n.name,e.Diagnostics.Import_name_cannot_be_0)}}else C>=e.ModuleKind.ES2015&&!(2097152&n.flags)&&Hv(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 248:return function(n){if(!Tg(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!hv(n)&&e.hasModifiers(n)&&Vv(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!n.moduleSpecifier||hg(n)))if(n.exportClause){e.forEach(n.exportClause.elements,Sg);var t=238===n.parent.kind&&e.isAmbientModule(n.parent.parent),r=!t&&238===n.parent.kind&&!n.moduleSpecifier&&2097152&n.flags;272===n.parent.kind||t||r||lt(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var a=jt(n,n.moduleSpecifier);a&&Yt(a)&<(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ar(a)),C!==e.ModuleKind.System&&C!==e.ModuleKind.ES2015&&C!==e.ModuleKind.ESNext&&_v(n,32768)}}(n);case 247:return function(n){if(!Tg(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var t=272===n.parent.kind?n.parent:n.parent.parent;237!==t.kind||e.isAmbientModule(t)?(!hv(n)&&e.hasModifiers(n)&&Vv(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===n.expression.kind?(Gt(n),A.declaration&&wr(n.expression,!0)):Np(n.expression),Lg(t),2097152&n.flags&&!e.isEntityNameExpression(n.expression)&&Hv(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!n.isExportEquals||2097152&n.flags||(C>=e.ModuleKind.ES2015?Hv(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):C===e.ModuleKind.System&&Hv(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):n.isExportEquals?lt(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):lt(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 213:case 229:return void Kv(n);case 251:return function(e){hf(e)}(n)}}}function Cg(n){e.isInJavaScriptFile(n)||Hv(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function kg(e){en&&en.push(e)}function Mg(n){e.performance.mark("beforeCheck"),function(n){var t=yt(n);if(!(1&t.flags)){if(A.skipLibCheck&&n.isDeclarationFile||A.skipDefaultLibCheck&&n.hasNoDefaultLib)return;!function(n){2097152&n.flags&&function(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if((e.isDeclaration(a)||212===a.kind)&&(234!==(i=a).kind&&235!==i.kind&&242!==i.kind&&241!==i.kind&&248!==i.kind&&247!==i.kind&&240!==i.kind&&!e.hasModifier(i,515)&&Vv(i,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)))return!0}var i}(n)}(n),e.clear(Nn),e.clear(wn),en=[],nn=a&&k?[]:void 0,_n=!1,e.forEach(n.statements,xg),function(){for(var e=0,n=en;e<n.length;e++){var t=n[e];switch(t.kind){case 190:case 191:case 153:case 152:gp(t);break;case 155:case 156:Qp(t);break;case 203:sg(t)}}}(),e.isExternalOrCommonJsModule(n)&&Tf(n),n.isDeclarationFile||function(){if(nn)for(var n=0,t=nn;n<t.length;n++){var r=t[n];switch(r.kind){case 272:case 237:kf(r);break;case 233:case 203:xf(r),Cf(r);break;case 234:Cf(r);break;case 211:case 239:case 218:case 219:case 220:Sf(r);break;case 154:case 190:case 232:case 191:case 153:case 155:case 156:r.body&&Sf(r),Cf(r);break;case 152:case 157:case 158:case 162:case 163:case 235:Cf(r);break;default:e.Debug.fail("Node should not have been registered for unused identifiers check")}}}(),en=void 0,nn=void 0,e.isExternalOrCommonJsModule(n)&&Lg(n),Nn.length&&(e.forEach(Nn,If),e.clear(Nn)),wn.length&&(e.forEach(wn,Nf),e.clear(wn)),t.flags|=1}}(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Dg(n,t){try{return p=t,function(n){if(Og(),n){var t=Fn.getGlobalDiagnostics(),a=t.length;Mg(n);var i=Fn.getDiagnostics(n.fileName),o=Fn.getGlobalDiagnostics();if(o!==t){var s=e.relativeComplement(t,o,e.compareDiagnostics);return e.concatenate(s,i)}return 0===a&&o.length>0?e.concatenate(o,i):i}return e.forEach(r.getSourceFiles(),Mg),Fn.getDiagnostics()}(n)}finally{p=void 0}}function Og(){if(!a)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Rg(e){switch(e.kind){case 147:case 233:case 234:case 235:case 236:return!0}}function Ig(e){for(var n=e;n.parent&&145===n.parent.kind;)n=n.parent;return n.parent&&161===n.parent.kind}function Ng(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function wg(e,n){return!!Ng(e,function(e){return e===n})}function Pg(e){return void 0!==function(e){for(;145===e.parent.kind;)e=e.parent;return 241===e.parent.kind?e.parent.moduleReference===e&&e.parent:247===e.parent.kind?e.parent.expression===e&&e.parent:void 0}(e)}function Fg(n){if(e.isDeclarationName(n))return ar(n.parent);if(e.isInJavaScriptFile(n)&&183===n.parent.kind&&n.parent===n.parent.parent.left){var t=function(n){switch(e.getSpecialPropertyAssignmentKind(n.parent.parent)){case 1:case 3:return ar(n.parent);case 4:case 2:case 5:return ar(n.parent.parent)}}(n);if(t)return t}if(247===n.parent.kind&&e.isEntityNameExpression(n))return Ut(n,70107135);if(183!==n.kind&&Pg(n)){var r=e.getAncestor(n,241);return e.Debug.assert(void 0!==r),Kt(n,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),function(e){for(var n=e;n.parent&&183===n.parent.kind;)n=n.parent;return n.parent&&205===n.parent.kind}(n)){var a=0;205===n.parent.kind?(a=67901928,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(a|=67216319)):a=1920,a|=2097152;var i=e.isEntityNameExpression(n)?Ut(n,a):void 0;if(i)return i}if(287===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(147===n.parent.kind&&290===n.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(n));var o=e.getTypeParameterFromJsDoc(n.parent);return o&&o.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;if(71===n.kind){if(e.isJSXTagName(n)&&Od(n)){var s=Pd(n.parent);return s===X?void 0:s}return Ut(n,67216319,!1,!0)}if(183===n.kind||145===n.kind){var l=yt(n);return l.resolvedSymbol?l.resolvedSymbol:(183===n.kind?tm(n):rm(n),l.resolvedSymbol)}}else{if(Ig(n))return Ut(n,a=161===n.parent.kind?67901928:1920,!1,!0);if(260===n.parent.kind)return Wd(n.parent)}return 160===n.parent.kind?Ut(n,1):void 0}function Vg(n){if(272===n.kind)return e.isExternalModule(n)?rr(n.symbol):void 0;if(!(4194304&n.flags)){if(d(n))return ar(n.parent);if(e.isLiteralComputedPropertyDeclarationName(n))return ar(n.parent.parent);if(71===n.kind){if(Pg(n))return Fg(n);if(180===n.parent.kind&&178===n.parent.parent.kind&&n===n.parent.propertyName){var t=Gg(n.parent.parent),r=t&&Fi(t,n.escapedText);if(r)return r}}switch(n.kind){case 71:case 183:case 145:return Fg(n);case 99:var a=e.getThisContainer(n,!1);if(e.isFunctionLike(a)){var i=$i(a);if(i.thisParameter)return i.thisParameter}if(e.isInExpressionContext(n))return Bp(n).symbol;case 173:return Ys(n).symbol;case 97:return Bp(n).symbol;case 123:var o=n.parent;return o&&154===o.kind?o.parent.symbol:void 0;case 9:case 13:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(242===n.parent.kind||248===n.parent.kind)&&n.parent.moduleSpecifier===n||e.isInJavaScriptFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent))return jt(n,n);case 8:var s=e.isElementAccessExpression(n.parent)?n.parent.argumentExpression===n?Kp(n.parent.expression):void 0:e.isLiteralTypeNode(n.parent)&&e.isIndexedAccessTypeNode(n.parent.parent)?Qs(n.parent.parent.objectType):void 0;return s&&Fi(s,e.escapeLeadingUnderscores(n.text));case 79:case 89:case 36:return ar(n.parent);default:return}}}function Gg(n){if(4194304&n.flags)return ee;if(e.isPartOfTypeNode(n)){var t=Qs(n);return t&&e.isExpressionWithTypeArgumentsInClassImplementsClause(n)&&(t=Ya(t,(r=Gg(e.getContainingClass(n))).thisType)),t}if(e.isExpressionNode(n))return Hg(n);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(n)){var r,a=Sa(r=Ra(ar(e.getContainingClass(n))))[0];return a&&Ya(a,r.thisType)}var i,o;if(Rg(n))return Ra(o=ar(n));if(71===(i=n).kind&&Rg(i.parent)&&i.parent.name===i)return(o=Vg(n))&&Ra(o);if(e.isDeclaration(n))return ca(o=ar(n));if(d(n))return(o=Vg(n))&&ca(o);if(e.isBindingPattern(n))return Yr(n.parent,!0);if(Pg(n)&&(o=Vg(n))){var s=Ra(o);return s!==ee?s:ca(o)}return ee}function Hg(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),zs(Kp(n))}function Kg(n){n=Ii(n);var t=e.createSymbolTable(Ei(n));return Bg(n)&&e.forEach(Ei(Me),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),pr(t)}function Bg(n){return e.typeHasCallOrConstructSignatures(n,K)}function Ug(n){return!(e.isGeneratedIdentifier(n)||!(n=e.getParseTreeNode(n,e.isIdentifier)))&&(!(183===n.parent.kind&&n.parent.name===n)&&mv(n)===H)}function jg(n){var t=jt(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=Yt(t),a=_t(t=Jt(t));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=r?!!(67216319&t.flags):e.forEachEntry(er(t),function(e){return(e=Ft(e))&&!!(67216319&e.flags)})),a.exportsSomeValue}function Wg(n,t){if(n=e.getParseTreeNode(n,e.isIdentifier)){var r=mv(n,function(n){var t=n.parent;return t&&e.isModuleOrEnumDeclaration(t)&&n===t.name}(n));if(r){if(1048576&r.flags){var a=rr(r.exportSymbol);if(!t&&944&a.flags&&!(3&a.flags))return;r=a}var i=ir(r);if(i){if(512&i.flags&&272===i.valueDeclaration.kind){var o=i.valueDeclaration;return o!==e.getSourceFileOfNode(n)?void 0:o}return e.findAncestor(n.parent,function(n){return e.isModuleOrEnumDeclaration(n)&&ar(n)===i})}}}}function qg(n){if(n=e.getParseTreeNode(n,e.isIdentifier)){var t=mv(n);if(Pt(t,67216319))return Dt(t)}}function zg(n){if(418&n.flags){var t=_t(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)){var a=yt(n.valueDeclaration);if(Tt(r.parent,n.escapedName,67216319,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(131072&a.flags){var i=262144&a.flags,o=e.isIterationStatement(r,!1),s=211===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 Jg(n){if(!e.isGeneratedIdentifier(n)&&(n=e.getParseTreeNode(n,e.isIdentifier))){var t=mv(n);if(t&&zg(t))return t.valueDeclaration}}function Xg(n){if(n=e.getParseTreeNode(n,e.isDeclaration)){var t=ar(n);if(t)return zg(t)}return!1}function Yg(n){switch(n.kind){case 241:case 243:case 244:case 246:case 250:return Zg(ar(n)||X);case 248:var t=n.exportClause;return t&&e.forEach(t.elements,Yg);case 247:return!n.expression||71!==n.expression.kind||Zg(ar(n)||X)}return!1}function Qg(n){return!(void 0===(n=e.getParseTreeNode(n,e.isImportEqualsDeclaration))||272!==n.parent.kind||!e.isInternalModuleImportEqualsDeclaration(n))&&Zg(ar(n))&&n.moduleReference&&!e.nodeIsMissing(n.moduleReference)}function Zg(e){var n=Vt(e);return n===X||67216319&n.flags&&(A.preserveConstEnums||!$g(n))}function $g(e){return Ap(e)||e.constEnumOnlyModule}function ev(n){if(e.nodeIsPresent(n.body)){var t=no(ar(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function nv(n){return D&&!Ji(n)&&n.initializer&&!e.hasModifier(n,92)}function tv(n){return D&&Ji(n)&&!n.initializer&&e.hasModifier(n,92)}function rv(e){return yt(e).flags}function av(e){return fg(e.parent),yt(e).enumMemberValue}function iv(e){switch(e.kind){case 271:case 183:case 184:return!0}return!1}function ov(n){if(271===n.kind)return av(n);var t=yt(n).resolvedSymbol;return t&&8&t.flags&&e.isConstEnumDeclaration(t.valueDeclaration.parent)?av(t.valueDeclaration):void 0}function sv(n,t){if(!(n=e.getParseTreeNode(n,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var r=Ut(n,67216319,!0,!1,t),a=Ut(n,67901928,!0,!1,t);if(r&&r===a){var i=qo(!1);if(i&&r===i)return e.TypeReferenceSerializationKind.Promise;var o=ca(r);if(o&&ya(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.ObjectType;var s=Ra(a);return s===ee?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Tp(s,30720)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Tp(s,136)?e.TypeReferenceSerializationKind.BooleanType:Tp(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Tp(s,524322)?e.TypeReferenceSerializationKind.StringLikeType:lc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Tp(s,1536)?e.TypeReferenceSerializationKind.ESSymbolType:function(e){return 65536&e.flags&&Gi(e,0).length>0}(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:$l(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function lv(e,n,t,r){var a=ar(e),i=!a||133120&a.flags?ee:ic(ca(a));1024&i.flags&&i.symbol===a&&(t|=1048576),131072&t&&(i=fc(i)),Cr(i,n,1024|t,r)}function cv(e,n,t,r){Cr(io($i(e)),n,1024|t,r)}function uv(e,n,t,r){Cr(Sc(Hg(e)),n,1024|t,r)}function dv(n){return mn.has(e.escapeLeadingUnderscores(n))}function mv(n,t){var r=yt(n).resolvedSymbol;if(r)return r;var a=n;if(t){var i=n.parent;e.isDeclaration(i)&&n===i.name&&(a=Hr(i))}return Tt(a,n.escapedText,70362047,void 0,void 0,!0)}function pv(n){if(!e.isGeneratedIdentifier(n)&&(n=e.getParseTreeNode(n,e.isIdentifier))){var t=mv(n);if(t)return or(t).valueDeclaration}}function fv(n){if(e.isConst(n)){var t=ca(ar(n));return!!(96&t.flags&&8388608&t.flags)}return!1}function gv(n,t){var r=ca(ar(n));t.writeStringLiteral(function(n){return 32&n.flags?'"'+e.escapeString(n.value)+'"':""+n.value}(r))}function vv(n){var t=e.getExternalModuleName(n),r=Wt(t,t,void 0);if(r)return e.getDeclarationOfKind(r,272)}function _v(n,t){if((f&t)!==t&&A.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,A)&&!(2097152&n.flags)){var a=(l=n,g||(g=qt(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,l)||X),g);if(a!==X)for(var i=t&~f,o=1;o<=65536;o<<=1)if(i&o){var s=yv(o);bt(a.exports,e.escapeLeadingUnderscores(s),67216319)||lt(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}f|=t}}var l}function yv(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"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:e.Debug.fail("Unrecognized helper")}}function hv(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 153!==n.kind||e.nodeIsPresent(n.body)?Vv(n,e.Diagnostics.Decorators_are_not_valid_here):Vv(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(155===n.kind||156===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return Vv(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=function(n){return!!n.modifiers&&(function(n){switch(n.kind){case 155:case 156:case 154:case 151:case 150:case 153:case 152:case 159:case 237:case 242:case 241:case 248:case 247:case 190:case 191:case 148:return!1;default:if(238===n.parent.kind||272===n.parent.kind)return!1;switch(n.kind){case 232:return bv(n,120);case 233:return bv(n,117);case 234:case 212:case 235:return!0;case 236:return bv(n,76);default:return e.Debug.fail(),!1}}}(n)?Vv(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(n);if(void 0!==o)return o;for(var s=0,l=0,c=n.modifiers;l<c.length;l++){var u=c[l];if(132!==u.kind){if(150===n.kind||152===n.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(u.kind));if(159===n.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(u.kind))}switch(u.kind){case 76:if(236!==n.kind&&233===n.parent.kind)return Hv(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(76));break;case 114:case 113:case 112:var d=Dr(e.modifierToFlag(u.kind));if(28&s)return Hv(u,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(238===n.parent.kind||272===n.parent.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&s)return 112===u.kind?Hv(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");s|=e.modifierToFlag(u.kind);break;case 115:if(32&s)return Hv(u,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(238===n.parent.kind||272===n.parent.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(148===n.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return Hv(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,t=u;break;case 132:if(64&s)return Hv(u,e.Diagnostics._0_modifier_already_seen,"readonly");if(151!==n.kind&&150!==n.kind&&159!==n.kind&&148!==n.kind)return Hv(u,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,i=u;break;case 84:if(1&s)return Hv(u,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return Hv(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(233===n.parent.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(148===n.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 79:var m=272===n.parent.kind?n.parent:n.parent.parent;if(237===m.kind&&!e.isAmbientModule(m))return Hv(u,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 124:if(2&s)return Hv(u,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return Hv(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(233===n.parent.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(148===n.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(2097152&n.parent.flags&&238===n.parent.kind)return Hv(u,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,r=u;break;case 117:if(128&s)return Hv(u,e.Diagnostics._0_modifier_already_seen,"abstract");if(233!==n.kind){if(153!==n.kind&&151!==n.kind&&155!==n.kind&&156!==n.kind)return Hv(u,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(233!==n.parent.kind||!e.hasModifier(n.parent,128))return Hv(u,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return Hv(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return Hv(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 120:if(256&s)return Hv(u,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||2097152&n.parent.flags)return Hv(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(148===n.kind)return Hv(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,a=u}}return 154===n.kind?32&s?Hv(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?Hv(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?Hv(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):64&s?Hv(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):void 0:(242===n.kind||241===n.kind)&&2&s?Hv(r,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):148===n.kind&&92&s&&e.isBindingPattern(n.name)?Hv(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):148===n.kind&&92&s&&n.dotDotDotToken?Hv(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):256&s?function(n,t){switch(n.kind){case 153:case 232:case 190:case 191:return!1}return Hv(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(n,a):void 0}(n)}function bv(e,n){return e.modifiers.length>1||e.modifiers[0].kind!==n}function Ev(n){if(n&&n.hasTrailingComma){var t=n.end-",".length,r=n.end;return Gv(n[0],t,r-t,e.Diagnostics.Trailing_comma_not_allowed)}}function Tv(n,t){if(n&&0===n.length){var r=n.pos-"<".length;return Gv(t,r,e.skipTrivia(t.text,n.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Sv(n){var t=e.getSourceFileOfNode(n);return hv(n)||Tv(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 Hv(i.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(e.isBindingPattern(i.name))return Hv(i.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(i.questionToken)return Hv(i.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return Hv(i.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(i.questionToken){if(t=!0,i.initializer)return Hv(i.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return Hv(i.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(n.parameters)||function(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken,a=e.getLineAndCharacterOfPosition(t,r.pos).line,i=e.getLineAndCharacterOfPosition(t,r.end).line;return a!==i&&Hv(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(n,t)}function Lv(n,t){return Ev(t)||function(n,t){if(t&&0===t.length){var r=e.getSourceFileOfNode(n),a=t.pos-"<".length;return Gv(r,a,e.skipTrivia(r.text,t.end)+">".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}}(n,t)}function Av(n){return function(n){if(n)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(204===a.kind)return Gv(a,a.pos,0,e.Diagnostics.Argument_expression_expected)}}(n)}function xv(n){var t=n.types;if(Ev(t))return!0;if(t&&0===t.length){var r=e.tokenToString(n.token);return Gv(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.forEach(t,Cv)}function Cv(e){return Lv(e,e.typeArguments)}function kv(n){if(146!==n.kind)return!1;var t=n;return 198===t.expression.kind&&26===t.expression.operatorToken.kind?Hv(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function Mv(n){if(n.asteriskToken){if(e.Debug.assert(232===n.kind||190===n.kind||153===n.kind),2097152&n.flags)return Hv(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Hv(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function Dv(e,n){if(e)return Hv(e,n)}function Ov(n){if(Kv(n))return!0;if(220===n.kind&&n.awaitModifier&&0==(16384&n.flags))return Hv(n.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(231===n.initializer.kind){var t=n.initializer;if(!Pv(t)){var r=t.declarations;if(!r.length)return!1;if(r.length>1){var a=219===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 Vv(t.declarations[1],a)}var i=r[0];if(i.initializer){var a=219===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 Hv(i.name,a)}if(i.type)return Hv(i,a=219===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 Rv(n){if(n.parameters.length===(155===n.kind?1:2))return e.getThisParameter(n)}function Iv(n,t){if(function(n){return e.isDynamicName(n)&&!Ba(n)}(n))return Hv(n,t)}function Nv(n){if(Sv(n))return!0;if(153===n.kind){if(182===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||120!==e.first(n.modifiers).kind))return Vv(n,e.Diagnostics.Modifiers_cannot_appear_here);if(Dv(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===n.body)return Gv(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Mv(n))return!0}if(e.isClassLike(n.parent)){if(2097152&n.flags)return Iv(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(153===n.kind&&!n.body)return Iv(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(234===n.parent.kind)return Iv(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(165===n.parent.kind)return Iv(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 wv(e){return 9===e.kind||8===e.kind||196===e.kind&&38===e.operator&&8===e.operand.kind}function Pv(n){var t=n.declarations;return!!Ev(n.declarations)||(n.declarations.length?void 0:Gv(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty))}function Fv(e){return e.parseDiagnostics.length>0}function Vv(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!Fv(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return Fn.add(e.createFileDiagnostic(o,s.start,s.length,t,r,a,i)),!0}}function Gv(n,t,r,a,i,o,s){var l=e.getSourceFileOfNode(n);if(!Fv(l))return Fn.add(e.createFileDiagnostic(l,t,r,a,i,o,s)),!0}function Hv(n,t,r,a,i){if(!Fv(e.getSourceFileOfNode(n)))return Fn.add(e.createDiagnosticForNode(n,t,r,a,i)),!0}function Kv(n){if(2097152&n.flags){if(e.isAccessor(n.parent))return yt(n).hasReportedStatementInAmbientContext=!0;if(!yt(n).hasReportedStatementInAmbientContext&&e.isFunctionLike(n.parent))return yt(n).hasReportedStatementInAmbientContext=Vv(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(211===n.parent.kind||238===n.parent.kind||272===n.parent.kind){var t=yt(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Vv(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function Bv(n){if(32&n.numericLiteralFlags){var t=void 0;if(x>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,177)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,271)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&38===n.parent.operator,a=(r?"-":"")+"0o"+n.text;return Hv(r?n.parent:n,t,a)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes"}(n||(n={}))}(u||(u={})),function(e){function n(n){var t=e.createNode(n,-1,-1);return t.flags|=8,t}function t(n,t){return n!==t&&(Fn(n,t),On(n,t),e.aggregateTransformFlags(n)),n}function r(n,t){if(n){if(e.isNodeArray(n))return n}else n=[];var r=n;return r.pos=-1,r.end=-1,r.hasTrailingComma=t,r}function a(e){if(void 0!==e){var t=n(e.kind);for(var r in t.flags|=e.flags,Fn(t,e),e)!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(t[r]=e[r]);return t}}function i(n){return"number"==typeof n?o(n+""):"boolean"==typeof n?n?m():p():e.isString(n)?s(n):(t=n,(r=s(e.getTextOfIdentifierOrLiteral(t))).textSourceNode=t,r);var t,r}function o(e){var t=n(8);return t.text=e,t.numericLiteralFlags=0,t}function s(e){var t=n(9);return t.text=e,t}function l(t,a){var i=n(71);return i.escapedText=e.escapeLeadingUnderscores(t),i.originalKeywordKind=t?e.stringToToken(t):0,i.autoGenerateFlags=0,i.autoGenerateId=0,a&&(i.typeArguments=r(a)),i}e.updateNode=t,e.createNodeArray=r,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createIdentifier=l,e.updateIdentifier=function(n,r){return n.typeArguments!==r?t(l(e.idText(n),r),n):n};var c,u=0;function d(e){return n(e)}function m(){return n(101)}function p(){return n(86)}function f(e,t){var r=n(145);return r.left=e,r.right=kn(t),r}function g(t){var r=n(146);return r.expression=function(n){return e.isBinaryExpression(n)&&26===n.operatorToken.kind||296===n.kind?ne(n):n}(t),r}function v(e,t,r){var a=n(147);return a.name=kn(e),a.constraint=t,a.default=r,a}function _(t,r,a,i,o,s,l){var c=n(148);return c.decorators=Mn(t),c.modifiers=Mn(r),c.dotDotDotToken=a,c.name=kn(i),c.questionToken=o,c.type=s,c.initializer=l?e.parenthesizeExpressionForList(l):void 0,c}function y(t){var r=n(149);return r.expression=e.parenthesizeForAccess(t),r}function h(e,t,r,a,i){var o=n(150);return o.modifiers=Mn(e),o.name=kn(t),o.questionToken=r,o.type=a,o.initializer=i,o}function b(e,t,r,a,i,o){var s=n(151);return s.decorators=Mn(e),s.modifiers=Mn(t),s.name=kn(r),s.questionToken=void 0!==a&&55===a.kind?a:void 0,s.exclamationToken=void 0!==a&&51===a.kind?a:void 0,s.type=i,s.initializer=o,s}function E(e,n,t,r,a){var i=C(152,e,n,t);return i.name=kn(r),i.questionToken=a,i}function T(e,t,a,i,o,s,l,c,u){var d=n(153);return d.decorators=Mn(e),d.modifiers=Mn(t),d.asteriskToken=a,d.name=kn(i),d.questionToken=o,d.typeParameters=Mn(s),d.parameters=r(l),d.type=c,d.body=u,d}function S(e,t,a,i){var o=n(154);return o.decorators=Mn(e),o.modifiers=Mn(t),o.typeParameters=void 0,o.parameters=r(a),o.type=void 0,o.body=i,o}function L(e,t,a,i,o,s){var l=n(155);return l.decorators=Mn(e),l.modifiers=Mn(t),l.name=kn(a),l.typeParameters=void 0,l.parameters=r(i),l.type=o,l.body=s,l}function A(e,t,a,i,o){var s=n(156);return s.decorators=Mn(e),s.modifiers=Mn(t),s.name=kn(a),s.typeParameters=void 0,s.parameters=r(i),s.body=o,s}function x(e,t,a,i){var o=n(159);return o.decorators=Mn(e),o.modifiers=Mn(t),o.parameters=r(a),o.type=i,o}function C(e,t,r,a,i){var o=n(e);return o.typeParameters=Mn(t),o.parameters=Mn(r),o.type=a,o.typeArguments=Mn(i),o}function k(e,n,r,a){return e.typeParameters!==n||e.parameters!==r||e.type!==a?t(C(e.kind,n,r,a),e):e}function M(e,t){var r=n(160);return r.parameterName=kn(e),r.type=t,r}function D(t,r){var a=n(161);return a.typeName=kn(t),a.typeArguments=r&&e.parenthesizeTypeParameters(r),a}function O(e){var t=n(164);return t.exprName=e,t}function R(e){var t=n(165);return t.members=r(e),t}function I(t){var r=n(166);return r.elementType=e.parenthesizeArrayTypeMember(t),r}function N(e){var t=n(167);return t.elementTypes=r(e),t}function w(t,r){var a=n(t);return a.types=e.parenthesizeElementTypeMembers(r),a}function P(e,n){return e.types!==n?t(w(e.kind,n),e):e}function F(t,r,a,i){var o=n(170);return o.checkType=e.parenthesizeConditionalTypeMember(t),o.extendsType=e.parenthesizeConditionalTypeMember(r),o.trueType=a,o.falseType=i,o}function V(e){var t=n(171);return t.typeParameter=e,t}function G(e){var t=n(172);return t.type=e,t}function H(t,r){var a=n(174);return a.operator="number"==typeof t?t:128,a.type=e.parenthesizeElementTypeMember("number"==typeof t?r:t),a}function K(t,r){var a=n(175);return a.objectType=e.parenthesizeElementTypeMember(t),a.indexType=r,a}function B(e,t,r,a){var i=n(176);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=r,i.type=a,i}function U(e){var t=n(177);return t.literal=e,t}function j(e){var t=n(178);return t.elements=r(e),t}function W(e){var t=n(179);return t.elements=r(e),t}function q(e,t,r,a){var i=n(180);return i.dotDotDotToken=e,i.propertyName=kn(t),i.name=kn(r),i.initializer=a,i}function z(t,a){var i=n(181);return i.elements=e.parenthesizeListElements(r(t)),a&&(i.multiLine=!0),i}function J(e,t){var a=n(182);return a.properties=r(e),t&&(a.multiLine=!0),a}function X(t,r){var a=n(183);return a.expression=e.parenthesizeForAccess(t),a.name=kn(r),Rn(a,131072),a}function Y(t,r){var a,o=n(184);return o.expression=e.parenthesizeForAccess(t),o.argumentExpression=(a=r,e.isString(a)||"number"==typeof a?i(a):a),o}function Q(t,a,i){var o=n(185);return o.expression=e.parenthesizeForAccess(t),o.typeArguments=Mn(a),o.arguments=e.parenthesizeListElements(r(i)),o}function Z(t,a,i){var o=n(186);return o.expression=e.parenthesizeForNew(t),o.typeArguments=Mn(a),o.arguments=i?e.parenthesizeListElements(r(i)):void 0,o}function $(t,r){var a=n(187);return a.tag=e.parenthesizeForAccess(t),a.template=r,a}function ee(t,r){var a=n(188);return a.type=t,a.expression=e.parenthesizePrefixOperand(r),a}function ne(e){var t=n(189);return t.expression=e,t}function te(e,t,a,i,o,s,l){var c=n(190);return c.modifiers=Mn(e),c.asteriskToken=t,c.name=kn(a),c.typeParameters=Mn(i),c.parameters=r(o),c.type=s,c.body=l,c}function re(t,a,i,o,s,l){var c=n(191);return c.modifiers=Mn(t),c.typeParameters=Mn(a),c.parameters=r(i),c.type=o,c.equalsGreaterThanToken=s||d(36),c.body=e.parenthesizeConciseBody(l),c}function ae(t){var r=n(192);return r.expression=e.parenthesizePrefixOperand(t),r}function ie(t){var r=n(193);return r.expression=e.parenthesizePrefixOperand(t),r}function oe(t){var r=n(194);return r.expression=e.parenthesizePrefixOperand(t),r}function se(t){var r=n(195);return r.expression=e.parenthesizePrefixOperand(t),r}function le(t,r){var a=n(196);return a.operator=t,a.operand=e.parenthesizePrefixOperand(r),a}function ce(t,r){var a=n(197);return a.operand=e.parenthesizePostfixOperand(t),a.operator=r,a}function ue(t,r,a){var i,o=n(198),s="number"==typeof(i=r)?d(i):i,l=s.kind;return o.left=e.parenthesizeBinaryOperand(l,t,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(l,a,!1,o.left),o}function de(t,r,a,i,o){var s=n(199);return s.condition=e.parenthesizeForConditionalHead(t),s.questionToken=o?r:d(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?a:r),s.colonToken=o?i:d(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||a),s}function me(e,t){var a=n(200);return a.head=e,a.templateSpans=r(t),a}function pe(e,t){var r=n(201);return r.asteriskToken=e&&39===e.kind?e:void 0,r.expression=e&&39!==e.kind?e:t,r}function fe(t){var r=n(202);return r.expression=e.parenthesizeExpressionForList(t),r}function ge(e,t,a,i,o){var s=n(203);return s.decorators=void 0,s.modifiers=Mn(e),s.name=kn(t),s.typeParameters=Mn(a),s.heritageClauses=Mn(i),s.members=r(o),s}function ve(t,r){var a=n(205);return a.expression=e.parenthesizeForAccess(r),a.typeArguments=Mn(t),a}function _e(e,t){var r=n(206);return r.expression=e,r.type=t,r}function ye(t){var r=n(207);return r.expression=e.parenthesizeForAccess(t),r}function he(e,t){var r=n(208);return r.keywordToken=e,r.name=t,r}function be(e,t){var r=n(209);return r.expression=e,r.literal=t,r}function Ee(e,t){var a=n(211);return a.statements=r(e),t&&(a.multiLine=t),a}function Te(t,r){var a=n(212);return a.decorators=void 0,a.modifiers=Mn(t),a.declarationList=e.isArray(r)?Ge(r):r,a}function Se(t){var r=n(214);return r.expression=e.parenthesizeExpressionForExpressionStatement(t),r}function Le(e,t,r){var a=n(215);return a.expression=e,a.thenStatement=t,a.elseStatement=r,a}function Ae(e,t){var r=n(216);return r.statement=e,r.expression=t,r}function xe(e,t){var r=n(217);return r.expression=e,r.statement=t,r}function Ce(e,t,r,a){var i=n(218);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=a,i}function ke(e,t,r){var a=n(219);return a.initializer=e,a.expression=t,a.statement=r,a}function Me(e,t,r,a){var i=n(220);return i.awaitModifier=e,i.initializer=t,i.expression=r,i.statement=a,i}function De(e){var t=n(221);return t.label=kn(e),t}function Oe(e){var t=n(222);return t.label=kn(e),t}function Re(e){var t=n(223);return t.expression=e,t}function Ie(e,t){var r=n(224);return r.expression=e,r.statement=t,r}function Ne(t,r){var a=n(225);return a.expression=e.parenthesizeExpressionForList(t),a.caseBlock=r,a}function we(e,t){var r=n(226);return r.label=kn(e),r.statement=t,r}function Pe(e){var t=n(227);return t.expression=e,t}function Fe(e,t,r){var a=n(228);return a.tryBlock=e,a.catchClause=t,a.finallyBlock=r,a}function Ve(t,r,a){var i=n(230);return i.name=kn(t),i.type=r,i.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,i}function Ge(e,t){var a=n(231);return a.flags|=3&t,a.declarations=r(e),a}function He(e,t,a,i,o,s,l,c){var u=n(232);return u.decorators=Mn(e),u.modifiers=Mn(t),u.asteriskToken=a,u.name=kn(i),u.typeParameters=Mn(o),u.parameters=r(s),u.type=l,u.body=c,u}function Ke(e,t,a,i,o,s){var l=n(233);return l.decorators=Mn(e),l.modifiers=Mn(t),l.name=kn(a),l.typeParameters=Mn(i),l.heritageClauses=Mn(o),l.members=r(s),l}function Be(e,t,a,i,o,s){var l=n(234);return l.decorators=Mn(e),l.modifiers=Mn(t),l.name=kn(a),l.typeParameters=Mn(i),l.heritageClauses=Mn(o),l.members=r(s),l}function Ue(e,t,r,a,i){var o=n(235);return o.decorators=Mn(e),o.modifiers=Mn(t),o.name=kn(r),o.typeParameters=Mn(a),o.type=i,o}function je(e,t,a,i){var o=n(236);return o.decorators=Mn(e),o.modifiers=Mn(t),o.name=kn(a),o.members=r(i),o}function We(e,t,r,a,i){var o=n(237);return o.flags|=532&i,o.decorators=Mn(e),o.modifiers=Mn(t),o.name=r,o.body=a,o}function qe(e){var t=n(238);return t.statements=r(e),t}function ze(e){var t=n(239);return t.clauses=r(e),t}function Je(e){var t=n(240);return t.name=kn(e),t}function Xe(e,t,r,a){var i=n(241);return i.decorators=Mn(e),i.modifiers=Mn(t),i.name=kn(r),i.moduleReference=a,i}function Ye(e,t,r,a){var i=n(242);return i.decorators=Mn(e),i.modifiers=Mn(t),i.importClause=r,i.moduleSpecifier=a,i}function Qe(e,t){var r=n(243);return r.name=e,r.namedBindings=t,r}function Ze(e){var t=n(244);return t.name=e,t}function $e(e){var t=n(245);return t.elements=r(e),t}function en(e,t){var r=n(246);return r.propertyName=e,r.name=t,r}function nn(t,r,a,i){var o=n(247);return o.decorators=Mn(t),o.modifiers=Mn(r),o.isExportEquals=a,o.expression=a?e.parenthesizeBinaryOperand(58,i,!1,void 0):e.parenthesizeDefaultExpression(i),o}function tn(e,t,r,a){var i=n(248);return i.decorators=Mn(e),i.modifiers=Mn(t),i.exportClause=r,i.moduleSpecifier=a,i}function rn(e){var t=n(249);return t.elements=r(e),t}function an(e,t){var r=n(250);return r.propertyName=kn(e),r.name=kn(t),r}function on(e){var t=n(252);return t.expression=e,t}function sn(e,t,a){var i=n(253);return i.openingElement=e,i.children=r(t),i.closingElement=a,i}function ln(e,t){var r=n(254);return r.tagName=e,r.attributes=t,r}function cn(e,t){var r=n(255);return r.tagName=e,r.attributes=t,r}function un(e){var t=n(256);return t.tagName=e,t}function dn(e,t,a){var i=n(257);return i.openingFragment=e,i.children=r(t),i.closingFragment=a,i}function mn(e,t){var r=n(260);return r.name=e,r.initializer=t,r}function pn(e){var t=n(261);return t.properties=r(e),t}function fn(e){var t=n(262);return t.expression=e,t}function gn(e,t){var r=n(263);return r.dotDotDotToken=e,r.expression=t,r}function vn(t,a){var i=n(264);return i.expression=e.parenthesizeExpressionForList(t),i.statements=r(a),i}function _n(e){var t=n(265);return t.statements=r(e),t}function yn(e,t){var a=n(266);return a.token=e,a.types=r(t),a}function hn(t,r){var a=n(267);return a.variableDeclaration=e.isString(t)?Ve(t):t,a.block=r,a}function bn(t,r){var a=n(268);return a.name=kn(t),a.questionToken=void 0,a.initializer=e.parenthesizeExpressionForList(r),a}function En(t,r){var a=n(269);return a.name=kn(t),a.objectAssignmentInitializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,a}function Tn(t){var r=n(270);return r.expression=void 0!==t?e.parenthesizeExpressionForList(t):void 0,r}function Sn(t,r){var a=n(271);return a.name=kn(t),a.initializer=r&&e.parenthesizeExpressionForList(r),a}function Ln(e,t){var r=n(295);return r.expression=e,r.original=t,On(r,t),r}function An(n){if(e.nodeIsSynthesized(n)&&!e.isParseTreeNode(n)&&!n.original&&!n.emitNode&&!n.id){if(296===n.kind)return n.elements;if(e.isBinaryExpression(n)&&26===n.operatorToken.kind)return[n.left,n.right]}return n}function xn(t){var a=n(296);return a.elements=r(e.sameFlatMap(t,An)),a}function Cn(n){var t=e.createNode(273);return t.sourceFiles=n,t}function kn(n){return e.isString(n)?l(n):n}function Mn(e){return e?r(e):void 0}function Dn(n){if(!n.emitNode){if(e.isParseTreeNode(n)){if(272===n.kind)return n.emitNode={annotatedNodes:[n]};Dn(e.getSourceFileOfNode(n)).annotatedNodes.push(n)}n.emitNode={}}return n.emitNode}function On(e,n){return n&&(e.pos=n.pos,e.end=n.end),e}function Rn(e,n){return Dn(e).flags=n,e}function In(e){var n=e.emitNode;return n&&n.leadingComments}function Nn(e,n){return Dn(e).leadingComments=n,e}function wn(e){var n=e.emitNode;return n&&n.trailingComments}function Pn(e,n){return Dn(e).trailingComments=n,e}function Fn(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,l=n.tokenSourceMapRanges,c=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=r);o&&(t.commentRange=o);s&&(t.sourceMapRange=s);l&&(t.tokenSourceMapRanges=function(e,n){n||(n=[]);for(var t in e)n[t]=e[t];return n}(l,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);u&&(t.helpers=e.addRange(t.helpers,u));void 0!==d&&(t.startsOnNewLine=d);return t}(r,n.emitNode))}return n}e.createTempVariable=function(e,n){var t=l("");return t.autoGenerateFlags=1,t.autoGenerateId=u,u++,e&&e(t),n&&(t.autoGenerateFlags|=16),t},e.createLoopVariable=function(){var e=l("");return e.autoGenerateFlags=2,e.autoGenerateId=u,u++,e},e.createUniqueName=function(e){var n=l(e);return n.autoGenerateFlags=3,n.autoGenerateId=u,u++,n},e.getGeneratedNameForNode=function(e,n){var t=l("");return t.autoGenerateFlags=4,t.autoGenerateId=u,t.original=e,n&&(t.autoGenerateFlags|=8),u++,t},e.createToken=d,e.createSuper=function(){return n(97)},e.createThis=function(){return n(99)},e.createNull=function(){return n(95)},e.createTrue=m,e.createFalse=p,e.createQualifiedName=f,e.updateQualifiedName=function(e,n,r){return e.left!==n||e.right!==r?t(f(n,r),e):e},e.createComputedPropertyName=g,e.updateComputedPropertyName=function(e,n){return e.expression!==n?t(g(n),e):e},e.createTypeParameterDeclaration=v,e.updateTypeParameterDeclaration=function(e,n,r,a){return e.name!==n||e.constraint!==r||e.default!==a?t(v(n,r,a),e):e},e.createParameter=_,e.updateParameter=function(e,n,r,a,i,o,s,l){return e.decorators!==n||e.modifiers!==r||e.dotDotDotToken!==a||e.name!==i||e.questionToken!==o||e.type!==s||e.initializer!==l?t(_(n,r,a,i,o,s,l),e):e},e.createDecorator=y,e.updateDecorator=function(e,n){return e.expression!==n?t(y(n),e):e},e.createPropertySignature=h,e.updatePropertySignature=function(e,n,r,a,i,o){return e.modifiers!==n||e.name!==r||e.questionToken!==a||e.type!==i||e.initializer!==o?t(h(n,r,a,i,o),e):e},e.createProperty=b,e.updateProperty=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.questionToken!==(void 0!==i&&55===i.kind?i:void 0)||e.exclamationToken!==(void 0!==i&&51===i.kind?i:void 0)||e.type!==o||e.initializer!==s?t(b(n,r,a,i,o,s),e):e},e.createMethodSignature=E,e.updateMethodSignature=function(e,n,r,a,i,o){return e.typeParameters!==n||e.parameters!==r||e.type!==a||e.name!==i||e.questionToken!==o?t(E(n,r,a,i,o),e):e},e.createMethod=T,e.updateMethod=function(e,n,r,a,i,o,s,l,c,u){return e.decorators!==n||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.questionToken!==o||e.typeParameters!==s||e.parameters!==l||e.type!==c||e.body!==u?t(T(n,r,a,i,o,s,l,c,u),e):e},e.createConstructor=S,e.updateConstructor=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.parameters!==a||e.body!==i?t(S(n,r,a,i),e):e},e.createGetAccessor=L,e.updateGetAccessor=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.parameters!==i||e.type!==o||e.body!==s?t(L(n,r,a,i,o,s),e):e},e.createSetAccessor=A,e.updateSetAccessor=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.parameters!==i||e.body!==o?t(A(n,r,a,i,o),e):e},e.createCallSignature=function(e,n,t){return C(157,e,n,t)},e.updateCallSignature=function(e,n,t,r){return k(e,n,t,r)},e.createConstructSignature=function(e,n,t){return C(158,e,n,t)},e.updateConstructSignature=function(e,n,t,r){return k(e,n,t,r)},e.createIndexSignature=x,e.updateIndexSignature=function(e,n,r,a,i){return e.parameters!==a||e.type!==i||e.decorators!==n||e.modifiers!==r?t(x(n,r,a,i),e):e},e.createSignatureDeclaration=C,e.createKeywordTypeNode=function(e){return n(e)},e.createTypePredicateNode=M,e.updateTypePredicateNode=function(e,n,r){return e.parameterName!==n||e.type!==r?t(M(n,r),e):e},e.createTypeReferenceNode=D,e.updateTypeReferenceNode=function(e,n,r){return e.typeName!==n||e.typeArguments!==r?t(D(n,r),e):e},e.createFunctionTypeNode=function(e,n,t){return C(162,e,n,t)},e.updateFunctionTypeNode=function(e,n,t,r){return k(e,n,t,r)},e.createConstructorTypeNode=function(e,n,t){return C(163,e,n,t)},e.updateConstructorTypeNode=function(e,n,t,r){return k(e,n,t,r)},e.createTypeQueryNode=O,e.updateTypeQueryNode=function(e,n){return e.exprName!==n?t(O(n),e):e},e.createTypeLiteralNode=R,e.updateTypeLiteralNode=function(e,n){return e.members!==n?t(R(n),e):e},e.createArrayTypeNode=I,e.updateArrayTypeNode=function(e,n){return e.elementType!==n?t(I(n),e):e},e.createTupleTypeNode=N,e.updateTypleTypeNode=function(e,n){return e.elementTypes!==n?t(N(n),e):e},e.createUnionTypeNode=function(e){return w(168,e)},e.updateUnionTypeNode=function(e,n){return P(e,n)},e.createIntersectionTypeNode=function(e){return w(169,e)},e.updateIntersectionTypeNode=function(e,n){return P(e,n)},e.createUnionOrIntersectionTypeNode=w,e.createConditionalTypeNode=F,e.updateConditionalTypeNode=function(e,n,r,a,i){return e.checkType!==n||e.extendsType!==r||e.trueType!==a||e.falseType!==i?t(F(n,r,a,i),e):e},e.createInferTypeNode=V,e.updateInferTypeNode=function(e,n){return e.typeParameter!==n?t(V(n),e):e},e.createParenthesizedType=G,e.updateParenthesizedType=function(e,n){return e.type!==n?t(G(n),e):e},e.createThisTypeNode=function(){return n(173)},e.createTypeOperatorNode=H,e.updateTypeOperatorNode=function(e,n){return e.type!==n?t(H(e.operator,n),e):e},e.createIndexedAccessTypeNode=K,e.updateIndexedAccessTypeNode=function(e,n,r){return e.objectType!==n||e.indexType!==r?t(K(n,r),e):e},e.createMappedTypeNode=B,e.updateMappedTypeNode=function(e,n,r,a,i){return e.readonlyToken!==n||e.typeParameter!==r||e.questionToken!==a||e.type!==i?t(B(n,r,a,i),e):e},e.createLiteralTypeNode=U,e.updateLiteralTypeNode=function(e,n){return e.literal!==n?t(U(n),e):e},e.createObjectBindingPattern=j,e.updateObjectBindingPattern=function(e,n){return e.elements!==n?t(j(n),e):e},e.createArrayBindingPattern=W,e.updateArrayBindingPattern=function(e,n){return e.elements!==n?t(W(n),e):e},e.createBindingElement=q,e.updateBindingElement=function(e,n,r,a,i){return e.propertyName!==r||e.dotDotDotToken!==n||e.name!==a||e.initializer!==i?t(q(n,r,a,i),e):e},e.createArrayLiteral=z,e.updateArrayLiteral=function(e,n){return e.elements!==n?t(z(n,e.multiLine),e):e},e.createObjectLiteral=J,e.updateObjectLiteral=function(e,n){return e.properties!==n?t(J(n,e.multiLine),e):e},e.createPropertyAccess=X,e.updatePropertyAccess=function(n,r,a){return n.expression!==r||n.name!==a?t(Rn(X(r,a),e.getEmitFlags(n)),n):n},e.createElementAccess=Y,e.updateElementAccess=function(e,n,r){return e.expression!==n||e.argumentExpression!==r?t(Y(n,r),e):e},e.createCall=Q,e.updateCall=function(e,n,r,a){return e.expression!==n||e.typeArguments!==r||e.arguments!==a?t(Q(n,r,a),e):e},e.createNew=Z,e.updateNew=function(e,n,r,a){return e.expression!==n||e.typeArguments!==r||e.arguments!==a?t(Z(n,r,a),e):e},e.createTaggedTemplate=$,e.updateTaggedTemplate=function(e,n,r){return e.tag!==n||e.template!==r?t($(n,r),e):e},e.createTypeAssertion=ee,e.updateTypeAssertion=function(e,n,r){return e.type!==n||e.expression!==r?t(ee(n,r),e):e},e.createParen=ne,e.updateParen=function(e,n){return e.expression!==n?t(ne(n),e):e},e.createFunctionExpression=te,e.updateFunctionExpression=function(e,n,r,a,i,o,s,l){return e.name!==a||e.modifiers!==n||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==l?t(te(n,r,a,i,o,s,l),e):e},e.createArrowFunction=re,e.updateArrowFunction=function(n,r,a,i,o,s,l){var c,u;return void 0===l?(c=n.equalsGreaterThanToken,u=e.cast(s,e.isConciseBody)):(c=e.cast(s,function(e){return 36===e.kind}),u=l),n.modifiers!==r||n.typeParameters!==a||n.parameters!==i||n.type!==o||n.equalsGreaterThanToken!==c||n.body!==u?t(re(r,a,i,o,c,u),n):n},e.createDelete=ae,e.updateDelete=function(e,n){return e.expression!==n?t(ae(n),e):e},e.createTypeOf=ie,e.updateTypeOf=function(e,n){return e.expression!==n?t(ie(n),e):e},e.createVoid=oe,e.updateVoid=function(e,n){return e.expression!==n?t(oe(n),e):e},e.createAwait=se,e.updateAwait=function(e,n){return e.expression!==n?t(se(n),e):e},e.createPrefix=le,e.updatePrefix=function(e,n){return e.operand!==n?t(le(e.operator,n),e):e},e.createPostfix=ce,e.updatePostfix=function(e,n){return e.operand!==n?t(ce(n,e.operator),e):e},e.createBinary=ue,e.updateBinary=function(e,n,r,a){return e.left!==n||e.right!==r?t(ue(n,a||e.operatorToken,r),e):e},e.createConditional=de,e.updateConditional=function n(r,a){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(2===i.length){var s=i[0],l=i[1];return n(r,a,r.questionToken,s,r.colonToken,l)}e.Debug.assert(4===i.length);var c=i[0],u=i[1],d=i[2],m=i[3];return r.condition!==a||r.questionToken!==c||r.whenTrue!==u||r.colonToken!==d||r.whenFalse!==m?t(de(a,c,u,d,m),r):r},e.createTemplateExpression=me,e.updateTemplateExpression=function(e,n,r){return e.head!==n||e.templateSpans!==r?t(me(n,r),e):e},e.createTemplateHead=function(e){var t=n(14);return t.text=e,t},e.createTemplateMiddle=function(e){var t=n(15);return t.text=e,t},e.createTemplateTail=function(e){var t=n(16);return t.text=e,t},e.createNoSubstitutionTemplateLiteral=function(e){var t=n(13);return t.text=e,t},e.createYield=pe,e.updateYield=function(e,n,r){return e.expression!==r||e.asteriskToken!==n?t(pe(n,r),e):e},e.createSpread=fe,e.updateSpread=function(e,n){return e.expression!==n?t(fe(n),e):e},e.createClassExpression=ge,e.updateClassExpression=function(e,n,r,a,i,o){return e.modifiers!==n||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?t(ge(n,r,a,i,o),e):e},e.createOmittedExpression=function(){return n(204)},e.createExpressionWithTypeArguments=ve,e.updateExpressionWithTypeArguments=function(e,n,r){return e.typeArguments!==n||e.expression!==r?t(ve(n,r),e):e},e.createAsExpression=_e,e.updateAsExpression=function(e,n,r){return e.expression!==n||e.type!==r?t(_e(n,r),e):e},e.createNonNullExpression=ye,e.updateNonNullExpression=function(e,n){return e.expression!==n?t(ye(n),e):e},e.createMetaProperty=he,e.updateMetaProperty=function(e,n){return e.name!==n?t(he(e.keywordToken,n),e):e},e.createTemplateSpan=be,e.updateTemplateSpan=function(e,n,r){return e.expression!==n||e.literal!==r?t(be(n,r),e):e},e.createSemicolonClassElement=function(){return n(210)},e.createBlock=Ee,e.updateBlock=function(e,n){return e.statements!==n?t(Ee(n,e.multiLine),e):e},e.createVariableStatement=Te,e.updateVariableStatement=function(e,n,r){return e.modifiers!==n||e.declarationList!==r?t(Te(n,r),e):e},e.createEmptyStatement=function(){return n(213)},e.createStatement=Se,e.updateStatement=function(e,n){return e.expression!==n?t(Se(n),e):e},e.createIf=Le,e.updateIf=function(e,n,r,a){return e.expression!==n||e.thenStatement!==r||e.elseStatement!==a?t(Le(n,r,a),e):e},e.createDo=Ae,e.updateDo=function(e,n,r){return e.statement!==n||e.expression!==r?t(Ae(n,r),e):e},e.createWhile=xe,e.updateWhile=function(e,n,r){return e.expression!==n||e.statement!==r?t(xe(n,r),e):e},e.createFor=Ce,e.updateFor=function(e,n,r,a,i){return e.initializer!==n||e.condition!==r||e.incrementor!==a||e.statement!==i?t(Ce(n,r,a,i),e):e},e.createForIn=ke,e.updateForIn=function(e,n,r,a){return e.initializer!==n||e.expression!==r||e.statement!==a?t(ke(n,r,a),e):e},e.createForOf=Me,e.updateForOf=function(e,n,r,a,i){return e.awaitModifier!==n||e.initializer!==r||e.expression!==a||e.statement!==i?t(Me(n,r,a,i),e):e},e.createContinue=De,e.updateContinue=function(e,n){return e.label!==n?t(De(n),e):e},e.createBreak=Oe,e.updateBreak=function(e,n){return e.label!==n?t(Oe(n),e):e},e.createReturn=Re,e.updateReturn=function(e,n){return e.expression!==n?t(Re(n),e):e},e.createWith=Ie,e.updateWith=function(e,n,r){return e.expression!==n||e.statement!==r?t(Ie(n,r),e):e},e.createSwitch=Ne,e.updateSwitch=function(e,n,r){return e.expression!==n||e.caseBlock!==r?t(Ne(n,r),e):e},e.createLabel=we,e.updateLabel=function(e,n,r){return e.label!==n||e.statement!==r?t(we(n,r),e):e},e.createThrow=Pe,e.updateThrow=function(e,n){return e.expression!==n?t(Pe(n),e):e},e.createTry=Fe,e.updateTry=function(e,n,r,a){return e.tryBlock!==n||e.catchClause!==r||e.finallyBlock!==a?t(Fe(n,r,a),e):e},e.createDebuggerStatement=function(){return n(229)},e.createVariableDeclaration=Ve,e.updateVariableDeclaration=function(e,n,r,a){return e.name!==n||e.type!==r||e.initializer!==a?t(Ve(n,r,a),e):e},e.createVariableDeclarationList=Ge,e.updateVariableDeclarationList=function(e,n){return e.declarations!==n?t(Ge(n,e.flags),e):e},e.createFunctionDeclaration=He,e.updateFunctionDeclaration=function(e,n,r,a,i,o,s,l,c){return e.decorators!==n||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.typeParameters!==o||e.parameters!==s||e.type!==l||e.body!==c?t(He(n,r,a,i,o,s,l,c),e):e},e.createClassDeclaration=Ke,e.updateClassDeclaration=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?t(Ke(n,r,a,i,o,s),e):e},e.createInterfaceDeclaration=Be,e.updateInterfaceDeclaration=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?t(Be(n,r,a,i,o,s),e):e},e.createTypeAliasDeclaration=Ue,e.updateTypeAliasDeclaration=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.type!==o?t(Ue(n,r,a,i,o),e):e},e.createEnumDeclaration=je,e.updateEnumDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.members!==i?t(je(n,r,a,i),e):e},e.createModuleDeclaration=We,e.updateModuleDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.body!==i?t(We(n,r,a,i,e.flags),e):e},e.createModuleBlock=qe,e.updateModuleBlock=function(e,n){return e.statements!==n?t(qe(n),e):e},e.createCaseBlock=ze,e.updateCaseBlock=function(e,n){return e.clauses!==n?t(ze(n),e):e},e.createNamespaceExportDeclaration=Je,e.updateNamespaceExportDeclaration=function(e,n){return e.name!==n?t(Je(n),e):e},e.createImportEqualsDeclaration=Xe,e.updateImportEqualsDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.moduleReference!==i?t(Xe(n,r,a,i),e):e},e.createImportDeclaration=Ye,e.updateImportDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.importClause!==a||e.moduleSpecifier!==i?t(Ye(n,r,a,i),e):e},e.createImportClause=Qe,e.updateImportClause=function(e,n,r){return e.name!==n||e.namedBindings!==r?t(Qe(n,r),e):e},e.createNamespaceImport=Ze,e.updateNamespaceImport=function(e,n){return e.name!==n?t(Ze(n),e):e},e.createNamedImports=$e,e.updateNamedImports=function(e,n){return e.elements!==n?t($e(n),e):e},e.createImportSpecifier=en,e.updateImportSpecifier=function(e,n,r){return e.propertyName!==n||e.name!==r?t(en(n,r),e):e},e.createExportAssignment=nn,e.updateExportAssignment=function(e,n,r,a){return e.decorators!==n||e.modifiers!==r||e.expression!==a?t(nn(n,r,e.isExportEquals,a),e):e},e.createExportDeclaration=tn,e.updateExportDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.exportClause!==a||e.moduleSpecifier!==i?t(tn(n,r,a,i),e):e},e.createNamedExports=rn,e.updateNamedExports=function(e,n){return e.elements!==n?t(rn(n),e):e},e.createExportSpecifier=an,e.updateExportSpecifier=function(e,n,r){return e.propertyName!==n||e.name!==r?t(an(n,r),e):e},e.createExternalModuleReference=on,e.updateExternalModuleReference=function(e,n){return e.expression!==n?t(on(n),e):e},e.createJsxElement=sn,e.updateJsxElement=function(e,n,r,a){return e.openingElement!==n||e.children!==r||e.closingElement!==a?t(sn(n,r,a),e):e},e.createJsxSelfClosingElement=ln,e.updateJsxSelfClosingElement=function(e,n,r){return e.tagName!==n||e.attributes!==r?t(ln(n,r),e):e},e.createJsxOpeningElement=cn,e.updateJsxOpeningElement=function(e,n,r){return e.tagName!==n||e.attributes!==r?t(cn(n,r),e):e},e.createJsxClosingElement=un,e.updateJsxClosingElement=function(e,n){return e.tagName!==n?t(un(n),e):e},e.createJsxFragment=dn,e.updateJsxFragment=function(e,n,r,a){return e.openingFragment!==n||e.children!==r||e.closingFragment!==a?t(dn(n,r,a),e):e},e.createJsxAttribute=mn,e.updateJsxAttribute=function(e,n,r){return e.name!==n||e.initializer!==r?t(mn(n,r),e):e},e.createJsxAttributes=pn,e.updateJsxAttributes=function(e,n){return e.properties!==n?t(pn(n),e):e},e.createJsxSpreadAttribute=fn,e.updateJsxSpreadAttribute=function(e,n){return e.expression!==n?t(fn(n),e):e},e.createJsxExpression=gn,e.updateJsxExpression=function(e,n){return e.expression!==n?t(gn(e.dotDotDotToken,n),e):e},e.createCaseClause=vn,e.updateCaseClause=function(e,n,r){return e.expression!==n||e.statements!==r?t(vn(n,r),e):e},e.createDefaultClause=_n,e.updateDefaultClause=function(e,n){return e.statements!==n?t(_n(n),e):e},e.createHeritageClause=yn,e.updateHeritageClause=function(e,n){return e.types!==n?t(yn(e.token,n),e):e},e.createCatchClause=hn,e.updateCatchClause=function(e,n,r){return e.variableDeclaration!==n||e.block!==r?t(hn(n,r),e):e},e.createPropertyAssignment=bn,e.updatePropertyAssignment=function(e,n,r){return e.name!==n||e.initializer!==r?t(bn(n,r),e):e},e.createShorthandPropertyAssignment=En,e.updateShorthandPropertyAssignment=function(e,n,r){return e.name!==n||e.objectAssignmentInitializer!==r?t(En(n,r),e):e},e.createSpreadAssignment=Tn,e.updateSpreadAssignment=function(e,n){return e.expression!==n?t(Tn(n),e):e},e.createEnumMember=Sn,e.updateEnumMember=function(e,n,r){return e.name!==n||e.initializer!==r?t(Sn(n,r),e):e},e.updateSourceFileNode=function(e,a){if(e.statements!==a){var i=n(272);return i.flags|=e.flags,i.statements=r(a),i.endOfFileToken=e.endOfFileToken,i.fileName=e.fileName,i.path=e.path,i.text=e.text,void 0!==e.amdDependencies&&(i.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(i.moduleName=e.moduleName),void 0!==e.referencedFiles&&(i.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(i.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(i.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(i.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(i.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(i.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(i.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(i.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(i.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(i.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(i.identifiers=e.identifiers),void 0!==e.nodeCount&&(i.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(i.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(i.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(i.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(i.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(i.lineMap=e.lineMap),void 0!==e.classifiableNames&&(i.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(i.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(i.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(i.imports=e.imports),void 0!==e.moduleAugmentations&&(i.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(i.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(i.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(i.localJsxNamespace=e.localJsxNamespace),t(i,e)}return e},e.getMutableClone=function(e){var n=a(e);return n.pos=e.pos,n.end=e.end,n.parent=e.parent,n},e.createNotEmittedStatement=function(e){var t=n(294);return t.original=e,On(t,e),t},e.createEndOfDeclarationMarker=function(e){var t=n(298);return t.emitNode={},t.original=e,t},e.createMergeDeclarationMarker=function(e){var t=n(297);return t.emitNode={},t.original=e,t},e.createPartiallyEmittedExpression=Ln,e.updatePartiallyEmittedExpression=function(e,n){return e.expression!==n?t(Ln(n,e.original),e):e},e.createCommaList=xn,e.updateCommaList=function(e,n){return e.elements!==n?t(xn(n),e):e},e.createBundle=Cn,e.updateBundle=function(e,n){return e.sourceFiles!==n?Cn(n):e},e.createImmediatelyInvokedFunctionExpression=function(e,n,t){return Q(te(void 0,void 0,void 0,void 0,n?[n]:[],void 0,Ee(e,!0)),void 0,t?[t]:[])},e.createImmediatelyInvokedArrowFunction=function(e,n,t){return Q(re(void 0,void 0,n?[n]:[],void 0,void 0,Ee(e,!0)),void 0,t?[t]:[])},e.createComma=function(e,n){return ue(e,26,n)},e.createLessThan=function(e,n){return ue(e,27,n)},e.createAssignment=function(e,n){return ue(e,58,n)},e.createStrictEquality=function(e,n){return ue(e,34,n)},e.createStrictInequality=function(e,n){return ue(e,35,n)},e.createAdd=function(e,n){return ue(e,37,n)},e.createSubtract=function(e,n){return ue(e,38,n)},e.createPostfixIncrement=function(e){return ce(e,43)},e.createLogicalAnd=function(e,n){return ue(e,53,n)},e.createLogicalOr=function(e,n){return ue(e,54,n)},e.createLogicalNot=function(e){return le(51,e)},e.createVoidZero=function(){return oe(i(0))},e.createExportDefault=function(e){return nn(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return tn(void 0,void 0,rn([an(void 0,e)]))},e.disposeEmitNodes=function(n){var t=(n=e.getSourceFileOfNode(e.getParseTreeNode(n)))&&n.emitNode,r=t&&t.annotatedNodes;if(r)for(var a=0,i=r;a<i.length;a++)i[a].emitNode=void 0},e.getOrCreateEmitNode=Dn,e.setTextRange=On,e.setEmitFlags=Rn,e.addEmitFlags=function(e,n){var t=Dn(e);return t.flags=t.flags|n,e},e.getSourceMapRange=function(e){var n=e.emitNode;return n&&n.sourceMapRange||e},e.setSourceMapRange=function(e,n){return Dn(e).sourceMapRange=n,e},e.createSourceMapSource=function(n,t,r){return new(c||(c=e.objectAllocator.getSourceMapSourceConstructor()))(n,t,r)},e.getTokenSourceMapRange=function(e,n){var t=e.emitNode,r=t&&t.tokenSourceMapRanges;return r&&r[n]},e.setTokenSourceMapRange=function(e,n,t){var r=Dn(e);return(r.tokenSourceMapRanges||(r.tokenSourceMapRanges=[]))[n]=t,e},e.getStartsOnNewLine=function(e){var n=e.emitNode;return n&&n.startsOnNewLine},e.setStartsOnNewLine=function(e,n){return Dn(e).startsOnNewLine=n,e},e.getCommentRange=function(e){var n=e.emitNode;return n&&n.commentRange||e},e.setCommentRange=function(e,n){return Dn(e).commentRange=n,e},e.getSyntheticLeadingComments=In,e.setSyntheticLeadingComments=Nn,e.addSyntheticLeadingComment=function(n,t,r,a){return Nn(n,e.append(In(n),{kind:t,pos:-1,end:-1,hasTrailingNewLine:a,text:r}))},e.getSyntheticTrailingComments=wn,e.setSyntheticTrailingComments=Pn,e.addSyntheticTrailingComment=function(n,t,r,a){return Pn(n,e.append(wn(n),{kind:t,pos:-1,end:-1,hasTrailingNewLine:a,text:r}))},e.getConstantValue=function(e){var n=e.emitNode;return n&&n.constantValue},e.setConstantValue=function(e,n){return Dn(e).constantValue=n,e},e.addEmitHelper=function(n,t){var r=Dn(n);return r.helpers=e.append(r.helpers,t),n},e.addEmitHelpers=function(n,t){if(e.some(t))for(var r=Dn(n),a=0,i=t;a<i.length;a++){var o=i[a];r.helpers=e.appendIfUnique(r.helpers,o)}return n},e.removeEmitHelper=function(n,t){var r=n.emitNode;if(r){var a=r.helpers;if(a)return e.orderedRemoveItem(a,t)}return!1},e.getEmitHelpers=function(e){var n=e.emitNode;return n&&n.helpers},e.moveEmitHelpers=function(n,t,r){var a=n.emitNode,i=a&&a.helpers;if(e.some(i)){for(var o=Dn(t),s=0,l=0;l<i.length;l++){var c=i[l];r(c)?(s++,o.helpers=e.appendIfUnique(o.helpers,c)):s>0&&(i[l-s]=c)}s>0&&(i.length-=s)}},e.compareEmitHelpers=function(n,t){return n===t?0:n.priority===t.priority?0:void 0===n.priority?1:void 0===t.priority?-1:e.compareValues(n.priority,t.priority)},e.setOriginalNode=Fn}(u||(u={})),function(e){function n(n,t,r){if(e.isComputedPropertyName(t))return e.setTextRange(e.createElementAccess(n,t.expression),r);var a=e.setTextRange(e.isIdentifier(t)?e.createPropertyAccess(n,t):e.createElementAccess(n,t),t);return e.getOrCreateEmitNode(a).flags|=64,a}function t(n,t){var r=e.createIdentifier(n||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(t),r}function r(n,r,a){return n?function n(r,a){if(e.isQualifiedName(r)){var i=n(r.left,a),o=e.createIdentifier(e.idText(r.right));return o.escapedText=r.right.escapedText,e.createPropertyAccess(i,o)}return t(e.idText(r),a)}(n,a):e.createPropertyAccess(t(r,a),"createElement")}function a(n){return e.setEmitFlags(e.createIdentifier(n),4098)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop},e.createTypeCheck=function(n,t){return"undefined"===t?e.createStrictEquality(n,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(n),e.createLiteral(t))},e.createMemberAccessForPropertyName=n,e.createFunctionCall=function(n,t,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(n,"call"),void 0,[t].concat(r)),a)},e.createFunctionApply=function(n,t,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(n,"apply"),void 0,[t,r]),a)},e.createArraySlice=function(n,t){var r=[];return void 0!==t&&r.push("number"==typeof t?e.createLiteral(t):t),e.createCall(e.createPropertyAccess(n,"slice"),void 0,r)},e.createArrayConcat=function(n,t){return e.createCall(e.createPropertyAccess(n,"concat"),void 0,t)},e.createMathPow=function(n,t,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[n,t]),r)},e.createExpressionForJsxElement=function(n,t,a,i,o,s,l){var c=[a];if(i&&c.push(i),o&&o.length>0)if(i||c.push(e.createNull()),o.length>1)for(var u=0,d=o;u<d.length;u++){var m=d[u];x(m),c.push(m)}else c.push(o[0]);return e.setTextRange(e.createCall(r(n,t,s),void 0,c),l)},e.createExpressionForJsxFragment=function(n,a,i,o,s){var l=[e.createPropertyAccess(t(a,o),"Fragment")];if(l.push(e.createNull()),i&&i.length>0)if(i.length>1)for(var c=0,u=i;c<u.length;c++){var d=u[c];x(d),l.push(d)}else l.push(i[0]);return e.setTextRange(e.createCall(r(n,a,o),void 0,l),s)},e.getHelperName=a;var i={name:"typescript:values",scoped:!1,text:'\n var __values = (this && this.__values) || function (o) {\n var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n if (m) return m.call(o);\n return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=function(n,t,r){return n.requestEmitHelper(i),e.setTextRange(e.createCall(a("__values"),void 0,[t]),r)};var o={name:"typescript: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 };\n '};e.createReadHelper=function(n,t,r,i){return n.requestEmitHelper(o),e.setTextRange(e.createCall(a("__read"),void 0,void 0!==r?[t,e.createLiteral(r)]:[t]),i)};var s={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};function l(n,t){var r=e.skipParentheses(n);switch(r.kind){case 71:return t;case 99:case 8:case 9:return!1;case 181:return 0!==r.elements.length;case 182:return r.properties.length>0;default:return!0}}function c(n){return e.isIdentifier(n)?e.createLiteral(n):e.isComputedPropertyName(n)?e.getMutableClone(n.expression):e.getMutableClone(n)}function u(e,n,t){return d(e,n,t,8192)}function d(n,t,r,a){var i=e.getNameOfDeclaration(n);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.getMutableClone(i);return a|=e.getEmitFlags(i),r||(a|=48),t||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(n)}function m(n,t,r,a){var i,o=e.createPropertyAccess(n,e.nodeIsSynthesized(t)?t:e.getSynthesizedClone(t));return e.setTextRange(o,t),a||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}function p(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function f(n,t,r){e.Debug.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=t.length;i<o;){var s=t[i];if(!e.isPrologueDirective(s))break;p(s)&&(a=!0),n.push(s),i++}return r&&!a&&n.push(x(e.createStatement(e.createLiteral("use strict")))),i}function g(n,t,r,a){for(var i=t.length;r<i;){var o=t[r];if(!(1048576&e.getEmitFlags(o)))break;e.append(n,a?e.visitNode(o,a,e.isStatement):o),r++}return r}function v(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isLiteralKind(n.kind))return n.kind;if(198===n.kind&&37===n.operatorToken.kind){if(void 0!==n.cachedLiteralKind)return n.cachedLiteralKind;var t=v(n.left),r=e.isLiteralKind(t)&&t===v(n.right)?t:0;return n.cachedLiteralKind=r,r}return 0}function _(n){var t=e.skipPartiallyEmittedExpressions(n);return e.isLeftHandSideExpression(t)&&(186!==t.kind||t.arguments)?n:e.setTextRange(e.createParen(n),n)}function y(n){var t=e.skipPartiallyEmittedExpressions(n);return e.getExpressionPrecedence(t)>e.getOperatorPrecedence(198,26)?n:e.setTextRange(e.createParen(n),n)}function h(n){return 170===n.kind?e.createParenthesizedType(n):n}function b(n){switch(n.kind){case 168:case 169:case 162:case 163:return e.createParenthesizedType(n)}return h(n)}function E(e,n){for(;;){switch(e.kind){case 197:e=e.operand;continue;case 198:e=e.left;continue;case 199:e=e.condition;continue;case 185:if(n)return e;case 184:case 183:case 295:e=e.expression;continue}return e}}function T(e,n){switch(void 0===n&&(n=7),e.kind){case 189:return 0!=(1&n);case 188:case 206:case 207:return 0!=(2&n);case 295:return 0!=(4&n)}return!1}function S(n,t){var r;void 0===t&&(t=7);do{r=n,1&t&&(n=e.skipParentheses(n)),2&t&&(n=L(n)),4&t&&(n=e.skipPartiallyEmittedExpressions(n))}while(r!==n);return n}function L(n){for(;e.isAssertionExpression(n)||207===n.kind;)n=n.expression;return n}function A(n,t,r){return void 0===r&&(r=7),n&&T(n,r)&&(!(189===(a=n).kind&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(n,t){switch(n.kind){case 189:return e.updateParen(n,t);case 188:return e.updateTypeAssertion(n,n.type,t);case 206:return e.updateAsExpression(n,t,n.type);case 207:return e.updateNonNullExpression(n,t);case 295:return e.updatePartiallyEmittedExpression(n,t)}}(n,A(n.expression,t)):t;var a}function x(n){return e.setStartsOnNewLine(n,!0)}function C(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function k(n,t,r){if(n)return n.moduleName?e.createLiteral(n.moduleName):n.isDeclarationFile||!r.out&&!r.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(t,n.fileName))}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 268:return M(n.initializer);case 269:return n.name;case 270:return M(n.expression)}}function D(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(n.name),n),n);var t=w(n.name);return n.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(t,n.initializer),n),n):t}return e.Debug.assertNode(n,e.isExpression),n}function O(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(n.name),n),n);if(n.propertyName){var t=w(n.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(n.propertyName,n.initializer?e.createAssignment(t,n.initializer):t),n),n)}return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(n.name,n.initializer),n),n)}return e.Debug.assertNode(n,e.isObjectLiteralElementLike),n}function R(e){switch(e.kind){case 179:case 181:return N(e);case 178:case 182:return I(e)}}function I(n){return e.isObjectBindingPattern(n)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(n.elements,O)),n),n):(e.Debug.assertNode(n,e.isObjectLiteralExpression),n)}function N(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(n.elements,D)),n),n):(e.Debug.assertNode(n,e.isArrayLiteralExpression),n)}function w(n){return e.isBindingPattern(n)?R(n):(e.Debug.assertNode(n,e.isExpression),n)}e.createSpreadHelper=function(n,t,r){return n.requestEmitHelper(o),n.requestEmitHelper(s),e.setTextRange(e.createCall(a("__spread"),void 0,t),r)},e.createForOfBindingStatement=function(n,t){if(e.isVariableDeclarationList(n)){var r=e.firstOrUndefined(n.declarations),a=e.updateVariableDeclaration(r,r.name,void 0,t);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[a])),n)}var i=e.setTextRange(e.createAssignment(n,t),n);return e.setTextRange(e.createStatement(i),n)},e.insertLeadingStatement=function(n,t){return e.isBlock(n)?e.updateBlock(n,e.setTextRange(e.createNodeArray([t].concat(n.statements)),n.statements)):e.createBlock(e.createNodeArray([n,t]),!0)},e.restoreEnclosingLabel=function n(t,r,a){if(!r)return t;var i=e.updateLabel(r,r.label,226===r.statement.kind?n(t,r.statement):t);return a&&a(r),i},e.createCallBinding=function(n,t,r,a){var i,o,s=S(n,7);if(e.isSuperProperty(s))i=e.createThis(),o=s;else if(97===s.kind)i=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))i=e.createVoidZero(),o=_(s);else switch(s.kind){case 183:l(s.expression,a)?(i=e.createTempVariable(t),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s);break;case 184:l(s.expression,a)?(i=e.createTempVariable(t),o=e.createElementAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s);break;default:i=e.createVoidZero(),o=_(n)}return{target:o,thisArg:i}},e.inlineExpressions=function(n){return n.length>10?e.createCommaList(n):e.reduceLeft(n,e.createComma)},e.createExpressionFromEntityName=function n(t){if(e.isQualifiedName(t)){var r=n(t.left),a=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,a),t)}return e.getMutableClone(t)},e.createExpressionForPropertyName=c,e.createExpressionForObjectLiteralElementLike=function(t,r,a){switch(r.kind){case 155:case 156:return function(n,t,r,a){var i=e.getAllAccessorDeclarations(n,t),o=i.firstAccessor,s=i.getAccessor,l=i.setAccessor;if(t===o){var u=[];if(s){var d=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(d,s),e.setOriginalNode(d,s);var m=e.createPropertyAssignment("get",d);u.push(m)}if(l){var p=e.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body);e.setTextRange(p,l),e.setOriginalNode(p,l);var f=e.createPropertyAssignment("set",p);u.push(f)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var g=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,c(t.name),e.createObjectLiteral(u,a)]),o);return e.aggregateTransformFlags(g)}}(t.properties,r,a,t.multiLine);case 268:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}(r,a);case 269:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}(r,a);case 153:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}(r,a)}},e.getInternalName=function(e,n,t){return d(e,n,t,49152)},e.isInternalName=function(n){return 0!=(32768&e.getEmitFlags(n))},e.getLocalName=function(e,n,t){return d(e,n,t,16384)},e.isLocalName=function(n){return 0!=(16384&e.getEmitFlags(n))},e.getExportName=u,e.isExportName=function(n){return 0!=(8192&e.getEmitFlags(n))},e.getDeclarationName=function(e,n,t){return d(e,n,t)},e.getExternalModuleOrNamespaceExportName=function(n,t,r,a){return n&&e.hasModifier(t,1)?m(n,d(t),r,a):u(t,r,a)},e.getNamespaceMemberName=m,e.convertToFunctionBody=function(n,t){return e.isBlock(n)?n:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(n),n)],t),n)},e.convertFunctionDeclarationToExpression=function(n){e.Debug.assert(!!n.body);var t=e.createFunctionExpression(n.modifiers,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);return e.setOriginalNode(t,n),e.setTextRange(t,n),e.getStartsOnNewLine(n)&&e.setStartsOnNewLine(t,!0),e.aggregateTransformFlags(t),t},e.addPrologue=function(e,n,t,r){return g(e,n,f(e,n,t),r)},e.addStandardPrologue=f,e.addCustomPrologue=g,e.startsWithUseStrict=function(n){var t=e.firstOrUndefined(n);return void 0!==t&&e.isPrologueDirective(t)&&p(t)},e.ensureUseStrict=function(n){for(var t=!1,r=0,a=n;r<a.length;r++){var i=a[r];if(!e.isPrologueDirective(i))break;if(p(i)){t=!0;break}}return t?n:e.setTextRange(e.createNodeArray([x(e.createStatement(e.createLiteral("use strict")))].concat(n)),n)},e.parenthesizeBinaryOperand=function(n,t,r,a){return 189===e.skipPartiallyEmittedExpressions(t).kind?t:function(n,t,r,a){var i=e.getOperatorPrecedence(198,n),o=e.getOperatorAssociativity(198,n),s=e.skipPartiallyEmittedExpressions(t),l=e.getExpressionPrecedence(s);switch(e.compareValues(l,i)){case-1:return!(!r&&1===o&&201===t.kind);case 1:return!1;case 0:if(r)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===n){if(function(e){return 39===e||49===e||48===e||50===e}(n))return!1;if(37===n){var c=a?v(a):0;if(e.isLiteralKind(c)&&c===v(s))return!1}}var u=e.getExpressionAssociativity(s);return 0===u}}(n,t,r,a)?e.createParen(t):t},e.parenthesizeForConditionalHead=function(n){var t=e.getOperatorPrecedence(199,55),r=e.skipPartiallyEmittedExpressions(n),a=e.getExpressionPrecedence(r);return-1===e.compareValues(a,t)?e.createParen(n):n},e.parenthesizeSubexpressionOfConditionalExpression=function(n){var t=e.skipPartiallyEmittedExpressions(n);return 198===t.kind&&26===t.operatorToken.kind||296===t.kind?e.createParen(n):n},e.parenthesizeDefaultExpression=function(n){var t=e.skipPartiallyEmittedExpressions(n);return 203===t.kind||190===t.kind||296===t.kind||e.isBinaryExpression(t)&&26===t.operatorToken.kind?e.createParen(n):n},e.parenthesizeForNew=function(n){var t=E(n,!0);switch(t.kind){case 185:return e.createParen(n);case 186:return t.arguments?n:e.createParen(n)}return _(n)},e.parenthesizeForAccess=_,e.parenthesizePostfixOperand=function(n){return e.isLeftHandSideExpression(n)?n:e.setTextRange(e.createParen(n),n)},e.parenthesizePrefixOperand=function(n){return e.isUnaryExpression(n)?n:e.setTextRange(e.createParen(n),n)},e.parenthesizeListElements=function(n){for(var t,r=0;r<n.length;r++){var a=y(n[r]);void 0===t&&a===n[r]||(void 0===t&&(t=n.slice(0,r)),t.push(a))}return void 0!==t?e.setTextRange(e.createNodeArray(t,n.hasTrailingComma),n):n},e.parenthesizeExpressionForList=y,e.parenthesizeExpressionForExpressionStatement=function(n){var t=e.skipPartiallyEmittedExpressions(n);if(e.isCallExpression(t)){var r=t.expression,a=e.skipPartiallyEmittedExpressions(r).kind;if(190===a||191===a){var i=e.getMutableClone(t);return i.expression=e.setTextRange(e.createParen(r),r),A(n,i,4)}}var o=E(t,!1).kind;return 182===o||190===o?e.setTextRange(e.createParen(n),n):n},e.parenthesizeConditionalTypeMember=h,e.parenthesizeElementTypeMember=b,e.parenthesizeArrayTypeMember=function(n){switch(n.kind){case 164:case 174:return e.createParenthesizedType(n)}return b(n)},e.parenthesizeElementTypeMembers=function(n){return e.createNodeArray(e.sameMap(n,b))},e.parenthesizeTypeParameters=function(n){if(e.some(n)){for(var t=[],r=0;r<n.length;++r){var a=n[r];t.push(0===r&&e.isFunctionOrConstructorTypeNode(a)&&a.typeParameters?e.createParenthesizedType(a):a)}return e.createNodeArray(t)}},e.parenthesizeConciseBody=function(n){return e.isBlock(n)||182!==E(n,!1).kind?n:e.setTextRange(e.createParen(n),n)},function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=T,e.skipOuterExpressions=S,e.skipAssertions=L,e.recreateOuterExpressions=A,e.startOnNewLine=x,e.getExternalHelpersModuleName=C,e.getOrCreateExternalHelpersModuleNameIfNeeded=function(n,t,r,a){if(t.importHelpers&&e.isEffectiveExternalModule(n,t)){var i=C(n);if(i)return i;var o=e.getEmitModuleKind(t),s=(r||t.esModuleInterop&&a)&&o!==e.ModuleKind.System&&o!==e.ModuleKind.ES2015&&o!==e.ModuleKind.ESNext;if(!s){var l=e.getEmitHelpers(n);if(l)for(var c=0,u=l;c<u.length;c++)if(!u[c].scoped){s=!0;break}}if(s){var d=e.getOriginalNode(n,e.isSourceFile),m=e.getOrCreateEmitNode(d);return m.externalHelpersModuleName||(m.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}},e.getLocalNameForExternalImport=function(n,t){var r=e.getNamespaceDeclarationNode(n);if(r&&!e.isDefaultImport(n)){var a=r.name;return e.isGeneratedIdentifier(a)?a:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(t,a)||e.idText(a))}return 242===n.kind&&n.importClause?e.getGeneratedNameForNode(n):248===n.kind&&n.moduleSpecifier?e.getGeneratedNameForNode(n):void 0},e.getExternalModuleNameLiteral=function(n,t,r,a,i){var o=e.getExternalModuleName(n);if(9===o.kind)return function(e,n,t,r){return k(t.getExternalModuleFileFromDeclaration(e),n,r)}(n,r,a,i)||function(n,t){var r=t.renamedDependencies&&t.renamedDependencies.get(n.text);return r&&e.createLiteral(r)}(o,t)||e.getSynthesizedClone(o)},e.tryGetModuleNameFromFile=k,e.getInitializerOfBindingOrAssignmentElement=function n(t){return e.isDeclarationBindingElement(t)?t.initializer:e.isPropertyAssignment(t)?e.isAssignmentExpression(t.initializer,!0)?t.initializer.right:void 0: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 148:case 180:return e.dotDotDotToken;case 202:case 270:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(n){switch(n.kind){case 180:if(n.propertyName){var t=n.propertyName;return e.isComputedPropertyName(t)&&e.isStringOrNumericLiteral(t.expression)?t.expression:t}break;case 268:if(n.name)return t=n.name,e.isComputedPropertyName(t)&&e.isStringOrNumericLiteral(t.expression)?t.expression:t;break;case 270:return n.name}var r=M(n);if(r&&e.isPropertyName(r))return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r;e.Debug.fail("Invalid property name for binding element.")},e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 178:case 179:case 181:return e.elements;case 182:return e.properties}},e.convertToArrayAssignmentElement=D,e.convertToObjectAssignmentElement=O,e.convertToAssignmentPattern=R,e.convertToObjectAssignmentPattern=I,e.convertToArrayAssignmentPattern=N,e.convertToAssignmentElementTarget=w}(u||(u={})),function(e){var n=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function t(n,t,r,a){if(void 0===n||void 0===t)return n;e.aggregateTransformFlags(n);var i,o=t(n);return o===n?n:void 0!==o?(i=e.isArray(o)?(a||function(n){return e.Debug.assert(n.length<=1,"Too many nodes written to output."),e.singleOrUndefined(n)})(o):o,e.Debug.assertNode(i,r),e.aggregateTransformFlags(i),i):void 0}function r(n,t,r,a,i){if(void 0===n||void 0===t)return n;var o,s=n.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>s-a)&&(i=s-a),(a>0||i<s)&&(o=e.createNodeArray([],n.hasTrailingComma&&a+i===s));for(var l=0;l<i;l++){var c=n[l+a];e.aggregateTransformFlags(c);var u=void 0!==c?t(c):void 0;if((void 0!==o||void 0===u||u!==c)&&(void 0===o&&(o=e.createNodeArray(n.slice(0,l),n.hasTrailingComma),e.setTextRange(o,n)),u))if(e.isArray(u))for(var d=0,m=u;d<m.length;d++){var p=m[d];e.Debug.assertNode(p,r),e.aggregateTransformFlags(p),o.push(p)}else e.Debug.assertNode(u,r),e.aggregateTransformFlags(u),o.push(u)}return o||n}function a(n,t,a,i,o){a.startLexicalEnvironment(),n=r(n,t,e.isStatement,i),o&&!e.startsWithUseStrict(n)&&(n=e.setTextRange(e.createNodeArray([e.createStatement(e.createLiteral("use strict"))].concat(n)),n));var s=a.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(n,s)),n)}function i(n,t,a,i){void 0===i&&(i=r),a.startLexicalEnvironment();var o=i(n,t,e.isParameterDeclaration);return a.suspendLexicalEnvironment(),o}function o(n,r,a){a.resumeLexicalEnvironment();var i=t(n,r,e.isConciseBody),o=a.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(i),l=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,l)}return i}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=a,e.visitParameterList=i,e.visitFunctionBody=o,e.visitEachChild=function(s,l,c,u,d){if(void 0===u&&(u=r),void 0!==s){var m=s.kind;if(m>0&&m<=144||173===m)return s;switch(m){case 71:return e.updateIdentifier(s,u(s.typeArguments,l,n));case 145:return e.updateQualifiedName(s,t(s.left,l,e.isEntityName),t(s.right,l,e.isIdentifier));case 146:return e.updateComputedPropertyName(s,t(s.expression,l,e.isExpression));case 147:return e.updateTypeParameterDeclaration(s,t(s.name,l,e.isIdentifier),t(s.constraint,l,e.isTypeNode),t(s.default,l,e.isTypeNode));case 148:return e.updateParameter(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.dotDotDotToken,d,e.isToken),t(s.name,l,e.isBindingName),t(s.questionToken,d,e.isToken),t(s.type,l,e.isTypeNode),t(s.initializer,l,e.isExpression));case 149:return e.updateDecorator(s,t(s.expression,l,e.isExpression));case 150:return e.updatePropertySignature(s,u(s.modifiers,l,e.isToken),t(s.name,l,e.isPropertyName),t(s.questionToken,d,e.isToken),t(s.type,l,e.isTypeNode),t(s.initializer,l,e.isExpression));case 151:return e.updateProperty(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isPropertyName),t(s.questionToken,d,e.isToken),t(s.type,l,e.isTypeNode),t(s.initializer,l,e.isExpression));case 152:return e.updateMethodSignature(s,u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.parameters,l,e.isParameterDeclaration),t(s.type,l,e.isTypeNode),t(s.name,l,e.isPropertyName),t(s.questionToken,d,e.isToken));case 153:return e.updateMethod(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.asteriskToken,d,e.isToken),t(s.name,l,e.isPropertyName),t(s.questionToken,d,e.isToken),u(s.typeParameters,l,e.isTypeParameterDeclaration),i(s.parameters,l,c,u),t(s.type,l,e.isTypeNode),o(s.body,l,c));case 154:return e.updateConstructor(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),i(s.parameters,l,c,u),o(s.body,l,c));case 155:return e.updateGetAccessor(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isPropertyName),i(s.parameters,l,c,u),t(s.type,l,e.isTypeNode),o(s.body,l,c));case 156:return e.updateSetAccessor(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isPropertyName),i(s.parameters,l,c,u),o(s.body,l,c));case 157:return e.updateCallSignature(s,u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.parameters,l,e.isParameterDeclaration),t(s.type,l,e.isTypeNode));case 158:return e.updateConstructSignature(s,u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.parameters,l,e.isParameterDeclaration),t(s.type,l,e.isTypeNode));case 159:return e.updateIndexSignature(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),u(s.parameters,l,e.isParameterDeclaration),t(s.type,l,e.isTypeNode));case 160:return e.updateTypePredicateNode(s,t(s.parameterName,l),t(s.type,l,e.isTypeNode));case 161:return e.updateTypeReferenceNode(s,t(s.typeName,l,e.isEntityName),u(s.typeArguments,l,e.isTypeNode));case 162:return e.updateFunctionTypeNode(s,u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.parameters,l,e.isParameterDeclaration),t(s.type,l,e.isTypeNode));case 163:return e.updateConstructorTypeNode(s,u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.parameters,l,e.isParameterDeclaration),t(s.type,l,e.isTypeNode));case 164:return e.updateTypeQueryNode(s,t(s.exprName,l,e.isEntityName));case 165:return e.updateTypeLiteralNode(s,u(s.members,l,e.isTypeElement));case 166:return e.updateArrayTypeNode(s,t(s.elementType,l,e.isTypeNode));case 167:return e.updateTypleTypeNode(s,u(s.elementTypes,l,e.isTypeNode));case 168:return e.updateUnionTypeNode(s,u(s.types,l,e.isTypeNode));case 169:return e.updateIntersectionTypeNode(s,u(s.types,l,e.isTypeNode));case 170:return e.updateConditionalTypeNode(s,t(s.checkType,l,e.isTypeNode),t(s.extendsType,l,e.isTypeNode),t(s.trueType,l,e.isTypeNode),t(s.falseType,l,e.isTypeNode));case 171:return e.updateInferTypeNode(s,t(s.typeParameter,l,e.isTypeParameterDeclaration));case 172:return e.updateParenthesizedType(s,t(s.type,l,e.isTypeNode));case 174:return e.updateTypeOperatorNode(s,t(s.type,l,e.isTypeNode));case 175:return e.updateIndexedAccessTypeNode(s,t(s.objectType,l,e.isTypeNode),t(s.indexType,l,e.isTypeNode));case 176:return e.updateMappedTypeNode(s,t(s.readonlyToken,d,e.isToken),t(s.typeParameter,l,e.isTypeParameterDeclaration),t(s.questionToken,d,e.isToken),t(s.type,l,e.isTypeNode));case 177:return e.updateLiteralTypeNode(s,t(s.literal,l,e.isExpression));case 178:return e.updateObjectBindingPattern(s,u(s.elements,l,e.isBindingElement));case 179:return e.updateArrayBindingPattern(s,u(s.elements,l,e.isArrayBindingElement));case 180:return e.updateBindingElement(s,t(s.dotDotDotToken,d,e.isToken),t(s.propertyName,l,e.isPropertyName),t(s.name,l,e.isBindingName),t(s.initializer,l,e.isExpression));case 181:return e.updateArrayLiteral(s,u(s.elements,l,e.isExpression));case 182:return e.updateObjectLiteral(s,u(s.properties,l,e.isObjectLiteralElementLike));case 183:return e.updatePropertyAccess(s,t(s.expression,l,e.isExpression),t(s.name,l,e.isIdentifier));case 184:return e.updateElementAccess(s,t(s.expression,l,e.isExpression),t(s.argumentExpression,l,e.isExpression));case 185:return e.updateCall(s,t(s.expression,l,e.isExpression),u(s.typeArguments,l,e.isTypeNode),u(s.arguments,l,e.isExpression));case 186:return e.updateNew(s,t(s.expression,l,e.isExpression),u(s.typeArguments,l,e.isTypeNode),u(s.arguments,l,e.isExpression));case 187:return e.updateTaggedTemplate(s,t(s.tag,l,e.isExpression),t(s.template,l,e.isTemplateLiteral));case 188:return e.updateTypeAssertion(s,t(s.type,l,e.isTypeNode),t(s.expression,l,e.isExpression));case 189:return e.updateParen(s,t(s.expression,l,e.isExpression));case 190:return e.updateFunctionExpression(s,u(s.modifiers,l,e.isModifier),t(s.asteriskToken,d,e.isToken),t(s.name,l,e.isIdentifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),i(s.parameters,l,c,u),t(s.type,l,e.isTypeNode),o(s.body,l,c));case 191:return e.updateArrowFunction(s,u(s.modifiers,l,e.isModifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),i(s.parameters,l,c,u),t(s.type,l,e.isTypeNode),t(s.equalsGreaterThanToken,l,e.isToken),o(s.body,l,c));case 192:return e.updateDelete(s,t(s.expression,l,e.isExpression));case 193:return e.updateTypeOf(s,t(s.expression,l,e.isExpression));case 194:return e.updateVoid(s,t(s.expression,l,e.isExpression));case 195:return e.updateAwait(s,t(s.expression,l,e.isExpression));case 196:return e.updatePrefix(s,t(s.operand,l,e.isExpression));case 197:return e.updatePostfix(s,t(s.operand,l,e.isExpression));case 198:return e.updateBinary(s,t(s.left,l,e.isExpression),t(s.right,l,e.isExpression),t(s.operatorToken,l,e.isToken));case 199:return e.updateConditional(s,t(s.condition,l,e.isExpression),t(s.questionToken,l,e.isToken),t(s.whenTrue,l,e.isExpression),t(s.colonToken,l,e.isToken),t(s.whenFalse,l,e.isExpression));case 200:return e.updateTemplateExpression(s,t(s.head,l,e.isTemplateHead),u(s.templateSpans,l,e.isTemplateSpan));case 201:return e.updateYield(s,t(s.asteriskToken,d,e.isToken),t(s.expression,l,e.isExpression));case 202:return e.updateSpread(s,t(s.expression,l,e.isExpression));case 203:return e.updateClassExpression(s,u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.heritageClauses,l,e.isHeritageClause),u(s.members,l,e.isClassElement));case 205:return e.updateExpressionWithTypeArguments(s,u(s.typeArguments,l,e.isTypeNode),t(s.expression,l,e.isExpression));case 206:return e.updateAsExpression(s,t(s.expression,l,e.isExpression),t(s.type,l,e.isTypeNode));case 207:return e.updateNonNullExpression(s,t(s.expression,l,e.isExpression));case 208:return e.updateMetaProperty(s,t(s.name,l,e.isIdentifier));case 209:return e.updateTemplateSpan(s,t(s.expression,l,e.isExpression),t(s.literal,l,e.isTemplateMiddleOrTemplateTail));case 211:return e.updateBlock(s,u(s.statements,l,e.isStatement));case 212:return e.updateVariableStatement(s,u(s.modifiers,l,e.isModifier),t(s.declarationList,l,e.isVariableDeclarationList));case 214:return e.updateStatement(s,t(s.expression,l,e.isExpression));case 215:return e.updateIf(s,t(s.expression,l,e.isExpression),t(s.thenStatement,l,e.isStatement,e.liftToBlock),t(s.elseStatement,l,e.isStatement,e.liftToBlock));case 216:return e.updateDo(s,t(s.statement,l,e.isStatement,e.liftToBlock),t(s.expression,l,e.isExpression));case 217:return e.updateWhile(s,t(s.expression,l,e.isExpression),t(s.statement,l,e.isStatement,e.liftToBlock));case 218:return e.updateFor(s,t(s.initializer,l,e.isForInitializer),t(s.condition,l,e.isExpression),t(s.incrementor,l,e.isExpression),t(s.statement,l,e.isStatement,e.liftToBlock));case 219:return e.updateForIn(s,t(s.initializer,l,e.isForInitializer),t(s.expression,l,e.isExpression),t(s.statement,l,e.isStatement,e.liftToBlock));case 220:return e.updateForOf(s,t(s.awaitModifier,l,e.isToken),t(s.initializer,l,e.isForInitializer),t(s.expression,l,e.isExpression),t(s.statement,l,e.isStatement,e.liftToBlock));case 221:return e.updateContinue(s,t(s.label,l,e.isIdentifier));case 222:return e.updateBreak(s,t(s.label,l,e.isIdentifier));case 223:return e.updateReturn(s,t(s.expression,l,e.isExpression));case 224:return e.updateWith(s,t(s.expression,l,e.isExpression),t(s.statement,l,e.isStatement,e.liftToBlock));case 225:return e.updateSwitch(s,t(s.expression,l,e.isExpression),t(s.caseBlock,l,e.isCaseBlock));case 226:return e.updateLabel(s,t(s.label,l,e.isIdentifier),t(s.statement,l,e.isStatement,e.liftToBlock));case 227:return e.updateThrow(s,t(s.expression,l,e.isExpression));case 228:return e.updateTry(s,t(s.tryBlock,l,e.isBlock),t(s.catchClause,l,e.isCatchClause),t(s.finallyBlock,l,e.isBlock));case 230:return e.updateVariableDeclaration(s,t(s.name,l,e.isBindingName),t(s.type,l,e.isTypeNode),t(s.initializer,l,e.isExpression));case 231:return e.updateVariableDeclarationList(s,u(s.declarations,l,e.isVariableDeclaration));case 232:return e.updateFunctionDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.asteriskToken,d,e.isToken),t(s.name,l,e.isIdentifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),i(s.parameters,l,c,u),t(s.type,l,e.isTypeNode),o(s.body,l,c));case 233:return e.updateClassDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.heritageClauses,l,e.isHeritageClause),u(s.members,l,e.isClassElement));case 234:return e.updateInterfaceDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),u(s.heritageClauses,l,e.isHeritageClause),u(s.members,l,e.isTypeElement));case 235:return e.updateTypeAliasDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),u(s.typeParameters,l,e.isTypeParameterDeclaration),t(s.type,l,e.isTypeNode));case 236:return e.updateEnumDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),u(s.members,l,e.isEnumMember));case 237:return e.updateModuleDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),t(s.body,l,e.isModuleBody));case 238:return e.updateModuleBlock(s,u(s.statements,l,e.isStatement));case 239:return e.updateCaseBlock(s,u(s.clauses,l,e.isCaseOrDefaultClause));case 240:return e.updateNamespaceExportDeclaration(s,t(s.name,l,e.isIdentifier));case 241:return e.updateImportEqualsDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.name,l,e.isIdentifier),t(s.moduleReference,l,e.isModuleReference));case 242:return e.updateImportDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.importClause,l,e.isImportClause),t(s.moduleSpecifier,l,e.isExpression));case 243:return e.updateImportClause(s,t(s.name,l,e.isIdentifier),t(s.namedBindings,l,e.isNamedImportBindings));case 244:return e.updateNamespaceImport(s,t(s.name,l,e.isIdentifier));case 245:return e.updateNamedImports(s,u(s.elements,l,e.isImportSpecifier));case 246:return e.updateImportSpecifier(s,t(s.propertyName,l,e.isIdentifier),t(s.name,l,e.isIdentifier));case 247:return e.updateExportAssignment(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.expression,l,e.isExpression));case 248:return e.updateExportDeclaration(s,u(s.decorators,l,e.isDecorator),u(s.modifiers,l,e.isModifier),t(s.exportClause,l,e.isNamedExports),t(s.moduleSpecifier,l,e.isExpression));case 249:return e.updateNamedExports(s,u(s.elements,l,e.isExportSpecifier));case 250:return e.updateExportSpecifier(s,t(s.propertyName,l,e.isIdentifier),t(s.name,l,e.isIdentifier));case 252:return e.updateExternalModuleReference(s,t(s.expression,l,e.isExpression));case 253:return e.updateJsxElement(s,t(s.openingElement,l,e.isJsxOpeningElement),u(s.children,l,e.isJsxChild),t(s.closingElement,l,e.isJsxClosingElement));case 254:return e.updateJsxSelfClosingElement(s,t(s.tagName,l,e.isJsxTagNameExpression),t(s.attributes,l,e.isJsxAttributes));case 255:return e.updateJsxOpeningElement(s,t(s.tagName,l,e.isJsxTagNameExpression),t(s.attributes,l,e.isJsxAttributes));case 256:return e.updateJsxClosingElement(s,t(s.tagName,l,e.isJsxTagNameExpression));case 257:return e.updateJsxFragment(s,t(s.openingFragment,l,e.isJsxOpeningFragment),u(s.children,l,e.isJsxChild),t(s.closingFragment,l,e.isJsxClosingFragment));case 260:return e.updateJsxAttribute(s,t(s.name,l,e.isIdentifier),t(s.initializer,l,e.isStringLiteralOrJsxExpression));case 261:return e.updateJsxAttributes(s,u(s.properties,l,e.isJsxAttributeLike));case 262:return e.updateJsxSpreadAttribute(s,t(s.expression,l,e.isExpression));case 263:return e.updateJsxExpression(s,t(s.expression,l,e.isExpression));case 264:return e.updateCaseClause(s,t(s.expression,l,e.isExpression),u(s.statements,l,e.isStatement));case 265:return e.updateDefaultClause(s,u(s.statements,l,e.isStatement));case 266:return e.updateHeritageClause(s,u(s.types,l,e.isExpressionWithTypeArguments));case 267:return e.updateCatchClause(s,t(s.variableDeclaration,l,e.isVariableDeclaration),t(s.block,l,e.isBlock));case 268:return e.updatePropertyAssignment(s,t(s.name,l,e.isPropertyName),t(s.initializer,l,e.isExpression));case 269:return e.updateShorthandPropertyAssignment(s,t(s.name,l,e.isIdentifier),t(s.objectAssignmentInitializer,l,e.isExpression));case 270:return e.updateSpreadAssignment(s,t(s.expression,l,e.isExpression));case 271:return e.updateEnumMember(s,t(s.name,l,e.isPropertyName),t(s.initializer,l,e.isExpression));case 272:return e.updateSourceFileNode(s,a(s.statements,l,c));case 295:return e.updatePartiallyEmittedExpression(s,t(s.expression,l,e.isExpression));case 296:return e.updateCommaList(s,u(s.elements,l,e.isExpression));default:return s}}}}(u||(u={})),function(e){function n(e,n,t){return e?n(t,e):t}function t(e,n,t){return e?n(t,e):t}function r(r,a,i,o){if(void 0===r)return a;var s=o?t:e.reduceLeft,l=o||i,c=r.kind;if(c>0&&c<=144)return a;if(c>=160&&c<=177)return a;var u=a;switch(r.kind){case 210:case 213:case 204:case 229:case 294:break;case 145:u=n(r.left,i,u),u=n(r.right,i,u);break;case 146:u=n(r.expression,i,u);break;case 148:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 149:u=n(r.expression,i,u);break;case 150:u=s(r.modifiers,l,u),u=n(r.name,i,u),u=n(r.questionToken,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 151:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 153:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.typeParameters,l,u),u=s(r.parameters,l,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 154:u=s(r.modifiers,l,u),u=s(r.parameters,l,u),u=n(r.body,i,u);break;case 155:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.parameters,l,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 156:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.parameters,l,u),u=n(r.body,i,u);break;case 178:case 179:u=s(r.elements,l,u);break;case 180:u=n(r.propertyName,i,u),u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 181:u=s(r.elements,l,u);break;case 182:u=s(r.properties,l,u);break;case 183:u=n(r.expression,i,u),u=n(r.name,i,u);break;case 184:u=n(r.expression,i,u),u=n(r.argumentExpression,i,u);break;case 185:case 186:u=n(r.expression,i,u),u=s(r.typeArguments,l,u),u=s(r.arguments,l,u);break;case 187:u=n(r.tag,i,u),u=n(r.template,i,u);break;case 188:u=n(r.type,i,u),u=n(r.expression,i,u);break;case 190:u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.typeParameters,l,u),u=s(r.parameters,l,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 191:u=s(r.modifiers,l,u),u=s(r.typeParameters,l,u),u=s(r.parameters,l,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 189:case 192:case 193:case 194:case 195:case 201:case 202:case 207:u=n(r.expression,i,u);break;case 196:case 197:u=n(r.operand,i,u);break;case 198:u=n(r.left,i,u),u=n(r.right,i,u);break;case 199:u=n(r.condition,i,u),u=n(r.whenTrue,i,u),u=n(r.whenFalse,i,u);break;case 200:u=n(r.head,i,u),u=s(r.templateSpans,l,u);break;case 203:u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.typeParameters,l,u),u=s(r.heritageClauses,l,u),u=s(r.members,l,u);break;case 205:u=n(r.expression,i,u),u=s(r.typeArguments,l,u);break;case 206:u=n(r.expression,i,u),u=n(r.type,i,u);break;case 209:u=n(r.expression,i,u),u=n(r.literal,i,u);break;case 211:u=s(r.statements,l,u);break;case 212:u=s(r.modifiers,l,u),u=n(r.declarationList,i,u);break;case 214:u=n(r.expression,i,u);break;case 215:u=n(r.expression,i,u),u=n(r.thenStatement,i,u),u=n(r.elseStatement,i,u);break;case 216:u=n(r.statement,i,u),u=n(r.expression,i,u);break;case 217:case 224:u=n(r.expression,i,u),u=n(r.statement,i,u);break;case 218:u=n(r.initializer,i,u),u=n(r.condition,i,u),u=n(r.incrementor,i,u),u=n(r.statement,i,u);break;case 219:case 220:u=n(r.initializer,i,u),u=n(r.expression,i,u),u=n(r.statement,i,u);break;case 223:case 227:u=n(r.expression,i,u);break;case 225:u=n(r.expression,i,u),u=n(r.caseBlock,i,u);break;case 226:u=n(r.label,i,u),u=n(r.statement,i,u);break;case 228:u=n(r.tryBlock,i,u),u=n(r.catchClause,i,u),u=n(r.finallyBlock,i,u);break;case 230:u=n(r.name,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 231:u=s(r.declarations,l,u);break;case 232:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.typeParameters,l,u),u=s(r.parameters,l,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 233:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.typeParameters,l,u),u=s(r.heritageClauses,l,u),u=s(r.members,l,u);break;case 236:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=s(r.members,l,u);break;case 237:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=n(r.body,i,u);break;case 238:u=s(r.statements,l,u);break;case 239:u=s(r.clauses,l,u);break;case 241:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.name,i,u),u=n(r.moduleReference,i,u);break;case 242:u=s(r.decorators,l,u),u=s(r.modifiers,l,u),u=n(r.importClause,i,u),u=n(r.moduleSpecifier,i,u);break;case 243:u=n(r.name,i,u),u=n(r.namedBindings,i,u);break;case 244:u=n(r.name,i,u);break;case 245:case 249:u=s(r.elements,l,u);break;case 246:case 250:u=n(r.propertyName,i,u),u=n(r.name,i,u);break;case 247:u=e.reduceLeft(r.decorators,i,u),u=e.reduceLeft(r.modifiers,i,u),u=n(r.expression,i,u);break;case 248:u=e.reduceLeft(r.decorators,i,u),u=e.reduceLeft(r.modifiers,i,u),u=n(r.exportClause,i,u),u=n(r.moduleSpecifier,i,u);break;case 252:u=n(r.expression,i,u);break;case 253:u=n(r.openingElement,i,u),u=e.reduceLeft(r.children,i,u),u=n(r.closingElement,i,u);break;case 257:u=n(r.openingFragment,i,u),u=e.reduceLeft(r.children,i,u),u=n(r.closingFragment,i,u);break;case 254:case 255:u=n(r.tagName,i,u),u=n(r.attributes,i,u);break;case 261:u=s(r.properties,l,u);break;case 256:u=n(r.tagName,i,u);break;case 260:u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 262:case 263:u=n(r.expression,i,u);break;case 264:u=n(r.expression,i,u);case 265:u=s(r.statements,l,u);break;case 266:u=s(r.types,l,u);break;case 267:u=n(r.variableDeclaration,i,u),u=n(r.block,i,u);break;case 268:u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 269:u=n(r.name,i,u),u=n(r.objectAssignmentInitializer,i,u);break;case 270:u=n(r.expression,i,u);break;case 271:u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 272:u=s(r.statements,l,u);break;case 295:u=n(r.expression,i,u);break;case 296:u=s(r.elements,l,u)}return u}function a(n){if(void 0===n)return 0;if(536870912&n.transformFlags)return n.transformFlags&~e.getTransformFlagsSubtreeExclusions(n.kind);var t=function(n){if(e.hasModifier(n,2)||e.isTypeNode(n)&&205!==n.kind)return 0;return r(n,0,i,o)}(n);return e.computeTransformFlagsForNode(n,t)}function i(e,n){return e|a(n)}function o(e,n){return e|function(e){if(void 0===e)return 0;for(var n=0,t=0,r=0,i=e;r<i.length;r++){var o=i[r];n|=a(o),t|=-536870913&o.transformFlags}return e.transformFlags=536870912|t,n}(n)}var s;e.reduceEachChild=r,e.mergeLexicalEnvironment=function(n,t){return e.some(t)?e.isNodeArray(n)?e.setTextRange(e.createNodeArray(e.concatenate(n,t)),n):e.addRange(n,t):n},e.liftToBlock=function(n){return s.assert(e.every(n,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(n)||e.createBlock(n)},e.aggregateTransformFlags=function(e){return a(e),e},function(n){var t=!1;n.failBadSyntaxKind=n.shouldAssert(1)?function(t,r){return n.fail((r||"Unexpected node.")+"\r\nNode "+e.formatSyntaxKind(t.kind)+" was unexpected.",n.failBadSyntaxKind)}:e.noop,n.assertEachNode=n.shouldAssert(1)?function(t,r,a){return n.assert(void 0===r||e.every(t,r),a||"Unexpected node.",function(){return"Node array did not pass test '"+n.getFunctionName(r)+"'."},n.assertEachNode)}:e.noop,n.assertNode=n.shouldAssert(1)?function(t,r,a){return n.assert(void 0===r||r(t),a||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(t.kind)+" did not pass test '"+n.getFunctionName(r)+"'."},n.assertNode)}:e.noop,n.assertOptionalNode=n.shouldAssert(1)?function(t,r,a){return n.assert(void 0===r||void 0===t||r(t),a||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(t.kind)+" did not pass test '"+n.getFunctionName(r)+"'."},n.assertOptionalNode)}:e.noop,n.assertOptionalToken=n.shouldAssert(1)?function(t,r,a){return n.assert(void 0===r||void 0===t||t.kind===r,a||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(t.kind)+" was not a '"+e.formatSyntaxKind(r)+"' token."},n.assertOptionalToken)}:e.noop,n.assertMissingNode=n.shouldAssert(1)?function(t,r){return n.assert(void 0===t,r||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(t.kind)+" was unexpected'."},n.assertMissingNode)}:e.noop,n.enableDebugInfo=function(){if(!t){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return e.formatSymbolFlags(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return e.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return 65536&this.flags?e.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var n=0,r=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<r.length;n++){var a=r[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__debugKind:{get:function(){return e.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return e.formatModifierFlags(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return e.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return e.formatEmitFlags(e.getEmitFlags(this))}},__debugGetText:{value:function(n){if(e.nodeIsSynthesized(this))return"";var t=e.getParseTreeNode(this),r=t&&e.getSourceFileOfNode(t);return r?e.getSourceTextOfNodeFromSourceFile(r,t,n):""}}})}t=!0}}}(s=e.Debug||(e.Debug={}))}(u||(u={})),function(e){function n(n){return(n=e.getOriginalNode(n))?e.getNodeId(n):0}function t(n){if(!n.importClause||!n.importClause.namedBindings)return 0;var t=n.importClause.namedBindings;return t&&e.isNamedImports(t)?t.elements.length:0}function r(n){return!!n&&(!!e.isNamedImports(n)&&e.some(n.elements,a))}function a(e){return e.propertyName&&"default"===e.propertyName.escapedText}function i(n){return!!e.getNamespaceDeclarationNode(n)||t(n)>1&&r(n.importClause.namedBindings)}function o(n){return e.isDefaultImport(n)||1===t(n)&&r(n.importClause.namedBindings)}function s(n,t,r){if(e.isBindingPattern(n.name))for(var a=0,i=n.name.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||(r=s(o,t,r))}else if(!e.isGeneratedIdentifier(n.name)){var l=e.idText(n.name);t.get(l)||(t.set(l,!0),r=e.append(r,n.name))}return r}function l(e,n,t){var r=e[n];return r?r.push(t):e[n]=r=[t],r}e.getOriginalNodeId=n,e.getImportNeedsImportStarHelper=i,e.getImportNeedsImportDefaultHelper=o,e.collectExternalModuleInfo=function(t,r,a){for(var c,u,d=[],m=e.createMultiMap(),p=[],f=e.createMap(),g=!1,v=!1,_=!1,y=0,h=t.statements;y<h.length;y++){var b=h[y];switch(b.kind){case 242:d.push(b),_=i(b)||o(b);break;case 241:252===b.moduleReference.kind&&d.push(b);break;case 248:if(b.moduleSpecifier)b.exportClause?d.push(b):(d.push(b),v=!0);else for(var E=0,T=b.exportClause.elements;E<T.length;E++){var S=T[E];if(!f.get(e.idText(S.name))){var L=S.propertyName||S.name;m.add(e.idText(L),S),(C=r.getReferencedImportDeclaration(L)||r.getReferencedValueDeclaration(L))&&l(p,n(C),S.name),f.set(e.idText(S.name),!0),c=e.append(c,S.name)}}break;case 247:b.isExportEquals&&!u&&(u=b);break;case 212:if(e.hasModifier(b,1))for(var A=0,x=b.declarationList.declarations;A<x.length;A++){var C;c=s(C=x[A],f,c)}break;case 232:e.hasModifier(b,1)&&(e.hasModifier(b,512)?g||(l(p,n(b),e.getDeclarationName(b)),g=!0):(L=b.name,f.get(e.idText(L))||(l(p,n(b),L),f.set(e.idText(L),!0),c=e.append(c,L))));break;case 233:e.hasModifier(b,1)&&(e.hasModifier(b,512)?g||(l(p,n(b),e.getDeclarationName(b)),g=!0):(L=b.name)&&!f.get(e.idText(L))&&(l(p,n(b),L),f.set(e.idText(L),!0),c=e.append(c,L)))}}var k=e.getOrCreateExternalHelpersModuleNameIfNeeded(t,a,v,_),M=k&&e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(k)),e.createLiteral(e.externalHelpersModuleNameText));return M&&(e.addEmitFlags(M,67108864),d.unshift(M)),{externalImports:d,exportSpecifiers:m,exportEquals:u,hasExportStarsToExportValues:v,exportedBindings:p,exportedNames:c,externalHelpersImportDeclaration:M}},e.isSimpleCopiableExpression=function(n){return e.isStringLiteralLike(n)||8===n.kind||e.isKeyword(n.kind)||e.isIdentifier(n)}}(u||(u={})),function(e){function n(t,r){var a=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(a)?function(t,r){for(var a=0,i=e.getElementsOfBindingOrAssignmentPattern(t);a<i.length;a++){var o=i[a];if(n(o,r))return!0}return!1}(a,r):!!e.isIdentifier(a)&&a.escapedText===r}function t(n,i,o,s,l){if(!l){var c=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(i),n.visitor,e.isExpression);c?o=o?function(n,t,r,i){return t=a(n,t,!0,i),e.createConditional(e.createTypeCheck(t,"undefined"),r,t)}(n,o,c,s):c:o||(o=e.createVoidZero())}var u=e.getTargetOfBindingOrAssignmentElement(i);e.isObjectBindingOrAssignmentPattern(u)?function(n,i,o,s,l){var c,u,d=e.getElementsOfBindingOrAssignmentPattern(o),p=d.length;if(1!==p){var f=!e.isDeclarationBindingElement(i)||0!==p;s=a(n,s,f,l)}for(var g=0;g<p;g++){var v=d[g];if(e.getRestIndicatorOfBindingOrAssignmentElement(v)){if(g===p-1){c&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(c),s,l,o),c=void 0);var _=m(n.context,s,d,u,o);t(n,v,_,v)}}else{var y=e.getPropertyNameOfBindingOrAssignmentElement(v);if(!(n.level>=1)||1572864&v.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(v).transformFlags||e.isComputedPropertyName(y)){c&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(c),s,l,o),c=void 0);var _=r(n,s,y);e.isComputedPropertyName(y)&&(u=e.append(u,_.argumentExpression)),t(n,v,_,v)}else c=e.append(c,v)}}c&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(c),s,l,o)}(n,i,u,o,s):e.isArrayBindingOrAssignmentPattern(u)?function(n,r,i,o,s){var l,c,u=e.getElementsOfBindingOrAssignmentPattern(i),d=u.length;if(n.level<1&&n.downlevelIteration)o=a(n,e.createReadHelper(n.context,o,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(u[d-1])?void 0:d,s),!1,s);else if(1!==d&&(n.level<1||0===d)||e.every(u,e.isOmittedExpression)){var m=!e.isDeclarationBindingElement(r)||0!==d;o=a(n,o,m,s)}for(var p=0;p<d;p++){var f=u[p];if(n.level>=1)if(1048576&f.transformFlags){var g=e.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(g),c=e.append(c,[g,f]),l=e.append(l,n.createArrayBindingOrAssignmentElement(g))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===d-1){var v=e.createArraySlice(o,p);t(n,f,v,f)}}else{var v=e.createElementAccess(o,p);t(n,f,v,f)}}}l&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(l),o,s,i);if(c)for(var _=0,y=c;_<y.length;_++){var h=y[_],b=h[0],f=h[1];t(n,f,b,f)}}(n,i,u,o,s):n.emitBindingOrAssignment(u,o,s,i)}function r(n,t,r){if(e.isComputedPropertyName(r)){var i=a(n,e.visitNode(r.expression,n.visitor),!1,r);return e.createElementAccess(t,i)}if(e.isStringOrNumericLiteral(r))return(i=e.getSynthesizedClone(r)).text=i.text,e.createElementAccess(t,i);var o=e.createIdentifier(e.idText(r));return e.createPropertyAccess(t,o)}function a(n,t,r,a){if(e.isIdentifier(t)&&r)return t;var i=e.createTempVariable(void 0);return n.hoistTempVariables?(n.context.hoistVariableDeclaration(i),n.emitExpression(e.setTextRange(e.createAssignment(i,t),a))):n.emitBindingOrAssignment(i,t,a,void 0),i}function i(n){return e.Debug.assertEachNode(n,e.isArrayBindingElement),e.createArrayBindingPattern(n)}function o(n){return e.createArrayLiteral(e.map(n,e.convertToArrayAssignmentElement))}function s(n){return e.Debug.assertEachNode(n,e.isBindingElement),e.createObjectBindingPattern(n)}function l(n){return e.createObjectLiteral(e.map(n,e.convertToObjectAssignmentElement))}function c(n){return e.createBindingElement(void 0,void 0,n)}function u(e){return e}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(r,i,s,c,d,m){var p,f,g=r;if(e.isDestructuringAssignment(r))for(p=r.right;e.isEmptyArrayLiteral(r.left)||e.isEmptyObjectLiteral(r.left);){if(!e.isDestructuringAssignment(p))return p;g=r=p,p=r.right}var v={context:s,level:c,downlevelIteration:s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(n,t,r,a){e.Debug.assertNode(n,m?e.isIdentifier:e.isExpression);var o=m?m(n,t,r):e.setTextRange(e.createAssignment(e.visitNode(n,i,e.isExpression),t),r);o.original=a,_(o)},createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:l,createArrayBindingOrAssignmentElement:u,visitor:i};if(p&&(p=e.visitNode(p,i,e.isExpression),e.isIdentifier(p)&&n(r,p.escapedText)?p=a(v,p,!1,g):d?p=a(v,p,!0,g):e.nodeIsSynthesized(r)&&(g=p)),t(v,r,p,g,e.isDestructuringAssignment(r)),p&&d){if(!e.some(f))return p;f.push(p)}return e.aggregateTransformFlags(e.inlineExpressions(f))||e.createOmittedExpression();function _(n){e.setEmitFlags(n,64),e.aggregateTransformFlags(n),f=e.append(f,n)}},e.flattenDestructuringBinding=function(r,o,l,u,d,m,p){var f,g=[],v=[],_={context:l,level:u,downlevelIteration:l.getCompilerOptions().downlevelIteration,hoistTempVariables:m,emitExpression:function(n){f=e.append(f,n)},emitBindingOrAssignment:D,createArrayBindingOrAssignmentPattern:i,createObjectBindingOrAssignmentPattern:s,createArrayBindingOrAssignmentElement:c,visitor:o};if(e.isVariableDeclaration(r)){var y=e.getInitializerOfBindingOrAssignmentElement(r);y&&e.isIdentifier(y)&&n(r,y.escapedText)&&(y=a(_,y,!1,y),r=e.updateVariableDeclaration(r,r.name,r.type,y))}if(t(_,r,d,r,p),f){var h=e.createTempVariable(void 0);if(m){var b=e.inlineExpressions(f);f=void 0,D(h,b,void 0,void 0)}else{l.hoistVariableDeclaration(h);var E=e.lastOrUndefined(g);E.pendingExpressions=e.append(E.pendingExpressions,e.createAssignment(h,E.value)),e.addRange(E.pendingExpressions,f),E.value=h}}for(var T=0,S=g;T<S.length;T++){var L=S[T],A=L.pendingExpressions,x=L.name,C=(b=L.value,L.location),k=L.original,M=e.createVariableDeclaration(x,void 0,A?e.inlineExpressions(e.append(A,b)):b);M.original=k,e.setTextRange(M,C),e.isIdentifier(x)&&e.setEmitFlags(M,64),e.aggregateTransformFlags(M),v.push(M)}return v;function D(n,t,r,a){e.Debug.assertNode(n,e.isBindingName),f&&(t=e.inlineExpressions(e.append(f,t)),f=void 0),g.push({pendingExpressions:f,name:n,value:t,location:r,original:a})}};var d={name:"typescript: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++) if (e.indexOf(p[i]) < 0)\n t[p[i]] = s[p[i]];\n return t;\n };'};function m(n,t,r,a,i){n.requestEmitHelper(d);for(var o=[],s=0,l=0;l<r.length-1;l++){var c=e.getPropertyNameOfBindingOrAssignmentElement(r[l]);if(c)if(e.isComputedPropertyName(c)){var u=a[s];s++,o.push(e.createConditional(e.createTypeCheck(u,"symbol"),u,e.createAdd(u,e.createLiteral(""))))}else o.push(e.createLiteral(c))}return e.createCall(e.getHelperName("__rest"),void 0,[t,e.setTextRange(e.createArrayLiteral(o),i)])}}(u||(u={})),function(e){var n,t,r=!1;function a(n,t,r,a,o,s){var l=[];return l.push(e.createArrayLiteral(t,!0)),l.push(r),a&&(l.push(a),o&&l.push(o)),n.requestEmitHelper(i),e.setTextRange(e.createCall(e.getHelperName("__decorate"),void 0,l),s)}!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(n||(n={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(t||(t={})),e.transformTypeScript=function(n){var t,i,s,c,u,d,m,p,f,g=n.startLexicalEnvironment,v=n.resumeLexicalEnvironment,_=n.endLexicalEnvironment,y=n.hoistVariableDeclaration,h=n.getEmitResolver(),b=n.getCompilerOptions(),E=e.getStrictOptionValue(b,"strictNullChecks"),T=e.getEmitScriptTarget(b),S=e.getEmitModuleKind(b),L=n.onEmitNode,A=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){var i=p,o=t;e.isSourceFile(r)&&(t=r),2&d&&function(n){return 237===e.getOriginalNode(n).kind}(r)&&(p|=2),8&d&&function(n){return 236===e.getOriginalNode(n).kind}(r)&&(p|=8),L(n,r,a),p=i,t=o},n.onSubstituteNode=function(n,t){return t=A(n,t),1===n?function(n){switch(n.kind){case 71:return function(n){return function(n){if(1&d&&16777216&h.getNodeCheckFlags(n)){var t=h.getReferencedValueDeclaration(n);if(t){var r=m[t.id];if(r){var a=e.getSynthesizedClone(r);return e.setSourceMapRange(a,n),e.setCommentRange(a,n),a}}}}(n)||Ke(n)||n}(n);case 183:case 184:return function(e){return Be(e)}(n)}return n}(t):e.isShorthandPropertyAssignment(t)?function(n){if(2&d){var t=n.name,r=Ke(t);if(r){if(n.objectAssignmentInitializer){var a=e.createAssignment(r,n.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(t,a),n)}return e.setTextRange(e.createPropertyAssignment(t,r),n)}}return n}(t):t},n.enableSubstitution(183),n.enableSubstitution(184),function(r){if(r.isDeclarationFile)return r;t=r;var a=x(r,F);return e.addEmitHelpers(a,n.readEmitHelpers()),t=void 0,a};function x(n,t){var r=c,a=u;!function(n){switch(n.kind){case 272:case 239:case 238:case 211:c=n,u=void 0;break;case 233:case 232:if(e.hasModifier(n,2))break;n.name?Ee(n):e.Debug.assert(233===n.kind||e.hasModifier(n,512))}}(n);var i=t(n);return c!==r&&(u=a),c=r,i}function C(e){return x(e,k)}function k(t){return 1&t.transformFlags?P(t):2&t.transformFlags?e.visitEachChild(t,C,n):t}function M(e){return x(e,D)}function D(t){switch(t.kind){case 242:case 241:case 247:case 248:return function(t){if(e.getParseTreeNode(t)!==t)return 2&t.transformFlags?e.visitEachChild(t,C,n):t;switch(t.kind){case 242:return function(n){if(!n.importClause)return n;var t=e.visitNode(n.importClause,Ae,e.isImportClause);return t?e.updateImportDeclaration(n,void 0,void 0,t,n.moduleSpecifier):void 0}(t);case 241:return De(t);case 247:return function(t){return h.isValueAliasDeclaration(t)?e.visitEachChild(t,C,n):void 0}(t);case 248:return function(n){if(!n.exportClause)return b.isolatedModules||h.moduleExportsSomeValue(n.moduleSpecifier)?n:void 0;if(h.isValueAliasDeclaration(n)){var t=e.visitNode(n.exportClause,ke,e.isNamedExports);return t?e.updateExportDeclaration(n,void 0,void 0,t,n.moduleSpecifier):void 0}}(t);default:e.Debug.fail("Unhandled ellided statement")}}(t);default:return k(t)}}function O(e){return x(e,R)}function R(t){if(248!==t.kind&&242!==t.kind&&243!==t.kind&&(241!==t.kind||252!==t.moduleReference.kind))return 1&t.transformFlags||e.hasModifier(t,1)?P(t):2&t.transformFlags?e.visitEachChild(t,C,n):t}function I(e){return x(e,N)}function N(n){switch(n.kind){case 154:return;case 151:case 159:case 155:case 156:case 153:return k(n);case 210:return n;default:return void e.Debug.failBadSyntaxKind(n)}}function w(n){if(!(2270&e.modifierToFlag(n.kind)||i&&84===n.kind))return n}function P(r){if(e.hasModifier(r,2)&&e.isStatement(r))return e.createNotEmittedStatement(r);switch(r.kind){case 84:case 79:return i?void 0:r;case 114:case 112:case 113:case 117:case 76:case 124:case 132:case 166:case 167:case 165:case 160:case 147:case 119:case 122:case 137:case 134:case 131:case 105:case 138:case 163:case 162:case 164:case 161:case 168:case 169:case 170:case 172:case 173:case 174:case 175:case 176:case 177:case 159:case 149:case 235:return;case 151:return function(n){var t=fe(n.name,e.some(n.decorators)||!!n.initializer,!0);t&&!me(t)&&(f||(f=[])).push(t)}(r);case 240:return;case 154:return function(t){if(ve(t))return e.updateConstructor(t,e.visitNodes(t.decorators,C,e.isDecorator),e.visitNodes(t.modifiers,C,e.isModifier),e.visitParameterList(t.parameters,C,n),e.visitFunctionBody(t.body,C,n))}(r);case 234:return e.createNotEmittedStatement(r);case 233:return function(r){var i=f;f=void 0;var o=B(r,!0),s=function(n,t){var r=0;e.some(t)&&(r|=1);var a=e.getClassExtendsHeritageClauseElement(n);return a&&95!==e.skipOuterExpressions(a.expression).kind&&(r|=64),function(n){if(n.decorators&&n.decorators.length>0)return!0;var t=e.getFirstConstructorWithBody(n);return!!t&&e.forEach(t.parameters,V)}(n)&&(r|=2),e.childIsDecorated(n)&&(r|=4),Oe(n)?r|=8:function(n){return Re(n)&&e.hasModifier(n,512)}(n)?r|=32:Ie(n)&&(r|=16),T<=1&&7&r&&(r|=128),r}(r,o);128&s&&n.startLexicalEnvironment();var l=r.name||(5&s?e.getGeneratedNameForNode(r):void 0),c=2&s?function(n,t,r){var a=e.moveRangePastDecorators(n),i=function(n){if(8388608&h.getNodeCheckFlags(n)){He();var t=e.createUniqueName(n.name&&!e.isGeneratedIdentifier(n.name)?e.idText(n.name):"default");return m[e.getOriginalNodeId(n)]=t,y(t),t}}(n),o=e.getLocalName(n,!1,!0),s=e.visitNodes(n.heritageClauses,C,e.isHeritageClause),l=G(n,0!=(64&r)),c=e.createClassExpression(void 0,t,void 0,s,l);e.setOriginalNode(c,n),e.setTextRange(c,a);var u=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,c):c)],1));return e.setOriginalNode(u,n),e.setTextRange(u,a),e.setCommentRange(u,n),u}(r,l,s):function(n,t,r){var a=128&r?void 0:e.visitNodes(n.modifiers,w,e.isModifier),i=e.createClassDeclaration(void 0,a,t,void 0,e.visitNodes(n.heritageClauses,C,e.isHeritageClause),G(n,0!=(64&r))),o=e.getEmitFlags(n);return 1&r&&(o|=32),e.setTextRange(i,n),e.setOriginalNode(i,n),e.setEmitFlags(i,o),i}(r,l,s),u=[c];if(e.some(f)&&u.push(e.createStatement(e.inlineExpressions(f))),f=i,1&s&&q(u,o,128&s?e.getInternalName(r):e.getLocalName(r)),$(u,r,!1),$(u,r,!0),function(t,r){var i=function(t){var r=function(n){var t=n.decorators,r=Y(e.getFirstConstructorWithBody(n));if(t||r)return{decorators:t,parameters:r}}(t),i=Z(t,t,r);if(i){var o=m&&m[e.getOriginalNodeId(t)],s=e.getLocalName(t,!1,!0),l=a(n,i,s),c=e.createAssignment(s,o?e.createAssignment(o,l):l);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(t)),c}}(r);i&&t.push(e.setOriginalNode(e.createStatement(i),r))}(u,r),128&s){var d=e.createTokenRange(e.skipTrivia(t.text,r.members.end),18),p=e.getInternalName(r),g=e.createPartiallyEmittedExpression(p);g.end=d.end,e.setEmitFlags(g,1536);var v=e.createReturn(g);v.pos=d.pos,e.setEmitFlags(v,1920),u.push(v),e.addRange(u,n.endLexicalEnvironment());var _=e.createImmediatelyInvokedArrowFunction(u);e.setEmitFlags(_,33554432);var b=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,_)]));e.setOriginalNode(b,r),e.setCommentRange(b,r),e.setSourceMapRange(b,e.moveRangePastDecorators(r)),e.startOnNewLine(b),u=[b]}return 8&s?we(u,r):(128&s||2&s)&&(32&s?u.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&s&&u.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),u.length>1&&(u.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(c,4194304|e.getEmitFlags(c))),e.singleOrMany(u)}(r);case 203:return function(n){var t=f;f=void 0;var r=B(n,!0),a=e.visitNodes(n.heritageClauses,C,e.isHeritageClause),i=G(n,e.some(a,function(e){return 85===e.token})),o=e.createClassExpression(void 0,n.name,void 0,a,i);if(e.setOriginalNode(o,n),e.setTextRange(o,n),e.some(r)||e.some(f)){var s=[],l=8388608&h.getNodeCheckFlags(n),c=e.createTempVariable(y,!!l);if(l){He();var u=e.getSynthesizedClone(c);u.autoGenerateFlags&=-17,m[e.getOriginalNodeId(n)]=u}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(c,o))),e.addRange(s,e.map(f,e.startOnNewLine)),f=t,e.addRange(s,function(n,t){for(var r=[],a=0,i=n;a<i.length;a++){var o=i[a],s=z(o,t);e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),r.push(s)}return r}(r,c)),s.push(e.startOnNewLine(c)),e.inlineExpressions(s)}return f=t,o}(r);case 266:return function(n){if(85===n.token){var t=e.visitNodes(n.types,C,e.isExpressionWithTypeArguments,0,1);return e.setTextRange(e.createHeritageClause(85,t),n)}}(r);case 205:return function(n){return e.updateExpressionWithTypeArguments(n,void 0,e.visitNode(n.expression,C,e.isLeftHandSideExpression))}(r);case 153:return function(t){if(ve(t)){var r=e.updateMethod(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,ge(t),void 0,void 0,e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(r);case 155:return function(t){if(_e(t)){var r=e.updateGetAccessor(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),ge(t),e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n)||e.createBlock([]));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(r);case 156:return function(t){if(_e(t)){var r=e.updateSetAccessor(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),ge(t),e.visitParameterList(t.parameters,C,n),e.visitFunctionBody(t.body,C,n)||e.createBlock([]));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(r);case 232:return function(t){if(!ve(t))return e.createNotEmittedStatement(t);var r=e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n)||e.createBlock([]));if(Oe(t)){var a=[r];return we(a,t),a}return r}(r);case 190:return function(t){return ve(t)?e.updateFunctionExpression(t,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n)||e.createBlock([])):e.createOmittedExpression()}(r);case 191:return function(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,w,e.isModifier),void 0,e.visitParameterList(t.parameters,C,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,C,n))}(r);case 148:return function(n){if(!e.parameterIsThisKeyword(n)){var t=e.createParameter(void 0,void 0,n.dotDotDotToken,e.visitNode(n.name,C,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,C,e.isExpression));return e.setOriginalNode(t,n),e.setTextRange(t,e.moveRangePastModifiers(n)),e.setCommentRange(t,n),e.setSourceMapRange(t,e.moveRangePastModifiers(n)),e.setEmitFlags(t.name,32),t}}(r);case 189:return function(t){var r=e.skipOuterExpressions(t.expression,-3);if(e.isAssertionExpression(r)){var a=e.visitNode(t.expression,C,e.isExpression);return e.createPartiallyEmittedExpression(a,t)}return e.visitEachChild(t,C,n)}(r);case 188:case 206:return function(n){var t=e.visitNode(n.expression,C,e.isExpression);return e.createPartiallyEmittedExpression(t,n)}(r);case 185:return function(n){return e.updateCall(n,e.visitNode(n.expression,C,e.isExpression),void 0,e.visitNodes(n.arguments,C,e.isExpression))}(r);case 186:return function(n){return e.updateNew(n,e.visitNode(n.expression,C,e.isExpression),void 0,e.visitNodes(n.arguments,C,e.isExpression))}(r);case 207:return function(n){var t=e.visitNode(n.expression,C,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(t,n)}(r);case 236:return function(n){if(function(n){return!e.isConst(n)||b.preserveConstEnums||b.isolatedModules}(n)){var r=[],a=2;Se(r,n)&&(S===e.ModuleKind.System&&c===t||(a|=512));var i=Ve(n),o=Ge(n),l=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(s,n,!1,!0):e.getLocalName(n,!1,!0),u=e.createLogicalOr(l,e.createAssignment(l,e.createObjectLiteral()));if(be(n)){var d=e.getLocalName(n,!1,!0);u=e.createAssignment(d,u)}var m=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,i)],void 0,function(n,t){var r=s;s=t;var a=[];return g(),e.addRange(a,e.map(n.members,he)),e.addRange(a,_()),s=r,e.createBlock(e.setTextRange(e.createNodeArray(a),n.members),!0)}(n,o)),void 0,[u]));return e.setOriginalNode(m,n),e.setTextRange(m,n),e.setEmitFlags(m,a),r.push(m),r.push(e.createEndOfDeclarationMarker(n)),r}}(r);case 212:return function(t){if(Oe(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(e.createStatement(e.inlineExpressions(e.map(r,ye))),t)}return e.visitEachChild(t,C,n)}(r);case 230:return function(n){return e.updateVariableDeclaration(n,e.visitNode(n.name,C,e.isBindingName),void 0,e.visitNode(n.initializer,C,e.isExpression))}(r);case 237:return Le(r);case 241:return De(r);default:return e.Debug.failBadSyntaxKind(r),e.visitEachChild(r,C,n)}}function F(t){var r=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(t)&&S>=e.ModuleKind.ES2015);return e.updateSourceFileNode(t,e.visitLexicalEnvironment(t.statements,M,n,0,r))}function V(e){return void 0!==e.decorators&&e.decorators.length>0}function G(t,r){var a=[],i=function(t,r){var a=e.forEach(t.members,j),i=262144&t.transformFlags,o=e.getFirstConstructorWithBody(t);if(!a&&!i)return e.visitEachChild(o,C,n);var s=function(t){return e.visitParameterList(t&&t.parameters,C,n)||[]}(o),l=function(n,t,r){var a=[],i=0;if(v(),t){i=function(n,t){if(n.body){var r=n.body.statements,a=e.addPrologue(t,r,!1,C);if(a===r.length)return a;var i=r[a];return 214===i.kind&&e.isSuperCall(i.expression)?(t.push(e.visitNode(i,C,e.isStatement)),a+1):a}return 0}(t,a);var o=function(n){return e.filter(n.parameters,H)}(t);e.addRange(a,e.map(o,K))}else r&&a.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=B(n,!1);return q(a,s,e.createThis()),t&&e.addRange(a,e.visitNodes(t.body.statements,C,e.isStatement,i)),a=e.mergeLexicalEnvironment(a,_()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0),t?t.body:void 0)}(t,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,l),o||t),o))}(t,r);return i&&a.push(i),e.addRange(a,e.visitNodes(t.members,I,e.isClassElement)),e.setTextRange(e.createNodeArray(a),t.members)}function H(n){return e.hasModifier(n,92)&&e.isIdentifier(n.name)}function K(n){e.Debug.assert(e.isIdentifier(n.name));var t=n.name,r=e.getMutableClone(t);e.setEmitFlags(r,1584);var a=e.getMutableClone(t);return e.setEmitFlags(a,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),n.name),a)),e.moveRangePos(n,-1)),1536))}function B(n,t){return e.filter(n.members,t?U:j)}function U(e){return W(e,!0)}function j(e){return W(e,!1)}function W(n,t){return 151===n.kind&&t===e.hasModifier(n,32)&&void 0!==n.initializer}function q(n,t,r){for(var a=0,i=t;a<i.length;a++){var o=i[a],s=e.createStatement(z(o,r));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),n.push(s)}}function z(n,t){var r=e.isComputedPropertyName(n.name)&&!me(n.name.expression)?e.updateComputedPropertyName(n.name,e.getGeneratedNameForNode(n.name,!e.hasModifier(n,32))):n.name,a=e.visitNode(n.initializer,C,e.isExpression),i=e.createMemberAccessForPropertyName(t,r,r);return e.createAssignment(i,a)}function J(n,t){return e.filter(n.members,t?function(e){return X(e,!0,n)}:function(e){return X(e,!1,n)})}function X(n,t,r){return e.nodeOrChildIsDecorated(n,r)&&t===e.hasModifier(n,32)}function Y(e){var n;if(e)for(var t=e.parameters,r=0;r<t.length;r++){var a=t[r];(n||a.decorators)&&(n||(n=new Array(t.length)),n[r]=a.decorators)}return n}function Q(n,t){switch(t.kind){case 155:case 156:return function(n,t){if(t.body){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){var l=s.decorators,c=Y(o);if(l||c)return{decorators:l,parameters:c}}}}(n,t);case 153:return function(e){if(e.body){var n=e.decorators,t=Y(e);if(n||t)return{decorators:n,parameters:t}}}(t);case 151:return function(e){var n=e.decorators;if(n)return{decorators:n}}(t);default:return}}function Z(t,a,i){if(i){var s=[];return e.addRange(s,e.map(i.decorators,ne)),e.addRange(s,e.flatMap(i.parameters,te)),function(t,a,i){r?function(t,r,a){if(b.emitDecoratorMetadata){var i=void 0;re(t)&&(i||(i=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),oe(t)))),ie(t)&&(i||(i=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),se(t,r)))),ae(t)&&(i||(i=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),le(t)))),i&&a.push(o(n,"design:typeinfo",e.createObjectLiteral(i,!0)))}}(t,a,i):function(e,t,r){b.emitDecoratorMetadata&&(re(e)&&r.push(o(n,"design:type",oe(e))),ie(e)&&r.push(o(n,"design:paramtypes",se(e,t))),ae(e)&&r.push(o(n,"design:returntype",le(e))))}(t,a,i)}(t,a,s),s}}function $(n,t,r){e.addRange(n,e.map(function(e,n){for(var t,r=0,a=J(e,n);r<a.length;r++){var i=a[r],o=ee(e,i);o&&(t?t.push(o):t=[o])}return t}(t,r),Ne))}function ee(t,r){var i=Z(r,t,Q(t,r));if(i){var o=function(n,t){return e.hasModifier(t,32)?e.getDeclarationName(n):function(n){return e.createPropertyAccess(e.getDeclarationName(n),"prototype")}(n)}(t,r),s=pe(r,!0),l=T>0?151===r.kind?e.createVoidZero():e.createNull():void 0,c=a(n,i,o,s,l,e.moveRangePastDecorators(r));return e.setEmitFlags(c,1536),c}}function ne(n){return e.visitNode(n.expression,C,e.isExpression)}function te(t,r){var a;if(t){a=[];for(var i=0,o=t;i<o.length;i++){var s=o[i],c=l(n,ne(s),r,s.expression);e.setEmitFlags(c,1536),a.push(c)}}return a}function re(e){var n=e.kind;return 153===n||155===n||156===n||151===n}function ae(e){return 153===e.kind}function ie(n){switch(n.kind){case 233:case 203:return void 0!==e.getFirstConstructorWithBody(n);case 153:case 155:case 156:return!0}return!1}function oe(n){switch(n.kind){case 151:case 148:case 155:return ce(n.type);case 156:return ce(e.getSetAccessorTypeAnnotationNode(n));case 233:case 203:case 153:return e.createIdentifier("Function");default:return e.createVoidZero()}}function se(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&&155===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 l=i[s];0===s&&e.isIdentifier(l.name)&&"this"===l.name.escapedText||(l.dotDotDotToken?a.push(ce(e.getRestParameterElementType(l.type))):a.push(oe(l)))}return e.createArrayLiteral(a)}function le(n){return e.isFunctionLike(n)&&n.type?ce(n.type):e.isAsyncFunction(n)?e.createIdentifier("Promise"):e.createVoidZero()}function ce(n){if(void 0===n)return e.createIdentifier("Object");switch(n.kind){case 105:case 140:case 95:case 131:return e.createVoidZero();case 172:return ce(n.type);case 162:case 163:return e.createIdentifier("Function");case 166:case 167:return e.createIdentifier("Array");case 160:case 122:return e.createIdentifier("Boolean");case 137:return e.createIdentifier("String");case 135:return e.createIdentifier("Object");case 177:switch(n.literal.kind){case 9:return e.createIdentifier("String");case 8:return e.createIdentifier("Number");case 101:case 86:return e.createIdentifier("Boolean");default:e.Debug.failBadSyntaxKind(n.literal)}break;case 134:return e.createIdentifier("Number");case 138:return T<2?de():e.createIdentifier("Symbol");case 161:return function(n){switch(h.getTypeReferenceSerializationKind(n.typeName,c)){case e.TypeReferenceSerializationKind.Unknown:var t=ue(n.typeName,!0),r=e.createTempVariable(y);return e.createLogicalOr(e.createLogicalAnd(e.createTypeCheck(e.createAssignment(r,t),"function"),r),e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ue(n.typeName,!1);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return T<2?de():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:default:return e.createIdentifier("Object")}}(n);case 169:case 168:return function(n){for(var t,r=0,a=n.types;r<a.length;r++){for(var i=a[r];172===i.kind;)i=i.type;if(131!==i.kind&&(E||95!==i.kind&&140!==i.kind)){var o=ce(i);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return e.createIdentifier("Object")}else t=o}}return t||e.createVoidZero()}(n);case 164:case 174:case 175:case 176:case 165:case 119:case 173:break;default:e.Debug.failBadSyntaxKind(n)}return e.createIdentifier("Object")}function ue(n,t){switch(n.kind){case 71:var r=e.getMutableClone(n);return r.flags&=-9,r.original=void 0,r.parent=e.getParseTreeNode(c),t?e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(r),e.createLiteral("undefined")),r):r;case 145:return function(n,t){var r;if(71===n.left.kind)r=ue(n.left,t);else if(t){var a=e.createTempVariable(y);r=e.createLogicalAnd(e.createAssignment(a,ue(n.left,!0)),a)}else r=ue(n.left,!1);return e.createPropertyAccess(r,n.right)}(n,t)}}function de(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function me(n){return!e.isIdentifier(n)&&e.isSimpleCopiableExpression(n)||e.isWellKnownSymbolSyntactically(n)}function pe(n,t){var r=n.name;return e.isComputedPropertyName(r)?t&&!me(r.expression)?e.getGeneratedNameForNode(r):r.expression:e.isIdentifier(r)?e.createLiteral(e.idText(r)):e.getSynthesizedClone(r)}function fe(n,t,r){if(e.isComputedPropertyName(n)){var a=e.visitNode(n.expression,C,e.isExpression),i=e.skipPartiallyEmittedExpressions(a),o=me(i);if(!o&&t){var s=e.getGeneratedNameForNode(n);return y(s),e.createAssignment(s,a)}return r&&(o||e.isIdentifier(i))?void 0:a}}function ge(n){var t=n.name,r=fe(t,e.some(n.decorators),!1);return r?(e.some(f)&&(r=e.inlineExpressions(f.concat([r])),f.length=0),e.updateComputedPropertyName(t,r)):t}function ve(n){return!e.nodeIsMissing(n.body)}function _e(n){return!(e.nodeIsMissing(n.body)&&e.hasModifier(n,128))}function ye(t){var r=t.name;return e.isBindingPattern(r)?e.flattenDestructuringAssignment(t,C,n,0,!1,Pe):e.setTextRange(e.createAssignment(Fe(r),e.visitNode(t.initializer,C,e.isExpression)),t)}function he(t){var r=pe(t,!1),a=function(t){var r=h.getConstantValue(t);return void 0!==r?e.createLiteral(r):(0==(8&d)&&(d|=8,n.enableSubstitution(71)),t.initializer?e.visitNode(t.initializer,C,e.isExpression):e.createVoidZero())}(t),i=e.createAssignment(e.createElementAccess(s,r),a),o=9===a.kind?i:e.createAssignment(e.createElementAccess(s,i),r);return e.setTextRange(e.createStatement(e.setTextRange(o,t)),t)}function be(n){return Oe(n)||Re(n)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function Ee(n){u||(u=e.createUnderscoreEscapedMap());var t=Te(n);u.has(t)||u.set(t,n)}function Te(n){return e.Debug.assertNode(n.name,e.isIdentifier),n.name.escapedText}function Se(n,t){var r=e.createVariableStatement(e.visitNodes(t.modifiers,w,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(t,!1,!0))],272===c.kind?0:1));if(e.setOriginalNode(r,t),Ee(t),function(e){if(u){var n=Te(e);return u.get(n)===e}return!0}(t))return 236===t.kind?e.setSourceMapRange(r.declarationList,t):e.setSourceMapRange(r,t),e.setCommentRange(r,t),e.setEmitFlags(r,4195328),n.push(r),!0;var a=e.createMergeDeclarationMarker(r);return e.setEmitFlags(a,4195840),n.push(a),!1}function Le(r){if(!function(n){return e.isInstantiatedModule(n,b.preserveConstEnums||b.isolatedModules)}(r))return e.createNotEmittedStatement(r);e.Debug.assertNode(r.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&d)&&(d|=2,n.enableSubstitution(71),n.enableSubstitution(269),n.enableEmitNotification(237));var a=[],o=2;Se(a,r)&&(S===e.ModuleKind.System&&c===t||(o|=512));var l=Ve(r),m=Ge(r),p=e.hasModifier(r,1)?e.getExternalModuleOrNamespaceExportName(s,r,!1,!0):e.getLocalName(r,!1,!0),f=e.createLogicalOr(p,e.createAssignment(p,e.createObjectLiteral()));if(be(r)){var v=e.getLocalName(r,!1,!0);f=e.createAssignment(v,f)}var y=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,l)],void 0,function(n,t){var r=s,a=i,o=u;s=t,i=n,u=void 0;var l,c,d=[];g();var m=n.body;if(238===m.kind)x(m,function(n){return e.addRange(d,e.visitNodes(n.statements,O,e.isStatement))}),l=m.statements,c=m;else{var p=Le(m);p&&(e.isArray(p)?e.addRange(d,p):d.push(p));var f=function e(n){if(237===n.body.kind){var t=e(n.body);return t||n.body}}(n).body;l=e.moveRangePos(f.statements,-1)}e.addRange(d,_()),s=r,i=a,u=o;var v=e.createBlock(e.setTextRange(e.createNodeArray(d),l),!0);return e.setTextRange(v,c),238!==m.kind&&e.setEmitFlags(v,1536|e.getEmitFlags(v)),v}(r,m)),void 0,[f]));return e.setOriginalNode(y,r),e.setTextRange(y,r),e.setEmitFlags(y,o),a.push(y),a.push(e.createEndOfDeclarationMarker(r)),a}function Ae(n){var t=h.isReferencedAliasDeclaration(n)?n.name:void 0,r=e.visitNode(n.namedBindings,xe,e.isNamedImportBindings);return t||r?e.updateImportClause(n,t,r):void 0}function xe(n){if(244===n.kind)return h.isReferencedAliasDeclaration(n)?n:void 0;var t=e.visitNodes(n.elements,Ce,e.isImportSpecifier);return e.some(t)?e.updateNamedImports(n,t):void 0}function Ce(e){return h.isReferencedAliasDeclaration(e)?e:void 0}function ke(n){var t=e.visitNodes(n.elements,Me,e.isExportSpecifier);return e.some(t)?e.updateNamedExports(n,t):void 0}function Me(e){return h.isValueAliasDeclaration(e)?e:void 0}function De(r){if(e.isExternalModuleImportEqualsDeclaration(r))return h.isReferencedAliasDeclaration(r)?e.visitEachChild(r,C,n):void 0;if(function(n){return h.isReferencedAliasDeclaration(n)||!e.isExternalModule(t)&&h.isTopLevelValueImportEqualsWithEntityName(n)}(r)){var a,i,o,l=e.createExpressionFromEntityName(r.moduleReference);return e.setEmitFlags(l,3584),Ie(r)||!Oe(r)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(r.modifiers,w,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(r.name,void 0,l),r)])),r),r):e.setOriginalNode((a=r.name,i=l,o=r,e.setTextRange(e.createStatement(e.createAssignment(e.getNamespaceMemberName(s,a,!1,!0),i)),o)),r)}}function Oe(n){return void 0!==i&&e.hasModifier(n,1)}function Re(n){return void 0===i&&e.hasModifier(n,1)}function Ie(n){return Re(n)&&!e.hasModifier(n,512)}function Ne(n){return e.createStatement(n)}function we(n,t){var r=e.createAssignment(e.getExternalModuleOrNamespaceExportName(s,t,!1,!0),e.getLocalName(t));e.setSourceMapRange(r,e.createRange(t.name?t.name.pos:t.pos,t.end));var a=e.createStatement(r);e.setSourceMapRange(a,e.createRange(-1,t.end)),n.push(a)}function Pe(n,t,r){return e.setTextRange(e.createAssignment(Fe(n),t),r)}function Fe(n){return e.getNamespaceMemberName(s,n,!1,!0)}function Ve(n){var t=e.getGeneratedNameForNode(n);return e.setSourceMapRange(t,n.name),t}function Ge(n){return e.getGeneratedNameForNode(n)}function He(){0==(1&d)&&(d|=1,n.enableSubstitution(71),m=[])}function Ke(n){if(d&p&&!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var t=h.getReferencedExportContainer(n,!1);if(t&&272!==t.kind&&(2&p&&237===t.kind||8&p&&236===t.kind))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(t),n),n)}}function Be(n){var t=function(n){if(!b.isolatedModules)return e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)?h.getConstantValue(n):void 0}(n);if(void 0!==t){e.setConstantValue(n,t);var r=e.createLiteral(t);if(!b.removeComments){var a=e.isPropertyAccessExpression(n)?e.declarationNameToString(n.name):e.getTextOfNode(n.argumentExpression);e.addSyntheticTrailingComment(r,3," "+a+" ")}return r}return n}};var i={name:"typescript: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 };'};function o(n,t,r){return n.requestEmitHelper(s),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(t),r])}var s={name:"typescript: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 };'};function l(n,t,r,a){return n.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(r),t]),a)}var c={name:"typescript: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 };"}}(u||(u={})),function(e){var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=function(n){var t,a,i=n.resumeLexicalEnvironment,o=n.endLexicalEnvironment,s=n.hoistVariableDeclaration,l=n.getEmitResolver(),c=n.getCompilerOptions(),u=e.getEmitScriptTarget(c),d=0,m=n.onEmitNode,p=n.onSubstituteNode;return n.onEmitNode=function(e,n,r){if(1&t&&function(e){var n=e.kind;return 233===n||154===n||153===n||155===n||156===n}(n)){var a=6144&l.getNodeCheckFlags(n);if(a!==d){var i=d;return d=a,m(e,n,r),void(d=i)}}m(e,n,r)},n.onSubstituteNode=function(n,t){return t=p(n,t),1===n&&d?function(n){switch(n.kind){case 183:return A(n);case 184:return x(n);case 185:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?A(t):x(t);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(n.arguments))}return n}(n)}return n}(t):t},function(t){if(t.isDeclarationFile)return t;var r=e.visitEachChild(t,f,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r};function f(t){if(0==(16&t.transformFlags))return t;switch(t.kind){case 120:return;case 195:return function(n){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(n.expression,f,e.isExpression)),n),n)}(t);case 153:return function(t){return e.updateMethod(t,void 0,e.visitNodes(t.modifiers,f,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,f,n),void 0,2&e.getFunctionFlags(t)?T(t):e.visitFunctionBody(t.body,f,n))}(t);case 232:return function(t){return e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,f,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,f,n),void 0,2&e.getFunctionFlags(t)?T(t):e.visitFunctionBody(t.body,f,n))}(t);case 190:return function(t){return e.updateFunctionExpression(t,e.visitNodes(t.modifiers,f,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,f,n),void 0,2&e.getFunctionFlags(t)?T(t):e.visitFunctionBody(t.body,f,n))}(t);case 191:return function(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,f,e.isModifier),void 0,e.visitParameterList(t.parameters,f,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?T(t):e.visitFunctionBody(t.body,f,n))}(t);default:return e.visitEachChild(t,f,n)}}function g(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 212:return function(t){if(_(t.declarationList)){var r=y(t.declarationList,!1);return r?e.createStatement(r):void 0}return e.visitEachChild(t,f,n)}(t);case 218:return function(n){return e.updateFor(n,_(n.initializer)?y(n.initializer,!1):e.visitNode(n.initializer,f,e.isForInitializer),e.visitNode(n.condition,f,e.isExpression),e.visitNode(n.incrementor,f,e.isExpression),e.visitNode(n.statement,g,e.isStatement,e.liftToBlock))}(t);case 219:return function(n){return e.updateForIn(n,_(n.initializer)?y(n.initializer,!0):e.visitNode(n.initializer,f,e.isForInitializer),e.visitNode(n.expression,f,e.isExpression),e.visitNode(n.statement,g,e.isStatement,e.liftToBlock))}(t);case 220:return function(n){return e.updateForOf(n,e.visitNode(n.awaitModifier,f,e.isToken),_(n.initializer)?y(n.initializer,!0):e.visitNode(n.initializer,f,e.isForInitializer),e.visitNode(n.expression,f,e.isExpression),e.visitNode(n.statement,g,e.isStatement,e.liftToBlock))}(t);case 267:return function(t){var r,i=e.createUnderscoreEscapedMap();if(v(t.variableDeclaration,i),i.forEach(function(n,t){a.has(t)&&(r||(r=e.cloneMap(a)),r.delete(t))}),r){var o=a;a=r;var s=e.visitEachChild(t,g,n);return a=o,s}return e.visitEachChild(t,g,n)}(t);case 211:case 225:case 239:case 264:case 265:case 228:case 216:case 217:case 215:case 224:case 226:return e.visitEachChild(t,g,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return f(t)}function v(n,t){var r=n.name;if(e.isIdentifier(r))t.set(r.escapedText,!0);else for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||v(o,t)}}function _(n){return n&&e.isVariableDeclarationList(n)&&!(3&n.flags)&&e.forEach(n.declarations,E)}function y(n,t){!function(n){e.forEach(n.declarations,h)}(n);var r=e.getInitializedVariables(n);return 0===r.length?t?e.visitNode(e.convertToAssignmentElementTarget(n.declarations[0].name),f,e.isExpression):void 0:e.inlineExpressions(e.map(r,b))}function h(n){var t=n.name;if(e.isIdentifier(t))s(t);else for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||h(i)}}function b(n){var t=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(n.name),n.initializer),n);return e.visitNode(t,f,e.isExpression)}function E(n){var t=n.name;if(e.isIdentifier(t))return a.has(t.escapedText);for(var r=0,i=t.elements;r<i.length;r++){var o=i[r];if(!e.isOmittedExpression(o)&&E(o))return!0}return!1}function T(t){i();var s,c=e.getOriginalNode(t,e.isFunctionLike).type,d=u<2?function(n){var t=n&&e.getEntityNameFromTypeNode(n);if(t&&e.isEntityName(t)){var r=l.getTypeReferenceSerializationKind(t);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return t}}(c):void 0,m=191===t.kind,p=0!=(8192&l.getNodeCheckFlags(t)),g=a;a=e.createUnderscoreEscapedMap();for(var _=0,y=t.parameters;_<y.length;_++)v(y[_],a);if(m){var h=r(n,p,d,S(t.body)),b=o();e.some(b)?(A=e.convertToFunctionBody(h),s=e.updateBlock(A,e.setTextRange(e.createNodeArray(e.concatenate(A.statements,b)),A.statements))):s=h}else{var E=[],T=e.addPrologue(E,t.body.statements,!1,f);E.push(e.createReturn(r(n,p,d,S(t.body,T)))),e.addRange(E,o());var A=e.createBlock(E,!0);e.setTextRange(A,t.body),u>=2&&(4096&l.getNodeCheckFlags(t)?(L(),e.addEmitHelper(A,e.advancedAsyncSuperHelper)):2048&l.getNodeCheckFlags(t)&&(L(),e.addEmitHelper(A,e.asyncSuperHelper))),s=A}return a=g,s}function S(n,t){return e.isBlock(n)?e.updateBlock(n,e.visitNodes(n.statements,g,e.isStatement,t)):e.convertToFunctionBody(e.visitNode(n,g,e.isConciseBody))}function L(){0==(1&t)&&(t|=1,n.enableSubstitution(185),n.enableSubstitution(183),n.enableSubstitution(184),n.enableEmitNotification(233),n.enableEmitNotification(153),n.enableEmitNotification(155),n.enableEmitNotification(156),n.enableEmitNotification(154))}function A(n){return 97===n.expression.kind?C(e.createLiteral(e.idText(n.name)),n):n}function x(e){return 97===e.expression.kind?C(e.argumentExpression,e):e}function C(n,t){return 4096&d?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[n]),"value"),t):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[n]),t)}};var t={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\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) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};function r(n,r,a,i){n.requestEmitHelper(t);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),a?e.createExpressionFromEntityName(a):e.createVoidZero(),o])}e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (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 "}}(u||(u={})),function(e){var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformESNext=function(n){var t=n.resumeLexicalEnvironment,l=n.endLexicalEnvironment,u=n.hoistVariableDeclaration,d=n.getEmitResolver(),m=n.getCompilerOptions(),p=e.getEmitScriptTarget(m),f=n.onEmitNode;n.onEmitNode=function(e,n,t){if(1&g&&function(e){var n=e.kind;return 233===n||154===n||153===n||155===n||156===n}(n)){var r=6144&d.getNodeCheckFlags(n);if(r!==y){var a=y;return y=r,f(e,n,t),void(y=a)}}f(e,n,t)};var g,v,_=n.onSubstituteNode;n.onSubstituteNode=function(n,t){return t=_(n,t),1===n&&y?function(n){switch(n.kind){case 183:return M(n);case 184:return D(n);case 185:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?M(t):D(t);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(n.arguments))}return n}(n)}return n}(t):t};var y=0;return function(t){if(t.isDeclarationFile)return t;var r=e.visitEachChild(t,h,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r};function h(e){return T(e,!1)}function b(e){return T(e,!0)}function E(e){if(120!==e.kind)return e}function T(t,o){if(0==(8&t.transformFlags))return t;switch(t.kind){case 195:return function(t){return 2&v&&1&v?e.setOriginalNode(e.setTextRange(e.createYield(i(n,e.visitNode(t.expression,h,e.isExpression))),t),t):e.visitEachChild(t,h,n)}(t);case 201:return function(t){if(2&v&&1&v&&t.asteriskToken){var r=e.visitNode(t.expression,h,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(i(n,e.updateYield(t,t.asteriskToken,function(n,t,r){return n.requestEmitHelper(a),n.requestEmitHelper(s),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[t]),r)}(n,c(n,r,r),r)))),t),t)}return e.visitEachChild(t,h,n)}(t);case 226:return function(t){if(2&v){var r=e.unwrapInnermostStatementOfLabel(t);return 220===r.kind&&r.awaitModifier?S(r,t):e.restoreEnclosingLabel(e.visitEachChild(r,h,n),t)}return e.visitEachChild(t,h,n)}(t);case 182:return function(t){if(1048576&t.transformFlags){var a=function(n){for(var t,r=[],a=0,i=n;a<i.length;a++){var o=i[a];if(270===o.kind){t&&(r.push(e.createObjectLiteral(t)),t=void 0);var s=o.expression;r.push(e.visitNode(s,h,e.isExpression))}else t=e.append(t,268===o.kind?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,h,e.isExpression)):e.visitNode(o,h,e.isObjectLiteralElementLike))}return t&&r.push(e.createObjectLiteral(t)),r}(t.properties);return a.length&&182!==a[0].kind&&a.unshift(e.createObjectLiteral()),r(n,a)}return e.visitEachChild(t,h,n)}(t);case 198:return function(t,r){return e.isDestructuringAssignment(t)&&1048576&t.left.transformFlags?e.flattenDestructuringAssignment(t,h,n,1,!r):26===t.operatorToken.kind?e.updateBinary(t,e.visitNode(t.left,b,e.isExpression),e.visitNode(t.right,r?b:h,e.isExpression)):e.visitEachChild(t,h,n)}(t,o);case 230:return function(t){return e.isBindingPattern(t.name)&&1048576&t.name.transformFlags?e.flattenDestructuringBinding(t,h,n,1):e.visitEachChild(t,h,n)}(t);case 220:return S(t,void 0);case 218:return function(n){return e.updateFor(n,e.visitNode(n.initializer,b,e.isForInitializer),e.visitNode(n.condition,h,e.isExpression),e.visitNode(n.incrementor,h,e.isExpression),e.visitNode(n.statement,h,e.isStatement))}(t);case 194:return function(t){return e.visitEachChild(t,b,n)}(t);case 154:return function(t){var r=v;v=0;var a=e.updateConstructor(t,void 0,t.modifiers,e.visitParameterList(t.parameters,h,n),x(t));return v=r,a}(t);case 153:return function(t){var r=v;v=e.getFunctionFlags(t);var a=e.updateMethod(t,void 0,1&v?e.visitNodes(t.modifiers,E,e.isModifier):t.modifiers,2&v?void 0:t.asteriskToken,e.visitNode(t.name,h,e.isPropertyName),e.visitNode(void 0,h,e.isToken),void 0,e.visitParameterList(t.parameters,h,n),void 0,2&v&&1&v?A(t):x(t));return v=r,a}(t);case 155:return function(t){var r=v;v=0;var a=e.updateGetAccessor(t,void 0,t.modifiers,e.visitNode(t.name,h,e.isPropertyName),e.visitParameterList(t.parameters,h,n),void 0,x(t));return v=r,a}(t);case 156:return function(t){var r=v;v=0;var a=e.updateSetAccessor(t,void 0,t.modifiers,e.visitNode(t.name,h,e.isPropertyName),e.visitParameterList(t.parameters,h,n),x(t));return v=r,a}(t);case 232:return function(t){var r=v;v=e.getFunctionFlags(t);var a=e.updateFunctionDeclaration(t,void 0,1&v?e.visitNodes(t.modifiers,E,e.isModifier):t.modifiers,2&v?void 0:t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,h,n),void 0,2&v&&1&v?A(t):x(t));return v=r,a}(t);case 190:return function(t){var r=v;v=e.getFunctionFlags(t);var a=e.updateFunctionExpression(t,1&v?e.visitNodes(t.modifiers,E,e.isModifier):t.modifiers,2&v?void 0:t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,h,n),void 0,2&v&&1&v?A(t):x(t));return v=r,a}(t);case 191:return function(t){var r=v;v=e.getFunctionFlags(t);var a=e.updateArrowFunction(t,t.modifiers,void 0,e.visitParameterList(t.parameters,h,n),void 0,t.equalsGreaterThanToken,x(t));return v=r,a}(t);case 148:return function(t){return 1048576&t.transformFlags?e.updateParameter(t,void 0,void 0,t.dotDotDotToken,e.getGeneratedNameForNode(t),void 0,void 0,e.visitNode(t.initializer,h,e.isExpression)):e.visitEachChild(t,h,n)}(t);case 214:return function(t){return e.visitEachChild(t,b,n)}(t);case 189:return function(t,r){return e.visitEachChild(t,r?b:h,n)}(t,o);case 267:return function(t){return t.variableDeclaration?e.visitEachChild(t,h,n):e.updateCatchClause(t,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(t.block,h,e.isBlock))}(t);default:return e.visitEachChild(t,h,n)}}function S(t,r){return 1048576&t.initializer.transformFlags&&(t=function(n){var t=e.skipParentheses(n.initializer);if(e.isVariableDeclarationList(t)||e.isAssignmentPattern(t)){var r=void 0,a=void 0,i=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(t,i)];return e.isBlock(n.statement)&&(e.addRange(o,n.statement.statements),r=n.statement,a=n.statement.statements),e.updateForOf(n,n.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i),n.initializer)],1),n.initializer),n.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),!0),r))}return n}(t)),t.awaitModifier?function(t,r){var a=e.visitNode(t.expression,h,e.isExpression),i=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),o=e.isIdentifier(a)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),s=e.createUniqueName("e"),l=e.getGeneratedNameForNode(s),d=e.createTempVariable(void 0),m=c(n,a,t.expression),p=e.createCall(e.createPropertyAccess(i,"next"),void 0,[]),f=e.createPropertyAccess(o,"done"),g=e.createPropertyAccess(o,"value"),v=e.createFunctionCall(d,i,[]);u(s),u(d);var _=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i,void 0,m),t.expression),e.createVariableDeclaration(o)]),t.expression),2097152),e.createComma(e.createAssignment(o,L(p)),e.createLogicalNot(f)),void 0,function(n,t){var r,a,i=e.createForOfBindingStatement(n.initializer,t),o=[e.visitNode(i,h,e.isStatement)],s=e.visitNode(n.statement,h,e.isStatement);return e.isBlock(s)?(e.addRange(o,s.statements),r=s,a=s.statements):o.push(s),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),!0),r),432)}(t,L(g))),t),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(_,r)]),e.createCatchClause(e.createVariableDeclaration(l),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(s,e.createObjectLiteral([e.createPropertyAssignment("error",l)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(o,e.createLogicalNot(f)),e.createAssignment(d,e.createPropertyAccess(i,"return"))),e.createStatement(L(v))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(s,e.createThrow(e.createPropertyAccess(s,"error"))),1)]),1))]))}(t,r):e.restoreEnclosingLabel(e.visitEachChild(t,h,n),r)}function L(t){return 1&v?e.createYield(void 0,i(n,t)):e.createAwait(t)}function A(r){t();var i=[],s=e.addPrologue(i,r.body.statements,!1,h);C(i,r),i.push(e.createReturn(function(n,t){return n.requestEmitHelper(a),n.requestEmitHelper(o),(t.emitNode||(t.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),t])}(n,e.createFunctionExpression(void 0,e.createToken(39),r.name&&e.getGeneratedNameForNode(r.name),void 0,[],void 0,e.updateBlock(r.body,e.visitLexicalEnvironment(r.body.statements,h,n,s)))))),e.addRange(i,l());var c=e.updateBlock(r.body,i);return p>=2&&(4096&d.getNodeCheckFlags(r)?(k(),e.addEmitHelper(c,e.advancedAsyncSuperHelper)):2048&d.getNodeCheckFlags(r)&&(k(),e.addEmitHelper(c,e.asyncSuperHelper))),c}function x(n){t();var r=0,a=[],i=e.visitNode(n.body,h,e.isConciseBody);e.isBlock(i)&&(r=e.addPrologue(a,i.statements,!1,h)),e.addRange(a,C(void 0,n));var o=l();if(r>0||e.some(a)||e.some(o)){var s=e.convertToFunctionBody(i,!0);return e.addRange(a,s.statements.slice(r)),e.addRange(a,o),e.updateBlock(s,e.setTextRange(e.createNodeArray(a),s.statements))}return i}function C(t,r){for(var a=0,i=r.parameters;a<i.length;a++){var o=i[a];if(1048576&o.transformFlags){var s=e.getGeneratedNameForNode(o),l=e.flattenDestructuringBinding(o,h,n,1,s,!1,!0);if(e.some(l)){var c=e.createVariableStatement(void 0,e.createVariableDeclarationList(l));e.setEmitFlags(c,1048576),t=e.append(t,c)}}}return t}function k(){0==(1&g)&&(g|=1,n.enableSubstitution(185),n.enableSubstitution(183),n.enableSubstitution(184),n.enableEmitNotification(233),n.enableEmitNotification(153),n.enableEmitNotification(155),n.enableEmitNotification(156),n.enableEmitNotification(154))}function M(n){return 97===n.expression.kind?O(e.createLiteral(e.idText(n.name)),n):n}function D(e){return 97===e.expression.kind?O(e.argumentExpression,e):e}function O(n,t){return 4096&y?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[n]),"value"),t):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[n]),t)}};var t={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__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 };"};function r(n,r){return n.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(n.requestEmitHelper(t),e.createCall(e.getHelperName("__assign"),void 0,r))}e.createAssignHelper=r;var a={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "};function i(n,t){return n.requestEmitHelper(a),e.createCall(e.getHelperName("__await"),void 0,[t])}var o={name:"typescript:asyncGenerator",scoped:!1,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 };\n '};var s={name:"typescript:asyncDelegator",scoped:!1,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) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '};var l={name:"typescript: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];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};function c(n,t,r){return n.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[t]),r)}}(u||(u={})),function(e){e.transformJsx=function(t){var r,a=t.getCompilerOptions();return function(n){if(n.isDeclarationFile)return n;r=n;var a=e.visitEachChild(n,i,t);return e.addEmitHelpers(a,t.readEmitHelpers()),a};function i(n){return 4&n.transformFlags?function(n){switch(n.kind){case 253:return s(n,!1);case 254:return l(n,!1);case 257:return c(n,!1);case 263:return g(n);default:return e.visitEachChild(n,i,t)}}(n):n}function o(n){switch(n.kind){case 10: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=p(t,n.substr(r,a-r+1))),r=-1):e.isWhiteSpaceSingleLine(o)||(a=i,-1===r&&(r=i))}return-1!==r?p(t,n.substr(r)):t}(e.getTextOfNode(n,!0));return void 0===t?void 0:e.createLiteral(t)}(n);case 263:return g(n);case 253:return s(n,!0);case 254:return l(n,!0);case 257:return c(n,!0);default:return void e.Debug.failBadSyntaxKind(n)}}function s(e,n){return u(e.openingElement,e.children,n,e)}function l(e,n){return u(e,void 0,n,e)}function c(n,i){return function(n,i,s,l){var c=e.createExpressionForJsxFragment(t.getEmitResolver().getJsxFactoryEntity(r),a.reactNamespace,e.mapDefined(i,o),n,l);return s&&e.startOnNewLine(c),c}(n.openingFragment,n.children,i,n)}function u(n,i,s,l){var c,u=function n(t){if(253===t.kind)return n(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?e.createLiteral(e.idText(r)):e.createExpressionFromEntityName(r)}(n),p=n.attributes.properties;if(0===p.length)c=e.createNull();else{var f=e.flatten(e.spanMap(p,e.isJsxSpreadAttribute,function(n,t){return t?e.map(n,d):e.createObjectLiteral(e.map(n,m))}));e.isJsxSpreadAttribute(p[0])&&f.unshift(e.createObjectLiteral()),(c=e.singleOrUndefined(f))||(c=e.createAssignHelper(t,f))}var g=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(r),a.reactNamespace,u,c,e.mapDefined(i,o),n,l);return s&&e.startOnNewLine(g),g}function d(n){return e.visitNode(n.expression,i,e.isExpression)}function m(n){var t=function(n){var t=n.name,r=e.idText(t);return/^[A-Za-z_]\w*$/.test(r)?t:e.createLiteral(r)}(n),a=function(n){if(void 0===n)return e.createTrue();if(9===n.kind){var t=e.createLiteral((a=n.text,((i=f(a))===a?void 0:i)||n.text));return t.singleQuote=void 0!==n.singleQuote?n.singleQuote:!e.isStringDoubleQuoted(n,r),e.setTextRange(t,n)}if(263===n.kind)return void 0===n.expression?e.createTrue():g(n);var a,i;e.Debug.failBadSyntaxKind(n)}(n.initializer);return e.createPropertyAssignment(t,a)}function p(e,n){var t=f(n);return void 0===e?t:e+" "+t}function f(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,r,a,i,o,s){if(i)return String.fromCharCode(parseInt(i,10));if(o)return String.fromCharCode(parseInt(o,16));var l=n.get(s);return l?String.fromCharCode(l):e})}function g(n){return e.visitNode(n.expression,i,e.isExpression)}};var n=e.createMapFromTemplate({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})}(u||(u={})),function(e){e.transformES2016=function(n){var t=n.hoistVariableDeclaration;return function(t){return t.isDeclarationFile?t:e.visitEachChild(t,r,n)};function r(a){if(0==(32&a.transformFlags))return a;switch(a.kind){case 198:return function(a){switch(a.operatorToken.kind){case 62:return function(n){var a,i,o=e.visitNode(n.left,r,e.isExpression),s=e.visitNode(n.right,r,e.isExpression);if(e.isElementAccessExpression(o)){var l=e.createTempVariable(t),c=e.createTempVariable(t);a=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(l,o.expression),o.expression),e.setTextRange(e.createAssignment(c,o.argumentExpression),o.argumentExpression)),o),i=e.setTextRange(e.createElementAccess(l,c),o)}else if(e.isPropertyAccessExpression(o)){var l=e.createTempVariable(t);a=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(l,o.expression),o.expression),o.name),o),i=e.setTextRange(e.createPropertyAccess(l,o.name),o)}else a=o,i=o;return e.setTextRange(e.createAssignment(a,e.createMathPow(i,s,n)),n)}(a);case 40:return function(n){var t=e.visitNode(n.left,r,e.isExpression),a=e.visitNode(n.right,r,e.isExpression);return e.createMathPow(t,a,n)}(a);default:return e.visitEachChild(a,r,n)}}(a);default:return e.visitEachChild(a,r,n)}}}}(u||(u={})),function(e){var n,t,r,a,i;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(n||(n={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(t||(t={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(r||(r={})),function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask"}(i||(i={})),e.transformES2015=function(n){var t,r,a,i,l,c,u=n.startLexicalEnvironment,d=n.resumeLexicalEnvironment,m=n.endLexicalEnvironment,p=n.hoistVariableDeclaration,f=n.getCompilerOptions(),g=n.getEmitResolver(),v=n.onSubstituteNode,_=n.onEmitNode;return n.onEmitNode=function(n,t,r){if(1&c&&e.isFunctionLike(t)){var a=y(16286,8&e.getEmitFlags(t)?81:65);return _(n,t,r),void h(a,0,0)}_(n,t,r)},n.onSubstituteNode=function(n,t){return t=v(n,t),1===n?function(n){switch(n.kind){case 71:return function(n){if(2&c&&!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;for(var a=e.getEnclosingBlockScopeContainer(n);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(e.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 99:return function(n){return 1&c&&16&a?e.setTextRange(e.createIdentifier("_this"),n):n}(n)}return n}(t):e.isIdentifier(t)?function(n){if(2&c&&!e.isInternalName(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t&&function(e){var n=e.parent;switch(n.kind){case 180:case 233:case 236:case 230:return n.name===e&&g.isDeclarationWithCollidingName(n)}return!1}(t))return e.setTextRange(e.getGeneratedNameForNode(t),n)}return n}(t):t},function(o){if(o.isDeclarationFile)return o;t=o,r=o.text;var s=function(n){var t=y(3968,64),r=[];u();var a=e.addStandardPrologue(r,n.statements,!1);return I(r,n),a=e.addCustomPrologue(r,n.statements,a,T),e.addRange(r,e.visitNodes(n.statements,T,e.isStatement,a)),i&&r.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(i))),e.addRange(r,m()),h(t,0,0),e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(r),n.statements))}(o);return e.addEmitHelpers(s,n.readEmitHelpers()),t=void 0,r=void 0,i=void 0,a=0,s};function y(e,n){var t=a;return a=16383&(a&~e|n),t}function h(e,n,t){a=-16384&(a&~n|t)|e}function b(e){return 4096&a&&223===e.kind&&!e.expression}function E(n){return 0!=(128&n.transformFlags)||void 0!==l||4096&a&&(e.isStatement(n)||211===n.kind)||e.isIterationStatement(n,!1)&&ae(n)||0!=(33554432&e.getEmitFlags(n))}function T(r){return E(r)?function(r){switch(r.kind){case 115:return;case 233:return function(n){var t=e.createVariableDeclaration(e.getLocalName(n,!0),void 0,x(n));e.setOriginalNode(t,n);var r=[],a=e.createVariableStatement(void 0,e.createVariableDeclarationList([t]));if(e.setOriginalNode(a,n),e.setTextRange(a,n),e.startOnNewLine(a),r.push(a),e.hasModifier(n,1)){var i=e.hasModifier(n,512)?e.createExportDefault(e.getLocalName(n)):e.createExternalModuleExport(e.getLocalName(n));e.setOriginalNode(i,a),r.push(i)}var o=e.getEmitFlags(n);return 0==(4194304&o)&&(r.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(a,4194304|o)),e.singleOrMany(r)}(r);case 203:return function(e){return x(e)}(r);case 148:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 232:return function(t){var r=l;l=void 0;var i=y(16286,65),o=e.visitParameterList(t.parameters,T,n),s=64&t.transformFlags?K(t):B(t),c=16384&a?e.getLocalName(t):t.name;return h(i,49152,0),l=r,e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,c,void 0,o,void 0,s)}(r);case 191:return function(t){16384&t.transformFlags&&Se();var r=l;l=void 0;var a=y(16256,66),i=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,T,n),void 0,K(t));return e.setTextRange(i,t),e.setOriginalNode(i,t),e.setEmitFlags(i,8),h(a,0,0),l=r,i}(r);case 190:return function(t){var r=262144&e.getEmitFlags(t)?y(16278,69):y(16286,65),i=l;l=void 0;var o=e.visitParameterList(t.parameters,T,n),s=64&t.transformFlags?K(t):B(t),c=16384&a?e.getLocalName(t):t.name;return h(r,49152,0),l=i,e.updateFunctionExpression(t,void 0,t.asteriskToken,c,void 0,o,void 0,s)}(r);case 230:return z(r);case 71:return function(n){return l?e.isGeneratedIdentifier(n)?n:"arguments"===n.escapedText&&g.isArgumentsLocalBinding(n)?l.argumentsName||(l.argumentsName=e.createUniqueName("arguments")):n:n}(r);case 231:return function(t){if(64&t.transformFlags){3&t.flags&&Te();var r=e.flatMap(t.declarations,1&t.flags?q:z),a=e.createVariableDeclarationList(r);if(e.setOriginalNode(a,t),e.setTextRange(a,t),e.setCommentRange(a,t),8388608&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.lastOrUndefined(t.declarations).name))){var i=e.firstOrUndefined(r);if(i){var o=e.lastOrUndefined(r);e.setSourceMapRange(a,e.createRange(i.pos,o.end))}}return a}return e.visitEachChild(t,T,n)}(r);case 225:return function(t){if(void 0!==l){var r=l.allowedNonLabeledJumps;l.allowedNonLabeledJumps|=2;var a=e.visitEachChild(t,T,n);return l.allowedNonLabeledJumps=r,a}return e.visitEachChild(t,T,n)}(r);case 239:return function(t){var r=y(4032,0),a=e.visitEachChild(t,T,n);return h(r,0,0),a}(r);case 211:return U(r,!1);case 222:case 221:return function(t){if(l){var r=222===t.kind?2:4,a=t.label&&l.labels&&l.labels.get(e.idText(t.label))||!t.label&&l.allowedNonLabeledJumps&r;if(!a){var i=void 0;t.label?222===t.kind?(i="break-"+t.label.escapedText,le(l,!0,e.idText(t.label),i)):(i="continue-"+t.label.escapedText,le(l,!1,e.idText(t.label),i)):222===t.kind?(l.nonLocalJumps|=2,i="break"):(l.nonLocalJumps|=4,i="continue");var o=e.createLiteral(i);if(l.loopOutParameters.length){for(var s=l.loopOutParameters,c=void 0,u=0;u<s.length;u++){var d=oe(s[u],1);c=0===u?d:e.createBinary(c,26,d)}o=e.createBinary(c,26,o)}return e.createReturn(o)}}return e.visitEachChild(t,T,n)}(r);case 226:return function(n){l&&!l.labels&&(l.labels=e.createMap());var t=e.unwrapInnermostStatementOfLabel(n,l&&J);return e.isIterationStatement(t,!1)?function(e,n){switch(e.kind){case 216:case 217:return Q(e,n);case 218:return Z(e,n);case 219:return $(e,n);case 220:return ee(e,n)}}(t,n):e.restoreEnclosingLabel(e.visitNode(t,T,e.isStatement),n,l&&X)}(r);case 216:case 217:return Q(r,void 0);case 218:return Z(r,void 0);case 219:return $(r,void 0);case 220:return ee(r,void 0);case 214:return function(t){switch(t.expression.kind){case 189:return e.updateStatement(t,j(t.expression,!1));case 198:return e.updateStatement(t,W(t.expression,!1))}return e.visitEachChild(t,T,n)}(r);case 182:return function(t){for(var r=t.properties,i=r.length,o=i,s=i,l=0;l<i;l++){var c=r[l];if(16777216&c.transformFlags&&4&a&&l<s&&(s=l),146===c.name.kind){o=l;break}}if(o!==i){s<o&&(o=s);var u=e.createTempVariable(p),d=[],m=e.createAssignment(u,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(r,T,e.isObjectLiteralElementLike,0,o),t.multiLine),65536));return t.multiLine&&e.startOnNewLine(m),d.push(m),function(n,t,r,a){for(var i=t.properties,o=i.length,s=a;s<o;s++){var l=i[s];switch(l.kind){case 155:case 156:var c=e.getAllAccessorDeclarations(t.properties,l);l===c.firstAccessor&&n.push(G(r,c,t,t.multiLine));break;case 153:n.push(pe(l,r,t,t.multiLine));break;case 268:n.push(de(l,r,t.multiLine));break;case 269:n.push(me(l,r,t.multiLine));break;default:e.Debug.failBadSyntaxKind(t)}}}(d,t,u,o),d.push(t.multiLine?e.startOnNewLine(e.getMutableClone(u)):u),e.inlineExpressions(d)}return e.visitEachChild(t,T,n)}(r);case 267:return function(t){var r,a,i,o,s=y(4032,0);if(e.Debug.assert(!!t.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(t.variableDeclaration.name)){var l=e.createTempVariable(void 0),c=e.createVariableDeclaration(l);e.setTextRange(c,t.variableDeclaration);var u=e.flattenDestructuringBinding(t.variableDeclaration,T,n,0,l),d=e.createVariableDeclarationList(u);e.setTextRange(d,t.variableDeclaration);var m=e.createVariableStatement(void 0,d);r=e.updateCatchClause(t,c,(a=t.block,i=m,o=e.visitNodes(a.statements,T,e.isStatement),e.updateBlock(a,[i].concat(o))))}else r=e.visitEachChild(t,T,n);return h(s,0,0),r}(r);case 269:return function(n){return e.setTextRange(e.createPropertyAssignment(n.name,e.getSynthesizedClone(n.name)),n)}(r);case 146:return function(t){var r=y(0,8192),i=e.visitEachChild(t,T,n);return h(r,49152,49152&a?32768:0),i}(r);case 181:return function(t){return 64&t.transformFlags?ge(t.elements,!0,t.multiLine,t.elements.hasTrailingComma):e.visitEachChild(t,T,n)}(r);case 185:return function(n){return 33554432&e.getEmitFlags(n)?function(n){var t=e.cast(e.cast(e.skipOuterExpressions(n.expression),e.isArrowFunction).body,e.isBlock),r=e.visitNodes(t.statements,T,e.isStatement,0,1),a=e.visitNodes(t.statements,T,e.isStatement,1,t.statements.length-1),i=e.cast(e.firstOrUndefined(r),e.isVariableStatement).declarationList.declarations[0],o=e.skipOuterExpressions(i.initializer),s=e.tryCast(o,e.isAssignmentExpression),l=e.cast(s?e.skipOuterExpressions(s.right):o,e.isCallExpression),c=e.cast(e.skipOuterExpressions(l.expression),e.isFunctionExpression),u=c.body.statements,d=0,m=-1,p=[];if(s){var f=e.tryCast(u[d],e.isExpressionStatement);f&&(p.push(f),d++),p.push(u[d]),d++,p.push(e.createStatement(e.createAssignment(s.left,e.cast(i.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(u,m));)m--;return e.addRange(p,u,d,m),m<-1&&e.addRange(p,u,m+1),e.addRange(p,a),e.addRange(p,r,1),e.recreateOuterExpressions(n.expression,e.recreateOuterExpressions(i.initializer,e.recreateOuterExpressions(s&&s.right,e.updateCall(l,e.recreateOuterExpressions(l.expression,e.updateFunctionExpression(c,void 0,void 0,void 0,void 0,c.parameters,void 0,e.updateBlock(c.body,p))),void 0,l.arguments))))}(n):64&n.transformFlags?fe(n,!0):e.updateCall(n,e.visitNode(n.expression,L,e.isExpression),void 0,e.visitNodes(n.arguments,T,e.isExpression))}(r);case 186:return function(t){if(524288&t.transformFlags){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),p),a=r.target,i=r.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(a,T,e.isExpression),i,ge(e.createNodeArray([e.createVoidZero()].concat(t.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(t,T,n)}(r);case 189:return j(r,!0);case 198:return W(r,!0);case 13:case 14:case 15:case 16:return function(n){return e.setTextRange(e.createLiteral(n.text),n)}(r);case 9:return function(n){return n.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(n.text),n):n}(r);case 8:return function(n){return 384&n.numericLiteralFlags?e.setTextRange(e.createNumericLiteral(n.text),n):n}(r);case 187:return function(r){var a=e.visitNode(r.tag,T,e.isExpression),o=[void 0],l=[],c=[],u=r.template;if(e.isNoSubstitutionTemplateLiteral(u))l.push(e.createLiteral(u.text)),c.push(be(u));else{l.push(e.createLiteral(u.head.text)),c.push(be(u.head));for(var d=0,m=u.templateSpans;d<m.length;d++){var p=m[d];l.push(e.createLiteral(p.literal.text)),c.push(be(p.literal)),o.push(e.visitNode(p.expression,T,e.isExpression))}}var f,g=function(n,t,r){return n.requestEmitHelper(s),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[t,r])}(n,e.createArrayLiteral(l),e.createArrayLiteral(c));if(e.isExternalModule(t)){var v=e.createUniqueName("templateObject");f=v,i=e.append(i,e.createVariableDeclaration(f)),o[0]=e.createLogicalOr(v,e.createAssignment(v,g))}else o[0]=g;return e.createCall(a,void 0,o)}(r);case 200:return function(n){var t=[];(function(n,t){(function(n){return e.Debug.assert(0!==n.templateSpans.length),0!==n.head.text.length||0===n.templateSpans[0].literal.text.length})(t)&&n.push(e.createLiteral(t.head.text))})(t,n),function(n,t){for(var r=0,a=t.templateSpans;r<a.length;r++){var i=a[r];n.push(e.visitNode(i.expression,T,e.isExpression)),0!==i.literal.text.length&&n.push(e.createLiteral(i.literal.text))}}(t,n);var r=e.reduceLeft(t,e.createAdd);return e.nodeIsSynthesized(r)&&(r.pos=n.pos,r.end=n.end),r}(r);case 201:return function(t){return e.visitEachChild(t,T,n)}(r);case 202:return function(n){return e.visitNode(n.expression,T,e.isExpression)}(r);case 97:return Ee(!1);case 99:return function(n){return l?2&a?(l.containsLexicalThis=!0,n):l.thisName||(l.thisName=e.createUniqueName("this")):n}(r);case 208:return function(n){return 94===n.keywordToken&&"target"===n.name.escapedText?(a|=8192&a?32768:16384,e.createIdentifier("_newTarget")):n}(r);case 153:return function(n){e.Debug.assert(!e.isComputedPropertyName(n.name));var t=H(n,e.moveRangePos(n,-1),void 0,void 0);return e.setEmitFlags(t,512|e.getEmitFlags(t)),e.setTextRange(e.createPropertyAssignment(n.name,t),n)}(r);case 155:case 156:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=l;l=void 0;var a,i=y(16286,65);if(32768&t.transformFlags){var o=e.visitParameterList(t.parameters,T,n),s=K(t);a=155===t.kind?e.updateGetAccessor(t,t.decorators,t.modifiers,t.name,o,t.type,s):e.updateSetAccessor(t,t.decorators,t.modifiers,t.name,o,s)}else a=e.visitEachChild(t,T,n);return h(i,49152,0),l=r,a}(r);case 212:return function(t){var r,a=y(0,e.hasModifier(t,1)?32:0);if(l&&0==(3&t.declarationList.flags)){for(var i=void 0,o=0,s=t.declarationList.declarations;o<s.length;o++){var c=s[o];if(ie(l,c),c.initializer){var u=void 0;e.isBindingPattern(c.name)?u=e.flattenDestructuringAssignment(c,T,n,0):(u=e.createBinary(c.name,58,e.visitNode(c.initializer,T,e.isExpression)),e.setTextRange(u,c)),i=e.append(i,u)}}r=i?e.setTextRange(e.createStatement(e.inlineExpressions(i)),t):void 0}else r=e.visitEachChild(t,T,n);return h(a,0,0),r}(r);case 223:return function(t){return l?(l.nonLocalJumps|=8,b(t)&&(t=A(t)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),t.expression?e.visitNode(t.expression,T,e.isExpression):e.createVoidZero())]))):b(t)?A(t):e.visitEachChild(t,T,n)}(r);default:return e.visitEachChild(r,T,n)}}(r):r}function S(e){return E(e)?U(e,!0):e}function L(e){return 97===e.kind?Ee(!0):T(e)}function A(n){return e.setOriginalNode(e.createReturn(e.createIdentifier("_this")),n)}function x(t){t.name&&Te();var i=e.getClassExtendsHeritageClauseElement(t),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,i?[e.createParameter(void 0,void 0,void 0,"_super")]:[],void 0,function(t,i){var s=[];u(),function(t,r,a){a&&t.push(e.setTextRange(e.createStatement(function(n,t){return n.requestEmitHelper(o),e.createCall(e.getHelperName("__extends"),void 0,[t,e.createIdentifier("_super")])}(n,e.getInternalName(r))),a))}(s,t,i),function(t,r,i){var o=l;l=void 0;var s=y(16278,73),c=e.getFirstConstructorWithBody(r),u=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)||214!==r.kind)return!1;var a=r.expression;if(!e.nodeIsSynthesized(a)||185!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||97!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||202!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(c,void 0!==i),p=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(r),void 0,function(t,r){return e.visitParameterList(t&&!r&&t.parameters,T,n)||[]}(c,u),void 0,function(n,t,r,i){var o=[];d();var s=-1;i?s=0:n&&(s=e.addStandardPrologue(o,n.body.statements,!1)),n&&(M(o,n),R(o,n,i),i||(s=e.addCustomPrologue(o,n.body.statements,s,T)),e.Debug.assert(s>=0,"statementOffset not initialized correctly!"));var l=r&&95!==e.skipOuterExpressions(r.expression).kind,c=function(n,t,r,a,i){if(!r)return t&&I(n,t),0;if(!t)return n.push(e.createReturn(k())),2;if(a)return N(n,t,k()),Se(),1;var o,s,l,c=t.body.statements;if(i<c.length&&214===(o=c[i]).kind&&e.isSuperCall(o.expression)&&(l=o.expression,s=fe(l,!1)),s&&i===c.length-1&&!(49152&t.transformFlags)){var u=e.createReturn(s);return 198===s.kind&&185===s.left.kind||e.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),e.setCommentRange(u,e.getCommentRange(e.setEmitFlags(s.left,1536))),n.push(u),2}return N(n,t,s||C(),o),s?1:0}(o,n,l,i,s);1!==c&&2!==c||s++,n&&(1===c&&(a|=4096),e.addRange(o,e.visitNodes(n.body.statements,T,e.isStatement,s))),!l||2===c||n&&function n(t){if(223===t.kind)return!0;if(215===t.kind){var r=t;if(r.elseStatement)return n(r.thenStatement)&&n(r.elseStatement)}else if(211===t.kind){var a=e.lastOrUndefined(t.statements);if(a&&n(a))return!0}return!1}(n.body)||o.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(o,m()),n&&w(o,n,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(o),n?n.body.statements:t.members),!0);return e.setTextRange(u,n?n.body:t),n||e.setEmitFlags(u,1536),u}(c,r,i,u));e.setTextRange(p,c||r),i&&e.setEmitFlags(p,8),t.push(p),h(s,49152,0),l=o}(s,t,i),function(n,t){for(var r=0,a=t.members;r<a.length;r++){var i=a[r];switch(i.kind){case 210:n.push(P(i));break;case 153:n.push(F(Le(t,i),i,t));break;case 155:case 156:var o=e.getAllAccessorDeclarations(t.members,i);i===o.firstAccessor&&n.push(V(Le(t,i),o,t));break;case 154:break;default:e.Debug.failBadSyntaxKind(t)}}}(s,t);var c=e.createTokenRange(e.skipTrivia(r,t.members.end),18),p=e.getInternalName(t),f=e.createPartiallyEmittedExpression(p);f.end=c.end,e.setEmitFlags(f,1536);var g=e.createReturn(f);g.pos=c.pos,e.setEmitFlags(g,1920),s.push(g),e.addRange(s,m());var v=e.createBlock(e.setTextRange(e.createNodeArray(s),t.members),!0);return e.setEmitFlags(v,1536),v}(t,i));e.setEmitFlags(s,65536&e.getEmitFlags(t)|524288);var c=e.createPartiallyEmittedExpression(s);c.end=t.end,e.setEmitFlags(c,1536);var p=e.createPartiallyEmittedExpression(c);p.end=e.skipTrivia(r,t.pos),e.setEmitFlags(p,1536);var f=e.createParen(e.createCall(p,void 0,i?[e.visitNode(i.expression,T,e.isExpression)]:[]));return e.addSyntheticLeadingComment(f,3,"* @class "),f}function C(){return e.setEmitFlags(e.createThis(),4)}function k(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createIdentifier("_super"),e.createNull()),e.createFunctionApply(e.createIdentifier("_super"),C(),e.createIdentifier("arguments"))),C())}function M(n,t){if(function(e){return 0!=(131072&e.transformFlags)}(t))for(var r=0,a=t.parameters;r<a.length;r++){var i=a[r],o=i.name,s=i.initializer;i.dotDotDotToken||(e.isBindingPattern(o)?D(n,i,o,s):s&&O(n,i,o,s))}}function D(t,r,a,i){var o=e.getGeneratedNameForNode(r);a.elements.length>0?t.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,T,n,0,o))),1048576)):i&&t.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(i,T,e.isExpression))),1048576))}function O(n,t,r,a){a=e.visitNode(a,T,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(a,1584|e.getEmitFlags(a))),t),1536))]),t),1953));e.startOnNewLine(i),e.setTextRange(i,t),e.setEmitFlags(i,1050528),n.push(i)}function R(n,t,r){var a=e.lastOrUndefined(t.parameters);if(function(e,n){return e&&e.dotDotDotToken&&71===e.name.kind&&!n}(a,r)){var i=e.getMutableClone(a.name);e.setEmitFlags(i,48);var o=e.getSynthesizedClone(a.name),s=t.parameters.length-1,l=e.createLoopVariable();n.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createArrayLiteral([]))])),a),1048576));var c=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(l,void 0,e.createLiteral(s))]),a),e.setTextRange(e.createLessThan(l,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),a),e.setTextRange(e.createPostfixIncrement(l),a),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?l:e.createSubtract(l,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),l))),a))]));e.setEmitFlags(c,1048576),e.startOnNewLine(c),n.push(c)}}function I(n,t){32768&t.transformFlags&&191!==t.kind&&N(n,t,e.createThis())}function N(n,t,r,a){Se();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(i,1050112),e.setTextRange(i,a),e.setSourceMapRange(i,t),n.push(i)}function w(n,t,r){if(16384&a){var i=void 0;switch(t.kind){case 191:return n;case 153:case 155:case 156:i=e.createVoidZero();break;case 154:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 232:case 190:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(t))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(t)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[o].concat(n);n.unshift(o)}return n}function P(n){return e.setTextRange(e.createEmptyStatement(),n)}function F(n,t,r){var i=y(0,0),o=e.getCommentRange(t),s=e.getSourceMapRange(t),l=e.createMemberAccessForPropertyName(n,e.visitNode(t.name,T,e.isPropertyName),t.name),c=H(t,t,void 0,r);e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var u=e.setTextRange(e.createStatement(e.createAssignment(l,c)),t);return e.setOriginalNode(u,t),e.setCommentRange(u,o),e.setEmitFlags(u,48),h(i,49152,49152&a?16384:0),u}function V(n,t,r){var a=e.createStatement(G(n,t,r,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(t.firstAccessor)),a}function G(n,t,r,i){var o=t.firstAccessor,s=t.getAccessor,l=t.setAccessor,c=y(0,0),u=e.getMutableClone(n);e.setEmitFlags(u,1568),e.setSourceMapRange(u,o.name);var d=e.createExpressionForPropertyName(e.visitNode(o.name,T,e.isPropertyName));e.setEmitFlags(d,1552),e.setSourceMapRange(d,o.name);var m=[];if(s){var p=H(s,void 0,void 0,r);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(s)),m.push(f)}if(l){var g=H(l,void 0,void 0,r);e.setSourceMapRange(g,e.getSourceMapRange(l)),e.setEmitFlags(g,512);var v=e.createPropertyAssignment("set",g);e.setCommentRange(v,e.getCommentRange(l)),m.push(v)}m.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var _=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[u,d,e.createObjectLiteral(m,!0)]);return i&&e.startOnNewLine(_),h(c,49152,49152&a?16384:0),_}function H(t,r,i,o){var s=l;l=void 0;var c=o&&e.isClassLike(o)&&!e.hasModifier(t,32)?y(16286,73):y(16286,65),u=e.visitParameterList(t.parameters,T,n),d=K(t);return 16384&a&&!i&&(232===t.kind||190===t.kind)&&(i=e.getGeneratedNameForNode(t)),h(c,49152,0),l=s,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,t.asteriskToken,i,void 0,u,void 0,d),r),t)}function K(r){var a,i,o,s=!1,l=!1,c=[],u=r.body;if(d(),e.isBlock(u)&&(o=e.addStandardPrologue(c,u.statements,!1)),I(c,r),M(c,r),R(c,r,!1),!s&&c.length>0&&(s=!0),e.isBlock(u))o=e.addCustomPrologue(c,u.statements,o,T),a=u.statements,e.addRange(c,e.visitNodes(u.statements,T,e.isStatement,o)),!s&&u.multiLine&&(s=!0);else{e.Debug.assert(191===r.kind),a=e.moveRangeEnd(u,-1);var m=r.equalsGreaterThanToken;e.nodeIsSynthesized(m)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(m,u,t)?l=!0:s=!0);var p=e.visitNode(u,T,e.isExpression),f=e.createReturn(p);e.setTextRange(f,u),e.setEmitFlags(f,1440),c.push(f),i=u}var g=n.endLexicalEnvironment();e.addRange(c,g),w(c,r,!1),!s&&g&&g.length&&(s=!0);var v=e.createBlock(e.setTextRange(e.createNodeArray(c),a),s);return e.setTextRange(v,r.body),!s&&l&&e.setEmitFlags(v,1),i&&e.setTokenSourceMapRange(v,18,i),e.setOriginalNode(v,r.body),v}function B(t){var r=e.visitFunctionBody(t.body,S,n);return e.updateBlock(r,e.setTextRange(e.createNodeArray(w(r.statements,t,!0)),r.statements))}function U(t,r){if(r)return e.visitEachChild(t,T,n);var i=256&a?y(4032,512):y(3904,128),o=e.visitEachChild(t,T,n);return h(i,0,0),o}function j(t,r){if(!r)switch(t.expression.kind){case 189:return e.updateParen(t,j(t.expression,!1));case 198:return e.updateParen(t,W(t.expression,!1))}return e.visitEachChild(t,T,n)}function W(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,T,n,0,r):e.visitEachChild(t,T,n)}function q(t){var r=t.name;if(e.isBindingPattern(r))return z(t);if(!t.initializer&&function(e){var n=g.getNodeCheckFlags(e),t=131072&n,r=262144&n;return!(0!=(64&a)||t&&r&&0!=(512&a))&&0==(2048&a)&&(!g.isDeclarationWithCollidingName(e)||r&&!t&&0==(3072&a))}(t)){var i=e.getMutableClone(t);return i.initializer=e.createVoidZero(),i}return e.visitEachChild(t,T,n)}function z(t){var r,a=y(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,T,n,0,void 0,0!=(32&a)):e.visitEachChild(t,T,n),h(a,0,0),r}function J(n){l.labels.set(e.idText(n.label),!0)}function X(n){l.labels.set(e.idText(n.label),!1)}function Y(t,r,i,o,s){var c=y(t,r),d=function(t,r,i){if(!ae(t)){var o=void 0;l&&(o=l.allowedNonLabeledJumps,l.allowedNonLabeledJumps=6);var s=i?i(t,r,void 0):e.restoreEnclosingLabel(e.visitEachChild(t,T,n),r,l&&X);return l&&(l.allowedNonLabeledJumps=o),s}var c,d=e.createUniqueName("_loop");switch(t.kind){case 218:case 219:case 220:var p=t.initializer;p&&231===p.kind&&(c=p)}var f=[],g=[];if(c&&3&e.getCombinedNodeFlags(c))for(var v=0,_=c.declarations;v<_.length;v++){var y=_[v];ue(y,f,g)}var h=l;l={loopOutParameters:g},h&&(h.argumentsName&&(l.argumentsName=h.argumentsName),h.thisName&&(l.thisName=h.thisName),h.hoistedLocalVariables&&(l.hoistedLocalVariables=h.hoistedLocalVariables)),u();var b=e.visitNode(t.statement,T,e.isStatement,e.liftToBlock),E=m(),S=l;if(l=h,g.length||E){var L=e.isBlock(b)?b.statements.slice():[b];g.length&&se(g,1,L),e.addRange(L,E),b=e.createBlock(L,!0)}e.isBlock(b)?b.multiLine=!0:b=e.createBlock([b],!0);var A=0!=(16777216&t.statement.transformFlags),x=A&&0!=(4&a),C=0;S.containsLexicalThis&&(C|=8),x&&(C|=262144);var k,M=[e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(d,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,A?e.createToken(39):void 0,void 0,void 0,f,void 0,b),C))]),2097152))];if(S.argumentsName&&(h?h.argumentsName=S.argumentsName:(k||(k=[])).push(e.createVariableDeclaration(S.argumentsName,void 0,e.createIdentifier("arguments")))),S.thisName&&(h?h.thisName=S.thisName:(k||(k=[])).push(e.createVariableDeclaration(S.thisName,void 0,e.createIdentifier("this")))),S.hoistedLocalVariables)if(h)h.hoistedLocalVariables=S.hoistedLocalVariables;else{k||(k=[]);for(var D=0,O=S.hoistedLocalVariables;D<O.length;D++){var R=O[D];k.push(e.createVariableDeclaration(R))}}if(g.length){k||(k=[]);for(var I=0,N=g;I<N.length;I++){var w=N[I];k.push(e.createVariableDeclaration(w.outParamName))}}k&&M.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(k)));var P,F=function(n,t,r,a){var i=l,o=[],s=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),c=e.createCall(n,void 0,e.map(t,function(e){return e.name})),u=a?e.createYield(e.createToken(39),e.setEmitFlags(c,8388608)):c;if(s)o.push(e.createStatement(u)),se(r.loopOutParameters,0,o);else{var d=e.createUniqueName("state"),m=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(d,void 0,u)]));if(o.push(m),se(r.loopOutParameters,0,o),8&r.nonLocalJumps){var p=void 0;i?(i.nonLocalJumps|=8,p=e.createReturn(d)):p=e.createReturn(e.createPropertyAccess(d,"value")),o.push(e.createIf(e.createBinary(e.createTypeOf(d),34,e.createLiteral("object")),p))}if(2&r.nonLocalJumps&&o.push(e.createIf(e.createBinary(d,34,e.createLiteral("break")),e.createBreak())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var f=[];ce(r.labeledNonLocalBreaks,!0,d,i,f),ce(r.labeledNonLocalContinues,!1,d,i,f),o.push(e.createSwitch(d,e.createCaseBlock(f)))}}return o}(d,f,S,A);if(i)P=i(t,r,F);else{var V=e.getMutableClone(t);V.statement=void 0,(V=e.visitEachChild(V,T,n)).statement=e.createBlock(F,!0),V.transformFlags=0,e.aggregateTransformFlags(V),P=e.restoreEnclosingLabel(V,r,l&&X)}return M.push(P),M}(i,o,s);return h(c,0,0),d}function Q(e,n){return Y(0,256,e,n)}function Z(e,n){return Y(3008,1280,e,n)}function $(e,n){return Y(1984,2304,e,n)}function ee(e,n){return Y(1984,2304,e,n,f.downlevelIteration?re:te)}function ne(t,r,a){var i,o,s=[];if(e.isVariableDeclarationList(t.initializer)){3&t.initializer.flags&&Te();var l=e.firstOrUndefined(t.initializer.declarations);if(l&&e.isBindingPattern(l.name)){var c=e.flattenDestructuringBinding(l,T,n,0,r),u=e.setTextRange(e.createVariableDeclarationList(c),t.initializer);e.setOriginalNode(u,t.initializer);var d=c[0],m=e.lastOrUndefined(c);e.setSourceMapRange(u,e.createRange(d.pos,m.end)),s.push(e.createVariableStatement(void 0,u))}else s.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(l?l.name:e.createTempVariable(void 0),void 0,r)]),e.moveRangePos(t.initializer,-1)),t.initializer)),e.moveRangeEnd(t.initializer,-1)))}else{var p=e.createAssignment(t.initializer,r);e.isDestructuringAssignment(p)?(e.aggregateTransformFlags(p),s.push(e.createStatement(W(p,!1)))):(p.end=t.initializer.end,s.push(e.setTextRange(e.createStatement(e.visitNode(p,T,e.isExpression)),e.moveRangeEnd(t.initializer,-1))))}if(a)e.addRange(s,a);else{var f=e.visitNode(t.statement,T,e.isStatement,e.liftToBlock);e.isBlock(f)?(e.addRange(s,f.statements),i=f,o=f.statements):s.push(f)}return e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(s),o),!0),i),432)}function te(n,t,r){var a=e.visitNode(n.expression,T,e.isExpression),i=e.createLoopVariable(),o=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0);e.setEmitFlags(a,48|e.getEmitFlags(a));var s=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i,void 0,e.createLiteral(0)),e.moveRangePos(n.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,void 0,a),n.expression)]),n.expression),2097152),e.setTextRange(e.createLessThan(i,e.createPropertyAccess(o,"length")),n.expression),e.setTextRange(e.createPostfixIncrement(i),n.expression),ne(n,e.createElementAccess(o,i),r)),n);return e.setEmitFlags(s,256),e.setTextRange(s,n),e.restoreEnclosingLabel(s,t,l&&X)}function re(t,r,a){var i=e.visitNode(t.expression,T,e.isExpression),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),s=e.isIdentifier(i)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),c=e.createUniqueName("e"),u=e.getGeneratedNameForNode(c),d=e.createTempVariable(void 0),m=e.createValuesHelper(n,i,t.expression),f=e.createCall(e.createPropertyAccess(o,"next"),void 0,[]);p(c),p(d);var g=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,void 0,m),t.expression),e.createVariableDeclaration(s,void 0,f)]),t.expression),2097152),e.createLogicalNot(e.createPropertyAccess(s,"done")),e.createAssignment(s,f),ne(t,e.createPropertyAccess(s,"value"),a)),t),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(g,r,l&&X)]),e.createCatchClause(e.createVariableDeclaration(u),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(c,e.createObjectLiteral([e.createPropertyAssignment("error",u)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(e.createPropertyAccess(s,"done"))),e.createAssignment(d,e.createPropertyAccess(o,"return"))),e.createStatement(e.createFunctionCall(d,o,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(c,e.createThrow(e.createPropertyAccess(c,"error"))),1)]),1))]))}function ae(e){return 0!=(65536&g.getNodeCheckFlags(e))}function ie(n,t){n.hoistedLocalVariables||(n.hoistedLocalVariables=[]),function t(r){if(71===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 oe(n,t){var r=0===t?n.outParamName:n.originalName,a=0===t?n.originalName:n.outParamName;return e.createBinary(a,58,r)}function se(n,t,r){for(var a=0,i=n;a<i.length;a++){var o=i[a];r.push(e.createStatement(oe(o,t)))}}function le(n,t,r,a){t?(n.labeledNonLocalBreaks||(n.labeledNonLocalBreaks=e.createMap()),n.labeledNonLocalBreaks.set(r,a)):(n.labeledNonLocalContinues||(n.labeledNonLocalContinues=e.createMap()),n.labeledNonLocalContinues.set(r,a))}function ce(n,t,r,a,i){n&&n.forEach(function(n,o){var s=[];if(!a||a.labels&&a.labels.get(o)){var l=e.createIdentifier(o);s.push(t?e.createBreak(l):e.createContinue(l))}else le(a,t,o,n),s.push(e.createReturn(r));i.push(e.createCaseClause(e.createLiteral(n),s))})}function ue(n,t,r){var a=n.name;if(e.isBindingPattern(a))for(var i=0,o=a.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||ue(s,t,r)}else if(t.push(e.createParameter(void 0,void 0,void 0,a)),2097152&g.getNodeCheckFlags(n)){var l=e.createUniqueName("out_"+e.idText(a));r.push({originalName:a,outParamName:l})}}function de(n,t,r){var a=e.createAssignment(e.createMemberAccessForPropertyName(t,e.visitNode(n.name,T,e.isPropertyName)),e.visitNode(n.initializer,T,e.isExpression));return e.setTextRange(a,n),r&&e.startOnNewLine(a),a}function me(n,t,r){var a=e.createAssignment(e.createMemberAccessForPropertyName(t,e.visitNode(n.name,T,e.isPropertyName)),e.getSynthesizedClone(n.name));return e.setTextRange(a,n),r&&e.startOnNewLine(a),a}function pe(n,t,r,i){var o=y(0,0),s=e.createAssignment(e.createMemberAccessForPropertyName(t,e.visitNode(n.name,T,e.isPropertyName)),H(n,n,void 0,r));return e.setTextRange(s,n),i&&e.startOnNewLine(s),h(o,49152,49152&a?16384:0),s}function fe(t,r){if(524288&t.transformFlags||97===t.expression.kind||e.isSuperProperty(e.skipOuterExpressions(t.expression))){var a=e.createCallBinding(t.expression,p),i=a.target,o=a.thisArg;97===t.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=524288&t.transformFlags?e.createFunctionApply(e.visitNode(i,L,e.isExpression),e.visitNode(o,T,e.isExpression),ge(t.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(i,L,e.isExpression),e.visitNode(o,T,e.isExpression),e.visitNodes(t.arguments,T,e.isExpression),t),97===t.expression.kind){var l=e.createThis();e.setEmitFlags(l,4);var c=e.createLogicalOr(s,l);s=r?e.createAssignment(e.createIdentifier("_this"),c):c}return e.setOriginalNode(s,t)}return e.visitEachChild(t,T,n)}function ge(t,r,a,i){var o=t.length,s=e.flatten(e.spanMap(t,ve,function(e,n,t,r){return n(e,a,i&&r===o)}));if(f.downlevelIteration){if(1===s.length){var l=s[0];if(e.isCallExpression(l)&&e.isIdentifier(l.expression)&&4096&e.getEmitFlags(l.expression)&&"___spread"===l.expression.escapedText)return s[0]}return e.createSpreadHelper(n,s)}if(1===s.length){var c=t[0];return r&&e.isSpreadElement(c)&&181!==c.expression.kind?e.createArraySlice(s[0]):s[0]}return e.createArrayConcat(s.shift(),s)}function ve(n){return e.isSpreadElement(n)?_e:ye}function _e(n){return e.map(n,he)}function ye(n,t,r){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(n,r),T,e.isExpression),t)}function he(n){return e.visitNode(n.expression,T,e.isExpression)}function be(n){var r=e.getSourceTextOfNodeFromSourceFile(t,n),a=13===n.kind||16===n.kind;return r=(r=r.substring(1,r.length-(a?1:2))).replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(r),n)}function Ee(n){return 8&a&&!n?e.createPropertyAccess(e.createIdentifier("_super"),"prototype"):e.createIdentifier("_super")}function Te(){0==(2&c)&&(c|=2,n.enableSubstitution(71))}function Se(){0==(1&c)&&(c|=1,n.enableSubstitution(99),n.enableEmitNotification(154),n.enableEmitNotification(153),n.enableEmitNotification(155),n.enableEmitNotification(156),n.enableEmitNotification(191),n.enableEmitNotification(190),n.enableEmitNotification(232))}function Le(n,t){return e.hasModifier(t,32)?e.getInternalName(n):e.createPropertyAccess(e.getInternalName(n),"prototype")}};var o={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},s={name:"typescript: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 };'}}(u||(u={})),function(e){e.transformES5=function(n){var t,r,a=n.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(t=n.onEmitNode,n.onEmitNode=function(n,a,i){switch(a.kind){case 255:case 256:case 254:var o=a.tagName;r[e.getOriginalNodeId(o)]=!0}t(n,a,i)},n.enableEmitNotification(255),n.enableEmitNotification(256),n.enableEmitNotification(254),r=[]);var i=n.onSubstituteNode;return n.onSubstituteNode=function(n,t){return t.id&&r&&r[t.id]?i(n,t):(t=i(n,t),e.isPropertyAccessExpression(t)?function(n){var t=o(n.name);return t?e.setTextRange(e.createElementAccess(n.expression,t),n):n}(t):e.isPropertyAssignment(t)?function(n){var t=e.isIdentifier(n.name)&&o(n.name);return t?e.updatePropertyAssignment(n,t,n.initializer):n}(t):t)},n.enableSubstitution(183),n.enableSubstitution(268),function(e){return e};function o(n){var t=n.originalKeywordKind||(e.nodeIsSynthesized(n)?e.stringToToken(e.idText(n)):void 0);if(t>=72&&t<=107)return e.setTextRange(e.createLiteral(n),n)}}}(u||(u={})),function(e){var n,t,r,a,i;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(n||(n={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(t||(t={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(i||(i={})),e.transformGenerators=function(n){var t,r,a,i,s,l,c,u,d,m,p=n.resumeLexicalEnvironment,f=n.endLexicalEnvironment,g=n.hoistFunctionDeclaration,v=n.hoistVariableDeclaration,_=n.getCompilerOptions(),y=e.getEmitScriptTarget(_),h=n.getEmitResolver(),b=n.onSubstituteNode;n.onSubstituteNode=function(n,a){return a=b(n,a),1===n?function(n){return e.isIdentifier(n)?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=h.getReferencedValueDeclaration(a);if(i){var o=r[e.getOriginalNodeId(i)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n):n}(a):a};var E,T,S,L,A,x,C,k,M,D,O,R,I=1,N=0,w=0;return function(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;var r=e.visitEachChild(t,P,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r};function P(t){var r=t.transformFlags;return i?function(t){switch(t.kind){case 216:case 217:return function(t){return i?(re(),t=e.visitEachChild(t,P,n),ie(),t):e.visitEachChild(t,P,n)}(t);case 225:return function(t){return i&&$({kind:2,isScript:!0,breakLabel:-1}),t=e.visitEachChild(t,P,n),i&&oe(),t}(t);case 226:return function(t){return i&&$({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1}),t=e.visitEachChild(t,P,n),i&&se(),t}(t);default:return F(t)}}(t):a?F(t):256&r?function(t){switch(t.kind){case 232:return V(t);case 190:return G(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,P,n)}}(t):512&r?e.visitEachChild(t,P,n):t}function F(t){switch(t.kind){case 232:return V(t);case 190:return G(t);case 155:case 156:return function(t){var r=a,o=i;return a=!1,i=!1,t=e.visitEachChild(t,P,n),a=r,i=o,t}(t);case 212:return function(n){if(16777216&n.transformFlags)W(n.declarationList);else{if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t<r.length;t++){var a=r[t];v(a.name)}var i=e.getInitializedVariables(n.declarationList);if(0!==i.length)return e.setSourceMapRange(e.createStatement(e.inlineExpressions(e.map(i,q))),n)}}(t);case 218:return function(t){i&&re();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];v(s.name)}var l=e.getInitializedVariables(r);t=e.updateFor(t,l.length>0?e.inlineExpressions(e.map(l,q)):void 0,e.visitNode(t.condition,P,e.isExpression),e.visitNode(t.incrementor,P,e.isExpression),e.visitNode(t.statement,P,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,P,n);return i&&ie(),t}(t);case 219:return function(t){i&&re();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];v(s.name)}t=e.updateForIn(t,r.declarations[0].name,e.visitNode(t.expression,P,e.isExpression),e.visitNode(t.statement,P,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,P,n);return i&&ie(),t}(t);case 222:return function(t){if(i){var r=me(t.label&&e.idText(t.label));if(r>0)return ve(r,t)}return e.visitEachChild(t,P,n)}(t);case 221:return function(t){if(i){var r=pe(t.label&&e.idText(t.label));if(r>0)return ve(r,t)}return e.visitEachChild(t,P,n)}(t);case 223:return function(n){return t=e.visitNode(n.expression,P,e.isExpression),r=n,e.setTextRange(e.createReturn(e.createArrayLiteral(t?[ge(2),t]:[ge(2)])),r);var t,r}(t);default:return 16777216&t.transformFlags?function(t){switch(t.kind){case 198:return function(t){switch(e.getExpressionAssociativity(t)){case 0:return function(t){if(z(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return function(n){var t=Q(),r=Y();return he(r,e.visitNode(n.left,P,e.isExpression),n.left),53===n.operatorToken.kind?Te(t,r,n.left):Ee(t,r,n.left),he(r,e.visitNode(n.right,P,e.isExpression),n.right),Z(t),r}(t);if(26===t.operatorToken.kind)return function(n){var t=[];return r(n.left),r(n.right),e.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&26===n.operatorToken.kind?(r(n.left),r(n.right)):(z(n)&&t.length>0&&(Se(1,[e.createStatement(e.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,P,e.isExpression)))}}(t);var r=e.getMutableClone(t);return r.left=X(e.visitNode(t.left,P,e.isExpression)),r.right=e.visitNode(t.right,P,e.isExpression),r}return e.visitEachChild(t,P,n)}(t);case 1:return function(t){var r,a=t.left,i=t.right;if(z(i)){var o=void 0;switch(a.kind){case 183:o=e.updatePropertyAccess(a,X(e.visitNode(a.expression,P,e.isLeftHandSideExpression)),a.name);break;case 184:o=e.updateElementAccess(a,X(e.visitNode(a.expression,P,e.isLeftHandSideExpression)),X(e.visitNode(a.argumentExpression,P,e.isExpression)));break;default:o=e.visitNode(a,P,e.isExpression)}var s=t.operatorToken.kind;return(r=s)>=59&&r<=70?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(X(o),function(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}(s),e.visitNode(i,P,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,P,e.isExpression))}return e.visitEachChild(t,P,n)}(t);default:e.Debug.fail("Unknown associativity.")}}(t);case 199:return function(t){if(z(t.whenTrue)||z(t.whenFalse)){var r=Q(),a=Q(),i=Y();return Te(r,e.visitNode(t.condition,P,e.isExpression),t.condition),he(i,e.visitNode(t.whenTrue,P,e.isExpression),t.whenTrue),be(a),Z(r),he(i,e.visitNode(t.whenFalse,P,e.isExpression),t.whenFalse),Z(a),i}return e.visitEachChild(t,P,n)}(t);case 201:return function(t){var r,a=Q(),i=e.visitNode(t.expression,P,e.isExpression);if(t.asteriskToken){var o=0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i;!function(e,n){Se(7,[e],n)}(o,t)}else!function(e,n){Se(6,[e],n)}(i,t);return Z(a),r=t,e.setTextRange(e.createCall(e.createPropertyAccess(L,"sent"),void 0,[]),r)}(t);case 181:return function(e){return K(e.elements,void 0,void 0,e.multiLine)}(t);case 182:return function(n){var t=n.properties,r=n.multiLine,a=J(t),i=Y();he(i,e.createObjectLiteral(e.visitNodes(t,P,e.isObjectLiteralElementLike,0,a),r));var o=e.reduceLeft(t,function(t,a){z(a)&&t.length>0&&(ye(e.createStatement(e.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(n,a,i),s=e.visitNode(o,P,e.isExpression);return s&&(r&&e.startOnNewLine(s),t.push(s)),t},[],a);return o.push(r?e.startOnNewLine(e.getMutableClone(i)):i),e.inlineExpressions(o)}(t);case 184:return function(t){if(z(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=X(e.visitNode(t.expression,P,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,P,e.isExpression),r}return e.visitEachChild(t,P,n)}(t);case 185:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,z)){var r=e.createCallBinding(t.expression,v,y,!0),a=r.target,i=r.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(a,P,e.isLeftHandSideExpression)),i,K(t.arguments),t),t)}return e.visitEachChild(t,P,n)}(t);case 186:return function(t){if(e.forEach(t.arguments,z)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),v),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(a,P,e.isExpression)),i,K(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,P,n)}(t);default:return e.visitEachChild(t,P,n)}}(t):33554944&t.transformFlags?e.visitEachChild(t,P,n):t}}function V(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,P,n),void 0,H(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,P,n),a=r,i=o}return a?void g(t):t}function G(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,P,n),void 0,H(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,P,n),a=r,i=o}return t}function H(n){var t=[],r=a,o=i,g=s,v=l,_=c,y=u,h=d,b=m,A=I,x=E,C=T,k=S,M=L;a=!0,i=!1,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,m=void 0,I=1,E=void 0,T=void 0,S=void 0,L=e.createTempVariable(void 0),p();var D=e.addPrologue(t,n.statements,!1,P);B(n.statements,D);var O=Le();return e.addRange(t,f()),t.push(e.createReturn(O)),a=r,i=o,s=g,l=v,c=_,u=y,d=h,m=b,I=A,E=x,T=C,S=k,L=M,e.setTextRange(e.createBlock(t,n.multiLine),n)}function K(n,t,r,a){var i,o=J(n);if(o>0){i=Y();var s=e.visitNodes(n,P,e.isExpression,0,o);he(i,e.createArrayLiteral(t?[t].concat(s):s)),t=void 0}var l=e.reduceLeft(n,function(n,r){if(z(r)&&n.length>0){var o=void 0!==i;i||(i=Y()),he(i,o?e.createArrayConcat(i,[e.createArrayLiteral(n,a)]):e.createArrayLiteral(t?[t].concat(n):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,P,e.isExpression)),n},[],o);return i?e.createArrayConcat(i,[e.createArrayLiteral(l,a)]):e.setTextRange(e.createArrayLiteral(t?[t].concat(l):l,a),r)}function B(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r<t;r++)j(e[r])}function U(n){e.isBlock(n)?B(n.statements):j(n)}function j(a){var o=i;i||(i=z(a)),function(a){switch(a.kind){case 211:return function(n){z(n)?B(n.statements):ye(e.visitNode(n,P,e.isStatement))}(a);case 214:return function(n){ye(e.visitNode(n,P,e.isStatement))}(a);case 215:return function(n){if(z(n))if(z(n.thenStatement)||z(n.elseStatement)){var t=Q(),r=n.elseStatement?Q():void 0;Te(n.elseStatement?r:t,e.visitNode(n.expression,P,e.isExpression),n.expression),U(n.thenStatement),n.elseStatement&&(be(t),Z(r),U(n.elseStatement)),Z(t)}else ye(e.visitNode(n,P,e.isStatement));else ye(e.visitNode(n,P,e.isStatement))}(a);case 216:return function(n){if(z(n)){var t=Q(),r=Q();ae(t),Z(r),U(n.statement),Z(t),Ee(r,e.visitNode(n.expression,P,e.isExpression)),ie()}else ye(e.visitNode(n,P,e.isStatement))}(a);case 217:return function(n){if(z(n)){var t=Q(),r=ae(t);Z(t),Te(r,e.visitNode(n.expression,P,e.isExpression)),U(n.statement),be(t),ie()}else ye(e.visitNode(n,P,e.isStatement))}(a);case 218:return function(n){if(z(n)){var t=Q(),r=Q(),a=ae(r);if(n.initializer){var i=n.initializer;e.isVariableDeclarationList(i)?W(i):ye(e.setTextRange(e.createStatement(e.visitNode(i,P,e.isExpression)),i))}Z(t),n.condition&&Te(a,e.visitNode(n.condition,P,e.isExpression)),U(n.statement),Z(r),n.incrementor&&ye(e.setTextRange(e.createStatement(e.visitNode(n.incrementor,P,e.isExpression)),n.incrementor)),be(t),ie()}else ye(e.visitNode(n,P,e.isStatement))}(a);case 219:return function(n){if(z(n)){var t=Y(),r=Y(),a=e.createLoopVariable(),i=n.initializer;v(a),he(t,e.createArrayLiteral()),ye(e.createForIn(r,e.visitNode(n.expression,P,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(t,"push"),void 0,[r])))),he(a,e.createLiteral(0));var o=Q(),s=Q(),l=ae(s);Z(o),Te(l,e.createLessThan(a,e.createPropertyAccess(t,"length")));var c=void 0;if(e.isVariableDeclarationList(i)){for(var u=0,d=i.declarations;u<d.length;u++){var m=d[u];v(m.name)}c=e.getSynthesizedClone(i.declarations[0].name)}else c=e.visitNode(i,P,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(c));he(c,e.createElementAccess(t,a)),U(n.statement),Z(s),ye(e.createStatement(e.createPostfixIncrement(a))),be(o),ie()}else ye(e.visitNode(n,P,e.isStatement))}(a);case 221:return function(n){var t=pe(n.label?e.idText(n.label):void 0);t>0?be(t,n):ye(n)}(a);case 222:return function(n){var t=me(n.label?e.idText(n.label):void 0);t>0?be(t,n):ye(n)}(a);case 223:return function(n){Se(8,[e.visitNode(n.expression,P,e.isExpression)],n)}(a);case 224:return function(n){var t,r,a;z(n)?(t=X(e.visitNode(n.expression,P,e.isExpression)),r=Q(),a=Q(),Z(r),$({kind:1,expression:t,startLabel:r,endLabel:a}),U(n.statement),e.Debug.assert(1===te()),Z(ee().endLabel)):ye(e.visitNode(n,P,e.isStatement))}(a);case 225:return function(n){if(z(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,a=($({kind:2,isScript:!1,breakLabel:p=Q()}),p),i=X(e.visitNode(n.expression,P,e.isExpression)),o=[],s=-1,l=0;l<r;l++){var c=t.clauses[l];o.push(Q()),265===c.kind&&-1===s&&(s=l)}for(var u=0,d=[];u<r;){for(var m=0,l=u;l<r;l++){var c=t.clauses[l];if(264===c.kind){if(z(c.expression)&&d.length>0)break;d.push(e.createCaseClause(e.visitNode(c.expression,P,e.isExpression),[ve(o[l],c.expression)]))}else m++}d.length&&(ye(e.createSwitch(i,e.createCaseBlock(d))),u+=d.length,d=[]),m>0&&(u+=m,m=0)}be(s>=0?o[s]:a);for(var l=0;l<r;l++)Z(o[l]),B(t.clauses[l].statements);oe()}else ye(e.visitNode(n,P,e.isStatement));var p}(a);case 226:return function(n){var t,r;z(n)?(t=e.idText(n.label),r=Q(),$({kind:4,isScript:!1,labelText:t,breakLabel:r}),U(n.statement),se()):ye(e.visitNode(n,P,e.isStatement))}(a);case 227:return function(n){Se(9,[e.visitNode(n.expression,P,e.isExpression)],n)}(a);case 228:return function(a){var i,o;z(a)?(i=Q(),o=Q(),Z(i),$({kind:0,state:0,startLabel:i,endLabel:o}),_e(),U(a.tryBlock),a.catchClause&&(function(a){var i;if(e.Debug.assert(0===te()),e.isGeneratedIdentifier(a.name))i=a.name,v(a.name);else{var o=e.idText(a.name);i=Y(o),t||(t=e.createMap(),r=[],n.enableSubstitution(71)),t.set(o,!0),r[e.getOriginalNodeId(a)]=i}var s=ne();e.Debug.assert(s.state<1),be(s.endLabel);var l=Q();Z(l),s.state=1,s.catchVariable=i,s.catchLabel=l,he(i,e.createCall(e.createPropertyAccess(L,"sent"),void 0,[])),_e()}(a.catchClause.variableDeclaration),U(a.catchClause.block)),a.finallyBlock&&(function(){e.Debug.assert(0===te());var n=ne();e.Debug.assert(n.state<2),be(n.endLabel);var t=Q();Z(t),n.state=2,n.finallyLabel=t}(),U(a.finallyBlock)),function(){e.Debug.assert(0===te());var n=ee();n.state<2?be(n.endLabel):Se(10),Z(n.endLabel),_e(),n.state=3}()):ye(e.visitEachChild(a,P,n))}(a);default:ye(e.visitNode(a,P,e.isStatement))}}(a),i=o}function W(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t],i=e.getSynthesizedClone(a.name);e.setCommentRange(i,a.name),v(i)}for(var o=e.getInitializedVariables(n),s=o.length,l=0,c=[];l<s;){for(var u=l;u<s&&!(z((a=o[u]).initializer)&&c.length>0);u++)c.push(q(a));c.length&&(ye(e.createStatement(e.inlineExpressions(c))),l+=c.length,c=[])}}function q(n){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(n.name),n.name),e.visitNode(n.initializer,P,e.isExpression)),n)}function z(e){return e&&0!=(16777216&e.transformFlags)}function J(e){for(var n=e.length,t=0;t<n;t++)if(z(e[t]))return t;return-1}function X(n){var t;return e.isGeneratedIdentifier(n)||4096&e.getEmitFlags(n)?n:(he(t=e.createTempVariable(v),n,n),t)}function Y(n){var t=n?e.createUniqueName(n):e.createTempVariable(void 0);return v(t),t}function Q(){d||(d=[]);var e=I;return I++,d[e]=-1,e}function Z(n){e.Debug.assert(void 0!==d,"No labels were defined."),d[n]=E?E.length:0}function $(e){s||(s=[],c=[],l=[],u=[]);var n=c.length;return c[n]=0,l[n]=E?E.length:0,s[n]=e,u.push(e),n}function ee(){var n=ne();e.Debug.assert(void 0!==n,"beginBlock was never called.");var t=c.length;return c[t]=1,l[t]=E?E.length:0,s[t]=n,u.pop(),n}function ne(){return e.lastOrUndefined(u)}function te(){var e=ne();return e&&e.kind}function re(){$({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ae(e){var n=Q();return $({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function ie(){e.Debug.assert(3===te());var n=ee(),t=n.breakLabel;n.isScript||Z(t)}function oe(){e.Debug.assert(2===te());var n=ee(),t=n.breakLabel;n.isScript||Z(t)}function se(){e.Debug.assert(4===te());var n=ee();n.isScript||Z(n.breakLabel)}function le(e){return 2===e.kind||3===e.kind}function ce(e){return 4===e.kind}function ue(e){return 3===e.kind}function de(e,n){for(var t=n;t>=0;t--){var r=u[t];if(!ce(r))break;if(r.labelText===e)return!0}return!1}function me(e){if(u)if(e)for(var n=u.length-1;n>=0;n--){if(ce(t=u[n])&&t.labelText===e)return t.breakLabel;if(le(t)&&de(e,n-1))return t.breakLabel}else for(n=u.length-1;n>=0;n--){var t;if(le(t=u[n]))return t.breakLabel}return 0}function pe(e){if(u)if(e){for(var n=u.length-1;n>=0;n--)if(ue(t=u[n])&&de(e,n-1))return t.continueLabel}else for(n=u.length-1;n>=0;n--){var t;if(ue(t=u[n]))return t.continueLabel}return 0}function fe(n){if(n>0){void 0===m&&(m=[]);var t=e.createLiteral(-1);return void 0===m[n]?m[n]=[t]:m[n].push(t),t}return e.createOmittedExpression()}function ge(n){var t=e.createLiteral(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"}}(n)),t}function ve(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),t)}function _e(){Se(0)}function ye(e){e?Se(1,[e]):_e()}function he(e,n,t){Se(2,[e,n],t)}function be(e,n){Se(3,[e],n)}function Ee(e,n,t){Se(4,[e,n],t)}function Te(e,n,t){Se(5,[e,n],t)}function Se(e,n,t){void 0===E&&(E=[],T=[],S=[]),void 0===d&&Z(Q());var r=E.length;E[r]=e,T[r]=n,S[r]=t}function Le(){N=0,w=0,A=void 0,x=!1,C=!1,k=void 0,M=void 0,D=void 0,O=void 0,R=void 0;var t=function(){if(E){for(var n=0;n<E.length;n++)ke(n);Ae(E.length)}else Ae(0);if(k){var t=e.createPropertyAccess(L,"label"),r=e.createSwitch(t,e.createCaseBlock(k));return[e.startOnNewLine(r)]}return M||[]}();return function(n,t){return n.requestEmitHelper(o),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),t])}(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,L)],void 0,e.createBlock(t,t.length>0)),524288))}function Ae(e){(function(e){if(!C)return!0;if(!d||!m)return!1;for(var n=0;n<d.length;n++)if(d[n]===e&&m[n])return!0;return!1})(e)&&(Ce(e),R=void 0,De(void 0,void 0)),M&&k&&xe(!1),function(){if(void 0!==m&&void 0!==A)for(var e=0;e<A.length;e++){var n=A[e];if(void 0!==n)for(var t=0,r=n;t<r.length;t++){var a=r[t],i=m[a];if(void 0!==i)for(var o=0,s=i;o<s.length;o++){var l=s[o];l.text=String(e)}}}}()}function xe(n){if(k||(k=[]),M){if(R)for(var t=R.length-1;t>=0;t--){var r=R[t];M=[e.createWith(r.expression,e.createBlock(M))]}if(O){var a=O.startLabel,i=O.catchLabel,o=O.finallyLabel,s=O.endLabel;M.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(L,"trys"),"push"),void 0,[e.createArrayLiteral([fe(a),fe(i),fe(o),fe(s)])]))),O=void 0}n&&M.push(e.createStatement(e.createAssignment(e.createPropertyAccess(L,"label"),e.createLiteral(w+1))))}k.push(e.createCaseClause(e.createLiteral(w),M||[])),M=void 0}function Ce(e){if(d)for(var n=0;n<d.length;n++)d[n]===e&&(M&&(xe(!x),x=!1,C=!1,w++),void 0===A&&(A=[]),void 0===A[w]?A[w]=[n]:A[w].push(n))}function ke(n){if(Ce(n),function(e){if(s)for(;N<c.length&&l[N]<=e;N++){var n=s[N],t=c[N];switch(n.kind){case 0:0===t?(D||(D=[]),M||(M=[]),D.push(O),O=n):1===t&&(O=D.pop());break;case 1:0===t?(R||(R=[]),R.push(n)):1===t&&R.pop()}}}(n),!x){x=!1,C=!1;var t=E[n];if(0!==t){if(10===t)return x=!0,void Me(e.createReturn(e.createArrayLiteral([ge(7)])));var r=T[n];if(1===t)return Me(r[0]);var a,i,o,u=S[n];switch(t){case 2:return a=r[0],i=r[1],o=u,void Me(e.setTextRange(e.createStatement(e.createAssignment(a,i)),o));case 3:return function(n,t){x=!0,Me(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),t),384))}(r[0],u);case 4:return function(n,t,r){Me(e.setEmitFlags(e.createIf(t,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),r),384)),1))}(r[0],r[1],u);case 5:return function(n,t,r){Me(e.setEmitFlags(e.createIf(e.createLogicalNot(t),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(n)])),r),384)),1))}(r[0],r[1],u);case 6:return function(n,t){x=!0,Me(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(n?[ge(4),n]:[ge(4)])),t),384))}(r[0],u);case 7:return function(n,t){x=!0,Me(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(5),n])),t),384))}(r[0],u);case 8:return De(r[0],u);case 9:return function(n,t){x=!0,C=!0,Me(e.setTextRange(e.createThrow(n),t))}(r[0],u)}}}}function Me(e){e&&(M?M.push(e):M=[e])}function De(n,t){x=!0,C=!0,Me(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(n?[ge(2),n]:[ge(2)])),t),384))}};var o={name:"typescript: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 = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [0, 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 };'}}(u||(u={})),function(e){e.transformModule=function(i){var o=i.startLexicalEnvironment,s=i.endLexicalEnvironment,l=i.hoistVariableDeclaration,c=i.getCompilerOptions(),u=i.getEmitResolver(),d=i.getEmitHost(),m=e.getEmitScriptTarget(c),p=e.getEmitModuleKind(c),f=i.onSubstituteNode,g=i.onEmitNode;i.onSubstituteNode=function(n,t){return(t=f(n,t)).id&&y[t.id]?t:1===n?function(n){switch(n.kind){case 71:return J(n);case 198: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=X(n.left);if(t){for(var r=n,a=0,i=t;a<i.length;a++){var o=i[a];y[e.getNodeId(r)]=!0,r=q(o,r,n)}return r}}return n}(n);case 197:case 196:return function(n){if((43===n.operator||44===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var t=X(n.operand);if(t){for(var r=197===n.kind?e.setTextRange(e.createBinary(n.operand,e.createToken(43===n.operator?59:60),e.createLiteral(1)),n):n,a=0,i=t;a<i.length;a++){var o=i[a];y[e.getNodeId(r)]=!0,r=q(o,r)}return r}}return n}(n)}return n}(t):e.isShorthandPropertyAssignment(t)?function(n){var t=n.name,r=J(t);if(r!==t){if(n.objectAssignmentInitializer){var a=e.createAssignment(r,n.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(t,a),n)}return e.setTextRange(e.createPropertyAssignment(t,r),n)}return n}(t):t},i.onEmitNode=function(n,t,r){272===t.kind?(v=t,_=b[e.getOriginalNodeId(v)],y=[],g(n,t,r),v=void 0,_=void 0,y=void 0):g(n,t,r)},i.enableSubstitution(71),i.enableSubstitution(198),i.enableSubstitution(196),i.enableSubstitution(197),i.enableSubstitution(269),i.enableEmitNotification(272);var v,_,y,h,b=[],E=[];return function(n){if(n.isDeclarationFile||!(e.isEffectiveExternalModule(n,c)||67108864&n.transformFlags))return n;v=n,_=e.collectExternalModuleInfo(n,u,c),b[e.getOriginalNodeId(n)]=_;var t=function(n){switch(n){case e.ModuleKind.AMD:return L;case e.ModuleKind.UMD:return A;default:return S}}(p)(n);return v=void 0,_=void 0,h=!1,e.aggregateTransformFlags(t)};function T(){return!(_.exportEquals||!e.isExternalModule(v))}function S(t){o();var r=[],a=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(v),l=e.addPrologue(r,t.statements,a,D);T()&&e.append(r,W()),e.append(r,e.visitNode(_.externalHelpersImportDeclaration,D,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,D,e.isStatement,l)),M(r,!1),e.addRange(r,s());var u=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements));return _.hasExportStarsToExportValues&&!c.importHelpers&&e.addEmitHelper(u,n),e.addEmitHelpers(u,i.readEmitHelpers()),u}function L(n){var t=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(n,d,c),a=x(n,!0),o=a.aliasedModuleNames,s=a.unaliasedModuleNames,l=a.importAliasNames,u=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(t,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(o,s)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(l),void 0,k(n))])))]),n.statements));return e.addEmitHelpers(u,i.readEmitHelpers()),u}function A(n){var t=x(n,!1),r=t.aliasedModuleNames,a=t.unaliasedModuleNames,o=t.importAliasNames,s=e.tryGetModuleNameFromFile(n,d,c),l=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,(s?[s]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,a)),e.createIdentifier("factory")])))])))],!0),void 0)),u=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(l,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(o),void 0,k(n))]))]),n.statements));return e.addEmitHelpers(u,i.readEmitHelpers()),u}function x(n,t){for(var r=[],a=[],i=[],o=0,s=n.amdDependencies;o<s.length;o++){var l=s[o];l.name?(r.push(e.createLiteral(l.path)),i.push(e.createParameter(void 0,void 0,void 0,l.name))):a.push(e.createLiteral(l.path))}for(var m=0,p=_.externalImports;m<p.length;m++){var f=p[m],g=e.getExternalModuleNameLiteral(f,v,d,u,c),y=e.getLocalNameForExternalImport(f,v);g&&(t&&y?(e.setEmitFlags(y,4),r.push(g),i.push(e.createParameter(void 0,void 0,void 0,y))):a.push(g))}return{aliasedModuleNames:r,unaliasedModuleNames:a,importAliasNames:i}}function C(n){if(!e.isImportEqualsDeclaration(n)&&!e.isExportDeclaration(n)&&e.getExternalModuleNameLiteral(n,v,d,u,c)){var t=e.getLocalNameForExternalImport(n,v),r=N(n,t);if(r!==t)return e.createStatement(e.createAssignment(t,r))}}function k(r){o();var a=[],i=e.addPrologue(a,r.statements,!c.noImplicitUseStrict,D);T()&&e.append(a,W()),e.append(a,e.visitNode(_.externalHelpersImportDeclaration,D,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(a,e.mapDefined(_.externalImports,C)),e.addRange(a,e.visitNodes(r.statements,D,e.isStatement,i)),M(a,!0),e.addRange(a,s());var l=e.createBlock(a,!0);return _.hasExportStarsToExportValues&&!c.importHelpers&&e.addEmitHelper(l,n),h&&e.addEmitHelper(l,t),l}function M(n,t){if(_.exportEquals){var r=e.visitNode(_.exportEquals.expression,O);if(r)if(t){var a=e.createReturn(r);e.setTextRange(a,_.exportEquals),e.setEmitFlags(a,1920),n.push(a)}else a=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),r)),e.setTextRange(a,_.exportEquals),e.setEmitFlags(a,1536),n.push(a)}}function D(n){switch(n.kind){case 242:return function(n){var t,r=e.getNamespaceDeclarationNode(n);if(p!==e.ModuleKind.AMD){if(!n.importClause)return e.setTextRange(e.createStatement(w(n)),n);var a=[];r&&!e.isDefaultImport(n)?a.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,N(n,w(n)))):(a.push(e.createVariableDeclaration(e.getGeneratedNameForNode(n),void 0,N(n,w(n)))),r&&e.isDefaultImport(n)&&a.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(n)))),t=e.append(t,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(a,m>=2?2:0)),n))}else r&&e.isDefaultImport(n)&&(t=e.append(t,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(n)),n)],m>=2?2:0))));if(F(n)){var i=e.getOriginalNodeId(n);E[i]=V(E[i],n)}else t=V(t,n);return e.singleOrMany(t)}(n);case 241:return function(n){var t;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?t=e.hasModifier(n,1)?e.append(t,e.setTextRange(e.createStatement(q(n.name,w(n))),n)):e.append(t,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,w(n))],m>=2?2:0)),n)):e.hasModifier(n,1)&&(t=e.append(t,e.setTextRange(e.createStatement(q(e.getExportName(n),e.getLocalName(n))),n))),F(n)){var r=e.getOriginalNodeId(n);E[r]=G(E[r],n)}else t=G(t,n);return e.singleOrMany(t)}(n);case 248:return function(n){if(n.moduleSpecifier){var t=e.getGeneratedNameForNode(n);if(n.exportClause){var r=[];p!==e.ModuleKind.AMD&&r.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(t,void 0,w(n))])),n));for(var a=0,o=n.exportClause.elements;a<o.length;a++){var s=o[a],l=e.createPropertyAccess(t,s.propertyName||s.name);r.push(e.setTextRange(e.createStatement(q(e.getExportName(s),l)),s))}return e.singleOrMany(r)}return e.setTextRange(e.createStatement(function(n,t){return n.getCompilerOptions().importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[t,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[t])}(i,p!==e.ModuleKind.AMD?w(n):t)),n)}}(n);case 247:return function(n){if(!n.isExportEquals){var t,r=n.original;if(r&&F(r)){var a=e.getOriginalNodeId(n);E[a]=j(E[a],e.createIdentifier("default"),e.visitNode(n.expression,O),n,!0)}else t=j(t,e.createIdentifier("default"),e.visitNode(n.expression,O),n,!0);return e.singleOrMany(t)}}(n);case 212:return function(n){var t,r,a;if(e.hasModifier(n,1)){for(var o=void 0,s=0,l=n.declarationList.declarations;s<l.length;s++){var c=l[s];e.isIdentifier(c.name)&&e.isLocalName(c.name)?(o||(o=e.visitNodes(n.modifiers,z,e.isModifier)),r=e.append(r,c)):c.initializer&&(a=e.append(a,P(c)))}r&&(t=e.append(t,e.updateVariableStatement(n,o,e.updateVariableDeclarationList(n.declarationList,r)))),a&&(t=e.append(t,e.setTextRange(e.createStatement(e.inlineExpressions(a)),n)))}else t=e.append(t,e.visitEachChild(n,O,i));if(F(n)){var u=e.getOriginalNodeId(n);E[u]=H(E[u],n)}else t=H(t,n);return e.singleOrMany(t)}(n);case 232:return function(n){var t;if(t=e.hasModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(n.modifiers,z,e.isModifier),n.asteriskToken,e.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,O),void 0,e.visitEachChild(n.body,O,i)),n),n)):e.append(t,e.visitEachChild(n,O,i)),F(n)){var r=e.getOriginalNodeId(n);E[r]=B(E[r],n)}else t=B(t,n);return e.singleOrMany(t)}(n);case 233:return function(n){var t;if(t=e.hasModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(n.modifiers,z,e.isModifier),e.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.heritageClauses,O),e.visitNodes(n.members,O)),n),n)):e.append(t,e.visitEachChild(n,O,i)),F(n)){var r=e.getOriginalNodeId(n);E[r]=B(E[r],n)}else t=B(t,n);return e.singleOrMany(t)}(n);case 297:return function(n){if(F(n)&&212===n.original.kind){var t=e.getOriginalNodeId(n);E[t]=H(E[t],n.original)}return n}(n);case 298:return function(n){var t=e.getOriginalNodeId(n),r=E[t];return r?(delete E[t],e.append(r,n)):n}(n);default:return e.visitEachChild(n,O,i)}}function O(n){return 67108864&n.transformFlags?e.isImportCall(n)?function(n){var t=e.visitNode(e.firstOrUndefined(n.arguments),O),r=!!(16384&n.transformFlags);switch(c.module){case e.ModuleKind.AMD:return R(t,r);case e.ModuleKind.UMD:return function(n,t){if(h=!0,e.isSimpleCopiableExpression(n)){var r=e.isGeneratedIdentifier(n)?n:e.isStringLiteral(n)?e.createLiteral(n):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(n),n),1536);return e.createConditional(e.createIdentifier("__syncRequire"),I(n,t),R(r,t))}var a=e.createTempVariable(l);return e.createComma(e.createAssignment(a,n),e.createConditional(e.createIdentifier("__syncRequire"),I(a,t),R(a,t)))}(t,r);case e.ModuleKind.CommonJS:default:return I(t,r)}}(n):e.visitEachChild(n,O,i):n}function R(n,t){var a,o=e.createUniqueName("resolve"),s=e.createUniqueName("reject"),l=[e.createParameter(void 0,void 0,void 0,o),e.createParameter(void 0,void 0,void 0,s)],u=e.createBlock([e.createStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([n||e.createOmittedExpression()]),o,s]))]);m>=2?a=e.createArrowFunction(void 0,void 0,l,void 0,void 0,u):(a=e.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,u),t&&e.setEmitFlags(a,8));var d=e.createNew(e.createIdentifier("Promise"),void 0,[a]);return c.esModuleInterop?(i.requestEmitHelper(r),e.createCall(e.createPropertyAccess(d,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):d}function I(n,t){var a,o=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),s=e.createCall(e.createIdentifier("require"),void 0,n?[n]:[]);return c.esModuleInterop&&(i.requestEmitHelper(r),s=e.createCall(e.getHelperName("__importStar"),void 0,[s])),m>=2?a=e.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(a=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(s)])),t&&e.setEmitFlags(a,8)),e.createCall(e.createPropertyAccess(o,"then"),void 0,[a])}function N(n,t){return!c.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?(i.requestEmitHelper(r),e.createCall(e.getHelperName("__importStar"),void 0,[t])):e.getImportNeedsImportDefaultHelper(n)?(i.requestEmitHelper(a),e.createCall(e.getHelperName("__importDefault"),void 0,[t])):t}function w(n){var t=e.getExternalModuleNameLiteral(n,v,d,u,c),r=[];return t&&r.push(t),e.createCall(e.createIdentifier("require"),void 0,r)}function P(n){return e.isBindingPattern(n.name)?e.flattenDestructuringAssignment(e.visitNode(n,O),void 0,i,0,!1,q):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),n.name),n.name),e.visitNode(n.initializer,O))}function F(n){return 0!=(4194304&e.getEmitFlags(n))}function V(e,n){if(_.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=U(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 244:e=U(e,r);break;case 245:for(var a=0,i=r.elements;a<i.length;a++)e=U(e,i[a])}return e}function G(e,n){return _.exportEquals?e:U(e,n)}function H(e,n){if(_.exportEquals)return e;for(var t=0,r=n.declarationList.declarations;t<r.length;t++)e=K(e,r[t]);return e}function K(n,t){if(_.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=K(n,i))}else e.isGeneratedIdentifier(t.name)||(n=U(n,t));return n}function B(n,t){return _.exportEquals?n:(e.hasModifier(t,1)&&(n=j(n,e.hasModifier(t,512)?e.createIdentifier("default"):e.getDeclarationName(t),e.getLocalName(t),t)),t.name&&(n=U(n,t)),n)}function U(n,t){var r=e.getDeclarationName(t),a=_.exportSpecifiers.get(e.idText(r));if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];n=j(n,s.name,r,s.name)}return n}function j(n,t,r,a,i){return n=e.append(n,function(n,t,r,a){var i=e.setTextRange(e.createStatement(q(n,t)),r);return e.startOnNewLine(i),a||e.setEmitFlags(i,1536),i}(t,r,a,i))}function W(){var n;return n=0===m?e.createStatement(q(e.createIdentifier("__esModule"),e.createLiteral(!0))):e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(n,1048576),n}function q(n,t,r){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(n)),t),r)}function z(e){switch(e.kind){case 84:case 79:return}return e}function J(n){if(4096&e.getEmitFlags(n)){var t=e.getExternalHelpersModuleName(v);return t?e.createPropertyAccess(t,n):n}if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var r=u.getReferencedExportContainer(n,e.isExportName(n));if(r&&272===r.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(n)),n);var a=u.getReferencedImportDeclaration(n);if(a){if(e.isImportClause(a))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(a.parent),e.createIdentifier("default")),n);if(e.isImportSpecifier(a)){var i=a.propertyName||a.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(a.parent.parent.parent),e.getSynthesizedClone(i)),n)}}}return n}function X(n){if(!e.isGeneratedIdentifier(n)){var t=u.getReferencedImportDeclaration(n)||u.getReferencedValueDeclaration(n);if(t)return _&&_.exportedBindings[e.getOriginalNodeId(t)]}}};var n={name:"typescript:export-star",scoped:!0,text:"\n function __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n }\n "};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'},r={name:"typescript:commonjsimportstar",scoped:!1,text:'\nvar __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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result["default"] = mod;\n return result;\n};'},a={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(u||(u={})),function(e){e.transformSystemModule=function(n){var t=n.startLexicalEnvironment,r=n.endLexicalEnvironment,a=n.hoistVariableDeclaration,i=n.getCompilerOptions(),o=n.getEmitResolver(),s=n.getEmitHost(),l=n.onSubstituteNode,c=n.onEmitNode;n.onSubstituteNode=function(n,t){return function(e){return v&&e.id&&v[e.id]}(t=l(n,t))?t:1===n?function(n){switch(n.kind){case 71:return function(n){if(4096&e.getEmitFlags(n)){var t=e.getExternalHelpersModuleName(u);return t?e.createPropertyAccess(t,n):n}if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var r=o.getReferencedImportDeclaration(n);if(r){if(e.isImportClause(r))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r.parent),e.createIdentifier("default")),n);if(e.isImportSpecifier(r))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r.parent.parent.parent),e.getSynthesizedClone(r.propertyName||r.name)),n)}}return n}(n);case 198: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=j(n.left);if(t){for(var r=n,a=0,i=t;a<i.length;a++){var o=i[a];r=V(o,W(r))}return r}}return n}(n);case 196:case 197:return function(n){if((43===n.operator||44===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var t=j(n.operand);if(t){for(var r=197===n.kind?e.setTextRange(e.createPrefix(n.operator,n.operand),n):n,a=0,i=t;a<i.length;a++){var o=i[a];r=V(o,W(r))}return 197===n.kind&&(r=43===n.operator?e.createSubtract(W(r),e.createLiteral(1)):e.createAdd(W(r),e.createLiteral(1))),r}}return n}(n)}return n}(t):4===n?function(n){switch(n.kind){case 269:return function(n){var t=n.name;if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=o.getReferencedImportDeclaration(t);if(r){if(e.isImportClause(r))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(t),e.createPropertyAccess(e.getGeneratedNameForNode(r.parent),e.createIdentifier("default"))),n);if(e.isImportSpecifier(r))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(t),e.createPropertyAccess(e.getGeneratedNameForNode(r.parent.parent.parent),e.getSynthesizedClone(r.propertyName||r.name))),n)}}return n}(n)}return n}(t):t},n.onEmitNode=function(n,t,r){if(272===t.kind){var a=e.getOriginalNodeId(t);u=t,d=_[a],m=h[a],(v=b[a])&&delete b[a],c(n,t,r),u=void 0,d=void 0,m=void 0,v=void 0}else c(n,t,r)},n.enableSubstitution(71),n.enableSubstitution(269),n.enableSubstitution(198),n.enableSubstitution(196),n.enableSubstitution(197),n.enableEmitNotification(272);var u,d,m,p,f,g,v,_=[],y=[],h=[],b=[];return function(n){if(n.isDeclarationFile||!(e.isEffectiveExternalModule(n,i)||67108864&n.transformFlags))return n;var a=e.getOriginalNodeId(n);u=n,g=n,d=_[a]=e.collectExternalModuleInfo(n,o,i),m=e.createUniqueName("exports"),h[a]=m,p=e.createUniqueName("context");var l=function(n){for(var t=e.createMap(),r=[],a=0,l=n;a<l.length;a++){var c=l[a],d=e.getExternalModuleNameLiteral(c,u,s,o,i);if(d){var m=d.text,p=t.get(m);void 0!==p?r[p].externalImports.push(c):(t.set(m,r.length),r.push({name:d,externalImports:[c]}))}}return r}(d.externalImports),c=function(n,a){var o=[];t();var s=e.getStrictOptionValue(i,"alwaysStrict")||!i.noImplicitUseStrict&&e.isExternalModule(u),l=e.addPrologue(o,n.statements,s,T);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(p,e.createPropertyAccess(p,"id")))]))),e.visitNode(d.externalHelpersImportDeclaration,T,e.isStatement);var c=e.visitNodes(n.statements,T,e.isStatement,l);e.addRange(o,f),e.addRange(o,r());var g=function(n){if(d.hasExportStarsToExportValues){if(!d.exportedNames&&0===d.exportSpecifiers.size){for(var t=!1,r=0,a=d.externalImports;r<a.length;r++){var i=a[r];if(248===i.kind&&i.exportClause){t=!0;break}}if(!t){var o=E(void 0);return n.push(o),o.name}}var s=[];if(d.exportedNames)for(var l=0,c=d.exportedNames;l<c.length;l++){var u=c[l];"default"!==u.escapedText&&s.push(e.createPropertyAssignment(e.createLiteral(u),e.createTrue()))}for(var m=0,p=d.externalImports;m<p.length;m++){var i=p[m];if(248===i.kind&&i.exportClause)for(var f=0,g=i.exportClause.elements;f<g.length;f++){var v=g[f];s.push(e.createPropertyAssignment(e.createLiteral(e.idText(v.name||v.propertyName)),e.createTrue()))}}var _=e.createUniqueName("exportedNames");n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(_,void 0,e.createObjectLiteral(s,!0))])));var y=E(_);return n.push(y),y.name}}(o),v=e.createObjectLiteral([e.createPropertyAssignment("setters",function(n,t){for(var r=[],a=0,i=t;a<i.length;a++){for(var o=i[a],s=e.forEach(o.externalImports,function(n){return e.getLocalNameForExternalImport(n,u)}),l=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),c=[],d=0,p=o.externalImports;d<p.length;d++){var f=p[d],g=e.getLocalNameForExternalImport(f,u);switch(f.kind){case 242:if(!f.importClause)break;case 241:e.Debug.assert(void 0!==g),c.push(e.createStatement(e.createAssignment(g,l)));break;case 248:if(e.Debug.assert(void 0!==g),f.exportClause){for(var v=[],_=0,y=f.exportClause.elements;_<y.length;_++){var h=y[_];v.push(e.createPropertyAssignment(e.createLiteral(e.idText(h.name)),e.createElementAccess(l,e.createLiteral(e.idText(h.propertyName||h.name)))))}c.push(e.createStatement(e.createCall(m,void 0,[e.createObjectLiteral(v,!0)])))}else c.push(e.createStatement(e.createCall(n,void 0,[l])))}}r.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,l)],void 0,e.createBlock(c,!0)))}return e.createArrayLiteral(r,!0)}(g,a)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(c,!0)))]);return v.multiLine=!0,o.push(e.createReturn(v)),e.createBlock(o,!0)}(n,l),y=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,m),e.createParameter(void 0,void 0,void 0,p)],void 0,c),S=e.tryGetModuleNameFromFile(n,s,i),L=e.createArrayLiteral(e.map(l,function(e){return e.name})),A=e.setEmitFlags(e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,S?[S,L,y]:[L,y]))]),n.statements)),1024);return i.outFile||i.out||e.moveEmitHelpers(A,c,function(e){return!e.scoped}),v&&(b[a]=v,v=void 0),u=void 0,d=void 0,m=void 0,p=void 0,f=void 0,g=void 0,e.aggregateTransformFlags(A)};function E(n){var t=e.createUniqueName("exportStar"),r=e.createIdentifier("m"),a=e.createIdentifier("n"),i=e.createIdentifier("exports"),o=e.createStrictInequality(a,e.createLiteral("default"));return n&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(n,"hasOwnProperty"),void 0,[a])))),e.createFunctionDeclaration(void 0,void 0,void 0,t,void 0,[e.createParameter(void 0,void 0,void 0,r)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0)]),r,e.createBlock([e.setEmitFlags(e.createIf(o,e.createStatement(e.createAssignment(e.createElementAccess(i,a),e.createElementAccess(r,a)))),1)])),e.createStatement(e.createCall(m,void 0,[i]))],!0))}function T(n){switch(n.kind){case 242:return function(n){var t;if(n.importClause&&a(e.getLocalNameForExternalImport(n,u)),M(n)){var r=e.getOriginalNodeId(n);y[r]=D(y[r],n)}else t=D(t,n);return e.singleOrMany(t)}(n);case 241:return function(n){var t;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(n,u)),M(n)){var r=e.getOriginalNodeId(n);y[r]=O(y[r],n)}else t=O(t,n);return e.singleOrMany(t)}(n);case 248:return;case 247:return function(n){if(!n.isExportEquals){var t=e.visitNode(n.expression,K,e.isExpression),r=n.original;if(!r||!M(r))return F(e.createIdentifier("default"),t,!0);var a=e.getOriginalNodeId(n);y[a]=P(y[a],e.createIdentifier("default"),t,!0)}}(n);default:return G(n)}}function S(n){if(e.isBindingPattern(n.name))for(var t=0,r=n.name.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||S(i)}else a(e.getSynthesizedClone(n.name))}function L(n){return 0==(2097152&e.getEmitFlags(n))&&(272===g.kind||0==(3&e.getOriginalNode(n).flags))}function A(t,r){var a=r?x:C;return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(t,K,n,0,!1,a):t.initializer?a(t.name,e.visitNode(t.initializer,K,e.isExpression)):t.name}function x(e,n,t){return k(e,n,t,!0)}function C(e,n,t){return k(e,n,t,!1)}function k(n,t,r,i){return a(e.getSynthesizedClone(n)),i?V(n,W(e.setTextRange(e.createAssignment(n,t),r))):W(e.setTextRange(e.createAssignment(n,t),r))}function M(n){return 0!=(4194304&e.getEmitFlags(n))}function D(e,n){if(d.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=w(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 244:e=w(e,r);break;case 245:for(var a=0,i=r.elements;a<i.length;a++)e=w(e,i[a])}return e}function O(e,n){return d.exportEquals?e:w(e,n)}function R(e,n,t){if(d.exportEquals)return e;for(var r=0,a=n.declarationList.declarations;r<a.length;r++){var i=a[r];(i.initializer||t)&&(e=I(e,i,t))}return e}function I(n,t,r){if(d.exportEquals)return n;if(e.isBindingPattern(t.name))for(var a=0,i=t.name.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||(n=I(n,o,r))}else if(!e.isGeneratedIdentifier(t.name)){var s=void 0;r&&(n=P(n,t.name,e.getLocalName(t)),s=e.idText(t.name)),n=w(n,t,s)}return n}function N(n,t){if(d.exportEquals)return n;var r;if(e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createLiteral("default"):t.name;n=P(n,a,e.getLocalName(t)),r=e.getTextOfIdentifierOrLiteral(a)}return t.name&&(n=w(n,t,r)),n}function w(n,t,r){if(d.exportEquals)return n;var a=e.getDeclarationName(t),i=d.exportSpecifiers.get(e.idText(a));if(i)for(var o=0,s=i;o<s.length;o++){var l=s[o];l.name.escapedText!==r&&(n=P(n,l.name,a))}return n}function P(n,t,r,a){return n=e.append(n,F(t,r,a))}function F(n,t,r){var a=e.createStatement(V(n,t));return e.startOnNewLine(a),r||e.setEmitFlags(a,1536),a}function V(n,t){var r=e.isIdentifier(n)?e.createLiteral(n):n;return e.setEmitFlags(t,1536|e.getEmitFlags(t)),e.setCommentRange(e.createCall(m,void 0,[r,t]),t)}function G(t){switch(t.kind){case 212:return function(n){if(!L(n.declarationList))return e.visitNode(n,K,e.isStatement);for(var t,r,a=e.hasModifier(n,1),i=M(n),o=0,s=n.declarationList.declarations;o<s.length;o++){var l=s[o];l.initializer?t=e.append(t,A(l,a&&!i)):S(l)}if(t&&(r=e.append(r,e.setTextRange(e.createStatement(e.inlineExpressions(t)),n))),i){var c=e.getOriginalNodeId(n);y[c]=R(y[c],n,a)}else r=R(r,n,!1);return e.singleOrMany(r)}(t);case 232:return function(t){if(f=e.hasModifier(t,1)?e.append(f,e.updateFunctionDeclaration(t,t.decorators,e.visitNodes(t.modifiers,U,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,K,e.isParameterDeclaration),void 0,e.visitNode(t.body,K,e.isBlock))):e.append(f,e.visitEachChild(t,K,n)),M(t)){var r=e.getOriginalNodeId(t);y[r]=N(y[r],t)}else f=N(f,t)}(t);case 233:return function(n){var t,r=e.getLocalName(n);if(a(r),t=e.append(t,e.setTextRange(e.createStatement(e.createAssignment(r,e.setTextRange(e.createClassExpression(void 0,n.name,void 0,e.visitNodes(n.heritageClauses,K,e.isHeritageClause),e.visitNodes(n.members,K,e.isClassElement)),n))),n)),M(n)){var i=e.getOriginalNodeId(n);y[i]=N(y[i],n)}else t=N(t,n);return e.singleOrMany(t)}(t);case 218:return function(n){var t=g;return g=n,n=e.updateFor(n,H(n.initializer),e.visitNode(n.condition,K,e.isExpression),e.visitNode(n.incrementor,K,e.isExpression),e.visitNode(n.statement,G,e.isStatement)),g=t,n}(t);case 219:return function(n){var t=g;return g=n,n=e.updateForIn(n,H(n.initializer),e.visitNode(n.expression,K,e.isExpression),e.visitNode(n.statement,G,e.isStatement,e.liftToBlock)),g=t,n}(t);case 220:return function(n){var t=g;return g=n,n=e.updateForOf(n,n.awaitModifier,H(n.initializer),e.visitNode(n.expression,K,e.isExpression),e.visitNode(n.statement,G,e.isStatement,e.liftToBlock)),g=t,n}(t);case 216:return function(n){return e.updateDo(n,e.visitNode(n.statement,G,e.isStatement,e.liftToBlock),e.visitNode(n.expression,K,e.isExpression))}(t);case 217:return function(n){return e.updateWhile(n,e.visitNode(n.expression,K,e.isExpression),e.visitNode(n.statement,G,e.isStatement,e.liftToBlock))}(t);case 226:return function(n){return e.updateLabel(n,n.label,e.visitNode(n.statement,G,e.isStatement,e.liftToBlock))}(t);case 224:return function(n){return e.updateWith(n,e.visitNode(n.expression,K,e.isExpression),e.visitNode(n.statement,G,e.isStatement,e.liftToBlock))}(t);case 225:return function(n){return e.updateSwitch(n,e.visitNode(n.expression,K,e.isExpression),e.visitNode(n.caseBlock,G,e.isCaseBlock))}(t);case 239:return function(n){var t=g;return g=n,n=e.updateCaseBlock(n,e.visitNodes(n.clauses,G,e.isCaseOrDefaultClause)),g=t,n}(t);case 264:return function(n){return e.updateCaseClause(n,e.visitNode(n.expression,K,e.isExpression),e.visitNodes(n.statements,G,e.isStatement))}(t);case 265:case 228:return function(t){return e.visitEachChild(t,G,n)}(t);case 267:return function(n){var t=g;return g=n,n=e.updateCatchClause(n,n.variableDeclaration,e.visitNode(n.block,G,e.isBlock)),g=t,n}(t);case 211:return function(t){var r=g;return g=t,t=e.visitEachChild(t,G,n),g=r,t}(t);case 297:return function(n){if(M(n)&&212===n.original.kind){var t=e.getOriginalNodeId(n),r=e.hasModifier(n.original,1);y[t]=R(y[t],n.original,r)}return n}(t);case 298:return function(n){var t=e.getOriginalNodeId(n),r=y[t];return r?(delete y[t],e.append(r,n)):n}(t);default:return K(t)}}function H(t){if(!t)return t;if(function(n){return e.isVariableDeclarationList(n)&&L(n)}(t)){for(var r=void 0,a=0,i=t.declarations;a<i.length;a++){var o=i[a];r=e.append(r,A(o,!1)),o.initializer||S(o)}return r?e.inlineExpressions(r):e.createOmittedExpression()}return e.visitEachChild(t,G,n)}function K(t){return 1024&t.transformFlags&&198===t.kind?function(t){return B(t.left)?e.flattenDestructuringAssignment(t,K,n,0,!0):e.visitEachChild(t,K,n)}(t):e.isImportCall(t)?function(n){return e.createCall(e.createPropertyAccess(p,e.createIdentifier("import")),void 0,e.some(n.arguments)?[e.visitNode(n.arguments[0],K)]:[])}(t):2048&t.transformFlags||67108864&t.transformFlags?e.visitEachChild(t,K,n):t}function B(n){if(e.isAssignmentExpression(n,!0))return B(n.left);if(e.isSpreadElement(n))return B(n.expression);if(e.isObjectLiteralExpression(n))return e.some(n.properties,B);if(e.isArrayLiteralExpression(n))return e.some(n.elements,B);if(e.isShorthandPropertyAssignment(n))return B(n.name);if(e.isPropertyAssignment(n))return B(n.initializer);if(e.isIdentifier(n)){var t=o.getReferencedExportContainer(n);return void 0!==t&&272===t.kind}return!1}function U(e){switch(e.kind){case 84:case 79:return}return e}function j(n){var t;if(!e.isGeneratedIdentifier(n)){var r=o.getReferencedImportDeclaration(n)||o.getReferencedValueDeclaration(n);if(r){var a=o.getReferencedExportContainer(n,!1);a&&272===a.kind&&(t=e.append(t,e.getDeclarationName(r))),t=e.addRange(t,d&&d.exportedBindings[e.getOriginalNodeId(r)])}}return t}function W(n){return void 0===v&&(v=[]),v[e.getNodeId(n)]=!0,n}}}(u||(u={})),function(e){e.transformES2015Module=function(n){var t,r=n.getCompilerOptions(),a=n.onEmitNode,i=n.onSubstituteNode;return n.onEmitNode=function(n,r,i){e.isSourceFile(r)?(t=r,a(n,r,i),t=void 0):a(n,r,i)},n.onSubstituteNode=function(n,r){return r=i(n,r),e.isIdentifier(r)&&1===n?function(n){if(4096&e.getEmitFlags(n)){var r=e.getExternalHelpersModuleName(t);if(r)return e.createPropertyAccess(r,n)}return n}(r):r},n.enableEmitNotification(272),n.enableSubstitution(71),function(t){if(t.isDeclarationFile)return t;if(e.isExternalModule(t)||r.isolatedModules){var a=e.getOrCreateExternalHelpersModuleNameIfNeeded(t,r);if(a){var i=[],s=e.addPrologue(i,t.statements),l=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(a)),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(l,67108864),e.append(i,l),e.addRange(i,e.visitNodes(t.statements,o,e.isStatement,s)),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(i),t.statements))}return e.visitEachChild(t,o,n)}return t};function o(e){switch(e.kind){case 241:return;case 247:return function(e){return e.isExportEquals?void 0:e}(e)}return e}}}(u||(u={})),function(e){var n,t;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(n||(n={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(t||(t={})),e.getTransformers=function(n,t){var r=n.jsx,a=e.getEmitScriptTarget(n),i=e.getEmitModuleKind(n),o=[];return e.addRange(o,t&&t.before),o.push(e.transformTypeScript),2===r&&o.push(e.transformJsx),a<6&&o.push(e.transformESNext),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.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(i)),a<1&&o.push(e.transformES5),e.addRange(o,t&&t.after),o},e.transformNodes=function(n,t,r,a,i,o){for(var s,l,c,u=new Array(299),d=[],m=[],p=0,f=!1,g=function(e,n){return n},v=function(e,n,t){return t(e,n)},_=0,y={getCompilerOptions:function(){return r},getEmitResolver:function(){return n},getEmitHost:function(){return t},startLexicalEnvironment:function(){e.Debug.assert(_>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(_<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),d[p]=s,m[p]=l,p++,s=void 0,l=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(_>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(_<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0},resumeLexicalEnvironment:function(){e.Debug.assert(_>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(_<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(_>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(_<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),(s||l)&&(l&&(n=l.slice()),s)){var t=e.createVariableStatement(void 0,e.createVariableDeclarationList(s));n?n.push(t):n=[t]}return s=d[--p],l=m[p],0===p&&(d=[],m=[]),n},hoistVariableDeclaration:function(n){e.Debug.assert(_>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(_<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(e.createVariableDeclaration(n),64);s?s.push(t):s=[t]},hoistFunctionDeclaration:function(n){e.Debug.assert(_>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(_<2,"Cannot modify the lexical environment after transformation has completed."),l?l.push(n):l=[n]},requestEmitHelper:function(n){e.Debug.assert(_>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(_<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!n.scoped,"Cannot request a scoped emit helper."),c=e.append(c,n)},readEmitHelpers:function(){e.Debug.assert(_>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(_<2,"Cannot modify the transformation context after transformation has completed.");var n=c;return c=void 0,n},enableSubstitution:function(n){e.Debug.assert(_<2,"Cannot modify the transformation context after transformation has completed."),u[n]|=1},enableEmitNotification:function(n){e.Debug.assert(_<2,"Cannot modify the transformation context after transformation has completed."),u[n]|=2},isSubstitutionEnabled:L,isEmitNotificationEnabled:A,get onSubstituteNode(){return g},set onSubstituteNode(n){e.Debug.assert(_<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),g=n},get onEmitNode(){return v},set onEmitNode(n){e.Debug.assert(_<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),v=n}},h=0,b=a;h<b.length;h++){var E=b[h];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(E)))}e.performance.mark("beforeTransform");var T=e.chain.apply(void 0,i)(y);_=1;var S=e.map(a,o?T:function(n){return!n||e.isSourceFile(n)&&n.isDeclarationFile?n:T(n)});return _=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:S,substituteNode:function(n,t){return e.Debug.assert(_<3,"Cannot substitute a node after the result is disposed."),t&&L(t)&&g(n,t)||t},emitNodeWithNotification:function(n,t,r){e.Debug.assert(_<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(A(t)?v(n,t,r):r(n,t))},dispose:function(){if(_<3){for(var n=0,t=a;n<t.length;n++){var r=t[n];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(r)))}s=void 0,d=void 0,l=void 0,m=void 0,g=void 0,v=void 0,c=void 0,_=3}}};function L(n){return 0!=(1&u[n.kind])&&0==(4&e.getEmitFlags(n))}function A(n){return 0!=(2&u[n.kind])||0!=(2&e.getEmitFlags(n))}}}(u||(u={})),function(e){var n={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=function(t,r){var i,o,s,l,c,u,d,m,p=t.getCompilerOptions(),f=p.extendedDiagnostics,g=!(p.sourceMap||p.inlineSourceMap);return{initialize:function(r,a,f){g||(m&&_(),i=void 0,o=void 0,l=-1,c=void 0,u=n,d=0,(m={sourceMapFilePath:a,jsSourceMappingURL:p.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(a)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(r)),sourceMapSourceRoot:p.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:p.inlineSources?[]:void 0,sourceMapDecodedMappings:[]}).sourceMapSourceRoot=e.normalizeSlashes(m.sourceMapSourceRoot),m.sourceMapSourceRoot.length&&47!==m.sourceMapSourceRoot.charCodeAt(m.sourceMapSourceRoot.length-1)&&(m.sourceMapSourceRoot+=e.directorySeparator),p.mapRoot?(s=e.normalizeSlashes(p.mapRoot),272===f.kind&&(s=e.getDirectoryPath(e.getSourceFilePathInNewDir(f,t,s))),e.isRootedDiskPath(s)||e.isUrl(s)?m.jsSourceMappingURL=e.combinePaths(s,m.jsSourceMappingURL):(s=e.combinePaths(t.getCommonSourceDirectory(),s),m.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(r)),e.combinePaths(s,m.jsSourceMappingURL),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):s=e.getDirectoryPath(e.normalizePath(r)))},reset:_,getSourceMapData:function(){return m},setSourceFile:b,emitPos:h,emitNodeWithSourceMap:function(e,n,t){if(g)return t(e,n);if(n){var r=n.emitNode,a=r&&r.flags,o=r&&r.sourceMapRange,s=o||n,l=s.pos,c=s.end,u=o&&o.source,d=i;u===d&&(u=void 0),u&&b(u),294!==n.kind&&0==(16&a)&&l>=0&&h(v(l)),u&&b(d),64&a?(g=!0,t(e,n),g=!1):t(e,n),u&&b(u),294!==n.kind&&0==(32&a)&&c>=0&&h(c),u&&b(d)}},emitTokenWithSourceMap:function(e,n,t,r,a){if(g)return a(n,t,r);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[n];return r=v(s?s.pos:r),0==(128&o)&&r>=0&&h(r),r=a(n,t,r),s&&(r=s.end),0==(256&o)&&r>=0&&h(r),r},getText:E,getSourceMappingURL:function(){if(!g){if(p.inlineSourceMap){var n=e.convertToBase64(E());return m.jsSourceMappingURL="data:application/json;base64,"+n}return m.jsSourceMappingURL}}};function v(n){return i.skipTrivia?i.skipTrivia(n):e.skipTrivia(o,n)}function _(){g||(i=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,m=void 0)}function y(){if(c&&c!==u){var n=u.emittedColumn;if(u.emittedLine===c.emittedLine)m.sourceMapMappings&&(m.sourceMapMappings+=",");else{for(var t=u.emittedLine;t<c.emittedLine;t++)m.sourceMapMappings+=";";n=1}m.sourceMapMappings+=a(c.emittedColumn-n),m.sourceMapMappings+=a(c.sourceIndex-u.sourceIndex),m.sourceMapMappings+=a(c.sourceLine-u.sourceLine),m.sourceMapMappings+=a(c.sourceColumn-u.sourceColumn),c.nameIndex>=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),m.sourceMapMappings+=a(c.nameIndex-d),d=c.nameIndex),u=c,m.sourceMapDecodedMappings.push(u)}}function h(n){if(!g&&!e.positionIsSynthesized(n)){f&&e.performance.mark("beforeSourcemap");var t=e.getLineAndCharacterOfPosition(i,n);t.line++,t.character++;var a=r.getLine(),o=r.getColumn();!c||c.emittedLine!==a||c.emittedColumn!==o||c.sourceIndex===l&&(c.sourceLine>t.line||c.sourceLine===t.line&&c.sourceColumn>t.character)?(y(),c={emittedLine:a,emittedColumn:o,sourceLine:t.line,sourceColumn:t.character,sourceIndex:l}):(c.sourceLine=t.line,c.sourceColumn=t.character,c.sourceIndex=l),f&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function b(n){if(!g){o=(i=n).text;var r=p.sourceRoot?t.getCommonSourceDirectory():s,a=e.getRelativePathToDirectoryOrUrl(r,i.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(l=m.sourceMapSources.indexOf(a))&&(l=m.sourceMapSources.length,m.sourceMapSources.push(a),m.inputSourceFileNames.push(i.fileName),p.inlineSources&&m.sourceMapSourcesContent.push(i.text))}}function E(){if(!g)return y(),JSON.stringify({version:3,file:m.sourceMapFile,sourceRoot:m.sourceMapSourceRoot,sources:m.sourceMapSources,names:m.sourceMapNames,mappings:m.sourceMapMappings,sourcesContent:m.sourceMapSourcesContent})}};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(e){if(e<64)return t.charAt(e);throw TypeError(e+": not a 64 based value")}function a(e){e<0?e=1+(-e<<1):e<<=1;var n="";do{var t=31&e;(e>>=5)>0&&(t|=32),n+=r(t)}while(e>0);return n}}(u||(u={})),function(e){e.createCommentWriter=function(n,t){var r,a,i,o,s,l=n.extendedDiagnostics,c=e.getNewLineCharacter(n),u=-1,d=-1,m=-1,p=!1,f=n.removeComments;return{reset:function(){a=void 0,i=void 0,o=void 0,s=void 0},setWriter:function(e){r=e},setSourceFile:function(n){i=(a=n).text,o=e.getLineStarts(a),s=void 0},emitNodeWithComments:function(n,t,r){if(f)r(n,t);else if(t){p=!1;var a=t.emitNode,i=a&&a.flags,o=a&&a.commentRange||t,s=o.pos,c=o.end;if(s<0&&c<0||s===c)g(n,t,a,i,r);else{l&&e.performance.mark("preEmitNodeWithComment");var v=294!==t.kind,_=s<0||0!=(512&i)||10===t.kind,y=c<0||0!=(1024&i)||10===t.kind;_||h(s,v);var b=u,E=d,S=m;_||(u=s),y||(d=c,231===t.kind&&(m=c)),l&&e.performance.measure("commentTime","preEmitNodeWithComment"),g(n,t,a,i,r),l&&e.performance.mark("postEmitNodeWithComment"),u=b,d=E,m=S,!y&&v&&function(e){A(e,T)}(c),l&&e.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(n,t,a){l&&e.performance.mark("preEmitBodyWithDetachedComments");var u,d,m=t.pos,g=t.end,v=e.getEmitFlags(n),_=f||g<0||0!=(1024&v);m<0||0!=(512&v)||(u=t,(d=e.emitDetachedComments(i,o,r,x,u,c,f))&&(s?s.push(d):s=[d])),l&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&v&&!f?(f=!0,a(n),f=!1):a(n),l&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),_||(h(t.end,!0),p&&!r.isAtStartOfLine()&&r.writeLine()),l&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(n,t){f||(l&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),A(n,t?T:S),l&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){f||-1===e||h(e,!0)}};function g(n,t,r,a,i){var o=r&&r.leadingComments;e.some(o)&&(l&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(o,v),l&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),function(e,n,t,r){2048&t?(f=!0,r(e,n),f=!1):r(e,n)}(n,t,a,i);var s=r&&r.trailingComments;e.some(s)&&(l&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(s,_),l&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function v(e){2===e.kind&&r.writeLine(),y(e),e.hasTrailingNewLine||2===e.kind?r.writeLine():r.write(" ")}function _(e){r.isAtStartOfLine()||r.write(" "),y(e),e.hasTrailingNewLine&&r.writeLine()}function y(n){var t=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(n),a=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,a,r,0,t.length,c)}function h(e,n){p=!1,n?L(e,E):0===e&&L(e,b)}function b(n,t,r,a,o){(function(n,t){return e.isRecognizedTripleSlashComment(i,n,t)})(n,t)&&E(n,t,r,a,o)}function E(n,a,s,l,u){p||(e.emitNewLineBeforeLeadingCommentOfPosition(o,r,u,n),p=!0),t&&t(n),e.writeCommentRange(i,o,r,n,a,c),t&&t(a),l?r.writeLine():3===s&&r.write(" ")}function T(n,a,s,l){r.isAtStartOfLine()||r.write(" "),t&&t(n),e.writeCommentRange(i,o,r,n,a,c),t&&t(a),l&&r.writeLine()}function S(n,a,s,l){t&&t(n),e.writeCommentRange(i,o,r,n,a,c),t&&t(a),l?r.writeLine():r.write(" ")}function L(n,t){-1!==u&&n===u||(function(n){return void 0!==s&&e.lastOrUndefined(s).nodePos===n}(n)?function(n){var t=e.lastOrUndefined(s).detachedCommentEndPos;s.length-1?s.pop():s=void 0,e.forEachLeadingCommentRange(i,t,n,t)}(t):e.forEachLeadingCommentRange(i,n,t,n))}function A(n,t){(-1===d||n!==d&&n!==m)&&e.forEachTrailingCommentRange(i,n,t)}function x(n,r,a,i,o,s){t&&t(i),e.writeCommentRange(n,r,a,i,o,s),t&&t(o)}}}(u||(u={})),function(e){function n(n,t,r,a,i,o){var s,l,c,u,d,m,p,f,g,v,_,y,h=273===i.kind?i.sourceFiles:[i],b=273===i.kind,E=n.getNewLine(),T=n.getCompilerOptions();P();var S,L,A,x=!1,C=T.removeComments?e.noop:function(n){if(n){var t=e.getJSDocCommentRanges(n,g);e.emitNewLineBeforeLeadingComments(v,m,n,t),e.emitComments(g,v,m,t,!1,!0,E,e.writeCommentRange)}},k=T.stripInternal?function(n){if(n){var t=e.getLeadingCommentRanges(g,n.pos);if(e.forEach(t,w))return;Ee(n)}}:Ee,M=!0,D=[],O="",R=[],I=!1,N=[];return e.forEach(h,function(t){if(!e.isSourceFileJavaScript(t)){if(T.noResolve||e.forEach(t.referencedFiles,function(r){var i=e.tryResolveScriptReference(n,t,r);i&&!e.contains(R,i)&&(function(t,r,i){var o,s=!1;t.isDeclarationFile?o=t.fileName:e.forEachEmittedFile(n,function(n,a){var i=273===a.kind;if(i&&!r)return;e.Debug.assert(!!n.declarationFilePath||e.isSourceFileJavaScript(t),"Declaration file is not present only for javascript files"),o=n.declarationFilePath||n.jsFilePath,s=i},t,i);o&&(o=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(a)),o,n.getCurrentDirectory(),n.getCanonicalFileName,!1),O+='/// <reference path="'+o+'" />'+E);return s}(i,!b&&!I,o)&&(I=!0),R.push(i))}),f=!1,b&&e.isExternalModule(t)?e.isExternalModule(t)&&(M=!1,s('declare module "'+e.getResolvedExternalModuleName(n,t)+'" {'),l(),c(),Q(t),u(),s("}"),l()):(M=!0,Q(t)),D.length){var r=m;e.forEach(D,function(n){if(n.isVisible&&!n.asynchronousOutput){e.Debug.assert(242===n.node.kind),P(),e.Debug.assert(0===n.indent||1===n.indent&&b);for(var t=0;t<n.indent;t++)c();ae(n.node),n.asynchronousOutput=m.getText();for(t=0;t<n.indent;t++)u()}}),F(r),N=N.concat(D),D=[]}b||!e.isExternalModule(t)||f||(s("export {};"),l())}}),A&&e.forEachKey(A,function(e){O+='/// <reference types="'+e+'" />'+E}),{reportedDeclarationError:x,moduleElementDeclarationEmitInfo:N,synchronousDeclarationOutput:m.getText(),referencesOutput:O};function w(n){var t=g.substring(n.pos,n.end);return e.stringContains(t,"@internal")}function P(){var n=e.createTextWriter(E);n.trackSymbol=K,n.reportInaccessibleThisError=j,n.reportInaccessibleUniqueSymbolError=U,n.reportPrivateInBaseOfClassExpression=B,n.writeKeyword=n.write,n.writeOperator=n.write,n.writePunctuation=n.write,n.writeSpace=n.write,n.writeStringLiteral=n.writeLiteral,n.writeParameter=n.write,n.writeProperty=n.write,n.writeSymbol=n.write,F(n)}function F(e){m=e,s=e.write,d=e.writeTextOfNode,l=e.writeLine,c=e.increaseIndent,u=e.decreaseIndent}function V(n){var t=m;e.forEach(n,function(n){var t;230===n.kind?t=n.parent.parent:245===n.kind||246===n.kind||243===n.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):t=n;var r=e.forEach(D,function(e){return e.node===t?e:void 0});if(!r&&L&&(r=e.forEach(L,function(e){return e.node===t?e:void 0})),r)if(242===r.node.kind)r.isVisible=!0;else{P();for(var a=r.indent;a;a--)c();237===t.kind&&(e.Debug.assert(void 0===L),L=[]),ee(t),237===t.kind&&(r.subModuleElementDeclarationEmitInfo=L,L=void 0),r.asynchronousOutput=m.getText()}}),F(t)}function G(n){if(n){A||(A=e.createMap());for(var t=0,r=n;t<r.length;t++){var a=r[t];A.has(a)||A.set(a,a)}}}function H(n){if(0===n.accessibility)n&&n.aliasesToMakeVisible&&V(n.aliasesToMakeVisible);else{x=!0;var t=m.getSymbolAccessibilityDiagnostic(n);t&&(t.typeName?r.add(e.createDiagnosticForNode(n.errorNode||t.errorNode,t.diagnosticMessage,e.getTextOfNodeFromSourceText(g,t.typeName),n.errorSymbolName,n.errorModuleName)):r.add(e.createDiagnosticForNode(n.errorNode||t.errorNode,t.diagnosticMessage,n.errorSymbolName,n.errorModuleName)))}}function K(e,n,r){H(t.isSymbolAccessible(e,n,r,!0)),G(t.getTypeReferenceDirectivesForSymbol(e,r))}function B(n){S&&(x=!0,r.add(e.createDiagnosticForNode(S,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,n)))}function U(){S&&(x=!0,r.add(e.createDiagnosticForNode(S,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(S),"unique symbol")))}function j(){S&&(x=!0,r.add(e.createDiagnosticForNode(S,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(S),"this")))}function W(e,n,r){m.getSymbolAccessibilityDiagnostic=r,s(": ");var a=148===e.kind&&(t.isRequiredInitializedParameter(e)||t.isOptionalUninitializedParameterProperty(e));if(n&&!a)Y(n);else{S=e.name;var i=6152|(a?131072:0);t.writeTypeOfDeclaration(e,p,i,m),S=void 0}}function q(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];k(r)}}function z(e,n,t,r){for(var a=m.getTextPos(),i=0,o=e;i<o.length;i++){var l=o[i];r&&!r(l)||(a!==m.getTextPos()&&s(n),a=m.getTextPos(),t(l))}}function J(e,n,t){z(e,", ",n,t)}function X(e,n){m.getSymbolAccessibilityDiagnostic=n,Y(e)}function Y(n){switch(n.kind){case 119:case 137:case 134:case 122:case 135:case 138:case 105:case 140:case 95:case 131:case 173:case 177:return d(g,n);case 205:return r=n,void(e.isEntityNameExpression(r.expression)&&(e.Debug.assert(71===r.expression.kind||183===r.expression.kind),i(r.expression),r.typeArguments&&(s("<"),J(r.typeArguments,Y),s(">"))));case 161:return function(e){i(e.typeName),e.typeArguments&&(s("<"),J(e.typeArguments,Y),s(">"))}(n);case 164:return function(e){s("typeof "),i(e.exprName)}(n);case 166:return function(e){Y(e.elementType),s("[]")}(n);case 167:return function(e){s("["),J(e.elementTypes,Y),s("]")}(n);case 168:return function(e){z(e.types," | ",Y)}(n);case 169:return function(e){z(e.types," & ",Y)}(n);case 170:return function(e){Y(e.checkType),s(" extends "),Y(e.extendsType),s(" ? ");var n=p;p=e.trueType,Y(e.trueType),p=n,s(" : "),Y(e.falseType)}(n);case 171:return function(e){s("infer "),d(g,e.typeParameter.name)}(n);case 172:return function(e){s("("),Y(e.type),s(")")}(n);case 174:return function(n){s(e.tokenToString(n.operator)),s(" "),Y(n.type)}(n);case 175:return function(e){Y(e.objectType),s("["),Y(e.indexType),s("]")}(n);case 176:return function(e){var n=p;p=e,s("{"),l(),c(),e.readonlyToken&&s(37===e.readonlyToken.kind?"+readonly ":38===e.readonlyToken.kind?"-readonly ":"readonly ");s("["),a(e.typeParameter.name),s(" in "),Y(e.typeParameter.constraint),s("]"),e.questionToken&&s(37===e.questionToken.kind?"+?":38===e.questionToken.kind?"-?":"?");s(": "),e.type?Y(e.type):s("any");s(";"),l(),u(),s("}"),p=n}(n);case 162:case 163:return ye(n);case 165:return function(e){s("{"),e.members.length&&(l(),c(),q(e.members),u());s("}")}(n);case 71:case 145:return i(n);case 160:return function(e){d(g,e.parameterName),s(" is "),Y(e.type)}(n)}var r;function a(e){if(71===e.kind)d(g,e);else{var n=145===e.kind?e.left:e.expression,t=145===e.kind?e.right:e.name;a(n),s("."),d(g,t)}}function i(e){H(t.isEntityNameVisible(e,241===e.parent.kind?e.parent:p)),G(t.getTypeReferenceDirectivesForEntityName(e)),a(e)}}function Q(n){g=n.text,v=e.getLineStarts(n),_=n.identifiers,y=e.isExternalModule(n),p=n,e.emitDetachedComments(g,v,m,e.writeCommentRange,n,E,!0),q(n.statements)}function Z(e,n,r,a){var i=function(e){if(!_.has(e))return e;for(var n=0;;){var t=e+"_"+ ++n;if(!_.has(t))return t}}(n);return a&&s("declare "),s("const "),s(i),s(": "),m.getSymbolAccessibilityDiagnostic=function(){return r},t.writeTypeOfExpression(e,p,6152,m),s(";"),l(),i}function $(e,n){if(n)ee(e);else if(241===e.kind||272===e.parent.kind&&y){var r=void 0;if(L&&272!==e.parent.kind)L.push({node:e,outputPos:m.getTextPos(),indent:m.getIndent(),isVisible:r});else{if(242===e.kind){var a=e;a.importClause&&(r=a.importClause.name&&t.isDeclarationVisible(a.importClause)||re(a.importClause.namedBindings))}D.push({node:e,outputPos:m.getTextPos(),indent:m.getIndent(),isVisible:r})}}}function ee(n){switch(n.kind){case 232:return ve(n);case 212:return function(n){if(e.every(n.declarationList&&n.declarationList.declarations,function(n){return n.name&&e.isEmptyBindingPattern(n.name)}))return;C(n),ne(n),e.isLet(n.declarationList)?s("let "):e.isConst(n.declarationList)?s("const "):s("var ");J(n.declarationList.declarations,pe,me),s(";"),l()}(n);case 234:return function(n){C(n),ne(n),s("interface "),d(g,n.name);var t=p;p=n,ce(n.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(n),function(n){return e.isEntityNameExpression(n.expression)});r&&r.length&&ue(r,!1);s(" {"),l(),c(),q(n.members),u(),s("}"),l(),p=t}(n);case 233:return function(n){var t=p;p=n;var r,a=e.getClassExtendsHeritageClauseElement(n);a&&!e.isEntityNameExpression(a.expression)&&(r=95===a.expression.kind?"null":Z(a.expression,n.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:a,typeName:n.name},!e.findAncestor(n,function(e){return 237===e.kind})));C(n),ne(n),e.hasModifier(n,128)&&s("abstract ");s("class "),d(g,n.name),ce(n.typeParameters),a&&(e.isEntityNameExpression(a.expression)?ue([a],!1):(s(" extends "),s(r),a.typeArguments&&(s("<"),J(a.typeArguments,Y),s(">"))));ue(e.getClassImplementsHeritageClauseElements(n),!0),s(" {"),l(),c(),i=e.getFirstConstructorWithBody(n),i&&e.forEach(i.parameters,function(n){e.hasModifier(n,92)&&de(n)}),q(n.members),u(),s("}"),l(),p=t;var i}(n);case 235:return function(n){var t=p;p=n,C(n),ne(n),s("type "),d(g,n.name),ce(n.typeParameters),s(" = "),X(n.type,function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n.type,typeName:n.name}}),s(";"),l(),p=t}(n);case 236:return function(n){C(n),ne(n),e.isConst(n)&&s("const ");s("enum "),d(g,n.name),s(" {"),l(),c(),q(n.members),u(),s("}"),l()}(n);case 237:return function(n){C(n),ne(n),e.isGlobalScopeAugmentation(n)?s("global "):(16&n.flags?s("namespace "):s("module "),e.isExternalModuleAugmentation(n)?ie(n):d(g,n.name));for(;n.body&&238!==n.body.kind;)n=n.body,s("."),d(g,n.name);var t=p;n.body?(p=n,s(" {"),l(),c(),q(n.body.statements),u(),s("}"),l(),p=t):s(";")}(n);case 241:return function(n){C(n),e.hasModifier(n,1)&&s("export ");s("import "),d(g,n.name),s(" = "),e.isInternalModuleImportEqualsDeclaration(n)?(X(n.moduleReference,function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}),s(";")):(s("require("),ie(n),s(");"));m.writeLine()}(n);case 242:return ae(n);default:e.Debug.fail("Unknown symbol kind")}}function ne(n){if(272===n.parent.kind){var t=e.getModifierFlags(n);1&t&&(f=!0,s("export ")),512&t?s("default "):234!==n.kind&&M&&s("declare ")}}function te(e){8&e?s("private "):16&e&&s("protected "),32&e&&s("static "),64&e&&s("readonly "),128&e&&s("abstract ")}function re(e){if(e)return 244===e.kind?t.isDeclarationVisible(e):e.elements.some(function(e){return t.isDeclarationVisible(e)})}function ae(n){if(C(n),e.hasModifier(n,1)&&s("export "),s("import "),n.importClause){var r=m.getTextPos();n.importClause.name&&t.isDeclarationVisible(n.importClause)&&d(g,n.importClause.name),n.importClause.namedBindings&&re(n.importClause.namedBindings)&&(r!==m.getTextPos()&&s(", "),244===n.importClause.namedBindings.kind?(s("* as "),d(g,n.importClause.namedBindings.name)):(s("{ "),J(n.importClause.namedBindings.elements,oe,t.isDeclarationVisible),s(" }"))),s(" from ")}ie(n),s(";"),m.writeLine()}function ie(r){f=f||237!==r.kind;var a=241===r.kind?e.getExternalModuleImportEqualsDeclarationExpression(r):237===r.kind?r.name:r.moduleSpecifier;if(9===a.kind&&b&&(T.out||T.outFile)){var i=e.getExternalModuleNameFromDeclaration(n,t,r);if(i)return s('"'),s(i),void s('"')}d(g,a)}function oe(e){e.propertyName&&(d(g,e.propertyName),s(" as ")),d(g,e.name)}function se(e){oe(e),V(t.collectLinkedAliases(e.propertyName||e.name))}function le(n){return 153===n.parent.kind&&e.hasModifier(n.parent,8)}function ce(n){n&&(s("<"),J(n,function(n){function t(){var t;switch(n.parent.kind){case 233:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 234:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 158:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:case 152:t=e.hasModifier(n.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:233===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 232:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 235:t=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+n.parent.kind)}return{diagnosticMessage:t,errorNode:n,typeName:n.name}}c(),C(n),u(),d(g,n.name),n.constraint&&!le(n)&&(s(" extends "),162===n.parent.kind||163===n.parent.kind||n.parent.parent&&165===n.parent.parent.kind?(e.Debug.assert(153===n.parent.kind||152===n.parent.kind||162===n.parent.kind||163===n.parent.kind||157===n.parent.kind||158===n.parent.kind),Y(n.constraint)):X(n.constraint,t)),n.default&&!le(n)&&(s(" = "),162===n.parent.kind||163===n.parent.kind||n.parent.parent&&165===n.parent.parent.kind?(e.Debug.assert(153===n.parent.kind||152===n.parent.kind||162===n.parent.kind||163===n.parent.kind||157===n.parent.kind||158===n.parent.kind),Y(n.default)):X(n.default,t))}),s(">"))}function ue(n,t){n&&(s(t?" implements ":" extends "),J(n,function(n){e.isEntityNameExpression(n.expression)?X(n,function(){var r;r=233===n.parent.parent.kind?t?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}):t||95!==n.expression.kind||s("null")}))}function de(n){e.hasDynamicName(n)&&!t.isLateBound(n)||(C(n),te(e.getModifierFlags(n)),pe(n),s(";"),l())}function me(n){return t.isDeclarationVisible(n)||function(n){return!!n&&e.isBindingPattern(n)&&e.some(n.elements,function(n){return!e.isOmittedExpression(n)&&me(n)})}(n.name)}function pe(n){function r(t){return 230===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:151===n.kind||150===n.kind||148===n.kind&&e.hasModifier(n.parent,8)?e.hasModifier(n,32)?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:233===n.parent.kind||148===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}function a(e){var t=r(e);return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0}function i(e){for(var n=[],t=0,r=e.elements;t<r.length;t++){var a=r[t];204!==a.kind&&me(a)&&n.push(a)}J(n,o)}function o(n){n.name&&(e.isBindingPattern(n.name)?i(n.name):(d(g,n.name),W(n,void 0,function(e){var t=r(e);return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0})))}(230!==n.kind||me(n))&&(e.isBindingPattern(n.name)?i(n.name):(_e(n,a),(151===n.kind||150===n.kind||148===n.kind&&!e.isParameterPropertyDeclaration(n))&&e.hasQuestionToken(n)&&s("?"),151!==n.kind&&150!==n.kind||165!==n.parent.kind?t.isLiteralConstDeclaration(n)?(s(" = "),t.writeLiteralConstValue(n,m)):e.hasModifier(n,8)||W(n,n.type,a):fe(n)))}function fe(n){e.hasType(n)&&(s(": "),Y(n.type))}function ge(n){if(!e.hasDynamicName(n)||t.isLateBound(n)){var r,a=e.getAllAccessorDeclarations(n.parent.members,n);if(n===a.firstAccessor){if(C(a.getAccessor),C(a.setAccessor),te(e.getModifierFlags(n)|(a.setAccessor?0:64)),_e(n,function(t){var r=function(t){return e.hasModifier(n,32)?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:233===n.parent.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}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}),!e.hasModifier(n,8)){r=n;var i=c(n);if(!i){var o=155===n.kind?a.setAccessor:a.getAccessor;(i=c(o))&&(r=o)}W(n,i,function(n){var t;t=156===r.kind?e.hasModifier(r,32)?n.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:n.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.hasModifier(r,32)?n.errorModuleName?2===n.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:n.errorModuleName?2===n.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:t,errorNode:r.name,typeName:r.name}})}s(";"),l()}}function c(e){if(e)return 155===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}}function ve(n){e.hasDynamicName(n)&&!t.isLateBound(n)||t.isImplementationOfOverload(n)||(C(n),232===n.kind?ne(n):153!==n.kind&&154!==n.kind||te(e.getModifierFlags(n)),232===n.kind?(s("function "),d(g,n.name)):154===n.kind?s("constructor"):(_e(n,function(t){var r=function(t){return e.hasModifier(n,32)?t.errorModuleName?2===t.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:233===n.parent.kind?t.errorModuleName?2===t.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:t.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}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}),e.hasQuestionToken(n)&&s("?")),he(n))}function _e(n,r){e.hasDynamicName(n)?(e.Debug.assert(t.isLateBound(n)),function(e,n){m.getSymbolAccessibilityDiagnostic=n;var r=e.name.expression;H(t.isEntityNameVisible(r,p)),G(t.getTypeReferenceDirectivesForEntityName(r)),d(g,e.name)}(n,r)):d(g,n.name)}function ye(e){C(e),he(e)}function he(n){var r=p;p=n;var a=!1;if(159===n.kind)te(e.getModifierFlags(n)),s("[");else{if(154===n.kind&&e.hasModifier(n,8))return s("();"),void l();if(158===n.kind||163===n.kind)s("new ");else if(162===n.kind){var i=m.getText();n.typeParameters&&"<"===i.charAt(i.length-1)&&(a=!0,s("("))}ce(n.typeParameters),s("(")}J(n.parameters,be),159===n.kind?s("]"):s(")");var o,c,u=162===n.kind||163===n.kind;u||165===n.parent.kind?n.type&&(s(u?" => ":": "),Y(n.type)):154===n.kind||e.hasModifier(n,8)||(o=n,c=function(t){var r;switch(n.kind){case 158: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 157: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 159: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 153:case 152:r=e.hasModifier(n,32)?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:233===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 232: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:e.Debug.fail("This is unknown kind for signature: "+n.kind)}return{diagnosticMessage:r,errorNode:n.name||n}},m.getSymbolAccessibilityDiagnostic=c,s(": "),o.type?Y(o.type):(S=o.name,t.writeReturnTypeOfSignatureDeclaration(o,p,6152,m),S=void 0)),p=r,u?a&&s(")"):(s(";"),l())}function be(n){function r(e){if(178===e.kind)s("{"),J(e.elements,a),s("}");else if(179===e.kind){s("[");var n=e.elements;J(n,a),n&&n.hasTrailingComma&&s(", "),s("]")}}function a(n){204===n.kind?s(" "):180===n.kind&&(n.propertyName&&(d(g,n.propertyName),s(": ")),n.name&&(e.isBindingPattern(n.name)?r(n.name):(e.Debug.assert(71===n.name.kind),n.dotDotDotToken&&s("..."),d(g,n.name))))}c(),C(n),n.dotDotDotToken&&s("..."),e.isBindingPattern(n.name)?r(n.name):d(g,n.name),t.isOptionalParameter(n)&&s("?"),u(),162===n.parent.kind||163===n.parent.kind||165===n.parent.parent.kind?fe(n):e.hasModifier(n.parent,8)||W(n,n.type,function(t){var r=function(t){switch(n.parent.kind){case 154: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 158: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 157: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 159: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 153:case 152:return e.hasModifier(n.parent,32)?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:233===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 232: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;default:e.Debug.fail("This is unknown parent for parameter: "+n.parent.kind)}}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0})}function Ee(n){switch(n.kind){case 232:case 237:case 241:case 234:case 233:case 235:case 236:return $(n,function(e){return t.isDeclarationVisible(e)}(n));case 212:return $(n,function(n){return e.forEach(n.declarationList.declarations,function(e){return me(e)})}(n));case 242:return $(n,!n.importClause);case 248:return function(e){f=!0,C(e),s("export "),e.exportClause?(s("{ "),J(e.exportClause.elements,se),s(" }")):s("*"),e.moduleSpecifier&&(s(" from "),ie(e)),s(";"),m.writeLine()}(n);case 154:case 153:case 152:return ve(n);case 158:case 157:case 159:return ye(n);case 155:case 156:return ge(n);case 151:case 150:return de(n);case 271:return function(n){C(n),d(g,n.name);var r=t.getConstantValue(n);void 0!==r&&(s(" = "),s(e.getTextOfConstantValue(r))),s(","),l()}(n);case 247:return function(n){if(e.isSourceFile(n.parent)&&(f=!0),71===n.expression.kind)s(n.isExportEquals?"export = ":"export default "),d(g,n.expression);else{var r=Z(n.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:n},M);s(n.isExportEquals?"export = ":"export default "),s(r)}s(";"),l(),71===n.expression.kind&&V(t.collectLinkedAliases(n.expression))}(n);case 272:return Q(n)}}}e.getDeclarationDiagnostics=function(t,r,a){var i=e.createDiagnosticCollection();return e.forEachEmittedFile(t,function(e,a){var o=e.declarationFilePath;n(t,r,i,o,a,!1)},a),i.getDiagnostics(a?a.fileName:void 0)},e.writeDeclarationFile=function(t,r,a,i,o,s){var l=n(a,i,o,t,r,s),c=l.reportedDeclarationError||a.isEmitBlocked(t)||a.getCompilerOptions().noEmit;if(!c||s){var u=273===r.kind?r.sourceFiles:[r],d=l.referencesOutput+function n(t,r){var a=0,i="";return e.forEach(r,function(e){e.asynchronousOutput&&(i+=t.substring(a,e.outputPos),i+=n(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),a=e.outputPos)}),i+=t.substring(a)}(l.synchronousDeclarationOutput,l.moduleElementDeclarationEmitInfo);e.writeFile(a,o,t,d,a.getCompilerOptions().emitBOM,u)}return c}}(u||(u={})),function(e){var n,t=function(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}();function r(n,t,r,o){var s=e.isArray(r)?r:e.getSourceFilesToEmit(n,r),l=n.getCompilerOptions();if(l.outFile||l.out){if(s.length&&(m=t({jsFilePath:d=l.outFile||l.out,sourceMapFilePath:a(d,l),declarationFilePath:l.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o)))return m}else for(var c=0,u=s;c<u.length;c++){var d,m,p=u[c];if(m=t({jsFilePath:d=e.getOwnEmitOutputFilePath(p,n,i(p,l)),sourceMapFilePath:a(d,l),declarationFilePath:e.isSourceFileJavaScript(p)||!o&&!l.declaration?void 0:e.getDeclarationEmitOutputFilePath(p,n)},p,o))return m}}function a(e,n){return n.sourceMap?e+".map":void 0}function i(n,t){if(1===t.jsx)if(e.isSourceFileJavaScript(n)){if(e.fileExtensionIs(n.fileName,".jsx"))return".jsx"}else if(1===n.languageVariant)return".jsx";return".js"}function o(n,r){void 0===n&&(n={}),void 0===r&&(r={});var a,i,o,s,l,c,u,d,m,p,f=r.hasGlobalName,g=r.onEmitSourceMapOfNode,v=r.onEmitSourceMapOfToken,_=r.onEmitSourceMapOfPosition,y=r.onEmitNode,h=r.onEmitHelpers,b=r.onSetSourceFile,E=r.substituteNode,T=r.onBeforeEmitNodeArray,S=r.onAfterEmitNodeArray,L=r.onBeforeEmitToken,A=r.onAfterEmitToken,x=e.getNewLineCharacter(n),C=e.createCommentWriter(n,_),k=C.emitNodeWithComments,M=C.emitBodyWithDetachedComments,D=C.emitTrailingCommentsOfPosition,O=C.emitLeadingCommentsOfPosition,R=function(e){I(),m.write(e)},I=e.noop,N=ze,w=!1;n.omitTrailingSemicolon&&(I=function(){w&&(ze(),w=!1)},N=function(){w=!0});var P={pos:-1,end:-1};return J(),{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 272:return V(t);case 273:return F(t)}return G(n,t,r,U()),j()},printList:function(e,n,t){return H(e,n,t,U()),j()},printFile:V,printBundle:F,writeNode:G,writeList:H,writeFile:B,writeBundle:K};function F(e){return K(e,U()),j()}function V(e){return B(e,U()),j()}function G(e,n,t,r){var a=m;z(r),W(e,n,t),J(),m=a}function H(e,n,t,r){var a=m;z(r),t&&q(t),Ke(P,n,e),J(),m=a}function K(e,n){var t=m;z(n),ke(e),Ce(e),ie(e);for(var r=0,a=e.sourceFiles;r<a.length;r++){var i=a[r];W(0,i,i)}J(),m=t}function B(e,n){var t=m;z(n),ke(e),Ce(e),W(0,e,e),J(),m=t}function U(){return p||(p=e.createTextWriter(x))}function j(){var e=p.getText();return p.clear(),e}function W(e,n,t){t&&q(t),$(e,n)}function q(e){a=e,C.setSourceFile(e),b&&b(e)}function z(e){m=e,C.setWriter(e)}function J(){i=[],o=[],s=e.createMap(),l=[],c=0,u=[],C.reset(),z(void 0)}function X(e){e&&Y(e)}function Y(e){$(4,e)}function Q(e){$(2,e)}function Z(e){$(1,e)}function $(e,n){y?y(e,n,ee):ee(e,n)}function ee(e,n){n=ae(e,n),k&&0!==e?k(e,n,ne):ne(e,n)}function ne(e,n){g&&0!==e&&2!==e?g(e,n,te):te(e,n)}function te(n,t){switch(n){case 0:return function(n){e.Debug.assertNode(n,e.isSourceFile),function(n){$e();var t=n.statements;if(M){var r=0===t.length||!e.isPrologueDirective(t[0])||e.nodeIsSynthesized(t[0]);if(r)return void M(n,t,Ae)}Ae(n)}(n)}(t);case 2:return function(n){e.Debug.assertNode(n,e.isIdentifier),se(n)}(t);case 1:return re(t);case 3:return function(e){Y(e.name),Qe(),Je("in"),Qe(),Y(e.constraint)}(e.cast(t,e.isTypeParameterDeclaration));case 4:return function(n){var t=n.kind;if(e.isKeyword(t))return void rn(n,Je);switch(t){case 14:case 15:case 16:return oe(n);case 71:return se(n);case 145:return function(e){(function(e){71===e.kind?Z(e):Y(e)})(e.left),qe("."),Y(e.right)}(n);case 146:return function(e){qe("["),Z(e.expression),qe("]")}(n);case 147:return function(e){Y(e.name),e.constraint&&(Qe(),Je("extends"),Qe(),Y(e.constraint));e.default&&(Qe(),Xe("="),Qe(),Y(e.default))}(n);case 148:return function(e){Pe(e,e.decorators),De(e,e.modifiers),X(e.dotDotDotToken),e.name&&Me(e.name,Ye);X(e.questionToken),e.parent&&280===e.parent.kind&&!e.name?Y(e.type):Oe(e.type);Re(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)}(n);case 149:return r=n,qe("@"),void Z(r.expression);case 150:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Me(e.name,Ze),X(e.questionToken),Oe(e.type),N()}(n);case 151:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Y(e.name),X(e.questionToken),X(e.exclamationToken),Oe(e.type),Re(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),N()}(n);case 152:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Y(e.name),X(e.questionToken),Ve(e,e.typeParameters),Ge(e,e.parameters),Oe(e.type),N()}(n);case 153:return function(e){Pe(e,e.decorators),De(e,e.modifiers),X(e.asteriskToken),Y(e.name),X(e.questionToken),ge(e,ve)}(n);case 154:return function(e){De(e,e.modifiers),Je("constructor"),ge(e,ve)}(n);case 155:case 156:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Je(155===e.kind?"get":"set"),Qe(),Y(e.name),ge(e,ve)}(n);case 157:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Ve(e,e.typeParameters),Ge(e,e.parameters),Oe(e.type),N()}(n);case 158:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Je("new"),Qe(),Ve(e,e.typeParameters),Ge(e,e.parameters),Oe(e.type),N()}(n);case 159:return function(e){Pe(e,e.decorators),De(e,e.modifiers),n=e,t=e.parameters,Ke(n,t,4432),Oe(e.type),N();var n,t}(n);case 160:return function(e){Y(e.parameterName),Qe(),Je("is"),Qe(),Y(e.type)}(n);case 161:return function(e){Y(e.typeName),Fe(e,e.typeArguments)}(n);case 162:return function(e){Ve(e,e.typeParameters),He(e,e.parameters),Qe(),qe("=>"),Qe(),Y(e.type)}(n);case 280:return function(e){R("function"),Ge(e,e.parameters),R(":"),Y(e.type)}(n);case 163:return function(e){Je("new"),Qe(),Ve(e,e.typeParameters),Ge(e,e.parameters),Qe(),qe("=>"),Qe(),Y(e.type)}(n);case 164:return function(e){Je("typeof"),Qe(),Y(e.exprName)}(n);case 165:return function(n){qe("{");var t=1&e.getEmitFlags(n)?448:65;Ke(n,n.members,262144|t),qe("}")}(n);case 166:return function(e){Y(e.elementType),qe("["),qe("]")}(n);case 167:return function(e){qe("["),Ke(e,e.elementTypes,336),qe("]")}(n);case 168:return function(e){Ke(e,e.types,260)}(n);case 169:return function(e){Ke(e,e.types,264)}(n);case 170:return function(e){Y(e.checkType),Qe(),Je("extends"),Qe(),Y(e.extendsType),Qe(),qe("?"),Qe(),Y(e.trueType),Qe(),qe(":"),Qe(),Y(e.falseType)}(n);case 171:return function(e){Je("infer"),Qe(),Y(e.typeParameter)}(n);case 172:return function(e){qe("("),Y(e.type),qe(")")}(n);case 205:return function(e){Z(e.expression),Fe(e,e.typeArguments)}(n);case 173:return void Je("this");case 174:return function(e){an(e.operator,Je),Qe(),Y(e.type)}(n);case 175:return function(e){Y(e.objectType),qe("["),Y(e.indexType),qe("]")}(n);case 176:return function(n){var t=e.getEmitFlags(n);qe("{"),1&t?Qe():($e(),en());n.readonlyToken&&(Y(n.readonlyToken),132!==n.readonlyToken.kind&&Je("readonly"),Qe());qe("["),$(3,n.typeParameter),qe("]"),n.questionToken&&(Y(n.questionToken),55!==n.questionToken.kind&&qe("?"));qe(":"),Qe(),Y(n.type),N(),1&t?Qe():($e(),nn());qe("}")}(n);case 177:return function(e){Z(e.literal)}(n);case 275:return void R("*");case 276:return void R("?");case 277:return function(e){R("?"),Y(e.type)}(n);case 278:return function(e){R("!"),Y(e.type)}(n);case 279:return function(e){Y(e.type),R("=")}(n);case 281:return function(e){R("..."),Y(e.type)}(n);case 178:return function(e){qe("{"),Ke(e,e.elements,262576),qe("}")}(n);case 179:return function(e){qe("["),Ke(e,e.elements,262448),qe("]")}(n);case 180:return function(e){X(e.dotDotDotToken),e.propertyName&&(Y(e.propertyName),qe(":"),Qe());Y(e.name),Re(e.initializer,e.name.end,e)}(n);case 209:return function(e){Z(e.expression),Y(e.literal)}(n);case 210:return void N();case 211:return function(e){ce(e,!e.multiLine&&gn(e))}(n);case 212:return function(e){De(e,e.modifiers),Y(e.declarationList),N()}(n);case 213:return void N();case 214:return function(e){Z(e.expression),N()}(n);case 215:return function(e){var n=me(90,e.pos,Je,e);Qe(),me(19,n,qe,e),Z(e.expression),me(20,e.expression.end,qe,e),we(e,e.thenStatement),e.elseStatement&&(on(e),me(82,e.thenStatement.end,Je,e),215===e.elseStatement.kind?(Qe(),Y(e.elseStatement)):we(e,e.elseStatement))}(n);case 216:return function(n){me(81,n.pos,Je,n),we(n,n.statement),e.isBlock(n.statement)?Qe():on(n);ue(n,n.statement.end),qe(";")}(n);case 217:return function(e){ue(e,e.pos),we(e,e.statement)}(n);case 218:return function(e){var n=me(88,e.pos,Je,e);Qe();var t=me(19,n,qe,e);de(e.initializer),t=me(25,e.initializer?e.initializer.end:t,N,e),Ne(e.condition),t=me(25,e.condition?e.condition.end:t,N,e),Ne(e.incrementor),me(20,e.incrementor?e.incrementor.end:t,qe,e),we(e,e.statement)}(n);case 219:return function(e){var n=me(88,e.pos,Je,e);Qe(),me(19,n,qe,e),de(e.initializer),Qe(),me(92,e.initializer.end,Je,e),Qe(),Z(e.expression),me(20,e.expression.end,qe,e),we(e,e.statement)}(n);case 220:return function(e){var n=me(88,e.pos,Je,e);Qe(),function(e){e&&(Y(e),Qe())}(e.awaitModifier),me(19,n,qe,e),de(e.initializer),Qe(),me(144,e.initializer.end,Je,e),Qe(),Z(e.expression),me(20,e.expression.end,qe,e),we(e,e.statement)}(n);case 221:return function(e){me(77,e.pos,Je,e),Ie(e.label),N()}(n);case 222:return function(e){me(72,e.pos,Je,e),Ie(e.label),N()}(n);case 223:return function(e){me(96,e.pos,Je,e),Ne(e.expression),N()}(n);case 224:return function(e){var n=me(107,e.pos,Je,e);Qe(),me(19,n,qe,e),Z(e.expression),me(20,e.expression.end,qe,e),we(e,e.statement)}(n);case 225:return function(e){var n=me(98,e.pos,Je,e);Qe(),me(19,n,qe,e),Z(e.expression),me(20,e.expression.end,qe,e),Qe(),Y(e.caseBlock)}(n);case 226:return function(e){Y(e.label),me(56,e.label.end,qe,e),Qe(),Y(e.statement)}(n);case 227:return function(e){me(100,e.pos,Je,e),Ne(e.expression),N()}(n);case 228:return function(e){me(102,e.pos,Je,e),Qe(),Y(e.tryBlock),e.catchClause&&(on(e),Y(e.catchClause));e.finallyBlock&&(on(e),me(87,(e.catchClause||e.tryBlock).end,Je,e),Qe(),Y(e.finallyBlock))}(n);case 229:return function(e){tn(78,e.pos,Je),N()}(n);case 230:return function(e){Y(e.name),Oe(e.type),Re(e.initializer,e.type?e.type.end:e.name.end,e)}(n);case 231:return function(n){Je(e.isLet(n)?"let":e.isConst(n)?"const":"var"),Qe(),Ke(n,n.declarations,272)}(n);case 232:return function(e){pe(e)}(n);case 233:return function(e){be(e)}(n);case 234:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Je("interface"),Qe(),Y(e.name),Ve(e,e.typeParameters),Ke(e,e.heritageClauses,256),Qe(),qe("{"),Ke(e,e.members,65),qe("}")}(n);case 235:return function(e){Pe(e,e.decorators),De(e,e.modifiers),Je("type"),Qe(),Y(e.name),Ve(e,e.typeParameters),Qe(),qe("="),Qe(),Y(e.type),N()}(n);case 236:return function(e){De(e,e.modifiers),Je("enum"),Qe(),Y(e.name),Qe(),qe("{"),Ke(e,e.members,81),qe("}")}(n);case 237:return function(e){De(e,e.modifiers),512&~e.flags&&(Je(16&e.flags?"namespace":"module"),Qe());Y(e.name);var n=e.body;for(;237===n.kind;)qe("."),Y(n.name),n=n.body;Qe(),Y(n)}(n);case 238:return function(e){hn(e),ce(e,gn(e)),bn(e)}(n);case 239:return function(e){me(17,e.pos,qe,e),Ke(e,e.clauses,65),me(18,e.clauses.end,qe,e,!0)}(n);case 240:return function(e){var n=me(84,e.pos,Je,e);Qe(),n=me(118,n,Je,e),Qe(),n=me(130,n,Je,e),Qe(),Y(e.name),N()}(n);case 241:return function(e){De(e,e.modifiers),me(91,e.modifiers?e.modifiers.end:e.pos,Je,e),Qe(),Y(e.name),Qe(),me(58,e.name.end,qe,e),Qe(),function(e){71===e.kind?Z(e):Y(e)}(e.moduleReference),N()}(n);case 242:return function(e){De(e,e.modifiers),me(91,e.modifiers?e.modifiers.end:e.pos,Je,e),Qe(),e.importClause&&(Y(e.importClause),Qe(),me(142,e.importClause.end,Je,e),Qe());Z(e.moduleSpecifier),N()}(n);case 243:return function(e){Y(e.name),e.name&&e.namedBindings&&(me(26,e.name.end,qe,e),Qe());Y(e.namedBindings)}(n);case 244:return function(e){var n=me(39,e.pos,qe,e);Qe(),me(118,n,Je,e),Qe(),Y(e.name)}(n);case 245:return function(e){Ee(e)}(n);case 246:return function(e){Te(e)}(n);case 247:return function(e){var n=me(84,e.pos,Je,e);Qe(),e.isExportEquals?me(58,n,Xe,e):me(79,n,Je,e);Qe(),Z(e.expression),N()}(n);case 248:return function(e){var n=me(84,e.pos,Je,e);Qe(),e.exportClause?Y(e.exportClause):n=me(39,n,qe,e);if(e.moduleSpecifier){Qe();var t=e.exportClause?e.exportClause.end:n;me(142,t,Je,e),Qe(),Z(e.moduleSpecifier)}N()}(n);case 249:return function(e){Ee(e)}(n);case 250:return function(e){Te(e)}(n);case 251:return;case 252:return function(e){Je("require"),qe("("),Z(e.expression),qe(")")}(n);case 10:return function(e){I(),m.writeLiteral(_n(e,!0))}(n);case 255:case 258:return function(n){qe("<"),e.isJsxOpeningElement(n)&&(Se(n.tagName),n.attributes.properties&&n.attributes.properties.length>0&&(Qe(),Y(n.attributes)));qe(">")}(n);case 256:case 259:return function(n){qe("</"),e.isJsxClosingElement(n)&&Se(n.tagName);qe(">")}(n);case 260:return function(e){Y(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",qe,e.initializer,Y)}(n);case 261:return function(e){Ke(e,e.properties,131328)}(n);case 262:return function(e){qe("{..."),Z(e.expression),qe("}")}(n);case 263:return function(e){e.expression&&(qe("{"),X(e.dotDotDotToken),Z(e.expression),qe("}"))}(n);case 264:return function(e){me(73,e.pos,Je,e),Qe(),Z(e.expression),Le(e,e.statements,e.expression.end)}(n);case 265:return function(e){var n=me(79,e.pos,Je,e);Le(e,e.statements,n)}(n);case 266:return function(e){Qe(),an(e.token,Je),Qe(),Ke(e,e.types,272)}(n);case 267:return function(e){var n=me(74,e.pos,Je,e);Qe(),e.variableDeclaration&&(me(19,n,qe,e),Y(e.variableDeclaration),me(20,e.variableDeclaration.end,qe,e),Qe());Y(e.block)}(n);case 268:return function(n){Y(n.name),qe(":"),Qe();var t=n.initializer;if(D&&0==(512&e.getEmitFlags(t))){var r=e.getCommentRange(t);D(r.pos)}Z(t)}(n);case 269:return function(e){Y(e.name),e.objectAssignmentInitializer&&(Qe(),qe("="),Qe(),Z(e.objectAssignmentInitializer))}(n);case 270:return function(e){e.expression&&(qe("..."),Z(e.expression))}(n);case 271:return function(e){Y(e.name),Re(e.initializer,e.name.end,e)}(n)}var r;if(e.isExpression(n))return re(ae(1,n));if(e.isToken(n))return void rn(n,qe)}(t)}}function re(t){switch(t.kind){case 8:return function(e){oe(e)}(t);case 9:case 12:case 13:return oe(t);case 71:return se(t);case 86:case 95:case 97:case 101:case 99:case 91:return void rn(t,Je);case 181:return function(e){var n=e.elements,t=e.multiLine?32768:0;Be(e,n,4466|t)}(t);case 182:return function(n){var t=65536&e.getEmitFlags(n);t&&en();var r=n.multiLine?32768:0,i=a.languageVersion>=1?32:0;Ke(n,n.properties,263122|i|r),t&&nn()}(t);case 183:return function(t){var r=!1,i=!1;if(!(131072&e.getEmitFlags(t))){var o=t.expression.end,s=e.skipTrivia(a.text,t.expression.end)+1,l=e.createToken(23);l.pos=o,l.end=s,r=fn(t,t.expression,l),i=fn(t,l,t.name)}Z(t.expression),ln(r),!r&&function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=yn(t);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(23))}if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)){var a=e.getConstantValue(t);return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a&&n.removeComments}}(t.expression)&&qe(".");me(23,t.expression.end,qe,t),ln(i),Y(t.name),cn(r,i)}(t);case 184:return function(e){Z(e.expression);var n=me(21,e.expression.end,qe,e);Z(e.argumentExpression),me(22,e.argumentExpression?e.argumentExpression.end:n,qe,e)}(t);case 185:return function(e){Z(e.expression),Fe(e,e.typeArguments),Be(e,e.arguments,1296)}(t);case 186:return function(e){me(94,e.pos,Je,e),Qe(),Z(e.expression),Fe(e,e.typeArguments),Be(e,e.arguments,9488)}(t);case 187:return function(e){Z(e.tag),Qe(),Z(e.template)}(t);case 188:return function(e){qe("<"),Y(e.type),qe(">"),Z(e.expression)}(t);case 189:return function(e){var n=me(19,e.pos,qe,e);Z(e.expression),me(20,e.expression?e.expression.end:n,qe,e)}(t);case 190:return function(e){pe(e)}(t);case 191:return function(e){Pe(e,e.decorators),De(e,e.modifiers),ge(e,le)}(t);case 192:return function(e){me(80,e.pos,Je,e),Qe(),Z(e.expression)}(t);case 193:return function(e){me(103,e.pos,Je,e),Qe(),Z(e.expression)}(t);case 194:return function(e){me(105,e.pos,Je,e),Qe(),Z(e.expression)}(t);case 195:return function(e){me(121,e.pos,Je,e),Qe(),Z(e.expression)}(t);case 196:return function(e){an(e.operator,Xe),function(e){var n=e.operand;return 196===n.kind&&(37===e.operator&&(37===n.operator||43===n.operator)||38===e.operator&&(38===n.operator||44===n.operator))}(e)&&Qe();Z(e.operand)}(t);case 197:return function(e){Z(e.operand),an(e.operator,Xe)}(t);case 198:return function(e){var n=26!==e.operatorToken.kind,t=fn(e,e.left,e.operatorToken),r=fn(e,e.operatorToken,e.right);Z(e.left),ln(t,n?" ":void 0),O(e.operatorToken.pos),rn(e.operatorToken,Xe),D(e.operatorToken.end,!0),ln(r," "),Z(e.right),cn(t,r)}(t);case 199:return function(e){var n=fn(e,e.condition,e.questionToken),t=fn(e,e.questionToken,e.whenTrue),r=fn(e,e.whenTrue,e.colonToken),a=fn(e,e.colonToken,e.whenFalse);Z(e.condition),ln(n," "),Y(e.questionToken),ln(t," "),Z(e.whenTrue),cn(n,t),ln(r," "),Y(e.colonToken),ln(a," "),Z(e.whenFalse),cn(r,a)}(t);case 200:return function(e){Y(e.head),Ke(e,e.templateSpans,131072)}(t);case 201:return function(e){me(116,e.pos,Je,e),Y(e.asteriskToken),Ne(e.expression)}(t);case 202:return function(e){qe("..."),Z(e.expression)}(t);case 203:return function(e){be(e)}(t);case 204:return;case 206:return function(e){Z(e.expression),e.type&&(Qe(),Je("as"),Qe(),Y(e.type))}(t);case 207:return function(e){Z(e.expression),Xe("!")}(t);case 208:return function(e){tn(e.keywordToken,e.pos,qe),qe("."),Y(e.name)}(t);case 253:return function(e){Y(e.openingElement),Ke(e,e.children,131072),Y(e.closingElement)}(t);case 254:return function(e){qe("<"),Se(e.tagName),Qe(),e.attributes.properties&&e.attributes.properties.length>0&&Y(e.attributes);qe("/>")}(t);case 257:return function(e){Y(e.openingFragment),Ke(e,e.children,131072),Y(e.closingFragment)}(t);case 295:return function(e){Z(e.expression)}(t);case 296:return function(e){Be(e,e.elements,272)}(t)}}function ae(e,n){return n&&E&&E(e,n)||n}function ie(e){h&&h(e,sn)}function oe(t){var r,a=yn(t);!n.sourceMap&&!n.inlineSourceMap||9!==t.kind&&!e.isTemplateLiteralKind(t.kind)?function(e){I(),m.writeStringLiteral(e)}(a):(r=a,I(),m.writeLiteral(r))}function se(e){(e.symbol?We:R)(_n(e,!1),e.symbol),Ke(e,e.typeArguments,26896)}function le(e){Ve(e,e.typeParameters),He(e,e.parameters),Oe(e.type),Qe(),Y(e.equalsGreaterThanToken)}function ce(n,t){me(17,n.pos,qe,n);var r=t||1&e.getEmitFlags(n)?384:65;Ke(n,n.statements,r),me(18,n.statements.end,qe,n,!!(1&r))}function ue(e,n){var t=me(106,n,Je,e);Qe(),me(19,t,qe,e),Z(e.expression),me(20,e.expression.end,qe,e)}function de(e){void 0!==e&&(231===e.kind?Y(e):Z(e))}function me(n,t,r,i,o){var s=i&&e.getParseTreeNode(i),l=s&&s.kind===i.kind,c=t;if(l&&(t=e.skipTrivia(a.text,t)),O&&l){var u=o&&!e.positionsAreOnSameLine(c,t,a);u&&en(),O(c),u&&nn()}return t=an(n,r,t),D&&l&&D(t,!0),t}function pe(e){Pe(e,e.decorators),De(e,e.modifiers),Je("function"),X(e.asteriskToken),Qe(),Q(e.name),ge(e,ve)}function fe(e,n){_e(n)}function ge(n,t){var r=n.body;if(r)if(e.isBlock(r)){var a=65536&e.getEmitFlags(n);a&&en(),hn(n),t(n),y?y(4,r,fe):_e(r),bn(n),a&&nn()}else t(n),Qe(),Z(r);else t(n),N()}function ve(e){Ve(e,e.typeParameters),Ge(e,e.parameters),Oe(e.type)}function _e(n){Qe(),qe("{"),en();var t=function(n){if(1&e.getEmitFlags(n))return!0;if(n.multiLine)return!1;if(!e.nodeIsSynthesized(n)&&!e.rangeIsOnSingleLine(n,a))return!1;if(un(n,n.statements,2)||mn(n,n.statements,2))return!1;for(var t,r=0,i=n.statements;r<i.length;r++){var o=i[r];if(dn(t,o,2))return!1;t=o}return!0}(n)?ye:he;M?M(n,n.statements,t):t(n),nn(),tn(18,n.statements.end,qe,n)}function ye(e){he(e,!0)}function he(e,n){var t=xe(e.statements,!0),r=m.getTextPos();ie(e),0===t&&r===m.getTextPos()&&n?(nn(),Ke(e,e.statements,384),en()):Ke(e,e.statements,1,t)}function be(n){Pe(n,n.decorators),De(n,n.modifiers),Je("class"),n.name&&(Qe(),Q(n.name));var t=65536&e.getEmitFlags(n);t&&en(),Ve(n,n.typeParameters),Ke(n,n.heritageClauses,256),Qe(),qe("{"),Ke(n,n.members,65),qe("}"),t&&nn()}function Ee(e){qe("{"),Ke(e,e.elements,432),qe("}")}function Te(e){e.propertyName&&(Y(e.propertyName),Qe(),me(118,e.propertyName.end,Je,e),Qe()),Y(e.name)}function Se(e){71===e.kind?Z(e):Y(e)}function Le(n,t,r){var i=81985;1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],a))?(tn(56,r,qe,n),Qe(),i&=-66):me(56,r,qe,n),Ke(n,t,i)}function Ae(n){var t=n.statements;hn(n),ie(n);var r=e.findIndex(t,function(n){return!e.isPrologueDirective(n)});Ke(n,t,1,-1===r?t.length:r),bn(n)}function xe(n,t,r){for(var a=0;a<n.length;a++){var i=n[a];if(!e.isPrologueDirective(i))return a;(!r||!r.has(i.expression.text))&&((t||a>0)&&$e(),Y(i),r&&r.set(i.expression.text,!0))}return n.length}function Ce(n){if(e.isSourceFile(n))q(n),xe(n.statements);else for(var t=e.createMap(),r=0,a=n.sourceFiles;r<a.length;r++){var i=a[r];q(i),xe(i.statements,!0,t)}}function ke(n){if(e.isSourceFile(n)){var t=e.getShebang(n.text);if(t)return R(t),$e(),!0}else for(var r=0,a=n.sourceFiles;r<a.length;r++){if(ke(a[r]))break}}function Me(e,n){var t=R;R=n,Y(e),R=t}function De(e,n){n&&n.length&&(Ke(e,n,131328),Qe())}function Oe(e){e&&(qe(":"),Qe(),Y(e))}function Re(e,n,t){e&&(Qe(),me(58,n,Xe,t),Qe(),Z(e))}function Ie(e){e&&(Qe(),Y(e))}function Ne(e){e&&(Qe(),Z(e))}function we(n,t){e.isBlock(t)||1&e.getEmitFlags(n)?(Qe(),Y(t)):($e(),en(),Y(t),nn())}function Pe(e,n){Ke(e,n,24577)}function Fe(e,n){Ke(e,n,26896)}function Ve(n,t){if(e.isFunctionLike(n)&&n.typeArguments)return Fe(n,n.typeArguments);Ke(n,t,26896)}function Ge(e,n){Ke(e,n,1296)}function He(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)?Ge(n,t):Ke(n,t,272)}function Ke(e,n,t,r,a){je(Y,e,n,t,r,a)}function Be(e,n,t,r,a){je(Z,e,n,t,r,a)}function Ue(e){switch(28&e){case 0:break;case 16:qe(",");break;case 4:Qe(),qe("|");break;case 8:Qe(),qe("&")}}function je(n,r,a,i,o,s){void 0===o&&(o=0),void 0===s&&(s=a?a.length-o:0);var l=void 0===a;if(!(l&&8192&i)){var c=l||o>=a.length||0===s;if(c&&16384&i)return T&&T(a),void(S&&S(a));if(7680&i&&(qe(function(e){return t[7680&e][0]}(i)),c&&D(a.pos,!0)),T&&T(a),c)1&i?$e():128&i&&!(262144&i)&&Qe();else{var u=0==(131072&i),d=u;un(r,a,i)?($e(),d=!1):128&i&&Qe(),64&i&&en();for(var m=void 0,p=void 0,f=0;f<s;f++){var g=a[o+f];if(m&&(28&i&&m.end!==r.end&&O(m.end),Ue(i),dn(m,g,i)?(0==(67&i)&&(en(),p=!0),$e(),d=!1):m&&256&i&&Qe()),d){if(D){var v=e.getCommentRange(g);D(v.pos)}}else d=u;n(g),p&&(nn(),p=!1),m=g}var _=32&i&&a.hasTrailingComma;16&i&&_&&qe(","),m&&28&i&&m.end!==r.end&&!(1024&e.getEmitFlags(m))&&O(m.end),64&i&&nn(),mn(r,a,i)?$e():128&i&&Qe()}S&&S(a),7680&i&&(c&&O(a.end),qe(function(e){return t[7680&e][1]}(i)))}}function We(e,n){I(),m.writeSymbol(e,n)}function qe(e){I(),m.writePunctuation(e)}function ze(){m.writePunctuation(";")}function Je(e){I(),m.writeKeyword(e)}function Xe(e){I(),m.writeOperator(e)}function Ye(e){I(),m.writeParameter(e)}function Qe(){I(),m.writeSpace(" ")}function Ze(e){I(),m.writeProperty(e)}function $e(){I(),m.writeLine()}function en(){I(),m.increaseIndent()}function nn(){I(),m.decreaseIndent()}function tn(e,n,t,r){return v?v(r,e,t,n,an):an(e,t,n)}function rn(n,t){L&&L(n),t(e.tokenToString(n.kind)),A&&A(n)}function an(n,t,r){var a=e.tokenToString(n);return t(a),r<0?r:r+a.length}function on(n){1&e.getEmitFlags(n)?Qe():$e()}function sn(n){for(var t=n.split(/\r\n?|\n/g),r=function(n){for(var t,r=0,a=n;r<a.length;r++)for(var i=a[r],o=0;o<i.length&&(void 0===t||o<t);o++)if(!e.isWhiteSpaceLike(i.charCodeAt(o))&&(void 0===t||o<t)){t=o;break}return t}(t),a=0,i=t;a<i.length;a++){var o=i[a],s=r?o.slice(r):o;s.length&&($e(),R(s),$e())}}function ln(e,n){e?(en(),$e()):n&&R(n)}function cn(e,n){e&&nn(),n&&nn()}function un(n,t,r){if(1&r)return!0;if(2&r){if(32768&r)return!0;var i=t[0];return void 0===i?!e.rangeIsOnSingleLine(n,a):e.positionIsSynthesized(n.pos)||e.nodeIsSynthesized(i)?pn(i,r):!e.rangeStartPositionsAreOnSameLine(n,i,a)}return!1}function dn(n,t,r){return!!(1&r)||(2&r?void 0!==n&&void 0!==t&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t)?pn(n,r)||pn(t,r):!e.rangeEndIsOnSameLineAsRangeStart(n,t,a)):e.getStartsOnNewLine(t))}function mn(n,t,r){if(1&r)return 0==(65536&r);if(2&r){if(32768&r)return!0;var i=e.lastOrUndefined(t);return void 0===i?!e.rangeIsOnSingleLine(n,a):e.positionIsSynthesized(n.pos)||e.nodeIsSynthesized(i)?pn(i,r):!e.rangeEndPositionsAreOnSameLine(n,i,a)}return!1}function pn(n,t){if(e.nodeIsSynthesized(n)){var r=e.getStartsOnNewLine(n);return void 0===r?0!=(32768&t):r}return 0!=(32768&t)}function fn(n,t,r){return n=vn(n),t=vn(t),r=vn(r),!!e.getStartsOnNewLine(r)||!(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.rangeEndIsOnSameLineAsRangeStart(t,r,a))}function gn(n){return 0===n.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(n,n,a)}function vn(n){for(;189===n.kind&&e.nodeIsSynthesized(n);)n=n.expression;return n}function _n(n,t){return e.isGeneratedIdentifier(n)?function(n){if(4==(7&n.autoGenerateFlags)){if(8&n.autoGenerateFlags){var t=c;bn(void 0);var r=Tn(xn(n));return hn(void 0),c=t,r}return Tn(xn(n))}var a=n.autoGenerateId;return o[a]||(o[a]=function(n){switch(7&n.autoGenerateFlags){case 1:return Ln(0,!!(16&n.autoGenerateFlags));case 2:return Ln(268435456,!!(16&n.autoGenerateFlags));case 3:return An(e.idText(n))}e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(n))}(n):!e.isIdentifier(n)||!e.nodeIsSynthesized(n)&&n.parent?9===n.kind&&n.textSourceNode?_n(n.textSourceNode,t):!e.isLiteralExpression(n)||!e.nodeIsSynthesized(n)&&n.parent?e.getSourceTextOfNodeFromSourceFile(a,n,t):n.text:e.idText(n)}function yn(n){if(9===n.kind&&n.textSourceNode){var t=n.textSourceNode;return e.isIdentifier(t)?16777216&e.getEmitFlags(n)?'"'+e.escapeString(_n(t))+'"':'"'+e.escapeNonAsciiString(_n(t))+'"':yn(t)}return e.getLiteralText(n,a)}function hn(n){n&&524288&e.getEmitFlags(n)||(l.push(c),c=0,u.push(d))}function bn(n){n&&524288&e.getEmitFlags(n)||(c=l.pop(),d=u.pop())}function En(n){d&&d!==e.lastOrUndefined(u)||(d=e.createMap()),d.set(n,!0)}function Tn(n){var t=e.getNodeId(n);return i[t]||(i[t]=function(n){switch(n.kind){case 71:return An(_n(n));case 237:case 236:return function(n){var t=_n(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&&70362047&a.flags)return!1}return!0}(t,n)?t:An(t)}(n);case 242:case 248:return function(n){var t=e.getExternalModuleName(n);return An(e.isStringLiteral(t)?e.makeIdentifierFromModuleName(t.text):"module")}(n);case 232:case 233:case 247:return An("default");case 203:return An("class");case 153:case 155:case 156:return function(n){if(e.isIdentifier(n.name))return Tn(n.name);return Ln(0)}(n);default:return Ln(0)}}(n))}function Sn(e){return!(f&&f(e)||a.identifiers.has(e)||s.has(e)||d&&d.has(e))}function Ln(e,n){if(e&&!(c&e)&&Sn(t=268435456===e?"_i":"_n"))return c|=e,n&&En(t),t;for(;;){var t,r=268435455&c;if(c++,8!==r&&13!==r)if(Sn(t=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return n&&En(t),t}}function An(e){95!==e.charCodeAt(e.length-1)&&(e+="_");for(var n=1;;){var t=e+n;if(Sn(t))return s.set(t,!0),t;n++}}function xn(n){for(var t=n.autoGenerateId,r=n,a=r.original;a&&(r=a,!e.isIdentifier(r)||4!==r.autoGenerateFlags||r.autoGenerateId===t);)a=r.original;return r}}e.forEachEmittedFile=r,e.emitFiles=function(n,t,a,i,s){var l,c,u,d=t.getCompilerOptions(),m=e.getEmitModuleKind(d),p=d.sourceMap||d.inlineSourceMap?[]:void 0,f=d.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),v=t.getNewLine(),_=e.createTextWriter(v),y=e.createSourceMapWriter(t,_),h=!1,b=e.getSourceFilesToEmit(t,a),E=e.transformNodes(n,t,d,b,s,!1),T=o(d,{hasGlobalName:n.hasGlobalName,onEmitNode:E.emitNodeWithNotification,substituteNode:E.substituteNode,onEmitSourceMapOfNode:y.emitNodeWithSourceMap,onEmitSourceMapOfToken:y.emitTokenWithSourceMap,onEmitSourceMapOfPosition:y.emitPos,onEmitHelpers:function(n,t){var r=!1,a=273===n.kind?n:void 0;if(!a||m!==e.ModuleKind.None){for(var i=a?a.sourceFiles.length:1,o=0;o<i;o++){var s=a?a.sourceFiles[o]:n,p=e.isSourceFile(s)?s:l,f=d.noEmitHelpers||void 0!==e.getExternalHelpersModuleName(p),g=e.isSourceFile(s)&&!u,v=e.getEmitHelpers(s);if(v)for(var _=0,y=e.stableSort(v,e.compareEmitHelpers);_<y.length;_++){var h=y[_];if(h.scoped){if(a)continue}else{if(f)continue;if(g){if(c.get(h.name))continue;c.set(h.name,!0)}}t(h.text),r=!0}}return r}},onSetSourceFile:function(e){l=e,y.setSourceFile(e)}});return e.performance.mark("beforePrint"),r(t,function(r,a){var o=r.jsFilePath,s=r.sourceMapFilePath,m=r.declarationFilePath;t.isEmitBlocked(o)||d.noEmit||d.emitDeclarationOnly?h=!0:i||function(n,r,a){var i=273===a.kind?a:void 0,o=272===a.kind?a:void 0,s=i?i.sourceFiles:[o];y.initialize(n,r,a),i?(c=e.createMap(),u=!1,T.writeBundle(i,_)):(u=!0,T.writeFile(o,_)),_.writeLine();var m=y.getSourceMappingURL();m&&_.write("//# sourceMappingURL="+m),d.sourceMap&&!d.inlineSourceMap&&e.writeFile(t,g,r,y.getText(),!1,s),p&&p.push(y.getSourceMapData()),e.writeFile(t,g,n,_.getText(),d.emitBOM,s),y.reset(),_.clear(),l=void 0,c=void 0,u=!1}(o,s,a),m&&(h=e.writeDeclarationFile(m,function(n){return 273===n.kind?e.updateBundle(n,e.sameMap(n.sourceFiles,e.getOriginalSourceFile)):e.getOriginalSourceFile(n)}(a),t,n,g,i)||h),!h&&f&&(i||f.push(o),s&&f.push(s),m&&f.push(m))},E.transformed,i),e.performance.measure("printTime","beforePrint"),E.dispose(),{emitSkipped:h,diagnostics:g.getDiagnostics(),emittedFiles:f,sourceMaps:p}},e.createPrinter=o,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(n||(n={}))}(u||(u={})),function(e){var n,t=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function r(n,t){var r=e.getDirectoryPath(t),a=e.isRootedDiskPath(n)?n:e.combinePaths(r,n);return e.normalizePath(a)}function a(n,t,r){var a;return 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})?"":a?e.getNormalizedPathFromPathComponents(a):t}function i(n,t){var r,a=e.createMap();function i(n){n.length>e.getRootLength(n)&&!function(n){return!!a.has(n)||!!e.sys.directoryExists(n)&&(a.set(n,!0),!0)}(n)&&(i(e.getDirectoryPath(n)),e.sys.createDirectory(n))}function o(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var s=e.getNewLineCharacter(n),l=e.sys.realpath&&function(n){return e.sys.realpath(n)};return{getSourceFile:function(r,a,i){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(r,n.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,a,t):void 0},getDefaultLibLocation:o,getDefaultLibFileName:function(n){return e.combinePaths(o(),e.getDefaultLibFileName(n))},writeFile:function(t,a,o,s){try{e.performance.mark("beforeIOWrite"),i(e.getDirectoryPath(e.normalizePath(t))),e.isWatchSet(n)&&e.sys.createHash&&e.sys.getModifiedTime?function(n,t,a){r||(r=e.createMap());var i=e.sys.createHash(t),o=e.sys.getModifiedTime(n);if(o){var s=r.get(n);if(s&&s.byteOrderMark===a&&s.hash===i&&s.mtime.getTime()===o.getTime())return}e.sys.writeFile(n,t,a);var l=e.sys.getModifiedTime(n);r.set(n,{hash:i,byteOrderMark:a,mtime:l})}(t,a,o):e.sys.writeFile(t,a,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){s&&s(e.message)}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(n){return e.sys.useCaseSensitiveFileNames?n:n.toLowerCase()},getNewLine:function(){return s},fileExists:function(n){return e.sys.fileExists(n)},readFile:function(n){return e.sys.readFile(n)},trace:function(n){return e.sys.write(n+s)},directoryExists:function(n){return e.sys.directoryExists(n)},getEnvironmentVariable:function(n){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(n):""},getDirectories:function(n){return e.sys.getDirectories(n)},realpath:l}}function o(n,t){var r=e.diagnosticCategoryName(n)+" TS"+n.code+": "+f(n.messageText,t.getNewLine())+t.getNewLine();if(n.file){var a=e.getLineAndCharacterOfPosition(n.file,n.start),i=a.line,o=a.character,s=n.file.fileName;return e.convertToRelativePath(s,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)})+"("+(i+1)+","+(o+1)+"): "+r}return r}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=r,e.computeCommonSourceDirectoryOfFilenames=a,e.createCompilerHost=i,e.getPreEmitDiagnostics=function(n,t,r){var a=n.getOptionsDiagnostics(r).concat(n.getSyntacticDiagnostics(t,r),n.getGlobalDiagnostics(r),n.getSemanticDiagnostics(t,r));return n.getCompilerOptions().declaration&&e.addRange(a,n.getDeclarationDiagnostics(t,r)),e.sortAndDeduplicateDiagnostics(a)},e.formatDiagnostics=function(e,n){for(var t="",r=0,a=e;r<a.length;r++)t+=o(a[r],n);return t},e.formatDiagnostic=o,function(e){e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"}(n=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var s="[30;47m",l=" ",c="[0m",u="...";function d(t){switch(t){case e.DiagnosticCategory.Error:return n.Red;case e.DiagnosticCategory.Warning:return n.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return n.Blue}}function m(e,n){return n+e+c}function p(e,n){for(;e.length<n;)e=" "+e;return e}function f(n,t){if(e.isString(n))return n;for(var r=n,a="",i=0;r;){if(i){a+=t;for(var o=0;o<i;o++)a+=" "}a+=r.messageText,i++,r=r.next}return a}function g(n,t,r){if(0===n.length)return[];for(var a=[],i=e.createMap(),o=0,s=n;o<s.length;o++){var l=s[o],c=void 0;i.has(l)?c=i.get(l):i.set(l,c=r(l,t)),a.push(c)}return a}function v(n,t){switch(t.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||a();case".js":return a()}function r(){return n.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function a(){return n.allowJs||!e.getStrictOptionValue(n,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function _(n){return e.Debug.assert(n.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(n)}),n}function y(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];9===o.kind&&r.push(o.text)}return r}e.formatColorAndReset=m,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var a="",i=0,o=t;i<o.length;i++){var g=o[i],v="";if(g.file){var _=g.start,y=g.length,h=g.file,b=e.getLineAndCharacterOfPosition(h,_),E=b.line,T=b.character,S=e.getLineAndCharacterOfPosition(h,_+y),L=S.line,A=S.character,x=e.getLineAndCharacterOfPosition(h,h.text.length).line,C=r?e.convertToRelativePath(h.fileName,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)}):h.fileName,k=L-E>=4,M=(L+1+"").length;k&&(M=Math.max(u.length,M));for(var D=E;D<=L;D++){v+=r.getNewLine(),k&&E+1<D&&D<L-1&&(v+=m(p(u,M),s)+l+r.getNewLine(),D=L-1);var O=e.getPositionOfLineAndCharacter(h,D,0),R=D<x?e.getPositionOfLineAndCharacter(h,D+1,0):h.text.length,I=h.text.slice(O,R);if(I=(I=I.replace(/\s+$/g,"")).replace("\t"," "),v+=m(p(D+1+"",M),s)+l,v+=I+r.getNewLine(),v+=m(p("",M),s)+l,v+=n.Red,D===E){var N=D===L?A:void 0;v+=I.slice(0,T).replace(/\S/g," "),v+=I.slice(T,N).replace(/./g,"~")}else v+=D===L?I.slice(0,A).replace(/./g,"~"):I.replace(/./g,"~");v+=c}a+=m(C,n.Cyan),a+=":",a+=m(""+(E+1),n.Yellow),a+=":",a+=m(""+(T+1),n.Yellow),a+=" - "}a+=m(e.diagnosticCategoryName(g),d(g.category)),a+=m(" TS"+g.code+": ",n.Grey),a+=f(g.messageText,r.getNewLine()),g.file&&(a+=r.getNewLine(),a+=v),a+=r.getNewLine()}return a+r.getNewLine()},e.flattenDiagnosticMessageText=f,e.isProgramUptoDate=function(n,t,r,a,i,o,s){if(!n||s)return!1;if(n.getRootFileNames().length!==t.length)return!1;if(n.getSourceFiles().some(function(e){return e.version!==a(e.path)||o(e.path)}))return!1;if(n.getMissingFilePaths().some(i))return!1;var l=n.getCompilerOptions();return!(!e.compareDataObjects(l,r)||l.configFile&&r.configFile&&l.configFile.text!==r.configFile.text)},e.createProgram=function(n,o,s,l){var c,u,d,m,p,f,h=[],b={},E={},T=e.createMap(),S=e.createDiagnosticCollection(),L="number"==typeof o.maxNodeModuleJsDepth?o.maxNodeModuleJsDepth:0,A=0,x=e.createMap(),C=e.createMap();e.performance.mark("beforeProgram"),s=s||i(o);var k,M,D,O,R=o.noLib,I=e.memoize(function(){return s.getDefaultLibFileName(o)}),N=s.getDefaultLibLocation?s.getDefaultLibLocation():e.getDirectoryPath(I()),w=e.createDiagnosticCollection(),P=s.getCurrentDirectory(),F=e.getSupportedExtensions(o),V=e.createMap(),G=s.hasInvalidatedResolution||e.returnFalse;if(s.resolveModuleNames)D=function(n,t,r){return s.resolveModuleNames(_(n),t,r).map(function(n){if(!n||void 0!==n.extension)return n;var t=e.clone(n);return t.extension=e.extensionFromPath(n.resolvedFileName),t})};else{M=e.createModuleResolutionCache(P,function(e){return s.getCanonicalFileName(e)});var H=function(n,t){return e.resolveModuleName(n,t,o,s,M).resolvedModule};D=function(e,n){return g(_(e),n,H)}}if(s.resolveTypeReferenceDirectives)O=function(e,n){return s.resolveTypeReferenceDirectives(_(e),n)};else{var K=function(n,t){return e.resolveTypeReferenceDirective(n,t,o,s).resolvedTypeReferenceDirective};O=function(e,n){return g(_(e),n,K)}}var B,U=e.createMap(),j=e.createMap(),W=e.createMap(),q=e.createMap(),z=s.useCaseSensitiveFileNames()?e.createMap():void 0,J=function(n,t){var r=n&&n.getCompilerOptions();return r&&(r.target!==t.target||r.module!==t.module||r.moduleResolution!==t.moduleResolution||r.noResolve!==t.noResolve||r.jsx!==t.jsx||r.allowJs!==t.allowJs||r.disableSizeLimit!==t.disableSizeLimit||r.baseUrl!==t.baseUrl||!e.equalOwnProperties(r.paths,t.paths))}(l,o),X=function(){if(!l)return 0;var t=l.getCompilerOptions();if(e.changesAffectModuleResolution(t,o))return l.structureIsReused=0;e.Debug.assert(!(3&l.structureIsReused));var r=l.getRootFileNames();if(!e.arrayIsEqualTo(r,n))return l.structureIsReused=0;if(!e.arrayIsEqualTo(o.types,t.types))return l.structureIsReused=0;var a=[],i=[],c=[];if(l.structureIsReused=2,l.getMissingFilePaths().some(function(e){return s.fileExists(e)}))return l.structureIsReused=0;var u,d=l.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(u||(u={}));for(var m=e.createMap(),p=0,g=d;p<g.length;p++){var v=g[p],_=s.getSourceFileByPath?s.getSourceFileByPath(v.fileName,v.path,o.target,void 0,J):s.getSourceFile(v.fileName,o.target,void 0,J);if(!_)return l.structureIsReused=0;e.Debug.assert(!_.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var b=void 0;if(v.redirectInfo){if(_!==v.redirectInfo.unredirected)return l.structureIsReused=0;b=!1,_=v}else if(l.redirectTargetsSet.has(v.path)){if(_!==v)return l.structureIsReused=0;b=!1}else b=_!==v;_.path=v.path,i.push(_.path);var E=l.sourceFileToPackageName.get(v.path);if(void 0!==E){var L=m.get(E),A=b?1:0;if(void 0!==L&&1===A||1===L)return l.structureIsReused=0;m.set(E,A)}b?(v.hasNoDefaultLib!==_.hasNoDefaultLib&&(l.structureIsReused=1),e.arrayIsEqualTo(v.referencedFiles,_.referencedFiles,Ae)||(l.structureIsReused=1),Ce(_),e.arrayIsEqualTo(v.imports,_.imports,xe)||(l.structureIsReused=1),e.arrayIsEqualTo(v.moduleAugmentations,_.moduleAugmentations,xe)||(l.structureIsReused=1),(524288&v.flags)!=(524288&_.flags)&&(l.structureIsReused=1),e.arrayIsEqualTo(v.typeReferenceDirectives,_.typeReferenceDirectives,Ae)||(l.structureIsReused=1),c.push({oldFile:v,newFile:_})):G(v.path)&&(l.structureIsReused=1,c.push({oldFile:v,newFile:_})),a.push(_)}if(2!==l.structureIsReused)return l.structureIsReused;f=c.map(function(e){return e.newFile.path});for(var x=0,k=c;x<k.length;x++){var M=k[x],v=M.oldFile,_=M.newFile,R=e.getNormalizedAbsolutePath(_.fileName,P);if(D){var I=y(_),N={program:l,oldSourceFile:v,modifiedFilePaths:f},w=oe(I,R,_,N),F=e.hasChangesInResolutions(I,w,v.resolvedModules,e.moduleResolutionIsEqualTo);F?(l.structureIsReused=1,_.resolvedModules=e.zipToMap(I,w)):_.resolvedModules=v.resolvedModules}if(O){var V=e.map(_.typeReferenceDirectives,function(e){return e.fileName}),w=O(V,R),F=e.hasChangesInResolutions(V,w,v.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);F?(l.structureIsReused=1,_.resolvedTypeReferenceDirectiveNames=e.zipToMap(V,w)):_.resolvedTypeReferenceDirectiveNames=v.resolvedTypeReferenceDirectiveNames}}if(2!==l.structureIsReused)return l.structureIsReused;if(s.hasChangedAutomaticTypeDirectiveNames)return l.structureIsReused=1;B=l.getMissingFilePaths();for(var H=0;H<a.length;H++)q.set(i[H],a[H]),l.isSourceFileFromExternalLibrary(l.getSourceFileByPath(i[H]))&&C.set(i[H],!0);h=a,S=l.getFileProcessingDiagnostics();for(var K=0,U=c;K<U.length;K++){var z=U[K];S.reattachFileDiagnostics(z.newFile)}return T=l.getResolvedTypeReferenceDirectives(),j=l.sourceFileToPackageName,W=l.redirectTargetsSet,l.structureIsReused=2}();if(2!==X){e.forEach(n,function(e){return Le(e,!1)});var Y=e.getAutomaticTypeDirectiveNames(o,s);if(Y.length)for(var Q=o.configFilePath?e.getDirectoryPath(o.configFilePath):s.getCurrentDirectory(),Z=e.combinePaths(Q,"__inferred type names__.ts"),$=O(Y,Z),ee=0;ee<Y.length;ee++)Ne(Y[ee],$[ee]);R||(o.lib?e.forEach(o.lib,function(n){Le(e.combinePaths(N,n),!0)}):Le(I(),!0)),B=e.arrayFrom(q.keys(),function(e){return e}).filter(function(e){return!q.get(e)})}if(e.Debug.assert(!!B),M=void 0,l&&s.onReleaseOldSourceFile)for(var ne=0,te=l.getSourceFiles();ne<te.length;ne++){var re=te[ne];me(re.path)&&!J||s.onReleaseOldSourceFile(re,l.getCompilerOptions())}return l=void 0,c={getRootFileNames:function(){return n},getSourceFile:me,getSourceFileByPath:pe,getSourceFiles:function(){return h},getMissingFilePaths:function(){return B},getCompilerOptions:function(){return o},getSyntacticDiagnostics:function(e,n){return fe(e,ge,n)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(S.getGlobalDiagnostics(),e.concatenate(w.getGlobalDiagnostics(),o.configFile?w.getDiagnostics(o.configFile.fileName):[])))},getGlobalDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(ce().getGlobalDiagnostics().slice())},getSemanticDiagnostics:function(e,n){return fe(e,_e,n)},getDeclarationDiagnostics:function(e,n){var t=c.getCompilerOptions();return!e||t.out||t.outFile?be(e,n):fe(e,Se,n)},getTypeChecker:ue,getClassifiableNames:function(){if(!p){ue(),p=e.createUnderscoreEscapedMap();for(var n=0,t=h;n<t.length;n++){var r=t[n];e.copyEntries(r.classifiableNames,p)}}return p},getDiagnosticsProducingTypeChecker:ce,getCommonSourceDirectory:ie,emit:function(n,t,r,a,i){return ve(function(){return function(n,t,r,a,i,s){var l=[];if(!i){if(o.noEmit)return{diagnostics:l,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(o.noEmitOnError){var c=n.getOptionsDiagnostics(a).concat(n.getSyntacticDiagnostics(t,a),n.getGlobalDiagnostics(a),n.getSemanticDiagnostics(t,a));if(0===c.length&&n.getCompilerOptions().declaration&&(l=n.getDeclarationDiagnostics(void 0,a)),c.length>0||l.length>0)return{diagnostics:e.concatenate(c,l),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var u=ce().getEmitResolver(o.outFile||o.out?void 0:t,a);e.performance.mark("beforeEmit");var d=i?[]:e.getTransformers(o,s),m=e.emitFiles(u,se(r),t,i,d);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),m}(c,n,t,r,a,i)})},getCurrentDirectory:function(){return P},getNodeCount:function(){return ce().getNodeCount()},getIdentifierCount:function(){return ce().getIdentifierCount()},getSymbolCount:function(){return ce().getSymbolCount()},getTypeCount:function(){return ce().getTypeCount()},getFileProcessingDiagnostics:function(){return S},getResolvedTypeReferenceDirectives:function(){return T},isSourceFileFromExternalLibrary:le,isSourceFileDefaultLibrary:function(n){if(n.hasNoDefaultLib)return!0;if(!o.noLib)return!1;var t=s.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return o.lib?e.forEach(o.lib,function(r){return t(n.fileName,e.combinePaths(N,r))}):t(n.fileName,I())},dropDiagnosticsProducingTypeChecker:function(){d=void 0},getSourceFileFromReference:function(e,n){return ke(r(n.fileName,e.fileName),function(e){return q.get(ae(e))})},sourceFileToPackageName:j,redirectTargetsSet:W,isEmittedFile:function(n){if(o.noEmit)return!1;var t=ae(n);if(pe(t))return!1;var r=o.outFile||o.out;if(r)return ze(t,r)||ze(t,e.removeFileExtension(r)+".d.ts");if(o.outDir)return e.containsPath(o.outDir,t,P,!s.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(t,e.supportedJavascriptExtensions)||e.fileExtensionIs(t,".d.ts")){var a=e.removeFileExtension(t);return!!pe(e.combinePaths(a,".ts"))||!!pe(e.combinePaths(a,".tsx"))}return!1}},function(){if(o.isolatedModules&&(o.declaration&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules"),o.noEmitOnError&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),o.out&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),o.outFile&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),o.inlineSourceMap&&(o.sourceMap&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),o.mapRoot&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),o.paths&&void 0===o.baseUrl&&Ke(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),o.paths)for(var n in o.paths)if(e.hasProperty(o.paths,n))if(e.hasZeroOrOneAsteriskCharacter(n)||Ge(!0,n,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,n),e.isArray(o.paths[n])){var t=o.paths[n].length;0===t&&Ge(!1,n,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,n);for(var r=0;r<t;r++){var a=o.paths[n][r],i=typeof a;"string"===i?e.hasZeroOrOneAsteriskCharacter(a)||Ve(n,r,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,a,n):Ve(n,r,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,a,n,i)}}else Ge(!1,n,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,n);o.sourceMap||o.inlineSourceMap||(o.inlineSources&&Ke(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),o.sourceRoot&&Ke(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),o.out&&o.outFile&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),o.mapRoot&&!o.sourceMap&&Ke(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"mapRoot","sourceMap"),o.declarationDir&&(o.declaration||Ke(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationDir","declaration"),(o.out||o.outFile)&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",o.out?"out":"outFile")),o.lib&&o.noLib&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),o.noImplicitUseStrict&&e.getStrictOptionValue(o,"alwaysStrict")&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var l=o.target||0,c=o.outFile||o.out,u=e.forEach(h,function(n){return e.isExternalModule(n)&&!n.isDeclarationFile?n:void 0});if(o.isolatedModules){o.module===e.ModuleKind.None&&l<2&&Ke(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var d=e.forEach(h,function(n){return e.isExternalModule(n)||n.isDeclarationFile?void 0:n});if(d){var m=e.getErrorSpanForNode(d,d);w.add(e.createFileDiagnostic(d,m.start,m.length,e.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(u&&l<2&&o.module===e.ModuleKind.None){var p=e.getErrorSpanForNode(u,u.externalModuleIndicator);w.add(e.createFileDiagnostic(u,p.start,p.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(c)if(o.module&&o.module!==e.ModuleKind.AMD&&o.module!==e.ModuleKind.System)Ke(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,o.out?"out":"outFile","module");else if(void 0===o.module&&u){var f=e.getErrorSpanForNode(u,u.externalModuleIndicator);w.add(e.createFileDiagnostic(u,f.start,f.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,o.out?"out":"outFile"))}if(o.outDir||o.sourceRoot||o.mapRoot){var g=ie();o.outDir&&""===g&&e.forEach(h,function(n){return e.getRootLength(n.fileName)>1})&&Ke(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!o.noEmit&&o.allowJs&&o.declaration&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),o.checkJs&&!o.allowJs&&w.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),o.emitDeclarationOnly&&(o.declaration||Ke(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),o.noEmit&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),o.emitDecoratorMetadata&&!o.experimentalDecorators&&Ke(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),o.jsxFactory?(o.reactNamespace&&Ke(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(o.jsxFactory,l)||Be("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,o.jsxFactory)):o.reactNamespace&&!e.isIdentifierText(o.reactNamespace,l)&&Be("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,o.reactNamespace),!o.noEmit&&!o.suppressOutputPathCheck){var v=se(),_=e.createMap();e.forEachEmittedFile(v,function(e){o.emitDeclarationOnly||y(e.jsFilePath,_),y(e.declarationFilePath,_)})}function y(n,t){if(n){var r,a=ae(n);q.has(a)&&(o.configFilePath||(r=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)),r=e.chainDiagnosticMessages(r,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,n),qe(n,e.createCompilerDiagnosticFromMessageChain(r)));var i=s.useCaseSensitiveFileNames()?a:a.toLocaleLowerCase();t.has(i)?qe(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.set(i,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),c;function ae(n){return e.toPath(n,P,Pe)}function ie(){if(void 0===u){var n=e.filter(h,function(n){return e.sourceFileMayBeEmitted(n,o,le)});(u=o.rootDir&&function(n,t){var r=!0;if(n)for(var a=s.getCanonicalFileName(e.getNormalizedAbsolutePath(t,P)),i=0,l=n;i<l.length;i++){var c=l[i];if(!c.isDeclarationFile){var u=s.getCanonicalFileName(e.getNormalizedAbsolutePath(c.fileName,P));0!==u.indexOf(a)&&(w.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,c.fileName,o.rootDir)),r=!1)}}return r}(n,o.rootDir)?e.getNormalizedAbsolutePath(o.rootDir,P):function(e){for(var n=[],t=0,r=e;t<r.length;t++){var i=r[t];i.isDeclarationFile||n.push(i.fileName)}return a(n,P,Pe)}(n))&&u[u.length-1]!==e.directorySeparator&&(u+=e.directorySeparator)}return u}function oe(n,t,r,a){if(0===X&&!r.ambientModuleNames.length)return D(n,t);var i,l,c,u=a.program&&a.program.getSourceFile(t);if(u!==r&&r.resolvedModules){for(var d=[],m=0,p=n;m<p.length;m++){var f=p[m],g=r.resolvedModules.get(f);d.push(g)}return d}for(var v={},_=0;_<n.length;_++){if(f=n[_],r===u&&!G(u.path)){var y=u&&u.resolvedModules.get(f);if(y){e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,f,t),(l||(l=new Array(n.length)))[_]=y,(c||(c=[])).push(f);continue}}var h=!1;e.contains(r.ambientModuleNames,f)?(h=!0,e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,f,t)):h=T(f,a),h?(l||(l=new Array(n.length)))[_]=v:(i||(i=[])).push(f)}var b=i&&i.length?D(i,t,c):e.emptyArray;if(!l)return e.Debug.assert(b.length===n.length),b;var E=0;for(_=0;_<l.length;_++)l[_]?l[_]===v&&(l[_]=void 0):(l[_]=b[E],E++);return e.Debug.assert(E===b.length),l;function T(n,t){var r=e.getResolvedModule(t.oldSourceFile,n),a=r&&t.program&&t.program.getSourceFile(r.resolvedFileName);if(r&&a&&!a.externalModuleIndicator)return!1;var i=t.program&&t.program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n);if(!i||!i.declarations)return!1;var l=e.forEach(i.declarations,function(n){var r=e.getSourceFileOfNode(n);return!e.contains(t.modifiedFilePaths,r.path)&&r});return!!l&&(e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,n,l.fileName),!0)}}function se(e){return{getCanonicalFileName:Pe,getCommonSourceDirectory:c.getCommonSourceDirectory,getCompilerOptions:c.getCompilerOptions,getCurrentDirectory:function(){return P},getNewLine:function(){return s.getNewLine()},getSourceFile:c.getSourceFile,getSourceFileByPath:c.getSourceFileByPath,getSourceFiles:c.getSourceFiles,isSourceFileFromExternalLibrary:le,writeFile:e||function(e,n,t,r,a){return s.writeFile(e,n,t,r,a)},isEmitBlocked:de}}function le(e){return C.get(e.path)}function ce(){return d||(d=e.createTypeChecker(c,!0))}function ue(){return m||(m=e.createTypeChecker(c,!1))}function de(e){return V.has(ae(e))}function me(e){return pe(ae(e))}function pe(e){return q.get(e)}function fe(n,t,r){return n?t(n,r):e.sortAndDeduplicateDiagnostics(e.flatMap(c.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),t(e,r)}))}function ge(n){return e.isSourceFileJavaScript(n)?(n.additionalSyntacticDiagnostics||(n.additionalSyntacticDiagnostics=function(n){return ve(function(){var t=[],r=n;return a(n),t;function a(n){switch(r.kind){case 148:case 151:if(r.questionToken===n)return void t.push(l(n,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:case 230:if(r.type===n)return void t.push(l(n,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(n.kind){case 241:return void t.push(l(n,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 247:if(n.isExportEquals)return void t.push(l(n,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 266:var o=n;if(108===o.token)return void t.push(l(n,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 234:return void t.push(l(n,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 237:return void t.push(l(n,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 235:return void t.push(l(n,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 236:return void t.push(l(n,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 207:return void t.push(l(n,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 206:return void t.push(l(n.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 188:e.Debug.fail()}var s=r;r=n,e.forEachChild(n,a,i),r=s}function i(n){switch(r.decorators!==n||o.experimentalDecorators||t.push(l(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),r.kind){case 233:case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:if(n===r.typeParameters)return void t.push(s(n,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 212:if(n===r.modifiers)return function(n,r){for(var a=0,i=n;a<i.length;a++){var o=i[a];switch(o.kind){case 76:if(r)continue;case 114:case 112:case 113:case 132:case 124:case 117:t.push(l(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)))}}}(n,212===r.kind);break;case 151:if(n===r.modifiers){for(var i=0,c=n;i<c.length;i++){var u=c[i];115!==u.kind&&t.push(l(u,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(u.kind)))}return}break;case 148:if(n===r.modifiers)return void t.push(s(n,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 185:case 186:case 205:if(n===r.typeArguments)return void t.push(s(n,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var d=0,m=n;d<m.length;d++){var p=m[d];a(p)}}function s(t,r,a,i,o){var s=t.pos;return e.createFileDiagnostic(n,s,t.end-s,r,a,i,o)}function l(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(n,t,r,a,i,o)}})}(n)),e.concatenate(n.additionalSyntacticDiagnostics,n.parseDiagnostics)):n.parseDiagnostics}function ve(n){try{return n()}catch(n){throw n instanceof e.OperationCanceledException&&(m=void 0,d=void 0),n}}function _e(e,n){return Te(e,n,b,ye)}function ye(n,t){return ve(function(){if(o.skipLibCheck&&n.isDeclarationFile||o.skipDefaultLibCheck&&n.hasNoDefaultLib)return e.emptyArray;var r=ce();e.Debug.assert(!!n.bindDiagnostics);var a=e.isCheckJsEnabledForFile(n,o),i=3===n.scriptKind||4===n.scriptKind||5===n.scriptKind||a,s=i?n.bindDiagnostics:e.emptyArray,l=i?r.getDiagnostics(n,t):e.emptyArray,c=S.getDiagnostics(n.fileName),u=w.getDiagnostics(n.fileName),d=s.concat(l,c,u);return a&&(d=e.concatenate(d,n.jsDocDiagnostics)),e.filter(d,he)})}function he(n){var r=n.file,a=n.start;if(r)for(var i=e.getLineStarts(r),o=e.computeLineAndCharacterOfPosition(i,a).line;o>0;){var s=r.text.slice(i[o-1],i[o]),l=t.exec(s);if(!l)return!0;if(l[3])return!1;o--}return!0}function be(e,n){return Te(e,n,E,Ee)}function Ee(n,t){return ve(function(){var r=ce().getEmitResolver(n,t);return e.getDeclarationDiagnostics(se(e.noop),r,n)})}function Te(n,t,r,a){var i=n?r.perFile&&r.perFile.get(n.path):r.allDiagnostics;if(i)return i;var o=a(n,t)||e.emptyArray;return n?(r.perFile||(r.perFile=e.createMap()),r.perFile.set(n.path,o)):r.allDiagnostics=o,o}function Se(e,n){return e.isDeclarationFile?[]:be(e,n)}function Le(n,t){Me(e.normalizePath(n),t,void 0)}function Ae(e,n){return e.fileName===n.fileName}function xe(e,n){return 9===e.kind?9===n.kind&&e.text===n.text:71===n.kind&&e.escapedText===n.escapedText}function Ce(n){if(!n.imports){var t,r,a,i=e.isSourceFileJavaScript(n),s=e.isExternalModule(n);if(o.importHelpers&&(o.isolatedModules||s)&&!n.isDeclarationFile){var l=e.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0);e.addEmitFlags(c,67108864),l.parent=c,c.parent=n,t=[l]}for(var u=0,d=n.statements;u<d.length;u++){var m=d[u];p(m,!1),(524288&n.flags||i)&&f(m)}return n.imports=t||e.emptyArray,n.moduleAugmentations=r||e.emptyArray,void(n.ambientModuleNames=a||e.emptyArray)}function p(i,o){switch(i.kind){case 242:case 241:case 248:var l=e.getExternalModuleName(i);if(!l||!e.isStringLiteral(l))break;if(!l.text)break;o&&e.isExternalModuleNameRelative(l.text)||(t||(t=[])).push(l);break;case 237:if(e.isAmbientModule(i)&&(o||e.hasModifier(i,2)||n.isDeclarationFile)){var c=i.name,u=e.getTextOfIdentifierOrLiteral(c);if(s||o&&!e.isExternalModuleNameRelative(u))(r||(r=[])).push(c);else if(!o){n.isDeclarationFile&&(a||(a=[])).push(u);var d=i.body;if(d)for(var m=0,f=d.statements;m<f.length;m++)p(f[m],!0)}}}}function f(n){e.isRequireCall(n,!0)?(t||(t=[])).push(n.arguments[0]):e.isImportCall(n)&&1===n.arguments.length&&9===n.arguments[0].kind?(t||(t=[])).push(n.arguments[0]):e.forEachChild(n,f)}}function ke(n,t,r,a){if(e.hasExtension(n)){if(!o.allowNonTsExtensions&&!e.forEach(F,function(t){return e.fileExtensionIs(s.getCanonicalFileName(n),t)}))return void(r&&r(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,n,"'"+F.join("', '")+"'"));var i=t(n);return r&&(i?a&&s.getCanonicalFileName(n)===s.getCanonicalFileName(a.fileName)&&r(e.Diagnostics.A_file_cannot_have_a_reference_to_itself):r(e.Diagnostics.File_0_not_found,n)),i}var l=o.allowNonTsExtensions&&t(n);if(l)return l;if(!r||!o.allowNonTsExtensions){var c=e.forEach(F,function(e){return t(n+e)});return r&&!c&&r(e.Diagnostics.File_0_not_found,n+".ts"),c}r(e.Diagnostics.File_0_not_found,n)}function Me(n,t,r,a,i,o){ke(n,function(e){return Oe(e,ae(e),t,a,i,o,r)},function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];S.add(void 0!==a&&void 0!==o&&void 0!==i?e.createFileDiagnostic.apply(void 0,[a,i,o-i,n].concat(t)):e.createCompilerDiagnostic.apply(void 0,[n].concat(t)))},a)}function De(n,t,r,a,i){void 0!==r&&void 0!==a&&void 0!==i?S.add(e.createFileDiagnostic(r,a,i-a,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,n,t)):S.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,n,t))}function Oe(n,t,r,a,i,l,c){if(q.has(t)){var u=q.get(t);return u&&o.forceConsistentCasingInFileNames&&e.getNormalizedAbsolutePath(u.fileName,P)!==e.getNormalizedAbsolutePath(n,P)&&De(n,u.fileName,a,i,l),u&&C.get(u.path)&&0===A?(C.set(u.path,!1),o.noResolve||(Re(u,r),Ie(u)),x.set(u.path,!1),Fe(u)):u&&x.get(u.path)&&A<L&&(x.set(u.path,!1),Fe(u)),u}var d=s.getSourceFile(n,o.target,function(t){void 0!==a&&void 0!==i&&void 0!==l?S.add(e.createFileDiagnostic(a,i,l-i,e.Diagnostics.Cannot_read_file_0_Colon_1,n,t)):S.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t))},J);if(c){var m=e.packageIdToString(c),p=U.get(m);if(p){var f=function(e,n,t,r){var a=Object.create(e);return a.fileName=t,a.path=r,a.redirectInfo={redirectTarget:e,unredirected:n},Object.defineProperties(a,{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}}}),a}(p,d,n,t);return W.set(p.path,!0),q.set(t,f),j.set(t,c.name),h.push(f),f}d&&(U.set(m,d),j.set(t,c.name))}if(q.set(t,d),d){if(C.set(t,A>0),d.path=t,s.useCaseSensitiveFileNames()){var g=t.toLowerCase(),v=z.get(g);v?De(n,v.fileName,a,i,l):z.set(g,d)}R=R||d.hasNoDefaultLib,o.noResolve||(Re(d,r),Ie(d)),Fe(d),r?h.unshift(d):h.push(d)}return d}function Re(n,t){e.forEach(n.referencedFiles,function(e){Me(r(e.fileName,n.fileName),t,void 0,n,e.pos,e.end)})}function Ie(n){for(var t=e.map(n.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=O(t,n.fileName),a=0;a<t.length;a++){var i=n.typeReferenceDirectives[a],o=r[a],s=i.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(n,s,o),Ne(s,o,n,i.pos,i.end)}}function Ne(n,t,r,a,i){var o=T.get(n);if(!o||!o.primary){var l=!0;t?t.primary?Me(t.resolvedFileName,!1,t.packageId,r,a,i):o?(t.resolvedFileName!==o.resolvedFileName&&s.readFile(t.resolvedFileName)!==me(o.resolvedFileName).text&&S.add(we(r,a,i,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,o.resolvedFileName)),l=!1):Me(t.resolvedFileName,!1,t.packageId,r,a,i):S.add(we(r,a,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,n)),l&&T.set(n,t)}}function we(n,t,r,a){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];return void 0===n||void 0===t||void 0===r?e.createCompilerDiagnostic.apply(void 0,[a].concat(i)):e.createFileDiagnostic.apply(void 0,[n,t,r-t,a].concat(i))}function Pe(e){return s.getCanonicalFileName(e)}function Fe(n){if(Ce(n),n.imports.length||n.moduleAugmentations.length){var t=y(n),r={program:l,oldSourceFile:l&&l.getSourceFile(n.fileName),modifiedFilePaths:f},a=oe(t,e.getNormalizedAbsolutePath(n.fileName,P),n,r);e.Debug.assert(a.length===t.length);for(var i=0;i<t.length;i++){var s=a[i];if(e.setResolvedModule(n,t[i],s),s){var c=s.isExternalLibraryImport,u=!e.extensionIsTypeScript(s.extension),d=c&&u,m=s.resolvedFileName;c&&A++;var p=d&&A>L,g=m&&!v(o,s)&&!o.noResolve&&i<n.imports.length&&!p&&!(u&&!o.allowJs);p?x.set(n.path,!0):g&&Oe(m,ae(m),!1,n,e.skipTrivia(n.text,n.imports[i].pos),n.imports[i].end,s.packageId),c&&A--}}}else n.resolvedModules=void 0}function Ve(n,t,r,a,i,s){for(var l=!0,c=0,u=He();c<u.length;c++){var d=u[c];if(e.isObjectLiteralExpression(d.initializer))for(var m=0,p=e.getPropertyAssignment(d.initializer,n);m<p.length;m++){var f=p[m];e.isArrayLiteralExpression(f.initializer)&&f.initializer.elements.length>t&&(w.add(e.createDiagnosticForNodeInSourceFile(o.configFile,f.initializer.elements[t],r,a,i,s)),l=!1)}}l&&w.add(e.createCompilerDiagnostic(r,a,i,s))}function Ge(n,t,r,a){for(var i=!0,o=0,s=He();o<s.length;o++){var l=s[o];e.isObjectLiteralExpression(l.initializer)&&We(l.initializer,n,t,void 0,r,a)&&(i=!1)}i&&w.add(e.createCompilerDiagnostic(r,a))}function He(){var n=je();return n?e.getPropertyAssignment(n,"paths"):e.emptyArray}function Ke(e,n,t){Ue(!0,n,t,e,n,t)}function Be(e,n,t){Ue(!1,e,void 0,n,t)}function Ue(n,t,r,a,i,o){var s=je();(!s||!We(s,n,t,r,a,i,o))&&w.add(e.createCompilerDiagnostic(a,i,o))}function je(){if(void 0===k&&(k=null,o.configFile&&o.configFile.jsonObject))for(var n=0,t=e.getPropertyAssignment(o.configFile.jsonObject,"compilerOptions");n<t.length;n++){var r=t[n];if(e.isObjectLiteralExpression(r.initializer)){k=r.initializer;break}}return k}function We(n,t,r,a,i,s,l){for(var c=e.getPropertyAssignment(n,r,a),u=0,d=c;u<d.length;u++){var m=d[u];w.add(e.createDiagnosticForNodeInSourceFile(o.configFile,t?m.name:m.initializer,i,s,l))}return!!c.length}function qe(e,n){V.set(ae(e),!0),w.add(n)}function ze(n,t){return 0===e.comparePaths(n,t,P,!s.useCaseSensitiveFileNames())}},e.getResolutionDiagnostic=v}(u||(u={})),function(e){e.getFileEmitOutput=function(e,n,t,r,a){var i=[],o=e.emit(n,function(e,n,t){i.push({name:e,writeByteOrderMark:t,text:n})},r,t,a);return{outputFiles:i,emitSkipped:o.emitSkipped}}}(u||(u={})),function(e){!function(n){function t(n,t,r){var a;if(t.imports&&t.imports.length>0)for(var i=n.getTypeChecker(),o=0,s=t.imports;o<s.length;o++){var l=s[o],c=i.getSymbolAtLocation(l);if(c&&c.declarations&&c.declarations[0]){var u=e.getSourceFileOfNode(c.declarations[0]);u&&g(u.path)}}var d=e.getDirectoryPath(t.path);if(t.referencedFiles&&t.referencedFiles.length>0)for(var m=0,p=t.referencedFiles;m<p.length;m++){var f=p[m];g(e.toPath(f.fileName,d,r))}return t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach(function(n){if(n){var t=n.resolvedFileName;g(e.toPath(t,d,r))}}),a;function g(n){a||(a=e.createMap()),a.set(n,!0)}}function r(e,n){return n&&!n.referencedMap==!e}function a(e,n){n.forEach(function(n,t){e.fileInfos.get(t).signature=n,e.hasCalledUpdateShapeSignature.set(t,!0)})}function i(n,t,r,a,i,o){if(e.Debug.assert(!!r),n.hasCalledUpdateShapeSignature.has(r.path)||a.has(r.path))return!1;var s=n.fileInfos.get(r.path);e.Debug.assert(!!s);var l,c=s.signature;if(r.isDeclarationFile)l=r.version;else{var u=e.getFileEmitOutput(t,r,!0,i);l=u.outputFiles&&u.outputFiles.length>0?o(u.outputFiles[0].text):c}return a.set(r.path,l),!c||l!==c}function o(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 s(n,t){return e.arrayFrom(e.mapDefinedIterator(n.referencedMap.entries(),function(e){var n=e[0];return e[1].has(t)?n:void 0}))}function l(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if(!e.isModuleWithStringLiteralName(a))return!1}return!0}function c(n,t,r){if(n.allFilesExcludingDefaultLibraryFile)return n.allFilesExcludingDefaultLibraryFile;var a;l(r);for(var i=0,o=t.getSourceFiles();i<o.length;i++){var s=o[i];s!==r&&l(s)}return n.allFilesExcludingDefaultLibraryFile=a||e.emptyArray,n.allFilesExcludingDefaultLibraryFile;function l(e){t.isSourceFileDefaultLibrary(e)||(a||(a=[])).push(e)}}n.canReuseOldState=r,n.create=function(n,a,i){for(var o=e.createMap(),s=n.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,l=e.createMap(),c=r(s,i),u=0,d=n.getSourceFiles();u<d.length;u++){var m=d[u],p=m.version,f=c&&i.fileInfos.get(m.path);if(s){var g=t(n,m,a);g&&s.set(m.path,g)}o.set(m.path,{version:p,signature:f&&f.signature})}return{fileInfos:o,referencedMap:s,hasCalledUpdateShapeSignature:l,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},n.getFilesAffectedBy=function(n,t,r,o,u,d){var m=d||e.createMap(),p=t.getSourceFileByPath(r);if(!p)return e.emptyArray;if(!i(n,t,p,m,o,u))return[p];var f=(n.referencedMap?function(n,t,r,a,o,u){if(!e.isExternalModule(r)&&!l(r))return c(n,t,r);var d=t.getCompilerOptions();if(d&&(d.isolatedModules||d.out||d.outFile))return[r];var m=e.createMap();m.set(r.path,r);for(var p=s(n,r.path);p.length>0;){var f=p.pop();if(!m.has(f)){var g=t.getSourceFileByPath(f);m.set(f,g),g&&i(n,t,g,a,o,u)&&p.push.apply(p,s(n,f))}}return e.arrayFrom(e.mapDefinedIterator(m.values(),function(e){return e}))}:function(e,n,t){var r=n.getCompilerOptions();return r&&(r.out||r.outFile)?[t]:c(e,n,t)})(n,t,p,m,o,u);return d||a(n,m),f},n.updateSignaturesFromCache=a,n.getAllDependencies=function(n,t,r){var a=t.getCompilerOptions();if(a.outFile||a.out)return o(n,t);if(!n.referencedMap||!e.isExternalModule(r)&&!l(r))return o(n,t);for(var i,s=e.createMap(),c=[r.path];c.length;){var u=c.pop();if(!s.has(u)){s.set(u,!0);var d=n.referencedMap.get(u);if(d)for(var m=d.keys(),p=m.next(),f=p.value,g=p.done;!g;f=(i=m.next()).value,g=i.done,i)c.push(f)}}return e.arrayFrom(e.mapDefinedIterator(s.keys(),function(e){var n=t.getSourceFileByPath(e);return n?n.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(u||(u={})),function(e){function n(n,t,r){var a=e.BuilderState.create(n,t,r);a.program=n;var i=n.getCompilerOptions();i.outFile||i.out||(a.semanticDiagnosticsPerFile=e.createMap()),a.changedFilesSet=e.createMap();var o=e.BuilderState.canReuseOldState(a.referencedMap,r),s=o&&r.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile;o&&(r.currentChangedFilePath||e.Debug.assert(!(r.affectedFiles||r.currentAffectedFilesSignatures&&r.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),s&&e.Debug.assert(!e.forEachKey(r.changedFilesSet,function(e){return r.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),e.copyEntries(r.changedFilesSet,a.changedFilesSet));var l=a.referencedMap,c=o&&r.referencedMap;return a.fileInfos.forEach(function(n,t){var i,u,d,m;if(o&&(i=r.fileInfos.get(t))&&i.version===n.version&&(d=u=l&&l.get(t),m=c&&c.get(t),d===m||d&&m&&d.size===m.size&&!e.forEachKey(d,function(e){return!m.has(e)}))&&(!u||!e.forEachKey(u,function(e){return!a.fileInfos.has(e)&&r.fileInfos.has(e)}))){if(s){var p=r.semanticDiagnosticsPerFile.get(t);p&&a.semanticDiagnosticsPerFile.set(t,p)}}else a.changedFilesSet.set(t,!0)}),a}function t(n,t){e.Debug.assert(!t||!n.affectedFiles||n.affectedFiles[n.affectedFilesIndex-1]!==t||!n.semanticDiagnosticsPerFile.has(t.path))}function r(n,t,r){for(;;){var a=n.affectedFiles;if(a){for(var i=n.seenAffectedFiles,o=n.semanticDiagnosticsPerFile,s=n.affectedFilesIndex;s<a.length;){var l=a[s];if(!i.has(l.path))return n.affectedFilesIndex=s,o.delete(l.path),l;i.set(l.path,!0),s++}n.changedFilesSet.delete(n.currentChangedFilePath),n.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(n,n.currentAffectedFilesSignatures),n.currentAffectedFilesSignatures.clear(),n.affectedFiles=void 0}var c=n.changedFilesSet.keys().next();if(c.done)return;var u=n.program.getCompilerOptions();if(u.outFile||u.out)return e.Debug.assert(!n.semanticDiagnosticsPerFile),n.program;n.currentAffectedFilesSignatures=n.currentAffectedFilesSignatures||e.createMap(),n.affectedFiles=e.BuilderState.getFilesAffectedBy(n,n.program,c.value,t,r,n.currentAffectedFilesSignatures),n.currentChangedFilePath=c.value,n.semanticDiagnosticsPerFile.delete(c.value),n.affectedFilesIndex=0,n.seenAffectedFiles=n.seenAffectedFiles||e.createMap()}}function a(e,n){n===e.program?e.changedFilesSet.clear():(e.seenAffectedFiles.set(n.path,!0),e.affectedFilesIndex++)}function i(e,n,t){return a(e,t),{result:n,affected:t}}function o(e,n,t){var r=n.path,a=e.semanticDiagnosticsPerFile.get(r);if(a)return a;var i=e.program.getSemanticDiagnostics(n,t);return e.semanticDiagnosticsPerFile.set(r,i),i}var s;!function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(s=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(n,t,r,a){var i,o;return e.isArray(n)?(o=e.createProgram(n,t,r,a&&a.getProgram()),i=r):(o=n,i=t,a=r),{host:i,newProgram:o,oldProgram:a}},e.createBuilderProgram=function(l,c){var u=c.newProgram,d=c.host,m=c.oldProgram,p=m&&m.getState();if(p&&u===p.program)return u=void 0,p=void 0,m;var f=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),g=d.createHash||e.identity,v=n(u,f,p);u=void 0,m=void 0,p=void 0;var _={getState:function(){return v},getProgram:function(){return v.program},getCompilerOptions:function(){return v.program.getCompilerOptions()},getSourceFile:function(e){return v.program.getSourceFile(e)},getSourceFiles:function(){return v.program.getSourceFiles()},getOptionsDiagnostics:function(e){return v.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return v.program.getGlobalDiagnostics(e)},getSyntacticDiagnostics:function(e,n){return v.program.getSyntacticDiagnostics(e,n)},getSemanticDiagnostics:function(n,i){t(v,n);var c,u=v.program.getCompilerOptions();if(u.outFile||u.out)return e.Debug.assert(!v.semanticDiagnosticsPerFile),v.program.getSemanticDiagnostics(n,i);if(n)return o(v,n,i);if(l===s.SemanticDiagnosticsBuilderProgram)for(var d=void 0;d=r(v,i,g);)a(v,d);for(var m=0,p=v.program.getSourceFiles();m<p.length;m++){var f=p[m];c=e.addRange(c,o(v,f,i))}return c||e.emptyArray},emit:function(n,r,a,i,o){if(l===s.EmitAndSemanticDiagnosticsBuilderProgram&&(t(v,n),!n)){for(var c=[],u=void 0,m=void 0,p=[],f=void 0;f=y(r,a,i,o);)u=u||f.result.emitSkipped,m=e.addRange(m,f.result.diagnostics),p=e.addRange(p,f.result.emittedFiles),c=e.addRange(c,f.result.sourceMaps);return{emitSkipped:u,diagnostics:m||e.emptyArray,emittedFiles:p,sourceMaps:c}}return v.program.emit(n,r||d.writeFile,a,i,o)},getAllDependencies:function(n){return e.BuilderState.getAllDependencies(v,v.program,n)},getCurrentDirectory:function(){return v.program.getCurrentDirectory()}};return l===s.SemanticDiagnosticsBuilderProgram?_.getSemanticDiagnosticsOfNextAffectedFile=function(e,n){for(;;){var t=r(v,e,g);if(!t)return;if(t===v.program)return i(v,v.program.getSemanticDiagnostics(void 0,e),t);if(!n||!n(t))return i(v,o(v,t,e),t);a(v,t)}}:l===s.EmitAndSemanticDiagnosticsBuilderProgram?_.emitNextAffectedFile=y:e.notImplemented(),_;function y(e,n,t,a){var o=r(v,n,g);if(o)return i(v,v.program.emit(o===v.program?void 0:o,e||d.writeFile,n,t,a),o)}}}(u||(u={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(n,t,r,a){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,a))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(n,t,r,a){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,a))},e.createAbstractBuilder=function(n,t,r,a){var i=e.getBuilderCreationParameters(n,t,r,a).newProgram;return{getProgram:function(){return i},getState:e.notImplemented,getCompilerOptions:e.notImplemented,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented}}}(u||(u={})),function(e){var n;function t(e,n,t,r){return e.watchFile(n,t,r)}function r(e,n,t,r){return e.watchDirectory(n,t,0!=(1&r))}function a(e,t){switch(e){case n.None:return t;case n.TriggerOnly:return o;case n.Verbose:return i}}function i(e,n,t,r,a,i,l,c,u,d,m){u(d+":: Added:: "+s(n,r,i,l,m));var p=o(e,n,t,r,a,i,l,c,u,d,m);return{close:function(){u(d+":: Close:: "+s(n,r,i,l,m)),p.close()}}}function o(n,t,r,a,i,o,l,c,u,d,m){return c(n,t,function(n,c){var p=d+":: Triggered with "+n+(void 0!==c?c:"")+":: "+s(t,a,o,l,m);u(p);var f=e.timestamp();r(n,c,i);var g=e.timestamp()-f;u("Elapsed:: "+g+"ms "+p)},a)}function s(e,n,t,r,a){return"WatchInfo: "+e+" "+n+" "+(a?a(t,r):"")}function l(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(n,t,r){if(n.getDirectories&&n.readDirectory){var a=e.createMap(),i=e.createGetCanonicalFileName(r);return{useCaseSensitiveFileNames:r,fileExists:function(e){var t=l(o(e));return t&&m(t.files,c(e))||n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:n.directoryExists&&function(e){var t=o(e);return a.has(t)||n.directoryExists(e)},getDirectories:function(e){var t=o(e),r=u(e,t);return r?r.directories.slice():n.getDirectories(e)},readDirectory:function(a,i,s,l,c){var d=o(a),m=u(a,d);return m?e.matchFiles(a,i,s,l,r,t,c,function(n){var t=o(n);return t===d?m:u(n,t)||e.emptyFileSystemEntries}):n.readDirectory(a,i,s,l,c)},createDirectory:n.createDirectory&&function(e){var t=l(o(e)),r=c(e);t&&p(t.directories,r,!0),n.createDirectory(e)},writeFile:n.writeFile&&function(e,t,r){var a=l(o(e));return a&&f(a,c(e),!0),n.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(s(t))g();else{var r=l(t);if(r){if(n.directoryExists){var a=c(e),i={fileExists:n.fileExists(t),directoryExists:n.directoryExists(t)};return i.directoryExists||m(r.directories,a)?g():f(r,a,i.fileExists),i}g()}}},addOrDeleteFile:function(n,t,r){if(r!==e.FileWatcherEventKind.Changed){var a=l(t);a&&f(a,c(n),r===e.FileWatcherEventKind.Created)}},clearCache:g}}function o(n){return e.toPath(n,t,i)}function s(e){return a.get(e)}function l(n){return s(e.getDirectoryPath(n))}function c(n){return e.getBaseFileName(e.normalizePath(n))}function u(t,r){var i=s(r);if(i)return i;try{return function(t,r){var i={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:n.getDirectories(t)||[]};return a.set(r,i),i}(t,r)}catch(n){return void e.Debug.assert(!a.has(r))}}function d(e,n){return i(e)===i(n)}function m(n,t){return e.some(n,function(e){return d(e,t)})}function p(n,t,r){if(m(n,t)){if(!r)return e.filterMutate(n,function(e){return!d(e,t)})}else if(r)return n.push(t)}function f(e,n,t){p(e.files,n,t)}function g(){a.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=function(n,t,r){var a=n.getMissingFilePaths(),i=e.arrayToSet(a);e.mutateMap(t,i,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(n,t,r){function a(e,n){return{watcher:r(e,n),flags:n}}e.mutateMap(n,t,{createNewValue:a,onDeleteValue:l,onExistingValue:function(e,t,r){e.flags!==t&&(e.watcher.close(),n.set(r,a(r,t)))}})},e.isEmittedFileOfProgram=function(e,n){return!!e&&e.isEmittedFile(n)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(n=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(e,i,o){return function(e,t,r,i,o){var s=a(e,i),l=e===n.None?function(e,n,t,r,a){return i(e,n,function(e,n){return t(e,n,a)},r)}:s,c=a(e,o);return{watchFile:function(e,n,a,o,l,c){return s(e,n,a,o,void 0,l,c,i,t,"FileWatcher",r)},watchFilePath:function(e,n,a,o,s,c,u){return l(e,n,a,o,s,c,u,i,t,"FileWatcher",r)},watchDirectory:function(e,n,a,i,s,l){return c(e,n,a,i,void 0,s,l,o,t,"DirectoryWatcher",r)}}}(e,i,o,t,r)},e.closeFileWatcherOf=l}(u||(u={})),function(e){e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(n,t,r){var a,i,o=!1,s=e.memoize(function(){return n.getCurrentDirectory()}),l=n.getCachedDirectoryStructureHost(),c=e.createMap(),u=e.createMap(),d=e.createMap(),m=e.createModuleResolutionCacheWithMaps(u,d,s(),n.getCanonicalFileName),p=e.createMap(),f=e.createMap(),g=[".ts",".tsx",".js",".jsx",".json"],v=e.createMap(),_=e.createMap(),y=t&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(t,s())),h=y&&n.toPath(y),b=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){a=[]},finishRecordingFilesWithChangedResolutions:function(){var e=a;return a=void 0,e},startCachingPerDirectoryResolution:L,finishCachingPerDirectoryResolution:function(){o=!1,_.forEach(function(e,n){0===e.refCount&&(_.delete(n),e.watcher.close())}),L()},resolveModuleNames:function(e,n,t){return x(e,n,c,u,A,E,t,r)},resolveTypeReferenceDirectives:function(n,t){return x(n,t,p,f,e.resolveTypeReferenceDirective,T,void 0,!1)},removeResolutionsOfFile:G,invalidateResolutionOfFile:function(e){G(e),K(function(t,r){var a=r(t);return a&&n.toPath(a.resolvedFileName)===e})},createHasInvalidatedResolution:function(n){if(o||n)return i=void 0,e.returnTrue;var t=i;return i=void 0,function(e){return t&&t.has(e)}},updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)U();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:W,getCurrentDirectory:s});r?e.mutateMap(b,e.arrayToMap(r,function(e){return n.toPath(e)}),{createNewValue:j,onDeleteValue:e.closeFileWatcher}):U()}},closeTypeRootsWatch:U,clear:function(){e.clearMap(_,e.closeFileWatcherOf),v.clear(),U(),c.clear(),p.clear(),o=!1,L()}};function E(e){return e.resolvedModule}function T(e){return e.resolvedTypeReferenceDirective}function S(n,t){return!(void 0===n||t.length<=n.length)&&e.startsWith(t,n)&&t[n.length]===e.directorySeparator}function L(){u.clear(),d.clear(),f.clear()}function A(t,r,a,i){var o=e.resolveModuleName(t,r,a,i,m);if(!n.getGlobalCache)return o;var s=n.getGlobalCache();if(!(void 0===s||e.isExternalModuleNameRelative(t)||o.resolvedModule&&e.extensionIsTypeScript(o.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(t,n.projectName,a,i,s),c=l.resolvedModule,u=l.failedLookupLocations;if(c)return{resolvedModule:c,failedLookupLocations:e.addRange(o.failedLookupLocations,u)}}return o}function x(t,r,i,s,l,c,u,d){var m=n.toPath(r),p=i.get(m)||i.set(m,e.createMap()).get(m),f=e.getDirectoryPath(m),g=s.get(f);g||(g=e.createMap(),s.set(f,g));for(var v=[],_=n.getCompilationSettings(),y=e.createMap(),h=0,b=t;h<b.length;h++){var E=b[h],T=p.get(E);if(!y.has(E)&&o||!T||T.isInvalidated){var S=T,L=g.get(E);L?T=L:(T=l(E,r,_,n),g.set(E,T)),p.set(E,T),N(T),S&&P(S),d&&a&&!A(S,T)&&(a.push(m),d=!1)}e.Debug.assert(void 0!==T&&!T.isInvalidated),y.set(E,!0),v.push(c(T))}return p.forEach(function(n,t){y.has(t)||e.contains(u,t)||(P(n),p.delete(t))}),v;function A(e,n){if(e===n)return!0;if(!e||!n||e.isInvalidated)return!1;var t=c(e),r=c(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function C(n){return e.endsWith(n,"/node_modules")}function k(n){return e.endsWith(n,"/node_modules/@types")}function M(n){return function(n,t){for(var r=e.getRootLength(n);t>0;t--)if(0===(r=n.indexOf(e.directorySeparator,r)+1))return!1;return!0}(n,47===n.charCodeAt(0)?3:1)}function D(e,n){return M(n)||(e.ignore=!0),e}function O(n,t){return S(h,t)?{dir:y,dirPath:h}:R(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,s())),e.getDirectoryPath(t))}function R(n,t){for(;e.stringContains(t,"/node_modules/");)n=e.getDirectoryPath(n),t=e.getDirectoryPath(t);if(C(t))return D({dir:n,dirPath:t},e.getDirectoryPath(t));if(void 0!==h)for(;!S(t,h);){var r=e.getDirectoryPath(t);if(r===t)break;t=r,n=e.getDirectoryPath(n)}return D({dir:n,dirPath:t},t)}function I(n){return e.fileExtensionIsOneOf(n,g)}function N(e){if(e.failedLookupLocations&&e.failedLookupLocations.length)if(void 0===e.refCount){e.refCount=1;for(var t=!1,r=0,a=e.failedLookupLocations;r<a.length;r++){var i=a[r],o=n.toPath(i),s=O(i,o),l=s.dir,c=s.dirPath;if(!s.ignore){if(!I(o)){var u=v.get(o)||0;v.set(o,u+1)}c===h?t=!0:w(l,c)}}t&&w(y,h)}else e.refCount++}function w(t,r){var a=_.get(r);a?a.refCount++:_.set(r,{watcher:function(t,r){return n.watchDirectoryOfFailedLookupLocation(t,function(t){var a=n.toPath(t);l&&l.addOrDeleteFileOrDirectory(t,a),(!o&&r===h||C(r)||e.getDirectoryPath(a)===r)&&B(a,r===a)&&n.onInvalidatedResolution()},1)}(t,r),refCount:1})}function P(t){if(t.failedLookupLocations&&t.failedLookupLocations.length&&(t.refCount--,!t.refCount)){for(var r=!1,a=0,i=t.failedLookupLocations;a<i.length;a++){var o=i[a],s=n.toPath(o),l=O(o,s),c=l.dirPath;if(!l.ignore){var u=v.get(s);u&&(1===u?v.delete(s):(e.Debug.assert(u>1),v.set(s,u-1))),c===h?r=!0:F(c)}}r&&F(h)}}function F(e){_.get(e).refCount--}function V(e,n){var t=e.get(n);t&&(t.forEach(P),e.delete(n))}function G(e){V(c,e),V(p,e)}function H(n,t,r){var a=e.createMap();n.forEach(function(n,o){var s=e.getDirectoryPath(o),l=a.get(s);l||(l=e.createMap(),a.set(s,l)),n.forEach(function(n,a){l.has(a)||(l.set(a,!0),!n.isInvalidated&&t(n,r)&&(n.isInvalidated=!0,(i||(i=e.createMap())).set(o,!0)))})})}function K(t){var r;r=n.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,c.size>r||p.size>r?o=!0:(H(c,t,E),H(p,t,T))}function B(t,r){var a;if(r)a=function(e){return S(t,n.toPath(e))};else{var s=e.getDirectoryPath(t);if(k(t)||C(t)||k(s)||C(s))a=function(r){return n.toPath(r)===t||e.startsWith(n.toPath(r),t)};else{if(!I(t)&&!v.has(t))return!1;if(e.isEmittedFileOfProgram(n.getCurrentProgram(),t))return!1;a=function(e){return n.toPath(e)===t}}}var l=i&&i.size;return K(function(n){return e.some(n.failedLookupLocations,a)}),o||i&&i.size!==l}function U(){e.clearMap(b,e.closeFileWatcher)}function j(e,t){return n.watchTypeRootsDirectory(t,function(r){var a=n.toPath(r);l&&l.addOrDeleteFileOrDirectory(r,a),n.onChangedAutomaticTypeDirectiveNames();var i=function(e,n){if(!o){if(S(h,n))return h;var t=R(e,n),r=t.dirPath;return!t.ignore&&_.has(r)&&r}}(t,e);i&&B(a,i===a)&&n.onInvalidatedResolution()},1)}function W(t){var r=e.getDirectoryPath(e.getDirectoryPath(t)),a=n.toPath(r);return a===h||M(a)}}}(u||(u={})),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:{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){!n.clearScreen||r.preserveWatchOutput||t.code===e.Diagnostics.Compilation_complete_Watching_for_file_changes.code||r.extendedDiagnostics||r.diagnostics||n.clearScreen()}function a(n,t){return t?function(t,a,i){r(n,t,i);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+(a+a+a),n.write(o)}:function(t,a,i){r(n,t,i);var o=(new Date).toLocaleTimeString()+" - ";o+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+(a+a+a),n.write(o)}}function i(n,t,r){var a;try{a=r.readFile(n)}catch(t){var i=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message);return void r.onUnRecoverableConfigFileDiagnostic(i)}if(a){var o=e.parseJsonText(n,a);o.parseDiagnostics.forEach(function(e){return r.onConfigFileDiagnostic(e)});var s=r.getCurrentDirectory(),l=e.parseJsonSourceFileConfigFileContent(o,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),s),t,e.getNormalizedAbsolutePath(n,s));return l.errors.forEach(function(e){return r.onConfigFileDiagnostic(e)}),l}i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,n);r.onUnRecoverableConfigFileDiagnostic(i)}function o(n,t,r){var a=n.getSyntacticDiagnostics().slice(),i=!1;0===a.length&&(e.addRange(a,n.getOptionsDiagnostics()),e.addRange(a,n.getGlobalDiagnostics()),0===a.length&&(i=!0));var o=n.emit(),s=o.emittedFiles,l=o.emitSkipped,c=o.diagnostics;if(e.addRange(a,c),i&&e.addRange(a,n.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(a).forEach(t),r){var u=n.getCurrentDirectory();e.forEach(s,function(n){var t=e.getNormalizedAbsolutePath(n,u);r("TSFILE: "+t)}),n.getCompilerOptions().listFiles&&e.forEach(n.getSourceFiles(),function(e){r(e.fileName)})}return l&&a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=t,e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=function(n,t,r,a){var o=r;o.onConfigFileDiagnostic=a,o.onUnRecoverableConfigFileDiagnostic=function(n){return c(e.sys,a,n)};var s=i(n,t,o);return o.onConfigFileDiagnostic=void 0,o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getParsedCommandLineOfConfigFile=i,e.emitFilesAndReportErrors=o;var s={close:e.noop};function l(n,t,r,i){void 0===n&&(n=e.sys),t||(t=e.createEmitAndSemanticDiagnosticsBuilderProgram);var l=function(e){return n.write(e+n.newLine)};return{useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getNewLine:function(){return n.newLine},getCurrentDirectory:function(){return n.getCurrentDirectory()},getDefaultLibLocation:c,getDefaultLibFileName:function(n){return e.combinePaths(c(),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:n.realpath&&function(e){return n.realpath(e)},getEnvironmentVariable:n.getEnvironmentVariable&&function(e){return n.getEnvironmentVariable(e)},watchFile:n.watchFile?function(e,t,r){return n.watchFile(e,t,r)}:function(){return s},watchDirectory:n.watchDirectory?function(e,t,r){return n.watchDirectory(e,t,r)}:function(){return s},setTimeout:n.setTimeout?function(e,t){for(var r,a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];return(r=n.setTimeout).call.apply(r,[n,e,t].concat(a))}:e.noop,clearTimeout:n.clearTimeout?function(e){return n.clearTimeout(e)}:e.noop,trace:function(e){return n.write(e)},onWatchStatusChange:i||a(n),createDirectory:function(e){return n.createDirectory(e)},writeFile:function(e,t,r){return n.writeFile(e,t,r)},onCachedDirectoryStructureHostCreate:function(e){return e||n},createHash:n.createHash&&function(e){return n.createHash(e)},createProgram:t,afterProgramCreate:function(e){o(e,r,l)}};function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}}function c(n,t,r){t(r),n.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createWatchCompilerHostOfConfigFile=function(e,n,r,a,i,o){i=i||t(r);var s=l(r,a,i,o);return s.onConfigFileDiagnostic=i,s.onUnRecoverableConfigFileDiagnostic=function(e){return c(r,i,e)},s.configFileName=e,s.optionsToExtend=n,s},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,n,r,a,i,o){var s=l(r,a,i||t(r),o);return s.rootFiles=e,s.options=n,s}}(u||(u={})),function(e){e.createWatchCompilerHost=function(n,t,r,a,i,o){return e.isArray(n)?e.createWatchCompilerHostOfFilesAndCompilerOptions(n,t,r,a,i,o):e.createWatchCompilerHostOfConfigFile(n,t,r,a,i,o)};var n=1;e.createWatchProgram=function(t){var r,a,i,o,s,l,c=e.createMap(),u=!1,d=!1,m=t.useCaseSensitiveFileNames(),p=t.getCurrentDirectory(),f=function(){return p},g=function(e,n){return t.readFile(e,n)},v=t.configFileName,_=t.optionsToExtend,y=void 0===_?{}:_,h=t.createProgram,b=t.rootFiles,E=t.options,T=t.configFileSpecs,S=t.configFileWildCardDirectories,L=v&&e.createCachedDirectoryStructureHost(t,p,m);L&&t.onCachedDirectoryStructureHostCreate&&t.onCachedDirectoryStructureHostCreate(L);var A=L||t,x={useCaseSensitiveFileNames:m,readDirectory:function(e,n,t,r,a){return A.readDirectory(e,n,t,r,a)},fileExists:function(e){return t.fileExists(e)},readFile:g,getCurrentDirectory:f,onConfigFileDiagnostic:t.onConfigFileDiagnostic,onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic};v&&!b&&$();var C=t.trace&&function(e){t.trace(e+w)},k=C?E.extendedDiagnostics?e.WatchLogLevel.Verbose:E.diagnostis?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,M=k!==e.WatchLogLevel.None?C:e.noop,D=e.getWatchFactory(k,M),O=D.watchFile,R=D.watchFilePath,I=D.watchDirectory,N=e.createGetCanonicalFileName(m),w=B();M("Current directory: "+p+" CaseSensitiveFileNames: "+m),v&&O(t,v,function(){e.Debug.assert(!!v),a=e.ConfigFileProgramReloadLevel.Full,Q()},e.PollingInterval.High);var P={getSourceFile:function(e,n,t,r){return z(e,U(e),n,t,r)},getSourceFileByPath:z,getDefaultLibLocation:t.getDefaultLibLocation&&function(){return t.getDefaultLibLocation()},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(n,r,a,i){try{e.performance.mark("beforeIOWrite"),function n(r){if(r.length>e.getRootLength(r)&&!t.directoryExists(r)){var a=e.getDirectoryPath(r);n(a),t.createDirectory(r)}}(e.getDirectoryPath(e.normalizePath(n))),t.writeFile(n,r,a),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){i&&i(e.message)}},getCurrentDirectory:f,useCaseSensitiveFileNames:function(){return m},getCanonicalFileName:N,getNewLine:function(){return w},fileExists:q,readFile:g,trace:C,directoryExists:A.directoryExists&&function(e){return A.directoryExists(e)},getDirectories:A.getDirectories&&function(e){return A.getDirectories(e)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable?function(e){return t.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,n){var t=c.get(e.path);t&&(j(t)?(l||(l=[])).push(e.path):t.sourceFile===e&&(t.fileWatcher&&t.fileWatcher.close(),c.delete(e.path),F.removeResolutionsOfFile(e.path)))},createHash:t.createHash&&function(e){return t.createHash(e)},toPath:U,getCompilationSettings:function(){return E},watchDirectoryOfFailedLookupLocation:te,watchTypeRootsDirectory:te,getCachedDirectoryStructureHost:function(){return L},onInvalidatedResolution:Q,onChangedAutomaticTypeDirectiveNames:function(){d=!0,Q()},maxNumberOfFilesToIterateForInvalidation:t.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:H,writeLog:M},F=e.createResolutionCache(P,v?e.getDirectoryPath(e.getNormalizedAbsolutePath(v,p)):p,!1);P.resolveModuleNames=t.resolveModuleNames?function(e,n,r){return t.resolveModuleNames(e,n,r)}:function(e,n,t){return F.resolveModuleNames(e,n,t)},P.resolveTypeReferenceDirectives=t.resolveTypeReferenceDirectives?function(e,n){return t.resolveTypeReferenceDirectives(e,n)}:function(e,n){return F.resolveTypeReferenceDirectives(e,n)};var V=!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives;return Y(e.Diagnostics.Starting_compilation_in_watch_mode),K(),ie(),v?{getCurrentProgram:G,getProgram:K}:{getCurrentProgram:G,getProgram:K,updateRootFileNames:function(n){e.Debug.assert(!v,"Cannot update root file names with config file watch mode"),b=n,Q()}};function G(){return r}function H(){return r&&r.getProgram()}function K(){M("Synchronizing program");var n=H();u&&(w=B(),n&&e.changesAffectModuleResolution(n.getCompilerOptions(),E)&&F.clear());var a=F.createHasInvalidatedResolution(V);if(e.isProgramUptoDate(H(),b,E,X,q,a,d))return r;k!==e.WatchLogLevel.None&&(M("CreatingProgramWith::"),M(" roots: "+JSON.stringify(b)),M(" options: "+JSON.stringify(E)));var o=u||!n;if(u=!1,F.startCachingPerDirectoryResolution(),P.hasInvalidatedResolution=a,P.hasChangedAutomaticTypeDirectiveNames=d,r=h(b,E,P,r),F.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(r.getProgram(),i||(i=e.createMap()),re),o&&F.updateTypeRootsWatch(),l){for(var s=0,m=l;s<m.length;s++){var p=m[s];i.has(p)||c.delete(p)}l=void 0}return t.afterProgramCreate&&t.afterProgramCreate(r),Y(e.Diagnostics.Compilation_complete_Watching_for_file_changes),r}function B(){return e.getNewLineCharacter(E,function(){return t.getNewLine()})}function U(n){return e.toPath(n,p,N)}function j(e){return"number"==typeof e}function W(e){return!!e.sourceFile}function q(e){var n=U(e);return!!j(c.get(n))||A.fileExists(e)}function z(r,a,i,o,s){var l=c.get(a);if(!j(l)){if(!l||s||!W(l)||l.version.toString()!==l.sourceFile.version){var u=function(){var n;try{e.performance.mark("beforeIORead"),n=t.readFile(r,E.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message)}return void 0!==n?e.createSourceFile(r,n,i):void 0}();if(l)s&&l.version++,u?(l.sourceFile=u,u.version=l.version.toString(),l.fileWatcher||(l.fileWatcher=R(t,r,ee,e.PollingInterval.Low,a))):(W(l)&&l.fileWatcher.close(),c.set(a,l.version));else if(u){u.version=n.toString();var d=R(t,r,ee,e.PollingInterval.Low,a);c.set(a,{sourceFile:u,version:n,fileWatcher:d})}else c.set(a,n);return u}return l.sourceFile}}function J(e){var n=c.get(e);void 0!==n&&(j(n)?c.set(e,{version:Number(n)+1}):n.version++)}function X(e){var n=c.get(e);return!n||j(n)?void 0:n.version.toString()}function Y(n){t.onWatchStatusChange&&t.onWatchStatusChange(e.createCompilerDiagnostic(n),w,E)}function Q(){t.setTimeout&&t.clearTimeout&&(s&&t.clearTimeout(s),s=t.setTimeout(Z,250))}function Z(){switch(s=void 0,Y(e.Diagnostics.File_change_detected_Starting_incremental_compilation),a){case e.ConfigFileProgramReloadLevel.Partial:return n=e.getFileNamesFromConfigSpecs(T,e.getDirectoryPath(v),E,x),T.filesSpecs||0!==n.fileNames.length||t.onConfigFileDiagnostic(e.getErrorForNoInputFiles(T,v)),b=n.fileNames,void K();case e.ConfigFileProgramReloadLevel.Full:return M("Reloading config file: "+v),a=e.ConfigFileProgramReloadLevel.None,L&&L.clearCache(),$(),u=!0,K(),void ie();default:return void K()}var n}function $(){var n=e.getParsedCommandLineOfConfigFile(v,y,x);b=n.fileNames,E=n.options,T=n.configFileSpecs,S=n.wildcardDirectories}function ee(n,t,r){ne(n,r,t),t===e.FileWatcherEventKind.Deleted&&c.get(r)&&F.invalidateResolutionOfFile(r),J(r),Q()}function ne(e,n,t){L&&L.addOrDeleteFile(e,n,t)}function te(e,n,r){return I(t,e,n,r)}function re(n){return R(t,n,ae,e.PollingInterval.Medium,n)}function ae(n,t,r){ne(n,r,t),t===e.FileWatcherEventKind.Created&&i.has(r)&&(i.get(r).close(),i.delete(r),J(r),Q())}function ie(){S?e.updateWatchingWildcardDirectories(o||(o=e.createMap()),e.createMapFromTemplate(S),oe):o&&e.clearMap(o,e.closeFileWatcherOf)}function oe(n,t){return te(n,function(t){e.Debug.assert(!!v);var r=U(t);L&&L.addOrDeleteFileOrDirectory(t,r),J(r),r===n||!e.hasExtension(r)||e.isSupportedSourceFileName(t,E)?a!==e.ConfigFileProgramReloadLevel.Full&&(a=e.ConfigFileProgramReloadLevel.Partial,Q()):M("Project: "+v+" Detected file add/remove of non supported extension: "+t)},t)}}}(u||(u={})),function(e){var n,t;function r(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function a(){if(n)return n;var t=e.createMap(),r=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),n={optionNameMap:t,shortOptionNames:r}}function i(n){return o(n,e.createCompilerDiagnostic)}function o(n,t){var r=e.arrayFrom(n.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return t(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+n.name,r)}function s(e,n,t){return I(e,N(n||""),t)}function l(n,t,r){if(void 0===t&&(t=""),t=N(t),!e.startsWith(t,"-")){if(""===t)return[];var a=t.split(",");switch(n.element.type){case"number":return e.map(a,parseInt);case"string":return e.map(a,function(e){return e||""});default:return e.filter(e.map(a,function(e){return s(n.element,e,r)}),function(e){return!!e})}}}function c(e,n){void 0===n&&(n=!1),e=e.toLowerCase();var t=a(),r=t.optionNameMap,i=t.shortOptionNames;if(n){var o=i.get(e);void 0!==o&&(e=o)}return r.get(e)}function u(n,t){var r=e.parseJsonText(n,t);return{config:f(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function d(n,t){var r=m(n,t);return e.isString(r)?e.parseJsonText(n,r):{parseDiagnostics:[r]}}function m(n,t){var r;try{r=t(n)}catch(t){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,n):r}function p(n){return e.arrayToMap(n,function(e){return e.name})}function f(e,n){return g(e,n,void 0,void 0)}function g(n,t,r,a){return n.jsonObject?i(n.jsonObject,r,void 0,void 0):{};function i(i,o,c,u){for(var d={},m=0,p=i.properties;m<p.length;m++){var f=p[m];if(268===f.kind){f.questionToken&&t.push(e.createDiagnosticForNodeInSourceFile(n,f.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),l(f.name)||t.push(e.createDiagnosticForNodeInSourceFile(n,f.name,e.Diagnostics.String_literal_with_double_quotes_expected));var g=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(f.name)),v=o?o.get(g):void 0;c&&!v&&t.push(e.createDiagnosticForNodeInSourceFile(n,f.name,c,g));var y=s(f.initializer,v);if(void 0!==g&&(d[g]=y,a&&(u||o===r))){var h=_(v,y);u?h&&a.onSetValidOptionKeyValueInParent(u,v,y):o===r&&(h?a.onSetValidOptionKeyValueInRoot(g,f.name,y,f.initializer):v||a.onSetUnknownOptionKeyValueInRoot(g,f.name,y,f.initializer))}}else t.push(e.createDiagnosticForNodeInSourceFile(n,f,e.Diagnostics.Property_assignment_expected))}return d}function s(r,a){switch(r.kind){case 101:return g(a&&"boolean"!==a.type),!0;case 86:return g(a&&"boolean"!==a.type),!1;case 95:return g(a&&"extends"===a.name),null;case 9:l(r)||t.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.String_literal_with_double_quotes_expected)),g(a&&e.isString(a.type)&&"string"!==a.type);var c=r.text;if(a&&!e.isString(a.type)){var u=a;u.type.has(c.toLowerCase())||t.push(o(u,function(t,a,i){return e.createDiagnosticForNodeInSourceFile(n,r,t,a,i)}))}return c;case 8:return g(a&&"number"!==a.type),Number(r.text);case 196:if(38!==r.operator||8!==r.operand.kind)break;return g(a&&"number"!==a.type),-Number(r.operand.text);case 182:g(a&&"object"!==a.type);var d=r;if(a){var m=a;return i(d,m.elementOptions,m.extraKeyDiagnosticMessage,m.name)}return i(d,void 0,void 0,void 0);case 181:return g(a&&"list"!==a.type),p=r.elements,f=a&&a.element,p.map(function(e){return s(e,f)})}var p,f;return void(a?g(!0):t.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(i){i&&t.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,v(a)))}}function l(t){return e.isStringLiteral(t)&&e.isStringDoubleQuoted(t,n)}}function v(n){return"list"===n.type?"Array":e.isString(n.type)?n.type:"string"}function _(n,t){if(n)return!!h(t)||("list"===n.type?e.isArray(t):typeof t===(e.isString(n.type)?n.type:"string"))}function y(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function h(e){return void 0===e||null===e}function b(n,t){return e.getDirectoryPath(e.getNormalizedAbsolutePath(n,t))}function E(n,t,r,a,i,o,s,l){void 0===i&&(i={}),void 0===s&&(s=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===n&&void 0!==t||void 0!==n&&void 0===t);var c=[],u=L(n,t,r,a,o,s,c),d=u.raw,m=e.extend(i,u.options||{});m.configFilePath=o,y(m,t);var p=function(){var n,i,u;e.hasProperty(d,"files")&&!h(d.files)&&(e.isArray(d.files)?0===(n=d.files).length&&_(e.Diagnostics.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json"):_(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array"));e.hasProperty(d,"include")&&!h(d.include)&&(e.isArray(d.include)?i=d.include:_(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(e.hasProperty(d,"exclude")&&!h(d.exclude))e.isArray(d.exclude)?u=d.exclude:_(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else{var p=d.compilerOptions&&d.compilerOptions.outDir;p&&(u=[p])}void 0===n&&void 0===i&&(i=["**/*"]);var f=function(n,t,r,a,i,o,s,l,c){var u,d;a=e.normalizePath(a),t&&(u=H(t,s,!1,c,"include"));r&&(d=H(r,s,!0,c,"exclude"));var m=function(n,t,r,a){var i=e.getRegularExpressionForWildcard(t,r,"exclude"),o=i&&new RegExp(i,a?"":"i"),s={};if(void 0!==n){for(var l=[],c=0,u=n;c<u.length;c++){var d=u[c],m=e.normalizePath(e.combinePaths(r,d));if(!o||!o.test(m)){var p=K(m,a);if(p){var f=p.key,g=p.flags,v=s[f];(void 0===v||v<g)&&(s[f]=g,1===g&&l.push(f))}}}for(var f in s)if(e.hasProperty(s,f))for(var _=0,y=l;_<y.length;_++){var h=y[_];f!==h&&e.containsPath(h,f,r,!a)&&delete s[f]}}return s}(u,d,a,o.useCaseSensitiveFileNames);return G({filesSpecs:n,includeSpecs:t,excludeSpecs:r,validatedIncludeSpecs:u,validatedExcludeSpecs:d,wildcardDirectories:m},a,i,o,l)}(n,i,u,o?b(o,a):a,m,r,c,l,t);0!==f.fileNames.length||e.hasProperty(d,"files")||0!==s.length||c.push(T(f.spec,o));return f}(),f=p.fileNames,g=p.wildcardDirectories,v=p.spec;return{options:m,fileNames:f,typeAcquisition:u.typeAcquisition||k(),raw:d,errors:c,wildcardDirectories:g,compileOnSave:!!d.compileOnSave,configFileSpecs:v};function _(n,r,a){t||c.push(e.createCompilerDiagnostic(n,r,a))}}function T(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 S(e){return!!e.options}function L(n,r,a,i,o,s,l){i=e.normalizeSlashes(i);var c=e.getNormalizedAbsolutePath(o||"",i);if(s.indexOf(c)>=0)return l.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([c]).join(" -> "))),{raw:n||f(r,l)};var u=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=C(n.compilerOptions,r,i,a),l=M(n.typeAcquisition||n.typingOptions,r,i,a);if(n.compileOnSave=function(n,t,r){if(e.hasProperty(n,e.compileOnSaveCommandLineOption.name)){var a=O(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return!("boolean"!=typeof a||!a)&&a}}(n,r,i),n.extends)if(e.isString(n.extends)){var c=a?b(a,r):r;o=A(n.extends,t,c,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,typeAcquisition:l,extendedConfigPath:o}}(n,a,i,o,l):function(n,r,a,i,o){var s,l,c,u=x(i),d={onSetValidOptionKeyValueInParent:function(n,t,r){e.Debug.assert("compilerOptions"===n||"typeAcquisition"===n||"typingOptions"===n);var o="compilerOptions"===n?u:"typeAcquisition"===n?s||(s=k(i)):l||(l=k(i));o[t.name]=function n(t,r,a){if(h(a))return;if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(a,function(e){return n(i.element,r,e)}),function(e){return!!e}):a}if(!e.isString(t.type))return t.type.get(e.isString(a)?a.toLowerCase():a);return R(t,r,a)}(t,a,r)},onSetValidOptionKeyValueInRoot:function(t,s,l,u){switch(t){case"extends":var d=i?b(i,a):a;return void(c=A(l,r,d,o,function(t,r){return e.createDiagnosticForNodeInSourceFile(n,u,t,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(n,u,e.Diagnostics.The_files_list_in_config_file_0_is_empty,i||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(t,r,a,i){"excludes"===t&&o.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},m=g(n,o,(void 0===t&&(t=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),t),d);s||(s=l?void 0!==l.enableAutoDiscovery?{enable:l.enableAutoDiscovery,include:l.include,exclude:l.exclude}:l:k(i));return{raw:m,options:u,typeAcquisition:s,extendedConfigPath:c}}(r,a,i,o,l);if(u.extendedConfigPath){s=s.concat([c]);var m=function(n,t,r,a,i,o){var s=d(t,function(e){return r.readFile(e)});n&&(n.extendedSourceFiles||(n.extendedSourceFiles=[])).push(s.fileName);if(s.parseDiagnostics.length)return void o.push.apply(o,s.parseDiagnostics);var l,c=e.getDirectoryPath(t),u=L(void 0,s,r,c,e.getBaseFileName(t),i,o);n&&(l=n.extendedSourceFiles).push.apply(l,s.extendedSourceFiles);if(S(u)){var m=e.convertToRelativePath(c,a,e.identity),p=function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(m,n)},f=function(n){g[n]&&(g[n]=e.map(g[n],p))},g=u.raw;f("include"),f("exclude"),f("files")}return u}(r,u.extendedConfigPath,a,i,s,l);if(m&&S(m)){var v=m.raw,_=u.raw,y=function(e){var n=_[e]||v[e];n&&(_[e]=n)};y("include"),y("exclude"),y("files"),void 0===_.compileOnSave&&(_.compileOnSave=v.compileOnSave),u.options=e.assign({},m.options,u.options)}}return u}function A(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);if(t.fileExists(o)||e.endsWith(o,".json")||(o+=".json",t.fileExists(o)))return o;a.push(i(e.Diagnostics.File_0_does_not_exist,n))}else a.push(i(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,n))}function x(n){return"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function C(n,t,r,a){var i=x(a);return D(e.optionDeclarations,n,t,i,e.Diagnostics.Unknown_compiler_option_0,r),i}function k(n){return{enable:"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function M(n,t,a,i){var o=k(i),s=r(n);return D(e.typeAcquisitionDeclarations,s,t,o,e.Diagnostics.Unknown_type_acquisition_option_0,a),o}function D(n,t,r,a,i,o){if(t){var s=p(n);for(var l in t){var c=s.get(l);c?a[c.name]=O(c,t[l],r,o):o.push(e.createCompilerDiagnostic(i,l))}}}function O(n,t,r,a){if(_(n,t)){var i=n.type;return"list"===i&&e.isArray(t)?function(n,t,r,a){return e.filter(e.map(t,function(e){return O(n.element,e,r,a)}),function(e){return!!e})}(n,t,r,a):e.isString(i)?R(n,r,t):I(n,t,a)}a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,v(n)))}function R(n,t,r){return n.isFilePath&&""===(r=e.normalizePath(e.combinePaths(t,r)))&&(r="."),r}function I(e,n,t){if(!h(n)){var r=n.toLowerCase(),a=e.type.get(r);if(void 0!==a)return a;t.push(i(e))}}function N(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"},e.optionDeclarations=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{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},{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:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({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,esnext:e.ModuleKind.ESNext}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.createMapFromTemplate({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",esnext:"lib.esnext.d.ts",dom:"lib.dom.d.ts","dom.iterable":"lib.dom.iterable.d.ts",webworker:"lib.webworker.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.promise":"lib.es2018.promise.d.ts","es2018.regexp":"lib.es2018.regexp.d.ts","esnext.array":"lib.esnext.array.d.ts","esnext.asynciterable":"lib.esnext.asynciterable.d.ts"})},showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictPropertyInitialization",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"out",type:"string",isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}],e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=r,e.createCompilerDiagnosticForInvalidCustomType=i,e.parseCustomTypeOption=s,e.parseListTypeOption=l,e.parseCommandLine=function(n,t){var r={},a=[],i=[];return o(n),{options:r,fileNames:a,errors:i};function o(n){for(var t=0;t<n.length;){var o=n[t];if(t++,64===o.charCodeAt(0))u(o.slice(1));else if(45===o.charCodeAt(0)){var d=c(o.slice(45===o.charCodeAt(1)?2:1),!0);if(d)if(d.isTSConfigOnly)i.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,d.name));else switch(n[t]||"boolean"===d.type||i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_expects_an_argument,d.name)),d.type){case"number":r[d.name]=parseInt(n[t]),t++;break;case"boolean":var m=n[t];r[d.name]="false"!==m,"false"!==m&&"true"!==m||t++;break;case"string":r[d.name]=n[t]||"",t++;break;case"list":var p=l(d,n[t],i);r[d.name]=p||[],p&&t++;break;default:r[d.name]=s(d,n[t],i),t++}else i.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_compiler_option_0,o))}else a.push(o)}}function u(n){var r=t?t(n):e.sys.readFile(n);if(r){for(var a=[],s=0;;){for(;s<r.length&&r.charCodeAt(s)<=32;)s++;if(s>=r.length)break;var l=s;if(34===r.charCodeAt(l)){for(s++;s<r.length&&34!==r.charCodeAt(s);)s++;s<r.length?(a.push(r.substring(l+1,s)),s++):i.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,n))}else{for(;r.charCodeAt(s)>32;)s++;a.push(r.substring(l,s))}}o(a)}else i.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,n))}},e.readConfigFile=function(n,t){var r=m(n,t);return e.isString(r)?u(n,r):{config:{},error:r}},e.parseConfigFileTextToJson=u,e.readJsonConfigFile=d,e.convertToObject=f,e.generateTSConfig=function(n,t,r){var i=function(n){var t=e.createMap(),r=a().optionNameMap,i=function(a){if(e.hasProperty(n,a)){if(r.has(a)&&r.get(a).category===e.Diagnostics.Command_line_Options)return"continue";var i=n[a],s=r.get(a.toLowerCase());if(s){var l=function e(n){return"string"===n.type||"number"===n.type||"boolean"===n.type?void 0:"list"===n.type?e(n.element):n.type}(s);l?"list"===s.type?t.set(a,i.map(function(e){return o(e,l)})):t.set(a,o(i,l)):t.set(a,i)}}};for(var s in n)i(s);return t}(e.extend(n,e.defaultInitCompilerOptions));return function(){for(var n=e.createMultiMap(),a=0,o=e.optionDeclarations;a<o.length;a++){var c=o[a],u=c.category;void 0!==u&&u!==e.Diagnostics.Command_line_Options&&u!==e.Diagnostics.Advanced_Options&&n.add(e.getLocaleSpecificMessage(u),c)}var d=0,m=0,p=[],f=[];n.forEach(function(n,t){0!==p.length&&(p.push(""),f.push("")),p.push("/* "+t+" */"),f.push("");for(var r=0,a=n;r<a.length;r++){var o=a[r],l=void 0;l=i.has(o.name)?'"'+o.name+'": '+JSON.stringify(i.get(o.name))+((m+=1)===i.size?"":","):'// "'+o.name+'": '+JSON.stringify(s(o))+",",p.push(l),f.push("/* "+(o.description&&e.getLocaleSpecificMessage(o.description)||o.name)+" */"),d=Math.max(l.length,d)}});var g=l(2),v=[];v.push("{"),v.push(g+'"compilerOptions": {');for(var _=0;_<p.length;_++){var y=p[_],h=f[_];v.push(y&&""+g+g+y+(h&&l(d-y.length+2)+h))}if(t.length){v.push(g+"},"),v.push(g+'"files": [');for(var _=0;_<t.length;_++)v.push(""+g+g+JSON.stringify(t[_])+(_===t.length-1?"":","));v.push(g+"]")}else v.push(g+"}");return v.push("}"),v.join(r)}();function o(n,t){return e.forEachEntry(t,function(e,t){if(e===n)return t})}function s(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function l(e){return Array(e+1).join(" ")}},e.parseJsonConfigFileContent=function(e,n,t,r,a,i,o){return E(e,void 0,n,t,r,a,i,o)},e.parseJsonSourceFileConfigFileContent=function(e,n,t,r,a,i,o){return E(void 0,e,n,t,r,a,i,o)},e.setConfigFileInOptions=y,e.isErrorNoInputFiles=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},e.getErrorForNoInputFiles=T,e.convertCompilerOptionsFromJson=function(e,n,t){var r=[];return{options:C(e,n,r,t),errors:r}},e.convertTypeAcquisitionFromJson=function(e,n,t){var r=[];return{options:M(e,n,r,t),errors:r}};var w=/(^|\/)\*\*\/?$/,P=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,F=/\/[^/]*?[*?][^/]*\//,V=/^[^*?]*(?=\/[^/]*[*?])/;function G(n,t,r,a,i){void 0===i&&(i=[]),t=e.normalizePath(t);var o=a.useCaseSensitiveFileNames?e.identity:e.toLowerCase,s=e.createMap(),l=e.createMap(),c=n.filesSpecs,u=n.validatedIncludeSpecs,d=n.validatedExcludeSpecs,m=n.wildcardDirectories,p=e.getSupportedExtensions(r,i);if(c)for(var f=0,g=c;f<g.length;f++){var v=g[f],_=e.getNormalizedAbsolutePath(v,t);s.set(o(_),_)}if(u&&u.length>0)for(var y=0,h=a.readDirectory(t,p,d,u,void 0);y<h.length;y++){if(!B(_=h[y],s,l,p,o)){U(_,l,p,o);var b=o(_);s.has(b)||l.has(b)||l.set(b,_)}}var E=e.arrayFrom(s.values()),T=e.arrayFrom(l.values());return{fileNames:E.concat(T),wildcardDirectories:m,spec:n}}function H(n,t,r,a,i){return n.filter(function(n){var o=function(n,t){if(!t&&w.test(n))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(P.test(n))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}(n,r);return void 0!==o&&t.push(function(n,t){if(a&&a.jsonObject)for(var r=0,o=e.getPropertyAssignment(a.jsonObject,i);r<o.length;r++){var s=o[r];if(e.isArrayLiteralExpression(s.initializer))for(var l=0,c=s.initializer.elements;l<c.length;l++){var u=c[l];if(e.isStringLiteral(u)&&u.text===t)return e.createDiagnosticForNodeInSourceFile(a,u,n,t)}}return e.createCompilerDiagnostic(n,t)}(o,n)),void 0===o})}function K(n,t){var r=V.exec(n);return r?{key:t?r[0]:r[0].toLowerCase(),flags:F.test(n)?1:0}:e.isImplicitGlob(n)?{key:n,flags:1}:void 0}function B(n,t,r,a,i){for(var o=e.getExtensionPriority(n,a),s=e.adjustExtensionPriority(o,a),l=0;l<s;l++){var c=a[l],u=i(e.changeExtension(n,c));if(t.has(u)||r.has(u))return!0}return!1}function U(n,t,r,a){for(var i=e.getExtensionPriority(n,r),o=e.getNextLowestExtensionPriority(i,r);o<r.length;o++){var s=r[o],l=a(e.changeExtension(n,s));t.delete(l)}}function j(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 j(e,r)}):"";default:return e.forEachEntry(t.type,function(e,t){if(e===n)return t})}}e.getFileNamesFromConfigSpecs=G,e.convertCompilerOptionsForTelemetry=function(e){var n={};for(var t in e)if(e.hasOwnProperty(t)){var r=c(t);void 0!==r&&(n[t]=j(e[t],r))}return n}}(u||(u={})),function(e){!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={}));var n=function(){return function(){}}();e.TextChange=n,function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(e.IndentStyle||(e.IndentStyle={})),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.StringLiteral=7]="StringLiteral",e[e.RegExpLiteral=8]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue"}(e.ClassificationType||(e.ClassificationType={}))}(u||(u={})),function(e){function n(n){switch(n.kind){case 148:case 230:case 180:case 151:case 150:case 268:case 269:case 153:case 152:case 154:case 155:case 156:case 232:case 190:case 191:case 267:case 260:return 1;case 147:case 234:case 235:case 165:return 2;case 291:return void 0===n.name?3:2;case 271:case 233:return 3;case 237:return e.isAmbientModule(n)?5:1===e.getModuleInstanceState(n)?5:4;case 236:case 245:case 246:case 241:case 242:case 247:case 248:return 7;case 272:return 5}return 7}function t(n){for(;145===n.parent.kind;)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function r(e,n){var t=a(e);return t&&t.parent&&t.parent.kind===n&&t.parent.expression===t}function a(e){return s(e)?e.parent:e}function i(n){return 71===n.kind&&e.isBreakOrContinueStatement(n.parent)&&n.parent.label===n}function o(n){return 71===n.kind&&e.isLabeledStatement(n.parent)&&n.parent.label===n}function s(e){return e&&e.parent&&183===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(6,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=n,e.getMeaningFromLocation=function(r){return 272===r.kind?1:247===r.parent.kind?7:t(r)?function(n){var t=145===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&241===t.parent.kind?7:4}(r):e.isDeclarationName(r)?n(r.parent):function(n){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind){case 99:return!e.isExpressionNode(n);case 173:return!0}switch(n.parent.kind){case 161:return!0;case 205:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(r)?2:function(e){return function(e){var n=e,t=!0;if(145===n.parent.kind){for(;n.parent&&145===n.parent.kind;)n=n.parent;t=n.right===e}return 161===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(183===n.parent.kind){for(;n.parent&&183===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&205===n.parent.kind&&266===n.parent.parent.kind){var r=n.parent.parent.parent;return 233===r.kind&&108===n.parent.parent.token||234===r.kind&&85===n.parent.parent.token}return!1}(e)}(r)?4:e.isTypeParameterDeclaration(r.parent)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent.parent)),2):1},e.isInRightSideOfInternalImportEqualsDeclaration=t,e.isCallExpressionTarget=function(e){return r(e,185)},e.isNewExpressionTarget=function(e){return r(e,186)},e.climbPastPropertyAccess=a,e.getTargetLabel=function(e,n){for(;e;){if(226===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},e.isJumpStatementTarget=i,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||i(e)},e.isRightSideOfQualifiedName=function(e){return 145===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 237===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(n){return 71===n.kind&&e.isFunctionLike(n.parent)&&n.parent.name===n},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(n){switch(n.parent.kind){case 151:case 150:case 268:case 271:case 153:case 152:case 155:case 156:case 237:return e.getNameOfDeclaration(n.parent)===n;case 184:return n.parent.argumentExpression===n;case 146:return!0;case 177:return 175===n.parent.parent.kind}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n},e.getContainerNode=function(e){for(291===e.kind&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 272:case 153:case 152:case 232:case 190:case 155:case 156:case 233:case 234:case 236:case 237:return e}}},e.getNodeKind=function n(t){switch(t.kind){case 272:return e.isExternalModule(t)?"module":"script";case 237:return"module";case 233:case 203:return"class";case 234:return"interface";case 235:return"type";case 236:return"enum";case 230:return o(t);case 180:return o(e.getRootDeclaration(t));case 191:case 232:case 190:return"function";case 155:return"getter";case 156:return"setter";case 153:case 152:return"method";case 151:case 150:return"property";case 159:return"index";case 158:return"construct";case 157:return"call";case 154:return"constructor";case 147:return"type parameter";case 271:return"enum member";case 148:return e.hasModifier(t,92)?"property":"parameter";case 241:case 246:case 243:case 250:case 244:return"alias";case 291:return"type";case 198:var r=e.getSpecialPropertyAssignmentKind(t),a=t.right;switch(r){case 0:return"";case 1:case 2:var i=n(a);return""===i?"const":i;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertTypeIsNever(r),""}default:return""}function o(n){return e.isConst(n)?"const":e.isLet(n)?"let":"var"}},e.isThis=function(n){switch(n.kind){case 99:return!0;case 71:return e.identifierIsThisKeyword(n)&&148===n.parent.kind;default:return!1}};var l=/^\/\/\/\s*</;function c(e,n){return u(e.pos,e.end,n)}function u(e,n,t){return e<=t.pos&&n>=t.end}function d(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function m(n,t,r){var a=n.getChildren(r);if(a.length){var i=e.lastOrUndefined(a);if(i.kind===t)return!0;if(25===i.kind&&1!==a.length)return a[a.length-2].kind===t}return!1}function p(e,n,t){return!!f(e,n,t)}function f(n,t,r){return e.find(n.getChildren(r),function(e){return e.kind===t})}function g(n){var t=e.find(n.parent.getChildren(),function(t){return e.isSyntaxList(t)&&c(t,n)});return e.Debug.assert(!t||e.contains(t.getChildren(),n)),t}function v(e,n,t,r){return y(e,n,!1,r,!1,t)}function _(e,n,t,r){return y(e,n,!0,void 0,r,t)}function y(n,t,r,a,i,o){var s=n;e:for(;;){if(e.isToken(s))return s;for(var l=0,c=s.getChildren();l<c.length;l++){var u=c[l];if(o||!e.isJSDocNode(u)){if((r?u.getFullStart():u.getStart(n,o))>t)break;var d=u.getEnd();if(t<d||t===d&&(1===u.kind||i)){s=u;continue e}if(a&&d===t){var m=h(t,n,u);if(m&&a(m))return m}}}return s}}function h(n,t,r,a){var i=function i(o){if(b(o))return o;var s=o.getChildren(t);for(var l=0;l<s.length;l++){var c=s[l];if(n<c.end){var u=c.getStart(t,a),d=u>=n||!x(c)||S(c);if(d){var m=T(s,l);return m&&E(m,t)}return i(c)}}e.Debug.assert(void 0!==r||272===o.kind||e.isJSDocCommentContainingNode(o));if(s.length){var m=T(s,s.length);return m&&E(m,t)}}(r||t);return e.Debug.assert(!(i&&S(i))),i}function b(n){return e.isToken(n)&&!S(n)}function E(e,n){if(b(e))return e;var t=e.getChildren(n),r=T(t,t.length);return r&&E(r,n)}function T(n,t){for(var r=t-1;r>=0;r--){if(S(n[r]))e.Debug.assert(r>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(x(n[r]))return n[r]}}function S(n){return e.isJsxText(n)&&n.containsOnlyWhiteSpaces}function L(e,n,t){for(var r=e.kind,a=0;;){if(!(e=h(e.getFullStart(),t)))return;if(e.kind===n){if(0===a)return e;a--}else e.kind===r&&a++}}function A(n,t,r,a){return!!e.formatting.getRangeOfEnclosingComment(n,t,!1,void 0,r,a)}function x(e){return 0!==e.getWidth()}function C(n){return 71===n||e.isKeyword(n)}function k(e,n){return{span:e,newText:n}}e.getLineStartPositionForPosition=function(n,t){return e.getLineStarts(t)[t.getLineAndCharacterOfPosition(n).line]},e.rangeContainsRange=c,e.startEndContainsRange=u,e.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},e.rangeOverlapsWithStartEnd=function(e,n,t){return d(e.pos,e.end,n,t)},e.startEndOverlapsWithStartEnd=d,e.positionBelongsToNode=function(n,t,r){return e.Debug.assert(n.pos<=t),t<n.end||!function n(t,r){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 233:case 234:case 236:case 182:case 178:case 165:case 211:case 238:case 239:case 245:case 249:return m(t,18,r);case 267:return n(t.block,r);case 186:if(!t.arguments)return!0;case 185:case 189:case 172:return m(t,20,r);case 162:case 163:return n(t.type,r);case 154:case 155:case 156:case 232:case 190:case 153:case 152:case 158:case 157:case 191:return t.body?n(t.body,r):t.type?n(t.type,r):p(t,20,r);case 237:return t.body&&n(t.body,r);case 215:return t.elseStatement?n(t.elseStatement,r):n(t.thenStatement,r);case 214:return n(t.expression,r)||p(t,25,r);case 181:case 179:case 184:case 146:case 167:return m(t,22,r);case 159:return t.type?n(t.type,r):p(t,22,r);case 264:case 265:return!1;case 218:case 219:case 220:case 217:return n(t.statement,r);case 216:return p(t,106,r)?m(t,20,r):n(t.statement,r);case 164:return n(t.exprName,r);case 193:case 192:case 194:case 201:case 202:var a=t;return n(a.expression,r);case 187:return n(t.template,r);case 200:var i=e.lastOrUndefined(t.templateSpans);return n(i,r);case 209:return e.nodeIsPresent(t.literal);case 248:case 242:return e.nodeIsPresent(t.moduleSpecifier);case 196:return n(t.operand,r);case 198:return n(t.right,r);case 199:return n(t.whenFalse,r);default:return!0}}(n,r)},e.findListItemInfo=function(n){var t=g(n);if(t){var r=t.getChildren();return{listItemIndex:e.indexOfNode(r,n),list:t}}},e.hasChildOfKind=p,e.findChildOfKind=f,e.findContainingList=g,e.getTouchingWord=function(e,n,t){return v(e,n,t,function(e){return C(e.kind)})},e.getTouchingPropertyName=function(e,n,t){return v(e,n,t,function(e){return 9===(n=e.kind)||8===n||C(n);var n})},e.getTouchingToken=v,e.getTokenAtPosition=_,e.findTokenOnLeftOfPosition=function(n,t){var r=_(n,t,!1);return e.isToken(r)&&t>r.getStart(n)&&t<r.getEnd()?r:h(t,n)},e.findNextToken=function(n,t){return function t(r){if(e.isToken(r)&&r.pos===n.end)return r;for(var a=r.getChildren(),i=0,o=a;i<o.length;i++){var s=o[i],l=s.pos<=n.pos&&s.end>n.end||s.pos===n.end;if(l&&x(s))return t(s)}}(t)},e.findPrecedingToken=h,e.isInString=function(n,t,r){if(void 0===r&&(r=h(t,n)),r&&e.isStringTextContainingNode(r)){var a=r.getStart(),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=_(e,n,!1);return!!t&&(10===t.kind||27===t.kind&&10===t.parent.kind||27===t.kind&&263===t.parent.kind||!(!t||18!==t.kind||263!==t.parent.kind)||27===t.kind&&256===t.parent.kind)},e.isInTemplateString=function(n,t){var r=_(n,t,!1);return e.isTemplateLiteralKind(r.kind)&&t>r.getStart(n)},e.findPrecedingMatchingToken=L,e.isPossiblyTypeArgumentPosition=function(n,t){for(var r=0;n;){switch(n.kind){case 27:var a=(n=h(n.getFullStart(),t))&&e.isIdentifier(n);if(!r||!a)return a;r--;break;case 47:r=3;break;case 46:r=2;break;case 29:r++;break;case 18:if(!(n=L(n,17,t)))return!1;break;case 20:if(!(n=L(n,19,t)))return!1;break;case 22:if(!(n=L(n,21,t)))return!1;break;case 26:case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(e.isTypeNode(n))break;return!1}n=h(n.getFullStart(),t)}return!1},e.isInComment=A,e.hasDocComment=function(n,t){var r=_(n,t,!1),a=e.getLeadingCommentRanges(n.text,r.pos);return e.forEach(a,function(e){var t=n.text;return t.length>=e.pos+3&&"/"===t[e.pos]&&"*"===t[e.pos+1]&&"*"===t[e.pos+2]})},e.getNodeModifiers=function(n){var t=e.getCombinedModifierFlags(n),r=[];return 8&t&&r.push("private"),16&t&&r.push("protected"),4&t&&r.push("public"),32&t&&r.push("static"),128&t&&r.push("abstract"),1&t&&r.push("export"),2097152&n.flags&&r.push("declare"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 161===n.kind||185===n.kind?n.typeArguments:e.isFunctionLike(n)||233===n.kind||234===n.kind?n.typeParameters:void 0},e.isWord=C,e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(n){return!(9!==n&&12!==n&&!e.isTemplateLiteralKind(n))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(n,t){return e.isTemplateLiteralKind(n.kind)&&n.getStart()<t&&t<n.getEnd()||!!n.isUnterminated&&t===n.getEnd()},e.isAccessibilityModifier=function(e){switch(e){case 114:case 112:case 113: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(181===n.kind||182===n.kind){if(198===n.parent.kind&&n.parent.left===n&&58===n.parent.operatorToken.kind)return!0;if(220===n.parent.kind&&n.parent.initializer===n)return!0;if(e(268===n.parent.kind?n.parent.parent:n.parent))return!0}return!1},e.hasTrailingDirectorySeparator=function(e){var n=e.charAt(e.length-1);return"/"===n||"\\"===n},e.isInReferenceComment=function(e,n){return A(e,n,void 0,function(n){var t=e.text.substring(n.pos,n.end);return l.test(t)})},e.isInNonReferenceComment=function(e,n){return A(e,n,void 0,function(n){var t=e.text.substring(n.pos,n.end);return!l.test(t)})},e.createTextSpanFromNode=function(n,t){return e.createTextSpanFromBounds(n.getStart(t),n.getEnd())},e.createTextSpanFromRange=function(n){return e.createTextSpanFromBounds(n.pos,n.end)},e.createTextChangeFromStartLength=function(n,t,r){return k(e.createTextSpan(n,t),r)},e.createTextChange=k,e.typeKeywords=[119,122,128,131,95,134,135,137,138,105,140,141],e.isTypeKeyword=function(n){return e.contains(e.typeKeywords,n)},e.isExternalModuleSymbol=function(n){return e.Debug.assert(!!(1536&n.flags)),34===n.name.charCodeAt(0)},e.nodeSeenTracker=function(){var n=[];return function(t){var r=e.getNodeId(t);return!n[r]&&(n[r]=!0)}},e.addToSeen=function(e,n){return n=String(n),!e.has(n)&&(e.set(n,!0),!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}}(u||(u={})),function(e){function n(e){return e.declarations&&e.declarations.length>0&&148===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=n;var t=function(){var n,t,i;u();var o=function(n){return c(n,e.SymbolDisplayPartKind.text)};return{displayParts:function(){return 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)},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){s(),n.push(r(e,t))},writeLine:function(){n.push(l()),t=!0},write:o,writeTextOfNode:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return i},increaseIndent:function(){i++},decreaseIndent:function(){i--},clear:u,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(t){var r=e.getIndentString(i);r&&n.push(a(r,e.SymbolDisplayPartKind.space)),t=!1}}function c(e,t){s(),n.push(a(e,t))}function u(){n=[],t=!0,i=0}}();function r(t,r){return a(t,function(t){var r=t.flags;if(3&r)return n(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&r)return e.SymbolDisplayPartKind.propertyName;if(32768&r)return e.SymbolDisplayPartKind.propertyName;if(65536&r)return e.SymbolDisplayPartKind.propertyName;if(8&r)return e.SymbolDisplayPartKind.enumMemberName;if(16&r)return e.SymbolDisplayPartKind.functionName;if(32&r)return e.SymbolDisplayPartKind.className;if(64&r)return e.SymbolDisplayPartKind.interfaceName;if(384&r)return e.SymbolDisplayPartKind.enumName;if(1536&r)return e.SymbolDisplayPartKind.moduleName;if(8192&r)return e.SymbolDisplayPartKind.methodName;if(262144&r)return e.SymbolDisplayPartKind.typeParameterName;if(524288&r)return e.SymbolDisplayPartKind.aliasName;if(2097152&r)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(r))}function a(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function i(n){return a(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function o(n){return a(n,e.SymbolDisplayPartKind.text)}e.symbolPart=r,e.displayPart=a,e.spacePart=function(){return a(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=i,e.punctuationPart=function(n){return a(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return a(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?o(n):i(t)},e.textPart=o;var s="\r\n";function l(){return a("\n",e.SymbolDisplayPartKind.lineBreak)}function c(e){try{return e(t),t.displayParts()}finally{t.clear()}}function u(n){return e.isSingleOrDoubleQuote(n.charCodeAt(0))}function d(n,t){return e.ensureScriptKind(n,t&&t.getScriptKind&&t.getScriptKind(n))}function m(n){if(void 0!==n){var t=e.visitEachChild(n,m,e.nullTransformationContext);if(t===n){var r=e.getSynthesizedClone(n);return e.isStringLiteral(r)?r.textSourceNode=n:e.isNumericLiteral(r)&&(r.numericLiteralFlags=n.numericLiteralFlags),r.pos=n.pos,r.end=n.end,r}return t.parent=void 0,t}}function p(e){return e.forEachChild(function(e){return e})}function f(n){var t;return n.forEachChild(function(e){t=e},function(n){n.length&&(t=e.last(n))}),t}e.getNewLineOrDefaultFromHost=function(e,n){return n&&n.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=l,e.mapToDisplayParts=c,e.typeToDisplayParts=function(e,n,t,r){return c(function(a){e.writeType(n,t,1024|r,a)})},e.symbolToDisplayParts=function(e,n,t,r,a){return c(function(i){e.writeSymbol(n,t,r,8|a,i)})},e.signatureToDisplayParts=function(e,n,t,r){return r|=25632,c(function(a){e.writeSignature(n,t,r,void 0,a)})},e.isImportOrExportSpecifierName=function(e){return e.parent&&(246===e.parent.kind||250===e.parent.kind)&&e.parent.propertyName===e},e.stripQuotes=function(e){var n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&u(e)?e.substring(1,n-1):e},e.startsWithQuote=u,e.scriptKindIs=function(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var i=d(n,t);return e.forEach(r,function(e){return e===i})},e.getScriptKind=d,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.getSynthesizedDeepClone=m,e.getSynthesizedDeepClones=function(n){return n&&e.createNodeArray(n.map(m),n.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=function(n){function t(n,r,a){e.addEmitFlags(n,r);var i=a(n);i&&t(i,r,a)}e.Debug.assertDefined(n),t(n,512,p),t(n,1024,f)}}(u||(u={})),function(e){e.createClassifier=function(){var o=e.createScanner(6,!1);function s(a,s,l){var c=0,u=0,d=[],m=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),p=m.prefix,f=m.pushTemplate;a=p+a;var g=p.length;f&&d.push(14),o.setText(a);var v=0,_=[],y=0;do{c=o.scan(),e.isTrivia(c)||(E(),u=c);var h=o.getTextPos();if(r(o.getTokenPos(),h,g,i(c),_),h>=a.length){var b=t(o,c,e.lastOrUndefined(d));void 0!==b&&(v=b)}}while(1!==c);function E(){switch(c){case 41:case 63:n[u]||12!==o.reScanSlashToken()||(c=12);break;case 27:71===u&&y++;break;case 29:y>0&&y--;break;case 119:case 137:case 134:case 122:case 138:y>0&&!l&&(c=71);break;case 14:d.push(c);break;case 17:d.length>0&&d.push(c);break;case 18:if(d.length>0){var t=e.lastOrUndefined(d);14===t?16===(c=o.reScanTemplateToken())?d.pop():e.Debug.assertEqual(c,15,"Should have been a template middle."):(e.Debug.assertEqual(t,17,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(c))break;23===u?c=71:e.isKeyword(u)&&e.isKeyword(c)&&!function(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 125:case 136:case 123:case 115:return!0;default:return!1}}(u,c)&&(c=71)}}return{endOfLineState:v,spans:_}}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 l=i[s],c=i[s+1],u=i[s+2];if(o>=0){var d=l-o;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:c,classification:a(u)}),o=l+c}var m=t.length-o;return m>0&&r.push({length:m,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:n.endOfLineState}}(s(n,t,r),n)},getEncodedLexicalClassifications:s}};var n=e.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function t(n,t,r){switch(t){case 9: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 16:return 5;case 13:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 14===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 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}}function i(n){if(e.isKeyword(n))return 3;if(function(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}(n)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(n))return 5;if(n>=17&&n<=70)return 10;switch(n){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(n)?6:2}}function o(e,n){switch(n){case 237:case 233:case 234:case 232:e.throwIfCancellationRequested()}}function s(n,t,r,a,i){var s=[];return r.forEachChild(function l(c){if(c&&e.textSpanIntersectsWith(i,c.pos,c.getFullWidth())){if(o(t,c.kind),e.isIdentifier(c)&&!e.nodeIsMissing(c)&&a.has(c.escapedText)){var u=n.getSymbolAtLocation(c),d=u&&function n(t,r,a){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(n){return e.some(n.declarations,function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)})}(t)?14:void 0:2097152&i?n(a.getAliasedSymbol(t),r,a):2&r?64&i?13:262144&i?15:void 0:void 0}(u,e.getMeaningFromLocation(c),n);d&&function(e,n,t){s.push(e),s.push(n-e),s.push(t)}(c.getStart(r),c.getEnd(),d)}c.forEachChild(l)}}),{spans:s,endOfLineState:0}}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";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"}}function c(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 u(n,t,r){var a=r.start,i=r.length,s=e.createScanner(6,!1,t.languageVariant,t.text),l=e.createScanner(6,!1,t.languageVariant,t.text),c=[];return y(t),{spans:c,endOfLineState:0};function u(e,n,t){c.push(e),c.push(n),c.push(t)}function d(n,r,a,i){if(3===r){var o=e.parseIsolatedJSDocComment(t.text,a,i);if(o&&o.jsDoc)return o.jsDoc.parent=n,void function(e){var n=e.pos;if(e.tags)for(var t=0,r=e.tags;t<r.length;t++){var a=r[t];switch(a.pos!==n&&m(n,a.pos-n),u(a.atToken.pos,a.atToken.end-a.atToken.pos,10),u(a.tagName.pos,a.tagName.end-a.tagName.pos,18),n=a.tagName.end,a.kind){case 287:i(a);break;case 290:p(a);break;case 289:case 288:y(a.typeExpression)}n=a.end}n!==e.end&&m(n,e.end-n);return;function i(e){e.isNameFirst&&(m(n,e.name.pos-n),u(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end),e.typeExpression&&(m(n,e.typeExpression.pos-n),y(e.typeExpression),n=e.typeExpression.end),e.isNameFirst||(m(n,e.name.pos-n),u(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end)}}(o.jsDoc)}m(a,i)}function m(e,n){u(e,n,1)}function p(e){for(var n=0,t=e.getChildren();n<t.length;n++){y(t[n])}}function f(n,t,r){var a;for(a=t;a<r&&!e.isLineBreak(n.charCodeAt(a));a++);for(u(t,a-t,1),l.setTextPos(a);l.getTextPos()<r;)g()}function g(){var e=l.getTextPos(),n=l.scan(),t=l.getTextPos(),r=_(n);r&&u(e,t-e,r)}function v(n){if(e.isJSDoc(n))return!0;if(e.nodeIsMissing(n))return!0;var r=function(e){switch(e.parent&&e.parent.kind){case 255:if(e.parent.tagName===e)return 19;break;case 256:if(e.parent.tagName===e)return 20;break;case 254:if(e.parent.tagName===e)return 21;break;case 260:if(e.parent.name===e)return 22}return}(n);if(!e.isToken(n)&&10!==n.kind&&void 0===r)return!1;var a=10===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 l=t.text,c=l.charCodeAt(r);if(60===c||62===c){u(r,o,1);continue}e.Debug.assert(124===c||61===c),f(l,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||_(n.kind,n);o&&u(a,i,o)}return!0}function _(n,t){if(e.isKeyword(n))return 3;if((27===n||29===n)&&t&&e.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(e.isPunctuation(n)){if(t){if(58===n&&(230===t.parent.kind||151===t.parent.kind||148===t.parent.kind||260===t.parent.kind))return 5;if(198===t.parent.kind||196===t.parent.kind||197===t.parent.kind||199===t.parent.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 260===t.parent.kind?24:6;if(12===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(10===n)return 23;if(71===n){if(t)switch(t.parent.kind){case 233:return t.parent.name===t?11:void 0;case 147:return t.parent.name===t?15:void 0;case 234:return t.parent.name===t?13:void 0;case 236:return t.parent.name===t?12:void 0;case 237:return t.parent.name===t?14:void 0;case 148:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function y(r){if(r&&e.decodedTextSpanIntersectsWith(a,i,r.pos,r.getFullWidth())){o(n,r.kind);for(var s=0,l=r.getChildren(t);s<l.length;s++){var c=l[s];v(c)||y(c)}}}}e.getSemanticClassifications=function(e,n,t,r,a){return c(s(e,n,t,r,a))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,n,t){return c(u(e,n,t))},e.getEncodedSyntacticClassifications=u}(u||(u={})),function(e){!function(n){!function(n){function t(e,n,t){return{name:e,kind:n,span:t}}function r(n,r,a,i,o,s,c,u){void 0===u&&(u=[]),void 0===n&&(n=""),n=e.normalizeSlashes(n),""===(n=e.getDirectoryPath(n))&&(n="."+e.directorySeparator),n=e.ensureTrailingDirectorySeparator(n);var f=l(e.isRootedDiskPath(n)?n:e.combinePaths(r,n)),g=e.getDirectoryPath(f),v=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames());if(p(s,g)){var _=m(s,g,a,void 0,["./*"]);if(_){for(var y=e.createMap(),h=0,b=_;h<b.length;h++){var E=b[h];if(E=e.normalizePath(E),!c||0!==e.comparePaths(E,c,r,v)){var T=i?e.getBaseFileName(E):e.removeFileExtension(e.getBaseFileName(E));y.has(T)||y.set(T,!0)}}e.forEachKey(y,function(e){u.push(t(e,"script",o))})}var S=d(s,g);if(S)for(var L=0,A=S;L<A.length;L++){var x=A[L],C=e.getBaseFileName(e.normalizePath(x));u.push(t(C,"directory",o))}}return u}function a(n,t,r,a,i,o){if(!e.endsWith(n,"*"))return!e.stringContains(n,"*")&&e.startsWith(n,r)?[{name:n,kind:"directory"}]:e.emptyArray;var s=n.slice(0,n.length-1);if(!e.startsWith(r,s))return[{name:s,kind:"directory"}];var c=r.slice(s.length);return e.flatMap(t,function(n){return function(n,t,r,a,i){if(!i.readDirectory)return;var o=e.hasZeroOrOneAsteriskCharacter(r)?e.tryParsePattern(r):void 0;if(!o)return;var s=l(o.prefix),c=e.getDirectoryPath(s),u=e.getBaseFileName(s),p=e.stringContains(n,e.directorySeparator),f=p?e.combinePaths(c,u+e.getDirectoryPath(n)):c,g=e.normalizePath(o.suffix),v=e.normalizePath(e.combinePaths(t,f)),_=p?v:e.ensureTrailingDirectorySeparator(v)+u,y=m(i,v,a,void 0,[g?"**/*":"./*"]).map(function(e){return{name:e,kind:"script"}}),h=d(i,v).map(function(n){return e.combinePaths(v,n)}).map(function(e){return{name:e,kind:"directory"}});return e.mapDefined(e.concatenate(y,h),function(n){var t,r,a,i,o=n.name,s=n.kind,l=e.normalizePath(o),c=(t=l,r=_,a=g,e.startsWith(t,r)&&e.endsWith(t,a)?t.slice(r.length,t.length-a.length):void 0);return void 0!==c?{name:(i=e.removeFileExtension(c),i[0]===e.directorySeparator?i.slice(1):i),kind:s}:void 0})}(c,a,n,i,o)})}function i(n,r,a,i,s){void 0===s&&(s=[]);var l=e.createMap();if(r.types)for(var c=0,u=r.types;c<u.length;c++){var m=u[c];E(e.getUnmangledNameForScopedPackage(m))}else if(n.getDirectories){var f=void 0;try{f=e.getEffectiveTypeRoots(r,n)}catch(e){}if(f)for(var g=0,v=f;g<v.length;g++){b(v[g])}for(var _=0,y=o(a,n);_<y.length;_++){var h=y[_];b(e.combinePaths(e.getDirectoryPath(h),"node_modules/@types"))}}return s;function b(t){if(e.Debug.assert(!!n.getDirectories),p(n,t)){var r=d(n,t);if(r)for(var a=0,i=r;a<i.length;a++){var o=i[a];o=e.normalizePath(o);var s=e.getBaseFileName(o);E(e.getUnmangledNameForScopedPackage(s))}}}function E(e){l.has(e)||(s.push(t(e,"external module name",i)),l.set(e,!0))}}function o(n,t){var r=[];return e.forEachAncestorDirectory(n,function(n){var a=e.findConfigFile(n,function(e){return function(e,n){return f(e,e.fileExists,n)}(t,e)},"package.json");if(!a)return!0;r.push(a)}),r}function s(n,t){var r=n.lastIndexOf(e.directorySeparator),a=-1!==r?r+1:0;return{start:t+a,length:n.length-a}}function l(n){if("./"===e.normalizeSlashes(n))return"";var t=e.normalizePath(n);return e.hasTrailingDirectorySeparator(n)?e.ensureTrailingDirectorySeparator(t):t}n.getStringLiteralCompletionsFromModuleNames=function(n,l,c,d,p){var g=e.normalizeSlashes(l.text),v=l.getSourceFile().path,_=e.getDirectoryPath(v),y=s(l.text,l.getStart(n)+1);if(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}(g)||e.isRootedDiskPath(g)){var h=e.getSupportedExtensions(c);return c.rootDirs?function(n,t,a,i,o,s,l,c,u){for(var d=l.project||c.getCurrentDirectory(),m=!(c.useCaseSensitiveFileNames&&c.useCaseSensitiveFileNames()),p=[],f=0,g=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(n.map(function(n){return e.combinePaths(n,i)}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,d,a,m);f<g.length;f++){var v=g[f];r(t,v,i,o,s,c,u,p)}return p}(c.rootDirs,g,_,h,!1,y,c,d,v):r(g,_,h,!1,y,d,v)}return function(n,s,l,c,d,p){var g=c.baseUrl,v=c.paths,_=[],y=e.getSupportedExtensions(c);if(g){var h=c.project||d.getCurrentDirectory(),b=e.isRootedDiskPath(g)?g:e.combinePaths(h,g);for(var E in r(n,e.normalizePath(b),y,!1,l,d,void 0,_),v){var T=v[E];if(v.hasOwnProperty(E)&&T)for(var S=function(e,n){_.some(function(n){return n.name===e})||_.push(t(e,n,l))},L=0,A=a(E,T,n,g,y,d);L<A.length;L++){var x=A[L],C=x.name,k=x.kind;S(C,k)}}}c.moduleResolution===e.ModuleResolutionKind.NodeJs&&e.forEachAncestorDirectory(s,function(t){var a=e.combinePaths(t,"node_modules");d.directoryExists(a)&&r(n,a,y,!1,l,d,void 0,_)}),i(d,c,s,l,_);for(var M=0,D=function(n,t,r,a,i){var s=e.stringContains(n,e.directorySeparator),l=s?n.substr(0,n.lastIndexOf(e.directorySeparator)):void 0,c=e.map(a.getAmbientModules(),function(n){return e.stripQuotes(n.name)}),d=e.filter(c,function(t){return e.startsWith(t,n)});if(s){var p=e.ensureTrailingDirectorySeparator(l);d=e.map(d,function(n){return e.removePrefix(n,p)})}if(!r.moduleResolution||r.moduleResolution===e.ModuleResolutionKind.NodeJs)for(var g=0,v=function(n,t){var r=[];if(n.readFile&&n.fileExists)for(var a=0,i=o(t,n);a<i.length;a++){var s=i[a],l=b(s);if(!l)return;for(var c=e.combinePaths(e.getDirectoryPath(s),"node_modules"),d=[],m=0,p=u;m<p.length;m++){var g=p[m];E(l[g],d)}for(var v=0,_=d;v<_.length;v++){var y=_[v],h=e.combinePaths(c,y);r.push({moduleName:y,moduleDir:h})}}return r;function b(e){try{var t=function(e,n){return f(e,e.readFile,n)}(n,e);return t?JSON.parse(t):void 0}catch(e){return}}function E(n,t){if(n)for(var r in n)n.hasOwnProperty(r)&&!e.startsWith(r,"@types/")&&t.push(r)}}(i,t);g<v.length;g++){var _=v[g];if(s){if(e.startsWith(_.moduleName,l)){var y=m(i,_.moduleDir,e.supportedTypeScriptExtensions,void 0,["./*"]);if(y)for(var h=0,b=y;h<b.length;h++){var E=b[h];E=e.normalizePath(E);var T=e.removeFileExtension(e.getBaseFileName(E));d.push(T)}}}else d.push(_.moduleName)}return e.deduplicate(d,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,s,c,p,d);M<D.length;M++){var O=D[M];_.push(t(O,"external module name",l))}return _}(g,_,y,c,d,p)},n.getTripleSlashReferenceCompletion=function(n,t,a,o){var l=e.getTokenAtPosition(n,t,!1),u=e.getLeadingCommentRanges(n.text,l.pos),d=u&&e.find(u,function(e){return t>=e.pos&&t<=e.end});if(d){var m=n.text.slice(d.pos,t),p=c.exec(m);if(p){var f=p[1],g=p[2],v=p[3],_=e.getDirectoryPath(n.path);switch(g){case"path":var y=s(v,d.pos+f.length);return r(v,_,e.getSupportedExtensions(a),!0,y,o,n.path);case"types":return i(o,a,_,e.createTextSpan(d.pos+f.length,p[0].length-f.length));default:return}}}};var c=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,u=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function d(e,n){return f(e,e.getDirectories,n)||[]}function m(n,t,r,a,i){return f(n,n.readDirectory,t,r,a,i)||e.emptyArray}function p(n,t){try{return e.directoryProbablyExists(t,n)}catch(e){}}function f(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];try{return n&&n.apply(e,t)}catch(e){}}}(n.PathCompletions||(n.PathCompletions={}))}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(n){var t,r,a,i;function o(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){return{name:e.name,kind:e.kind,kindModifiers:"",sortText:"0",replacementSpan:e.span}})}}function s(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function l(n,t,r,a,i,o,s,l,m,p,f){var g=b(n,i,s,o);if(g){var v,_,y=g.name,h=g.needsConvertPropertyAccess;if(f){if(s&&"this-type"===s.type)v=h?"this["+c(y)+"]":"this."+y;else if(h){v="["+c(y)+"]";var E=e.findChildOfKind(m,23,r),T=e.startsWith(y,m.name.text)?m.name.end:E.end;_=e.createTextSpanFromBounds(E.getStart(r),T)}p&&(void 0===v&&(v=y),v="{"+v+"}","boolean"!=typeof p&&(_=e.createTextSpanFromNode(p,r)))}if(void 0===v||f)return{name:y,kind:e.SymbolDisplay.getSymbolKind(a,n,t),kindModifiers:e.SymbolDisplay.getSymbolModifiers(n),sortText:"0",source:d(s),hasAction:u(!!s&&"export"===s.type),isRecommended:u(function(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}(n,l,a)),insertText:v,replacementSpan:_}}}function c(e){return JSON.stringify(e)}function u(e){return!!e||void 0}function d(n){return n&&"export"===n.type?e.stripQuotes(n.moduleSymbol.name):void 0}function m(n,t,r,a,i,o,s,c,u,d,m,p,f){for(var g=e.timestamp(),v=e.createMap(),_=0,y=n;_<y.length;_++){var h=y[_],b=f?f[e.getSymbolId(h)]:void 0,E=l(h,r,a,i,o,c,b,p,d,m,u);if(E){var T=E.name;v.has(T)||(b||void 0===h.parent&&!e.some(h.declarations,function(e){return e.getSourceFile()===r.getSourceFile()})||v.set(T,!0),t.push(E))}}return s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-g)),v}function p(n,t,r){return void 0===r&&(r=e.createMap()),n&&32768&n.flags&&(n=n.getConstraint()),n&&131072&n.flags?e.flatMap(n.types,function(e){return p(e,t,r)}):n&&32&n.flags&&!(256&n.flags)&&e.addToSeen(r,n.value)?[n]:e.emptyArray}function f(n,t,r,a,i,o,s){var l=o.name,c=o.source,u=h(n,t,a,i,s,{includeExternalModuleExports:!0,includeInsertTextCompletions:!0},r.target);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var m=u.symbols,p=u.location,f=u.completionKind,g=u.symbolToOriginInfoMap,v=u.previousToken,_=u.isJsxInitializer;return e.firstDefined(m,function(n){var t=g[e.getSymbolId(n)],a=b(n,r.target,t,f);return a&&a.name===l&&d(t)===c?{type:"symbol",symbol:n,location:p,symbolToOriginInfoMap:g,previousToken:v,isJsxInitializer:_}:void 0})||{type:"none"}}function g(n,t,r){return t&&"export"===t.type&&t.isDefaultExport&&"default"===n.escapedName?e.firstDefined(n.declarations,function(n){return e.isExportAssignment(n)&&e.isIdentifier(n.expression)?n.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(t.moduleSymbol,r):n.name}function v(n,t,r,a){var i=function(n,t,r,a){var i=n.parent;switch(n.kind){case 71:return _(n,a);case 58:switch(i.kind){case 230:return a.getContextualType(i.initializer);case 198:return a.getTypeAtLocation(i.left);case 260:return a.getContextualTypeForJsxAttribute(i);default:return}case 94:return a.getContextualType(i);case 73:return y(e.cast(i,e.isCaseClause),a);case 17:return e.isJsxExpression(i)&&253!==i.parent.kind?a.getContextualTypeForJsxAttribute(i.parent):void 0;default:var o=e.SignatureHelp.getImmediatelyContainingArgumentInfo(n,t,r);return o?a.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(26===n.kind?1:0)):x(n.kind)&&e.isBinaryExpression(i)&&x(i.operatorToken.kind)?a.getTypeAtLocation(i.left):a.getContextualType(n)}}(n,t,r,a),o=i&&i.symbol;return o&&(384&o.flags||32&o.flags&&!e.isAbstractConstructorSymbol(o))?function n(t,r,a){var i=a.getAccessibleSymbolChain(t,r,67108863,!1);if(i)return e.first(i);return t.parent&&(function(e){return e.declarations.some(function(e){return 272===e.kind})}(t.parent)?t:n(t.parent,r,a))}(o,n,a):void 0}function _(e,n){var t=e.parent;switch(t.kind){case 186:return n.getContextualType(t);case 198:var r=t,a=r.left,i=r.operatorToken,o=r.right;return x(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 264:return t.expression===e?y(t,n):void 0;default:return n.getContextualType(e)}}function y(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function h(n,t,r,a,i,o,s){var l=e.timestamp(),c=e.getTokenAtPosition(r,a,!1);t("getCompletionData: Get current token: "+(e.timestamp()-l)),l=e.timestamp();var u=e.isInComment(r,a,c);t("getCompletionData: Is inside comment: "+(e.timestamp()-l));var d=!1,m=!1;if(u){if(e.hasDocComment(r,a)){if(64===r.text.charCodeAt(a-1))return{kind:1};var p=e.getLineStartPositionForPosition(a,r);if(!r.text.substring(p,a).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var f=function(n,t){var r=function(n){if(!e.isToken(n))return n;switch(n.kind){case 104:case 110:case 76:return n.parent.parent;default:return n.parent}}(n).jsDoc;if(!r)return;for(var a=0,i=r;a<i.length;a++){var o=i[a],s=o.pos,l=o.end,c=o.tags;if(!(!c||t<s||t>l))for(var u=c.length-1;u>=0;u--){var d=c[u];if(t>=d.pos)return d}}}(c,a);if(f){if(f.tagName.pos<=a&&a<=f.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 287:case 292:case 288:case 289:case 291:return!0}}(f)&&f.typeExpression&&274===f.typeExpression.kind&&((c=e.getTokenAtPosition(r,a,!0))&&(e.isDeclarationName(c)||292===c.parent.kind&&c.parent.name===c)||(d=Y(f.typeExpression))),e.isJSDocParameterTag(f)&&(e.nodeIsMissing(f.name)||f.name.pos<=a&&a<=f.name.end))return{kind:3,tag:f}}if(!d)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}l=e.timestamp();var _=e.findPrecedingToken(a,r,void 0,d);t("getCompletionData: Get previous token 1: "+(e.timestamp()-l));var y=_;if(y&&a<=y.end&&e.isWord(y.kind)){var h=e.timestamp();y=e.findPrecedingToken(y.getFullStart(),r,void 0,d),t("getCompletionData: Get previous token 2: "+(e.timestamp()-h))}var b,E=c,T=!1,x=!1,k=!1,M=!1,D=e.getTouchingPropertyName(r,a,d);if(y){if(function(n){var r=e.timestamp(),i=function(n){if(9===n.kind||12===n.kind||e.isTemplateLiteralKind(n.kind)){var t=n.getStart(),r=n.getEnd();if(t<a&&a<r)return!0;if(a===r)return!!n.isUnterminated||12===n.kind}return!1}(n)||function(n){var t=n.parent.kind;switch(n.kind){case 26:return 230===t||231===t||212===t||236===t||X(t)||234===t||179===t||235===t||e.isClassLike(n.parent)&&n.parent.typeParameters&&n.parent.typeParameters.end>=n.pos;case 23:return 179===t;case 56:return 180===t;case 21:return 179===t;case 19:return 267===t||X(t);case 17:return 236===t||234===t||165===t;case 25:return 150===t&&n.parent&&n.parent.parent&&(234===n.parent.parent.kind||165===n.parent.parent.kind);case 27:return 233===t||203===t||234===t||235===t||e.isFunctionLikeKind(t);case 115:return 151===t&&!e.isClassLike(n.parent.parent);case 24:return 148===t||n.parent&&n.parent.parent&&179===n.parent.parent.kind;case 114:case 112:case 113:return 148===t&&!e.isConstructorDeclaration(n.parent.parent);case 118:return 246===t||250===t||244===t;case 125:case 136:if(z(n))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(L(n.getText())&&z(n))return!1;if(J(n)&&(!e.isIdentifier(n)||(r=n.getText(),A(e.stringToToken(r)))||Y(n)))return!1;var r;switch(n.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(n)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==_||a>_.end))}(n)||function(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(n)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(255===e.parent.kind)return!0;if(256===e.parent.kind||254===e.parent.kind)return e.parent.parent&&253===e.parent.parent.kind}return!1}(n);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),i}(y))return void t("Returning an empty list because completion was requested in an invalid position.");var O=y.parent;if(23===y.kind)switch(T=!0,O.kind){case 183:E=(b=O).expression;break;case 145:E=O.left;break;default:return}else if(1===r.languageVariant){if(O&&183===O.kind&&(y=O,O=O.parent),c.parent===D)switch(c.kind){case 29:253!==c.parent.kind&&255!==c.parent.kind||(D=c);break;case 41:254===c.parent.kind&&(D=c)}switch(O.kind){case 256:41===y.kind&&(k=!0,D=y);break;case 198:if(!(32768&O.left.flags))break;case 254:case 253:case 255:27===y.kind&&(x=!0,D=y);break;case 260:switch(_.kind){case 58:M=!0;break;case 71:_!==O.name&&(M=_)}}}}var R=e.timestamp(),I=5,N=!1,w=0,P=[],F=[];if(T)!function(){I=2;var t=d||e.isPartOfTypeNode(E.parent),a=e.isInRightSideOfInternalImportEqualsDeclaration(E)||!t&&e.isPossiblyTypeArgumentPosition(y,r);if(e.isEntityName(E)){var i=n.getSymbolAtLocation(E);if(i&&1920&(i=e.skipAlias(i,n)).flags){for(var o=e.Debug.assertEachDefined(n.getExportsOfModule(i),"getExportsOfModule() should all be defined"),s=function(e){return n.isValidPropertyAccess(E.parent,e.name)},l=function(e){return W(e)},c=a?function(e){return l(e)||s(e)}:t?l:s,u=0,m=o;u<m.length;u++){var p=m[u];c(p)&&P.push(p)}return void(!t&&i.declarations.some(function(e){return 272!==e.kind&&237!==e.kind&&236!==e.kind})&&B(n.getTypeOfSymbolAtLocation(i,E)))}}t||B(n.getTypeAtLocation(E))}();else if(x){var V=e.Debug.assertEachDefined(n.getJsxIntrinsicTagNamesAt(D),"getJsxIntrinsicTagNames() should all be defined");P=U()?V.concat(P.filter(function(e){return!!(69313471&e.flags)})):V,I=3}else if(k){var G=y.parent.parent.openingElement.tagName,H=n.getSymbolAtLocation(G);H&&(P=[H]),I=3}else if(!U())return;t("getCompletionData: Semantic work: "+(e.timestamp()-R));var K=_&&v(_,a,r,n);return{kind:0,symbols:P,completionKind:I,isInSnippetScope:m,propertyAccessToConvert:b,isNewIdentifierLocation:N,location:D,keywordFilters:w,symbolToOriginInfoMap:F,recommendedCompletion:K,previousToken:_,isJsxInitializer:M};function B(t){if(e.isSourceFileJavaScript(r))P.push.apply(P,C(t,n,!0));else for(var a=0,i=t.getApparentProperties();a<i.length;a++){var o=i[a];n.isValidPropertyAccessForCompletions(E.parent,t,o)&&P.push(o)}}function U(){var t,l,c,u;if(t=function(n){if(n)switch(n.kind){case 17:case 26:var t=n.parent;if(e.isObjectLiteralExpression(t)||e.isObjectBindingPattern(t))return t}return}(y))return function(t){var r,a;if(I=0,182===t.kind){N=!0;var i=n.getContextualType(t);if(!i)return!1;r=C(i,n,!1),a=t.properties}else{e.Debug.assert(178===t.kind),N=!1;var o=e.getRootDeclaration(t.parent);if(!e.isVariableLike(o))return e.Debug.fail("Root declaration is not variable-like.");var s=e.hasInitializer(o)||e.hasType(o)||220===o.parent.parent.kind;if(s||148!==o.kind||(e.isExpression(o.parent)?s=!!n.getContextualType(o.parent):153!==o.parent.kind&&156!==o.parent.kind||(s=e.isExpression(o.parent.parent)&&!!n.getContextualType(o.parent.parent))),s){var i=n.getTypeAtLocation(t);if(!i)return!1;r=n.getPropertiesOfType(i).filter(function(n){return!(24&e.getDeclarationModifierFlagsFromSymbol(n))}),a=t.elements}}r&&r.length>0&&(P=function(n,t){if(0===t.length)return n;for(var r=e.createUnderscoreEscapedMap(),a=0,i=t;a<i.length;a++){var o=i[a];if((268===o.kind||269===o.kind||180===o.kind||153===o.kind||155===o.kind||156===o.kind)&&!Y(o)){var s=void 0;if(180===o.kind&&o.propertyName)71===o.propertyName.kind&&(s=o.propertyName.escapedText);else{var l=e.getNameOfDeclaration(o);s=e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}r.set(s,!0)}}return n.filter(function(e){return!r.get(e.escapedName)})}(r,e.Debug.assertDefined(a)));return!0}(t);if(l=function(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 245:case 249:return e.parent}}return}(y))return function(t){var r=245===t.kind?242:248,a=e.getAncestor(t,r).moduleSpecifier;if(!a)return!1;I=3,N=!1;var i=n.getSymbolAtLocation(a);if(!i)return P=e.emptyArray,!0;var o=n.getExportsAndPropertiesOfModule(i);return P=function(n,t){for(var r=e.createUnderscoreEscapedMap(),a=0,i=t;a<i.length;a++){var o=i[a];if(!Y(o)){var s=o.propertyName||o.name;r.set(s.escapedText,!0)}}return n.filter(function(e){return"default"!==e.escapedName&&!r.get(e.escapedName)})}(o,t.elements),!0}(l);if(function(n){if(n)switch(n.kind){case 19:case 26:return e.isConstructorDeclaration(n.parent)&&n.parent;default:if(J(n))return n.parent.parent}return}(y))return I=5,N=!0,w=2,!0;if(c=function(n){if(n)switch(n.kind){case 17:case 26:if(e.isClassLike(n.parent))return n.parent;break;case 25:case 18:if(e.isClassLike(D))return D;if(z(D)&&D.parent.name===D)return D.parent.parent;break;default:if(z(n)&&(S(n.kind)||L(n.getText())))return n.parent.parent}if(D&&293===D.kind&&e.isClassLike(D.parent))return D.parent;return}(y))return function(t){I=3,N=!0,w=1;var r=e.getClassExtendsHeritageClauseElement(t),a=e.getClassImplementsHeritageClauseElements(t);if(r||a){var i=y.parent,o=e.isClassElement(i)&&e.getModifierFlags(i);if(71===y.kind&&!Y(y))switch(y.getText()){case"private":o|=8;break;case"static":o|=32}if(!(8&o)){var s=void 0;r&&(s=n.getTypeAtLocation(r),32&o&&(s=n.getTypeOfSymbolAtLocation(s.symbol,t)));var l=32&o?e.emptyArray:e.flatMap(a||e.emptyArray,function(e){return n.getPropertiesOfType(n.getTypeAtLocation(e))});P=function(n,t,r,a){for(var i=e.createUnderscoreEscapedMap(),o=0,s=r;o<s.length;o++){var l=s[o];if((151===l.kind||153===l.kind||155===l.kind||156===l.kind)&&(!Y(l)&&!e.hasModifier(l,8))){var c=e.hasModifier(l,32),u=!!(32&a);if(!(c&&!u||!c&&u)){var d=e.getPropertyNameForPropertyNameNode(l.name);d&&i.set(d,!0)}}}var m=[];return p(n,8),p(t,24),m;function p(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];f(a,n)&&m.push(a)}}function f(n,t){return!i.get(n.escapedName)&&n.getDeclarations()&&!(e.getDeclarationModifierFlagsFromSymbol(n)&t)}}(s?n.getPropertiesOfType(s):e.emptyArray,l,t.members,o)}}}(c),!0;if(u=function(e){if(e){var n=e.parent;switch(e.kind){case 28:case 41:case 71:case 183:case 261:case 260:case 262:if(n&&(254===n.kind||255===n.kind))return n;if(260===n.kind)return n.parent.parent;break;case 9:if(n&&(260===n.kind||262===n.kind))return n.parent.parent;break;case 18:if(n&&263===n.kind&&n.parent&&260===n.parent.kind)return n.parent.parent.parent;if(n&&262===n.kind)return n.parent.parent}}return}(y)){var p=void 0;if((254===u.kind||255===u.kind)&&(p=n.getAllAttributesTypeFromJsxOpeningLikeElement(u)))return P=function(n,t){for(var r=e.createUnderscoreEscapedMap(),a=0,i=t;a<i.length;a++){var o=i[a];Y(o)||260===o.kind&&r.set(o.name.escapedText,!0)}return n.filter(function(e){return!r.get(e.escapedName)})}(n.getPropertiesOfType(p),u.attributes.properties),I=3,N=!1,!0}(function(n){if(n){var t,r=e.findAncestor(n.parent,function(n){return e.isClassLike(n)?"quit":!(!e.isFunctionLikeDeclaration(n)||t!==n.body)||void(t=n)});return r&&r}})(y)&&(w=3),I=1,N=function(e){if(e){var n=e.parent.kind;switch(e.kind){case 26:return 185===n||154===n||186===n||181===n||198===n||162===n;case 19:return 185===n||154===n||186===n||189===n||172===n;case 21:return 181===n||159===n||146===n;case 129:case 130:return!0;case 23:return 237===n;case 17:return 233===n;case 58:return 230===n||198===n;case 14:return 200===n;case 15:return 209===n;case 114:case 112:case 113:return 151===n}switch(e.getText()){case"public":case"protected":case"private":return!0}}return!1}(y),_!==y&&e.Debug.assert(!!_,"Expected 'contextToken' to be defined when different from 'previousToken'.");var f=_!==y?_.getStart():a,v=function(n,t,r){var a=n;for(;a&&!e.positionBelongsToNode(a,t,r);)a=a.parent;return a}(y,f,r)||r;m=function(n){switch(n.kind){case 272:case 200:case 263:case 211:return!0;default:return e.isStatement(n)}}(v);if(P=e.Debug.assertEachDefined(n.getSymbolsInScope(v,70107135),"getSymbolsInScope() should all be defined"),o.includeInsertTextCompletions&&272!==v.kind){var h=n.tryGetThisTypeAt(v);if(h)for(var b=0,E=C(h,n,!0);b<E.length;b++){var T=E[b];F[e.getSymbolId(T)]={type:"this-type"},P.push(T)}}return o.includeExternalModuleExports&&function(t,a,o){var s=a.toLowerCase();e.codefix.forEachExternalModuleToImportFrom(n,r,i,function(r){for(var a=0,i=n.getExportsOfModule(r);a<i.length;a++){var l=i[a];if(n.getMergedSymbol(l.parent)===n.resolveExternalModuleSymbol(r)&&!e.some(l.declarations,function(n){return e.isExportSpecifier(n)&&!!n.parent.parent.moduleSpecifier})){var c="default"===l.name;c&&(l=e.getLocalSymbolForExportDefault(l)||l);var u={type:"export",moduleSymbol:r,isDefaultExport:c};q(g(l,u,o).toLowerCase(),s)&&(t.push(l),F[e.getSymbolId(l)]=u)}}})}(P,_&&e.isIdentifier(_)?_.text:"",s),function(t){var a=d||!j(y)&&(e.isPartOfTypeNode(D)||function(n){if(n){var t=n.parent.kind;switch(n.kind){case 56:return 151===t||150===t||148===t||230===t||e.isFunctionLikeKind(t);case 58:return 235===t;case 118:return 206===t}}return!1}(y)),i=a||!j(y)&&e.isPossiblyTypeArgumentPosition(y,r);a&&(w=4);e.filterMutate(t,function(t){if(!e.isSourceFile(D)){if(e.isExportAssignment(D.parent))return!0;if(t=e.skipAlias(t,n),e.isInRightSideOfInternalImportEqualsDeclaration(D))return!!(1920&t.flags);if(i){var r=W(t);if(r||a)return r}}return!!(67216319&e.getCombinedLocalAndExportSymbolFlags(t))})}(P),!0}function j(n){return n&&103===n.kind&&(164===n.parent.kind||e.isTypeOfExpression(n.parent))}function W(t){if(t=t.exportSymbol||t,67901928&(t=e.skipAlias(t,n)).flags)return!0;if(1536&t.flags){var r=n.getExportsOfModule(t);return e.forEach(r,W)}}function q(e,n){if(0===n.length)return!0;for(var t=0,r=0;r<e.length;r++)if(e.charCodeAt(r)===n.charCodeAt(t)&&++t===n.length)return!0;return!1}function z(n){return e.isClassElement(n.parent)&&e.isClassLike(n.parent.parent)}function J(n){return n.parent&&function(n){return e.isParameter(n)&&e.isConstructorDeclaration(n.parent)}(n.parent)&&(A(n.kind)||e.isDeclarationName(n))}function X(n){return e.isFunctionLikeKind(n)&&154!==n}function Y(e){return e.getStart()<=a&&a<=e.getEnd()}}function b(n,t,r,a){var i=g(n,r,t);if(!(void 0===i||1536&n.flags&&e.startsWithQuote(i)||e.isKnownSymbol(n))){var o={name:i,needsConvertPropertyAccess:!1};if(e.isIdentifierText(i,t))return o;switch(a){case 3:return;case 0:return{name:JSON.stringify(i),needsConvertPropertyAccess:!1};case 2:case 1:return 32===i.charCodeAt(0)?void 0:{name:i,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:e.Debug.assertNever(a)}}}!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=3]="FunctionLikeBodyKeywords",e[e.TypeKeywords=4]="TypeKeywords"}(t||(t={})),n.getCompletionsAtPosition=function(t,r,a,i,l,c,u,d){if(e.isInReferenceComment(l,c)){var f=n.PathCompletions.getTripleSlashReferenceCompletion(l,c,i,t);return f&&o(f)}var g=e.findPrecedingToken(c,l);if(e.isInString(l,c,g))return g&&e.isStringLiteralLike(g)?function(n,t,r,a){if(void 0!==n)switch(n.kind){case 0:return o(n.paths);case 1:var i=[];return m(n.symbols,i,t,t,r,6,a,4),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:i};case 2:var i=n.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"var",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:i};default:return e.Debug.assertNever(n)}}(function(t,r,a,i,o,s){switch(r.parent.kind){case 177:switch(r.parent.parent.kind){case 161:return{kind:2,types:p(i.getTypeArgumentConstraint(r.parent),i)};case 175:return{kind:1,symbols:i.getTypeFromTypeNode(r.parent.parent.objectType).getApparentProperties()};default:return}case 268:if(e.isObjectLiteralExpression(r.parent.parent)&&r.parent.name===r){var l=i.getContextualType(r.parent.parent);return{kind:1,symbols:l&&l.getApparentProperties()}}return v();case 184:var c=r.parent,u=c.expression,d=c.argumentExpression;return r===d?{kind:1,symbols:i.getTypeAtLocation(u).getApparentProperties()}:void 0;case 185:case 186:if(!e.isRequireCall(r.parent,!1)&&!e.isImportCall(r.parent)){var m=e.SignatureHelp.getImmediatelyContainingArgumentInfo(r,a,t);if(m){var f=[];i.getResolvedSignature(m.invocation,f,m.argumentCount);var g=e.createMap();return{kind:2,types:e.flatMap(f,function(e){return p(i.getParameterType(e,m.argumentIndex),i,g)})}}return v()}case 242:case 248:case 252:return{kind:0,paths:n.PathCompletions.getStringLiteralCompletionsFromModuleNames(t,r,o,s,i)};default:return v()}function v(){return{kind:2,types:p(_(r,i),i)}}}(l,g,c,r,i,t),l,r,a):void 0;if(g&&e.isBreakOrContinueStatement(g.parent)&&(72===g.kind||77===g.kind||71===g.kind))return function(n){var t=function(n){for(var t=[],r=e.createMap(),a=n;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var i=a.label.text;r.has(i)||(r.set(i,!0),t.push({name:i,kindModifiers:"",kind:"label",sortText:"0"}))}a=a.parent}return t}(n);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(g.parent);var v=h(r,a,l,c,u,d,i.target);if(v)switch(v.kind){case 0:return function(n,t,r,a,i,o){var s=i.symbols,l=i.completionKind,c=i.isInSnippetScope,u=i.isNewIdentifierLocation,d=i.location,p=i.propertyAccessToConvert,f=i.keywordFilters,g=i.symbolToOriginInfoMap,v=i.recommendedCompletion,_=i.isJsxInitializer;if(1===n.languageVariant&&d&&d.parent&&e.isJsxClosingElement(d.parent)){var y=d.parent.parent.openingElement.tagName;return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:y.getFullText(),kind:"class",kindModifiers:void 0,sortText:"0"}]}}var h=[];if(e.isSourceFileJavaScript(n)){var b=m(s,h,d,n,t,r.target,a,l,o,p,_,v,g);!function(n,t,r,a,i){e.getNameTable(n).forEach(function(n,o){if(n!==t){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(r,s)&&e.isIdentifierText(s,a)&&!e.isStringANonContextualKeyword(s)&&i.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(n,d.pos,b,r.target,h)}else{if((!s||0===s.length)&&0===f)return;m(s,h,d,n,t,r.target,a,l,o,p,_,v,g)}var L,x=function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(l);return 0===f&&x||e.addRange(h,E[L=f]||(E[L]=T().filter(function(n){var t=e.stringToToken(n.name);switch(L){case 0:return 140!==t;case 1:return S(t);case 2:return A(t);case 3:return function(e){switch(e){case 114:case 112:case 113:case 132:case 123:case 115:case 117:case 125:case 136:case 140:return!1}return!0}(t);case 4:return e.isTypeKeyword(t);default:return e.Debug.assertNever(L)}}))),{isGlobalCompletion:c,isMemberCompletion:x,isNewIdentifierLocation:u,entries:h}}(l,r,i,a,v,d.includeInsertTextCompletions);case 1:return s(e.JsDoc.getJSDocTagNameCompletions());case 2:return s(e.JsDoc.getJSDocTagCompletions());case 3:return s(e.JsDoc.getJSDocParameterNameCompletions(v.tag));default:return e.Debug.assertNever(v)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(r||(r={})),n.getCompletionEntryDetails=function(n,t,r,a,i,o,s,l,c,u){var d=n.getTypeChecker(),m=o.name,p=f(d,t,r,a,i,o,s);switch(p.type){case"request":var v=p.request;switch(v.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(m);case 2:return e.JsDoc.getJSDocTagCompletionDetails(m);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(m);default:return e.Debug.assertNever(v)}case"symbol":var _=p.symbol,y=p.location,h=function(n,t,r,a,i,o,s,l,c,u,d){var m=n[e.getSymbolId(t)];return m&&"export"===m.type?function(n,t,r,a,i,o,s,l,c,u,d){var m=n.moduleSymbol,p=e.skipAlias(t.exportSymbol||t,a),f=e.codefix.getImportCompletionAction(p,m,s,g(t,n,o.target),i,r,a,o,d,c,u,l),v=f.moduleSpecifier,_=f.codeAction;return{sourceDisplay:[e.textPart(v)],codeActions:[_]}}(m,t,r,a,i,o,s,l,c,u,d):{codeActions:void 0,sourceDisplay:void 0}}(p.symbolToOriginInfoMap,_,n,d,l,r,a,p.previousToken,c,u,s),b=h.codeActions,E=h.sourceDisplay,S=e.SymbolDisplay.getSymbolModifiers(_),L=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(d,_,a,y,y,7),A=L.displayParts,x=L.documentation,C=L.symbolKind,k=L.tags;return{name:m,kindModifiers:S,kind:C,displayParts:A,documentation:x,tags:k,codeActions:b,source:E};case"none":return T().some(function(e){return e.name===m})?{name:m,kind:"keyword",kindModifiers:"",displayParts:[e.displayPart(m,e.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0,codeActions:void 0,source:void 0}:void 0}},n.getCompletionEntrySymbol=function(e,n,t,r,a,i,o){var s=f(e,n,t,r,a,i,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(a||(a={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(i||(i={}));var E=[],T=e.memoize(function(){for(var n=[],t=72;t<=144;t++)n.push({name:e.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:"0"});return n});function S(e){switch(e){case 114:case 113:case 112:case 117:case 115:case 123:case 132:case 125:case 136:case 120:return!0}}function L(n){return S(e.stringToToken(n))}function A(e){switch(e){case 114:case 112:case 113:case 132:return!0}}function x(e){switch(e){case 34:case 32:case 35:case 33:return!0;default:return!1}}function C(n,t,r){if(!(131072&n.flags))return e.Debug.assertEachDefined(n.getApparentProperties(),"getApparentProperties() should all be defined");var a=n.types,i=r?a:a.filter(function(n){return!(16382&n.flags||t.isArrayLikeType(n)||e.typeHasCallOrConstructSignatures(n,t))});return e.Debug.assertEachDefined(t.getAllPossiblePropertiesOfTypes(i),"getAllPossiblePropertiesOfTypes() should all be defined")}}(e.Completions||(e.Completions={}))}(u||(u={})),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),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 225:if(221===n.kind)return!1;case 218:case 219:case 220:case 217:case 216: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 l(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 c(n){var t=[];if(l(t,n.getFirstToken(),88,106,81)&&216===n.kind)for(var r=n.getChildren(),i=r.length-1;i>=0&&!l(t,r[i],106);i--);return e.forEach(a(n.statement),function(e){o(n,e)&&l(t,e.getFirstToken(),72,77)}),t}function u(e){var n=s(e);if(n)switch(n.kind){case 218:case 219:case 220:case 216:case 217:return c(n);case 225:return d(n)}}function d(n){var t=[];return l(t,n.getFirstToken(),98),e.forEach(n.caseBlock.clauses,function(r){l(t,r.getFirstToken(),73,79),e.forEach(a(r),function(e){o(n,e)&&l(t,e.getFirstToken(),72)})}),t}function m(n,t){var r=[];(l(r,n.getFirstToken(),102),n.catchClause&&l(r,n.catchClause.getFirstToken(),74),n.finallyBlock)&&l(r,e.findChildOfKind(n,87,t),87);return r}function p(n,t){var a=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||272===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,100,t))}),e.isFunctionBlock(a)&&e.forEachReturnStatement(a,function(n){i.push(e.findChildOfKind(n,96,t))}),i}}function f(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,96,t))}),e.forEach(r(a.body),function(n){i.push(e.findChildOfKind(n,100,t))}),i}}n.getDocumentHighlights=function(n,r,a,i,o){var s=e.getTouchingWord(a,i,!0);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var g=s.parent.parent,v=[g.openingElement,g.closingElement].map(function(e){return t(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:v}]}return function(n,t,r,a,i){var o=e.FindAllReferences.getReferenceEntriesForNode(n,t,r,i,a);if(o){var s=e.arrayToMultiMap(o.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(s.entries(),function(e){var n=e[0],t=e[1];return{fileName:n,highlightSpans:t}})}}(i,s,n,r,o)||function(n,r){var a=function(n,r){switch(n.kind){case 90:case 82:return e.isIfStatement(n.parent)?function(n,r){for(var a=function(n,t){for(var r=[];e.isIfStatement(n.parent)&&n.parent.elseStatement===n;)n=n.parent;for(;;){var a=n.getChildren(t);l(r,a[0],90);for(var i=a.length-1;i>=0&&!l(r,a[i],82);i--);if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}(n,r),i=[],o=0;o<a.length;o++){if(82===a[o].kind&&o<a.length-1){for(var s=a[o],c=a[o+1],u=!0,d=c.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(),c.end),kind:"reference"}),o++;continue}}i.push(t(a[o],r))}return i}(n.parent,r):void 0;case 96:return v(n.parent,e.isReturnStatement,f);case 100:return v(n.parent,e.isThrowStatement,p);case 102:case 74:case 87:var a=74===n.kind?n.parent.parent:n.parent;return v(a,e.isTryStatement,m);case 98:return v(n.parent,e.isSwitchStatement,d);case 73:case 79:return v(n.parent.parent.parent,e.isSwitchStatement,d);case 72:case 77:return v(n.parent,e.isBreakOrContinueStatement,u);case 88:case 106:case 81:return v(n.parent,function(n){return e.isIterationStatement(n,!0)},c);case 123:return g(e.isConstructorDeclaration,[123]);case 125:case 136:return g(e.isAccessor,[125,136]);default:return e.isModifierKind(n.kind)&&(e.isDeclaration(n.parent)||e.isVariableStatement(n.parent))?_((i=n.kind,o=n.parent,s=e.modifierToFlag(i),e.mapDefined(function(n,t){var r=n.parent;switch(r.kind){case 238:case 272:case 211:case 264:case 265:return 128&t&&e.isClassDeclaration(n)?n.members.concat([n]):r.statements;case 154:case 153:case 232:return r.parameters.concat(e.isClassLike(r.parent)?r.parent.members:[]);case 233:case 203:var a=r.members;if(28&t){var i=e.find(r.members,e.isConstructorDeclaration);if(i)return a.concat(i.parameters)}else if(128&t)return a.concat([r]);return a;default:e.Debug.assertNever(r,"Invalid container kind.")}}(o,s),function(n){if(e.getModifierFlags(n)&s){var t=e.find(n.modifiers,function(e){return e.kind===i});return e.Debug.assert(!!t),t}}))):void 0}var i,o,s;function g(t,a){return v(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 v(e,n,t){return n(e)?_(t(e,r)):void 0}function _(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={}))}(u||(u={})),function(e){e.createDocumentRegistry=function(n,t){void 0===t&&(t="");var r=e.createMap(),a=e.createGetCanonicalFileName(!!n);function i(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function o(n,t){var a=r.get(n);return!a&&t&&r.set(n,a=e.createMap()),a}function s(e,n,t,r,a,i,o){return c(e,n,t,r,a,i,!0,o)}function l(e,n,t,r,a,i,o){return c(e,n,t,r,a,i,!1,o)}function c(n,t,r,a,i,s,l,c){var u=o(a,!0),d=u.get(t);return d?(d.sourceFile.version!==s&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,i,s,i.getChangeRange(d.sourceFile.scriptSnapshot))),l&&d.languageServiceRefCount++):(d={sourceFile:e.createLanguageServiceSourceFile(n,i,r.target,s,!1,c),languageServiceRefCount:1,owners:[]},u.set(t,d)),d.sourceFile}function u(n,t){var r=o(t,!1);e.Debug.assert(void 0!==r);var a=r.get(n);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(n)}return{acquireDocument:function(n,r,o,l,c){return s(n,e.toPath(n,t,a),r,i(r),o,l,c)},acquireDocumentWithKey:s,updateDocument:function(n,r,o,s,c){return l(n,e.toPath(n,t,a),r,i(r),o,s,c)},updateDocumentWithKey:l,releaseDocument:function(n,r){return u(e.toPath(n,t,a),i(r))},releaseDocumentWithKey:u,reportStats:function(){var n=e.arrayFrom(r.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var n=[];return r.get(e).forEach(function(e,t){n.push({name:t,refCount:e.languageServiceRefCount,references:e.owners.slice(0)})}),n.sort(function(e,n){return n.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(n,void 0,2)},getKeyForCompilationSettings:i}}}(u||(u={})),function(e){!function(n){function t(n,t){return e.forEach(272===n.kind?n.statements:n.body.statements,function(n){return t(n)||u(n)&&e.forEach(n.body&&n.body.statements,t)})}function r(e,n){if(e.externalModuleIndicator||void 0!==e.imports)for(var r=0,i=e.imports;r<i.length;r++){var o=i[r];n(a(o),o)}else t(e,function(e){switch(e.kind){case 248:case 242:(t=e).moduleSpecifier&&9===t.moduleSpecifier.kind&&n(t,t.moduleSpecifier);break;case 241:var t,r=(t=e).moduleReference;252===r.kind&&9===r.expression.kind&&n(t,r.expression)}})}function a(n){var t=n.parent;switch(t.kind){case 185:case 242:case 248:return t;case 252:return t.parent;default:e.Debug.fail("Unexpected module specifier parent: "+t.kind)}}function i(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 o(n){return"default"!==n.escapedName?n.escapedName:e.forEach(n.declarations,function(n){var t=e.getNameOfDeclaration(n);return t&&71===t.kind&&t.escapedText})}function s(e,n){return n.getMergedSymbol(c(e).symbol)}function c(n){if(185===n.kind)return n.getSourceFile();var t=n.parent;return 272===t.kind?t:(e.Debug.assert(238===t.kind),e.cast(t.parent,u))}function u(e){return 237===e.kind&&9===e.name.kind}function d(e){var n=e.moduleReference;return 252===n.kind&&9===n.expression.kind}n.createImportTracker=function(n,a,i){var u=function(n,t,a){for(var i=e.createMap(),o=0,s=n;o<s.length;o++){var l=s[o];a.throwIfCancellationRequested(),r(l,function(n,r){var a=t.getSymbolAtLocation(r);if(a){var o=e.getSymbolId(a).toString(),s=i.get(o);s||i.set(o,s=[]),s.push(n)}})}return i}(n,a,i);return function(r,m,p){var f=function(n,r,a,i,o){var l=a.exportingModuleSymbol,u=a.exportKind,d=e.nodeSeenTracker(),m=e.nodeSeenTracker(),p=[],f=!!l.globalExports,g=f?void 0:[];return function n(t){var r=y(t);if(r)for(var a=0,l=r;a<l.length;a++){var m=l[a];if(d(m))switch(o.throwIfCancellationRequested(),m.kind){case 185:if(!f){var g=m.parent;if(2===u&&230===g.kind){var h=g.name;if(71===h.kind){p.push(h);break}}_(m.getSourceFile())}break;case 241:v(m,m.name,e.hasModifier(m,1));break;case 242:var b=m.importClause&&m.importClause.namedBindings;if(b&&244===b.kind)v(m,b.name);else if(e.isDefaultImport(m)){var E=c(m);f||_(E),p.push(m)}else p.push(m);break;case 248:m.exportClause?p.push(m):n(s(m,i))}}}(l),{directImports:p,indirectUsers:function(){if(f)return n;for(var t=0,r=l.declarations;t<r.length;t++){var a=r[t];e.isExternalModuleAugmentation(a)&&_(a)}return g.map(e.getSourceFileOfNode)}()};function v(n,r,a){if(2===u)p.push(n);else if(!f){var o=c(n);e.Debug.assert(272===o.kind||237===o.kind),a||function(e,n,r){var a=r.getSymbolAtLocation(n);return t(e,function(e){if(248===e.kind){var n=e,t=n.exportClause,i=n.moduleSpecifier;if(!i&&t)for(var o=0,s=t.elements;o<s.length;o++){var l=s[o];if(r.getExportSpecifierLocalTargetSymbol(l)===a)return!0}}})}(o,r,i)?function n(t){if(_(t)){var r=i.getMergedSymbol(t.symbol);e.Debug.assert(!!(1536&r.flags));var a=y(r);if(a)for(var o=0,s=a;o<s.length;o++){var l=s[o];n(c(l))}}}(o):_(o)}}function _(n){e.Debug.assert(!f);var t=m(n);return t&&g.push(n),t}function y(n){return r.get(e.getSymbolId(n).toString())}}(n,u,m,a,i),g=f.directImports,v=f.indirectUsers;return l({indirectUsers:v},function(e,n,t,r,a){var i=[],s=[];function l(e,n){i.push([e,n])}if(e)for(var c=0,u=e;c<u.length;c++){var m=u[c];p(m)}return{importSearches:i,singleReferences:s};function p(e){if(241!==e.kind)if(71!==e.kind){if(9===e.moduleSpecifier.kind)if(248!==e.kind){var i=e.importClause;if(i){var s=i.namedBindings;if(s&&244===s.kind)f(s.name);else if(0===t)g(s);else{var c=i.name;if(c&&(!a||c.escapedText===o(n))){var u=r.getSymbolAtLocation(c);l(c,u)}a||1!==t||g(s)}}}else g(e.exportClause)}else f(e);else d(e)&&f(e.name)}function f(e){2!==t||a&&!v(e.escapedText)||l(e,r.getSymbolAtLocation(e))}function g(e){if(e)for(var n=0,t=e.elements;n<t.length;n++){var i=t[n],o=i.name,c=i.propertyName;if(v((c||o).escapedText))if(c)s.push(c),a||l(o,r.getSymbolAtLocation(o));else{var u=250===i.kind&&i.propertyName?r.getExportSpecifierLocalTargetSymbol(i):r.getSymbolAtLocation(o);l(o,u)}}}function v(e){return e===n.escapedName||0!==t&&"default"===e}}(g,r,m.exportKind,a,p))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(n.ExportKind||(n.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(n.ImportExport||(n.ImportExport={})),n.findModuleReferences=function(e,n,t){for(var a=[],i=e.getTypeChecker(),o=0,s=n;o<s.length;o++){var l=s[o],c=t.valueDeclaration;if(272===c.kind){for(var u=0,d=l.referencedFiles;u<d.length;u++){var m=d[u];e.getSourceFileFromReference(l,m)===c&&a.push({kind:"reference",referencingFile:l,ref:m})}for(var p=0,f=l.typeReferenceDirectives;p<f.length;p++){m=f[p];var g=e.getResolvedTypeReferenceDirectives().get(m.fileName);void 0!==g&&g.resolvedFileName===c.fileName&&a.push({kind:"reference",referencingFile:l,ref:m})}}r(l,function(e,n){i.getSymbolAtLocation(n)===t&&a.push({kind:"import",literal:n})})}return a},n.getImportOrExportSymbol=function(n,t,r,a){return a?s():s()||function(){var a=function(n){var t=n.parent;switch(t.kind){case 241:return t.name===n&&d(t)?{isNamedImport:!1}:void 0;case 246:return t.propertyName?void 0:{isNamedImport:!0};case 243:case 244:return e.Debug.assert(t.name===n),{isNamedImport:!1};default:return}}(n);if(a){var i=r.getImmediateAliasedSymbol(t);if(i){"export="===(i=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)}return n}(i,r)).escapedName&&(i=function(n,t){if(2097152&n.flags)return e.Debug.assertDefined(t.getImmediateAliasedSymbol(n));var r=n.valueDeclaration;return e.isExportAssignment(r)?e.Debug.assertDefined(r.expression.symbol):e.isBinaryExpression(r)?e.Debug.assertDefined(r.right.symbol):e.Debug.fail()}(i,r));var s=o(i);return void 0===s||"default"===s||s===t.escapedName?l({kind:0,symbol:i},a):void 0}}}();function s(){var i=n.parent;if(t.exportSymbol)return 183===i.kind?t.declarations.some(function(e){return e===i})&&e.isBinaryExpression(i.parent)?l(i.parent,!1):void 0:c(t.exportSymbol,u(i));var o=function(e,n){if(230===e.kind){var t=e;return t.name!==n?void 0:267===t.parent.kind?void 0:212===t.parent.parent.kind?t.parent.parent:void 0}return e}(i,n);if(o&&e.hasModifier(o,1)){if(e.isImportEqualsDeclaration(o)&&o.moduleReference===n){if(a)return;return{kind:0,symbol:r.getSymbolAtLocation(o.name),isNamedImport:!1}}return c(t,u(o))}if(e.isExportAssignment(i))return s(i);if(e.isExportAssignment(i.parent))return s(i.parent);if(e.isBinaryExpression(i))return l(i,!0);if(e.isBinaryExpression(i.parent))return l(i.parent,!0);function s(n){var r=e.Debug.assertDefined(n.symbol.parent,"Expected export symbol to have a parent"),a=n.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:r,exportKind:a}}}function l(n,a){var i;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:i=0;break;case 2:i=2;break;default:return}var o=a?r.getSymbolAtLocation(e.cast(n.left,e.isPropertyAccessExpression).name):t;return!o||1536&r.getMergedSymbol(o.parent).flags||e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.showSymbol(o)+", parent is "+e.Debug.showSymbol(o.parent)),o&&c(o,i)}}function c(e,n){var t=i(e,n,r);return t&&{kind:1,symbol:e,exportInfo:t}}function u(n){return e.hasModifier(n,512)?1:0}},n.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){function t(e,n){return{type:"node",node:e,isInString:n}}function r(e,t,r,i,o,s){return void 0===s&&(s={}),a(n.Core.getReferencedSymbolsForNode(e,t,r,i,o,s))}function a(n){return n&&e.flatMap(n,function(e){return e.references})}function i(t,r,a){var i=n.Core.getIntersectingMeaningFromDeclarations(a,t),o=e.firstOrUndefined(t.declarations)||a,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,o.getSourceFile(),o,o,i);return{displayParts:s.displayParts,kind:s.symbolKind}}function o(n){if("span"===n.type)return{textSpan:n.textSpan,fileName:n.fileName,isWriteAccess:!1,isDefinition:!1};var t=n.node,r=n.isInString;return{fileName:t.getSourceFile().fileName,textSpan:s(t),isWriteAccess:c(t),isDefinition:79===t.kind||e.isAnyDeclarationName(t)||e.isLiteralComputedPropertyDeclarationName(t),isInString:r}}function s(n){var t=n.getStart(),r=n.getEnd();return 9===n.kind&&(t+=1,r-=1),e.createTextSpanFromBounds(t,r)}function c(n){return 79===n.kind||e.isAnyDeclarationName(n)||e.isWriteAccess(n)}n.nodeEntry=t,n.findReferencedSymbols=function(t,r,a,s,l){var c=e.getTouchingPropertyName(s,l,!0),u=n.Core.getReferencedSymbolsForNode(l,c,t,a,r,{}),d=t.getTypeChecker();return u&&u.length?e.mapDefined(u,function(n){var t=n.definition,r=n.references;return t&&{definition:function(n,t,r){var a=function(){switch(n.type){case"symbol":var a=n.symbol,o=i(a,t,r),s=o.displayParts,l=o.kind,c=s.map(function(e){return e.text}).join("");return{node:a.declarations?e.getNameOfDeclaration(e.first(a.declarations))||e.first(a.declarations):r,name:c,kind:l,displayParts:s};case"label":var u=n.node;return{node:u,name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]};case"keyword":var d=n.node,m=e.tokenToString(d.kind);return{node:d,name:m,kind:"keyword",displayParts:[{text:m,kind:"keyword"}]};case"this":var p=n.node,a=t.getSymbolAtLocation(p),f=a&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,a,p.getSourceFile(),e.getContainerNode(p),p).displayParts;return{node:p,name:"this",kind:"var",displayParts:f};case"string":var g=n.node;return{node:g,name:g.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(g),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(n)}}(),o=a.node,s=a.name,l=a.kind,c=a.displayParts,u=o.getSourceFile();return{containerKind:"",containerName:"",fileName:u.fileName,kind:l,name:s,textSpan:e.createTextSpanFromNode(o,u),displayParts:c}}(t,d,c),references:r.map(o)}}):void 0},n.getImplementationsAtPosition=function(a,o,c,u,d){var m=function(a,i,o,s,l){if(272!==s.kind){var c=a.getTypeChecker();if(269===s.parent.kind){var u=[];return n.Core.getReferenceEntriesForShorthandPropertyAssignment(s,c,function(e){return u.push(t(e))}),u}if(97===s.kind||e.isSuperProperty(s.parent)){var d=c.getSymbolAtLocation(s);return d.valueDeclaration&&[t(d.valueDeclaration)]}return r(l,s,a,o,i,{implementations:!0})}}(a,o,c,e.getTouchingPropertyName(u,d,!1),d),p=a.getTypeChecker();return e.map(m,function(n){return function(n,t){if("node"===n.type){var r=n.node;return l({textSpan:s(r),fileName:r.getSourceFile().fileName},function(n,t){var r=t.getSymbolAtLocation(e.isDeclaration(n)&&n.name?n.name:n);return r?i(r,t,n):182===n.kind?{kind:"interface",displayParts:[e.punctuationPart(19),e.textPart("object literal"),e.punctuationPart(20)]}:203===n.kind?{kind:"local class",displayParts:[e.punctuationPart(19),e.textPart("anonymous local class"),e.punctuationPart(20)]}:{kind:e.getNodeKind(n),displayParts:[]}}(r,t))}var a=n.textSpan,o=n.fileName;return{textSpan:a,fileName:o,kind:"",displayParts:[]}}(n,p)})},n.findReferencedEntries=function(t,r,i,s,l,c){var u=e.getTouchingPropertyName(s,l,!0);return e.map(a(n.Core.getReferencedSymbolsForNode(l,u,t,i,r,c)),o)},n.getReferenceEntriesForNode=r,n.toHighlightSpan=function(e){if("span"===e.type)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var n=e.node,t=e.isInString,r=e.node.getSourceFile().fileName,a=c(n);return{fileName:r,span:{textSpan:s(n),kind:a?"writtenReference":"reference",isInString:t}}}}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){!function(t){function r(t,r,a){e.Debug.assert(!!r.valueDeclaration);for(var i=n.findModuleReferences(t,a,r).map(function(n){return"import"===n.kind?{type:"node",node:n.literal}:{type:"span",fileName:n.referencingFile.fileName,textSpan:e.createTextSpanFromRange(n.ref)}}),o=0,s=r.declarations;o<s.length;o++){var l=s[o];switch(l.kind){case 272:break;case 237:i.push({type:"node",node:l.name});break;default:e.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}return[{definition:{type:"symbol",symbol:r},references:i}]}var a;t.getReferencedSymbolsForNode=function(t,a,s,f,g,_){if(void 0===_&&(_={}),e.isSourceFile(a)){var b=e.GoToDefinition.getReferenceAtPosition(a,t,s);return b&&r(s,s.getTypeChecker().getMergedSymbol(b.file.symbol),f)}if(!_.implementations){var x=function(t,r,a){if(e.isTypeKeyword(t.kind))return function(t,r,a){var i=e.flatMap(t,function(t){return a.throwIfCancellationRequested(),e.mapDefined(m(t,e.tokenToString(r),t),function(a){var i=e.getTouchingPropertyName(t,a,!0);return i.kind===r?n.nodeEntry(i):void 0})});return i.length?[{definition:{type:"keyword",node:i[0].node},references:i}]:void 0}(r,t.kind,a);if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&p(i.parent,i)}return e.isLabelOfLabeledStatement(t)?p(t.parent,t):e.isThis(t)?function(n,t,r){var a=e.getThisContainer(n,!1),i=32;switch(a.kind){case 153:case 152:if(e.isObjectLiteralMethod(a))break;case 151:case 150:case 154:case 155:case 156:i&=e.getModifierFlags(a),a=a.parent;break;case 272:if(e.isExternalModule(a))return;case 232:case 190:break;default:return}for(var o=[],s=0,l=272===a.kind?t:[a.getSourceFile()];s<l.length;s++){var c=l[s];r.throwIfCancellationRequested();var u=m(c,"this",e.isSourceFile(a)?c:a);E(c,272===a.kind?c:a,u,i,o)}return[{definition:{type:"this",node:n},references:o}]}(t,r,a):97===t.kind?function(t){var r=e.getSuperContainer(t,!1);if(r){var a=32;switch(r.kind){case 151:case 150:case 153:case 152:case 154:case 155:case 156:a&=e.getModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),o=e.mapDefined(m(i,"super",r),function(t){var o=e.getTouchingWord(i,t,!1);if(o&&97===o.kind){var s=e.getSuperContainer(o,!1);return s&&(32&e.getModifierFlags(s))===a&&s.parent.symbol===r.symbol?n.nodeEntry(o):void 0}});return[{definition:{type:"symbol",symbol:r.symbol},references:o}]}}(t):void 0}(a,f,g);if(x)return x}var C=s.getTypeChecker(),k=C.getSymbolAtLocation(a);return k?1536&k.flags&&function(n){if(!e.isStringLiteralLike(n))return!1;switch(n.parent.kind){case 237:case 252:case 242:case 248:return!0;case 185:return e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent);default:return!1}}(a)?r(s,k,f):function(n,t,r,a,s,m){n=function(n,t,r){var a=t.parent;return e.isExportSpecifier(a)?y(t,n,a,r):e.isImportSpecifier(a)&&a.propertyName===t?r.getImmediateAliasedSymbol(n):e.firstDefined(n.declarations,function(a){return a.parent||(e.Debug.assert(272===a.kind),e.Debug.fail("Unexpected symbol at "+e.Debug.showSyntaxKind(t)+": "+e.Debug.showSymbol(n))),e.isTypeLiteralNode(a.parent)&&e.isUnionTypeNode(a.parent.parent)?r.getPropertyOfType(r.getTypeFromTypeNode(a.parent.parent),n.name):void 0})}(n,t,a)||n;var p=A(t,n),f=[],g=new i(r,function(n){switch(n.kind){case 123:return 1;case 71:if(e.isClassLike(n.parent))return e.Debug.assert(n.parent.name===n),2;default:return 0}}(t),a,s,p,m,f);if(79===t.kind)h(t,n,g),o(t,n,{exportingModuleSymbol:e.Debug.assertDefined(n.parent,"Expected export symbol to have a parent"),exportKind:1},g);else{var _=g.createSearch(t,n,void 0,{allSearchSymbols:function(n,t,r,a){var i=[],o=e.getContainingObjectLiteralElement(t);if(o){if(269!==o.kind){var s=c(t,r);s&&i.push(s)}for(var l=0,u=L(o,r);l<u.length;l++){var m=u[l];g(m)}var p=r.getShorthandAssignmentValueSymbol(t.parent);p&&i.push(p)}e.addRange(i,T(n,r));var f=d(n,r);return f&&(i.push(f),g(f)),g(n),i;function g(n){for(var t=0,o=r.getRootSymbols(n);t<o.length;t++){var s=o[t];i.push(s),!a&&s.parent&&96&s.parent.flags&&S(s.parent,s.name,i,e.createSymbolTable(),r)}}}(n,t,a,m.implementations)}),b=function(n){var t=n.declarations,r=n.flags,a=n.parent,i=n.valueDeclaration;if(i&&(190===i.kind||203===i.kind))return i;if(t){if(8196&r){var o=e.find(t,function(n){return e.hasModifier(n,8)});return o?e.getAncestor(o,233):void 0}if(!u(n)){var s,l=a&&!(262144&n.flags);if(!l||1536&a.flags&&e.isExternalModuleSymbol(a)&&!a.globalExports){for(var c=0,d=t;c<d.length;c++){var m=d[c],p=e.getContainerNode(m);if(s&&s!==p)return;if(!p||272===p.kind&&!e.isExternalOrCommonJsModule(p))return;s=p}return l?s.getSourceFile():s}}}}(n);if(b)v(b,b.getSourceFile(),_,g);else for(var E=0,x=g.sourceFiles;E<x.length;E++){var C=x[E];g.cancellationToken.throwIfCancellationRequested(),l(C,_,g)}}return f}(k,a,f,C,g,_):!_.implementations&&e.isStringLiteral(a)?function(t,r,a){var i=e.flatMap(r,function(r){return a.throwIfCancellationRequested(),e.mapDefined(m(r,t.text),function(a){var i=e.tryCast(e.getTouchingWord(r,a,!1),e.isStringLiteral);return i&&i.text===t.text?n.nodeEntry(i,!0):void 0})});return[{definition:{type:"string",node:t},references:i}]}(a,f,g):void 0},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(a||(a={}));var i=function(){function t(n,t,r,a,i,o,s){this.sourceFiles=n,this.specialSearchKind=t,this.checker=r,this.cancellationToken=a,this.searchMeaning=i,this.options=o,this.result=s,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[],this.includedSourceFiles=e.arrayToSet(n,function(e){return e.fileName})}return t.prototype.includesSourceFile=function(e){return this.includedSourceFiles.has(e.fileName)},t.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=n.createImportTracker(this.sourceFiles,this.checker,this.cancellationToken)),this.importTracker(e,t,this.options.isForRename)},t.prototype.createSearch=function(n,t,r,a){void 0===a&&(a={});var i=a.text,o=void 0===i?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(t)||t).escapedName)):i,s=a.allSearchSymbols,l=e.escapeLeadingUnderscores(o),c=this.options.implementations&&function(n,t,r){var a=(i=n,e.isRightSideOfPropertyAccess(i)&&i.parent);var i;if(!a)return;var o=r.getTypeAtLocation(a.expression);if(!o)return;if(o.symbol&&96&o.symbol.flags&&o.symbol!==t.parent)return[o.symbol];if(393216&o.flags)return function e(n,t){void 0===t&&(t=[]);for(var r=0,a=n.types;r<a.length;r++){var i=a[r];i.symbol&&96&i.symbol.getFlags()&&t.push(i.symbol),393216&i.getFlags()&&e(i,t)}return t}(o)}(n,t,this.checker);return{symbol:t,comingFrom:r,text:o,escapedText:l,parents:c,includes:function(n){return s?e.contains(s,n):n===t}}},t.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),a=this.symbolIdToReferences[r];return a||(a=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:"symbol",symbol:t},references:a})),function(e){return a.push(n.nodeEntry(e))}},t.prototype.addStringOrCommentReference=function(e,n){this.result.push({definition:void 0,references:[{type:"span",fileName:e,textSpan:n}]})},t.prototype.markSearchedSymbol=function(n,t){var r=e.getNodeId(n),a=e.getSymbolId(t),i=this.sourceFileToSeenSymbols[r]||(this.sourceFileToSeenSymbols[r]=[]);return!i[a]&&(i[a]=!0)},t}();function o(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),u=0,d=o;u<d.length;u++){c(d[u])}for(var m=0,p=i;m<p.length;m++){var f=p[m],v=f[0],_=f[1];g(v.getSourceFile(),r.createSearch(v,_,1),r)}if(s.length){var y=void 0;switch(t.exportKind){case 0:y=r.createSearch(e,n,1);break;case 1:y=r.options.isForRename?void 0:r.createSearch(e,n,1,{text:"default"})}if(y)for(var h=0,b=s;h<b.length;h++){l(b[h],y,r)}}}function s(e,n){for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t],i=a.getSourceFile();n.includesSourceFile(i)&&g(i,n.createSearch(a,e,0),n)}}function l(n,t,r){void 0!==e.getNameTable(n).get(t.escapedText)&&g(n,t,r)}function c(n,t){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent)&&t.getPropertySymbolOfDestructuringAssignment(n)}function u(n){var t=e.getDeclarationOfKind(n,180);if(t&&178===t.parent.kind&&!t.propertyName)return t}function d(n,t){var r=u(n);if(r){var a=t.getTypeAtLocation(r.parent),i=a&&t.getPropertyOfType(a,r.name.text);return i&&98304&i.flags?(e.Debug.assert(!!(33554432&i.flags)),i.target):i}}function m(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,l=i.indexOf(t,r.pos);l>=0&&!(l>r.end);){var c=l+s;0!==l&&e.isIdentifierPart(i.charCodeAt(l-1),6)||c!==o&&e.isIdentifierPart(i.charCodeAt(c),6)||a.push(l),l=i.indexOf(t,l+s+1)}return a}function p(t,r){var a=t.getSourceFile(),i=r.text,o=e.mapDefined(m(a,i,t),function(t){var o=e.getTouchingWord(a,t,!1);return o&&(o===r||e.isJumpStatementTarget(o)&&e.getTargetLabel(o,i)===r)?n.nodeEntry(o):void 0});return[{definition:{type:"label",node:r},references:o}]}function f(n,t){switch(n.kind){case 71:return n.text.length===t.length;case 9:return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||function(n){if(9===n.kind)return e.isNameOfModuleDeclaration(n)||e.isExpressionOfExternalModuleImportEqualsDeclaration(n);return!1}(n))&&n.text.length===t.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)&&n.text.length===t.length;case 79:return"default".length===t.length;default:return!1}}function g(e,n,t){return t.cancellationToken.throwIfCancellationRequested(),v(e,e,n,t)}function v(e,n,t,r){if(r.markSearchedSymbol(n,t.symbol))for(var a=0,i=m(n,t.text,e);a<i.length;a++){_(n,i[a],t,r)}}function _(t,r,a,i){var l=e.getTouchingPropertyName(t,r,!0);if(f(l,a.text)){if(e.getMeaningFromLocation(l)&i.searchMeaning){var u=i.checker.getSymbolAtLocation(l);if(u){var m=l.parent;if(!e.isImportSpecifier(m)||m.propertyName!==l){if(e.isExportSpecifier(m))return e.Debug.assert(71===l.kind),void function(t,r,a,i,l){var c=a.parent,u=a.propertyName,d=a.name,m=c.parent,p=y(t,r,a,l.checker);if(!i.includes(p))return;u?t===u?(m.moduleSpecifier||_(),!l.options.isForRename&&l.markSeenReExportRHS(d)&&h(d,r,l)):l.markSeenReExportRHS(t)&&_():_();if(t!==u||!l.options.isForRename){var f=79===t.originalKeywordKind?1:0,g=n.getExportInfo(r,f,l.checker);e.Debug.assert(!!g),o(t,r,g,l)}if(1!==i.comingFrom&&m.moduleSpecifier&&!u){var v=l.checker.getExportSpecifierLocalTargetSymbol(a);v&&s(v,l)}function _(){h(t,p,l)}}(l,u,m,a,i);var p=function n(t,r,a,i){var o=i.checker;if(t.includes(r))return r;if(1&r.flags){e.Debug.assert(!(4&r.flags));var s=T(r,o);if(s)return n(t,e.find(s,function(e){return!!(4&e.flags)}),a,i)}var l=e.getContainingObjectLiteralElement(a);if(l){var u=e.firstDefined(L(l,o),g);if(u)return u;var m=c(a,o);if(m&&t.includes(m))return m}var p=d(r,o);if(p){var f=g(p);if(f)return f}return g(r);function g(n){return e.firstDefined(o.getRootSymbols(n),function(n){if(t.includes(n))return n;if(n.parent&&96&n.parent.flags){if(t.parents&&!e.some(t.parents,function(t){return function(n,t,r,a){var i=64&t.getFlags();return o(n);function o(n){if(n===t)return!0;var a=e.getSymbolId(n)+","+e.getSymbolId(t),o=r.get(a);if(void 0!==o)return o;r.set(a,!1);var l=e.forEach(n.getDeclarations(),function(n){if(e.isClassLike(n)){if(i){var t=e.getClassImplementsHeritageClauseElements(n);if(t)for(var r=0,a=t;r<a.length;r++){var o=a[r];if(s(o))return!0}}return s(e.getClassExtendsHeritageClauseElement(n))}return!(234!==n.kind||!i)&&e.forEach(e.getInterfaceBaseTypeNodes(n),s)});return r.set(a,l),l}function s(e){if(e){var n=a.getTypeAtLocation(e);if(n&&n.symbol)return o(n.symbol)}return!1}}(n.parent,t,i.inheritsFromCache,o)}))return;var r=[];return S(n.parent,n.name,r,e.createSymbolTable(),o),e.find(r,t.includes)}})}}(a,u,l,i);if(p){switch(i.specialSearchKind){case 0:h(l,p,i);break;case 1:!function(n,t,r,a){e.isNewExpressionTarget(n)&&h(n,r.symbol,a);var i=function(){return a.referenceAdder(r.symbol)};if(e.isClassLike(n.parent))e.Debug.assert(79===n.kind||n.parent.name===n),function(n,t,r){for(var a=0,i=n.members.get("__constructor").declarations;a<i.length;a++){var o=i[a],s=e.findChildOfKind(o,123,t);e.Debug.assert(154===o.kind&&!!s),r(s)}n.exports.forEach(function(n){var t=n.valueDeclaration;if(t&&153===t.kind){var a=t.body;a&&C(a,99,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=n.symbol.members.get("__constructor");if(!r)return;for(var a=0,i=r.declarations;a<i.length;a++){var o=i[a];e.Debug.assert(154===o.kind);var s=o.body;s&&C(s,97,function(n){e.isCallExpressionTarget(n)&&t(n)})}}(o,i())}var s}(l,t,a,i);break;case 2:!function(n,t,r){h(n,t.symbol,r),!r.options.isForRename&&e.isClassLike(n.parent)&&(e.Debug.assert(n.parent.name===n),function(n,t){for(var r=0,a=n.members;r<a.length;r++){var i=a[r];e.isMethodOrAccessor(i)&&e.hasModifier(i,32)&&i.body.forEachChild(function n(r){99===r.kind?t(r):e.isFunctionLike(r)||r.forEachChild(n)})}}(n.parent,r.referenceAdder(t.symbol)))}(l,a,i);break;default:e.Debug.assertNever(i.specialSearchKind)}!function(e,t,r,a){var i=n.getImportOrExportSymbol(e,t,a.checker,1===r.comingFrom);if(!i)return;var l=i.symbol;0===i.kind?a.options.isForRename&&!i.isNamedImport||s(l,a):o(e,l,i.exportInfo,a)}(l,u,a,i)}else!function(n,t,r){var a=n.flags,i=n.valueDeclaration,o=r.checker.getShorthandAssignmentValueSymbol(i);33554432&a||!t.includes(o)||h(e.getNameOfDeclaration(i),o,r)}(u,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 y(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 h(n,t,r){var a=r.referenceAdder(t);r.options.implementations?function(n,t,r){if(e.isDeclarationName(n)&&function(n){if(!n)return!1;if(e.isVariableLike(n)&&e.hasInitializer(n))return!0;if(230===n.kind){var t=function(n){if(n.parent&&n.parent.parent&&212===n.parent.parent.kind)return e.Debug.assert(231===n.parent.kind),n.parent.parent}(n);return t&&e.hasModifier(t,2)}if(e.isFunctionLike(n))return!!n.body||e.hasModifier(n,2);switch(n.kind){case 233:case 203:case 236:case 237:return!0}return!1}(n.parent))return void t(n.parent);if(71!==n.kind)return;269===n.parent.kind&&x(n,r.checker,t);var a=function n(t){if(t&&t.parent){if(205===t.kind&&266===t.parent.kind&&e.isClassLike(t.parent.parent))return t.parent.parent;if(71===t.kind||183===t.kind)return n(t.parent)}return}(n);if(a)return void t(a);var i=function(n){var t;for(;n;)e.isTypeNode(n)&&(t=n),n=n.parent;return t}(n);if(i&&r.markSeenContainingTypeReference(i)){var o=i.parent;if(e.hasType(o)&&o.type===i&&e.hasInitializer(o)&&b(o.initializer))t(o.initializer);else if(e.isFunctionLike(o)&&o.type===i&&o.body){var s=o.body;211===s.kind?e.forEachReturnStatement(s,function(e){e.expression&&b(e.expression)&&t(e.expression)}):b(s)&&t(s)}else e.isAssertionExpression(o)&&b(o.expression)&&t(o.expression)}}(n,a,r):a(n)}function b(e){switch(e.kind){case 189:return b(e.expression);case 191:case 190:case 182:case 203:case 181:return!0;default:return!1}}function E(t,r,a,i,o){e.forEach(a,function(a){var s=e.getTouchingWord(t,a,!1);if(s&&e.isThis(s)){var l=e.getThisContainer(s,!1);switch(r.kind){case 190:case 232:r.symbol===l.symbol&&o.push(n.nodeEntry(s));break;case 153:case 152:e.isObjectLiteralMethod(r)&&r.symbol===l.symbol&&o.push(n.nodeEntry(s));break;case 203:case 233:l.parent&&r.symbol===l.parent.symbol&&(32&e.getModifierFlags(l))===i&&o.push(n.nodeEntry(s));break;case 272:272!==l.kind||e.isExternalModule(l)||o.push(n.nodeEntry(s))}}})}function T(n,t){return n.valueDeclaration&&e.isParameter(n.valueDeclaration)&&e.isParameterPropertyDeclaration(n.valueDeclaration)?t.getSymbolsOfParameterPropertyDeclaration(n.valueDeclaration,n.name):void 0}function S(n,t,r,a,i){function o(e){if(e){var o=i.getTypeAtLocation(e);if(o){var s=i.getPropertyOfType(o,t);s&&r.push.apply(r,i.getRootSymbols(s)),a.set(n.escapedName,n),S(o.symbol,t,r,a,i)}}}!n||a.has(n.escapedName)||96&n.flags&&e.forEach(n.getDeclarations(),function(n){e.isClassLike(n)?(o(e.getClassExtendsHeritageClauseElement(n)),e.forEach(e.getClassImplementsHeritageClauseElements(n),o)):234===n.kind&&e.forEach(e.getInterfaceBaseTypeNodes(n),o)})}function L(n,t){var r=t.getContextualType(n.parent),a=function(n){if(146===n.name.kind){var t=n.name.expression;return e.isStringOrNumericLiteral(t)?t.text:void 0}return e.getTextOfIdentifierOrLiteral(n.name)}(n),i=r&&a&&r.getProperty(a);return i?[i]:r&&131072&r.flags?e.mapDefined(r.types,function(e){return e.getProperty(a)}):e.emptyArray}function A(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 l=s[o],c=e.getMeaningFromDeclaration(l);c&r&&(r|=c)}}while(r!==i)}return r}function x(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 l=s[o];1&e.getMeaningFromDeclaration(l)&&r(l)}}function C(n,t,r){e.forEachChild(n,function(e){e.kind===t&&r(e),C(e,t,r)})}t.isSymbolReferencedInFile=function(n,t,r){var a=t.getSymbolAtLocation(n);return!a||m(r,a.name).some(function(i){var o=e.tryCast(e.getTouchingPropertyName(r,i,!0),e.isIdentifier);return o&&o!==n&&o.escapedText===n.escapedText&&t.getSymbolAtLocation(o)===a})},t.getIntersectingMeaningFromDeclarations=A,t.getReferenceEntriesForShorthandPropertyAssignment=x}(n.Core||(n.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){function t(n,t,c){var u,d,m=r(t,c,n);if(m)return[(u=m.fileName,d=m.file.fileName,{fileName:d,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0})];var p=e.getTouchingPropertyName(t,c,!0);if(p!==t){if(e.isJumpStatementTarget(p)){var f=e.getTargetLabel(p.parent,p.text);return f?[s(f,"label",p.text,void 0)]:void 0}var g=n.getTypeChecker(),v=function(n,t){var r=function(n){var t=function n(t){return e.isRightSideOfPropertyAccess(t)?n(t.parent):t}(n),r=t.parent;return r&&e.isCallLikeExpression(r)&&e.getInvokedExpression(r)===t&&r}(t),a=r&&n.getResolvedSignature(r);if(a){var o=a.declaration;if(o&&i(o))return o}return}(g,p);if(v)return[function(e,n){var t=l(e,n.symbol,n),r=t.symbolName,a=t.symbolKind,i=t.containerName;return o(n,a,r,i)}(g,v)];var _=g.getSymbolAtLocation(p);if(_){if(2097152&_.flags&&function(e,n){if(71!==e.kind)return!1;if(e.parent===n)return!0;switch(n.kind){case 243:case 241:return!0;case 246:return 245===n.parent.kind;default:return!1}}(p,_.declarations[0])){var y=g.getAliasedSymbol(_);y.declarations&&(_=y)}if(269===p.parent.kind){var h=g.getShorthandAssignmentValueSymbol(_.valueDeclaration);if(!h)return[];var b=h.getDeclarations(),E=e.SymbolDisplay.getSymbolKind(g,h,p),T=g.symbolToString(h),S=g.symbolToString(_.parent,p);return e.map(b,function(e){return o(e,E,T,S)})}if(e.isPropertyName(p)&&e.isBindingElement(p.parent)&&e.isObjectBindingPattern(p.parent.parent)&&p===(p.parent.propertyName||p.parent.name)){var L=g.getTypeAtLocation(p.parent.parent);if(L){var A=e.getPropertySymbolsFromType(L,p);if(A)return e.flatMap(A,function(e){return a(g,e,p)})}}var x=e.getContainingObjectLiteralElement(p);return x&&g.getContextualType(x.parent)?e.flatMap(e.getPropertySymbolsFromContextualType(g,x),function(e){return a(g,e,p)}):a(g,_,p)}}}function r(n,t,r){var a=c(n.referencedFiles,t);if(a)return(o=e.tryResolveScriptReference(r,n,a))&&{fileName:a.fileName,file:o};var i=c(n.typeReferenceDirectives,t);if(i){var o,s=r.getResolvedTypeReferenceDirectives().get(i.fileName);return(o=s&&r.getSourceFile(s.resolvedFileName))&&{fileName:i.fileName,file:o}}}function a(n,t,r){var a=l(n,t,r),s=a.symbolName,c=a.symbolKind,u=a.containerName;return function(){if(32&t.flags&&(e.isNewExpressionTarget(r)||123===r.kind)){var n=e.find(t.declarations,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return d(n.members,!0)}}()||(e.isCallExpressionTarget(r)||e.isNewExpressionTarget(r)||e.isNameOfFunctionDeclaration(r)?d(t.declarations,!1):void 0)||e.map(t.declarations,function(e){return o(e,c,s,u)});function d(n,t){if(n){var r=n.filter(t?e.isConstructorDeclaration:i);return r.length?[o(e.find(r,function(e){return!!e.body})||e.last(r),c,s,u)]:void 0}}}function i(e){switch(e.kind){case 154:case 158:case 232:case 153:case 152:return!0;default:return!1}}function o(n,t,r,a){return s(e.getNameOfDeclaration(n)||n,t,r,a)}function s(n,t,r,a){var i=n.getSourceFile();return{fileName:i.fileName,textSpan:e.createTextSpanFromNode(n,i),kind:t,name:r,containerKind:void 0,containerName:a}}function l(n,t,r){return{symbolName:n.symbolToString(t),symbolKind:e.SymbolDisplay.getSymbolKind(n,t,r),containerName:t.parent?n.symbolToString(t.parent,r):""}}function c(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];if(a.pos<=n&&n<=a.end)return a}}n.getDefinitionAtPosition=t,n.getReferenceAtPosition=r,n.getTypeDefinitionAtPosition=function(n,t,r){var i=e.getTouchingPropertyName(t,r,!0);if(i!==t){var o=n.getSymbolAtLocation(i),s=o&&n.getTypeOfSymbolAtLocation(o,i);if(s)return 131072&s.flags&&!(16&s.flags)?e.flatMap(s.types,function(e){return e.symbol&&a(n,e.symbol,i)}):s.symbol&&a(n,s.symbol,i)}},n.getDefinitionAndBoundSpan=function(n,r,a){var i=t(n,r,a);if(i&&0!==i.length){var o=c(r.referencedFiles,a)||c(r.typeReferenceDirectives,a);if(o)return{definitions:i,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,a,!0);return{definitions:i,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},n.findReferenceInPosition=c}(e.GoToDefinition||(e.GoToDefinition={}))}(u||(u={})),function(e){!function(n){var t,r,a=["augments","author","argument","borrows","class","constant","constructor","constructs","default","deprecated","description","event","example","extends","field","fileOverview","function","ignore","inheritDoc","inner","lends","link","memberOf","method","name","namespace","param","private","prop","property","public","requires","returns","see","since","static","template","throws","type","typedef","version"];function i(e){var n=e.comment;switch(e.kind){case 285:return r(e.class);case 290:return a(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 289:return r(e.typeExpression);case 291:case 292:case 287:var t=e.name;return t?r(t):n;default:return n}function r(e){return a(e.getText())}function a(e){return void 0===n?e:e+" "+n}}function o(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}}function s(n){return{name:n,kind:"",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:e.emptyArray,codeActions:void 0}}function l(n){for(;189===n.kind;)n=n.expression;switch(n.kind){case 190:case 191:return n.parameters;case 203:for(var t=0,r=n.members;t<r.length;t++){var a=r[t];if(154===a.kind)return a.parameters}}return e.emptyArray}n.getJsDocCommentsFromDeclarations=function(n){var t=[];return o(n,function(n){for(var r=0,a=function(n){switch(n.kind){case 292:return[n];case 291:return[n.parent];default:return e.getJSDocCommentsAndTags(n)}}(n);r<a.length;r++){var i=a[r].comment;void 0!==i&&(t.length&&t.push(e.lineBreakPart()),t.push(e.textPart(i)))}}),t},n.getJsDocTagsFromDeclarations=function(n){var t=[];return o(n,function(n){for(var r=0,a=e.getJSDocTags(n);r<a.length;r++){var o=a[r];t.push({name:o.tagName.text,text:i(o)})}}),t},n.getJSDocTagNameCompletions=function(){return t||(t=e.map(a,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},n.getJSDocTagNameCompletionDetails=s,n.getJSDocTagCompletions=function(){return r||(r=e.map(a,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},n.getJSDocTagCompletionDetails=s,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:"0"}}}):[]},n.getJSDocParameterNameCompletionDetails=function(n){return{name:n,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:e.emptyArray,codeActions:void 0}},n.getDocCommentTemplateAtPosition=function(n,t,r){if(!(e.isInString(t,r)||e.isInComment(t,r)||e.hasDocComment(t,r))){var a=e.getTokenAtPosition(t,r,!1),i=a.getStart();if(a&&!(i<r)){var o=function(n){for(var t=n;t;t=t.parent)switch(t.kind){case 232:case 153:case 154:case 152:var r=t.parameters;return{commentOwner:t,parameters:r};case 233:case 234:case 150:case 236:case 271:case 235:return{commentOwner:t};case 212:var a=t,i=a.declarationList.declarations,o=1===i.length&&i[0].initializer?l(i[0].initializer):void 0;return{commentOwner:t,parameters:o};case 272:return;case 237:return 237===t.parent.kind?void 0:{commentOwner:t};case 198:var s=t;if(0===e.getSpecialPropertyAssignmentKind(s))return;var c=e.isFunctionLike(s.right)?s.right.parameters:e.emptyArray;return{commentOwner:t,parameters:c}}}(a);if(o){var s=o.commentOwner,c=o.parameters;if(!(s.getStart()<r)){if(!c||0===c.length)return{newText:"/** */",caretOffset:3};for(var u=t.getLineAndCharacterOfPosition(r),d=t.getLineStarts()[u.line],m=t.text.substr(d,u.character).replace(/\S/i,function(){return" "}),p=e.hasJavaScriptFileExtension(t.fileName),f="",g=0;g<c.length;g++){var v=c[g].name,_=71===v.kind?v.escapedText:"param"+g;f+=p?m+" * @param {any} "+_+n:m+" * @param "+_+n}var y="/**"+n+m+" * ";return{newText:y+n+f+m+" */"+(i===r?n+m:""),caretOffset:y.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(u||(u={})),function(e){function n(e){var n=parseInt(e,10);if(isNaN(n))throw new Error("Error in parseInt("+JSON.stringify(e)+")");return n}var t=/^(.*)-next.\d+/,r=/^(\d+)\.(\d+)\.0-next.(\d+)$/,a=/^(\d+)\.(\d+)\.(\d+)$/,i=function(){function e(e,n,t,r){this.major=e,this.minor=n,this.patch=t,this.isPrerelease=r}return e.parse=function(n){var r=t.test(n),a=e.tryParse(n,r);if(!a)throw new Error("Unexpected semver: "+n+" (isPrerelease: "+r+")");return a},e.fromRaw=function(n){return new e(n.major,n.minor,n.patch,n.isPrerelease)},e.tryParse=function(t,i){var o=(i?r:a).exec(t);return o?new e(n(o[1]),n(o[2]),n(o[3]),i):void 0},Object.defineProperty(e.prototype,"versionString",{get:function(){return this.isPrerelease?this.major+"."+this.minor+".0-next."+this.patch:this.major+"."+this.minor+"."+this.patch},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch&&this.isPrerelease===e.isPrerelease},e.prototype.greaterThan=function(e){return this.major>e.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},e}();e.Semver=i}(u||(u={})),function(e){!function(n){function t(n,t){return!e.Semver.parse(e.getProperty(t,"ts"+e.versionMajorMinor)||e.getProperty(t,"latest")).greaterThan(n.version)}n.isTypingUpToDate=t,n.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var r=e.arrayToSet(n.nodeCoreModuleList);n.loadSafeList=function(n,t){var r=e.readConfigFile(t,function(e){return n.readFile(e)});return e.createMapFromTemplate(r.config)},n.loadTypesMap=function(n,t){var r=e.readConfigFile(t,function(e){return n.readFile(e)});if(r.config)return e.createMapFromTemplate(r.config.simpleMap)},n.discoverTypings=function(n,a,i,o,s,l,c,u,d){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var m=e.createMap();i=e.mapDefined(i,function(n){var t=e.normalizePath(n);if(e.hasJavaScriptFileExtension(t))return t});var p=[];c.include&&S(c.include,"Explicitly included types");var f=c.exclude||[],g=e.arrayToSet(i,e.getDirectoryPath);g.set(o,!0),g.forEach(function(n,t){L(e.combinePaths(t,"package.json"),p),L(e.combinePaths(t,"bower.json"),p),A(e.combinePaths(t,"bower_components"),p),A(e.combinePaths(t,"node_modules"),p)}),function(n){var t=e.mapDefined(n,function(n){if(e.hasJavaScriptFileExtension(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")})&&(a&&a("Inferred 'react' typings due to presence of '.jsx' extension"),T("react"))}(i),u&&S(e.deduplicate(u.map(function(e){return r.has(e)?"node":e}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),l.forEach(function(e,n){m.has(n)&&void 0===m.get(n)&&t(e,d.get(n))&&m.set(n,e.typingLocation)});for(var v=0,_=f;v<_.length;v++){var y=_[v];m.delete(y)&&a&&a("Typing for "+y+" is in exclude list, will be ignored.")}var h=[],b=[];m.forEach(function(e,n){void 0!==e?b.push(e):h.push(n)});var E={cachedTypingPaths:b,newTypingNames:h,filesToWatch:p};return a&&a("Result: "+JSON.stringify(E)),E;function T(e){m.has(e)||m.set(e,void 0)}function S(n,t){a&&a(t+": "+JSON.stringify(n)),e.forEach(n,T)}function L(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 '"+t+"' dependencies")}}function A(t,r){if(r.push(t),n.directoryExists(t)){var i=n.readDirectory(t,[".json"],void 0,void 0,2);a&&a("Searching for typing names in "+t+"; all files: "+JSON.stringify(i));for(var o=[],s=0,l=i;s<l.length;s++){var c=l[s],u=e.normalizePath(c),d=e.getBaseFileName(u);if("package.json"===d||"bower.json"===d){var p=e.readConfigFile(u,function(e){return n.readFile(e)}).config;if(("package.json"!==d||!p._requiredBy||0!==e.filter(p._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&p.name){var f=p.types||p.typings;if(f){var g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(u));a&&a(" Package '"+p.name+"' provides its own types."),m.set(p.name,g)}else o.push(p.name)}}}S(o," Found package names")}}},function(e){e[e.Ok=0]="Ok",e[e.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",e[e.EmptyName=2]="EmptyName",e[e.NameTooLong=3]="NameTooLong",e[e.NameStartsWithDot=4]="NameStartsWithDot",e[e.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters"}(n.PackageNameValidationResult||(n.PackageNameValidationResult={}));var a=214;n.validatePackageName=function(e){return e?e.length>a?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},n.renderPackageNameValidationFailure=function(n,t){switch(n){case 2:return"Package name '"+t+"' cannot be empty";case 3:return"Package name '"+t+"' should be less than "+a+" characters";case 4:return"Package name '"+t+"' cannot start with '.'";case 5:return"Package name '"+t+"' cannot start with '_'";case 1:return"Package '"+t+"' is scoped and currently is not supported";case 6:return"Package name '"+t+"' contains non URI safe characters";case 0:return e.Debug.fail();default:e.Debug.assertNever(n)}}}(e.JsTyping||(e.JsTyping={}))}(u||(u={})),function(e){!function(n){function t(e,n){switch(e.kind){case 243:case 246:case 241:var t=n.getSymbolAtLocation(e.name),r=n.getAliasedSymbol(t);return t.escapedName!==r.escapedName;default:return!0}}function r(n){e.Debug.assert(n.length>0);for(var t=0,r=n;t<r.length;t++){if(!r[t].isCaseSensitive)return!1}return!0}function a(n,t){var r=e.getNameOfDeclaration(n);return r&&e.isPropertyNameLiteral(r)?(t.unshift(e.getTextOfIdentifierOrLiteral(r)),!0):!(!r||146!==r.kind)&&i(r.expression,t,!0)}function i(n,t,r){if(e.isPropertyNameLiteral(n)){var a=e.getTextOfIdentifierOrLiteral(n);return r&&t.unshift(a),!0}return!!e.isPropertyAccessExpression(n)&&(r&&t.unshift(n.name.text),i(n.expression,t,!0))}function o(n){var t=[],r=e.getNameOfDeclaration(n);if(146!==r.kind||i(r.expression,t,!1)){for(n=e.getContainerNode(n);n;){if(!a(n,t))return;n=e.getContainerNode(n)}return t}}function s(n){e.Debug.assert(n.length>0);for(var t=e.PatternMatchKind.camelCase,r=0,a=n;r<a.length;r++){var i=a[r].kind;i<t&&(t=i)}return t}function l(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,a,i,u,d,m){for(var p=e.createPatternMatcher(u),f=[],g=function(n){if(i.throwIfCancellationRequested(),m&&e.fileExtensionIs(n.fileName,".d.ts"))return"continue";e.forEachEntry(n.getNamedDeclarations(),function(e,i){!function(e,n,a,i,l,c){var u=e.getMatchesForLastSegmentOfPattern(n);if(u)for(var d=0,m=a;d<m.length;d++){var p=m[d];if(t(p,i)){var f=u;if(!e.patternContainsDots||(f=e.getMatches(o(p),n))){var g=s(f),v=r(f);c.push({name:n,fileName:l,matchKind:g,isCaseSensitive:v,declaration:p})}}}}(p,i,e,a,n.fileName,f)})},v=0,_=n;v<_.length;v++)g(_[v]);return f.sort(l),void 0!==d&&(f=f.slice(0,d)),f.map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(u||(u={})),function(e){!function(n){var t,r,a,i=/\s+/g,o=[],s=[];function l(){r=void 0,t=void 0,o=[],a=void 0,s=[]}function c(e){return e.getText(r)}function u(e){return e.node.kind}function d(e,n){e.children?e.children.push(n):e.children=[n]}function m(n){e.Debug.assert(!o.length);var t={node:n,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=t;for(var r=0,i=n.statements;r<i.length;r++){y(i[r])}return v(),e.Debug.assert(!a&&!o.length),t}function p(e){d(a,f(e))}function f(e){return{node:e,additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function g(e){var n=f(e);d(a,n),o.push(a),a=n}function v(){a.children&&(h(a.children),E(a.children)),a=o.pop()}function _(e,n){g(e),y(n),v()}function y(n){if(t.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 154:var r=n;_(r,r.body);for(var a=0,i=r.parameters;a<i.length;a++){var o=i[a];e.isParameterPropertyDeclaration(o)&&p(o)}break;case 153:case 155:case 156:case 152:e.hasDynamicName(n)||_(n,n.body);break;case 151:case 150:e.hasDynamicName(n)||p(n);break;case 243:var s=n;s.name&&p(s);var l=s.namedBindings;if(l)if(244===l.kind)p(l);else for(var c=0,u=l.elements;c<u.length;c++){p(u[c])}break;case 180:case 230:var d=n,m=d.name,f=d.initializer;e.isBindingPattern(m)?y(m):f&&function(e){switch(e.kind){case 191:case 190:case 203:return!0;default:return!1}}(f)?f.name?y(f):(g(n),e.forEachChild(f,y),v()):_(n,f);break;case 191:case 232:case 190:_(n,n.body);break;case 236:g(n);for(var h=0,b=n.members;h<b.length;h++){D(S=b[h])||p(S)}v();break;case 233:case 203:case 234:g(n);for(var E=0,T=n.members;E<T.length;E++){var S;y(S=T[E])}v();break;case 237:_(n,function e(n){return 237===n.body.kind?e(n.body):n}(n).body);break;case 250:case 241:case 159:case 157:case 158:case 235:p(n);break;case 198:var L=e.getSpecialPropertyAssignmentKind(n);switch(L){case 1:case 2:case 3:case 6:_(n,n.right);break;case 4:case 5:case 0:break;default:e.Debug.assertNever(L)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,function(n){e.forEach(n.tags,function(e){291===e.kind&&p(e)})}),e.forEachChild(n,y)}}function h(n){var t=e.createMap();e.filterMutate(n,function(n){var r=e.getNameOfDeclaration(n.node),a=r&&c(r);if(!a)return!0;var i=t.get(a);if(!i)return t.set(a,n),!0;if(i instanceof Array){for(var o=0,s=i;o<s.length;o++){var l;if(b(l=s[o],n))return!1}return i.push(n),!0}return!b(l=i,n)&&(t.set(a,[l,n]),!0)})}function b(n,t){return!!function(n,t){if(n.kind!==t.kind)return!1;switch(n.kind){case 151:case 153:case 155:case 156:return e.hasModifier(n,32)===e.hasModifier(t,32);case 237:return function e(n,t){return n.body.kind===t.body.kind&&(237!==n.body.kind||e(n.body,t.body))}(n,t);default:return!0}}(n.node,t.node)&&(function(n,t){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&&(h(n.children),E(n.children));var r}(n,t),!0)}function E(e){e.sort(T)}function T(n,t){return e.compareStringsCaseSensitiveUI(S(n.node),S(t.node))||e.compareValues(u(n),u(t))}function S(n){if(237===n.kind)return M(n);var t=e.getNameOfDeclaration(n);if(t)return e.unescapeLeadingUnderscores(e.getPropertyNameForPropertyNameNode(t));switch(n.kind){case 190:case 191:case 203:return I(n);case 291:return A(n);default:return}}function L(n){if(237===n.kind)return M(n);var t=e.getNameOfDeclaration(n);if(t){var r=c(t);if(r.length>0)return r}switch(n.kind){case 272:var a=n;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"<global>";case 191:case 232:case 190:case 233:case 203:return 512&e.getModifierFlags(n)?"default":I(n);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";case 291:return A(n);default:return"<unknown>"}}function A(e){if(e.name)return e.name.text;var n=e.parent&&e.parent.parent;if(n&&212===n.kind&&n.declarationList.declarations.length>0){var t=n.declarationList.declarations[0].name;if(71===t.kind)return t.text}return"<typedef>"}function x(n){return{text:L(n.node),kind:e.getNodeKind(n.node),kindModifiers:R(n.node),spans:k(n),childItems:e.map(n.children,x)}}function C(n){return{text:L(n.node),kind:e.getNodeKind(n.node),kindModifiers:R(n.node),spans:k(n),childItems:e.map(n.children,function(n){return{text:L(n.node),kind:e.getNodeKind(n.node),kindModifiers:e.getNodeModifiers(n.node),spans:k(n),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:n.indent,bolded:!1,grayed:!1}}function k(e){var n=[O(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t<r.length;t++){var a=r[t];n.push(O(a))}return n}function M(n){if(e.isAmbientModule(n))return e.getTextOfNode(n.name);var t=[];for(t.push(e.getTextOfIdentifierOrLiteral(n.name));n.body&&237===n.body.kind;)n=n.body,t.push(e.getTextOfIdentifierOrLiteral(n.name));return t.join(".")}function D(e){return!e.name||146===e.name.kind}function O(n){return 272===n.kind?e.createTextSpanFromRange(n):e.createTextSpanFromNode(n,r)}function R(n){return n.parent&&230===n.parent.kind&&(n=n.parent),e.getNodeModifiers(n)}function I(n){return n.name&&e.getFullWidth(n.name)>0?e.declarationNameToString(n.name):230===n.parent.kind?e.declarationNameToString(n.parent.name):198===n.parent.kind&&58===n.parent.operatorToken.kind?c(n.parent.left).replace(i,""):268===n.parent.kind&&n.parent.name?c(n.parent.name):512&e.getModifierFlags(n)?"default":e.isClassLike(n)?"<class>":"<function>"}n.getNavigationBarItems=function(n,a){t=a,r=n;try{return e.map((i=m(n),o=[],function n(t){if(function(n){switch(u(n)){case 233:case 203:case 236:case 234:case 237:case 272:case 235:case 291:return!0;case 154:case 153:case 155:case 156:case 230:return t(n);case 191:case 232:case 190:return function(e){if(!e.node.body)return!1;switch(u(e.parent)){case 238:case 272:case 153:case 154:return!0;default:return t(e)}}(n);default:return!1}function t(n){return e.forEach(n.children,function(e){var n=u(e);return 230!==n&&180!==n})}}(t)&&(o.push(t),t.children))for(var r=0,a=t.children;r<a.length;r++){var i=a[r];n(i)}}(i),o),C)}finally{l()}var i,o},n.getNavigationTree=function(e,n){t=n,r=e;try{return x(m(e))}finally{l()}}}(e.NavigationBar||(e.NavigationBar={}))}(u||(u={})),function(e){!function(n){function t(n){var r=n.body;return r&&!e.isIdentifier(r)&&(e.isModuleBlock(r)?r:t(r))}function r(n){return e.isStringLiteral(n)||e.isNoSubstitutionTemplateLiteral(n)?n.text:void 0}function a(n){if(0===n.length)return n;var t=function(n){for(var t,r=[],a=[],i=[],o=0,s=n;o<s.length;o++){var l=s[o];if(void 0!==l.importClause){var c=l.importClause,u=c.name,d=c.namedBindings;u&&r.push(l),d&&(e.isNamespaceImport(d)?a.push(l):i.push(l))}else t=t||l}return{importWithoutClause:t,defaultImports:r,namespaceImports:a,namedImports:i}}(n),r=t.importWithoutClause,a=t.defaultImports,o=t.namespaceImports,s=t.namedImports,l=[];if(r&&l.push(r),1===a.length&&1===o.length&&0===s.length){var c=a[0];return l.push(i(c,c.importClause.name,o[0].importClause.namedBindings)),l}for(var u,d=0,m=e.stableSort(o,function(e,n){return b(e.importClause.namedBindings.name,n.importClause.namedBindings.name)});d<m.length;d++){var p=m[d];l.push(i(p,void 0,p.importClause.namedBindings))}if(0===a.length&&0===s.length)return l;var f=[];if(1===a.length)u=a[0].importClause.name;else for(var g=0,v=a;g<v.length;g++){c=v[g];f.push(e.createImportSpecifier(e.createIdentifier("default"),c.importClause.name))}f.push.apply(f,e.flatMap(s,function(e){return e.importClause.namedBindings.elements}));var _=e.stableSort(f,function(e,n){return b(e.propertyName||e.name,n.propertyName||n.name)||b(e.name,n.name)}),y=a.length>0?a[0]:s[0],h=0===_.length?void 0:0===s.length?e.createNamedImports(_):e.updateNamedImports(s[0].importClause.namedBindings,_);return l.push(i(y,u,h)),l;function b(n,t){return e.compareStringsCaseSensitive(n.text,t.text)}}function i(n,t,r){return e.updateImportDeclaration(n,n.decorators,n.modifiers,e.updateImportClause(n.importClause,t,r),n.moduleSpecifier)}function o(n,t){var a=r(n),i=r(t);return e.compareBooleans(void 0===a,void 0===i)||e.compareBooleans(e.isExternalModuleNameRelative(a),e.isExternalModuleNameRelative(i))||e.compareStringsCaseSensitive(a,i)}n.organizeImports=function(n,s,l,c){var u=e.textChanges.ChangeTracker.fromContext({host:l,formatContext:s});p(n.statements.filter(e.isImportDeclaration));for(var d=0,m=n.statements.filter(e.isAmbientModule);d<m.length;d++)p(t(m[d]).statements.filter(e.isImportDeclaration));return u.getChanges();function p(t){if(0!==e.length(t)){var d=e.group(t,function(e){return r(e.moduleSpecifier)}),m=e.stableSort(d,function(e,n){return o(e[0].moduleSpecifier,n[0].moduleSpecifier)}),p=e.flatMap(m,function(t){return r(t[0].moduleSpecifier)?a(function(n,t,r){for(var a=r.getTypeChecker(),o=a.getJsxNamespace(),s=1===t.languageVariant&&r.getCompilerOptions().jsx,l=[],c=0,u=n;c<u.length;c++){var d=u[c],m=d.importClause;if(m){var p=m.name,f=m.namedBindings;if(p&&!v(p)&&(p=void 0),f)if(e.isNamespaceImport(f))v(f.name)||(f=void 0);else{var g=f.elements.filter(function(e){return v(e.propertyName||e.name)});g.length<f.elements.length&&(f=g.length?e.updateNamedImports(f,g):void 0)}(p||f)&&l.push(i(d,p,f))}else l.push(d)}return l;function v(n){return s&&n.text===o||e.FindAllReferences.Core.isSymbolReferencedInFile(n,a,t)}}(t,n,c)):t});0===p.length?u.deleteNode(n,t[0]):u.replaceNodeWithNodes(n,t[0],p,{useNonAdjustedStartPosition:!1,useNonAdjustedEndPosition:!1,suffix:e.getNewLineOrDefaultFromHost(l,s.options)});for(var f=1;f<t.length;f++)u.deleteNode(n,t[f])}}},n.coalesceImports=a,n.compareModuleSpecifiers=o}(e.OrganizeImports||(e.OrganizeImports={}))}(u||(u={})),function(e){!function(n){function t(n,t){return r(e.createTextSpanFromBounds(n,t))}function r(e,n,t,r){return void 0===n&&(n=e),void 0===t&&(t=!1),void 0===r&&(r="..."),{textSpan:e,hintSpan:n,bannerText:r,autoCollapse:t}}n.collectElements=function(n,a){var i=[];return function(n,a,i){var o=40;n.forEachChild(function s(l){if(0!==o){a.throwIfCancellationRequested(),e.isDeclaration(l)&&function(n,r,a,i){var o=e.getLeadingCommentRangesOfNode(n,r);if(o){for(var s=-1,l=-1,c=0,u=0,d=o;u<d.length;u++){var m=d[u],p=m.kind,f=m.pos,g=m.end;switch(a.throwIfCancellationRequested(),p){case 2:0===c&&(s=f),l=g,c++;break;case 3:v(),i.push(t(f,g)),c=0;break;default:e.Debug.assertNever(p)}}v()}function v(){c>1&&i.push(t(s,l))}}(l,n,a,i);var c=function(n,t){switch(n.kind){case 211:if(e.isFunctionBlock(n))return o(n.parent,191!==n.parent.kind);switch(n.parent.kind){case 216:case 219:case 220:case 218:case 215:case 217:case 224:case 267:return o(n.parent);case 228:var a=n.parent;if(a.tryBlock===n)return o(n.parent);if(a.finallyBlock===n)return o(e.findChildOfKind(a,87,t));default:return r(e.createTextSpanFromNode(n,t))}case 238:return o(n.parent);case 233:case 234:case 236:case 239:return o(n);case 182:return i(n);case 181:return i(n,21)}function i(n,t){return void 0===t&&(t=17),o(n,!1,!e.isArrayLiteralExpression(n.parent),t)}function o(a,i,o,s){void 0===i&&(i=!1),void 0===o&&(o=!0),void 0===s&&(s=17);var l=e.findChildOfKind(n,s,t),c=17===s?18:22,u=e.findChildOfKind(n,c,t);if(l&&u){var d=e.createTextSpanFromBounds(o?l.getFullStart():l.getStart(t),u.getEnd());return r(d,e.createTextSpanFromNode(a,t),i)}}}(l,n);c&&i.push(c),o--,l.forEachChild(s),o++}})}(n,a,i),function(n,t){for(var a=[],i=n.getLineStarts(),o=0;o<i.length;o++){var s=i[o],l=o+1===i.length?n.getEnd():i[o+1]-1,c=n.text.substring(s,l),u=c.match(/^\s*\/\/\s*#(end)?region(?:\s+(.*))?$/);if(u&&!e.isInComment(n,s))if(u[1]){var d=a.pop();d&&(d.textSpan.length=l-d.textSpan.start,d.hintSpan.length=l-d.textSpan.start,t.push(d))}else{var m=e.createTextSpanFromBounds(n.text.indexOf("//",s),l);a.push(r(m,m,!1,u[2]||"#region"))}}}(n,i),i.sort(function(e,n){return e.textSpan.start-n.textSpan.start})}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(u||(u={})),function(e){var n;function t(e,n,t,r){return{kind:e,punctuationStripped:n,isCaseSensitive:t,camelCaseWeight:r}}function r(e){return 0===e.subWordTextChunks.length}function a(n){if(n>=65&&n<=90)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,6))return!1;var t=String.fromCharCode(n);return t===t.toUpperCase()}function i(n){if(n>=97&&n<=122)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,6))return!1;var t=String.fromCharCode(n);return t===t.toLowerCase()}function o(e,n,t){for(var r=0;r<n.length;r++){if(s(e.charCodeAt(r+t))!==n.charCodeAt(r))return!1}return!0}function s(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function c(e){return a(e)||i(e)||l(e)||95===e||36===e}function u(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:d(e)}}function d(e){return p(e,!1)}function m(e){return p(e,!0)}function p(n,t){for(var r=[],a=0,i=1;i<n.length;i++){var o=l(n.charCodeAt(i-1)),s=l(n.charCodeAt(i)),c=_(n,t,i),u=v(n,t,i,a);(f(n.charCodeAt(i-1))||f(n.charCodeAt(i))||o!==s||c||u)&&(g(n,a,i)||r.push(e.createTextSpan(a,i-a)),a=i)}return g(n,a,n.length)||r.push(e.createTextSpan(a,n.length-a)),r}function f(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 g(e,n,t){for(var r=n;r<t;r++){var a=e.charCodeAt(r);if(!f(a)||95===a||36===a)return!1}return!0}function v(e,n,t,r){if(n&&t!==r&&t+1<e.length){var o=a(e.charCodeAt(t)),s=i(e.charCodeAt(t+1));if(o&&s){for(var l=r;l<t;l++)if(!a(e.charCodeAt(l)))return!1;return!0}}return!1}function _(e,n,t){var r=a(e.charCodeAt(t-1)),i=a(e.charCodeAt(t));return n?i&&!r:i}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(n=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(i){var l=e.createMap(),d=(i=i.trim()).split(".").map(function(e){return{totalTextChunk:u(n=e.trim()),subWordTextChunks:function(e){for(var n=[],t=0,r=0,a=0;a<e.length;a++){var i=e.charCodeAt(a);c(i)?(0===r&&(t=a),r++):r>0&&(n.push(u(e.substr(t,r))),r=0)}return r>0&&n.push(u(e.substr(t,r))),n}(n)};var n}),p=0===d.length||e.forEach(d,r);return{getMatches:function(n,t){if(!f(t)){var r=_(t,e.lastOrUndefined(d));if(r&&(n=n||[],!(d.length-1>n.length))){for(var a=r,i=d.length-2,o=n.length-1;i>=0;i-=1,o-=1){var s=d[i],l=n[o],c=_(l,s);if(!c)return;e.addRange(a,c)}return a}}},getMatchesForLastSegmentOfPattern:function(n){if(!f(n))return _(n,e.lastOrUndefined(d))},patternContainsDots:d.length>1};function f(e){return p||!e}function g(e){var n=l.get(e);return n||l.set(e,n=m(e)),n}function v(r,i,s){var l=function(e,n){for(var t=e.length-n.length,r=0;r<=t;r++)if(o(e,n,r))return r;return-1}(r,i.textLowerCase);if(0===l)return i.text.length===r.length?t(n.exact,s,r===i.text):t(n.prefix,s,e.startsWith(r,i.text));var c=i.isLowerCase;if(c){if(l>0)for(var u=0,d=g(r);u<d.length;u++){var m=d[u];if(y(r,m,i.text,!0))return t(n.substring,s,y(r,m,i.text,!1))}}else if(r.indexOf(i.text)>0)return t(n.substring,s,!0);if(!c&&i.characterSpans.length>0){var p=g(r),f=h(r,p,i,!1);if(void 0!==f)return t(n.camelCase,s,!0,f);if(void 0!==(f=h(r,p,i,!0)))return t(n.camelCase,s,!1,f)}return c&&i.text.length<r.length&&l>0&&a(r.charCodeAt(l))?t(n.substring,s,!1):void 0}function _(e,n){if(!function(e){for(var n=0;n<e.length;n++){var t=e.charCodeAt(n);if(32===t||42===t)return!0}return!1}(n.totalTextChunk.text)){var t=v(e,n.totalTextChunk,!1);if(t)return[t]}for(var r,a=0,i=n.subWordTextChunks;a<i.length;a++){var o=v(e,i[a],!0);if(!o)return;(r=r||[]).push(o)}return r}function y(e,n,t,r,a){var i=a?a.start:0,o=a?a.length:t.length;if(o>n.length)return!1;if(r)for(var l=0;l<o;l++){var c=t.charCodeAt(i+l),u=e.charCodeAt(n.start+l);if(s(c)!==s(u))return!1}else for(l=0;l<o;l++)if((c=t.charCodeAt(i+l))!==(u=e.charCodeAt(n.start+l)))return!1;return!0}function h(n,t,r,i){for(var o,s,l=r.characterSpans,c=0,u=0;;){if(u===l.length){var d=0;return s&&(d+=1),0===o&&(d+=2),d}if(c===t.length)return;for(var m=t[c],p=!1;u<l.length;u++){var f=l[u];if(p&&(!a(r.text.charCodeAt(l[u-1].start))||!a(r.text.charCodeAt(l[u].start))))break;if(!y(n,m,r.text,i,f))break;p=!0,o=void 0===o?c:o,s=void 0===s||s,m=e.createTextSpan(m.start+f.length,m.length-f.length)}p||void 0===s||(s=!1),c++}}},e.breakIntoCharacterSpans=d,e.breakIntoWordSpans=m}(u||(u={})),function(e){e.preProcessFile=function(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var a,i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s=0,l=!1;function c(){var n=e.scanner.scan();return 17===n?s++:18===n&&s--,n}function u(){var n=e.scanner.getTokenValue(),t=e.scanner.getTokenPos();return{fileName:n,pos:t,end:t+n.length}}function d(){o.push(u()),m()}function m(){0===s&&(l=!0)}function p(){var n=e.scanner.getToken();return 124===n&&(129===(n=c())&&9===(n=c())&&(a||(a=[]),a.push({ref:u(),depth:s})),!0)}function f(){var n=e.scanner.getToken();if(91===n){if(19===(n=c())){if(9===(n=c()))return d(),!0}else{if(9===n)return d(),!0;if(71===n||e.isKeyword(n))if(142===(n=c())){if(9===(n=c()))return d(),!0}else if(58===n){if(v(!0))return!0}else{if(26!==n)return!0;n=c()}if(17===n){for(n=c();18!==n&&1!==n;)n=c();18===n&&142===(n=c())&&9===(n=c())&&d()}else 39===n&&118===(n=c())&&(71===(n=c())||e.isKeyword(n))&&142===(n=c())&&9===(n=c())&&d()}return!0}return!1}function g(){var n=e.scanner.getToken();if(84===n){if(m(),17===(n=c())){for(n=c();18!==n&&1!==n;)n=c();18===n&&142===(n=c())&&9===(n=c())&&d()}else if(39===n)142===(n=c())&&9===(n=c())&&d();else if(91===n&&(71===(n=c())||e.isKeyword(n))&&58===(n=c())&&v(!0))return!0;return!0}return!1}function v(n){var t=n?c():e.scanner.getToken();return 133===t&&(19===(t=c())&&9===(t=c())&&d(),!0)}function _(){var n=e.scanner.getToken();if(71===n&&"define"===e.scanner.getTokenValue()){if(19!==(n=c()))return!0;if(9===(n=c())){if(26!==(n=c()))return!0;n=c()}if(21!==n)return!0;for(n=c();22!==n&&1!==n;)9===n&&d(),n=c();return!0}return!1}if(t&&function(){for(e.scanner.setText(n),c();1!==e.scanner.getToken();)p()||f()||g()||r&&(v(!1)||_())||c();e.scanner.setText(void 0)}(),e.processCommentPragmas(i,n),e.processPragmasIntoFields(i,e.noop),l){if(a)for(var y=0,h=a;y<h.length;y++){var b=h[y];o.push(b.ref)}return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,importedFiles:o,isLibFile:i.hasNoDefaultLib,ambientExternalModules:void 0}}var E=void 0;if(a)for(var T=0,S=a;T<S.length;T++)0===(b=S[T]).depth?(E||(E=[]),E.push(b.ref.fileName)):o.push(b.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,importedFiles:o,isLibFile:i.hasNoDefaultLib,ambientExternalModules:E}}}(u||(u={})),function(e){!function(n){function t(n,t,r,a,i,o){return{canRename:!0,kind:r,displayName:n,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:a,triggerSpan:function(n,t){var r=n.getStart(t),a=n.getWidth(t);9===n.kind&&(r+=1,a-=2);return e.createTextSpan(r,a)}(i,o)}}function r(n){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(n),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}n.getRenameInfo=function(n,a,i,o,s){var l=e.memoize(function(){return i(e.normalizePath(a))}),c=e.getTouchingWord(o,s,!0);return(c&&function(n){switch(n.kind){case 71:case 9:case 99:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n);default:return!1}}(c)?function(n,a,i,o){var s=a.getSymbolAtLocation(n);if(s){var l=s.declarations;if(l&&l.length>0){if(l.some(o))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(n)&&79===n.originalKeywordKind&&1536&s.parent.flags)return;var c=e.SymbolDisplay.getSymbolKind(a,s,n),u=e.isImportOrExportSpecifierName(n)||e.isStringOrNumericLiteral(n)&&146===n.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(n)):void 0,d=u||a.symbolToString(s),m=u||a.getFullyQualifiedName(s);return t(d,m,c,e.SymbolDisplay.getSymbolModifiers(s),n,i)}}else if(e.isStringLiteral(n))return o(n)?r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):t(n.text,n.text,"var","",n,i)}(c,n,o,function(n){if(!a)return!1;var t=n.getSourceFile();return i(e.normalizePath(t.fileName))===l()}):void 0)||r(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(u||(u={})),function(e){!function(n){function t(n,t,a){if(e.isCallOrNewExpression(n.parent)){var i=n.parent,o=void 0,s=void 0;if(27===n.kind||19===n.kind)o=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]}(i,n,a),e.Debug.assert(void 0!==o),s=0;else{if(!(o=e.findContainingList(n)))return;s=function(e,n){for(var t=0,r=0,a=e.getChildren();r<a.length;r++){var i=a[r];if(i===n)break;26!==i.kind&&t++}return t}(o,n)}var l=i.typeArguments&&i.typeArguments.pos===o.pos?0:1,c=function(n){var t=n.getChildren(),r=e.countWhere(t,function(e){return 26!==e.kind});t.length>0&&26===e.lastOrUndefined(t).kind&&r++;return r}(o);return 0!==s&&e.Debug.assertLessThan(s,c),{kind:l,invocation:i,argumentsSpan:function(n,t){var r=n.getFullStart(),a=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,a-r)}(o,a),argumentIndex:s,argumentCount:c}}if(13===n.kind&&187===n.parent.kind){if(e.isInsideTemplateLiteral(n,t))return r(n.parent,0,a)}else{if(14===n.kind&&187===n.parent.parent.kind){var u=(d=n.parent).parent;return e.Debug.assert(200===d.kind),r(u,s=e.isInsideTemplateLiteral(n,t)?0:1,a)}if(209===n.parent.kind&&187===n.parent.parent.parent.kind){var d,m=n.parent;u=(d=m.parent).parent;if(e.Debug.assert(200===d.kind),16===n.kind&&!e.isInsideTemplateLiteral(n,t))return;return r(u,s=function(n,t,r){if(e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(t.kind))return e.isInsideTemplateLiteral(t,r)?0:n+2;return n+1}(d.templateSpans.indexOf(m),n,t),a)}if(n.parent&&e.isJsxOpeningLikeElement(n.parent)){var p=n.parent.attributes.getFullStart(),f=e.skipTrivia(a.text,n.parent.attributes.getEnd(),!1);return{kind:3,invocation:n.parent,argumentsSpan:e.createTextSpan(p,f-p),argumentIndex:0,argumentCount:1}}}}function r(n,t,r){var a=e.isNoSubstitutionTemplateLiteral(n.template)?1:n.template.templateSpans.length+1;return 0!==t&&e.Debug.assertLessThan(t,a),{kind:2,invocation:n,argumentsSpan:function(n,t){var r=n.template,a=r.getStart(),i=r.getEnd();if(200===r.kind){var o=e.lastOrUndefined(r.templateSpans);0===o.literal.getFullWidth()&&(i=e.skipTrivia(t.text,i,!1))}return e.createTextSpan(a,i-a)}(n,r),argumentIndex:t,argumentCount:a}}function a(n,r,a){for(var i=n;272!==i.kind;i=i.parent){if(e.isFunctionBlock(i))return;(i.pos<i.parent.pos||i.end>i.parent.end)&&e.Debug.fail("Node of kind "+i.kind+" is not a subspan of its parent of kind "+i.parent.kind);var o=t(i,r,a);if(o)return o}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(n.ArgumentListKind||(n.ArgumentListKind={})),n.getSignatureHelpItems=function(n,t,r,i){var s=n.getTypeChecker(),l=e.findTokenOnLeftOfPosition(t,r);if(l){var c=a(l,r,t);if(c){i.throwIfCancellationRequested();var u=c.invocation,d=[],m=s.getResolvedSignature(u,d,c.argumentCount);return i.throwIfCancellationRequested(),d.length?o(d,m,c,s):e.isSourceFileJavaScript(t)?function(n,t){if(185===n.invocation.kind){var r=n.invocation.expression,a=e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?r.name:void 0;if(a&&a.escapedText)for(var i=t.getTypeChecker(),s=0,l=t.getSourceFiles();s<l.length;s++){var c=l[s],u=c.getNamedDeclarations(),d=u.get(a.text);if(d)for(var m=0,p=d;m<p.length;m++){var f=p[m],g=f.symbol;if(g){var v=i.getTypeOfSymbolAtLocation(g,f);if(v){var _=v.getCallSignatures();if(_&&_.length)return o(_,_[0],n,i)}}}}}}(c,n):void 0}}},n.getImmediatelyContainingArgumentInfo=t,n.getContainingArgumentInfo=a;var i=3121152;function o(n,t,r,a){var o=r.argumentCount,s=r.argumentsSpan,l=r.invocation,c=r.argumentIndex,u=0===r.kind,d=e.getInvokedExpression(l),m=a.getSymbolAtLocation(d),p=m&&e.symbolToDisplayParts(a,m,void 0,void 0),f=e.createPrinter({removeComments:!0}),g=e.map(n,function(n){var t,r,o=[],s=[];if(p&&e.addRange(o,p),u){r=!1,o.push(e.punctuationPart(27));var c=(n.target||n).typeParameters;t=c&&c.length>0?e.map(c,y):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(t){var r=n.thisParameter?[a.symbolToParameterDeclaration(n.thisParameter,l,i)]:[],o=e.createNodeArray(r.concat(e.map(n.parameters,function(e){return a.symbolToParameterDeclaration(e,l,i)})));f.writeList(1296,o,e.getSourceFileOfNode(e.getParseTreeNode(l)),t)});e.addRange(s,d)}else{r=n.hasRestParameter;var m=e.mapToDisplayParts(function(t){if(n.typeParameters&&n.typeParameters.length){var r=e.createNodeArray(e.map(n.typeParameters,function(e){return a.typeParameterToDeclaration(e,l)}));f.writeList(26896,r,e.getSourceFileOfNode(e.getParseTreeNode(l)),t)}});e.addRange(o,m),o.push(e.punctuationPart(19)),t=e.map(n.parameters,_),s.push(e.punctuationPart(20))}var g=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var t=a.getTypePredicateOfSignature(n);t?a.writeTypePredicate(t,l,void 0,e):a.writeType(a.getReturnTypeOfSignature(n),l,void 0,e)});return e.addRange(s,g),{isVariadic:r,prefixDisplayParts:o,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:t,documentation:n.getDocumentationComment(a),tags:n.getJsDocTags()}});0!==c&&e.Debug.assertLessThan(c,o);var v=n.indexOf(t);return e.Debug.assert(-1!==v),{items:g,applicableSpan:s,selectedItemIndex:v,argumentIndex:c,argumentCount:o};function _(n){var t=e.mapToDisplayParts(function(t){var r=a.symbolToParameterDeclaration(n,l,i);f.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(l)),t)});return{name:n.name,documentation:n.getDocumentationComment(a),displayParts:t,isOptional:a.isOptionalParameter(n.valueDeclaration)}}function y(n){var t=e.mapToDisplayParts(function(t){var r=a.typeParameterToDeclaration(n,l);f.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(l)),t)});return{name:n.symbol.name,documentation:e.emptyArray,displayParts:t,isOptional:!1}}}}(e.SignatureHelp||(e.SignatureHelp={}))}(u||(u={})),function(e){function n(n){if(e.isExternalModuleReference(n))return n.parent.name;if(e.isImportDeclaration(n)){var t=n.importClause,r=n.moduleSpecifier;return t&&!t.name&&244===t.namedBindings.kind&&e.isStringLiteral(r)?t.namedBindings.name:void 0}}e.computeSuggestionDiagnostics=function(t,r){r.getSemanticDiagnostics(t);var a=r.getDiagnosticsProducingTypeChecker(),i=[];t.commonJsModuleIndicator&&i.push(e.createDiagnosticForNode(t.commonJsModuleIndicator,e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var o=e.isSourceFileJavaScript(t);if(function n(t){switch(t.kind){case 232:case 190:if(o){var r=t.symbol;r.members&&r.members.size>0&&i.push(e.createDiagnosticForNode(e.isVariableDeclaration(t.parent)?t.parent.name:t,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}}!o&&e.codefix.parameterShouldGetTypeFromJSDoc(t)&&i.push(e.createDiagnosticForNode(t.name||t,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)),t.forEachChild(n)}(t),e.getAllowSyntheticDefaultImports(r.getCompilerOptions()))for(var s=0,l=t.imports;s<l.length;s++){var c=l[s],u=n(c.parent);if(u){var d=e.getResolvedModule(t,c.text),m=d&&r.getSourceFile(d.resolvedFileName);m&&m.externalModuleIndicator&&e.isExportAssignment(m.externalModuleIndicator)&&m.externalModuleIndicator.isExportEquals&&i.push(e.createDiagnosticForNode(u,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return i.concat(a.getSuggestionDiagnostics(t))}}(u||(u={})),function(e){!function(n){function t(n,t,a){var i=r(n,t,a);if(""!==i)return i;var o=e.getCombinedLocalAndExportSymbolFlags(t);return 32&o?e.getDeclarationOfKind(t,203)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":i}function r(n,t,r){if(n.isUndefinedSymbol(t))return"var";if(n.isArgumentsSymbol(t))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(t);if(3&i)return e.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&e.isConst(t.valueDeclaration)?"const":e.forEach(t.declarations,e.isLet)?"let":a(t)?"local var":"var";if(16&i)return a(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 o=e.forEach(n.getRootSymbols(t),function(n){var t=n.getFlags();if(98311&t)return"property";e.Debug.assert(!!(8208&t))});return o||(n.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}switch(r.parent&&r.parent.kind){case 255:case 253:case 254:return 71===r.kind?"property":"JSX attribute";case 260:return"JSX attribute";default:return"property"}}return""}function a(n){return!n.parent&&e.forEach(n.declarations,function(n){if(190===n.kind)return!0;if(230!==n.kind&&232!==n.kind)return!1;for(var t=n.parent;!e.isFunctionBlock(t);t=t.parent)if(272===t.kind||238===t.kind)return!1;return!0})}n.getSymbolKind=t,n.getSymbolModifiers=function(n){var t=n&&n.declarations&&n.declarations.length>0?e.getNodeModifiers(n.declarations[0]):"",r=n&&16777216&n.flags?"optional":"";return t&&r?t+","+r:t||r},n.getSymbolDisplayPartsDocumentationAndSymbolKind=function n(a,i,o,s,l,c,u){void 0===c&&(c=e.getMeaningFromLocation(l));var d,m,p,f,g,v,_=[],y=e.getCombinedLocalAndExportSymbolFlags(i),h=r(a,i,l),b=99===l.kind&&e.isExpression(l);if(""!==h||32&y||2097152&y){"getter"!==h&&"setter"!==h||(h="property");var E=void 0;if(f=b?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(i.exportSymbol||i,l),l.parent&&183===l.parent.kind){var T=l.parent.name;(T===l||T&&0===T.getFullWidth())&&(l=l.parent)}var S=void 0;if(e.isCallOrNewExpression(l)?S=l:e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)?S=l.parent:l.parent&&e.isJsxOpeningLikeElement(l.parent)&&e.isFunctionLike(i.valueDeclaration)&&(S=l.parent),S){E=a.getResolvedSignature(S,[]);var L=186===S.kind||e.isCallExpression(S)&&97===S.expression.kind,A=L?f.getConstructSignatures():f.getCallSignatures();if(e.contains(A,E.target)||e.contains(A,E)||(E=A.length?A[0]:void 0),E){switch(L&&32&y?(h="constructor",q(f.symbol,h)):2097152&y?(z(h="alias"),_.push(e.spacePart()),L&&(_.push(e.keywordPart(94)),_.push(e.spacePart())),W(i)):q(i,h),h){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(e.punctuationPart(56)),_.push(e.spacePart()),65536&f.flags&&16&f.objectFlags||!f.symbol||(e.addRange(_,e.symbolToDisplayParts(a,f.symbol,s,void 0,5)),_.push(e.lineBreakPart())),L&&(_.push(e.keywordPart(94)),_.push(e.spacePart())),J(E,A,262144);break;default:J(E,A)}p=!0}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&y)||123===l.kind&&154===l.parent.kind){var x=l.parent;e.find(i.declarations,function(e){return e===(123===l.kind?x.parent:x)})&&(A=154===x.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),E=a.isImplementationOfOverload(x)?A[0]:a.getSignatureFromDeclaration(x),154===x.kind?(h="constructor",q(f.symbol,h)):q(157!==x.kind||2048&f.symbol.flags||4096&f.symbol.flags?i:f.symbol,h),J(E,A),p=!0)}}if(32&y&&!p&&!b&&(U(),e.getDeclarationOfKind(i,203)?z("local class"):_.push(e.keywordPart(75)),_.push(e.spacePart()),W(i),X(i,o)),64&y&&2&c&&(B(),_.push(e.keywordPart(109)),_.push(e.spacePart()),W(i),X(i,o)),524288&y&&(B(),_.push(e.keywordPart(139)),_.push(e.spacePart()),W(i),X(i,o),_.push(e.spacePart()),_.push(e.operatorPart(58)),_.push(e.spacePart()),e.addRange(_,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(i),s,8388608))),384&y&&(B(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(_.push(e.keywordPart(76)),_.push(e.spacePart())),_.push(e.keywordPart(83)),_.push(e.spacePart()),W(i)),1536&y){B();var C=(G=e.getDeclarationOfKind(i,237))&&G.name&&71===G.name.kind;_.push(e.keywordPart(C?130:129)),_.push(e.spacePart()),W(i)}if(262144&y&&2&c)if(B(),_.push(e.punctuationPart(19)),_.push(e.textPart("type parameter")),_.push(e.punctuationPart(20)),_.push(e.spacePart()),W(i),i.parent)j(),W(i.parent,s),X(i.parent,s);else{var k=e.getDeclarationOfKind(i,147);e.Debug.assert(void 0!==k),(G=k.parent)&&(e.isFunctionLikeKind(G.kind)?(j(),E=a.getSignatureFromDeclaration(G),158===G.kind?(_.push(e.keywordPart(94)),_.push(e.spacePart())):157!==G.kind&&G.name&&W(G.symbol),e.addRange(_,e.signatureToDisplayParts(a,E,o,32))):235===G.kind&&(j(),_.push(e.keywordPart(139)),_.push(e.spacePart()),W(G.symbol),X(G.symbol,o)))}if(8&y&&(h="enum member",q(i,"enum member"),271===(G=i.declarations[0]).kind)){var M=a.getConstantValue(G);void 0!==M&&(_.push(e.spacePart()),_.push(e.operatorPart(58)),_.push(e.spacePart()),_.push(e.displayPart(e.getTextOfConstantValue(M),"number"==typeof M?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&y){if(B(),!p){var D=a.getAliasedSymbol(i);if(D!==i&&D.declarations&&D.declarations.length>0){var O=D.declarations[0],R=e.getNameOfDeclaration(O);if(R){var I=e.isModuleWithStringLiteralName(O)&&e.hasModifier(O,2),N="default"!==i.name&&!I,w=n(a,D,e.getSourceFileOfNode(O),O,R,c,N?i:D);_.push.apply(_,w.displayParts),_.push(e.lineBreakPart()),v=w.documentation}}}switch(i.declarations[0].kind){case 240:_.push(e.keywordPart(84)),_.push(e.spacePart()),_.push(e.keywordPart(130));break;case 247:_.push(e.keywordPart(84)),_.push(e.spacePart()),_.push(e.keywordPart(i.declarations[0].isExportEquals?58:79));break;default:_.push(e.keywordPart(91))}_.push(e.spacePart()),W(i),e.forEach(i.declarations,function(n){if(241===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))_.push(e.spacePart()),_.push(e.operatorPart(58)),_.push(e.spacePart()),_.push(e.keywordPart(133)),_.push(e.punctuationPart(19)),_.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(t)),e.SymbolDisplayPartKind.stringLiteral)),_.push(e.punctuationPart(20));else{var r=a.getSymbolAtLocation(t.moduleReference);r&&(_.push(e.spacePart()),_.push(e.operatorPart(58)),_.push(e.spacePart()),W(r,s))}return!0}})}if(!p)if(""!==h){if(f)if(b?(B(),_.push(e.keywordPart(99))):q(i,h),"property"===h||"JSX attribute"===h||3&y||"local var"===h||b)if(_.push(e.punctuationPart(56)),_.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var P=e.mapToDisplayParts(function(n){var t=a.typeParameterToDeclaration(f,s);K().writeNode(4,t,e.getSourceFileOfNode(e.getParseTreeNode(s)),n)});e.addRange(_,P)}else e.addRange(_,e.typeToDisplayParts(a,f,s));else(16&y||8192&y||16384&y||131072&y||98304&y||"method"===h)&&(A=f.getNonNullableType().getCallSignatures()).length&&J(A[0],A)}else h=t(a,i,l);if(!d&&(d=i.getDocumentationComment(a),m=i.getJsDocTags(),0===d.length&&4&y&&i.parent&&e.forEach(i.parent.declarations,function(e){return 272===e.kind})))for(var F=0,V=i.declarations;F<V.length;F++){var G;if((G=V[F]).parent&&198===G.parent.kind){var H=a.getSymbolAtLocation(G.parent.right);if(H&&(d=H.getDocumentationComment(a),m=H.getJsDocTags(),d.length>0))break}}return 0===d.length&&v&&(d=v),{displayParts:_,documentation:d,symbolKind:h,tags:m};function K(){return g||(g=e.createPrinter({removeComments:!0})),g}function B(){_.length&&_.push(e.lineBreakPart()),U()}function U(){u&&(z("alias"),_.push(e.spacePart()))}function j(){_.push(e.spacePart()),_.push(e.keywordPart(92)),_.push(e.spacePart())}function W(n,t){u&&n===i&&(n=u);var r=e.symbolToDisplayParts(a,n,t||o,void 0,7);e.addRange(_,r)}function q(n,t){B(),t&&(z(t),n&&!e.some(n.declarations,function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name})&&(_.push(e.spacePart()),W(n)))}function z(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void _.push(e.textOrKeywordPart(n));default:return _.push(e.punctuationPart(19)),_.push(e.textOrKeywordPart(n)),void _.push(e.punctuationPart(20))}}function J(n,t,r){e.addRange(_,e.signatureToDisplayParts(a,n,s,32|r)),t.length>1&&(_.push(e.spacePart()),_.push(e.punctuationPart(19)),_.push(e.operatorPart(37)),_.push(e.displayPart((t.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),_.push(e.spacePart()),_.push(e.textPart(2===t.length?"overload":"overloads")),_.push(e.punctuationPart(20))),d=n.getDocumentationComment(a),m=n.getJsDocTags()}function X(n,t){var r=e.mapToDisplayParts(function(r){var i=a.symbolToTypeParameterDeclarations(n,t);K().writeList(26896,i,e.getSourceFileOfNode(e.getParseTreeNode(t)),r)});e.addRange(_,r)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),function(e){function n(n,t){var a=[],i=t.compilerOptions?r(t.compilerOptions,a):e.getDefaultCompilerOptions();i.isolatedModules=!0,i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,i.noLib=!0,i.lib=void 0,i.types=void 0,i.noEmit=void 0,i.noEmitOnError=void 0,i.paths=void 0,i.rootDirs=void 0,i.declaration=void 0,i.declarationDir=void 0,i.out=void 0,i.outFile=void 0,i.noResolve=!0;var o=t.fileName||(i.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,n,i.target);t.moduleName&&(s.moduleName=t.moduleName),t.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(t.renamedDependencies));var l,c,u=e.getNewLineCharacter(i),d={getSourceFile:function(n){return n===e.normalizePath(o)?s:void 0},writeFile:function(n,t){e.fileExtensionIs(n,".map")?(e.Debug.assertEqual(c,void 0,"Unexpected multiple source map outputs, file:",n),c=t):(e.Debug.assertEqual(l,void 0,"Unexpected multiple outputs, file:",n),l=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return u},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},m=e.createProgram([o],i,d);return t.reportDiagnostics&&(e.addRange(a,m.getSyntacticDiagnostics(s)),e.addRange(a,m.getOptionsDiagnostics())),m.emit(void 0,void 0,void 0,void 0,t.transformers),e.Debug.assert(void 0!==l,"Output generation failed"),{outputText:l,diagnostics:a,sourceMapText:c}}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}(u||(u={})),function(e){!function(n){!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(n.FormattingRequestKind||(n.FormattingRequestKind={}));var t=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){e.Debug.assert(void 0!==n,"currentTokenSpan is null"),e.Debug.assert(void 0!==t,"currentTokenParent is null"),e.Debug.assert(void 0!==r,"nextTokenSpan is null"),e.Debug.assert(void 0!==a,"nextTokenParent is null"),e.Debug.assert(void 0!==i,"commonParent is null"),this.currentTokenSpan=n,this.currentTokenParent=t,this.nextTokenSpan=r,this.nextTokenParent=a,this.contextNode=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,17,this.sourceFile),r=e.findChildOfKind(n,18,this.sourceFile);return!(!t||!r)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line},n}();n.FormattingContext=t}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t,r=e.createScanner(6,!1,0),a=e.createScanner(6,!1,1);!function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText"}(t||(t={})),n.getFormattingScanner=function(n,t,i,o,s){var l=1===t?a:r;l.setText(n),l.setTextPos(i);var c,u,d,m,p,f=!0,g=s({advance:function(){p=void 0,l.getStartPos()!==i?f=u&&4===e.lastOrUndefined(u).kind:l.scan(),c=void 0,u=void 0;for(var n=l.getStartPos();n<o;){var t=l.getToken();if(!e.isTrivia(t))break;l.scan();var r={pos:n,end:l.getStartPos(),kind:t};n=l.getStartPos(),c=e.append(c,r)}d=l.getStartPos()},readTokenInfo:function(n){e.Debug.assert(v());var t=function(e){switch(e.kind){case 31:case 66:case 67:case 47:case 46:return!0}return!1}(n)?1:12===n.kind?2:function(e){return 15===e.kind||16===e.kind}(n)?3:function(n){if(n.parent)switch(n.parent.kind){case 260:case 255:case 256:case 254:return e.isKeyword(n.kind)||71===n.kind}return!1}(n)?4:10===n.kind?5:0;if(p&&t===m)return _(p,n);l.getStartPos()!==d&&(e.Debug.assert(void 0!==p),l.setTextPos(d),l.scan());var r=function(n,t){var r,a=l.getToken();switch(m=0,t){case 1:if(29===a){m=1;var i=l.reScanGreaterToken();return e.Debug.assert(n.kind===i),i}break;case 2:if(41===(r=a)||63===r){m=2;var i=l.reScanSlashToken();return e.Debug.assert(n.kind===i),i}break;case 3:if(18===a)return m=3,l.reScanTemplateToken();break;case 4:return m=4,l.scanJsxIdentifier();case 5:return m=5,l.reScanJsxToken();case 0:break;default:e.Debug.assertNever(t)}return a}(n,t),a={pos:l.getStartPos(),end:l.getTextPos(),kind:r};for(u&&(u=void 0);l.getStartPos()<o&&(r=l.scan(),e.isTrivia(r));){var i={pos:l.getStartPos(),end:l.getTextPos(),kind:r};if(u||(u=[]),u.push(i),4===r){l.scan();break}}return _(p={leadingTrivia:c,trailingTrivia:u,token:a},n)},isOnToken:v,getCurrentLeadingTrivia:function(){return c},lastTrailingTriviaWasNewLine:function(){return f},skipToEndOf:function(e){l.setTextPos(e.end),d=l.getStartPos(),m=void 0,p=void 0,f=!1,c=void 0,u=void 0}});return p=void 0,l.setText(void 0),g;function v(){var n=p?p.token.kind:l.getToken();return(p?p.token.pos:l.getStartPos())<o&&1!==n&&!e.isTrivia(n)}function _(n,t){return e.isToken(t)&&n.token.kind!==t.kind&&(n.token.kind=t.kind),n}}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){n.anyContext=e.emptyArray,function(e){e[e.Ignore=1]="Ignore",e[e.Space=2]="Space",e[e.NewLine=4]="NewLine",e[e.Delete=8]="Delete"}(n.RuleAction||(n.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(n.RuleFlags||(n.RuleFlags={}))}(e.formatting||(e.formatting={}))}(u||(u={})),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){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!!n.options[e]}}function s(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 c(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]||n.TokensAreOnSameLine()}}function u(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!!n.options[e]}}function d(e){return 218===e.contextNode.kind}function m(e){return!d(e)}function p(e){switch(e.contextNode.kind){case 198:case 199:case 170:case 206:case 250:case 246:case 160:case 168:case 169:return!0;case 180:case 235:case 241:case 230:case 148:case 271:case 151:case 150:return 58===e.currentTokenSpan.kind||58===e.nextTokenSpan.kind;case 219:case 147:return 92===e.currentTokenSpan.kind||92===e.nextTokenSpan.kind;case 220:return 144===e.currentTokenSpan.kind||144===e.nextTokenSpan.kind}return!1}function f(e){return!p(e)}function g(e){return!v(e)}function v(n){var t=n.contextNode.kind;return 151===t||150===t||148===t||230===t||e.isFunctionLikeKind(t)}function _(e){return 199===e.contextNode.kind||170===e.contextNode.kind}function y(e){return e.TokensAreOnSameLine()||S(e)}function h(e){return 178===e.contextNode.kind||176===e.contextNode.kind||function(e){return T(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function b(e){return S(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function E(e){return T(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function T(e){return L(e.contextNode)}function S(e){return L(e.nextTokenParent)}function L(e){if(k(e))return!0;switch(e.kind){case 211:case 239:case 182:case 238:return!0}return!1}function A(e){switch(e.contextNode.kind){case 232:case 153:case 152:case 155:case 156:case 157:case 190:case 154:case 191:case 234:return!0}return!1}function x(e){return 232===e.contextNode.kind||190===e.contextNode.kind}function C(e){return k(e.contextNode)}function k(e){switch(e.kind){case 233:case 203:case 234:case 236:case 165:case 237:case 248:case 249:case 242:case 245:return!0}return!1}function M(e){switch(e.currentTokenParent.kind){case 233:case 237:case 236:case 267:case 238:case 225:return!0;case 211:var n=e.currentTokenParent.parent;if(!n||191!==n.kind&&190!==n.kind)return!0}return!1}function D(e){switch(e.contextNode.kind){case 215:case 225:case 218:case 219:case 220:case 217:case 228:case 216:case 224:case 267:return!0;default:return!1}}function O(e){return 182===e.contextNode.kind}function R(e){return function(e){return 185===e.contextNode.kind}(e)||function(e){return 186===e.contextNode.kind}(e)}function I(e){return 26!==e.currentTokenSpan.kind}function N(e){return 22!==e.nextTokenSpan.kind}function w(e){return 191===e.contextNode.kind}function P(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind}function F(e){return 253!==e.contextNode.kind&&257!==e.contextNode.kind}function V(e){return 263===e.contextNode.kind||262===e.contextNode.kind}function G(e){return 260===e.nextTokenParent.kind}function H(e){return 260===e.contextNode.kind}function K(e){return 254===e.contextNode.kind}function B(e){return!A(e)&&!S(e)}function U(e){return e.TokensAreOnSameLine()&&e.contextNode.decorators&&j(e.currentTokenParent)&&!j(e.nextTokenParent)}function j(n){for(;e.isExpressionNode(n);)n=n.parent;return 149===n.kind}function W(e){return 231===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function q(e){return 2!==e.formattingRequestKind}function z(e){return 237===e.contextNode.kind}function J(e){return 165===e.contextNode.kind}function X(e){return 158===e.contextNode.kind}function Y(e,n){if(27!==e.kind&&29!==e.kind)return!1;switch(n.kind){case 161:case 188:case 235:case 233:case 203:case 234:case 232:case 190:case 191:case 153:case 152:case 157:case 158:case 185:case 186:case 205:return!0;default:return!1}}function Q(e){return Y(e.currentTokenSpan,e.currentTokenParent)||Y(e.nextTokenSpan,e.nextTokenParent)}function Z(e){return 188===e.contextNode.kind}function $(e){return 105===e.currentTokenSpan.kind&&194===e.currentTokenParent.kind}function ee(e){return 201===e.contextNode.kind&&void 0!==e.contextNode.expression}function ne(e){return 207===e.contextNode.kind}n.getAllRules=function(){for(var a=[],T=0;T<=144;T++)a.push(T);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},j=r(a.concat([3])),Y=i(72,144),te=i(27,70),re=[92,93,144,118,127],ae=[71].concat(e.typeKeywords),ie=j,oe=r([71,3,75,84,91]),se=r([20,3,81,102,87,82]),le=[t("IgnoreBeforeComment",k,[2,3],n.anyContext,1),t("IgnoreAfterLineComment",2,k,n.anyContext,1),t("NotSpaceBeforeColon",k,56,[P,f,g],8),t("SpaceAfterColon",56,k,[P,f],2),t("NoSpaceBeforeQuestionMark",k,55,[P,f],8),t("SpaceAfterQuestionMarkInConditionalOperator",55,k,[P,_],2),t("NoSpaceAfterQuestionMark",55,k,[P],8),t("NoSpaceBeforeDot",k,23,[P],8),t("NoSpaceAfterDot",23,k,[P],8),t("NoSpaceAfterUnaryPrefixOperator",[43,44,52,51],[8,71,19,21,17,99,94],[P,f],8),t("NoSpaceAfterUnaryPreincrementOperator",43,[71,19,99,94],[P],8),t("NoSpaceAfterUnaryPredecrementOperator",44,[71,19,99,94],[P],8),t("NoSpaceBeforeUnaryPostincrementOperator",[71,20,22,94],43,[P],8),t("NoSpaceBeforeUnaryPostdecrementOperator",[71,20,22,94],44,[P],8),t("SpaceAfterPostincrementWhenFollowedByAdd",43,37,[P,p],2),t("SpaceAfterAddWhenFollowedByUnaryPlus",37,37,[P,p],2),t("SpaceAfterAddWhenFollowedByPreincrement",37,43,[P,p],2),t("SpaceAfterPostdecrementWhenFollowedBySubtract",44,38,[P,p],2),t("SpaceAfterSubtractWhenFollowedByUnaryMinus",38,38,[P,p],2),t("SpaceAfterSubtractWhenFollowedByPredecrement",38,44,[P,p],2),t("NoSpaceAfterCloseBrace",18,[26,25],[P],8),t("NewLineBeforeCloseBraceInBlockContext",j,18,[E],4),t("SpaceAfterCloseBrace",18,L(20),[P,M],2),t("SpaceBetweenCloseBraceAndElse",18,82,[P],2),t("SpaceBetweenCloseBraceAndWhile",18,106,[P],2),t("NoSpaceBetweenEmptyBraceBrackets",17,18,[P,O],8),t("SpaceAfterConditionalClosingParen",20,21,[D],2),t("NoSpaceBetweenFunctionKeywordAndStar",89,39,[x],8),t("SpaceAfterStarInGeneratorDeclaration",39,[71,19],[x],2),t("SpaceAfterFunctionInFuncDecl",89,k,[A],2),t("NewLineAfterOpenBraceInBlockContext",17,k,[E],4),t("SpaceAfterGetSetInMember",[125,136],71,[A],2),t("NoSpaceBetweenYieldKeywordAndStar",116,39,[P,ee],8),t("SpaceBetweenYieldOrYieldStarAndOperand",[116,39],k,[P,ee],2),t("NoSpaceBetweenReturnAndSemicolon",96,25,[P],8),t("SpaceAfterCertainKeywords",[104,100,94,80,96,103,121],k,[P],2),t("SpaceAfterLetConstInVariableDeclaration",[110,76],k,[P,W],2),t("NoSpaceBeforeOpenParenInFuncCall",k,19,[P,R,I],8),t("SpaceBeforeBinaryKeywordOperator",k,re,[P,p],2),t("SpaceAfterBinaryKeywordOperator",re,k,[P,p],2),t("SpaceAfterVoidOperator",105,k,[P,$],2),t("SpaceBetweenAsyncAndOpenParen",120,19,[w,P],2),t("SpaceBetweenAsyncAndFunctionKeyword",120,89,[P],2),t("NoSpaceBetweenTagAndTemplateString",71,[13,14],[P],8),t("SpaceBeforeJsxAttribute",k,71,[G,P],2),t("SpaceBeforeSlashInJsxOpeningElement",k,41,[K,P],2),t("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",41,29,[K,P],8),t("NoSpaceBeforeEqualInJsxAttribute",k,58,[H,P],8),t("NoSpaceAfterEqualInJsxAttribute",58,k,[H,P],8),t("NoSpaceAfterModuleImport",[129,133],19,[P],8),t("SpaceAfterCertainTypeScriptKeywords",[117,75,124,79,83,84,85,125,108,91,109,129,130,112,114,113,132,136,115,139,142,128,126],k,[P],2),t("SpaceBeforeCertainTypeScriptKeywords",k,[85,108,142],[P],2),t("SpaceAfterModuleName",9,17,[z],2),t("SpaceBeforeArrow",k,36,[P],2),t("SpaceAfterArrow",36,k,[P],2),t("NoSpaceAfterEllipsis",24,71,[P],8),t("NoSpaceAfterOptionalParameters",55,[20,26],[P,f],8),t("NoSpaceBetweenEmptyInterfaceBraceBrackets",17,18,[P,J],8),t("NoSpaceBeforeOpenAngularBracket",ae,27,[P,Q],8),t("NoSpaceBetweenCloseParenAndAngularBracket",20,27,[P,Q],8),t("NoSpaceAfterOpenAngularBracket",27,k,[P,Q],8),t("NoSpaceBeforeCloseAngularBracket",k,29,[P,Q],8),t("NoSpaceAfterCloseAngularBracket",29,[19,21,29,26],[P,Q],8),t("SpaceBeforeAt",[20,71],57,[P],2),t("NoSpaceAfterAt",57,k,[P],8),t("SpaceAfterDecorator",k,[117,71,84,79,75,115,114,112,113,125,136,21,39],[U],2),t("NoSpaceBeforeNonNullAssertionOperator",k,51,[P,ne],8),t("NoSpaceAfterNewKeywordOnConstructorSignature",94,19,[P,X],8)],ce=[t("SpaceAfterConstructor",123,19,[o("insertSpaceAfterConstructor"),P],2),t("NoSpaceAfterConstructor",123,19,[l("insertSpaceAfterConstructor"),P],8),t("SpaceAfterComma",26,k,[o("insertSpaceAfterCommaDelimiter"),P,F,N],2),t("NoSpaceAfterComma",26,k,[l("insertSpaceAfterCommaDelimiter"),P,F],8),t("SpaceAfterAnonymousFunctionKeyword",89,19,[o("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),A],2),t("NoSpaceAfterAnonymousFunctionKeyword",89,19,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),A],8),t("SpaceAfterKeywordInControl",Y,19,[o("insertSpaceAfterKeywordsInControlFlowStatements"),D],2),t("NoSpaceAfterKeywordInControl",Y,19,[l("insertSpaceAfterKeywordsInControlFlowStatements"),D],8),t("SpaceAfterOpenParen",19,k,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),P],2),t("SpaceBeforeCloseParen",k,20,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),P],2),t("SpaceBetweenOpenParens",19,19,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),P],2),t("NoSpaceBetweenParens",19,20,[P],8),t("NoSpaceAfterOpenParen",19,k,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),P],8),t("NoSpaceBeforeCloseParen",k,20,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),P],8),t("SpaceAfterOpenBracket",21,k,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),P],2),t("SpaceBeforeCloseBracket",k,22,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),P],2),t("NoSpaceBetweenBrackets",21,22,[P],8),t("NoSpaceAfterOpenBracket",21,k,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),P],8),t("NoSpaceBeforeCloseBracket",k,22,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),P],8),t("SpaceAfterOpenBrace",17,k,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),h],2),t("SpaceBeforeCloseBrace",k,18,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),h],2),t("NoSpaceBetweenEmptyBraceBrackets",17,18,[P,O],8),t("NoSpaceAfterOpenBrace",17,k,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),P],8),t("NoSpaceBeforeCloseBrace",k,18,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),P],8),t("SpaceAfterTemplateHeadAndMiddle",[14,15],k,[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),P],2),t("SpaceBeforeTemplateMiddleAndTail",k,[15,16],[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),P],2),t("NoSpaceAfterTemplateHeadAndMiddle",[14,15],k,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),P],8),t("NoSpaceBeforeTemplateMiddleAndTail",k,[15,16],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),P],8),t("SpaceAfterOpenBraceInJsxExpression",17,k,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),P,V],2),t("SpaceBeforeCloseBraceInJsxExpression",k,18,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),P,V],2),t("NoSpaceAfterOpenBraceInJsxExpression",17,k,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),P,V],8),t("NoSpaceBeforeCloseBraceInJsxExpression",k,18,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),P,V],8),t("SpaceAfterSemicolonInFor",25,k,[o("insertSpaceAfterSemicolonInForStatements"),P,d],2),t("NoSpaceAfterSemicolonInFor",25,k,[l("insertSpaceAfterSemicolonInForStatements"),P,d],8),t("SpaceBeforeBinaryOperator",k,te,[o("insertSpaceBeforeAndAfterBinaryOperators"),P,p],2),t("SpaceAfterBinaryOperator",te,k,[o("insertSpaceBeforeAndAfterBinaryOperators"),P,p],2),t("NoSpaceBeforeBinaryOperator",k,te,[l("insertSpaceBeforeAndAfterBinaryOperators"),P,p],8),t("NoSpaceAfterBinaryOperator",te,k,[l("insertSpaceBeforeAndAfterBinaryOperators"),P,p],8),t("SpaceBeforeOpenParenInFuncDecl",k,19,[o("insertSpaceBeforeFunctionParenthesis"),P,A],2),t("NoSpaceBeforeOpenParenInFuncDecl",k,19,[l("insertSpaceBeforeFunctionParenthesis"),P,A],8),t("NewLineBeforeOpenBraceInControl",se,17,[o("placeOpenBraceOnNewLineForControlBlocks"),D,b],4,1),t("NewLineBeforeOpenBraceInFunction",ie,17,[o("placeOpenBraceOnNewLineForFunctions"),A,b],4,1),t("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",oe,17,[o("placeOpenBraceOnNewLineForFunctions"),C,b],4,1),t("SpaceAfterTypeAssertion",29,k,[o("insertSpaceAfterTypeAssertion"),P,Z],2),t("NoSpaceAfterTypeAssertion",29,k,[l("insertSpaceAfterTypeAssertion"),P,Z],8),t("SpaceBeforeTypeAnnotation",k,56,[o("insertSpaceBeforeTypeAnnotation"),P,v],2),t("NoSpaceBeforeTypeAnnotation",k,56,[l("insertSpaceBeforeTypeAnnotation"),P,v],8)],ue=[t("NoSpaceBeforeSemicolon",k,25,[P],8),t("SpaceBeforeOpenBraceInControl",se,17,[c("placeOpenBraceOnNewLineForControlBlocks"),D,q,y],2,1),t("SpaceBeforeOpenBraceInFunction",ie,17,[c("placeOpenBraceOnNewLineForFunctions"),A,S,q,y],2,1),t("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",oe,17,[c("placeOpenBraceOnNewLineForFunctions"),C,q,y],2,1),t("NoSpaceBeforeComma",k,26,[P],8),t("NoSpaceBeforeOpenBracket",L(120,73),21,[P],8),t("NoSpaceAfterCloseBracket",22,k,[P,B],8),t("SpaceAfterSemicolon",25,k,[P],2),t("SpaceBetweenForAndAwaitKeyword",88,121,[P],2),t("SpaceBetweenStatements",[20,81,82,73],k,[P,F,m],2),t("SpaceAfterTryFinally",[102,87],17,[P],2)];return le.concat(ce,ue)}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t;function r(n,t){return e.Debug.assert(n<=144&&t<=144,"Must compute formatting context from tokens"),n*s+t}n.getFormatContext=function(a){return{options:a,getRule:(void 0===t&&(i=n.getAllRules(),o=function(e){for(var n=new Array(s*s),t=new Array(n.length),a=0,i=e;a<i.length;a++)for(var o=i[a],c=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,u=0,d=o.leftTokenRange.tokens;u<d.length;u++)for(var m=d[u],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var g=f[p],v=r(m,g),_=n[v];void 0===_&&(_=n[v]=[]),l(_,o.rule,c,t,v)}return n}(i),t=function(n){var t=o[r(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];return t&&e.find(t,function(t){return e.every(t.context,function(e){return e(n)})})}),t)};var i,o};var a,i=5,o=31,s=145;function l(t,r,s,l,c){var u,d,m,p=1===r.action?s?a.IgnoreRulesSpecific:a.IgnoreRulesAny:r.context!==n.anyContext?s?a.ContextRulesSpecific:a.ContextRulesAny:s?a.NoContextRulesSpecific:a.NoContextRulesAny,f=l[c]||0;t.splice(function(e,n){for(var t=0,r=0;r<=n;r+=i)t+=e&o,e>>=i;return t}(f,p),0,r),l[c]=(m=1+((u=f)>>(d=p)&o),e.Debug.assert((m&o)===m,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(o<<d)|m<<d)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*i]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*i]="ContextRulesSpecific",e[e.ContextRulesAny=3*i]="ContextRulesAny",e[e.NoContextRulesSpecific=4*i]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*i]="NoContextRulesAny"}(a||(a={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t,r,a,i,o;function s(n,t,r){var a=e.findPrecedingToken(n,r);return a&&a.kind===t&&n===a.getEnd()?a:void 0}function l(e){for(var n=e;n&&n.parent&&n.parent.end===e.end&&!c(n.parent,n);)n=n.parent;return n}function c(n,t){switch(n.kind){case 233:case 234:return e.rangeContainsRange(n.members,t);case 237:var r=n.body;return r&&238===r.kind&&e.rangeContainsRange(r.statements,t);case 272:case 211:case 238:return e.rangeContainsRange(n.statements,t);case 267:return e.rangeContainsRange(n.block.statements,t)}return!1}function u(n,t,r,a){return n?d({pos:e.getLineStartPositionForPosition(n.getStart(t),t),end:n.end},t,r,a):[]}function d(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(e,a))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,l,c,u){var d,m,f,g,v,_=s.options,y=s.getRule,h=new n.FormattingContext(u,l,_),b=[];if(o.advance(),o.isOnToken()){var E=u.getLineAndCharacterOfPosition(r.getStart(u)).line,T=E;r.decorators&&(T=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),function r(a,i,s,l,m,p){if(!e.rangeOverlapsWithStartEnd(t,a.getStart(u),a.getEnd()))return;var f=A(a,s,m,p);var y=i;e.forEachChild(a,function(e){b(e,-1,a,f,s,l,!1)},function(n){!function(n,t,r,i){e.Debug.assert(e.isNodeArray(n));var s=function(e,n){switch(e.kind){case 154:case 232:case 190:case 153:case 152:case 191:if(e.typeParameters===n)return 27;if(e.parameters===n)return 19;break;case 185:case 186:if(e.typeArguments===n)return 27;if(e.arguments===n)return 19;break;case 161:if(e.typeArguments===n)return 27}return 0}(t,n),l=function(e){switch(e){case 19:return 20;case 27:return 29}return 0}(s),c=i,d=r;if(0!==s)for(;o.isOnToken();){var m=o.readTokenInfo(t);if(m.token.end>n.pos)break;if(m.token.kind===s){d=u.getLineAndCharacterOfPosition(m.token.pos).line;var p=L(m.token,d,-1,t,i,r);c=A(t,r,p.indentation,p.delta),E(m,t,c,t)}else E(m,t,i,t)}for(var f=-1,g=0;g<n.length;g++){var v=n[g];f=b(v,f,a,c,d,d,!0,0===g)}if(0!==l&&o.isOnToken()){var m=o.readTokenInfo(t);m.token.kind===l&&e.rangeContainsRange(t,m.token)&&E(m,t,c,t)}}(n,a,s,f)});for(;o.isOnToken();){var h=o.readTokenInfo(a);if(h.token.end>a.end)break;E(h,a,f,a)}function b(i,s,l,c,d,m,p,f){var g=i.getStart(u),v=u.getLineAndCharacterOfPosition(g).line,h=v;i.decorators&&(h=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(i,u)).line);var b=-1;if(p&&e.rangeContainsRange(t,l)&&-1!==(b=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,l=e.getLineStartPositionForPosition(t,u),c=n.SmartIndenter.findFirstNonWhitespaceColumn(l,t,u,_);if(s!==a||t===c){var d=n.SmartIndenter.getBaseIndentation(_);return d>c?d:c}}return-1}(g,i.end,d,t,s))&&(s=b),!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();){var T=o.readTokenInfo(a);if(T.token.end>g)break;E(T,a,c,a)}if(!o.isOnToken())return s;if(e.isToken(i)&&10!==i.kind){var T=o.readTokenInfo(i);return e.Debug.assert(T.token.end===i.end,"Token end is child end"),E(T,a,c,i),s}var S=149===i.kind?v:m,A=L(i,v,b,a,c,S);if(r(i,y,v,h,A.indentation,A.delta),10===i.kind){var x={pos:i.getStart(),end:i.getEnd()};M(x,A.indentation,!0,!1)}return y=a,f&&181===l.kind&&-1===s&&(s=A.indentation),s}function E(n,r,a,i){e.Debug.assert(e.rangeContainsRange(r,n.token));var s=o.lastTrailingTriviaWasNewLine(),l=!1;n.leadingTrivia&&x(n.leadingTrivia,r,y,a);var m=0,p=e.rangeContainsRange(t,n.token),f=u.getLineAndCharacterOfPosition(n.token.pos);if(p){var _=c(n.token),h=d;if(m=C(n.token,f,r,y,a),!_)if(0===m){var b=h&&u.getLineAndCharacterOfPosition(h.end).line;l=s&&f.line!==b}else l=1===m}if(n.trailingTrivia&&x(n.trailingTrivia,r,y,a),l){var E=p&&!c(n.token)?a.getIndentationForToken(f.line,n.token.kind,i):-1,T=!0;if(n.leadingTrivia)for(var S=a.getIndentationForComment(n.token.kind,E,i),L=0,A=n.leadingTrivia;L<A.length;L++){var D=A[L],O=e.rangeContainsRange(t,D);switch(D.kind){case 3:O&&M(D,S,!T),T=!1;break;case 2:T&&O&&k(D.pos,S,!1),T=!1;break;case 4:T=!0}}-1!==E&&T&&(k(n.token.pos,E,1===m),g=f.line,v=E)}o.advance(),y=r}}(r,r,E,T,a,i)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(x(S,r,r,void 0),function(){var e=d?d.end:t.pos,n=u.getLineAndCharacterOfPosition(e).line,r=u.getLineAndCharacterOfPosition(t.end).line;D(n,r+1,d)}())}return b;function L(e,t,r,a,i,o){var s=n.SmartIndenter.shouldIndentChildNode(e)?_.indentSize:0;return o===t?{indentation:t===g?v:i.getIndentation(),delta:Math.min(_.indentSize,i.getDelta(e)+s)}:-1===r?19===e.kind&&t===g?{indentation:v,delta:i.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:r,delta:s}}function A(t,r,a,i){return{getIndentationForComment:function(e,n,t){switch(e){case 18:case 22:case 20:return a+o(t)}return-1!==n?n:a},getIndentationForToken:function(n,i,s){return function(n,a,i){switch(a){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(i.kind){case 255:case 256:case 254:return!1}break;case 21:case 22:if(176!==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 233:return 75;case 234:return 109;case 232:return 89;case 236:return 236;case 155:return 125;case 156:return 136;case 153:if(n.asteriskToken)return 39;case 151:case 148:return e.getNameOfDeclaration(n).kind}}(t))}(n,i,s)?a+o(s):a},getIndentation:function(){return a},getDelta:o,recomputeIndentation:function(e){t.parent&&n.SmartIndenter.shouldIndentChildNode(t.parent,t)&&(a+=e?_.indentSize:-_.indentSize,i=n.SmartIndenter.shouldIndentChildNode(t)?_.indentSize:0)}};function o(e){return n.SmartIndenter.nodeWillIndentChild(t,e,!0)?i:0}}function x(n,r,a,i){for(var o=0,s=n;o<s.length;o++){var l=s[o];if(e.isComment(l.kind)&&e.rangeContainsRange(t,l))C(l,u.getLineAndCharacterOfPosition(l.pos),r,a,i)}}function C(n,r,a,i,o){var s=0;c(n)||(d?s=function(n,t,r,a,i,o,s,l){h.updateContext(a,o,n,r,s);var c,d=y(h),m=0;if(d){switch(m=function(e,n,t,r,a){var i=a!==t;switch(e.action){case 1:return 0;case 8:if(n.end!==r.pos)return R(n.end,r.pos-n.end),i?2:0;break;case 4:if(1!==e.flags&&t!==a)return 0;var o=a-t;if(1!==o)return I(n.end,r.pos-n.end,_.newLineCharacter),i?0:1;break;case 2:if(1!==e.flags&&t!==a)return 0;var s=r.pos-n.end;if(1!==s||32!==u.text.charCodeAt(n.end))return I(n.end,r.pos-n.end," "),i?2:0}return 0}(d,a,i,n,t)){case 2:r.getStart(u)===n.pos&&l.recomputeIndentation(!1);break;case 1:r.getStart(u)===n.pos&&l.recomputeIndentation(!0);break;default:e.Debug.assert(0===m)}c=!(8&d.action)&&1!==d.flags}else c=!0;t!==i&&c&&D(i,t,a);return m}(n,r.line,a,d,f,m,i,o):D(u.getLineAndCharacterOfPosition(t.pos).line,r.line));return d=n,m=a,f=r.line,s}function k(n,t,r){var a=p(t,_);if(r)I(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+=_.tabSize-t%_.tabSize:t++;return t}(o,i.character)||function(e,n){return e!==u.text.substr(n,e.length)}(a,o))&&I(o,i.character,a)}}function M(t,r,a,i){void 0===i&&(i=!0);var o,s=u.getLineAndCharacterOfPosition(t.pos).line,l=u.getLineAndCharacterOfPosition(t.end).line;if(s!==l){o=[];for(var c=t.pos,d=s;d<l;d++){var m=e.getEndLinePosition(d,u);o.push({pos:c,end:m}),c=e.getStartPositionOfLine(d+1,u)}i&&o.push({pos:c,end:t.end});var f=e.getStartPositionOfLine(s,u),g=n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,o[0].pos,u,_);if(r!==g.column){var v=0;a&&(v=1,s++);for(var y=r-g.column,h=v;h<o.length;h++,s++){var b=e.getStartPositionOfLine(s,u),E=0===h?g:n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(o[h].pos,o[h].end,u,_),T=E.column+y;if(T>0){var S=p(T,_);I(b,E.character,S)}else R(b,E.character)}}}else a||k(t.pos,r,!1)}function D(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=O(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),R(s,o+1-s))}}}function O(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function R(n,t){t&&b.push(e.createTextChangeFromStartLength(n,t,""))}function I(n,t,r){(t||r)&&b.push(e.createTextChangeFromStartLength(n,t,r))}}function p(n,t){if((!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},i=o=void 0),t.convertTabsToSpaces){var r=void 0,s=Math.floor(n/t.indentSize),l=n%t.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",t.indentSize*s),o[s]=r):r=o[s],l?r+e.repeatString(" ",l):r}var c=Math.floor(n/t.tabSize),u=n-c*t.tabSize,d=void 0;return i||(i=[]),void 0===i[c]?i[c]=d=e.repeatString("\t",c):d=i[c],u?d+e.repeatString(" ",u):d}!function(e){e[e.Unknown=-1]="Unknown"}(t||(t={})),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--,d({pos:e.getStartPositionOfLine(a-1,t),end:i+1},t,r,2)},n.formatOnSemicolon=function(e,n,t){return u(l(s(e,25,n)),n,t,3)},n.formatOnOpeningCurly=function(n,t,r){var a=s(n,17,t);if(!a)return[];var i=l(a.parent);return d({pos:e.getLineStartPositionForPosition(i.getStart(t),t),end:n},t,r,4)},n.formatOnClosingCurly=function(e,n,t){return u(l(s(e,18,n)),n,t,5)},n.formatDocument=function(e,n){return d({pos:0,end:e.text.length},e,n,0)},n.formatSelection=function(n,t,r,a){return d({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)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),n.getRangeOfEnclosingComment=function(n,t,r,a,i,o){if(void 0===i&&(i=e.getTokenAtPosition(n,t,!1)),!(i.getStart(n)<=t&&t<i.getEnd())){void 0===a&&(a=e.findPrecedingToken(t,n));var s=a&&e.getTrailingCommentRanges(n.text,a.end),l=e.getLeadingCommentRangesOfNode(i,n),c=s&&l?s.concat(l):s||l;if(c)for(var u=0,d=c;u<d.length;u++){var m=d[u];if(m.pos<t&&t<m.end||t===m.end&&(2===m.kind||t===n.getFullWidth()))return 3!==m.kind&&r||o&&!o(m)?void 0:m}}},n.getIndentationString=p}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){!function(t){var r,a;function i(e){return e.baseIndentSize||0}function o(e,n,t,r,a,o,c){for(var u=e.parent;u;){var p=!0;if(t){var f=e.getStart(a);p=f<t.pos||f>t.end}if(p)if(-1!==(h=g(e,a,c)))return h+r;var _=s(u,e,a),y=_.line===n.line||m(u,e,n.line,a);if(p){var h;if(-1!==(h=l(e,u,n,y,a,c)))return h+r;if(-1!==(h=v(e,a,c)))return h+r}T(u,e,o)&&!y&&(r+=c.indentSize);var b=d(u,e,n.line,a);u=(e=u).parent,n=b?a.getLineAndCharacterOfPosition(e.getStart(a)):_}return r+i(c)}function s(e,n,t){var r=f(n,t),a=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(a)}function l(n,t,r,a,i,o){return(e.isDeclaration(n)||e.isStatementButNotDeclaration(n))&&(272===t.kind||!a)?y(r,i,o):-1}function c(n,t,r,a){var i=e.findNextToken(n,t);return i?17===i.kind?1:18===i.kind&&r===u(i,a).line?2:0:0}function u(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function d(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(215===n.kind&&n.elseStatement===t){var i=e.findChildOfKind(n,82,a);return e.Debug.assert(void 0!==i),u(i,a).line===r}return!1}function p(n,t,r){return n&&e.rangeContainsStartEnd(n,t,r)?n:void 0}function f(e,n){if(e.parent)switch(e.parent.kind){case 161:return p(e.parent.typeArguments,e.getStart(n),e.getEnd());case 182:return e.parent.properties;case 181:return e.parent.elements;case 232:case 190:case 191:case 153:case 152:case 157:case 154:case 163:case 158:var t=e.getStart(n);return p(e.parent.typeParameters,t,e.getEnd())||p(e.parent.parameters,t,e.getEnd());case 233:return p(e.parent.typeParameters,e.getStart(n),e.getEnd());case 186:case 185:t=e.getStart(n);return p(e.parent.typeArguments,t,e.getEnd())||p(e.parent.arguments,t,e.getEnd());case 231:return p(e.parent.declarations,e.getStart(n),e.getEnd());case 245:case 249:return p(e.parent.elements,e.getStart(n),e.getEnd())}}function g(e,n,t){var r=f(e,n);if(r){var a=r.indexOf(e);if(-1!==a)return _(r,a,n,t)}return-1}function v(n,t,r){if(20===n.kind)return-1;if(n.parent&&e.isCallOrNewExpression(n.parent)&&n.parent.expression!==n){var a=n.parent.expression,i=function(e){for(;;)switch(e.kind){case 185:case 186:case 183:case 184:e=e.expression;break;default:return e}}(a);if(a===i)return-1;var o=t.getLineAndCharacterOfPosition(a.end),s=t.getLineAndCharacterOfPosition(i.end);return o.line===s.line?-1:y(o,t,r)}return-1}function _(n,t,r,a){e.Debug.assert(t>=0&&t<n.length);for(var i=u(n[t],r),o=t-1;o>=0;o--)if(26!==n[o].kind){if(r.getLineAndCharacterOfPosition(n[o].end).line!==i.line)return y(i,r,a);i=u(n[o],r)}return-1}function y(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,n,t)}function h(n,t,r,a){for(var i=0,o=0,s=n;s<t;s++){var l=r.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(l))break;9===l?o+=a.tabSize+o%a.tabSize:o++,i++}return{column:o,character:i}}function b(e,n,t,r){return h(e,n,t,r).column}function E(e,n,t){var r=n?n.kind:0;switch(e.kind){case 216:case 217:case 219:case 220:case 218:case 215:case 232:case 190:case 153:case 191:case 154:case 155:case 156:return 211!==r;case 248:return 249!==r;case 242:return 243!==r||!!n.namedBindings&&245!==n.namedBindings.kind;case 253:return 256!==r;case 257:return 259!==r}return t}function T(e,n,t){return void 0===t&&(t=!1),(function(e){switch(e){case 214:case 233:case 203:case 234:case 236:case 235:case 181:case 211:case 238:case 182:case 165:case 176:case 167:case 239:case 265:case 264:case 189:case 183:case 185:case 186:case 212:case 230:case 247:case 223:case 199:case 179:case 178:case 255:case 258:case 254:case 263:case 152:case 157:case 158:case 148:case 162:case 163:case 172:case 187:case 195:case 249:case 245:case 250:case 246:case 268:case 151:return!0}return!1}(e.kind)||E(e,n,!1))&&!(t&&n&&function(e,n){switch(e){case 223:case 227:if(211!==n.kind)return!0;var t=n.parent;return!(t&&190===t.kind||232===t.kind);case 221:case 222:return!0;default:return!1}}(n.kind,e))}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.getIndentation=function(t,r,a,s){if(void 0===s&&(s=!1),t>r.text.length)return i(a);if(a.indentStyle===e.IndentStyle.None)return 0;var l=e.findPrecedingToken(t,r),d=n.getRangeOfEnclosingComment(r,t,!0,l||null);if(d)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 b(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(i,n),l=h(s,t,n,r),c=l.column,u=l.character;return 0===c?c:42===n.text.charCodeAt(s+u)?c-1:c}(r,t,a,d);if(!l)return i(a);if(e.isStringOrRegularExpressionOrTemplateLiteral(l.kind)&&l.getStart(r)<=t&&t<l.end)return 0;var m=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 b(e.getLineStartPositionForPosition(a,n),a,n,r)}(r,t,a);if(26===l.kind&&198!==l.parent.kind){var p=function(n,t,r){var a=e.findListItemInfo(n);return a&&a.listItemIndex>0?_(a.list.getChildren(),a.listItemIndex-1,t,r):-1}(l,r,a);if(-1!==p)return p}return function(n,t,r,a,s,l){for(var d,m=r;m;){if(e.positionBelongsToNode(m,t,n)&&T(m,d,!0)){var p=u(m,n),f=c(r,m,a,n),_=0!==f?s&&2===f?l.indentSize:0:a!==p.line?l.indentSize:0;return o(m,p,void 0,_,n,!0,l)}var y=g(m,n,l);if(-1!==y)return y;if(-1!==(y=v(m,n,l)))return y+l.indentSize;d=m,m=m.parent}return i(l)}(r,t,l,m,s,a)},t.getIndentationForNode=function(e,n,t,r){return o(e,t.getLineAndCharacterOfPosition(e.getStart(t)),n,0,t,!1,r)},t.getBaseIndentation=i,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(a||(a={})),t.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,t.childStartsOnTheSameLineWithElseInIfStatement=m,t.getContainingList=f,t.findFirstNonWhitespaceCharacterAndColumn=h,t.findFirstNonWhitespaceColumn=b,t.nodeWillIndentChild=E,t.shouldIndentChildNode=T}(n.SmartIndenter||(n.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(u||(u={})),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;function l(n,t){return e.skipTrivia(n,t,!1,!0)}function c(n,t,r,a){if(r.useNonAdjustedStartPosition)return t.getStart(n);var i=t.getFullStart(),s=t.getStart(n);if(i===s)return s;var c=e.getLineStartPositionForPosition(i,n);if(e.getLineStartPositionForPosition(s,n)===c)return a===o.Start?s:i;var u=i>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,c)+u,n);return d=l(n.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,d),n)}function u(n,t,r){if(r.useNonAdjustedEndPosition||e.isExpression(t))return t.getEnd();var a=t.getEnd(),i=e.skipTrivia(n.text,a,!0);return i!==a&&e.isLineBreak(n.text.charCodeAt(i-1))?i:a}function d(e,n){return n&&e.parent&&(26===n.kind||25===n.kind&&182===e.parent.kind)}!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(o=n.Position||(n.Position={})),n.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes"}(s||(s={})),n.getSeparatorCharacter=function(n){return e.tokenToString(n.kind)},n.getAdjustedStartPosition=c,n.getAdjustedEndPosition=u;var m,p=function(){function t(n,t){this.newLineCharacter=n,this.formatContext=t,this.changes=[],this.deletedNodesInLists=[],this.nodesInsertedAtClassStarts=e.createMap()}return t.fromContext=function(n){return new t(e.getNewLineOrDefaultFromHost(n.host,n.formatContext.options),n.formatContext)},t.with=function(e,n){var r=t.fromContext(e);return n(r),r.getChanges()},t.prototype.deleteRange=function(e,n){return this.changes.push({kind:s.Remove,sourceFile:e,range:n}),this},t.prototype.deleteNode=function(e,n,t){void 0===t&&(t={});var r=c(e,n,t,o.FullStart),a=u(e,n,t);return this.deleteRange(e,{pos:r,end:a}),this},t.prototype.deleteNodeRange=function(e,n,t,r){void 0===r&&(r={});var a=c(e,n,r,o.FullStart),i=u(e,t,r);return this.deleteRange(e,{pos:a,end:i}),this},t.prototype.deleteNodeInList=function(n,t){var r=e.formatting.SmartIndenter.getContainingList(t,n);if(!r)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(r,t);if(a<0)return this;if(1===r.length)return this.deleteNode(n,t),this;var i=e.getNodeId(t);if(e.Debug.assert(!this.deletedNodesInLists[i],"Deleting a node twice"),this.deletedNodesInLists[i]=!0,a!==r.length-1){var s=e.getTokenAtPosition(n,t.end,!1);if(s&&d(t,s)){var l=e.skipTrivia(n.text,c(n,t,{},o.FullStart),!1,!0),m=r[a+1],p=e.skipTrivia(n.text,c(n,m,{},o.FullStart),!1,!0);this.deleteRange(n,{pos:l,end:p})}}else{var f=r[a-1];if(this.deletedNodesInLists[e.getNodeId(f)]){var g=e.skipTrivia(n.text,c(n,t,{},o.FullStart),!1,!0),v=u(n,t,{});this.deleteRange(n,{pos:g,end:v})}else{var _=e.getTokenAtPosition(n,r[a-1].end,!1);_&&d(t,_)&&this.deleteNodeRange(n,_,t)}}return this},t.prototype.replaceRange=function(e,n,t,r){return void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,range:n,options:r,node:t}),this},t.prototype.replaceNode=function(e,n,t,r){void 0===r&&(r={});var a=c(e,n,r,o.Start),i=u(e,n,r);return this.replaceRange(e,{pos:a,end:i},t,r)},t.prototype.replaceNodeRange=function(e,n,t,r,a){void 0===a&&(a={});var i=c(e,n,a,o.Start),s=u(e,t,a);return this.replaceRange(e,{pos:i,end:s},r,a)},t.prototype.replaceRangeWithNodes=function(e,t,r,a){return void 0===a&&(a=n.useNonAdjustedPositions),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:a,nodes:r}),this},t.prototype.replaceNodeWithNodes=function(e,t,r,a){void 0===a&&(a=n.useNonAdjustedPositions);var i=c(e,t,a,o.Start),s=u(e,t,a);return this.replaceRangeWithNodes(e,{pos:i,end:s},r,a)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,a,i){void 0===i&&(i=n.useNonAdjustedPositions);var s=c(e,t,i,o.Start),l=u(e,r,i);return this.replaceRangeWithNodes(e,{pos:s,end:l},a,i)},t.prototype.insertNodeAt=function(e,n,t,r){return void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,options:r,node:t,range:{pos:n,end:n}}),this},t.prototype.insertNodesAt=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,options:r,nodes:t,range:{pos:n,end:n}})},t.prototype.insertNodeAtTopOfFile=function(n,t,r){var a=function(n){var t=n.text,r=e.getShebang(t),a=0;void 0!==r&&(a=r.length,c());var i=e.getLeadingCommentRanges(t,a);if(!i)return a;i.length&&3===i[0].kind&&e.isPinnedComment(t,i[0])&&(a=i[0].end,c(),i=i.slice(1));for(var o=0,s=i;o<s.length;o++){var l=s[o];if(2!==l.kind||!e.isRecognizedTripleSlashComment(t,l.pos,l.end))break;a=l.end,c()}return a;function c(){if(a<t.length){var n=t.charCodeAt(a);e.isLineBreak(n)&&++a<t.length&&13===n&&10===t.charCodeAt(a)&&a++}}}(n);this.insertNodeAt(n,a,t,{prefix:0===a?void 0:this.newLineCharacter,suffix:(e.isLineBreak(n.text.charCodeAt(a))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")})},t.prototype.insertNodeBefore=function(e,n,t,r){void 0===r&&(r=!1);var a=c(e,n,{},o.Start);return this.replaceRange(e,{pos:a,end:a},t,this.getOptionsForInsertNodeBefore(n,r))},t.prototype.insertModifierBefore=function(n,t,r){var a=r.getStart(n);this.replaceRange(n,{pos:a,end:a},e.createToken(t),{suffix:" "})},t.prototype.insertTypeAnnotation=function(n,t,r){var a=(e.isFunctionLike(t)?e.findChildOfKind(t,20,n)||e.first(t.parameters):230!==t.kind&&t.questionToken?t.questionToken:t.name).end;this.insertNodeAt(n,a,r,{prefix:": "})},t.prototype.insertTypeParameters=function(n,t,r){var a=(e.findChildOfKind(t,19,n)||e.first(t.parameters)).getStart(n);this.insertNodesAt(n,a,r,{prefix:"<",suffix:">"})},t.prototype.getOptionsForInsertNodeBefore=function(n,t){return e.isStatement(n)||e.isClassElement(n)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?{}:e.Debug.failBadSyntaxKind(n)},t.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,[r].concat(t.body.statements))},t.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,t.body.statements.concat([r]))},t.prototype.replaceConstructorBody=function(n,t,r){this.replaceNode(n,t.body,e.createBlock(r,!0),{useNonAdjustedEndPosition:!0})},t.prototype.insertNodeAtEndOfScope=function(n,t,r){var a=c(n,t.getLastToken(),{},o.Start);this.replaceRange(n,{pos:a,end:a},r,{prefix:e.isLineBreak(n.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(n,t,r){var a=e.firstOrUndefined(t.members);if(a)this.insertNodeBefore(n,a,r);else{var i=e.getNodeId(t).toString(),o=this.nodesInsertedAtClassStarts.get(i);o?(e.Debug.assert(o.sourceFile===n&&o.cls===t),o.members.push(r)):this.nodesInsertedAtClassStarts.set(i,{sourceFile:n,cls:t,members:[r]})}},t.prototype.insertNodeAfter=function(n,t,r){(e.isStatementButNotDeclaration(t)||151===t.kind||150===t.kind||152===t.kind)&&59!==n.text.charCodeAt(t.end-1)&&this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:n,options:{},range:{pos:t.end,end:t.end},node:e.createToken(25)});var a=u(n,t,{});return this.replaceRange(n,{pos:a,end:a},r,this.getInsertNodeAfterOptions(t))},t.prototype.getInsertNodeAfterOptions=function(n){return e.isClassDeclaration(n)||e.isModuleDeclaration(n)?{prefix:this.newLineCharacter,suffix:this.newLineCharacter}:e.isStatement(n)||e.isClassElement(n)||e.isTypeElement(n)?{suffix:this.newLineCharacter}:e.isVariableDeclaration(n)?{prefix:", "}:e.isParameter(n)?{}:e.Debug.failBadSyntaxKind(n)},t.prototype.insertNodeInListAfter=function(n,t,r){var a=e.formatting.SmartIndenter.getContainingList(t,n);if(!a)return e.Debug.fail("node is not a list element"),this;var i=e.indexOfNode(a,t);if(i<0)return this;var o=t.getEnd();if(i!==a.length-1){var c=e.getTokenAtPosition(n,t.end,!1);if(c&&d(t,c)){var u=e.getLineAndCharacterOfPosition(n,l(n.text,a[i+1].getFullStart())),m=e.getLineAndCharacterOfPosition(n,c.end),p=void 0,f=void 0;m.line===u.line?(f=c.end,p=function(e){for(var n="",t=0;t<e;t++)n+=" ";return n}(u.character-m.character)):f=e.getStartPositionOfLine(u.line,n),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:n,range:{pos:f,end:a[i+1].getStart(n)},node:r,options:{prefix:p,suffix:""+e.tokenToString(c.kind)+n.text.substring(c.end,a[i+1].getStart(n))}})}}else{var g=t.getStart(n),v=e.getLineStartPositionForPosition(g,n),_=void 0,y=!1;if(1===a.length)_=26;else{var h=e.findPrecedingToken(t.pos,n);_=d(t,h)?h.kind:26,y=e.getLineStartPositionForPosition(a[i-1].getStart(n),n)!==v}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)&&(y=!0),y){this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:n,range:{pos:o,end:o},node:e.createToken(_),options:{}});var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(v,g,n,this.formatContext.options),E=e.skipTrivia(n.text,o,!0,!1);E!==o&&e.isLineBreak(n.text.charCodeAt(E-1))&&E--,this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:n,range:{pos:E,end:E},node:r,options:{indentation:b,prefix:this.newLineCharacter}})}else this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:n,range:{pos:o,end:o},node:r,options:{prefix:e.tokenToString(_)+" "}})}return this},t.prototype.finishInsertNodeAtClassStart=function(){var n=this;this.nodesInsertedAtClassStarts.forEach(function(t){var r=t.sourceFile,a=t.cls,i=t.members,o=233===a.kind?e.updateClassDeclaration(a,a.decorators,a.modifiers,a.name,a.typeParameters,a.heritageClauses,i):e.updateClassExpression(a,a.modifiers,a.name,a.typeParameters,a.heritageClauses,i);n.replaceNode(r,a,o,{useNonAdjustedEndPosition:!0})})},t.prototype.getChanges=function(e){return this.finishInsertNodeAtClassStart(),m.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e)},t}();function f(n,t){for(var r=t.length-1;r>=0;r--){var a=t[r];n=""+n.substring(0,a.span.start)+a.newText+n.substring(e.textSpanEnd(a.span))}return n}function g(n){var r=e.visitEachChild(n,g,e.nullTransformationContext,v,g),i=e.nodeIsSynthesized(r)?r:Object.create(r);return i.pos=t(n),i.end=a(n),i}function v(n,r,i,o,s){var l=e.visitNodes(n,r,i,o,s);if(!l)return l;var c=l===n?e.createNodeArray(l.slice(0)):l;return c.pos=t(n),c.end=a(n),c}n.ChangeTracker=p,function(n){n.getTextChangesFromChanges=function(n,t,r,a){return e.group(n,function(e){return e.sourceFile.path}).map(function(n){for(var i=n[0].sourceFile,o=e.stableSort(n,function(e,n){return e.range.pos-n.range.pos}),l=function(n){e.Debug.assert(o[n].range.end<=o[n+1].range.pos,"Changes overlap",function(){return JSON.stringify(o[n].range)+" and "+JSON.stringify(o[n+1].range)})},c=0;c<o.length-2;c++)l(c);var u=o.map(function(n){return e.createTextChange(e.createTextSpanFromRange(n.range),function(n,t,r,a,i){if(n.kind===s.Remove)return"";var o=n.options,l=void 0===o?{}:o,c=n.range.pos,u=function(n){return function(n,t,r,a,i,o,s){var l=function(n,t,r){var a=new _(r),i="\n"===r?1:0;return e.createPrinter({newLine:i},a).writeNode(4,n,t,a),{text:a.getText(),node:g(n)}}(n,t,i),c=l.node,u=l.text;s&&s(c,u);var d=o.options,m=void 0!==a.indentation?a.indentation:!1!==a.useIndentationFromFile?e.formatting.SmartIndenter.getIndentation(r,t,d,a.prefix===i||e.getLineStartPositionForPosition(r,t)===r):0,p=void 0!==a.delta?a.delta:e.formatting.SmartIndenter.shouldIndentChildNode(n)&&d.indentSize||0,v={text:u,getLineAndCharacterOfPosition:function(n){return e.getLineAndCharacterOfPosition(this,n)}},y=e.formatting.formatNodeGivenIndentation(c,v,t.languageVariant,m,p,o);return f(u,y)}(n,t,c,l,r,a,i)},d=n.kind===s.ReplaceWithMultipleNodes?n.nodes.map(function(n){return e.removeSuffix(u(n),r)}).join(r):u(n.node),m=l.preserveLeadingWhitespace||void 0!==l.indentation||e.getLineStartPositionForPosition(c,t)===c?d:d.replace(/^\s+/,"");return(l.prefix||"")+m+(l.suffix||"")}(n,i,t,r,a))});return{fileName:i.fileName,textChanges:u}})}}(m||(m={})),n.applyChanges=f;var _=function(){function n(n){var t=this;this.lastNonTriviaPosition=0,this.writer=e.createTextWriter(n),this.onEmitNode=function(e,n,a){n&&r(n,t.lastNonTriviaPosition),a(e,n),n&&i(n,t.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&r(e,t.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&i(e,t.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&r(e,t.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&i(e,t.lastNonTriviaPosition)}}return n.prototype.setLastNonTriviaPosition=function(n,t){if(t||!function(n){return e.skipTrivia(n,0)===n.length}(n)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var r=0;e.isWhiteSpaceLike(n.charCodeAt(n.length-r-1));)r++;this.lastNonTriviaPosition-=r}},n.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeSymbol=function(e,n){this.writer.writeSymbol(e,n),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeTextOfNode=function(e,n){this.writer.writeTextOfNode(e,n)},n.prototype.writeLine=function(){this.writer.writeLine()},n.prototype.increaseIndent=function(){this.writer.increaseIndent()},n.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},n.prototype.getText=function(){return this.writer.getText()},n.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},n.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},n.prototype.getTextPos=function(){return this.writer.getTextPos()},n.prototype.getLine=function(){return this.writer.getLine()},n.prototype.getColumn=function(){return this.writer.getColumn()},n.prototype.getIndent=function(){return this.writer.getIndent()},n.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},n.prototype.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},n}()}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(n){var t=[],r=e.createMap();n.registerCodeFix=function(n){for(var a=0,i=n.errorCodes;a<i.length;a++){var o=i[a],s=t[o];s||(s=[],t[o]=s),s.push(n)}if(n.fixIds)for(var l=0,c=n.fixIds;l<c.length;l++){var u=c[l];e.Debug.assert(!r.has(u)),r.set(u,n)}},n.getSupportedErrorCodes=function(){return Object.keys(t)},n.getFixes=function(n){var r=t[n.errorCode],a=[];return e.forEach(r,function(e){var t=e.getCodeActions(n);if(t&&t.length>0)for(var r=0,i=t;r<i.length;r++){var o=i[r];void 0===o?n.host.log("Action for error code "+n.errorCode+" added an invalid action entry; please log a bug"):a.push(o)}}),a},n.getAllFixes=function(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)},n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var a=[];return function(e,n){return{changes:e,commands:n}}(e.textChanges.ChangeTracker.with(n,function(i){return function(n,t,r){for(var a=n.program,i=n.sourceFile,o=0,s=a.getSemanticDiagnostics(i).concat(e.computeSuggestionDiagnostics(i,a));o<s.length;o++){var l=s[o];e.contains(t,l.code)&&r(l)}}(n,t,function(e){return r(i,e,a)})}),0===a.length?void 0:a)}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=e.createMap();n.registerRefactor=function(e,n){t.set(e,n)},n.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(t.values(),function(e){return n.cancellationToken&&n.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(n)}))},n.getEditsForRefactor=function(e,n,r){var a=t.get(n);return a&&a.getEditsForAction(e,r)}}(e.refactor||(e.refactor={})),e.getRefactorContextLength=function(e){return void 0===e.endPosition?0:e.endPosition-e.startPosition}}(u||(u={})),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,!1),i=e.findAncestor(a,e.isDecorator);e.Debug.assert(!!i,"Expected position to be owned by a decorator.");var o=e.createCall(i.expression,void 0,void 0);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Call_decorator_expression),changes:r,fixId:t}]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(e,n){return a(e,n.file,n.start)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),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,!1);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,i)}function i(n){return function(n){return e.isFunctionLikeDeclaration(n)||230===n.kind||150===n.kind||151===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&&n.insertTypeParameters(t,r,a)}var i=e.isArrowFunction(r)&&!e.findChildOfKind(r,19,t);i&&n.insertNodeBefore(t,e.first(r.parameters),e.createToken(19));for(var o=0,s=r.parameters;o<s.length;o++){var c=s[o];if(!c.type){var u=e.getJSDocType(c);u&&n.insertTypeAnnotation(t,c,l(u))}}if(i&&n.insertNodeAfter(t,e.last(r.parameters),e.createToken(20)),!r.type){var d=e.getJSDocReturnType(r);d&&n.insertTypeAnnotation(t,r,l(d))}}else{var m=e.Debug.assertDefined(e.getJSDocType(r));e.Debug.assert(!r.type),n.insertTypeAnnotation(t,r,l(m))}}function l(n){switch(n.kind){case 275:case 276:return e.createTypeReferenceNode("any",e.emptyArray);case 279:return function(n){return e.createUnionTypeNode([e.visitNode(n.type,l),e.createTypeReferenceNode("undefined",e.emptyArray)])}(n);case 278:return l(n.type);case 277:return function(n){return e.createUnionTypeNode([e.visitNode(n.type,l),e.createTypeReferenceNode("null",e.emptyArray)])}(n);case 281:return function(n){return e.createArrayTypeNode(e.visitNode(n.type,l))}(n);case 280:return function(n){return e.createFunctionTypeNode(e.emptyArray,n.parameters.map(c),n.type)}(n);case 161: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.createParameter(void 0,void 0,void 0,134===n.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(134===n.typeArguments[0].kind?"number":"string",[]),void 0),r=e.createTypeLiteralNode([e.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.createIdentifier(a),r="Array"!==a&&"Promise"!==a||n.typeArguments?e.visitNodes(n.typeArguments,l):e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}return e.createTypeReferenceNode(t,r)}(n);default:var t=e.visitEachChild(n,l,void 0);return e.setEmitFlags(t,1),t}}function c(n){var t=n.parent.parameters.indexOf(n),r=281===n.type.kind&&t===n.parent.parameters.length-1,a=n.name||(r?"rest":"arg"+t),i=r?e.createToken(24):n.dotDotDotToken;return e.createParameter(n.decorators,n.modifiers,i,a,n.questionToken,e.visitNode(n.type,l),n.initializer)}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=a(n.sourceFile,n.span.start);if(r)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Annotate_with_type_from_JSDoc),changes:e.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,r)}),fixId:t}]},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={}))}(u||(u={})),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){var s=[],l=[],c=a.getSymbolAtLocation(e.getTokenAtPosition(t,r,!1));if(c&&19&c.flags){var u,d,m=c.valueDeclaration;switch(m.kind){case 232:u=m,g(m),d=function(n){var t=v(c);n.body&&t.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body));var r=o(n,84);return e.createClassDeclaration(void 0,r,n.name,void 0,void 0,t)}(m);break;case 230:u=m.parent.parent,1===m.parent.declarations.length?g(u):g(m,!0),d=function(n){var t=n.initializer;if(!t||190!==t.kind)return;if(71!==n.name.kind)return;var r=v(t.symbol);t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var a=o(u,84);return e.createClassDeclaration(void 0,a,n.name,void 0,void 0,r)}(m)}if(d){i(m,d,t),n.insertNodeAfter(t,u,d);for(var p=0,f=l;p<f.length;p++){(0,f[p])()}}}function g(r,a){void 0===a&&(a=!1),s.some(function(n){return e.isNodeDescendantOf(r,n)})||(s.push(r),a?l.push(function(){return n.deleteNodeInList(t,r)}):l.push(function(){return n.deleteNode(t,r)}))}function v(n){var r=[];return n.members&&n.members.forEach(function(e){var n=a(e,void 0);n&&r.push(n)}),n.exports&&n.exports.forEach(function(n){var t=a(n,[e.createToken(115)]);t&&r.push(t)}),r;function a(n,r){if(4&n.flags){var a=n.valueDeclaration,s=a.parent;if(l=s.right,e.isFunctionLike(l)){var l;if(g(s.parent&&214===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],r,n.name,void 0,void 0,void 0);switch(s.right.kind){case 190:var c=s.right,u=e.concatenate(r,o(c,120));return i(s,f=e.createMethod(void 0,u,void 0,a.name,void 0,void 0,c.parameters,void 0,c.body),t),f;case 191:var d=s.right,m=d.body,p=void 0;p=211===m.kind?m:e.createBlock([e.createReturn(m)]);var f;u=e.concatenate(r,o(d,120));return i(s,f=e.createMethod(void 0,u,void 0,a.name,void 0,void 0,d.parameters,void 0,p),t),f;default:if(e.isSourceFileJavaScript(t))return;var v=e.createProperty(void 0,r,a.name,void 0,void 0,s.right);return i(s.parent,v,t),v}}}}}}function i(n,t,r){e.forEachLeadingCommentRange(r.text,n.pos,function(n,a,i,o){3===i?(n+=2,a-=2):n+=2,e.addSyntheticLeadingComment(t,i,r.text.slice(n,a),o)})}function o(n,t){return e.filter(n.modifiers,function(e){return e.kind===t})}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_function_to_an_ES2015_class),changes:r,fixId:t}]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){return a(n,t.file,t.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n,t,r){for(var a=0,i=n.imports;a<i.length;a++){var o=i[a],s=e.getResolvedModule(n,o.text);if(s&&s.resolvedFileName===t.fileName){var l=o.parent;switch(l.kind){case 252:var c=l.parent;r.replaceNode(n,c,m(c.name,void 0,o.text));break;case 185:var u=l;e.isRequireCall(u,!1)&&r.replaceNode(n,l,e.createPropertyAccess(e.getSynthesizedDeepClone(u),"default"))}}}}function r(n,t){n.forEachChild(function r(a){if(e.isPropertyAccessExpression(a)&&e.isExportsOrModuleExportsOrAlias(n,a.expression)){var i=a.parent;t(a,e.isBinaryExpression(i)&&i.left===a&&58===i.operatorToken.kind)}a.forEachChild(r)})}function a(t,r,a,p,_,y,h){switch(r.kind){case 212:return function(t,r,a,i,o,s){var c=r.declarationList,u=!1,p=e.flatMap(c.declarations,function(r){var p=r.name,v=r.initializer;return e.isExportsOrModuleExportsOrAlias(t,v)?(u=!0,[]):e.isRequireCall(v,!0)?(u=!0,function(t,r,a,i,o,s,c){switch(r.kind){case 178:var u=e.mapAllOrFail(r.elements,function(n){return n.dotDotDotToken||n.initializer||n.propertyName&&!e.isIdentifier(n.propertyName)||!e.isIdentifier(n.name)?void 0:f(n.propertyName&&n.propertyName.text,n.name.text)});if(u)return[m(void 0,u,a)];case 179:var d=l(n.moduleSpecifierToValidIdentifier(a,c),s);return[m(e.createIdentifier(d),void 0,a),g(void 0,e.getSynthesizedDeepClone(r),e.createIdentifier(d))];case 71:return function(n,t,r,a,i,o){for(var s=i.getSymbolAtLocation(t),c=e.createMap(),u=!1,d=0,p=o.original.get(t.text);d<p.length;d++){var f=p[d];if(i.getSymbolAtLocation(f)===s&&f!==t){var g=f.parent;if(e.isPropertyAccessExpression(g)){var v=g.expression,_=g.name.text;e.Debug.assert(v===f);var y=c.get(_);void 0===y&&(y=l(_,o),c.set(_,y)),a.replaceNode(n,g,e.createIdentifier(y))}else u=!0}}var h=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),function(n){var t=n[0],r=n[1];return e.createImportSpecifier(t===r?void 0:e.createIdentifier(t),e.createIdentifier(r))}));h||(u=!0);return[m(u?e.getSynthesizedDeepClone(t):void 0,h,r)]}(t,r,a,i,o,s);default:e.Debug.assertNever(r)}}(t,p,v.arguments[0].text,a,i,o,s)):e.isPropertyAccessExpression(v)&&e.isRequireCall(v.expression,!0)?(u=!0,function(n,t,r,a){switch(n.kind){case 178:case 179:var i=l(t,a);return[d(i,t,r),g(void 0,n,e.createIdentifier(i))];case 71:return[d(n.text,t,r)];default:e.Debug.assertNever(n)}}(p,v.name.text,v.expression.arguments[0].text,o)):e.createVariableStatement(void 0,e.createVariableDeclarationList([r],c.flags))});u&&a.replaceNodeWithNodes(t,r,p)}(t,r,p,a,_,y),!1;case 214:var b=r.expression;switch(b.kind){case 185:return e.isRequireCall(b,!0)&&p.replaceNode(t,r,m(void 0,void 0,b.arguments[0].text)),!1;case 198:var E=b,T=E.left,S=E.operatorToken,L=E.right;return 58===S.kind&&function(n,t,r,a,l,d,m){if(!e.isPropertyAccessExpression(a))return!1;if(e.isExportsOrModuleExportsOrAlias(n,a)){if(!e.isExportsOrModuleExportsOrAlias(n,l)){var p=e.isObjectLiteralExpression(l)?(_=l,e.mapAllOrFail(_.properties,function(n){switch(n.kind){case 155:case 156:case 269:case 270:return;case 268:return e.isIdentifier(n.name)?s(n.name.text,n.initializer):void 0;case 153:return e.isIdentifier(n.name)?c(n.name.text,[e.createToken(84)],n):void 0;default:e.Debug.assertNever(n)}})):void 0,f=!1;return p||(y=function(n,t){var r=[e.createToken(84),e.createToken(79)];switch(n.kind){case 190:case 191:var a=n;return[[c(a.name&&a.name.text,r,a)],!0];case 203:var s=n;return[[u(s.name&&s.name.text,r,s)],!0];case 185:if(e.isRequireCall(n,!0))return function(n,t){var r=n.text,a=t.getSymbolAtLocation(n),s=a?a.exports:e.emptyUnderscoreEscapedMap;return s.has("export=")?[[o(r)],!0]:s.has("default")?s.size>1?[[i(r),o(r)],!0]:[[o(r)],!0]:[[i(r)],!1]}(n.arguments[0],t);default:return[[e.createExportAssignment(void 0,void 0,!1,n)],!0]}}(l,t),p=y[0],f=y[1]),d.replaceNodeWithNodes(n,r,p),f}d.deleteNode(n,r)}else e.isExportsOrModuleExportsOrAlias(n,a.expression)&&function(n,t,r,a,i,o){var l=r.text,c=o.get(l);if(void 0!==c){var u=[g(void 0,c,a),v([e.createExportSpecifier(c,l)])];i.replaceNodeWithNodes(n,t,u)}else i.replaceNode(n,t,s(l,a),{useNonAdjustedEndPosition:!0})}(n,r,a.name,l,d,m);var _;return!1;var y}(t,a,r,T,L,p,h)}default:return!1}}function i(e){return v(void 0,e)}function o(n){return v([e.createExportSpecifier(void 0,"default")],n)}function s(n,t){var r=[e.createToken(84)];switch(t.kind){case 190:var a=t.name;if(a&&a.text!==n)return i();case 191:return c(n,r,t);case 203:return u(n,r,t);default:return i()}function i(){return g(r,e.createIdentifier(n),t)}}function l(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_"+e;return n.additional.set(e,!0),e}function c(n,t,r){return e.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.convertToFunctionBody(e.getSynthesizedDeepClone(r.body)))}function u(n,t,r){return e.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),e.getSynthesizedDeepClones(r.members))}function d(n,t,r){return"default"===t?m(e.createIdentifier(n),void 0,r):m(void 0,[f(t,n)],r)}function m(n,t,r){return p(n,t,e.createLiteral(r))}function p(n,t,r){var a=(n||t)&&e.createImportClause(n,t&&e.createNamedImports(t));return e.createImportDeclaration(void 0,void 0,a,r)}function f(n,t){return e.createImportSpecifier(void 0!==n&&n!==t?e.createIdentifier(n):void 0,e.createIdentifier(t))}function g(n,t,r){return e.createVariableStatement(n,e.createVariableDeclarationList([e.createVariableDeclaration(t,void 0,r)],2))}function v(n,t){return e.createExportDeclaration(void 0,void 0,n&&e.createNamedExports(n),void 0===t?void 0:e.createLiteral(t))}n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(n){var i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_ES6_module),o=n.sourceFile,s=n.program;return[{description:i,changes:e.textChanges.ChangeTracker.with(n,function(n){if(function(n,t,i,o){var s={original:(u=n,d=e.createMultiMap(),u.forEachChild(function n(t){e.isIdentifier(t)&&function(e){var n=e.parent;switch(n.kind){case 183:return n.name!==e;case 180:return n.propertyName!==e;default:return!0}}(t)&&d.add(t.text,t),t.forEachChild(n)}),d),additional:e.createMap()},c=function(n,t,a){var i=e.createMap();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(n.name.text,n,67216319,!0))&&i.set(o,l("_"+o,a))}),i}(n,t,s);var u,d;!function(n,t,a){r(n,function(r,i){if(!i){var o=r.name.text;a.replaceNode(n,r,e.createIdentifier(t.get(o)||o))}})}(n,c,i);for(var m=!1,p=0,f=n.statements;p<f.length;p++){var g=f[p],v=a(n,g,t,i,s,o,c);m=m||v}return m}(o,s.getTypeChecker(),n,s.getCompilerOptions().target))for(var i=0,c=s.getSourceFiles();i<c.length;i++){t(c[i],o,n)}}),fixId:void 0}]}}),n.makeImportDeclaration=p}(e.codefix||(e.codefix={}))}(u||(u={})),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,!0),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.createIndexedAccessTypeNode(e.createTypeReferenceNode(r.left,void 0),e.createLiteralTypeNode(e.createLiteral(a)));n.replaceNode(t,r,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=a(n.sourceFile,n.span.start);if(r){var o=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,r)});return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[r.left.text+'["'+r.right.text+'"]']),changes:o,fixId:t}]}},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={}))}(u||(u={})),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.assertDefined(e.getContainingClass(e.getTokenAtPosition(n,t,!1)))}function i(t,r,a,i,o){var s=t.getTypeAtLocation(r),l=t.getPropertiesOfType(s).filter(function(n){return!(8&e.getModifierFlags(n.valueDeclaration))}),c=t.getTypeAtLocation(i);function u(e,n){var r=t.getIndexInfoOfType(e,n);r&&o.insertNodeAtClassStart(a,i,t.indexInfoToIndexSignatureDeclaration(r,n,i))}t.getIndexTypeOfType(c,1)||u(s,1),t.getIndexTypeOfType(c,0)||u(s,0),n.createMissingMemberNodes(i,l,t,function(e){return o.insertNodeAtClassStart(a,i,e)})}n.registerCodeFix({errorCodes:t,getCodeActions:function(n){var t=n.program,o=n.sourceFile,s=n.span,l=a(o,s.start),c=t.getTypeChecker();return e.mapDefined(e.getClassImplementsHeritageClauseElements(l),function(t){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(c,t,o,l,e)});if(0!==a.length)return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Implement_interface_0),[t.getText()]),changes:a,fixId:r}})},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();return n.codeFixAll(r,t,function(n,t){var s=a(t.file,t.start);if(e.addToSeen(o,e.getNodeId(s)))for(var l=0,c=e.getClassImplementsHeritageClauseElements(s);l<c.length;l++){var u=c[l];i(r.program.getTypeChecker(),u,t.file,s,n)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[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],r="addMissingMember";function a(n,t,r){var a=e.getTokenAtPosition(n,t,!1);if(e.isIdentifier(a)){var i=function(n,t){var r=n.parent;if(!e.isPropertyAccessExpression(r))return;if(99===r.expression.kind){var a=e.getThisContainer(n,!1);if(!e.isClassElement(a))return;var i=a.parent;return e.isClassLike(i)?{classDeclaration:i,makeStatic:e.hasModifier(a,32)}:void 0}var o=t.getTypeAtLocation(r.expression),s=o.symbol;if(!(s&&65536&o.flags&&32&s.flags))return;var i=e.cast(e.first(s.declarations),e.isClassLike);return{classDeclaration:i,makeStatic:o!==t.getDeclaredTypeOfSymbol(s)}}(a,r);if(i){var o=i.classDeclaration,s=i.makeStatic,l=o.getSourceFile();return{token:a,classDeclaration:o,makeStatic:s,classDeclarationSourceFile:l,inJs:e.isInJavaScriptFile(l),call:e.tryCast(a.parent.parent,e.isCallExpression)}}}}function i(n,t,r,a,i){if(i){if(203===r.kind)return;var s=r.name.getText(),l=o(e.createIdentifier(s),a);n.insertNodeAfter(t,r,l)}else{var c=e.getFirstConstructorWithBody(r);if(!c)return;var u=o(e.createThis(),a);n.insertNodeAtConstructorEnd(t,c,u)}}function o(n,t){return e.createStatement(e.createAssignment(e.createPropertyAccess(n,t),e.createIdentifier("undefined")))}function s(n,t,r){var a;if(198===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)}return a||e.createKeywordTypeNode(119)}function l(n,t,r,a,i,o){var s=e.createProperty(void 0,o?[e.createToken(115)]:void 0,a,void 0,i,void 0);n.insertNodeAtClassStart(t,r,s)}function c(e,t,r,a,i,o,s){var l=n.createMethodFromCallExpression(i,a.text,s,o);e.insertNodeAtClassStart(t,r,l)}n.registerCodeFix({errorCodes:t,getCodeActions:function(n){var t=a(n.sourceFile,n.span.start,n.program.getTypeChecker());if(t){var o=t.classDeclaration,u=t.classDeclarationSourceFile,d=t.inJs,m=t.makeStatic,p=t.token,f=t.call,g=f&&function(n,t,a,i,o,s,l){var u=e.formatStringFromArgs(e.getLocaleSpecificMessage(s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0),[i.text]),d=e.textChanges.ChangeTracker.with(n,function(e){return c(e,t,a,i,o,s,l)});return{description:u,changes:d,fixId:r}}(n,u,o,p,f,m,d),v=d?e.singleElementArray(function(n,t,a,o,s){var l=e.textChanges.ChangeTracker.with(n,function(e){return i(e,t,a,o,s)});return 0===l.length?void 0:{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(s?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor),[o]),changes:l,fixId:r}}(n,u,o,p.text,m)):function(n,t,a,i,o){var c=s(n.program.getTypeChecker(),a,i),u=function(n,t,a,i,o,s){var c=e.formatStringFromArgs(e.getLocaleSpecificMessage(i?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0),[o]),u=e.textChanges.ChangeTracker.with(n,function(e){return l(e,t,a,o,s,i)});return{description:c,changes:u,fixId:r}}(n,t,a,o,i.text,c);return o?[u]:[u,function(n,t,r,a,i){var o=e.createKeywordTypeNode(137),s=e.createParameter(void 0,void 0,void 0,"x",void 0,o,void 0),l=e.createIndexSignature(void 0,void 0,[s],i),c=e.textChanges.ChangeTracker.with(n,function(e){return e.insertNodeAtClassStart(t,r,l)});return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[a]),changes:c,fixId:void 0}}(n,t,a,i.text,c)]}(n,u,o,p,m);return e.concatenate(e.singleElementArray(g),v)}},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();return n.codeFixAll(r,t,function(n,t){var u=r.program,d=a(t.file,t.start,u.getTypeChecker());if(d){var m=d.classDeclaration,p=d.classDeclarationSourceFile,f=d.inJs,g=d.makeStatic,v=d.token,_=d.call;if(e.addToSeen(o,v.text))if(_)c(n,p,m,v,_,g,f);else if(f)i(n,p,m,v.text,g);else{var y=s(u.getTypeChecker(),m,v);l(n,p,m,v.text,y,g)}}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code];function r(n,t,r){var a,i=e.getTokenAtPosition(n,t,!1);if(e.isPropertyAccessExpression(i.parent)&&i.parent.name===i){e.Debug.assert(71===i.kind);var o=r.getTypeAtLocation(i.parent.expression);a=r.getSuggestionForNonexistentProperty(i,o)}else{var s=e.getMeaningFromLocation(i),l=e.getTextOfNode(i);e.Debug.assert(void 0!==l,"name should be defined"),a=r.getSuggestionForNonexistentSymbol(i,l,function(e){var n=0;4&e&&(n|=1920);2&e&&(n|=67901928);1&e&&(n|=67216319);return n}(s))}return void 0===a?void 0:{node:i,suggestion:a}}function a(n,t,r,a){n.replaceNode(t,r,e.createIdentifier(a))}n.registerCodeFix({errorCodes:t,getCodeActions:function(n){var t=n.sourceFile,i=r(t,n.span.start,n.program.getTypeChecker());if(i){var o=i.node,s=i.suggestion,l=e.textChanges.ChangeTracker.with(n,function(e){return a(e,t,o,s)});return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[s]),changes:l,fixId:"fixSpelling"}]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return n.codeFixAll(e,t,function(n,t){var i=r(t.file,t.start,e.program.getTypeChecker());i&&a(n,e.sourceFile,i.node,i.suggestion)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixCannotFindModule",r=[e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(n,t){return e.cast(e.getTokenAtPosition(n,t,!1),e.isStringLiteral).text}function i(e,n){return{type:"install package",file:e,packageName:n}}function o(n,t){var r=e.getPackageName(t).packageName;return n.isKnownTypesPackageName(r)?e.getTypesPackageName(r):void 0}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r,s,c,u,d=(r=n.host,s=n.sourceFile.fileName,c=a(n.sourceFile,n.span.start),void 0===(u=o(r,c))?void 0:{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Install_0),[u]),changes:[],commands:[i(s,u)]});return d&&[l({fixId:t},d)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t,r){var s=o(e.host,a(t.file,t.start));s&&r.push(i(t.file.fileName,s))})}})}(e.codefix||(e.codefix={}))}(u||(u={})),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,!1);return e.cast(r.parent,e.isClassLike)}function i(t,r,a,i){var s=e.getClassExtendsHeritageClauseElement(t),l=a.getTypeAtLocation(s),c=a.getPropertiesOfType(l).filter(o);n.createMissingMemberNodes(t,c,a,function(e){return i.insertNodeAtClassStart(r,t,e)})}function o(n){var t=e.getModifierFlags(e.first(n.getDeclarations()));return!(8&t||!(128&t))}n.registerCodeFix({errorCodes:t,getCodeActions:function(n){var t=n.program,o=n.sourceFile,s=n.span,l=e.textChanges.ChangeTracker.with(n,function(e){return i(a(o,s.start),o,t.getTypeChecker(),e)});return 0===l.length?void 0:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:l,fixId:r}]},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();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.program.getTypeChecker(),n)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),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.deleteNode(n,r)}function i(n,t){var r=e.getTokenAtPosition(n,t,!1);if(99===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(n){var r=n.sourceFile,o=n.span,s=i(r,o.start);if(s){var l=s.constructor,c=s.superCall,u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,r,l,c)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor),changes:u,fixId:t}]}},fixIds:[t],getAllCodeActions:function(t){var o=t.sourceFile,s=e.createMap();return n.codeFixAll(t,r,function(n,t){var r=i(t.file,t.start);if(r){var l=r.constructor,c=r.superCall;e.addToSeen(s,e.getNodeId(l.parent))&&a(n,o,l,c)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),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,!1);return e.Debug.assert(123===r.kind),r.parent}function i(n,t,r){var a=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));n.insertNodeAtConstructorStart(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=n.sourceFile,o=n.span,s=a(r,o.start),l=e.textChanges.ChangeTracker.with(n,function(e){return i(e,r,s)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_missing_super_call),changes:l,fixId:t}]},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={}))}(u||(u={})),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,!1),a=e.getContainingClass(r).heritageClauses,i=a[0].getFirstToken();return 85===i.kind?{extendsToken:i,heritageClauses:a}:void 0}function i(n,t,r,a){if(n.replaceNode(t,r,e.createToken(108),e.textChanges.useNonAdjustedPositions),2===a.length&&85===a[0].token&&108===a[1].token){var i=a[1].getFirstToken(),o=i.getFullStart();n.replaceRange(t,{pos:o,end:o},e.createToken(26));for(var s=t.text,l=i.end;l<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(l));)l++;n.deleteRange(t,{pos:i.getStart(),end:l})}}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=n.sourceFile,o=a(r,n.span.start);if(o){var s=o.extendsToken,l=o.heritageClauses,c=e.textChanges.ChangeTracker.with(n,function(e){return i(e,r,s,l)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Change_extends_to_implements),changes:c,fixId:t}]}},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={}))}(u||(u={})),function(e){!function(n){var t="forgottenThisPropertyAccess",r=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code];function a(n,t){var r=e.getTokenAtPosition(n,t,!1);return e.isIdentifier(r)?r:void 0}function i(n,t,r){r&&(e.suppressLeadingAndTrailingTrivia(r),n.replaceNode(t,r,e.createPropertyAccess(e.createThis(),r),e.textChanges.useNonAdjustedPositions))}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=n.sourceFile,o=a(r,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,function(e){return i(e,r,o)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_this_to_unresolved_variable),changes:s,fixId:t}]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){i(n,e.sourceFile,a(t.file,t.start))})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="unusedIdentifier_prefix",r="unusedIdentifier_delete",a=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code];function i(n,t){var r=e.getTokenAtPosition(n,t,!1);return 91===r.kind?e.tryCast(r.parent,e.isImportDeclaration):void 0}function o(n,t,r,a){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&e.isIdentifier(a)&&s(a)&&n.replaceNode(r,a,e.createIdentifier("_"+a.text))}function s(e){switch(e.parent.kind){case 148:return!0;case 230:switch(e.parent.parent.parent.kind){case 220:case 219:return!0}}return!1}function l(n,t,r){switch(r.kind){case 71:!function(n,t,r){var a=r.parent;switch(a.kind){case 230:!function(n,t,r){switch(r.parent.parent.kind){case 218:var a=r.parent.parent,i=a.initializer;1===i.declarations.length?n.deleteNode(t,i):n.deleteNodeInList(t,r);break;case 220:var o=r.parent.parent;e.Debug.assert(231===o.initializer.kind);var s=o.initializer;n.replaceNode(t,s.declarations[0],e.createObjectLiteral());break;case 219:case 228:break;default:var l=r.parent.parent;1===l.declarationList.declarations.length?n.deleteNode(t,l):n.deleteNodeInList(t,r)}}(n,t,a);break;case 147:var i=a.parent.typeParameters;if(1===i.length){var o=e.getTokenAtPosition(t,i.pos-1,!1),s=e.getTokenAtPosition(t,i.end,!1);e.Debug.assert(27===o.kind),e.Debug.assert(29===s.kind),n.deleteNodeRange(t,o,s)}else n.deleteNodeInList(t,a);break;case 148:var l=a.parent;if(e.isArrowFunction(l)&&1===l.parameters.length){var d=e.updateArrowFunction(l,l.modifiers,l.typeParameters,void 0,l.type,l.equalsGreaterThanToken,l.body);e.suppressLeadingAndTrailingTrivia(d),n.replaceNode(t,l,d,e.textChanges.useNonAdjustedPositions)}else n.deleteNodeInList(t,a);break;case 241:var m=e.getAncestor(r,241);n.deleteNode(t,m);break;case 246:var p=a.parent;1===p.elements.length?u(n,t,p):n.deleteNodeInList(t,a);break;case 243:var f=a;if(f.namedBindings){var g=f.name.getStart(t),s=e.getTokenAtPosition(t,f.name.end,!1);if(s&&26===s.kind){var v=e.skipTrivia(t.text,s.end,!1,!0);n.deleteRange(t,{pos:g,end:v})}else n.deleteNode(t,f.name)}else n.deleteNode(t,e.getAncestor(f,242));break;case 244:u(n,t,a);break;default:c(n,t,r)}}(n,t,r);break;case 151:case 244:n.deleteNode(t,r.parent);break;default:c(n,t,r)}}function c(n,t,r){e.isDeclarationName(r)?n.deleteNode(t,r.parent):e.isLiteralComputedPropertyDeclarationName(r)&&n.deleteNode(t,r.parent.parent)}function u(n,t,r){if(r.parent.name){var a=e.getTokenAtPosition(t,r.pos-1,!1);a&&26===a.kind&&n.deleteRange(t,{pos:a.getStart(),end:r.end})}else{var i=e.getAncestor(r,242);n.deleteNode(t,i)}}n.registerCodeFix({errorCodes:a,getCodeActions:function(n){var a=n.errorCode,s=n.sourceFile,c=i(s,n.span.start);if(c)return[{description:p=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Remove_import_from_0),[e.showModuleSpecifier(c)]),changes:e.textChanges.ChangeTracker.with(n,function(e){return e.deleteNode(s,c)}),fixId:r}];var u=function(n,t){var r=e.findPrecedingToken(t,n);return 22===r.kind?e.findPrecedingToken(t-1,n):r}(s,e.textSpanEnd(n.span)),d=[],m=e.textChanges.ChangeTracker.with(n,function(e){return l(e,s,u)});if(m.length){var p=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Remove_declaration_for_Colon_0),[u.getText()]);d.push({description:p,changes:m,fixId:r})}var f=e.textChanges.ChangeTracker.with(n,function(e){return o(e,a,s,u)});if(f.length){p=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Prefix_0_with_an_underscore),[u.getText()]);d.push({description:p,changes:f,fixId:t})}return d},fixIds:[t,r],getAllCodeActions:function(c){return n.codeFixAll(c,a,function(n,a){var u=c.sourceFile,d=e.findPrecedingToken(e.textSpanEnd(a),a.file);switch(c.fixId){case t:e.isIdentifier(d)&&s(d)&&o(n,a.code,u,d);break;case r:var m=i(a.file,a.start);m?n.deleteNode(u,m):l(n,u,d);break;default:e.Debug.fail(JSON.stringify(c.fixId))}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function r(e,n,t,r,a){e.replaceNode(n,t,a.typeToTypeNode(r,t))}function a(n,t,r){var a=e.findAncestor(e.getTokenAtPosition(n,t,!1),i),o=a&&a.type;return o&&{typeNode:o,type:r.getTypeFromTypeNode(o)}}function i(e){switch(e.kind){case 206:case 157:case 158:case 232:case 155:case 159:case 176:case 153:case 152:case 148:case 151:case 150:case 156:case 235:case 188:case 230:return!0;default:return!1}}n.registerCodeFix({errorCodes:t,getCodeActions:function(n){var t=n.sourceFile,i=n.program.getTypeChecker(),o=a(t,n.span.start,i);if(o){var s=o.typeNode,l=o.type,c=s.getText(t),u=[d(l,"fixJSDocTypes_plain")];return 277===s.kind&&u.push(d(i.getNullableType(l,4096),"fixJSDocTypes_nullable")),u}function d(a,o){var l=i.typeToString(a);return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_0_to_1),[c,l]),changes:e.textChanges.ChangeTracker.with(n,function(e){return r(e,t,s,a,i)}),fixId:o}}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var i=e.fixId,o=e.program,s=e.sourceFile,l=o.getTypeChecker();return n.codeFixAll(e,t,function(e,n){var t=a(n.file,n.start,l);if(t){var o=t.typeNode,c=t.type,u=277===o.kind&&"fixJSDocTypes_nullable"===i?l.getNullableType(c,4096):c;r(e,s,o,u,l)}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixAwaitInSyncFunction",r=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function a(n,t){var r,a,i=e.getTokenAtPosition(n,t,!1),o=e.getContainingFunction(i);switch(o.kind){case 153:r=o.name;break;case 232:case 190:r=e.findChildOfKind(o,89,n);break;case 191:r=e.findChildOfKind(o,19,n)||e.first(o.parameters);break;default:return}return{insertBefore:r,returnType:(a=o,a.type?a.type:e.isVariableDeclaration(a.parent)&&a.parent.type&&e.isFunctionTypeNode(a.parent.type)?a.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&&71===o.kind&&"Promise"===o.text||n.replaceNode(t,i,e.createTypeReferenceNode("Promise",e.createNodeArray([i])))}n.insertModifierBefore(t,120,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=n.sourceFile,o=n.span,s=a(r,o.start);if(s){var l=e.textChanges.ChangeTracker.with(n,function(e){return i(e,r,s)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_async_modifier_to_containing_function),changes:l,fixId:t}]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,function(n,t){var r=a(t.file,t.start);r&&i(n,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r=e.textChanges.ChangeTracker;function a(n,t,r){return{description:e.formatMessage.apply(void 0,[void 0,n].concat(t)),changes:r,fixId:void 0}}function i(n,t,r){var a=!!n.host.useCaseSensitiveFileNames&&n.host.useCaseSensitiveFileNames(),i=n.program,o=i.getTypeChecker();return{host:n.host,formatContext:n.formatContext,sourceFile:n.sourceFile,program:i,checker:o,compilerOptions:i.getCompilerOptions(),cachedImportDeclarations:[],getCanonicalFileName:e.createGetCanonicalFileName(a),symbolName:r,symbolToken:t}}function o(n,t){var i=e.flatMap(n,function(n){return function(n,t,r,a){var i=n.moduleSymbol,o=n.importKind,s=r.imports;void 0===a&&(a=[]);var l=e.getUniqueSymbolId(i,t),c=a[l];c||(c=a[l]=e.mapDefined(s,function(n){var r=t.getSymbolAtLocation(n)===i?function(n){var t=n.parent;switch(t.kind){case 242:return t;case 252:return t.parent;case 248:case 185:return;default:e.Debug.fail()}}(n):void 0;return r&&{declaration:r,importKind:o}}));return c}(n,t.checker,t.sourceFile,t.cachedImportDeclarations)});return(t.symbolToken&&e.isIdentifier(t.symbolToken)?e.mapDefined(i,function(n){var i=function(n){if(242===n.kind){var t=n.importClause&&e.isImportClause(n.importClause)&&n.importClause.namedBindings;return t&&244===t.kind?t.name:void 0}return n.name}(n.declaration);if(i){var o=t.checker.getAliasedSymbol(t.checker.getSymbolAtLocation(i));if(o&&o.exports.has(e.escapeLeadingUnderscores(t.symbolName)))return function(n,t,i){var o=t.symbolName,s=t.sourceFile,l=r.with(t,function(t){return t.replaceNode(s,i,e.createPropertyAccess(e.createIdentifier(n),i))});return a(e.Diagnostics.Change_0_to_1,[o,n+"."+o],l)}(i.text,t,t.symbolToken)}}):e.emptyArray).concat(function(n,t,i){var o=e.firstDefined(i,function(n){var i=n.declaration,o=n.importKind;if(242===i.kind&&i.importClause){var s=function(n,t,a){var i=n.symbolName,o=n.sourceFile,s=t.name,l=(241!==t.kind&&t).namedBindings;switch(a){case 1:return s?void 0:r.with(n,function(n){return n.replaceNode(o,t,e.createImportClause(e.createIdentifier(i),l))});case 0:var c=e.createImportSpecifier(void 0,e.createIdentifier(i));return l&&245===l.kind&&0!==l.elements.length?r.with(n,function(e){return e.insertNodeInListAfter(o,l.elements[l.elements.length-1],c)}):!l||245===l.kind&&0===l.elements.length?r.with(n,function(n){return n.replaceNode(o,t,e.createImportClause(s,e.createNamedImports([c])))}):void 0;case 2:return l?void 0:r.with(n,function(n){return n.replaceNode(o,t,e.createImportClause(s,e.createNamespaceImport(e.createIdentifier(i))))});case 3:return;default:e.Debug.assertNever(a)}}(t,e.isImportClause(i.importClause)&&i.importClause||void 0,o);if(s){var l=e.stripQuotes(i.moduleSpecifier.getText());return a(e.Diagnostics.Add_0_to_existing_import_declaration_from_1,[t.symbolName,l],s)}}});if(o)return[o];var l=e.firstDefined(i,f);return(l?[l]:s(t.program,t.sourceFile,n,t.compilerOptions,t.getCanonicalFileName,t.host)).map(function(n){return i=t,s=(o=n).moduleSpecifier,l=o.importKind,c=i.sourceFile,u=i.symbolName,d=e.findLast(c.statements,e.isAnyImportSyntax),m=e.stripQuotes(s),p=function(n,t){var r=e.createLiteral(t),a=e.firstOrUndefined(n.imports);return r.singleQuote=!!a&&!e.isStringDoubleQuoted(a,n),r}(c,m),f=3!==l?e.createImportDeclaration(void 0,void 0,function(n,t){var r=e.createIdentifier(t);switch(n){case 1:return e.createImportClause(r,void 0);case 2:return e.createImportClause(void 0,e.createNamespaceImport(r));case 0:return e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,r)]));default:e.Debug.assertNever(n)}}(l,u),p):e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(u),e.createExternalModuleReference(p)),g=r.with(i,function(e){d?e.insertNodeAfter(c,d,f):e.insertNodeAtTopOfFile(c,f,!0)}),a(e.Diagnostics.Import_0_from_module_1,[u,m],g);var i,o,s,l,c,u,d,m,p,f,g})}(n,t,i))}function s(n,t,r,a,i,o){var s=a.baseUrl,f=a.paths,g=a.rootDirs,v=function(n){return e.firstDefined(n.imports,function(n){var t=n.text;return e.pathIsRelative(t)?e.fileExtensionIs(t,".js"):void 0})||!1}(t),_=e.flatMap(r,function(r){var _=r.moduleSymbol,y=r.importKind;return function(n,t){var r=t.fileName,a=e.mapDefined(n.getSourceFiles(),function(n){return n.resolvedModules&&e.firstDefinedIterator(n.resolvedModules.values(),function(e){return e&&e.resolvedFileName===r?e.originalPath:void 0})});return 0===a.length?[r]:a}(n,_.valueDeclaration.getSourceFile()).map(function(n){var r=e.getDirectoryPath(t.fileName),y=function(n){var t=n.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}(_)||function(n,t,r,a,i){var o=e.getEffectiveTypeRoots(n,t);return e.firstDefined(o,function(t){var o=e.toPath(t,void 0,r);if(e.startsWith(a,o))return u(a.substring(o.length+1),n,i)})}(a,o,i,n,v)||function(n,t,r,a,i){if(e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs)return;var o=function(e){var n,t=0,r=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(n||(n={}));var i=0,o=0,s=0;for(;o>=0;)switch(i=o,o=e.indexOf("/",i+1),s){case 0:e.indexOf("/node_modules/",i)===i&&(t=i,r=o,s=1);break;case 1:case 2:1===s&&"@"===e.charAt(i+1)?s=2:(a=o,s=3);break;case 3:s=e.indexOf("/node_modules/",i)===i?1:3}return s>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:a,fileNameIndex:i}:void 0}(t);if(!o)return;var s=function(n){var t=n.substring(0,o.packageRootIndex),i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var s=JSON.parse(r.readFile(i));if(s){var l=s.typings||s.types||s.main;if(l){var c=e.toPath(l,t,a);if(c===a(n))return t}}}var u=e.removeFileExtension(n);if("/index"===a(u.substring(o.fileNameIndex)))return u.substring(0,o.fileNameIndex);return u}(t);return l=s,c=l.substring(0,o.topLevelNodeModulesIndex),s=0===i.indexOf(c)?l.substring(o.topLevelPackageNameIndex+1):p(l,i,a),e.getPackageNameFromAtTypesDirectory(s);var l,c}(a,n,o,i,r)||g&&function(n,t,r,a){var i=c(t,n,a);if(void 0===i)return;var o=c(r,n,a),s=void 0!==o?p(i,o,a):i;return e.removeFileExtension(s)}(g,n,r,i);if(y)return[y];var h=u(p(n,r,i),a,v);if(!s)return[h];var b=d(n,s,i);if(!b)return[h];var E=u(b,a,v);if(f){var T=function(n,t,r){for(var a in r)for(var i=0,o=r[a];i<o.length;i++){var s=o[i],l=e.removeFileExtension(e.normalizePath(s)),c=l.indexOf("*");if(0!==c||1!==l.length)if(-1!==c){var u=l.substr(0,c),d=l.substr(c+1);if(t.length>=u.length+d.length&&e.startsWith(t,u)&&e.endsWith(t,d)){var m=t.substr(u.length,t.length-d.length);return a.replace("*",m)}}else if(l===t||l===n)return a}}(e.removeFileExtension(b),E,f);if(T)return[T]}if(m(b))return[h];var S=p(s,r,i);return l(h)<l(S)?[h,E]:[E,h]}).map(function(e){return e.map(function(e){return{moduleSpecifier:e,importKind:y}})})});return e.flatten(_.sort(function(n,t){return e.first(n).moduleSpecifier.length-e.first(t).moduleSpecifier.length}))}function l(e){for(var n=0,t=0;t+3<=e.length&&"../"===e.slice(t,t+3);t+=3)n++;return n}function c(n,t,r){return e.firstDefined(t,function(e){var t=d(n,e,r);return m(t)?void 0:t})}function u(n,t,r){var a=e.removeFileExtension(n);return r?a+".js":e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?e.removeSuffix(a,"/index"):a}function d(n,t,r){var a=e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1);return e.isRootedDiskPath(a)?void 0:a}function m(n){return e.startsWith(n,"..")}function p(n,t,r){var a=e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1);return e.pathIsRelative(a)?a:"./"+a}function f(n){var t=n.declaration,r=n.importKind,a=242===t.kind?t.moduleSpecifier:252===t.moduleReference.kind?t.moduleReference.expression:void 0;return a&&e.isStringLiteral(a)?{moduleSpecifier:a.text,importKind:r}:void 0}function g(n,t){var r=n.declarations;return e.some(r,function(n){return!!(e.getMeaningFromDeclaration(n)&t)})}function v(n,t,r,a){_(n,r,function(n,r){var i,o,s;(void 0===r||r!==t&&(i=t.fileName,o=r.fileName,void 0===(s=e.forEachAncestorDirectory(o,function(n){return"node_modules"===e.getBaseFileName(n)?n:void 0}))||e.startsWith(i,e.getDirectoryPath(s))))&&a(n)})}function _(n,t,r){for(var a=0,i=n.getAmbientModules();a<i.length;a++){r(i[a],void 0)}for(var o=0,s=t;o<s.length;o++){var l=s[o];e.isExternalOrCommonJsModule(l)&&r(l.symbol,l)}}function y(n,t){return h(e.removeFileExtension(e.getBaseFileName(n.name)),t)}function h(n,t){var r="",a=!0,i=n.charCodeAt(0);e.isIdentifierStart(i,t)?r+=String.fromCharCode(i):a=!1;for(var o=1;o<n.length;o++){var s=n.charCodeAt(o),l=e.isIdentifierPart(s,t);if(l){var c=String.fromCharCode(s);a||(c=c.toUpperCase()),r+=c}a=l}return e.isStringANonContextualKeyword(r)?"_"+r:r||"_"}n.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.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],getCodeActions:function(n){return n.errorCode===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(n){var t,r=e.getTokenAtPosition(n.sourceFile,n.span.start,!1),a=n.program.getTypeChecker();e.isIdentifier(r)&&(t=a.getSymbolAtLocation(r));if(!e.isUMDExportSymbol(t)){var s=r.parent,l=e.isJsxOpeningLikeElement(s);(e.isJsxOpeningLikeElement&&s.tagName===r||258===s.kind)&&(t=a.resolveName(a.getJsxNamespace(s),l?s.tagName:s,67216319,!1))}if(e.isUMDExportSymbol(t)){var c=a.getAliasedSymbol(t);if(c)return o([{moduleSymbol:c,importKind:function(n){if(e.getAllowSyntheticDefaultImports(n))return 1;var t=e.getEmitModuleKind(n);switch(t){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return 3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(t)}}(n.program.getCompilerOptions())}],i(n,r,t.name))}return}(n):function(n){var t=n.sourceFile,r=n.span,a=n.program,s=n.cancellationToken,l=a.getTypeChecker(),c=e.getTokenAtPosition(t,r.start,!1),u=e.isJsxOpeningLikeElement(c.parent)&&c.parent.tagName===c;if(!u&&!e.isIdentifier(c))return;var d=u?l.getJsxNamespace():c.text,m=a.getSourceFiles(),p=a.getCompilerOptions();e.Debug.assert("default"!==d);var f=e.getMeaningFromLocation(c),_=e.createMultiMap();function h(n,t,r){_.add(e.getUniqueSymbolId(t,l).toString(),{moduleSymbol:n,importKind:r})}return v(l,t,m,function(n){s.throwIfCancellationRequested();var t,r=l.tryGetMemberInModuleExports("default",n);if(r){var a=e.getLocalSymbolForExportDefault(r);(a&&a.escapedName===d||(t=r,e.firstDefined(t.declarations,function(n){if(e.isExportAssignment(n)){if(e.isIdentifier(n.expression))return n.expression.escapedText}else if(e.isExportSpecifier(n)&&(e.Debug.assert("default"===n.name.escapedText),n.propertyName))return n.propertyName.escapedText})===d)||y(n,p.target)===d)&&g(a||r,f)&&h(n,a||r,1)}var i=l.tryGetMemberInModuleExportsAndProperties(d,n);i&&g(i,f)&&h(n,i,0)}),e.arrayFrom(e.flatMapIterator(_.values(),function(e){return o(e,i(n,c,d))}))}(n)},fixIds:[],getAllCodeActions:e.notImplemented}),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.Equals=3]="Equals"}(t||(t={})),n.getImportCompletionAction=function(n,t,r,a,i,l,c,u,d,m,p,f){var g=function(n,t,r){var a=[];return _(t,r,function(r){for(var i=0,o=t.getExportsOfModule(r);i<o.length;i++){var s=o[i];if(e.skipAlias(s,t)===n){var l=t.tryGetMemberInModuleExports("default",r)===s;a.push({moduleSymbol:r,importKind:l?1:0})}}}),a}(n,c,d);e.Debug.assert(g.some(function(e){return e.moduleSymbol===t}));var v={host:i,program:l,checker:c,compilerOptions:u,sourceFile:r,formatContext:m,symbolName:a,getCanonicalFileName:p,symbolToken:f};return{moduleSpecifier:e.first(s(l,r,g,u,p,i)).moduleSpecifier,codeAction:e.first(o(g,v))}},n.forEachExternalModuleToImportFrom=v,n.moduleSymbolToValidIdentifier=y,n.moduleSpecifierToValidIdentifier=h}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="disableJsDiagnostics",r=e.mapDefined(Object.keys(e.Diagnostics),function(n){var t=e.Diagnostics[n];return t.category===e.DiagnosticCategory.Error?t.code:void 0});function a(n,t){return!e.isInComment(n,t)&&!e.isInString(n,t)&&!e.isInTemplateString(n,t)}function i(n,t,r,i){var o=e.getLineAndCharacterOfPosition(t,r).line;if(!i||e.addToSeen(i,o)){var s=e.getStartPositionOfLine(o,t),l=e.getFirstNonSpaceCharacterPosition(t.text,s),c=a(t,l),u=e.getTouchingToken(t,c?l:r,!1),d=e.setStartsOnNewLine(e.getSynthesizedDeepClone(u),!0);e.addSyntheticLeadingComment(d,2," @ts-ignore"),n.replaceNode(t,u,d,{preserveLeadingWhitespace:!0,prefix:c?void 0:n.newLineCharacter})}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.program,l=r.span,c=r.host,u=r.formatContext;if(e.isInJavaScriptFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var d=[{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[n.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(c,u.options))])],fixId:void 0}];return a(o,l.start)&&d.unshift({description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:e.textChanges.ChangeTracker.with(r,function(e){return i(e,o,l.start)}),fixId:t}),d}},fixIds:[t],getAllCodeActions:function(t){var o=e.createMap();return n.codeFixAll(t,r,function(e,n){a(n.file,n.start)&&i(e,n.file,n.start,o)})}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n,t,i,o){var s=n.getDeclarations();if(s&&s.length){var l,c=s[0],u=e.getSynthesizedDeepClone(e.getNameOfDeclaration(c)),d=function(n){if(4&n)return e.createToken(114);if(16&n)return e.createToken(113);return}(e.getModifierFlags(c)),m=d?e.createNodeArray([d]):void 0,p=i.getWidenedType(i.getTypeOfSymbolAtLocation(n,t)),f=!!(16777216&n.flags);switch(c.kind){case 155:case 156:case 150:case 151:var g=i.typeToTypeNode(p,t);o(e.createProperty(void 0,m,u,f?e.createToken(55):void 0,g,void 0));break;case 152:case 153:var v=i.getSignaturesOfType(p,0);if(!e.some(v))break;if(1===s.length){e.Debug.assert(1===v.length),h(v[0],m,u,a());break}for(var _=0,y=v;_<y.length;_++){h(y[_],(l=m)&&e.createNodeArray(l.map(e.getSynthesizedDeepClone)),e.getSynthesizedDeepClone(u))}if(s.length>v.length)h(i.getSignatureFromDeclaration(s[s.length-1]),m,u,a());else e.Debug.assert(s.length===v.length),o(function(n,t,i,o){for(var s=n[0],l=n[0].minArgumentCount,c=!1,u=0,d=n;u<d.length;u++){var m=d[u];l=Math.min(m.minArgumentCount,l),m.hasRestParameter&&(c=!0),m.parameters.length>=s.parameters.length&&(!m.hasRestParameter||s.hasRestParameter)&&(s=m)}var p=s.parameters.length-(s.hasRestParameter?1:0),f=s.parameters.map(function(e){return e.name}),g=r(p,f,l,!1);if(c){var v=e.createArrayTypeNode(e.createKeywordTypeNode(119)),_=e.createParameter(void 0,void 0,e.createToken(24),f[p]||"rest",p>=l?e.createToken(55):void 0,v,void 0);g.push(_)}return function(n,t,r,i,o,s){return e.createMethod(void 0,n,void 0,t,r?e.createToken(55):void 0,i,o,s,a())}(o,t,i,void 0,g,void 0)}(v,u,f,m))}}function h(n,r,a,s){var l=function(n,t,r,a,i,o,s){var l=n.signatureToSignatureDeclaration(t,153,r,256);if(!l)return;return l.decorators=void 0,l.modifiers=a,l.name=i,l.questionToken=o?e.createToken(55):void 0,l.body=s,l}(i,n,t,r,a,f,s);l&&o(l)}}function r(n,t,r,a){for(var i=[],o=0;o<n;o++){var s=e.createParameter(void 0,void 0,void 0,t&&t[o]||"arg"+o,void 0!==r&&o>=r?e.createToken(55):void 0,a?void 0:e.createKeywordTypeNode(119),void 0);i.push(s)}return i}function a(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}n.createMissingMemberNodes=function(e,n,r,a){for(var i=e.symbol.members,o=0,s=n;o<s.length;o++){var l=s[o];i.has(l.escapedName)||t(l,e,r,a)}},n.createMethodFromCallExpression=function(n,t,i,o){var s=n.typeArguments,l=n.arguments;return e.createMethod(void 0,o?[e.createToken(115)]:void 0,void 0,t,void 0,i?void 0:e.map(s,function(n,t){return e.createTypeParameterDeclaration(84+s.length-1<=90?String.fromCharCode(84+t):"T"+t)}),r(l.length,void 0,void 0,i),i?void 0:e.createKeywordTypeNode(119),a())}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,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];function a(n,r,a,u,d,m,p){if(function(e){switch(e){case 71:case 24:case 114:case 112:case 113:case 132:return!0;default:return!1}}(a.kind)){switch(u){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:return i(n,r,a.parent,d,m),a.parent;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var f=d.getTypeChecker().getSymbolAtLocation(a);if(f&&f.valueDeclaration)return i(n,r,f.valueDeclaration,d,m),f.valueDeclaration}var g=e.getContainingFunction(a);if(void 0!==g)switch(u){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessor(g))return o(n,r,g,d,m),g;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(!p||e.addToSeen(p,e.getNodeId(g))){var v=e.cast(a.parent,e.isParameter);return function(n,r,a,i,o,u){if(!e.isIdentifier(r.name)||!function(e){switch(e.kind){case 232:case 153:case 154:return!0;case 190:return!!e.name}return!1}(a))return;var d=function(n,r,a,i){switch(n.kind){case 154:case 190:case 232:case 153:var o=154===n.kind,s=o?e.findChildOfKind(n,123,r):n.name;if(s)return t.inferTypeForParametersFromReferences(l(s,a,i),n,a.getTypeChecker(),i)}}(a,i,o,u)||a.parameters.map(function(n){return e.isIdentifier(n.name)?c(n.name,o,u):void 0});if(!d||a.parameters.length!==d.length)return;e.zipWith(a.parameters,d,function(e,t){e.type||e.initializer||s(n,i,e,t,o)})}(n,v,g,r,d,m),v}return;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:return e.isGetAccessor(g)&&e.isIdentifier(g.name)?(s(n,r,g,c(g.name,d,m),d),g):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessor(g)?(o(n,r,g,d,m),g):void 0;default:return e.Debug.fail(String(u))}}}function i(n,t,r,a,i){e.isIdentifier(r.name)&&s(n,t,r,c(r.name,a,i),a)}function o(n,t,r,a,i){var o=e.firstOrUndefined(r.parameters);o&&e.isIdentifier(r.name)&&e.isIdentifier(o.name)&&s(n,t,o,c(r.name,a,i)||c(o.name,a,i),a)}function s(e,n,t,r,a){var i=r&&function(e,n,t){var r=!0,a=function(){r=!1},i=t.typeToTypeNode(e,n,void 0,{trackSymbol:function(e,n,a){r=r&&0===t.isSymbolAccessible(e,n,a,!1).accessibility},reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a});return r?i:void 0}(r,t,a.getTypeChecker());i&&e.insertTypeAnnotation(n,t,i)}function l(n,t,r){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r),function(n){return"node"===n.type?e.tryCast(n.node,e.isIdentifier):void 0})}function c(e,n,r){return t.inferTypeFromReferences(l(e,n,r),n.getTypeChecker(),r)}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var t=n.sourceFile,r=n.program,i=n.span.start,o=n.errorCode,s=n.cancellationToken;if(!e.isSourceFileJavaScript(t)){var l,c=e.getTokenAtPosition(t,i,!1),u=e.textChanges.ChangeTracker.with(n,function(e){l=a(e,t,c,o,r,s)});if(0!==u.length){var d=e.getNameOfDeclaration(l).getText();return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(function(n,t){switch(n){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:return e.isSetAccessor(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:return e.Diagnostics.Infer_parameter_types_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}(o,c)),[d]),changes:u,fixId:"inferFromUsage"}]}}},fixIds:["inferFromUsage"],getAllCodeActions:function(t){var i=t.sourceFile,o=t.program,s=t.cancellationToken,l=e.createMap();return n.codeFixAll(t,r,function(n,t){a(n,i,e.getTokenAtPosition(t.file,t.start,!1),t.code,o,s,l)})}}),function(n){function t(n,a,i){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;switch(n.parent.kind){case 197:i.isNumber=!0;break;case 196:!function(e,n){switch(e.operator){case 43:case 44:case 38:case 52:n.isNumber=!0;break;case 37:n.isNumberOrString=!0}}(n.parent,i);break;case 198:!function(n,t,r,a){switch(t.operatorToken.kind){case 40:case 39:case 41:case 42:case 45:case 46:case 47:case 48:case 49:case 50:case 60:case 62:case 61:case 63:case 64:case 68:case 69:case 70:case 65:case 67:case 66:case 38:case 27:case 30:case 29:case 31:var i=r.getTypeAtLocation(t.left===n?t.right:t.left);272&i.flags?s(a,i):a.isNumber=!0;break;case 59:case 37:var o=r.getTypeAtLocation(t.left===n?t.right:t.left);272&o.flags?s(a,o):84&o.flags?a.isNumber=!0:524322&o.flags?a.isString=!0:a.isNumberOrString=!0;break;case 58:case 32:case 34:case 35:case 33:s(a,r.getTypeAtLocation(t.left===n?t.right:t.left));break;case 92:n===t.left&&(a.isString=!0);break;case 54:n!==t.left||230!==n.parent.parent.kind&&!e.isAssignmentExpression(n.parent.parent,!0)||s(a,r.getTypeAtLocation(t.right))}}(n,n.parent,a,i);break;case 264:case 265:!function(e,n,t){s(t,n.getTypeAtLocation(e.parent.parent.expression))}(n.parent,a,i);break;case 185:case 186:n.parent.expression===n?function(e,n,r){var a={argumentTypes:[],returnType:{}};if(e.arguments)for(var i=0,o=e.arguments;i<o.length;i++){var s=o[i];a.argumentTypes.push(n.getTypeAtLocation(s))}t(e,n,a.returnType),185===e.kind?(r.callContexts||(r.callContexts=[])).push(a):(r.constructContexts||(r.constructContexts=[])).push(a)}(n.parent,a,i):r(n,a,i);break;case 183:!function(n,r,a){var i=e.escapeLeadingUnderscores(n.name.text);a.properties||(a.properties=e.createUnderscoreEscapedMap());var o=a.properties.get(i)||{};t(n,r,o),a.properties.set(i,o)}(n.parent,a,i);break;case 184:!function(e,n,r,a){if(n===e.argumentExpression)return void(a.isNumberOrString=!0);var i=r.getTypeAtLocation(e),o={};t(e,r,o),84&i.flags?a.numberIndexContext=o:a.stringIndexContext=o}(n.parent,n,a,i);break;default:return r(n,a,i)}}function r(n,t,r){e.isExpressionNode(n)&&s(r,t.getContextualType(n))}function a(n,t){if(n.isNumberOrString&&!n.isNumber&&!n.isString)return t.getUnionType([t.getNumberType(),t.getStringType()]);if(n.isNumber)return t.getNumberType();if(n.isString)return t.getStringType();if(n.candidateTypes)return t.getWidenedType(t.getUnionType(e.map(n.candidateTypes,function(e){return t.getBaseTypeOfLiteralType(e)}),2));if(n.properties&&l(n.properties.get("then"))){var r=i(0,n.properties.get("then").callContexts,!1,t).getCallSignatures().map(function(e){return e.getReturnType()});return t.createPromiseType(r.length?t.getUnionType(r,2):t.getAnyType())}if(n.properties&&l(n.properties.get("push")))return t.createArrayType(i(0,n.properties.get("push").callContexts,!1,t));if(n.properties||n.callContexts||n.constructContexts||n.numberIndexContext||n.stringIndexContext){var s=e.createUnderscoreEscapedMap(),c=[],u=[],d=void 0,m=void 0;if(n.properties&&n.properties.forEach(function(e,n){var r=t.createSymbol(4,n);r.type=a(e,t)||t.getAnyType(),s.set(n,r)}),n.callContexts)for(var p=0,f=n.callContexts;p<f.length;p++){var g=f[p];c.push(o(g,t))}if(n.constructContexts)for(var v=0,_=n.constructContexts;v<_.length;v++){var y=_[v];u.push(o(y,t))}return n.numberIndexContext&&(m=t.createIndexInfo(a(n.numberIndexContext,t),!1)),n.stringIndexContext&&(d=t.createIndexInfo(a(n.stringIndexContext,t),!1)),t.createAnonymousType(void 0,s,c,u,d,m)}}function i(n,t,r,a){var i=[];if(t)for(var o=0,s=t;o<s.length;o++){var l=s[o];l.argumentTypes.length>n&&(r?i=e.concatenate(i,e.map(l.argumentTypes.slice(n),function(e){return a.getBaseTypeOfLiteralType(e)})):i.push(a.getBaseTypeOfLiteralType(l.argumentTypes[n])))}if(i.length){var c=a.getWidenedType(a.getUnionType(i,2));return r?a.createArrayType(c):c}}function o(n,t){for(var r=[],i=0;i<n.argumentTypes.length;i++){var o=t.createSymbol(1,e.escapeLeadingUnderscores("arg"+i));o.type=t.getWidenedType(t.getBaseTypeOfLiteralType(n.argumentTypes[i])),r.push(o)}var s=a(n.returnType,t)||t.getVoidType();return t.createSignature(void 0,void 0,void 0,r,s,void 0,n.argumentTypes.length,!1,!1)}function s(e,n){!n||1&n.flags||16384&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function l(e){return e&&e.callContexts}n.inferTypeFromReferences=function(e,n,r){for(var i={},o=0,s=e;o<s.length;o++){var l=s[o];r.throwIfCancellationRequested(),t(l,n,i)}return a(i,n)},n.inferTypeForParametersFromReferences=function(n,r,a,i){if(0!==n.length&&r.parameters){for(var o={},s=0,l=n;s<l.length;s++){var c=l[s];i.throwIfCancellationRequested(),t(c,a,o)}var u=154===r.kind?o.constructContexts:o.callContexts;return u&&r.parameters.map(function(n,t){for(var r=[],i=e.isRestParameter(n),o=0,s=u;o<s.length;o++){var l=s[o];if(!(l.argumentTypes.length<=t))if(i)for(var c=t;c<l.argumentTypes.length;c++)r.push(a.getBaseTypeOfLiteralType(l.argumentTypes[c]));else r.push(a.getBaseTypeOfLiteralType(l.argumentTypes[t]))}if(r.length){var d=a.getWidenedType(a.getUnionType(r,2));return i?a.createArrayType(d):d}})}}}(t||(t={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(t,a){var i=e.getSourceFileOfNode(a),o=e.getNamespaceDeclarationNode(a),s=t.program.getCompilerOptions(),l=[];return l.push(r(t,i,a,n.makeImportDeclaration(o.name,void 0,a.moduleSpecifier))),e.getEmitModuleKind(s)===e.ModuleKind.CommonJS&&l.push(r(t,i,a,e.createImportEqualsDeclaration(void 0,void 0,o.name,e.createExternalModuleReference(a.moduleSpecifier)))),l}function r(n,t,r,a){var i=e.textChanges.ChangeTracker.with(n,function(e){return e.replaceRange(t,{pos:r.getStart(),end:r.end},a)});return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Replace_import_with_0),[i[0].textChanges[0].newText]),changes:i}}n.registerCodeFix({errorCodes:[e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime.code],getCodeActions:function(n){var r=n.sourceFile,a=e.getTokenAtPosition(r,n.span.start,!1).parent;if(!e.isImportDeclaration(a))return[];return t(n,a)}}),n.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(n){var r=n.sourceFile,a=e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===n.errorCode?185:186,i=e.findAncestor(e.getTokenAtPosition(r,n.span.start,!1),function(e){return e.kind===a&&e.getStart()===n.span.start&&e.getEnd()===n.span.start+n.span.length});if(!i)return[];var o=i.expression,s=n.program.getTypeChecker().getTypeAtLocation(o);if(!s.symbol||!s.symbol.originatingImport)return[];var l=[],c=s.symbol.originatingImport;e.isImportCall(c)||e.addRange(l,t(n,c));return l.push({description:e.getLocaleSpecificMessage(e.Diagnostics.Use_synthetic_default_member),changes:e.textChanges.ChangeTracker.with(n,function(n){return n.replaceNode(r,o,e.createPropertyAccess(o,"default"),{})})}),l}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingPropertyDefiniteAssignmentAssertions",r="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",i=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function o(n,t){var r=e.getTokenAtPosition(n,t,!1);return e.isIdentifier(r)?e.cast(r.parent,e.isPropertyDeclaration):void 0}function s(n,t,r,a){var i=e.updateProperty(r,r.decorators,r.modifiers,r.name,e.createToken(51),r.type,r.initializer);n.replaceNode(t,r,i,{suffix:a})}function l(n,t,r){var a=e.createKeywordTypeNode(140),i=e.isUnionTypeNode(r.type)?r.type.types.concat(a):[r.type,a];n.replaceNode(t,r.type,e.createUnionTypeNode(i))}function c(n,t,r,a,i){var o=e.updateProperty(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,a);n.replaceNode(t,r,o,{suffix:i})}function u(n,t){return function n(t,r){if(2&r.flags)return e.createLiteral("");if(4&r.flags)return e.createNumericLiteral("0");if(8&r.flags)return e.createFalse();if(224&r.flags)return e.createLiteral(r.value);if(131072&r.flags)return e.firstDefined(r.types,function(e){return n(t,e)});if(1&e.getObjectFlags(r)){var a=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!a||e.hasModifier(a,128))return;var i=e.find(a.members,function(n){return e.isConstructorDeclaration(n)&&!!n.body});if(i&&i.parameters.length)return;return e.createNew(e.createIdentifier(r.symbol.name),void 0,void 0)}return}(n,n.getTypeFromTypeNode(t.type))}n.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=o(n.sourceFile,n.span.start);if(i){var d=e.getNewLineOrDefaultFromHost(n.host,n.formatContext.options),m=[function(n,t){var a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_undefined_type_to_property_0),[t.name.getText()]),i=e.textChanges.ChangeTracker.with(n,function(e){return l(e,n.sourceFile,t)});return{description:a,changes:i,fixId:r}}(n,i),function(n,r,a){var i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_definite_assignment_assertion_to_property_0),[r.getText()]),o=e.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,r,a)});return{description:i,changes:o,fixId:t}}(n,i,d)];return e.append(m,function(n,t,r){var i=u(n.program.getTypeChecker(),t);if(!i)return;var o=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_initializer_to_property_0),[t.name.getText()]),s=e.textChanges.ChangeTracker.with(n,function(e){return c(e,n.sourceFile,t,i,r)});return{description:o,changes:s,fixId:a}}(n,i,d)),m}},fixIds:[t,r,a],getAllCodeActions:function(d){var m=e.getNewLineOrDefaultFromHost(d.host,d.formatContext.options);return n.codeFixAll(d,i,function(n,i){var p=o(i.file,i.start);if(p)switch(d.fixId){case t:s(n,i.file,p,m);break;case r:l(n,i.file,p);break;case a:var f=u(d.program.getTypeChecker(),p);if(!f)return;c(n,i.file,p,f,m);break;default:e.Debug.fail(JSON.stringify(d.fixId))}})}})}(e.codefix||(e.codefix={}))}(u||(u={})),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,!1);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(e,t,r){e.replaceNode(t,r.importNode,n.makeImportDeclaration(r.name,void 0,r.moduleSpecifier))}n.registerCodeFix({errorCodes:r,getCodeActions:function(n){var r=n.sourceFile,o=n.span.start,s=a(r,o);if(s)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_default_import),changes:e.textChanges.ChangeTracker.with(n,function(e){return i(e,r,s)}),fixId:t}]},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={}))}(u||(u={})),function(e){!function(n){!function(t){var r,a,i,o,s="Extract Symbol";function l(n){var t=u(n.file,{start:n.startPosition,length:e.getRefactorContextLength(n)}).targetRange;if(void 0!==t){var r=function(n,t){var r=m(n,t),a=r.scopes,i=r.readsAndWrites,o=i.functionErrorsPerScope,s=i.constantErrorsPerScope;return a.map(function(n,t){var r,a,i=function(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}(n),l=function(n){return e.isClassLike(n)?"readonly field":"constant"}(n),c=e.isFunctionLikeDeclaration(n)?function(n){switch(n.kind){case 154:return"constructor";case 190:case 232:return n.name?"function '"+n.name.text+"'":"anonymous function";case 191:return"arrow function";case 153:return"method '"+n.name.getText();case 155:return"'get "+n.name.getText()+"'";case 156:return"'set "+n.name.getText()+"'";default:e.Debug.assertNever(n)}}(n):e.isClassLike(n)?function(e){return 233===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(n):function(e){return 238===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(n);return 1===c?(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),[l,"global"])):0===c?(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),[l,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[i,c]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[l,c])),0!==t||e.isClassLike(n)||(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[l])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:a,errors:s[t]}}})}(t,n);if(void 0!==r){for(var a=[],i=e.createMap(),o=[],l=e.createMap(),c=0,d=0,p=r;d<p.length;d++){var f=p[d],g=f.functionExtraction,v=f.constantExtraction;if(0===g.errors.length){var _=g.description;i.has(_)||(i.set(_,!0),a.push({description:_,name:"function_scope_"+c}))}if(0===v.errors.length){_=v.description;l.has(_)||(l.set(_,!0),o.push({description:_,name:"constant_scope_"+c}))}c++}var y=[];return a.length&&y.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:a}),o.length&&y.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),y.length?y:void 0}}}function c(n,t){var r=u(n.file,{start:n.startPosition,length:e.getRefactorContextLength(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=m(n,t),o=i.scopes,s=i.readsAndWrites,l=s.target,c=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 l,c,u=r.usages,d=r.typeParameterUsages,m=r.substitutions,y=s.program.getTypeChecker(),h=t.getSourceFile(),b=p(e.isClassLike(t)?"newMethod":"newFunction",h.text),E=e.isInJavaScriptFile(t),T=e.createIdentifier(b),S=[],L=[];u.forEach(function(n,r){var a;if(!E){var i=y.getTypeOfSymbolAtLocation(n.symbol,n.node);i=y.getBaseTypeOfLiteralType(i),a=y.typeToTypeNode(i,t,1)}var o=e.createParameter(void 0,void 0,void 0,r,void 0,a);S.push(o),2===n.usage&&(c||(c=[])).push(n),L.push(e.createIdentifier(r))});var A=e.arrayFrom(d.values()).map(function(e){return{type:e,declaration:function(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}(e)}}).sort(g),x=0===A.length?void 0:A.map(function(e){return e.declaration}),C=void 0!==x?x.map(function(n){return e.createTypeReferenceNode(n.name,void 0)}):void 0;if(e.isExpression(n)&&!E){var k=y.getContextualType(n);l=y.typeToTypeNode(k,t,1)}var M,D=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.createBlock(n.statements,!0),returnValueProperty:void 0};var l=!1,c=e.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.createReturn(n)]);if(s||a.size){var u=e.visitNodes(c,function n(i){if(!l&&223===i.kind&&s){var c=v(t,r);return i.expression&&(o||(o="__return"),c.unshift(e.createPropertyAssignment(o,e.visitNode(i.expression,n)))),1===c.length?e.createReturn(c[0].name):e.createReturn(e.createObjectLiteral(c))}var u=l;l=l||e.isFunctionLikeDeclaration(i)||e.isClassLike(i);var d=a.get(e.getNodeId(i).toString()),m=d?e.getSynthesizedDeepClone(d):e.visitEachChild(i,n,e.nullTransformationContext);return l=u,m}).slice();if(s&&!i&&e.isStatement(n)){var d=v(t,r);1===d.length?u.push(e.createReturn(d[0].name)):u.push(e.createReturn(e.createObjectLiteral(d)))}return{body:e.createBlock(u,!0),returnValueProperty:o}}return{body:e.createBlock(c,!0),returnValueProperty:void 0}}(n,i,c,m,!!(o.facts&a.HasReturn)),O=D.body,R=D.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(O),e.isClassLike(t)){var I=E?[]:[e.createToken(112)];o.facts&a.InStaticRegion&&I.push(e.createToken(115)),o.facts&a.IsAsyncFunction&&I.push(e.createToken(120)),M=e.createMethod(void 0,I.length?I:void 0,o.facts&a.IsGenerator?e.createToken(39):void 0,T,void 0,x,S,l,O)}else M=e.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.createToken(120)]:void 0,o.facts&a.IsGenerator?e.createToken(39):void 0,T,x,S,l,O);var N=e.textChanges.ChangeTracker.fromContext(s),w=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.assertTypeIsNever(n)}return e.emptyArray}(t),function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)})}((_(o.range)?e.last(o.range):o.range).end,t);w?N.insertNodeBefore(s.file,w,M,!0):N.insertNodeAtEndOfScope(s.file,t,M);var P=[],F=function(n,t,r){var i=e.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&a.InStaticRegion?e.createIdentifier(n.name.text):e.createThis();return e.createPropertyAccess(o,i)}return i}(t,o,b),V=e.createCall(F,C,L);if(o.facts&a.IsGenerator&&(V=e.createYield(e.createToken(39),V)),o.facts&a.IsAsyncFunction&&(V=e.createAwait(V)),i.length&&!c)if(e.Debug.assert(!R),e.Debug.assert(!(o.facts&a.HasReturn)),1===i.length){var G=i[0];P.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(G.name),e.getSynthesizedDeepClone(G.type),V)],G.parent.flags)))}else{for(var H=[],K=[],B=i[0].parent.flags,U=!1,j=0,W=i;j<W.length;j++){var G=W[j];H.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(G.name)));var q=y.typeToTypeNode(y.getBaseTypeOfLiteralType(y.getTypeAtLocation(G)),t,1);K.push(e.createPropertySignature(void 0,G.symbol.name,void 0,q,void 0)),U=U||void 0!==G.type,B&=G.parent.flags}var z=U?e.createTypeLiteralNode(K):void 0;z&&e.setEmitFlags(z,1),P.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(H),z,V)],B)))}else if(i.length||c){if(i.length)for(var J=0,X=i;J<X.length;J++){var G=X[J],Y=G.parent.flags;2&Y&&(Y=-3&Y|1),P.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(G.symbol.name,ne(G.type))],Y)))}R&&P.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(R,ne(l))],1)));var Q=v(i,c);R&&Q.unshift(e.createShorthandPropertyAssignment(R)),1===Q.length?(e.Debug.assert(!R),P.push(e.createStatement(e.createAssignment(Q[0].name,V))),o.facts&a.HasReturn&&P.push(e.createReturn())):(P.push(e.createStatement(e.createAssignment(e.createObjectLiteral(Q),V))),R&&P.push(e.createReturn(e.createIdentifier(R))))}else o.facts&a.HasReturn?P.push(e.createReturn(V)):_(o.range)?P.push(e.createStatement(V)):P.push(V);_(o.range)?N.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),P):N.replaceNodeWithNodes(s.file,o.range,P);var Z=N.getChanges(),$=(_(o.range)?e.first(o.range):o.range).getSourceFile().fileName,ee=f(Z,$,b,!1);return{renameFilename:$,renameLocation:ee,edits:Z};function ne(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 140===e.kind})?t:e.createUnionTypeNode([t,e.createKeywordTypeNode(140)])}}}(l,o[r],c[r],d,n,t)}(r,n,o)}var s=/^constant_scope_(\d+)$/.exec(t);if(s){o=+s[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(n,t,r){var i=m(n,t),o=i.scopes,s=i.readsAndWrites,l=s.target,c=s.usagesPerScope,u=s.constantErrorsPerScope,g=s.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),e.Debug.assert(0===g.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,i,o){var s=r.substitutions,l=o.program.getTypeChecker(),c=t.getSourceFile(),u=p(e.isClassLike(t)?"newProperty":"newLocal",c.text),m=e.isInJavaScriptFile(t),g=m||!l.isContextSensitive(n)?void 0:l.typeToTypeNode(l.getContextualType(n),t,1),v=function(n,t){return t.size?function n(r){var a=t.get(e.getNodeId(r).toString());return a?e.getSynthesizedDeepClone(a):e.visitEachChild(r,n,e.nullTransformationContext)}(n):n}(n,s);e.suppressLeadingAndTrailingTrivia(v);var _=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(t)){e.Debug.assert(!m);var y=[];y.push(e.createToken(112)),i&a.InStaticRegion&&y.push(e.createToken(115)),y.push(e.createToken(132));var h=e.createProperty(void 0,y,u,void 0,g,v),E=e.createPropertyAccess(i&a.InStaticRegion?e.createIdentifier(t.name.getText()):e.createThis(),e.createIdentifier(u)),T=n.pos,S=function(n,t){var r,a=t.members;e.Debug.assert(a.length>0);for(var i=!0,o=0,s=a;o<s.length;o++){var l=s[o];if(l.pos>n)return r||a[0];if(i&&!e.isPropertyDeclaration(l)){if(void 0!==r)return l;i=!1}r=l}return e.Debug.assert(void 0!==r),r}(T,t);_.insertNodeBefore(o.file,S,h,!0),_.replaceNode(o.file,n,E,e.textChanges.useNonAdjustedPositions)}else{var L=e.createVariableDeclaration(u,g,v),A=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(A){_.insertNodeBefore(o.file,A,L);var E=e.createIdentifier(u);_.replaceNode(o.file,n,E,e.textChanges.useNonAdjustedPositions)}else if(214===n.parent.kind&&t===e.findAncestor(n,d)){var x=e.createVariableStatement(void 0,e.createVariableDeclarationList([L],2));_.replaceNode(o.file,n.parent,x,e.textChanges.useNonAdjustedPositions)}else{var x=e.createVariableStatement(void 0,e.createVariableDeclarationList([L],2)),S=function(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var a=n;a!==t;a=a.parent)d(a)&&(r=a);for(var a=(r||n).parent;;a=a.parent){if(b(a)){for(var i=void 0,o=0,s=a.statements;o<s.length;o++){var l=s[o];if(l.pos>n.pos)break;i=l}return!i&&e.isCaseClause(a)?(e.Debug.assert(e.isSwitchStatement(a.parent.parent)),a.parent.parent):(e.Debug.assert(void 0!==i),i)}if(a===t){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}(n,t);if(0===S.pos?_.insertNodeAtTopOfFile(o.file,x,!1):_.insertNodeBefore(o.file,S,x,!1),214===n.parent.kind)_.deleteNode(o.file,n.parent,e.textChanges.useNonAdjustedPositions);else{var E=e.createIdentifier(u);_.replaceNode(o.file,n,E,e.textChanges.useNonAdjustedPositions)}}}var C=_.getChanges(),k=n.getSourceFile().fileName,M=f(C,k,u,!0);return{renameFilename:k,renameLocation:M,edits:C}}(e.isExpression(l)?l:l.statements[0].expression,o[r],c[r],n.facts,t)}(r,n,o)}e.Debug.fail("Unrecognized action name")}function u(n,t){var i=t.length;if(0===i)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractEmpty)]};var o=y(e.getTokenAtPosition(n,t.start,!1),n,t),s=y(e.findTokenOnLeftOfPosition(n,e.textSpanEnd(t)),n,t),l=[],c=a.None;if(!o||!s)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};if(o!==s){if(!b(o.parent))return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};for(var u=[],d=0,m=o.parent.statements;d<m.length;d++){var p=m[d];if(p===o||u.length){var f=_(p);if(f)return{errors:f};u.push(p)}if(p===s)break}return u.length?{targetRange:{range:u,facts:c,declarations:l}}:{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]}}if(e.isReturnStatement(o)&&!o.expression)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};var g=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}(o),v=function(n){if(e.isIdentifier(e.isExpressionStatement(n)?n.expression:n))return[e.createDiagnosticForNode(n,r.cannotExtractIdentifier)];return}(g)||_(g);return v?{errors:v}:{targetRange:{range:function(n){if(e.isStatement(n))return[n];if(e.isExpressionNode(n))return e.isExpressionStatement(n.parent)?[n.parent]:n;return}(g),facts:c,declarations:l}};function _(n){var i;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(i||(i={})),e.Debug.assert(n.pos<=n.end,"This failure could trigger https://git.spacen.net/Microsoft/TypeScript/issues/20809"),e.Debug.assert(!e.positionIsSynthesized(n.pos),"This failure could trigger https://git.spacen.net/Microsoft/TypeScript/issues/20809"),!(e.isStatement(n)||e.isExpressionNode(n)&&function(e){switch(e.parent.kind){case 271:return!1}switch(e.kind){case 9:return 242!==e.parent.kind&&246!==e.parent.kind;case 202:case 178:case 180:return!1;case 71:return 180!==e.parent.kind&&246!==e.parent.kind&&250!==e.parent.kind}return!0}(n)))return[e.createDiagnosticForNode(n,r.statementOrExpressionExpected)];if(2097152&n.flags)return[e.createDiagnosticForNode(n,r.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(n);s&&function(n,t){for(var r=n;r!==t;){if(151===r.kind){e.hasModifier(r,32)&&(c|=a.InStaticRegion);break}if(148===r.kind){154===e.getContainingFunction(r).kind&&(c|=a.InStaticRegion);break}153===r.kind&&e.hasModifier(r,32)&&(c|=a.InStaticRegion),r=r.parent}}(n,s);var u,d=4;return function n(i){if(o)return!0;if(e.isDeclaration(i)){var s=230===i.kind?i.parent.parent:i;if(e.hasModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractExportedEntity)),!0;l.push(i.symbol)}switch(i.kind){case 242:return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractImport)),!0;case 97:if(185===i.parent.kind){var m=e.getContainingClass(i);if(m.pos<t.start||m.end>=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractSuper)),!0}else c|=a.UsesThis}if(!i||e.isFunctionLikeDeclaration(i)||e.isClassLike(i)){switch(i.kind){case 232:case 233:e.isSourceFile(i.parent)&&void 0===i.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(i,r.functionWillNotBeVisibleInTheNewScope))}return!1}var p=d;switch(i.kind){case 215:case 228:d=0;break;case 211:i.parent&&228===i.parent.kind&&i.parent.finallyBlock===i&&(d=4);break;case 264:d|=1;break;default:e.isIterationStatement(i,!1)&&(d|=3)}switch(i.kind){case 173:case 99:c|=a.UsesThis;break;case 226:var f=i.label;(u||(u=[])).push(f.escapedText),e.forEachChild(i,n),u.pop();break;case 222:case 221:var f=i.label;f?e.contains(u,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):d&(222===i.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 195:c|=a.IsAsyncFunction;break;case 201:c|=a.IsGenerator;break;case 223:4&d?c|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(i,n)}d=p}(n),o}}function d(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function m(n,t){var i=t.file,o=function(n){var 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(148===(t=t.parent).kind&&(t=e.findAncestor(t,function(n){return e.isFunctionLikeDeclaration(n)}).parent),d(t)&&(o.push(t),272===t.kind))return o}(n);return{scopes:o,readsAndWrites:function(n,t,i,o,s,l){var c,u,d=e.createMap(),m=[],p=[],f=[],g=[],v=[],y=e.createMap(),h=[],b=_(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===b){var E=n.range,T=e.first(E).getStart(),S=e.last(E).end;u=e.createFileDiagnostic(o,T,S-T,r.expressionExpected)}else 18432&s.getTypeAtLocation(b).flags&&(u=e.createDiagnosticForNode(b,r.uselessConstantType));for(var L=0,A=t;L<A.length;L++){var x=A[L];m.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),p.push(e.createMap()),f.push(e.isFunctionLikeDeclaration(x)&&232!==x.kind?[e.createDiagnosticForNode(x,r.cannotExtractToOtherFunctionLike)]:[]);var C=[];u&&C.push(u),e.isClassLike(x)&&e.isInJavaScriptFile(x)&&C.push(e.createDiagnosticForNode(x,r.cannotExtractToJSClass)),e.isArrowFunction(x)&&!e.isBlock(x.body)&&C.push(e.createDiagnosticForNode(x,r.cannotExtractToExpressionArrowFunction)),g.push(C)}var k=e.createMap(),M=_(n.range)?e.createBlock(n.range):n.range,D=_(n.range)?e.first(n.range):n.range,O=function(e){for(;e;e=e.parent)if(U(e))return!0;return!1}(D);if(function l(c,u){if(void 0===u&&(u=1),O){var d=s.getTypeAtLocation(c);j(d)}if(e.isDeclaration(c)&&c.symbol&&v.push(c),e.isAssignmentExpression(c))l(c.left,2),l(c.right);else if(e.isUnaryExpressionWithWrite(c))l(c.operand,2);else if(e.isPropertyAccessExpression(c)||e.isElementAccessExpression(c))e.forEachChild(c,l);else if(e.isIdentifier(c)){if(!c.parent)return;if(e.isQualifiedName(c.parent)&&c!==c.parent.left)return;if(e.isPropertyAccessExpression(c.parent)&&c!==c.parent.expression)return;!function(l,c,u){var d=function(l,c,u){var d=W(l);if(d){var v=e.getSymbolId(d).toString(),_=k.get(v);if(_&&_>=c)return v;if(k.set(v,c),_){for(var y=0,h=m;y<h.length;y++){var b=h[y],E=b.usages.get(l.text);E&&b.usages.set(l.text,{usage:c,symbol:d,node:l})}return v}var T=d.getDeclarations(),S=T&&e.find(T,function(e){return e.getSourceFile()===o});if(S&&!e.rangeContainsStartEnd(i,S.getStart(),S.end)){if(n.facts&a.IsGenerator&&2===c){for(var L=e.createDiagnosticForNode(l,r.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),A=0,x=f;A<x.length;A++){var C=x[A];C.push(L)}for(var M=0,D=g;M<D.length;M++){var C=D[M];C.push(L)}}for(var O=0;O<t.length;O++){var R=t[O],I=s.resolveName(d.name,R,d.flags,!1);if(I!==d&&!p[O].has(v)){var N=q(d.exportSymbol||d,R,u);if(N)p[O].set(v,N);else if(u){if(!(262144&d.flags)){var L=e.createDiagnosticForNode(l,r.typeWillNotBeVisibleInTheNewScope);f[O].push(L),g[O].push(L)}}else m[O].usages.set(l.text,{usage:c,symbol:d,node:l})}}return v}}}(l,c,u);if(d)for(var v=0;v<t.length;v++){var _=p[v].get(d);_&&m[v].substitutions.set(e.getNodeId(l).toString(),_)}}(c,u,e.isPartOfTypeNode(c))}else e.forEachChild(c,l)}(M),O&&!_(n.range)){var R=s.getContextualType(n.range);j(R)}if(d.size>0){for(var I=e.createMap(),N=0,w=D;void 0!==w&&N<t.length;w=w.parent)if(w===t[N]&&(I.forEach(function(e,n){m[N].typeParameterUsages.set(n,e)}),N++),e.isDeclarationWithTypeParameters(w)&&w.typeParameters)for(var P=0,F=w.typeParameters;P<F.length;P++){var V=F[P],G=s.getTypeAtLocation(V);d.has(G.id.toString())&&I.set(G.id.toString(),G)}e.Debug.assert(N===t.length)}if(v.length){var H=e.isBlockScope(t[0],t[0].parent)?t[0]:e.getEnclosingBlockScopeContainer(t[0]);e.forEachChild(H,function t(r){if(r===n.range||_(n.range)&&n.range.indexOf(r)>=0)return;var a=e.isIdentifier(r)?W(r):s.getSymbolAtLocation(r);if(a){var i=e.find(v,function(e){return e.symbol===a});if(i)if(e.isVariableDeclaration(i)){var o=i.symbol.id.toString();y.has(o)||(h.push(i),y.set(o,!0))}else c=c||i}e.forEachChild(r,t)})}for(var K=function(t){var a=m[t];if(t>0&&(a.usages.size>0||a.typeParameterUsages.size>0)){var i=_(n.range)?n.range[0]:n.range;g[t].push(e.createDiagnosticForNode(i,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(m[t].usages.forEach(function(n){2===n.usage&&(s=!0,106500&n.symbol.flags&&n.symbol.valueDeclaration&&e.hasModifier(n.symbol.valueDeclaration,64)&&(o=n.symbol.valueDeclaration))}),e.Debug.assert(_(n.range)||0===h.length),s&&!_(n.range)){var l=e.createDiagnosticForNode(n.range,r.cannotWriteInExpression);f[t].push(l),g[t].push(l)}else if(o&&t>0){var l=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[t].push(l),g[t].push(l)}else if(c){var l=e.createDiagnosticForNode(c,r.cannotExtractExportedEntity);f[t].push(l),g[t].push(l)}},B=0;B<t.length;B++)K(B);return{target:M,usagesPerScope:m,functionErrorsPerScope:f,constantErrorsPerScope:g,exposedVariableDeclarations:h};function U(n){return e.isDeclarationWithTypeParameters(n)&&void 0!==n.typeParameters&&n.typeParameters.length>0}function j(e){for(var n=s.getSymbolWalker(function(){return l.throwIfCancellationRequested(),!0}),t=n.walkType(e).visitedTypes,r=0,a=t;r<a.length;r++){var i=a[r];32768&i.flags&&d.set(i.id.toString(),i)}}function W(n){return n.parent&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n?s.getShorthandAssignmentValueSymbol(n.parent):s.getSymbolAtLocation(n)}function q(n,t,r){if(n){var a=n.getDeclarations();if(a&&a.some(function(e){return e.parent===t}))return e.createIdentifier(n.name);var i=q(n.parent,t,r);if(void 0!==i)return r?e.createQualifiedName(i,e.createIdentifier(n.name)):e.createPropertyAccess(i,n.name)}}}(n,o,function(n,t){return _(n.range)?{pos:e.first(n.range).getStart(t),end:e.last(n.range).getEnd()}:n.range}(n,i),i,t.program.getTypeChecker(),t.cancellationToken)}}function p(n,t){for(var r=n,a=1;e.stringContains(t,r);a++)r=n+"_"+a;return r}function f(n,t,r,a){for(var i=0,o=-1,s=0,l=n;s<l.length;s++){var c=l[s],u=c.fileName,d=c.textChanges;e.Debug.assert(u===t);for(var m=0,p=d;m<p.length;m++){var f=p[m],g=f.span,v=f.newText,_=v.indexOf(r);if(-1!==_&&(o=g.start+i+_,!a))return o;i+=v.length-g.length}}return e.Debug.assert(a),e.Debug.assert(o>=0),o}function g(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 v(n,t){var r=e.map(n,function(n){return e.createShorthandPropertyAssignment(n.symbol.name)}),a=e.map(t,function(n){return e.createShorthandPropertyAssignment(n.symbol.name)});return void 0===r?a:void 0===a?r:r.concat(a)}function _(n){return e.isArray(n)}function y(n,t,r){if(n)for(;n.parent;){if(e.isSourceFile(n.parent)||!h(r,n.parent,t))return n;n=n.parent}}function h(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function b(e){switch(e.kind){case 211:case 272:case 238:case 264:return!0;default:return!1}}n.registerRefactor(s,{getAvailableActions:l,getEditsForAction:c}),t.getAvailableActions=l,t.getEditsForAction=c,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.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.cannotExtractToOtherFunctionLike=t("Cannot extract method to a function-like scope that is not a function"),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={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(a||(a={})),t.getRangeToExtract=u,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(i||(i={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(n.extractSymbol||(n.extractSymbol={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){function n(n,r,a,i){var l=e.isNodeKind(n)?new t(n,r,a):71===n?new s(71,r,a):new o(n,r,a);return l.parent=i,l.flags=6387712&i.flags,l}e.servicesVersion="0.7";var t=function(){function t(e,n,t){this.pos=n,this.end=t,this.flags=0,this.transformFlags=void 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.addSyntheticNodes=function(t,r,a){for(e.scanner.setTextPos(r);r<a;){var i=e.scanner.scan(),o=e.scanner.getTextPos();if(o<=a&&(71===i&&e.Debug.fail("Did not expect "+e.Debug.showSyntaxKind(this)+" to have an Identifier in its trivia"),t.push(n(i,r,o,this))),r=o,1===i)break}return r},t.prototype.createSyntaxList=function(e){var t=n(293,e.pos,e.end,this);t._children=[];for(var r=e.pos,a=0,i=e;a<i.length;a++){var o=i[a];r<o.pos&&(r=this.addSyntheticNodes(t._children,r,o.pos)),t._children.push(o),r=o.end}return r<e.end&&this.addSyntheticNodes(t._children,r,e.end),t},t.prototype.createChildren=function(n){var t=this;if(e.isNodeKind(this.kind)){if(e.isJSDocCommentContainingNode(this)){var r=[];return this.forEachChild(function(e){r.push(e)}),void(this._children=r)}var a=[];e.scanner.setText((n||this.getSourceFile()).text);var i=this.pos,o=function(e){i=t.addSyntheticNodes(a,i,e.pos),a.push(e),i=e.end};if(this.jsDoc)for(var s=0,l=this.jsDoc;s<l.length;s++){o(l[s])}i=this.pos,e.forEachChild(this,o,function(e){i<e.pos&&(i=t.addSyntheticNodes(a,i,e.pos)),a.push(t.createSyntaxList(e)),i=e.end}),i<this.end&&this.addSyntheticNodes(a,i,this.end),e.scanner.setText(void 0),this._children=a}else this._children=e.emptyArray},t.prototype.getChildCount=function(e){return this.assertHasRealPosition(),this._children||this.createChildren(e),this._children.length},t.prototype.getChildAt=function(e,n){return this.assertHasRealPosition(),this._children||this.createChildren(n),this._children[e]},t.prototype.getChildren=function(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||this.createChildren(e),this._children},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<274||e.kind>292});return r.kind<145?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<145?r:r.getLastToken(n)},t.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},t}(),r=function(){function n(e,n){this.pos=e,this.end=n,this.flags=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 0},n.prototype.getChildAt=function(){},n.prototype.getChildren=function(){return e.emptyArray},n.prototype.getFirstToken=function(){},n.prototype.getLastToken=function(){},n.prototype.forEachChild=function(){},n}(),a=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:!0,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(void 0===this.documentationComment)if(this.declarations){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations),(0===this.documentationComment.length||this.declarations.some(d))&&n)for(var t=0,r=this.declarations;t<r.length;t++){var a=m(r[t],this.getName(),n);if(a.length>0){this.documentationComment.length>0&&a.push(e.lineBreakPart()),this.documentationComment=e.concatenate(a,this.documentationComment);break}}}else this.documentationComment=[];return this.documentationComment},n.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),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 c(n,e),n}(r),s=function(n){function t(e,t,r){return n.call(this,t,r)||this}return c(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),t}(r);s.prototype.kind=71;var l=function(){function e(e,n){this.checker=e,this.flags=n}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 65536&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},e.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},e}(),u=function(){function n(e){this.checker=e}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(){if(void 0===this.documentationComment)if(this.declaration){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]),0===this.documentationComment.length||d(this.declaration)){var n=m(this.declaration,this.declaration.symbol.getName(),this.checker);this.documentationComment.length>0&&n.push(e.lineBreakPart()),this.documentationComment=e.concatenate(n,this.documentationComment)}}else this.documentationComment=[];return this.documentationComment},n.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},n}();function d(n){return e.getJSDocTags(n).some(function(e){return"inheritDoc"===e.tagName.text})}function m(n,t,r){var a=!1;return e.flatMap(function(n){var t=n.parent;if(!t||!e.isClassDeclaration(t)&&!e.isInterfaceDeclaration(t))return e.emptyArray;var r=e.getClassExtendsHeritageClauseElement(t),a=r?[r]:e.emptyArray;return e.isClassLike(t)?e.concatenate(a,e.getClassImplementsHeritageClauseElements(t)):a}(n),function(n){if(a)return e.emptyArray;var i=r.getTypeAtLocation(n);if(!i)return e.emptyArray;var o=r.getPropertyOfType(i,t);if(!o)return e.emptyArray;var s=o.getDocumentationComment(r);return a=s.length>0,s})}var p=function(n){function t(e,t,r){return n.call(this,e,t,r)||this}return c(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){return e.getPositionOfLineAndCharacter(this,n,t)},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 e.forEachChild(this,function a(i){switch(i.kind){case 232:case 190:case 153:case 152:var o=i,s=r(o);if(s){var l=function(e){var t=n.get(e);t||n.set(e,t=[]);return t}(s),c=e.lastOrUndefined(l);c&&o.parent===c.parent&&o.symbol===c.symbol?o.body&&!c.body&&(l[l.length-1]=o):l.push(o)}e.forEachChild(i,a);break;case 233:case 203:case 234:case 235:case 236:case 237:case 241:case 250:case 246:case 243:case 244:case 155:case 156:case 165:t(i),e.forEachChild(i,a);break;case 148:if(!e.hasModifier(i,92))break;case 230:case 180:var u=i;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,a);break}u.initializer&&a(u.initializer);case 271:case 151:case 150:t(i);break;case 248:i.exportClause&&e.forEach(i.exportClause.elements,a);break;case 242:var d=i.importClause;d&&(d.name&&t(d),d.namedBindings&&(244===d.namedBindings.kind?t(d.namedBindings):e.forEach(d.namedBindings.elements,a)));break;case 198:0!==e.getSpecialPropertyAssignmentKind(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.getNameOfDeclaration(n);return t&&(e.isPropertyNameLiteral(t)?e.getTextOfIdentifierOrLiteral(t):146===t.kind&&e.isPropertyAccessExpression(t.expression)?t.expression.name.text:void 0)}},t}(t),f=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)&&!v(r)){t=!1;break}if(t)return n;var a={};for(var r in n){if(e.hasProperty(n,r))a[v(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=n[r]}return a}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function _(){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=_,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var y=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,a=n.getScriptFileNames();r<a.length;r++){var i=a[r];this.createEntry(i,e.toPath(i,this.currentDirectory,t))}this._compilationSettings=n.getCompilationSettings()||{target:1,jsx:1}}return n.prototype.compilationSettings=function(){return this._compilationSettings},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(){return e.arrayFrom(this.fileNameToEntry.values(),function(n){return e.isString(n)?n:n.hostFileName})},n.prototype.getVersion=function(e){var n=this.getHostFileInformation(e);return n&&n.version},n.prototype.getScriptSnapshot=function(e){var n=this.getHostFileInformation(e);return n&&n.scriptSnapshot},n}(),h=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=E(n,t,6,i,!0,a);else if(this.currentFileVersion!==i){var o=t.getChangeRange(this.currentFileScriptSnapshot);r=T(this.currentSourceFile,t,i,o)}return r&&(this.currentFileVersion=i,this.currentFileName=n,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},n}();function b(e,n,t){e.version=t,e.scriptSnapshot=n}function E(n,t,r,a,i,o){var s=e.createSourceFile(n,e.getSnapshotText(t),r,i,o);return b(s,t,a),s}function T(n,t,r,a,i){if(a&&r!==n.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==a.span.start?n.text.substr(0,a.span.start):"",l=e.textSpanEnd(a.span)!==n.text.length?n.text.substr(e.textSpanEnd(a.span)):"";if(0===a.newLength)o=s&&l?s+l:s||l;else{var c=t.getText(a.span.start,a.span.start+a.newLength);o=s&&l?s+c+l:s?s+c:c+l}var u=e.updateSourceFile(n,o,a,i);return b(u,t,r),u.nameTable=void 0,n!==u&&n.scriptSnapshot&&(n.scriptSnapshot.dispose&&n.scriptSnapshot.dispose(),n.scriptSnapshot=void 0),u}return E(n.fileName,t,n.languageVersion,r,!0,n.scriptKind)}e.createLanguageServiceSourceFile=E,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=T;var S=function(){function n(e){this.cancellationToken=e}return n.prototype.isCancellationRequested=function(){return this.cancellationToken&&this.cancellationToken.isCancellationRequested()},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},n}(),L=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 new e.OperationCanceledException},n}();function A(n,t){var r=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(t));if(r&&n){var a=[],i=n.getProperty(r);if(131072&n.flags)return e.forEach(n.types,function(e){var n=e.getProperty(r);n&&a.push(n)}),a;if(i)return a.push(i),a}}e.ThrottledCancellationToken=L,e.createLanguageService=function(n,t){void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory()));var r,a,i=new h(n),o=0,s=n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),l=new S(n.getCancellationToken&&n.getCancellationToken()),c=n.getCurrentDirectory();function u(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=n.getLocalizedDiagnosticMessages());var d=e.createGetCanonicalFileName(s);function m(e){var n=r.getSourceFile(e);if(!n)throw new Error("Could not find file: '"+e+"'.");return n}function p(){if(n.getProjectVersion){var i=n.getProjectVersion();if(i){if(a===i&&!n.hasChangedAutomaticTypeDirectiveNames)return;a=i}}var m=n.getTypeRootsVersion?n.getTypeRootsVersion():0;o!==m&&(u("TypeRoots version has changed; provide new program"),r=void 0,o=m);var p=new y(n,d),f=p.getRootFileNames(),g=n.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(r,f,p.compilationSettings(),function(e){return p.getVersion(e)},b,g,n.hasChangedAutomaticTypeDirectiveNames)){var v=p.compilationSettings(),_={getSourceFile:function(n,t,r,a){return E(n,e.toPath(n,c,d),0,0,a)},getSourceFileByPath:E,getCancellationToken:function(){return l},getCanonicalFileName:d,useCaseSensitiveFileNames:function(){return s},getNewLine:function(){return e.getNewLineCharacter(v,function(){return e.getNewLineOrDefaultFromHost(n)})},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return c},fileExists:b,readFile:function(t){var r=e.toPath(t,c,d),a=p.getEntryByPath(r);return a?e.isString(a)?void 0:e.getSnapshotText(a.scriptSnapshot):n.readFile&&n.readFile(t)},realpath:n.realpath&&function(e){return n.realpath(e)},directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},onReleaseOldSourceFile:function(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.path,r)},hasInvalidatedResolution:g,hasChangedAutomaticTypeDirectiveNames:n.hasChangedAutomaticTypeDirectiveNames};n.trace&&(_.trace=function(e){return n.trace(e)}),n.resolveModuleNames&&(_.resolveModuleNames=function(e,t,r){return n.resolveModuleNames(e,t,r)}),n.resolveTypeReferenceDirectives&&(_.resolveTypeReferenceDirectives=function(e,t){return n.resolveTypeReferenceDirectives(e,t)});var h=t.getKeyForCompilationSettings(v);return r=e.createProgram(f,v,_,r),p=void 0,void r.getTypeChecker()}function b(t){var r=e.toPath(t,c,d),a=p.getEntryByPath(r);return a?!e.isString(a):n.fileExists&&n.fileExists(t)}function E(n,a,i,o,s){e.Debug.assert(void 0!==p);var l=p.getOrCreateEntryByPath(n,a);if(l){if(!s){var c=r&&r.getSourceFileByPath(a);if(c)return e.Debug.assertEqual(l.scriptKind,c.scriptKind,"Registered script kind should match new script kind.",a),t.updateDocumentWithKey(n,a,v,h,l.scriptSnapshot,l.version,l.scriptKind)}return t.acquireDocumentWithKey(n,a,v,h,l.scriptSnapshot,l.version,l.scriptKind)}}}function f(){return p(),r}function v(n,t,a){p();var i=e.map(a,function(n){return e.Debug.assertDefined(r.getSourceFile(n))}),o=m(n);return e.DocumentHighlights.getDocumentHighlights(r,l,o,t,i)}function _(n,t,a){p();var i=[];if(a&&a.isForRename)for(var o=0,s=r.getSourceFiles();o<s.length;o++){var c=s[o];r.isSourceFileDefaultLibrary(c)||i.push(c)}else i=r.getSourceFiles().slice();return e.FindAllReferences.findReferencedEntries(r,l,i,m(n),t,a)}function b(e){return i.getCurrentSourceFile(e)}function E(t){var r=e.getScriptKind(t,n);return 3===r||4===r}var T,L=e.createMapFromTemplate(((T={})[17]=18,T[19]=20,T[21]=22,T[29]=27,T));function A(t){switch(t.type){case"install package":return n.installPackage?n.installPackage({fileName:e.toPath(t.file,c,d),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");default:e.Debug.fail()}}function x(t,r,a){var i="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:i[0],endPosition:i[1],program:f(),host:n,formatContext:e.formatting.getFormatContext(a),cancellationToken:l}}return L.forEach(function(e,n){return L.set(e.toString(),Number(n))}),{dispose:function(){r&&(e.forEach(r.getSourceFiles(),function(e){return t.releaseDocument(e.fileName,r.getCompilerOptions())}),r=void 0),n=void 0},cleanupSemanticCache:function(){r=void 0},getSyntacticDiagnostics:function(e){return p(),r.getSyntacticDiagnostics(m(e),l).slice()},getSemanticDiagnostics:function(e){p();var n=m(e),t=r.getSemanticDiagnostics(n,l);if(!r.getCompilerOptions().declaration)return t.slice();var a=r.getDeclarationDiagnostics(n,l);return t.concat(a)},getSuggestionDiagnostics:function(n){return p(),e.computeSuggestionDiagnostics(m(n),r)},getCompilerOptionsDiagnostics:function(){return p(),r.getOptionsDiagnostics(l).concat(r.getGlobalDiagnostics(l))},getSyntacticClassifications:function(n,t){return e.getSyntacticClassifications(l,i.getCurrentSourceFile(n),t)},getSemanticClassifications:function(n,t){return E(n)?(p(),e.getSemanticClassifications(r.getTypeChecker(),l,m(n),r.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(n,t){return e.getEncodedSyntacticClassifications(l,i.getCurrentSourceFile(n),t)},getEncodedSemanticClassifications:function(n,t){return E(n)?(p(),e.getEncodedSemanticClassifications(r.getTypeChecker(),l,m(n),r.getClassifiableNames(),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(t,a,i){return void 0===i&&(i={includeExternalModuleExports:!1,includeInsertTextCompletions:!1}),p(),e.Completions.getCompletionsAtPosition(n,r.getTypeChecker(),u,r.getCompilerOptions(),m(t),a,r.getSourceFiles(),i)},getCompletionEntryDetails:function(t,a,i,o,s){return p(),e.Completions.getCompletionEntryDetails(r,u,r.getCompilerOptions(),m(t),a,{name:i,source:s},r.getSourceFiles(),n,o&&e.formatting.getFormatContext(o),d)},getCompletionEntrySymbol:function(n,t,a,i){return p(),e.Completions.getCompletionEntrySymbol(r.getTypeChecker(),u,r.getCompilerOptions(),m(n),t,{name:a,source:i},r.getSourceFiles())},getSignatureHelpItems:function(n,t){p();var a=m(n);return e.SignatureHelp.getSignatureHelpItems(r,a,t,l)},getQuickInfoAtPosition:function(n,t){p();var a=m(n),i=e.getTouchingPropertyName(a,t,!0);if(i!==a){var o=r.getTypeChecker(),s=function(n,t){if((e.isIdentifier(n)||e.isStringLiteral(n))&&e.isPropertyAssignment(n.parent)&&n.parent.name===n){var r=t.getContextualType(n.parent.parent),a=r&&t.getPropertyOfType(r,e.getTextOfIdentifierOrLiteral(n));if(a)return a}return t.getSymbolAtLocation(n)}(i,o);if(s&&!o.isUnknownSymbol(s)){var l=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(o,s,a,e.getContainerNode(i),i),c=l.symbolKind,u=l.displayParts,d=l.documentation,f=l.tags;return{kind:c,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(i,a),displayParts:u,documentation:d,tags:f}}switch(i.kind){case 71:if(e.isLabelName(i))return;case 183:case 145:case 99:case 173:case 97:var g=o.getTypeAtLocation(i);return g&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,a),displayParts:e.typeToDisplayParts(o,g,e.getContainerNode(i)),documentation:g.symbol?g.symbol.getDocumentationComment(o):void 0,tags:g.symbol?g.symbol.getJsDocTags():void 0}}}},getDefinitionAtPosition:function(n,t){return p(),e.GoToDefinition.getDefinitionAtPosition(r,m(n),t)},getDefinitionAndBoundSpan:function(n,t){return p(),e.GoToDefinition.getDefinitionAndBoundSpan(r,m(n),t)},getImplementationAtPosition:function(n,t){return p(),e.FindAllReferences.getImplementationsAtPosition(r,l,r.getSourceFiles(),m(n),t)},getTypeDefinitionAtPosition:function(n,t){return p(),e.GoToDefinition.getTypeDefinitionAtPosition(r.getTypeChecker(),m(n),t)},getReferencesAtPosition:function(e,n){return _(e,n)},findReferences:function(n,t){return p(),e.FindAllReferences.findReferencedSymbols(r,l,r.getSourceFiles(),m(n),t)},getOccurrencesAtPosition:function(n,t){var r=d(e.normalizeSlashes(n));return e.flatMap(v(n,t,[n]),function(n){return n.highlightSpans.map(function(t){return e.Debug.assert(d(e.normalizeSlashes(n.fileName))===r),{fileName:n.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1,isInString:t.isInString}})})},getDocumentHighlights:v,getNameOrDottedNameSpan:function(n,t,r){var a=i.getCurrentSourceFile(n),o=e.getTouchingPropertyName(a,t,!1);if(o!==a){switch(o.kind){case 183:case 145:case 9:case 86:case 101:case 95:case 97:case 99:case 173:case 71:break;default:return}for(var s=o;;)if(e.isRightSideOfPropertyAccess(s)||e.isRightSideOfQualifiedName(s))s=s.parent;else{if(!e.isNameOfModuleDeclaration(s))break;if(237!==s.parent.parent.kind||s.parent.parent.body!==s.parent)break;s=s.parent.parent.name}return e.createTextSpanFromBounds(s.getStart(),o.getEnd())}},getBreakpointStatementAtPosition:function(n,t){var r=i.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(n,t,a,i){p();var o=a?[m(a)]:r.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,r.getTypeChecker(),l,n,t,i)},getRenameInfo:function(t,a){p();var i=n.getDefaultLibFileName(n.getCompilationSettings());return e.Rename.getRenameInfo(r.getTypeChecker(),i,d,m(t),a)},findRenameLocations:function(e,n,t,r){return _(e,n,{findInStrings:t,findInComments:r,isForRename:!0})},getNavigationBarItems:function(n){return e.NavigationBar.getNavigationBarItems(i.getCurrentSourceFile(n),l)},getNavigationTree:function(n){return e.NavigationBar.getNavigationTree(i.getCurrentSourceFile(n),l)},getOutliningSpans:function(n){var t=i.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,l)},getTodoComments:function(n,t){p();var r=m(n);l.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")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested(),e.Debug.assert(u.length===t.length+3);var d=u[1],f=u.index+d.length;if(e.isInComment(r,f)){for(var g=void 0,v=0;v<t.length;v++)u[v+3]&&(g=t[v]);if(e.Debug.assert(void 0!==g),!((a=o.charCodeAt(f+g.text.length))>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)){var _=u[2];s.push({descriptor:g,message:_,position:f})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=i.getCurrentSourceFile(n),a=e.getTouchingToken(r,t,!1),o=a.getStart(r)===t?L.get(a.kind.toString()):void 0,s=o&&e.findChildOfKind(a.parent,o,r);return s?[e.createTextSpanFromNode(a,r),e.createTextSpanFromNode(s,r)].sort(function(e,n){return e.start-n.start}):e.emptyArray},getIndentationAtPosition:function(n,t,r){var a=e.timestamp(),o=g(r),s=i.getCurrentSourceFile(n);u("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var l=e.formatting.SmartIndenter.getIndentation(t,s,o);return u("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-a)),l},getFormattingEditsForRange:function(n,t,r,a){var o=i.getCurrentSourceFile(n);return e.formatting.formatSelection(t,r,o,e.formatting.getFormatContext(g(a)))},getFormattingEditsForDocument:function(n,t){return e.formatting.formatDocument(i.getCurrentSourceFile(n),e.formatting.getFormatContext(g(t)))},getFormattingEditsAfterKeystroke:function(n,t,r,a){var o=i.getCurrentSourceFile(n),s=e.formatting.getFormatContext(g(a));if(!e.isInComment(o,t))switch(r){case"{":return e.formatting.formatOnOpeningCurly(t,o,s);case"}":return e.formatting.formatOnClosingCurly(t,o,s);case";":return e.formatting.formatOnSemicolon(t,o,s);case"\n":return e.formatting.formatOnEnter(t,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),i.getCurrentSourceFile(t),r)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var a=i.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},getSpanOfEnclosingComment:function(n,t,r){var a=i.getCurrentSourceFile(n),o=e.formatting.getRangeOfEnclosingComment(a,t,r);return o&&e.createTextSpanFromRange(o)},getCodeFixesAtPosition:function(t,a,i,o,s){p();var c=m(t),u=e.createTextSpanFromBounds(a,i),d=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),function(t){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:c,span:u,program:r,host:n,cancellationToken:l,formatContext:d})})},getCombinedCodeFix:function(t,a,i){p(),e.Debug.assert("file"===t.type);var o=m(t.fileName),s=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:a,sourceFile:o,program:r,host:n,cancellationToken:l,formatContext:s})},applyCodeActionCommand:function(n,t){var r="string"==typeof n?t:n;return e.isArray(r)?Promise.all(r.map(A)):A(r)},organizeImports:function(t,a){p(),e.Debug.assert("file"===t.type);var i=m(t.fileName),o=e.formatting.getFormatContext(a);return e.OrganizeImports.organizeImports(i,o,n,r)},getEmitOutput:function(t,a){p();var i=m(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(r,i,a,l,o)},getNonBoundSourceFile:b,getSourceFile:function(e){return b(e)},getProgram:f,getApplicableRefactors:function(n,t){p();var r=m(n);return e.refactor.getApplicableRefactors(x(r,t))},getEditsForRefactor:function(n,t,r,a,i){p();var o=m(n);return e.refactor.getEditsForRefactor(x(o,r,t),a,i)}}},e.getNameTable=function(n){return n.nameTable||function(n){var t=n.nameTable=e.createUnderscoreEscapedMap();n.forEachChild(function n(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&function(n){return e.isDeclarationName(n)||252===n.parent.kind||function(e){return e&&e.parent&&184===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)}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=function(n){switch(n.kind){case 9:case 8:if(146===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 71:return!e.isObjectLiteralElement(n.parent)||182!==n.parent.parent.kind&&261!==n.parent.parent.kind||n.parent.name!==n?void 0:n.parent}},e.getPropertySymbolsFromContextualType=function(e,n){var t=n.parent;return A(e.getContextualType(t),n.name)},e.getPropertySymbolsFromType=A,e.getDefaultLibFilePath=function(n){return i+e.directorySeparator+e.getDefaultLibFileName(n)},e.objectAllocator={getNodeConstructor:function(){return t},getTokenConstructor:function(){return o},getIdentifierConstructor:function(){return s},getSourceFileConstructor:function(){return p},getSymbolConstructor:function(){return a},getTypeConstructor:function(){return l},getSignatureConstructor:function(){return u},getSourceMapSourceConstructor:function(){return f}}}(u||(u={})),function(e){!function(n){n.spanInSourceFileAtLocation=function(n,t){if(!n.isDeclarationFile){var r=e.getTokenAtPosition(n,t,!1),a=n.getLineAndCharacterOfPosition(t).line;if((!(n.getLineAndCharacterOfPosition(r.getStart(n)).line>a)||(r=e.findPrecedingToken(r.pos,n))&&n.getLineAndCharacterOfPosition(r.getEnd()).line===a)&&!(2097152&r.flags))return u(r)}function i(t,r){var a=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(a,(r||t).getEnd())}function o(n,t){return i(n,e.findNextToken(t,t.parent))}function s(e,t){return e&&a===n.getLineAndCharacterOfPosition(e.getStart(n)).line?u(e):u(t)}function l(t){return u(e.findPrecedingToken(t.pos,n))}function c(n){return u(e.findNextToken(n,n.parent))}function u(t){if(t)switch(t.kind){case 212:return b(t.declarationList.declarations[0]);case 230:case 151:case 150:return b(t);case 148:return function n(t){if(e.isBindingPattern(t.name))return L(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasModifier(n,12)}(t))return i(t);var r=t.parent,a=r.parameters.indexOf(t);return e.Debug.assert(-1!==a),0!==a?n(r.parameters[a-1]):u(r.body)}(t);case 232:case 153:case 152:case 155:case 156:case 154:case 190:case 191:return function(e){if(e.body)return E(e)?i(e):u(e.body)}(t);case 211:if(e.isFunctionBlock(t))return _=(v=t).statements.length?v.statements[0]:v.getLastToken(),E(v.parent)?s(v.parent,_):u(_);case 238:return T(t);case 267:return T(t.block);case 214:return i(t.expression);case 223:return i(t.getChildAt(0),t.expression);case 217:return o(t,t.expression);case 216:return u(t.statement);case 229:return i(t.getChildAt(0));case 215:return o(t,t.expression);case 226:return u(t.statement);case 222:case 221:return i(t.getChildAt(0),t.label);case 218:return(g=t).initializer?S(g):g.condition?i(g.condition):g.incrementor?i(g.incrementor):void 0;case 219:return o(t,t.expression);case 220:return S(t);case 225:return o(t,t.expression);case 264:case 265:return u(t.statements[0]);case 228:return T(t.tryBlock);case 227:case 247:return i(t,t.expression);case 241:return i(t,t.moduleReference);case 242:case 248:return i(t,t.moduleSpecifier);case 237:if(1!==e.getModuleInstanceState(t))return;case 233:case 236:case 271:case 180:return i(t);case 224:return u(t.statement);case 149:return y=t.parent.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,y.pos),y.end);case 178:case 179:return L(t);case 234:case 235:return;case 25:case 1:return s(e.findPrecedingToken(t.pos,n));case 26:return l(t);case 17:return function(t){switch(t.parent.kind){case 236:var r=t.parent;return s(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 233:var a=t.parent;return s(e.findPrecedingToken(t.pos,n,t.parent),a.members.length?a.members[0]:a.getLastToken(n));case 239:return s(t.parent.parent,t.parent.clauses[0])}return u(t.parent)}(t);case 18:return function(n){switch(n.parent.kind){case 238:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 236:case 233:return i(n);case 211:if(e.isFunctionBlock(n.parent))return i(n);case 267:return u(e.lastOrUndefined(n.parent.statements));case 239:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?u(e.lastOrUndefined(r.statements)):void 0;case 178:var a=n.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var o=n.parent;return i(e.lastOrUndefined(o.properties)||o)}return u(n.parent)}}(t);case 22:return function(n){switch(n.parent.kind){case 179:var t=n.parent;return i(e.lastOrUndefined(t.elements)||t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var r=n.parent;return i(e.lastOrUndefined(r.elements)||r)}return u(n.parent)}}(t);case 19:return function(e){return 216===e.parent.kind||185===e.parent.kind||186===e.parent.kind?l(e):189===e.parent.kind?c(e):u(e.parent)}(t);case 20:return function(e){switch(e.parent.kind){case 190:case 232:case 191:case 153:case 152:case 155:case 156:case 154:case 217:case 216:case 218:case 220:case 185:case 186:case 189:return l(e);default:return u(e.parent)}}(t);case 56:return function(n){return e.isFunctionLike(n.parent)||268===n.parent.kind||148===n.parent.kind?l(n):u(n.parent)}(t);case 29:case 27:return function(e){return 188===e.parent.kind?c(e):u(e.parent)}(t);case 106:return function(e){return 216===e.parent.kind?o(e,e.parent.expression):u(e.parent)}(t);case 82:case 74:case 87:return c(t);case 144:return function(e){return 220===e.parent.kind?c(e):u(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return A(t);if((71===t.kind||202===t.kind||268===t.kind||269===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return i(t);if(198===t.kind){var r=t,a=r.left,d=r.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return A(a);if(58===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return i(t);if(26===d.kind)return u(a)}if(e.isExpressionNode(t))switch(t.parent.kind){case 216:return l(t);case 149:return u(t.parent);case 218:case 220:return i(t);case 198:if(26===t.parent.operatorToken.kind)return i(t);break;case 191:if(t.parent.body===t)return i(t)}switch(t.parent.kind){case 268:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return u(t.parent.initializer);break;case 188:if(t.parent.type===t)return c(t.parent.type);break;case 230:case 148:var m=t.parent,p=m.initializer,f=m.type;if(p===t||f===t||e.isAssignmentOperator(t.kind))return l(t);break;case 198:if(a=t.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&t!==a)return l(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return l(t)}return u(t.parent)}var g,v,_,y;function h(t){return e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]===t?i(e.findPrecedingToken(t.pos,n,t.parent),t):i(t)}function b(t){return 219===t.parent.parent.kind?u(t.parent.parent):e.isBindingPattern(t.name)?L(t.name):t.initializer||e.hasModifier(t,1)||220===t.parent.parent.kind?h(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?u(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function E(n){return e.hasModifier(n,1)||233===n.parent.kind&&154!==n.kind}function T(t){switch(t.parent.kind){case 237:if(1!==e.getModuleInstanceState(t.parent))return;case 217:case 215:case 219:return s(t.parent,t.statements[0]);case 218:case 220:return s(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return u(t.statements[0])}function S(e){if(231!==e.initializer.kind)return u(e.initializer);var n=e.initializer;return n.declarations.length>0?u(n.declarations[0]):void 0}function L(n){var t=e.forEach(n.elements,function(e){return 204!==e.kind?e:void 0});return t?u(t):180===n.parent.kind?i(n.parent):h(n.parent)}function A(n){e.Debug.assert(179!==n.kind&&178!==n.kind);var t=181===n.kind?n.elements:n.properties,r=e.forEach(t,function(e){return 204!==e.kind?e:void 0});return r?u(r):i(198===n.parent.kind?n.parent:n)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(u||(u={})),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,r,i,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}}(u||(u={}));var u,d,m=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 this.files=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(e){return this.log(e.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)}),"realpath"in this.shimHost&&(this.realpath=function(e){return n.shimHost.realpath(e)})}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 s(e,n,!0,t,r)}function s(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(t+" completed in "+(s-i)+" msec"),e.isString(o)){var l=o;l.length>128&&(l=l.substring(0,128)+"..."),n.log(" result.length="+l.length+", result='"+JSON.stringify(l)+"'")}}return o}(t,r,i,o);return a?JSON.stringify({result:s}):s}catch(a){return a instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,a),a.description=r,JSON.stringify({error:a}))}}e.CoreServicesShimHostAdapter=a;var l=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function u(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}}(n,t)})}e.realizeDiagnostics=u;var d=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 c(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,m&&m.CollectGarbage&&(m.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,n.prototype.dispose.call(this,e)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh("+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 u(n,e.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSyntacticClassifications('"+n+"', "+t+", "+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('"+n+"', "+t+", "+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('"+n+"', "+t+", "+r+")",function(){return p(a.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))})},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+n+"', "+t+", "+r+")",function(){return p(a.languageService.getEncodedSemanticClassifications(n,e.createTextSpan(t,r)))})},t.prototype.getSyntacticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var t=n.languageService.getSyntacticDiagnostics(e);return n.realizeDiagnostics(t)})},t.prototype.getSemanticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var t=n.languageService.getSemanticDiagnostics(e);return n.realizeDiagnostics(t)})},t.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+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('"+e+"', "+n+")",function(){return t.languageService.getQuickInfoAtPosition(e,n)})},t.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+n+", "+t+")",function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)})},t.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+n+")",function(){return t.languageService.getBreakpointStatementAtPosition(e,n)})},t.prototype.getSignatureHelpItems=function(e,n){var t=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+n+")",function(){return t.languageService.getSignatureHelpItems(e,n)})},t.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+n+")",function(){return t.languageService.getDefinitionAtPosition(e,n)})},t.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+n+")",function(){return t.languageService.getDefinitionAndBoundSpan(e,n)})},t.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+n+")",function(){return t.languageService.getTypeDefinitionAtPosition(e,n)})},t.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+n+")",function(){return t.languageService.getImplementationAtPosition(e,n)})},t.prototype.getRenameInfo=function(e,n){var t=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+n+")",function(){return t.languageService.getRenameInfo(e,n)})},t.prototype.findRenameLocations=function(e,n,t,r){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+")",function(){return a.languageService.findRenameLocations(e,n,t,r)})},t.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+n+")",function(){return t.languageService.getBraceMatchingAtPosition(e,n)})},t.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+n+", "+t+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)})},t.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+n+")",function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)})},t.prototype.getIndentationAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+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('"+e+"', "+n+")",function(){return t.languageService.getReferencesAtPosition(e,n)})},t.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('"+e+"', "+n+")",function(){return t.languageService.findReferences(e,n)})},t.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+n+")",function(){return t.languageService.getOccurrencesAtPosition(e,n)})},t.prototype.getDocumentHighlights=function(n,t,r){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+t+")",function(){var i=a.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.normalizeSlashes(n).toLowerCase();return e.filter(i,function(n){return e.normalizeSlashes(n.fileName).toLowerCase()===o})})},t.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+n+", "+t+")",function(){return r.languageService.getCompletionsAtPosition(e,n,t)})},t.prototype.getCompletionEntryDetails=function(e,n,t,r,a){var i=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+n+", '"+t+"')",function(){var o=void 0===r?void 0:JSON.parse(r);return i.languageService.getCompletionEntryDetails(e,n,t,o,a)})},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+n+", "+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('"+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('"+e+"', "+n+", '"+t+"')",function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsAfterKeystroke(e,n,t,i)})},t.prototype.getDocCommentTemplateAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+n+")",function(){return t.languageService.getDocCommentTemplateAtPosition(e,n)})},t.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+n+", "+t+")",function(){return r.languageService.getNavigateToItems(e,n,t)})},t.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return n.languageService.getNavigationBarItems(e)})},t.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return n.languageService.getNavigationTree(e)})},t.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return n.languageService.getOutliningSpans(e)})},t.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return t.languageService.getTodoComments(e,JSON.parse(n))})},t.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return n.languageService.getEmitOutput(e)})},t.prototype.getEmitOutputObject=function(e){var n=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return n.languageService.getEmitOutput(e)},this.logPerformance)},t}(l);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=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 c(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return i(this.logger,"getEncodedLexicalClassifications",function(){return p(r.classifier.getEncodedLexicalClassifications(e,n,t))},this.logPerformance)},t.prototype.getClassificationsForLine=function(e,n,t){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}(l),g=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 c(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('"+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("+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('"+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)}})},t.prototype.getAutomaticTypeDirectiveNames=function(n){var t=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+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('"+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:u(a.parseDiagnostics.concat(o.errors),"\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}(l),v=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);return new d(this,t,i)}catch(e){throw n(t,e),e}},t.prototype.createClassifierShim=function(e){try{return new f(this,e)}catch(t){throw n(e,t),t}},t.prototype.createCoreServicesShim=function(e){try{var t=new a(e);return new g(this,e,t)}catch(t){throw n(e,t),t}},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=v,void 0!==o&&o.exports&&(o.exports=e)}(u||(u={})),function(e){!function(e){e.TypeScriptServicesFactory=u.TypeScriptServicesFactory}(e.Services||(e.Services={}))}(d||(d={}));u.versionMajorMinor;const p=u.createClassifier,f=u.createLanguageService,g=u.displayPartsToString,v=u.EndOfLineState,_=u.flattenDiagnosticMessageText,y=u.IndentStyle,h=u.ScriptKind,b=u.ScriptTarget,E=u.TokenClass}).call(this,t(25),"/index.js",t(28),"/",t(36)(e))},function(e,n,t){"use strict";t.r(n),t.d(n,"initialize",function(){return o});var r=t(29),a=t(24),i=!1;function o(e){if(!i){i=!0;var n=new r.a(e),t=new a.b(function(e){self.postMessage(e)},n);self.onmessage=function(e){t.onmessage(e.data)}}}self.onmessage=function(e){i||o(null)}},,,,function(e,n){e.exports=function(e){if(!e.webpackPolyfill){var n=Object.create(e);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(n,"exports",{enumerable:!0}),n.webpackPolyfill=1}return n}},function(e,n,t){"use strict";t.r(n);var r=t(32),a=t(31),i=monaco.Promise,o="defaultLib:lib.d.ts",s='/*! *****************************************************************************\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 const NaN: number;\ndeclare const 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 s A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in numString.\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(s: 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): string;\n\n/**\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\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 * @param string A string value\n */\ndeclare function unescape(string: string): string;\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: string): 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: string): 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: string): 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(o: any, p: string, attributes: PropertyDescriptor & ThisType<any>): any;\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(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;\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 o Object on which to lock the attributes.\n */\n freeze<T>(a: T[]): ReadonlyArray<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 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 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/**\n * Provides functionality common to all JavaScript objects.\n */\ndeclare const 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 const Function: FunctionConstructor;\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(): 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(): 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 * @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 const 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 (value?: any): boolean;\n readonly prototype: Boolean;\n}\n\ndeclare const 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 const Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n readonly raw: ReadonlyArray<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 number.\n * @param x The value to be rounded to the nearest number.\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 const 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): Date;\n new(value: 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 an number between 0 and 11 (January to December).\n * @param date The date as an number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.\n * @param ms An 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 const 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 compile(): 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 $1: string;\n $2: string;\n $3: string;\n $4: string;\n $5: string;\n $6: string;\n $7: string;\n $8: string;\n $9: string;\n lastMatch: string;\n}\n\ndeclare const 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 const Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor {\n new(message?: string): EvalError;\n (message?: string): EvalError;\n readonly prototype: EvalError;\n}\n\ndeclare const EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor {\n new(message?: string): RangeError;\n (message?: string): RangeError;\n readonly prototype: RangeError;\n}\n\ndeclare const RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor {\n new(message?: string): ReferenceError;\n (message?: string): ReferenceError;\n readonly prototype: ReferenceError;\n}\n\ndeclare const ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor {\n new(message?: string): SyntaxError;\n (message?: string): SyntaxError;\n readonly prototype: SyntaxError;\n}\n\ndeclare const SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor {\n new(message?: string): TypeError;\n (message?: string): TypeError;\n readonly prototype: TypeError;\n}\n\ndeclare const TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor {\n new(message?: string): URIError;\n (message?: string): URIError;\n readonly prototype: URIError;\n}\n\ndeclare const 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?: (key: any, 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?: (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 a 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 const 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 toLocalString 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.\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 callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of 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 every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of 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 some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param callbackfn A function that accepts up to three arguments. The filter 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 filter<S extends T>(callbackfn: (value: T, index: number, array: ReadonlyArray<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 callbackfn A function that accepts up to three arguments. The filter 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 filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => any, 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: ReadonlyArray<T>) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<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: ReadonlyArray<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 element defined in an 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 toLocalString methods.\n */\n toLocaleString(): string;\n /**\n * Appends new elements to an array, and returns the new length of the array.\n * @param items New elements of the Array.\n */\n push(...items: T[]): number;\n /**\n * Removes the last element from an array and returns it.\n */\n pop(): T | undefined;\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 * Reverses the elements in an Array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n */\n shift(): T | undefined;\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): T[];\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.\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 */\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 */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an 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.\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 callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of 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 every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of 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 some(callbackfn: (value: T, index: number, array: T[]) => boolean, 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 callbackfn A function that accepts up to three arguments. The filter 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 filter<S extends T>(callbackfn: (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 callbackfn A function that accepts up to three arguments. The filter 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 filter(callbackfn: (value: T, index: number, array: T[]) => any, 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 Array<any>;\n readonly prototype: Array<any>;\n}\n\ndeclare const 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\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 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 string, 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 * Exclude null and undefined from T\n */\ntype NonNullable<T> = T extends null | undefined ? never : T;\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 new (...args: any[]) => any> = T extends new (...args: any[]) => infer R ? R : any;\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 const 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 new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new(length: number): Int8Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new(length: number): Uint8Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new(length: number): Uint8ClampedArray;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new(length: number): Int16Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new(length: number): Uint16Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new(length: number): Int32Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new(length: number): Uint32Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new(length: number): Float32Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float64Array 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): Float64Array;\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 [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new(length: number): Float64Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare const Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: string;\n localeMatcher?: string;\n numeric?: boolean;\n caseFirst?: string;\n sensitivity?: string;\n ignorePunctuation?: boolean;\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;\n style?: string;\n currency?: string;\n currencyDisplay?: string;\n useGrouping?: boolean;\n minimumIntegerDigits?: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\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?: string;\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 formatMatcher?: string;\n hour12?: boolean;\n timeZone?: string;\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\n\n/////////////////////////////\n/// DOM APIs\n/////////////////////////////\n\ninterface Account {\n displayName: string;\n id: string;\n imageURL?: string;\n name?: string;\n rpDisplayName: string;\n}\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\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}\n\ninterface AssertionOptions {\n allowList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\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 AudioContextInfo {\n currentTime?: number;\n sampleRate?: number;\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 AudioParamDescriptor {\n defaultValue?: number;\n maxValue?: number;\n minValue?: number;\n name?: string;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: number;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface ByteLengthChunk {\n byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n cacheName?: string;\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientData {\n challenge: string;\n extensions?: WebAuthnExtensions;\n hashAlg: string | Algorithm;\n origin: string;\n rpId: string;\n tokenBinding?: string;\n}\n\ninterface ClientQueryOptions {\n includeReserved?: boolean;\n includeUncontrolled?: boolean;\n type?: ClientTypes;\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 ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {\n arrayOfDomainStrings?: string[];\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 ConstrainLongRange extends LongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainVideoFacingModeParameters {\n exact?: VideoFacingModeEnum | VideoFacingModeEnum[];\n ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\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 DeviceAccelerationDict {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceLightEventInit extends EventInit {\n value?: number;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceAccelerationDict | null;\n accelerationIncludingGravity?: DeviceAccelerationDict | null;\n interval?: number | null;\n rotationRate?: DeviceRotationRateDict | 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 DeviceRotationRateDict {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\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: string;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: string;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: string;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: string | Algorithm;\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 scoped?: 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 modifierOS?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface ExceptionInformation {\n domain?: string | null;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[] | null;\n source?: object | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n request: Request;\n reservedClientId?: string;\n targetClientId?: string;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusNavigationEventInit extends EventInit {\n navigationReason?: string | null;\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface FocusNavigationOrigin {\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad?: Gamepad;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: string | Algorithm;\n info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: string | Algorithm;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: string | Algorithm;\n length?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[];\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit;\n target: Element;\n time: number;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | 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 code?: string;\n key?: string;\n location?: number;\n repeat?: boolean;\n}\n\ninterface LongRange {\n max?: number;\n min?: number;\n}\n\ninterface MSAccountInfo {\n accountImageUri?: string;\n accountName?: string;\n rpDisplayName: string;\n userDisplayName: string;\n userId?: string;\n}\n\ninterface MSAudioLocalClientEvent extends MSLocalClientEventBase {\n cpuInsufficientEventRatio?: number;\n deviceCaptureNotFunctioningEventRatio?: number;\n deviceClippingEventRatio?: number;\n deviceEchoEventRatio?: number;\n deviceGlitchesEventRatio?: number;\n deviceHalfDuplexAECEventRatio?: number;\n deviceHowlingEventCount?: number;\n deviceLowSNREventRatio?: number;\n deviceLowSpeechLevelEventRatio?: number;\n deviceMultipleEndpointsEventCount?: number;\n deviceNearEndToEchoRatioEventRatio?: number;\n deviceRenderMuteEventRatio?: number;\n deviceRenderNotFunctioningEventRatio?: number;\n deviceRenderZeroVolumeEventRatio?: number;\n networkDelayEventRatio?: number;\n networkSendQualityEventRatio?: number;\n}\n\ninterface MSAudioRecvPayload extends MSPayloadBase {\n burstLossLength1?: number;\n burstLossLength2?: number;\n burstLossLength3?: number;\n burstLossLength4?: number;\n burstLossLength5?: number;\n burstLossLength6?: number;\n burstLossLength7?: number;\n burstLossLength8OrHigher?: number;\n fecRecvDistance1?: number;\n fecRecvDistance2?: number;\n fecRecvDistance3?: number;\n packetReorderDepthAvg?: number;\n packetReorderDepthMax?: number;\n packetReorderRatio?: number;\n ratioCompressedSamplesAvg?: number;\n ratioConcealedSamplesAvg?: number;\n ratioStretchedSamplesAvg?: number;\n samplingRate?: number;\n signal?: MSAudioRecvSignal;\n}\n\ninterface MSAudioRecvSignal {\n initialSignalLevelRMS?: number;\n recvNoiseLevelCh1?: number;\n recvSignalLevelCh1?: number;\n renderLoopbackSignalLevel?: number;\n renderNoiseLevel?: number;\n renderSignalLevel?: number;\n}\n\ninterface MSAudioSendPayload extends MSPayloadBase {\n audioFECUsed?: boolean;\n samplingRate?: number;\n sendMutePercent?: number;\n signal?: MSAudioSendSignal;\n}\n\ninterface MSAudioSendSignal {\n noiseLevel?: number;\n sendNoiseLevelCh1?: number;\n sendSignalLevelCh1?: number;\n}\n\ninterface MSConnectivity {\n iceType?: MSIceType;\n iceWarningFlags?: MSIceWarningFlags;\n relayAddress?: MSRelayAddress;\n}\n\ninterface MSCredentialFilter {\n accept?: MSCredentialSpec[];\n}\n\ninterface MSCredentialParameters {\n type?: MSCredentialType;\n}\n\ninterface MSCredentialSpec {\n id?: string;\n type: MSCredentialType;\n}\n\ninterface MSDCCEventInit extends EventInit {\n maxFr?: number;\n maxFs?: number;\n}\n\ninterface MSDSHEventInit extends EventInit {\n sources?: number[];\n timestamp?: number;\n}\n\ninterface MSDelay {\n roundTrip?: number;\n roundTripMax?: number;\n}\n\ninterface MSDescription extends RTCStats {\n connectivity?: MSConnectivity;\n deviceDevName?: string;\n localAddr?: MSIPAddressInfo;\n networkconnectivity?: MSNetworkConnectivityInfo;\n reflexiveLocalIPAddr?: MSIPAddressInfo;\n remoteAddr?: MSIPAddressInfo;\n transport?: RTCIceProtocol;\n}\n\ninterface MSFIDOCredentialParameters extends MSCredentialParameters {\n algorithm?: string | Algorithm;\n authenticators?: string[];\n}\n\ninterface MSIPAddressInfo {\n ipAddr?: string;\n manufacturerMacAddrMask?: string;\n port?: number;\n}\n\ninterface MSIceWarningFlags {\n allocationMessageIntegrityFailed?: boolean;\n alternateServerReceived?: boolean;\n connCheckMessageIntegrityFailed?: boolean;\n connCheckOtherError?: boolean;\n fipsAllocationFailure?: boolean;\n multipleRelayServersAttempted?: boolean;\n noRelayServersConfigured?: boolean;\n portRangeExhausted?: boolean;\n pseudoTLSFailure?: boolean;\n tcpNatConnectivityFailed?: boolean;\n tcpRelayConnectivityFailed?: boolean;\n turnAuthUnknownUsernameError?: boolean;\n turnTcpAllocateFailed?: boolean;\n turnTcpSendFailed?: boolean;\n turnTcpTimedOut?: boolean;\n turnTurnTcpConnectivityFailed?: boolean;\n turnUdpAllocateFailed?: boolean;\n turnUdpSendFailed?: boolean;\n udpLocalConnectivityFailed?: boolean;\n udpNatConnectivityFailed?: boolean;\n udpRelayConnectivityFailed?: boolean;\n useCandidateChecksFailed?: boolean;\n}\n\ninterface MSJitter {\n interArrival?: number;\n interArrivalMax?: number;\n interArrivalSD?: number;\n}\n\ninterface MSLocalClientEventBase extends RTCStats {\n networkBandwidthLowEventRatio?: number;\n networkReceiveQualityEventRatio?: number;\n}\n\ninterface MSNetwork extends RTCStats {\n delay?: MSDelay;\n jitter?: MSJitter;\n packetLoss?: MSPacketLoss;\n utilization?: MSUtilization;\n}\n\ninterface MSNetworkConnectivityInfo {\n linkspeed?: number;\n networkConnectionDetails?: string;\n vpn?: boolean;\n}\n\ninterface MSNetworkInterfaceType {\n interfaceTypeEthernet?: boolean;\n interfaceTypePPP?: boolean;\n interfaceTypeTunnel?: boolean;\n interfaceTypeWWAN?: boolean;\n interfaceTypeWireless?: boolean;\n}\n\ninterface MSOutboundNetwork extends MSNetwork {\n appliedBandwidthLimit?: number;\n}\n\ninterface MSPacketLoss {\n lossRate?: number;\n lossRateMax?: number;\n}\n\ninterface MSPayloadBase extends RTCStats {\n payloadDescription?: string;\n}\n\ninterface MSPortRange {\n max?: number;\n min?: number;\n}\n\ninterface MSRelayAddress {\n port?: number;\n relayAddress?: string;\n}\n\ninterface MSSignatureParameters {\n userPrompt?: string;\n}\n\ninterface MSTransportDiagnosticsStats extends RTCStats {\n allocationTimeInMs?: number;\n baseAddress?: string;\n baseInterface?: MSNetworkInterfaceType;\n iceRole?: RTCIceRole;\n iceWarningFlags?: MSIceWarningFlags;\n interfaces?: MSNetworkInterfaceType;\n localAddrType?: MSIceAddrType;\n localAddress?: string;\n localInterface?: MSNetworkInterfaceType;\n localMR?: string;\n localMRTCPPort?: number;\n localSite?: string;\n msRtcEngineVersion?: string;\n networkName?: string;\n numConsentReqReceived?: number;\n numConsentReqSent?: number;\n numConsentRespReceived?: number;\n numConsentRespSent?: number;\n portRangeMax?: number;\n portRangeMin?: number;\n protocol?: RTCIceProtocol;\n remoteAddrType?: MSIceAddrType;\n remoteAddress?: string;\n remoteMR?: string;\n remoteMRTCPPort?: number;\n remoteSite?: string;\n rtpRtcpMux?: boolean;\n stunVer?: number;\n}\n\ninterface MSUtilization {\n bandwidthEstimation?: number;\n bandwidthEstimationAvg?: number;\n bandwidthEstimationMax?: number;\n bandwidthEstimationMin?: number;\n bandwidthEstimationStdDev?: number;\n packets?: number;\n}\n\ninterface MSVideoPayload extends MSPayloadBase {\n durationSeconds?: number;\n resolution?: string;\n videoBitRateAvg?: number;\n videoBitRateMax?: number;\n videoFrameRateAvg?: number;\n videoPacketLossRate?: number;\n}\n\ninterface MSVideoRecvPayload extends MSVideoPayload {\n lowBitRateCallPercent?: number;\n lowFrameRateCallPercent?: number;\n recvBitRateAverage?: number;\n recvBitRateMaximum?: number;\n recvCodecType?: string;\n recvFpsHarmonicAverage?: number;\n recvFrameRateAverage?: number;\n recvNumResSwitches?: number;\n recvReorderBufferMaxSuccessfullyOrderedExtent?: number;\n recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;\n recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;\n recvReorderBufferPacketsDroppedDueToTimeout?: number;\n recvReorderBufferReorderedPackets?: number;\n recvResolutionHeight?: number;\n recvResolutionWidth?: number;\n recvVideoStreamsMax?: number;\n recvVideoStreamsMin?: number;\n recvVideoStreamsMode?: number;\n reorderBufferTotalPackets?: number;\n videoFrameLossRate?: number;\n videoPostFECPLR?: number;\n videoResolutions?: MSVideoResolutionDistribution;\n}\n\ninterface MSVideoResolutionDistribution {\n cifQuality?: number;\n h1080Quality?: number;\n h1440Quality?: number;\n h2160Quality?: number;\n h720Quality?: number;\n vgaQuality?: number;\n}\n\ninterface MSVideoSendPayload extends MSVideoPayload {\n sendBitRateAverage?: number;\n sendBitRateMaximum?: number;\n sendFrameRateAverage?: number;\n sendResolutionHeight?: number;\n sendResolutionWidth?: number;\n sendVideoStreamsMax?: number;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message?: ArrayBuffer | null;\n messageType?: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n persistentState?: MediaKeysRequirement;\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n robustness?: string;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamErrorEventInit extends EventInit {\n error?: MediaStreamError | null;\n}\n\ninterface MediaStreamEventInit extends EventInit {\n stream?: MediaStream;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track?: MediaStreamTrack | null;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: number | DoubleRange;\n deviceId?: string;\n echoCancellation?: boolean[];\n facingMode?: string;\n frameRate?: number | DoubleRange;\n groupId?: string;\n height?: number | LongRange;\n sampleRate?: number | LongRange;\n sampleSize?: number | LongRange;\n volume?: number | DoubleRange;\n width?: number | LongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: number | ConstrainDoubleRange;\n channelCount?: number | ConstrainLongRange;\n deviceId?: string | string[] | ConstrainDOMStringParameters;\n displaySurface?: string | string[] | ConstrainDOMStringParameters;\n echoCancellation?: boolean | ConstrainBooleanParameters;\n facingMode?: string | string[] | ConstrainDOMStringParameters;\n frameRate?: number | ConstrainDoubleRange;\n groupId?: string | string[] | ConstrainDOMStringParameters;\n height?: number | ConstrainLongRange;\n latency?: number | ConstrainDoubleRange;\n logicalSurface?: boolean | ConstrainBooleanParameters;\n sampleRate?: number | ConstrainLongRange;\n sampleSize?: number | ConstrainLongRange;\n volume?: number | ConstrainDoubleRange;\n width?: number | ConstrainLongRange;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n sampleRate?: number;\n sampleSize?: number;\n volume?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n volume?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit extends EventInit {\n channel?: string;\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Window | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MsZoomToOptions {\n animate?: string;\n contentX?: number;\n contentY?: number;\n scaleFactor?: number;\n viewportX?: string | null;\n viewportY?: string | null;\n}\n\ninterface MutationObserverInit {\n attributeFilter?: string[];\n attributeOldValue?: boolean;\n attributes?: boolean;\n characterData?: boolean;\n characterDataOldValue?: boolean;\n childList?: boolean;\n subtree?: boolean;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n lang?: string;\n tag?: string;\n}\n\ninterface ObjectURLOptions {\n oneTimeOnly?: boolean;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\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 currencySystem?: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n shippingOptions?: PaymentShippingOption[];\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 | string[];\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n error?: string;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string | string[];\n}\n\ninterface PaymentOptions {\n requestPayerEmail?: boolean;\n requestPayerName?: boolean;\n requestPayerPhone?: boolean;\n requestShipping?: boolean;\n shippingType?: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentShippingOption {\n amount: PaymentCurrencyAmount;\n id: string;\n label: string;\n selected?: boolean;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: string | Algorithm;\n iterations: number;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[];\n real?: number[];\n}\n\ninterface PointerEventInit extends MouseEventInit {\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n pressure?: number;\n tiltX?: number;\n tiltY?: 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 PushEventInit extends ExtendableEventInit {\n data?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | string | null;\n}\n\ninterface PushSubscriptionChangeInit extends ExtendableEventInit {\n newSubscription?: PushSubscription;\n oldSubscription?: PushSubscription;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy {\n highWaterMark?: number;\n size?: WritableStreamChunkCallback;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n peerIdentity?: string;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCDtlsParameters {\n fingerprints?: RTCDtlsFingerprint[];\n role?: RTCDtlsRole;\n}\n\ninterface RTCIceCandidateAttributes extends RTCStats {\n addressSourceUrl?: string;\n candidateType?: RTCStatsIceCandidateType;\n ipAddress?: string;\n portNumber?: number;\n priority?: number;\n transport?: string;\n}\n\ninterface RTCIceCandidateComplete {\n}\n\ninterface RTCIceCandidateDictionary {\n foundation?: string;\n ip?: string;\n msMTurnSessionId?: string;\n port?: number;\n priority?: number;\n protocol?: RTCIceProtocol;\n relatedAddress?: string;\n relatedPort?: number;\n tcpType?: RTCIceTcpCandidateType;\n type?: RTCIceCandidateType;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number;\n sdpMid?: string;\n}\n\ninterface RTCIceCandidatePair {\n local?: RTCIceCandidateDictionary;\n remote?: RTCIceCandidateDictionary;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n localCandidateId?: string;\n nominated?: boolean;\n priority?: number;\n readable?: boolean;\n remoteCandidateId?: string;\n roundTripTime?: number;\n state?: RTCStatsIceCandidatePairState;\n transportId?: string;\n writable?: boolean;\n}\n\ninterface RTCIceGatherOptions {\n gatherPolicy?: RTCIceGatherPolicy;\n iceservers?: RTCIceServer[];\n portRange?: MSPortRange;\n}\n\ninterface RTCIceParameters {\n iceLite?: boolean | null;\n password?: string;\n usernameFragment?: string;\n}\n\ninterface RTCIceServer {\n credential?: string | null;\n urls?: any;\n username?: string | null;\n}\n\ninterface RTCInboundRTPStreamStats extends RTCRTPStreamStats {\n bytesReceived?: number;\n fractionLost?: number;\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCMediaStreamTrackStats extends RTCStats {\n audioLevel?: number;\n echoReturnLoss?: number;\n echoReturnLossEnhancement?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesCorrupted?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n framesSent?: number;\n remoteSource?: boolean;\n ssrcIds?: string[];\n trackIdentifier?: string;\n}\n\ninterface RTCOfferOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: number;\n offerToReceiveVideo?: number;\n voiceActivityDetection?: boolean;\n}\n\ninterface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n roundTripTime?: number;\n targetBitrate?: number;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate;\n}\n\ninterface RTCRTPStreamStats extends RTCStats {\n associateStatsId?: string;\n codecId?: string;\n firCount?: number;\n isRemote?: boolean;\n mediaTrackId?: string;\n mediaType?: string;\n nackCount?: number;\n pliCount?: number;\n sliCount?: number;\n ssrc?: string;\n transportId?: string;\n}\n\ninterface RTCRtcpFeedback {\n parameter?: string;\n type?: string;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n mux?: boolean;\n reducedSize?: boolean;\n ssrc?: number;\n}\n\ninterface RTCRtpCapabilities {\n codecs?: RTCRtpCodecCapability[];\n fecMechanisms?: string[];\n headerExtensions?: RTCRtpHeaderExtension[];\n}\n\ninterface RTCRtpCodecCapability {\n clockRate?: number;\n kind?: string;\n maxSpatialLayers?: number;\n maxTemporalLayers?: number;\n maxptime?: number;\n name?: string;\n numChannels?: number;\n options?: any;\n parameters?: any;\n preferredPayloadType?: number;\n ptime?: number;\n rtcpFeedback?: RTCRtcpFeedback[];\n svcMultiStreamSupport?: boolean;\n}\n\ninterface RTCRtpCodecParameters {\n clockRate?: number;\n maxptime?: number;\n name?: string;\n numChannels?: number;\n parameters?: any;\n payloadType?: number;\n ptime?: number;\n rtcpFeedback?: RTCRtcpFeedback[];\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n csrc?: number;\n timestamp?: number;\n}\n\ninterface RTCRtpEncodingParameters {\n active?: boolean;\n codecPayloadType?: number;\n dependencyEncodingIds?: string[];\n encodingId?: string;\n fec?: RTCRtpFecParameters;\n framerateScale?: number;\n maxBitrate?: number;\n maxFramerate?: number;\n minQuality?: number;\n priority?: number;\n resolutionScale?: number;\n rtx?: RTCRtpRtxParameters;\n ssrc?: number;\n ssrcRange?: RTCSsrcRange;\n}\n\ninterface RTCRtpFecParameters {\n mechanism?: string;\n ssrc?: number;\n}\n\ninterface RTCRtpHeaderExtension {\n kind?: string;\n preferredEncrypt?: boolean;\n preferredId?: number;\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypt?: boolean;\n id?: number;\n uri?: string;\n}\n\ninterface RTCRtpParameters {\n codecs?: RTCRtpCodecParameters[];\n degradationPreference?: RTCDegradationPreference;\n encodings?: RTCRtpEncodingParameters[];\n headerExtensions?: RTCRtpHeaderExtensionParameters[];\n muxId?: string;\n rtcp?: RTCRtcpParameters;\n}\n\ninterface RTCRtpRtxParameters {\n ssrc?: number;\n}\n\ninterface RTCRtpUnhandled {\n muxId?: string;\n payloadType?: number;\n ssrc?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCSrtpKeyParam {\n keyMethod?: string;\n keySalt?: string;\n lifetime?: string;\n mkiLength?: number;\n mkiValue?: number;\n}\n\ninterface RTCSrtpSdesParameters {\n cryptoSuite?: string;\n keyParams?: RTCSrtpKeyParam[];\n sessionParams?: string[];\n tag?: number;\n}\n\ninterface RTCSsrcRange {\n max?: number;\n min?: number;\n}\n\ninterface RTCStats {\n id?: string;\n msType?: MSStatsType;\n timestamp?: number;\n type?: RTCStatsType;\n}\n\ninterface RTCStatsReport {\n}\n\ninterface RTCTransportStats extends RTCStats {\n activeConnection?: boolean;\n bytesReceived?: number;\n bytesSent?: number;\n localCertificateId?: string;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairId?: string;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n}\n\ninterface RequestInit {\n body?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null;\n cache?: RequestCache;\n credentials?: RequestCredentials;\n headers?: HeadersInit;\n integrity?: string;\n keepalive?: boolean;\n method?: string;\n mode?: RequestMode;\n redirect?: RequestRedirect;\n referrer?: string;\n referrerPolicy?: ReferrerPolicy;\n signal?: AbortSignal;\n window?: any;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: string | Algorithm;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: string | Algorithm;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: Uint8Array;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: Uint8Array;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\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 ScopedCredentialDescriptor {\n id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n transports?: Transport[];\n type: ScopedCredentialType;\n}\n\ninterface ScopedCredentialOptions {\n excludeList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\n}\n\ninterface ScopedCredentialParameters {\n algorithm: string | Algorithm;\n type: ScopedCredentialType;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n documentURI?: string;\n effectiveDirective?: string;\n lineNumber?: number;\n originalPolicy?: string;\n referrer?: string;\n sourceFile?: string;\n statusCode?: number;\n violatedDirective?: string;\n}\n\ninterface ServiceWorkerMessageEventInit extends EventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[] | null;\n source?: ServiceWorker | MessagePort | null;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance?: SpeechSynthesisUtterance | null;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StoreExceptionsInformation extends ExceptionInformation {\n detailURI?: string | null;\n explanationString?: string | null;\n siteName?: string | null;\n}\n\ninterface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {\n arrayOfDomainStrings?: string[];\n}\n\ninterface SyncEventInit extends ExtendableEventInit {\n lastChance?: boolean;\n tag: string;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n}\n\ninterface UnderlyingSink {\n abort?: WritableStreamErrorCallback;\n close?: WritableStreamDefaultControllerCallback;\n start: WritableStreamDefaultControllerCallback;\n write?: WritableStreamChunkCallback;\n}\n\ninterface VRDisplayEventInit extends EventInit {\n display: VRDisplay;\n reason?: VRDisplayEventReason;\n}\n\ninterface VRLayer {\n leftBounds?: number[] | null;\n rightBounds?: number[] | null;\n source?: HTMLCanvasElement | null;\n}\n\ninterface VRStageParameters {\n sittingToStandingTransform?: Float32Array;\n sizeX?: number;\n sizeY?: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[];\n oversample?: OverSampleType;\n}\n\ninterface WebAuthnExtensions {\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\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 EventListener {\n (evt: Event): void;\n}\n\ntype WebKitEntriesCallback = ((entries: WebKitEntry[]) => void) | { handleEvent(entries: WebKitEntry[]): void; };\n\ntype WebKitErrorCallback = ((err: DOMError) => void) | { handleEvent(err: DOMError): void; };\n\ntype WebKitFileCallback = ((file: File) => void) | { handleEvent(file: File): void; };\n\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;\n drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;\n vertexAttribDivisorANGLE(index: number, divisor: number): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;\n}\n\ndeclare var ANGLE_instanced_arrays: {\n prototype: ANGLE_instanced_arrays;\n new(): ANGLE_instanced_arrays;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;\n};\n\ninterface AbortController {\n readonly signal: AbortSignal;\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": ProgressEvent;\n}\n\ninterface AbortSignal extends EventTarget {\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: ProgressEvent) => 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};\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 AesCfbParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCmacParams extends Algorithm {\n length: number;\n}\n\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(): AnalyserNode;\n};\n\ninterface Animation {\n currentTime: number | null;\n effect: AnimationEffectReadOnly;\n readonly finished: Promise<Animation>;\n id: string;\n readonly pending: boolean;\n readonly playState: "idle" | "running" | "paused" | "finished";\n playbackRate: number;\n readonly ready: Promise<Animation>;\n startTime: number;\n timeline: AnimationTimeline;\n cancel(): void;\n finish(): void;\n oncancel: (this: Animation, ev: AnimationPlaybackEvent) => any;\n onfinish: (this: Animation, ev: AnimationPlaybackEvent) => any;\n pause(): void;\n play(): void;\n reverse(): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffectReadOnly, timeline?: AnimationTimeline): Animation;\n};\n\ninterface AnimationEffectReadOnly {\n readonly timing: number;\n getComputedTiming(): ComputedTimingProperties;\n}\n\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(typeArg: string, eventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationKeyFrame {\n easing?: string | string[];\n offset?: number | null | (number | null)[];\n [index: string]: string | number | number[] | string[] | null | (number | null)[] | undefined;\n}\n\ninterface AnimationOptions {\n delay?: number;\n direction?: "normal" | "reverse" | "alternate" | "alternate-reverse";\n duration?: number;\n easing?: string;\n endDelay?: number;\n fill?: "none" | "forwards" | "backwards" | "both"| "auto";\n id?: string;\n iterationStart?: number;\n iterations?: number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: number | null;\n readonly timelineTime: number | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: number | null;\n timelineTime?: number | null;\n}\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ninterface ApplicationCacheEventMap {\n "cached": Event;\n "checking": Event;\n "downloading": Event;\n "error": Event;\n "noupdate": Event;\n "obsolete": Event;\n "progress": ProgressEvent;\n "updateready": Event;\n}\n\ninterface ApplicationCache extends EventTarget {\n oncached: ((this: ApplicationCache, ev: Event) => any) | null;\n onchecking: ((this: ApplicationCache, ev: Event) => any) | null;\n ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;\n onerror: ((this: ApplicationCache, ev: Event) => any) | null;\n onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;\n onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;\n onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;\n onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;\n readonly status: number;\n abort(): void;\n swapCache(): void;\n update(): void;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ApplicationCache: {\n prototype: ApplicationCache;\n new(): ApplicationCache;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n};\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface Attr extends Node {\n readonly name: string;\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\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(): AudioBuffer;\n};\n\ninterface AudioBufferSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioBufferSourceNode extends AudioNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n onended: ((this: AudioBufferSourceNode, ev: Event) => any) | null;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[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(): AudioBufferSourceNode;\n};\n\ninterface AudioContextEventMap {\n "statechange": Event;\n}\n\ninterface AudioContextBase extends EventTarget {\n readonly currentTime: number;\n readonly destination: AudioDestinationNode;\n readonly listener: AudioListener;\n onstatechange: ((this: AudioContext, ev: Event) => any) | null;\n readonly sampleRate: number;\n readonly state: AudioContextState;\n close(): Promise<void>;\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 createConvolver(): ConvolverNode;\n createDelay(maxDelayTime?: number): DelayNode;\n createDynamicsCompressor(): DynamicsCompressorNode;\n createGain(): GainNode;\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n createOscillator(): OscillatorNode;\n createPanner(): PannerNode;\n createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n createStereoPanner(): StereoPannerNode;\n createWaveShaper(): WaveShaperNode;\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise<AudioBuffer>;\n resume(): Promise<void>;\n addEventListener<K extends keyof AudioContextEventMap>(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioContextEventMap>(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AudioContext extends AudioContextBase {\n suspend(): Promise<void>;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(): AudioContext;\n};\n\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\ninterface AudioListener {\n /** @deprecated */\n dopplerFactor: number;\n /** @deprecated */\n speedOfSound: number;\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 /** @deprecated */\n setVelocity(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: AudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destination: AudioNode, output?: number, input?: number): AudioNode;\n connect(destination: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destination: AudioNode): void;\n disconnect(destination: AudioNode, output: number): void;\n disconnect(destination: AudioNode, output: number, input: number): void;\n disconnect(destination: AudioParam): void;\n disconnect(destination: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\ninterface AudioParam {\n readonly defaultValue: number;\n value: number;\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[], startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioProcessingEvent extends Event {\n readonly inputBuffer: AudioBuffer;\n readonly outputBuffer: AudioBuffer;\n readonly playbackTime: number;\n}\n\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(): AudioProcessingEvent;\n};\n\ninterface AudioTrack {\n enabled: boolean;\n readonly id: string;\n kind: string;\n readonly label: string;\n language: string;\n readonly sourceBuffer: SourceBuffer;\n}\n\ndeclare var AudioTrack: {\n prototype: AudioTrack;\n new(): AudioTrack;\n};\n\ninterface AudioTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface AudioTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: AudioTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;\n getTrackById(id: string): AudioTrack | null;\n item(index: number): AudioTrack;\n addEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: AudioTrack;\n}\n\ndeclare var AudioTrackList: {\n prototype: AudioTrackList;\n new(): AudioTrackList;\n};\n\ninterface BarProp {\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BeforeUnloadEvent extends Event {\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\ninterface BhxBrowser {\n readonly lastError: DOMException;\n checkMatchesGlobExpression(pattern: string, value: string): boolean;\n checkMatchesUriExpression(pattern: string, value: string): boolean;\n clearLastError(): void;\n currentWindowId(): number;\n fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;\n genericSynchronousFunction(functionId: number, parameters?: string): string;\n getExtensionId(): string;\n getThisAddress(): any;\n registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n registerGenericListenerHandler(eventHandler: Function): void;\n setLastError(parameters: string): void;\n webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;\n}\n\ndeclare var BhxBrowser: {\n prototype: BhxBrowser;\n new(): BhxBrowser;\n};\n\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(): BiquadFilterNode;\n};\n\ninterface Blob {\n readonly size: number;\n readonly type: string;\n msClose(): void;\n msDetachStream(): any;\n slice(start?: number, end?: number, contentType?: string): Blob;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new (blobParts?: any[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobPropertyBag {\n endings?: string;\n type?: string;\n}\n\ninterface Body {\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 BroadcastChannel extends EventTarget {\n readonly name: string;\n onmessage: (ev: MessageEvent) => any;\n onmessageerror: (ev: MessageEvent) => any;\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 close(): void;\n postMessage(message: any): 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\ninterface BroadcastChannelEventMap {\n message: MessageEvent;\n messageerror: MessageEvent;\n}\n\ninterface ByteLengthQueuingStrategy {\n highWaterMark: number;\n size(chunk?: any): number;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(strategy: QueuingStrategy): ByteLengthQueuingStrategy;\n};\n\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\ninterface CSS {\n escape(value: string): string;\n supports(property: string, value?: string): boolean;\n}\ndeclare var CSS: CSS;\n\ninterface CSSConditionRule extends CSSGroupingRule {\n conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\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\ninterface CSSKeyframeRule extends CSSRule {\n keyText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\ninterface CSSKeyframesRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n name: string;\n appendRule(rule: string): void;\n deleteRule(rule: string): void;\n findRule(rule: string): CSSKeyframeRule | null;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\ninterface CSSMediaRule extends CSSConditionRule {\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\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\ninterface CSSPageRule extends CSSRule {\n readonly pseudoClass: string;\n readonly selector: string;\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\ninterface CSSRule {\n cssText: string;\n readonly parentRule: CSSRule | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\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 readonly UNKNOWN_RULE: number;\n readonly VIEWPORT_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 readonly UNKNOWN_RULE: number;\n readonly VIEWPORT_RULE: number;\n};\n\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\ninterface CSSStyleDeclaration {\n alignContent: string | null;\n alignItems: string | null;\n alignSelf: string | null;\n alignmentBaseline: string | null;\n animation: string | null;\n animationDelay: string | null;\n animationDirection: string | null;\n animationDuration: string | null;\n animationFillMode: string | null;\n animationIterationCount: string | null;\n animationName: string | null;\n animationPlayState: string | null;\n animationTimingFunction: string | null;\n backfaceVisibility: string | null;\n background: string | null;\n backgroundAttachment: string | null;\n backgroundClip: string | null;\n backgroundColor: string | null;\n backgroundImage: string | null;\n backgroundOrigin: string | null;\n backgroundPosition: string | null;\n backgroundPositionX: string | null;\n backgroundPositionY: string | null;\n backgroundRepeat: string | null;\n backgroundSize: string | null;\n baselineShift: string | null;\n border: string | null;\n borderBottom: string | null;\n borderBottomColor: string | null;\n borderBottomLeftRadius: string | null;\n borderBottomRightRadius: string | null;\n borderBottomStyle: string | null;\n borderBottomWidth: string | null;\n borderCollapse: string | null;\n borderColor: string | null;\n borderImage: string | null;\n borderImageOutset: string | null;\n borderImageRepeat: string | null;\n borderImageSlice: string | null;\n borderImageSource: string | null;\n borderImageWidth: string | null;\n borderLeft: string | null;\n borderLeftColor: string | null;\n borderLeftStyle: string | null;\n borderLeftWidth: string | null;\n borderRadius: string | null;\n borderRight: string | null;\n borderRightColor: string | null;\n borderRightStyle: string | null;\n borderRightWidth: string | null;\n borderSpacing: string | null;\n borderStyle: string | null;\n borderTop: string | null;\n borderTopColor: string | null;\n borderTopLeftRadius: string | null;\n borderTopRightRadius: string | null;\n borderTopStyle: string | null;\n borderTopWidth: string | null;\n borderWidth: string | null;\n bottom: string | null;\n boxShadow: string | null;\n boxSizing: string | null;\n breakAfter: string | null;\n breakBefore: string | null;\n breakInside: string | null;\n captionSide: string | null;\n clear: string | null;\n clip: string | null;\n clipPath: string | null;\n clipRule: string | null;\n color: string | null;\n colorInterpolationFilters: string | null;\n columnCount: any;\n columnFill: string | null;\n columnGap: any;\n columnRule: string | null;\n columnRuleColor: any;\n columnRuleStyle: string | null;\n columnRuleWidth: any;\n columnSpan: string | null;\n columnWidth: any;\n columns: string | null;\n content: string | null;\n counterIncrement: string | null;\n counterReset: string | null;\n cssFloat: string | null;\n cssText: string;\n cursor: string | null;\n direction: string | null;\n display: string | null;\n dominantBaseline: string | null;\n emptyCells: string | null;\n enableBackground: string | null;\n fill: string | null;\n fillOpacity: string | null;\n fillRule: string | null;\n filter: string | null;\n flex: string | null;\n flexBasis: string | null;\n flexDirection: string | null;\n flexFlow: string | null;\n flexGrow: string | null;\n flexShrink: string | null;\n flexWrap: string | null;\n floodColor: string | null;\n floodOpacity: string | null;\n font: string | null;\n fontFamily: string | null;\n fontFeatureSettings: string | null;\n fontSize: string | null;\n fontSizeAdjust: string | null;\n fontStretch: string | null;\n fontStyle: string | null;\n fontVariant: string | null;\n fontWeight: string | null;\n gap: string | null;\n glyphOrientationHorizontal: string | null;\n glyphOrientationVertical: string | null;\n grid: string | null;\n gridArea: string | null;\n gridAutoColumns: string | null;\n gridAutoFlow: string | null;\n gridAutoRows: string | null;\n gridColumn: string | null;\n gridColumnEnd: string | null;\n gridColumnGap: string | null;\n gridColumnStart: string | null;\n gridGap: string | null;\n gridRow: string | null;\n gridRowEnd: string | null;\n gridRowGap: string | null;\n gridRowStart: string | null;\n gridTemplate: string | null;\n gridTemplateAreas: string | null;\n gridTemplateColumns: string | null;\n gridTemplateRows: string | null;\n height: string | null;\n imeMode: string | null;\n justifyContent: string | null;\n justifyItems: string | null;\n justifySelf: string | null;\n kerning: string | null;\n layoutGrid: string | null;\n layoutGridChar: string | null;\n layoutGridLine: string | null;\n layoutGridMode: string | null;\n layoutGridType: string | null;\n left: string | null;\n readonly length: number;\n letterSpacing: string | null;\n lightingColor: string | null;\n lineBreak: string | null;\n lineHeight: string | null;\n listStyle: string | null;\n listStyleImage: string | null;\n listStylePosition: string | null;\n listStyleType: string | null;\n margin: string | null;\n marginBottom: string | null;\n marginLeft: string | null;\n marginRight: string | null;\n marginTop: string | null;\n marker: string | null;\n markerEnd: string | null;\n markerMid: string | null;\n markerStart: string | null;\n mask: string | null;\n maskImage: string | null;\n maxHeight: string | null;\n maxWidth: string | null;\n minHeight: string | null;\n minWidth: string | null;\n msContentZoomChaining: string | null;\n msContentZoomLimit: string | null;\n msContentZoomLimitMax: any;\n msContentZoomLimitMin: any;\n msContentZoomSnap: string | null;\n msContentZoomSnapPoints: string | null;\n msContentZoomSnapType: string | null;\n msContentZooming: string | null;\n msFlowFrom: string | null;\n msFlowInto: string | null;\n msFontFeatureSettings: string | null;\n msGridColumn: any;\n msGridColumnAlign: string | null;\n msGridColumnSpan: any;\n msGridColumns: string | null;\n msGridRow: any;\n msGridRowAlign: string | null;\n msGridRowSpan: any;\n msGridRows: string | null;\n msHighContrastAdjust: string | null;\n msHyphenateLimitChars: string | null;\n msHyphenateLimitLines: any;\n msHyphenateLimitZone: any;\n msHyphens: string | null;\n msImeAlign: string | null;\n msOverflowStyle: string | null;\n msScrollChaining: string | null;\n msScrollLimit: string | null;\n msScrollLimitXMax: any;\n msScrollLimitXMin: any;\n msScrollLimitYMax: any;\n msScrollLimitYMin: any;\n msScrollRails: string | null;\n msScrollSnapPointsX: string | null;\n msScrollSnapPointsY: string | null;\n msScrollSnapType: string | null;\n msScrollSnapX: string | null;\n msScrollSnapY: string | null;\n msScrollTranslation: string | null;\n msTextCombineHorizontal: string | null;\n msTextSizeAdjust: any;\n msTouchAction: string | null;\n msTouchSelect: string | null;\n msUserSelect: string | null;\n msWrapFlow: string;\n msWrapMargin: any;\n msWrapThrough: string;\n objectFit: string | null;\n objectPosition: string | null;\n opacity: string | null;\n order: string | null;\n orphans: string | null;\n outline: string | null;\n outlineColor: string | null;\n outlineOffset: string | null;\n outlineStyle: string | null;\n outlineWidth: string | null;\n overflow: string | null;\n overflowX: string | null;\n overflowY: string | null;\n padding: string | null;\n paddingBottom: string | null;\n paddingLeft: string | null;\n paddingRight: string | null;\n paddingTop: string | null;\n pageBreakAfter: string | null;\n pageBreakBefore: string | null;\n pageBreakInside: string | null;\n readonly parentRule: CSSRule;\n penAction: string | null;\n perspective: string | null;\n perspectiveOrigin: string | null;\n pointerEvents: string | null;\n position: string | null;\n quotes: string | null;\n resize: string | null;\n right: string | null;\n rotate: string | null;\n rowGap: string | null;\n rubyAlign: string | null;\n rubyOverhang: string | null;\n rubyPosition: string | null;\n scale: string | null;\n stopColor: string | null;\n stopOpacity: string | null;\n stroke: string | null;\n strokeDasharray: string | null;\n strokeDashoffset: string | null;\n strokeLinecap: string | null;\n strokeLinejoin: string | null;\n strokeMiterlimit: string | null;\n strokeOpacity: string | null;\n strokeWidth: string | null;\n tableLayout: string | null;\n textAlign: string | null;\n textAlignLast: string | null;\n textAnchor: string | null;\n textCombineUpright: string | null;\n textDecoration: string | null;\n textIndent: string | null;\n textJustify: string | null;\n textKashida: string | null;\n textKashidaSpace: string | null;\n textOverflow: string | null;\n textShadow: string | null;\n textTransform: string | null;\n textUnderlinePosition: string | null;\n top: string | null;\n touchAction: string | null;\n transform: string | null;\n transformOrigin: string | null;\n transformStyle: string | null;\n transition: string | null;\n transitionDelay: string | null;\n transitionDuration: string | null;\n transitionProperty: string | null;\n transitionTimingFunction: string | null;\n translate: string | null;\n unicodeBidi: string | null;\n userSelect: string | null;\n verticalAlign: string | null;\n visibility: string | null;\n webkitAlignContent: string | null;\n webkitAlignItems: string | null;\n webkitAlignSelf: string | null;\n webkitAnimation: string | null;\n webkitAnimationDelay: string | null;\n webkitAnimationDirection: string | null;\n webkitAnimationDuration: string | null;\n webkitAnimationFillMode: string | null;\n webkitAnimationIterationCount: string | null;\n webkitAnimationName: string | null;\n webkitAnimationPlayState: string | null;\n webkitAnimationTimingFunction: string | null;\n webkitAppearance: string | null;\n webkitBackfaceVisibility: string | null;\n webkitBackgroundClip: string | null;\n webkitBackgroundOrigin: string | null;\n webkitBackgroundSize: string | null;\n webkitBorderBottomLeftRadius: string | null;\n webkitBorderBottomRightRadius: string | null;\n webkitBorderImage: string | null;\n webkitBorderRadius: string | null;\n webkitBorderTopLeftRadius: string | null;\n webkitBorderTopRightRadius: string | null;\n webkitBoxAlign: string | null;\n webkitBoxDirection: string | null;\n webkitBoxFlex: string | null;\n webkitBoxOrdinalGroup: string | null;\n webkitBoxOrient: string | null;\n webkitBoxPack: string | null;\n webkitBoxSizing: string | null;\n webkitColumnBreakAfter: string | null;\n webkitColumnBreakBefore: string | null;\n webkitColumnBreakInside: string | null;\n webkitColumnCount: any;\n webkitColumnGap: any;\n webkitColumnRule: string | null;\n webkitColumnRuleColor: any;\n webkitColumnRuleStyle: string | null;\n webkitColumnRuleWidth: any;\n webkitColumnSpan: string | null;\n webkitColumnWidth: any;\n webkitColumns: string | null;\n webkitFilter: string | null;\n webkitFlex: string | null;\n webkitFlexBasis: string | null;\n webkitFlexDirection: string | null;\n webkitFlexFlow: string | null;\n webkitFlexGrow: string | null;\n webkitFlexShrink: string | null;\n webkitFlexWrap: string | null;\n webkitJustifyContent: string | null;\n webkitOrder: string | null;\n webkitPerspective: string | null;\n webkitPerspectiveOrigin: string | null;\n webkitTapHighlightColor: string | null;\n webkitTextFillColor: string | null;\n webkitTextSizeAdjust: any;\n webkitTextStroke: string | null;\n webkitTextStrokeColor: string | null;\n webkitTextStrokeWidth: string | null;\n webkitTransform: string | null;\n webkitTransformOrigin: string | null;\n webkitTransformStyle: string | null;\n webkitTransition: string | null;\n webkitTransitionDelay: string | null;\n webkitTransitionDuration: string | null;\n webkitTransitionProperty: string | null;\n webkitTransitionTimingFunction: string | null;\n webkitUserModify: string | null;\n webkitUserSelect: string | null;\n webkitWritingMode: string | null;\n whiteSpace: string | null;\n widows: string | null;\n width: string | null;\n wordBreak: string | null;\n wordSpacing: string | null;\n wordWrap: string | null;\n writingMode: string | null;\n zIndex: string | null;\n zoom: string | null;\n getPropertyPriority(propertyName: string): string;\n getPropertyValue(propertyName: string): string;\n item(index: number): string;\n removeProperty(propertyName: string): string;\n setProperty(propertyName: string, value: string | null, priority?: string | null): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\ninterface CSSStyleRule extends CSSRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\ninterface CSSStyleSheet extends StyleSheet {\n readonly cssRules: CSSRuleList;\n /** @deprecated */\n cssText: string;\n /** @deprecated */\n readonly id: string;\n /** @deprecated */\n readonly imports: StyleSheetList;\n /** @deprecated */\n readonly isAlternate: boolean;\n /** @deprecated */\n readonly isPrefAlternate: boolean;\n readonly ownerRule: CSSRule | null;\n /** @deprecated */\n readonly owningElement: Element;\n /** @deprecated */\n readonly pages: any;\n /** @deprecated */\n readonly readOnly: boolean;\n readonly rules: CSSRuleList;\n /** @deprecated */\n addImport(bstrURL: string, lIndex?: number): number;\n /** @deprecated */\n addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;\n addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;\n deleteRule(index?: number): void;\n insertRule(rule: string, index?: number): number;\n /** @deprecated */\n removeImport(lIndex: number): void;\n removeRule(lIndex: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(): CSSStyleSheet;\n};\n\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\ninterface Cache {\n add(request: Request | string): Promise<void>;\n addAll(requests: (Request | string)[]): Promise<void>;\n delete(request: Request | string, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: Request | string, options?: CacheQueryOptions): Promise<Request[]>;\n match(request: Request | string, options?: CacheQueryOptions): Promise<Response>;\n matchAll(request?: Request | string, options?: CacheQueryOptions): Promise<Response[]>;\n put(request: Request | string, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: Request | string, options?: CacheQueryOptions): Promise<any>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface Canvas2DContextAttributes {\n alpha?: boolean;\n storage?: boolean;\n willReadFrequently?: boolean;\n [attribute: string]: boolean | string | undefined;\n}\n\ninterface CanvasGradient {\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasPathMethods {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radiusX: number, radiusY: number, rotation: 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, anticlockwise?: 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 CanvasPattern {\n setTransform(matrix: SVGMatrix): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRenderingContext2D extends CanvasPathMethods {\n readonly canvas: HTMLCanvasElement;\n fillStyle: string | CanvasGradient | CanvasPattern;\n font: string;\n globalAlpha: number;\n globalCompositeOperation: string;\n imageSmoothingEnabled: boolean;\n lineCap: string;\n lineDashOffset: number;\n lineJoin: string;\n lineWidth: number;\n miterLimit: number;\n mozImageSmoothingEnabled: boolean;\n msFillRule: CanvasFillRule;\n oImageSmoothingEnabled: boolean;\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n textAlign: string;\n textBaseline: string;\n webkitImageSmoothingEnabled: boolean;\n beginPath(): void;\n clearRect(x: number, y: number, w: number, h: number): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number): void;\n drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number, dstW: number, dstH: number): void;\n drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, srcX: number, srcY: number, srcW: number, srcH: number, dstX: number, dstY: number, dstW: number, dstH: number): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;\n getLineDash(): number[];\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, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n measureText(text: string): TextMetrics;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;\n restore(): void;\n rotate(angle: number): void;\n save(): void;\n scale(x: number, y: number): void;\n setLineDash(segments: number[]): void;\n setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;\n stroke(path?: Path2D): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;\n translate(x: number, y: number): void;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(): ChannelMergerNode;\n};\n\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(): ChannelSplitterNode;\n};\n\ninterface CharacterData extends Node, ChildNode {\n data: string;\n readonly length: number;\n appendData(arg: string): void;\n deleteData(offset: number, count: number): void;\n insertData(offset: number, arg: string): void;\n replaceData(offset: number, count: number, arg: string): void;\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode {\n remove(): void;\n}\n\ninterface ClientRect {\n bottom: number;\n readonly height: number;\n left: number;\n right: number;\n top: number;\n readonly width: number;\n}\n\ndeclare var ClientRect: {\n prototype: ClientRect;\n new(): ClientRect;\n};\n\ninterface ClientRectList {\n readonly length: number;\n item(index: number): ClientRect;\n [index: number]: ClientRect;\n}\n\ndeclare var ClientRectList: {\n prototype: ClientRectList;\n new(): ClientRectList;\n};\n\ninterface ClipboardEvent extends Event {\n readonly clipboardData: DataTransfer;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\ninterface ClipboardEventInit extends EventInit {\n data?: string;\n dataType?: string;\n}\n\ninterface CloseEvent extends Event {\n readonly code: number;\n readonly reason: string;\n readonly wasClean: boolean;\n /** @deprecated */\n initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\ninterface Comment extends CharacterData {\n text: string;\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\ninterface CompositionEvent extends UIEvent {\n readonly data: string;\n readonly locale: string;\n initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ComputedTimingProperties {\n activeDuration: number;\n currentIteration: number | null;\n endTime: number;\n localTime: number | null;\n progress: number | null;\n}\n\ninterface ConcatParams extends Algorithm {\n algorithmId: Uint8Array;\n hash?: string | Algorithm;\n partyUInfo: Uint8Array;\n partyVInfo: Uint8Array;\n privateInfo?: Uint8Array;\n publicInfo?: Uint8Array;\n}\n\ninterface Console {\n memory: any;\n assert(condition?: boolean, message?: string, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n debug(message?: any, ...optionalParams: any[]): void;\n dir(value?: any, ...optionalParams: any[]): void;\n dirxml(value: any): void;\n error(message?: any, ...optionalParams: any[]): void;\n exception(message?: string, ...optionalParams: any[]): void;\n group(groupTitle?: string, ...optionalParams: any[]): void;\n groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;\n groupEnd(): void;\n info(message?: any, ...optionalParams: any[]): void;\n log(message?: any, ...optionalParams: any[]): void;\n markTimeline(label?: string): void;\n msIsIndependentlyComposed(element: Element): boolean;\n profile(reportName?: string): void;\n profileEnd(): void;\n select(element: Element): void;\n table(...tabularData: any[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeStamp(label?: string): void;\n timeline(label?: string): void;\n timelineEnd(label?: string): void;\n trace(message?: any, ...optionalParams: any[]): void;\n warn(message?: any, ...optionalParams: any[]): void;\n}\n\ndeclare var Console: {\n prototype: Console;\n new(): Console;\n};\n\ninterface ContentScriptGlobalScope extends EventTarget {\n readonly msContentScript: ExtensionScriptApis;\n readonly window: Window;\n}\n\ndeclare var ContentScriptGlobalScope: {\n prototype: ContentScriptGlobalScope;\n new(): ContentScriptGlobalScope;\n};\n\ninterface ConvolverNode extends AudioNode {\n buffer: AudioBuffer | null;\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(): ConvolverNode;\n};\n\ninterface Coordinates {\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 Coordinates: {\n prototype: Coordinates;\n new(): Coordinates;\n};\n\ninterface CountQueuingStrategy {\n highWaterMark: number;\n size(): number;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(strategy: QueuingStrategy): CountQueuingStrategy;\n};\n\ninterface Crypto {\n readonly subtle: SubtleCrypto;\n getRandomValues(array: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: string;\n readonly usages: string[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ndeclare var CryptoKeyPair: {\n prototype: CryptoKeyPair;\n new(): CryptoKeyPair;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: Function, options?: ElementDefinitionOptions): void;\n get(name: string): any;\n whenDefined(name: string): PromiseLike<void>;\n}\n\ninterface CustomEvent<T = any> extends Event {\n readonly detail: T;\n initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\ninterface DOMError {\n readonly name: string;\n toString(): string;\n}\n\ndeclare var DOMError: {\n prototype: DOMError;\n new(): DOMError;\n};\n\ninterface DOMException {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n toString(): 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 PARSE_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SERIALIZE_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 PARSE_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SERIALIZE_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 DOMImplementation {\n createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n createHTMLDocument(title?: string): Document;\n hasFeature(feature: string | null, version: string | null): boolean;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\ninterface DOML2DeprecatedColorProperty {\n color: string;\n}\n\ninterface DOML2DeprecatedSizeProperty {\n size: number;\n}\n\ninterface DOMParser {\n parseFromString(source: string, mimeType: string): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\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(rectangle?: DOMRectInit): DOMRect;\n};\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: 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}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new (x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(rectangle?: DOMRectInit): DOMRectReadOnly;\n};\n\ninterface DOMSettableTokenList extends DOMTokenList {\n value: string;\n}\n\ndeclare var DOMSettableTokenList: {\n prototype: DOMSettableTokenList;\n new(): DOMSettableTokenList;\n};\n\ninterface DOMStringList {\n readonly length: number;\n contains(str: string): boolean;\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\ninterface DOMTokenList {\n readonly length: number;\n add(...tokens: string[]): void;\n contains(token: string): boolean;\n item(index: number): string | null;\n remove(...tokens: string[]): void;\n toString(): string;\n toggle(token: string, force?: boolean): boolean;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\ninterface DataCue extends TextTrackCue {\n data: ArrayBuffer;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, 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: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DataCue: {\n prototype: DataCue;\n new(): DataCue;\n};\n\ninterface DataTransfer {\n dropEffect: string;\n effectAllowed: string;\n readonly files: FileList;\n readonly items: DataTransferItemList;\n readonly types: string[];\n clearData(format?: string): boolean;\n getData(format: string): string;\n setData(format: string, data: string): boolean;\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\ninterface DataTransferItem {\n readonly kind: string;\n readonly type: string;\n getAsFile(): File | null;\n getAsString(_callback: FunctionStringCallback | null): void;\n webkitGetAsEntry(): any;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\ninterface DataTransferItemList {\n readonly length: number;\n add(data: File): DataTransferItem | null;\n add(data: string, type: string): DataTransferItem | null;\n clear(): void;\n item(index: number): DataTransferItem;\n remove(index: number): void;\n [name: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\ninterface DeferredPermissionRequest {\n readonly id: number;\n readonly type: MSWebViewPermissionType;\n readonly uri: string;\n allow(): void;\n deny(): void;\n}\n\ndeclare var DeferredPermissionRequest: {\n prototype: DeferredPermissionRequest;\n new(): DeferredPermissionRequest;\n};\n\ninterface DelayNode extends AudioNode {\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(): DelayNode;\n};\n\ninterface DeviceAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\ndeclare var DeviceAcceleration: {\n prototype: DeviceAcceleration;\n new(): DeviceAcceleration;\n};\n\ninterface DeviceLightEvent extends Event {\n readonly value: number;\n}\n\ndeclare var DeviceLightEvent: {\n prototype: DeviceLightEvent;\n new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;\n};\n\ninterface DeviceMotionEvent extends Event {\n readonly acceleration: DeviceAcceleration | null;\n readonly accelerationIncludingGravity: DeviceAcceleration | null;\n readonly interval: number | null;\n readonly rotationRate: DeviceRotationRate | null;\n initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\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 initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DeviceRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceRotationRate: {\n prototype: DeviceRotationRate;\n new(): DeviceRotationRate;\n};\n\ninterface DhImportKeyParams extends Algorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DhKeyAlgorithm extends KeyAlgorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface DhKeyGenParams extends Algorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "activate": Event;\n "beforeactivate": Event;\n "beforedeactivate": Event;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "contextmenu": PointerEvent;\n "dblclick": MouseEvent;\n "deactivate": Event;\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 "fullscreenchange": Event;\n "fullscreenerror": Event;\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 "mousedown": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "mousewheel": WheelEvent;\n "MSContentZoom": Event;\n "MSGestureChange": Event;\n "MSGestureDoubleTap": Event;\n "MSGestureEnd": Event;\n "MSGestureHold": Event;\n "MSGestureStart": Event;\n "MSGestureTap": Event;\n "MSInertiaStart": Event;\n "MSManipulationStateChanged": Event;\n "MSPointerCancel": Event;\n "MSPointerDown": Event;\n "MSPointerEnter": Event;\n "MSPointerLeave": Event;\n "MSPointerMove": Event;\n "MSPointerOut": Event;\n "MSPointerOver": Event;\n "MSPointerUp": Event;\n "mssitemodejumplistitemremoved": Event;\n "msthumbnailclick": Event;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "progress": ProgressEvent;\n "ratechange": Event;\n "readystatechange": Event;\n "reset": Event;\n "scroll": UIEvent;\n "seeked": Event;\n "seeking": Event;\n "select": UIEvent;\n "selectionchange": Event;\n "selectstart": Event;\n "stalled": Event;\n "stop": Event;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "touchcancel": Event;\n "touchend": Event;\n "touchmove": Event;\n "touchstart": Event;\n "volumechange": Event;\n "waiting": Event;\n "webkitfullscreenchange": Event;\n "webkitfullscreenerror": Event;\n}\n\ninterface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent {\n /**\n * Sets or gets the URL for the current document.\n */\n readonly URL: string;\n /**\n * Gets the URL for the document, stripped of any character encoding.\n */\n readonly URLUnencoded: string;\n /**\n * Gets the object that has the focus when the parent document has focus.\n */\n readonly activeElement: Element;\n /**\n * Sets or gets the color of all active links in the document.\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\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 */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n */\n readonly applets: HTMLCollectionOf<HTMLAppletElement>;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n */\n bgColor: string;\n /**\n * Specifies the beginning and end of the document body.\n */\n body: HTMLElement;\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n */\n charset: string;\n /**\n * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n */\n readonly compatMode: string;\n cookie: string;\n readonly currentScript: HTMLScriptElement | SVGScriptElement | null;\n readonly defaultView: Window;\n /**\n * Sets or gets a value that indicates whether the document can be edited.\n */\n designMode: string;\n /**\n * Sets or retrieves a value that indicates the reading order of the object.\n */\n dir: string;\n /**\n * Gets an object representing the document type declaration associated with the current document.\n */\n readonly doctype: DocumentType;\n /**\n * Gets a reference to the root node of the document.\n */\n readonly documentElement: HTMLElement;\n /**\n * Sets or gets the security domain of the document.\n */\n domain: string;\n /**\n * Retrieves a collection of all embed objects in the document.\n */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n */\n fgColor: string;\n /**\n * Retrieves a collection, in source order, of all form objects in the document.\n */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n readonly fullscreenElement: Element | null;\n readonly fullscreenEnabled: boolean;\n readonly head: HTMLHeadElement;\n readonly hidden: boolean;\n /**\n * Retrieves a collection, in source order, of img objects in the document.\n */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /**\n * Gets the implementation object of the current document.\n */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n */\n readonly inputEncoding: string | null;\n /**\n * Gets the date that the page was last modified, if the page supplies one.\n */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n */\n linkColor: string;\n /**\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /**\n * Contains information about the current URL.\n */\n location: Location;\n msCSSOMElementFloatMetrics: boolean;\n msCapsLockWarningOff: boolean;\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\n onabort: ((this: Document, ev: UIEvent) => any) | null;\n /**\n * Fires when the object is set as the active element.\n * @param ev The event.\n */\n onactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires immediately before the object is set as the active element.\n * @param ev The event.\n */\n onbeforeactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires immediately before the activeElement is changed from the current object to another object in the parent document.\n * @param ev The event.\n */\n onbeforedeactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\n onblur: ((this: Document, 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: Document, ev: Event) => any) | null;\n oncanplaythrough: ((this: Document, 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: Document, 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: Document, ev: MouseEvent) => 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: Document, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\n ondblclick: ((this: Document, ev: MouseEvent) => any) | null;\n /**\n * Fires when the activeElement is changed from the current object to another object in the parent document.\n * @param ev The UI Event\n */\n ondeactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\n ondrag: ((this: Document, 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: Document, 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: Document, 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: Document, 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: Document, 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: Document, ev: DragEvent) => any) | null;\n ondrop: ((this: Document, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\n ondurationchange: ((this: Document, 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: Document, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\n onended: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\n onerror: ((this: Document, ev: ErrorEvent) => any) | null;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n */\n onfocus: ((this: Document, ev: FocusEvent) => any) | null;\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n oninput: ((this: Document, ev: Event) => any) | null;\n oninvalid: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\n onkeydown: ((this: Document, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n */\n onkeypress: ((this: Document, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\n onkeyup: ((this: Document, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\n onload: ((this: Document, 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: Document, 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: Document, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\n onloadstart: ((this: Document, ev: Event) => 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: Document, 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: Document, 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: Document, 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: Document, 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: Document, ev: MouseEvent) => any) | null;\n /**\n * Fires when the wheel button is rotated.\n * @param ev The mouse event\n */\n onmousewheel: ((this: Document, ev: WheelEvent) => any) | null;\n onmscontentzoom: ((this: Document, ev: Event) => any) | null;\n onmsgesturechange: ((this: Document, ev: Event) => any) | null;\n onmsgesturedoubletap: ((this: Document, ev: Event) => any) | null;\n onmsgestureend: ((this: Document, ev: Event) => any) | null;\n onmsgesturehold: ((this: Document, ev: Event) => any) | null;\n onmsgesturestart: ((this: Document, ev: Event) => any) | null;\n onmsgesturetap: ((this: Document, ev: Event) => any) | null;\n onmsinertiastart: ((this: Document, ev: Event) => any) | null;\n onmsmanipulationstatechanged: ((this: Document, ev: Event) => any) | null;\n onmspointercancel: ((this: Document, ev: Event) => any) | null;\n onmspointerdown: ((this: Document, ev: Event) => any) | null;\n onmspointerenter: ((this: Document, ev: Event) => any) | null;\n onmspointerleave: ((this: Document, ev: Event) => any) | null;\n onmspointermove: ((this: Document, ev: Event) => any) | null;\n onmspointerout: ((this: Document, ev: Event) => any) | null;\n onmspointerover: ((this: Document, ev: Event) => any) | null;\n onmspointerup: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.\n * @param ev The event.\n */\n onmssitemodejumplistitemremoved: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.\n * @param ev The event.\n */\n onmsthumbnailclick: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n */\n onpause: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\n onplay: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\n onplaying: ((this: Document, ev: Event) => any) | null;\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\n onprogress: ((this: Document, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\n onratechange: ((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 /**\n * Fires when the user resets a form.\n * @param ev The event.\n */\n onreset: ((this: Document, ev: Event) => 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: Document, ev: UIEvent) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\n onseeked: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\n onseeking: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n */\n onselect: ((this: Document, ev: UIEvent) => any) | null;\n /**\n * Fires when the selection state of a document changes.\n * @param ev The event.\n */\n onselectionchange: ((this: Document, ev: Event) => any) | null;\n onselectstart: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\n onstalled: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the Stop button or leaves the Web page.\n * @param ev The event.\n */\n onstop: ((this: Document, ev: Event) => any) | null;\n onsubmit: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\n onsuspend: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\n ontimeupdate: ((this: Document, ev: Event) => any) | null;\n ontouchcancel: ((this: Document, ev: Event) => any) | null;\n ontouchend: ((this: Document, ev: Event) => any) | null;\n ontouchmove: ((this: Document, ev: Event) => any) | null;\n ontouchstart: ((this: Document, ev: Event) => any) | null;\n onvisibilitychange: (this: Document, ev: Event) => any;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\n onvolumechange: ((this: Document, 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: Document, ev: Event) => any) | null;\n onwebkitfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onwebkitfullscreenerror: ((this: Document, ev: Event) => any) | null;\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n readonly pointerLockElement: Element;\n /**\n * Retrieves a value that indicates the current state of the object.\n */\n readonly readyState: string;\n /**\n * Gets the URL of the location that referred the user to the current page.\n */\n readonly referrer: string;\n /**\n * Gets the root svg element in the document hierarchy.\n */\n readonly rootElement: SVGSVGElement;\n /**\n * Retrieves a collection of all script objects in the document.\n */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n readonly scrollingElement: Element | null;\n /**\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 */\n readonly styleSheets: StyleSheetList;\n /**\n * Contains the title of the document.\n */\n title: string;\n readonly visibilityState: VisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n */\n vlinkColor: string;\n readonly webkitCurrentFullScreenElement: Element | null;\n readonly webkitFullscreenElement: Element | null;\n readonly webkitFullscreenEnabled: boolean;\n readonly webkitIsFullScreen: boolean;\n readonly xmlEncoding: string | null;\n xmlStandalone: boolean;\n /**\n * Gets or sets the version attribute specified in the declaration of an XML document.\n */\n xmlVersion: string | null;\n adoptNode<T extends Node>(source: T): T;\n captureEvents(): void;\n caretRangeFromPoint(x: number, y: number): Range;\n clear(): void;\n /**\n * Closes an output stream and forces the sent data to display.\n */\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(name: string): Attr;\n createAttributeNS(namespaceURI: string | null, qualifiedName: string): Attr;\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 /**\n * Creates a new document.\n */\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 createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string): Element;\n createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;\n createNSResolver(nodeResolver: Node): XPathNSResolver;\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 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n */\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 createTouch(view: Window, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;\n createTouchList(...touches: Touch[]): TouchList;\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 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;\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;\n evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;\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 */\n execCommand(commandId: string, showUI?: boolean, value?: any): boolean;\n /**\n * Displays help information for the given command identifier.\n * @param commandId Displays help information for the given command identifier.\n */\n execCommandShowHelp(commandId: string): boolean;\n exitFullscreen(): void;\n exitPointerLock(): void;\n /**\n * Causes the element to receive the focus and executes the code specified by the onfocus event.\n */\n /** @deprecated */\n focus(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID or NAME attribute.\n * @param elementId String that specifies the ID value. Case-insensitive.\n */\n getElementById(elementId: string): HTMLElement | null;\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>(tagname: K): NodeListOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(tagname: K): NodeListOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(tagname: string): NodeListOf<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(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;\n /**\n * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n */\n getSelection(): Selection;\n /**\n * Gets a value indicating whether the object currently has focus.\n */\n hasFocus(): boolean;\n importNode<T extends Node>(importedNode: T, deep: boolean): T;\n msElementsFromPoint(x: number, y: number): NodeListOf<Element>;\n msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;\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(url?: string, name?: string, features?: string, replace?: boolean): Document;\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 */\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 */\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 */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Retrieves the string associated with a command.\n * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.\n */\n queryCommandText(commandId: string): string;\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 releaseEvents(): void;\n webkitCancelFullScreen(): void;\n webkitExitFullscreen(): 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(...content: 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(...content: 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 DocumentEvent {\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "Event"): Event;\n createEvent(eventInterface: "Events"): Event;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;\n createEvent(eventInterface: "MSDCCEvent"): MSDCCEvent;\n createEvent(eventInterface: "MSDSHEvent"): MSDSHEvent;\n createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;\n createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;\n createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;\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: "OverflowEvent"): OverflowEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;\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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;\n createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;\n createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;\n createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;\n createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;\n createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "TextEvent"): TextEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;\n createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n}\n\ninterface DocumentFragment extends Node, ParentNode {\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n readonly activeElement: Element | null;\n readonly styleSheets: StyleSheetList;\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n getSelection(): Selection | null;\n}\n\ninterface DocumentType extends Node, ChildNode {\n readonly entities: NamedNodeMap;\n readonly internalSubset: string | null;\n readonly name: string;\n readonly notations: NamedNodeMap;\n readonly publicId: string;\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\ninterface DragEvent extends MouseEvent {\n readonly dataTransfer: DataTransfer;\n initDragEvent(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, dataTransferArg: DataTransfer): void;\n msConvertURL(file: File, targetType: string, targetURL?: string): void;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;\n};\n\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(): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: number;\n readonly MIN_EXT: number;\n}\n\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: number;\n readonly SRGB8_ALPHA8_EXT: number;\n readonly SRGB_ALPHA_EXT: number;\n readonly SRGB_EXT: number;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: number;\n}\n\ndeclare var EXT_texture_filter_anisotropic: {\n prototype: EXT_texture_filter_anisotropic;\n new(): EXT_texture_filter_anisotropic;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: number;\n};\n\ninterface ElementEventMap extends GlobalEventHandlersEventMap {\n "ariarequest": Event;\n "command": Event;\n "gotpointercapture": PointerEvent;\n "lostpointercapture": PointerEvent;\n "MSGestureChange": Event;\n "MSGestureDoubleTap": Event;\n "MSGestureEnd": Event;\n "MSGestureHold": Event;\n "MSGestureStart": Event;\n "MSGestureTap": Event;\n "MSGotPointerCapture": Event;\n "MSInertiaStart": Event;\n "MSLostPointerCapture": Event;\n "MSPointerCancel": Event;\n "MSPointerDown": Event;\n "MSPointerEnter": Event;\n "MSPointerLeave": Event;\n "MSPointerMove": Event;\n "MSPointerOut": Event;\n "MSPointerOver": Event;\n "MSPointerUp": Event;\n "touchcancel": Event;\n "touchend": Event;\n "touchmove": Event;\n "touchstart": Event;\n "webkitfullscreenchange": Event;\n "webkitfullscreenerror": Event;\n}\n\ninterface Element extends Node, GlobalEventHandlers, ElementTraversal, ParentNode, ChildNode {\n readonly assignedSlot: HTMLSlotElement | null;\n readonly attributes: NamedNodeMap;\n readonly classList: DOMTokenList;\n className: string;\n readonly clientHeight: number;\n readonly clientLeft: number;\n readonly clientTop: number;\n readonly clientWidth: number;\n id: string;\n innerHTML: string;\n msContentZoomFactor: number;\n readonly msRegionOverflow: string;\n onariarequest: ((this: Element, ev: Event) => any) | null;\n oncommand: ((this: Element, ev: Event) => any) | null;\n ongotpointercapture: ((this: Element, ev: PointerEvent) => any) | null;\n onlostpointercapture: ((this: Element, ev: PointerEvent) => any) | null;\n onmsgesturechange: ((this: Element, ev: Event) => any) | null;\n onmsgesturedoubletap: ((this: Element, ev: Event) => any) | null;\n onmsgestureend: ((this: Element, ev: Event) => any) | null;\n onmsgesturehold: ((this: Element, ev: Event) => any) | null;\n onmsgesturestart: ((this: Element, ev: Event) => any) | null;\n onmsgesturetap: ((this: Element, ev: Event) => any) | null;\n onmsgotpointercapture: ((this: Element, ev: Event) => any) | null;\n onmsinertiastart: ((this: Element, ev: Event) => any) | null;\n onmslostpointercapture: ((this: Element, ev: Event) => any) | null;\n onmspointercancel: ((this: Element, ev: Event) => any) | null;\n onmspointerdown: ((this: Element, ev: Event) => any) | null;\n onmspointerenter: ((this: Element, ev: Event) => any) | null;\n onmspointerleave: ((this: Element, ev: Event) => any) | null;\n onmspointermove: ((this: Element, ev: Event) => any) | null;\n onmspointerout: ((this: Element, ev: Event) => any) | null;\n onmspointerover: ((this: Element, ev: Event) => any) | null;\n onmspointerup: ((this: Element, ev: Event) => any) | null;\n ontouchcancel: ((this: Element, ev: Event) => any) | null;\n ontouchend: ((this: Element, ev: Event) => any) | null;\n ontouchmove: ((this: Element, ev: Event) => any) | null;\n ontouchstart: ((this: Element, ev: Event) => any) | null;\n onwebkitfullscreenchange: ((this: Element, ev: Event) => any) | null;\n onwebkitfullscreenerror: ((this: Element, ev: Event) => any) | null;\n outerHTML: string;\n readonly prefix: string | null;\n readonly scrollHeight: number;\n scrollLeft: number;\n scrollTop: number;\n readonly scrollWidth: number;\n readonly shadowRoot: ShadowRoot | null;\n slot: string;\n readonly tagName: string;\n attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;\n closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n closest(selector: string): Element | null;\n getAttribute(qualifiedName: string): string | null;\n getAttributeNS(namespaceURI: string, localName: string): string;\n getAttributeNode(name: string): Attr | null;\n getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;\n getBoundingClientRect(): ClientRect | DOMRect;\n getClientRects(): ClientRectList | DOMRectList;\n getElementsByClassName(classNames: string): NodeListOf<Element>;\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(name: K): NodeListOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(name: K): NodeListOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(name: string): NodeListOf<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(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;\n hasAttribute(name: string): boolean;\n hasAttributeNS(namespaceURI: string, localName: string): boolean;\n hasAttributes(): boolean;\n insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;\n insertAdjacentHTML(where: InsertPosition, html: string): void;\n insertAdjacentText(where: InsertPosition, text: string): void;\n matches(selectors: string): boolean;\n msGetRegionContent(): any;\n msGetUntransformedBounds(): ClientRect;\n msMatchesSelector(selectors: string): boolean;\n msReleasePointerCapture(pointerId: number): void;\n msSetPointerCapture(pointerId: number): void;\n msZoomTo(args: MsZoomToOptions): void;\n releasePointerCapture(pointerId: number): void;\n removeAttribute(qualifiedName: string): void;\n removeAttributeNS(namespaceURI: string, localName: string): void;\n removeAttributeNode(oldAttr: Attr): Attr;\n requestFullscreen(): 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 setAttribute(qualifiedName: string, value: string): void;\n setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;\n setAttributeNode(newAttr: Attr): Attr;\n setAttributeNodeNS(newAttr: Attr): Attr;\n setPointerCapture(pointerId: number): void;\n webkitMatchesSelector(selectors: string): boolean;\n webkitRequestFullScreen(): void;\n webkitRequestFullscreen(): void;\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 ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends: string;\n}\n\ninterface ElementTraversal {\n readonly childElementCount: number;\n readonly firstElementChild: Element | null;\n readonly lastElementChild: Element | null;\n readonly nextElementSibling: Element | null;\n readonly previousElementSibling: Element | null;\n}\n\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 initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(typeArg: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\ninterface Event {\n readonly bubbles: boolean;\n cancelBubble: boolean;\n readonly cancelable: boolean;\n readonly currentTarget: EventTarget | null;\n readonly defaultPrevented: boolean;\n readonly eventPhase: number;\n readonly isTrusted: boolean;\n returnValue: boolean;\n readonly scoped: boolean;\n readonly srcElement: Element | null;\n readonly target: EventTarget | null;\n readonly timeStamp: number;\n readonly type: string;\n deepPath(): EventTarget[];\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n preventDefault(): void;\n stopImmediatePropagation(): void;\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(typeArg: 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 EventListenerObject {\n handleEvent(evt: Event): void;\n}\n\ninterface EventSource extends EventTarget {\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n onerror: (evt: MessageEvent) => any;\n onmessage: (evt: MessageEvent) => any;\n onopen: (evt: MessageEvent) => any;\n readonly readyState: number;\n readonly url: string;\n readonly withCredentials: boolean;\n close(): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;\n};\n\ninterface EventSourceInit {\n readonly withCredentials: boolean;\n}\n\ninterface EventTarget {\n addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;\n dispatchEvent(evt: Event): boolean;\n removeEventListener(type: string, listener?: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\ninterface ExtensionScriptApis {\n extensionIdToShortId(extensionId: string): number;\n fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;\n genericSynchronousFunction(functionId: number, parameters?: string): string;\n genericWebRuntimeCallout(to: any, from: any, payload: string): void;\n getExtensionId(): string;\n registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n registerGenericPersistentCallbackHandler(callbackHandler: Function): void;\n registerWebRuntimeCallbackHandler(handler: Function): any;\n}\n\ndeclare var ExtensionScriptApis: {\n prototype: ExtensionScriptApis;\n new(): ExtensionScriptApis;\n};\n\ninterface External {\n}\n\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\ninterface File extends Blob {\n readonly lastModified: number;\n /** @deprecated */\n readonly lastModifiedDate: Date;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;\n};\n\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 FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent;\n "error": ProgressEvent;\n "load": ProgressEvent;\n "loadend": ProgressEvent;\n "loadstart": ProgressEvent;\n "progress": ProgressEvent;\n}\n\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;\n readonly readyState: number;\n readonly result: any;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, label?: 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 FocusEvent extends UIEvent {\n readonly relatedTarget: EventTarget;\n initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FocusNavigationEvent extends Event {\n readonly navigationReason: NavigationReason;\n readonly originHeight: number;\n readonly originLeft: number;\n readonly originTop: number;\n readonly originWidth: number;\n requestFocus(): void;\n}\n\ndeclare var FocusNavigationEvent: {\n prototype: FocusNavigationEvent;\n new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;\n};\n\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}\n\ndeclare var FormData: {\n prototype: FormData;\n new(): FormData;\n new(form: HTMLFormElement): FormData;\n};\n\ninterface GainNode extends AudioNode {\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(): GainNode;\n};\n\ninterface Gamepad {\n readonly axes: number[];\n readonly buttons: GamepadButton[];\n readonly connected: boolean;\n readonly displayId: number;\n readonly hand: GamepadHand;\n readonly hapticActuators: GamepadHapticActuator[];\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly pose: GamepadPose | null;\n readonly timestamp: number;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\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\ninterface GamepadEvent extends Event {\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent;\n};\n\ninterface GamepadHapticActuator {\n readonly type: GamepadHapticActuatorType;\n pulse(value: number, duration: number): Promise<boolean>;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GamepadPose {\n readonly angularAcceleration: Float32Array | null;\n readonly angularVelocity: Float32Array | null;\n readonly hasOrientation: boolean;\n readonly hasPosition: boolean;\n readonly linearAcceleration: Float32Array | null;\n readonly linearVelocity: Float32Array | null;\n readonly orientation: Float32Array | null;\n readonly position: Float32Array | null;\n}\n\ndeclare var GamepadPose: {\n prototype: GamepadPose;\n new(): GamepadPose;\n};\n\ninterface Geolocation {\n clearWatch(watchId: number): void;\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\ninterface GetSVGDocument {\n getSVGDocument(): Document;\n}\n\ninterface GlobalEventHandlersEventMap {\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 "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\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 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 GlobalFetch {\n fetch(input?: Request | string, init?: RequestInit): Promise<Response>;\n}\n\ninterface HTMLAllCollection {\n readonly length: number;\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n Methods: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n /** @deprecated */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n /** @deprecated */\n coords: string;\n download: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n readonly mimeType: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n name: string;\n readonly nameProp: string;\n readonly protocolLong: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n /** @deprecated */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n type: string;\n urn: 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\ninterface HTMLAppletElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n /** @deprecated */\n alt: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n */\n /** @deprecated */\n archive: string;\n /** @deprecated */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n */\n /** @deprecated */\n codeBase: string;\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n */\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n name: string;\n /** @deprecated */\n object: string;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, 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: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAppletElement: {\n prototype: HTMLAppletElement;\n new(): HTMLAppletElement;\n};\n\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n coords: string;\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n */\n /** @deprecated */\n noHref: boolean;\n rel: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\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\ninterface HTMLAreasCollection extends HTMLCollectionBase {\n}\n\ndeclare var HTMLAreasCollection: {\n prototype: HTMLAreasCollection;\n new(): HTMLAreasCollection;\n};\n\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\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 */\n /** @deprecated */\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\ninterface HTMLBaseElement extends HTMLElement {\n /**\n * Gets or sets the baseline URL on which relative links are based.\n */\n href: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\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 HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {\n /**\n * Sets or retrieves the current typeface family.\n */\n /** @deprecated */\n face: string;\n /**\n * Sets or retrieves the font size of the object.\n */\n /** @deprecated */\n size: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, 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: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseFontElement: {\n prototype: HTMLBaseFontElement;\n new(): HTMLBaseFontElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n "blur": FocusEvent;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "load": Event;\n "orientationchange": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n}\n\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n aLink: string;\n /** @deprecated */\n background: string;\n /** @deprecated */\n bgColor: string;\n bgProperties: string;\n /** @deprecated */\n link: string;\n /** @deprecated */\n noWrap: boolean;\n onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;\n onresize: ((this: HTMLBodyElement, ev: UIEvent) => 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\ninterface HTMLButtonElement extends HTMLElement {\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n */\n formMethod: string;\n /**\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 */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n */\n formTarget: string;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n status: any;\n /**\n * Gets the classification and default behavior of the button.\n */\n type: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the default or selected value of the control.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): 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\ninterface HTMLCanvasElement extends HTMLElement {\n /**\n * Gets or sets the height of a canvas element on a document.\n */\n height: number;\n /**\n * Gets or sets the width of a canvas element on a document.\n */\n width: number;\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", contextAttributes?: Canvas2DContextAttributes): CanvasRenderingContext2D | null;\n getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;\n getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;\n /**\n * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.\n */\n msToBlob(): Blob;\n toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: 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, ...args: 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\ninterface HTMLCollectionBase {\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n readonly length: number;\n /**\n * Retrieves an object from various collections.\n */\n item(index: number): Element;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /**\n * Retrieves a select object or an object from an options collection.\n */\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;\n namedItem(name: string): T;\n [index: number]: T;\n}\n\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\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\ninterface HTMLDataListElement extends HTMLElement {\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\ninterface HTMLDialogElement extends HTMLElement {\n open: boolean;\n returnValue: string;\n close(returnValue?: string): void;\n show(): void;\n showModal(): void;\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\ndeclare var HTMLDialogElement: {\n prototype: HTMLDialogElement;\n new(): HTMLDialogElement;\n};\n\ninterface HTMLDirectoryElement extends HTMLElement {\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\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\ninterface HTMLDivElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n */\n noWrap: boolean;\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\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\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap {\n "abort": UIEvent;\n "activate": Event;\n "beforeactivate": Event;\n "beforecopy": Event;\n "beforecut": Event;\n "beforedeactivate": Event;\n "beforepaste": Event;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "contextmenu": PointerEvent;\n "copy": ClipboardEvent;\n "cuechange": Event;\n "cut": ClipboardEvent;\n "dblclick": MouseEvent;\n "deactivate": Event;\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 "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 "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "mousewheel": WheelEvent;\n "MSContentZoom": Event;\n "MSManipulationStateChanged": Event;\n "paste": ClipboardEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "scroll": UIEvent;\n "seeked": Event;\n "seeking": Event;\n "select": UIEvent;\n "selectstart": Event;\n "stalled": Event;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "volumechange": Event;\n "waiting": Event;\n}\n\ninterface HTMLElement extends Element, ElementCSSInlineStyle {\n accessKey: string;\n contentEditable: string;\n readonly dataset: DOMStringMap;\n dir: string;\n draggable: boolean;\n hidden: boolean;\n hideFocus: boolean;\n innerText: string;\n readonly isContentEditable: boolean;\n lang: string;\n readonly offsetHeight: number;\n readonly offsetLeft: number;\n readonly offsetParent: Element;\n readonly offsetTop: number;\n readonly offsetWidth: number;\n onabort: ((this: HTMLElement, ev: UIEvent) => any) | null;\n onactivate: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforeactivate: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforecopy: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforecut: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforedeactivate: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforepaste: ((this: HTMLElement, ev: Event) => any) | null;\n onblur: ((this: HTMLElement, ev: FocusEvent) => any) | null;\n oncanplay: ((this: HTMLElement, ev: Event) => any) | null;\n oncanplaythrough: ((this: HTMLElement, ev: Event) => any) | null;\n onchange: ((this: HTMLElement, ev: Event) => any) | null;\n onclick: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n oncontextmenu: ((this: HTMLElement, ev: PointerEvent) => any) | null;\n oncopy: ((this: HTMLElement, ev: ClipboardEvent) => any) | null;\n oncuechange: ((this: HTMLElement, ev: Event) => any) | null;\n oncut: ((this: HTMLElement, ev: ClipboardEvent) => any) | null;\n ondblclick: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n ondeactivate: ((this: HTMLElement, ev: Event) => any) | null;\n ondrag: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragend: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragenter: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragleave: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragover: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragstart: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondrop: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondurationchange: ((this: HTMLElement, ev: Event) => any) | null;\n onemptied: ((this: HTMLElement, ev: Event) => any) | null;\n onended: ((this: HTMLElement, ev: Event) => any) | null;\n onerror: ((this: HTMLElement, ev: ErrorEvent) => any) | null;\n onfocus: ((this: HTMLElement, ev: FocusEvent) => any) | null;\n oninput: ((this: HTMLElement, ev: Event) => any) | null;\n oninvalid: ((this: HTMLElement, ev: Event) => any) | null;\n onkeydown: ((this: HTMLElement, ev: KeyboardEvent) => any) | null;\n onkeypress: ((this: HTMLElement, ev: KeyboardEvent) => any) | null;\n onkeyup: ((this: HTMLElement, ev: KeyboardEvent) => any) | null;\n onload: ((this: HTMLElement, ev: Event) => any) | null;\n onloadeddata: ((this: HTMLElement, ev: Event) => any) | null;\n onloadedmetadata: ((this: HTMLElement, ev: Event) => any) | null;\n onloadstart: ((this: HTMLElement, ev: Event) => any) | null;\n onmousedown: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmousemove: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseout: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseover: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseup: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmousewheel: ((this: HTMLElement, ev: WheelEvent) => any) | null;\n onmscontentzoom: ((this: HTMLElement, ev: Event) => any) | null;\n onmsmanipulationstatechanged: ((this: HTMLElement, ev: Event) => any) | null;\n onpaste: ((this: HTMLElement, ev: ClipboardEvent) => any) | null;\n onpause: ((this: HTMLElement, ev: Event) => any) | null;\n onplay: ((this: HTMLElement, ev: Event) => any) | null;\n onplaying: ((this: HTMLElement, ev: Event) => any) | null;\n onprogress: ((this: HTMLElement, ev: ProgressEvent) => any) | null;\n onratechange: ((this: HTMLElement, ev: Event) => any) | null;\n onreset: ((this: HTMLElement, ev: Event) => any) | null;\n onscroll: ((this: HTMLElement, ev: UIEvent) => any) | null;\n onseeked: ((this: HTMLElement, ev: Event) => any) | null;\n onseeking: ((this: HTMLElement, ev: Event) => any) | null;\n onselect: ((this: HTMLElement, ev: UIEvent) => any) | null;\n onselectstart: ((this: HTMLElement, ev: Event) => any) | null;\n onstalled: ((this: HTMLElement, ev: Event) => any) | null;\n onsubmit: ((this: HTMLElement, ev: Event) => any) | null;\n onsuspend: ((this: HTMLElement, ev: Event) => any) | null;\n ontimeupdate: ((this: HTMLElement, ev: Event) => any) | null;\n onvolumechange: ((this: HTMLElement, ev: Event) => any) | null;\n onwaiting: ((this: HTMLElement, ev: Event) => any) | null;\n outerText: string;\n spellcheck: boolean;\n tabIndex: number;\n title: string;\n animate(keyframes: AnimationKeyFrame | AnimationKeyFrame[], options: number | AnimationOptions): Animation;\n blur(): void;\n click(): void;\n dragDrop(): boolean;\n focus(): void;\n msGetInputContext(): MSInputMethodContext;\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\ninterface HTMLEmbedElement extends HTMLElement, GetSVGDocument {\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n hidden: any;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n /**\n * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n */\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Sets or retrieves the name of the object.\n */\n /** @deprecated */\n name: string;\n /**\n * Retrieves the palette used for the embedded document.\n */\n readonly palette: string;\n /**\n * Retrieves the URL of the plug-in used to view an embedded document.\n */\n readonly pluginspage: string;\n readonly readyState: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n src: string;\n /**\n * Sets or retrieves the height and width units of the embed object.\n */\n units: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\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\ninterface HTMLFieldSetElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n align: string;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n name: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): 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\ninterface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {\n /**\n * Sets or retrieves the current typeface family.\n */\n /** @deprecated */\n face: 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\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n namedItem(name: string): HTMLCollection | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\ninterface HTMLFormElement extends HTMLElement {\n /**\n * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.\n */\n acceptCharset: string;\n /**\n * Sets or retrieves the URL to which the form content is sent for processing.\n */\n action: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n */\n autocomplete: string;\n /**\n * Retrieves a collection, in source order, of all controls in a given form.\n */\n readonly elements: HTMLFormControlsCollection;\n /**\n * Sets or retrieves the MIME encoding for the form.\n */\n encoding: string;\n /**\n * Sets or retrieves the encoding type for the form.\n */\n enctype: string;\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n readonly length: number;\n /**\n * Sets or retrieves how to send the form data to the server.\n */\n method: string;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Designates a form that is not validated when submitted.\n */\n noValidate: boolean;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Retrieves a form object or an object from an elements collection.\n * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, 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(name?: any, index?: any): any;\n /**\n * Retrieves a form object or an object from an elements collection.\n */\n namedItem(name: string): any;\n reportValidity(): boolean;\n /**\n * Fires when the user resets a form.\n */\n reset(): void;\n /**\n * Fires when a FORM is about to be submitted.\n */\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 [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n prototype: HTMLFormElement;\n new(): HTMLFormElement;\n};\n\ninterface HTMLFrameElementEventMap extends HTMLElementEventMap {\n "load": Event;\n}\n\ninterface HTMLFrameElement extends HTMLElement, GetSVGDocument {\n /**\n * Specifies the properties of a border drawn around an object.\n */\n border: string;\n /**\n * Sets or retrieves the border color of the object.\n */\n borderColor: any;\n /**\n * Retrieves the document object of the page or frame.\n */\n /** @deprecated */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n */\n /** @deprecated */\n readonly contentWindow: Window | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n */\n /** @deprecated */\n frameBorder: string;\n /**\n * Sets or retrieves the amount of additional space between the frames.\n */\n frameSpacing: any;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string | number;\n /**\n * Sets or retrieves a URI to a long description of the object.\n */\n /** @deprecated */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n */\n /** @deprecated */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n */\n /** @deprecated */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n */\n /** @deprecated */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n */\n /** @deprecated */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n */\n /** @deprecated */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n /** @deprecated */\n src: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string | number;\n addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n "blur": FocusEvent;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "load": Event;\n "orientationchange": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n}\n\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /**\n * Sets or retrieves the frame widths of the object.\n */\n /** @deprecated */\n cols: string;\n name: string;\n onorientationchange: ((this: HTMLFrameSetElement, ev: Event) => any) | null;\n onresize: ((this: HTMLFrameSetElement, ev: UIEvent) => any) | null;\n /**\n * Sets or retrieves the frame heights of the object.\n */\n /** @deprecated */\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\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\ninterface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n */\n /** @deprecated */\n noShade: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\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\ninterface HTMLHeadElement extends HTMLElement {\n /** @deprecated */\n profile: string;\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\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n */\n /** @deprecated */\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\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current document.\n */\n /** @deprecated */\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 hash: string;\n host: string;\n hostname: string;\n href: string;\n origin: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n toString(): string;\n}\n\ninterface HTMLIFrameElementEventMap extends HTMLElementEventMap {\n "load": Event;\n}\n\ninterface HTMLIFrameElement extends HTMLElement, GetSVGDocument {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n allowFullscreen: boolean;\n allowPaymentRequest: boolean;\n /**\n * Retrieves the document object of the page or frame.\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n */\n readonly contentWindow: Window | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n */\n /** @deprecated */\n frameBorder: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n */\n /** @deprecated */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n */\n /** @deprecated */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n */\n /** @deprecated */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n */\n name: string;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n */\n /** @deprecated */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n src: string;\n /**\n * Sets or retrives the content of the page that is to contain.\n */\n srcdoc: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[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\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n */\n /** @deprecated */\n border: string;\n /**\n * Retrieves whether the object is fully loaded.\n */\n readonly complete: boolean;\n crossOrigin: string | null;\n readonly currentSrc: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n */\n /** @deprecated */\n hspace: number;\n /**\n * Sets or retrieves whether the image is a server-side image map.\n */\n isMap: boolean;\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n */\n longDesc: string;\n /** @deprecated */\n lowsrc: string;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Sets or retrieves the name of the object.\n */\n /** @deprecated */\n name: string;\n /**\n * The original height of the image resource before sizing.\n */\n readonly naturalHeight: number;\n /**\n * The original width of the image resource before sizing.\n */\n readonly naturalWidth: number;\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcset: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n */\n /** @deprecated */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n */\n width: number;\n readonly x: number;\n readonly y: number;\n msGetAsCastingSource(): any;\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\ninterface HTMLInputElement extends HTMLElement {\n /**\n * Sets or retrieves a comma-separated list of content types.\n */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n */\n autocomplete: string;\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n /**\n * Sets or retrieves the state of the check box or radio button.\n */\n checked: boolean;\n /**\n * Sets or retrieves the state of the check box or radio button.\n */\n defaultChecked: boolean;\n /**\n * Sets or retrieves the initial contents of the object.\n */\n defaultValue: string;\n disabled: boolean;\n /**\n * Returns a FileList object on a file type input object.\n */\n readonly files: FileList | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n */\n formMethod: string;\n /**\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 */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n */\n formTarget: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: number;\n indeterminate: boolean;\n /**\n * Specifies the ID of a pre-defined datalist of options for an input element.\n */\n readonly list: HTMLElement | null;\n /**\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 */\n max: string;\n /**\n * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n */\n maxLength: number;\n /**\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 */\n min: string;\n minLength: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Gets or sets a string containing a regular expression that the user\'s input must match.\n */\n pattern: string;\n /**\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 */\n placeholder: string;\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n selectionDirection: string | null;\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n selectionEnd: number | null;\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n selectionStart: number | null;\n size: number;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n /**\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 */\n step: string;\n /**\n * Returns the content type of the object.\n */\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 */\n /** @deprecated */\n useMap: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Returns the value of the data at the cursor\'s current position.\n */\n value: string;\n valueAsDate: any;\n /**\n * Returns the input field value as a number.\n */\n valueAsNumber: number;\n webkitdirectory: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n width: number;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Makes the selection equal to the current object.\n */\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 /**\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, end: number, 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\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /**\n * Sets or retrieves the value of a list item.\n */\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\ninterface HTMLLabelElement extends HTMLElement {\n readonly control: HTMLInputElement | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the object to which the given label object is assigned.\n */\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\ninterface HTMLLegendElement extends HTMLElement {\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n /** @deprecated */\n align: string;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\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\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n /** @deprecated */\n charset: string;\n crossOrigin: string | null;\n /** @deprecated */\n disabled: boolean;\n /**\n * Sets or retrieves a destination URL or an anchor point.\n */\n href: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n import?: Document;\n integrity: string;\n /**\n * Sets or retrieves the media type.\n */\n media: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n /** @deprecated */\n rev: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n /** @deprecated */\n target: string;\n /**\n * Sets or retrieves the MIME type of the object.\n */\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\ninterface HTMLMainElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMainElement, 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: HTMLMainElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMainElement: {\n prototype: HTMLMainElement;\n new(): HTMLMainElement;\n};\n\ninterface HTMLMapElement extends HTMLElement {\n /**\n * Retrieves a collection of the area objects defined for the given map object.\n */\n readonly areas: HTMLAreasCollection;\n /**\n * Sets or retrieves the name of the object.\n */\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\ninterface HTMLMarqueeElementEventMap extends HTMLElementEventMap {\n "bounce": Event;\n "finish": Event;\n "start": Event;\n}\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 onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n /** @deprecated */\n onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n /** @deprecated */\n onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\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 HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "msneedkey": Event;\n}\n\ninterface HTMLMediaElement extends HTMLElement {\n /**\n * Returns an AudioTrackList object with the audio tracks for a given video element.\n */\n readonly audioTracks: AudioTrackList;\n /**\n * Gets or sets a value that indicates whether to start playing the media automatically.\n */\n autoplay: boolean;\n /**\n * Gets a collection of buffered time ranges.\n */\n readonly buffered: TimeRanges;\n /**\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 */\n controls: boolean;\n crossOrigin: string | null;\n /**\n * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.\n */\n readonly currentSrc: string;\n /**\n * Gets or sets the current playback position, in seconds.\n */\n currentTime: number;\n defaultMuted: boolean;\n /**\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 */\n defaultPlaybackRate: number;\n /**\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 */\n readonly duration: number;\n /**\n * Gets information about whether the playback has ended or not.\n */\n readonly ended: boolean;\n /**\n * Returns an object representing the current error state of the audio or video element.\n */\n readonly error: MediaError | null;\n /**\n * Gets or sets a flag to specify whether playback should restart after it completes.\n */\n loop: boolean;\n readonly mediaKeys: MediaKeys | null;\n /**\n * Specifies the purpose of the audio or video media, such as background audio or alerts.\n */\n msAudioCategory: string;\n /**\n * Specifies the output device id that the audio will be sent to.\n */\n msAudioDeviceType: string;\n readonly msGraphicsTrustStatus: MSGraphicsTrust;\n /**\n * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.\n */\n /** @deprecated */\n readonly msKeys: MSMediaKeys;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n /**\n * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n */\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Specifies whether or not to enable low-latency playback on the media element.\n */\n msRealTime: boolean;\n /**\n * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.\n */\n muted: boolean;\n /**\n * Gets the current network activity for the element.\n */\n readonly networkState: number;\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n /** @deprecated */\n onmsneedkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /**\n * Gets a flag that specifies whether playback is paused.\n */\n readonly paused: boolean;\n /**\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 */\n playbackRate: number;\n /**\n * Gets TimeRanges for the current media resource that has been played.\n */\n readonly played: TimeRanges;\n /**\n * Gets or sets the current playback position, in seconds.\n */\n preload: string;\n readonly readyState: number;\n /**\n * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.\n */\n readonly seekable: TimeRanges;\n /**\n * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.\n */\n readonly seeking: boolean;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcObject: MediaStream | MediaSource | Blob | null;\n readonly textTracks: TextTrackList;\n readonly videoTracks: VideoTrackList;\n /**\n * Gets or sets the volume level for audio portions of the media element.\n */\n volume: number;\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /**\n * Returns a string that specifies whether the client can play a given media resource type.\n */\n canPlayType(type: string): CanPlayTypeResult;\n /**\n * Resets the audio or video object and loads a new media resource.\n */\n load(): void;\n /**\n * Clears all effects from the media pipeline.\n */\n msClearEffects(): void;\n msGetAsCastingSource(): any;\n /**\n * Inserts the specified audio effect into media pipeline.\n */\n msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;\n /** @deprecated */\n msSetMediaKeys(mediaKeys: MSMediaKeys): void;\n /**\n * Specifies the media protection manager for a given media pipeline.\n */\n msSetMediaProtectionManager(mediaProtectionManager?: any): void;\n /**\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 */\n pause(): void;\n /**\n * Loads and starts playback of a media resource.\n */\n play(): Promise<void>;\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 type: string;\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\ninterface HTMLMetaElement extends HTMLElement {\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n /** @deprecated */\n charset: string;\n /**\n * Gets or sets meta-information to associate with httpEquiv or name.\n */\n content: string;\n /**\n * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.\n */\n httpEquiv: string;\n /**\n * Sets or retrieves the value specified in the content attribute of the meta object.\n */\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 */\n /** @deprecated */\n scheme: string;\n /**\n * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.\n */\n /** @deprecated */\n url: 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\ninterface HTMLMeterElement extends HTMLElement {\n high: number;\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\ninterface HTMLModElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n */\n cite: string;\n /**\n * Sets or retrieves the date and time of a modification to the object.\n */\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\ninterface HTMLOListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /**\n * The starting number.\n */\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\ninterface HTMLObjectElement extends HTMLElement, GetSVGDocument {\n /**\n * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.\n */\n readonly BaseHref: string;\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 */\n /** @deprecated */\n archive: string;\n /** @deprecated */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n */\n /** @deprecated */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n */\n /** @deprecated */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n */\n /** @deprecated */\n codeType: string;\n /**\n * Retrieves the document object of the page or frame.\n */\n readonly contentDocument: Document | null;\n /**\n * Sets or retrieves the URL that references the data of the object.\n */\n data: string;\n /** @deprecated */\n declare: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n /**\n * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n */\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n readonly readyState: number;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n */\n /** @deprecated */\n standby: string;\n /**\n * Sets or retrieves the MIME type of the object.\n */\n type: string;\n typemustmatch: boolean;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n */\n useMap: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /** @deprecated */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): 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\ninterface HTMLOptGroupElement extends HTMLElement {\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n */\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\ninterface HTMLOptionElement extends HTMLElement {\n /**\n * Sets or retrieves the status of an option.\n */\n defaultSelected: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the ordinal position of an option in a list box.\n */\n readonly index: number;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n */\n label: string;\n /**\n * Sets or retrieves whether the option in the list box is the default item.\n */\n selected: boolean;\n /**\n * Sets or retrieves the text string specified by the option tag.\n */\n text: string;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n */\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\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n length: number;\n selectedIndex: number;\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOutputElement extends HTMLElement {\n defaultValue: string;\n readonly form: HTMLFormElement | null;\n readonly htmlFor: DOMTokenList;\n name: string;\n readonly type: string;\n readonly validationMessage: string;\n readonly validity: ValidityState;\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\ninterface HTMLParagraphElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n clear: 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\ninterface HTMLParamElement extends HTMLElement {\n /**\n * Sets or retrieves the name of an input parameter for an element.\n */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n */\n /** @deprecated */\n type: string;\n /**\n * Sets or retrieves the value of an input parameter for an element.\n */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n */\n /** @deprecated */\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\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\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 */\n /** @deprecated */\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\ninterface HTMLProgressElement extends HTMLElement {\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Defines the maximum, or "done" value for a progress element.\n */\n max: number;\n /**\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 */\n readonly position: number;\n /**\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 */\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\ninterface HTMLQuoteElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n */\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\ninterface HTMLScriptElement extends HTMLElement {\n async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n charset: string;\n crossOrigin: string | null;\n /**\n * Sets or retrieves the status of the script.\n */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n */\n /** @deprecated */\n event: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n */\n /** @deprecated */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n /**\n * Retrieves the URL to an external file that contains the source code or data.\n */\n src: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n /**\n * Sets or retrieves the MIME type for the associated scripting engine.\n */\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\ninterface HTMLSelectElement extends HTMLElement {\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n length: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n readonly options: HTMLOptionsCollection;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n /**\n * Sets or retrieves the index of the selected option in a select object.\n */\n selectedIndex: number;\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /**\n * Sets or retrieves the number of rows in the list box.\n */\n size: number;\n /**\n * Retrieves the type of select control based on the value of the MULTIPLE attribute.\n */\n readonly type: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\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 /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\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(name?: any, index?: any): Element | 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): any;\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(index?: number): 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 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: string]: any;\n}\n\ndeclare var HTMLSelectElement: {\n prototype: HTMLSelectElement;\n new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n name: string;\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\ninterface HTMLSourceElement extends HTMLElement {\n /**\n * Gets or sets the intended media type of the media source.\n */\n media: string;\n /** @deprecated */\n msKeySystem: string;\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcset: string;\n /**\n * Gets or sets the MIME type of a media resource.\n */\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\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\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /** @deprecated */\n disabled: boolean;\n /**\n * Sets or retrieves the media type.\n */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\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\ninterface HTMLSummaryElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSummaryElement, 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: HTMLSummaryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSummaryElement: {\n prototype: HTMLSummaryElement;\n new(): HTMLSummaryElement;\n};\n\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the caption or legend.\n */\n /** @deprecated */\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\ninterface HTMLTableCellElement extends HTMLElement {\n /**\n * Sets or retrieves abbreviated text for the object.\n */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n */\n /** @deprecated */\n axis: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Retrieves the position of the object in the cells collection of a row.\n */\n readonly cellIndex: number;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number columns in the table that the object should span.\n */\n colSpan: number;\n /**\n * Sets or retrieves a list of header cells that provide information for the object.\n */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n */\n /** @deprecated */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n */\n /** @deprecated */\n noWrap: boolean;\n /**\n * Sets or retrieves how many rows in a table the cell should span.\n */\n rowSpan: number;\n /**\n * Sets or retrieves the group of cells in a table to which the object\'s information applies.\n */\n scope: string;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\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\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the object relative to the display or table.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number of columns in the group.\n */\n span: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\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\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\ndeclare var HTMLTableDataCellElement: {\n prototype: HTMLTableDataCellElement;\n new(): HTMLTableDataCellElement;\n};\n\ninterface HTMLTableElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n */\n /** @deprecated */\n border: string;\n /**\n * Retrieves the caption object of a table.\n */\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 */\n /** @deprecated */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n */\n /** @deprecated */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n */\n /** @deprecated */\n frame: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n */\n /** @deprecated */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n */\n /** @deprecated */\n summary: string;\n /**\n * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.\n */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /**\n * Retrieves the tFoot object of the table.\n */\n tFoot: HTMLTableSectionElement | null;\n /**\n * Retrieves the tHead object of the table.\n */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\n width: string;\n /**\n * Creates an empty caption element in the table.\n */\n createCaption(): HTMLTableCaptionElement;\n /**\n * Creates an empty tBody element in the table.\n */\n createTBody(): HTMLTableSectionElement;\n /**\n * Creates an empty tFoot element in the table.\n */\n createTFoot(): HTMLTableSectionElement;\n /**\n * Returns the tHead element object if successful, or null otherwise.\n */\n createTHead(): HTMLTableSectionElement;\n /**\n * Deletes the caption element and its contents from the table.\n */\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 /**\n * Deletes the tFoot element and its contents from the table.\n */\n deleteTFoot(): void;\n /**\n * Deletes the tHead element and its contents from the table.\n */\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\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n scope: string;\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\ndeclare var HTMLTableHeaderCellElement: {\n prototype: HTMLTableHeaderCellElement;\n new(): HTMLTableHeaderCellElement;\n};\n\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Retrieves a collection of all cells in the table row.\n */\n readonly cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Retrieves the position of the object in the rows collection for the table.\n */\n readonly rowIndex: number;\n /**\n * Retrieves the position of the object in the collection.\n */\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): HTMLTableDataCellElement;\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\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\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\ninterface HTMLTemplateElement extends HTMLElement {\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\ninterface HTMLTextAreaElement extends HTMLElement {\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n cols: number;\n /**\n * Sets or retrieves the initial contents of the object.\n */\n defaultValue: string;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n */\n maxLength: number;\n minLength: number;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\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 */\n placeholder: string;\n /**\n * Sets or retrieves the value indicated whether the content of the object is read-only.\n */\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n rows: number;\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n selectionEnd: number;\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n selectionStart: number;\n /**\n * Retrieves the type of control.\n */\n readonly type: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Retrieves or sets the text in the entry field of the textArea element.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Sets or retrieves how to handle wordwrapping in the object.\n */\n wrap: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Highlights the input area of a form element.\n */\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 /**\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, end: number, 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\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\ninterface HTMLTitleElement extends HTMLElement {\n /**\n * Retrieves or sets the text of the object as a string.\n */\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\ninterface HTMLTrackElement extends HTMLElement {\n default: boolean;\n kind: string;\n label: string;\n readonly readyState: number;\n src: string;\n srclang: string;\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\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\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 "MSVideoFormatChanged": Event;\n "MSVideoFrameStepCompleted": Event;\n "MSVideoOptimalLayoutChanged": Event;\n}\n\ninterface HTMLVideoElement extends HTMLMediaElement {\n /**\n * Gets or sets the height of the video element.\n */\n height: number;\n msHorizontalMirror: boolean;\n readonly msIsLayoutOptimalForPlayback: boolean;\n readonly msIsStereo3D: boolean;\n msStereo3DPackingMode: string;\n msStereo3DRenderMode: string;\n msZoom: boolean;\n onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /**\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 */\n poster: string;\n /**\n * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.\n */\n readonly videoHeight: number;\n /**\n * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.\n */\n readonly videoWidth: number;\n readonly webkitDisplayingFullscreen: boolean;\n readonly webkitSupportsFullscreen: boolean;\n /**\n * Gets or sets the width of the video element.\n */\n width: number;\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n msFrameStep(forward: boolean): void;\n msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;\n msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;\n webkitEnterFullScreen(): void;\n webkitEnterFullscreen(): void;\n webkitExitFullScreen(): void;\n webkitExitFullscreen(): void;\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\ninterface HTMLegendElement {\n readonly form: HTMLFormElement | null;\n}\n\ndeclare var HTMLegendElement: {\n prototype: HTMLegendElement;\n new(): HTMLegendElement;\n};\n\ninterface HashChangeEvent extends Event {\n readonly newURL: string;\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n forEach(callback: Function, thisArg?: any): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\ninterface History {\n readonly length: number;\n scrollRestoration: ScrollRestoration;\n readonly state: any;\n back(distance?: any): void;\n forward(distance?: any): void;\n go(delta?: any): void;\n pushState(data: any, title?: string, url?: string | null): void;\n replaceState(data: any, title?: string, url?: string | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\ninterface HkdfCtrParams extends Algorithm {\n context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n hash: string | Algorithm;\n label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface IDBArrayKey extends Array<number | string | Date | IDBArrayKey> {\n}\n\ninterface IDBCursor {\n readonly direction: IDBCursorDirection;\n readonly key: IDBKeyRange | number | string | Date | IDBArrayKey;\n readonly primaryKey: any;\n readonly source: IDBObjectStore | IDBIndex;\n advance(count: number): void;\n continue(key?: IDBKeyRange | number | string | Date | IDBArrayKey): void;\n delete(): IDBRequest;\n update(value: any): IDBRequest;\n readonly NEXT: string;\n readonly NEXT_NO_DUPLICATE: string;\n readonly PREV: string;\n readonly PREV_NO_DUPLICATE: string;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n readonly NEXT: string;\n readonly NEXT_NO_DUPLICATE: string;\n readonly PREV: string;\n readonly PREV_NO_DUPLICATE: string;\n};\n\ninterface IDBCursorWithValue extends IDBCursor {\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "error": Event;\n}\n\ninterface IDBDatabase extends EventTarget {\n readonly name: string;\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: Event) => any) | null;\n readonly version: number;\n close(): void;\n createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;\n deleteObjectStore(name: string): void;\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\ninterface IDBEnvironment {\n readonly indexedDB: IDBFactory;\n}\n\ninterface IDBFactory {\n cmp(first: any, second: any): number;\n deleteDatabase(name: string): IDBOpenDBRequest;\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\ninterface IDBIndex {\n readonly keyPath: string | string[];\n multiEntry: boolean;\n readonly name: string;\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n count(key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n get(key: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n getKey(key: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n openCursor(range?: IDBKeyRange | number | string | Date | IDBArrayKey, direction?: IDBCursorDirection): IDBRequest;\n openKeyCursor(range?: IDBKeyRange | number | string | Date | IDBArrayKey, direction?: IDBCursorDirection): IDBRequest;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\ninterface IDBKeyRange {\n readonly lower: any;\n readonly lowerOpen: boolean;\n readonly upper: any;\n readonly upperOpen: boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n only(value: any): IDBKeyRange;\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\ninterface IDBObjectStore {\n autoIncrement: boolean;\n readonly indexNames: DOMStringList;\n readonly keyPath: string | string[] | null;\n readonly name: string;\n readonly transaction: IDBTransaction;\n add(value: any, key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n clear(): IDBRequest;\n count(key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex;\n delete(key: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n deleteIndex(indexName: string): void;\n get(key: any): IDBRequest;\n index(name: string): IDBIndex;\n openCursor(range?: IDBKeyRange | number | string | Date | IDBArrayKey, direction?: IDBCursorDirection): IDBRequest;\n put(value: any, key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\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\ninterface IDBOpenDBRequest extends IDBRequest {\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\ninterface IDBRequest extends EventTarget {\n readonly error: DOMException;\n onerror: ((this: IDBRequest, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest, ev: Event) => any) | null;\n readonly readyState: IDBRequestReadyState;\n readonly result: any;\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n readonly transaction: IDBTransaction;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest, 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, 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 readonly db: IDBDatabase;\n readonly error: DOMException;\n readonly mode: IDBTransactionMode;\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 abort(): void;\n objectStore(name: string): IDBObjectStore;\n readonly READ_ONLY: string;\n readonly READ_WRITE: string;\n readonly VERSION_CHANGE: string;\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 readonly READ_ONLY: string;\n readonly READ_WRITE: string;\n readonly VERSION_CHANGE: string;\n};\n\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(): IDBVersionChangeEvent;\n};\n\ninterface IIRFilterNode extends AudioNode {\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(): IIRFilterNode;\n};\n\ninterface ImageBitmap {\n readonly height: number;\n readonly width: number;\n close(): void;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: "none" | "default";\n imageOrientation?: "none" | "flipY";\n premultiplyAlpha?: "none" | "premultiply" | "default";\n resizeHeight?: number;\n resizeQuality?: "pixelated" | "low" | "medium" | "high";\n resizeWidth?: number;\n}\n\ninterface ImageData {\n readonly data: Uint8ClampedArray;\n readonly height: number;\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(width: number, height: number): ImageData;\n new(array: Uint8ClampedArray, width: number, height: number): ImageData;\n};\n\ninterface IntersectionObserver {\n readonly root: Element | null;\n readonly rootMargin: string;\n readonly thresholds: 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\ninterface IntersectionObserverEntry {\n readonly boundingClientRect: ClientRect | DOMRect;\n readonly intersectionRatio: number;\n readonly intersectionRect: ClientRect | DOMRect;\n readonly isIntersecting: boolean;\n readonly rootBounds: ClientRect | DOMRect;\n readonly target: Element;\n readonly time: number;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KeyboardEvent extends UIEvent {\n readonly altKey: boolean;\n /** @deprecated */\n char: string;\n /** @deprecated */\n readonly charCode: number;\n readonly code: string;\n readonly ctrlKey: 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 /** @deprecated */\n readonly which: number;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;\n readonly DOM_KEY_LOCATION_JOYSTICK: number;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_MOBILE: 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(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_JOYSTICK: number;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_MOBILE: 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 LinkStyle {\n readonly sheet: StyleSheet | null;\n}\n\ninterface ListeningStateChangedEvent extends Event {\n readonly label: string;\n readonly state: ListeningState;\n}\n\ndeclare var ListeningStateChangedEvent: {\n prototype: ListeningStateChangedEvent;\n new(): ListeningStateChangedEvent;\n};\n\ninterface Location {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n readonly origin: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n assign(url: string): void;\n reload(forcedReload?: boolean): void;\n replace(url: string): void;\n toString(): string;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\ninterface MSAssertion {\n readonly id: string;\n readonly type: MSCredentialType;\n}\n\ndeclare var MSAssertion: {\n prototype: MSAssertion;\n new(): MSAssertion;\n};\n\ninterface MSBlobBuilder {\n append(data: any, endings?: string): void;\n getBlob(contentType?: string): Blob;\n}\n\ndeclare var MSBlobBuilder: {\n prototype: MSBlobBuilder;\n new(): MSBlobBuilder;\n};\n\ninterface MSCredentials {\n getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): Promise<MSAssertion>;\n makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): Promise<MSAssertion>;\n}\n\ndeclare var MSCredentials: {\n prototype: MSCredentials;\n new(): MSCredentials;\n};\n\ninterface MSDCCEvent extends Event {\n readonly maxFr: number;\n readonly maxFs: number;\n}\n\ndeclare var MSDCCEvent: {\n prototype: MSDCCEvent;\n new(type: string, eventInitDict: MSDCCEventInit): MSDCCEvent;\n};\n\ninterface MSDSHEvent extends Event {\n readonly sources: number[];\n readonly timestamp: number;\n}\n\ndeclare var MSDSHEvent: {\n prototype: MSDSHEvent;\n new(type: string, eventInitDict: MSDSHEventInit): MSDSHEvent;\n};\n\ninterface MSFIDOCredentialAssertion extends MSAssertion {\n readonly algorithm: string | Algorithm;\n readonly attestation: any;\n readonly publicKey: string;\n readonly transportHints: MSTransportType[];\n}\n\ndeclare var MSFIDOCredentialAssertion: {\n prototype: MSFIDOCredentialAssertion;\n new(): MSFIDOCredentialAssertion;\n};\n\ninterface MSFIDOSignature {\n readonly authnrData: string;\n readonly clientData: string;\n readonly signature: string;\n}\n\ndeclare var MSFIDOSignature: {\n prototype: MSFIDOSignature;\n new(): MSFIDOSignature;\n};\n\ninterface MSFIDOSignatureAssertion extends MSAssertion {\n readonly signature: MSFIDOSignature;\n}\n\ndeclare var MSFIDOSignatureAssertion: {\n prototype: MSFIDOSignatureAssertion;\n new(): MSFIDOSignatureAssertion;\n};\n\ninterface MSFileSaver {\n msSaveBlob(blob: any, defaultName?: string): boolean;\n msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;\n}\n\ninterface MSGesture {\n target: Element;\n addPointer(pointerId: number): void;\n stop(): void;\n}\n\ndeclare var MSGesture: {\n prototype: MSGesture;\n new(): MSGesture;\n};\n\ninterface MSGestureEvent extends UIEvent {\n readonly clientX: number;\n readonly clientY: number;\n readonly expansion: number;\n readonly gestureObject: any;\n readonly hwTimestamp: number;\n readonly offsetX: number;\n readonly offsetY: number;\n readonly rotation: number;\n readonly scale: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly translationX: number;\n readonly translationY: number;\n readonly velocityAngular: number;\n readonly velocityExpansion: number;\n readonly velocityX: number;\n readonly velocityY: number;\n initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;\n readonly MSGESTURE_FLAG_BEGIN: number;\n readonly MSGESTURE_FLAG_CANCEL: number;\n readonly MSGESTURE_FLAG_END: number;\n readonly MSGESTURE_FLAG_INERTIA: number;\n readonly MSGESTURE_FLAG_NONE: number;\n}\n\ndeclare var MSGestureEvent: {\n prototype: MSGestureEvent;\n new(): MSGestureEvent;\n readonly MSGESTURE_FLAG_BEGIN: number;\n readonly MSGESTURE_FLAG_CANCEL: number;\n readonly MSGESTURE_FLAG_END: number;\n readonly MSGESTURE_FLAG_INERTIA: number;\n readonly MSGESTURE_FLAG_NONE: number;\n};\n\ninterface MSGraphicsTrust {\n readonly constrictionActive: boolean;\n readonly status: string;\n}\n\ndeclare var MSGraphicsTrust: {\n prototype: MSGraphicsTrust;\n new(): MSGraphicsTrust;\n};\n\ninterface MSInputMethodContextEventMap {\n "MSCandidateWindowHide": Event;\n "MSCandidateWindowShow": Event;\n "MSCandidateWindowUpdate": Event;\n}\n\ninterface MSInputMethodContext extends EventTarget {\n readonly compositionEndOffset: number;\n readonly compositionStartOffset: number;\n oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null;\n oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null;\n oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null;\n readonly target: HTMLElement;\n getCandidateWindowClientRect(): ClientRect;\n getCompositionAlternatives(): string[];\n hasComposition(): boolean;\n isCandidateWindowVisible(): boolean;\n addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MSInputMethodContext: {\n prototype: MSInputMethodContext;\n new(): MSInputMethodContext;\n};\n\ninterface MSMediaKeyError {\n readonly code: number;\n readonly systemCode: number;\n readonly MS_MEDIA_KEYERR_CLIENT: number;\n readonly MS_MEDIA_KEYERR_DOMAIN: number;\n readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;\n readonly MS_MEDIA_KEYERR_OUTPUT: number;\n readonly MS_MEDIA_KEYERR_SERVICE: number;\n readonly MS_MEDIA_KEYERR_UNKNOWN: number;\n}\n\ndeclare var MSMediaKeyError: {\n prototype: MSMediaKeyError;\n new(): MSMediaKeyError;\n readonly MS_MEDIA_KEYERR_CLIENT: number;\n readonly MS_MEDIA_KEYERR_DOMAIN: number;\n readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;\n readonly MS_MEDIA_KEYERR_OUTPUT: number;\n readonly MS_MEDIA_KEYERR_SERVICE: number;\n readonly MS_MEDIA_KEYERR_UNKNOWN: number;\n};\n\ninterface MSMediaKeyMessageEvent extends Event {\n readonly destinationURL: string | null;\n readonly message: Uint8Array;\n}\n\ndeclare var MSMediaKeyMessageEvent: {\n prototype: MSMediaKeyMessageEvent;\n new(): MSMediaKeyMessageEvent;\n};\n\ninterface MSMediaKeyNeededEvent extends Event {\n readonly initData: Uint8Array | null;\n}\n\ndeclare var MSMediaKeyNeededEvent: {\n prototype: MSMediaKeyNeededEvent;\n new(): MSMediaKeyNeededEvent;\n};\n\ninterface MSMediaKeySession extends EventTarget {\n readonly error: MSMediaKeyError | null;\n readonly keySystem: string;\n readonly sessionId: string;\n close(): void;\n update(key: Uint8Array): void;\n}\n\ndeclare var MSMediaKeySession: {\n prototype: MSMediaKeySession;\n new(): MSMediaKeySession;\n};\n\ninterface MSMediaKeys {\n readonly keySystem: string;\n createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession;\n}\n\ndeclare var MSMediaKeys: {\n prototype: MSMediaKeys;\n new(keySystem: string): MSMediaKeys;\n isTypeSupported(keySystem: string, type?: string | null): boolean;\n isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string;\n};\n\ninterface MSNavigatorDoNotTrack {\n confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;\n confirmWebWideTrackingException(args: ExceptionInformation): boolean;\n removeSiteSpecificTrackingException(args: ExceptionInformation): void;\n removeWebWideTrackingException(args: ExceptionInformation): void;\n storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;\n storeWebWideTrackingException(args: StoreExceptionsInformation): void;\n}\n\ninterface MSPointerEvent extends MouseEvent {\n readonly currentPoint: any;\n readonly height: number;\n readonly hwTimestamp: number;\n readonly intermediatePoints: any;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: any;\n readonly pressure: number;\n readonly rotation: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly width: number;\n getCurrentPoint(element: Element): void;\n getIntermediatePoints(element: Element): void;\n initPointerEvent(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, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;\n}\n\ndeclare var MSPointerEvent: {\n prototype: MSPointerEvent;\n new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;\n};\n\ninterface MSStream {\n readonly type: string;\n msClose(): void;\n msDetachStream(): any;\n}\n\ndeclare var MSStream: {\n prototype: MSStream;\n new(): MSStream;\n};\n\ninterface MSStreamReaderEventMap {\n "abort": UIEvent;\n "error": ErrorEvent;\n "load": Event;\n "loadend": ProgressEvent;\n "loadstart": Event;\n "progress": ProgressEvent;\n}\n\ninterface MSStreamReader extends EventTarget {\n readonly error: DOMError;\n onabort: ((this: MSStreamReader, ev: UIEvent) => any) | null;\n onerror: ((this: MSStreamReader, ev: ErrorEvent) => any) | null;\n onload: ((this: MSStreamReader, ev: Event) => any) | null;\n onloadend: ((this: MSStreamReader, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: MSStreamReader, ev: Event) => any) | null;\n onprogress: ((this: MSStreamReader, ev: ProgressEvent) => any) | null;\n readonly readyState: number;\n readonly result: any;\n abort(): void;\n readAsArrayBuffer(stream: MSStream, size?: number): void;\n readAsBinaryString(stream: MSStream, size?: number): void;\n readAsBlob(stream: MSStream, size?: number): void;\n readAsDataURL(stream: MSStream, size?: number): void;\n readAsText(stream: MSStream, encoding?: string, size?: number): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener<K extends keyof MSStreamReaderEventMap>(type: K, listener: (this: MSStreamReader, ev: MSStreamReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MSStreamReaderEventMap>(type: K, listener: (this: MSStreamReader, ev: MSStreamReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MSStreamReader: {\n prototype: MSStreamReader;\n new(): MSStreamReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\ninterface MediaDeviceInfo {\n readonly deviceId: string;\n readonly groupId: string;\n readonly kind: MediaDeviceKind;\n readonly label: string;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\ninterface MediaDevices extends EventTarget {\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\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\ninterface MediaElementAudioSourceNode extends AudioNode {\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(): 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\ninterface MediaError {\n readonly code: number;\n readonly msExtendedCode: number;\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 readonly MS_MEDIA_ERR_ENCRYPTED: 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 readonly MS_MEDIA_ERR_ENCRYPTED: number;\n};\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 MediaKeySession extends EventTarget {\n readonly closed: Promise<void>;\n readonly expiration: number;\n readonly keyStatuses: MediaKeyStatusMap;\n readonly sessionId: string;\n close(): Promise<void>;\n generateRequest(initDataType: string, initData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n load(sessionId: string): Promise<boolean>;\n remove(): Promise<void>;\n update(response: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n}\n\ndeclare var MediaKeySession: {\n prototype: MediaKeySession;\n new(): MediaKeySession;\n};\n\ninterface MediaKeyStatusMap {\n readonly size: number;\n forEach(callback: Function, thisArg?: any): void;\n get(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): MediaKeyStatus;\n has(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): boolean;\n}\n\ndeclare var MediaKeyStatusMap: {\n prototype: MediaKeyStatusMap;\n new(): MediaKeyStatusMap;\n};\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\ninterface MediaKeys {\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n setServerCertificate(serverCertificate: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\ninterface MediaList {\n readonly length: number;\n mediaText: string;\n appendMedium(medium: string): void;\n deleteMedium(medium: string): void;\n item(index: number): string | null;\n toString(): number;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\ninterface MediaQueryList {\n readonly matches: boolean;\n readonly media: string;\n addListener(listener: MediaQueryListListener): void;\n removeListener(listener: MediaQueryListListener): void;\n}\n\ndeclare var MediaQueryList: {\n prototype: MediaQueryList;\n new(): MediaQueryList;\n};\n\ninterface MediaSource extends EventTarget {\n readonly activeSourceBuffers: SourceBufferList;\n duration: number;\n readonly readyState: string;\n readonly sourceBuffers: SourceBufferList;\n addSourceBuffer(type: string): SourceBuffer;\n endOfStream(error?: number): void;\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n}\n\ndeclare var MediaSource: {\n prototype: MediaSource;\n new(): MediaSource;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "active": Event;\n "addtrack": MediaStreamTrackEvent;\n "inactive": Event;\n "removetrack": MediaStreamTrackEvent;\n}\n\ninterface MediaStream extends EventTarget {\n readonly active: boolean;\n readonly id: string;\n onactive: ((this: MediaStream, ev: Event) => any) | null;\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n oninactive: ((this: MediaStream, ev: Event) => 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 stop(): 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 MediaStreamAudioSourceNode extends AudioNode {\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamError {\n readonly constraintName: string | null;\n readonly message: string | null;\n readonly name: string;\n}\n\ndeclare var MediaStreamError: {\n prototype: MediaStreamError;\n new(): MediaStreamError;\n};\n\ninterface MediaStreamErrorEvent extends Event {\n readonly error: MediaStreamError | null;\n}\n\ndeclare var MediaStreamErrorEvent: {\n prototype: MediaStreamErrorEvent;\n new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;\n};\n\ninterface MediaStreamEvent extends Event {\n readonly stream: MediaStream | null;\n}\n\ndeclare var MediaStreamEvent: {\n prototype: MediaStreamEvent;\n new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": MediaStreamErrorEvent;\n "mute": Event;\n "overconstrained": MediaStreamErrorEvent;\n "unmute": Event;\n}\n\ninterface MediaStreamTrack extends EventTarget {\n enabled: boolean;\n readonly id: string;\n readonly kind: string;\n readonly label: string;\n readonly muted: boolean;\n onended: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null;\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onoverconstrained: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null;\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n readonly readonly: boolean;\n readonly readyState: MediaStreamTrackState;\n readonly remote: boolean;\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\ninterface MediaStreamTrackEvent extends Event {\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(typeArg: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\ninterface MessageChannel {\n readonly port1: MessagePort;\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\ninterface MessageEvent extends Event {\n readonly data: any;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort>;\n readonly source: Window | null;\n initMessageEvent(type: string, bubbles: boolean, cancelable: boolean, data: any, origin: string, lastEventId: string, source: Window): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new(type: string, eventInitDict?: MessageEventInit): MessageEvent;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n}\n\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n close(): void;\n postMessage(message?: any, transfer?: any[]): void;\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 MimeType {\n readonly description: string;\n readonly enabledPlugin: Plugin;\n readonly suffixes: string;\n readonly type: string;\n}\n\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\ninterface MimeTypeArray {\n readonly length: number;\n item(index: number): Plugin;\n namedItem(type: string): Plugin;\n [index: number]: Plugin;\n}\n\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\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 /** @deprecated */\n readonly fromElement: Element;\n readonly layerX: number;\n readonly layerY: number;\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;\n readonly screenX: number;\n readonly screenY: number;\n readonly shiftKey: boolean;\n /** @deprecated */\n readonly toElement: Element;\n /** @deprecated */\n readonly which: number;\n readonly x: number;\n readonly y: number;\n getModifierState(keyArg: string): boolean;\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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\ninterface MutationEvent extends Event {\n readonly attrChange: number;\n readonly attrName: string;\n readonly newValue: string;\n readonly prevValue: string;\n readonly relatedNode: Node;\n initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n}\n\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n};\n\ninterface MutationObserver {\n disconnect(): void;\n observe(target: Node, options: MutationObserverInit): void;\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\ninterface MutationRecord {\n readonly addedNodes: NodeList;\n readonly attributeName: string | null;\n readonly attributeNamespace: string | null;\n readonly nextSibling: Node | null;\n readonly oldValue: string | null;\n readonly previousSibling: Node | null;\n readonly removedNodes: NodeList;\n readonly target: Node;\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\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\ninterface Navigator extends NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia, NavigatorLanguage {\n readonly activeVRDisplays: ReadonlyArray<VRDisplay>;\n readonly authentication: WebAuthentication;\n readonly cookieEnabled: boolean;\n readonly doNotTrack: string | null;\n gamepadInputEmulation: GamepadInputEmulationType;\n readonly geolocation: Geolocation;\n readonly maxTouchPoints: number;\n readonly mimeTypes: MimeTypeArray;\n readonly msManipulationViewsEnabled: boolean;\n readonly msMaxTouchPoints: number;\n readonly msPointerEnabled: boolean;\n readonly plugins: PluginArray;\n readonly pointerEnabled: boolean;\n readonly serviceWorker: ServiceWorkerContainer;\n readonly webdriver: boolean;\n getGamepads(): (Gamepad | null)[];\n getVRDisplays(): Promise<VRDisplay[]>;\n javaEnabled(): boolean;\n msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n vibrate(pattern: number | number[]): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorBeacon {\n sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n}\n\ninterface NavigatorID {\n readonly appCodeName: string;\n readonly appName: string;\n readonly appVersion: string;\n readonly platform: string;\n readonly product: string;\n readonly productSub: string;\n readonly userAgent: string;\n readonly vendor: string;\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\ninterface NavigatorStorageUtils {\n}\n\ninterface NavigatorUserMedia {\n readonly mediaDevices: MediaDevices;\n getDisplayMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;\n getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;\n}\n\ninterface Node extends EventTarget {\n readonly baseURI: string | null;\n readonly childNodes: NodeListOf<Node & ChildNode>;\n readonly firstChild: Node | null;\n readonly lastChild: Node | null;\n readonly localName: string | null;\n readonly namespaceURI: string | null;\n readonly nextSibling: Node | null;\n readonly nodeName: string;\n readonly nodeType: number;\n nodeValue: string | null;\n readonly ownerDocument: Document;\n readonly parentElement: HTMLElement | null;\n readonly parentNode: Node | null;\n readonly previousSibling: Node | null;\n textContent: string | null;\n appendChild<T extends Node>(newChild: T): T;\n cloneNode(deep?: boolean): Node;\n compareDocumentPosition(other: Node): number;\n contains(child: Node): boolean;\n hasChildNodes(): boolean;\n insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;\n isDefaultNamespace(namespaceURI: string | null): boolean;\n isEqualNode(arg: Node): boolean;\n isSameNode(other: Node): boolean;\n lookupNamespaceURI(prefix: string | null): string | null;\n lookupPrefix(namespaceURI: string | null): string | null;\n normalize(): void;\n removeChild<T extends Node>(oldChild: T): T;\n replaceChild<T extends Node>(newChild: Node, oldChild: T): T;\n readonly ATTRIBUTE_NODE: number;\n readonly CDATA_SECTION_NODE: number;\n readonly COMMENT_NODE: number;\n readonly DOCUMENT_FRAGMENT_NODE: number;\n readonly DOCUMENT_NODE: number;\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n readonly DOCUMENT_POSITION_CONTAINS: number;\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n readonly DOCUMENT_POSITION_PRECEDING: number;\n readonly DOCUMENT_TYPE_NODE: number;\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n readonly PROCESSING_INSTRUCTION_NODE: number;\n readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n readonly ATTRIBUTE_NODE: number;\n readonly CDATA_SECTION_NODE: number;\n readonly COMMENT_NODE: number;\n readonly DOCUMENT_FRAGMENT_NODE: number;\n readonly DOCUMENT_NODE: number;\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n readonly DOCUMENT_POSITION_CONTAINS: number;\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n readonly DOCUMENT_POSITION_PRECEDING: number;\n readonly DOCUMENT_TYPE_NODE: number;\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n readonly PROCESSING_INSTRUCTION_NODE: number;\n readonly TEXT_NODE: number;\n};\n\ninterface NodeFilter {\n acceptNode(node: Node): number;\n}\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\ninterface NodeIterator {\n /** @deprecated */\n readonly expandEntityReferences: boolean;\n readonly filter: NodeFilter | null;\n readonly root: Node;\n readonly whatToShow: number;\n detach(): void;\n nextNode(): Node | null;\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\ninterface NodeList {\n readonly length: number;\n item(index: number): Node;\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 length: number;\n item(index: number): TNode;\n [index: number]: TNode;\n}\n\ninterface NodeSelector {\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 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\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\ninterface Notification extends EventTarget {\n readonly body: string | null;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string | null;\n readonly lang: string | null;\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 permission: NotificationPermission;\n readonly tag: string | null;\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 requestPermission(callback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\ninterface OES_element_index_uint {\n}\n\ndeclare var OES_element_index_uint: {\n prototype: OES_element_index_uint;\n new(): OES_element_index_uint;\n};\n\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;\n}\n\ndeclare var OES_standard_derivatives: {\n prototype: OES_standard_derivatives;\n new(): OES_standard_derivatives;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;\n};\n\ninterface OES_texture_float {\n}\n\ndeclare var OES_texture_float: {\n prototype: OES_texture_float;\n new(): OES_texture_float;\n};\n\ninterface OES_texture_float_linear {\n}\n\ndeclare var OES_texture_float_linear: {\n prototype: OES_texture_float_linear;\n new(): OES_texture_float_linear;\n};\n\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: number;\n}\n\ndeclare var OES_texture_half_float: {\n prototype: OES_texture_half_float;\n new(): OES_texture_half_float;\n readonly HALF_FLOAT_OES: number;\n};\n\ninterface OES_texture_half_float_linear {\n}\n\ndeclare var OES_texture_half_float_linear: {\n prototype: OES_texture_half_float_linear;\n new(): OES_texture_half_float_linear;\n};\n\ninterface OES_vertex_array_object {\n readonly VERTEX_ARRAY_BINDING_OES: number;\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;\n isVertexArrayOES(value: any): value is WebGLVertexArrayObjectOES;\n}\n\ninterface OfflineAudioCompletionEvent extends Event {\n readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n prototype: OfflineAudioCompletionEvent;\n new(): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends AudioContextEventMap {\n "complete": OfflineAudioCompletionEvent;\n}\n\ninterface OfflineAudioContext extends AudioContextBase {\n readonly length: number;\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\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(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\ninterface OscillatorNodeEventMap {\n "ended": Event;\n}\n\ninterface OscillatorNode extends AudioNode {\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n onended: ((this: OscillatorNode, ev: Event) => any) | null;\n type: OscillatorType;\n setPeriodicWave(periodicWave: PeriodicWave): void;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OscillatorNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[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(): OscillatorNode;\n};\n\ninterface OverflowEvent extends UIEvent {\n readonly horizontalOverflow: boolean;\n readonly orient: number;\n readonly verticalOverflow: boolean;\n readonly BOTH: number;\n readonly HORIZONTAL: number;\n readonly VERTICAL: number;\n}\n\ndeclare var OverflowEvent: {\n prototype: OverflowEvent;\n new(): OverflowEvent;\n readonly BOTH: number;\n readonly HORIZONTAL: number;\n readonly VERTICAL: number;\n};\n\ninterface PageTransitionEvent extends Event {\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(): PageTransitionEvent;\n};\n\ninterface PannerNode extends AudioNode {\n coneInnerAngle: number;\n coneOuterAngle: number;\n coneOuterGain: number;\n distanceModel: DistanceModelType;\n maxDistance: number;\n panningModel: PanningModelType;\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 /** @deprecated */\n setVelocity(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n prototype: PannerNode;\n new(): PannerNode;\n};\n\ninterface ParentNode {\n readonly children: HTMLCollection;\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 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\ninterface ParentNode {\n readonly childElementCount: number;\n readonly firstElementChild: Element | null;\n readonly lastElementChild: Element | null;\n}\n\ninterface Path2D extends CanvasPathMethods {\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(d?: Path2D | string): Path2D;\n};\n\ninterface PaymentAddress {\n readonly addressLine: string[];\n readonly city: string;\n readonly country: string;\n readonly dependentLocality: string;\n readonly languageCode: string;\n readonly organization: string;\n readonly phone: string;\n readonly postalCode: string;\n readonly recipient: string;\n readonly region: string;\n readonly sortingCode: string;\n toJSON(): any;\n}\n\ndeclare var PaymentAddress: {\n prototype: PaymentAddress;\n new(): PaymentAddress;\n};\n\ninterface PaymentRequestEventMap {\n "shippingaddresschange": Event;\n "shippingoptionchange": Event;\n}\n\ninterface PaymentRequest extends EventTarget {\n readonly id: string;\n onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;\n onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;\n readonly shippingAddress: PaymentAddress | null;\n readonly shippingOption: string | null;\n readonly shippingType: PaymentShippingType | null;\n abort(): Promise<void>;\n canMakePayment(): Promise<boolean>;\n show(): 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, options?: PaymentOptions): PaymentRequest;\n};\n\ninterface PaymentRequestUpdateEvent extends Event {\n updateWith(detailsPromise: Promise<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\ninterface PaymentResponse {\n readonly details: any;\n readonly methodName: string;\n readonly payerEmail: string | null;\n readonly payerName: string | null;\n readonly payerPhone: string | null;\n readonly requestId: string;\n readonly shippingAddress: PaymentAddress | null;\n readonly shippingOption: string | null;\n complete(result?: PaymentComplete): Promise<void>;\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerfWidgetExternal {\n readonly activeNetworkRequestCount: number;\n readonly averageFrameTime: number;\n readonly averagePaintTime: number;\n readonly extraInformationEnabled: boolean;\n readonly independentRenderingEnabled: boolean;\n readonly irDisablingContentString: string;\n readonly irStatusAvailable: boolean;\n readonly maxCpuSpeed: number;\n readonly paintRequestsPerSecond: number;\n readonly performanceCounter: number;\n readonly performanceCounterFrequency: number;\n addEventListener(eventType: string, callback: Function): void;\n getMemoryUsage(): number;\n getProcessCpuUsage(): number;\n getRecentCpuUsage(last: number | null): any;\n getRecentFrames(last: number | null): any;\n getRecentMemoryUsage(last: number | null): any;\n getRecentPaintRequests(last: number | null): any;\n removeEventListener(eventType: string, callback: Function): void;\n repositionWindow(x: number, y: number): void;\n resizeWindow(width: number, height: number): void;\n}\n\ndeclare var PerfWidgetExternal: {\n prototype: PerfWidgetExternal;\n new(): PerfWidgetExternal;\n};\n\ninterface Performance {\n /** @deprecated */\n readonly navigation: PerformanceNavigation;\n readonly timeOrigin: number;\n /** @deprecated */\n readonly timing: PerformanceTiming;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): any;\n getEntriesByName(name: string, type?: string): any;\n getEntriesByType(type: string): any;\n /** @deprecated */\n getMarks(markName?: string): any;\n /** @deprecated */\n getMeasures(measureName?: string): any;\n mark(markName: string): void;\n measure(measureName: string, startMarkName?: string, endMarkName?: string): void;\n now(): number;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\ninterface PerformanceEntry {\n readonly duration: number;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: number;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\ninterface PerformanceMark extends PerformanceEntry {\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(): PerformanceMark;\n};\n\ninterface PerformanceMeasure extends PerformanceEntry {\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\ninterface PerformanceNavigation {\n readonly redirectCount: number;\n readonly type: number;\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\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\ninterface PerformanceNavigationTiming extends PerformanceEntry {\n /** @deprecated */\n readonly connectEnd: number;\n /** @deprecated */\n readonly connectStart: number;\n readonly domComplete: number;\n readonly domContentLoadedEventEnd: number;\n readonly domContentLoadedEventStart: number;\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 readonly loadEventEnd: number;\n readonly loadEventStart: number;\n /** @deprecated */\n readonly navigationStart: number;\n readonly redirectCount: 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 readonly type: NavigationType;\n readonly unloadEventEnd: number;\n readonly unloadEventStart: number;\n readonly workerStart: number;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: number;\n readonly connectStart: number;\n readonly domainLookupEnd: number;\n readonly domainLookupStart: number;\n readonly fetchStart: number;\n readonly initiatorType: string;\n readonly redirectEnd: number;\n readonly redirectStart: number;\n readonly requestStart: number;\n readonly responseEnd: number;\n readonly responseStart: number;\n readonly workerStart: number;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceTiming {\n readonly connectEnd: number;\n readonly connectStart: number;\n readonly domComplete: number;\n readonly domContentLoadedEventEnd: number;\n readonly domContentLoadedEventStart: number;\n readonly domInteractive: number;\n readonly domLoading: number;\n readonly domainLookupEnd: number;\n readonly domainLookupStart: number;\n readonly fetchStart: number;\n readonly loadEventEnd: number;\n readonly loadEventStart: number;\n readonly msFirstPaint: number;\n readonly navigationStart: number;\n readonly redirectEnd: number;\n readonly redirectStart: number;\n readonly requestStart: number;\n readonly responseEnd: number;\n readonly responseStart: number;\n readonly secureConnectionStart: number;\n readonly unloadEventEnd: number;\n readonly unloadEventStart: number;\n toJSON(): any;\n}\n\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(): PeriodicWave;\n};\n\ninterface PermissionRequest extends DeferredPermissionRequest {\n readonly state: MSWebViewPermissionState;\n defer(): void;\n}\n\ndeclare var PermissionRequest: {\n prototype: PermissionRequest;\n new(): PermissionRequest;\n};\n\ninterface PermissionRequestedEvent extends Event {\n readonly permissionRequest: PermissionRequest;\n}\n\ndeclare var PermissionRequestedEvent: {\n prototype: PermissionRequestedEvent;\n new(): PermissionRequestedEvent;\n};\n\ninterface Plugin {\n readonly description: string;\n readonly filename: string;\n readonly length: number;\n readonly name: string;\n readonly version: string;\n item(index: number): MimeType;\n namedItem(type: string): MimeType;\n [index: number]: MimeType;\n}\n\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\ninterface PluginArray {\n readonly length: number;\n item(index: number): Plugin;\n namedItem(name: string): Plugin;\n refresh(reload?: boolean): void;\n [index: number]: Plugin;\n}\n\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\ninterface PointerEvent extends MouseEvent {\n readonly currentPoint: any;\n readonly height: number;\n readonly hwTimestamp: number;\n readonly intermediatePoints: any;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: any;\n readonly pressure: number;\n readonly rotation: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly width: number;\n getCurrentPoint(element: Element): void;\n getIntermediatePoints(element: Element): void;\n initPointerEvent(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, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\ninterface PopStateEvent extends Event {\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\ninterface Position {\n readonly coords: Coordinates;\n readonly timestamp: number;\n}\n\ndeclare var Position: {\n prototype: Position;\n new(): Position;\n};\n\ninterface PositionError {\n readonly code: number;\n readonly message: string;\n toString(): string;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n}\n\ndeclare var PositionError: {\n prototype: PositionError;\n new(): PositionError;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n};\n\ninterface ProcessingInstruction extends CharacterData {\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\ninterface ProgressEvent extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly total: number;\n initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(typeArg: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: PromiseLike<any>;\n readonly reason: any;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: PromiseLike<any>;\n reason?: any;\n}\n\ninterface PushManager {\n readonly supportedContentEncodings: ReadonlyArray<string>;\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};\n\ninterface PushSubscription {\n readonly endpoint: string;\n readonly expirationTime: number | null;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): any;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCDTMFToneChangeEvent extends Event {\n readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n prototype: RTCDTMFToneChangeEvent;\n new(typeArg: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n "dtlsstatechange": RTCDtlsTransportStateChangedEvent;\n "error": Event;\n}\n\ninterface RTCDtlsTransport extends RTCStatsProvider {\n ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null;\n onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n readonly state: RTCDtlsTransportState;\n readonly transport: RTCIceTransport;\n getLocalParameters(): RTCDtlsParameters;\n getRemoteCertificates(): ArrayBuffer[];\n getRemoteParameters(): RTCDtlsParameters | null;\n start(remoteParameters: RTCDtlsParameters): void;\n stop(): void;\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(transport: RTCIceTransport): RTCDtlsTransport;\n};\n\ninterface RTCDtlsTransportStateChangedEvent extends Event {\n readonly state: RTCDtlsTransportState;\n}\n\ndeclare var RTCDtlsTransportStateChangedEvent: {\n prototype: RTCDtlsTransportStateChangedEvent;\n new(): RTCDtlsTransportStateChangedEvent;\n};\n\ninterface RTCDtmfSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDtmfSender extends EventTarget {\n readonly canInsertDTMF: boolean;\n readonly duration: number;\n readonly interToneGap: number;\n ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n readonly sender: RTCRtpSender;\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(sender: RTCRtpSender): RTCDtmfSender;\n};\n\ninterface RTCIceCandidate {\n candidate: string | null;\n sdpMLineIndex: number | null;\n sdpMid: string | null;\n toJSON(): any;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceCandidatePairChangedEvent extends Event {\n readonly pair: RTCIceCandidatePair;\n}\n\ndeclare var RTCIceCandidatePairChangedEvent: {\n prototype: RTCIceCandidatePairChangedEvent;\n new(): RTCIceCandidatePairChangedEvent;\n};\n\ninterface RTCIceGathererEventMap {\n "error": Event;\n "localcandidate": RTCIceGathererEvent;\n}\n\ninterface RTCIceGatherer extends RTCStatsProvider {\n readonly component: RTCIceComponent;\n onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;\n onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;\n createAssociatedGatherer(): RTCIceGatherer;\n getLocalCandidates(): RTCIceCandidateDictionary[];\n getLocalParameters(): RTCIceParameters;\n addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceGatherer: {\n prototype: RTCIceGatherer;\n new(options: RTCIceGatherOptions): RTCIceGatherer;\n};\n\ninterface RTCIceGathererEvent extends Event {\n readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete;\n}\n\ndeclare var RTCIceGathererEvent: {\n prototype: RTCIceGathererEvent;\n new(): RTCIceGathererEvent;\n};\n\ninterface RTCIceTransportEventMap {\n "candidatepairchange": RTCIceCandidatePairChangedEvent;\n "icestatechange": RTCIceTransportStateChangedEvent;\n}\n\ninterface RTCIceTransport extends RTCStatsProvider {\n readonly component: RTCIceComponent;\n readonly iceGatherer: RTCIceGatherer | null;\n oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null;\n onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null;\n readonly role: RTCIceRole;\n readonly state: RTCIceTransportState;\n addRemoteCandidate(remoteCandidate: RTCIceCandidateDictionary | RTCIceCandidateComplete): void;\n createAssociatedTransport(): RTCIceTransport;\n getNominatedCandidatePair(): RTCIceCandidatePair | null;\n getRemoteCandidates(): RTCIceCandidateDictionary[];\n getRemoteParameters(): RTCIceParameters | null;\n setRemoteCandidates(remoteCandidates: RTCIceCandidateDictionary[]): void;\n start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: RTCIceRole): void;\n stop(): void;\n addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceTransport: {\n prototype: RTCIceTransport;\n new(): RTCIceTransport;\n};\n\ninterface RTCIceTransportStateChangedEvent extends Event {\n readonly state: RTCIceTransportState;\n}\n\ndeclare var RTCIceTransportStateChangedEvent: {\n prototype: RTCIceTransportStateChangedEvent;\n new(): RTCIceTransportStateChangedEvent;\n};\n\ninterface RTCPeerConnectionEventMap {\n "addstream": MediaStreamEvent;\n "icecandidate": RTCPeerConnectionIceEvent;\n "iceconnectionstatechange": Event;\n "icegatheringstatechange": Event;\n "negotiationneeded": Event;\n "removestream": MediaStreamEvent;\n "signalingstatechange": Event;\n}\n\ninterface RTCPeerConnection extends EventTarget {\n readonly canTrickleIceCandidates: boolean | null;\n readonly iceConnectionState: RTCIceConnectionState;\n readonly iceGatheringState: RTCIceGatheringState;\n readonly localDescription: RTCSessionDescription | null;\n onaddstream: ((this: RTCPeerConnection, ev: MediaStreamEvent) => any) | null;\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => 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 onremovestream: ((this: RTCPeerConnection, ev: MediaStreamEvent) => any) | null;\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n readonly remoteDescription: RTCSessionDescription | null;\n readonly signalingState: RTCSignalingState;\n addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;\n addStream(stream: MediaStream): void;\n close(): void;\n createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n getConfiguration(): RTCConfiguration;\n getLocalStreams(): MediaStream[];\n getRemoteStreams(): MediaStream[];\n getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise<RTCStatsReport>;\n getStreamById(streamId: string): MediaStream | null;\n removeStream(stream: MediaStream): void;\n setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;\n setRemoteDescription(description: RTCSessionDescriptionInit): 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};\n\ninterface RTCPeerConnectionIceEvent extends Event {\n readonly candidate: RTCIceCandidate;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\ninterface RTCRtpReceiverEventMap {\n "error": Event;\n "msdecodercapacitychange": Event;\n "msdsh": Event;\n}\n\ninterface RTCRtpReceiver extends RTCStatsProvider {\n onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null;\n onmsdecodercapacitychange: ((this: RTCRtpReceiver, ev: Event) => any) | null;\n onmsdsh: ((this: RTCRtpReceiver, ev: Event) => any) | null;\n readonly rtcpTransport: RTCDtlsTransport;\n readonly track: MediaStreamTrack | null;\n readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;\n getContributingSources(): RTCRtpContributingSource[];\n receive(parameters: RTCRtpParameters): void;\n requestSendCSRC(csrc: number): void;\n setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void;\n stop(): void;\n addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;\n getCapabilities(kind?: string): RTCRtpCapabilities;\n};\n\ninterface RTCRtpSenderEventMap {\n "error": Event;\n "ssrcconflict": RTCSsrcConflictEvent;\n}\n\ninterface RTCRtpSender extends RTCStatsProvider {\n onerror: ((this: RTCRtpSender, ev: Event) => any) | null;\n onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null;\n readonly rtcpTransport: RTCDtlsTransport;\n readonly track: MediaStreamTrack;\n readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;\n send(parameters: RTCRtpParameters): void;\n setTrack(track: MediaStreamTrack): void;\n setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void;\n stop(): void;\n addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: (this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: (this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(track: MediaStreamTrack, transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;\n getCapabilities(kind?: string): RTCRtpCapabilities;\n};\n\ninterface RTCSessionDescription {\n sdp: string | null;\n type: RTCSdpType | null;\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict?: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCSrtpSdesTransportEventMap {\n "error": Event;\n}\n\ninterface RTCSrtpSdesTransport extends EventTarget {\n onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null;\n readonly transport: RTCIceTransport;\n addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSrtpSdesTransport: {\n prototype: RTCSrtpSdesTransport;\n new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;\n getLocalParameters(): RTCSrtpSdesParameters[];\n};\n\ninterface RTCSsrcConflictEvent extends Event {\n readonly ssrc: number;\n}\n\ndeclare var RTCSsrcConflictEvent: {\n prototype: RTCSsrcConflictEvent;\n new(): RTCSsrcConflictEvent;\n};\n\ninterface RTCStatsProvider extends EventTarget {\n getStats(): Promise<RTCStatsReport>;\n msGetStats(): Promise<RTCStatsReport>;\n}\n\ndeclare var RTCStatsProvider: {\n prototype: RTCStatsProvider;\n new(): RTCStatsProvider;\n};\n\ninterface RandomSource {\n getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T;\n}\n\ndeclare var RandomSource: {\n prototype: RandomSource;\n new(): RandomSource;\n};\n\ninterface Range {\n readonly collapsed: boolean;\n readonly commonAncestorContainer: Node;\n readonly endContainer: Node;\n readonly endOffset: number;\n readonly startContainer: Node;\n readonly startOffset: number;\n cloneContents(): DocumentFragment;\n cloneRange(): Range;\n collapse(toStart?: boolean): void;\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n createContextualFragment(fragment: string): DocumentFragment;\n deleteContents(): void;\n detach(): void;\n expand(Unit: ExpandGranularity): boolean;\n extractContents(): DocumentFragment;\n getBoundingClientRect(): ClientRect | DOMRect;\n getClientRects(): ClientRectList | DOMRectList;\n insertNode(node: Node): void;\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};\n\ninterface ReadableStream {\n readonly locked: boolean;\n cancel(): Promise<void>;\n getReader(): ReadableStreamReader;\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(): ReadableStream;\n};\n\ninterface ReadableStreamReader {\n cancel(): Promise<void>;\n read(): Promise<any>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamReader: {\n prototype: ReadableStreamReader;\n new(): ReadableStreamReader;\n};\n\ninterface Request extends Body {\n readonly cache: RequestCache;\n readonly credentials: RequestCredentials;\n readonly destination: RequestDestination;\n readonly headers: Headers;\n readonly integrity: string;\n readonly keepalive: boolean;\n readonly method: string;\n readonly mode: RequestMode;\n readonly redirect: RequestRedirect;\n readonly referrer: string;\n readonly referrerPolicy: ReferrerPolicy;\n readonly signal: AbortSignal | null;\n readonly type: RequestType;\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: Request | string, init?: RequestInit): Request;\n};\n\ninterface Response extends Body {\n readonly body: ReadableStream | null;\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?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string, status?: number): Response;\n};\n\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\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\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 SVGAnimatedAngle {\n readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\ninterface SVGAnimatedBoolean {\n readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\ninterface SVGAnimatedEnumeration {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\ninterface SVGAnimatedInteger {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\ninterface SVGAnimatedLengthList {\n readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\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\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\ninterface SVGAnimatedRect {\n readonly animVal: SVGRect;\n readonly baseVal: SVGRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\ninterface SVGAnimatedString {\n readonly animVal: string;\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\ninterface SVGAnimatedTransformList {\n readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\ninterface SVGCircleElement extends SVGGraphicsElement {\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\ninterface SVGClipPathElement extends SVGGraphicsElement, SVGUnitTypes {\n readonly clipPathUnits: SVGAnimatedEnumeration;\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\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\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\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 {\n "click": MouseEvent;\n "dblclick": MouseEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "load": Event;\n "mousedown": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n}\n\ninterface SVGElement extends Element, ElementCSSInlineStyle {\n readonly className: any;\n onclick: ((this: SVGElement, ev: MouseEvent) => any) | null;\n ondblclick: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onfocusin: ((this: SVGElement, ev: FocusEvent) => any) | null;\n onfocusout: ((this: SVGElement, ev: FocusEvent) => any) | null;\n onload: ((this: SVGElement, ev: Event) => any) | null;\n onmousedown: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmousemove: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmouseout: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmouseover: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmouseup: ((this: SVGElement, ev: MouseEvent) => any) | null;\n readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n /** @deprecated */\n xmlbase: string;\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\ninterface SVGElementInstance extends EventTarget {\n readonly childNodes: SVGElementInstanceList;\n readonly correspondingElement: SVGElement;\n readonly correspondingUseElement: SVGUseElement;\n readonly firstChild: SVGElementInstance;\n readonly lastChild: SVGElementInstance;\n readonly nextSibling: SVGElementInstance;\n readonly parentNode: SVGElementInstance;\n readonly previousSibling: SVGElementInstance;\n}\n\ndeclare var SVGElementInstance: {\n prototype: SVGElementInstance;\n new(): SVGElementInstance;\n};\n\ninterface SVGElementInstanceList {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): SVGElementInstance;\n}\n\ndeclare var SVGElementInstanceList: {\n prototype: SVGElementInstanceList;\n new(): SVGElementInstanceList;\n};\n\ninterface SVGEllipseElement extends SVGGraphicsElement {\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\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\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\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\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\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\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\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\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 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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\ninterface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGURIReference {\n /** @deprecated */\n readonly filterResX: SVGAnimatedInteger;\n /** @deprecated */\n readonly filterResY: SVGAnimatedInteger;\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 /** @deprecated */\n setFilterRes(filterResX: number, filterResY: number): void;\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\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\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 SVGGradientElement extends SVGElement, SVGUnitTypes, 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\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n /** @deprecated */\n readonly farthestViewportElement: SVGElement | null;\n /** @deprecated */\n readonly nearestViewportElement: SVGElement | null;\n readonly transform: SVGAnimatedTransformList;\n getBBox(): SVGRect;\n getCTM(): SVGMatrix | null;\n getScreenCTM(): SVGMatrix | null;\n /** @deprecated */\n getTransformToElement(element: SVGElement): SVGMatrix;\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\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\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\ninterface SVGLengthList {\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}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\ninterface SVGLineElement extends SVGGraphicsElement {\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\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 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\ninterface SVGMaskElement extends SVGElement, SVGTests, SVGUnitTypes {\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\ninterface SVGMatrix {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n flipX(): SVGMatrix;\n flipY(): SVGMatrix;\n inverse(): SVGMatrix;\n multiply(secondMatrix: SVGMatrix): SVGMatrix;\n rotate(angle: number): SVGMatrix;\n rotateFromVector(x: number, y: number): SVGMatrix;\n scale(scaleFactor: number): SVGMatrix;\n scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;\n skewX(angle: number): SVGMatrix;\n skewY(angle: number): SVGMatrix;\n translate(x: number, y: number): SVGMatrix;\n}\n\ndeclare var SVGMatrix: {\n prototype: SVGMatrix;\n new(): SVGMatrix;\n};\n\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\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\ninterface SVGNumberList {\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}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\ninterface SVGPathElement extends SVGGraphicsElement {\n /** @deprecated */\n readonly pathSegList: SVGPathSegList;\n /** @deprecated */\n createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;\n /** @deprecated */\n createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;\n /** @deprecated */\n createSVGPathSegClosePath(): SVGPathSegClosePath;\n /** @deprecated */\n createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;\n /** @deprecated */\n createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;\n /** @deprecated */\n createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;\n /** @deprecated */\n createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;\n /** @deprecated */\n createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;\n /** @deprecated */\n createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;\n /** @deprecated */\n createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;\n /** @deprecated */\n createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;\n /** @deprecated */\n createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;\n /** @deprecated */\n createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;\n /** @deprecated */\n createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;\n /** @deprecated */\n createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;\n /** @deprecated */\n getPathSegAtLength(distance: number): number;\n getPointAtLength(distance: number): SVGPoint;\n getTotalLength(): number;\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\ninterface SVGPathSeg {\n readonly pathSegType: number;\n readonly pathSegTypeAsLetter: string;\n readonly PATHSEG_ARC_ABS: number;\n readonly PATHSEG_ARC_REL: number;\n readonly PATHSEG_CLOSEPATH: number;\n readonly PATHSEG_CURVETO_CUBIC_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_REL: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;\n readonly PATHSEG_LINETO_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_REL: number;\n readonly PATHSEG_LINETO_REL: number;\n readonly PATHSEG_LINETO_VERTICAL_ABS: number;\n readonly PATHSEG_LINETO_VERTICAL_REL: number;\n readonly PATHSEG_MOVETO_ABS: number;\n readonly PATHSEG_MOVETO_REL: number;\n readonly PATHSEG_UNKNOWN: number;\n}\n\ndeclare var SVGPathSeg: {\n prototype: SVGPathSeg;\n new(): SVGPathSeg;\n readonly PATHSEG_ARC_ABS: number;\n readonly PATHSEG_ARC_REL: number;\n readonly PATHSEG_CLOSEPATH: number;\n readonly PATHSEG_CURVETO_CUBIC_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_REL: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;\n readonly PATHSEG_LINETO_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_REL: number;\n readonly PATHSEG_LINETO_REL: number;\n readonly PATHSEG_LINETO_VERTICAL_ABS: number;\n readonly PATHSEG_LINETO_VERTICAL_REL: number;\n readonly PATHSEG_MOVETO_ABS: number;\n readonly PATHSEG_MOVETO_REL: number;\n readonly PATHSEG_UNKNOWN: number;\n};\n\ninterface SVGPathSegArcAbs extends SVGPathSeg {\n angle: number;\n largeArcFlag: boolean;\n r1: number;\n r2: number;\n sweepFlag: boolean;\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegArcAbs: {\n prototype: SVGPathSegArcAbs;\n new(): SVGPathSegArcAbs;\n};\n\ninterface SVGPathSegArcRel extends SVGPathSeg {\n angle: number;\n largeArcFlag: boolean;\n r1: number;\n r2: number;\n sweepFlag: boolean;\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegArcRel: {\n prototype: SVGPathSegArcRel;\n new(): SVGPathSegArcRel;\n};\n\ninterface SVGPathSegClosePath extends SVGPathSeg {\n}\n\ndeclare var SVGPathSegClosePath: {\n prototype: SVGPathSegClosePath;\n new(): SVGPathSegClosePath;\n};\n\ninterface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {\n x: number;\n x1: number;\n x2: number;\n y: number;\n y1: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicAbs: {\n prototype: SVGPathSegCurvetoCubicAbs;\n new(): SVGPathSegCurvetoCubicAbs;\n};\n\ninterface SVGPathSegCurvetoCubicRel extends SVGPathSeg {\n x: number;\n x1: number;\n x2: number;\n y: number;\n y1: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicRel: {\n prototype: SVGPathSegCurvetoCubicRel;\n new(): SVGPathSegCurvetoCubicRel;\n};\n\ninterface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {\n x: number;\n x2: number;\n y: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicSmoothAbs: {\n prototype: SVGPathSegCurvetoCubicSmoothAbs;\n new(): SVGPathSegCurvetoCubicSmoothAbs;\n};\n\ninterface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {\n x: number;\n x2: number;\n y: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicSmoothRel: {\n prototype: SVGPathSegCurvetoCubicSmoothRel;\n new(): SVGPathSegCurvetoCubicSmoothRel;\n};\n\ninterface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {\n x: number;\n x1: number;\n y: number;\n y1: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticAbs: {\n prototype: SVGPathSegCurvetoQuadraticAbs;\n new(): SVGPathSegCurvetoQuadraticAbs;\n};\n\ninterface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {\n x: number;\n x1: number;\n y: number;\n y1: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticRel: {\n prototype: SVGPathSegCurvetoQuadraticRel;\n new(): SVGPathSegCurvetoQuadraticRel;\n};\n\ninterface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticSmoothAbs: {\n prototype: SVGPathSegCurvetoQuadraticSmoothAbs;\n new(): SVGPathSegCurvetoQuadraticSmoothAbs;\n};\n\ninterface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticSmoothRel: {\n prototype: SVGPathSegCurvetoQuadraticSmoothRel;\n new(): SVGPathSegCurvetoQuadraticSmoothRel;\n};\n\ninterface SVGPathSegLinetoAbs extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegLinetoAbs: {\n prototype: SVGPathSegLinetoAbs;\n new(): SVGPathSegLinetoAbs;\n};\n\ninterface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {\n x: number;\n}\n\ndeclare var SVGPathSegLinetoHorizontalAbs: {\n prototype: SVGPathSegLinetoHorizontalAbs;\n new(): SVGPathSegLinetoHorizontalAbs;\n};\n\ninterface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {\n x: number;\n}\n\ndeclare var SVGPathSegLinetoHorizontalRel: {\n prototype: SVGPathSegLinetoHorizontalRel;\n new(): SVGPathSegLinetoHorizontalRel;\n};\n\ninterface SVGPathSegLinetoRel extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegLinetoRel: {\n prototype: SVGPathSegLinetoRel;\n new(): SVGPathSegLinetoRel;\n};\n\ninterface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {\n y: number;\n}\n\ndeclare var SVGPathSegLinetoVerticalAbs: {\n prototype: SVGPathSegLinetoVerticalAbs;\n new(): SVGPathSegLinetoVerticalAbs;\n};\n\ninterface SVGPathSegLinetoVerticalRel extends SVGPathSeg {\n y: number;\n}\n\ndeclare var SVGPathSegLinetoVerticalRel: {\n prototype: SVGPathSegLinetoVerticalRel;\n new(): SVGPathSegLinetoVerticalRel;\n};\n\ninterface SVGPathSegList {\n readonly numberOfItems: number;\n appendItem(newItem: SVGPathSeg): SVGPathSeg;\n clear(): void;\n getItem(index: number): SVGPathSeg;\n initialize(newItem: SVGPathSeg): SVGPathSeg;\n insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;\n removeItem(index: number): SVGPathSeg;\n replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;\n}\n\ndeclare var SVGPathSegList: {\n prototype: SVGPathSegList;\n new(): SVGPathSegList;\n};\n\ninterface SVGPathSegMovetoAbs extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegMovetoAbs: {\n prototype: SVGPathSegMovetoAbs;\n new(): SVGPathSegMovetoAbs;\n};\n\ninterface SVGPathSegMovetoRel extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegMovetoRel: {\n prototype: SVGPathSegMovetoRel;\n new(): SVGPathSegMovetoRel;\n};\n\ninterface SVGPatternElement extends SVGElement, SVGTests, SVGUnitTypes, 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 SVGPoint {\n x: number;\n y: number;\n matrixTransform(matrix: SVGMatrix): SVGPoint;\n}\n\ndeclare var SVGPoint: {\n prototype: SVGPoint;\n new(): SVGPoint;\n};\n\ninterface SVGPointList {\n readonly numberOfItems: number;\n appendItem(newItem: SVGPoint): SVGPoint;\n clear(): void;\n getItem(index: number): SVGPoint;\n initialize(newItem: SVGPoint): SVGPoint;\n insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;\n removeItem(index: number): SVGPoint;\n replaceItem(newItem: SVGPoint, index: number): SVGPoint;\n}\n\ndeclare var SVGPointList: {\n prototype: SVGPointList;\n new(): SVGPointList;\n};\n\ninterface SVGPolygonElement extends SVGGraphicsElement, 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\ninterface SVGPolylineElement extends SVGGraphicsElement, 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\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\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: 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\ninterface SVGRect {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var SVGRect: {\n prototype: SVGRect;\n new(): SVGRect;\n};\n\ninterface SVGRectElement extends SVGGraphicsElement {\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 {\n "SVGAbort": Event;\n "SVGError": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n "SVGUnload": Event;\n "SVGZoom": SVGZoomEvent;\n}\n\ninterface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {\n /** @deprecated */\n contentScriptType: string;\n /** @deprecated */\n contentStyleType: string;\n currentScale: number;\n readonly currentTranslate: SVGPoint;\n readonly height: SVGAnimatedLength;\n onabort: ((this: SVGSVGElement, ev: Event) => any) | null;\n onerror: ((this: SVGSVGElement, ev: Event) => any) | null;\n onresize: ((this: SVGSVGElement, ev: UIEvent) => any) | null;\n onscroll: ((this: SVGSVGElement, ev: UIEvent) => any) | null;\n onunload: ((this: SVGSVGElement, ev: Event) => any) | null;\n onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;\n /** @deprecated */\n readonly pixelUnitToMillimeterX: number;\n /** @deprecated */\n readonly pixelUnitToMillimeterY: number;\n /** @deprecated */\n readonly screenPixelToMillimeterX: number;\n /** @deprecated */\n readonly screenPixelToMillimeterY: number;\n /** @deprecated */\n readonly viewport: SVGRect;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n checkEnclosure(element: SVGElement, rect: SVGRect): boolean;\n checkIntersection(element: SVGElement, rect: SVGRect): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): SVGMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): SVGPoint;\n createSVGRect(): SVGRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n /** @deprecated */\n getCurrentTime(): number;\n getElementById(elementId: string): Element;\n getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n /** @deprecated */\n pauseAnimations(): void;\n /** @deprecated */\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n /** @deprecated */\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\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 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\ninterface SVGStringList {\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}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\ninterface SVGStylable {\n className: any;\n}\n\ndeclare var SVGStylable: {\n prototype: SVGStylable;\n new(): SVGStylable;\n};\n\ninterface SVGStyleElement extends SVGElement {\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\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\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\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 /** @deprecated */\n readonly requiredFeatures: SVGStringList;\n readonly systemLanguage: SVGStringList;\n /** @deprecated */\n hasExtension(extension: string): boolean;\n}\n\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point: SVGPoint): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): SVGPoint;\n getExtentOfChar(charnum: number): SVGRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): SVGPoint;\n getSubStringLength(charnum: number, nchars: number): number;\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\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\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\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\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\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: SVGMatrix;\n readonly type: number;\n setMatrix(matrix: SVGMatrix): 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\ninterface SVGTransformList {\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform;\n createSVGTransformFromMatrix(matrix: SVGMatrix): 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}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n readonly SVG_UNIT_TYPE_UNKNOWN: number;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n}\ndeclare var SVGUnitTypes: SVGUnitTypes;\n\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly animatedInstanceRoot: SVGElementInstance | null;\n readonly height: SVGAnimatedLength;\n readonly instanceRoot: SVGElementInstance | null;\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\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan {\n /** @deprecated */\n readonly viewTarget: SVGStringList;\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\ninterface SVGZoomAndPan {\n readonly zoomAndPan: number;\n}\n\ndeclare var SVGZoomAndPan: {\n readonly SVG_ZOOMANDPAN_DISABLE: number;\n readonly SVG_ZOOMANDPAN_MAGNIFY: number;\n readonly SVG_ZOOMANDPAN_UNKNOWN: number;\n};\n\ninterface SVGZoomEvent extends UIEvent {\n readonly newScale: number;\n readonly newTranslate: SVGPoint;\n readonly previousScale: number;\n readonly previousTranslate: SVGPoint;\n readonly zoomRectScreen: SVGRect;\n}\n\ndeclare var SVGZoomEvent: {\n prototype: SVGZoomEvent;\n new(): SVGZoomEvent;\n};\n\ninterface ScopedCredential {\n readonly id: ArrayBuffer;\n readonly type: ScopedCredentialType;\n}\n\ndeclare var ScopedCredential: {\n prototype: ScopedCredential;\n new(): ScopedCredential;\n};\n\ninterface ScopedCredentialInfo {\n readonly credential: ScopedCredential;\n readonly publicKey: CryptoKey;\n}\n\ndeclare var ScopedCredentialInfo: {\n prototype: ScopedCredentialInfo;\n new(): ScopedCredentialInfo;\n};\n\ninterface ScreenEventMap {\n "MSOrientationChange": Event;\n}\n\ninterface Screen extends EventTarget {\n readonly availHeight: number;\n readonly availWidth: number;\n /** @deprecated */\n bufferDepth: number;\n readonly colorDepth: number;\n readonly deviceXDPI: number;\n readonly deviceYDPI: number;\n readonly fontSmoothingEnabled: boolean;\n readonly height: number;\n readonly logicalXDPI: number;\n readonly logicalYDPI: number;\n readonly msOrientation: string;\n onmsorientationchange: ((this: Screen, ev: Event) => any) | null;\n readonly pixelDepth: number;\n readonly systemXDPI: number;\n readonly systemYDPI: number;\n readonly width: number;\n lockOrientation(orientations: OrientationLockType | OrientationLockType[]): boolean;\n msLockOrientation(orientations: string | string[]): boolean;\n msUnlockOrientation(): void;\n unlockOrientation(): void;\n addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScriptProcessorNodeEventMap {\n "audioprocess": AudioProcessingEvent;\n}\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\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\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 SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: 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 Selection {\n readonly anchorNode: Node;\n readonly anchorOffset: number;\n readonly baseNode: Node;\n readonly baseOffset: number;\n readonly extentNode: Node;\n readonly extentOffset: number;\n readonly focusNode: Node;\n readonly focusOffset: number;\n readonly isCollapsed: boolean;\n readonly rangeCount: number;\n readonly type: string;\n addRange(range: Range): void;\n collapse(parentNode: Node, offset: number): void;\n collapseToEnd(): void;\n collapseToStart(): void;\n containsNode(node: Node, partlyContained: boolean): boolean;\n deleteFromDocument(): void;\n empty(): void;\n extend(newNode: Node, offset: number): void;\n getRangeAt(index: number): Range;\n removeAllRanges(): void;\n removeRange(range: Range): void;\n selectAllChildren(parentNode: Node): void;\n setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void;\n setPosition(parentNode: Node, offset: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n};\n\ninterface ServiceUIFrameContext {\n getCachedFrameMessage(key: string): string;\n postFrameMessage(key: string, data: string): void;\n}\ndeclare var ServiceUIFrameContext: ServiceUIFrameContext;\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\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?: any[]): 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": ServiceWorkerMessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ServiceWorkerRegistration[]>;\n register(scriptURL: string, 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 ServiceWorkerMessageEvent extends Event {\n readonly data: any;\n readonly lastEventId: string;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort> | null;\n readonly source: ServiceWorker | MessagePort | null;\n}\n\ndeclare var ServiceWorkerMessageEvent: {\n prototype: ServiceWorkerMessageEvent;\n new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\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 sync: SyncManager;\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 DocumentOrShadowRoot, DocumentFragment {\n readonly host: Element;\n innerHTML: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: "open" | "closed";\n}\n\ninterface SourceBuffer extends EventTarget {\n appendWindowEnd: number;\n appendWindowStart: number;\n readonly audioTracks: AudioTrackList;\n readonly buffered: TimeRanges;\n mode: AppendMode;\n timestampOffset: number;\n readonly updating: boolean;\n readonly videoTracks: VideoTrackList;\n abort(): void;\n appendBuffer(data: ArrayBuffer | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n appendStream(stream: MSStream, maxSize?: number): void;\n remove(start: number, end: number): void;\n}\n\ndeclare var SourceBuffer: {\n prototype: SourceBuffer;\n new(): SourceBuffer;\n};\n\ninterface SourceBufferList extends EventTarget {\n readonly length: number;\n item(index: number): SourceBuffer;\n [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n prototype: SourceBufferList;\n new(): SourceBufferList;\n};\n\ninterface SpeechSynthesisEventMap {\n "voiceschanged": Event;\n}\n\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 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": Event;\n "end": Event;\n "error": Event;\n "mark": Event;\n "pause": Event;\n "resume": Event;\n "start": Event;\n}\n\ninterface SpeechSynthesisUtterance extends EventTarget {\n lang: string;\n onboundary: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onend: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onerror: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onmark: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onpause: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onresume: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onstart: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n pitch: number;\n rate: number;\n text: string;\n voice: SpeechSynthesisVoice;\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(): SpeechSynthesisUtterance;\n new(text: string): SpeechSynthesisUtterance;\n};\n\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 StereoPannerNode extends AudioNode {\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(): StereoPannerNode;\n};\n\ninterface Storage {\n readonly length: number;\n clear(): void;\n getItem(key: string): string | null;\n key(index: number): string | null;\n removeItem(key: string): void;\n setItem(key: string, value: string): void;\n [key: string]: any;\n}\n\ndeclare var Storage: {\n prototype: Storage;\n new(): Storage;\n};\n\ninterface StorageEvent extends Event {\n readonly key: string | null;\n readonly newValue: string | null;\n readonly oldValue: string | null;\n readonly storageArea: Storage | null;\n readonly url: string;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new (type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\ninterface StorageEventInit extends EventInit {\n key?: string;\n newValue?: string;\n oldValue?: string;\n storageArea?: Storage;\n url: string;\n}\n\ninterface StyleMedia {\n readonly type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\ndeclare var StyleMedia: {\n prototype: StyleMedia;\n new(): StyleMedia;\n};\n\ninterface StyleSheet {\n disabled: boolean;\n readonly href: string | null;\n readonly media: MediaList;\n readonly ownerNode: Node;\n readonly parentStyleSheet: StyleSheet | null;\n readonly title: string | null;\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\ninterface StyleSheetList {\n readonly length: number;\n item(index: number): StyleSheet | null;\n [index: number]: StyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\ninterface SubtleCrypto {\n decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>;\n deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;\n exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>;\n exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>;\n generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>;\n wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\ninterface SyncManager {\n getTags(): Promise<string[]>;\n register(tag: string): Promise<void>;\n}\n\ndeclare var SyncManager: {\n prototype: SyncManager;\n new(): SyncManager;\n};\n\ninterface Text extends CharacterData {\n readonly assignedSlot: HTMLSlotElement | null;\n readonly wholeText: string;\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\ninterface TextDecoder {\n readonly encoding: string;\n readonly fatal: boolean;\n readonly ignoreBOM: boolean;\n decode(input?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextEncoder {\n readonly encoding: string;\n encode(input?: string): Uint8Array;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEvent extends UIEvent {\n readonly data: string;\n initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;\n readonly DOM_INPUT_METHOD_DROP: number;\n readonly DOM_INPUT_METHOD_HANDWRITING: number;\n readonly DOM_INPUT_METHOD_IME: number;\n readonly DOM_INPUT_METHOD_KEYBOARD: number;\n readonly DOM_INPUT_METHOD_MULTIMODAL: number;\n readonly DOM_INPUT_METHOD_OPTION: number;\n readonly DOM_INPUT_METHOD_PASTE: number;\n readonly DOM_INPUT_METHOD_SCRIPT: number;\n readonly DOM_INPUT_METHOD_UNKNOWN: number;\n readonly DOM_INPUT_METHOD_VOICE: number;\n}\n\ndeclare var TextEvent: {\n prototype: TextEvent;\n new(): TextEvent;\n readonly DOM_INPUT_METHOD_DROP: number;\n readonly DOM_INPUT_METHOD_HANDWRITING: number;\n readonly DOM_INPUT_METHOD_IME: number;\n readonly DOM_INPUT_METHOD_KEYBOARD: number;\n readonly DOM_INPUT_METHOD_MULTIMODAL: number;\n readonly DOM_INPUT_METHOD_OPTION: number;\n readonly DOM_INPUT_METHOD_PASTE: number;\n readonly DOM_INPUT_METHOD_SCRIPT: number;\n readonly DOM_INPUT_METHOD_UNKNOWN: number;\n readonly DOM_INPUT_METHOD_VOICE: number;\n};\n\ninterface TextMetrics {\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n "error": Event;\n "load": Event;\n}\n\ninterface TextTrack extends EventTarget {\n readonly activeCues: TextTrackCueList;\n readonly cues: TextTrackCueList;\n readonly inBandMetadataTrackDispatchType: string;\n readonly kind: string;\n readonly label: string;\n readonly language: string;\n mode: TextTrackMode | number;\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n onerror: ((this: TextTrack, ev: Event) => any) | null;\n onload: ((this: TextTrack, ev: Event) => any) | null;\n readonly readyState: number;\n addCue(cue: TextTrackCue): void;\n removeCue(cue: TextTrackCue): void;\n readonly DISABLED: number;\n readonly ERROR: number;\n readonly HIDDEN: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n readonly SHOWING: number;\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 readonly DISABLED: number;\n readonly ERROR: number;\n readonly HIDDEN: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n readonly SHOWING: number;\n};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\ninterface TextTrackCue extends EventTarget {\n endTime: number;\n id: string;\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n pauseOnExit: boolean;\n startTime: number;\n text: string;\n readonly track: TextTrack;\n getCueAsHTML(): DocumentFragment;\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(startTime: number, endTime: number, text: string): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n readonly length: number;\n getCueById(id: string): TextTrackCue;\n item(index: number): TextTrackCue;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n item(index: number): TextTrack;\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\ninterface TimeRanges {\n readonly length: number;\n end(index: number): number;\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\ninterface Touch {\n readonly clientX: number;\n readonly clientY: number;\n readonly identifier: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(): Touch;\n};\n\ninterface TouchEvent extends UIEvent {\n readonly altKey: boolean;\n readonly changedTouches: TouchList;\n readonly charCode: number;\n readonly ctrlKey: boolean;\n readonly keyCode: number;\n readonly metaKey: boolean;\n readonly shiftKey: boolean;\n readonly targetTouches: TouchList;\n readonly touches: TouchList;\n /** @deprecated */\n readonly which: number;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, touchEventInit?: TouchEventInit): TouchEvent;\n};\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\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\ninterface TrackEvent extends Event {\n readonly track: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransitionEvent extends Event {\n readonly elapsedTime: number;\n readonly propertyName: string;\n initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(typeArg: string, eventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\ninterface TreeWalker {\n currentNode: Node;\n /** @deprecated */\n readonly expandEntityReferences: boolean;\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\ninterface UIEvent extends Event {\n readonly detail: number;\n readonly view: Window;\n initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(typeArg: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: 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 toString(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string, base?: string | URL): URL;\n createObjectURL(object: any, options?: ObjectURLOptions): string;\n revokeObjectURL(url: string): void;\n};\n\ninterface URLSearchParams {\n /**\n * Appends a specified key/value pair as a new search parameter.\n */\n append(name: string, value: string): void;\n /**\n * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n */\n delete(name: string): void;\n /**\n * Returns the first value associated to the given search parameter.\n */\n get(name: string): string | null;\n /**\n * Returns all the values association with a given search parameter.\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n */\n has(name: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n */\n set(name: string, value: string): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new (init?: string | URLSearchParams): URLSearchParams;\n};\n\ninterface VRDisplay extends EventTarget {\n readonly capabilities: VRDisplayCapabilities;\n depthFar: number;\n depthNear: number;\n readonly displayId: number;\n readonly displayName: string;\n readonly isConnected: boolean;\n readonly isPresenting: boolean;\n readonly stageParameters: VRStageParameters | null;\n cancelAnimationFrame(handle: number): void;\n exitPresent(): Promise<void>;\n getEyeParameters(whichEye: string): VREyeParameters;\n getFrameData(frameData: VRFrameData): boolean;\n getLayers(): VRLayer[];\n /** @deprecated */\n getPose(): VRPose;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n requestPresent(layers: VRLayer[]): Promise<void>;\n resetPose(): void;\n submitFrame(pose?: VRPose): void;\n}\n\ndeclare var VRDisplay: {\n prototype: VRDisplay;\n new(): VRDisplay;\n};\n\ninterface VRDisplayCapabilities {\n readonly canPresent: boolean;\n readonly hasExternalDisplay: boolean;\n readonly hasOrientation: boolean;\n readonly hasPosition: boolean;\n readonly maxLayers: number;\n}\n\ndeclare var VRDisplayCapabilities: {\n prototype: VRDisplayCapabilities;\n new(): VRDisplayCapabilities;\n};\n\ninterface VRDisplayEvent extends Event {\n readonly display: VRDisplay;\n readonly reason: VRDisplayEventReason | null;\n}\n\ndeclare var VRDisplayEvent: {\n prototype: VRDisplayEvent;\n new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent;\n};\n\ninterface VREyeParameters {\n /** @deprecated */\n readonly fieldOfView: VRFieldOfView;\n readonly offset: Float32Array;\n readonly renderHeight: number;\n readonly renderWidth: number;\n}\n\ndeclare var VREyeParameters: {\n prototype: VREyeParameters;\n new(): VREyeParameters;\n};\n\ninterface VRFieldOfView {\n readonly downDegrees: number;\n readonly leftDegrees: number;\n readonly rightDegrees: number;\n readonly upDegrees: number;\n}\n\ndeclare var VRFieldOfView: {\n prototype: VRFieldOfView;\n new(): VRFieldOfView;\n};\n\ninterface VRFrameData {\n readonly leftProjectionMatrix: Float32Array;\n readonly leftViewMatrix: Float32Array;\n readonly pose: VRPose;\n readonly rightProjectionMatrix: Float32Array;\n readonly rightViewMatrix: Float32Array;\n readonly timestamp: number;\n}\n\ndeclare var VRFrameData: {\n prototype: VRFrameData;\n new(): VRFrameData;\n};\n\ninterface VRPose {\n readonly angularAcceleration: Float32Array | null;\n readonly angularVelocity: Float32Array | null;\n readonly linearAcceleration: Float32Array | null;\n readonly linearVelocity: Float32Array | null;\n readonly orientation: Float32Array | null;\n readonly position: Float32Array | null;\n readonly timestamp: number;\n}\n\ndeclare var VRPose: {\n prototype: VRPose;\n new(): VRPose;\n};\n\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\ninterface VideoPlaybackQuality {\n readonly corruptedVideoFrames: number;\n readonly creationTime: number;\n readonly droppedVideoFrames: number;\n readonly totalFrameDelay: number;\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VideoTrack {\n readonly id: string;\n kind: string;\n readonly label: string;\n language: string;\n selected: boolean;\n readonly sourceBuffer: SourceBuffer;\n}\n\ndeclare var VideoTrack: {\n prototype: VideoTrack;\n new(): VideoTrack;\n};\n\ninterface VideoTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface VideoTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: VideoTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;\n readonly selectedIndex: number;\n getTrackById(id: string): VideoTrack | null;\n item(index: number): VideoTrack;\n addEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: VideoTrack;\n}\n\ndeclare var VideoTrackList: {\n prototype: VideoTrackList;\n new(): VideoTrackList;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number;\n readonly RGB32F_EXT: number;\n readonly RGBA32F_EXT: number;\n readonly UNSIGNED_NORMALIZED_EXT: number;\n}\n\ninterface WEBGL_compressed_texture_astc {\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: number;\n getSupportedProfiles(): string[];\n}\n\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\n}\n\ndeclare var WEBGL_compressed_texture_s3tc: {\n prototype: WEBGL_compressed_texture_s3tc;\n new(): WEBGL_compressed_texture_s3tc;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\n};\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number;\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: number;\n}\n\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_RENDERER_WEBGL: number;\n readonly UNMASKED_VENDOR_WEBGL: number;\n}\n\ndeclare var WEBGL_debug_renderer_info: {\n prototype: WEBGL_debug_renderer_info;\n new(): WEBGL_debug_renderer_info;\n readonly UNMASKED_RENDERER_WEBGL: number;\n readonly UNMASKED_VENDOR_WEBGL: number;\n};\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: number;\n}\n\ndeclare var WEBGL_depth_texture: {\n prototype: WEBGL_depth_texture;\n new(): WEBGL_depth_texture;\n readonly UNSIGNED_INT_24_8_WEBGL: number;\n};\n\ninterface WEBGL_draw_buffers {\n readonly COLOR_ATTACHMENT0_WEBGL: number;\n readonly COLOR_ATTACHMENT10_WEBGL: number;\n readonly COLOR_ATTACHMENT11_WEBGL: number;\n readonly COLOR_ATTACHMENT12_WEBGL: number;\n readonly COLOR_ATTACHMENT13_WEBGL: number;\n readonly COLOR_ATTACHMENT14_WEBGL: number;\n readonly COLOR_ATTACHMENT15_WEBGL: number;\n readonly COLOR_ATTACHMENT1_WEBGL: number;\n readonly COLOR_ATTACHMENT2_WEBGL: number;\n readonly COLOR_ATTACHMENT3_WEBGL: number;\n readonly COLOR_ATTACHMENT4_WEBGL: number;\n readonly COLOR_ATTACHMENT5_WEBGL: number;\n readonly COLOR_ATTACHMENT6_WEBGL: number;\n readonly COLOR_ATTACHMENT7_WEBGL: number;\n readonly COLOR_ATTACHMENT8_WEBGL: number;\n readonly COLOR_ATTACHMENT9_WEBGL: number;\n readonly DRAW_BUFFER0_WEBGL: number;\n readonly DRAW_BUFFER10_WEBGL: number;\n readonly DRAW_BUFFER11_WEBGL: number;\n readonly DRAW_BUFFER12_WEBGL: number;\n readonly DRAW_BUFFER13_WEBGL: number;\n readonly DRAW_BUFFER14_WEBGL: number;\n readonly DRAW_BUFFER15_WEBGL: number;\n readonly DRAW_BUFFER1_WEBGL: number;\n readonly DRAW_BUFFER2_WEBGL: number;\n readonly DRAW_BUFFER3_WEBGL: number;\n readonly DRAW_BUFFER4_WEBGL: number;\n readonly DRAW_BUFFER5_WEBGL: number;\n readonly DRAW_BUFFER6_WEBGL: number;\n readonly DRAW_BUFFER7_WEBGL: number;\n readonly DRAW_BUFFER8_WEBGL: number;\n readonly DRAW_BUFFER9_WEBGL: number;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: number;\n readonly MAX_DRAW_BUFFERS_WEBGL: number;\n drawBuffersWEBGL(buffers: number[]): void;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\ninterface WaveShaperNode extends AudioNode {\n curve: Float32Array | null;\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(): WaveShaperNode;\n};\n\ninterface WebAuthentication {\n getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;\n makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;\n}\n\ndeclare var WebAuthentication: {\n prototype: WebAuthentication;\n new(): WebAuthentication;\n};\n\ninterface WebAuthnAssertion {\n readonly authenticatorData: ArrayBuffer;\n readonly clientData: ArrayBuffer;\n readonly credential: ScopedCredential;\n readonly signature: ArrayBuffer;\n}\n\ndeclare var WebAuthnAssertion: {\n prototype: WebAuthnAssertion;\n new(): WebAuthnAssertion;\n};\n\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: number;\n readonly type: number;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\ninterface WebGLBuffer extends WebGLObject {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(typeArg: string, eventInitDict?: WebGLContextEventInit): WebGLContextEvent;\n};\n\ninterface WebGLFramebuffer extends WebGLObject {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\ninterface WebGLObject {\n}\n\ndeclare var WebGLObject: {\n prototype: WebGLObject;\n new(): WebGLObject;\n};\n\ninterface WebGLProgram extends WebGLObject {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLRenderbuffer extends WebGLObject {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\ninterface WebGLRenderingContext {\n readonly canvas: HTMLCanvasElement;\n readonly drawingBufferHeight: number;\n readonly drawingBufferWidth: number;\n activeTexture(texture: number): void;\n attachShader(program: WebGLProgram | null, shader: WebGLShader | null): void;\n bindAttribLocation(program: WebGLProgram | null, index: number, name: string): void;\n bindBuffer(target: number, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: number, texture: WebGLTexture | null): void;\n blendColor(red: number, green: number, blue: number, alpha: number): void;\n blendEquation(mode: number): void;\n blendEquationSeparate(modeRGB: number, modeAlpha: number): void;\n blendFunc(sfactor: number, dfactor: number): void;\n blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void;\n bufferData(target: number, size: number | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, usage: number): void;\n bufferSubData(target: number, offset: number, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): void;\n checkFramebufferStatus(target: number): number;\n clear(mask: number): void;\n clearColor(red: number, green: number, blue: number, alpha: number): void;\n clearDepth(depth: number): void;\n clearStencil(s: number): void;\n colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void;\n compileShader(shader: WebGLShader | null): void;\n compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void;\n copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: number): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: number): 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: number): void;\n depthMask(flag: boolean): void;\n depthRange(zNear: number, zFar: number): void;\n detachShader(program: WebGLProgram | null, shader: WebGLShader | null): void;\n disable(cap: number): void;\n disableVertexAttribArray(index: number): void;\n drawArrays(mode: number, first: number, count: number): void;\n drawElements(mode: number, count: number, type: number, offset: number): void;\n enable(cap: number): void;\n enableVertexAttribArray(index: number): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture | null, level: number): void;\n frontFace(mode: number): void;\n generateMipmap(target: number): void;\n getActiveAttrib(program: WebGLProgram | null, index: number): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram | null, index: number): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram | null, name: string): number;\n getBufferParameter(target: number, pname: number): any;\n getContextAttributes(): WebGLContextAttributes;\n getError(): number;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | 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: "OES_vertex_array_object"): OES_vertex_array_object | 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_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(extensionName: string): any;\n getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any;\n getParameter(pname: number): any;\n getProgramInfoLog(program: WebGLProgram | null): string | null;\n getProgramParameter(program: WebGLProgram | null, pname: number): any;\n getRenderbufferParameter(target: number, pname: number): any;\n getShaderInfoLog(shader: WebGLShader | null): string | null;\n getShaderParameter(shader: WebGLShader | null, pname: number): any;\n getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader | null): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: number, pname: number): any;\n getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | null): any;\n getUniformLocation(program: WebGLProgram | null, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: number, pname: number): any;\n getVertexAttribOffset(index: number, pname: number): number;\n hint(target: number, mode: number): void;\n isBuffer(buffer: WebGLBuffer | null): boolean;\n isContextLost(): boolean;\n isEnabled(cap: number): boolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;\n isProgram(program: WebGLProgram | null): boolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;\n isShader(shader: WebGLShader | null): boolean;\n isTexture(texture: WebGLTexture | null): boolean;\n lineWidth(width: number): void;\n linkProgram(program: WebGLProgram | null): void;\n pixelStorei(pname: number, param: number | boolean): void;\n polygonOffset(factor: number, units: number): void;\n readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n renderbufferStorage(target: number, internalformat: number, width: number, height: number): void;\n sampleCoverage(value: number, invert: boolean): void;\n scissor(x: number, y: number, width: number, height: number): void;\n shaderSource(shader: WebGLShader | null, source: string): void;\n stencilFunc(func: number, ref: number, mask: number): void;\n stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void;\n stencilMask(mask: number): void;\n stencilMaskSeparate(face: number, mask: number): void;\n stencilOp(fail: number, zfail: number, zpass: number): void;\n stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void;\n texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView | null): void;\n texImage2D(target: number, level: number, internalformat: number, format: number, type: number, pixels: ImageBitmap | ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;\n texParameterf(target: number, pname: number, param: number): void;\n texParameteri(target: number, pname: number, param: number): void;\n texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels: ImageBitmap | ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;\n uniform1f(location: WebGLUniformLocation | null, x: number): void;\n uniform1fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform1i(location: WebGLUniformLocation | null, x: number): void;\n uniform1iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniform2f(location: WebGLUniformLocation | null, x: number, y: number): void;\n uniform2fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform2i(location: WebGLUniformLocation | null, x: number, y: number): void;\n uniform2iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;\n uniform3fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;\n uniform3iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;\n uniform4fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;\n uniform4iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;\n uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;\n uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram | null): void;\n vertexAttrib1f(indx: number, x: number): void;\n vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;\n vertexAttrib2f(indx: number, x: number, y: number): void;\n vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;\n vertexAttrib3f(indx: number, x: number, y: number, z: number): void;\n vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;\n vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): void;\n vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;\n vertexAttribPointer(indx: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void;\n viewport(x: number, y: number, width: number, height: number): void;\n readonly ACTIVE_ATTRIBUTES: number;\n readonly ACTIVE_TEXTURE: number;\n readonly ACTIVE_UNIFORMS: number;\n readonly ALIASED_LINE_WIDTH_RANGE: number;\n readonly ALIASED_POINT_SIZE_RANGE: number;\n readonly ALPHA: number;\n readonly ALPHA_BITS: number;\n readonly ALWAYS: number;\n readonly ARRAY_BUFFER: number;\n readonly ARRAY_BUFFER_BINDING: number;\n readonly ATTACHED_SHADERS: number;\n readonly BACK: number;\n readonly BLEND: number;\n readonly BLEND_COLOR: number;\n readonly BLEND_DST_ALPHA: number;\n readonly BLEND_DST_RGB: number;\n readonly BLEND_EQUATION: number;\n readonly BLEND_EQUATION_ALPHA: number;\n readonly BLEND_EQUATION_RGB: number;\n readonly BLEND_SRC_ALPHA: number;\n readonly BLEND_SRC_RGB: number;\n readonly BLUE_BITS: number;\n readonly BOOL: number;\n readonly BOOL_VEC2: number;\n readonly BOOL_VEC3: number;\n readonly BOOL_VEC4: number;\n readonly BROWSER_DEFAULT_WEBGL: number;\n readonly BUFFER_SIZE: number;\n readonly BUFFER_USAGE: number;\n readonly BYTE: number;\n readonly CCW: number;\n readonly CLAMP_TO_EDGE: number;\n readonly COLOR_ATTACHMENT0: number;\n readonly COLOR_BUFFER_BIT: number;\n readonly COLOR_CLEAR_VALUE: number;\n readonly COLOR_WRITEMASK: number;\n readonly COMPILE_STATUS: number;\n readonly COMPRESSED_TEXTURE_FORMATS: number;\n readonly CONSTANT_ALPHA: number;\n readonly CONSTANT_COLOR: number;\n readonly CONTEXT_LOST_WEBGL: number;\n readonly CULL_FACE: number;\n readonly CULL_FACE_MODE: number;\n readonly CURRENT_PROGRAM: number;\n readonly CURRENT_VERTEX_ATTRIB: number;\n readonly CW: number;\n readonly DECR: number;\n readonly DECR_WRAP: number;\n readonly DELETE_STATUS: number;\n readonly DEPTH_ATTACHMENT: number;\n readonly DEPTH_BITS: number;\n readonly DEPTH_BUFFER_BIT: number;\n readonly DEPTH_CLEAR_VALUE: number;\n readonly DEPTH_COMPONENT: number;\n readonly DEPTH_COMPONENT16: number;\n readonly DEPTH_FUNC: number;\n readonly DEPTH_RANGE: number;\n readonly DEPTH_STENCIL: number;\n readonly DEPTH_STENCIL_ATTACHMENT: number;\n readonly DEPTH_TEST: number;\n readonly DEPTH_WRITEMASK: number;\n readonly DITHER: number;\n readonly DONT_CARE: number;\n readonly DST_ALPHA: number;\n readonly DST_COLOR: number;\n readonly DYNAMIC_DRAW: number;\n readonly ELEMENT_ARRAY_BUFFER: number;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: number;\n readonly EQUAL: number;\n readonly FASTEST: number;\n readonly FLOAT: number;\n readonly FLOAT_MAT2: number;\n readonly FLOAT_MAT3: number;\n readonly FLOAT_MAT4: number;\n readonly FLOAT_VEC2: number;\n readonly FLOAT_VEC3: number;\n readonly FLOAT_VEC4: number;\n readonly FRAGMENT_SHADER: number;\n readonly FRAMEBUFFER: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;\n readonly FRAMEBUFFER_BINDING: number;\n readonly FRAMEBUFFER_COMPLETE: number;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;\n readonly FRAMEBUFFER_UNSUPPORTED: number;\n readonly FRONT: number;\n readonly FRONT_AND_BACK: number;\n readonly FRONT_FACE: number;\n readonly FUNC_ADD: number;\n readonly FUNC_REVERSE_SUBTRACT: number;\n readonly FUNC_SUBTRACT: number;\n readonly GENERATE_MIPMAP_HINT: number;\n readonly GEQUAL: number;\n readonly GREATER: number;\n readonly GREEN_BITS: number;\n readonly HIGH_FLOAT: number;\n readonly HIGH_INT: number;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: number;\n readonly INCR: number;\n readonly INCR_WRAP: number;\n readonly INT: number;\n readonly INT_VEC2: number;\n readonly INT_VEC3: number;\n readonly INT_VEC4: number;\n readonly INVALID_ENUM: number;\n readonly INVALID_FRAMEBUFFER_OPERATION: number;\n readonly INVALID_OPERATION: number;\n readonly INVALID_VALUE: number;\n readonly INVERT: number;\n readonly KEEP: number;\n readonly LEQUAL: number;\n readonly LESS: number;\n readonly LINEAR: number;\n readonly LINEAR_MIPMAP_LINEAR: number;\n readonly LINEAR_MIPMAP_NEAREST: number;\n readonly LINES: number;\n readonly LINE_LOOP: number;\n readonly LINE_STRIP: number;\n readonly LINE_WIDTH: number;\n readonly LINK_STATUS: number;\n readonly LOW_FLOAT: number;\n readonly LOW_INT: number;\n readonly LUMINANCE: number;\n readonly LUMINANCE_ALPHA: number;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;\n readonly MAX_RENDERBUFFER_SIZE: number;\n readonly MAX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_TEXTURE_SIZE: number;\n readonly MAX_VARYING_VECTORS: number;\n readonly MAX_VERTEX_ATTRIBS: number;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_VERTEX_UNIFORM_VECTORS: number;\n readonly MAX_VIEWPORT_DIMS: number;\n readonly MEDIUM_FLOAT: number;\n readonly MEDIUM_INT: number;\n readonly MIRRORED_REPEAT: number;\n readonly NEAREST: number;\n readonly NEAREST_MIPMAP_LINEAR: number;\n readonly NEAREST_MIPMAP_NEAREST: number;\n readonly NEVER: number;\n readonly NICEST: number;\n readonly NONE: number;\n readonly NOTEQUAL: number;\n readonly NO_ERROR: number;\n readonly ONE: number;\n readonly ONE_MINUS_CONSTANT_ALPHA: number;\n readonly ONE_MINUS_CONSTANT_COLOR: number;\n readonly ONE_MINUS_DST_ALPHA: number;\n readonly ONE_MINUS_DST_COLOR: number;\n readonly ONE_MINUS_SRC_ALPHA: number;\n readonly ONE_MINUS_SRC_COLOR: number;\n readonly OUT_OF_MEMORY: number;\n readonly PACK_ALIGNMENT: number;\n readonly POINTS: number;\n readonly POLYGON_OFFSET_FACTOR: number;\n readonly POLYGON_OFFSET_FILL: number;\n readonly POLYGON_OFFSET_UNITS: number;\n readonly RED_BITS: number;\n readonly RENDERBUFFER: number;\n readonly RENDERBUFFER_ALPHA_SIZE: number;\n readonly RENDERBUFFER_BINDING: number;\n readonly RENDERBUFFER_BLUE_SIZE: number;\n readonly RENDERBUFFER_DEPTH_SIZE: number;\n readonly RENDERBUFFER_GREEN_SIZE: number;\n readonly RENDERBUFFER_HEIGHT: number;\n readonly RENDERBUFFER_INTERNAL_FORMAT: number;\n readonly RENDERBUFFER_RED_SIZE: number;\n readonly RENDERBUFFER_STENCIL_SIZE: number;\n readonly RENDERBUFFER_WIDTH: number;\n readonly RENDERER: number;\n readonly REPEAT: number;\n readonly REPLACE: number;\n readonly RGB: number;\n readonly RGB565: number;\n readonly RGB5_A1: number;\n readonly RGBA: number;\n readonly RGBA4: number;\n readonly SAMPLER_2D: number;\n readonly SAMPLER_CUBE: number;\n readonly SAMPLES: number;\n readonly SAMPLE_ALPHA_TO_COVERAGE: number;\n readonly SAMPLE_BUFFERS: number;\n readonly SAMPLE_COVERAGE: number;\n readonly SAMPLE_COVERAGE_INVERT: number;\n readonly SAMPLE_COVERAGE_VALUE: number;\n readonly SCISSOR_BOX: number;\n readonly SCISSOR_TEST: number;\n readonly SHADER_TYPE: number;\n readonly SHADING_LANGUAGE_VERSION: number;\n readonly SHORT: number;\n readonly SRC_ALPHA: number;\n readonly SRC_ALPHA_SATURATE: number;\n readonly SRC_COLOR: number;\n readonly STATIC_DRAW: number;\n readonly STENCIL_ATTACHMENT: number;\n readonly STENCIL_BACK_FAIL: number;\n readonly STENCIL_BACK_FUNC: number;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: number;\n readonly STENCIL_BACK_REF: number;\n readonly STENCIL_BACK_VALUE_MASK: number;\n readonly STENCIL_BACK_WRITEMASK: number;\n readonly STENCIL_BITS: number;\n readonly STENCIL_BUFFER_BIT: number;\n readonly STENCIL_CLEAR_VALUE: number;\n readonly STENCIL_FAIL: number;\n readonly STENCIL_FUNC: number;\n readonly STENCIL_INDEX: number;\n readonly STENCIL_INDEX8: number;\n readonly STENCIL_PASS_DEPTH_FAIL: number;\n readonly STENCIL_PASS_DEPTH_PASS: number;\n readonly STENCIL_REF: number;\n readonly STENCIL_TEST: number;\n readonly STENCIL_VALUE_MASK: number;\n readonly STENCIL_WRITEMASK: number;\n readonly STREAM_DRAW: number;\n readonly SUBPIXEL_BITS: number;\n readonly TEXTURE: number;\n readonly TEXTURE0: number;\n readonly TEXTURE1: number;\n readonly TEXTURE10: number;\n readonly TEXTURE11: number;\n readonly TEXTURE12: number;\n readonly TEXTURE13: number;\n readonly TEXTURE14: number;\n readonly TEXTURE15: number;\n readonly TEXTURE16: number;\n readonly TEXTURE17: number;\n readonly TEXTURE18: number;\n readonly TEXTURE19: number;\n readonly TEXTURE2: number;\n readonly TEXTURE20: number;\n readonly TEXTURE21: number;\n readonly TEXTURE22: number;\n readonly TEXTURE23: number;\n readonly TEXTURE24: number;\n readonly TEXTURE25: number;\n readonly TEXTURE26: number;\n readonly TEXTURE27: number;\n readonly TEXTURE28: number;\n readonly TEXTURE29: number;\n readonly TEXTURE3: number;\n readonly TEXTURE30: number;\n readonly TEXTURE31: number;\n readonly TEXTURE4: number;\n readonly TEXTURE5: number;\n readonly TEXTURE6: number;\n readonly TEXTURE7: number;\n readonly TEXTURE8: number;\n readonly TEXTURE9: number;\n readonly TEXTURE_2D: number;\n readonly TEXTURE_BINDING_2D: number;\n readonly TEXTURE_BINDING_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;\n readonly TEXTURE_MAG_FILTER: number;\n readonly TEXTURE_MIN_FILTER: number;\n readonly TEXTURE_WRAP_S: number;\n readonly TEXTURE_WRAP_T: number;\n readonly TRIANGLES: number;\n readonly TRIANGLE_FAN: number;\n readonly TRIANGLE_STRIP: number;\n readonly UNPACK_ALIGNMENT: number;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;\n readonly UNPACK_FLIP_Y_WEBGL: number;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;\n readonly UNSIGNED_BYTE: number;\n readonly UNSIGNED_INT: number;\n readonly UNSIGNED_SHORT: number;\n readonly UNSIGNED_SHORT_4_4_4_4: number;\n readonly UNSIGNED_SHORT_5_5_5_1: number;\n readonly UNSIGNED_SHORT_5_6_5: number;\n readonly VALIDATE_STATUS: number;\n readonly VENDOR: number;\n readonly VERSION: number;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: number;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: number;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: number;\n readonly VERTEX_SHADER: number;\n readonly VIEWPORT: number;\n readonly ZERO: number;\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly ACTIVE_ATTRIBUTES: number;\n readonly ACTIVE_TEXTURE: number;\n readonly ACTIVE_UNIFORMS: number;\n readonly ALIASED_LINE_WIDTH_RANGE: number;\n readonly ALIASED_POINT_SIZE_RANGE: number;\n readonly ALPHA: number;\n readonly ALPHA_BITS: number;\n readonly ALWAYS: number;\n readonly ARRAY_BUFFER: number;\n readonly ARRAY_BUFFER_BINDING: number;\n readonly ATTACHED_SHADERS: number;\n readonly BACK: number;\n readonly BLEND: number;\n readonly BLEND_COLOR: number;\n readonly BLEND_DST_ALPHA: number;\n readonly BLEND_DST_RGB: number;\n readonly BLEND_EQUATION: number;\n readonly BLEND_EQUATION_ALPHA: number;\n readonly BLEND_EQUATION_RGB: number;\n readonly BLEND_SRC_ALPHA: number;\n readonly BLEND_SRC_RGB: number;\n readonly BLUE_BITS: number;\n readonly BOOL: number;\n readonly BOOL_VEC2: number;\n readonly BOOL_VEC3: number;\n readonly BOOL_VEC4: number;\n readonly BROWSER_DEFAULT_WEBGL: number;\n readonly BUFFER_SIZE: number;\n readonly BUFFER_USAGE: number;\n readonly BYTE: number;\n readonly CCW: number;\n readonly CLAMP_TO_EDGE: number;\n readonly COLOR_ATTACHMENT0: number;\n readonly COLOR_BUFFER_BIT: number;\n readonly COLOR_CLEAR_VALUE: number;\n readonly COLOR_WRITEMASK: number;\n readonly COMPILE_STATUS: number;\n readonly COMPRESSED_TEXTURE_FORMATS: number;\n readonly CONSTANT_ALPHA: number;\n readonly CONSTANT_COLOR: number;\n readonly CONTEXT_LOST_WEBGL: number;\n readonly CULL_FACE: number;\n readonly CULL_FACE_MODE: number;\n readonly CURRENT_PROGRAM: number;\n readonly CURRENT_VERTEX_ATTRIB: number;\n readonly CW: number;\n readonly DECR: number;\n readonly DECR_WRAP: number;\n readonly DELETE_STATUS: number;\n readonly DEPTH_ATTACHMENT: number;\n readonly DEPTH_BITS: number;\n readonly DEPTH_BUFFER_BIT: number;\n readonly DEPTH_CLEAR_VALUE: number;\n readonly DEPTH_COMPONENT: number;\n readonly DEPTH_COMPONENT16: number;\n readonly DEPTH_FUNC: number;\n readonly DEPTH_RANGE: number;\n readonly DEPTH_STENCIL: number;\n readonly DEPTH_STENCIL_ATTACHMENT: number;\n readonly DEPTH_TEST: number;\n readonly DEPTH_WRITEMASK: number;\n readonly DITHER: number;\n readonly DONT_CARE: number;\n readonly DST_ALPHA: number;\n readonly DST_COLOR: number;\n readonly DYNAMIC_DRAW: number;\n readonly ELEMENT_ARRAY_BUFFER: number;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: number;\n readonly EQUAL: number;\n readonly FASTEST: number;\n readonly FLOAT: number;\n readonly FLOAT_MAT2: number;\n readonly FLOAT_MAT3: number;\n readonly FLOAT_MAT4: number;\n readonly FLOAT_VEC2: number;\n readonly FLOAT_VEC3: number;\n readonly FLOAT_VEC4: number;\n readonly FRAGMENT_SHADER: number;\n readonly FRAMEBUFFER: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;\n readonly FRAMEBUFFER_BINDING: number;\n readonly FRAMEBUFFER_COMPLETE: number;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;\n readonly FRAMEBUFFER_UNSUPPORTED: number;\n readonly FRONT: number;\n readonly FRONT_AND_BACK: number;\n readonly FRONT_FACE: number;\n readonly FUNC_ADD: number;\n readonly FUNC_REVERSE_SUBTRACT: number;\n readonly FUNC_SUBTRACT: number;\n readonly GENERATE_MIPMAP_HINT: number;\n readonly GEQUAL: number;\n readonly GREATER: number;\n readonly GREEN_BITS: number;\n readonly HIGH_FLOAT: number;\n readonly HIGH_INT: number;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: number;\n readonly INCR: number;\n readonly INCR_WRAP: number;\n readonly INT: number;\n readonly INT_VEC2: number;\n readonly INT_VEC3: number;\n readonly INT_VEC4: number;\n readonly INVALID_ENUM: number;\n readonly INVALID_FRAMEBUFFER_OPERATION: number;\n readonly INVALID_OPERATION: number;\n readonly INVALID_VALUE: number;\n readonly INVERT: number;\n readonly KEEP: number;\n readonly LEQUAL: number;\n readonly LESS: number;\n readonly LINEAR: number;\n readonly LINEAR_MIPMAP_LINEAR: number;\n readonly LINEAR_MIPMAP_NEAREST: number;\n readonly LINES: number;\n readonly LINE_LOOP: number;\n readonly LINE_STRIP: number;\n readonly LINE_WIDTH: number;\n readonly LINK_STATUS: number;\n readonly LOW_FLOAT: number;\n readonly LOW_INT: number;\n readonly LUMINANCE: number;\n readonly LUMINANCE_ALPHA: number;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;\n readonly MAX_RENDERBUFFER_SIZE: number;\n readonly MAX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_TEXTURE_SIZE: number;\n readonly MAX_VARYING_VECTORS: number;\n readonly MAX_VERTEX_ATTRIBS: number;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_VERTEX_UNIFORM_VECTORS: number;\n readonly MAX_VIEWPORT_DIMS: number;\n readonly MEDIUM_FLOAT: number;\n readonly MEDIUM_INT: number;\n readonly MIRRORED_REPEAT: number;\n readonly NEAREST: number;\n readonly NEAREST_MIPMAP_LINEAR: number;\n readonly NEAREST_MIPMAP_NEAREST: number;\n readonly NEVER: number;\n readonly NICEST: number;\n readonly NONE: number;\n readonly NOTEQUAL: number;\n readonly NO_ERROR: number;\n readonly ONE: number;\n readonly ONE_MINUS_CONSTANT_ALPHA: number;\n readonly ONE_MINUS_CONSTANT_COLOR: number;\n readonly ONE_MINUS_DST_ALPHA: number;\n readonly ONE_MINUS_DST_COLOR: number;\n readonly ONE_MINUS_SRC_ALPHA: number;\n readonly ONE_MINUS_SRC_COLOR: number;\n readonly OUT_OF_MEMORY: number;\n readonly PACK_ALIGNMENT: number;\n readonly POINTS: number;\n readonly POLYGON_OFFSET_FACTOR: number;\n readonly POLYGON_OFFSET_FILL: number;\n readonly POLYGON_OFFSET_UNITS: number;\n readonly RED_BITS: number;\n readonly RENDERBUFFER: number;\n readonly RENDERBUFFER_ALPHA_SIZE: number;\n readonly RENDERBUFFER_BINDING: number;\n readonly RENDERBUFFER_BLUE_SIZE: number;\n readonly RENDERBUFFER_DEPTH_SIZE: number;\n readonly RENDERBUFFER_GREEN_SIZE: number;\n readonly RENDERBUFFER_HEIGHT: number;\n readonly RENDERBUFFER_INTERNAL_FORMAT: number;\n readonly RENDERBUFFER_RED_SIZE: number;\n readonly RENDERBUFFER_STENCIL_SIZE: number;\n readonly RENDERBUFFER_WIDTH: number;\n readonly RENDERER: number;\n readonly REPEAT: number;\n readonly REPLACE: number;\n readonly RGB: number;\n readonly RGB565: number;\n readonly RGB5_A1: number;\n readonly RGBA: number;\n readonly RGBA4: number;\n readonly SAMPLER_2D: number;\n readonly SAMPLER_CUBE: number;\n readonly SAMPLES: number;\n readonly SAMPLE_ALPHA_TO_COVERAGE: number;\n readonly SAMPLE_BUFFERS: number;\n readonly SAMPLE_COVERAGE: number;\n readonly SAMPLE_COVERAGE_INVERT: number;\n readonly SAMPLE_COVERAGE_VALUE: number;\n readonly SCISSOR_BOX: number;\n readonly SCISSOR_TEST: number;\n readonly SHADER_TYPE: number;\n readonly SHADING_LANGUAGE_VERSION: number;\n readonly SHORT: number;\n readonly SRC_ALPHA: number;\n readonly SRC_ALPHA_SATURATE: number;\n readonly SRC_COLOR: number;\n readonly STATIC_DRAW: number;\n readonly STENCIL_ATTACHMENT: number;\n readonly STENCIL_BACK_FAIL: number;\n readonly STENCIL_BACK_FUNC: number;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: number;\n readonly STENCIL_BACK_REF: number;\n readonly STENCIL_BACK_VALUE_MASK: number;\n readonly STENCIL_BACK_WRITEMASK: number;\n readonly STENCIL_BITS: number;\n readonly STENCIL_BUFFER_BIT: number;\n readonly STENCIL_CLEAR_VALUE: number;\n readonly STENCIL_FAIL: number;\n readonly STENCIL_FUNC: number;\n readonly STENCIL_INDEX: number;\n readonly STENCIL_INDEX8: number;\n readonly STENCIL_PASS_DEPTH_FAIL: number;\n readonly STENCIL_PASS_DEPTH_PASS: number;\n readonly STENCIL_REF: number;\n readonly STENCIL_TEST: number;\n readonly STENCIL_VALUE_MASK: number;\n readonly STENCIL_WRITEMASK: number;\n readonly STREAM_DRAW: number;\n readonly SUBPIXEL_BITS: number;\n readonly TEXTURE: number;\n readonly TEXTURE0: number;\n readonly TEXTURE1: number;\n readonly TEXTURE10: number;\n readonly TEXTURE11: number;\n readonly TEXTURE12: number;\n readonly TEXTURE13: number;\n readonly TEXTURE14: number;\n readonly TEXTURE15: number;\n readonly TEXTURE16: number;\n readonly TEXTURE17: number;\n readonly TEXTURE18: number;\n readonly TEXTURE19: number;\n readonly TEXTURE2: number;\n readonly TEXTURE20: number;\n readonly TEXTURE21: number;\n readonly TEXTURE22: number;\n readonly TEXTURE23: number;\n readonly TEXTURE24: number;\n readonly TEXTURE25: number;\n readonly TEXTURE26: number;\n readonly TEXTURE27: number;\n readonly TEXTURE28: number;\n readonly TEXTURE29: number;\n readonly TEXTURE3: number;\n readonly TEXTURE30: number;\n readonly TEXTURE31: number;\n readonly TEXTURE4: number;\n readonly TEXTURE5: number;\n readonly TEXTURE6: number;\n readonly TEXTURE7: number;\n readonly TEXTURE8: number;\n readonly TEXTURE9: number;\n readonly TEXTURE_2D: number;\n readonly TEXTURE_BINDING_2D: number;\n readonly TEXTURE_BINDING_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;\n readonly TEXTURE_MAG_FILTER: number;\n readonly TEXTURE_MIN_FILTER: number;\n readonly TEXTURE_WRAP_S: number;\n readonly TEXTURE_WRAP_T: number;\n readonly TRIANGLES: number;\n readonly TRIANGLE_FAN: number;\n readonly TRIANGLE_STRIP: number;\n readonly UNPACK_ALIGNMENT: number;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;\n readonly UNPACK_FLIP_Y_WEBGL: number;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;\n readonly UNSIGNED_BYTE: number;\n readonly UNSIGNED_INT: number;\n readonly UNSIGNED_SHORT: number;\n readonly UNSIGNED_SHORT_4_4_4_4: number;\n readonly UNSIGNED_SHORT_5_5_5_1: number;\n readonly UNSIGNED_SHORT_5_6_5: number;\n readonly VALIDATE_STATUS: number;\n readonly VENDOR: number;\n readonly VERSION: number;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: number;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: number;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: number;\n readonly VERTEX_SHADER: number;\n readonly VIEWPORT: number;\n readonly ZERO: number;\n};\n\ninterface WebGLShader extends WebGLObject {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\ninterface WebGLShaderPrecisionFormat {\n readonly precision: number;\n readonly rangeMax: number;\n readonly rangeMin: number;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLTexture extends WebGLObject {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebKitCSSMatrix {\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 inverse(): WebKitCSSMatrix;\n multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;\n rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;\n rotateAxisAngle(x: number, y: number, z: number, angle: number): WebKitCSSMatrix;\n scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;\n setMatrixValue(value: string): void;\n skewX(angle: number): WebKitCSSMatrix;\n skewY(angle: number): WebKitCSSMatrix;\n toString(): string;\n translate(x: number, y: number, z?: number): WebKitCSSMatrix;\n}\n\ndeclare var WebKitCSSMatrix: {\n prototype: WebKitCSSMatrix;\n new(text?: string): WebKitCSSMatrix;\n};\n\ninterface WebKitDirectoryEntry extends WebKitEntry {\n createReader(): WebKitDirectoryReader;\n}\n\ndeclare var WebKitDirectoryEntry: {\n prototype: WebKitDirectoryEntry;\n new(): WebKitDirectoryEntry;\n};\n\ninterface WebKitDirectoryReader {\n readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void;\n}\n\ndeclare var WebKitDirectoryReader: {\n prototype: WebKitDirectoryReader;\n new(): WebKitDirectoryReader;\n};\n\ninterface WebKitEntry {\n readonly filesystem: WebKitFileSystem;\n readonly fullPath: string;\n readonly isDirectory: boolean;\n readonly isFile: boolean;\n readonly name: string;\n}\n\ndeclare var WebKitEntry: {\n prototype: WebKitEntry;\n new(): WebKitEntry;\n};\n\ninterface WebKitFileEntry extends WebKitEntry {\n file(successCallback: WebKitFileCallback, errorCallback?: WebKitErrorCallback): void;\n}\n\ndeclare var WebKitFileEntry: {\n prototype: WebKitFileEntry;\n new(): WebKitFileEntry;\n};\n\ninterface WebKitFileSystem {\n readonly name: string;\n readonly root: WebKitDirectoryEntry;\n}\n\ndeclare var WebKitFileSystem: {\n prototype: WebKitFileSystem;\n new(): WebKitFileSystem;\n};\n\ninterface WebKitPoint {\n x: number;\n y: number;\n}\n\ndeclare var WebKitPoint: {\n prototype: WebKitPoint;\n new(x?: number, y?: number): WebKitPoint;\n};\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface WebSocket extends EventTarget {\n binaryType: BinaryType;\n readonly bufferedAmount: number;\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 readonly protocol: string;\n readonly readyState: number;\n readonly url: string;\n close(code?: number, reason?: string): void;\n send(data: string | ArrayBuffer | 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, protocols?: string | string[]): WebSocket;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\ninterface WheelEvent extends MouseEvent {\n readonly deltaMode: number;\n readonly deltaX: number;\n readonly deltaY: number;\n readonly deltaZ: number;\n readonly wheelDelta: number;\n readonly wheelDeltaX: number;\n readonly wheelDeltaY: number;\n getCurrentPoint(element: Element): void;\n initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;\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(typeArg: 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 {\n "abort": UIEvent;\n "beforeunload": BeforeUnloadEvent;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "compassneedscalibration": Event;\n "contextmenu": PointerEvent;\n "dblclick": MouseEvent;\n "devicelight": DeviceLightEvent;\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\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 "hashchange": HashChangeEvent;\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 "message": MessageEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "mousewheel": WheelEvent;\n "MSGestureChange": Event;\n "MSGestureDoubleTap": Event;\n "MSGestureEnd": Event;\n "MSGestureHold": Event;\n "MSGestureStart": Event;\n "MSGestureTap": Event;\n "MSInertiaStart": Event;\n "MSPointerCancel": Event;\n "MSPointerDown": Event;\n "MSPointerEnter": Event;\n "MSPointerLeave": Event;\n "MSPointerMove": Event;\n "MSPointerOut": Event;\n "MSPointerOver": Event;\n "MSPointerUp": Event;\n "offline": Event;\n "online": Event;\n "orientationchange": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "popstate": PopStateEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "readystatechange": ProgressEvent;\n "reset": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n "seeked": Event;\n "seeking": Event;\n "select": UIEvent;\n "stalled": Event;\n "storage": StorageEvent;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "touchcancel": Event;\n "touchend": Event;\n "touchmove": Event;\n "touchstart": Event;\n "unload": Event;\n "volumechange": Event;\n "vrdisplayactivate": Event;\n "vrdisplayblur": Event;\n "vrdisplayconnect": Event;\n "vrdisplaydeactivate": Event;\n "vrdisplaydisconnect": Event;\n "vrdisplayfocus": Event;\n "vrdisplaypointerrestricted": Event;\n "vrdisplaypointerunrestricted": Event;\n "vrdisplaypresentchange": Event;\n "waiting": Event;\n}\n\ninterface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch {\n Blob: typeof Blob;\n URL: typeof URL;\n URLSearchParams: typeof URLSearchParams;\n readonly applicationCache: ApplicationCache;\n readonly caches: CacheStorage;\n readonly clientInformation: Navigator;\n readonly closed: boolean;\n readonly crypto: Crypto;\n customElements: CustomElementRegistry;\n defaultStatus: string;\n readonly devicePixelRatio: number;\n readonly doNotTrack: string;\n readonly document: Document;\n event: Event | undefined;\n readonly external: External;\n readonly frameElement: Element;\n readonly frames: Window;\n readonly history: History;\n readonly innerHeight: number;\n readonly innerWidth: number;\n readonly isSecureContext: boolean;\n readonly length: number;\n location: Location;\n readonly locationbar: BarProp;\n readonly menubar: BarProp;\n readonly msContentScript: ExtensionScriptApis;\n readonly msCredentials: MSCredentials;\n name: string;\n readonly navigator: Navigator;\n offscreenBuffering: string | boolean;\n onabort: ((this: Window, ev: UIEvent) => any) | null;\n onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\n onblur: ((this: Window, ev: FocusEvent) => any) | null;\n oncanplay: ((this: Window, ev: Event) => any) | null;\n oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n onchange: ((this: Window, ev: Event) => any) | null;\n onclick: ((this: Window, ev: MouseEvent) => any) | null;\n oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;\n oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;\n ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n ondrag: ((this: Window, ev: DragEvent) => any) | null;\n ondragend: ((this: Window, ev: DragEvent) => any) | null;\n ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n ondragover: ((this: Window, ev: DragEvent) => any) | null;\n ondragstart: ((this: Window, ev: DragEvent) => any) | null;\n ondrop: ((this: Window, ev: DragEvent) => any) | null;\n ondurationchange: ((this: Window, ev: Event) => any) | null;\n onemptied: ((this: Window, ev: Event) => any) | null;\n onended: ((this: Window, ev: Event) => any) | null;\n onerror: ErrorEventHandler;\n onfocus: ((this: Window, ev: FocusEvent) => any) | null;\n onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\n oninput: ((this: Window, ev: Event) => any) | null;\n oninvalid: ((this: Window, ev: Event) => any) | null;\n onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n onload: ((this: Window, ev: Event) => any) | null;\n onloadeddata: ((this: Window, ev: Event) => any) | null;\n onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n onloadstart: ((this: Window, ev: Event) => any) | null;\n onmessage: ((this: Window, ev: MessageEvent) => any) | null;\n onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n onmousewheel: ((this: Window, ev: WheelEvent) => any) | null;\n onmsgesturechange: ((this: Window, ev: Event) => any) | null;\n onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;\n onmsgestureend: ((this: Window, ev: Event) => any) | null;\n onmsgesturehold: ((this: Window, ev: Event) => any) | null;\n onmsgesturestart: ((this: Window, ev: Event) => any) | null;\n onmsgesturetap: ((this: Window, ev: Event) => any) | null;\n onmsinertiastart: ((this: Window, ev: Event) => any) | null;\n onmspointercancel: ((this: Window, ev: Event) => any) | null;\n onmspointerdown: ((this: Window, ev: Event) => any) | null;\n onmspointerenter: ((this: Window, ev: Event) => any) | null;\n onmspointerleave: ((this: Window, ev: Event) => any) | null;\n onmspointermove: ((this: Window, ev: Event) => any) | null;\n onmspointerout: ((this: Window, ev: Event) => any) | null;\n onmspointerover: ((this: Window, ev: Event) => any) | null;\n onmspointerup: ((this: Window, ev: Event) => any) | null;\n onoffline: ((this: Window, ev: Event) => any) | null;\n ononline: ((this: Window, ev: Event) => any) | null;\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\n onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\n onpause: ((this: Window, ev: Event) => any) | null;\n onplay: ((this: Window, ev: Event) => any) | null;\n onplaying: ((this: Window, ev: Event) => any) | null;\n onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\n onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n onratechange: ((this: Window, ev: Event) => any) | null;\n onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null;\n onreset: ((this: Window, ev: Event) => any) | null;\n onresize: ((this: Window, ev: UIEvent) => any) | null;\n onscroll: ((this: Window, ev: UIEvent) => any) | null;\n onseeked: ((this: Window, ev: Event) => any) | null;\n onseeking: ((this: Window, ev: Event) => any) | null;\n onselect: ((this: Window, ev: UIEvent) => any) | null;\n onstalled: ((this: Window, ev: Event) => any) | null;\n onstorage: ((this: Window, ev: StorageEvent) => any) | null;\n onsubmit: ((this: Window, ev: Event) => any) | null;\n onsuspend: ((this: Window, ev: Event) => any) | null;\n ontimeupdate: ((this: Window, ev: Event) => any) | null;\n ontouchcancel: (ev: TouchEvent) => any;\n ontouchend: (ev: TouchEvent) => any;\n ontouchmove: (ev: TouchEvent) => any;\n ontouchstart: (ev: TouchEvent) => any;\n onunload: ((this: Window, ev: Event) => any) | null;\n onvolumechange: ((this: Window, ev: Event) => any) | null;\n onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;\n onvrdisplayblur: ((this: Window, ev: Event) => any) | null;\n onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;\n onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;\n onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;\n onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;\n onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;\n onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;\n onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;\n onwaiting: ((this: Window, ev: Event) => any) | null;\n readonly opener: any;\n readonly orientation: string | number;\n readonly outerHeight: number;\n readonly outerWidth: number;\n readonly pageXOffset: number;\n readonly pageYOffset: number;\n readonly parent: Window;\n readonly performance: Performance;\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 readonly scrollbars: BarProp;\n readonly self: Window;\n readonly speechSynthesis: SpeechSynthesis;\n status: string;\n readonly statusbar: BarProp;\n readonly styleMedia: StyleMedia;\n readonly toolbar: BarProp;\n readonly top: Window;\n readonly window: Window;\n alert(message?: any): void;\n blur(): void;\n cancelAnimationFrame(handle: number): void;\n captureEvents(): void;\n close(): void;\n confirm(message?: string): boolean;\n createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;\n focus(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;\n getSelection(): Selection;\n matchMedia(mediaQuery: string): MediaQueryList;\n moveBy(x?: number, y?: number): void;\n moveTo(x?: number, y?: number): void;\n msWriteProfilerMark(profilerMarkName: string): void;\n open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;\n postMessage(message: any, targetOrigin: string, transfer?: any[]): void;\n prompt(message?: string, _default?: string): string | null;\n releaseEvents(): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n resizeBy(x?: number, y?: number): void;\n resizeTo(x?: number, y?: 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 stop(): void;\n webkitCancelAnimationFrame(handle: number): void;\n webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;\n webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;\n webkitRequestAnimationFrame(callback: FrameRequestCallback): number;\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}\n\ndeclare var Window: {\n prototype: Window;\n new(): Window;\n};\n\ninterface WindowBase64 {\n atob(encodedString: string): string;\n btoa(rawString: string): string;\n}\n\ninterface WindowConsole {\n readonly console: Console;\n}\n\ninterface WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "hashchange": HashChangeEvent;\n "message": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "popstate": PopStateEvent;\n "storage": StorageEvent;\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 onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n onmessage: ((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 onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => 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 WindowSessionStorage {\n readonly sessionStorage: Storage;\n}\n\ninterface WindowTimers extends WindowTimersExtension {\n clearInterval(handle?: number): void;\n clearTimeout(handle?: number): void;\n setInterval(handler: (...args: any[]) => void, timeout: number): number;\n setInterval(handler: any, timeout?: any, ...args: any[]): number;\n setTimeout(handler: (...args: any[]) => void, timeout: number): number;\n setTimeout(handler: any, timeout?: any, ...args: any[]): number;\n}\n\ninterface WindowTimersExtension {\n clearImmediate(handle: number): void;\n setImmediate(handler: (...args: any[]) => void): number;\n setImmediate(handler: any, ...args: any[]): number;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n}\n\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n /** @deprecated */\n postMessage(message: any, transfer?: any[]): void;\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(stringUrl: string): Worker;\n};\n\ninterface WritableStream {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n getWriter(): WritableStreamDefaultWriter;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream;\n};\n\ninterface WritableStreamDefaultController {\n error(error?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\ninterface WritableStreamDefaultWriter {\n readonly closed: Promise<void>;\n readonly desiredSize: number;\n readonly ready: Promise<void>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: any): Promise<any>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new(): WritableStreamDefaultWriter;\n};\n\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\ninterface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {\n msCaching: string;\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n readonly readyState: number;\n readonly response: any;\n readonly responseText: string;\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n readonly responseXML: Document | null;\n readonly status: number;\n readonly statusText: string;\n timeout: number;\n readonly upload: XMLHttpRequestUpload;\n withCredentials: boolean;\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(header: string): string | null;\n msCachingEnabled(): boolean;\n open(method: string, url: string, async?: boolean, user?: string | null, password?: string | null): void;\n overrideMimeType(mime: string): void;\n send(data?: any): void;\n setRequestHeader(header: 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": Event;\n "error": ErrorEvent;\n "load": Event;\n "loadend": ProgressEvent;\n "loadstart": Event;\n "progress": ProgressEvent;\n "timeout": ProgressEvent;\n}\n\ninterface XMLHttpRequestEventTarget {\n onabort: ((this: XMLHttpRequest, ev: Event) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ErrorEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: Event) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: Event) => 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\ninterface XMLHttpRequestUpload extends EventTarget, 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 XMLSerializer {\n serializeToString(target: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\ninterface XPathEvaluator {\n createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;\n createNSResolver(nodeResolver?: Node): XPathNSResolver;\n evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\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\ninterface XPathNSResolver {\n lookupNamespaceURI(prefix: string): string;\n}\n\ndeclare var XPathNSResolver: {\n prototype: XPathNSResolver;\n new(): XPathNSResolver;\n};\n\ninterface XPathResult {\n readonly booleanValue: boolean;\n readonly invalidIteratorState: boolean;\n readonly numberValue: number;\n readonly resultType: number;\n readonly singleNodeValue: Node;\n readonly snapshotLength: number;\n readonly stringValue: string;\n iterateNext(): Node;\n snapshotItem(index: number): Node;\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\ninterface XSLTProcessor {\n clearParameters(): void;\n getParameter(namespaceURI: string, localName: string): any;\n importStylesheet(style: Node): void;\n removeParameter(namespaceURI: string, localName: string): void;\n reset(): void;\n setParameter(namespaceURI: string, localName: string, value: any): void;\n transformToDocument(source: Node): Document;\n transformToFragment(source: Node, document: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\ninterface webkitRTCPeerConnection extends RTCPeerConnection {\n addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, 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: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var webkitRTCPeerConnection: {\n prototype: webkitRTCPeerConnection;\n new(configuration: RTCConfiguration): webkitRTCPeerConnection;\n};\n\ndeclare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorEventHandler {\n (event: Event | string, source?: string, fileno?: number, columnNumber?: number, error?: Error): void;\n}\n\ninterface EventHandlerNonNull {\n (event: Event): any;\n}\n\ninterface ForEachCallback {\n (keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void;\n}\n\ninterface FrameRequestCallback {\n (time: number): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface MSLaunchUriCallback {\n (): void;\n}\n\ninterface MediaQueryListListener {\n (mql: MediaQueryList): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NavigatorUserMediaErrorCallback {\n (error: MediaStreamError): void;\n}\n\ninterface NavigatorUserMediaSuccessCallback {\n (stream: MediaStream): void;\n}\n\ninterface NotificationPermissionCallback {\n (permission: NotificationPermission): void;\n}\n\ninterface PositionCallback {\n (position: Position): void;\n}\n\ninterface PositionErrorCallback {\n (error: PositionError): void;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n (error: DOMError): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n (sdp: RTCSessionDescription): void;\n}\n\ninterface RTCStatsCallback {\n (report: RTCStatsReport): void;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface WritableStreamChunkCallback {\n (chunk: any, controller: WritableStreamDefaultController): void;\n}\n\ninterface WritableStreamDefaultControllerCallback {\n (controller: WritableStreamDefaultController): void;\n}\n\ninterface WritableStreamErrorCallback {\n (reason: string): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "acronym": HTMLElement;\n "address": HTMLElement;\n "applet": HTMLAppletElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\n "basefont": HTMLBaseFontElement;\n "bdo": HTMLElement;\n "big": HTMLElement;\n "blockquote": HTMLQuoteElement;\n "body": HTMLBodyElement;\n "br": HTMLBRElement;\n "button": HTMLButtonElement;\n "canvas": HTMLCanvasElement;\n "caption": HTMLTableCaptionElement;\n "center": HTMLElement;\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 "dfn": HTMLElement;\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 "isindex": HTMLUnknownElement;\n "kbd": HTMLElement;\n "keygen": HTMLElement;\n "label": HTMLLabelElement;\n "legend": HTMLLegendElement;\n "li": HTMLLIElement;\n "link": HTMLLinkElement;\n "listing": HTMLPreElement;\n "map": HTMLMapElement;\n "mark": HTMLElement;\n "marquee": HTMLMarqueeElement;\n "menu": HTMLMenuElement;\n "meta": HTMLMetaElement;\n "meter": HTMLMeterElement;\n "nav": HTMLElement;\n "nextid": HTMLUnknownElement;\n "nobr": HTMLElement;\n "noframes": 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 "plaintext": HTMLElement;\n "pre": HTMLPreElement;\n "progress": HTMLProgressElement;\n "q": HTMLQuoteElement;\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 "strike": HTMLElement;\n "strong": HTMLElement;\n "style": HTMLStyleElement;\n "sub": HTMLElement;\n "sup": HTMLElement;\n "table": HTMLTableElement;\n "tbody": HTMLTableSectionElement;\n "td": HTMLTableDataCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableHeaderCellElement;\n "thead": HTMLTableSectionElement;\n "time": HTMLTimeElement;\n "title": HTMLTitleElement;\n "tr": HTMLTableRowElement;\n "track": HTMLTrackElement;\n "tt": HTMLElement;\n "u": HTMLElement;\n "ul": HTMLUListElement;\n "var": HTMLElement;\n "video": HTMLVideoElement;\n "wbr": HTMLElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\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 "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 "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialgradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "stop": SVGStopElement;\n "svg": SVGSVGElement;\n "switch": SVGSwitchElement;\n "symbol": SVGSymbolElement;\n "text": SVGTextElement;\n "textpath": SVGTextPathElement;\n "tspan": SVGTSpanElement;\n "use": SVGUseElement;\n "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ninterface ElementTagNameMap extends HTMLElementTagNameMap, SVGElementTagNameMap { }\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};\ndeclare var Blob: typeof Blob;\ndeclare var URL: typeof URL;\ndeclare var URLSearchParams: typeof URLSearchParams;\ndeclare var applicationCache: ApplicationCache;\ndeclare var caches: CacheStorage;\ndeclare var clientInformation: Navigator;\ndeclare var closed: boolean;\ndeclare var crypto: Crypto;\ndeclare var customElements: CustomElementRegistry;\ndeclare var defaultStatus: string;\ndeclare var devicePixelRatio: number;\ndeclare var doNotTrack: string;\ndeclare var document: Document;\ndeclare var event: Event | undefined;\ndeclare var external: External;\ndeclare var frameElement: Element;\ndeclare var frames: Window;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var isSecureContext: boolean;\ndeclare var length: number;\ndeclare var location: Location;\ndeclare var locationbar: BarProp;\ndeclare var menubar: BarProp;\ndeclare var msContentScript: ExtensionScriptApis;\ndeclare var msCredentials: MSCredentials;\ndeclare const name: never;\ndeclare var navigator: Navigator;\ndeclare var offscreenBuffering: string | boolean;\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;\ndeclare var oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\ndeclare var onerror: ErrorEventHandler;\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\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;\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmousewheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgestureend: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturehold: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturestart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturetap: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsinertiastart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointercancel: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerdown: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerenter: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerleave: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointermove: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerout: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerover: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerup: ((this: Window, ev: Event) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onorientationchange: ((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 onpause: ((this: Window, ev: Event) => any) | null;\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null;\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onscroll: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\ndeclare var onselect: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: Event) => any) | null;\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: (ev: TouchEvent) => any;\ndeclare var ontouchend: (ev: TouchEvent) => any;\ndeclare var ontouchmove: (ev: TouchEvent) => any;\ndeclare var ontouchstart: (ev: TouchEvent) => any;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\ndeclare var orientation: string | number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\ndeclare var pageXOffset: number;\ndeclare var pageYOffset: number;\ndeclare var parent: Window;\ndeclare var performance: Performance;\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;\ndeclare var scrollbars: BarProp;\ndeclare var self: Window;\ndeclare var speechSynthesis: SpeechSynthesis;\ndeclare var status: string;\ndeclare var statusbar: BarProp;\ndeclare var styleMedia: StyleMedia;\ndeclare var toolbar: BarProp;\ndeclare var top: Window;\ndeclare var window: Window;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function captureEvents(): void;\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\ndeclare function createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;\ndeclare function getSelection(): Selection;\ndeclare function matchMedia(mediaQuery: string): MediaQueryList;\ndeclare function moveBy(x?: number, y?: number): void;\ndeclare function moveTo(x?: number, y?: number): void;\ndeclare function msWriteProfilerMark(profilerMarkName: string): void;\ndeclare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: any[]): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\ndeclare function releaseEvents(): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function resizeBy(x?: number, y?: number): void;\ndeclare function resizeTo(x?: number, y?: 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;\ndeclare function stop(): void;\ndeclare function webkitCancelAnimationFrame(handle: number): void;\ndeclare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;\ndeclare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;\ndeclare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function toString(): string;\ndeclare function dispatchEvent(evt: Event): boolean;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function setInterval(handler: (...args: any[]) => void, timeout: number): number;\ndeclare function setInterval(handler: any, timeout?: any, ...args: any[]): number;\ndeclare function setTimeout(handler: (...args: any[]) => void, timeout: number): number;\ndeclare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;\ndeclare function clearImmediate(handle: number): void;\ndeclare function setImmediate(handler: (...args: any[]) => void): number;\ndeclare function setImmediate(handler: any, ...args: any[]): number;\ndeclare var sessionStorage: Storage;\ndeclare var localStorage: Storage;\ndeclare var console: Console;\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;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var indexedDB: IDBFactory;\ndeclare function atob(encodedString: string): string;\ndeclare function btoa(rawString: string): string;\ndeclare function fetch(input?: Request | string, init?: RequestInit): Promise<Response>;\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 ScrollBehavior = "auto" | "instant" | "smooth";\ntype ScrollLogicalPosition = "start" | "center" | "end" | "nearest";\ntype MouseWheelEvent = WheelEvent;\ntype ScrollRestoration = "auto" | "manual";\ntype FormDataEntryValue = string | File;\ntype InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";\ntype HeadersInit = Headers | string[][] | { [key: string]: string };\ntype OrientationLockType = "any" | "natural" | "portrait" | "landscape" | "portrait-primary" | "portrait-secondary" | "landscape-primary"| "landscape-secondary";\ntype IDBValidKey = number | string | Date | IDBArrayKey;\ntype AlgorithmIdentifier = string | Algorithm;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype AAGUID = string;\ntype BodyInit = any;\ntype ByteString = string;\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainLong = number | ConstrainLongRange;\ntype CryptoOperationData = ArrayBufferView;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLbyte = number;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLintptr = number;\ntype GLshort = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLubyte = number;\ntype GLuint = number;\ntype GLushort = number;\ntype IDBKeyPath = string;\ntype MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;\ntype MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;\ntype MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;\ntype RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;\ntype RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;\ntype RequestInfo = Request | string;\ntype USVString = string;\ntype payloadtype = number;\ntype BufferSource = ArrayBuffer | ArrayBufferView;\ntype ClientTypes = "window" | "worker" | "sharedworker" | "all";\ntype AppendMode = "segments" | "sequence";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "suspended" | "running" | "closed";\ntype BinaryType = "blob" | "arraybuffer";\ntype BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasFillRule = "nonzero" | "evenodd";\ntype ChannelCountMode = "max" | "clamped-max" | "explicit";\ntype ChannelInterpretation = "speakers" | "discrete";\ntype DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";\ntype DistanceModelType = "linear" | "inverse" | "exponential";\ntype EndOfStreamError = "network" | "decode";\ntype ExpandGranularity = "character" | "word" | "sentence" | "textedit";\ntype GamepadHand = "" | "left" | "right";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadInputEmulationType = "mouse" | "keyboard" | "gamepad";\ntype GamepadMappingType = "" | "standard";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "pending" | "done";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype KeyFormat = "raw" | "spki" | "pkcs8" | "jwk";\ntype KeyType = "public" | "private" | "secret";\ntype KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey";\ntype ListeningState = "inactive" | "active" | "disambiguation";\ntype MSCredentialType = "FIDO_2_0";\ntype MSIceAddrType = "os" | "stun" | "turn" | "peer-derived";\ntype MSIceType = "failed" | "direct" | "relay";\ntype MSStatsType = "description" | "localclientevent" | "inbound-network" | "outbound-network" | "inbound-payload" | "outbound-payload" | "transportdiagnostics";\ntype MSTransportType = "Embedded" | "USB" | "NFC" | "BT";\ntype MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";\ntype MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";\ntype MediaKeySessionType = "temporary" | "persistent-license" | "persistent-release-message";\ntype MediaKeyStatus = "usable" | "expired" | "output-downscaled" | "output-not-allowed" | "status-pending" | "internal-error";\ntype MediaKeysRequirement = "required" | "optional" | "not-allowed";\ntype MediaStreamTrackState = "live" | "ended";\ntype NavigationReason = "up" | "down" | "left" | "right";\ntype NavigationType = "navigate" | "reload" | "back_forward" | "prerender";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";\ntype OverSampleType = "none" | "2x" | "4x";\ntype PanningModelType = "equalpower" | "HRTF";\ntype PaymentComplete = "success" | "fail" | "unknown";\ntype PaymentShippingType = "shipping" | "delivery" | "pickup";\ntype PushEncryptionKeyName = "p256dh" | "auth";\ntype PushPermissionState = "granted" | "denied" | "prompt";\ntype RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";\ntype RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";\ntype RTCDtlsRole = "auto" | "client" | "server";\ntype RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed";\ntype RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";\ntype RTCIceComponent = "RTP" | "RTCP";\ntype RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "failed" | "disconnected" | "closed";\ntype RTCIceGatherPolicy = "all" | "nohost" | "relay";\ntype RTCIceGathererState = "new" | "gathering" | "complete";\ntype RTCIceGatheringState = "new" | "gathering" | "complete";\ntype RTCIceProtocol = "udp" | "tcp";\ntype RTCIceRole = "controlling" | "controlled";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "none" | "relay" | "all";\ntype RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "closed";\ntype RTCSdpType = "offer" | "pranswer" | "answer";\ntype RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";\ntype RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";\ntype RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";\ntype RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";\ntype ReadyState = "closed" | "open" | "ended";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache";\ntype RequestCredentials = "omit" | "same-origin" | "include";\ntype RequestDestination = "" | "document" | "sharedworker" | "subresource" | "unknown" | "worker";\ntype RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";\ntype RequestRedirect = "follow" | "error" | "manual";\ntype RequestType = "" | "audio" | "font" | "image" | "script" | "style" | "track" | "video";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScopedCredentialType = "ScopedCred";\ntype ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";\ntype TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype Transport = "usb" | "nfc" | "ble";\ntype VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";\ntype VREye = "left" | "right";\ntype VideoFacingModeEnum = "user" | "environment" | "left" | "right";\ntype VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\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 * 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',l="defaultLib:lib.es6.d.ts",c='/*! *****************************************************************************\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 const NaN: number;\ndeclare const 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 s A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in numString.\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(s: 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): string;\n\n/**\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\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 * @param string A string value\n */\ndeclare function unescape(string: string): string;\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: string): 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: string): 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: string): 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(o: any, p: string, attributes: PropertyDescriptor & ThisType<any>): any;\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(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;\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 o Object on which to lock the attributes.\n */\n freeze<T>(a: T[]): ReadonlyArray<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 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 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/**\n * Provides functionality common to all JavaScript objects.\n */\ndeclare const 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 const Function: FunctionConstructor;\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(): 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(): 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 * @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 const 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 (value?: any): boolean;\n readonly prototype: Boolean;\n}\n\ndeclare const 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 const Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n readonly raw: ReadonlyArray<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 number.\n * @param x The value to be rounded to the nearest number.\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 const 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): Date;\n new(value: 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 an number between 0 and 11 (January to December).\n * @param date The date as an number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.\n * @param ms An 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 const 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 compile(): 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 $1: string;\n $2: string;\n $3: string;\n $4: string;\n $5: string;\n $6: string;\n $7: string;\n $8: string;\n $9: string;\n lastMatch: string;\n}\n\ndeclare const 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 const Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor {\n new(message?: string): EvalError;\n (message?: string): EvalError;\n readonly prototype: EvalError;\n}\n\ndeclare const EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor {\n new(message?: string): RangeError;\n (message?: string): RangeError;\n readonly prototype: RangeError;\n}\n\ndeclare const RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor {\n new(message?: string): ReferenceError;\n (message?: string): ReferenceError;\n readonly prototype: ReferenceError;\n}\n\ndeclare const ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor {\n new(message?: string): SyntaxError;\n (message?: string): SyntaxError;\n readonly prototype: SyntaxError;\n}\n\ndeclare const SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor {\n new(message?: string): TypeError;\n (message?: string): TypeError;\n readonly prototype: TypeError;\n}\n\ndeclare const TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor {\n new(message?: string): URIError;\n (message?: string): URIError;\n readonly prototype: URIError;\n}\n\ndeclare const 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?: (key: any, 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?: (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 a 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 const 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 toLocalString 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.\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 callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of 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 every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of 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 some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param callbackfn A function that accepts up to three arguments. The filter 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 filter<S extends T>(callbackfn: (value: T, index: number, array: ReadonlyArray<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 callbackfn A function that accepts up to three arguments. The filter 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 filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => any, 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: ReadonlyArray<T>) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<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: ReadonlyArray<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 element defined in an 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 toLocalString methods.\n */\n toLocaleString(): string;\n /**\n * Appends new elements to an array, and returns the new length of the array.\n * @param items New elements of the Array.\n */\n push(...items: T[]): number;\n /**\n * Removes the last element from an array and returns it.\n */\n pop(): T | undefined;\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 * Reverses the elements in an Array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n */\n shift(): T | undefined;\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): T[];\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.\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 */\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 */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an 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.\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 callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of 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 every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of 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 some(callbackfn: (value: T, index: number, array: T[]) => boolean, 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 callbackfn A function that accepts up to three arguments. The filter 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 filter<S extends T>(callbackfn: (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 callbackfn A function that accepts up to three arguments. The filter 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 filter(callbackfn: (value: T, index: number, array: T[]) => any, 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 Array<any>;\n readonly prototype: Array<any>;\n}\n\ndeclare const 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\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 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 string, 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 * Exclude null and undefined from T\n */\ntype NonNullable<T> = T extends null | undefined ? never : T;\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 new (...args: any[]) => any> = T extends new (...args: any[]) => infer R ? R : any;\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 const 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 new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new(length: number): Int8Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new(length: number): Uint8Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new(length: number): Uint8ClampedArray;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new(length: number): Int16Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new(length: number): Uint16Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new(length: number): Int32Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new(length: number): Uint32Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\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 [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new(length: number): Float32Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare const 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 callbackfn A function that accepts up to three arguments. The every method calls\n * the callbackfn function for each element in array1 until the callbackfn returns false,\n * or until the end of 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 every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 callbackfn A function that accepts up to three arguments. The filter method calls\n * 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.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(callbackfn: (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.\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 callbackfn A function that accepts up to three arguments. The some method calls the\n * callbackfn function for each element in array1 until the callbackfn returns true, or until\n * the end of 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 some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn The name of the function used to determine the order of the elements. If\n * omitted, the elements are sorted in ascending, ASCII character order.\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float64Array 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): Float64Array;\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 [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new(length: number): Float64Array;\n new(arrayOrArrayBuffer: 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 * @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<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare const Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: string;\n localeMatcher?: string;\n numeric?: boolean;\n caseFirst?: string;\n sensitivity?: string;\n ignorePunctuation?: boolean;\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;\n style?: string;\n currency?: string;\n currencyDisplay?: string;\n useGrouping?: boolean;\n minimumIntegerDigits?: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\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?: string;\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 formatMatcher?: string;\n hour12?: boolean;\n timeZone?: string;\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\n\ndeclare type PropertyKey = string | number | symbol;\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[]) => boolean, 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[]) => boolean, thisArg?: any): number;\n\n /**\n * Returns the this object after filling the section identified by start and end with value\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 −0, 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−16.\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: number): 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: number): 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: number): boolean;\n\n /**\n * Returns true if the value passed is a safe integer.\n * @param number A numeric value.\n */\n isSafeInteger(number: number): 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 − 1.\n */\n readonly MAX_SAFE_INTEGER: number;\n\n /**\n * The value of the smallest integer n such that n and n − 1 are both exactly representable as\n * a Number value.\n * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 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 s A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in numString.\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 Object {\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 a specified property is enumerable.\n * @param v A property name.\n */\n propertyIsEnumerable(v: PropertyKey): boolean;\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 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 /**\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\n * 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, propertyKey: PropertyKey): PropertyDescriptor | undefined;\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\n * 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\n * property.\n */\n defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): 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: ReadonlyArray<T>) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, 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: ReadonlyArray<T>) => boolean, 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, flags?: string): RegExp;\n (pattern: RegExp, 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 – 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 * @param name\n */\n anchor(name: string): string;\n\n /** Returns a <big> HTML element */\n big(): string;\n\n /** Returns a <blink> HTML element */\n blink(): string;\n\n /** Returns a <b> HTML element */\n bold(): string;\n\n /** Returns a <tt> HTML element */\n fixed(): string;\n\n /** Returns a <font> HTML element and sets the color attribute value */\n fontcolor(color: string): string;\n\n /** Returns a <font> HTML element and sets the size attribute value */\n fontsize(size: number): string;\n\n /** Returns a <font> HTML element and sets the size attribute value */\n fontsize(size: string): string;\n\n /** Returns an <i> HTML element */\n italics(): string;\n\n /** Returns an <a> HTML element and sets the href attribute value */\n link(url: string): string;\n\n /** Returns a <small> HTML element */\n small(): string;\n\n /** Returns a <strike> HTML element */\n strike(): string;\n\n /** Returns a <sub> HTML element */\n sub(): string;\n\n /** Returns a <sup> HTML element */\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 intended for use as a tag function of a Tagged Template String. When called\n * as such the first argument will be a well formed template call site object and the rest\n * parameter will contain the substitution values.\n * @param template A well-formed template string call site representation.\n * @param substitutions A set of substitution values.\n */\n raw(template: TemplateStringsArray, ...substitutions: any[]): string;\n}\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?: ReadonlyArray<[K, V]>): 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 (): WeakMap<object, any>;\n new <K extends object, V>(entries?: ReadonlyArray<[K, V]>): 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 (): Set<any>;\n new <T>(values?: ReadonlyArray<T>): 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 (): WeakSet<object>;\n new <T extends object>(values?: ReadonlyArray<T>): WeakSet<T>;\n readonly prototype: WeakSet<object>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n\n\ninterface Generator extends Iterator<any> { }\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\n\n/// <reference path="lib.es2015.symbol.d.ts" />\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: symbol;\n}\n\ninterface IteratorResult<T> {\n done: boolean;\n value: T;\n}\n\ninterface Iterator<T> {\n next(value?: any): IteratorResult<T>;\n return?(value?: any): IteratorResult<T>;\n throw?(e?: any): IteratorResult<T>;\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<[K, V]>): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n new <K extends object, V>(iterable: Iterable<[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>): Set<T>;\n}\n\ninterface WeakSet<T extends object> { }\n\ninterface WeakSetConstructor {\n new <T extends 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 array of Promises.\n * @returns A new Promise.\n */\n all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;\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>(values: Iterable<T | PromiseLike<T>>): Promise<T>;\n}\n\ndeclare namespace Reflect {\n function enumerate(target: object): IterableIterator<any>;\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\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 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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;\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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;\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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;\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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;\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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;\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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;\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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;\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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;\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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;\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>(values: (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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;\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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;\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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;\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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7>;\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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;\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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;\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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;\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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<T1 | T2 | T3>;\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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<T1 | T2>;\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>(values: (T | PromiseLike<T>)[]): Promise<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(reason: any): Promise<never>;\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>(reason: any): Promise<T>;\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 /**\n * Creates a new resolved promise .\n * @returns A resolved promise.\n */\n resolve(): Promise<void>;\n}\n\ndeclare var Promise: PromiseConstructor;\n\ninterface ProxyHandler<T extends object> {\n getPrototypeOf? (target: T): object | null;\n setPrototypeOf? (target: T, v: any): boolean;\n isExtensible? (target: T): boolean;\n preventExtensions? (target: T): boolean;\n getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;\n has? (target: T, p: PropertyKey): boolean;\n get? (target: T, p: PropertyKey, receiver: any): any;\n set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;\n deleteProperty? (target: T, p: PropertyKey): boolean;\n defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;\n enumerate? (target: T): PropertyKey[];\n ownKeys? (target: T): PropertyKey[];\n apply? (target: T, thisArg: any, argArray?: any): any;\n construct? (target: T, argArray: any, newTarget?: any): object;\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\n\ndeclare namespace Reflect {\n function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;\n function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;\n function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n function get(target: object, propertyKey: PropertyKey, receiver?: any): any;\n function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;\n function getPrototypeOf(target: object): object;\n function has(target: object, propertyKey: PropertyKey): boolean;\n function isExtensible(target: object): boolean;\n function ownKeys(target: object): PropertyKey[];\n function preventExtensions(target: object): boolean;\n function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n function setPrototypeOf(target: object, proto: any): boolean;\n}\n\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\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;\n\n/// <reference path="lib.es2015.symbol.d.ts" />\n\ninterface SymbolConstructor {\n /**\n * A method that determines if a constructor object recognizes an object as one of the\n * constructor’s instances. Called by the semantics of the instanceof operator.\n */\n readonly hasInstance: 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: 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: 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: 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: 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: 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: 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: 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: 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: symbol;\n}\n\ninterface Symbol {\n readonly [Symbol.toStringTag]: "Symbol";\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]: "Map";\n}\n\ninterface WeakMap<K extends object, V> {\n readonly [Symbol.toStringTag]: "WeakMap";\n}\n\ninterface Set<T> {\n readonly [Symbol.toStringTag]: "Set";\n}\n\ninterface WeakSet<T extends object> {\n readonly [Symbol.toStringTag]: "WeakSet";\n}\n\ninterface JSON {\n readonly [Symbol.toStringTag]: "JSON";\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]: "GeneratorFunction";\n}\n\ninterface Math {\n readonly [Symbol.toStringTag]: "Math";\n}\n\ninterface Promise<T> {\n readonly [Symbol.toStringTag]: "Promise";\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 an object that supports being matched against, and returns an array containing the results of that search.\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 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 replaceValue A string containing the text to replace for every successful match of searchValue in this string.\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]: "ArrayBuffer";\n}\n\ninterface DataView {\n readonly [Symbol.toStringTag]: "DataView";\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\n/////////////////////////////\n/// DOM APIs\n/////////////////////////////\n\ninterface Account {\n displayName: string;\n id: string;\n imageURL?: string;\n name?: string;\n rpDisplayName: string;\n}\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\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}\n\ninterface AssertionOptions {\n allowList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\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 AudioContextInfo {\n currentTime?: number;\n sampleRate?: number;\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 AudioParamDescriptor {\n defaultValue?: number;\n maxValue?: number;\n minValue?: number;\n name?: string;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: number;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface ByteLengthChunk {\n byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n cacheName?: string;\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientData {\n challenge: string;\n extensions?: WebAuthnExtensions;\n hashAlg: string | Algorithm;\n origin: string;\n rpId: string;\n tokenBinding?: string;\n}\n\ninterface ClientQueryOptions {\n includeReserved?: boolean;\n includeUncontrolled?: boolean;\n type?: ClientTypes;\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 ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {\n arrayOfDomainStrings?: string[];\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 ConstrainLongRange extends LongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainVideoFacingModeParameters {\n exact?: VideoFacingModeEnum | VideoFacingModeEnum[];\n ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\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 DeviceAccelerationDict {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceLightEventInit extends EventInit {\n value?: number;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceAccelerationDict | null;\n accelerationIncludingGravity?: DeviceAccelerationDict | null;\n interval?: number | null;\n rotationRate?: DeviceRotationRateDict | 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 DeviceRotationRateDict {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\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: string;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: string;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: string;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: string | Algorithm;\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 scoped?: 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 modifierOS?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface ExceptionInformation {\n domain?: string | null;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[] | null;\n source?: object | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n request: Request;\n reservedClientId?: string;\n targetClientId?: string;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusNavigationEventInit extends EventInit {\n navigationReason?: string | null;\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface FocusNavigationOrigin {\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad?: Gamepad;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: string | Algorithm;\n info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: string | Algorithm;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: string | Algorithm;\n length?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[];\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit;\n target: Element;\n time: number;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | 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 code?: string;\n key?: string;\n location?: number;\n repeat?: boolean;\n}\n\ninterface LongRange {\n max?: number;\n min?: number;\n}\n\ninterface MSAccountInfo {\n accountImageUri?: string;\n accountName?: string;\n rpDisplayName: string;\n userDisplayName: string;\n userId?: string;\n}\n\ninterface MSAudioLocalClientEvent extends MSLocalClientEventBase {\n cpuInsufficientEventRatio?: number;\n deviceCaptureNotFunctioningEventRatio?: number;\n deviceClippingEventRatio?: number;\n deviceEchoEventRatio?: number;\n deviceGlitchesEventRatio?: number;\n deviceHalfDuplexAECEventRatio?: number;\n deviceHowlingEventCount?: number;\n deviceLowSNREventRatio?: number;\n deviceLowSpeechLevelEventRatio?: number;\n deviceMultipleEndpointsEventCount?: number;\n deviceNearEndToEchoRatioEventRatio?: number;\n deviceRenderMuteEventRatio?: number;\n deviceRenderNotFunctioningEventRatio?: number;\n deviceRenderZeroVolumeEventRatio?: number;\n networkDelayEventRatio?: number;\n networkSendQualityEventRatio?: number;\n}\n\ninterface MSAudioRecvPayload extends MSPayloadBase {\n burstLossLength1?: number;\n burstLossLength2?: number;\n burstLossLength3?: number;\n burstLossLength4?: number;\n burstLossLength5?: number;\n burstLossLength6?: number;\n burstLossLength7?: number;\n burstLossLength8OrHigher?: number;\n fecRecvDistance1?: number;\n fecRecvDistance2?: number;\n fecRecvDistance3?: number;\n packetReorderDepthAvg?: number;\n packetReorderDepthMax?: number;\n packetReorderRatio?: number;\n ratioCompressedSamplesAvg?: number;\n ratioConcealedSamplesAvg?: number;\n ratioStretchedSamplesAvg?: number;\n samplingRate?: number;\n signal?: MSAudioRecvSignal;\n}\n\ninterface MSAudioRecvSignal {\n initialSignalLevelRMS?: number;\n recvNoiseLevelCh1?: number;\n recvSignalLevelCh1?: number;\n renderLoopbackSignalLevel?: number;\n renderNoiseLevel?: number;\n renderSignalLevel?: number;\n}\n\ninterface MSAudioSendPayload extends MSPayloadBase {\n audioFECUsed?: boolean;\n samplingRate?: number;\n sendMutePercent?: number;\n signal?: MSAudioSendSignal;\n}\n\ninterface MSAudioSendSignal {\n noiseLevel?: number;\n sendNoiseLevelCh1?: number;\n sendSignalLevelCh1?: number;\n}\n\ninterface MSConnectivity {\n iceType?: MSIceType;\n iceWarningFlags?: MSIceWarningFlags;\n relayAddress?: MSRelayAddress;\n}\n\ninterface MSCredentialFilter {\n accept?: MSCredentialSpec[];\n}\n\ninterface MSCredentialParameters {\n type?: MSCredentialType;\n}\n\ninterface MSCredentialSpec {\n id?: string;\n type: MSCredentialType;\n}\n\ninterface MSDCCEventInit extends EventInit {\n maxFr?: number;\n maxFs?: number;\n}\n\ninterface MSDSHEventInit extends EventInit {\n sources?: number[];\n timestamp?: number;\n}\n\ninterface MSDelay {\n roundTrip?: number;\n roundTripMax?: number;\n}\n\ninterface MSDescription extends RTCStats {\n connectivity?: MSConnectivity;\n deviceDevName?: string;\n localAddr?: MSIPAddressInfo;\n networkconnectivity?: MSNetworkConnectivityInfo;\n reflexiveLocalIPAddr?: MSIPAddressInfo;\n remoteAddr?: MSIPAddressInfo;\n transport?: RTCIceProtocol;\n}\n\ninterface MSFIDOCredentialParameters extends MSCredentialParameters {\n algorithm?: string | Algorithm;\n authenticators?: string[];\n}\n\ninterface MSIPAddressInfo {\n ipAddr?: string;\n manufacturerMacAddrMask?: string;\n port?: number;\n}\n\ninterface MSIceWarningFlags {\n allocationMessageIntegrityFailed?: boolean;\n alternateServerReceived?: boolean;\n connCheckMessageIntegrityFailed?: boolean;\n connCheckOtherError?: boolean;\n fipsAllocationFailure?: boolean;\n multipleRelayServersAttempted?: boolean;\n noRelayServersConfigured?: boolean;\n portRangeExhausted?: boolean;\n pseudoTLSFailure?: boolean;\n tcpNatConnectivityFailed?: boolean;\n tcpRelayConnectivityFailed?: boolean;\n turnAuthUnknownUsernameError?: boolean;\n turnTcpAllocateFailed?: boolean;\n turnTcpSendFailed?: boolean;\n turnTcpTimedOut?: boolean;\n turnTurnTcpConnectivityFailed?: boolean;\n turnUdpAllocateFailed?: boolean;\n turnUdpSendFailed?: boolean;\n udpLocalConnectivityFailed?: boolean;\n udpNatConnectivityFailed?: boolean;\n udpRelayConnectivityFailed?: boolean;\n useCandidateChecksFailed?: boolean;\n}\n\ninterface MSJitter {\n interArrival?: number;\n interArrivalMax?: number;\n interArrivalSD?: number;\n}\n\ninterface MSLocalClientEventBase extends RTCStats {\n networkBandwidthLowEventRatio?: number;\n networkReceiveQualityEventRatio?: number;\n}\n\ninterface MSNetwork extends RTCStats {\n delay?: MSDelay;\n jitter?: MSJitter;\n packetLoss?: MSPacketLoss;\n utilization?: MSUtilization;\n}\n\ninterface MSNetworkConnectivityInfo {\n linkspeed?: number;\n networkConnectionDetails?: string;\n vpn?: boolean;\n}\n\ninterface MSNetworkInterfaceType {\n interfaceTypeEthernet?: boolean;\n interfaceTypePPP?: boolean;\n interfaceTypeTunnel?: boolean;\n interfaceTypeWWAN?: boolean;\n interfaceTypeWireless?: boolean;\n}\n\ninterface MSOutboundNetwork extends MSNetwork {\n appliedBandwidthLimit?: number;\n}\n\ninterface MSPacketLoss {\n lossRate?: number;\n lossRateMax?: number;\n}\n\ninterface MSPayloadBase extends RTCStats {\n payloadDescription?: string;\n}\n\ninterface MSPortRange {\n max?: number;\n min?: number;\n}\n\ninterface MSRelayAddress {\n port?: number;\n relayAddress?: string;\n}\n\ninterface MSSignatureParameters {\n userPrompt?: string;\n}\n\ninterface MSTransportDiagnosticsStats extends RTCStats {\n allocationTimeInMs?: number;\n baseAddress?: string;\n baseInterface?: MSNetworkInterfaceType;\n iceRole?: RTCIceRole;\n iceWarningFlags?: MSIceWarningFlags;\n interfaces?: MSNetworkInterfaceType;\n localAddrType?: MSIceAddrType;\n localAddress?: string;\n localInterface?: MSNetworkInterfaceType;\n localMR?: string;\n localMRTCPPort?: number;\n localSite?: string;\n msRtcEngineVersion?: string;\n networkName?: string;\n numConsentReqReceived?: number;\n numConsentReqSent?: number;\n numConsentRespReceived?: number;\n numConsentRespSent?: number;\n portRangeMax?: number;\n portRangeMin?: number;\n protocol?: RTCIceProtocol;\n remoteAddrType?: MSIceAddrType;\n remoteAddress?: string;\n remoteMR?: string;\n remoteMRTCPPort?: number;\n remoteSite?: string;\n rtpRtcpMux?: boolean;\n stunVer?: number;\n}\n\ninterface MSUtilization {\n bandwidthEstimation?: number;\n bandwidthEstimationAvg?: number;\n bandwidthEstimationMax?: number;\n bandwidthEstimationMin?: number;\n bandwidthEstimationStdDev?: number;\n packets?: number;\n}\n\ninterface MSVideoPayload extends MSPayloadBase {\n durationSeconds?: number;\n resolution?: string;\n videoBitRateAvg?: number;\n videoBitRateMax?: number;\n videoFrameRateAvg?: number;\n videoPacketLossRate?: number;\n}\n\ninterface MSVideoRecvPayload extends MSVideoPayload {\n lowBitRateCallPercent?: number;\n lowFrameRateCallPercent?: number;\n recvBitRateAverage?: number;\n recvBitRateMaximum?: number;\n recvCodecType?: string;\n recvFpsHarmonicAverage?: number;\n recvFrameRateAverage?: number;\n recvNumResSwitches?: number;\n recvReorderBufferMaxSuccessfullyOrderedExtent?: number;\n recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;\n recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;\n recvReorderBufferPacketsDroppedDueToTimeout?: number;\n recvReorderBufferReorderedPackets?: number;\n recvResolutionHeight?: number;\n recvResolutionWidth?: number;\n recvVideoStreamsMax?: number;\n recvVideoStreamsMin?: number;\n recvVideoStreamsMode?: number;\n reorderBufferTotalPackets?: number;\n videoFrameLossRate?: number;\n videoPostFECPLR?: number;\n videoResolutions?: MSVideoResolutionDistribution;\n}\n\ninterface MSVideoResolutionDistribution {\n cifQuality?: number;\n h1080Quality?: number;\n h1440Quality?: number;\n h2160Quality?: number;\n h720Quality?: number;\n vgaQuality?: number;\n}\n\ninterface MSVideoSendPayload extends MSVideoPayload {\n sendBitRateAverage?: number;\n sendBitRateMaximum?: number;\n sendFrameRateAverage?: number;\n sendResolutionHeight?: number;\n sendResolutionWidth?: number;\n sendVideoStreamsMax?: number;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message?: ArrayBuffer | null;\n messageType?: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n persistentState?: MediaKeysRequirement;\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n robustness?: string;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamErrorEventInit extends EventInit {\n error?: MediaStreamError | null;\n}\n\ninterface MediaStreamEventInit extends EventInit {\n stream?: MediaStream;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track?: MediaStreamTrack | null;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: number | DoubleRange;\n deviceId?: string;\n echoCancellation?: boolean[];\n facingMode?: string;\n frameRate?: number | DoubleRange;\n groupId?: string;\n height?: number | LongRange;\n sampleRate?: number | LongRange;\n sampleSize?: number | LongRange;\n volume?: number | DoubleRange;\n width?: number | LongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: number | ConstrainDoubleRange;\n channelCount?: number | ConstrainLongRange;\n deviceId?: string | string[] | ConstrainDOMStringParameters;\n displaySurface?: string | string[] | ConstrainDOMStringParameters;\n echoCancellation?: boolean | ConstrainBooleanParameters;\n facingMode?: string | string[] | ConstrainDOMStringParameters;\n frameRate?: number | ConstrainDoubleRange;\n groupId?: string | string[] | ConstrainDOMStringParameters;\n height?: number | ConstrainLongRange;\n latency?: number | ConstrainDoubleRange;\n logicalSurface?: boolean | ConstrainBooleanParameters;\n sampleRate?: number | ConstrainLongRange;\n sampleSize?: number | ConstrainLongRange;\n volume?: number | ConstrainDoubleRange;\n width?: number | ConstrainLongRange;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n sampleRate?: number;\n sampleSize?: number;\n volume?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n volume?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit extends EventInit {\n channel?: string;\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Window | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MsZoomToOptions {\n animate?: string;\n contentX?: number;\n contentY?: number;\n scaleFactor?: number;\n viewportX?: string | null;\n viewportY?: string | null;\n}\n\ninterface MutationObserverInit {\n attributeFilter?: string[];\n attributeOldValue?: boolean;\n attributes?: boolean;\n characterData?: boolean;\n characterDataOldValue?: boolean;\n childList?: boolean;\n subtree?: boolean;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n lang?: string;\n tag?: string;\n}\n\ninterface ObjectURLOptions {\n oneTimeOnly?: boolean;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\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 currencySystem?: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n shippingOptions?: PaymentShippingOption[];\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 | string[];\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n error?: string;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string | string[];\n}\n\ninterface PaymentOptions {\n requestPayerEmail?: boolean;\n requestPayerName?: boolean;\n requestPayerPhone?: boolean;\n requestShipping?: boolean;\n shippingType?: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentShippingOption {\n amount: PaymentCurrencyAmount;\n id: string;\n label: string;\n selected?: boolean;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: string | Algorithm;\n iterations: number;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[];\n real?: number[];\n}\n\ninterface PointerEventInit extends MouseEventInit {\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n pressure?: number;\n tiltX?: number;\n tiltY?: 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 PushEventInit extends ExtendableEventInit {\n data?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | string | null;\n}\n\ninterface PushSubscriptionChangeInit extends ExtendableEventInit {\n newSubscription?: PushSubscription;\n oldSubscription?: PushSubscription;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy {\n highWaterMark?: number;\n size?: WritableStreamChunkCallback;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n peerIdentity?: string;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCDtlsParameters {\n fingerprints?: RTCDtlsFingerprint[];\n role?: RTCDtlsRole;\n}\n\ninterface RTCIceCandidateAttributes extends RTCStats {\n addressSourceUrl?: string;\n candidateType?: RTCStatsIceCandidateType;\n ipAddress?: string;\n portNumber?: number;\n priority?: number;\n transport?: string;\n}\n\ninterface RTCIceCandidateComplete {\n}\n\ninterface RTCIceCandidateDictionary {\n foundation?: string;\n ip?: string;\n msMTurnSessionId?: string;\n port?: number;\n priority?: number;\n protocol?: RTCIceProtocol;\n relatedAddress?: string;\n relatedPort?: number;\n tcpType?: RTCIceTcpCandidateType;\n type?: RTCIceCandidateType;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number;\n sdpMid?: string;\n}\n\ninterface RTCIceCandidatePair {\n local?: RTCIceCandidateDictionary;\n remote?: RTCIceCandidateDictionary;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n localCandidateId?: string;\n nominated?: boolean;\n priority?: number;\n readable?: boolean;\n remoteCandidateId?: string;\n roundTripTime?: number;\n state?: RTCStatsIceCandidatePairState;\n transportId?: string;\n writable?: boolean;\n}\n\ninterface RTCIceGatherOptions {\n gatherPolicy?: RTCIceGatherPolicy;\n iceservers?: RTCIceServer[];\n portRange?: MSPortRange;\n}\n\ninterface RTCIceParameters {\n iceLite?: boolean | null;\n password?: string;\n usernameFragment?: string;\n}\n\ninterface RTCIceServer {\n credential?: string | null;\n urls?: any;\n username?: string | null;\n}\n\ninterface RTCInboundRTPStreamStats extends RTCRTPStreamStats {\n bytesReceived?: number;\n fractionLost?: number;\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCMediaStreamTrackStats extends RTCStats {\n audioLevel?: number;\n echoReturnLoss?: number;\n echoReturnLossEnhancement?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesCorrupted?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n framesSent?: number;\n remoteSource?: boolean;\n ssrcIds?: string[];\n trackIdentifier?: string;\n}\n\ninterface RTCOfferOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: number;\n offerToReceiveVideo?: number;\n voiceActivityDetection?: boolean;\n}\n\ninterface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n roundTripTime?: number;\n targetBitrate?: number;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate;\n}\n\ninterface RTCRTPStreamStats extends RTCStats {\n associateStatsId?: string;\n codecId?: string;\n firCount?: number;\n isRemote?: boolean;\n mediaTrackId?: string;\n mediaType?: string;\n nackCount?: number;\n pliCount?: number;\n sliCount?: number;\n ssrc?: string;\n transportId?: string;\n}\n\ninterface RTCRtcpFeedback {\n parameter?: string;\n type?: string;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n mux?: boolean;\n reducedSize?: boolean;\n ssrc?: number;\n}\n\ninterface RTCRtpCapabilities {\n codecs?: RTCRtpCodecCapability[];\n fecMechanisms?: string[];\n headerExtensions?: RTCRtpHeaderExtension[];\n}\n\ninterface RTCRtpCodecCapability {\n clockRate?: number;\n kind?: string;\n maxSpatialLayers?: number;\n maxTemporalLayers?: number;\n maxptime?: number;\n name?: string;\n numChannels?: number;\n options?: any;\n parameters?: any;\n preferredPayloadType?: number;\n ptime?: number;\n rtcpFeedback?: RTCRtcpFeedback[];\n svcMultiStreamSupport?: boolean;\n}\n\ninterface RTCRtpCodecParameters {\n clockRate?: number;\n maxptime?: number;\n name?: string;\n numChannels?: number;\n parameters?: any;\n payloadType?: number;\n ptime?: number;\n rtcpFeedback?: RTCRtcpFeedback[];\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n csrc?: number;\n timestamp?: number;\n}\n\ninterface RTCRtpEncodingParameters {\n active?: boolean;\n codecPayloadType?: number;\n dependencyEncodingIds?: string[];\n encodingId?: string;\n fec?: RTCRtpFecParameters;\n framerateScale?: number;\n maxBitrate?: number;\n maxFramerate?: number;\n minQuality?: number;\n priority?: number;\n resolutionScale?: number;\n rtx?: RTCRtpRtxParameters;\n ssrc?: number;\n ssrcRange?: RTCSsrcRange;\n}\n\ninterface RTCRtpFecParameters {\n mechanism?: string;\n ssrc?: number;\n}\n\ninterface RTCRtpHeaderExtension {\n kind?: string;\n preferredEncrypt?: boolean;\n preferredId?: number;\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypt?: boolean;\n id?: number;\n uri?: string;\n}\n\ninterface RTCRtpParameters {\n codecs?: RTCRtpCodecParameters[];\n degradationPreference?: RTCDegradationPreference;\n encodings?: RTCRtpEncodingParameters[];\n headerExtensions?: RTCRtpHeaderExtensionParameters[];\n muxId?: string;\n rtcp?: RTCRtcpParameters;\n}\n\ninterface RTCRtpRtxParameters {\n ssrc?: number;\n}\n\ninterface RTCRtpUnhandled {\n muxId?: string;\n payloadType?: number;\n ssrc?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCSrtpKeyParam {\n keyMethod?: string;\n keySalt?: string;\n lifetime?: string;\n mkiLength?: number;\n mkiValue?: number;\n}\n\ninterface RTCSrtpSdesParameters {\n cryptoSuite?: string;\n keyParams?: RTCSrtpKeyParam[];\n sessionParams?: string[];\n tag?: number;\n}\n\ninterface RTCSsrcRange {\n max?: number;\n min?: number;\n}\n\ninterface RTCStats {\n id?: string;\n msType?: MSStatsType;\n timestamp?: number;\n type?: RTCStatsType;\n}\n\ninterface RTCStatsReport {\n}\n\ninterface RTCTransportStats extends RTCStats {\n activeConnection?: boolean;\n bytesReceived?: number;\n bytesSent?: number;\n localCertificateId?: string;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairId?: string;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n}\n\ninterface RequestInit {\n body?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null;\n cache?: RequestCache;\n credentials?: RequestCredentials;\n headers?: HeadersInit;\n integrity?: string;\n keepalive?: boolean;\n method?: string;\n mode?: RequestMode;\n redirect?: RequestRedirect;\n referrer?: string;\n referrerPolicy?: ReferrerPolicy;\n signal?: AbortSignal;\n window?: any;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: string | Algorithm;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: string | Algorithm;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: Uint8Array;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: Uint8Array;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\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 ScopedCredentialDescriptor {\n id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n transports?: Transport[];\n type: ScopedCredentialType;\n}\n\ninterface ScopedCredentialOptions {\n excludeList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\n}\n\ninterface ScopedCredentialParameters {\n algorithm: string | Algorithm;\n type: ScopedCredentialType;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n documentURI?: string;\n effectiveDirective?: string;\n lineNumber?: number;\n originalPolicy?: string;\n referrer?: string;\n sourceFile?: string;\n statusCode?: number;\n violatedDirective?: string;\n}\n\ninterface ServiceWorkerMessageEventInit extends EventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[] | null;\n source?: ServiceWorker | MessagePort | null;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance?: SpeechSynthesisUtterance | null;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StoreExceptionsInformation extends ExceptionInformation {\n detailURI?: string | null;\n explanationString?: string | null;\n siteName?: string | null;\n}\n\ninterface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {\n arrayOfDomainStrings?: string[];\n}\n\ninterface SyncEventInit extends ExtendableEventInit {\n lastChance?: boolean;\n tag: string;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n}\n\ninterface UnderlyingSink {\n abort?: WritableStreamErrorCallback;\n close?: WritableStreamDefaultControllerCallback;\n start: WritableStreamDefaultControllerCallback;\n write?: WritableStreamChunkCallback;\n}\n\ninterface VRDisplayEventInit extends EventInit {\n display: VRDisplay;\n reason?: VRDisplayEventReason;\n}\n\ninterface VRLayer {\n leftBounds?: number[] | null;\n rightBounds?: number[] | null;\n source?: HTMLCanvasElement | null;\n}\n\ninterface VRStageParameters {\n sittingToStandingTransform?: Float32Array;\n sizeX?: number;\n sizeY?: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[];\n oversample?: OverSampleType;\n}\n\ninterface WebAuthnExtensions {\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\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 EventListener {\n (evt: Event): void;\n}\n\ntype WebKitEntriesCallback = ((entries: WebKitEntry[]) => void) | { handleEvent(entries: WebKitEntry[]): void; };\n\ntype WebKitErrorCallback = ((err: DOMError) => void) | { handleEvent(err: DOMError): void; };\n\ntype WebKitFileCallback = ((file: File) => void) | { handleEvent(file: File): void; };\n\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;\n drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;\n vertexAttribDivisorANGLE(index: number, divisor: number): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;\n}\n\ndeclare var ANGLE_instanced_arrays: {\n prototype: ANGLE_instanced_arrays;\n new(): ANGLE_instanced_arrays;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;\n};\n\ninterface AbortController {\n readonly signal: AbortSignal;\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": ProgressEvent;\n}\n\ninterface AbortSignal extends EventTarget {\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: ProgressEvent) => 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};\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 AesCfbParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCmacParams extends Algorithm {\n length: number;\n}\n\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(): AnalyserNode;\n};\n\ninterface Animation {\n currentTime: number | null;\n effect: AnimationEffectReadOnly;\n readonly finished: Promise<Animation>;\n id: string;\n readonly pending: boolean;\n readonly playState: "idle" | "running" | "paused" | "finished";\n playbackRate: number;\n readonly ready: Promise<Animation>;\n startTime: number;\n timeline: AnimationTimeline;\n cancel(): void;\n finish(): void;\n oncancel: (this: Animation, ev: AnimationPlaybackEvent) => any;\n onfinish: (this: Animation, ev: AnimationPlaybackEvent) => any;\n pause(): void;\n play(): void;\n reverse(): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffectReadOnly, timeline?: AnimationTimeline): Animation;\n};\n\ninterface AnimationEffectReadOnly {\n readonly timing: number;\n getComputedTiming(): ComputedTimingProperties;\n}\n\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(typeArg: string, eventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationKeyFrame {\n easing?: string | string[];\n offset?: number | null | (number | null)[];\n [index: string]: string | number | number[] | string[] | null | (number | null)[] | undefined;\n}\n\ninterface AnimationOptions {\n delay?: number;\n direction?: "normal" | "reverse" | "alternate" | "alternate-reverse";\n duration?: number;\n easing?: string;\n endDelay?: number;\n fill?: "none" | "forwards" | "backwards" | "both"| "auto";\n id?: string;\n iterationStart?: number;\n iterations?: number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: number | null;\n readonly timelineTime: number | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: number | null;\n timelineTime?: number | null;\n}\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ninterface ApplicationCacheEventMap {\n "cached": Event;\n "checking": Event;\n "downloading": Event;\n "error": Event;\n "noupdate": Event;\n "obsolete": Event;\n "progress": ProgressEvent;\n "updateready": Event;\n}\n\ninterface ApplicationCache extends EventTarget {\n oncached: ((this: ApplicationCache, ev: Event) => any) | null;\n onchecking: ((this: ApplicationCache, ev: Event) => any) | null;\n ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;\n onerror: ((this: ApplicationCache, ev: Event) => any) | null;\n onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;\n onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;\n onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;\n onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;\n readonly status: number;\n abort(): void;\n swapCache(): void;\n update(): void;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ApplicationCache: {\n prototype: ApplicationCache;\n new(): ApplicationCache;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n};\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface Attr extends Node {\n readonly name: string;\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\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(): AudioBuffer;\n};\n\ninterface AudioBufferSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioBufferSourceNode extends AudioNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n onended: ((this: AudioBufferSourceNode, ev: Event) => any) | null;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[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(): AudioBufferSourceNode;\n};\n\ninterface AudioContextEventMap {\n "statechange": Event;\n}\n\ninterface AudioContextBase extends EventTarget {\n readonly currentTime: number;\n readonly destination: AudioDestinationNode;\n readonly listener: AudioListener;\n onstatechange: ((this: AudioContext, ev: Event) => any) | null;\n readonly sampleRate: number;\n readonly state: AudioContextState;\n close(): Promise<void>;\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 createConvolver(): ConvolverNode;\n createDelay(maxDelayTime?: number): DelayNode;\n createDynamicsCompressor(): DynamicsCompressorNode;\n createGain(): GainNode;\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n createOscillator(): OscillatorNode;\n createPanner(): PannerNode;\n createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n createStereoPanner(): StereoPannerNode;\n createWaveShaper(): WaveShaperNode;\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise<AudioBuffer>;\n resume(): Promise<void>;\n addEventListener<K extends keyof AudioContextEventMap>(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioContextEventMap>(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AudioContext extends AudioContextBase {\n suspend(): Promise<void>;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(): AudioContext;\n};\n\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\ninterface AudioListener {\n /** @deprecated */\n dopplerFactor: number;\n /** @deprecated */\n speedOfSound: number;\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 /** @deprecated */\n setVelocity(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: AudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destination: AudioNode, output?: number, input?: number): AudioNode;\n connect(destination: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destination: AudioNode): void;\n disconnect(destination: AudioNode, output: number): void;\n disconnect(destination: AudioNode, output: number, input: number): void;\n disconnect(destination: AudioParam): void;\n disconnect(destination: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\ninterface AudioParam {\n readonly defaultValue: number;\n value: number;\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[], startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioProcessingEvent extends Event {\n readonly inputBuffer: AudioBuffer;\n readonly outputBuffer: AudioBuffer;\n readonly playbackTime: number;\n}\n\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(): AudioProcessingEvent;\n};\n\ninterface AudioTrack {\n enabled: boolean;\n readonly id: string;\n kind: string;\n readonly label: string;\n language: string;\n readonly sourceBuffer: SourceBuffer;\n}\n\ndeclare var AudioTrack: {\n prototype: AudioTrack;\n new(): AudioTrack;\n};\n\ninterface AudioTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface AudioTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: AudioTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;\n getTrackById(id: string): AudioTrack | null;\n item(index: number): AudioTrack;\n addEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: AudioTrack;\n}\n\ndeclare var AudioTrackList: {\n prototype: AudioTrackList;\n new(): AudioTrackList;\n};\n\ninterface BarProp {\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BeforeUnloadEvent extends Event {\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\ninterface BhxBrowser {\n readonly lastError: DOMException;\n checkMatchesGlobExpression(pattern: string, value: string): boolean;\n checkMatchesUriExpression(pattern: string, value: string): boolean;\n clearLastError(): void;\n currentWindowId(): number;\n fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;\n genericSynchronousFunction(functionId: number, parameters?: string): string;\n getExtensionId(): string;\n getThisAddress(): any;\n registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n registerGenericListenerHandler(eventHandler: Function): void;\n setLastError(parameters: string): void;\n webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;\n}\n\ndeclare var BhxBrowser: {\n prototype: BhxBrowser;\n new(): BhxBrowser;\n};\n\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(): BiquadFilterNode;\n};\n\ninterface Blob {\n readonly size: number;\n readonly type: string;\n msClose(): void;\n msDetachStream(): any;\n slice(start?: number, end?: number, contentType?: string): Blob;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new (blobParts?: any[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobPropertyBag {\n endings?: string;\n type?: string;\n}\n\ninterface Body {\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 BroadcastChannel extends EventTarget {\n readonly name: string;\n onmessage: (ev: MessageEvent) => any;\n onmessageerror: (ev: MessageEvent) => any;\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 close(): void;\n postMessage(message: any): 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\ninterface BroadcastChannelEventMap {\n message: MessageEvent;\n messageerror: MessageEvent;\n}\n\ninterface ByteLengthQueuingStrategy {\n highWaterMark: number;\n size(chunk?: any): number;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(strategy: QueuingStrategy): ByteLengthQueuingStrategy;\n};\n\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\ninterface CSS {\n escape(value: string): string;\n supports(property: string, value?: string): boolean;\n}\ndeclare var CSS: CSS;\n\ninterface CSSConditionRule extends CSSGroupingRule {\n conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\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\ninterface CSSKeyframeRule extends CSSRule {\n keyText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\ninterface CSSKeyframesRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n name: string;\n appendRule(rule: string): void;\n deleteRule(rule: string): void;\n findRule(rule: string): CSSKeyframeRule | null;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\ninterface CSSMediaRule extends CSSConditionRule {\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\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\ninterface CSSPageRule extends CSSRule {\n readonly pseudoClass: string;\n readonly selector: string;\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\ninterface CSSRule {\n cssText: string;\n readonly parentRule: CSSRule | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\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 readonly UNKNOWN_RULE: number;\n readonly VIEWPORT_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 readonly UNKNOWN_RULE: number;\n readonly VIEWPORT_RULE: number;\n};\n\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\ninterface CSSStyleDeclaration {\n alignContent: string | null;\n alignItems: string | null;\n alignSelf: string | null;\n alignmentBaseline: string | null;\n animation: string | null;\n animationDelay: string | null;\n animationDirection: string | null;\n animationDuration: string | null;\n animationFillMode: string | null;\n animationIterationCount: string | null;\n animationName: string | null;\n animationPlayState: string | null;\n animationTimingFunction: string | null;\n backfaceVisibility: string | null;\n background: string | null;\n backgroundAttachment: string | null;\n backgroundClip: string | null;\n backgroundColor: string | null;\n backgroundImage: string | null;\n backgroundOrigin: string | null;\n backgroundPosition: string | null;\n backgroundPositionX: string | null;\n backgroundPositionY: string | null;\n backgroundRepeat: string | null;\n backgroundSize: string | null;\n baselineShift: string | null;\n border: string | null;\n borderBottom: string | null;\n borderBottomColor: string | null;\n borderBottomLeftRadius: string | null;\n borderBottomRightRadius: string | null;\n borderBottomStyle: string | null;\n borderBottomWidth: string | null;\n borderCollapse: string | null;\n borderColor: string | null;\n borderImage: string | null;\n borderImageOutset: string | null;\n borderImageRepeat: string | null;\n borderImageSlice: string | null;\n borderImageSource: string | null;\n borderImageWidth: string | null;\n borderLeft: string | null;\n borderLeftColor: string | null;\n borderLeftStyle: string | null;\n borderLeftWidth: string | null;\n borderRadius: string | null;\n borderRight: string | null;\n borderRightColor: string | null;\n borderRightStyle: string | null;\n borderRightWidth: string | null;\n borderSpacing: string | null;\n borderStyle: string | null;\n borderTop: string | null;\n borderTopColor: string | null;\n borderTopLeftRadius: string | null;\n borderTopRightRadius: string | null;\n borderTopStyle: string | null;\n borderTopWidth: string | null;\n borderWidth: string | null;\n bottom: string | null;\n boxShadow: string | null;\n boxSizing: string | null;\n breakAfter: string | null;\n breakBefore: string | null;\n breakInside: string | null;\n captionSide: string | null;\n clear: string | null;\n clip: string | null;\n clipPath: string | null;\n clipRule: string | null;\n color: string | null;\n colorInterpolationFilters: string | null;\n columnCount: any;\n columnFill: string | null;\n columnGap: any;\n columnRule: string | null;\n columnRuleColor: any;\n columnRuleStyle: string | null;\n columnRuleWidth: any;\n columnSpan: string | null;\n columnWidth: any;\n columns: string | null;\n content: string | null;\n counterIncrement: string | null;\n counterReset: string | null;\n cssFloat: string | null;\n cssText: string;\n cursor: string | null;\n direction: string | null;\n display: string | null;\n dominantBaseline: string | null;\n emptyCells: string | null;\n enableBackground: string | null;\n fill: string | null;\n fillOpacity: string | null;\n fillRule: string | null;\n filter: string | null;\n flex: string | null;\n flexBasis: string | null;\n flexDirection: string | null;\n flexFlow: string | null;\n flexGrow: string | null;\n flexShrink: string | null;\n flexWrap: string | null;\n floodColor: string | null;\n floodOpacity: string | null;\n font: string | null;\n fontFamily: string | null;\n fontFeatureSettings: string | null;\n fontSize: string | null;\n fontSizeAdjust: string | null;\n fontStretch: string | null;\n fontStyle: string | null;\n fontVariant: string | null;\n fontWeight: string | null;\n gap: string | null;\n glyphOrientationHorizontal: string | null;\n glyphOrientationVertical: string | null;\n grid: string | null;\n gridArea: string | null;\n gridAutoColumns: string | null;\n gridAutoFlow: string | null;\n gridAutoRows: string | null;\n gridColumn: string | null;\n gridColumnEnd: string | null;\n gridColumnGap: string | null;\n gridColumnStart: string | null;\n gridGap: string | null;\n gridRow: string | null;\n gridRowEnd: string | null;\n gridRowGap: string | null;\n gridRowStart: string | null;\n gridTemplate: string | null;\n gridTemplateAreas: string | null;\n gridTemplateColumns: string | null;\n gridTemplateRows: string | null;\n height: string | null;\n imeMode: string | null;\n justifyContent: string | null;\n justifyItems: string | null;\n justifySelf: string | null;\n kerning: string | null;\n layoutGrid: string | null;\n layoutGridChar: string | null;\n layoutGridLine: string | null;\n layoutGridMode: string | null;\n layoutGridType: string | null;\n left: string | null;\n readonly length: number;\n letterSpacing: string | null;\n lightingColor: string | null;\n lineBreak: string | null;\n lineHeight: string | null;\n listStyle: string | null;\n listStyleImage: string | null;\n listStylePosition: string | null;\n listStyleType: string | null;\n margin: string | null;\n marginBottom: string | null;\n marginLeft: string | null;\n marginRight: string | null;\n marginTop: string | null;\n marker: string | null;\n markerEnd: string | null;\n markerMid: string | null;\n markerStart: string | null;\n mask: string | null;\n maskImage: string | null;\n maxHeight: string | null;\n maxWidth: string | null;\n minHeight: string | null;\n minWidth: string | null;\n msContentZoomChaining: string | null;\n msContentZoomLimit: string | null;\n msContentZoomLimitMax: any;\n msContentZoomLimitMin: any;\n msContentZoomSnap: string | null;\n msContentZoomSnapPoints: string | null;\n msContentZoomSnapType: string | null;\n msContentZooming: string | null;\n msFlowFrom: string | null;\n msFlowInto: string | null;\n msFontFeatureSettings: string | null;\n msGridColumn: any;\n msGridColumnAlign: string | null;\n msGridColumnSpan: any;\n msGridColumns: string | null;\n msGridRow: any;\n msGridRowAlign: string | null;\n msGridRowSpan: any;\n msGridRows: string | null;\n msHighContrastAdjust: string | null;\n msHyphenateLimitChars: string | null;\n msHyphenateLimitLines: any;\n msHyphenateLimitZone: any;\n msHyphens: string | null;\n msImeAlign: string | null;\n msOverflowStyle: string | null;\n msScrollChaining: string | null;\n msScrollLimit: string | null;\n msScrollLimitXMax: any;\n msScrollLimitXMin: any;\n msScrollLimitYMax: any;\n msScrollLimitYMin: any;\n msScrollRails: string | null;\n msScrollSnapPointsX: string | null;\n msScrollSnapPointsY: string | null;\n msScrollSnapType: string | null;\n msScrollSnapX: string | null;\n msScrollSnapY: string | null;\n msScrollTranslation: string | null;\n msTextCombineHorizontal: string | null;\n msTextSizeAdjust: any;\n msTouchAction: string | null;\n msTouchSelect: string | null;\n msUserSelect: string | null;\n msWrapFlow: string;\n msWrapMargin: any;\n msWrapThrough: string;\n objectFit: string | null;\n objectPosition: string | null;\n opacity: string | null;\n order: string | null;\n orphans: string | null;\n outline: string | null;\n outlineColor: string | null;\n outlineOffset: string | null;\n outlineStyle: string | null;\n outlineWidth: string | null;\n overflow: string | null;\n overflowX: string | null;\n overflowY: string | null;\n padding: string | null;\n paddingBottom: string | null;\n paddingLeft: string | null;\n paddingRight: string | null;\n paddingTop: string | null;\n pageBreakAfter: string | null;\n pageBreakBefore: string | null;\n pageBreakInside: string | null;\n readonly parentRule: CSSRule;\n penAction: string | null;\n perspective: string | null;\n perspectiveOrigin: string | null;\n pointerEvents: string | null;\n position: string | null;\n quotes: string | null;\n resize: string | null;\n right: string | null;\n rotate: string | null;\n rowGap: string | null;\n rubyAlign: string | null;\n rubyOverhang: string | null;\n rubyPosition: string | null;\n scale: string | null;\n stopColor: string | null;\n stopOpacity: string | null;\n stroke: string | null;\n strokeDasharray: string | null;\n strokeDashoffset: string | null;\n strokeLinecap: string | null;\n strokeLinejoin: string | null;\n strokeMiterlimit: string | null;\n strokeOpacity: string | null;\n strokeWidth: string | null;\n tableLayout: string | null;\n textAlign: string | null;\n textAlignLast: string | null;\n textAnchor: string | null;\n textCombineUpright: string | null;\n textDecoration: string | null;\n textIndent: string | null;\n textJustify: string | null;\n textKashida: string | null;\n textKashidaSpace: string | null;\n textOverflow: string | null;\n textShadow: string | null;\n textTransform: string | null;\n textUnderlinePosition: string | null;\n top: string | null;\n touchAction: string | null;\n transform: string | null;\n transformOrigin: string | null;\n transformStyle: string | null;\n transition: string | null;\n transitionDelay: string | null;\n transitionDuration: string | null;\n transitionProperty: string | null;\n transitionTimingFunction: string | null;\n translate: string | null;\n unicodeBidi: string | null;\n userSelect: string | null;\n verticalAlign: string | null;\n visibility: string | null;\n webkitAlignContent: string | null;\n webkitAlignItems: string | null;\n webkitAlignSelf: string | null;\n webkitAnimation: string | null;\n webkitAnimationDelay: string | null;\n webkitAnimationDirection: string | null;\n webkitAnimationDuration: string | null;\n webkitAnimationFillMode: string | null;\n webkitAnimationIterationCount: string | null;\n webkitAnimationName: string | null;\n webkitAnimationPlayState: string | null;\n webkitAnimationTimingFunction: string | null;\n webkitAppearance: string | null;\n webkitBackfaceVisibility: string | null;\n webkitBackgroundClip: string | null;\n webkitBackgroundOrigin: string | null;\n webkitBackgroundSize: string | null;\n webkitBorderBottomLeftRadius: string | null;\n webkitBorderBottomRightRadius: string | null;\n webkitBorderImage: string | null;\n webkitBorderRadius: string | null;\n webkitBorderTopLeftRadius: string | null;\n webkitBorderTopRightRadius: string | null;\n webkitBoxAlign: string | null;\n webkitBoxDirection: string | null;\n webkitBoxFlex: string | null;\n webkitBoxOrdinalGroup: string | null;\n webkitBoxOrient: string | null;\n webkitBoxPack: string | null;\n webkitBoxSizing: string | null;\n webkitColumnBreakAfter: string | null;\n webkitColumnBreakBefore: string | null;\n webkitColumnBreakInside: string | null;\n webkitColumnCount: any;\n webkitColumnGap: any;\n webkitColumnRule: string | null;\n webkitColumnRuleColor: any;\n webkitColumnRuleStyle: string | null;\n webkitColumnRuleWidth: any;\n webkitColumnSpan: string | null;\n webkitColumnWidth: any;\n webkitColumns: string | null;\n webkitFilter: string | null;\n webkitFlex: string | null;\n webkitFlexBasis: string | null;\n webkitFlexDirection: string | null;\n webkitFlexFlow: string | null;\n webkitFlexGrow: string | null;\n webkitFlexShrink: string | null;\n webkitFlexWrap: string | null;\n webkitJustifyContent: string | null;\n webkitOrder: string | null;\n webkitPerspective: string | null;\n webkitPerspectiveOrigin: string | null;\n webkitTapHighlightColor: string | null;\n webkitTextFillColor: string | null;\n webkitTextSizeAdjust: any;\n webkitTextStroke: string | null;\n webkitTextStrokeColor: string | null;\n webkitTextStrokeWidth: string | null;\n webkitTransform: string | null;\n webkitTransformOrigin: string | null;\n webkitTransformStyle: string | null;\n webkitTransition: string | null;\n webkitTransitionDelay: string | null;\n webkitTransitionDuration: string | null;\n webkitTransitionProperty: string | null;\n webkitTransitionTimingFunction: string | null;\n webkitUserModify: string | null;\n webkitUserSelect: string | null;\n webkitWritingMode: string | null;\n whiteSpace: string | null;\n widows: string | null;\n width: string | null;\n wordBreak: string | null;\n wordSpacing: string | null;\n wordWrap: string | null;\n writingMode: string | null;\n zIndex: string | null;\n zoom: string | null;\n getPropertyPriority(propertyName: string): string;\n getPropertyValue(propertyName: string): string;\n item(index: number): string;\n removeProperty(propertyName: string): string;\n setProperty(propertyName: string, value: string | null, priority?: string | null): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\ninterface CSSStyleRule extends CSSRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\ninterface CSSStyleSheet extends StyleSheet {\n readonly cssRules: CSSRuleList;\n /** @deprecated */\n cssText: string;\n /** @deprecated */\n readonly id: string;\n /** @deprecated */\n readonly imports: StyleSheetList;\n /** @deprecated */\n readonly isAlternate: boolean;\n /** @deprecated */\n readonly isPrefAlternate: boolean;\n readonly ownerRule: CSSRule | null;\n /** @deprecated */\n readonly owningElement: Element;\n /** @deprecated */\n readonly pages: any;\n /** @deprecated */\n readonly readOnly: boolean;\n readonly rules: CSSRuleList;\n /** @deprecated */\n addImport(bstrURL: string, lIndex?: number): number;\n /** @deprecated */\n addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;\n addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;\n deleteRule(index?: number): void;\n insertRule(rule: string, index?: number): number;\n /** @deprecated */\n removeImport(lIndex: number): void;\n removeRule(lIndex: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(): CSSStyleSheet;\n};\n\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\ninterface Cache {\n add(request: Request | string): Promise<void>;\n addAll(requests: (Request | string)[]): Promise<void>;\n delete(request: Request | string, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: Request | string, options?: CacheQueryOptions): Promise<Request[]>;\n match(request: Request | string, options?: CacheQueryOptions): Promise<Response>;\n matchAll(request?: Request | string, options?: CacheQueryOptions): Promise<Response[]>;\n put(request: Request | string, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: Request | string, options?: CacheQueryOptions): Promise<any>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface Canvas2DContextAttributes {\n alpha?: boolean;\n storage?: boolean;\n willReadFrequently?: boolean;\n [attribute: string]: boolean | string | undefined;\n}\n\ninterface CanvasGradient {\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasPathMethods {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radiusX: number, radiusY: number, rotation: 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, anticlockwise?: 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 CanvasPattern {\n setTransform(matrix: SVGMatrix): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRenderingContext2D extends CanvasPathMethods {\n readonly canvas: HTMLCanvasElement;\n fillStyle: string | CanvasGradient | CanvasPattern;\n font: string;\n globalAlpha: number;\n globalCompositeOperation: string;\n imageSmoothingEnabled: boolean;\n lineCap: string;\n lineDashOffset: number;\n lineJoin: string;\n lineWidth: number;\n miterLimit: number;\n mozImageSmoothingEnabled: boolean;\n msFillRule: CanvasFillRule;\n oImageSmoothingEnabled: boolean;\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n textAlign: string;\n textBaseline: string;\n webkitImageSmoothingEnabled: boolean;\n beginPath(): void;\n clearRect(x: number, y: number, w: number, h: number): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number): void;\n drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number, dstW: number, dstH: number): void;\n drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, srcX: number, srcY: number, srcW: number, srcH: number, dstX: number, dstY: number, dstW: number, dstH: number): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;\n getLineDash(): number[];\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, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n measureText(text: string): TextMetrics;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;\n restore(): void;\n rotate(angle: number): void;\n save(): void;\n scale(x: number, y: number): void;\n setLineDash(segments: number[]): void;\n setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;\n stroke(path?: Path2D): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;\n translate(x: number, y: number): void;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(): ChannelMergerNode;\n};\n\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(): ChannelSplitterNode;\n};\n\ninterface CharacterData extends Node, ChildNode {\n data: string;\n readonly length: number;\n appendData(arg: string): void;\n deleteData(offset: number, count: number): void;\n insertData(offset: number, arg: string): void;\n replaceData(offset: number, count: number, arg: string): void;\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode {\n remove(): void;\n}\n\ninterface ClientRect {\n bottom: number;\n readonly height: number;\n left: number;\n right: number;\n top: number;\n readonly width: number;\n}\n\ndeclare var ClientRect: {\n prototype: ClientRect;\n new(): ClientRect;\n};\n\ninterface ClientRectList {\n readonly length: number;\n item(index: number): ClientRect;\n [index: number]: ClientRect;\n}\n\ndeclare var ClientRectList: {\n prototype: ClientRectList;\n new(): ClientRectList;\n};\n\ninterface ClipboardEvent extends Event {\n readonly clipboardData: DataTransfer;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\ninterface ClipboardEventInit extends EventInit {\n data?: string;\n dataType?: string;\n}\n\ninterface CloseEvent extends Event {\n readonly code: number;\n readonly reason: string;\n readonly wasClean: boolean;\n /** @deprecated */\n initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\ninterface Comment extends CharacterData {\n text: string;\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\ninterface CompositionEvent extends UIEvent {\n readonly data: string;\n readonly locale: string;\n initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ComputedTimingProperties {\n activeDuration: number;\n currentIteration: number | null;\n endTime: number;\n localTime: number | null;\n progress: number | null;\n}\n\ninterface ConcatParams extends Algorithm {\n algorithmId: Uint8Array;\n hash?: string | Algorithm;\n partyUInfo: Uint8Array;\n partyVInfo: Uint8Array;\n privateInfo?: Uint8Array;\n publicInfo?: Uint8Array;\n}\n\ninterface Console {\n memory: any;\n assert(condition?: boolean, message?: string, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n debug(message?: any, ...optionalParams: any[]): void;\n dir(value?: any, ...optionalParams: any[]): void;\n dirxml(value: any): void;\n error(message?: any, ...optionalParams: any[]): void;\n exception(message?: string, ...optionalParams: any[]): void;\n group(groupTitle?: string, ...optionalParams: any[]): void;\n groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;\n groupEnd(): void;\n info(message?: any, ...optionalParams: any[]): void;\n log(message?: any, ...optionalParams: any[]): void;\n markTimeline(label?: string): void;\n msIsIndependentlyComposed(element: Element): boolean;\n profile(reportName?: string): void;\n profileEnd(): void;\n select(element: Element): void;\n table(...tabularData: any[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeStamp(label?: string): void;\n timeline(label?: string): void;\n timelineEnd(label?: string): void;\n trace(message?: any, ...optionalParams: any[]): void;\n warn(message?: any, ...optionalParams: any[]): void;\n}\n\ndeclare var Console: {\n prototype: Console;\n new(): Console;\n};\n\ninterface ContentScriptGlobalScope extends EventTarget {\n readonly msContentScript: ExtensionScriptApis;\n readonly window: Window;\n}\n\ndeclare var ContentScriptGlobalScope: {\n prototype: ContentScriptGlobalScope;\n new(): ContentScriptGlobalScope;\n};\n\ninterface ConvolverNode extends AudioNode {\n buffer: AudioBuffer | null;\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(): ConvolverNode;\n};\n\ninterface Coordinates {\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 Coordinates: {\n prototype: Coordinates;\n new(): Coordinates;\n};\n\ninterface CountQueuingStrategy {\n highWaterMark: number;\n size(): number;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(strategy: QueuingStrategy): CountQueuingStrategy;\n};\n\ninterface Crypto {\n readonly subtle: SubtleCrypto;\n getRandomValues(array: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: string;\n readonly usages: string[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ndeclare var CryptoKeyPair: {\n prototype: CryptoKeyPair;\n new(): CryptoKeyPair;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: Function, options?: ElementDefinitionOptions): void;\n get(name: string): any;\n whenDefined(name: string): PromiseLike<void>;\n}\n\ninterface CustomEvent<T = any> extends Event {\n readonly detail: T;\n initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\ninterface DOMError {\n readonly name: string;\n toString(): string;\n}\n\ndeclare var DOMError: {\n prototype: DOMError;\n new(): DOMError;\n};\n\ninterface DOMException {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n toString(): 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 PARSE_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SERIALIZE_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 PARSE_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SERIALIZE_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 DOMImplementation {\n createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n createHTMLDocument(title?: string): Document;\n hasFeature(feature: string | null, version: string | null): boolean;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\ninterface DOML2DeprecatedColorProperty {\n color: string;\n}\n\ninterface DOML2DeprecatedSizeProperty {\n size: number;\n}\n\ninterface DOMParser {\n parseFromString(source: string, mimeType: string): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\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(rectangle?: DOMRectInit): DOMRect;\n};\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: 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}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new (x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(rectangle?: DOMRectInit): DOMRectReadOnly;\n};\n\ninterface DOMSettableTokenList extends DOMTokenList {\n value: string;\n}\n\ndeclare var DOMSettableTokenList: {\n prototype: DOMSettableTokenList;\n new(): DOMSettableTokenList;\n};\n\ninterface DOMStringList {\n readonly length: number;\n contains(str: string): boolean;\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\ninterface DOMTokenList {\n readonly length: number;\n add(...tokens: string[]): void;\n contains(token: string): boolean;\n item(index: number): string | null;\n remove(...tokens: string[]): void;\n toString(): string;\n toggle(token: string, force?: boolean): boolean;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\ninterface DataCue extends TextTrackCue {\n data: ArrayBuffer;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, 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: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DataCue: {\n prototype: DataCue;\n new(): DataCue;\n};\n\ninterface DataTransfer {\n dropEffect: string;\n effectAllowed: string;\n readonly files: FileList;\n readonly items: DataTransferItemList;\n readonly types: string[];\n clearData(format?: string): boolean;\n getData(format: string): string;\n setData(format: string, data: string): boolean;\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\ninterface DataTransferItem {\n readonly kind: string;\n readonly type: string;\n getAsFile(): File | null;\n getAsString(_callback: FunctionStringCallback | null): void;\n webkitGetAsEntry(): any;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\ninterface DataTransferItemList {\n readonly length: number;\n add(data: File): DataTransferItem | null;\n add(data: string, type: string): DataTransferItem | null;\n clear(): void;\n item(index: number): DataTransferItem;\n remove(index: number): void;\n [name: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\ninterface DeferredPermissionRequest {\n readonly id: number;\n readonly type: MSWebViewPermissionType;\n readonly uri: string;\n allow(): void;\n deny(): void;\n}\n\ndeclare var DeferredPermissionRequest: {\n prototype: DeferredPermissionRequest;\n new(): DeferredPermissionRequest;\n};\n\ninterface DelayNode extends AudioNode {\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(): DelayNode;\n};\n\ninterface DeviceAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\ndeclare var DeviceAcceleration: {\n prototype: DeviceAcceleration;\n new(): DeviceAcceleration;\n};\n\ninterface DeviceLightEvent extends Event {\n readonly value: number;\n}\n\ndeclare var DeviceLightEvent: {\n prototype: DeviceLightEvent;\n new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;\n};\n\ninterface DeviceMotionEvent extends Event {\n readonly acceleration: DeviceAcceleration | null;\n readonly accelerationIncludingGravity: DeviceAcceleration | null;\n readonly interval: number | null;\n readonly rotationRate: DeviceRotationRate | null;\n initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\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 initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DeviceRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceRotationRate: {\n prototype: DeviceRotationRate;\n new(): DeviceRotationRate;\n};\n\ninterface DhImportKeyParams extends Algorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DhKeyAlgorithm extends KeyAlgorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface DhKeyGenParams extends Algorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "activate": Event;\n "beforeactivate": Event;\n "beforedeactivate": Event;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "contextmenu": PointerEvent;\n "dblclick": MouseEvent;\n "deactivate": Event;\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 "fullscreenchange": Event;\n "fullscreenerror": Event;\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 "mousedown": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "mousewheel": WheelEvent;\n "MSContentZoom": Event;\n "MSGestureChange": Event;\n "MSGestureDoubleTap": Event;\n "MSGestureEnd": Event;\n "MSGestureHold": Event;\n "MSGestureStart": Event;\n "MSGestureTap": Event;\n "MSInertiaStart": Event;\n "MSManipulationStateChanged": Event;\n "MSPointerCancel": Event;\n "MSPointerDown": Event;\n "MSPointerEnter": Event;\n "MSPointerLeave": Event;\n "MSPointerMove": Event;\n "MSPointerOut": Event;\n "MSPointerOver": Event;\n "MSPointerUp": Event;\n "mssitemodejumplistitemremoved": Event;\n "msthumbnailclick": Event;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "progress": ProgressEvent;\n "ratechange": Event;\n "readystatechange": Event;\n "reset": Event;\n "scroll": UIEvent;\n "seeked": Event;\n "seeking": Event;\n "select": UIEvent;\n "selectionchange": Event;\n "selectstart": Event;\n "stalled": Event;\n "stop": Event;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "touchcancel": Event;\n "touchend": Event;\n "touchmove": Event;\n "touchstart": Event;\n "volumechange": Event;\n "waiting": Event;\n "webkitfullscreenchange": Event;\n "webkitfullscreenerror": Event;\n}\n\ninterface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent {\n /**\n * Sets or gets the URL for the current document.\n */\n readonly URL: string;\n /**\n * Gets the URL for the document, stripped of any character encoding.\n */\n readonly URLUnencoded: string;\n /**\n * Gets the object that has the focus when the parent document has focus.\n */\n readonly activeElement: Element;\n /**\n * Sets or gets the color of all active links in the document.\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\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 */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n */\n readonly applets: HTMLCollectionOf<HTMLAppletElement>;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n */\n bgColor: string;\n /**\n * Specifies the beginning and end of the document body.\n */\n body: HTMLElement;\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n */\n charset: string;\n /**\n * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n */\n readonly compatMode: string;\n cookie: string;\n readonly currentScript: HTMLScriptElement | SVGScriptElement | null;\n readonly defaultView: Window;\n /**\n * Sets or gets a value that indicates whether the document can be edited.\n */\n designMode: string;\n /**\n * Sets or retrieves a value that indicates the reading order of the object.\n */\n dir: string;\n /**\n * Gets an object representing the document type declaration associated with the current document.\n */\n readonly doctype: DocumentType;\n /**\n * Gets a reference to the root node of the document.\n */\n readonly documentElement: HTMLElement;\n /**\n * Sets or gets the security domain of the document.\n */\n domain: string;\n /**\n * Retrieves a collection of all embed objects in the document.\n */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n */\n fgColor: string;\n /**\n * Retrieves a collection, in source order, of all form objects in the document.\n */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n readonly fullscreenElement: Element | null;\n readonly fullscreenEnabled: boolean;\n readonly head: HTMLHeadElement;\n readonly hidden: boolean;\n /**\n * Retrieves a collection, in source order, of img objects in the document.\n */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /**\n * Gets the implementation object of the current document.\n */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n */\n readonly inputEncoding: string | null;\n /**\n * Gets the date that the page was last modified, if the page supplies one.\n */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n */\n linkColor: string;\n /**\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /**\n * Contains information about the current URL.\n */\n location: Location;\n msCSSOMElementFloatMetrics: boolean;\n msCapsLockWarningOff: boolean;\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\n onabort: ((this: Document, ev: UIEvent) => any) | null;\n /**\n * Fires when the object is set as the active element.\n * @param ev The event.\n */\n onactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires immediately before the object is set as the active element.\n * @param ev The event.\n */\n onbeforeactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires immediately before the activeElement is changed from the current object to another object in the parent document.\n * @param ev The event.\n */\n onbeforedeactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\n onblur: ((this: Document, 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: Document, ev: Event) => any) | null;\n oncanplaythrough: ((this: Document, 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: Document, 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: Document, ev: MouseEvent) => 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: Document, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\n ondblclick: ((this: Document, ev: MouseEvent) => any) | null;\n /**\n * Fires when the activeElement is changed from the current object to another object in the parent document.\n * @param ev The UI Event\n */\n ondeactivate: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\n ondrag: ((this: Document, 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: Document, 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: Document, 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: Document, 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: Document, 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: Document, ev: DragEvent) => any) | null;\n ondrop: ((this: Document, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\n ondurationchange: ((this: Document, 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: Document, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\n onended: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\n onerror: ((this: Document, ev: ErrorEvent) => any) | null;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n */\n onfocus: ((this: Document, ev: FocusEvent) => any) | null;\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n oninput: ((this: Document, ev: Event) => any) | null;\n oninvalid: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\n onkeydown: ((this: Document, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n */\n onkeypress: ((this: Document, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\n onkeyup: ((this: Document, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\n onload: ((this: Document, 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: Document, 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: Document, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\n onloadstart: ((this: Document, ev: Event) => 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: Document, 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: Document, 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: Document, 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: Document, 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: Document, ev: MouseEvent) => any) | null;\n /**\n * Fires when the wheel button is rotated.\n * @param ev The mouse event\n */\n onmousewheel: ((this: Document, ev: WheelEvent) => any) | null;\n onmscontentzoom: ((this: Document, ev: Event) => any) | null;\n onmsgesturechange: ((this: Document, ev: Event) => any) | null;\n onmsgesturedoubletap: ((this: Document, ev: Event) => any) | null;\n onmsgestureend: ((this: Document, ev: Event) => any) | null;\n onmsgesturehold: ((this: Document, ev: Event) => any) | null;\n onmsgesturestart: ((this: Document, ev: Event) => any) | null;\n onmsgesturetap: ((this: Document, ev: Event) => any) | null;\n onmsinertiastart: ((this: Document, ev: Event) => any) | null;\n onmsmanipulationstatechanged: ((this: Document, ev: Event) => any) | null;\n onmspointercancel: ((this: Document, ev: Event) => any) | null;\n onmspointerdown: ((this: Document, ev: Event) => any) | null;\n onmspointerenter: ((this: Document, ev: Event) => any) | null;\n onmspointerleave: ((this: Document, ev: Event) => any) | null;\n onmspointermove: ((this: Document, ev: Event) => any) | null;\n onmspointerout: ((this: Document, ev: Event) => any) | null;\n onmspointerover: ((this: Document, ev: Event) => any) | null;\n onmspointerup: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.\n * @param ev The event.\n */\n onmssitemodejumplistitemremoved: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.\n * @param ev The event.\n */\n onmsthumbnailclick: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n */\n onpause: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\n onplay: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\n onplaying: ((this: Document, ev: Event) => any) | null;\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\n onprogress: ((this: Document, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\n onratechange: ((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 /**\n * Fires when the user resets a form.\n * @param ev The event.\n */\n onreset: ((this: Document, ev: Event) => 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: Document, ev: UIEvent) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\n onseeked: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\n onseeking: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n */\n onselect: ((this: Document, ev: UIEvent) => any) | null;\n /**\n * Fires when the selection state of a document changes.\n * @param ev The event.\n */\n onselectionchange: ((this: Document, ev: Event) => any) | null;\n onselectstart: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\n onstalled: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the Stop button or leaves the Web page.\n * @param ev The event.\n */\n onstop: ((this: Document, ev: Event) => any) | null;\n onsubmit: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\n onsuspend: ((this: Document, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\n ontimeupdate: ((this: Document, ev: Event) => any) | null;\n ontouchcancel: ((this: Document, ev: Event) => any) | null;\n ontouchend: ((this: Document, ev: Event) => any) | null;\n ontouchmove: ((this: Document, ev: Event) => any) | null;\n ontouchstart: ((this: Document, ev: Event) => any) | null;\n onvisibilitychange: (this: Document, ev: Event) => any;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\n onvolumechange: ((this: Document, 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: Document, ev: Event) => any) | null;\n onwebkitfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onwebkitfullscreenerror: ((this: Document, ev: Event) => any) | null;\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n readonly pointerLockElement: Element;\n /**\n * Retrieves a value that indicates the current state of the object.\n */\n readonly readyState: string;\n /**\n * Gets the URL of the location that referred the user to the current page.\n */\n readonly referrer: string;\n /**\n * Gets the root svg element in the document hierarchy.\n */\n readonly rootElement: SVGSVGElement;\n /**\n * Retrieves a collection of all script objects in the document.\n */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n readonly scrollingElement: Element | null;\n /**\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 */\n readonly styleSheets: StyleSheetList;\n /**\n * Contains the title of the document.\n */\n title: string;\n readonly visibilityState: VisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n */\n vlinkColor: string;\n readonly webkitCurrentFullScreenElement: Element | null;\n readonly webkitFullscreenElement: Element | null;\n readonly webkitFullscreenEnabled: boolean;\n readonly webkitIsFullScreen: boolean;\n readonly xmlEncoding: string | null;\n xmlStandalone: boolean;\n /**\n * Gets or sets the version attribute specified in the declaration of an XML document.\n */\n xmlVersion: string | null;\n adoptNode<T extends Node>(source: T): T;\n captureEvents(): void;\n caretRangeFromPoint(x: number, y: number): Range;\n clear(): void;\n /**\n * Closes an output stream and forces the sent data to display.\n */\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(name: string): Attr;\n createAttributeNS(namespaceURI: string | null, qualifiedName: string): Attr;\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 /**\n * Creates a new document.\n */\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 createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string): Element;\n createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;\n createNSResolver(nodeResolver: Node): XPathNSResolver;\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 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n */\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 createTouch(view: Window, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;\n createTouchList(...touches: Touch[]): TouchList;\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 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;\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;\n evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;\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 */\n execCommand(commandId: string, showUI?: boolean, value?: any): boolean;\n /**\n * Displays help information for the given command identifier.\n * @param commandId Displays help information for the given command identifier.\n */\n execCommandShowHelp(commandId: string): boolean;\n exitFullscreen(): void;\n exitPointerLock(): void;\n /**\n * Causes the element to receive the focus and executes the code specified by the onfocus event.\n */\n /** @deprecated */\n focus(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID or NAME attribute.\n * @param elementId String that specifies the ID value. Case-insensitive.\n */\n getElementById(elementId: string): HTMLElement | null;\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>(tagname: K): NodeListOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(tagname: K): NodeListOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(tagname: string): NodeListOf<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(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;\n /**\n * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n */\n getSelection(): Selection;\n /**\n * Gets a value indicating whether the object currently has focus.\n */\n hasFocus(): boolean;\n importNode<T extends Node>(importedNode: T, deep: boolean): T;\n msElementsFromPoint(x: number, y: number): NodeListOf<Element>;\n msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;\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(url?: string, name?: string, features?: string, replace?: boolean): Document;\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 */\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 */\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 */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Retrieves the string associated with a command.\n * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.\n */\n queryCommandText(commandId: string): string;\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 releaseEvents(): void;\n webkitCancelFullScreen(): void;\n webkitExitFullscreen(): 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(...content: 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(...content: 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 DocumentEvent {\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "Event"): Event;\n createEvent(eventInterface: "Events"): Event;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;\n createEvent(eventInterface: "MSDCCEvent"): MSDCCEvent;\n createEvent(eventInterface: "MSDSHEvent"): MSDSHEvent;\n createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;\n createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;\n createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;\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: "OverflowEvent"): OverflowEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;\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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;\n createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;\n createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;\n createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;\n createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;\n createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "TextEvent"): TextEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;\n createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n}\n\ninterface DocumentFragment extends Node, ParentNode {\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n readonly activeElement: Element | null;\n readonly styleSheets: StyleSheetList;\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n getSelection(): Selection | null;\n}\n\ninterface DocumentType extends Node, ChildNode {\n readonly entities: NamedNodeMap;\n readonly internalSubset: string | null;\n readonly name: string;\n readonly notations: NamedNodeMap;\n readonly publicId: string;\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\ninterface DragEvent extends MouseEvent {\n readonly dataTransfer: DataTransfer;\n initDragEvent(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, dataTransferArg: DataTransfer): void;\n msConvertURL(file: File, targetType: string, targetURL?: string): void;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;\n};\n\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(): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: number;\n readonly MIN_EXT: number;\n}\n\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: number;\n readonly SRGB8_ALPHA8_EXT: number;\n readonly SRGB_ALPHA_EXT: number;\n readonly SRGB_EXT: number;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: number;\n}\n\ndeclare var EXT_texture_filter_anisotropic: {\n prototype: EXT_texture_filter_anisotropic;\n new(): EXT_texture_filter_anisotropic;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: number;\n};\n\ninterface ElementEventMap extends GlobalEventHandlersEventMap {\n "ariarequest": Event;\n "command": Event;\n "gotpointercapture": PointerEvent;\n "lostpointercapture": PointerEvent;\n "MSGestureChange": Event;\n "MSGestureDoubleTap": Event;\n "MSGestureEnd": Event;\n "MSGestureHold": Event;\n "MSGestureStart": Event;\n "MSGestureTap": Event;\n "MSGotPointerCapture": Event;\n "MSInertiaStart": Event;\n "MSLostPointerCapture": Event;\n "MSPointerCancel": Event;\n "MSPointerDown": Event;\n "MSPointerEnter": Event;\n "MSPointerLeave": Event;\n "MSPointerMove": Event;\n "MSPointerOut": Event;\n "MSPointerOver": Event;\n "MSPointerUp": Event;\n "touchcancel": Event;\n "touchend": Event;\n "touchmove": Event;\n "touchstart": Event;\n "webkitfullscreenchange": Event;\n "webkitfullscreenerror": Event;\n}\n\ninterface Element extends Node, GlobalEventHandlers, ElementTraversal, ParentNode, ChildNode {\n readonly assignedSlot: HTMLSlotElement | null;\n readonly attributes: NamedNodeMap;\n readonly classList: DOMTokenList;\n className: string;\n readonly clientHeight: number;\n readonly clientLeft: number;\n readonly clientTop: number;\n readonly clientWidth: number;\n id: string;\n innerHTML: string;\n msContentZoomFactor: number;\n readonly msRegionOverflow: string;\n onariarequest: ((this: Element, ev: Event) => any) | null;\n oncommand: ((this: Element, ev: Event) => any) | null;\n ongotpointercapture: ((this: Element, ev: PointerEvent) => any) | null;\n onlostpointercapture: ((this: Element, ev: PointerEvent) => any) | null;\n onmsgesturechange: ((this: Element, ev: Event) => any) | null;\n onmsgesturedoubletap: ((this: Element, ev: Event) => any) | null;\n onmsgestureend: ((this: Element, ev: Event) => any) | null;\n onmsgesturehold: ((this: Element, ev: Event) => any) | null;\n onmsgesturestart: ((this: Element, ev: Event) => any) | null;\n onmsgesturetap: ((this: Element, ev: Event) => any) | null;\n onmsgotpointercapture: ((this: Element, ev: Event) => any) | null;\n onmsinertiastart: ((this: Element, ev: Event) => any) | null;\n onmslostpointercapture: ((this: Element, ev: Event) => any) | null;\n onmspointercancel: ((this: Element, ev: Event) => any) | null;\n onmspointerdown: ((this: Element, ev: Event) => any) | null;\n onmspointerenter: ((this: Element, ev: Event) => any) | null;\n onmspointerleave: ((this: Element, ev: Event) => any) | null;\n onmspointermove: ((this: Element, ev: Event) => any) | null;\n onmspointerout: ((this: Element, ev: Event) => any) | null;\n onmspointerover: ((this: Element, ev: Event) => any) | null;\n onmspointerup: ((this: Element, ev: Event) => any) | null;\n ontouchcancel: ((this: Element, ev: Event) => any) | null;\n ontouchend: ((this: Element, ev: Event) => any) | null;\n ontouchmove: ((this: Element, ev: Event) => any) | null;\n ontouchstart: ((this: Element, ev: Event) => any) | null;\n onwebkitfullscreenchange: ((this: Element, ev: Event) => any) | null;\n onwebkitfullscreenerror: ((this: Element, ev: Event) => any) | null;\n outerHTML: string;\n readonly prefix: string | null;\n readonly scrollHeight: number;\n scrollLeft: number;\n scrollTop: number;\n readonly scrollWidth: number;\n readonly shadowRoot: ShadowRoot | null;\n slot: string;\n readonly tagName: string;\n attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;\n closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n closest(selector: string): Element | null;\n getAttribute(qualifiedName: string): string | null;\n getAttributeNS(namespaceURI: string, localName: string): string;\n getAttributeNode(name: string): Attr | null;\n getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;\n getBoundingClientRect(): ClientRect | DOMRect;\n getClientRects(): ClientRectList | DOMRectList;\n getElementsByClassName(classNames: string): NodeListOf<Element>;\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(name: K): NodeListOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(name: K): NodeListOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(name: string): NodeListOf<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(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;\n hasAttribute(name: string): boolean;\n hasAttributeNS(namespaceURI: string, localName: string): boolean;\n hasAttributes(): boolean;\n insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;\n insertAdjacentHTML(where: InsertPosition, html: string): void;\n insertAdjacentText(where: InsertPosition, text: string): void;\n matches(selectors: string): boolean;\n msGetRegionContent(): any;\n msGetUntransformedBounds(): ClientRect;\n msMatchesSelector(selectors: string): boolean;\n msReleasePointerCapture(pointerId: number): void;\n msSetPointerCapture(pointerId: number): void;\n msZoomTo(args: MsZoomToOptions): void;\n releasePointerCapture(pointerId: number): void;\n removeAttribute(qualifiedName: string): void;\n removeAttributeNS(namespaceURI: string, localName: string): void;\n removeAttributeNode(oldAttr: Attr): Attr;\n requestFullscreen(): 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 setAttribute(qualifiedName: string, value: string): void;\n setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;\n setAttributeNode(newAttr: Attr): Attr;\n setAttributeNodeNS(newAttr: Attr): Attr;\n setPointerCapture(pointerId: number): void;\n webkitMatchesSelector(selectors: string): boolean;\n webkitRequestFullScreen(): void;\n webkitRequestFullscreen(): void;\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 ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends: string;\n}\n\ninterface ElementTraversal {\n readonly childElementCount: number;\n readonly firstElementChild: Element | null;\n readonly lastElementChild: Element | null;\n readonly nextElementSibling: Element | null;\n readonly previousElementSibling: Element | null;\n}\n\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 initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(typeArg: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\ninterface Event {\n readonly bubbles: boolean;\n cancelBubble: boolean;\n readonly cancelable: boolean;\n readonly currentTarget: EventTarget | null;\n readonly defaultPrevented: boolean;\n readonly eventPhase: number;\n readonly isTrusted: boolean;\n returnValue: boolean;\n readonly scoped: boolean;\n readonly srcElement: Element | null;\n readonly target: EventTarget | null;\n readonly timeStamp: number;\n readonly type: string;\n deepPath(): EventTarget[];\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n preventDefault(): void;\n stopImmediatePropagation(): void;\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(typeArg: 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 EventListenerObject {\n handleEvent(evt: Event): void;\n}\n\ninterface EventSource extends EventTarget {\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n onerror: (evt: MessageEvent) => any;\n onmessage: (evt: MessageEvent) => any;\n onopen: (evt: MessageEvent) => any;\n readonly readyState: number;\n readonly url: string;\n readonly withCredentials: boolean;\n close(): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;\n};\n\ninterface EventSourceInit {\n readonly withCredentials: boolean;\n}\n\ninterface EventTarget {\n addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;\n dispatchEvent(evt: Event): boolean;\n removeEventListener(type: string, listener?: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\ninterface ExtensionScriptApis {\n extensionIdToShortId(extensionId: string): number;\n fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;\n genericSynchronousFunction(functionId: number, parameters?: string): string;\n genericWebRuntimeCallout(to: any, from: any, payload: string): void;\n getExtensionId(): string;\n registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n registerGenericPersistentCallbackHandler(callbackHandler: Function): void;\n registerWebRuntimeCallbackHandler(handler: Function): any;\n}\n\ndeclare var ExtensionScriptApis: {\n prototype: ExtensionScriptApis;\n new(): ExtensionScriptApis;\n};\n\ninterface External {\n}\n\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\ninterface File extends Blob {\n readonly lastModified: number;\n /** @deprecated */\n readonly lastModifiedDate: Date;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;\n};\n\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 FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent;\n "error": ProgressEvent;\n "load": ProgressEvent;\n "loadend": ProgressEvent;\n "loadstart": ProgressEvent;\n "progress": ProgressEvent;\n}\n\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;\n readonly readyState: number;\n readonly result: any;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, label?: 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 FocusEvent extends UIEvent {\n readonly relatedTarget: EventTarget;\n initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FocusNavigationEvent extends Event {\n readonly navigationReason: NavigationReason;\n readonly originHeight: number;\n readonly originLeft: number;\n readonly originTop: number;\n readonly originWidth: number;\n requestFocus(): void;\n}\n\ndeclare var FocusNavigationEvent: {\n prototype: FocusNavigationEvent;\n new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;\n};\n\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}\n\ndeclare var FormData: {\n prototype: FormData;\n new(): FormData;\n new(form: HTMLFormElement): FormData;\n};\n\ninterface GainNode extends AudioNode {\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(): GainNode;\n};\n\ninterface Gamepad {\n readonly axes: number[];\n readonly buttons: GamepadButton[];\n readonly connected: boolean;\n readonly displayId: number;\n readonly hand: GamepadHand;\n readonly hapticActuators: GamepadHapticActuator[];\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly pose: GamepadPose | null;\n readonly timestamp: number;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\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\ninterface GamepadEvent extends Event {\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent;\n};\n\ninterface GamepadHapticActuator {\n readonly type: GamepadHapticActuatorType;\n pulse(value: number, duration: number): Promise<boolean>;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GamepadPose {\n readonly angularAcceleration: Float32Array | null;\n readonly angularVelocity: Float32Array | null;\n readonly hasOrientation: boolean;\n readonly hasPosition: boolean;\n readonly linearAcceleration: Float32Array | null;\n readonly linearVelocity: Float32Array | null;\n readonly orientation: Float32Array | null;\n readonly position: Float32Array | null;\n}\n\ndeclare var GamepadPose: {\n prototype: GamepadPose;\n new(): GamepadPose;\n};\n\ninterface Geolocation {\n clearWatch(watchId: number): void;\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\ninterface GetSVGDocument {\n getSVGDocument(): Document;\n}\n\ninterface GlobalEventHandlersEventMap {\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 "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\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 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 GlobalFetch {\n fetch(input?: Request | string, init?: RequestInit): Promise<Response>;\n}\n\ninterface HTMLAllCollection {\n readonly length: number;\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n Methods: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n /** @deprecated */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n /** @deprecated */\n coords: string;\n download: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n readonly mimeType: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n name: string;\n readonly nameProp: string;\n readonly protocolLong: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n /** @deprecated */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n type: string;\n urn: 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\ninterface HTMLAppletElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n /** @deprecated */\n alt: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n */\n /** @deprecated */\n archive: string;\n /** @deprecated */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n */\n /** @deprecated */\n codeBase: string;\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n */\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n name: string;\n /** @deprecated */\n object: string;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, 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: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAppletElement: {\n prototype: HTMLAppletElement;\n new(): HTMLAppletElement;\n};\n\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n coords: string;\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n */\n /** @deprecated */\n noHref: boolean;\n rel: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\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\ninterface HTMLAreasCollection extends HTMLCollectionBase {\n}\n\ndeclare var HTMLAreasCollection: {\n prototype: HTMLAreasCollection;\n new(): HTMLAreasCollection;\n};\n\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\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 */\n /** @deprecated */\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\ninterface HTMLBaseElement extends HTMLElement {\n /**\n * Gets or sets the baseline URL on which relative links are based.\n */\n href: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\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 HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {\n /**\n * Sets or retrieves the current typeface family.\n */\n /** @deprecated */\n face: string;\n /**\n * Sets or retrieves the font size of the object.\n */\n /** @deprecated */\n size: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, 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: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseFontElement: {\n prototype: HTMLBaseFontElement;\n new(): HTMLBaseFontElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n "blur": FocusEvent;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "load": Event;\n "orientationchange": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n}\n\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n aLink: string;\n /** @deprecated */\n background: string;\n /** @deprecated */\n bgColor: string;\n bgProperties: string;\n /** @deprecated */\n link: string;\n /** @deprecated */\n noWrap: boolean;\n onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;\n onresize: ((this: HTMLBodyElement, ev: UIEvent) => 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\ninterface HTMLButtonElement extends HTMLElement {\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n */\n formMethod: string;\n /**\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 */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n */\n formTarget: string;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n status: any;\n /**\n * Gets the classification and default behavior of the button.\n */\n type: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the default or selected value of the control.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): 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\ninterface HTMLCanvasElement extends HTMLElement {\n /**\n * Gets or sets the height of a canvas element on a document.\n */\n height: number;\n /**\n * Gets or sets the width of a canvas element on a document.\n */\n width: number;\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", contextAttributes?: Canvas2DContextAttributes): CanvasRenderingContext2D | null;\n getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;\n getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;\n /**\n * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.\n */\n msToBlob(): Blob;\n toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: 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, ...args: 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\ninterface HTMLCollectionBase {\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n readonly length: number;\n /**\n * Retrieves an object from various collections.\n */\n item(index: number): Element;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /**\n * Retrieves a select object or an object from an options collection.\n */\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;\n namedItem(name: string): T;\n [index: number]: T;\n}\n\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\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\ninterface HTMLDataListElement extends HTMLElement {\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\ninterface HTMLDialogElement extends HTMLElement {\n open: boolean;\n returnValue: string;\n close(returnValue?: string): void;\n show(): void;\n showModal(): void;\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\ndeclare var HTMLDialogElement: {\n prototype: HTMLDialogElement;\n new(): HTMLDialogElement;\n};\n\ninterface HTMLDirectoryElement extends HTMLElement {\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\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\ninterface HTMLDivElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n */\n noWrap: boolean;\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\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\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap {\n "abort": UIEvent;\n "activate": Event;\n "beforeactivate": Event;\n "beforecopy": Event;\n "beforecut": Event;\n "beforedeactivate": Event;\n "beforepaste": Event;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "contextmenu": PointerEvent;\n "copy": ClipboardEvent;\n "cuechange": Event;\n "cut": ClipboardEvent;\n "dblclick": MouseEvent;\n "deactivate": Event;\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 "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 "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "mousewheel": WheelEvent;\n "MSContentZoom": Event;\n "MSManipulationStateChanged": Event;\n "paste": ClipboardEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "scroll": UIEvent;\n "seeked": Event;\n "seeking": Event;\n "select": UIEvent;\n "selectstart": Event;\n "stalled": Event;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "volumechange": Event;\n "waiting": Event;\n}\n\ninterface HTMLElement extends Element, ElementCSSInlineStyle {\n accessKey: string;\n contentEditable: string;\n readonly dataset: DOMStringMap;\n dir: string;\n draggable: boolean;\n hidden: boolean;\n hideFocus: boolean;\n innerText: string;\n readonly isContentEditable: boolean;\n lang: string;\n readonly offsetHeight: number;\n readonly offsetLeft: number;\n readonly offsetParent: Element;\n readonly offsetTop: number;\n readonly offsetWidth: number;\n onabort: ((this: HTMLElement, ev: UIEvent) => any) | null;\n onactivate: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforeactivate: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforecopy: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforecut: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforedeactivate: ((this: HTMLElement, ev: Event) => any) | null;\n onbeforepaste: ((this: HTMLElement, ev: Event) => any) | null;\n onblur: ((this: HTMLElement, ev: FocusEvent) => any) | null;\n oncanplay: ((this: HTMLElement, ev: Event) => any) | null;\n oncanplaythrough: ((this: HTMLElement, ev: Event) => any) | null;\n onchange: ((this: HTMLElement, ev: Event) => any) | null;\n onclick: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n oncontextmenu: ((this: HTMLElement, ev: PointerEvent) => any) | null;\n oncopy: ((this: HTMLElement, ev: ClipboardEvent) => any) | null;\n oncuechange: ((this: HTMLElement, ev: Event) => any) | null;\n oncut: ((this: HTMLElement, ev: ClipboardEvent) => any) | null;\n ondblclick: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n ondeactivate: ((this: HTMLElement, ev: Event) => any) | null;\n ondrag: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragend: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragenter: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragleave: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragover: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondragstart: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondrop: ((this: HTMLElement, ev: DragEvent) => any) | null;\n ondurationchange: ((this: HTMLElement, ev: Event) => any) | null;\n onemptied: ((this: HTMLElement, ev: Event) => any) | null;\n onended: ((this: HTMLElement, ev: Event) => any) | null;\n onerror: ((this: HTMLElement, ev: ErrorEvent) => any) | null;\n onfocus: ((this: HTMLElement, ev: FocusEvent) => any) | null;\n oninput: ((this: HTMLElement, ev: Event) => any) | null;\n oninvalid: ((this: HTMLElement, ev: Event) => any) | null;\n onkeydown: ((this: HTMLElement, ev: KeyboardEvent) => any) | null;\n onkeypress: ((this: HTMLElement, ev: KeyboardEvent) => any) | null;\n onkeyup: ((this: HTMLElement, ev: KeyboardEvent) => any) | null;\n onload: ((this: HTMLElement, ev: Event) => any) | null;\n onloadeddata: ((this: HTMLElement, ev: Event) => any) | null;\n onloadedmetadata: ((this: HTMLElement, ev: Event) => any) | null;\n onloadstart: ((this: HTMLElement, ev: Event) => any) | null;\n onmousedown: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmousemove: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseout: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseover: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmouseup: ((this: HTMLElement, ev: MouseEvent) => any) | null;\n onmousewheel: ((this: HTMLElement, ev: WheelEvent) => any) | null;\n onmscontentzoom: ((this: HTMLElement, ev: Event) => any) | null;\n onmsmanipulationstatechanged: ((this: HTMLElement, ev: Event) => any) | null;\n onpaste: ((this: HTMLElement, ev: ClipboardEvent) => any) | null;\n onpause: ((this: HTMLElement, ev: Event) => any) | null;\n onplay: ((this: HTMLElement, ev: Event) => any) | null;\n onplaying: ((this: HTMLElement, ev: Event) => any) | null;\n onprogress: ((this: HTMLElement, ev: ProgressEvent) => any) | null;\n onratechange: ((this: HTMLElement, ev: Event) => any) | null;\n onreset: ((this: HTMLElement, ev: Event) => any) | null;\n onscroll: ((this: HTMLElement, ev: UIEvent) => any) | null;\n onseeked: ((this: HTMLElement, ev: Event) => any) | null;\n onseeking: ((this: HTMLElement, ev: Event) => any) | null;\n onselect: ((this: HTMLElement, ev: UIEvent) => any) | null;\n onselectstart: ((this: HTMLElement, ev: Event) => any) | null;\n onstalled: ((this: HTMLElement, ev: Event) => any) | null;\n onsubmit: ((this: HTMLElement, ev: Event) => any) | null;\n onsuspend: ((this: HTMLElement, ev: Event) => any) | null;\n ontimeupdate: ((this: HTMLElement, ev: Event) => any) | null;\n onvolumechange: ((this: HTMLElement, ev: Event) => any) | null;\n onwaiting: ((this: HTMLElement, ev: Event) => any) | null;\n outerText: string;\n spellcheck: boolean;\n tabIndex: number;\n title: string;\n animate(keyframes: AnimationKeyFrame | AnimationKeyFrame[], options: number | AnimationOptions): Animation;\n blur(): void;\n click(): void;\n dragDrop(): boolean;\n focus(): void;\n msGetInputContext(): MSInputMethodContext;\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\ninterface HTMLEmbedElement extends HTMLElement, GetSVGDocument {\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n hidden: any;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n /**\n * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n */\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Sets or retrieves the name of the object.\n */\n /** @deprecated */\n name: string;\n /**\n * Retrieves the palette used for the embedded document.\n */\n readonly palette: string;\n /**\n * Retrieves the URL of the plug-in used to view an embedded document.\n */\n readonly pluginspage: string;\n readonly readyState: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n src: string;\n /**\n * Sets or retrieves the height and width units of the embed object.\n */\n units: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\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\ninterface HTMLFieldSetElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n align: string;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n name: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): 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\ninterface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {\n /**\n * Sets or retrieves the current typeface family.\n */\n /** @deprecated */\n face: 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\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n namedItem(name: string): HTMLCollection | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\ninterface HTMLFormElement extends HTMLElement {\n /**\n * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.\n */\n acceptCharset: string;\n /**\n * Sets or retrieves the URL to which the form content is sent for processing.\n */\n action: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n */\n autocomplete: string;\n /**\n * Retrieves a collection, in source order, of all controls in a given form.\n */\n readonly elements: HTMLFormControlsCollection;\n /**\n * Sets or retrieves the MIME encoding for the form.\n */\n encoding: string;\n /**\n * Sets or retrieves the encoding type for the form.\n */\n enctype: string;\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n readonly length: number;\n /**\n * Sets or retrieves how to send the form data to the server.\n */\n method: string;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Designates a form that is not validated when submitted.\n */\n noValidate: boolean;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Retrieves a form object or an object from an elements collection.\n * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, 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(name?: any, index?: any): any;\n /**\n * Retrieves a form object or an object from an elements collection.\n */\n namedItem(name: string): any;\n reportValidity(): boolean;\n /**\n * Fires when the user resets a form.\n */\n reset(): void;\n /**\n * Fires when a FORM is about to be submitted.\n */\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 [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n prototype: HTMLFormElement;\n new(): HTMLFormElement;\n};\n\ninterface HTMLFrameElementEventMap extends HTMLElementEventMap {\n "load": Event;\n}\n\ninterface HTMLFrameElement extends HTMLElement, GetSVGDocument {\n /**\n * Specifies the properties of a border drawn around an object.\n */\n border: string;\n /**\n * Sets or retrieves the border color of the object.\n */\n borderColor: any;\n /**\n * Retrieves the document object of the page or frame.\n */\n /** @deprecated */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n */\n /** @deprecated */\n readonly contentWindow: Window | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n */\n /** @deprecated */\n frameBorder: string;\n /**\n * Sets or retrieves the amount of additional space between the frames.\n */\n frameSpacing: any;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string | number;\n /**\n * Sets or retrieves a URI to a long description of the object.\n */\n /** @deprecated */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n */\n /** @deprecated */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n */\n /** @deprecated */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n */\n /** @deprecated */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n */\n /** @deprecated */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n */\n /** @deprecated */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n /** @deprecated */\n src: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string | number;\n addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n "blur": FocusEvent;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "load": Event;\n "orientationchange": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n}\n\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /**\n * Sets or retrieves the frame widths of the object.\n */\n /** @deprecated */\n cols: string;\n name: string;\n onorientationchange: ((this: HTMLFrameSetElement, ev: Event) => any) | null;\n onresize: ((this: HTMLFrameSetElement, ev: UIEvent) => any) | null;\n /**\n * Sets or retrieves the frame heights of the object.\n */\n /** @deprecated */\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\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\ninterface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n */\n /** @deprecated */\n noShade: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\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\ninterface HTMLHeadElement extends HTMLElement {\n /** @deprecated */\n profile: string;\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\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n */\n /** @deprecated */\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\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current document.\n */\n /** @deprecated */\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 hash: string;\n host: string;\n hostname: string;\n href: string;\n origin: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n toString(): string;\n}\n\ninterface HTMLIFrameElementEventMap extends HTMLElementEventMap {\n "load": Event;\n}\n\ninterface HTMLIFrameElement extends HTMLElement, GetSVGDocument {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n allowFullscreen: boolean;\n allowPaymentRequest: boolean;\n /**\n * Retrieves the document object of the page or frame.\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n */\n readonly contentWindow: Window | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n */\n /** @deprecated */\n frameBorder: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n */\n /** @deprecated */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n */\n /** @deprecated */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n */\n /** @deprecated */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n */\n name: string;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n */\n /** @deprecated */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n src: string;\n /**\n * Sets or retrives the content of the page that is to contain.\n */\n srcdoc: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[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\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n */\n /** @deprecated */\n border: string;\n /**\n * Retrieves whether the object is fully loaded.\n */\n readonly complete: boolean;\n crossOrigin: string | null;\n readonly currentSrc: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n */\n /** @deprecated */\n hspace: number;\n /**\n * Sets or retrieves whether the image is a server-side image map.\n */\n isMap: boolean;\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n */\n longDesc: string;\n /** @deprecated */\n lowsrc: string;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Sets or retrieves the name of the object.\n */\n /** @deprecated */\n name: string;\n /**\n * The original height of the image resource before sizing.\n */\n readonly naturalHeight: number;\n /**\n * The original width of the image resource before sizing.\n */\n readonly naturalWidth: number;\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcset: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n */\n /** @deprecated */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n */\n width: number;\n readonly x: number;\n readonly y: number;\n msGetAsCastingSource(): any;\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\ninterface HTMLInputElement extends HTMLElement {\n /**\n * Sets or retrieves a comma-separated list of content types.\n */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n */\n autocomplete: string;\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n /**\n * Sets or retrieves the state of the check box or radio button.\n */\n checked: boolean;\n /**\n * Sets or retrieves the state of the check box or radio button.\n */\n defaultChecked: boolean;\n /**\n * Sets or retrieves the initial contents of the object.\n */\n defaultValue: string;\n disabled: boolean;\n /**\n * Returns a FileList object on a file type input object.\n */\n readonly files: FileList | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n */\n formMethod: string;\n /**\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 */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n */\n formTarget: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: number;\n indeterminate: boolean;\n /**\n * Specifies the ID of a pre-defined datalist of options for an input element.\n */\n readonly list: HTMLElement | null;\n /**\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 */\n max: string;\n /**\n * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n */\n maxLength: number;\n /**\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 */\n min: string;\n minLength: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Gets or sets a string containing a regular expression that the user\'s input must match.\n */\n pattern: string;\n /**\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 */\n placeholder: string;\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n selectionDirection: string | null;\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n selectionEnd: number | null;\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n selectionStart: number | null;\n size: number;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n /**\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 */\n step: string;\n /**\n * Returns the content type of the object.\n */\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 */\n /** @deprecated */\n useMap: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Returns the value of the data at the cursor\'s current position.\n */\n value: string;\n valueAsDate: any;\n /**\n * Returns the input field value as a number.\n */\n valueAsNumber: number;\n webkitdirectory: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n width: number;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Makes the selection equal to the current object.\n */\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 /**\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, end: number, 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\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /**\n * Sets or retrieves the value of a list item.\n */\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\ninterface HTMLLabelElement extends HTMLElement {\n readonly control: HTMLInputElement | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the object to which the given label object is assigned.\n */\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\ninterface HTMLLegendElement extends HTMLElement {\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n /** @deprecated */\n align: string;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\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\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n /** @deprecated */\n charset: string;\n crossOrigin: string | null;\n /** @deprecated */\n disabled: boolean;\n /**\n * Sets or retrieves a destination URL or an anchor point.\n */\n href: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n import?: Document;\n integrity: string;\n /**\n * Sets or retrieves the media type.\n */\n media: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n /** @deprecated */\n rev: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n /** @deprecated */\n target: string;\n /**\n * Sets or retrieves the MIME type of the object.\n */\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\ninterface HTMLMainElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMainElement, 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: HTMLMainElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMainElement: {\n prototype: HTMLMainElement;\n new(): HTMLMainElement;\n};\n\ninterface HTMLMapElement extends HTMLElement {\n /**\n * Retrieves a collection of the area objects defined for the given map object.\n */\n readonly areas: HTMLAreasCollection;\n /**\n * Sets or retrieves the name of the object.\n */\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\ninterface HTMLMarqueeElementEventMap extends HTMLElementEventMap {\n "bounce": Event;\n "finish": Event;\n "start": Event;\n}\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 onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n /** @deprecated */\n onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n /** @deprecated */\n onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\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 HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "msneedkey": Event;\n}\n\ninterface HTMLMediaElement extends HTMLElement {\n /**\n * Returns an AudioTrackList object with the audio tracks for a given video element.\n */\n readonly audioTracks: AudioTrackList;\n /**\n * Gets or sets a value that indicates whether to start playing the media automatically.\n */\n autoplay: boolean;\n /**\n * Gets a collection of buffered time ranges.\n */\n readonly buffered: TimeRanges;\n /**\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 */\n controls: boolean;\n crossOrigin: string | null;\n /**\n * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.\n */\n readonly currentSrc: string;\n /**\n * Gets or sets the current playback position, in seconds.\n */\n currentTime: number;\n defaultMuted: boolean;\n /**\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 */\n defaultPlaybackRate: number;\n /**\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 */\n readonly duration: number;\n /**\n * Gets information about whether the playback has ended or not.\n */\n readonly ended: boolean;\n /**\n * Returns an object representing the current error state of the audio or video element.\n */\n readonly error: MediaError | null;\n /**\n * Gets or sets a flag to specify whether playback should restart after it completes.\n */\n loop: boolean;\n readonly mediaKeys: MediaKeys | null;\n /**\n * Specifies the purpose of the audio or video media, such as background audio or alerts.\n */\n msAudioCategory: string;\n /**\n * Specifies the output device id that the audio will be sent to.\n */\n msAudioDeviceType: string;\n readonly msGraphicsTrustStatus: MSGraphicsTrust;\n /**\n * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.\n */\n /** @deprecated */\n readonly msKeys: MSMediaKeys;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n /**\n * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n */\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Specifies whether or not to enable low-latency playback on the media element.\n */\n msRealTime: boolean;\n /**\n * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.\n */\n muted: boolean;\n /**\n * Gets the current network activity for the element.\n */\n readonly networkState: number;\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n /** @deprecated */\n onmsneedkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /**\n * Gets a flag that specifies whether playback is paused.\n */\n readonly paused: boolean;\n /**\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 */\n playbackRate: number;\n /**\n * Gets TimeRanges for the current media resource that has been played.\n */\n readonly played: TimeRanges;\n /**\n * Gets or sets the current playback position, in seconds.\n */\n preload: string;\n readonly readyState: number;\n /**\n * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.\n */\n readonly seekable: TimeRanges;\n /**\n * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.\n */\n readonly seeking: boolean;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcObject: MediaStream | MediaSource | Blob | null;\n readonly textTracks: TextTrackList;\n readonly videoTracks: VideoTrackList;\n /**\n * Gets or sets the volume level for audio portions of the media element.\n */\n volume: number;\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /**\n * Returns a string that specifies whether the client can play a given media resource type.\n */\n canPlayType(type: string): CanPlayTypeResult;\n /**\n * Resets the audio or video object and loads a new media resource.\n */\n load(): void;\n /**\n * Clears all effects from the media pipeline.\n */\n msClearEffects(): void;\n msGetAsCastingSource(): any;\n /**\n * Inserts the specified audio effect into media pipeline.\n */\n msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;\n /** @deprecated */\n msSetMediaKeys(mediaKeys: MSMediaKeys): void;\n /**\n * Specifies the media protection manager for a given media pipeline.\n */\n msSetMediaProtectionManager(mediaProtectionManager?: any): void;\n /**\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 */\n pause(): void;\n /**\n * Loads and starts playback of a media resource.\n */\n play(): Promise<void>;\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 type: string;\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\ninterface HTMLMetaElement extends HTMLElement {\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n /** @deprecated */\n charset: string;\n /**\n * Gets or sets meta-information to associate with httpEquiv or name.\n */\n content: string;\n /**\n * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.\n */\n httpEquiv: string;\n /**\n * Sets or retrieves the value specified in the content attribute of the meta object.\n */\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 */\n /** @deprecated */\n scheme: string;\n /**\n * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.\n */\n /** @deprecated */\n url: 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\ninterface HTMLMeterElement extends HTMLElement {\n high: number;\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\ninterface HTMLModElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n */\n cite: string;\n /**\n * Sets or retrieves the date and time of a modification to the object.\n */\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\ninterface HTMLOListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /**\n * The starting number.\n */\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\ninterface HTMLObjectElement extends HTMLElement, GetSVGDocument {\n /**\n * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.\n */\n readonly BaseHref: string;\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 */\n /** @deprecated */\n archive: string;\n /** @deprecated */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n */\n /** @deprecated */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n */\n /** @deprecated */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n */\n /** @deprecated */\n codeType: string;\n /**\n * Retrieves the document object of the page or frame.\n */\n readonly contentDocument: Document | null;\n /**\n * Sets or retrieves the URL that references the data of the object.\n */\n data: string;\n /** @deprecated */\n declare: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * Gets or sets whether the DLNA PlayTo device is available.\n */\n msPlayToDisabled: boolean;\n /**\n * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n */\n msPlayToPreferredSourceUri: string;\n /**\n * Gets or sets the primary DLNA PlayTo device.\n */\n msPlayToPrimary: boolean;\n /**\n * Gets the source associated with the media element for use by the PlayToManager.\n */\n readonly msPlayToSource: any;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n readonly readyState: number;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n */\n /** @deprecated */\n standby: string;\n /**\n * Sets or retrieves the MIME type of the object.\n */\n type: string;\n typemustmatch: boolean;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n */\n useMap: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /** @deprecated */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): 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\ninterface HTMLOptGroupElement extends HTMLElement {\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n */\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\ninterface HTMLOptionElement extends HTMLElement {\n /**\n * Sets or retrieves the status of an option.\n */\n defaultSelected: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the ordinal position of an option in a list box.\n */\n readonly index: number;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n */\n label: string;\n /**\n * Sets or retrieves whether the option in the list box is the default item.\n */\n selected: boolean;\n /**\n * Sets or retrieves the text string specified by the option tag.\n */\n text: string;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n */\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\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n length: number;\n selectedIndex: number;\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOutputElement extends HTMLElement {\n defaultValue: string;\n readonly form: HTMLFormElement | null;\n readonly htmlFor: DOMTokenList;\n name: string;\n readonly type: string;\n readonly validationMessage: string;\n readonly validity: ValidityState;\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\ninterface HTMLParagraphElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n clear: 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\ninterface HTMLParamElement extends HTMLElement {\n /**\n * Sets or retrieves the name of an input parameter for an element.\n */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n */\n /** @deprecated */\n type: string;\n /**\n * Sets or retrieves the value of an input parameter for an element.\n */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n */\n /** @deprecated */\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\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\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 */\n /** @deprecated */\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\ninterface HTMLProgressElement extends HTMLElement {\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Defines the maximum, or "done" value for a progress element.\n */\n max: number;\n /**\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 */\n readonly position: number;\n /**\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 */\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\ninterface HTMLQuoteElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n */\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\ninterface HTMLScriptElement extends HTMLElement {\n async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n */\n charset: string;\n crossOrigin: string | null;\n /**\n * Sets or retrieves the status of the script.\n */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n */\n /** @deprecated */\n event: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n */\n /** @deprecated */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n /**\n * Retrieves the URL to an external file that contains the source code or data.\n */\n src: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n /**\n * Sets or retrieves the MIME type for the associated scripting engine.\n */\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\ninterface HTMLSelectElement extends HTMLElement {\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n length: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n readonly options: HTMLOptionsCollection;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n /**\n * Sets or retrieves the index of the selected option in a select object.\n */\n selectedIndex: number;\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /**\n * Sets or retrieves the number of rows in the list box.\n */\n size: number;\n /**\n * Retrieves the type of select control based on the value of the MULTIPLE attribute.\n */\n readonly type: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\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 /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\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(name?: any, index?: any): Element | 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): any;\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(index?: number): 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 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: string]: any;\n}\n\ndeclare var HTMLSelectElement: {\n prototype: HTMLSelectElement;\n new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n name: string;\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\ninterface HTMLSourceElement extends HTMLElement {\n /**\n * Gets or sets the intended media type of the media source.\n */\n media: string;\n /** @deprecated */\n msKeySystem: string;\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcset: string;\n /**\n * Gets or sets the MIME type of a media resource.\n */\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\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\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /** @deprecated */\n disabled: boolean;\n /**\n * Sets or retrieves the media type.\n */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\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\ninterface HTMLSummaryElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSummaryElement, 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: HTMLSummaryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSummaryElement: {\n prototype: HTMLSummaryElement;\n new(): HTMLSummaryElement;\n};\n\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the caption or legend.\n */\n /** @deprecated */\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\ninterface HTMLTableCellElement extends HTMLElement {\n /**\n * Sets or retrieves abbreviated text for the object.\n */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n */\n /** @deprecated */\n axis: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Retrieves the position of the object in the cells collection of a row.\n */\n readonly cellIndex: number;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number columns in the table that the object should span.\n */\n colSpan: number;\n /**\n * Sets or retrieves a list of header cells that provide information for the object.\n */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n */\n /** @deprecated */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n */\n /** @deprecated */\n noWrap: boolean;\n /**\n * Sets or retrieves how many rows in a table the cell should span.\n */\n rowSpan: number;\n /**\n * Sets or retrieves the group of cells in a table to which the object\'s information applies.\n */\n scope: string;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\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\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the object relative to the display or table.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number of columns in the group.\n */\n span: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\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\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\ndeclare var HTMLTableDataCellElement: {\n prototype: HTMLTableDataCellElement;\n new(): HTMLTableDataCellElement;\n};\n\ninterface HTMLTableElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n */\n /** @deprecated */\n border: string;\n /**\n * Retrieves the caption object of a table.\n */\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 */\n /** @deprecated */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n */\n /** @deprecated */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n */\n /** @deprecated */\n frame: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n */\n /** @deprecated */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n */\n /** @deprecated */\n summary: string;\n /**\n * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.\n */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /**\n * Retrieves the tFoot object of the table.\n */\n tFoot: HTMLTableSectionElement | null;\n /**\n * Retrieves the tHead object of the table.\n */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n */\n /** @deprecated */\n width: string;\n /**\n * Creates an empty caption element in the table.\n */\n createCaption(): HTMLTableCaptionElement;\n /**\n * Creates an empty tBody element in the table.\n */\n createTBody(): HTMLTableSectionElement;\n /**\n * Creates an empty tFoot element in the table.\n */\n createTFoot(): HTMLTableSectionElement;\n /**\n * Returns the tHead element object if successful, or null otherwise.\n */\n createTHead(): HTMLTableSectionElement;\n /**\n * Deletes the caption element and its contents from the table.\n */\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 /**\n * Deletes the tFoot element and its contents from the table.\n */\n deleteTFoot(): void;\n /**\n * Deletes the tHead element and its contents from the table.\n */\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\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n scope: string;\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\ndeclare var HTMLTableHeaderCellElement: {\n prototype: HTMLTableHeaderCellElement;\n new(): HTMLTableHeaderCellElement;\n};\n\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Retrieves a collection of all cells in the table row.\n */\n readonly cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Retrieves the position of the object in the rows collection for the table.\n */\n readonly rowIndex: number;\n /**\n * Retrieves the position of the object in the collection.\n */\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): HTMLTableDataCellElement;\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\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n */\n /** @deprecated */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\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\ninterface HTMLTemplateElement extends HTMLElement {\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\ninterface HTMLTextAreaElement extends HTMLElement {\n /**\n * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n */\n autofocus: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n cols: number;\n /**\n * Sets or retrieves the initial contents of the object.\n */\n defaultValue: string;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n */\n maxLength: number;\n minLength: number;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\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 */\n placeholder: string;\n /**\n * Sets or retrieves the value indicated whether the content of the object is read-only.\n */\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n rows: number;\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n selectionEnd: number;\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n selectionStart: number;\n /**\n * Retrieves the type of control.\n */\n readonly type: string;\n /**\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 */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Retrieves or sets the text in the entry field of the textArea element.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Sets or retrieves how to handle wordwrapping in the object.\n */\n wrap: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Highlights the input area of a form element.\n */\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 /**\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, end: number, 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\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\ninterface HTMLTitleElement extends HTMLElement {\n /**\n * Retrieves or sets the text of the object as a string.\n */\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\ninterface HTMLTrackElement extends HTMLElement {\n default: boolean;\n kind: string;\n label: string;\n readonly readyState: number;\n src: string;\n srclang: string;\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\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\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 "MSVideoFormatChanged": Event;\n "MSVideoFrameStepCompleted": Event;\n "MSVideoOptimalLayoutChanged": Event;\n}\n\ninterface HTMLVideoElement extends HTMLMediaElement {\n /**\n * Gets or sets the height of the video element.\n */\n height: number;\n msHorizontalMirror: boolean;\n readonly msIsLayoutOptimalForPlayback: boolean;\n readonly msIsStereo3D: boolean;\n msStereo3DPackingMode: string;\n msStereo3DRenderMode: string;\n msZoom: boolean;\n onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /**\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 */\n poster: string;\n /**\n * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.\n */\n readonly videoHeight: number;\n /**\n * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.\n */\n readonly videoWidth: number;\n readonly webkitDisplayingFullscreen: boolean;\n readonly webkitSupportsFullscreen: boolean;\n /**\n * Gets or sets the width of the video element.\n */\n width: number;\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n msFrameStep(forward: boolean): void;\n msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;\n msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;\n webkitEnterFullScreen(): void;\n webkitEnterFullscreen(): void;\n webkitExitFullScreen(): void;\n webkitExitFullscreen(): void;\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\ninterface HTMLegendElement {\n readonly form: HTMLFormElement | null;\n}\n\ndeclare var HTMLegendElement: {\n prototype: HTMLegendElement;\n new(): HTMLegendElement;\n};\n\ninterface HashChangeEvent extends Event {\n readonly newURL: string;\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n forEach(callback: Function, thisArg?: any): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\ninterface History {\n readonly length: number;\n scrollRestoration: ScrollRestoration;\n readonly state: any;\n back(distance?: any): void;\n forward(distance?: any): void;\n go(delta?: any): void;\n pushState(data: any, title?: string, url?: string | null): void;\n replaceState(data: any, title?: string, url?: string | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\ninterface HkdfCtrParams extends Algorithm {\n context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n hash: string | Algorithm;\n label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface IDBArrayKey extends Array<number | string | Date | IDBArrayKey> {\n}\n\ninterface IDBCursor {\n readonly direction: IDBCursorDirection;\n readonly key: IDBKeyRange | number | string | Date | IDBArrayKey;\n readonly primaryKey: any;\n readonly source: IDBObjectStore | IDBIndex;\n advance(count: number): void;\n continue(key?: IDBKeyRange | number | string | Date | IDBArrayKey): void;\n delete(): IDBRequest;\n update(value: any): IDBRequest;\n readonly NEXT: string;\n readonly NEXT_NO_DUPLICATE: string;\n readonly PREV: string;\n readonly PREV_NO_DUPLICATE: string;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n readonly NEXT: string;\n readonly NEXT_NO_DUPLICATE: string;\n readonly PREV: string;\n readonly PREV_NO_DUPLICATE: string;\n};\n\ninterface IDBCursorWithValue extends IDBCursor {\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "error": Event;\n}\n\ninterface IDBDatabase extends EventTarget {\n readonly name: string;\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: Event) => any) | null;\n readonly version: number;\n close(): void;\n createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;\n deleteObjectStore(name: string): void;\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\ninterface IDBEnvironment {\n readonly indexedDB: IDBFactory;\n}\n\ninterface IDBFactory {\n cmp(first: any, second: any): number;\n deleteDatabase(name: string): IDBOpenDBRequest;\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\ninterface IDBIndex {\n readonly keyPath: string | string[];\n multiEntry: boolean;\n readonly name: string;\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n count(key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n get(key: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n getKey(key: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n openCursor(range?: IDBKeyRange | number | string | Date | IDBArrayKey, direction?: IDBCursorDirection): IDBRequest;\n openKeyCursor(range?: IDBKeyRange | number | string | Date | IDBArrayKey, direction?: IDBCursorDirection): IDBRequest;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\ninterface IDBKeyRange {\n readonly lower: any;\n readonly lowerOpen: boolean;\n readonly upper: any;\n readonly upperOpen: boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n only(value: any): IDBKeyRange;\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\ninterface IDBObjectStore {\n autoIncrement: boolean;\n readonly indexNames: DOMStringList;\n readonly keyPath: string | string[] | null;\n readonly name: string;\n readonly transaction: IDBTransaction;\n add(value: any, key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n clear(): IDBRequest;\n count(key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex;\n delete(key: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\n deleteIndex(indexName: string): void;\n get(key: any): IDBRequest;\n index(name: string): IDBIndex;\n openCursor(range?: IDBKeyRange | number | string | Date | IDBArrayKey, direction?: IDBCursorDirection): IDBRequest;\n put(value: any, key?: IDBKeyRange | number | string | Date | IDBArrayKey): IDBRequest;\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\ninterface IDBOpenDBRequest extends IDBRequest {\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\ninterface IDBRequest extends EventTarget {\n readonly error: DOMException;\n onerror: ((this: IDBRequest, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest, ev: Event) => any) | null;\n readonly readyState: IDBRequestReadyState;\n readonly result: any;\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n readonly transaction: IDBTransaction;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest, 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, 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 readonly db: IDBDatabase;\n readonly error: DOMException;\n readonly mode: IDBTransactionMode;\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 abort(): void;\n objectStore(name: string): IDBObjectStore;\n readonly READ_ONLY: string;\n readonly READ_WRITE: string;\n readonly VERSION_CHANGE: string;\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 readonly READ_ONLY: string;\n readonly READ_WRITE: string;\n readonly VERSION_CHANGE: string;\n};\n\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(): IDBVersionChangeEvent;\n};\n\ninterface IIRFilterNode extends AudioNode {\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(): IIRFilterNode;\n};\n\ninterface ImageBitmap {\n readonly height: number;\n readonly width: number;\n close(): void;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: "none" | "default";\n imageOrientation?: "none" | "flipY";\n premultiplyAlpha?: "none" | "premultiply" | "default";\n resizeHeight?: number;\n resizeQuality?: "pixelated" | "low" | "medium" | "high";\n resizeWidth?: number;\n}\n\ninterface ImageData {\n readonly data: Uint8ClampedArray;\n readonly height: number;\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(width: number, height: number): ImageData;\n new(array: Uint8ClampedArray, width: number, height: number): ImageData;\n};\n\ninterface IntersectionObserver {\n readonly root: Element | null;\n readonly rootMargin: string;\n readonly thresholds: 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\ninterface IntersectionObserverEntry {\n readonly boundingClientRect: ClientRect | DOMRect;\n readonly intersectionRatio: number;\n readonly intersectionRect: ClientRect | DOMRect;\n readonly isIntersecting: boolean;\n readonly rootBounds: ClientRect | DOMRect;\n readonly target: Element;\n readonly time: number;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KeyboardEvent extends UIEvent {\n readonly altKey: boolean;\n /** @deprecated */\n char: string;\n /** @deprecated */\n readonly charCode: number;\n readonly code: string;\n readonly ctrlKey: 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 /** @deprecated */\n readonly which: number;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;\n readonly DOM_KEY_LOCATION_JOYSTICK: number;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_MOBILE: 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(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_JOYSTICK: number;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_MOBILE: 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 LinkStyle {\n readonly sheet: StyleSheet | null;\n}\n\ninterface ListeningStateChangedEvent extends Event {\n readonly label: string;\n readonly state: ListeningState;\n}\n\ndeclare var ListeningStateChangedEvent: {\n prototype: ListeningStateChangedEvent;\n new(): ListeningStateChangedEvent;\n};\n\ninterface Location {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n readonly origin: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n assign(url: string): void;\n reload(forcedReload?: boolean): void;\n replace(url: string): void;\n toString(): string;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\ninterface MSAssertion {\n readonly id: string;\n readonly type: MSCredentialType;\n}\n\ndeclare var MSAssertion: {\n prototype: MSAssertion;\n new(): MSAssertion;\n};\n\ninterface MSBlobBuilder {\n append(data: any, endings?: string): void;\n getBlob(contentType?: string): Blob;\n}\n\ndeclare var MSBlobBuilder: {\n prototype: MSBlobBuilder;\n new(): MSBlobBuilder;\n};\n\ninterface MSCredentials {\n getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): Promise<MSAssertion>;\n makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): Promise<MSAssertion>;\n}\n\ndeclare var MSCredentials: {\n prototype: MSCredentials;\n new(): MSCredentials;\n};\n\ninterface MSDCCEvent extends Event {\n readonly maxFr: number;\n readonly maxFs: number;\n}\n\ndeclare var MSDCCEvent: {\n prototype: MSDCCEvent;\n new(type: string, eventInitDict: MSDCCEventInit): MSDCCEvent;\n};\n\ninterface MSDSHEvent extends Event {\n readonly sources: number[];\n readonly timestamp: number;\n}\n\ndeclare var MSDSHEvent: {\n prototype: MSDSHEvent;\n new(type: string, eventInitDict: MSDSHEventInit): MSDSHEvent;\n};\n\ninterface MSFIDOCredentialAssertion extends MSAssertion {\n readonly algorithm: string | Algorithm;\n readonly attestation: any;\n readonly publicKey: string;\n readonly transportHints: MSTransportType[];\n}\n\ndeclare var MSFIDOCredentialAssertion: {\n prototype: MSFIDOCredentialAssertion;\n new(): MSFIDOCredentialAssertion;\n};\n\ninterface MSFIDOSignature {\n readonly authnrData: string;\n readonly clientData: string;\n readonly signature: string;\n}\n\ndeclare var MSFIDOSignature: {\n prototype: MSFIDOSignature;\n new(): MSFIDOSignature;\n};\n\ninterface MSFIDOSignatureAssertion extends MSAssertion {\n readonly signature: MSFIDOSignature;\n}\n\ndeclare var MSFIDOSignatureAssertion: {\n prototype: MSFIDOSignatureAssertion;\n new(): MSFIDOSignatureAssertion;\n};\n\ninterface MSFileSaver {\n msSaveBlob(blob: any, defaultName?: string): boolean;\n msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;\n}\n\ninterface MSGesture {\n target: Element;\n addPointer(pointerId: number): void;\n stop(): void;\n}\n\ndeclare var MSGesture: {\n prototype: MSGesture;\n new(): MSGesture;\n};\n\ninterface MSGestureEvent extends UIEvent {\n readonly clientX: number;\n readonly clientY: number;\n readonly expansion: number;\n readonly gestureObject: any;\n readonly hwTimestamp: number;\n readonly offsetX: number;\n readonly offsetY: number;\n readonly rotation: number;\n readonly scale: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly translationX: number;\n readonly translationY: number;\n readonly velocityAngular: number;\n readonly velocityExpansion: number;\n readonly velocityX: number;\n readonly velocityY: number;\n initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;\n readonly MSGESTURE_FLAG_BEGIN: number;\n readonly MSGESTURE_FLAG_CANCEL: number;\n readonly MSGESTURE_FLAG_END: number;\n readonly MSGESTURE_FLAG_INERTIA: number;\n readonly MSGESTURE_FLAG_NONE: number;\n}\n\ndeclare var MSGestureEvent: {\n prototype: MSGestureEvent;\n new(): MSGestureEvent;\n readonly MSGESTURE_FLAG_BEGIN: number;\n readonly MSGESTURE_FLAG_CANCEL: number;\n readonly MSGESTURE_FLAG_END: number;\n readonly MSGESTURE_FLAG_INERTIA: number;\n readonly MSGESTURE_FLAG_NONE: number;\n};\n\ninterface MSGraphicsTrust {\n readonly constrictionActive: boolean;\n readonly status: string;\n}\n\ndeclare var MSGraphicsTrust: {\n prototype: MSGraphicsTrust;\n new(): MSGraphicsTrust;\n};\n\ninterface MSInputMethodContextEventMap {\n "MSCandidateWindowHide": Event;\n "MSCandidateWindowShow": Event;\n "MSCandidateWindowUpdate": Event;\n}\n\ninterface MSInputMethodContext extends EventTarget {\n readonly compositionEndOffset: number;\n readonly compositionStartOffset: number;\n oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null;\n oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null;\n oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null;\n readonly target: HTMLElement;\n getCandidateWindowClientRect(): ClientRect;\n getCompositionAlternatives(): string[];\n hasComposition(): boolean;\n isCandidateWindowVisible(): boolean;\n addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MSInputMethodContext: {\n prototype: MSInputMethodContext;\n new(): MSInputMethodContext;\n};\n\ninterface MSMediaKeyError {\n readonly code: number;\n readonly systemCode: number;\n readonly MS_MEDIA_KEYERR_CLIENT: number;\n readonly MS_MEDIA_KEYERR_DOMAIN: number;\n readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;\n readonly MS_MEDIA_KEYERR_OUTPUT: number;\n readonly MS_MEDIA_KEYERR_SERVICE: number;\n readonly MS_MEDIA_KEYERR_UNKNOWN: number;\n}\n\ndeclare var MSMediaKeyError: {\n prototype: MSMediaKeyError;\n new(): MSMediaKeyError;\n readonly MS_MEDIA_KEYERR_CLIENT: number;\n readonly MS_MEDIA_KEYERR_DOMAIN: number;\n readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;\n readonly MS_MEDIA_KEYERR_OUTPUT: number;\n readonly MS_MEDIA_KEYERR_SERVICE: number;\n readonly MS_MEDIA_KEYERR_UNKNOWN: number;\n};\n\ninterface MSMediaKeyMessageEvent extends Event {\n readonly destinationURL: string | null;\n readonly message: Uint8Array;\n}\n\ndeclare var MSMediaKeyMessageEvent: {\n prototype: MSMediaKeyMessageEvent;\n new(): MSMediaKeyMessageEvent;\n};\n\ninterface MSMediaKeyNeededEvent extends Event {\n readonly initData: Uint8Array | null;\n}\n\ndeclare var MSMediaKeyNeededEvent: {\n prototype: MSMediaKeyNeededEvent;\n new(): MSMediaKeyNeededEvent;\n};\n\ninterface MSMediaKeySession extends EventTarget {\n readonly error: MSMediaKeyError | null;\n readonly keySystem: string;\n readonly sessionId: string;\n close(): void;\n update(key: Uint8Array): void;\n}\n\ndeclare var MSMediaKeySession: {\n prototype: MSMediaKeySession;\n new(): MSMediaKeySession;\n};\n\ninterface MSMediaKeys {\n readonly keySystem: string;\n createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession;\n}\n\ndeclare var MSMediaKeys: {\n prototype: MSMediaKeys;\n new(keySystem: string): MSMediaKeys;\n isTypeSupported(keySystem: string, type?: string | null): boolean;\n isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string;\n};\n\ninterface MSNavigatorDoNotTrack {\n confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;\n confirmWebWideTrackingException(args: ExceptionInformation): boolean;\n removeSiteSpecificTrackingException(args: ExceptionInformation): void;\n removeWebWideTrackingException(args: ExceptionInformation): void;\n storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;\n storeWebWideTrackingException(args: StoreExceptionsInformation): void;\n}\n\ninterface MSPointerEvent extends MouseEvent {\n readonly currentPoint: any;\n readonly height: number;\n readonly hwTimestamp: number;\n readonly intermediatePoints: any;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: any;\n readonly pressure: number;\n readonly rotation: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly width: number;\n getCurrentPoint(element: Element): void;\n getIntermediatePoints(element: Element): void;\n initPointerEvent(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, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;\n}\n\ndeclare var MSPointerEvent: {\n prototype: MSPointerEvent;\n new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;\n};\n\ninterface MSStream {\n readonly type: string;\n msClose(): void;\n msDetachStream(): any;\n}\n\ndeclare var MSStream: {\n prototype: MSStream;\n new(): MSStream;\n};\n\ninterface MSStreamReaderEventMap {\n "abort": UIEvent;\n "error": ErrorEvent;\n "load": Event;\n "loadend": ProgressEvent;\n "loadstart": Event;\n "progress": ProgressEvent;\n}\n\ninterface MSStreamReader extends EventTarget {\n readonly error: DOMError;\n onabort: ((this: MSStreamReader, ev: UIEvent) => any) | null;\n onerror: ((this: MSStreamReader, ev: ErrorEvent) => any) | null;\n onload: ((this: MSStreamReader, ev: Event) => any) | null;\n onloadend: ((this: MSStreamReader, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: MSStreamReader, ev: Event) => any) | null;\n onprogress: ((this: MSStreamReader, ev: ProgressEvent) => any) | null;\n readonly readyState: number;\n readonly result: any;\n abort(): void;\n readAsArrayBuffer(stream: MSStream, size?: number): void;\n readAsBinaryString(stream: MSStream, size?: number): void;\n readAsBlob(stream: MSStream, size?: number): void;\n readAsDataURL(stream: MSStream, size?: number): void;\n readAsText(stream: MSStream, encoding?: string, size?: number): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener<K extends keyof MSStreamReaderEventMap>(type: K, listener: (this: MSStreamReader, ev: MSStreamReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MSStreamReaderEventMap>(type: K, listener: (this: MSStreamReader, ev: MSStreamReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MSStreamReader: {\n prototype: MSStreamReader;\n new(): MSStreamReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\ninterface MediaDeviceInfo {\n readonly deviceId: string;\n readonly groupId: string;\n readonly kind: MediaDeviceKind;\n readonly label: string;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\ninterface MediaDevices extends EventTarget {\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\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\ninterface MediaElementAudioSourceNode extends AudioNode {\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(): 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\ninterface MediaError {\n readonly code: number;\n readonly msExtendedCode: number;\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 readonly MS_MEDIA_ERR_ENCRYPTED: 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 readonly MS_MEDIA_ERR_ENCRYPTED: number;\n};\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 MediaKeySession extends EventTarget {\n readonly closed: Promise<void>;\n readonly expiration: number;\n readonly keyStatuses: MediaKeyStatusMap;\n readonly sessionId: string;\n close(): Promise<void>;\n generateRequest(initDataType: string, initData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n load(sessionId: string): Promise<boolean>;\n remove(): Promise<void>;\n update(response: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n}\n\ndeclare var MediaKeySession: {\n prototype: MediaKeySession;\n new(): MediaKeySession;\n};\n\ninterface MediaKeyStatusMap {\n readonly size: number;\n forEach(callback: Function, thisArg?: any): void;\n get(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): MediaKeyStatus;\n has(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): boolean;\n}\n\ndeclare var MediaKeyStatusMap: {\n prototype: MediaKeyStatusMap;\n new(): MediaKeyStatusMap;\n};\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\ninterface MediaKeys {\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n setServerCertificate(serverCertificate: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\ninterface MediaList {\n readonly length: number;\n mediaText: string;\n appendMedium(medium: string): void;\n deleteMedium(medium: string): void;\n item(index: number): string | null;\n toString(): number;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\ninterface MediaQueryList {\n readonly matches: boolean;\n readonly media: string;\n addListener(listener: MediaQueryListListener): void;\n removeListener(listener: MediaQueryListListener): void;\n}\n\ndeclare var MediaQueryList: {\n prototype: MediaQueryList;\n new(): MediaQueryList;\n};\n\ninterface MediaSource extends EventTarget {\n readonly activeSourceBuffers: SourceBufferList;\n duration: number;\n readonly readyState: string;\n readonly sourceBuffers: SourceBufferList;\n addSourceBuffer(type: string): SourceBuffer;\n endOfStream(error?: number): void;\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n}\n\ndeclare var MediaSource: {\n prototype: MediaSource;\n new(): MediaSource;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "active": Event;\n "addtrack": MediaStreamTrackEvent;\n "inactive": Event;\n "removetrack": MediaStreamTrackEvent;\n}\n\ninterface MediaStream extends EventTarget {\n readonly active: boolean;\n readonly id: string;\n onactive: ((this: MediaStream, ev: Event) => any) | null;\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n oninactive: ((this: MediaStream, ev: Event) => 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 stop(): 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 MediaStreamAudioSourceNode extends AudioNode {\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamError {\n readonly constraintName: string | null;\n readonly message: string | null;\n readonly name: string;\n}\n\ndeclare var MediaStreamError: {\n prototype: MediaStreamError;\n new(): MediaStreamError;\n};\n\ninterface MediaStreamErrorEvent extends Event {\n readonly error: MediaStreamError | null;\n}\n\ndeclare var MediaStreamErrorEvent: {\n prototype: MediaStreamErrorEvent;\n new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;\n};\n\ninterface MediaStreamEvent extends Event {\n readonly stream: MediaStream | null;\n}\n\ndeclare var MediaStreamEvent: {\n prototype: MediaStreamEvent;\n new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": MediaStreamErrorEvent;\n "mute": Event;\n "overconstrained": MediaStreamErrorEvent;\n "unmute": Event;\n}\n\ninterface MediaStreamTrack extends EventTarget {\n enabled: boolean;\n readonly id: string;\n readonly kind: string;\n readonly label: string;\n readonly muted: boolean;\n onended: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null;\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onoverconstrained: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null;\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n readonly readonly: boolean;\n readonly readyState: MediaStreamTrackState;\n readonly remote: boolean;\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\ninterface MediaStreamTrackEvent extends Event {\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(typeArg: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\ninterface MessageChannel {\n readonly port1: MessagePort;\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\ninterface MessageEvent extends Event {\n readonly data: any;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort>;\n readonly source: Window | null;\n initMessageEvent(type: string, bubbles: boolean, cancelable: boolean, data: any, origin: string, lastEventId: string, source: Window): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new(type: string, eventInitDict?: MessageEventInit): MessageEvent;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n}\n\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n close(): void;\n postMessage(message?: any, transfer?: any[]): void;\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 MimeType {\n readonly description: string;\n readonly enabledPlugin: Plugin;\n readonly suffixes: string;\n readonly type: string;\n}\n\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\ninterface MimeTypeArray {\n readonly length: number;\n item(index: number): Plugin;\n namedItem(type: string): Plugin;\n [index: number]: Plugin;\n}\n\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\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 /** @deprecated */\n readonly fromElement: Element;\n readonly layerX: number;\n readonly layerY: number;\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;\n readonly screenX: number;\n readonly screenY: number;\n readonly shiftKey: boolean;\n /** @deprecated */\n readonly toElement: Element;\n /** @deprecated */\n readonly which: number;\n readonly x: number;\n readonly y: number;\n getModifierState(keyArg: string): boolean;\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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\ninterface MutationEvent extends Event {\n readonly attrChange: number;\n readonly attrName: string;\n readonly newValue: string;\n readonly prevValue: string;\n readonly relatedNode: Node;\n initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n}\n\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n};\n\ninterface MutationObserver {\n disconnect(): void;\n observe(target: Node, options: MutationObserverInit): void;\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\ninterface MutationRecord {\n readonly addedNodes: NodeList;\n readonly attributeName: string | null;\n readonly attributeNamespace: string | null;\n readonly nextSibling: Node | null;\n readonly oldValue: string | null;\n readonly previousSibling: Node | null;\n readonly removedNodes: NodeList;\n readonly target: Node;\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\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\ninterface Navigator extends NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia, NavigatorLanguage {\n readonly activeVRDisplays: ReadonlyArray<VRDisplay>;\n readonly authentication: WebAuthentication;\n readonly cookieEnabled: boolean;\n readonly doNotTrack: string | null;\n gamepadInputEmulation: GamepadInputEmulationType;\n readonly geolocation: Geolocation;\n readonly maxTouchPoints: number;\n readonly mimeTypes: MimeTypeArray;\n readonly msManipulationViewsEnabled: boolean;\n readonly msMaxTouchPoints: number;\n readonly msPointerEnabled: boolean;\n readonly plugins: PluginArray;\n readonly pointerEnabled: boolean;\n readonly serviceWorker: ServiceWorkerContainer;\n readonly webdriver: boolean;\n getGamepads(): (Gamepad | null)[];\n getVRDisplays(): Promise<VRDisplay[]>;\n javaEnabled(): boolean;\n msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n vibrate(pattern: number | number[]): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorBeacon {\n sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n}\n\ninterface NavigatorID {\n readonly appCodeName: string;\n readonly appName: string;\n readonly appVersion: string;\n readonly platform: string;\n readonly product: string;\n readonly productSub: string;\n readonly userAgent: string;\n readonly vendor: string;\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\ninterface NavigatorStorageUtils {\n}\n\ninterface NavigatorUserMedia {\n readonly mediaDevices: MediaDevices;\n getDisplayMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;\n getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;\n}\n\ninterface Node extends EventTarget {\n readonly baseURI: string | null;\n readonly childNodes: NodeListOf<Node & ChildNode>;\n readonly firstChild: Node | null;\n readonly lastChild: Node | null;\n readonly localName: string | null;\n readonly namespaceURI: string | null;\n readonly nextSibling: Node | null;\n readonly nodeName: string;\n readonly nodeType: number;\n nodeValue: string | null;\n readonly ownerDocument: Document;\n readonly parentElement: HTMLElement | null;\n readonly parentNode: Node | null;\n readonly previousSibling: Node | null;\n textContent: string | null;\n appendChild<T extends Node>(newChild: T): T;\n cloneNode(deep?: boolean): Node;\n compareDocumentPosition(other: Node): number;\n contains(child: Node): boolean;\n hasChildNodes(): boolean;\n insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;\n isDefaultNamespace(namespaceURI: string | null): boolean;\n isEqualNode(arg: Node): boolean;\n isSameNode(other: Node): boolean;\n lookupNamespaceURI(prefix: string | null): string | null;\n lookupPrefix(namespaceURI: string | null): string | null;\n normalize(): void;\n removeChild<T extends Node>(oldChild: T): T;\n replaceChild<T extends Node>(newChild: Node, oldChild: T): T;\n readonly ATTRIBUTE_NODE: number;\n readonly CDATA_SECTION_NODE: number;\n readonly COMMENT_NODE: number;\n readonly DOCUMENT_FRAGMENT_NODE: number;\n readonly DOCUMENT_NODE: number;\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n readonly DOCUMENT_POSITION_CONTAINS: number;\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n readonly DOCUMENT_POSITION_PRECEDING: number;\n readonly DOCUMENT_TYPE_NODE: number;\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n readonly PROCESSING_INSTRUCTION_NODE: number;\n readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n readonly ATTRIBUTE_NODE: number;\n readonly CDATA_SECTION_NODE: number;\n readonly COMMENT_NODE: number;\n readonly DOCUMENT_FRAGMENT_NODE: number;\n readonly DOCUMENT_NODE: number;\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n readonly DOCUMENT_POSITION_CONTAINS: number;\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n readonly DOCUMENT_POSITION_PRECEDING: number;\n readonly DOCUMENT_TYPE_NODE: number;\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n readonly PROCESSING_INSTRUCTION_NODE: number;\n readonly TEXT_NODE: number;\n};\n\ninterface NodeFilter {\n acceptNode(node: Node): number;\n}\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\ninterface NodeIterator {\n /** @deprecated */\n readonly expandEntityReferences: boolean;\n readonly filter: NodeFilter | null;\n readonly root: Node;\n readonly whatToShow: number;\n detach(): void;\n nextNode(): Node | null;\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\ninterface NodeList {\n readonly length: number;\n item(index: number): Node;\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 length: number;\n item(index: number): TNode;\n [index: number]: TNode;\n}\n\ninterface NodeSelector {\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 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\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\ninterface Notification extends EventTarget {\n readonly body: string | null;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string | null;\n readonly lang: string | null;\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 permission: NotificationPermission;\n readonly tag: string | null;\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 requestPermission(callback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\ninterface OES_element_index_uint {\n}\n\ndeclare var OES_element_index_uint: {\n prototype: OES_element_index_uint;\n new(): OES_element_index_uint;\n};\n\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;\n}\n\ndeclare var OES_standard_derivatives: {\n prototype: OES_standard_derivatives;\n new(): OES_standard_derivatives;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;\n};\n\ninterface OES_texture_float {\n}\n\ndeclare var OES_texture_float: {\n prototype: OES_texture_float;\n new(): OES_texture_float;\n};\n\ninterface OES_texture_float_linear {\n}\n\ndeclare var OES_texture_float_linear: {\n prototype: OES_texture_float_linear;\n new(): OES_texture_float_linear;\n};\n\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: number;\n}\n\ndeclare var OES_texture_half_float: {\n prototype: OES_texture_half_float;\n new(): OES_texture_half_float;\n readonly HALF_FLOAT_OES: number;\n};\n\ninterface OES_texture_half_float_linear {\n}\n\ndeclare var OES_texture_half_float_linear: {\n prototype: OES_texture_half_float_linear;\n new(): OES_texture_half_float_linear;\n};\n\ninterface OES_vertex_array_object {\n readonly VERTEX_ARRAY_BINDING_OES: number;\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;\n isVertexArrayOES(value: any): value is WebGLVertexArrayObjectOES;\n}\n\ninterface OfflineAudioCompletionEvent extends Event {\n readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n prototype: OfflineAudioCompletionEvent;\n new(): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends AudioContextEventMap {\n "complete": OfflineAudioCompletionEvent;\n}\n\ninterface OfflineAudioContext extends AudioContextBase {\n readonly length: number;\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\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(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\ninterface OscillatorNodeEventMap {\n "ended": Event;\n}\n\ninterface OscillatorNode extends AudioNode {\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n onended: ((this: OscillatorNode, ev: Event) => any) | null;\n type: OscillatorType;\n setPeriodicWave(periodicWave: PeriodicWave): void;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OscillatorNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[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(): OscillatorNode;\n};\n\ninterface OverflowEvent extends UIEvent {\n readonly horizontalOverflow: boolean;\n readonly orient: number;\n readonly verticalOverflow: boolean;\n readonly BOTH: number;\n readonly HORIZONTAL: number;\n readonly VERTICAL: number;\n}\n\ndeclare var OverflowEvent: {\n prototype: OverflowEvent;\n new(): OverflowEvent;\n readonly BOTH: number;\n readonly HORIZONTAL: number;\n readonly VERTICAL: number;\n};\n\ninterface PageTransitionEvent extends Event {\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(): PageTransitionEvent;\n};\n\ninterface PannerNode extends AudioNode {\n coneInnerAngle: number;\n coneOuterAngle: number;\n coneOuterGain: number;\n distanceModel: DistanceModelType;\n maxDistance: number;\n panningModel: PanningModelType;\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 /** @deprecated */\n setVelocity(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n prototype: PannerNode;\n new(): PannerNode;\n};\n\ninterface ParentNode {\n readonly children: HTMLCollection;\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 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\ninterface ParentNode {\n readonly childElementCount: number;\n readonly firstElementChild: Element | null;\n readonly lastElementChild: Element | null;\n}\n\ninterface Path2D extends CanvasPathMethods {\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(d?: Path2D | string): Path2D;\n};\n\ninterface PaymentAddress {\n readonly addressLine: string[];\n readonly city: string;\n readonly country: string;\n readonly dependentLocality: string;\n readonly languageCode: string;\n readonly organization: string;\n readonly phone: string;\n readonly postalCode: string;\n readonly recipient: string;\n readonly region: string;\n readonly sortingCode: string;\n toJSON(): any;\n}\n\ndeclare var PaymentAddress: {\n prototype: PaymentAddress;\n new(): PaymentAddress;\n};\n\ninterface PaymentRequestEventMap {\n "shippingaddresschange": Event;\n "shippingoptionchange": Event;\n}\n\ninterface PaymentRequest extends EventTarget {\n readonly id: string;\n onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;\n onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;\n readonly shippingAddress: PaymentAddress | null;\n readonly shippingOption: string | null;\n readonly shippingType: PaymentShippingType | null;\n abort(): Promise<void>;\n canMakePayment(): Promise<boolean>;\n show(): 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, options?: PaymentOptions): PaymentRequest;\n};\n\ninterface PaymentRequestUpdateEvent extends Event {\n updateWith(detailsPromise: Promise<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\ninterface PaymentResponse {\n readonly details: any;\n readonly methodName: string;\n readonly payerEmail: string | null;\n readonly payerName: string | null;\n readonly payerPhone: string | null;\n readonly requestId: string;\n readonly shippingAddress: PaymentAddress | null;\n readonly shippingOption: string | null;\n complete(result?: PaymentComplete): Promise<void>;\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerfWidgetExternal {\n readonly activeNetworkRequestCount: number;\n readonly averageFrameTime: number;\n readonly averagePaintTime: number;\n readonly extraInformationEnabled: boolean;\n readonly independentRenderingEnabled: boolean;\n readonly irDisablingContentString: string;\n readonly irStatusAvailable: boolean;\n readonly maxCpuSpeed: number;\n readonly paintRequestsPerSecond: number;\n readonly performanceCounter: number;\n readonly performanceCounterFrequency: number;\n addEventListener(eventType: string, callback: Function): void;\n getMemoryUsage(): number;\n getProcessCpuUsage(): number;\n getRecentCpuUsage(last: number | null): any;\n getRecentFrames(last: number | null): any;\n getRecentMemoryUsage(last: number | null): any;\n getRecentPaintRequests(last: number | null): any;\n removeEventListener(eventType: string, callback: Function): void;\n repositionWindow(x: number, y: number): void;\n resizeWindow(width: number, height: number): void;\n}\n\ndeclare var PerfWidgetExternal: {\n prototype: PerfWidgetExternal;\n new(): PerfWidgetExternal;\n};\n\ninterface Performance {\n /** @deprecated */\n readonly navigation: PerformanceNavigation;\n readonly timeOrigin: number;\n /** @deprecated */\n readonly timing: PerformanceTiming;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): any;\n getEntriesByName(name: string, type?: string): any;\n getEntriesByType(type: string): any;\n /** @deprecated */\n getMarks(markName?: string): any;\n /** @deprecated */\n getMeasures(measureName?: string): any;\n mark(markName: string): void;\n measure(measureName: string, startMarkName?: string, endMarkName?: string): void;\n now(): number;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\ninterface PerformanceEntry {\n readonly duration: number;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: number;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\ninterface PerformanceMark extends PerformanceEntry {\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(): PerformanceMark;\n};\n\ninterface PerformanceMeasure extends PerformanceEntry {\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\ninterface PerformanceNavigation {\n readonly redirectCount: number;\n readonly type: number;\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\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\ninterface PerformanceNavigationTiming extends PerformanceEntry {\n /** @deprecated */\n readonly connectEnd: number;\n /** @deprecated */\n readonly connectStart: number;\n readonly domComplete: number;\n readonly domContentLoadedEventEnd: number;\n readonly domContentLoadedEventStart: number;\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 readonly loadEventEnd: number;\n readonly loadEventStart: number;\n /** @deprecated */\n readonly navigationStart: number;\n readonly redirectCount: 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 readonly type: NavigationType;\n readonly unloadEventEnd: number;\n readonly unloadEventStart: number;\n readonly workerStart: number;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: number;\n readonly connectStart: number;\n readonly domainLookupEnd: number;\n readonly domainLookupStart: number;\n readonly fetchStart: number;\n readonly initiatorType: string;\n readonly redirectEnd: number;\n readonly redirectStart: number;\n readonly requestStart: number;\n readonly responseEnd: number;\n readonly responseStart: number;\n readonly workerStart: number;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceTiming {\n readonly connectEnd: number;\n readonly connectStart: number;\n readonly domComplete: number;\n readonly domContentLoadedEventEnd: number;\n readonly domContentLoadedEventStart: number;\n readonly domInteractive: number;\n readonly domLoading: number;\n readonly domainLookupEnd: number;\n readonly domainLookupStart: number;\n readonly fetchStart: number;\n readonly loadEventEnd: number;\n readonly loadEventStart: number;\n readonly msFirstPaint: number;\n readonly navigationStart: number;\n readonly redirectEnd: number;\n readonly redirectStart: number;\n readonly requestStart: number;\n readonly responseEnd: number;\n readonly responseStart: number;\n readonly secureConnectionStart: number;\n readonly unloadEventEnd: number;\n readonly unloadEventStart: number;\n toJSON(): any;\n}\n\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(): PeriodicWave;\n};\n\ninterface PermissionRequest extends DeferredPermissionRequest {\n readonly state: MSWebViewPermissionState;\n defer(): void;\n}\n\ndeclare var PermissionRequest: {\n prototype: PermissionRequest;\n new(): PermissionRequest;\n};\n\ninterface PermissionRequestedEvent extends Event {\n readonly permissionRequest: PermissionRequest;\n}\n\ndeclare var PermissionRequestedEvent: {\n prototype: PermissionRequestedEvent;\n new(): PermissionRequestedEvent;\n};\n\ninterface Plugin {\n readonly description: string;\n readonly filename: string;\n readonly length: number;\n readonly name: string;\n readonly version: string;\n item(index: number): MimeType;\n namedItem(type: string): MimeType;\n [index: number]: MimeType;\n}\n\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\ninterface PluginArray {\n readonly length: number;\n item(index: number): Plugin;\n namedItem(name: string): Plugin;\n refresh(reload?: boolean): void;\n [index: number]: Plugin;\n}\n\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\ninterface PointerEvent extends MouseEvent {\n readonly currentPoint: any;\n readonly height: number;\n readonly hwTimestamp: number;\n readonly intermediatePoints: any;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: any;\n readonly pressure: number;\n readonly rotation: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly width: number;\n getCurrentPoint(element: Element): void;\n getIntermediatePoints(element: Element): void;\n initPointerEvent(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, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\ninterface PopStateEvent extends Event {\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\ninterface Position {\n readonly coords: Coordinates;\n readonly timestamp: number;\n}\n\ndeclare var Position: {\n prototype: Position;\n new(): Position;\n};\n\ninterface PositionError {\n readonly code: number;\n readonly message: string;\n toString(): string;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n}\n\ndeclare var PositionError: {\n prototype: PositionError;\n new(): PositionError;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n};\n\ninterface ProcessingInstruction extends CharacterData {\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\ninterface ProgressEvent extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly total: number;\n initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(typeArg: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: PromiseLike<any>;\n readonly reason: any;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: PromiseLike<any>;\n reason?: any;\n}\n\ninterface PushManager {\n readonly supportedContentEncodings: ReadonlyArray<string>;\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};\n\ninterface PushSubscription {\n readonly endpoint: string;\n readonly expirationTime: number | null;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): any;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCDTMFToneChangeEvent extends Event {\n readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n prototype: RTCDTMFToneChangeEvent;\n new(typeArg: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n "dtlsstatechange": RTCDtlsTransportStateChangedEvent;\n "error": Event;\n}\n\ninterface RTCDtlsTransport extends RTCStatsProvider {\n ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null;\n onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n readonly state: RTCDtlsTransportState;\n readonly transport: RTCIceTransport;\n getLocalParameters(): RTCDtlsParameters;\n getRemoteCertificates(): ArrayBuffer[];\n getRemoteParameters(): RTCDtlsParameters | null;\n start(remoteParameters: RTCDtlsParameters): void;\n stop(): void;\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(transport: RTCIceTransport): RTCDtlsTransport;\n};\n\ninterface RTCDtlsTransportStateChangedEvent extends Event {\n readonly state: RTCDtlsTransportState;\n}\n\ndeclare var RTCDtlsTransportStateChangedEvent: {\n prototype: RTCDtlsTransportStateChangedEvent;\n new(): RTCDtlsTransportStateChangedEvent;\n};\n\ninterface RTCDtmfSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDtmfSender extends EventTarget {\n readonly canInsertDTMF: boolean;\n readonly duration: number;\n readonly interToneGap: number;\n ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n readonly sender: RTCRtpSender;\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(sender: RTCRtpSender): RTCDtmfSender;\n};\n\ninterface RTCIceCandidate {\n candidate: string | null;\n sdpMLineIndex: number | null;\n sdpMid: string | null;\n toJSON(): any;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceCandidatePairChangedEvent extends Event {\n readonly pair: RTCIceCandidatePair;\n}\n\ndeclare var RTCIceCandidatePairChangedEvent: {\n prototype: RTCIceCandidatePairChangedEvent;\n new(): RTCIceCandidatePairChangedEvent;\n};\n\ninterface RTCIceGathererEventMap {\n "error": Event;\n "localcandidate": RTCIceGathererEvent;\n}\n\ninterface RTCIceGatherer extends RTCStatsProvider {\n readonly component: RTCIceComponent;\n onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;\n onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;\n createAssociatedGatherer(): RTCIceGatherer;\n getLocalCandidates(): RTCIceCandidateDictionary[];\n getLocalParameters(): RTCIceParameters;\n addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceGatherer: {\n prototype: RTCIceGatherer;\n new(options: RTCIceGatherOptions): RTCIceGatherer;\n};\n\ninterface RTCIceGathererEvent extends Event {\n readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete;\n}\n\ndeclare var RTCIceGathererEvent: {\n prototype: RTCIceGathererEvent;\n new(): RTCIceGathererEvent;\n};\n\ninterface RTCIceTransportEventMap {\n "candidatepairchange": RTCIceCandidatePairChangedEvent;\n "icestatechange": RTCIceTransportStateChangedEvent;\n}\n\ninterface RTCIceTransport extends RTCStatsProvider {\n readonly component: RTCIceComponent;\n readonly iceGatherer: RTCIceGatherer | null;\n oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null;\n onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null;\n readonly role: RTCIceRole;\n readonly state: RTCIceTransportState;\n addRemoteCandidate(remoteCandidate: RTCIceCandidateDictionary | RTCIceCandidateComplete): void;\n createAssociatedTransport(): RTCIceTransport;\n getNominatedCandidatePair(): RTCIceCandidatePair | null;\n getRemoteCandidates(): RTCIceCandidateDictionary[];\n getRemoteParameters(): RTCIceParameters | null;\n setRemoteCandidates(remoteCandidates: RTCIceCandidateDictionary[]): void;\n start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: RTCIceRole): void;\n stop(): void;\n addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceTransport: {\n prototype: RTCIceTransport;\n new(): RTCIceTransport;\n};\n\ninterface RTCIceTransportStateChangedEvent extends Event {\n readonly state: RTCIceTransportState;\n}\n\ndeclare var RTCIceTransportStateChangedEvent: {\n prototype: RTCIceTransportStateChangedEvent;\n new(): RTCIceTransportStateChangedEvent;\n};\n\ninterface RTCPeerConnectionEventMap {\n "addstream": MediaStreamEvent;\n "icecandidate": RTCPeerConnectionIceEvent;\n "iceconnectionstatechange": Event;\n "icegatheringstatechange": Event;\n "negotiationneeded": Event;\n "removestream": MediaStreamEvent;\n "signalingstatechange": Event;\n}\n\ninterface RTCPeerConnection extends EventTarget {\n readonly canTrickleIceCandidates: boolean | null;\n readonly iceConnectionState: RTCIceConnectionState;\n readonly iceGatheringState: RTCIceGatheringState;\n readonly localDescription: RTCSessionDescription | null;\n onaddstream: ((this: RTCPeerConnection, ev: MediaStreamEvent) => any) | null;\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => 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 onremovestream: ((this: RTCPeerConnection, ev: MediaStreamEvent) => any) | null;\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n readonly remoteDescription: RTCSessionDescription | null;\n readonly signalingState: RTCSignalingState;\n addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;\n addStream(stream: MediaStream): void;\n close(): void;\n createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n getConfiguration(): RTCConfiguration;\n getLocalStreams(): MediaStream[];\n getRemoteStreams(): MediaStream[];\n getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise<RTCStatsReport>;\n getStreamById(streamId: string): MediaStream | null;\n removeStream(stream: MediaStream): void;\n setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;\n setRemoteDescription(description: RTCSessionDescriptionInit): 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};\n\ninterface RTCPeerConnectionIceEvent extends Event {\n readonly candidate: RTCIceCandidate;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\ninterface RTCRtpReceiverEventMap {\n "error": Event;\n "msdecodercapacitychange": Event;\n "msdsh": Event;\n}\n\ninterface RTCRtpReceiver extends RTCStatsProvider {\n onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null;\n onmsdecodercapacitychange: ((this: RTCRtpReceiver, ev: Event) => any) | null;\n onmsdsh: ((this: RTCRtpReceiver, ev: Event) => any) | null;\n readonly rtcpTransport: RTCDtlsTransport;\n readonly track: MediaStreamTrack | null;\n readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;\n getContributingSources(): RTCRtpContributingSource[];\n receive(parameters: RTCRtpParameters): void;\n requestSendCSRC(csrc: number): void;\n setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void;\n stop(): void;\n addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;\n getCapabilities(kind?: string): RTCRtpCapabilities;\n};\n\ninterface RTCRtpSenderEventMap {\n "error": Event;\n "ssrcconflict": RTCSsrcConflictEvent;\n}\n\ninterface RTCRtpSender extends RTCStatsProvider {\n onerror: ((this: RTCRtpSender, ev: Event) => any) | null;\n onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null;\n readonly rtcpTransport: RTCDtlsTransport;\n readonly track: MediaStreamTrack;\n readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;\n send(parameters: RTCRtpParameters): void;\n setTrack(track: MediaStreamTrack): void;\n setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void;\n stop(): void;\n addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: (this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: (this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(track: MediaStreamTrack, transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;\n getCapabilities(kind?: string): RTCRtpCapabilities;\n};\n\ninterface RTCSessionDescription {\n sdp: string | null;\n type: RTCSdpType | null;\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict?: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCSrtpSdesTransportEventMap {\n "error": Event;\n}\n\ninterface RTCSrtpSdesTransport extends EventTarget {\n onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null;\n readonly transport: RTCIceTransport;\n addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSrtpSdesTransport: {\n prototype: RTCSrtpSdesTransport;\n new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;\n getLocalParameters(): RTCSrtpSdesParameters[];\n};\n\ninterface RTCSsrcConflictEvent extends Event {\n readonly ssrc: number;\n}\n\ndeclare var RTCSsrcConflictEvent: {\n prototype: RTCSsrcConflictEvent;\n new(): RTCSsrcConflictEvent;\n};\n\ninterface RTCStatsProvider extends EventTarget {\n getStats(): Promise<RTCStatsReport>;\n msGetStats(): Promise<RTCStatsReport>;\n}\n\ndeclare var RTCStatsProvider: {\n prototype: RTCStatsProvider;\n new(): RTCStatsProvider;\n};\n\ninterface RandomSource {\n getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T;\n}\n\ndeclare var RandomSource: {\n prototype: RandomSource;\n new(): RandomSource;\n};\n\ninterface Range {\n readonly collapsed: boolean;\n readonly commonAncestorContainer: Node;\n readonly endContainer: Node;\n readonly endOffset: number;\n readonly startContainer: Node;\n readonly startOffset: number;\n cloneContents(): DocumentFragment;\n cloneRange(): Range;\n collapse(toStart?: boolean): void;\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n createContextualFragment(fragment: string): DocumentFragment;\n deleteContents(): void;\n detach(): void;\n expand(Unit: ExpandGranularity): boolean;\n extractContents(): DocumentFragment;\n getBoundingClientRect(): ClientRect | DOMRect;\n getClientRects(): ClientRectList | DOMRectList;\n insertNode(node: Node): void;\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};\n\ninterface ReadableStream {\n readonly locked: boolean;\n cancel(): Promise<void>;\n getReader(): ReadableStreamReader;\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(): ReadableStream;\n};\n\ninterface ReadableStreamReader {\n cancel(): Promise<void>;\n read(): Promise<any>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamReader: {\n prototype: ReadableStreamReader;\n new(): ReadableStreamReader;\n};\n\ninterface Request extends Body {\n readonly cache: RequestCache;\n readonly credentials: RequestCredentials;\n readonly destination: RequestDestination;\n readonly headers: Headers;\n readonly integrity: string;\n readonly keepalive: boolean;\n readonly method: string;\n readonly mode: RequestMode;\n readonly redirect: RequestRedirect;\n readonly referrer: string;\n readonly referrerPolicy: ReferrerPolicy;\n readonly signal: AbortSignal | null;\n readonly type: RequestType;\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: Request | string, init?: RequestInit): Request;\n};\n\ninterface Response extends Body {\n readonly body: ReadableStream | null;\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?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string, status?: number): Response;\n};\n\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\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\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 SVGAnimatedAngle {\n readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\ninterface SVGAnimatedBoolean {\n readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\ninterface SVGAnimatedEnumeration {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\ninterface SVGAnimatedInteger {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\ninterface SVGAnimatedLengthList {\n readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\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\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\ninterface SVGAnimatedRect {\n readonly animVal: SVGRect;\n readonly baseVal: SVGRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\ninterface SVGAnimatedString {\n readonly animVal: string;\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\ninterface SVGAnimatedTransformList {\n readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\ninterface SVGCircleElement extends SVGGraphicsElement {\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\ninterface SVGClipPathElement extends SVGGraphicsElement, SVGUnitTypes {\n readonly clipPathUnits: SVGAnimatedEnumeration;\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\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\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\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 {\n "click": MouseEvent;\n "dblclick": MouseEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "load": Event;\n "mousedown": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n}\n\ninterface SVGElement extends Element, ElementCSSInlineStyle {\n readonly className: any;\n onclick: ((this: SVGElement, ev: MouseEvent) => any) | null;\n ondblclick: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onfocusin: ((this: SVGElement, ev: FocusEvent) => any) | null;\n onfocusout: ((this: SVGElement, ev: FocusEvent) => any) | null;\n onload: ((this: SVGElement, ev: Event) => any) | null;\n onmousedown: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmousemove: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmouseout: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmouseover: ((this: SVGElement, ev: MouseEvent) => any) | null;\n onmouseup: ((this: SVGElement, ev: MouseEvent) => any) | null;\n readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n /** @deprecated */\n xmlbase: string;\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\ninterface SVGElementInstance extends EventTarget {\n readonly childNodes: SVGElementInstanceList;\n readonly correspondingElement: SVGElement;\n readonly correspondingUseElement: SVGUseElement;\n readonly firstChild: SVGElementInstance;\n readonly lastChild: SVGElementInstance;\n readonly nextSibling: SVGElementInstance;\n readonly parentNode: SVGElementInstance;\n readonly previousSibling: SVGElementInstance;\n}\n\ndeclare var SVGElementInstance: {\n prototype: SVGElementInstance;\n new(): SVGElementInstance;\n};\n\ninterface SVGElementInstanceList {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): SVGElementInstance;\n}\n\ndeclare var SVGElementInstanceList: {\n prototype: SVGElementInstanceList;\n new(): SVGElementInstanceList;\n};\n\ninterface SVGEllipseElement extends SVGGraphicsElement {\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\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\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\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\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\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\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\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\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 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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\ninterface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGURIReference {\n /** @deprecated */\n readonly filterResX: SVGAnimatedInteger;\n /** @deprecated */\n readonly filterResY: SVGAnimatedInteger;\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 /** @deprecated */\n setFilterRes(filterResX: number, filterResY: number): void;\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\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\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 SVGGradientElement extends SVGElement, SVGUnitTypes, 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\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n /** @deprecated */\n readonly farthestViewportElement: SVGElement | null;\n /** @deprecated */\n readonly nearestViewportElement: SVGElement | null;\n readonly transform: SVGAnimatedTransformList;\n getBBox(): SVGRect;\n getCTM(): SVGMatrix | null;\n getScreenCTM(): SVGMatrix | null;\n /** @deprecated */\n getTransformToElement(element: SVGElement): SVGMatrix;\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\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\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\ninterface SVGLengthList {\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}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\ninterface SVGLineElement extends SVGGraphicsElement {\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\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 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\ninterface SVGMaskElement extends SVGElement, SVGTests, SVGUnitTypes {\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\ninterface SVGMatrix {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n flipX(): SVGMatrix;\n flipY(): SVGMatrix;\n inverse(): SVGMatrix;\n multiply(secondMatrix: SVGMatrix): SVGMatrix;\n rotate(angle: number): SVGMatrix;\n rotateFromVector(x: number, y: number): SVGMatrix;\n scale(scaleFactor: number): SVGMatrix;\n scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;\n skewX(angle: number): SVGMatrix;\n skewY(angle: number): SVGMatrix;\n translate(x: number, y: number): SVGMatrix;\n}\n\ndeclare var SVGMatrix: {\n prototype: SVGMatrix;\n new(): SVGMatrix;\n};\n\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\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\ninterface SVGNumberList {\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}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\ninterface SVGPathElement extends SVGGraphicsElement {\n /** @deprecated */\n readonly pathSegList: SVGPathSegList;\n /** @deprecated */\n createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;\n /** @deprecated */\n createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;\n /** @deprecated */\n createSVGPathSegClosePath(): SVGPathSegClosePath;\n /** @deprecated */\n createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;\n /** @deprecated */\n createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;\n /** @deprecated */\n createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;\n /** @deprecated */\n createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;\n /** @deprecated */\n createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;\n /** @deprecated */\n createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;\n /** @deprecated */\n createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;\n /** @deprecated */\n createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;\n /** @deprecated */\n createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;\n /** @deprecated */\n createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;\n /** @deprecated */\n createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;\n /** @deprecated */\n createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;\n /** @deprecated */\n createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;\n /** @deprecated */\n getPathSegAtLength(distance: number): number;\n getPointAtLength(distance: number): SVGPoint;\n getTotalLength(): number;\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\ninterface SVGPathSeg {\n readonly pathSegType: number;\n readonly pathSegTypeAsLetter: string;\n readonly PATHSEG_ARC_ABS: number;\n readonly PATHSEG_ARC_REL: number;\n readonly PATHSEG_CLOSEPATH: number;\n readonly PATHSEG_CURVETO_CUBIC_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_REL: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;\n readonly PATHSEG_LINETO_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_REL: number;\n readonly PATHSEG_LINETO_REL: number;\n readonly PATHSEG_LINETO_VERTICAL_ABS: number;\n readonly PATHSEG_LINETO_VERTICAL_REL: number;\n readonly PATHSEG_MOVETO_ABS: number;\n readonly PATHSEG_MOVETO_REL: number;\n readonly PATHSEG_UNKNOWN: number;\n}\n\ndeclare var SVGPathSeg: {\n prototype: SVGPathSeg;\n new(): SVGPathSeg;\n readonly PATHSEG_ARC_ABS: number;\n readonly PATHSEG_ARC_REL: number;\n readonly PATHSEG_CLOSEPATH: number;\n readonly PATHSEG_CURVETO_CUBIC_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_REL: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_REL: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;\n readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;\n readonly PATHSEG_LINETO_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;\n readonly PATHSEG_LINETO_HORIZONTAL_REL: number;\n readonly PATHSEG_LINETO_REL: number;\n readonly PATHSEG_LINETO_VERTICAL_ABS: number;\n readonly PATHSEG_LINETO_VERTICAL_REL: number;\n readonly PATHSEG_MOVETO_ABS: number;\n readonly PATHSEG_MOVETO_REL: number;\n readonly PATHSEG_UNKNOWN: number;\n};\n\ninterface SVGPathSegArcAbs extends SVGPathSeg {\n angle: number;\n largeArcFlag: boolean;\n r1: number;\n r2: number;\n sweepFlag: boolean;\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegArcAbs: {\n prototype: SVGPathSegArcAbs;\n new(): SVGPathSegArcAbs;\n};\n\ninterface SVGPathSegArcRel extends SVGPathSeg {\n angle: number;\n largeArcFlag: boolean;\n r1: number;\n r2: number;\n sweepFlag: boolean;\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegArcRel: {\n prototype: SVGPathSegArcRel;\n new(): SVGPathSegArcRel;\n};\n\ninterface SVGPathSegClosePath extends SVGPathSeg {\n}\n\ndeclare var SVGPathSegClosePath: {\n prototype: SVGPathSegClosePath;\n new(): SVGPathSegClosePath;\n};\n\ninterface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {\n x: number;\n x1: number;\n x2: number;\n y: number;\n y1: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicAbs: {\n prototype: SVGPathSegCurvetoCubicAbs;\n new(): SVGPathSegCurvetoCubicAbs;\n};\n\ninterface SVGPathSegCurvetoCubicRel extends SVGPathSeg {\n x: number;\n x1: number;\n x2: number;\n y: number;\n y1: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicRel: {\n prototype: SVGPathSegCurvetoCubicRel;\n new(): SVGPathSegCurvetoCubicRel;\n};\n\ninterface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {\n x: number;\n x2: number;\n y: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicSmoothAbs: {\n prototype: SVGPathSegCurvetoCubicSmoothAbs;\n new(): SVGPathSegCurvetoCubicSmoothAbs;\n};\n\ninterface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {\n x: number;\n x2: number;\n y: number;\n y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicSmoothRel: {\n prototype: SVGPathSegCurvetoCubicSmoothRel;\n new(): SVGPathSegCurvetoCubicSmoothRel;\n};\n\ninterface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {\n x: number;\n x1: number;\n y: number;\n y1: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticAbs: {\n prototype: SVGPathSegCurvetoQuadraticAbs;\n new(): SVGPathSegCurvetoQuadraticAbs;\n};\n\ninterface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {\n x: number;\n x1: number;\n y: number;\n y1: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticRel: {\n prototype: SVGPathSegCurvetoQuadraticRel;\n new(): SVGPathSegCurvetoQuadraticRel;\n};\n\ninterface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticSmoothAbs: {\n prototype: SVGPathSegCurvetoQuadraticSmoothAbs;\n new(): SVGPathSegCurvetoQuadraticSmoothAbs;\n};\n\ninterface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticSmoothRel: {\n prototype: SVGPathSegCurvetoQuadraticSmoothRel;\n new(): SVGPathSegCurvetoQuadraticSmoothRel;\n};\n\ninterface SVGPathSegLinetoAbs extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegLinetoAbs: {\n prototype: SVGPathSegLinetoAbs;\n new(): SVGPathSegLinetoAbs;\n};\n\ninterface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {\n x: number;\n}\n\ndeclare var SVGPathSegLinetoHorizontalAbs: {\n prototype: SVGPathSegLinetoHorizontalAbs;\n new(): SVGPathSegLinetoHorizontalAbs;\n};\n\ninterface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {\n x: number;\n}\n\ndeclare var SVGPathSegLinetoHorizontalRel: {\n prototype: SVGPathSegLinetoHorizontalRel;\n new(): SVGPathSegLinetoHorizontalRel;\n};\n\ninterface SVGPathSegLinetoRel extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegLinetoRel: {\n prototype: SVGPathSegLinetoRel;\n new(): SVGPathSegLinetoRel;\n};\n\ninterface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {\n y: number;\n}\n\ndeclare var SVGPathSegLinetoVerticalAbs: {\n prototype: SVGPathSegLinetoVerticalAbs;\n new(): SVGPathSegLinetoVerticalAbs;\n};\n\ninterface SVGPathSegLinetoVerticalRel extends SVGPathSeg {\n y: number;\n}\n\ndeclare var SVGPathSegLinetoVerticalRel: {\n prototype: SVGPathSegLinetoVerticalRel;\n new(): SVGPathSegLinetoVerticalRel;\n};\n\ninterface SVGPathSegList {\n readonly numberOfItems: number;\n appendItem(newItem: SVGPathSeg): SVGPathSeg;\n clear(): void;\n getItem(index: number): SVGPathSeg;\n initialize(newItem: SVGPathSeg): SVGPathSeg;\n insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;\n removeItem(index: number): SVGPathSeg;\n replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;\n}\n\ndeclare var SVGPathSegList: {\n prototype: SVGPathSegList;\n new(): SVGPathSegList;\n};\n\ninterface SVGPathSegMovetoAbs extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegMovetoAbs: {\n prototype: SVGPathSegMovetoAbs;\n new(): SVGPathSegMovetoAbs;\n};\n\ninterface SVGPathSegMovetoRel extends SVGPathSeg {\n x: number;\n y: number;\n}\n\ndeclare var SVGPathSegMovetoRel: {\n prototype: SVGPathSegMovetoRel;\n new(): SVGPathSegMovetoRel;\n};\n\ninterface SVGPatternElement extends SVGElement, SVGTests, SVGUnitTypes, 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 SVGPoint {\n x: number;\n y: number;\n matrixTransform(matrix: SVGMatrix): SVGPoint;\n}\n\ndeclare var SVGPoint: {\n prototype: SVGPoint;\n new(): SVGPoint;\n};\n\ninterface SVGPointList {\n readonly numberOfItems: number;\n appendItem(newItem: SVGPoint): SVGPoint;\n clear(): void;\n getItem(index: number): SVGPoint;\n initialize(newItem: SVGPoint): SVGPoint;\n insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;\n removeItem(index: number): SVGPoint;\n replaceItem(newItem: SVGPoint, index: number): SVGPoint;\n}\n\ndeclare var SVGPointList: {\n prototype: SVGPointList;\n new(): SVGPointList;\n};\n\ninterface SVGPolygonElement extends SVGGraphicsElement, 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\ninterface SVGPolylineElement extends SVGGraphicsElement, 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\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\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: 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\ninterface SVGRect {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var SVGRect: {\n prototype: SVGRect;\n new(): SVGRect;\n};\n\ninterface SVGRectElement extends SVGGraphicsElement {\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 {\n "SVGAbort": Event;\n "SVGError": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n "SVGUnload": Event;\n "SVGZoom": SVGZoomEvent;\n}\n\ninterface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {\n /** @deprecated */\n contentScriptType: string;\n /** @deprecated */\n contentStyleType: string;\n currentScale: number;\n readonly currentTranslate: SVGPoint;\n readonly height: SVGAnimatedLength;\n onabort: ((this: SVGSVGElement, ev: Event) => any) | null;\n onerror: ((this: SVGSVGElement, ev: Event) => any) | null;\n onresize: ((this: SVGSVGElement, ev: UIEvent) => any) | null;\n onscroll: ((this: SVGSVGElement, ev: UIEvent) => any) | null;\n onunload: ((this: SVGSVGElement, ev: Event) => any) | null;\n onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;\n /** @deprecated */\n readonly pixelUnitToMillimeterX: number;\n /** @deprecated */\n readonly pixelUnitToMillimeterY: number;\n /** @deprecated */\n readonly screenPixelToMillimeterX: number;\n /** @deprecated */\n readonly screenPixelToMillimeterY: number;\n /** @deprecated */\n readonly viewport: SVGRect;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n checkEnclosure(element: SVGElement, rect: SVGRect): boolean;\n checkIntersection(element: SVGElement, rect: SVGRect): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): SVGMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): SVGPoint;\n createSVGRect(): SVGRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n /** @deprecated */\n getCurrentTime(): number;\n getElementById(elementId: string): Element;\n getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n /** @deprecated */\n pauseAnimations(): void;\n /** @deprecated */\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n /** @deprecated */\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\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 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\ninterface SVGStringList {\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}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\ninterface SVGStylable {\n className: any;\n}\n\ndeclare var SVGStylable: {\n prototype: SVGStylable;\n new(): SVGStylable;\n};\n\ninterface SVGStyleElement extends SVGElement {\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\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\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\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 /** @deprecated */\n readonly requiredFeatures: SVGStringList;\n readonly systemLanguage: SVGStringList;\n /** @deprecated */\n hasExtension(extension: string): boolean;\n}\n\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point: SVGPoint): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): SVGPoint;\n getExtentOfChar(charnum: number): SVGRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): SVGPoint;\n getSubStringLength(charnum: number, nchars: number): number;\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\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\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\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\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\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: SVGMatrix;\n readonly type: number;\n setMatrix(matrix: SVGMatrix): 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\ninterface SVGTransformList {\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform;\n createSVGTransformFromMatrix(matrix: SVGMatrix): 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}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n readonly SVG_UNIT_TYPE_UNKNOWN: number;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n}\ndeclare var SVGUnitTypes: SVGUnitTypes;\n\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly animatedInstanceRoot: SVGElementInstance | null;\n readonly height: SVGAnimatedLength;\n readonly instanceRoot: SVGElementInstance | null;\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\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan {\n /** @deprecated */\n readonly viewTarget: SVGStringList;\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\ninterface SVGZoomAndPan {\n readonly zoomAndPan: number;\n}\n\ndeclare var SVGZoomAndPan: {\n readonly SVG_ZOOMANDPAN_DISABLE: number;\n readonly SVG_ZOOMANDPAN_MAGNIFY: number;\n readonly SVG_ZOOMANDPAN_UNKNOWN: number;\n};\n\ninterface SVGZoomEvent extends UIEvent {\n readonly newScale: number;\n readonly newTranslate: SVGPoint;\n readonly previousScale: number;\n readonly previousTranslate: SVGPoint;\n readonly zoomRectScreen: SVGRect;\n}\n\ndeclare var SVGZoomEvent: {\n prototype: SVGZoomEvent;\n new(): SVGZoomEvent;\n};\n\ninterface ScopedCredential {\n readonly id: ArrayBuffer;\n readonly type: ScopedCredentialType;\n}\n\ndeclare var ScopedCredential: {\n prototype: ScopedCredential;\n new(): ScopedCredential;\n};\n\ninterface ScopedCredentialInfo {\n readonly credential: ScopedCredential;\n readonly publicKey: CryptoKey;\n}\n\ndeclare var ScopedCredentialInfo: {\n prototype: ScopedCredentialInfo;\n new(): ScopedCredentialInfo;\n};\n\ninterface ScreenEventMap {\n "MSOrientationChange": Event;\n}\n\ninterface Screen extends EventTarget {\n readonly availHeight: number;\n readonly availWidth: number;\n /** @deprecated */\n bufferDepth: number;\n readonly colorDepth: number;\n readonly deviceXDPI: number;\n readonly deviceYDPI: number;\n readonly fontSmoothingEnabled: boolean;\n readonly height: number;\n readonly logicalXDPI: number;\n readonly logicalYDPI: number;\n readonly msOrientation: string;\n onmsorientationchange: ((this: Screen, ev: Event) => any) | null;\n readonly pixelDepth: number;\n readonly systemXDPI: number;\n readonly systemYDPI: number;\n readonly width: number;\n lockOrientation(orientations: OrientationLockType | OrientationLockType[]): boolean;\n msLockOrientation(orientations: string | string[]): boolean;\n msUnlockOrientation(): void;\n unlockOrientation(): void;\n addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScriptProcessorNodeEventMap {\n "audioprocess": AudioProcessingEvent;\n}\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\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\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 SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: 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 Selection {\n readonly anchorNode: Node;\n readonly anchorOffset: number;\n readonly baseNode: Node;\n readonly baseOffset: number;\n readonly extentNode: Node;\n readonly extentOffset: number;\n readonly focusNode: Node;\n readonly focusOffset: number;\n readonly isCollapsed: boolean;\n readonly rangeCount: number;\n readonly type: string;\n addRange(range: Range): void;\n collapse(parentNode: Node, offset: number): void;\n collapseToEnd(): void;\n collapseToStart(): void;\n containsNode(node: Node, partlyContained: boolean): boolean;\n deleteFromDocument(): void;\n empty(): void;\n extend(newNode: Node, offset: number): void;\n getRangeAt(index: number): Range;\n removeAllRanges(): void;\n removeRange(range: Range): void;\n selectAllChildren(parentNode: Node): void;\n setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void;\n setPosition(parentNode: Node, offset: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n};\n\ninterface ServiceUIFrameContext {\n getCachedFrameMessage(key: string): string;\n postFrameMessage(key: string, data: string): void;\n}\ndeclare var ServiceUIFrameContext: ServiceUIFrameContext;\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\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?: any[]): 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": ServiceWorkerMessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ServiceWorkerRegistration[]>;\n register(scriptURL: string, 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 ServiceWorkerMessageEvent extends Event {\n readonly data: any;\n readonly lastEventId: string;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort> | null;\n readonly source: ServiceWorker | MessagePort | null;\n}\n\ndeclare var ServiceWorkerMessageEvent: {\n prototype: ServiceWorkerMessageEvent;\n new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\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 sync: SyncManager;\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 DocumentOrShadowRoot, DocumentFragment {\n readonly host: Element;\n innerHTML: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: "open" | "closed";\n}\n\ninterface SourceBuffer extends EventTarget {\n appendWindowEnd: number;\n appendWindowStart: number;\n readonly audioTracks: AudioTrackList;\n readonly buffered: TimeRanges;\n mode: AppendMode;\n timestampOffset: number;\n readonly updating: boolean;\n readonly videoTracks: VideoTrackList;\n abort(): void;\n appendBuffer(data: ArrayBuffer | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n appendStream(stream: MSStream, maxSize?: number): void;\n remove(start: number, end: number): void;\n}\n\ndeclare var SourceBuffer: {\n prototype: SourceBuffer;\n new(): SourceBuffer;\n};\n\ninterface SourceBufferList extends EventTarget {\n readonly length: number;\n item(index: number): SourceBuffer;\n [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n prototype: SourceBufferList;\n new(): SourceBufferList;\n};\n\ninterface SpeechSynthesisEventMap {\n "voiceschanged": Event;\n}\n\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 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": Event;\n "end": Event;\n "error": Event;\n "mark": Event;\n "pause": Event;\n "resume": Event;\n "start": Event;\n}\n\ninterface SpeechSynthesisUtterance extends EventTarget {\n lang: string;\n onboundary: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onend: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onerror: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onmark: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onpause: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onresume: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n onstart: ((this: SpeechSynthesisUtterance, ev: Event) => any) | null;\n pitch: number;\n rate: number;\n text: string;\n voice: SpeechSynthesisVoice;\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(): SpeechSynthesisUtterance;\n new(text: string): SpeechSynthesisUtterance;\n};\n\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 StereoPannerNode extends AudioNode {\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(): StereoPannerNode;\n};\n\ninterface Storage {\n readonly length: number;\n clear(): void;\n getItem(key: string): string | null;\n key(index: number): string | null;\n removeItem(key: string): void;\n setItem(key: string, value: string): void;\n [key: string]: any;\n}\n\ndeclare var Storage: {\n prototype: Storage;\n new(): Storage;\n};\n\ninterface StorageEvent extends Event {\n readonly key: string | null;\n readonly newValue: string | null;\n readonly oldValue: string | null;\n readonly storageArea: Storage | null;\n readonly url: string;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new (type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\ninterface StorageEventInit extends EventInit {\n key?: string;\n newValue?: string;\n oldValue?: string;\n storageArea?: Storage;\n url: string;\n}\n\ninterface StyleMedia {\n readonly type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\ndeclare var StyleMedia: {\n prototype: StyleMedia;\n new(): StyleMedia;\n};\n\ninterface StyleSheet {\n disabled: boolean;\n readonly href: string | null;\n readonly media: MediaList;\n readonly ownerNode: Node;\n readonly parentStyleSheet: StyleSheet | null;\n readonly title: string | null;\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\ninterface StyleSheetList {\n readonly length: number;\n item(index: number): StyleSheet | null;\n [index: number]: StyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\ninterface SubtleCrypto {\n decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>;\n deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;\n exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>;\n exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>;\n generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>;\n wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\ninterface SyncManager {\n getTags(): Promise<string[]>;\n register(tag: string): Promise<void>;\n}\n\ndeclare var SyncManager: {\n prototype: SyncManager;\n new(): SyncManager;\n};\n\ninterface Text extends CharacterData {\n readonly assignedSlot: HTMLSlotElement | null;\n readonly wholeText: string;\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\ninterface TextDecoder {\n readonly encoding: string;\n readonly fatal: boolean;\n readonly ignoreBOM: boolean;\n decode(input?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextEncoder {\n readonly encoding: string;\n encode(input?: string): Uint8Array;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEvent extends UIEvent {\n readonly data: string;\n initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;\n readonly DOM_INPUT_METHOD_DROP: number;\n readonly DOM_INPUT_METHOD_HANDWRITING: number;\n readonly DOM_INPUT_METHOD_IME: number;\n readonly DOM_INPUT_METHOD_KEYBOARD: number;\n readonly DOM_INPUT_METHOD_MULTIMODAL: number;\n readonly DOM_INPUT_METHOD_OPTION: number;\n readonly DOM_INPUT_METHOD_PASTE: number;\n readonly DOM_INPUT_METHOD_SCRIPT: number;\n readonly DOM_INPUT_METHOD_UNKNOWN: number;\n readonly DOM_INPUT_METHOD_VOICE: number;\n}\n\ndeclare var TextEvent: {\n prototype: TextEvent;\n new(): TextEvent;\n readonly DOM_INPUT_METHOD_DROP: number;\n readonly DOM_INPUT_METHOD_HANDWRITING: number;\n readonly DOM_INPUT_METHOD_IME: number;\n readonly DOM_INPUT_METHOD_KEYBOARD: number;\n readonly DOM_INPUT_METHOD_MULTIMODAL: number;\n readonly DOM_INPUT_METHOD_OPTION: number;\n readonly DOM_INPUT_METHOD_PASTE: number;\n readonly DOM_INPUT_METHOD_SCRIPT: number;\n readonly DOM_INPUT_METHOD_UNKNOWN: number;\n readonly DOM_INPUT_METHOD_VOICE: number;\n};\n\ninterface TextMetrics {\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n "error": Event;\n "load": Event;\n}\n\ninterface TextTrack extends EventTarget {\n readonly activeCues: TextTrackCueList;\n readonly cues: TextTrackCueList;\n readonly inBandMetadataTrackDispatchType: string;\n readonly kind: string;\n readonly label: string;\n readonly language: string;\n mode: TextTrackMode | number;\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n onerror: ((this: TextTrack, ev: Event) => any) | null;\n onload: ((this: TextTrack, ev: Event) => any) | null;\n readonly readyState: number;\n addCue(cue: TextTrackCue): void;\n removeCue(cue: TextTrackCue): void;\n readonly DISABLED: number;\n readonly ERROR: number;\n readonly HIDDEN: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n readonly SHOWING: number;\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 readonly DISABLED: number;\n readonly ERROR: number;\n readonly HIDDEN: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n readonly SHOWING: number;\n};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\ninterface TextTrackCue extends EventTarget {\n endTime: number;\n id: string;\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n pauseOnExit: boolean;\n startTime: number;\n text: string;\n readonly track: TextTrack;\n getCueAsHTML(): DocumentFragment;\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(startTime: number, endTime: number, text: string): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n readonly length: number;\n getCueById(id: string): TextTrackCue;\n item(index: number): TextTrackCue;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n item(index: number): TextTrack;\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\ninterface TimeRanges {\n readonly length: number;\n end(index: number): number;\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\ninterface Touch {\n readonly clientX: number;\n readonly clientY: number;\n readonly identifier: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(): Touch;\n};\n\ninterface TouchEvent extends UIEvent {\n readonly altKey: boolean;\n readonly changedTouches: TouchList;\n readonly charCode: number;\n readonly ctrlKey: boolean;\n readonly keyCode: number;\n readonly metaKey: boolean;\n readonly shiftKey: boolean;\n readonly targetTouches: TouchList;\n readonly touches: TouchList;\n /** @deprecated */\n readonly which: number;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, touchEventInit?: TouchEventInit): TouchEvent;\n};\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\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\ninterface TrackEvent extends Event {\n readonly track: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransitionEvent extends Event {\n readonly elapsedTime: number;\n readonly propertyName: string;\n initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(typeArg: string, eventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\ninterface TreeWalker {\n currentNode: Node;\n /** @deprecated */\n readonly expandEntityReferences: boolean;\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\ninterface UIEvent extends Event {\n readonly detail: number;\n readonly view: Window;\n initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(typeArg: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: 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 toString(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string, base?: string | URL): URL;\n createObjectURL(object: any, options?: ObjectURLOptions): string;\n revokeObjectURL(url: string): void;\n};\n\ninterface URLSearchParams {\n /**\n * Appends a specified key/value pair as a new search parameter.\n */\n append(name: string, value: string): void;\n /**\n * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n */\n delete(name: string): void;\n /**\n * Returns the first value associated to the given search parameter.\n */\n get(name: string): string | null;\n /**\n * Returns all the values association with a given search parameter.\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n */\n has(name: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n */\n set(name: string, value: string): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new (init?: string | URLSearchParams): URLSearchParams;\n};\n\ninterface VRDisplay extends EventTarget {\n readonly capabilities: VRDisplayCapabilities;\n depthFar: number;\n depthNear: number;\n readonly displayId: number;\n readonly displayName: string;\n readonly isConnected: boolean;\n readonly isPresenting: boolean;\n readonly stageParameters: VRStageParameters | null;\n cancelAnimationFrame(handle: number): void;\n exitPresent(): Promise<void>;\n getEyeParameters(whichEye: string): VREyeParameters;\n getFrameData(frameData: VRFrameData): boolean;\n getLayers(): VRLayer[];\n /** @deprecated */\n getPose(): VRPose;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n requestPresent(layers: VRLayer[]): Promise<void>;\n resetPose(): void;\n submitFrame(pose?: VRPose): void;\n}\n\ndeclare var VRDisplay: {\n prototype: VRDisplay;\n new(): VRDisplay;\n};\n\ninterface VRDisplayCapabilities {\n readonly canPresent: boolean;\n readonly hasExternalDisplay: boolean;\n readonly hasOrientation: boolean;\n readonly hasPosition: boolean;\n readonly maxLayers: number;\n}\n\ndeclare var VRDisplayCapabilities: {\n prototype: VRDisplayCapabilities;\n new(): VRDisplayCapabilities;\n};\n\ninterface VRDisplayEvent extends Event {\n readonly display: VRDisplay;\n readonly reason: VRDisplayEventReason | null;\n}\n\ndeclare var VRDisplayEvent: {\n prototype: VRDisplayEvent;\n new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent;\n};\n\ninterface VREyeParameters {\n /** @deprecated */\n readonly fieldOfView: VRFieldOfView;\n readonly offset: Float32Array;\n readonly renderHeight: number;\n readonly renderWidth: number;\n}\n\ndeclare var VREyeParameters: {\n prototype: VREyeParameters;\n new(): VREyeParameters;\n};\n\ninterface VRFieldOfView {\n readonly downDegrees: number;\n readonly leftDegrees: number;\n readonly rightDegrees: number;\n readonly upDegrees: number;\n}\n\ndeclare var VRFieldOfView: {\n prototype: VRFieldOfView;\n new(): VRFieldOfView;\n};\n\ninterface VRFrameData {\n readonly leftProjectionMatrix: Float32Array;\n readonly leftViewMatrix: Float32Array;\n readonly pose: VRPose;\n readonly rightProjectionMatrix: Float32Array;\n readonly rightViewMatrix: Float32Array;\n readonly timestamp: number;\n}\n\ndeclare var VRFrameData: {\n prototype: VRFrameData;\n new(): VRFrameData;\n};\n\ninterface VRPose {\n readonly angularAcceleration: Float32Array | null;\n readonly angularVelocity: Float32Array | null;\n readonly linearAcceleration: Float32Array | null;\n readonly linearVelocity: Float32Array | null;\n readonly orientation: Float32Array | null;\n readonly position: Float32Array | null;\n readonly timestamp: number;\n}\n\ndeclare var VRPose: {\n prototype: VRPose;\n new(): VRPose;\n};\n\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\ninterface VideoPlaybackQuality {\n readonly corruptedVideoFrames: number;\n readonly creationTime: number;\n readonly droppedVideoFrames: number;\n readonly totalFrameDelay: number;\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VideoTrack {\n readonly id: string;\n kind: string;\n readonly label: string;\n language: string;\n selected: boolean;\n readonly sourceBuffer: SourceBuffer;\n}\n\ndeclare var VideoTrack: {\n prototype: VideoTrack;\n new(): VideoTrack;\n};\n\ninterface VideoTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface VideoTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: VideoTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;\n readonly selectedIndex: number;\n getTrackById(id: string): VideoTrack | null;\n item(index: number): VideoTrack;\n addEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: VideoTrack;\n}\n\ndeclare var VideoTrackList: {\n prototype: VideoTrackList;\n new(): VideoTrackList;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number;\n readonly RGB32F_EXT: number;\n readonly RGBA32F_EXT: number;\n readonly UNSIGNED_NORMALIZED_EXT: number;\n}\n\ninterface WEBGL_compressed_texture_astc {\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: number;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: number;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: number;\n getSupportedProfiles(): string[];\n}\n\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\n}\n\ndeclare var WEBGL_compressed_texture_s3tc: {\n prototype: WEBGL_compressed_texture_s3tc;\n new(): WEBGL_compressed_texture_s3tc;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\n};\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number;\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: number;\n}\n\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_RENDERER_WEBGL: number;\n readonly UNMASKED_VENDOR_WEBGL: number;\n}\n\ndeclare var WEBGL_debug_renderer_info: {\n prototype: WEBGL_debug_renderer_info;\n new(): WEBGL_debug_renderer_info;\n readonly UNMASKED_RENDERER_WEBGL: number;\n readonly UNMASKED_VENDOR_WEBGL: number;\n};\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: number;\n}\n\ndeclare var WEBGL_depth_texture: {\n prototype: WEBGL_depth_texture;\n new(): WEBGL_depth_texture;\n readonly UNSIGNED_INT_24_8_WEBGL: number;\n};\n\ninterface WEBGL_draw_buffers {\n readonly COLOR_ATTACHMENT0_WEBGL: number;\n readonly COLOR_ATTACHMENT10_WEBGL: number;\n readonly COLOR_ATTACHMENT11_WEBGL: number;\n readonly COLOR_ATTACHMENT12_WEBGL: number;\n readonly COLOR_ATTACHMENT13_WEBGL: number;\n readonly COLOR_ATTACHMENT14_WEBGL: number;\n readonly COLOR_ATTACHMENT15_WEBGL: number;\n readonly COLOR_ATTACHMENT1_WEBGL: number;\n readonly COLOR_ATTACHMENT2_WEBGL: number;\n readonly COLOR_ATTACHMENT3_WEBGL: number;\n readonly COLOR_ATTACHMENT4_WEBGL: number;\n readonly COLOR_ATTACHMENT5_WEBGL: number;\n readonly COLOR_ATTACHMENT6_WEBGL: number;\n readonly COLOR_ATTACHMENT7_WEBGL: number;\n readonly COLOR_ATTACHMENT8_WEBGL: number;\n readonly COLOR_ATTACHMENT9_WEBGL: number;\n readonly DRAW_BUFFER0_WEBGL: number;\n readonly DRAW_BUFFER10_WEBGL: number;\n readonly DRAW_BUFFER11_WEBGL: number;\n readonly DRAW_BUFFER12_WEBGL: number;\n readonly DRAW_BUFFER13_WEBGL: number;\n readonly DRAW_BUFFER14_WEBGL: number;\n readonly DRAW_BUFFER15_WEBGL: number;\n readonly DRAW_BUFFER1_WEBGL: number;\n readonly DRAW_BUFFER2_WEBGL: number;\n readonly DRAW_BUFFER3_WEBGL: number;\n readonly DRAW_BUFFER4_WEBGL: number;\n readonly DRAW_BUFFER5_WEBGL: number;\n readonly DRAW_BUFFER6_WEBGL: number;\n readonly DRAW_BUFFER7_WEBGL: number;\n readonly DRAW_BUFFER8_WEBGL: number;\n readonly DRAW_BUFFER9_WEBGL: number;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: number;\n readonly MAX_DRAW_BUFFERS_WEBGL: number;\n drawBuffersWEBGL(buffers: number[]): void;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\ninterface WaveShaperNode extends AudioNode {\n curve: Float32Array | null;\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(): WaveShaperNode;\n};\n\ninterface WebAuthentication {\n getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;\n makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;\n}\n\ndeclare var WebAuthentication: {\n prototype: WebAuthentication;\n new(): WebAuthentication;\n};\n\ninterface WebAuthnAssertion {\n readonly authenticatorData: ArrayBuffer;\n readonly clientData: ArrayBuffer;\n readonly credential: ScopedCredential;\n readonly signature: ArrayBuffer;\n}\n\ndeclare var WebAuthnAssertion: {\n prototype: WebAuthnAssertion;\n new(): WebAuthnAssertion;\n};\n\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: number;\n readonly type: number;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\ninterface WebGLBuffer extends WebGLObject {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(typeArg: string, eventInitDict?: WebGLContextEventInit): WebGLContextEvent;\n};\n\ninterface WebGLFramebuffer extends WebGLObject {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\ninterface WebGLObject {\n}\n\ndeclare var WebGLObject: {\n prototype: WebGLObject;\n new(): WebGLObject;\n};\n\ninterface WebGLProgram extends WebGLObject {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLRenderbuffer extends WebGLObject {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\ninterface WebGLRenderingContext {\n readonly canvas: HTMLCanvasElement;\n readonly drawingBufferHeight: number;\n readonly drawingBufferWidth: number;\n activeTexture(texture: number): void;\n attachShader(program: WebGLProgram | null, shader: WebGLShader | null): void;\n bindAttribLocation(program: WebGLProgram | null, index: number, name: string): void;\n bindBuffer(target: number, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: number, texture: WebGLTexture | null): void;\n blendColor(red: number, green: number, blue: number, alpha: number): void;\n blendEquation(mode: number): void;\n blendEquationSeparate(modeRGB: number, modeAlpha: number): void;\n blendFunc(sfactor: number, dfactor: number): void;\n blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void;\n bufferData(target: number, size: number | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, usage: number): void;\n bufferSubData(target: number, offset: number, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): void;\n checkFramebufferStatus(target: number): number;\n clear(mask: number): void;\n clearColor(red: number, green: number, blue: number, alpha: number): void;\n clearDepth(depth: number): void;\n clearStencil(s: number): void;\n colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void;\n compileShader(shader: WebGLShader | null): void;\n compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void;\n copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: number): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: number): 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: number): void;\n depthMask(flag: boolean): void;\n depthRange(zNear: number, zFar: number): void;\n detachShader(program: WebGLProgram | null, shader: WebGLShader | null): void;\n disable(cap: number): void;\n disableVertexAttribArray(index: number): void;\n drawArrays(mode: number, first: number, count: number): void;\n drawElements(mode: number, count: number, type: number, offset: number): void;\n enable(cap: number): void;\n enableVertexAttribArray(index: number): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture | null, level: number): void;\n frontFace(mode: number): void;\n generateMipmap(target: number): void;\n getActiveAttrib(program: WebGLProgram | null, index: number): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram | null, index: number): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram | null, name: string): number;\n getBufferParameter(target: number, pname: number): any;\n getContextAttributes(): WebGLContextAttributes;\n getError(): number;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | 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: "OES_vertex_array_object"): OES_vertex_array_object | 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_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(extensionName: string): any;\n getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any;\n getParameter(pname: number): any;\n getProgramInfoLog(program: WebGLProgram | null): string | null;\n getProgramParameter(program: WebGLProgram | null, pname: number): any;\n getRenderbufferParameter(target: number, pname: number): any;\n getShaderInfoLog(shader: WebGLShader | null): string | null;\n getShaderParameter(shader: WebGLShader | null, pname: number): any;\n getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader | null): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: number, pname: number): any;\n getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | null): any;\n getUniformLocation(program: WebGLProgram | null, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: number, pname: number): any;\n getVertexAttribOffset(index: number, pname: number): number;\n hint(target: number, mode: number): void;\n isBuffer(buffer: WebGLBuffer | null): boolean;\n isContextLost(): boolean;\n isEnabled(cap: number): boolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;\n isProgram(program: WebGLProgram | null): boolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;\n isShader(shader: WebGLShader | null): boolean;\n isTexture(texture: WebGLTexture | null): boolean;\n lineWidth(width: number): void;\n linkProgram(program: WebGLProgram | null): void;\n pixelStorei(pname: number, param: number | boolean): void;\n polygonOffset(factor: number, units: number): void;\n readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n renderbufferStorage(target: number, internalformat: number, width: number, height: number): void;\n sampleCoverage(value: number, invert: boolean): void;\n scissor(x: number, y: number, width: number, height: number): void;\n shaderSource(shader: WebGLShader | null, source: string): void;\n stencilFunc(func: number, ref: number, mask: number): void;\n stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void;\n stencilMask(mask: number): void;\n stencilMaskSeparate(face: number, mask: number): void;\n stencilOp(fail: number, zfail: number, zpass: number): void;\n stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void;\n texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView | null): void;\n texImage2D(target: number, level: number, internalformat: number, format: number, type: number, pixels: ImageBitmap | ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;\n texParameterf(target: number, pname: number, param: number): void;\n texParameteri(target: number, pname: number, param: number): void;\n texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels: ImageBitmap | ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;\n uniform1f(location: WebGLUniformLocation | null, x: number): void;\n uniform1fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform1i(location: WebGLUniformLocation | null, x: number): void;\n uniform1iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniform2f(location: WebGLUniformLocation | null, x: number, y: number): void;\n uniform2fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform2i(location: WebGLUniformLocation | null, x: number, y: number): void;\n uniform2iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;\n uniform3fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;\n uniform3iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;\n uniform4fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;\n uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;\n uniform4iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;\n uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;\n uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;\n uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram | null): void;\n vertexAttrib1f(indx: number, x: number): void;\n vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;\n vertexAttrib2f(indx: number, x: number, y: number): void;\n vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;\n vertexAttrib3f(indx: number, x: number, y: number, z: number): void;\n vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;\n vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): void;\n vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;\n vertexAttribPointer(indx: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void;\n viewport(x: number, y: number, width: number, height: number): void;\n readonly ACTIVE_ATTRIBUTES: number;\n readonly ACTIVE_TEXTURE: number;\n readonly ACTIVE_UNIFORMS: number;\n readonly ALIASED_LINE_WIDTH_RANGE: number;\n readonly ALIASED_POINT_SIZE_RANGE: number;\n readonly ALPHA: number;\n readonly ALPHA_BITS: number;\n readonly ALWAYS: number;\n readonly ARRAY_BUFFER: number;\n readonly ARRAY_BUFFER_BINDING: number;\n readonly ATTACHED_SHADERS: number;\n readonly BACK: number;\n readonly BLEND: number;\n readonly BLEND_COLOR: number;\n readonly BLEND_DST_ALPHA: number;\n readonly BLEND_DST_RGB: number;\n readonly BLEND_EQUATION: number;\n readonly BLEND_EQUATION_ALPHA: number;\n readonly BLEND_EQUATION_RGB: number;\n readonly BLEND_SRC_ALPHA: number;\n readonly BLEND_SRC_RGB: number;\n readonly BLUE_BITS: number;\n readonly BOOL: number;\n readonly BOOL_VEC2: number;\n readonly BOOL_VEC3: number;\n readonly BOOL_VEC4: number;\n readonly BROWSER_DEFAULT_WEBGL: number;\n readonly BUFFER_SIZE: number;\n readonly BUFFER_USAGE: number;\n readonly BYTE: number;\n readonly CCW: number;\n readonly CLAMP_TO_EDGE: number;\n readonly COLOR_ATTACHMENT0: number;\n readonly COLOR_BUFFER_BIT: number;\n readonly COLOR_CLEAR_VALUE: number;\n readonly COLOR_WRITEMASK: number;\n readonly COMPILE_STATUS: number;\n readonly COMPRESSED_TEXTURE_FORMATS: number;\n readonly CONSTANT_ALPHA: number;\n readonly CONSTANT_COLOR: number;\n readonly CONTEXT_LOST_WEBGL: number;\n readonly CULL_FACE: number;\n readonly CULL_FACE_MODE: number;\n readonly CURRENT_PROGRAM: number;\n readonly CURRENT_VERTEX_ATTRIB: number;\n readonly CW: number;\n readonly DECR: number;\n readonly DECR_WRAP: number;\n readonly DELETE_STATUS: number;\n readonly DEPTH_ATTACHMENT: number;\n readonly DEPTH_BITS: number;\n readonly DEPTH_BUFFER_BIT: number;\n readonly DEPTH_CLEAR_VALUE: number;\n readonly DEPTH_COMPONENT: number;\n readonly DEPTH_COMPONENT16: number;\n readonly DEPTH_FUNC: number;\n readonly DEPTH_RANGE: number;\n readonly DEPTH_STENCIL: number;\n readonly DEPTH_STENCIL_ATTACHMENT: number;\n readonly DEPTH_TEST: number;\n readonly DEPTH_WRITEMASK: number;\n readonly DITHER: number;\n readonly DONT_CARE: number;\n readonly DST_ALPHA: number;\n readonly DST_COLOR: number;\n readonly DYNAMIC_DRAW: number;\n readonly ELEMENT_ARRAY_BUFFER: number;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: number;\n readonly EQUAL: number;\n readonly FASTEST: number;\n readonly FLOAT: number;\n readonly FLOAT_MAT2: number;\n readonly FLOAT_MAT3: number;\n readonly FLOAT_MAT4: number;\n readonly FLOAT_VEC2: number;\n readonly FLOAT_VEC3: number;\n readonly FLOAT_VEC4: number;\n readonly FRAGMENT_SHADER: number;\n readonly FRAMEBUFFER: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;\n readonly FRAMEBUFFER_BINDING: number;\n readonly FRAMEBUFFER_COMPLETE: number;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;\n readonly FRAMEBUFFER_UNSUPPORTED: number;\n readonly FRONT: number;\n readonly FRONT_AND_BACK: number;\n readonly FRONT_FACE: number;\n readonly FUNC_ADD: number;\n readonly FUNC_REVERSE_SUBTRACT: number;\n readonly FUNC_SUBTRACT: number;\n readonly GENERATE_MIPMAP_HINT: number;\n readonly GEQUAL: number;\n readonly GREATER: number;\n readonly GREEN_BITS: number;\n readonly HIGH_FLOAT: number;\n readonly HIGH_INT: number;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: number;\n readonly INCR: number;\n readonly INCR_WRAP: number;\n readonly INT: number;\n readonly INT_VEC2: number;\n readonly INT_VEC3: number;\n readonly INT_VEC4: number;\n readonly INVALID_ENUM: number;\n readonly INVALID_FRAMEBUFFER_OPERATION: number;\n readonly INVALID_OPERATION: number;\n readonly INVALID_VALUE: number;\n readonly INVERT: number;\n readonly KEEP: number;\n readonly LEQUAL: number;\n readonly LESS: number;\n readonly LINEAR: number;\n readonly LINEAR_MIPMAP_LINEAR: number;\n readonly LINEAR_MIPMAP_NEAREST: number;\n readonly LINES: number;\n readonly LINE_LOOP: number;\n readonly LINE_STRIP: number;\n readonly LINE_WIDTH: number;\n readonly LINK_STATUS: number;\n readonly LOW_FLOAT: number;\n readonly LOW_INT: number;\n readonly LUMINANCE: number;\n readonly LUMINANCE_ALPHA: number;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;\n readonly MAX_RENDERBUFFER_SIZE: number;\n readonly MAX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_TEXTURE_SIZE: number;\n readonly MAX_VARYING_VECTORS: number;\n readonly MAX_VERTEX_ATTRIBS: number;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_VERTEX_UNIFORM_VECTORS: number;\n readonly MAX_VIEWPORT_DIMS: number;\n readonly MEDIUM_FLOAT: number;\n readonly MEDIUM_INT: number;\n readonly MIRRORED_REPEAT: number;\n readonly NEAREST: number;\n readonly NEAREST_MIPMAP_LINEAR: number;\n readonly NEAREST_MIPMAP_NEAREST: number;\n readonly NEVER: number;\n readonly NICEST: number;\n readonly NONE: number;\n readonly NOTEQUAL: number;\n readonly NO_ERROR: number;\n readonly ONE: number;\n readonly ONE_MINUS_CONSTANT_ALPHA: number;\n readonly ONE_MINUS_CONSTANT_COLOR: number;\n readonly ONE_MINUS_DST_ALPHA: number;\n readonly ONE_MINUS_DST_COLOR: number;\n readonly ONE_MINUS_SRC_ALPHA: number;\n readonly ONE_MINUS_SRC_COLOR: number;\n readonly OUT_OF_MEMORY: number;\n readonly PACK_ALIGNMENT: number;\n readonly POINTS: number;\n readonly POLYGON_OFFSET_FACTOR: number;\n readonly POLYGON_OFFSET_FILL: number;\n readonly POLYGON_OFFSET_UNITS: number;\n readonly RED_BITS: number;\n readonly RENDERBUFFER: number;\n readonly RENDERBUFFER_ALPHA_SIZE: number;\n readonly RENDERBUFFER_BINDING: number;\n readonly RENDERBUFFER_BLUE_SIZE: number;\n readonly RENDERBUFFER_DEPTH_SIZE: number;\n readonly RENDERBUFFER_GREEN_SIZE: number;\n readonly RENDERBUFFER_HEIGHT: number;\n readonly RENDERBUFFER_INTERNAL_FORMAT: number;\n readonly RENDERBUFFER_RED_SIZE: number;\n readonly RENDERBUFFER_STENCIL_SIZE: number;\n readonly RENDERBUFFER_WIDTH: number;\n readonly RENDERER: number;\n readonly REPEAT: number;\n readonly REPLACE: number;\n readonly RGB: number;\n readonly RGB565: number;\n readonly RGB5_A1: number;\n readonly RGBA: number;\n readonly RGBA4: number;\n readonly SAMPLER_2D: number;\n readonly SAMPLER_CUBE: number;\n readonly SAMPLES: number;\n readonly SAMPLE_ALPHA_TO_COVERAGE: number;\n readonly SAMPLE_BUFFERS: number;\n readonly SAMPLE_COVERAGE: number;\n readonly SAMPLE_COVERAGE_INVERT: number;\n readonly SAMPLE_COVERAGE_VALUE: number;\n readonly SCISSOR_BOX: number;\n readonly SCISSOR_TEST: number;\n readonly SHADER_TYPE: number;\n readonly SHADING_LANGUAGE_VERSION: number;\n readonly SHORT: number;\n readonly SRC_ALPHA: number;\n readonly SRC_ALPHA_SATURATE: number;\n readonly SRC_COLOR: number;\n readonly STATIC_DRAW: number;\n readonly STENCIL_ATTACHMENT: number;\n readonly STENCIL_BACK_FAIL: number;\n readonly STENCIL_BACK_FUNC: number;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: number;\n readonly STENCIL_BACK_REF: number;\n readonly STENCIL_BACK_VALUE_MASK: number;\n readonly STENCIL_BACK_WRITEMASK: number;\n readonly STENCIL_BITS: number;\n readonly STENCIL_BUFFER_BIT: number;\n readonly STENCIL_CLEAR_VALUE: number;\n readonly STENCIL_FAIL: number;\n readonly STENCIL_FUNC: number;\n readonly STENCIL_INDEX: number;\n readonly STENCIL_INDEX8: number;\n readonly STENCIL_PASS_DEPTH_FAIL: number;\n readonly STENCIL_PASS_DEPTH_PASS: number;\n readonly STENCIL_REF: number;\n readonly STENCIL_TEST: number;\n readonly STENCIL_VALUE_MASK: number;\n readonly STENCIL_WRITEMASK: number;\n readonly STREAM_DRAW: number;\n readonly SUBPIXEL_BITS: number;\n readonly TEXTURE: number;\n readonly TEXTURE0: number;\n readonly TEXTURE1: number;\n readonly TEXTURE10: number;\n readonly TEXTURE11: number;\n readonly TEXTURE12: number;\n readonly TEXTURE13: number;\n readonly TEXTURE14: number;\n readonly TEXTURE15: number;\n readonly TEXTURE16: number;\n readonly TEXTURE17: number;\n readonly TEXTURE18: number;\n readonly TEXTURE19: number;\n readonly TEXTURE2: number;\n readonly TEXTURE20: number;\n readonly TEXTURE21: number;\n readonly TEXTURE22: number;\n readonly TEXTURE23: number;\n readonly TEXTURE24: number;\n readonly TEXTURE25: number;\n readonly TEXTURE26: number;\n readonly TEXTURE27: number;\n readonly TEXTURE28: number;\n readonly TEXTURE29: number;\n readonly TEXTURE3: number;\n readonly TEXTURE30: number;\n readonly TEXTURE31: number;\n readonly TEXTURE4: number;\n readonly TEXTURE5: number;\n readonly TEXTURE6: number;\n readonly TEXTURE7: number;\n readonly TEXTURE8: number;\n readonly TEXTURE9: number;\n readonly TEXTURE_2D: number;\n readonly TEXTURE_BINDING_2D: number;\n readonly TEXTURE_BINDING_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;\n readonly TEXTURE_MAG_FILTER: number;\n readonly TEXTURE_MIN_FILTER: number;\n readonly TEXTURE_WRAP_S: number;\n readonly TEXTURE_WRAP_T: number;\n readonly TRIANGLES: number;\n readonly TRIANGLE_FAN: number;\n readonly TRIANGLE_STRIP: number;\n readonly UNPACK_ALIGNMENT: number;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;\n readonly UNPACK_FLIP_Y_WEBGL: number;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;\n readonly UNSIGNED_BYTE: number;\n readonly UNSIGNED_INT: number;\n readonly UNSIGNED_SHORT: number;\n readonly UNSIGNED_SHORT_4_4_4_4: number;\n readonly UNSIGNED_SHORT_5_5_5_1: number;\n readonly UNSIGNED_SHORT_5_6_5: number;\n readonly VALIDATE_STATUS: number;\n readonly VENDOR: number;\n readonly VERSION: number;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: number;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: number;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: number;\n readonly VERTEX_SHADER: number;\n readonly VIEWPORT: number;\n readonly ZERO: number;\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly ACTIVE_ATTRIBUTES: number;\n readonly ACTIVE_TEXTURE: number;\n readonly ACTIVE_UNIFORMS: number;\n readonly ALIASED_LINE_WIDTH_RANGE: number;\n readonly ALIASED_POINT_SIZE_RANGE: number;\n readonly ALPHA: number;\n readonly ALPHA_BITS: number;\n readonly ALWAYS: number;\n readonly ARRAY_BUFFER: number;\n readonly ARRAY_BUFFER_BINDING: number;\n readonly ATTACHED_SHADERS: number;\n readonly BACK: number;\n readonly BLEND: number;\n readonly BLEND_COLOR: number;\n readonly BLEND_DST_ALPHA: number;\n readonly BLEND_DST_RGB: number;\n readonly BLEND_EQUATION: number;\n readonly BLEND_EQUATION_ALPHA: number;\n readonly BLEND_EQUATION_RGB: number;\n readonly BLEND_SRC_ALPHA: number;\n readonly BLEND_SRC_RGB: number;\n readonly BLUE_BITS: number;\n readonly BOOL: number;\n readonly BOOL_VEC2: number;\n readonly BOOL_VEC3: number;\n readonly BOOL_VEC4: number;\n readonly BROWSER_DEFAULT_WEBGL: number;\n readonly BUFFER_SIZE: number;\n readonly BUFFER_USAGE: number;\n readonly BYTE: number;\n readonly CCW: number;\n readonly CLAMP_TO_EDGE: number;\n readonly COLOR_ATTACHMENT0: number;\n readonly COLOR_BUFFER_BIT: number;\n readonly COLOR_CLEAR_VALUE: number;\n readonly COLOR_WRITEMASK: number;\n readonly COMPILE_STATUS: number;\n readonly COMPRESSED_TEXTURE_FORMATS: number;\n readonly CONSTANT_ALPHA: number;\n readonly CONSTANT_COLOR: number;\n readonly CONTEXT_LOST_WEBGL: number;\n readonly CULL_FACE: number;\n readonly CULL_FACE_MODE: number;\n readonly CURRENT_PROGRAM: number;\n readonly CURRENT_VERTEX_ATTRIB: number;\n readonly CW: number;\n readonly DECR: number;\n readonly DECR_WRAP: number;\n readonly DELETE_STATUS: number;\n readonly DEPTH_ATTACHMENT: number;\n readonly DEPTH_BITS: number;\n readonly DEPTH_BUFFER_BIT: number;\n readonly DEPTH_CLEAR_VALUE: number;\n readonly DEPTH_COMPONENT: number;\n readonly DEPTH_COMPONENT16: number;\n readonly DEPTH_FUNC: number;\n readonly DEPTH_RANGE: number;\n readonly DEPTH_STENCIL: number;\n readonly DEPTH_STENCIL_ATTACHMENT: number;\n readonly DEPTH_TEST: number;\n readonly DEPTH_WRITEMASK: number;\n readonly DITHER: number;\n readonly DONT_CARE: number;\n readonly DST_ALPHA: number;\n readonly DST_COLOR: number;\n readonly DYNAMIC_DRAW: number;\n readonly ELEMENT_ARRAY_BUFFER: number;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: number;\n readonly EQUAL: number;\n readonly FASTEST: number;\n readonly FLOAT: number;\n readonly FLOAT_MAT2: number;\n readonly FLOAT_MAT3: number;\n readonly FLOAT_MAT4: number;\n readonly FLOAT_VEC2: number;\n readonly FLOAT_VEC3: number;\n readonly FLOAT_VEC4: number;\n readonly FRAGMENT_SHADER: number;\n readonly FRAMEBUFFER: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;\n readonly FRAMEBUFFER_BINDING: number;\n readonly FRAMEBUFFER_COMPLETE: number;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;\n readonly FRAMEBUFFER_UNSUPPORTED: number;\n readonly FRONT: number;\n readonly FRONT_AND_BACK: number;\n readonly FRONT_FACE: number;\n readonly FUNC_ADD: number;\n readonly FUNC_REVERSE_SUBTRACT: number;\n readonly FUNC_SUBTRACT: number;\n readonly GENERATE_MIPMAP_HINT: number;\n readonly GEQUAL: number;\n readonly GREATER: number;\n readonly GREEN_BITS: number;\n readonly HIGH_FLOAT: number;\n readonly HIGH_INT: number;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: number;\n readonly INCR: number;\n readonly INCR_WRAP: number;\n readonly INT: number;\n readonly INT_VEC2: number;\n readonly INT_VEC3: number;\n readonly INT_VEC4: number;\n readonly INVALID_ENUM: number;\n readonly INVALID_FRAMEBUFFER_OPERATION: number;\n readonly INVALID_OPERATION: number;\n readonly INVALID_VALUE: number;\n readonly INVERT: number;\n readonly KEEP: number;\n readonly LEQUAL: number;\n readonly LESS: number;\n readonly LINEAR: number;\n readonly LINEAR_MIPMAP_LINEAR: number;\n readonly LINEAR_MIPMAP_NEAREST: number;\n readonly LINES: number;\n readonly LINE_LOOP: number;\n readonly LINE_STRIP: number;\n readonly LINE_WIDTH: number;\n readonly LINK_STATUS: number;\n readonly LOW_FLOAT: number;\n readonly LOW_INT: number;\n readonly LUMINANCE: number;\n readonly LUMINANCE_ALPHA: number;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;\n readonly MAX_RENDERBUFFER_SIZE: number;\n readonly MAX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_TEXTURE_SIZE: number;\n readonly MAX_VARYING_VECTORS: number;\n readonly MAX_VERTEX_ATTRIBS: number;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;\n readonly MAX_VERTEX_UNIFORM_VECTORS: number;\n readonly MAX_VIEWPORT_DIMS: number;\n readonly MEDIUM_FLOAT: number;\n readonly MEDIUM_INT: number;\n readonly MIRRORED_REPEAT: number;\n readonly NEAREST: number;\n readonly NEAREST_MIPMAP_LINEAR: number;\n readonly NEAREST_MIPMAP_NEAREST: number;\n readonly NEVER: number;\n readonly NICEST: number;\n readonly NONE: number;\n readonly NOTEQUAL: number;\n readonly NO_ERROR: number;\n readonly ONE: number;\n readonly ONE_MINUS_CONSTANT_ALPHA: number;\n readonly ONE_MINUS_CONSTANT_COLOR: number;\n readonly ONE_MINUS_DST_ALPHA: number;\n readonly ONE_MINUS_DST_COLOR: number;\n readonly ONE_MINUS_SRC_ALPHA: number;\n readonly ONE_MINUS_SRC_COLOR: number;\n readonly OUT_OF_MEMORY: number;\n readonly PACK_ALIGNMENT: number;\n readonly POINTS: number;\n readonly POLYGON_OFFSET_FACTOR: number;\n readonly POLYGON_OFFSET_FILL: number;\n readonly POLYGON_OFFSET_UNITS: number;\n readonly RED_BITS: number;\n readonly RENDERBUFFER: number;\n readonly RENDERBUFFER_ALPHA_SIZE: number;\n readonly RENDERBUFFER_BINDING: number;\n readonly RENDERBUFFER_BLUE_SIZE: number;\n readonly RENDERBUFFER_DEPTH_SIZE: number;\n readonly RENDERBUFFER_GREEN_SIZE: number;\n readonly RENDERBUFFER_HEIGHT: number;\n readonly RENDERBUFFER_INTERNAL_FORMAT: number;\n readonly RENDERBUFFER_RED_SIZE: number;\n readonly RENDERBUFFER_STENCIL_SIZE: number;\n readonly RENDERBUFFER_WIDTH: number;\n readonly RENDERER: number;\n readonly REPEAT: number;\n readonly REPLACE: number;\n readonly RGB: number;\n readonly RGB565: number;\n readonly RGB5_A1: number;\n readonly RGBA: number;\n readonly RGBA4: number;\n readonly SAMPLER_2D: number;\n readonly SAMPLER_CUBE: number;\n readonly SAMPLES: number;\n readonly SAMPLE_ALPHA_TO_COVERAGE: number;\n readonly SAMPLE_BUFFERS: number;\n readonly SAMPLE_COVERAGE: number;\n readonly SAMPLE_COVERAGE_INVERT: number;\n readonly SAMPLE_COVERAGE_VALUE: number;\n readonly SCISSOR_BOX: number;\n readonly SCISSOR_TEST: number;\n readonly SHADER_TYPE: number;\n readonly SHADING_LANGUAGE_VERSION: number;\n readonly SHORT: number;\n readonly SRC_ALPHA: number;\n readonly SRC_ALPHA_SATURATE: number;\n readonly SRC_COLOR: number;\n readonly STATIC_DRAW: number;\n readonly STENCIL_ATTACHMENT: number;\n readonly STENCIL_BACK_FAIL: number;\n readonly STENCIL_BACK_FUNC: number;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: number;\n readonly STENCIL_BACK_REF: number;\n readonly STENCIL_BACK_VALUE_MASK: number;\n readonly STENCIL_BACK_WRITEMASK: number;\n readonly STENCIL_BITS: number;\n readonly STENCIL_BUFFER_BIT: number;\n readonly STENCIL_CLEAR_VALUE: number;\n readonly STENCIL_FAIL: number;\n readonly STENCIL_FUNC: number;\n readonly STENCIL_INDEX: number;\n readonly STENCIL_INDEX8: number;\n readonly STENCIL_PASS_DEPTH_FAIL: number;\n readonly STENCIL_PASS_DEPTH_PASS: number;\n readonly STENCIL_REF: number;\n readonly STENCIL_TEST: number;\n readonly STENCIL_VALUE_MASK: number;\n readonly STENCIL_WRITEMASK: number;\n readonly STREAM_DRAW: number;\n readonly SUBPIXEL_BITS: number;\n readonly TEXTURE: number;\n readonly TEXTURE0: number;\n readonly TEXTURE1: number;\n readonly TEXTURE10: number;\n readonly TEXTURE11: number;\n readonly TEXTURE12: number;\n readonly TEXTURE13: number;\n readonly TEXTURE14: number;\n readonly TEXTURE15: number;\n readonly TEXTURE16: number;\n readonly TEXTURE17: number;\n readonly TEXTURE18: number;\n readonly TEXTURE19: number;\n readonly TEXTURE2: number;\n readonly TEXTURE20: number;\n readonly TEXTURE21: number;\n readonly TEXTURE22: number;\n readonly TEXTURE23: number;\n readonly TEXTURE24: number;\n readonly TEXTURE25: number;\n readonly TEXTURE26: number;\n readonly TEXTURE27: number;\n readonly TEXTURE28: number;\n readonly TEXTURE29: number;\n readonly TEXTURE3: number;\n readonly TEXTURE30: number;\n readonly TEXTURE31: number;\n readonly TEXTURE4: number;\n readonly TEXTURE5: number;\n readonly TEXTURE6: number;\n readonly TEXTURE7: number;\n readonly TEXTURE8: number;\n readonly TEXTURE9: number;\n readonly TEXTURE_2D: number;\n readonly TEXTURE_BINDING_2D: number;\n readonly TEXTURE_BINDING_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;\n readonly TEXTURE_MAG_FILTER: number;\n readonly TEXTURE_MIN_FILTER: number;\n readonly TEXTURE_WRAP_S: number;\n readonly TEXTURE_WRAP_T: number;\n readonly TRIANGLES: number;\n readonly TRIANGLE_FAN: number;\n readonly TRIANGLE_STRIP: number;\n readonly UNPACK_ALIGNMENT: number;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;\n readonly UNPACK_FLIP_Y_WEBGL: number;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;\n readonly UNSIGNED_BYTE: number;\n readonly UNSIGNED_INT: number;\n readonly UNSIGNED_SHORT: number;\n readonly UNSIGNED_SHORT_4_4_4_4: number;\n readonly UNSIGNED_SHORT_5_5_5_1: number;\n readonly UNSIGNED_SHORT_5_6_5: number;\n readonly VALIDATE_STATUS: number;\n readonly VENDOR: number;\n readonly VERSION: number;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: number;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: number;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: number;\n readonly VERTEX_SHADER: number;\n readonly VIEWPORT: number;\n readonly ZERO: number;\n};\n\ninterface WebGLShader extends WebGLObject {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\ninterface WebGLShaderPrecisionFormat {\n readonly precision: number;\n readonly rangeMax: number;\n readonly rangeMin: number;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLTexture extends WebGLObject {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebKitCSSMatrix {\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 inverse(): WebKitCSSMatrix;\n multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;\n rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;\n rotateAxisAngle(x: number, y: number, z: number, angle: number): WebKitCSSMatrix;\n scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;\n setMatrixValue(value: string): void;\n skewX(angle: number): WebKitCSSMatrix;\n skewY(angle: number): WebKitCSSMatrix;\n toString(): string;\n translate(x: number, y: number, z?: number): WebKitCSSMatrix;\n}\n\ndeclare var WebKitCSSMatrix: {\n prototype: WebKitCSSMatrix;\n new(text?: string): WebKitCSSMatrix;\n};\n\ninterface WebKitDirectoryEntry extends WebKitEntry {\n createReader(): WebKitDirectoryReader;\n}\n\ndeclare var WebKitDirectoryEntry: {\n prototype: WebKitDirectoryEntry;\n new(): WebKitDirectoryEntry;\n};\n\ninterface WebKitDirectoryReader {\n readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void;\n}\n\ndeclare var WebKitDirectoryReader: {\n prototype: WebKitDirectoryReader;\n new(): WebKitDirectoryReader;\n};\n\ninterface WebKitEntry {\n readonly filesystem: WebKitFileSystem;\n readonly fullPath: string;\n readonly isDirectory: boolean;\n readonly isFile: boolean;\n readonly name: string;\n}\n\ndeclare var WebKitEntry: {\n prototype: WebKitEntry;\n new(): WebKitEntry;\n};\n\ninterface WebKitFileEntry extends WebKitEntry {\n file(successCallback: WebKitFileCallback, errorCallback?: WebKitErrorCallback): void;\n}\n\ndeclare var WebKitFileEntry: {\n prototype: WebKitFileEntry;\n new(): WebKitFileEntry;\n};\n\ninterface WebKitFileSystem {\n readonly name: string;\n readonly root: WebKitDirectoryEntry;\n}\n\ndeclare var WebKitFileSystem: {\n prototype: WebKitFileSystem;\n new(): WebKitFileSystem;\n};\n\ninterface WebKitPoint {\n x: number;\n y: number;\n}\n\ndeclare var WebKitPoint: {\n prototype: WebKitPoint;\n new(x?: number, y?: number): WebKitPoint;\n};\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface WebSocket extends EventTarget {\n binaryType: BinaryType;\n readonly bufferedAmount: number;\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 readonly protocol: string;\n readonly readyState: number;\n readonly url: string;\n close(code?: number, reason?: string): void;\n send(data: string | ArrayBuffer | 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, protocols?: string | string[]): WebSocket;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\ninterface WheelEvent extends MouseEvent {\n readonly deltaMode: number;\n readonly deltaX: number;\n readonly deltaY: number;\n readonly deltaZ: number;\n readonly wheelDelta: number;\n readonly wheelDeltaX: number;\n readonly wheelDeltaY: number;\n getCurrentPoint(element: Element): void;\n initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;\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(typeArg: 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 {\n "abort": UIEvent;\n "beforeunload": BeforeUnloadEvent;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "compassneedscalibration": Event;\n "contextmenu": PointerEvent;\n "dblclick": MouseEvent;\n "devicelight": DeviceLightEvent;\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\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 "hashchange": HashChangeEvent;\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 "message": MessageEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "mousewheel": WheelEvent;\n "MSGestureChange": Event;\n "MSGestureDoubleTap": Event;\n "MSGestureEnd": Event;\n "MSGestureHold": Event;\n "MSGestureStart": Event;\n "MSGestureTap": Event;\n "MSInertiaStart": Event;\n "MSPointerCancel": Event;\n "MSPointerDown": Event;\n "MSPointerEnter": Event;\n "MSPointerLeave": Event;\n "MSPointerMove": Event;\n "MSPointerOut": Event;\n "MSPointerOver": Event;\n "MSPointerUp": Event;\n "offline": Event;\n "online": Event;\n "orientationchange": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "popstate": PopStateEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "readystatechange": ProgressEvent;\n "reset": Event;\n "resize": UIEvent;\n "scroll": UIEvent;\n "seeked": Event;\n "seeking": Event;\n "select": UIEvent;\n "stalled": Event;\n "storage": StorageEvent;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "touchcancel": Event;\n "touchend": Event;\n "touchmove": Event;\n "touchstart": Event;\n "unload": Event;\n "volumechange": Event;\n "vrdisplayactivate": Event;\n "vrdisplayblur": Event;\n "vrdisplayconnect": Event;\n "vrdisplaydeactivate": Event;\n "vrdisplaydisconnect": Event;\n "vrdisplayfocus": Event;\n "vrdisplaypointerrestricted": Event;\n "vrdisplaypointerunrestricted": Event;\n "vrdisplaypresentchange": Event;\n "waiting": Event;\n}\n\ninterface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch {\n Blob: typeof Blob;\n URL: typeof URL;\n URLSearchParams: typeof URLSearchParams;\n readonly applicationCache: ApplicationCache;\n readonly caches: CacheStorage;\n readonly clientInformation: Navigator;\n readonly closed: boolean;\n readonly crypto: Crypto;\n customElements: CustomElementRegistry;\n defaultStatus: string;\n readonly devicePixelRatio: number;\n readonly doNotTrack: string;\n readonly document: Document;\n event: Event | undefined;\n readonly external: External;\n readonly frameElement: Element;\n readonly frames: Window;\n readonly history: History;\n readonly innerHeight: number;\n readonly innerWidth: number;\n readonly isSecureContext: boolean;\n readonly length: number;\n location: Location;\n readonly locationbar: BarProp;\n readonly menubar: BarProp;\n readonly msContentScript: ExtensionScriptApis;\n readonly msCredentials: MSCredentials;\n name: string;\n readonly navigator: Navigator;\n offscreenBuffering: string | boolean;\n onabort: ((this: Window, ev: UIEvent) => any) | null;\n onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\n onblur: ((this: Window, ev: FocusEvent) => any) | null;\n oncanplay: ((this: Window, ev: Event) => any) | null;\n oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n onchange: ((this: Window, ev: Event) => any) | null;\n onclick: ((this: Window, ev: MouseEvent) => any) | null;\n oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;\n oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;\n ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n ondrag: ((this: Window, ev: DragEvent) => any) | null;\n ondragend: ((this: Window, ev: DragEvent) => any) | null;\n ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n ondragover: ((this: Window, ev: DragEvent) => any) | null;\n ondragstart: ((this: Window, ev: DragEvent) => any) | null;\n ondrop: ((this: Window, ev: DragEvent) => any) | null;\n ondurationchange: ((this: Window, ev: Event) => any) | null;\n onemptied: ((this: Window, ev: Event) => any) | null;\n onended: ((this: Window, ev: Event) => any) | null;\n onerror: ErrorEventHandler;\n onfocus: ((this: Window, ev: FocusEvent) => any) | null;\n onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\n oninput: ((this: Window, ev: Event) => any) | null;\n oninvalid: ((this: Window, ev: Event) => any) | null;\n onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n onload: ((this: Window, ev: Event) => any) | null;\n onloadeddata: ((this: Window, ev: Event) => any) | null;\n onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n onloadstart: ((this: Window, ev: Event) => any) | null;\n onmessage: ((this: Window, ev: MessageEvent) => any) | null;\n onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n onmousewheel: ((this: Window, ev: WheelEvent) => any) | null;\n onmsgesturechange: ((this: Window, ev: Event) => any) | null;\n onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;\n onmsgestureend: ((this: Window, ev: Event) => any) | null;\n onmsgesturehold: ((this: Window, ev: Event) => any) | null;\n onmsgesturestart: ((this: Window, ev: Event) => any) | null;\n onmsgesturetap: ((this: Window, ev: Event) => any) | null;\n onmsinertiastart: ((this: Window, ev: Event) => any) | null;\n onmspointercancel: ((this: Window, ev: Event) => any) | null;\n onmspointerdown: ((this: Window, ev: Event) => any) | null;\n onmspointerenter: ((this: Window, ev: Event) => any) | null;\n onmspointerleave: ((this: Window, ev: Event) => any) | null;\n onmspointermove: ((this: Window, ev: Event) => any) | null;\n onmspointerout: ((this: Window, ev: Event) => any) | null;\n onmspointerover: ((this: Window, ev: Event) => any) | null;\n onmspointerup: ((this: Window, ev: Event) => any) | null;\n onoffline: ((this: Window, ev: Event) => any) | null;\n ononline: ((this: Window, ev: Event) => any) | null;\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\n onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\n onpause: ((this: Window, ev: Event) => any) | null;\n onplay: ((this: Window, ev: Event) => any) | null;\n onplaying: ((this: Window, ev: Event) => any) | null;\n onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\n onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n onratechange: ((this: Window, ev: Event) => any) | null;\n onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null;\n onreset: ((this: Window, ev: Event) => any) | null;\n onresize: ((this: Window, ev: UIEvent) => any) | null;\n onscroll: ((this: Window, ev: UIEvent) => any) | null;\n onseeked: ((this: Window, ev: Event) => any) | null;\n onseeking: ((this: Window, ev: Event) => any) | null;\n onselect: ((this: Window, ev: UIEvent) => any) | null;\n onstalled: ((this: Window, ev: Event) => any) | null;\n onstorage: ((this: Window, ev: StorageEvent) => any) | null;\n onsubmit: ((this: Window, ev: Event) => any) | null;\n onsuspend: ((this: Window, ev: Event) => any) | null;\n ontimeupdate: ((this: Window, ev: Event) => any) | null;\n ontouchcancel: (ev: TouchEvent) => any;\n ontouchend: (ev: TouchEvent) => any;\n ontouchmove: (ev: TouchEvent) => any;\n ontouchstart: (ev: TouchEvent) => any;\n onunload: ((this: Window, ev: Event) => any) | null;\n onvolumechange: ((this: Window, ev: Event) => any) | null;\n onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;\n onvrdisplayblur: ((this: Window, ev: Event) => any) | null;\n onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;\n onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;\n onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;\n onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;\n onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;\n onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;\n onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;\n onwaiting: ((this: Window, ev: Event) => any) | null;\n readonly opener: any;\n readonly orientation: string | number;\n readonly outerHeight: number;\n readonly outerWidth: number;\n readonly pageXOffset: number;\n readonly pageYOffset: number;\n readonly parent: Window;\n readonly performance: Performance;\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 readonly scrollbars: BarProp;\n readonly self: Window;\n readonly speechSynthesis: SpeechSynthesis;\n status: string;\n readonly statusbar: BarProp;\n readonly styleMedia: StyleMedia;\n readonly toolbar: BarProp;\n readonly top: Window;\n readonly window: Window;\n alert(message?: any): void;\n blur(): void;\n cancelAnimationFrame(handle: number): void;\n captureEvents(): void;\n close(): void;\n confirm(message?: string): boolean;\n createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;\n focus(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;\n getSelection(): Selection;\n matchMedia(mediaQuery: string): MediaQueryList;\n moveBy(x?: number, y?: number): void;\n moveTo(x?: number, y?: number): void;\n msWriteProfilerMark(profilerMarkName: string): void;\n open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;\n postMessage(message: any, targetOrigin: string, transfer?: any[]): void;\n prompt(message?: string, _default?: string): string | null;\n releaseEvents(): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n resizeBy(x?: number, y?: number): void;\n resizeTo(x?: number, y?: 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 stop(): void;\n webkitCancelAnimationFrame(handle: number): void;\n webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;\n webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;\n webkitRequestAnimationFrame(callback: FrameRequestCallback): number;\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}\n\ndeclare var Window: {\n prototype: Window;\n new(): Window;\n};\n\ninterface WindowBase64 {\n atob(encodedString: string): string;\n btoa(rawString: string): string;\n}\n\ninterface WindowConsole {\n readonly console: Console;\n}\n\ninterface WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "hashchange": HashChangeEvent;\n "message": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "popstate": PopStateEvent;\n "storage": StorageEvent;\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 onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n onmessage: ((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 onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => 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 WindowSessionStorage {\n readonly sessionStorage: Storage;\n}\n\ninterface WindowTimers extends WindowTimersExtension {\n clearInterval(handle?: number): void;\n clearTimeout(handle?: number): void;\n setInterval(handler: (...args: any[]) => void, timeout: number): number;\n setInterval(handler: any, timeout?: any, ...args: any[]): number;\n setTimeout(handler: (...args: any[]) => void, timeout: number): number;\n setTimeout(handler: any, timeout?: any, ...args: any[]): number;\n}\n\ninterface WindowTimersExtension {\n clearImmediate(handle: number): void;\n setImmediate(handler: (...args: any[]) => void): number;\n setImmediate(handler: any, ...args: any[]): number;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n}\n\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n /** @deprecated */\n postMessage(message: any, transfer?: any[]): void;\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(stringUrl: string): Worker;\n};\n\ninterface WritableStream {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n getWriter(): WritableStreamDefaultWriter;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream;\n};\n\ninterface WritableStreamDefaultController {\n error(error?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\ninterface WritableStreamDefaultWriter {\n readonly closed: Promise<void>;\n readonly desiredSize: number;\n readonly ready: Promise<void>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: any): Promise<any>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new(): WritableStreamDefaultWriter;\n};\n\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\ninterface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {\n msCaching: string;\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n readonly readyState: number;\n readonly response: any;\n readonly responseText: string;\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n readonly responseXML: Document | null;\n readonly status: number;\n readonly statusText: string;\n timeout: number;\n readonly upload: XMLHttpRequestUpload;\n withCredentials: boolean;\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(header: string): string | null;\n msCachingEnabled(): boolean;\n open(method: string, url: string, async?: boolean, user?: string | null, password?: string | null): void;\n overrideMimeType(mime: string): void;\n send(data?: any): void;\n setRequestHeader(header: 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": Event;\n "error": ErrorEvent;\n "load": Event;\n "loadend": ProgressEvent;\n "loadstart": Event;\n "progress": ProgressEvent;\n "timeout": ProgressEvent;\n}\n\ninterface XMLHttpRequestEventTarget {\n onabort: ((this: XMLHttpRequest, ev: Event) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ErrorEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: Event) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: Event) => 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\ninterface XMLHttpRequestUpload extends EventTarget, 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 XMLSerializer {\n serializeToString(target: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\ninterface XPathEvaluator {\n createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;\n createNSResolver(nodeResolver?: Node): XPathNSResolver;\n evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\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\ninterface XPathNSResolver {\n lookupNamespaceURI(prefix: string): string;\n}\n\ndeclare var XPathNSResolver: {\n prototype: XPathNSResolver;\n new(): XPathNSResolver;\n};\n\ninterface XPathResult {\n readonly booleanValue: boolean;\n readonly invalidIteratorState: boolean;\n readonly numberValue: number;\n readonly resultType: number;\n readonly singleNodeValue: Node;\n readonly snapshotLength: number;\n readonly stringValue: string;\n iterateNext(): Node;\n snapshotItem(index: number): Node;\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\ninterface XSLTProcessor {\n clearParameters(): void;\n getParameter(namespaceURI: string, localName: string): any;\n importStylesheet(style: Node): void;\n removeParameter(namespaceURI: string, localName: string): void;\n reset(): void;\n setParameter(namespaceURI: string, localName: string, value: any): void;\n transformToDocument(source: Node): Document;\n transformToFragment(source: Node, document: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\ninterface webkitRTCPeerConnection extends RTCPeerConnection {\n addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, 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: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var webkitRTCPeerConnection: {\n prototype: webkitRTCPeerConnection;\n new(configuration: RTCConfiguration): webkitRTCPeerConnection;\n};\n\ndeclare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorEventHandler {\n (event: Event | string, source?: string, fileno?: number, columnNumber?: number, error?: Error): void;\n}\n\ninterface EventHandlerNonNull {\n (event: Event): any;\n}\n\ninterface ForEachCallback {\n (keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void;\n}\n\ninterface FrameRequestCallback {\n (time: number): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface MSLaunchUriCallback {\n (): void;\n}\n\ninterface MediaQueryListListener {\n (mql: MediaQueryList): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NavigatorUserMediaErrorCallback {\n (error: MediaStreamError): void;\n}\n\ninterface NavigatorUserMediaSuccessCallback {\n (stream: MediaStream): void;\n}\n\ninterface NotificationPermissionCallback {\n (permission: NotificationPermission): void;\n}\n\ninterface PositionCallback {\n (position: Position): void;\n}\n\ninterface PositionErrorCallback {\n (error: PositionError): void;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n (error: DOMError): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n (sdp: RTCSessionDescription): void;\n}\n\ninterface RTCStatsCallback {\n (report: RTCStatsReport): void;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface WritableStreamChunkCallback {\n (chunk: any, controller: WritableStreamDefaultController): void;\n}\n\ninterface WritableStreamDefaultControllerCallback {\n (controller: WritableStreamDefaultController): void;\n}\n\ninterface WritableStreamErrorCallback {\n (reason: string): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "acronym": HTMLElement;\n "address": HTMLElement;\n "applet": HTMLAppletElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\n "basefont": HTMLBaseFontElement;\n "bdo": HTMLElement;\n "big": HTMLElement;\n "blockquote": HTMLQuoteElement;\n "body": HTMLBodyElement;\n "br": HTMLBRElement;\n "button": HTMLButtonElement;\n "canvas": HTMLCanvasElement;\n "caption": HTMLTableCaptionElement;\n "center": HTMLElement;\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 "dfn": HTMLElement;\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 "isindex": HTMLUnknownElement;\n "kbd": HTMLElement;\n "keygen": HTMLElement;\n "label": HTMLLabelElement;\n "legend": HTMLLegendElement;\n "li": HTMLLIElement;\n "link": HTMLLinkElement;\n "listing": HTMLPreElement;\n "map": HTMLMapElement;\n "mark": HTMLElement;\n "marquee": HTMLMarqueeElement;\n "menu": HTMLMenuElement;\n "meta": HTMLMetaElement;\n "meter": HTMLMeterElement;\n "nav": HTMLElement;\n "nextid": HTMLUnknownElement;\n "nobr": HTMLElement;\n "noframes": 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 "plaintext": HTMLElement;\n "pre": HTMLPreElement;\n "progress": HTMLProgressElement;\n "q": HTMLQuoteElement;\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 "strike": HTMLElement;\n "strong": HTMLElement;\n "style": HTMLStyleElement;\n "sub": HTMLElement;\n "sup": HTMLElement;\n "table": HTMLTableElement;\n "tbody": HTMLTableSectionElement;\n "td": HTMLTableDataCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableHeaderCellElement;\n "thead": HTMLTableSectionElement;\n "time": HTMLTimeElement;\n "title": HTMLTitleElement;\n "tr": HTMLTableRowElement;\n "track": HTMLTrackElement;\n "tt": HTMLElement;\n "u": HTMLElement;\n "ul": HTMLUListElement;\n "var": HTMLElement;\n "video": HTMLVideoElement;\n "wbr": HTMLElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\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 "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 "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialgradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "stop": SVGStopElement;\n "svg": SVGSVGElement;\n "switch": SVGSwitchElement;\n "symbol": SVGSymbolElement;\n "text": SVGTextElement;\n "textpath": SVGTextPathElement;\n "tspan": SVGTSpanElement;\n "use": SVGUseElement;\n "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ninterface ElementTagNameMap extends HTMLElementTagNameMap, SVGElementTagNameMap { }\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};\ndeclare var Blob: typeof Blob;\ndeclare var URL: typeof URL;\ndeclare var URLSearchParams: typeof URLSearchParams;\ndeclare var applicationCache: ApplicationCache;\ndeclare var caches: CacheStorage;\ndeclare var clientInformation: Navigator;\ndeclare var closed: boolean;\ndeclare var crypto: Crypto;\ndeclare var customElements: CustomElementRegistry;\ndeclare var defaultStatus: string;\ndeclare var devicePixelRatio: number;\ndeclare var doNotTrack: string;\ndeclare var document: Document;\ndeclare var event: Event | undefined;\ndeclare var external: External;\ndeclare var frameElement: Element;\ndeclare var frames: Window;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var isSecureContext: boolean;\ndeclare var length: number;\ndeclare var location: Location;\ndeclare var locationbar: BarProp;\ndeclare var menubar: BarProp;\ndeclare var msContentScript: ExtensionScriptApis;\ndeclare var msCredentials: MSCredentials;\ndeclare const name: never;\ndeclare var navigator: Navigator;\ndeclare var offscreenBuffering: string | boolean;\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;\ndeclare var oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\ndeclare var onerror: ErrorEventHandler;\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\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;\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmousewheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgestureend: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturehold: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturestart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturetap: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsinertiastart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointercancel: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerdown: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerenter: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerleave: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointermove: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerout: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerover: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerup: ((this: Window, ev: Event) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onorientationchange: ((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 onpause: ((this: Window, ev: Event) => any) | null;\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null;\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onscroll: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\ndeclare var onselect: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: Event) => any) | null;\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: (ev: TouchEvent) => any;\ndeclare var ontouchend: (ev: TouchEvent) => any;\ndeclare var ontouchmove: (ev: TouchEvent) => any;\ndeclare var ontouchstart: (ev: TouchEvent) => any;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\ndeclare var orientation: string | number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\ndeclare var pageXOffset: number;\ndeclare var pageYOffset: number;\ndeclare var parent: Window;\ndeclare var performance: Performance;\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;\ndeclare var scrollbars: BarProp;\ndeclare var self: Window;\ndeclare var speechSynthesis: SpeechSynthesis;\ndeclare var status: string;\ndeclare var statusbar: BarProp;\ndeclare var styleMedia: StyleMedia;\ndeclare var toolbar: BarProp;\ndeclare var top: Window;\ndeclare var window: Window;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function captureEvents(): void;\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\ndeclare function createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;\ndeclare function getSelection(): Selection;\ndeclare function matchMedia(mediaQuery: string): MediaQueryList;\ndeclare function moveBy(x?: number, y?: number): void;\ndeclare function moveTo(x?: number, y?: number): void;\ndeclare function msWriteProfilerMark(profilerMarkName: string): void;\ndeclare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: any[]): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\ndeclare function releaseEvents(): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function resizeBy(x?: number, y?: number): void;\ndeclare function resizeTo(x?: number, y?: 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;\ndeclare function stop(): void;\ndeclare function webkitCancelAnimationFrame(handle: number): void;\ndeclare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;\ndeclare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;\ndeclare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function toString(): string;\ndeclare function dispatchEvent(evt: Event): boolean;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function setInterval(handler: (...args: any[]) => void, timeout: number): number;\ndeclare function setInterval(handler: any, timeout?: any, ...args: any[]): number;\ndeclare function setTimeout(handler: (...args: any[]) => void, timeout: number): number;\ndeclare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;\ndeclare function clearImmediate(handle: number): void;\ndeclare function setImmediate(handler: (...args: any[]) => void): number;\ndeclare function setImmediate(handler: any, ...args: any[]): number;\ndeclare var sessionStorage: Storage;\ndeclare var localStorage: Storage;\ndeclare var console: Console;\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;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var indexedDB: IDBFactory;\ndeclare function atob(encodedString: string): string;\ndeclare function btoa(rawString: string): string;\ndeclare function fetch(input?: Request | string, init?: RequestInit): Promise<Response>;\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 ScrollBehavior = "auto" | "instant" | "smooth";\ntype ScrollLogicalPosition = "start" | "center" | "end" | "nearest";\ntype MouseWheelEvent = WheelEvent;\ntype ScrollRestoration = "auto" | "manual";\ntype FormDataEntryValue = string | File;\ntype InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";\ntype HeadersInit = Headers | string[][] | { [key: string]: string };\ntype OrientationLockType = "any" | "natural" | "portrait" | "landscape" | "portrait-primary" | "portrait-secondary" | "landscape-primary"| "landscape-secondary";\ntype IDBValidKey = number | string | Date | IDBArrayKey;\ntype AlgorithmIdentifier = string | Algorithm;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype AAGUID = string;\ntype BodyInit = any;\ntype ByteString = string;\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainLong = number | ConstrainLongRange;\ntype CryptoOperationData = ArrayBufferView;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLbyte = number;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLintptr = number;\ntype GLshort = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLubyte = number;\ntype GLuint = number;\ntype GLushort = number;\ntype IDBKeyPath = string;\ntype MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;\ntype MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;\ntype MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;\ntype RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;\ntype RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;\ntype RequestInfo = Request | string;\ntype USVString = string;\ntype payloadtype = number;\ntype BufferSource = ArrayBuffer | ArrayBufferView;\ntype ClientTypes = "window" | "worker" | "sharedworker" | "all";\ntype AppendMode = "segments" | "sequence";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "suspended" | "running" | "closed";\ntype BinaryType = "blob" | "arraybuffer";\ntype BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasFillRule = "nonzero" | "evenodd";\ntype ChannelCountMode = "max" | "clamped-max" | "explicit";\ntype ChannelInterpretation = "speakers" | "discrete";\ntype DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";\ntype DistanceModelType = "linear" | "inverse" | "exponential";\ntype EndOfStreamError = "network" | "decode";\ntype ExpandGranularity = "character" | "word" | "sentence" | "textedit";\ntype GamepadHand = "" | "left" | "right";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadInputEmulationType = "mouse" | "keyboard" | "gamepad";\ntype GamepadMappingType = "" | "standard";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "pending" | "done";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype KeyFormat = "raw" | "spki" | "pkcs8" | "jwk";\ntype KeyType = "public" | "private" | "secret";\ntype KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey";\ntype ListeningState = "inactive" | "active" | "disambiguation";\ntype MSCredentialType = "FIDO_2_0";\ntype MSIceAddrType = "os" | "stun" | "turn" | "peer-derived";\ntype MSIceType = "failed" | "direct" | "relay";\ntype MSStatsType = "description" | "localclientevent" | "inbound-network" | "outbound-network" | "inbound-payload" | "outbound-payload" | "transportdiagnostics";\ntype MSTransportType = "Embedded" | "USB" | "NFC" | "BT";\ntype MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";\ntype MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";\ntype MediaKeySessionType = "temporary" | "persistent-license" | "persistent-release-message";\ntype MediaKeyStatus = "usable" | "expired" | "output-downscaled" | "output-not-allowed" | "status-pending" | "internal-error";\ntype MediaKeysRequirement = "required" | "optional" | "not-allowed";\ntype MediaStreamTrackState = "live" | "ended";\ntype NavigationReason = "up" | "down" | "left" | "right";\ntype NavigationType = "navigate" | "reload" | "back_forward" | "prerender";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";\ntype OverSampleType = "none" | "2x" | "4x";\ntype PanningModelType = "equalpower" | "HRTF";\ntype PaymentComplete = "success" | "fail" | "unknown";\ntype PaymentShippingType = "shipping" | "delivery" | "pickup";\ntype PushEncryptionKeyName = "p256dh" | "auth";\ntype PushPermissionState = "granted" | "denied" | "prompt";\ntype RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";\ntype RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";\ntype RTCDtlsRole = "auto" | "client" | "server";\ntype RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed";\ntype RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";\ntype RTCIceComponent = "RTP" | "RTCP";\ntype RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "failed" | "disconnected" | "closed";\ntype RTCIceGatherPolicy = "all" | "nohost" | "relay";\ntype RTCIceGathererState = "new" | "gathering" | "complete";\ntype RTCIceGatheringState = "new" | "gathering" | "complete";\ntype RTCIceProtocol = "udp" | "tcp";\ntype RTCIceRole = "controlling" | "controlled";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "none" | "relay" | "all";\ntype RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "closed";\ntype RTCSdpType = "offer" | "pranswer" | "answer";\ntype RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";\ntype RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";\ntype RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";\ntype RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";\ntype ReadyState = "closed" | "open" | "ended";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache";\ntype RequestCredentials = "omit" | "same-origin" | "include";\ntype RequestDestination = "" | "document" | "sharedworker" | "subresource" | "unknown" | "worker";\ntype RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";\ntype RequestRedirect = "follow" | "error" | "manual";\ntype RequestType = "" | "audio" | "font" | "image" | "script" | "style" | "track" | "video";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScopedCredentialType = "ScopedCred";\ntype ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";\ntype TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype Transport = "usb" | "nfc" | "ble";\ntype VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";\ntype VREye = "left" | "right";\ntype VideoFacingModeEnum = "user" | "environment" | "left" | "right";\ntype VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\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 * 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\n\n/// <reference path="lib.dom.d.ts" />\n\ninterface DOMTokenList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /**\n * Returns an iterator allowing to go through all key/value pairs contained in this object.\n */\n entries(): IterableIterator<[string, string]>;\n /**\n * Returns an iterator allowing to go through all keys f the key/value pairs contained in this object.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.\n */\n values(): IterableIterator<string>;\n}\n\ninterface NodeList {\n /**\n * Returns an array of key, value pairs for every entry in the list\n */\n entries(): IterableIterator<[number, Node]>;\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, index: number, listObj: NodeList) => void, thisArg?: any): void;\n /**\n * Returns an list of keys in the list\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the list\n */\n values(): IterableIterator<Node>;\n\n\n [Symbol.iterator](): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n\n /**\n * Returns an array of key, value pairs for every entry in the list\n */\n entries(): IterableIterator<[number, TNode]>;\n\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, index: number, listObj: NodeListOf<TNode>) => void, thisArg?: any): void;\n /**\n * Returns an list of keys in the list\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the list\n */\n values(): IterableIterator<TNode>;\n\n [Symbol.iterator](): IterableIterator<TNode>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface FormData {\n /**\n * Returns an array of key, value pairs for every entry in the list\n */\n entries(): IterableIterator<[string, string | File]>;\n /**\n * Returns a list of keys in the list\n */\n keys(): IterableIterator<string>;\n /**\n * Returns a list of values in the list\n */\n values(): IterableIterator<string | File>;\n\n [Symbol.iterator](): IterableIterator<string | File>;\n}\n\ninterface URLSearchParams {\n /**\n * Returns an array of key, value pairs for every entry in the search params\n */\n entries(): IterableIterator<[string, string]>;\n /**\n * Returns a list of keys in the search params\n */\n keys(): IterableIterator<string>;\n /**\n * Returns a list of values in the search params\n */\n values(): IterableIterator<string>;\n /**\n * iterate over key/value pairs\n */\n [Symbol.iterator](): IterableIterator<[string, string]>;\n}\n',u=function(){function e(e,n){this._extraLibs=Object.create(null),this._languageService=a.g(this),this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs}return e.prototype.getCompilationSettings=function(){return this._compilerOptions},e.prototype.getScriptFileNames=function(){return this._ctx.getMirrorModels().map(function(e){return e.uri.toString()}).concat(Object.keys(this._extraLibs))},e.prototype._getModel=function(e){for(var n=this._ctx.getMirrorModels(),t=0;t<n.length;t++)if(n[t].uri.toString()===e)return n[t];return null},e.prototype.getScriptVersion=function(e){var n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)||e in this._extraLibs?"1":void 0},e.prototype.getScriptSnapshot=function(e){var n,t=this._getModel(e);if(t)n=t.getValue();else if(e in this._extraLibs)n=this._extraLibs[e];else if(e===o)n=s;else{if(e!==l)return;n=c}return{getText:function(e,t){return n.substring(e,t)},getLength:function(){return n.length},getChangeRange:function(){}}},e.prototype.getScriptKind=function(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return a.c.TS;case"tsx":return a.c.TSX;case"js":return a.c.JS;case"jsx":return a.c.JSX;default:return this.getCompilationSettings().allowJs?a.c.JS:a.c.TS}},e.prototype.getCurrentDirectory=function(){return""},e.prototype.getDefaultLibFileName=function(e){return e.target<=a.d.ES5?o:l},e.prototype.isDefaultLibFileName=function(e){return e===this.getDefaultLibFileName(this._compilerOptions)},e.prototype.getSyntacticDiagnostics=function(e){var n=this._languageService.getSyntacticDiagnostics(e);return n.forEach(function(e){return e.file=void 0}),i.as(n)},e.prototype.getSemanticDiagnostics=function(e){var n=this._languageService.getSemanticDiagnostics(e);return n.forEach(function(e){return e.file=void 0}),i.as(n)},e.prototype.getCompilerOptionsDiagnostics=function(e){var n=this._languageService.getCompilerOptionsDiagnostics();return n.forEach(function(e){return e.file=void 0}),i.as(n)},e.prototype.getCompletionsAtPosition=function(e,n){return i.as(this._languageService.getCompletionsAtPosition(e,n,void 0))},e.prototype.getCompletionEntryDetails=function(e,n,t){return i.as(this._languageService.getCompletionEntryDetails(e,n,t,void 0,void 0))},e.prototype.getSignatureHelpItems=function(e,n){return i.as(this._languageService.getSignatureHelpItems(e,n))},e.prototype.getQuickInfoAtPosition=function(e,n){return i.as(this._languageService.getQuickInfoAtPosition(e,n))},e.prototype.getOccurrencesAtPosition=function(e,n){return i.as(this._languageService.getOccurrencesAtPosition(e,n))},e.prototype.getDefinitionAtPosition=function(e,n){return i.as(this._languageService.getDefinitionAtPosition(e,n))},e.prototype.getReferencesAtPosition=function(e,n){return i.as(this._languageService.getReferencesAtPosition(e,n))},e.prototype.getNavigationBarItems=function(e){return i.as(this._languageService.getNavigationBarItems(e))},e.prototype.getFormattingEditsForDocument=function(e,n){return i.as(this._languageService.getFormattingEditsForDocument(e,n))},e.prototype.getFormattingEditsForRange=function(e,n,t,r){return i.as(this._languageService.getFormattingEditsForRange(e,n,t,r))},e.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){return i.as(this._languageService.getFormattingEditsAfterKeystroke(e,n,t,r))},e.prototype.getEmitOutput=function(e){return i.as(this._languageService.getEmitOutput(e))},e}();self.onmessage=function(){r.initialize(function(e,n){return new u(e,n)})}}]); |