"use strict";var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__generator=this&&this.__generator||function(r,n){var i,a,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(o=2&t[0]?a.return:t[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,t[1])).done)return o;switch(a=0,o&&(t=[2&t[0],o.value]),t[0]){case 0:case 1:o=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!o||t[1]>o[0]&&t[1]<o[3])){s.label=t[1];break}if(6===t[0]&&s.label<o[1]){s.label=o[1],o=t;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(t);break}o[2]&&s.ops.pop(),s.trys.pop();continue}t=n.call(r,s)}catch(e){t=[6,e],a=0}finally{i=o=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},__rest=this&&this.__rest||function(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},__extends=this&&this.__extends||function(){var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};return function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}();!function(e){function i(){var e={};return{head:e.prev=e,tail:e,size:0}}function n(e,t){return e===t||e!=e&&t!=t}function a(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function o(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function s(e,t){for(var r=e.tail;r!==e.head;r=a(r))if(n(r.key,t))return r}function c(e,t,r){var n=s(e,t);if(!n){t={key:t,value:r,next:void 0,prev:void 0};return t.prev=e.tail,e.tail.next=t,e.tail=t,e.size++,t}n.value=r}function u(e,t){for(var r=e.tail;r!==e.head;r=a(r)){if(void 0===r.prev)throw new Error("Illegal state");if(n(r.key,t)){if(r.next)r.next.prev=r.prev;else{if(e.tail!==r)throw new Error("Illegal state");e.tail=r.prev}return r.prev.next=r.next,r.next=r.prev,r.prev=void 0,e.size--,r}}}function l(e){for(var t=e.tail;t!==e.head;){var r=a(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function _(e,t){for(var r=e.head;r;)(r=o(r))&&t(r.value,r.key)}function d(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function p(e,t){return{current:e.head,selector:t}}function f(e){return e.current=o(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}(e=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(t){var e=(r.prototype.next=function(){return f(this._data)},r);function r(e,t){this._data=p(e,t)}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){return null===(e=s(this._mapData,e))||void 0===e?void 0:e.value},n.prototype.set=function(e,t){return c(this._mapData,e,t),this},n.prototype.has=function(e){return!!s(this._mapData,e)},n.prototype.delete=function(e){return!!u(this._mapData,e)},n.prototype.clear=function(){l(this._mapData)},n.prototype.keys=function(){return new e(this._mapData,function(e,t){return e})},n.prototype.values=function(){return new e(this._mapData,function(e,t){return t})},n.prototype.entries=function(){return new e(this._mapData,function(e,t){return[e,t]})},n.prototype.forEach=function(e){_(this._mapData,e)},n;function n(e){var r=this;this._mapData=i(),d(t(e),function(e){var t=e[0],e=e[1];return r.set(t,e)})}},e.createSetShim=function(r){var e=(t.prototype.next=function(){return f(this._data)},t);function t(e,t){this._data=p(e,t)}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return c(this._mapData,e,e),this},n.prototype.has=function(e){return!!s(this._mapData,e)},n.prototype.delete=function(e){return!!u(this._mapData,e)},n.prototype.clear=function(){l(this._mapData)},n.prototype.keys=function(){return new e(this._mapData,function(e,t){return e})},n.prototype.values=function(){return new e(this._mapData,function(e,t){return t})},n.prototype.entries=function(){return new e(this._mapData,function(e,t){return[e,t]})},n.prototype.forEach=function(e){_(this._mapData,e)},n;function n(e){var t=this;this._mapData=i(),d(r(e),function(e){return t.add(e)})}}}(ts=ts||{}),function(e){var t;e.versionMajorMinor="4.1",e.version="4.1.3",(t=e.Comparison||(e.Comparison={}))[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",(e=e.NativeCollections||(e.NativeCollections={})).tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},e.tryGetNativeSet=function(){return"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0}}(ts=ts||{}),function(p){function e(e,t,r){r=null!==(t=p.NativeCollections[t]())&&void 0!==t?t:null===p.ShimCollections||void 0===p.ShimCollections?void 0:p.ShimCollections[r](n);if(r)return r;throw new Error("TypeScript requires an environment that provides a compatible native "+e+" implementation.")}function n(e){if(e){if(k(e))return f(e);if(e instanceof p.Map)return e.entries();if(e instanceof p.Set)return e.values();throw new Error("Iteration not supported.")}}function i(e,t,r){if(void 0===r&&(r=O),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function c(e,t){if(e){if(!t)return 0<e.length;for(var r=0,n=e;r<n.length;r++)if(t(n[r]))return!0}return!1}function r(e,t){return c(t)?c(e)?__spreadArrays(e,t):t:e}function t(e,t){return t}function u(e){return e.map(t)}function a(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function o(e,t){return t<0?e.length+t:t}function s(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:o(t,r),n=void 0===n?t.length:o(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function l(e,t,r){return!i(e,t,r)&&(e.push(t),!0)}function _(r,e,n){e.sort(function(e,t){return n(r[e],r[t])||L(e,t)})}function d(e,t){return 0===e.length?e:e.slice().sort(t)}function f(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:e[++t-1],done:!1}}}}function g(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,r,n,i){if(!c(e))return-1;for(var a=i||0,o=e.length-1;a<=o;){var s=a+(o-a>>1);switch(n(r(e[s],s),t)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1}}return~a}function y(e,t,r,n,i){if(e&&0<e.length){var a=e.length;if(0<a){var o=void 0===n||n<0?0:n,s=void 0===i||a-1<o+i?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}p.Map=e("Map","tryGetNativeMap","createMapShim"),p.Set=e("Set","tryGetNativeSet","createSetShim"),p.getIterator=n,p.emptyArray=[],p.emptyMap=new p.Map,p.emptySet=new p.Set,p.createMap=function(){return new p.Map},p.createMapFromTemplate=function(e){var t,r=new p.Map;for(t in e)h.call(e,t)&&r.set(t,e[t]);return r},p.length=function(e){return e?e.length:0},p.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},p.forEachRight=function(e,t){if(e)for(var r=e.length-1;0<=r;r--){var n=t(e[r],r);if(n)return n}},p.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},p.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;r=t(r.value);if(void 0!==r)return r}},p.reduceLeftIterator=function(e,t,r){var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},p.zipWith=function(e,t,r){var n=[];p.Debug.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n},p.zipToIterator=function(e,t){p.Debug.assertEqual(e.length,t.length);var r=0;return{next:function(){return r===e.length?{value:void 0,done:!0}:{value:[e[++r-1],t[r-1]],done:!1}}}},p.zipToMap=function(e,t){p.Debug.assert(e.length===t.length);for(var r=new p.Map,n=0;n<e.length;++n)r.set(e[n],t[n]);return r},p.intersperse=function(e,t){if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},p.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},p.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},p.findLast=function(e,t){for(var r=e.length-1;0<=r;r--){var n=e[r];if(t(n,r))return n}},p.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},p.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;0<=n;n--)if(t(e[n],n))return n;return-1},p.findMap=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}return p.Debug.fail()},p.contains=i,p.arraysEqual=function(e,r,n){return void 0===n&&(n=O),e.length===r.length&&e.every(function(e,t){return n(e,r[t])})},p.indexOfAnyCharCode=function(e,t,r){for(var n=r||0;n<e.length;n++)if(i(t,e.charCodeAt(n)))return n;return-1},p.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},p.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},p.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},p.clear=function(e){e.length=0},p.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},p.mapIterator=function(t,r){return{next:function(){var e=t.next();return e.done?e:{value:r(e.value),done:!1}}}},p.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},p.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(k(i)?s(t,i):t.push(i))}return t},p.flatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(r=(k(i)?s:a)(r,i))}return r||p.emptyArray},p.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(k(i)?s(r,i):r.push(i))}return r},p.flatMapIterator=function(t,r){var e=t.next();if(e.done)return p.emptyIterator;var n=i(e.value);return{next:function(){for(;;){var e=n.next();if(!e.done)return e;e=t.next();if(e.done)return e;n=i(e.value)}}};function i(e){e=r(e);return void 0===e?p.emptyIterator:k(e)?f(e):e}},p.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||k(a))&&(r=r||e.slice(0,n),k(a)?s(r,a):r.push(a))}return r||e},p.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},p.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},p.mapDefinedIterator=function(t,r){return{next:function(){for(;;){var e=t.next();if(e.done)return e;e=r(e.value);if(void 0!==e)return{value:e,done:!1}}}}},p.mapDefinedEntries=function(e,r){if(e){var n=new p.Map;return e.forEach(function(e,t){t=r(t,e);void 0!==t&&(e=t[0],t=t[1],void 0!==e&&void 0!==t&&n.set(e,t))}),n}},p.mapDefinedValues=function(e,t){if(e){var r=new p.Set;return e.forEach(function(e){e=t(e);void 0!==e&&r.add(e)}),r}},p.getOrUpdate=function(e,t,r){return e.has(t)?e.get(t):(r=r(),e.set(t,r),r)},p.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},p.emptyIterator={next:function(){return{value:void 0,done:!0}}},p.singleIterator=function(t){var r=!1;return{next:function(){var e=r;return r=!0,e?{value:void 0,done:!0}:{value:t,done:!1}}}},p.spanMap=function(e,t,r){var n;if(e){n=[];for(var i,a=e.length,o=void 0,s=void 0,c=0,u=0;c<a;){for(;u<a;){s=t(e[u],u);if(0===u)o=s;else if(s!==o)break;u++}c<u&&((i=r(e.slice(c,u),o,c,u))&&n.push(i),c=u),o=s,u++}}return n},p.mapEntries=function(e,r){if(e){var n=new p.Map;return e.forEach(function(e,t){t=r(t,e),e=t[0],t=t[1];n.set(e,t)}),n}},p.some=c,p.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},p.concatenate=r,p.indicesOf=u,p.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(t,e,r){var n=u(t);_(t,n,r);for(var i=t[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],c=t[s];e(i,c)||(a.push(s),i=c)}return a.sort(),a.map(function(e){return t[e]})}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)l(r,i[n],t);return r}(e,t)},p.insertSorted=function(e,t,r){0!==e.length?(r=g(e,t,A,r))<0&&e.splice(~r,0,t):e.push(t)},p.sortAndDeduplicate=function(e,t,r){return function(e,t){if(0===e.length)return p.emptyArray;for(var r=e[0],n=[r],i=1;i<e.length;i++){var a=e[i];switch(t(a,r)){case!0:case 0:continue;case-1:return p.Debug.fail("Array is unsorted.")}n.push(r=a)}return n}(d(e,t),r||t||B)},p.arrayIsSorted=function(e,t){if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},p.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=O),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},p.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t=t||e.slice(0,r),n&&t.push(n))}return t||e},p.relativeComplement=function(e,t,r){if(!t||!e||0===t.length||0===e.length)return t;var n=[];e:for(var i=0,a=0;a<t.length;a++){0<a&&p.Debug.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(o<i&&p.Debug.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n},p.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},p.append=a,p.combine=function(e,t){return void 0===e?t:void 0===t?e:k(e)?(k(t)?r:a)(e,t):k(t)?a(t,e):[e,t]},p.addRange=s,p.pushIfUnique=l,p.appendIfUnique=function(e,t,r){return e?(l(e,t,r),e):[t]},p.sort=d,p.arrayIterator=f,p.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:{value:e[--t],done:!1}}}},p.stableSort=function(t,e){var r=u(t);return _(t,r,e),r.map(function(e){return t[e]})},p.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},p.elementAt=function(e,t){if(e&&(t=o(e,t))<e.length)return e[t]},p.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},p.first=function(e){return p.Debug.assert(0!==e.length),e[0]},p.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},p.last=function(e){return p.Debug.assert(0!==e.length),e[e.length-1]},p.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},p.singleOrMany=function(e){return e&&1===e.length?e[0]:e},p.replaceElement=function(e,t,r){return(e=e.slice(0))[t]=r,e},p.binarySearch=g,p.binarySearchKey=m,p.reduceLeft=y;var h=Object.prototype.hasOwnProperty;function v(e,t){return h.call(e,t)}function b(e){var t,r=[];for(t in e)h.call(e,t)&&r.push(t);return r}p.hasProperty=v,p.getProperty=function(e,t){return h.call(e,t)?e[t]:void 0},p.getOwnKeys=b,p.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)l(t,n[r])}while(e=Object.getPrototypeOf(e));return t},p.getOwnValues=function(e){var t,r=[];for(t in e)h.call(e,t)&&r.push(e[t]);return r};var x=Object.entries||function(e){for(var t=b(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r};function D(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function S(e,t,r){void 0===r&&(r=A);for(var n=T(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function T(){var e=new p.Map;return e.add=C,e.remove=E,e}function C(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function E(e,t){var r=this.get(e);r&&(Z(r,t),r.length||this.delete(e))}function k(e){return Array.isArray?Array.isArray(e):e instanceof Array}function N(e){}function A(e){return e}function F(e){return e.toLowerCase()}p.getEntries=function(e){return e?x(e):[]},p.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},p.arrayFrom=D,p.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)v(a,o)&&(e[o]=a[o])}return e},p.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=O),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(h.call(e,n)){if(!h.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(h.call(t,n)&&!h.call(e,n))return!1;return!0},p.arrayToMap=function(e,t,r){void 0===r&&(r=A);for(var n=new p.Map,i=0,a=e;i<a.length;i++){var o=a[i],s=t(o);void 0!==s&&n.set(s,r(o))}return n},p.arrayToNumericMap=function(e,t,r){void 0===r&&(r=A);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},p.arrayToMultiMap=S,p.group=function(e,t,r){return void 0===r&&(r=A),D(S(e,t).values(),r)},p.clone=function(e){var t,r={};for(t in e)h.call(e,t)&&(r[t]=e[t]);return r},p.extend=function(e,t){var r,n={};for(r in t)h.call(t,r)&&(n[r]=t[r]);for(r in e)h.call(e,r)&&(n[r]=e[r]);return n},p.copyProperties=function(e,t){for(var r in t)h.call(t,r)&&(e[r]=t[r])},p.maybeBind=function(e,t){return t?t.bind(e):void 0},p.createMultiMap=T,p.createUnderscoreEscapedMultiMap=T,p.isArray=k,p.toArray=function(e){return k(e)?e:[e]},p.isString=function(e){return"string"==typeof e},p.isNumber=function(e){return"number"==typeof e},p.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},p.cast=function(e,t){return void 0!==e&&t(e)?e:p.Debug.fail("Invalid cast. The supplied value "+e+" did not pass the test '"+p.Debug.getFunctionName(t)+"'.")},p.noop=N,p.returnFalse=function(){return!1},p.returnTrue=function(){return!0},p.returnUndefined=function(){},p.identity=A,p.toLowerCase=F;var P,w=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function I(e){return w.test(e)?e.replace(w,F):e}function O(e,t){return e===t}function M(e,t){return e===t?0:void 0===e||void 0!==t&&e<t?-1:1}function L(e,t){return M(e,t)}function R(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:t<e?1:0}function B(e,t){return M(e,t)}p.toFileNameLowerCase=I,p.notImplemented=function(){throw new Error("Not implemented")},p.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},p.memoizeOne=function(n){var i=new p.Map;return function(e){var t=typeof e+":"+e,r=i.get(t);return void 0!==r||i.has(t)||(r=n(e),i.set(t,r)),r}},p.compose=function(t,r,n,i,e){if(e){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return y(a,function(e,t){return t(e)},e)}}return i?function(e){return i(n(r(t(e))))}:n?function(e){return n(r(t(e)))}:r?function(e){return r(t(e))}:t?function(e){return t(e)}:function(e){return e}},(P=p.AssertionLevel||(p.AssertionLevel={}))[P.None=0]="None",P[P.Normal=1]="Normal",P[P.Aggressive=2]="Aggressive",P[P.VeryAggressive=3]="VeryAggressive",p.equateValues=O,p.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},p.equateStringsCaseSensitive=function(e,t){return e===t},p.compareValues=L,p.compareTextSpans=function(e,t){return L(null==e?void 0:e.start,null==t?void 0:t.start)||L(null==e?void 0:e.length,null==t?void 0:t.length)},p.min=function(e,t,r){return-1===r(e,t)?e:t},p.compareStringsCaseInsensitive=R,p.compareStringsCaseSensitive=B,p.getStringComparer=function(e){return e?R:B};var j,J,z,U,V,K=(z=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return W;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return H;return G}(),function(e){return void 0===e?j=j||z(e):"en-US"===e?J=J||z(e):z(e)});function q(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;t=r(e,t);return t<0?-1:0<t?1:0}function W(e){var r=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return q(e,t,r)}}function H(e){return void 0!==e?G():function(e,t){return q(e,t,r)};function r(e,t){return e.localeCompare(t)}}function G(){return function(e,t){return q(e,t,r)};function r(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,t){return e<t?-1:t<e?1:0}}function X(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)===r}function Q(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function Y(e,t){e[t]=e[e.length-1],e.pop()}function Z(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return Y(e,r),!0;return!1}(e,function(e){return e===t})}function $(e,t){return 0===e.lastIndexOf(t,0)}function ee(e,t){var r=e.prefix,e=e.suffix;return t.length>=r.length+e.length&&$(t,r)&&X(t,e)}p.getUILocale=function(){return V},p.setUILocale=function(e){V!==e&&(V=e,U=void 0)},p.compareStringsCaseSensitiveUI=function(e,t){return(U=U||K(V))(e,t)},p.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},p.compareBooleans=function(e,t){return L(e?1:0,t?1:0)},p.getSpellingSuggestion=function(e,t,r){for(var n,i=Math.min(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;c<u.length;c++){var l=u[c],_=r(l);if(void 0!==_&&Math.abs(_.length-s.length)<=i){var d=_.toLowerCase();if(d===s){if(_===e)continue;return l}o||_.length<3||void 0!==(d=function(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){for(var s=e.charCodeAt(o-1),c=r<o?o-r:1,u=t.length>r+o?r+o:t.length,l=i[0]=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=u;_++){var d=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,n[_-1]+2);i[_]=d,l=Math.min(l,d)}for(_=u+1;_<=t.length;_++)i[_]=a;if(r<l)return;var p=n;n=i,i=p}var f=n[t.length];return r<f?void 0:f}(s,d,a-1))&&(n=(d<3?o=!0:(p.Debug.assert(d<a),a=d),l))}}return n},p.endsWith=X,p.removeSuffix=function(e,t){return X(e,t)?e.slice(0,e.length-t.length):e},p.tryRemoveSuffix=function(e,t){return X(e,t)?e.slice(0,e.length-t.length):void 0},p.stringContains=function(e,t){return-1!==e.indexOf(t)},p.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},p.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return Q(e,r),!0;return!1},p.orderedRemoveItemAt=Q,p.unorderedRemoveItemAt=Y,p.unorderedRemoveItem=Z,p.createGetCanonicalFileName=function(e){return e?A:I},p.patternText=function(e){return e.prefix+"*"+e.suffix},p.matchedText=function(e,t){return p.Debug.assert(ee(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},p.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);ee(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},p.startsWith=$,p.removePrefix=function(e,t){return $(e,t)?e.substr(t.length):e},p.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=A),$(r(e),r(t))?e.substring(t.length):void 0},p.and=function(t,r){return function(e){return t(e)&&r(e)}},p.or=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=i;r<n.length;r++)if(n[r].apply(void 0,e))return!0;return!1}},p.not=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!r.apply(void 0,e)}},p.assertType=function(e){},p.singleElementArray=function(e){return void 0===e?void 0:[e]},p.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||N;for(var o=0,s=0,c=e.length,u=t.length,l=!1;o<c&&s<u;){var _=e[o],d=t[s],p=r(_,d);-1===p?(n(_),o++,l=!0):1===p?(i(d),s++,l=!0):(a(d,_),o++,s++)}for(;o<c;)n(e[o++]),l=!0;for(;s<u;)i(t[s++]),l=!0;return l},p.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},p.cartesianProduct=function(e){var t=[];return function e(t,r,n,i){for(var a=0,o=t[i];a<o.length;a++){var s=o[a],c=void 0;n?(c=n.slice()).push(s):c=[s],i===t.length-1?r.push(c):e(t,r,c,i+1)}}(e,t,void 0,0),t},p.padLeft=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e},p.padRight=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)},p.takeWhile=function(e,t){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)}}(ts=ts||{}),function(B){var j,e;(e=j=B.LogLevel||(B.LogLevel={}))[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",function(a){var e,t,o=0;function g(){return null!=e?e:e=new B.Version(B.version)}function r(e){return a.currentLogLevel<=e}function n(e,t){a.loggingHost&&r(e)&&a.loggingHost.log(e,t)}function m(e){n(j.Info,e)}a.currentLogLevel=j.Warning,a.isDebugging=!1,a.getTypeScriptVersion=g,a.shouldLog=r,a.log=m,(t=m=a.log||(a.log={})).error=function(e){n(j.Error,e)},t.warn=function(e){n(j.Warning,e)},t.log=function(e){n(j.Info,e)},t.trace=function(e){n(j.Verbose,e)};var s={};function i(e){return e<=o}function c(e,t){return e<=o||(s[t]={level:e,assertion:a[t]},void(a[t]=B.noop))}function u(e,t){e=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(e,t||u),e}function l(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),u(t,n||l))}function _(e,t,r){null==e&&u(t,r||_)}function d(e,t,r){return _(e,t,r||d),e}function p(e,t,r){for(var n=0,i=e;n<i.length;n++)_(i[n],t,r||p)}function f(e,t,r){return p(e,t,r||f),e}function y(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;e=Function.prototype.toString.call(e),e=/^function\s+([\w\$]+)\s*\(/.exec(e);return e?e[1]:""}function h(e,t,r){void 0===e&&(e=0);t=function(e){var t,r=[];for(t in e){var n=e[t];"number"==typeof n&&r.push([n,t])}return B.stableSort(r,function(e,t){return B.compareValues(e[0],t[0])})}(t);if(0===e)return 0<t.length&&0===t[0][0]?t[0][1]:"0";if(r){for(var n="",i=e,a=0,o=t;a<o.length;a++){var s=o[a],c=s[0],u=s[1];if(e<c)break;0!==c&&c&e&&(n=n+(n?"|":"")+u,i&=~c)}if(0===i)return n}else for(var l=0,_=t;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function v(e){return h(e,B.SyntaxKind,!1)}function b(e){return h(e,B.NodeFlags,!0)}function x(e){return h(e,B.ModifierFlags,!0)}function D(e){return h(e,B.TransformFlags,!0)}function S(e){return h(e,B.EmitFlags,!0)}function T(e){return h(e,B.SymbolFlags,!0)}function C(e){return h(e,B.TypeFlags,!0)}function E(e){return h(e,B.ObjectFlags,!0)}function k(e){return h(e,B.FlowFlags,!0)}a.getAssertionLevel=function(){return o},a.setAssertionLevel=function(e){if(o<(o=e))for(var t=0,r=B.getOwnKeys(s);t<r.length;t++){var n=r[t],i=s[n];void 0!==i&&a[n]!==i.assertion&&e>=i.level&&(a[n]=i,s[n]=void 0)}},a.shouldAssert=i,a.fail=u,a.failBadSyntaxKind=function e(t,r,n){return u((r||"Unexpected node.")+"\r\nNode "+v(t.kind)+" was unexpected.",n||e)},a.assert=l,a.assertEqual=function e(t,r,n,i,a){t!==r&&u("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},a.assertLessThan=function e(t,r,n,i){r<=t&&u("Expected "+t+" < "+r+". "+(n||""),i||e)},a.assertLessThanOrEqual=function e(t,r,n){r<t&&u("Expected "+t+" <= "+r,n||e)},a.assertGreaterThanOrEqual=function e(t,r,n){t<r&&u("Expected "+t+" >= "+r,n||e)},a.assertIsDefined=_,a.checkDefined=d,a.assertDefined=d,a.assertEachIsDefined=p,a.checkEachDefined=f,a.assertEachDefined=f,a.assertNever=function e(t,r,n){return void 0===r&&(r="Illegal value:"),u(r+" "+("object"==typeof t&&B.hasProperty(t,"kind")&&B.hasProperty(t,"pos")&&v?"SyntaxKind: "+v(t.kind):JSON.stringify(t)),n||e)},a.assertEachNode=function e(t,r,n,i){c(1,"assertEachNode")&&l(void 0===r||B.every(t,r),n||"Unexpected node.",function(){return"Node array did not pass test '"+y(r)+"'."},i||e)},a.assertNode=function e(t,r,n,i){c(1,"assertNode")&&l(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",function(){return"Node "+v(t.kind)+" did not pass test '"+y(r)+"'."},i||e)},a.assertNotNode=function e(t,r,n,i){c(1,"assertNotNode")&&l(void 0===t||void 0===r||!r(t),n||"Unexpected node.",function(){return"Node "+v(t.kind)+" should not have passed test '"+y(r)+"'."},i||e)},a.assertOptionalNode=function e(t,r,n,i){c(1,"assertOptionalNode")&&l(void 0===r||void 0===t||r(t),n||"Unexpected node.",function(){return"Node "+v(t.kind)+" did not pass test '"+y(r)+"'."},i||e)},a.assertOptionalToken=function e(t,r,n,i){c(1,"assertOptionalToken")&&l(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",function(){return"Node "+v(t.kind)+" was not a '"+v(r)+"' token."},i||e)},a.assertMissingNode=function e(t,r,n){c(1,"assertMissingNode")&&l(void 0===t,r||"Unexpected node.",function(){return"Node "+v(t.kind)+" was unexpected'."},n||e)},a.getFunctionName=y,a.formatSymbol=function(e){return"{ name: "+B.unescapeLeadingUnderscores(e.escapedName)+"; flags: "+T(e.flags)+"; declarations: "+B.map(e.declarations,function(e){return v(e.kind)})+" }"},a.formatEnum=h,a.formatSyntaxKind=v,a.formatNodeFlags=b,a.formatModifierFlags=x,a.formatTransformFlags=D,a.formatEmitFlags=S,a.formatSymbolFlags=T,a.formatTypeFlags=C,a.formatObjectFlags=E,a.formatFlowFlags=k;var N,A,F,P=!1;function w(e){return function(){if(M(),!N)throw new Error("Debugging helpers could not be loaded.");return N}().formatControlFlowGraph(e)}function I(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return e+(t?" ("+k(t)+")":"")}},__debugFlowFlags:{get:function(){return h(this.flags,B.FlowFlags,!0)}},__debugToString:{value:function(){return w(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"))}}})}function M(){if(!P){var r,a;Object.defineProperties(B.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return e+" '"+B.symbolName(this)+"'"+(t?" ("+T(t)+")":"")}},__debugFlags:{get:function(){return T(this.flags)}}}),Object.defineProperties(B.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var e=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":2048&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-2368&this.objectFlags:0;return e+(this.symbol?" '"+B.symbolName(this.symbol)+"'":"")+(t?" ("+E(t)+")":"")}},__debugFlags:{get:function(){return C(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?E(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),t=null==e?void 0:e.get(this);return void 0===t&&(t=this.checker.typeToString(this),null!=e&&e.set(this,t)),t}}});for(var e,t=0,n=[B.objectAllocator.getNodeConstructor(),B.objectAllocator.getIdentifierConstructor(),B.objectAllocator.getTokenConstructor(),B.objectAllocator.getSourceFileConstructor()];t<n.length;t++){var i=n[t];i.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(i.prototype,{__tsDebuggerDisplay:{value:function(){return(B.isGeneratedIdentifier(this)?"GeneratedIdentifier":B.isIdentifier(this)?"Identifier '"+B.idText(this)+"'":B.isPrivateIdentifier(this)?"PrivateIdentifier '"+B.idText(this)+"'":B.isStringLiteral(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):B.isNumericLiteral(this)?"NumericLiteral "+this.text:B.isBigIntLiteral(this)?"BigIntLiteral "+this.text+"n":B.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":B.isParameter(this)?"ParameterDeclaration":B.isConstructorDeclaration(this)?"ConstructorDeclaration":B.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":B.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":B.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":B.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":B.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":B.isTypePredicateNode(this)?"TypePredicateNode":B.isTypeReferenceNode(this)?"TypeReferenceNode":B.isFunctionTypeNode(this)?"FunctionTypeNode":B.isConstructorTypeNode(this)?"ConstructorTypeNode":B.isTypeQueryNode(this)?"TypeQueryNode":B.isTypeLiteralNode(this)?"TypeLiteralNode":B.isArrayTypeNode(this)?"ArrayTypeNode":B.isTupleTypeNode(this)?"TupleTypeNode":B.isOptionalTypeNode(this)?"OptionalTypeNode":B.isRestTypeNode(this)?"RestTypeNode":B.isUnionTypeNode(this)?"UnionTypeNode":B.isIntersectionTypeNode(this)?"IntersectionTypeNode":B.isConditionalTypeNode(this)?"ConditionalTypeNode":B.isInferTypeNode(this)?"InferTypeNode":B.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":B.isThisTypeNode(this)?"ThisTypeNode":B.isTypeOperatorNode(this)?"TypeOperatorNode":B.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":B.isMappedTypeNode(this)?"MappedTypeNode":B.isLiteralTypeNode(this)?"LiteralTypeNode":B.isNamedTupleMember(this)?"NamedTupleMember":B.isImportTypeNode(this)?"ImportTypeNode":v(this.kind))+(this.flags?" ("+b(this.flags)+")":"")}},__debugKind:{get:function(){return v(this.kind)}},__debugNodeFlags:{get:function(){return b(this.flags)}},__debugModifierFlags:{get:function(){return x(B.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return D(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return B.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return S(B.getEmitFlags(this))}},__debugGetText:{value:function(e){if(B.nodeIsSynthesized(this))return"";var t,r,n=(void 0===a&&"function"==typeof WeakMap&&(a=new WeakMap),a),i=null==n?void 0:n.get(this);return void 0===i&&(i=(r=(t=B.getParseTreeNode(this))&&B.getSourceFileOfNode(t))?B.getSourceTextOfNodeFromSourceFile(r,t,e):"",null!=n&&n.set(this,i)),i}}})}try{B.sys&&B.sys.require&&(e=B.getDirectoryPath(B.resolvePath(B.sys.getExecutingFilePath())),(e=B.sys.require(e,"./compiler-debug")).error||(e.module.init(B),N=e.module))}catch(e){}P=!0}}function L(e,t,r,n,i){var a=t?"DeprecationError: ":"DeprecationWarning: ";return a+="'"+e+"' ",a+=n?"has been deprecated since v"+n:"is deprecated",a+=t?" and can no longer be used.":r?" and will no longer be usable after v"+r+".":".",a+=i?" "+B.formatStringFromArgs(i,[e],0):""}function R(e,t){void 0===t&&(t={});var r,n,i,a,o,s,c,u="string"==typeof t.typeScriptVersion?new B.Version(t.typeScriptVersion):null!==(f=t.typeScriptVersion)&&void 0!==f?f:g(),l="string"==typeof t.errorAfter?new B.Version(t.errorAfter):t.errorAfter,_="string"==typeof t.warnAfter?new B.Version(t.warnAfter):t.warnAfter,d="string"==typeof t.since?new B.Version(t.since):null!==(s=t.since)&&void 0!==s?s:_,p=t.error||l&&u.compareTo(l)<=0,f=!_||0<=u.compareTo(_);return p?(s=e,u=l,_=d,p=t.message,c=L(s,!0,u,_,p),function(){throw new TypeError(c)}):f?(r=e,n=l,i=d,a=t.message,o=!1,function(){o||(m.warn(L(r,!1,n,i,a)),o=!0)}):B.noop}a.printControlFlowGraph=function(e){return console.log(w(e))},a.formatControlFlowGraph=w,a.attachFlowNodeDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(A||I(A=Object.create(Object.prototype)),Object.setPrototypeOf(e,A)):I(e))},a.attachNodeArrayDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(F||O(F=Object.create(Array.prototype)),Object.setPrototypeOf(e,F)):O(e))},a.enableDebugInfo=M,a.deprecate=function(e,t){var r,n,t=R(y(e),t);return r=t,n=e,function(){return r(),n.apply(this,arguments)}}}(B.Debug||(B.Debug={}))}(ts=ts||{}),function(u){var a=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,o=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,s=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,l=/^(0|[1-9]\d*)$/,_=(t.tryParse=function(e){e=c(e);if(e)return new t(e.major,e.minor,e.patch,e.prerelease,e.build)},t.prototype.compareTo=function(e){return this===e?0:void 0===e?1:u.compareValues(this.major,e.major)||u.compareValues(this.minor,e.minor)||u.compareValues(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(e.length,t.length),n=0;n<r;n++){var i=e[n],a=t[n];if(i!==a){var o,s=l.test(i),c=l.test(a);if(s||c){if(s!==c)return s?-1:1;if(o=u.compareValues(+i,+a))return o}else if(o=u.compareStringsCaseSensitive(i,a))return o}}return u.compareValues(e.length,t.length)}(this.prerelease,e.prerelease)},t.prototype.increment=function(e){switch(e){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return u.Debug.assertNever(e)}},t.prototype.toString=function(){var e=this.major+"."+this.minor+"."+this.patch;return u.some(this.prerelease)&&(e+="-"+this.prerelease.join(".")),u.some(this.build)&&(e+="+"+this.build.join(".")),e},t.zero=new t(0,0,0),t);function t(e,t,r,n,i){var a;void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=""),void 0===i&&(i=""),"string"==typeof e&&(e=(a=u.Debug.checkDefined(c(e),"Invalid version")).major,t=a.minor,r=a.patch,n=a.prerelease,i=a.build),u.Debug.assert(0<=e,"Invalid argument: major"),u.Debug.assert(0<=t,"Invalid argument: minor"),u.Debug.assert(0<=r,"Invalid argument: patch"),u.Debug.assert(!n||o.test(n),"Invalid argument: prerelease"),u.Debug.assert(!i||s.test(i),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=n?n.split("."):u.emptyArray,this.build=i?i.split("."):u.emptyArray}function c(e){var t=a.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"0":n,e=t[3],n=void 0===e?"0":e,e=t[4],e=void 0===e?"":e,t=t[5],t=void 0===t?"":t;if((!e||o.test(e))&&(!t||s.test(t)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(n,10),prerelease:e,build:t}}}u.Version=_;var e=(r.tryParse=function(e){var t=n(e);if(t){e=new r("");return e._alternatives=t,e}},r.prototype.test=function(e){return"string"==typeof e&&(e=new _(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(function(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!function(e,t,r){var n=e.compareTo(r);switch(t){case"<":return n<0;case"<=":return n<=0;case">":return 0<n;case">=":return 0<=n;case"=":return 0===n;default:return u.Debug.assertNever(t)}}(e,i.operator,i.operand))return!1}return!0}(e,i))return!0}return!1}(e,this._alternatives)},r.prototype.toString=function(){return e=this._alternatives,u.map(e,i).join(" || ")||"*";var e},r);function r(e){this._alternatives=e?u.Debug.checkDefined(n(e),"Invalid range spec."):u.emptyArray}u.VersionRange=e;var d=/\s*\|\|\s*/g,p=/\s+/g,f=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,g=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,m=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function n(e){for(var t=[],r=0,n=e.trim().split(d);r<n.length;r++){var i=n[r];if(i){var a=[],o=g.exec(i);if(o){if(!function(e,t,r){e=y(e);if(!e)return!1;t=y(t);if(!t)return!1;h(e.major)||r.push(v(">=",e.version));h(t.major)||r.push(h(t.minor)?v("<",t.version.increment("major")):h(t.patch)?v("<",t.version.increment("minor")):v("<=",t.version));return!0}(o[1],o[2],a))return}else for(var s=0,c=i.split(p);s<c.length;s++){var u=c[s],u=m.exec(u);if(!u||!function(e,t,r){var n=y(t);if(!n)return!1;var i=n.version,t=n.major,a=n.minor,o=n.patch;if(h(t))"<"!==e&&">"!==e||r.push(v("<",_.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(h(a)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(0<i.major||h(a)?"major":0<i.minor||h(o)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(h(a)?v("<="===e?"<":">=",i.increment("major")):h(o)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:h(a)||h(o)?(r.push(v(">=",i)),r.push(v("<",i.increment(h(a)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}(u[1],u[2],a))return}t.push(a)}}return t}function y(e){var t=f.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,e=t[3],n=void 0===e?"*":e,e=t[4],t=t[5];return{version:new _(h(r)?0:parseInt(r,10),h(r)||h(i)?0:parseInt(i,10),h(r)||h(i)||h(n)?0:parseInt(n,10),e,t),major:r,minor:i,patch:n}}}function h(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function i(e){return u.map(e,b).join(" ")}function b(e){return""+e.operator+e.operand}}(ts=ts||{}),function(r){function i(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var e=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&i(performance,PerformanceObserver))return{performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if("object"==typeof module&&"function"==typeof require)try{var e=require("perf_hooks"),n=e.performance,t=e.PerformanceObserver;if(i(n,t)){e=new r.Version(process.versions.node);return new r.VersionRange("<12.16.3 || 13 <13.13").test(e)?{performance:{get timeOrigin(){return n.timeOrigin},now:function(){return n.now()},mark:function(e){return n.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",n.mark(r)),n.measure(e,t,r),"__performance.measure-fix__"===r&&n.clearMarks("__performance.measure-fix__")}},PerformanceObserver:t}:{performance:n,PerformanceObserver:t}}}catch(e){}}(),t=null==e?void 0:e.performance;r.tryGetNativePerformanceHooks=function(){return e},r.timestamp=t?function(){return t.now()}:Date.now||function(){return+new Date}}(ts=ts||{}),function(l){!function(i){var e,t,n;function a(e,t,r){var n=0;return{enter:function(){1==++n&&o(t)},exit:function(){0==--n?(o(r),u(e,t,r)):n<0&&l.Debug.fail("enter/exit count does not match.")}}}i.createTimerIf=function(e,t,r,n){return e?a(t,r,n):i.nullTimer},i.createTimer=a,i.nullTimer={enter:l.noop,exit:l.noop};var s=new l.Map,c=new l.Map;function o(e){null!=n&&n.mark(e)}function u(e,t,r){null!=n&&n.measure(e,t,r)}function r(e){for(var t=0,r=e.getEntriesByType("mark");t<r.length;t++){var n=r[t];s.set(n.name,(s.get(n.name)||0)+1)}for(var i=0,a=e.getEntriesByType("measure");i<a.length;i++){var o=a[i];c.set(o.name,(c.get(o.name)||0)+o.duration)}}i.mark=o,i.measure=u,i.getCount=function(e){return s.get(e)||0},i.getDuration=function(e){return c.get(e)||0},i.forEachMeasure=function(r){c.forEach(function(e,t){return r(t,e)})},i.isEnabled=function(){return!!n},i.enable=function(){if(!n){if(!(e=e||l.tryGetNativePerformanceHooks()))return!1;(t=t||new e.PerformanceObserver(r)).observe({entryTypes:["mark","measure"]}),n=e.performance}return!0},i.disable=function(){null!=t&&t.disconnect(),n=void 0,s.clear(),c.clear()}}(l.performance||(l.performance={}))}(ts=ts||{}),function(e){var t={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var r=null!==(r=process.env.TS_ETW_MODULE_PATH)&&void 0!==r?r:"./node_modules/@microsoft/typescript-etw",n=require(r)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:t}(ts=ts||{}),function(S){!function(e){var b,o,i,t,a=0,x=[];e.startTracing=function(e,t,r){if(S.Debug.assert(!o,"Tracing already started"),void 0===b)try{b=require("fs")}catch(e){b=!1}var n;b&&(void 0===i&&(i=S.combinePaths(t,"legend.json")),b.existsSync(t)||b.mkdirSync(t,{recursive:!0}),n=r?"."+ ++a:"",r=S.combinePaths(t,"trace"+n+".json"),n=S.combinePaths(t,"types"+n+".json"),x.push({configFilePath:e,tracePath:r,typesPath:n}),o=b.openSync(r,"w"),r={cat:"__metadata",ph:"M",ts:1e3*S.timestamp(),pid:1,tid:1},b.writeSync(o,"[\n"+[__assign({name:"process_name",args:{name:"tsc"}},r),__assign({name:"thread_name",args:{name:"Main"}},r),__assign(__assign({name:"TracingStartedInBrowser"},r),{cat:"disabled-by-default-devtools.timeline"})].map(function(e){return JSON.stringify(e)}).join(",\n")))},e.stopTracing=function(e){o?(S.Debug.assert(b),b.writeSync(o,"\n]\n"),b.closeSync(o),o=void 0,e?function(e){var t,r,n;S.Debug.assert(b),S.performance.mark("beginDumpTypes");var i=x[x.length-1].typesPath,a=b.openSync(i,"w"),o=new S.Map;b.writeSync(a,"[");for(var s=e.length,c=0;c<s;c++){var u=e[c],l=u.objectFlags,_=null!==(p=u.aliasSymbol)&&void 0!==p?p:u.symbol,d=null===(g=null==_?void 0:_.declarations)||void 0===g?void 0:g[0],p=d&&S.getSourceFileOfNode(d),f=void 0;if(16&l|2944&u.flags)try{f=null===(t=u.checker)||void 0===t?void 0:t.typeToString(u)}catch(e){f=void 0}var g={};8388608&u.flags&&(g={indexedAccessObjectType:null===(m=u.objectType)||void 0===m?void 0:m.id,indexedAccessIndexType:null===(m=u.indexType)||void 0===m?void 0:m.id});var m={};4&l&&(m={instantiatedType:null===(y=u.target)||void 0===y?void 0:y.id,typeArguments:null===(y=u.resolvedTypeArguments)||void 0===y?void 0:y.map(function(e){return e.id})});var y={};16777216&u.flags&&(y={conditionalCheckType:null===(h=u.checkType)||void 0===h?void 0:h.id,conditionalExtendsType:null===(v=u.extendsType)||void 0===v?void 0:v.id,conditionalTrueType:null!==(v=null===(h=u.resolvedTrueType)||void 0===h?void 0:h.id)&&void 0!==v?v:-1,conditionalFalseType:null!==(v=null===(h=u.resolvedFalseType)||void 0===h?void 0:h.id)&&void 0!==v?v:-1});var h=void 0,v=u.checker.getRecursionIdentity(u);v&&((h=o.get(v))||(h=o.size,o.set(v,h)));d=__assign(__assign(__assign(__assign({id:u.id,intrinsicName:u.intrinsicName,symbolName:(null==_?void 0:_.escapedName)&&S.unescapeLeadingUnderscores(_.escapedName),recursionId:h,unionTypes:!(1048576&u.flags)||null===(r=u.types)||void 0===r?void 0:r.map(function(e){return e.id}),intersectionTypes:2097152&u.flags?u.types.map(function(e){return e.id}):void 0,aliasTypeArguments:null===(h=u.aliasTypeArguments)||void 0===h?void 0:h.map(function(e){return e.id}),keyofType:!(4194304&u.flags)||null===(n=u.type)||void 0===n?void 0:n.id},g),m),y),{firstDeclaration:d&&{path:p.path,start:D(S.getLineAndCharacterOfPosition(p,d.pos)),end:D(S.getLineAndCharacterOfPosition(S.getSourceFileOfNode(d),d.end))},flags:S.Debug.formatTypeFlags(u.flags).split("|"),display:f});b.writeSync(a,JSON.stringify(d)),c<s-1&&b.writeSync(a,",\n")}b.writeSync(a,"]\n"),b.closeSync(a),S.performance.mark("endDumpTypes"),S.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(e):x[x.length-1].typesPath=void 0):S.Debug.assert(!b,"Tracing is not in progress")},e.isTracing=function(){return!!o},(t=e.Phase||(e.Phase={})).Parse="parse",t.Program="program",t.Bind="bind",t.Check="check",t.Emit="emit",e.begin=function(e,t,r){o&&c("B",e,t,r)},e.end=function(e,t,r){o&&c("E",e,t,r)},e.instant=function(e,t,r){o&&c("I",e,t,r,'"s":"g"')};var s=[];function c(e,t,r,n,i,a){void 0===a&&(a=1e3*S.timestamp()),S.Debug.assert(o),S.Debug.assert(b),S.performance.mark("beginTracing"),b.writeSync(o,',\n{"pid":1,"tid":1,"ph":"'+e+'","cat":"'+t+'","ts":'+a+',"name":"'+r+'"'),i&&b.writeSync(o,","+i),n&&b.writeSync(o,',"args":'+JSON.stringify(n)),b.writeSync(o,"}"),S.performance.mark("endTracing"),S.performance.measure("Tracing","beginTracing","endTracing")}function D(e){return{line:e.line+1,character:e.character+1}}e.push=function(e,t,r){o&&s.push({phase:e,name:t,args:r,time:1e3*S.timestamp()})},e.pop=function(){var e,t,r,n;o&&(S.Debug.assert(0<s.length),e=(n=s.pop()).phase,t=n.name,r=n.args,n=n.time,c("X",e,t,r,'"dur":'+(1e3*S.timestamp()-n),n))},e.dumpLegend=function(){i&&(S.Debug.assert(b),b.writeFileSync(i,JSON.stringify(x)))}}(S.tracing||(S.tracing={}))}(ts=ts||{}),function(e){(t=e.SyntaxKind||(e.SyntaxKind={}))[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NumericLiteral=8]="NumericLiteral",t[t.BigIntLiteral=9]="BigIntLiteral",t[t.StringLiteral=10]="StringLiteral",t[t.JsxText=11]="JsxText",t[t.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=13]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=15]="TemplateHead",t[t.TemplateMiddle=16]="TemplateMiddle",t[t.TemplateTail=17]="TemplateTail",t[t.OpenBraceToken=18]="OpenBraceToken",t[t.CloseBraceToken=19]="CloseBraceToken",t[t.OpenParenToken=20]="OpenParenToken",t[t.CloseParenToken=21]="CloseParenToken",t[t.OpenBracketToken=22]="OpenBracketToken",t[t.CloseBracketToken=23]="CloseBracketToken",t[t.DotToken=24]="DotToken",t[t.DotDotDotToken=25]="DotDotDotToken",t[t.SemicolonToken=26]="SemicolonToken",t[t.CommaToken=27]="CommaToken",t[t.QuestionDotToken=28]="QuestionDotToken",t[t.LessThanToken=29]="LessThanToken",t[t.LessThanSlashToken=30]="LessThanSlashToken",t[t.GreaterThanToken=31]="GreaterThanToken",t[t.LessThanEqualsToken=32]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=34]="EqualsEqualsToken",t[t.ExclamationEqualsToken=35]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",t[t.PlusToken=39]="PlusToken",t[t.MinusToken=40]="MinusToken",t[t.AsteriskToken=41]="AsteriskToken",t[t.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",t[t.SlashToken=43]="SlashToken",t[t.PercentToken=44]="PercentToken",t[t.PlusPlusToken=45]="PlusPlusToken",t[t.MinusMinusToken=46]="MinusMinusToken",t[t.LessThanLessThanToken=47]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=50]="AmpersandToken",t[t.BarToken=51]="BarToken",t[t.CaretToken=52]="CaretToken",t[t.ExclamationToken=53]="ExclamationToken",t[t.TildeToken=54]="TildeToken",t[t.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",t[t.BarBarToken=56]="BarBarToken",t[t.QuestionToken=57]="QuestionToken",t[t.ColonToken=58]="ColonToken",t[t.AtToken=59]="AtToken",t[t.QuestionQuestionToken=60]="QuestionQuestionToken",t[t.BacktickToken=61]="BacktickToken",t[t.EqualsToken=62]="EqualsToken",t[t.PlusEqualsToken=63]="PlusEqualsToken",t[t.MinusEqualsToken=64]="MinusEqualsToken",t[t.AsteriskEqualsToken=65]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=67]="SlashEqualsToken",t[t.PercentEqualsToken=68]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=72]="AmpersandEqualsToken",t[t.BarEqualsToken=73]="BarEqualsToken",t[t.BarBarEqualsToken=74]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=75]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=76]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=77]="CaretEqualsToken",t[t.Identifier=78]="Identifier",t[t.PrivateIdentifier=79]="PrivateIdentifier",t[t.BreakKeyword=80]="BreakKeyword",t[t.CaseKeyword=81]="CaseKeyword",t[t.CatchKeyword=82]="CatchKeyword",t[t.ClassKeyword=83]="ClassKeyword",t[t.ConstKeyword=84]="ConstKeyword",t[t.ContinueKeyword=85]="ContinueKeyword",t[t.DebuggerKeyword=86]="DebuggerKeyword",t[t.DefaultKeyword=87]="DefaultKeyword",t[t.DeleteKeyword=88]="DeleteKeyword",t[t.DoKeyword=89]="DoKeyword",t[t.ElseKeyword=90]="ElseKeyword",t[t.EnumKeyword=91]="EnumKeyword",t[t.ExportKeyword=92]="ExportKeyword",t[t.ExtendsKeyword=93]="ExtendsKeyword",t[t.FalseKeyword=94]="FalseKeyword",t[t.FinallyKeyword=95]="FinallyKeyword",t[t.ForKeyword=96]="ForKeyword",t[t.FunctionKeyword=97]="FunctionKeyword",t[t.IfKeyword=98]="IfKeyword",t[t.ImportKeyword=99]="ImportKeyword",t[t.InKeyword=100]="InKeyword",t[t.InstanceOfKeyword=101]="InstanceOfKeyword",t[t.NewKeyword=102]="NewKeyword",t[t.NullKeyword=103]="NullKeyword",t[t.ReturnKeyword=104]="ReturnKeyword",t[t.SuperKeyword=105]="SuperKeyword",t[t.SwitchKeyword=106]="SwitchKeyword",t[t.ThisKeyword=107]="ThisKeyword",t[t.ThrowKeyword=108]="ThrowKeyword",t[t.TrueKeyword=109]="TrueKeyword",t[t.TryKeyword=110]="TryKeyword",t[t.TypeOfKeyword=111]="TypeOfKeyword",t[t.VarKeyword=112]="VarKeyword",t[t.VoidKeyword=113]="VoidKeyword",t[t.WhileKeyword=114]="WhileKeyword",t[t.WithKeyword=115]="WithKeyword",t[t.ImplementsKeyword=116]="ImplementsKeyword",t[t.InterfaceKeyword=117]="InterfaceKeyword",t[t.LetKeyword=118]="LetKeyword",t[t.PackageKeyword=119]="PackageKeyword",t[t.PrivateKeyword=120]="PrivateKeyword",t[t.ProtectedKeyword=121]="ProtectedKeyword",t[t.PublicKeyword=122]="PublicKeyword",t[t.StaticKeyword=123]="StaticKeyword",t[t.YieldKeyword=124]="YieldKeyword",t[t.AbstractKeyword=125]="AbstractKeyword",t[t.AsKeyword=126]="AsKeyword",t[t.AssertsKeyword=127]="AssertsKeyword",t[t.AnyKeyword=128]="AnyKeyword",t[t.AsyncKeyword=129]="AsyncKeyword",t[t.AwaitKeyword=130]="AwaitKeyword",t[t.BooleanKeyword=131]="BooleanKeyword",t[t.ConstructorKeyword=132]="ConstructorKeyword",t[t.DeclareKeyword=133]="DeclareKeyword",t[t.GetKeyword=134]="GetKeyword",t[t.InferKeyword=135]="InferKeyword",t[t.IntrinsicKeyword=136]="IntrinsicKeyword",t[t.IsKeyword=137]="IsKeyword",t[t.KeyOfKeyword=138]="KeyOfKeyword",t[t.ModuleKeyword=139]="ModuleKeyword",t[t.NamespaceKeyword=140]="NamespaceKeyword",t[t.NeverKeyword=141]="NeverKeyword",t[t.ReadonlyKeyword=142]="ReadonlyKeyword",t[t.RequireKeyword=143]="RequireKeyword",t[t.NumberKeyword=144]="NumberKeyword",t[t.ObjectKeyword=145]="ObjectKeyword",t[t.SetKeyword=146]="SetKeyword",t[t.StringKeyword=147]="StringKeyword",t[t.SymbolKeyword=148]="SymbolKeyword",t[t.TypeKeyword=149]="TypeKeyword",t[t.UndefinedKeyword=150]="UndefinedKeyword",t[t.UniqueKeyword=151]="UniqueKeyword",t[t.UnknownKeyword=152]="UnknownKeyword",t[t.FromKeyword=153]="FromKeyword",t[t.GlobalKeyword=154]="GlobalKeyword",t[t.BigIntKeyword=155]="BigIntKeyword",t[t.OfKeyword=156]="OfKeyword",t[t.QualifiedName=157]="QualifiedName",t[t.ComputedPropertyName=158]="ComputedPropertyName",t[t.TypeParameter=159]="TypeParameter",t[t.Parameter=160]="Parameter",t[t.Decorator=161]="Decorator",t[t.PropertySignature=162]="PropertySignature",t[t.PropertyDeclaration=163]="PropertyDeclaration",t[t.MethodSignature=164]="MethodSignature",t[t.MethodDeclaration=165]="MethodDeclaration",t[t.Constructor=166]="Constructor",t[t.GetAccessor=167]="GetAccessor",t[t.SetAccessor=168]="SetAccessor",t[t.CallSignature=169]="CallSignature",t[t.ConstructSignature=170]="ConstructSignature",t[t.IndexSignature=171]="IndexSignature",t[t.TypePredicate=172]="TypePredicate",t[t.TypeReference=173]="TypeReference",t[t.FunctionType=174]="FunctionType",t[t.ConstructorType=175]="ConstructorType",t[t.TypeQuery=176]="TypeQuery",t[t.TypeLiteral=177]="TypeLiteral",t[t.ArrayType=178]="ArrayType",t[t.TupleType=179]="TupleType",t[t.OptionalType=180]="OptionalType",t[t.RestType=181]="RestType",t[t.UnionType=182]="UnionType",t[t.IntersectionType=183]="IntersectionType",t[t.ConditionalType=184]="ConditionalType",t[t.InferType=185]="InferType",t[t.ParenthesizedType=186]="ParenthesizedType",t[t.ThisType=187]="ThisType",t[t.TypeOperator=188]="TypeOperator",t[t.IndexedAccessType=189]="IndexedAccessType",t[t.MappedType=190]="MappedType",t[t.LiteralType=191]="LiteralType",t[t.NamedTupleMember=192]="NamedTupleMember",t[t.TemplateLiteralType=193]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=194]="TemplateLiteralTypeSpan",t[t.ImportType=195]="ImportType",t[t.ObjectBindingPattern=196]="ObjectBindingPattern",t[t.ArrayBindingPattern=197]="ArrayBindingPattern",t[t.BindingElement=198]="BindingElement",t[t.ArrayLiteralExpression=199]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=200]="ObjectLiteralExpression",t[t.PropertyAccessExpression=201]="PropertyAccessExpression",t[t.ElementAccessExpression=202]="ElementAccessExpression",t[t.CallExpression=203]="CallExpression",t[t.NewExpression=204]="NewExpression",t[t.TaggedTemplateExpression=205]="TaggedTemplateExpression",t[t.TypeAssertionExpression=206]="TypeAssertionExpression",t[t.ParenthesizedExpression=207]="ParenthesizedExpression",t[t.FunctionExpression=208]="FunctionExpression",t[t.ArrowFunction=209]="ArrowFunction",t[t.DeleteExpression=210]="DeleteExpression",t[t.TypeOfExpression=211]="TypeOfExpression",t[t.VoidExpression=212]="VoidExpression",t[t.AwaitExpression=213]="AwaitExpression",t[t.PrefixUnaryExpression=214]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=215]="PostfixUnaryExpression",t[t.BinaryExpression=216]="BinaryExpression",t[t.ConditionalExpression=217]="ConditionalExpression",t[t.TemplateExpression=218]="TemplateExpression",t[t.YieldExpression=219]="YieldExpression",t[t.SpreadElement=220]="SpreadElement",t[t.ClassExpression=221]="ClassExpression",t[t.OmittedExpression=222]="OmittedExpression",t[t.ExpressionWithTypeArguments=223]="ExpressionWithTypeArguments",t[t.AsExpression=224]="AsExpression",t[t.NonNullExpression=225]="NonNullExpression",t[t.MetaProperty=226]="MetaProperty",t[t.SyntheticExpression=227]="SyntheticExpression",t[t.TemplateSpan=228]="TemplateSpan",t[t.SemicolonClassElement=229]="SemicolonClassElement",t[t.Block=230]="Block",t[t.EmptyStatement=231]="EmptyStatement",t[t.VariableStatement=232]="VariableStatement",t[t.ExpressionStatement=233]="ExpressionStatement",t[t.IfStatement=234]="IfStatement",t[t.DoStatement=235]="DoStatement",t[t.WhileStatement=236]="WhileStatement",t[t.ForStatement=237]="ForStatement",t[t.ForInStatement=238]="ForInStatement",t[t.ForOfStatement=239]="ForOfStatement",t[t.ContinueStatement=240]="ContinueStatement",t[t.BreakStatement=241]="BreakStatement",t[t.ReturnStatement=242]="ReturnStatement",t[t.WithStatement=243]="WithStatement",t[t.SwitchStatement=244]="SwitchStatement",t[t.LabeledStatement=245]="LabeledStatement",t[t.ThrowStatement=246]="ThrowStatement",t[t.TryStatement=247]="TryStatement",t[t.DebuggerStatement=248]="DebuggerStatement",t[t.VariableDeclaration=249]="VariableDeclaration",t[t.VariableDeclarationList=250]="VariableDeclarationList",t[t.FunctionDeclaration=251]="FunctionDeclaration",t[t.ClassDeclaration=252]="ClassDeclaration",t[t.InterfaceDeclaration=253]="InterfaceDeclaration",t[t.TypeAliasDeclaration=254]="TypeAliasDeclaration",t[t.EnumDeclaration=255]="EnumDeclaration",t[t.ModuleDeclaration=256]="ModuleDeclaration",t[t.ModuleBlock=257]="ModuleBlock",t[t.CaseBlock=258]="CaseBlock",t[t.NamespaceExportDeclaration=259]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=260]="ImportEqualsDeclaration",t[t.ImportDeclaration=261]="ImportDeclaration",t[t.ImportClause=262]="ImportClause",t[t.NamespaceImport=263]="NamespaceImport",t[t.NamedImports=264]="NamedImports",t[t.ImportSpecifier=265]="ImportSpecifier",t[t.ExportAssignment=266]="ExportAssignment",t[t.ExportDeclaration=267]="ExportDeclaration",t[t.NamedExports=268]="NamedExports",t[t.NamespaceExport=269]="NamespaceExport",t[t.ExportSpecifier=270]="ExportSpecifier",t[t.MissingDeclaration=271]="MissingDeclaration",t[t.ExternalModuleReference=272]="ExternalModuleReference",t[t.JsxElement=273]="JsxElement",t[t.JsxSelfClosingElement=274]="JsxSelfClosingElement",t[t.JsxOpeningElement=275]="JsxOpeningElement",t[t.JsxClosingElement=276]="JsxClosingElement",t[t.JsxFragment=277]="JsxFragment",t[t.JsxOpeningFragment=278]="JsxOpeningFragment",t[t.JsxClosingFragment=279]="JsxClosingFragment",t[t.JsxAttribute=280]="JsxAttribute",t[t.JsxAttributes=281]="JsxAttributes",t[t.JsxSpreadAttribute=282]="JsxSpreadAttribute",t[t.JsxExpression=283]="JsxExpression",t[t.CaseClause=284]="CaseClause",t[t.DefaultClause=285]="DefaultClause",t[t.HeritageClause=286]="HeritageClause",t[t.CatchClause=287]="CatchClause",t[t.PropertyAssignment=288]="PropertyAssignment",t[t.ShorthandPropertyAssignment=289]="ShorthandPropertyAssignment",t[t.SpreadAssignment=290]="SpreadAssignment",t[t.EnumMember=291]="EnumMember",t[t.UnparsedPrologue=292]="UnparsedPrologue",t[t.UnparsedPrepend=293]="UnparsedPrepend",t[t.UnparsedText=294]="UnparsedText",t[t.UnparsedInternalText=295]="UnparsedInternalText",t[t.UnparsedSyntheticReference=296]="UnparsedSyntheticReference",t[t.SourceFile=297]="SourceFile",t[t.Bundle=298]="Bundle",t[t.UnparsedSource=299]="UnparsedSource",t[t.InputFiles=300]="InputFiles",t[t.JSDocTypeExpression=301]="JSDocTypeExpression",t[t.JSDocNameReference=302]="JSDocNameReference",t[t.JSDocAllType=303]="JSDocAllType",t[t.JSDocUnknownType=304]="JSDocUnknownType",t[t.JSDocNullableType=305]="JSDocNullableType",t[t.JSDocNonNullableType=306]="JSDocNonNullableType",t[t.JSDocOptionalType=307]="JSDocOptionalType",t[t.JSDocFunctionType=308]="JSDocFunctionType",t[t.JSDocVariadicType=309]="JSDocVariadicType",t[t.JSDocNamepathType=310]="JSDocNamepathType",t[t.JSDocComment=311]="JSDocComment",t[t.JSDocTypeLiteral=312]="JSDocTypeLiteral",t[t.JSDocSignature=313]="JSDocSignature",t[t.JSDocTag=314]="JSDocTag",t[t.JSDocAugmentsTag=315]="JSDocAugmentsTag",t[t.JSDocImplementsTag=316]="JSDocImplementsTag",t[t.JSDocAuthorTag=317]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=318]="JSDocDeprecatedTag",t[t.JSDocClassTag=319]="JSDocClassTag",t[t.JSDocPublicTag=320]="JSDocPublicTag",t[t.JSDocPrivateTag=321]="JSDocPrivateTag",t[t.JSDocProtectedTag=322]="JSDocProtectedTag",t[t.JSDocReadonlyTag=323]="JSDocReadonlyTag",t[t.JSDocCallbackTag=324]="JSDocCallbackTag",t[t.JSDocEnumTag=325]="JSDocEnumTag",t[t.JSDocParameterTag=326]="JSDocParameterTag",t[t.JSDocReturnTag=327]="JSDocReturnTag",t[t.JSDocThisTag=328]="JSDocThisTag",t[t.JSDocTypeTag=329]="JSDocTypeTag",t[t.JSDocTemplateTag=330]="JSDocTemplateTag",t[t.JSDocTypedefTag=331]="JSDocTypedefTag",t[t.JSDocSeeTag=332]="JSDocSeeTag",t[t.JSDocPropertyTag=333]="JSDocPropertyTag",t[t.SyntaxList=334]="SyntaxList",t[t.NotEmittedStatement=335]="NotEmittedStatement",t[t.PartiallyEmittedExpression=336]="PartiallyEmittedExpression",t[t.CommaListExpression=337]="CommaListExpression",t[t.MergeDeclarationMarker=338]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=339]="EndOfDeclarationMarker",t[t.SyntheticReferenceExpression=340]="SyntheticReferenceExpression",t[t.Count=341]="Count",t[t.FirstAssignment=62]="FirstAssignment",t[t.LastAssignment=77]="LastAssignment",t[t.FirstCompoundAssignment=63]="FirstCompoundAssignment",t[t.LastCompoundAssignment=77]="LastCompoundAssignment",t[t.FirstReservedWord=80]="FirstReservedWord",t[t.LastReservedWord=115]="LastReservedWord",t[t.FirstKeyword=80]="FirstKeyword",t[t.LastKeyword=156]="LastKeyword",t[t.FirstFutureReservedWord=116]="FirstFutureReservedWord",t[t.LastFutureReservedWord=124]="LastFutureReservedWord",t[t.FirstTypeNode=172]="FirstTypeNode",t[t.LastTypeNode=195]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=77]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=156]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=8]="FirstLiteralToken",t[t.LastLiteralToken=14]="LastLiteralToken",t[t.FirstTemplateToken=14]="FirstTemplateToken",t[t.LastTemplateToken=17]="LastTemplateToken",t[t.FirstBinaryOperator=29]="FirstBinaryOperator",t[t.LastBinaryOperator=77]="LastBinaryOperator",t[t.FirstStatement=232]="FirstStatement",t[t.LastStatement=248]="LastStatement",t[t.FirstNode=157]="FirstNode",t[t.FirstJSDocNode=301]="FirstJSDocNode",t[t.LastJSDocNode=333]="LastJSDocNode",t[t.FirstJSDocTagNode=314]="FirstJSDocTagNode",t[t.LastJSDocTagNode=333]="LastJSDocTagNode",t[t.FirstContextualKeyword=125]="FirstContextualKeyword",t[t.LastContextualKeyword=156]="LastContextualKeyword",(t=e.NodeFlags||(e.NodeFlags={}))[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.NestedNamespace=4]="NestedNamespace",t[t.Synthesized=8]="Synthesized",t[t.Namespace=16]="Namespace",t[t.OptionalChain=32]="OptionalChain",t[t.ExportContext=64]="ExportContext",t[t.ContainsThis=128]="ContainsThis",t[t.HasImplicitReturn=256]="HasImplicitReturn",t[t.HasExplicitReturn=512]="HasExplicitReturn",t[t.GlobalAugmentation=1024]="GlobalAugmentation",t[t.HasAsyncFunctions=2048]="HasAsyncFunctions",t[t.DisallowInContext=4096]="DisallowInContext",t[t.YieldContext=8192]="YieldContext",t[t.DecoratorContext=16384]="DecoratorContext",t[t.AwaitContext=32768]="AwaitContext",t[t.ThisNodeHasError=65536]="ThisNodeHasError",t[t.JavaScriptFile=131072]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=524288]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",t[t.JSDoc=4194304]="JSDoc",t[t.Ambient=8388608]="Ambient",t[t.InWithStatement=16777216]="InWithStatement",t[t.JsonFile=33554432]="JsonFile",t[t.TypeCached=67108864]="TypeCached",t[t.Deprecated=134217728]="Deprecated",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",t[t.ContextFlags=25358336]="ContextFlags",t[t.TypeExcludesFlags=40960]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(t=e.ModifierFlags||(e.ModifierFlags={}))[t.None=0]="None",t[t.Export=1]="Export",t[t.Ambient=2]="Ambient",t[t.Public=4]="Public",t[t.Private=8]="Private",t[t.Protected=16]="Protected",t[t.Static=32]="Static",t[t.Readonly=64]="Readonly",t[t.Abstract=128]="Abstract",t[t.Async=256]="Async",t[t.Default=512]="Default",t[t.Const=2048]="Const",t[t.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",t[t.Deprecated=8192]="Deprecated",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=28]="AccessibilityModifier",t[t.ParameterPropertyModifier=92]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=2270]="TypeScriptModifier",t[t.ExportDefault=513]="ExportDefault",t[t.All=11263]="All",(t=e.JsxFlags||(e.JsxFlags={}))[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",(t=e.RelationComparisonResult||(e.RelationComparisonResult={}))[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.Reported=4]="Reported",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",(t=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",(t=e.TokenFlags||(e.TokenFlags={}))[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.NumericLiteralFlags=1008]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(t=e.FlowFlags||(e.FlowFlags={}))[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var r,t=function(){};e.OperationCanceledException=t,(t=e.RefFileKind||(e.RefFileKind={}))[t.Import=0]="Import",t[t.ReferenceFile=1]="ReferenceFile",t[t.TypeReferenceDirective=2]="TypeReferenceDirective",(t=e.StructureIsReused||(e.StructureIsReused={}))[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",(t=e.ExitStatus||(e.ExitStatus={}))[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(t=e.UnionReduction||(e.UnionReduction={}))[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",(t=e.ContextFlags||(e.ContextFlags={}))[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",(t=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t[t.InReverseMappedType=33554432]="InReverseMappedType",(t=e.TypeFormatFlags||(e.TypeFormatFlags={}))[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",t[t.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(t=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(t=e.SymbolAccessibility||(e.SymbolAccessibility={}))[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",(t=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",(t=e.TypePredicateKind||(e.TypePredicateKind={}))[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",(t=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",(t=e.SymbolFlags||(e.SymbolFlags={}))[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",(t=e.EnumKind||(e.EnumKind={}))[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",(t=e.CheckFlags||(e.CheckFlags={}))[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",(t=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",(t=e.NodeCheckFlags||(e.NodeCheckFlags={}))[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=256]="SuperInstance",t[t.SuperStatic=512]="SuperStatic",t[t.ContextChecked=1024]="ContextChecked",t[t.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",t[t.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",t[t.CaptureArguments=8192]="CaptureArguments",t[t.EnumValuesComputed=16384]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",t[t.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",t[t.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",t[t.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",t[t.AssignmentsMarked=8388608]="AssignmentsMarked",t[t.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",t[t.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",t[t.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",(t=e.TypeFlags||(e.TypeFlags={}))[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109440]="Unit",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.Primitive=131068]="Primitive",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Substructure=469237760]="Substructure",t[t.Narrowable=536624127]="Narrowable",t[t.NotPrimitiveUnion=469647395]="NotPrimitiveUnion",t[t.IncludesMask=205258751]="IncludesMask",t[t.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",(t=e.ObjectFlags||(e.ObjectFlags={}))[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ContainsSpread=1024]="ContainsSpread",t[t.ReverseMapped=2048]="ReverseMapped",t[t.JsxAttributes=4096]="JsxAttributes",t[t.MarkerType=8192]="MarkerType",t[t.JSLiteral=16384]="JSLiteral",t[t.FreshLiteral=32768]="FreshLiteral",t[t.ArrayLiteral=65536]="ArrayLiteral",t[t.ObjectRestType=131072]="ObjectRestType",t[t.PrimitiveUnion=262144]="PrimitiveUnion",t[t.ContainsWideningType=524288]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=2097152]="NonInferrableType",t[t.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",t[t.IsGenericObjectType=8388608]="IsGenericObjectType",t[t.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",t[t.IsGenericIndexType=33554432]="IsGenericIndexType",t[t.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",t[t.ContainsIntersections=268435456]="ContainsIntersections",t[t.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=536870912]="IsNeverIntersection",t[t.IsClassInstanceClone=1073741824]="IsClassInstanceClone",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=1572864]="RequiresWidening",t[t.PropagatingFlags=3670016]="PropagatingFlags",t[t.ObjectTypeKindMask=2367]="ObjectTypeKindMask",(t=e.VarianceFlags||(e.VarianceFlags={}))[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",(t=e.ElementFlags||(e.ElementFlags={}))[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Variable=12]="Variable",(t=e.JsxReferenceKind||(e.JsxReferenceKind={}))[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",(t=e.SignatureKind||(e.SignatureKind={}))[t.Call=0]="Call",t[t.Construct=1]="Construct",(t=e.SignatureFlags||(e.SignatureFlags={}))[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.IsInnerCallChain=4]="IsInnerCallChain",t[t.IsOuterCallChain=8]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=16]="IsUntypedSignatureInJSFile",t[t.PropagatingFlags=19]="PropagatingFlags",t[t.CallChainFlags=12]="CallChainFlags",(t=e.IndexKind||(e.IndexKind={}))[t.String=0]="String",t[t.Number=1]="Number",(t=e.TypeMapKind||(e.TypeMapKind={}))[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Function=2]="Function",t[t.Composite=3]="Composite",t[t.Merged=4]="Merged",(t=e.InferencePriority||(e.InferencePriority={}))[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.HomomorphicMappedType=4]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=8]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=16]="MappedTypeConstraint",t[t.ContravariantConditional=32]="ContravariantConditional",t[t.ReturnType=64]="ReturnType",t[t.LiteralKeyof=128]="LiteralKeyof",t[t.NoConstraints=256]="NoConstraints",t[t.AlwaysStrict=512]="AlwaysStrict",t[t.MaxValue=1024]="MaxValue",t[t.PriorityImpliesCombination=208]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",(t=e.InferenceFlags||(e.InferenceFlags={}))[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",(t=e.Ternary||(e.Ternary={}))[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",(t=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(t=r=e.DiagnosticCategory||(e.DiagnosticCategory={}))[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",e.diagnosticCategoryName=function(e,t){return void 0===t&&(t=!0),e=r[e.category],t?e.toLowerCase():e},(t=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",(t=e.WatchFileKind||(e.WatchFileKind={}))[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.UseFsEvents=3]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory",(t=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",(t=e.PollingWatchKind||(e.PollingWatchKind={}))[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",(t=e.ModuleKind||(e.ModuleKind={}))[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ESNext=99]="ESNext",(t=e.JsxEmit||(e.JsxEmit={}))[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",(t=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",(t=e.NewLineKind||(e.NewLineKind={}))[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",(t=e.ScriptKind||(e.ScriptKind={}))[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",(t=e.ScriptTarget||(e.ScriptTarget={}))[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",(t=e.LanguageVariant||(e.LanguageVariant={}))[t.Standard=0]="Standard",t[t.JSX=1]="JSX",(t=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[t.None=0]="None",t[t.Recursive=1]="Recursive",(t=e.CharacterCodes||(e.CharacterCodes={}))[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",(t=e.Extension||(e.Extension={})).Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",(t=e.TransformFlags||(e.TransformFlags={}))[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2020=8]="ContainsES2020",t[t.ContainsES2019=16]="ContainsES2019",t[t.ContainsES2018=32]="ContainsES2018",t[t.ContainsES2017=64]="ContainsES2017",t[t.ContainsES2016=128]="ContainsES2016",t[t.ContainsES2015=256]="ContainsES2015",t[t.ContainsGenerator=512]="ContainsGenerator",t[t.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=4096]="ContainsLexicalThis",t[t.ContainsRestOrSpread=8192]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=131072]="ContainsBindingPattern",t[t.ContainsYield=262144]="ContainsYield",t[t.ContainsAwait=524288]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=2097152]="ContainsDynamicImport",t[t.ContainsClassFields=4194304]="ContainsClassFields",t[t.ContainsPossibleTopLevelAwait=8388608]="ContainsPossibleTopLevelAwait",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2020=8]="AssertES2020",t[t.AssertES2019=16]="AssertES2019",t[t.AssertES2018=32]="AssertES2018",t[t.AssertES2017=64]="AssertES2017",t[t.AssertES2016=128]="AssertES2016",t[t.AssertES2015=256]="AssertES2015",t[t.AssertGenerator=512]="AssertGenerator",t[t.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",t[t.NodeExcludes=536870912]="NodeExcludes",t[t.ArrowFunctionExcludes=547309568]="ArrowFunctionExcludes",t[t.FunctionExcludes=547313664]="FunctionExcludes",t[t.ConstructorExcludes=547311616]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",t[t.PropertyExcludes=536875008]="PropertyExcludes",t[t.ClassExcludes=536905728]="ClassExcludes",t[t.ModuleExcludes=546379776]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",t[t.ParameterExcludes=536870912]="ParameterExcludes",t[t.CatchClauseExcludes=536887296]="CatchClauseExcludes",t[t.BindingPatternExcludes=536879104]="BindingPatternExcludes",t[t.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags",(t=e.EmitFlags||(e.EmitFlags={}))[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.AdviseOnEmitNode=2]="AdviseOnEmitNode",t[t.NoSubstitution=4]="NoSubstitution",t[t.CapturesThis=8]="CapturesThis",t[t.NoLeadingSourceMap=16]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=32]="NoTrailingSourceMap",t[t.NoSourceMap=48]="NoSourceMap",t[t.NoNestedSourceMaps=64]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=384]="NoTokenSourceMaps",t[t.NoLeadingComments=512]="NoLeadingComments",t[t.NoTrailingComments=1024]="NoTrailingComments",t[t.NoComments=1536]="NoComments",t[t.NoNestedComments=2048]="NoNestedComments",t[t.HelperName=4096]="HelperName",t[t.ExportName=8192]="ExportName",t[t.LocalName=16384]="LocalName",t[t.InternalName=32768]="InternalName",t[t.Indented=65536]="Indented",t[t.NoIndentation=131072]="NoIndentation",t[t.AsyncFunctionBody=262144]="AsyncFunctionBody",t[t.ReuseTempVariableScope=524288]="ReuseTempVariableScope",t[t.CustomPrologue=1048576]="CustomPrologue",t[t.NoHoisting=2097152]="NoHoisting",t[t.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t[t.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",(t=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.Spread=1024]="Spread",t[t.SpreadArrays=2048]="SpreadArrays",t[t.Await=4096]="Await",t[t.AsyncGenerator=8192]="AsyncGenerator",t[t.AsyncDelegator=16384]="AsyncDelegator",t[t.AsyncValues=32768]="AsyncValues",t[t.ExportStar=65536]="ExportStar",t[t.ImportStar=131072]="ImportStar",t[t.ImportDefault=262144]="ImportDefault",t[t.MakeTemplateObject=524288]="MakeTemplateObject",t[t.ClassPrivateFieldGet=1048576]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=2097152]="ClassPrivateFieldSet",t[t.CreateBinding=4194304]="CreateBinding",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=4194304]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",(t=e.EmitHint||(e.EmitHint={}))[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",(t=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.Assertions=6]="Assertions",t[t.All=15]="All",(t=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(t=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal",(t=e.ListFormat||(e.ListFormat={}))[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=262656]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",(t=e.PragmaKindFlags||(e.PragmaKindFlags={}))[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(ts=ts||{}),function(_){_.directorySeparator="/";var i="\\",a="://",t=/\\/g;function r(e){return 47===e||92===e}function o(e){return 0<d(e)}function n(e){return 0!==d(e)}function s(e){return/^\.\.?($|[\\/])/.test(e)}function c(e,t){return e.length>t.length&&_.endsWith(e,t)}function u(e){return 0<e.length&&r(e.charCodeAt(e.length-1))}function l(e){return 97<=e&&e<=122||65<=e&&e<=90}function d(e){if(!e)return 0;var t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;var r=e.indexOf(47===t?_.directorySeparator:i,2);return r<0?e.length:r+1}if(l(t)&&58===e.charCodeAt(1)){var n=e.charCodeAt(2);if(47===n||92===n)return 3;if(2===e.length)return 2}r=e.indexOf(a);if(-1===r)return 0;t=r+a.length,n=e.indexOf(_.directorySeparator,t);if(-1===n)return~e.length;r=e.slice(0,r),t=e.slice(t,n);if("file"===r&&(""===t||"localhost"===t)&&l(e.charCodeAt(n+1))){t=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){e=e.charCodeAt(t+2);if(97===e||65===e)return t+3}return-1}(e,n+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(n+1)}function p(e){e=d(e);return e<0?~e:e}function f(e){var t=p(e=b(e));return t===e.length?e:(e=k(e)).slice(0,Math.max(t,e.lastIndexOf(_.directorySeparator)))}function g(e,t,r){if(p(e=b(e))===e.length)return"";e=(e=k(e)).slice(Math.max(p(e),e.lastIndexOf(_.directorySeparator)+1)),r=void 0!==t&&void 0!==r?y(e,t,r):void 0;return r?e.slice(0,e.length-r.length):e}function m(e,t,r){if(_.startsWith(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){e=e.slice(e.length-t.length);if(r(e,t))return e}}function y(e,t,r){if(t)return function(e,t,r){if("string"==typeof t)return m(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=m(e,i[n],r);if(a)return a}return""}(k(e),t,r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive);r=g(e),e=r.lastIndexOf(".");return 0<=e?r.substring(e):""}function h(e,t){return void 0===t&&(t=""),e=D(t,e),t=p(r=e),e=r.substring(0,t),(t=r.substring(t).split(_.directorySeparator)).length&&!_.lastOrUndefined(t)&&t.pop(),__spreadArrays([e],t);var r}function v(e){return 0===e.length?"":(e[0]&&N(e[0]))+e.slice(1).join(_.directorySeparator)}function b(e){return e.replace(t,_.directorySeparator)}function x(e){if(!_.some(e))return[];for(var t=[e[0]],r=1;r<e.length;r++){var n=e[r];if(n&&"."!==n){if(".."===n)if(1<t.length){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(n)}}return t}function D(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e=e&&b(e);for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=b(a),e=e&&0===p(a)?N(e)+a:a)}return e}function S(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return E(_.some(t)?D.apply(void 0,__spreadArrays([e],t)):b(e))}function T(e,t){return x(h(e,t))}function C(e,t){return v(T(e,t))}function E(e){var t=v(x(h(e=b(e))));return t&&u(e)?N(t):t}function k(e){return u(e)?e.substr(0,e.length-1):e}function N(e){return u(e)?e:e+_.directorySeparator}function A(e){return n(e)||s(e)?e:"./"+e}_.isAnyDirectorySeparator=r,_.isUrl=function(e){return d(e)<0},_.isRootedDiskPath=o,_.isDiskPathRoot=function(e){var t=d(e);return 0<t&&t===e.length},_.pathIsAbsolute=n,_.pathIsRelative=s,_.pathIsBareSpecifier=function(e){return!n(e)&&!s(e)},_.hasExtension=function(e){return _.stringContains(g(e),".")},_.fileExtensionIs=c,_.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(c(e,n[r]))return!0;return!1},_.hasTrailingDirectorySeparator=u,_.getRootLength=p,_.getDirectoryPath=f,_.getBaseFileName=g,_.getAnyExtensionFromPath=y,_.getPathComponents=h,_.getPathFromPathComponents=v,_.normalizeSlashes=b,_.reducePathComponents=x,_.combinePaths=D,_.resolvePath=S,_.getNormalizedPathComponents=T,_.getNormalizedAbsolutePath=C,_.normalizePath=E,_.getNormalizedAbsolutePathWithoutRoot=function(e,t){return 0===(t=T(e,t)).length?"":t.slice(1).join(_.directorySeparator)},_.toPath=function(e,t,r){return r(o(e)?E(e):C(e,t))},_.normalizePathAndParts=function(e){var t=x(h(e=b(e))),r=t[0],n=t.slice(1);if(n.length){t=r+n.join(_.directorySeparator);return{path:u(e)?N(t):t,parts:n}}return{path:r,parts:n}},_.removeTrailingDirectorySeparator=k,_.ensureTrailingDirectorySeparator=N,_.ensurePathIsNonModuleName=A,_.changeAnyExtension=function(e,t,r,n){return(n=void 0!==r&&void 0!==n?y(e,r,n):y(e))?e.slice(0,e.length-n.length)+(_.startsWith(t,".")?t:"."+t):e};var F=/(^|\/)\.{0,2}($|\/)/;function P(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=e.substring(0,p(e)),i=t.substring(0,p(t)),a=_.compareStringsCaseInsensitive(n,i);if(0!==a)return a;n=e.substring(n.length),i=t.substring(i.length);if(!F.test(n)&&!F.test(i))return r(n,i);for(var o=x(h(e)),s=x(h(t)),c=Math.min(o.length,s.length),u=1;u<c;u++){var l=r(o[u],s[u]);if(0!==l)return l}return _.compareValues(o.length,s.length)}function w(e,t,r,n){for(var i=x(h(e)),a=x(h(t)),o=0;o<i.length&&o<a.length;o++){var s=n(i[o]),c=n(a[o]);if(!(0===o?_.equateStringsCaseInsensitive:r)(s,c))break}if(0===o)return a;for(var t=a.slice(o),u=[];o<i.length;o++)u.push("..");return __spreadArrays([""],u,t)}function I(e,t,r){_.Debug.assert(0<p(e)==0<p(t),"Paths must either both be absolute or both be relative");var n="function"==typeof r?r:_.identity;return v(w(e,t,"boolean"==typeof r&&r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive,n))}function O(e,t,r,n,i){t=w(S(r,e),S(r,t),_.equateStringsCaseSensitive,n),n=t[0];return i&&o(n)&&(i=n.charAt(0)===_.directorySeparator?"file://":"file:///",t[0]=i+n),v(t)}_.comparePathsCaseSensitive=function(e,t){return P(e,t,_.compareStringsCaseSensitive)},_.comparePathsCaseInsensitive=function(e,t){return P(e,t,_.compareStringsCaseInsensitive)},_.comparePaths=function(e,t,r,n){return"string"==typeof r?(e=D(r,e),t=D(r,t)):"boolean"==typeof r&&(n=r),P(e,t,_.getStringComparer(n))},_.containsPath=function(e,t,r,n){if("string"==typeof r?(e=D(r,e),t=D(r,t)):"boolean"==typeof r&&(n=r),void 0===e||void 0===t)return!1;if(e===t)return!0;var i=x(h(e)),a=x(h(t));if(a.length<i.length)return!1;for(var o=n?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive,s=0;s<i.length;s++)if(!(0===s?_.equateStringsCaseInsensitive:o)(i[s],a[s]))return!1;return!0},_.startsWithDirectory=function(e,t,r){return e=r(e),t=r(t),_.startsWith(e,t+"/")||_.startsWith(e,t+"\\")},_.getPathComponentsRelativeTo=w,_.getRelativePathFromDirectory=I,_.convertToRelativePath=function(e,t,r){return o(e)?O(t,e,t,r,!1):e},_.getRelativePathFromFile=function(e,t,r){return A(I(f(e),t,r))},_.getRelativePathToDirectoryOrUrl=O,_.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;r=f(e);if(r===e)return;e=r}},_.isNodeModulesDirectory=function(e){return _.endsWith(e,"/node_modules")}}(ts=ts||{}),function(T){function C(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var E,D;function n(e){var t={};return t[D.Low]=e.Low,t[D.Medium]=e.Medium,t[D.High]=e.High,t}T.generateDjb2Hash=C,T.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=E=T.FileWatcherEventKind||(T.FileWatcherEventKind={}))[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",(e=D=T.PollingInterval||(T.PollingInterval={}))[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",T.missingFileModifiedTime=new Date(0);var e,t,o={Low:32,Medium:64,High:256},g=n(o);function r(a){var r;function i(n){var i;return e("Low"),e("Medium"),e("High"),i;function e(e){var t,r,r=(t=n,r=e,a.getEnvironmentVariable(t+"_"+r.toUpperCase()));r&&((i=i||{})[e]=Number(r))}}function e(e,t){e=i(e);return(r||e)&&n(e?__assign(__assign({},t),e):t)}a.getEnvironmentVariable&&(r=function(e,t){var r=i(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",D),g=e("TSC_WATCH_POLLINGCHUNKSIZE",o)||g,T.unchangedPollThresholds=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",o)||T.unchangedPollThresholds)}function S(t){var i=[],u=[],r=e(D.Low),n=e(D.Medium),a=e(D.High);return function(e,t,r){var n={fileName:e,callback:t,unchangedPolls:0,mtime:f(e)};return i.push(n),_(n,r),{close:function(){n.isClosed=!0,T.unorderedRemoveItem(i,n)}}};function e(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function o(e){e.pollIndex=c(e,e.pollingInterval,e.pollIndex,g[e.pollingInterval]),e.length?p(e.pollingInterval):(T.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function s(e){c(u,D.Low,0,u.length),o(e),!e.pollScheduled&&u.length&&p(D.Low)}function c(e,t,r,n){for(var i=e.length,a=r,o=0;o<n&&0<i;++r===e.length&&(a<r&&(e.length=a),a=r=0),i--){var s,c=e[r];c&&(c.isClosed?e[r]=void 0:(o++,s=m(c,f(c.fileName)),c.isClosed?e[r]=void 0:s?(c.unchangedPolls=0,e!==u&&(e[r]=void 0,s=c,u.push(s),d(D.Low))):c.unchangedPolls!==T.unchangedPollThresholds[t]?c.unchangedPolls++:e===u?(c.unchangedPolls=1,e[r]=void 0,_(c,D.Low)):t!==D.High&&(c.unchangedPolls++,e[r]=void 0,_(c,t===D.Low?D.Medium:D.High)),e[r]&&(a<r&&(e[a]=c,e[r]=void 0),a++)))}return r}function l(e){switch(e){case D.Low:return r;case D.Medium:return n;case D.High:return a}}function _(e,t){l(t).push(e),d(t)}function d(e){l(e).pollScheduled||p(e)}function p(e){l(e).pollScheduled=t.setTimeout(e===D.Low?s:o,e,l(e))}function f(e){return t.getModifiedTime(e)||T.missingFileModifiedTime}}function k(s,e){var c=T.createMultiMap(),u=new T.Map,l=T.createGetCanonicalFileName(e);return function(e,t,r,n){var i=l(e);c.add(i,t);var a=T.getDirectoryPath(i)||".",o=u.get(a)||function(a,e,t){t=s(a,1,function(e,t){if(T.isString(t)){var r=T.getNormalizedAbsolutePath(t,a),t=r&&c.get(l(r));if(t)for(var n=0,i=t;n<i.length;n++)(0,i[n])(r,E.Changed)}},!1,D.Medium,t);return t.referenceCount=0,u.set(e,t),t}(T.getDirectoryPath(e)||".",a,n);return o.referenceCount++,{close:function(){1===o.referenceCount?(o.close(),u.delete(a)):o.referenceCount--,c.remove(i,t)}}}}function N(o,e){var s=new T.Map,c=T.createMultiMap(),u=T.createGetCanonicalFileName(e);return function(e,t,r,n){var i=u(e),a=s.get(i);return a?a.refCount++:s.set(i,{watcher:o(e,function(t,r){return T.forEach(c.get(i),function(e){return e(t,r)})},r,n),refCount:1}),c.add(i,t),{close:function(){var e=T.Debug.checkDefined(s.get(i));c.remove(i,t),e.refCount--,e.refCount||(s.delete(i),T.closeFileWatcherOf(e))}}}}function m(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,i(r,n)),!0)}function i(e,t){return 0===e?E.Created:0===t?E.Deleted:E.Changed}function A(o){var s,c=new T.Map,u=T.createMultiMap(),l=new T.Map,_=T.getStringComparer(!o.useCaseSensitiveFileNames),d=T.createGetCanonicalFileName(o.useCaseSensitiveFileNames);return function(e,t,r,n){return r?p(e,n,t):o.watchDirectory(e,t,r,n)};function p(t,r,e){var n=d(t),i=c.get(n);i?i.refCount++:(i={watcher:o.watchDirectory(t,function(e){y(e)||(null!=r&&r.synchronousWatchDirectory?(f(n,e),m(t,n,r)):function(e,t,r,n){var i=c.get(t);if(i&&o.directoryExists(e))return function(e,t,r,n){var i=l.get(t);i?i.fileNames.push(r):l.set(t,{dirName:e,options:n,fileNames:[r]}),s&&(o.clearTimeout(s),s=void 0),s=o.setTimeout(g,1e3)}(e,t,r,n),0;f(t,r),function e(t){if(!t)return;var r=t.childWatches;t.childWatches=T.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),e(c.get(d(a.dirName)))}}(i)}(t,n,e,r))},!1,r),refCount:1,childWatches:T.emptyArray},c.set(n,i),m(t,n,r));var a=e&&{dirName:t,callback:e};return a&&u.add(n,a),{dirName:t,close:function(){var e=T.Debug.checkDefined(c.get(n));a&&u.remove(n,a),e.refCount--,e.refCount||(c.delete(n),T.closeFileWatcherOf(e),e.childWatches.forEach(T.closeFileWatcher))}}}function f(n,e,i){var a,o;T.isString(e)?a=e:o=e,u.forEach(function(e,t){var r;o&&!0===o.get(t)||(t===n||T.startsWith(n,t)&&n[t.length]===T.directorySeparator)&&(o?i?(r=o.get(t))?r.push.apply(r,i):o.set(t,i.slice()):o.set(t,!0):e.forEach(function(e){return(0,e.callback)(a)}))})}function g(){s=void 0,T.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+l.size);for(var e=T.timestamp(),n=new T.Map;!s&&l.size;){var t=l.entries().next(),r=t.value,i=r[0],a=r[1],o=a.dirName,r=a.options,a=a.fileNames,t=t.done;T.Debug.assert(!t),l.delete(i);r=m(o,i,r);f(i,n,r?void 0:a)}T.sysLog("sysLog:: invokingWatchers:: "+(T.timestamp()-e)+"ms:: "+l.size),u.forEach(function(e,t){var r=n.get(t);r&&e.forEach(function(e){var t=e.callback,e=e.dirName;T.isArray(r)?r.forEach(t):t(e)})});e=T.timestamp()-e;T.sysLog("sysLog:: Elapsed "+e+"ms:: onTimerToUpdateChildWatches:: "+l.size+" "+s)}function m(t,e,r){var n,i=c.get(e);if(!i)return!1;e=T.enumerateInsertsAndDeletes(o.directoryExists(t)?T.mapDefined(o.getAccessibleSortedChildDirectories(t),function(e){e=T.getNormalizedAbsolutePath(e,t);return y(e)||0!==_(e,T.normalizePath(o.realpath(e)))?void 0:e}):T.emptyArray,i.childWatches,function(e,t){return _(e,t.dirName)},function(e){a(p(e,r))},T.closeFileWatcher,a);return i.childWatches=n||T.emptyArray,e;function a(e){(n=n||[]).push(e)}}function y(r){return T.some(T.ignoredPaths,function(e){return t=r,e=e,!!T.stringContains(t,e)||!o.useCaseSensitiveFileNames&&T.stringContains(d(t),e);var t})}}function F(r){return function(e,t){return r(t===E.Changed?"change":"rename","")}}function P(r,n){return function(e,t){"rename"===e&&n(t?T.normalizePath(T.combinePaths(r,t)):r)}}function w(e){var t,a,i,o=e.pollingWatchFile,r=e.getModifiedTime,s=e.setTimeout,c=e.clearTimeout,u=e.fsWatch,l=e.fileExists,_=e.useCaseSensitiveFileNames,d=e.fsSupportsRecursiveFsWatch,p=e.directoryExists,f=e.getAccessibleSortedChildDirectories,g=e.realpath,m=e.tscWatchFile,y=e.useNonPollingWatchers,h=e.tscWatchDirectory;return{watchFile:function(e,t,r,n){n=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(m){case"PriorityPollingInterval":return{watchFile:T.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:T.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return b(T.WatchFileKind.UseFsEvents,T.PollingWatchKind.PriorityInterval,e);case"UseFsEventsWithFallbackDynamicPolling":return b(T.WatchFileKind.UseFsEvents,T.PollingWatchKind.DynamicPriority,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?b(T.WatchFileKind.UseFsEventsOnParentDirectory,T.PollingWatchKind.PriorityInterval,e):{watchFile:T.WatchFileKind.FixedPollingInterval}}}(n,y);var i=T.Debug.checkDefined(n.watchFile);switch(i){case T.WatchFileKind.FixedPollingInterval:return o(e,t,D.Low,void 0);case T.WatchFileKind.PriorityPollingInterval:return o(e,t,r,void 0);case T.WatchFileKind.DynamicPriorityPolling:return v()(e,t,r,void 0);case T.WatchFileKind.UseFsEvents:return u(e,0,function(t,r,n){return function(e){r(t,"rename"===e?n(t)?E.Created:E.Deleted:E.Changed)}}(e,t,l),!1,r,T.getFallbackOptions(n));case T.WatchFileKind.UseFsEventsOnParentDirectory:return(a=a||k(u,_))(e,t,r,T.getFallbackOptions(n));default:T.Debug.assertNever(i)}},watchDirectory:function(e,t,r,n){if(d)return u(e,1,P(e,t),r,D.Medium,T.getFallbackOptions(n));i=i||A({useCaseSensitiveFileNames:_,directoryExists:p,getAccessibleSortedChildDirectories:f,watchDirectory:x,realpath:g,setTimeout:s,clearTimeout:c});return i(e,t,r,n)}};function v(){return t=t||S({getModifiedTime:r,setTimeout:s})}function b(e,t,r){r=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function x(e,t,r,n){T.Debug.assert(!r),n=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(h){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:T.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:T.WatchDirectoryKind.DynamicPriorityPolling};default:var t=null==e?void 0:e.fallbackPolling;return{watchDirectory:T.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==t?t:void 0}}}(n);var i=T.Debug.checkDefined(n.watchDirectory);switch(i){case T.WatchDirectoryKind.FixedPollingInterval:return o(e,function(){return t(e)},D.Medium,void 0);case T.WatchDirectoryKind.DynamicPriorityPolling:return v()(e,function(){return t(e)},D.Medium,void 0);case T.WatchDirectoryKind.UseFsEvents:return u(e,1,P(e,t),r,D.Medium,T.getFallbackOptions(n));default:T.Debug.assertNever(i)}}}function a(n){var i=n.writeFile;n.writeFile=function(e,t,r){return T.writeFileEnsuringDirectories(e,t,!!r,function(e,t,r){return i.call(n,e,t,r)},function(e){return n.createDirectory(e)},function(e){return n.directoryExists(e)})}}function I(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}T.unchangedPollThresholds=n(o),T.setCustomPollingValues=r,T.createDynamicPriorityPollingWatchFile=S,T.createSingleFileWatcherPerName=N,T.onWatchedFileStat=m,T.getFileWatcherEventKind=i,T.ignoredPaths=["/node_modules/.","/.git","/.#"],T.sysLog=T.noop,T.setSysLog=function(e){T.sysLog=e},T.createDirectoryWatcherSupportingRecursive=A,(e=T.FileSystemEntryKind||(T.FileSystemEntryKind={}))[e.File=0]="File",e[e.Directory=1]="Directory",T.createFileWatcherCallback=F,T.createSystemWatchFunctions=w,T.patchWriteFileEnsuringDirectory=a,T.getNodeMajorVersion=I,T.sys=("undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(t=function(){var r,i,u=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,g=require("fs"),a=require("path"),e=require("os");try{r=require("crypto")}catch(e){r=void 0}var o="./profile.cpuprofile",n=require("buffer").Buffer,t=4<=I(),m="linux"===process.platform||"darwin"===process.platform,s=e.platform(),l="win32"!==s&&"win64"!==s&&!f(function(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}(__filename)),y=t&&("win32"===process.platform||"darwin"===process.platform),h=(t=w({pollingWatchFile:N(function(n,i,e){var a;return g.watchFile(n,{persistent:!0,interval:e},t),{close:function(){return g.unwatchFile(n,t)}};function t(e,t){var r=0==+t.mtime||a===E.Deleted;if(0==+e.mtime){if(r)return;a=E.Deleted}else if(r)a=E.Created;else{if(+e.mtime==+t.mtime)return;a=E.Changed}i(n,a)}},l),getModifiedTime:D,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(r,n,i,t,a,o){var s,c,u;m&&(c=r.substr(r.lastIndexOf(T.directorySeparator)),u=c.slice(T.directorySeparator.length));var l=(v(r,n)?d:f)();return{close:function(){l.close(),l=void 0}};function _(e){T.sysLog("sysLog:: "+r+":: Changing watcher to "+(e===d?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),l&&(l.close(),l=e())}function d(){void 0===s&&(s=y?{persistent:!0,recursive:!!t}:{persistent:!0});try{var e=g.watch(r,s,m?p:i);return e.on("error",function(){return _(f)}),e}catch(e){return T.sysLog("sysLog:: "+r+":: Changing to fsWatchFile"),h(r,F(i),a,o)}}function p(e,t){return"rename"!==e||t&&t!==u&&t.lastIndexOf(c)!==t.length-c.length||v(r,n)?i(e,t):_(f)}function f(){return h(r,function(e,t){t===E.Created&&v(r,n)&&_(d)},a,o)}},useCaseSensitiveFileNames:l,fileExists:f,fsSupportsRecursiveFsWatch:y,directoryExists:b,getAccessibleSortedChildDirectories:function(e){return p(e).directories},realpath:x,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY})).watchFile,t=t.watchDirectory,c={args:process.argv.slice(2),newLine:e.EOL,useCaseSensitiveFileNames:l,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(e,t){T.perfLogger.logStartReadFile(e);e=function(e){var t;try{t=g.readFileSync(e)}catch(e){return}var r=t.length;if(2<=r&&254===t[0]&&255===t[1]){r&=-2;for(var n=0;n<r;n+=2){var i=t[n];t[n]=t[n+1],t[n+1]=i}return t.toString("utf16le",2)}if(2<=r&&255===t[0]&&254===t[1])return t.toString("utf16le",2);if(3<=r&&239===t[0]&&187===t[1]&&191===t[2])return t.toString("utf8",3);return t.toString("utf8")}(e);return T.perfLogger.logStopReadFile(),e},writeFile:function(e,t,r){T.perfLogger.logEvent("WriteFile: "+e),r&&(t="\ufeff"+t);var n;try{n=g.openSync(e,"w"),g.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&g.closeSync(n)}},watchFile:h,watchDirectory:t,resolvePath:function(e){return a.resolve(e)},fileExists:f,directoryExists:b,createDirectory:function(e){if(!c.directoryExists(e))try{g.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(e){return p(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(e,t,r,n,i){return T.matchFiles(e,t,r,n,l,process.cwd(),i,p,x)},getModifiedTime:D,setModifiedTime:function(e,t){try{g.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return g.unlinkSync(e)}catch(e){return}},createHash:r?S:C,createSHA256Hash:r?S:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=g.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){_(function(){return process.exit(e)})},enableCPUProfiler:function(e,t){if(i)return t(),!1;var r=require("inspector");if(!r||!r.Session)return t(),!1;var n=new r.Session;return n.connect(),n.post("Profiler.enable",function(){n.post("Profiler.start",function(){i=n,o=e,t()})}),!0},disableCPUProfiler:_,realpath:x,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||T.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:d,base64decode:function(e){return d(e,"base64").toString("utf8")},base64encode:function(e){return d(e).toString("base64")},require:function(e,t){try{var r=T.resolveJSModule(t,e,c);return{module:require(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return c;function _(r){if(i&&"stopping"!==i){var n=i;return i.post("Profiler.stop",function(e,t){t=t.profile;if(!e){try{g.statSync(o).isDirectory()&&(o=a.join(o,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(e){}try{g.mkdirSync(a.dirname(o),{recursive:!0})}catch(e){}g.writeFileSync(o,JSON.stringify(function(e){for(var t=0,r=new T.Map,n=T.normalizeSlashes(__dirname),i="file://"+(1===T.getRootLength(n)?"":"/")+n,a=0,o=e.nodes;a<o.length;a++){var s,c=o[a];c.callFrame.url&&(s=T.normalizeSlashes(c.callFrame.url),T.containsPath(i,s,l)?c.callFrame.url=T.getRelativePathToDirectoryOrUrl(i,s,i,T.createGetCanonicalFileName(l),!0):u.test(s)||(c.callFrame.url=(r.has(s)?r:r.set(s,"external"+t+".js")).get(s),t++))}return e}(t)))}i=void 0,n.disconnect(),r()}),i="stopping",!0}return r(),!1}function d(e,t){return n.from&&n.from!==Int8Array.from?n.from(e,t):new n(e,t)}function p(e){T.perfLogger.logEvent("ReadDir: "+(e||"."));try{for(var t=g.readdirSync(e||".",{withFileTypes:!0}),r=[],n=[],i=0,a=t;i<a.length;i++){var o=a[i],s="string"==typeof o?o:o.name;if("."!==s&&".."!==s){var c=void 0;if("string"==typeof o||o.isSymbolicLink()){var u=T.combinePaths(e,s);try{c=g.statSync(u)}catch(e){continue}}else c=o;c.isFile()?r.push(s):c.isDirectory()&&n.push(s)}}return r.sort(),n.sort(),{files:r,directories:n}}catch(e){return T.emptyFileSystemEntries}}function v(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=g.statSync(e);switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function f(e){return v(e,0)}function b(e){return v(e,1)}function x(t){try{return g.realpathSync(t)}catch(e){return t}}function D(e){try{return g.statSync(e).mtime}catch(e){return}}function S(e){var t=r.createHash("sha256");return t.update(e),t.digest("hex")}}()),t&&a(t),t),T.sys&&T.sys.getEnvironmentVariable&&(r(T.sys),T.Debug.setAssertionLevel(/^development$/i.test(T.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),T.sys&&T.sys.debugMode&&(T.Debug.isDebugging=!0)}(ts=ts||{}),function(e){function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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_either_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_either_string_or_number_1023","An index signature parameter type must be either 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(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:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(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:t(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:t(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:t(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:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(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:t(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:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(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:t(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:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(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:t(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:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(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:t(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:t(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:t(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:t(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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(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:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(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:t(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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(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:t(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:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(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:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(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:t(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:t(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:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(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:t(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:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:t(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:t(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:t(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:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(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:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(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:t(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:t(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:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(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:t(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:t(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:t(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:t(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:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(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:t(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:t(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:t(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:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(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:t(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:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(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:t(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:t(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:t(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:t(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_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(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:t(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:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(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:t(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:t(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:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(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_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(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:t(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:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(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:t(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:t(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:t(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:t(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:t(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:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(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:t(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:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(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:t(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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(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:t(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:t(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:t(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:t(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:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(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:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(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:t(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:t(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:t(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:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(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:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(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:t(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:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(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:t(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:t(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:t(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:t(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:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(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:t(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:t(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:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(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:t(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:t(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:t(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:t(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:t(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:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(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:t(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:t(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:t(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:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(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:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the `lib` compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'."),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other:t(2622,e.DiagnosticCategory.Error,"Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other_2622","Element at index {0} is variadic in one type but not in the other."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(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:t(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:t(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:t(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:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(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:t(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:t(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:t(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:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),Import_declaration_0_is_using_private_name_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:t(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:t(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:t(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:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(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:t(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:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(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:t(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:t(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:t(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:t(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:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option `--tsBuildInfoFile` is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a `...` before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(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:t(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:t(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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(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:t(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:t(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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(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:t(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:t(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:t(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:t(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_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(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:t(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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(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:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(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:t(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:t(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:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(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:t(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:t(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:t(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:t(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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(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:t(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:t(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:t(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:t(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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(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:t(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:t(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:t(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:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(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:t(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:t(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:t(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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(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:t(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:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(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:t(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:t(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:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(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:t(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:t(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:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(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:t(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:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(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:t(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:t(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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(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:t(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:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(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:t(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:t(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:t(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:t(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:t(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:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(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:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the `jsx` and `jsxs` factory functions from. eg, react"),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Include_undefined_in_index_signature_results:t(6800,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6800","Include 'undefined' in index signature results"),Variable_0_implicitly_has_an_1_type:t(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:t(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:t(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:t(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:t(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:t(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:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(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:t(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:t(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:t(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:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(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:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),You_cannot_rename_this_element:t(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:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(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:t(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:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(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:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(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:t(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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(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:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),A_method_cannot_be_named_with_a_private_identifier:t(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:t(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name.")}}(ts=ts||{}),function(V){function e(e){return 78<=e}V.tokenIsIdentifierOrKeyword=e,V.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||78<=e};var t=((t={abstract:125,any:128,as:126,asserts:127,bigint:155,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84}).constructor=132,t.debugger=86,t.declare=133,t.default=87,t.delete=88,t.do=89,t.else=90,t.enum=91,t.export=92,t.extends=93,t.false=94,t.finally=95,t.for=96,t.from=153,t.function=97,t.get=134,t.if=98,t.implements=116,t.import=99,t.in=100,t.infer=135,t.instanceof=101,t.interface=117,t.intrinsic=136,t.is=137,t.keyof=138,t.let=118,t.module=139,t.namespace=140,t.never=141,t.new=102,t.null=103,t.number=144,t.object=145,t.package=119,t.private=120,t.protected=121,t.public=122,t.readonly=142,t.require=143,t.global=154,t.return=104,t.set=146,t.static=123,t.string=147,t.super=105,t.switch=106,t.symbol=148,t.this=107,t.throw=108,t.true=109,t.try=110,t.type=149,t.typeof=111,t.undefined=150,t.unique=151,t.unknown=152,t.var=112,t.void=113,t.while=114,t.with=115,t.yield=124,t.async=129,t.await=130,t.of=156,t),K=new V.Map(V.getEntries(t)),r=new V.Map(V.getEntries(__assign(__assign({},t),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),n=[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],i=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,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],a=[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],s=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],c=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],q=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,W=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function u(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[1+r])return!0;e<t[r]?i=r:n=2+r}return!1}function l(e,t){return u(e,2<=t?s:1===t?a:n)}V.isUnicodeIdentifierStart=l;var _,d=(_=[],r.forEach(function(e,t){_[e]=t}),_);function p(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:127<i&&X(i)&&(t.push(n),n=r)}}return t.push(n),t}function f(e,t,r,n,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:V.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+e.length+" , line map is correct? "+(void 0!==n?V.arraysEqual(e,p(n)):"unknown")));r=e[t]+r;return i?r>e[t+1]?e[t+1]:"string"==typeof n&&r>n.length?n.length:r:(t<e.length-1?V.Debug.assert(r<e[t+1]):void 0!==n&&V.Debug.assert(r<=n.length),r)}function g(e){return e.lineMap||(e.lineMap=p(e.text))}function m(e,t){var r=y(e,t);return{line:r,character:t-e[r]}}function y(e,t,r){r=V.binarySearch(e,t,V.identity,V.compareValues,r);return r<0&&(r=~r-1,V.Debug.assert(-1!==r,"position cannot precede the beginning of the file")),r}function H(e){return G(e)||X(e)}function G(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function X(e){return 10===e||13===e||8232===e||8233===e}function Q(e){return 48<=e&&e<=57}function Y(e){return Q(e)||65<=e&&e<=70||97<=e&&e<=102}function Z(e){return 48<=e&&e<=55}V.tokenToString=function(e){return d[e]},V.stringToToken=function(e){return r.get(e)},V.computeLineStarts=p,V.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):f(g(e),t,r,e.text,n)},V.computePositionOfLineAndCharacter=f,V.getLineStarts=g,V.computeLineAndCharacterOfPosition=m,V.computeLineOfPosition=y,V.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=g(e),i=Math.min(t,r),r=(e=i===r)?t:r,i=y(n,i),r=y(n,r,i);return e?i-r:r-i},V.getLineAndCharacterOfPosition=function(e,t){return m(g(e),t)},V.isWhiteSpaceLike=H,V.isWhiteSpaceSingleLine=G,V.isLineBreak=X,V.isOctalDigit=Z,V.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return 127<r}},V.skipTrivia=function(e,t,r,n){if(void 0===n&&(n=!1),V.positionIsSynthesized(t))return t;for(;;){var i=e.charCodeAt(t);switch(i){case 13:10===e.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(n)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!X(e.charCodeAt(t));)t++;continue}if(42!==e.charCodeAt(t+1))break;for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}continue;case 60:case 124:case 61:case 62:if($(e,t)){t=ee(e,t);continue}break;case 35:if(0===t&&te(e,t)){t=re(e,t);continue}break;default:if(127<i&&H(i)){t++;continue}}return t}};var h="<<<<<<<".length;function $(e,t){if(V.Debug.assert(0<=t),0===t||X(e.charCodeAt(t-1))){var r=e.charCodeAt(t);if(t+h<e.length){for(var n=0;n<h;n++)if(e.charCodeAt(t+n)!==r)return;return 61===r||32===e.charCodeAt(t+h)}}}function ee(e,t,r){r&&r(V.Diagnostics.Merge_conflict_marker_encountered,t,h);var n=e.charCodeAt(t),i=e.length;if(60===n||62===n)for(;t<i&&!X(e.charCodeAt(t));)t++;else for(V.Debug.assert(124===n||61===n);t<i;){var a=e.charCodeAt(t);if((61===a||62===a)&&a!==n&&$(e,t))break;t++}return t}var v=/^#!.*/;function te(e,t){return V.Debug.assert(0===t),v.test(e)}function re(e,t){return t+=v.exec(e)[0].length}function b(e,t,r,n,i,a,o){var s,c,u,l,_=!1,d=n,p=o;0===r&&(d=!0,(o=T(t))&&(r=o.length));e:for(;0<=r&&r<t.length;){var f=t.charCodeAt(r);switch(f){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,_&&(l=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),m=!1;if(47!==g&&42!==g)break e;var y=47===g?2:3,h=r;if(r+=2,47===g)for(;r<t.length;){if(X(t.charCodeAt(r))){m=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(_&&(p=i(s,c,u,l,a,p),!e&&p))return p;s=h,c=r,u=y,l=m,_=!0}continue;default:if(127<f&&H(f)){_&&X(f)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function x(e,t,r,n,i){return b(!0,e,t,!1,r,n,i)}function D(e,t,r,n,i){return b(!0,e,t,!0,r,n,i)}function S(e,t,r,n,i,a){return(a=a||[]).push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function T(e){e=v.exec(e);if(e)return e[0]}function ne(e,t){return 65<=e&&e<=90||97<=e&&e<=122||36===e||95===e||127<e&&l(e,t)}function ie(e,t,r){return 65<=e&&e<=90||97<=e&&e<=122||48<=e&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||127<e&&u(e,2<=(t=t)?c:1===t?o:i)}V.isShebangTrivia=te,V.scanShebangTrivia=re,V.forEachLeadingCommentRange=function(e,t,r,n){return b(!1,e,t,!1,r,n)},V.forEachTrailingCommentRange=function(e,t,r,n){return b(!1,e,t,!0,r,n)},V.reduceEachLeadingCommentRange=x,V.reduceEachTrailingCommentRange=D,V.getLeadingCommentRanges=function(e,t){return x(e,t,S,void 0,void 0)},V.getTrailingCommentRanges=function(e,t){return D(e,t,S,void 0,void 0)},V.getShebang=T,V.isIdentifierStart=ne,V.isIdentifierPart=ie,V.isIdentifierText=function(e,t,r){var n=ae(e,0);if(!ne(n,t))return!1;for(var i=oe(n);i<e.length;i+=oe(n))if(!ie(n=ae(e,i),t,r))return!1;return!0},V.createScanner=function(o,s,c,e,i,t,r){void 0===c&&(c=0);var _,d,p,f,g,m,y,h,v=e,u=0;z(v,t,r);var n={getStartPos:function(){return p},getTextPos:function(){return _},getToken:function(){return g},getTokenPos:function(){return f},getTokenText:function(){return v.substring(f,_)},getTokenValue:function(){return m},hasUnicodeEscape:function(){return 0!=(1024&y)},hasExtendedUnicodeEscape:function(){return 0!=(8&y)},hasPrecedingLineBreak:function(){return 0!=(1&y)},hasPrecedingJSDocComment:function(){return 0!=(2&y)},isIdentifier:function(){return 78===g||115<g},isReservedWord:function(){return 80<=g&&g<=115},isUnterminated:function(){return 0!=(4&y)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&y},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===g){if(62===v.charCodeAt(_))return g=62===v.charCodeAt(_+1)?61===v.charCodeAt(_+2)?(_+=3,71):(_+=2,49):61===v.charCodeAt(_+1)?(_+=2,70):(_++,48);if(61===v.charCodeAt(_))return _++,g=33}return g},reScanAsteriskEqualsToken:function(){return V.Debug.assert(65===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),_=f+1,g=62},reScanSlashToken:function(){if(43===g||67===g){for(var e=f+1,t=!1,r=!1;;){if(d<=e){y|=4,l(V.Diagnostics.Unterminated_regular_expression_literal);break}var n=v.charCodeAt(e);if(X(n)){y|=4,l(V.Diagnostics.Unterminated_regular_expression_literal);break}if(t)t=!1;else{if(47===n&&!r){e++;break}91===n?r=!0:92===n?t=!0:93===n&&(r=!1)}e++}for(;e<d&&ie(v.charCodeAt(e),o);)e++;_=e,m=v.substring(f,_),g=13}return g},reScanTemplateToken:function(e){return V.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),_=f,g=E(e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return _=f,g=E(!0)},scanJsxIdentifier:function(){if(78<=g)for(;_<d;)if(45!==v.charCodeAt(_)){var e=_;if(m+=w(),_===e)break}else m+="-",_++;return g},scanJsxAttributeValue:j,reScanJsxAttributeValue:function(){return _=f=p,j()},reScanJsxToken:function(){return _=f=p,g=B()},reScanLessThanToken:function(){return 47!==g?g:(_=f+1,g=29)},reScanQuestionToken:function(){return V.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),_=f+1,g=57},scanJsxToken:B,scanJsDocToken:function(){if(p=f=_,y=0,d<=_)return g=1;var e=ae(v,_);switch(_+=oe(e),e){case 9:case 11:case 12:case 32:for(;_<d&&G(v.charCodeAt(_));)_++;return g=5;case 64:return g=59;case 13:10===v.charCodeAt(_)&&_++;case 10:return y|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=62;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 92:_--;var t=P();if(0<=t&&ne(t,o))return _+=3,y|=8,m=A()+w(),g=I();t=F();return 0<=t&&ne(t,o)?(_+=6,y|=1024,m=String.fromCharCode(t)+w(),g=I()):(_++,g=0)}{if(ne(e,o)){for(var r=e;_<d&&ie(r=ae(v,_),o)||45===v.charCodeAt(_);)_+=oe(r);return m=v.substring(f,_),92===r&&(m+=w()),g=I()}return g=0}},scan:L,getText:function(){return v},clearCommentDirectives:function(){h=void 0},setText:z,setScriptTarget:function(e){o=e},setLanguageVariant:function(e){c=e},setOnError:function(e){i=e},setTextPos:U,setInJSDocType:function(e){u+=e?1:-1},tryScan:function(e){return J(e,!1)},lookAhead:function(e){return J(e,!0)},scanRange:function(e,t,r){var n=d,i=_,a=p,o=f,s=g,c=m,u=y,l=h;z(v,e,t);r=r();return d=n,_=i,p=a,f=o,g=s,m=c,y=u,h=l,r}};return V.Debug.isDebugging&&Object.defineProperty(n,"__debugShowCurrentPositionInText",{get:function(){var e=n.getText();return e.slice(0,n.getStartPos())+"â•‘"+e.slice(n.getStartPos())}}),n;function l(e,t,r){var n;void 0===t&&(t=_),i&&(n=_,_=t,i(e,r||0),_=n)}function b(){for(var e=_,t=!1,r=!1,n="";;){var i=v.charCodeAt(_);if(95!==i){if(!Q(i))break;r=!(t=!0),_++}else y|=512,t?(r=!(t=!1),n+=v.substring(e,_)):l(r?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),e=++_}return 95===v.charCodeAt(_-1)&&l(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),n+v.substring(e,_)}function x(){var e,t,r=_,n=b();46===v.charCodeAt(_)&&(_++,e=b());var i,a,o=_;if(69!==v.charCodeAt(_)&&101!==v.charCodeAt(_)||(_++,y|=16,43!==v.charCodeAt(_)&&45!==v.charCodeAt(_)||_++,i=_,(a=b())?(t=v.substring(o,i)+a,o=_):l(V.Diagnostics.Digit_expected)),512&y?(s=n,e&&(s+="."+e),t&&(s+=t)):s=v.substring(r,o),void 0!==e||16&y)return D(r,void 0===e&&!!(16&y)),{type:8,value:""+ +s};m=s;var s=M();return D(r),{type:s,value:m}}function D(e,t){var r,n;ne(ae(v,_),o)&&(r=_,1===(n=w().length)&&"n"===v[r]?l(t?V.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:V.Diagnostics.A_bigint_literal_must_be_an_integer,e,r-e+1):(l(V.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,n),_=r))}function a(e,t){t=T(e,!1,t);return t?parseInt(t,16):-1}function S(e,t){return T(e,!0,t)}function T(e,t,r){for(var n=[],i=!1,a=!1;n.length<e||t;){var o=v.charCodeAt(_);if(r&&95===o)y|=512,i?a=!(i=!1):l(a?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),_++;else{if(i=r,65<=o&&o<=70)o+=32;else if(!(48<=o&&o<=57||97<=o&&o<=102))break;n.push(o),_++,a=!1}}return n.length<e&&(n=[]),95===v.charCodeAt(_-1)&&l(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),String.fromCharCode.apply(String,n)}function C(e){void 0===e&&(e=!1);for(var t=v.charCodeAt(_),r="",n=++_;;){if(d<=_){r+=v.substring(n,_),y|=4,l(V.Diagnostics.Unterminated_string_literal);break}var i=v.charCodeAt(_);if(i===t){r+=v.substring(n,_),_++;break}if(92!==i||e){if(X(i)&&!e){r+=v.substring(n,_),y|=4,l(V.Diagnostics.Unterminated_string_literal);break}_++}else r+=v.substring(n,_),r+=k(),n=_}return r}function E(e){for(var t,r=96===v.charCodeAt(_),n=++_,i="";;){if(d<=_){i+=v.substring(n,_),y|=4,l(V.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var a=v.charCodeAt(_);if(96===a){i+=v.substring(n,_),_++,t=r?14:17;break}if(36===a&&_+1<d&&123===v.charCodeAt(_+1)){i+=v.substring(n,_),_+=2,t=r?15:16;break}92!==a?13!==a?_++:(i+=v.substring(n,_),++_<d&&10===v.charCodeAt(_)&&_++,i+="\n",n=_):(i+=v.substring(n,_),i+=k(e),n=_)}return V.Debug.assert(void 0!==t),m=i,t}function k(e){var t=_;if(d<=++_)return l(V.Diagnostics.Unexpected_end_of_text),"";var r=v.charCodeAt(_);switch(_++,r){case 48:return e&&_<d&&Q(v.charCodeAt(_))?(_++,y|=2048,v.substring(t,_)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(e)for(var n=_;n<_+4;n++)if(n<d&&!Y(v.charCodeAt(n))&&123!==v.charCodeAt(n))return _=n,y|=2048,v.substring(t,_);if(_<d&&123===v.charCodeAt(_)){if(_++,e&&!Y(v.charCodeAt(_)))return y|=2048,v.substring(t,_);if(e){var i=_,a=S(1,!1);if(!((a?parseInt(a,16):-1)<=1114111&&125===v.charCodeAt(_)))return y|=2048,v.substring(t,_);_=i}return y|=8,A()}return y|=1024,N(4);case 120:if(e){if(!Y(v.charCodeAt(_)))return y|=2048,v.substring(t,_);if(!Y(v.charCodeAt(_+1)))return _++,y|=2048,v.substring(t,_)}return N(2);case 13:_<d&&10===v.charCodeAt(_)&&_++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function N(e){e=a(e,!1);return 0<=e?String.fromCharCode(e):(l(V.Diagnostics.Hexadecimal_digit_expected),"")}function A(){var e=S(1,!1),t=e?parseInt(e,16):-1,e=!1;return t<0?(l(V.Diagnostics.Hexadecimal_digit_expected),e=!0):1114111<t&&(l(V.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),e=!0),d<=_?(l(V.Diagnostics.Unexpected_end_of_text),e=!0):125===v.charCodeAt(_)?_++:(l(V.Diagnostics.Unterminated_Unicode_escape_sequence),e=!0),e?"":se(t)}function F(){if(_+5<d&&117===v.charCodeAt(_+1)){var e=_;_+=2;var t=a(4,!1);return _=e,t}return-1}function P(){if(2<=o&&117===ae(v,_+1)&&123===ae(v,_+2)){var e=_;_+=3;var t=S(1,!1),t=t?parseInt(t,16):-1;return _=e,t}return-1}function w(){for(var e="",t=_;_<d;){var r=ae(v,_);if(ie(r,o))_+=oe(r);else{if(92!==r)break;if(0<=(r=P())&&ie(r,o))_+=3,y|=8,e+=A(),t=_;else{if(!(0<=(r=F())&&ie(r,o)))break;y|=1024,e+=v.substring(t,_),e+=se(r),t=_+=6}}}return e+=v.substring(t,_)}function I(){var e=m.length;if(2<=e&&e<=12){e=m.charCodeAt(0);if(97<=e&&e<=122){e=K.get(m);if(void 0!==e)return g=e}}return g=78}function O(e){for(var t="",r=!1,n=!1;;){var i=v.charCodeAt(_);if(95!==i){if(r=!0,!Q(i)||e<=i-48)break;t+=v[_],_++,n=!1}else y|=512,r?n=!(r=!1):l(n?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),_++}return 95===v.charCodeAt(_-1)&&l(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),t}function M(){return 110===v.charCodeAt(_)?(m+="n",384&y&&(m=V.parsePseudoBigInt(m)+"n"),_++,9):(m=""+(128&y?parseInt(m.slice(2),2):256&y?parseInt(m.slice(2),8):+m),8)}function L(){p=_,y=0;for(var e=!1;;){if(d<=(f=_))return g=1;var t=ae(v,_);if(35===t&&0===_&&te(v,_)){if(_=re(v,_),s)continue;return g=6}switch(t){case 10:case 13:if(y|=1,s){_++;continue}return 13===t&&_+1<d&&10===v.charCodeAt(_+1)?_+=2:_++,g=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(s){_++;continue}for(;_<d&&G(v.charCodeAt(_));)_++;return g=5;case 33:return 61===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,37):(_+=2,35):(_++,g=53);case 34:case 39:return m=C(),g=10;case 96:return g=E(!1);case 37:return 61===v.charCodeAt(_+1)?(_+=2,g=68):(_++,g=44);case 38:return 38===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,75):(_+=2,55):g=61===v.charCodeAt(_+1)?(_+=2,72):(_++,50);case 40:return _++,g=20;case 41:return _++,g=21;case 42:if(61===v.charCodeAt(_+1))return _+=2,g=65;if(42===v.charCodeAt(_+1))return g=61===v.charCodeAt(_+2)?(_+=3,66):(_+=2,42);if(_++,u&&!e&&1&y){e=!0;continue}return g=41;case 43:return 43===v.charCodeAt(_+1)?(_+=2,g=45):g=61===v.charCodeAt(_+1)?(_+=2,63):(_++,39);case 44:return _++,g=27;case 45:return 45===v.charCodeAt(_+1)?(_+=2,g=46):g=61===v.charCodeAt(_+1)?(_+=2,64):(_++,40);case 46:return Q(v.charCodeAt(_+1))?(m=x().value,g=8):g=46===v.charCodeAt(_+1)&&46===v.charCodeAt(_+2)?(_+=3,25):(_++,24);case 47:if(47===v.charCodeAt(_+1)){for(_+=2;_<d&&!X(v.charCodeAt(_));)_++;if(h=R(h,v.slice(f,_),q,f),s)continue;return g=2}if(42!==v.charCodeAt(_+1))return g=61===v.charCodeAt(_+1)?(_+=2,67):(_++,43);_+=2,42===v.charCodeAt(_)&&47!==v.charCodeAt(_+1)&&(y|=2);for(var r=!1,n=f;_<d;){var i=v.charCodeAt(_);if(42===i&&47===v.charCodeAt(_+1)){_+=2,r=!0;break}_++,X(i)&&(n=_,y|=1)}if(h=R(h,v.slice(n,_),W,n),r||l(V.Diagnostics.Asterisk_Slash_expected),s)continue;return r||(y|=4),g=3;case 48:if(_+2<d&&(88===v.charCodeAt(_+1)||120===v.charCodeAt(_+1)))return _+=2,(m=S(1,!0))||(l(V.Diagnostics.Hexadecimal_digit_expected),m="0"),m="0x"+m,y|=64,g=M();if(_+2<d&&(66===v.charCodeAt(_+1)||98===v.charCodeAt(_+1)))return _+=2,(m=O(2))||(l(V.Diagnostics.Binary_digit_expected),m="0"),m="0b"+m,y|=128,g=M();if(_+2<d&&(79===v.charCodeAt(_+1)||111===v.charCodeAt(_+1)))return _+=2,(m=O(8))||(l(V.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,y|=256,g=M();if(_+1<d&&Z(v.charCodeAt(_+1)))return m=""+function(){for(var e=_;Z(v.charCodeAt(_));)_++;return+v.substring(e,_)}(),y|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a=x(),g=a.type,m=a.value,g;case 58:return _++,g=58;case 59:return _++,g=26;case 60:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return 60===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,69):(_+=2,47):g=61===v.charCodeAt(_+1)?(_+=2,32):1===c&&47===v.charCodeAt(_+1)&&42!==v.charCodeAt(_+2)?(_+=2,30):(_++,29);case 61:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return 61===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,36):(_+=2,34):g=62===v.charCodeAt(_+1)?(_+=2,38):(_++,62);case 62:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return _++,g=31;case 63:return 46!==v.charCodeAt(_+1)||Q(v.charCodeAt(_+2))?g=63===v.charCodeAt(_+1)?61===v.charCodeAt(_+2)?(_+=3,76):(_+=2,60):(_++,57):(_+=2,g=28);case 91:return _++,g=22;case 93:return _++,g=23;case 94:return 61===v.charCodeAt(_+1)?(_+=2,g=77):(_++,g=52);case 123:return _++,g=18;case 124:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return 124===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,74):(_+=2,56):g=61===v.charCodeAt(_+1)?(_+=2,73):(_++,51);case 125:return _++,g=19;case 126:return _++,g=54;case 64:return _++,g=59;case 92:var a=P();if(0<=a&&ne(a,o))return _+=3,y|=8,m=A()+w(),g=I();a=F();return 0<=a&&ne(a,o)?(_+=6,y|=1024,m=String.fromCharCode(a)+w(),g=I()):(l(V.Diagnostics.Invalid_character),_++,g=0);case 35:if(0!==_&&"!"===v[_+1])return l(V.Diagnostics.can_only_be_used_at_the_start_of_a_file),_++,g=0;if(_++,ne(t=v.charCodeAt(_),o)){for(_++;_<d&&ie(t=v.charCodeAt(_),o);)_++;m=v.substring(f,_),92===t&&(m+=w())}else m="#",l(V.Diagnostics.Invalid_character);return g=79;default:if(ne(t,o)){for(_+=oe(t);_<d&&ie(t=ae(v,_),o);)_+=oe(t);return m=v.substring(f,_),92===t&&(m+=w()),g=I()}if(G(t)){_+=oe(t);continue}if(X(t)){y|=1,_+=oe(t);continue}return l(V.Diagnostics.Invalid_character),_+=oe(t),g=0}}}function R(e,t,r,n){r=function(e,t){e=t.exec(e);if(!e)return;switch(e[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t,r);return void 0===r?e:V.append(e,{range:{pos:n,end:_},type:r})}function B(){if(p=f=_,d<=_)return g=1;var e=v.charCodeAt(_);if(60===e)return g=47===v.charCodeAt(_+1)?(_+=2,30):(_++,29);if(123===e)return _++,g=18;for(var t=0,r=-1;_<d&&(G(e)||(r=_),123!==(e=v.charCodeAt(_)));){if(60===e){if($(v,_))return _=ee(v,_,l),g=7;break}62===e&&l(V.Diagnostics.Unexpected_token_Did_you_mean_or_gt,_,1),125===e&&l(V.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,_,1),0<r&&r++,X(e)&&0===t?t=-1:H(e)||(t=_),_++}var n=-1===r?_:r;return m=v.substring(p,n),-1===t?12:11}function j(){switch(p=_,v.charCodeAt(_)){case 34:case 39:return m=C(!0),g=10;default:return L()}}function J(e,t){var r=_,n=p,i=f,a=g,o=m,s=y,e=e();return e&&!t||(_=r,p=n,f=i,g=a,m=o,y=s),e}function z(e,t,r){v=e||"",d=void 0===r?v.length:t+r,U(t||0)}function U(e){V.Debug.assert(0<=e),f=p=_=e,m=void(g=0),y=0}};var ae=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n=e.charCodeAt(t);if(55296<=n&&n<=56319&&t+1<r){t=e.charCodeAt(t+1);if(56320<=t&&t<=57343)return 1024*(n-55296)+t-56320+65536}return n}};function oe(e){return 65536<=e?2:1}var C=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){if(V.Debug.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,e=(e-65536)%1024+56320;return String.fromCharCode(t,e)};function se(e){return C(e)}V.utf16EncodeAsString=se}(ts=ts||{}),function(_){function d(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,t){t=i(e,t);return t&&0===t.length?void 0:t}function n(e,t,r,n){return r<=e+t&&e<=r+n}function i(e,t){var r=Math.max(e.start,t.start),t=Math.min(d(e),d(t));return r<=t?p(r,t):void 0}function a(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function p(e,t){return a(e,t-e)}function f(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function o(e){return!!Y(e)&&_.every(e.elements,s)}function s(e){return!!_.isOmittedExpression(e)||o(e.name)}function c(e){for(var t=e.parent;_.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function u(e,t){_.isBindingElement(e)&&(e=c(e));var r=t(e);return 249===e.kind&&(e=e.parent),e&&250===e.kind&&(r|=t(e),e=e.parent),e&&232===e.kind&&(r|=t(e)),r}function l(e){return 0==(8&e.flags)}function g(e){return 3<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}function m(e){return g(e.escapedText)}function y(e){var t=e.parent.parent;if(t){if(oe(t))return h(t);switch(t.kind){case 232:if(t.declarationList&&t.declarationList.declarations[0])return h(t.declarationList.declarations[0]);break;case 233:var r=t.expression;switch(216===r.kind&&62===r.operatorToken.kind&&(r=r.left),r.kind){case 201:return r.name;case 202:var n=r.argumentExpression;if(_.isIdentifier(n))return n}break;case 207:return h(t.expression);case 245:if(oe(t.statement)||re(t.statement))return h(t.statement)}}}function h(e){e=D(e);return e&&_.isIdentifier(e)?e:void 0}function v(e){return e.name||y(e)}function b(e){return!!e.name}function x(e){switch(e.kind){case 78:return e;case 333:case 326:var t=e.name;if(157===t.kind)return t.right;break;case 203:case 216:var r=e;switch(_.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return _.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 331:return v(e);case 325:return y(e);case 266:var n=e.expression;return _.isIdentifier(n)?n:void 0;case 202:n=e;if(_.isBindableStaticElementAccessExpression(n))return n.argumentExpression}return e.name}function D(e){if(void 0!==e)return x(e)||(_.isFunctionExpression(e)||_.isClassExpression(e)?S(e):void 0)}function S(e){if(e.parent)return _.isPropertyAssignment(e.parent)||_.isBindingElement(e.parent)?e.parent.name:_.isBinaryExpression(e.parent)&&e===e.parent.right?_.isIdentifier(e.parent.left)?e.parent.left:_.isAccessExpression(e.parent.left)?_.getElementOrPropertyAccessArgumentExpressionOrName(e.parent.left):void 0:_.isVariableDeclaration(e.parent)&&_.isIdentifier(e.parent.name)?e.parent.name:void 0}function T(e,t){if(e.name){if(_.isIdentifier(e.name)){var r=e.name.escapedText;return F(e.parent,t).filter(function(e){return _.isJSDocParameterTag(e)&&_.isIdentifier(e.name)&&e.name.escapedText===r})}var n=e.parent.parameters.indexOf(e);_.Debug.assert(-1<n,"Parameters should always be in their parents' parameter list");t=F(e.parent,t).filter(_.isJSDocParameterTag);if(n<t.length)return[t[n]]}return _.emptyArray}function C(e){return T(e,!1)}function E(e,t){var r=e.name.escapedText;return F(e.parent,t).filter(function(e){return _.isJSDocTemplateTag(e)&&e.typeParameters.some(function(e){return e.name.escapedText===r})})}function k(e){return w(e,_.isJSDocReturnTag)}function N(e){e=w(e,_.isJSDocTypeTag);if(e&&e.typeExpression&&e.typeExpression.type)return e}function A(e){var t=w(e,_.isJSDocTypeTag);return!t&&_.isParameter(e)&&(t=_.find(C(e),function(e){return!!e.typeExpression})),t&&t.typeExpression&&t.typeExpression.type}function F(e,t){var r,n=e.jsDocCache;return void 0!==n&&!t||(r=_.getJSDocCommentsAndTags(e,t),_.Debug.assert(r.length<2||r[0]!==r[1]),n=_.flatMap(r,function(e){return _.isJSDoc(e)?e.tags:e}),t||(e.jsDocCache=n)),n}function P(e){return F(e,!1)}function w(e,t,r){return _.find(F(e,r),t)}function I(e,t){return P(e).filter(t)}function O(e){var t=e.kind;return!!(32&e.flags)&&(201===t||202===t||203===t||225===t)}function M(e){return O(e)&&!_.isNonNullExpression(e)&&!!e.questionDotToken}function L(e){return _.skipOuterExpressions(e,8)}function R(e){switch(e.kind){case 294:case 295:return!0;default:return!1}}function B(e){return 157<=e}function j(e){return 8<=e&&e<=14}function J(e){return 14<=e&&e<=17}function z(e){return _.isPropertyDeclaration(e)&&_.isPrivateIdentifier(e.name)}function U(e){switch(e){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 142:case 123:return!0}return!1}function V(e){return!!(92&_.modifierToFlag(e))}function K(e){return e&&W(e.kind)}function q(e){switch(e){case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return!1}}function W(e){switch(e){case 164:case 169:case 313:case 170:case 171:case 174:case 308:case 175:return!0;default:return q(e)}}function H(e){e=e.kind;return 166===e||163===e||165===e||167===e||168===e||171===e||229===e}function G(e){return e&&(252===e.kind||221===e.kind)}function X(e){e=e.kind;return 170===e||169===e||162===e||164===e||171===e}function Q(e){e=e.kind;return 288===e||289===e||290===e||165===e||167===e||168===e}function Y(e){if(e){e=e.kind;return 197===e||196===e}return!1}function Z(e){switch(e.kind){case 196:case 200:return!0}return!1}function $(e){switch(e.kind){case 197:case 199:return!0}return!1}function ee(e){switch(e){case 201:case 202:case 204:case 203:case 273:case 274:case 277:case 205:case 199:case 207:case 200:case 221:case 208:case 78:case 13:case 8:case 9:case 10:case 14:case 218:case 94:case 103:case 107:case 109:case 105:case 225:case 226:case 99:return!0;default:return!1}}function te(e){switch(e){case 214:case 215:case 210:case 211:case 212:case 213:case 206:return!0;default:return ee(e)}}function re(e){return function(e){switch(e){case 217:case 219:case 209:case 216:case 220:case 224:case 222:case 337:case 336:return!0;default:return te(e)}}(L(e).kind)}function ne(e){return _.isExportAssignment(e)||_.isExportDeclaration(e)}function ie(e){return 251===e||271===e||252===e||253===e||254===e||255===e||256===e||261===e||260===e||267===e||266===e||259===e}function ae(e){return 241===e||240===e||248===e||235===e||233===e||231===e||238===e||239===e||237===e||234===e||245===e||242===e||244===e||246===e||247===e||232===e||236===e||243===e||335===e||339===e||338===e}function oe(e){return 159===e.kind?e.parent&&330!==e.parent.kind||_.isInJSFile(e):209===(e=e.kind)||198===e||252===e||221===e||166===e||255===e||291===e||270===e||251===e||208===e||167===e||262===e||260===e||265===e||253===e||280===e||165===e||164===e||256===e||259===e||263===e||269===e||160===e||288===e||163===e||162===e||168===e||289===e||254===e||159===e||249===e||331===e||324===e||333===e}function se(e){return 314<=e.kind&&e.kind<=333}_.isExternalModuleNameRelative=function(e){return _.pathIsRelative(e)||_.isRootedDiskPath(e)},_.sortAndDeduplicateDiagnostics=function(e){return _.sortAndDeduplicate(e,_.compareDiagnostics)},_.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},_.textSpanEnd=d,_.textSpanIsEmpty=t,_.textSpanContainsPosition=function(e,t){return t>=e.start&&t<d(e)},_.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},_.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&d(t)<=d(e)},_.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},_.textSpanOverlap=r,_.textSpanIntersectsWithTextSpan=function(e,t){return n(e.start,e.length,t.start,t.length)},_.textSpanIntersectsWith=function(e,t,r){return n(e.start,e.length,t,r)},_.decodedTextSpanIntersectsWith=n,_.textSpanIntersectsWithPosition=function(e,t){return t<=d(e)&&t>=e.start},_.textSpanIntersection=i,_.createTextSpan=a,_.createTextSpanFromBounds=p,_.textChangeRangeNewSpan=function(e){return a(e.span.start,e.newLength)},_.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},_.createTextChangeRange=f,_.unchangedTextChangeRange=f(a(0,0),0),_.collapseTextChangeRangesAcrossMultipleVersions=function(e){if(0===e.length)return _.unchangedTextChangeRange;if(1===e.length)return e[0];for(var t=e[0],r=t.span.start,n=d(t.span),i=r+t.newLength,a=1;a<e.length;a++)var o=e[a],s=n,c=i,u=o.span.start,l=d(o.span),o=u+o.newLength,r=Math.min(r,u),n=Math.max(s,s+(l-c)),i=Math.max(o,o+(c-l));return f(p(r,n),i-r)},_.getTypeParameterOwner=function(e){if(e&&159===e.kind)for(var t=e;t;t=t.parent)if(K(t)||G(t)||253===t.kind)return t},_.isParameterPropertyDeclaration=function(e,t){return _.hasSyntacticModifier(e,92)&&166===t.kind},_.isEmptyBindingPattern=o,_.isEmptyBindingElement=s,_.walkUpBindingElementsAndPatterns=c,_.getCombinedModifierFlags=function(e){return u(e,_.getEffectiveModifierFlags)},_.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(e){return u(e,_.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},_.getCombinedNodeFlags=function(e){return u(e,function(e){return e.flags})},_.validateLocaleAndSetLanguage=function(e,o,t){var r,n=/^([a-z]+)([_\-]([a-z]+))?$/.exec(e.toLowerCase());function i(e,t,r){var n=_.normalizePath(o.getExecutingFilePath()),n=_.getDirectoryPath(n),i=_.combinePaths(n,e);if(t&&(i=i+"-"+t),i=o.resolvePath(_.combinePaths(i,"diagnosticMessages.generated.json")),o.fileExists(i)){var a="";try{a=o.readFile(i)}catch(e){return void(r&&r.push(_.createCompilerDiagnostic(_.Diagnostics.Unable_to_open_file_0,i)))}try{_.setLocalizedDiagnosticMessages(JSON.parse(a))}catch(e){return void(r&&r.push(_.createCompilerDiagnostic(_.Diagnostics.Corrupted_locale_file_0,i)))}return 1}}n?(i(r=n[1],n[3],t)||i(r,void 0,t),_.setUILocale(e)):t&&t.push(_.createCompilerDiagnostic(_.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"))},_.getOriginalNode=function(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},_.findAncestor=function(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},_.isParseTreeNode=l,_.getParseTreeNode=function(e,t){if(void 0===e||l(e))return e;for(e=e.original;e;){if(l(e))return!t||t(e)?e:void 0;e=e.original}},_.escapeLeadingUnderscores=function(e){return 2<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},_.unescapeLeadingUnderscores=g,_.idText=m,_.symbolName=function(e){return e.valueDeclaration&&z(e.valueDeclaration)?m(e.valueDeclaration.name):g(e.escapedName)},_.nodeHasName=function t(e,r){return!(!b(e)||!_.isIdentifier(e.name)||m(e.name)!==m(r))||!(!_.isVariableStatement(e)||!_.some(e.declarationList.declarations,function(e){return t(e,r)}))},_.getNameOfJSDocTypedef=v,_.isNamedDeclaration=b,_.getNonAssignedNameOfDeclaration=x,_.getNameOfDeclaration=D,_.getAssignedName=S,_.getJSDocParameterTags=C,_.getJSDocParameterTagsNoCache=function(e){return T(e,!0)},_.getJSDocTypeParameterTags=function(e){return E(e,!1)},_.getJSDocTypeParameterTagsNoCache=function(e){return E(e,!0)},_.hasJSDocParameterTags=function(e){return!!w(e,_.isJSDocParameterTag)},_.getJSDocAugmentsTag=function(e){return w(e,_.isJSDocAugmentsTag)},_.getJSDocImplementsTags=function(e){return I(e,_.isJSDocImplementsTag)},_.getJSDocClassTag=function(e){return w(e,_.isJSDocClassTag)},_.getJSDocPublicTag=function(e){return w(e,_.isJSDocPublicTag)},_.getJSDocPublicTagNoCache=function(e){return w(e,_.isJSDocPublicTag,!0)},_.getJSDocPrivateTag=function(e){return w(e,_.isJSDocPrivateTag)},_.getJSDocPrivateTagNoCache=function(e){return w(e,_.isJSDocPrivateTag,!0)},_.getJSDocProtectedTag=function(e){return w(e,_.isJSDocProtectedTag)},_.getJSDocProtectedTagNoCache=function(e){return w(e,_.isJSDocProtectedTag,!0)},_.getJSDocReadonlyTag=function(e){return w(e,_.isJSDocReadonlyTag)},_.getJSDocReadonlyTagNoCache=function(e){return w(e,_.isJSDocReadonlyTag,!0)},_.getJSDocDeprecatedTag=function(e){return w(e,_.isJSDocDeprecatedTag)},_.getJSDocDeprecatedTagNoCache=function(e){return w(e,_.isJSDocDeprecatedTag,!0)},_.getJSDocEnumTag=function(e){return w(e,_.isJSDocEnumTag)},_.getJSDocThisTag=function(e){return w(e,_.isJSDocThisTag)},_.getJSDocReturnTag=k,_.getJSDocTemplateTag=function(e){return w(e,_.isJSDocTemplateTag)},_.getJSDocTypeTag=N,_.getJSDocType=A,_.getJSDocReturnType=function(e){var t=k(e);if(t&&t.typeExpression)return t.typeExpression.type;if((t=N(e))&&t.typeExpression){e=t.typeExpression.type;if(_.isTypeLiteralNode(e)){t=_.find(e.members,_.isCallSignatureDeclaration);return t&&t.type}if(_.isFunctionTypeNode(e)||_.isJSDocFunctionType(e))return e.type}},_.getJSDocTags=P,_.getJSDocTagsNoCache=function(e){return F(e,!0)},_.getAllJSDocTags=I,_.getAllJSDocTagsOfKind=function(e,t){return P(e).filter(function(e){return e.kind===t})},_.getEffectiveTypeParameterDeclarations=function(e){if(_.isJSDocSignature(e))return _.emptyArray;if(_.isJSDocTypeAlias(e))return _.Debug.assert(311===e.parent.kind),_.flatMap(e.parent.tags,function(e){return _.isJSDocTemplateTag(e)?e.typeParameters:void 0});if(e.typeParameters)return e.typeParameters;if(_.isInJSFile(e)){var t=_.getJSDocTypeParameterDeclarations(e);if(t.length)return t;e=A(e);if(e&&_.isFunctionTypeNode(e)&&e.typeParameters)return e.typeParameters}return _.emptyArray},_.getEffectiveConstraintOfTypeParameter=function(e){return e.constraint||(_.isJSDocTemplateTag(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0)},_.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},_.isGetOrSetAccessorDeclaration=function(e){return 168===e.kind||167===e.kind},_.isPropertyAccessChain=function(e){return _.isPropertyAccessExpression(e)&&!!(32&e.flags)},_.isElementAccessChain=function(e){return _.isElementAccessExpression(e)&&!!(32&e.flags)},_.isCallChain=function(e){return _.isCallExpression(e)&&!!(32&e.flags)},_.isOptionalChain=O,_.isOptionalChainRoot=M,_.isExpressionOfOptionalChainRoot=function(e){return M(e.parent)&&e.parent.expression===e},_.isOutermostOptionalChain=function(e){return!O(e.parent)||M(e.parent)||e!==e.parent.expression},_.isNullishCoalesce=function(e){return 216===e.kind&&60===e.operatorToken.kind},_.isConstTypeReference=function(e){return _.isTypeReferenceNode(e)&&_.isIdentifier(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},_.skipPartiallyEmittedExpressions=L,_.isNonNullChain=function(e){return _.isNonNullExpression(e)&&!!(32&e.flags)},_.isBreakOrContinueStatement=function(e){return 241===e.kind||240===e.kind},_.isNamedExportBindings=function(e){return 269===e.kind||268===e.kind},_.isUnparsedTextLike=R,_.isUnparsedNode=function(e){return R(e)||292===e.kind||296===e.kind},_.isJSDocPropertyLikeTag=function(e){return 333===e.kind||326===e.kind},_.isNode=function(e){return B(e.kind)},_.isNodeKind=B,_.isToken=function(e){return 0<=e.kind&&e.kind<=156},_.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},_.isLiteralKind=j,_.isLiteralExpression=function(e){return j(e.kind)},_.isTemplateLiteralKind=J,_.isTemplateLiteralToken=function(e){return J(e.kind)},_.isTemplateMiddleOrTemplateTail=function(e){return 16===(e=e.kind)||17===e},_.isImportOrExportSpecifier=function(e){return _.isImportSpecifier(e)||_.isExportSpecifier(e)},_.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 265:case 270:return e.parent.parent.isTypeOnly;case 263:return e.parent.isTypeOnly;case 262:return e.isTypeOnly;default:return!1}},_.isStringTextContainingNode=function(e){return 10===e.kind||J(e.kind)},_.isGeneratedIdentifier=function(e){return _.isIdentifier(e)&&0<(7&e.autoGenerateFlags)},_.isPrivateIdentifierPropertyDeclaration=z,_.isPrivateIdentifierPropertyAccessExpression=function(e){return _.isPropertyAccessExpression(e)&&_.isPrivateIdentifier(e.name)},_.isModifierKind=U,_.isParameterPropertyModifier=V,_.isClassMemberModifier=function(e){return V(e)||123===e},_.isModifier=function(e){return U(e.kind)},_.isEntityName=function(e){return 157===(e=e.kind)||78===e},_.isPropertyName=function(e){return 78===(e=e.kind)||79===e||10===e||8===e||158===e},_.isBindingName=function(e){return 78===(e=e.kind)||196===e||197===e},_.isFunctionLike=K,_.isFunctionLikeDeclaration=function(e){return e&&q(e.kind)},_.isFunctionLikeKind=W,_.isFunctionOrModuleBlock=function(e){return _.isSourceFile(e)||_.isModuleBlock(e)||_.isBlock(e)&&K(e.parent)},_.isClassElement=H,_.isClassLike=G,_.isAccessor=function(e){return e&&(167===e.kind||168===e.kind)},_.isMethodOrAccessor=function(e){switch(e.kind){case 165:case 167:case 168:return!0;default:return!1}},_.isTypeElement=X,_.isClassOrTypeElement=function(e){return X(e)||H(e)},_.isObjectLiteralElementLike=Q,_.isTypeNode=function(e){return _.isTypeNodeKind(e.kind)},_.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 174:case 175:return!0}return!1},_.isBindingPattern=Y,_.isAssignmentPattern=function(e){return 199===(e=e.kind)||200===e},_.isArrayBindingElement=function(e){return 198===(e=e.kind)||222===e},_.isDeclarationBindingElement=function(e){switch(e.kind){case 249:case 160:case 198:return!0}return!1},_.isBindingOrAssignmentPattern=function(e){return Z(e)||$(e)},_.isObjectBindingOrAssignmentPattern=Z,_.isArrayBindingOrAssignmentPattern=$,_.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){return 201===(e=e.kind)||157===e||195===e},_.isPropertyAccessOrQualifiedName=function(e){return 201===(e=e.kind)||157===e},_.isCallLikeExpression=function(e){switch(e.kind){case 275:case 274:case 203:case 204:case 205:case 161:return!0;default:return!1}},_.isCallOrNewExpression=function(e){return 203===e.kind||204===e.kind},_.isTemplateLiteral=function(e){return 218===(e=e.kind)||14===e},_.isLeftHandSideExpression=function(e){return ee(L(e).kind)},_.isUnaryExpression=function(e){return te(L(e).kind)},_.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 215:return!0;case 214:return 45===e.operator||46===e.operator;default:return!1}},_.isExpression=re,_.isAssertionExpression=function(e){return 206===(e=e.kind)||224===e},_.isNotEmittedOrPartiallyEmittedNode=function(e){return _.isNotEmittedStatement(e)||_.isPartiallyEmittedExpression(e)},_.isIterationStatement=function e(t,r){switch(t.kind){case 237:case 238:case 239:case 235:case 236:return!0;case 245:return r&&e(t.statement,r)}return!1},_.isScopeMarker=ne,_.hasScopeMarker=function(e){return _.some(e,ne)},_.needsScopeMarker=function(e){return!(_.isAnyImportOrReExport(e)||_.isExportAssignment(e)||_.hasSyntacticModifier(e,1)||_.isAmbientModule(e))},_.isExternalModuleIndicator=function(e){return _.isAnyImportOrReExport(e)||_.isExportAssignment(e)||_.hasSyntacticModifier(e,1)},_.isForInOrOfStatement=function(e){return 238===e.kind||239===e.kind},_.isConciseBody=function(e){return _.isBlock(e)||re(e)},_.isFunctionBody=function(e){return _.isBlock(e)},_.isForInitializer=function(e){return _.isVariableDeclarationList(e)||re(e)},_.isModuleBody=function(e){return 257===(e=e.kind)||256===e||78===e},_.isNamespaceBody=function(e){return 257===(e=e.kind)||256===e},_.isJSDocNamespaceBody=function(e){return 78===(e=e.kind)||256===e},_.isNamedImportBindings=function(e){return 264===(e=e.kind)||263===e},_.isModuleOrEnumDeclaration=function(e){return 256===e.kind||255===e.kind},_.isDeclaration=oe,_.isDeclarationStatement=function(e){return ie(e.kind)},_.isStatementButNotDeclaration=function(e){return ae(e.kind)},_.isStatement=function(e){var t=e.kind;return ae(t)||ie(t)||function(e){if(230!==e.kind)return!1;if(void 0!==e.parent&&(247===e.parent.kind||287===e.parent.kind))return!1;return!_.isFunctionBlock(e)}(e)},_.isStatementOrBlock=function(e){return ae(e=e.kind)||ie(e)||230===e},_.isModuleReference=function(e){return 272===(e=e.kind)||157===e||78===e},_.isJsxTagNameExpression=function(e){return 107===(e=e.kind)||78===e||201===e},_.isJsxChild=function(e){return 273===(e=e.kind)||283===e||274===e||11===e||277===e},_.isJsxAttributeLike=function(e){return 280===(e=e.kind)||282===e},_.isStringLiteralOrJsxExpression=function(e){return 10===(e=e.kind)||283===e},_.isJsxOpeningLikeElement=function(e){return 275===(e=e.kind)||274===e},_.isCaseOrDefaultClause=function(e){return 284===(e=e.kind)||285===e},_.isJSDocNode=function(e){return 301<=e.kind&&e.kind<=333},_.isJSDocCommentContainingNode=function(e){return 311===e.kind||310===e.kind||se(e)||_.isJSDocTypeLiteral(e)||_.isJSDocSignature(e)},_.isJSDocTag=se,_.isSetAccessor=function(e){return 168===e.kind},_.isGetAccessor=function(e){return 167===e.kind},_.hasJSDocNodes=function(e){return!!(e=e.jsDoc)&&0<e.length},_.hasType=function(e){return!!e.type},_.hasInitializer=function(e){return!!e.initializer},_.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 249:case 160:case 198:case 162:case 163:case 288:case 291:return!0;default:return!1}},_.isObjectLiteralElement=function(e){return 280===e.kind||282===e.kind||Q(e)},_.isTypeReferenceType=function(e){return 173===e.kind||223===e.kind};var ce=1073741823;_.guessIndentation=function(e){for(var t=ce,r=0,n=e;r<n.length;r++){var i=n[r];if(i.length){for(var a=0;a<i.length&&a<t&&_.isWhiteSpaceLike(i.charCodeAt(a));a++);if(a<t&&(t=a),0===t)return 0}}return t===ce?void 0:t},_.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(ts=ts||{}),function(S){S.resolvingEmptyArray=[],S.externalHelpersModuleNameText="tslib",S.defaultMaximumTruncationLength=160,S.noTruncationMaximumTruncationLength=1e6,S.getDeclarationOfKind=function(e,t){if(e=e.declarations)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.kind===t)return i}},S.createUnderscoreEscapedMap=function(){return new S.Map},S.hasEntries=function(e){return!!e&&!!e.size},S.createSymbolTable=function(e){var t=new S.Map;if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];t.set(i.escapedName,i)}return t},S.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var t,r=(t="",{getText:function(){return t},write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:function(e,t){return n(e)},writeTrailingSemicolon:n,writeComment:n,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&S.isWhiteSpaceLike(t.charCodeAt(t.length-1))},writeLine:function(){return t+=" "},increaseIndent:S.noop,decreaseIndent:S.noop,clear:function(){return t=""},trackSymbol:S.noop,reportInaccessibleThisError:S.noop,reportInaccessibleUniqueSymbolError:S.noop,reportPrivateInBaseOfClassExpression:S.noop});function n(e){return t+=e}function i(t,r){return S.moduleResolutionOptionDeclarations.some(function(e){return!jn(on(t,e),on(r,e))})}function a(e){return e.end-e.pos}function o(e){var t;return 524288&(t=e).flags||(0==(65536&t.flags)&&!S.forEachChild(t,o)||(t.flags|=262144),t.flags|=524288),0!=(262144&e.flags)}function s(e){for(;e&&297!==e.kind;)e=e.parent;return e}function c(e,t){S.Debug.assert(0<=e);var r=S.getLineStarts(t),n=t.text;if(e+1===r.length)return n.length-1;var i=r[e],a=r[e+1]-1;for(S.Debug.assert(S.isLineBreak(n.charCodeAt(a)));i<=a&&S.isLineBreak(n.charCodeAt(a));)a--;return a}function u(e){return void 0===e||e.pos===e.end&&0<=e.pos&&1!==e.kind}function l(e){return!u(e)}function _(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,__spreadArrays([n,0],t)),e}function d(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function p(e){return z(e)||!!(1048576&b(e))}function f(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function g(e,t,r){return u(e)?e.pos:S.isJSDocNode(e)||11===e.kind?S.skipTrivia((t||s(e)).text,e.pos,!1,!0):r&&S.hasJSDocNodes(e)?g(e.jsDoc[0],t):334===e.kind&&0<e._children.length?g(e._children[0],t,r):S.skipTrivia((t||s(e)).text,e.pos)}function m(e,t,r){return void 0===r&&(r=!1),y(e.text,t,r)}function y(e,t,r){if(void 0===r&&(r=!1),u(t))return"";e=e.substring(r?t.pos:S.skipTrivia(e,t.pos),t.end);return t=t,S.findAncestor(t,S.isJSDocTypeExpression)&&(e=e.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),e}function h(e,t){return void 0===t&&(t=!1),m(s(e),e,t)}function v(e){return e.pos}function b(e){e=e.emitNode;return e&&e.flags||0}function x(e){e=ft(e);return 249===e.kind&&287===e.parent.kind}function D(e){return S.isModuleDeclaration(e)&&(10===e.name.kind||C(e))}function T(e){return S.isModuleDeclaration(e)||S.isIdentifier(e)}function C(e){return!!(1024&e.flags)}function E(e){return D(e)&&k(e)}function k(e){switch(e.parent.kind){case 297:return S.isExternalModule(e.parent);case 257:return D(e.parent.parent)&&S.isSourceFile(e.parent.parent.parent)&&!S.isExternalModule(e.parent.parent.parent)}return!1}function N(e,t){switch(e.kind){case 297:case 258:case 287:case 256:case 237:case 238:case 239:case 166:case 165:case 167:case 168:case 251:case 208:case 209:return!0;case 230:return!S.isFunctionLike(t)}return!1}function A(e){switch(e.kind){case 169:case 170:case 164:case 171:case 174:case 175:case 308:case 252:case 221:case 253:case 254:case 330:case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return S.assertType(e),!1}}function F(e){switch(e.kind){case 261:case 260:return!0;default:return!1}}function P(e){return e&&0!==a(e)?h(e):"(Missing)"}function w(e){switch(e.kind){case 78:case 79:return e.escapedText;case 10:case 8:case 14:return S.escapeLeadingUnderscores(e.text);case 158:return it(e.expression)?S.escapeLeadingUnderscores(e.expression.text):S.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return S.Debug.assertNever(e)}}function I(e){switch(e.kind){case 107:return"this";case 79:case 78:return 0===a(e)?S.idText(e):h(e);case 157:return I(e.left)+"."+I(e.right);case 201:return S.isIdentifier(e.name)||S.isPrivateIdentifier(e.name)?I(e.expression)+"."+I(e.name):S.Debug.assertNever(e.name);default:return S.Debug.assertNever(e)}}function O(e,t,r,n,i,a,o){t=L(e,t);return Xr(e,t.start,t.length,r,n,i,a,o)}function M(e,t){e=S.createScanner(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);e.scan();t=e.getTokenPos();return S.createTextSpanFromBounds(t,e.getTextPos())}function L(e,t){var r=t;switch(t.kind){case 297:var n=S.skipTrivia(e.text,0,!1);return n===e.text.length?S.createTextSpan(0,0):M(e,n);case 249:case 198:case 252:case 221:case 253:case 256:case 255:case 291:case 251:case 208:case 165:case 167:case 168:case 254:case 163:case 162:r=t.name;break;case 209:return function(e,t){var r=S.skipTrivia(e.text,t.pos);if(t.body&&230===t.body.kind){var n=S.getLineAndCharacterOfPosition(e,t.body.pos).line;if(n<S.getLineAndCharacterOfPosition(e,t.body.end).line)return S.createTextSpan(r,c(n,e)-r+1)}return S.createTextSpanFromBounds(r,t.end)}(e,t);case 284:case 285:var i=S.skipTrivia(e.text,t.pos),n=0<t.statements.length?t.statements[0].pos:t.end;return S.createTextSpanFromBounds(i,n)}if(void 0===r)return M(e,t.pos);S.Debug.assert(!S.isJSDoc(r));var a=u(r),o=a||S.isJsxText(t)?r.pos:S.skipTrivia(e.text,r.pos);return a?(S.Debug.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),S.Debug.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(S.Debug.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),S.Debug.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),S.createTextSpanFromBounds(o,r.end)}function R(e){return 6===e.scriptKind}function B(e){return!!(2&S.getCombinedNodeFlags(e))}function j(e){return 203===e.kind&&99===e.expression.kind}function J(e){return S.isImportTypeNode(e)&&S.isLiteralTypeNode(e.argument)&&S.isStringLiteral(e.argument.literal)}function z(e){return 233===e.kind&&10===e.expression.kind}function U(e){return!!(1048576&b(e))}function V(e){return S.isIdentifier(e.name)&&!e.initializer}S.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||i(e,t)},S.optionsHaveModuleResolutionChanges=i,S.forEachAncestor=function(e,t){for(;;){var r=t(e);if("quit"===r)return;if(void 0!==r)return r;if(S.isSourceFile(e))return;e=e.parent}},S.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],a=t(i[1],a);if(a)return a}},S.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},S.copyEntries=function(e,r){e.forEach(function(e,t){r.set(t,e)})},S.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},S.getFullWidth=a,S.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},S.setResolvedModule=function(e,t,r){e.resolvedModules||(e.resolvedModules=new S.Map),e.resolvedModules.set(t,r)},S.setResolvedTypeReferenceDirective=function(e,t,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=new S.Map),e.resolvedTypeReferenceDirectiveNames.set(t,r)},S.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},S.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(e=e.packageId,t=t.packageId,e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version)},S.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},S.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},S.hasChangesInResolutions=function(e,t,r,n){S.Debug.assert(e.length===t.length);for(var i=0;i<e.length;i++){var a=t[i],o=r&&r.get(e[i]);if(o?!a||!n(o,a):a)return!0}return!1},S.containsParseError=o,S.getSourceFileOfNode=s,S.isStatementWithLocals=function(e){switch(e.kind){case 230:case 258:case 237:case 238:case 239:return!0}return!1},S.getStartPositionOfLine=function(e,t){return S.Debug.assert(0<=e),S.getLineStarts(t)[e]},S.nodePosToString=function(e){var t=s(e),e=S.getLineAndCharacterOfPosition(t,e.pos);return t.fileName+"("+(e.line+1)+","+(e.character+1)+")"},S.getEndLinePosition=c,S.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},S.nodeIsMissing=u,S.nodeIsPresent=l,S.insertStatementsAfterStandardPrologue=function(e,t){return _(e,t,z)},S.insertStatementsAfterCustomPrologue=function(e,t){return _(e,t,p)},S.insertStatementAfterStandardPrologue=function(e,t){return d(e,t,z)},S.insertStatementAfterCustomPrologue=function(e,t){return d(e,t,p)},S.isRecognizedTripleSlashComment=function(e,t,r){if(47===e.charCodeAt(t+1)&&t+2<r&&47===e.charCodeAt(t+2)){r=e.substring(t,r);return!!(r.match(S.fullTripleSlashReferencePathRegEx)||r.match(S.fullTripleSlashAMDReferencePathRegEx)||r.match(K)||r.match(q))}return!1},S.isPinnedComment=f,S.createCommentDirectivesMap=function(t,e){var r=new S.Map(e.map(function(e){return[""+S.getLineAndCharacterOfPosition(t,e.range.end).line,e]})),n=new S.Map;return{getUnusedExpectations:function(){return S.arrayFrom(r.entries()).filter(function(e){var t=e[0];return 0===e[1].type&&!n.get(t)}).map(function(e){e[0];return e[1]})},markUsed:function(e){return!!r.has(""+e)&&(n.set(""+e,!0),!0)}}},S.getTokenPosOfNode=g,S.getNonDecoratorTokenPosOfNode=function(e,t){return u(e)||!e.decorators?g(e,t):S.skipTrivia((t||s(e)).text,e.decorators.end)},S.getSourceTextOfNodeFromSourceFile=m,S.isExportNamespaceAsDefaultDeclaration=function(e){return!!(S.isExportDeclaration(e)&&e.exportClause&&S.isNamespaceExport(e.exportClause)&&"default"===e.exportClause.name.escapedText)},S.getTextOfNodeFromSourceText=y,S.getTextOfNode=h,S.indexOfNode=function(e,t){return S.binarySearch(e,t,v,S.compareValues)},S.getEmitFlags=b,S.getScriptTargetFeatures=function(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:S.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:S.emptyArray,AsyncIterator:S.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:S.emptyArray,SharedArrayBuffer:S.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:S.emptyArray,AsyncIterableIterator:S.emptyArray,AsyncGenerator:S.emptyArray,AsyncGeneratorFunction:S.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:S.emptyArray,BigInt64Array:S.emptyArray,BigUint64Array:S.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},esnext:{PromiseConstructor:["any"],String:["replaceAll"],NumberFormat:["formatToParts"]}}},(Cn=S.GetLiteralTextFlags||(S.GetLiteralTextFlags={}))[Cn.None=0]="None",Cn[Cn.NeverAsciiEscape=1]="NeverAsciiEscape",Cn[Cn.JsxAttributeEscape=2]="JsxAttributeEscape",Cn[Cn.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",S.getLiteralText=function(e,t,r){if(!gt(e)&&e.parent&&!(4&r&&e.isUnterminated)&&!(S.isNumericLiteral(e)&&512&e.numericLiteralFlags||S.isBigIntLiteral(e)))return m(t,e);switch(e.kind){case 10:var n=2&r?Ot:1&r||16777216&b(e)?kt:At;return e.singleQuote?"'"+n(e.text,39)+"'":'"'+n(e.text,34)+'"';case 14:case 15:case 16:case 17:var n=1&r||16777216&b(e)?kt:At,i=e.rawText||n(e.text,96).replace(bt,"\\${");switch(e.kind){case 14:return"`"+i+"`";case 15:return"`"+i+"${";case 16:return"}"+i+"${";case 17:return"}"+i+"`"}break;case 8:case 9:return e.text;case 13:return 4&r&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return S.Debug.fail("Literal kind '"+e.kind+"' not accounted for.")},S.getTextOfConstantValue=function(e){return S.isString(e)?'"'+At(e)+'"':""+e},S.makeIdentifierFromModuleName=function(e){return S.getBaseFileName(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},S.isBlockOrCatchScoped=function(e){return 0!=(3&S.getCombinedNodeFlags(e))||x(e)},S.isCatchClauseVariableDeclarationOrBindingElement=x,S.isAmbientModule=D,S.isModuleWithStringLiteralName=function(e){return S.isModuleDeclaration(e)&&10===e.name.kind},S.isNonGlobalAmbientModule=function(e){return S.isModuleDeclaration(e)&&S.isStringLiteral(e.name)},S.isEffectiveModuleDeclaration=T,S.isShorthandAmbientModuleSymbol=function(e){return(e=e.valueDeclaration)&&256===e.kind&&!e.body},S.isBlockScopedContainerTopLevel=function(e){return 297===e.kind||256===e.kind||S.isFunctionLike(e)},S.isGlobalScopeAugmentation=C,S.isExternalModuleAugmentation=E,S.isModuleAugmentationExternal=k,S.getNonAugmentationDeclaration=function(e){return S.find(e.declarations,function(e){return!(E(e)||S.isModuleDeclaration(e)&&C(e))})},S.isEffectiveExternalModule=function(e,t){return S.isExternalModule(e)||t.isolatedModules||tn(t)===S.ModuleKind.CommonJS&&!!e.commonJsModuleIndicator},S.isEffectiveStrictModeSourceFile=function(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!nn(t,"alwaysStrict")||(!!S.startsWithUseStrict(e.statements)||!(!S.isExternalModule(e)&&!t.isolatedModules)&&(tn(t)>=S.ModuleKind.ES2015||!t.noImplicitUseStrict)))},S.isBlockScope=N,S.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 324:case 331:case 313:return!0;default:return S.assertType(e),A(e)}},S.isDeclarationWithTypeParameterChildren=A,S.isAnyImportSyntax=F,S.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 261:case 260:case 232:case 252:case 251:case 256:case 254:case 253:case 255:return!0;default:return!1}},S.isAnyImportOrReExport=function(e){return F(e)||S.isExportDeclaration(e)},S.getEnclosingBlockScopeContainer=function(e){return S.findAncestor(e.parent,function(e){return N(e,e.parent)})},S.declarationNameToString=P,S.getNameFromIndexInfo=function(e){return e.declaration?P(e.declaration.parameters[0].name):void 0},S.isComputedNonLiteralName=function(e){return 158===e.kind&&!it(e.expression)},S.getTextOfPropertyName=w,S.entityNameToString=I,S.createDiagnosticForNode=function(e,t,r,n,i,a){return O(s(e),e,t,r,n,i,a)},S.createDiagnosticForNodeArray=function(e,t,r,n,i,a,o){var s=S.skipTrivia(e.text,t.pos);return Xr(e,s,t.end-s,r,n,i,a,o)},S.createDiagnosticForNodeInSourceFile=O,S.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=s(e),e=L(n,e);return{file:n,start:e.start,length:e.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},S.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},S.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},S.getSpanOfTokenAtPosition=M,S.getErrorSpanForNode=L,S.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},S.isJsonSourceFile=R,S.isEnumConst=function(e){return!!(2048&S.getCombinedModifierFlags(e))},S.isDeclarationReadonly=function(e){return!(!(64&S.getCombinedModifierFlags(e))||S.isParameterPropertyDeclaration(e,e.parent))},S.isVarConst=B,S.isLet=function(e){return!!(1&S.getCombinedNodeFlags(e))},S.isSuperCall=function(e){return 203===e.kind&&105===e.expression.kind},S.isImportCall=j,S.isImportMeta=function(e){return S.isMetaProperty(e)&&99===e.keywordToken&&"meta"===e.name.escapedText},S.isLiteralImportTypeNode=J,S.isPrologueDirective=z,S.isCustomPrologue=U,S.isHoistedFunction=function(e){return U(e)&&S.isFunctionDeclaration(e)},S.isHoistedVariableStatement=function(e){return U(e)&&S.isVariableStatement(e)&&S.every(e.declarationList.declarations,V)},S.getLeadingCommentRangesOfNode=function(e,t){return 11!==e.kind?S.getLeadingCommentRanges(t.text,e.pos):void 0},S.getJSDocCommentRanges=function(e,t){return e=160===e.kind||159===e.kind||208===e.kind||209===e.kind||207===e.kind?S.concatenate(S.getTrailingCommentRanges(t,e.pos),S.getLeadingCommentRanges(t,e.pos)):S.getLeadingCommentRanges(t,e.pos),S.filter(e,function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)})},S.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var K=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;S.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var q=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function W(e){if(172<=e.kind&&e.kind<=195)return!0;switch(e.kind){case 128:case 152:case 144:case 155:case 147:case 131:case 148:case 145:case 150:case 141:return!0;case 113:return 212!==e.parent.kind;case 223:return!br(e);case 159:return 190===e.parent.kind||185===e.parent.kind;case 78:(157===e.parent.kind&&e.parent.right===e||201===e.parent.kind&&e.parent.name===e)&&(e=e.parent),S.Debug.assert(78===e.kind||157===e.kind||201===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 157:case 201:case 107:var t=e.parent;if(176===t.kind)return!1;if(195===t.kind)return!t.isTypeOf;if(172<=t.kind&&t.kind<=195)return!0;switch(t.kind){case 223:return!br(t);case 159:case 330:return e===t.constraint;case 163:case 162:case 160:case 249:return e===t.type;case 251:case 208:case 209:case 166:case 165:case 164:case 167:case 168:return e===t.type;case 169:case 170:case 171:case 206:return e===t.type;case 203:case 204:return S.contains(t.typeArguments,e);case 205:return!1}}return!1}function H(e){if(e)switch(e.kind){case 198:case 291:case 160:case 288:case 163:case 162:case 289:case 249:return!0}return!1}function G(e){return 250===e.parent.kind&&232===e.parent.parent.kind}function X(e,t,r){return e.properties.filter(function(e){if(288!==e.kind)return!1;e=w(e.name);return t===e||!!r&&r===e})}function Q(e){if(e&&e.statements.length){e=e.statements[0].expression;return S.tryCast(e,S.isObjectLiteralExpression)}}function Y(e,t){e=Q(e);return e?X(e,t):S.emptyArray}function Z(e,t){for(S.Debug.assert(297!==e.kind);;){if(!(e=e.parent))return S.Debug.fail();switch(e.kind){case 158:if(S.isClassLike(e.parent.parent))return e;e=e.parent;break;case 161:160===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent);break;case 209:if(!t)continue;case 251:case 208:case 256:case 163:case 162:case 165:case 164:case 166:case 167:case 168:case 169:case 170:case 171:case 255:case 297:return e}}}function $(e){var t=e.kind;return(201===t||202===t)&&105===e.expression.kind}function ee(e,t,r){if(S.isNamedDeclaration(e)&&S.isPrivateIdentifier(e.name))return!1;switch(e.kind){case 252:return!0;case 163:return 252===t.kind;case 167:case 168:case 165:return void 0!==e.body&&252===t.kind;case 160:return void 0!==t.body&&(166===t.kind||165===t.kind||168===t.kind)&&252===r.kind}return!1}function te(e,t,r){return void 0!==e.decorators&&ee(e,t,r)}function re(e,t,r){return te(e,t,r)||ne(e,t)}function ne(t,r){switch(t.kind){case 252:return S.some(t.members,function(e){return re(e,t,r)});case 165:case 168:return S.some(t.parameters,function(e){return te(e,t,r)});default:return!1}}function ie(e){var t=e.parent;return(275===t.kind||274===t.kind||276===t.kind)&&t.tagName===e}function ae(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 224:case 206:case 225:case 207:case 208:case 221:case 209:case 212:case 210:case 211:case 214:case 215:case 216:case 217:case 220:case 218:case 222:case 273:case 274:case 277:case 219:case 213:case 226:return!0;case 157:for(;157===e.parent.kind;)e=e.parent;return 176===e.parent.kind||ie(e);case 78:if(176===e.parent.kind||ie(e))return!0;case 8:case 9:case 10:case 14:case 107:return oe(e);default:return!1}}function oe(e){var t=e.parent;switch(t.kind){case 249:case 160:case 163:case 162:case 291:case 288:case 198:return t.initializer===e;case 233:case 234:case 235:case 236:case 242:case 243:case 244:case 284:case 246:return t.expression===e;case 237:return t.initializer===e&&250!==t.initializer.kind||t.condition===e||t.incrementor===e;case 238:case 239:return t.initializer===e&&250!==t.initializer.kind||t.expression===e;case 206:case 224:case 228:case 158:return e===t.expression;case 161:case 283:case 282:case 290:return!0;case 223:return t.expression===e&&br(t);case 289:return t.objectAssignmentInitializer===e;default:return ae(t)}}function se(e){for(;157===e.kind||78===e.kind;)e=e.parent;return 176===e.kind}function ce(e){return 260===e.kind&&272===e.moduleReference.kind}function ue(e){return le(e)}function le(e){return!!e&&!!(131072&e.flags)}function _e(e,t){if(203!==e.kind)return!1;var r=e.expression,e=e.arguments;if(78!==r.kind||"require"!==r.escapedText)return!1;if(1!==e.length)return!1;e=e[0];return!t||S.isStringLiteralLike(e)}function de(e,t){return 198===e.kind&&(e=e.parent.parent),S.isVariableDeclaration(e)&&!!e.initializer&&_e(Jr(e.initializer),t)}function pe(e){return S.isBinaryExpression(e)||jr(e)||S.isIdentifier(e)||S.isCallExpression(e)}function fe(e){return le(e)&&e.initializer&&S.isBinaryExpression(e.initializer)&&(56===e.initializer.operatorToken.kind||60===e.initializer.operatorToken.kind)&&e.name&&xr(e.name)&&me(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ge(e,t){if(S.isCallExpression(e)){var r=We(e.expression);return 208===r.kind||209===r.kind?e:void 0}return 208===e.kind||221===e.kind||209===e.kind||S.isObjectLiteralExpression(e)&&(0===e.properties.length||t)?e:void 0}function me(e,t){if(lt(e)&&lt(t))return _t(e)===_t(t);if(S.isIdentifier(e)&&Se(t)&&(107===t.expression.kind||S.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Ne(t);return S.isPrivateIdentifier(r)&&S.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),me(e,r)}return!(!Se(e)||!Se(t))&&(Fe(e)===Fe(t)&&me(e.expression,t.expression))}function ye(e){for(;vr(e,!0);)e=e.right;return e}function he(e){return S.isIdentifier(e)&&"exports"===e.escapedText}function ve(e){return S.isIdentifier(e)&&"module"===e.escapedText}function be(e){return(S.isPropertyAccessExpression(e)||Te(e))&&ve(e.expression)&&"exports"===Fe(e)}function xe(e){var t=function(e){if(S.isCallExpression(e)){if(!De(e))return 0;var t=e.arguments[0];return he(t)||be(t)?8:Ce(t)&&"prototype"===Fe(t)?9:7}if(62!==e.operatorToken.kind||!jr(e.left)||function(e){return S.isVoidExpression(e)&&S.isNumericLiteral(e.expression)&&"0"===e.expression.text}(ye(e)))return 0;if(ke(e.left.expression,!0)&&"prototype"===Fe(e.left)&&S.isObjectLiteralExpression(we(e)))return 6;return Pe(e.left)}(e);return 5===t||le(e)?t:0}function De(e){return 3===S.length(e.arguments)&&S.isPropertyAccessExpression(e.expression)&&S.isIdentifier(e.expression.expression)&&"Object"===S.idText(e.expression.expression)&&"defineProperty"===S.idText(e.expression.name)&&it(e.arguments[1])&&ke(e.arguments[0],!0)}function Se(e){return S.isPropertyAccessExpression(e)||Te(e)}function Te(e){return S.isElementAccessExpression(e)&&(it(e.argumentExpression)||ct(e.argumentExpression))}function Ce(e,t){return S.isPropertyAccessExpression(e)&&(!t&&107===e.expression.kind||S.isIdentifier(e.name)&&ke(e.expression,!0))||Ee(e,t)}function Ee(e,t){return Te(e)&&(!t&&107===e.expression.kind||xr(e.expression)||Ce(e.expression,!0))}function ke(e,t){return xr(e)||Ce(e,t)}function Ne(e){return S.isPropertyAccessExpression(e)?e.name:e.argumentExpression}function Ae(e){if(S.isPropertyAccessExpression(e))return e.name;var t=We(e.argumentExpression);return S.isNumericLiteral(t)||S.isStringLiteralLike(t)?t:e}function Fe(e){var t=Ae(e);if(t){if(S.isIdentifier(t))return t.escapedText;if(S.isStringLiteralLike(t)||S.isNumericLiteral(t))return S.escapeLeadingUnderscores(t.text)}if(S.isElementAccessExpression(e)&&ct(e.argumentExpression))return dt(S.idText(e.argumentExpression.name))}function Pe(e){if(107===e.expression.kind)return 4;if(be(e))return 2;if(ke(e.expression,!0)){if(Sr(e.expression))return 3;for(var t=e;!S.isIdentifier(t.expression);)t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===Fe(t))&&Ce(e))return 1;if(ke(e,!0)||S.isElementAccessExpression(e)&&st(e))return 5}return 0}function we(e){for(;S.isBinaryExpression(e.right);)e=e.right;return e.right}function Ie(e){switch(e.parent.kind){case 261:case 267:return e.parent;case 272:return e.parent.parent;case 203:return j(e.parent)||_e(e.parent,!1)?e.parent:void 0;case 191:return S.Debug.assert(S.isStringLiteral(e)),S.tryCast(e.parent.parent,S.isImportTypeNode);default:return}}function Oe(e){return 331===e.kind||324===e.kind||325===e.kind}function Me(e){return S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&0!==xe(e.expression)&&S.isBinaryExpression(e.expression.right)&&(56===e.expression.right.operatorToken.kind||60===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Le(e){switch(e.kind){case 232:var t=Re(e);return t&&t.initializer;case 163:case 288:return e.initializer}}function Re(e){return S.isVariableStatement(e)?S.firstOrUndefined(e.declarationList.declarations):void 0}function Be(e){return S.isModuleDeclaration(e)&&e.body&&256===e.body.kind?e.body:void 0}function je(e){e=Je(e);return e&&S.isFunctionLike(e)?e:void 0}function Je(e){var t=ze(e);return Me(t)||(e=t,S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&62===e.expression.operatorToken.kind?ye(e.expression):void 0)||Le(t)||Re(t)||Be(t)||t}function ze(e){return S.Debug.checkDefined(S.findAncestor(e.parent,S.isJSDoc)).parent}function Ue(e){var t=S.isJSDocParameterTag(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&309===t.kind}function Ve(e){for(var t=e.parent;;){switch(t.kind){case 216:var r=t.operatorToken.kind;return mr(r)&&t.left===e?62===r||gr(r)?1:2:0;case 214:case 215:r=t.operator;return 45===r||46===r?2:0;case 238:case 239:return t.initializer===e?1:0;case 207:case 199:case 220:case 225:e=t;break;case 289:if(t.name!==e)return 0;e=t.parent;break;case 288:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Ke(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function qe(e){return Ke(e,207)}function We(e){return S.skipOuterExpressions(e,1)}function He(e){return xr(e)||S.isClassExpression(e)}function Ge(e){return He(Xe(e))}function Xe(e){return S.isExportAssignment(e)?e.expression:e.right}function Qe(e){var t=Ye(e);if(t&&le(e)){e=S.getJSDocAugmentsTag(e);if(e)return e.class}return t}function Ye(e){e=et(e.heritageClauses,93);return e&&0<e.types.length?e.types[0]:void 0}function Ze(e){if(le(e))return S.getJSDocImplementsTags(e).map(function(e){return e.class});e=et(e.heritageClauses,116);return null==e?void 0:e.types}function $e(e){e=et(e.heritageClauses,93);return e?e.types:void 0}function et(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function tt(e){return 80<=e&&e<=156}function rt(e){return 125<=e&&e<=156}function nt(e){return tt(e)&&!rt(e)}function it(e){return S.isStringLiteralLike(e)||S.isNumericLiteral(e)}function at(e){return S.isPrefixUnaryExpression(e)&&(39===e.operator||40===e.operator)&&S.isNumericLiteral(e.operand)}function ot(e){e=S.getNameOfDeclaration(e);return!!e&&st(e)}function st(e){if(158!==e.kind&&202!==e.kind)return!1;e=S.isElementAccessExpression(e)?We(e.argumentExpression):e.expression;return!it(e)&&!at(e)&&!ct(e)}function ct(e){return S.isPropertyAccessExpression(e)&&pt(e.expression)}function ut(e){switch(e.kind){case 78:case 79:return e.escapedText;case 10:case 8:return S.escapeLeadingUnderscores(e.text);case 158:var t=e.expression;return ct(t)?dt(S.idText(t.name)):it(t)?S.escapeLeadingUnderscores(t.text):at(t)?40===t.operator?S.tokenToString(t.operator)+t.operand.text:t.operand.text:void 0;default:return S.Debug.assertNever(e)}}function lt(e){switch(e.kind){case 78:case 10:case 14:case 8:return!0;default:return!1}}function _t(e){return S.isIdentifierOrPrivateIdentifier(e)?S.idText(e):e.text}function dt(e){return"__@"+e}function pt(e){return 78===e.kind&&"Symbol"===e.escapedText}function ft(e){for(;198===e.kind;)e=e.parent.parent;return e}function gt(e){return Ln(e.pos)||Ln(e.end)}function mt(e,t,r){switch(e){case 204:return r?0:1;case 214:case 211:case 212:case 210:case 213:case 217:case 219:return 1;case 216:switch(t){case 42:case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 77:case 73:case 74:case 75:case 76:return 1}}return 0}function yt(e){return 216===e.kind?e.operatorToken.kind:214===e.kind||215===e.kind?e.operator:e.kind}function ht(e,t,r){switch(e){case 337:return 0;case 220:return 1;case 219:return 2;case 217:return 4;case 216:switch(t){case 27:return 0;case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 77:case 73:case 74:case 75:case 76:return 3;default:return vt(t)}case 214:case 211:case 212:case 210:case 213:return 16;case 215:return 17;case 203:return 18;case 204:return r?19:18;case 205:case 201:case 202:return 19;case 107:case 105:case 78:case 103:case 109:case 94:case 8:case 9:case 10:case 199:case 200:case 208:case 209:case 221:case 13:case 14:case 218:case 207:case 222:case 273:case 274:case 277:return 20;default:return-1}}function vt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 101:case 100:case 126:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}S.isPartOfTypeNode=W,S.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},S.forEachReturnStatement=function(e,r){return function e(t){switch(t.kind){case 242:return r(t);case 258:case 230:case 234:case 235:case 236:case 237:case 238:case 239:case 243:case 244:case 284:case 285:case 245:case 247:case 287:return S.forEachChild(t,e)}}(e)},S.forEachYieldExpression=function(e,n){return function e(t){switch(t.kind){case 219:n(t);var r=t.expression;return void(r&&e(r));case 255:case 253:case 256:case 254:return;default:if(S.isFunctionLike(t)){if(t.name&&158===t.name.kind)return void e(t.name.expression)}else W(t)||S.forEachChild(t,e)}}(e)},S.getRestParameterElementType=function(e){return e&&178===e.kind?e.elementType:e&&173===e.kind?S.singleOrUndefined(e.typeArguments):void 0},S.getMembersOfDeclaration=function(e){switch(e.kind){case 253:case 252:case 221:case 177:return e.members;case 200:return e.properties}},S.isVariableLike=H,S.isVariableLikeOrAccessor=function(e){return H(e)||S.isAccessor(e)},S.isVariableDeclarationInVariableStatement=G,S.isValidESSymbolDeclaration=function(e){return S.isVariableDeclaration(e)?B(e)&&S.isIdentifier(e.name)&&G(e):S.isPropertyDeclaration(e)?ar(e)&&ir(e):S.isPropertySignature(e)&&ar(e)},S.introducesArgumentsExoticObject=function(e){switch(e.kind){case 165:case 164:case 166:case 167:case 168:case 251:case 208:return!0}return!1},S.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),245!==e.statement.kind)return e.statement;e=e.statement}},S.isFunctionBlock=function(e){return e&&230===e.kind&&S.isFunctionLike(e.parent)},S.isObjectLiteralMethod=function(e){return e&&165===e.kind&&200===e.parent.kind},S.isObjectLiteralOrClassExpressionMethod=function(e){return 165===e.kind&&(200===e.parent.kind||221===e.parent.kind)},S.isIdentifierTypePredicate=function(e){return e&&1===e.kind},S.isThisTypePredicate=function(e){return e&&0===e.kind},S.getPropertyAssignment=X,S.getTsConfigObjectLiteralExpression=Q,S.getTsConfigPropArrayElementValue=function(e,t,r){return S.firstDefined(Y(e,t),function(e){return S.isArrayLiteralExpression(e.initializer)?S.find(e.initializer.elements,function(e){return S.isStringLiteral(e)&&e.text===r}):void 0})},S.getTsConfigPropArray=Y,S.getContainingFunction=function(e){return S.findAncestor(e.parent,S.isFunctionLike)},S.getContainingFunctionDeclaration=function(e){return S.findAncestor(e.parent,S.isFunctionLikeDeclaration)},S.getContainingClass=function(e){return S.findAncestor(e.parent,S.isClassLike)},S.getThisContainer=Z,S.isInTopLevelContext=function(e){return S.isIdentifier(e)&&(S.isClassDeclaration(e.parent)||S.isFunctionDeclaration(e.parent))&&e.parent.name===e&&(e=e.parent),e=Z(e,!0),S.isSourceFile(e)},S.getNewTargetContainer=function(e){var t=Z(e,!1);if(t)switch(t.kind){case 166:case 251:case 208:return t}},S.getSuperContainer=function(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 158:e=e.parent;break;case 251:case 208:case 209:if(!t)continue;case 163:case 162:case 165:case 164:case 166:case 167:case 168:return e;case 161:160===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent)}}},S.getImmediatelyInvokedFunctionExpression=function(e){if(208===e.kind||209===e.kind){for(var t=e,r=e.parent;207===r.kind;)r=(t=r).parent;if(203===r.kind&&r.expression===t)return r}},S.isSuperOrSuperProperty=function(e){return 105===e.kind||$(e)},S.isSuperProperty=$,S.isThisProperty=function(e){var t=e.kind;return(201===t||202===t)&&107===e.expression.kind},S.isThisInitializedDeclaration=function(e){return!!e&&S.isVariableDeclaration(e)&&107===(null===(e=e.initializer)||void 0===e?void 0:e.kind)},S.getEntityNameFromTypeNode=function(e){switch(e.kind){case 173:return e.typeName;case 223:return xr(e.expression)?e.expression:void 0;case 78:case 157:return e}},S.getInvokedExpression=function(e){switch(e.kind){case 205:return e.tag;case 275:case 274:return e.tagName;default:return e.expression}},S.nodeCanBeDecorated=ee,S.nodeIsDecorated=te,S.nodeOrChildIsDecorated=re,S.childIsDecorated=ne,S.isJSXTagName=ie,S.isExpressionNode=ae,S.isInExpressionContext=oe,S.isPartOfTypeQuery=se,S.isExternalModuleImportEqualsDeclaration=ce,S.getExternalModuleImportEqualsDeclarationExpression=function(e){return S.Debug.assert(ce(e)),e.moduleReference.expression},S.getExternalModuleRequireArgument=function(e){return de(e,!0)&&Jr(e.initializer).arguments[0]},S.isInternalModuleImportEqualsDeclaration=function(e){return 260===e.kind&&272!==e.moduleReference.kind},S.isSourceFileJS=ue,S.isSourceFileNotJS=function(e){return!le(e)},S.isInJSFile=le,S.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},S.isSourceFileNotJson=function(e){return!R(e)},S.isInJSDoc=function(e){return!!e&&!!(4194304&e.flags)},S.isJSDocIndexSignature=function(e){return S.isTypeReferenceNode(e)&&S.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(147===e.typeArguments[0].kind||144===e.typeArguments[0].kind)},S.isRequireCall=_e,S.isRequireVariableDeclaration=de,S.isRequireVariableStatement=function(e,t){return void 0===t&&(t=!0),S.isVariableStatement(e)&&0<e.declarationList.declarations.length&&S.every(e.declarationList.declarations,function(e){return de(e,t)})},S.isSingleOrDoubleQuote=function(e){return 39===e||34===e},S.isStringDoubleQuoted=function(e,t){return 34===m(t,e).charCodeAt(0)},S.isAssignmentDeclaration=pe,S.getEffectiveInitializer=fe,S.getDeclaredExpandoInitializer=function(e){var t=fe(e);return t&&ge(t,Sr(e.name))},S.getAssignedExpandoInitializer=function(e){if(e&&e.parent&&S.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind){var t=Sr(e.parent.left);return ge(e.parent.right,t)||function(e,t,r){r=S.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&ge(t.right,r);if(r&&me(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&S.isCallExpression(e)&&De(e)){t=(t=e.arguments[2],r="prototype"===e.arguments[1].text,S.forEach(t.properties,function(e){return S.isPropertyAssignment(e)&&S.isIdentifier(e.name)&&"value"===e.name.escapedText&&e.initializer&&ge(e.initializer,r)}));if(t)return t}var r},S.getExpandoInitializer=ge,S.isDefaultedExpandoInitializer=function(e){var t=S.isVariableDeclaration(e.parent)?e.parent.name:S.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&ge(e.right,Sr(t))&&xr(t)&&me(t,e.left)},S.getNameOfExpando=function(e){if(S.isBinaryExpression(e.parent)){var t=(56!==e.parent.operatorToken.kind&&60!==e.parent.operatorToken.kind||!S.isBinaryExpression(e.parent.parent)?e:e.parent).parent;if(62===t.operatorToken.kind&&S.isIdentifier(t.left))return t.left}else if(S.isVariableDeclaration(e.parent))return e.parent.name},S.isSameEntityName=me,S.getRightMostAssignedExpression=ye,S.isExportsIdentifier=he,S.isModuleIdentifier=ve,S.isModuleExportsAccessExpression=be,S.getAssignmentDeclarationKind=xe,S.isBindableObjectDefinePropertyCall=De,S.isLiteralLikeAccess=Se,S.isLiteralLikeElementAccess=Te,S.isBindableStaticAccessExpression=Ce,S.isBindableStaticElementAccessExpression=Ee,S.isBindableStaticNameExpression=ke,S.getNameOrArgument=Ne,S.getElementOrPropertyAccessArgumentExpressionOrName=Ae,S.getElementOrPropertyAccessName=Fe,S.getAssignmentDeclarationPropertyAccessKind=Pe,S.getInitializerOfBinaryExpression=we,S.isPrototypePropertyAssignment=function(e){return S.isBinaryExpression(e)&&3===xe(e)},S.isSpecialPropertyDeclaration=function(e){return le(e)&&e.parent&&233===e.parent.kind&&(!S.isElementAccessExpression(e)||Te(e))&&!!S.getJSDocTypeTag(e.parent)},S.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&pe(r)&&!pe(t)||r.kind!==t.kind&&T(r))&&(e.valueDeclaration=t)},S.isFunctionSymbol=function(e){return!(!e||!e.valueDeclaration)&&(251===(e=e.valueDeclaration).kind||S.isVariableDeclaration(e)&&e.initializer&&S.isFunctionLike(e.initializer))},S.importFromModuleSpecifier=function(e){return Ie(e)||S.Debug.failBadSyntaxKind(e.parent)},S.tryGetImportFromModuleSpecifier=Ie,S.getExternalModuleName=function(e){switch(e.kind){case 261:case 267:return e.moduleSpecifier;case 260:return 272===e.moduleReference.kind?e.moduleReference.expression:void 0;case 195:return J(e)?e.argument.literal:void 0;default:return S.Debug.assertNever(e)}},S.getNamespaceDeclarationNode=function(e){switch(e.kind){case 261:return e.importClause&&S.tryCast(e.importClause.namedBindings,S.isNamespaceImport);case 260:return e;case 267:return e.exportClause&&S.tryCast(e.exportClause,S.isNamespaceExport);default:return S.Debug.assertNever(e)}},S.isDefaultImport=function(e){return 261===e.kind&&!!e.importClause&&!!e.importClause.name},S.forEachImportClauseDeclaration=function(e,t){var r;if(e.name&&(r=t(e)))return r;if(e.namedBindings&&(r=S.isNamespaceImport(e.namedBindings)?t(e.namedBindings):S.forEach(e.namedBindings.elements,t)))return r},S.hasQuestionToken=function(e){if(e)switch(e.kind){case 160:case 165:case 164:case 289:case 288:case 163:case 162:return void 0!==e.questionToken}return!1},S.isJSDocConstructSignature=function(e){return e=S.isJSDocFunctionType(e)?S.firstOrUndefined(e.parameters):void 0,!!(e=S.tryCast(e&&e.name,S.isIdentifier))&&"new"===e.escapedText},S.isJSDocTypeAlias=Oe,S.isTypeAlias=function(e){return Oe(e)||S.isTypeAliasDeclaration(e)},S.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Le,S.getSingleVariableOfVariableStatement=Re,S.getJSDocCommentsAndTags=function(e,t){var r;H(e)&&S.hasInitializer(e)&&S.hasJSDocNodes(e.initializer)&&(r=S.append(r,S.last(e.initializer.jsDoc)));for(var n,i,a=e;a&&a.parent;){if(S.hasJSDocNodes(a)&&(r=S.append(r,S.last(a.jsDoc))),160===a.kind){r=S.addRange(r,(t?S.getJSDocParameterTagsNoCache:S.getJSDocParameterTags)(a));break}if(159===a.kind){r=S.addRange(r,(t?S.getJSDocTypeParameterTagsNoCache:S.getJSDocTypeParameterTags)(a));break}i=void 0,a=288===(i=(n=a).parent).kind||266===i.kind||163===i.kind||233===i.kind&&201===n.kind||Be(i)||S.isBinaryExpression(n)&&62===n.operatorToken.kind?i:i.parent&&(Re(i.parent)===n||S.isBinaryExpression(i)&&62===i.operatorToken.kind)?i.parent:i.parent&&i.parent.parent&&(Re(i.parent.parent)||Le(i.parent.parent)===n||Me(i.parent.parent))?i.parent.parent:void 0}return r||S.emptyArray},S.getParameterSymbolFromJSDoc=function(e){if(e.symbol)return e.symbol;if(S.isIdentifier(e.name)){var t=e.name.escapedText,e=je(e);if(e){e=S.find(e.parameters,function(e){return 78===e.name.kind&&e.name.escapedText===t});return e&&e.symbol}}},S.getHostSignatureFromJSDoc=je,S.getEffectiveJSDocHost=Je,S.getJSDocHost=ze,S.getTypeParameterFromJsDoc=function(e){var t=e.name.escapedText;return(e=e.parent.parent.parent.typeParameters)&&S.find(e,function(e){return e.name.escapedText===t})},S.hasRestParameter=function(e){return!!(e=S.lastOrUndefined(e.parameters))&&Ue(e)},S.isRestParameter=Ue,S.hasTypeArguments=function(e){return!!e.typeArguments},(Cn=S.AssignmentKind||(S.AssignmentKind={}))[Cn.None=0]="None",Cn[Cn.Definite=1]="Definite",Cn[Cn.Compound=2]="Compound",S.getAssignmentTargetKind=Ve,S.isAssignmentTarget=function(e){return 0!==Ve(e)},S.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 230:case 232:case 243:case 234:case 244:case 258:case 284:case 285:case 245:case 237:case 238:case 239:case 235:case 236:case 247:case 287:return!0}return!1},S.isValueSignatureDeclaration=function(e){return S.isFunctionExpression(e)||S.isArrowFunction(e)||S.isMethodOrAccessor(e)||S.isFunctionDeclaration(e)||S.isConstructorDeclaration(e)},S.walkUpParenthesizedTypes=function(e){return Ke(e,186)},S.walkUpParenthesizedExpressions=qe,S.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&186===e.kind;)e=(t=e).parent;return[t,e]},S.skipParentheses=We,S.isDeleteTarget=function(e){return(201===e.kind||202===e.kind)&&((e=qe(e.parent))&&210===e.kind)},S.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},S.isDeclarationName=function(e){return!S.isSourceFile(e)&&!S.isBindingPattern(e)&&S.isDeclaration(e.parent)&&e.parent.name===e},S.getDeclarationFromName=function(e){var t=e.parent;switch(e.kind){case 10:case 14:case 8:if(S.isComputedPropertyName(t))return t.parent;case 78:if(S.isDeclaration(t))return t.name===e?t:void 0;if(S.isQualifiedName(t)){var r=t.parent;return S.isJSDocParameterTag(r)&&r.name===t?r:void 0}r=t.parent;return S.isBinaryExpression(r)&&0!==xe(r)&&(r.left.symbol||r.symbol)&&S.getNameOfDeclaration(r)===e?r:void 0;case 79:return S.isDeclaration(t)&&t.name===e?t:void 0;default:return}},S.isLiteralComputedPropertyDeclarationName=function(e){return it(e)&&158===e.parent.kind&&S.isDeclaration(e.parent.parent)},S.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 163:case 162:case 165:case 164:case 167:case 168:case 291:case 288:case 201:return t.name===e;case 157:return t.right===e;case 198:case 265:return t.propertyName===e;case 270:case 280:return!0}return!1},S.isAliasSymbolDeclaration=function(e){return 260===e.kind||259===e.kind||262===e.kind&&!!e.name||263===e.kind||269===e.kind||265===e.kind||270===e.kind||266===e.kind&&Ge(e)||S.isBinaryExpression(e)&&2===xe(e)&&Ge(e)||S.isPropertyAccessExpression(e)&&S.isBinaryExpression(e.parent)&&e.parent.left===e&&62===e.parent.operatorToken.kind&&He(e.parent.right)||289===e.kind||288===e.kind&&He(e.initializer)},S.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 262:case 265:case 263:case 270:case 266:case 260:return t.parent;case 157:for(;t=t.parent,157===t.parent.kind;);return e(t)}},S.isAliasableExpression=He,S.exportAssignmentIsAlias=Ge,S.getExportAssignmentExpression=Xe,S.getPropertyAssignmentAliasLikeExpression=function(e){return 289===e.kind?e.name:288===e.kind?e.initializer:e.parent.right},S.getEffectiveBaseTypeNode=Qe,S.getClassExtendsHeritageElement=Ye,S.getEffectiveImplementsTypeNodes=Ze,S.getAllSuperTypeNodes=function(e){return S.isInterfaceDeclaration(e)?$e(e)||S.emptyArray:S.isClassLike(e)&&S.concatenate(S.singleElementArray(Qe(e)),Ze(e))||S.emptyArray},S.getInterfaceBaseTypeNodes=$e,S.getHeritageClause=et,S.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},S.isKeyword=tt,S.isContextualKeyword=rt,S.isNonContextualKeyword=nt,S.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},S.isStringANonContextualKeyword=function(e){return void 0!==(e=S.stringToToken(e))&&nt(e)},S.isStringAKeyword=function(e){return void 0!==(e=S.stringToToken(e))&&tt(e)},S.isIdentifierANonContextualKeyword=function(e){return!!(e=e.originalKeywordKind)&&!rt(e)},S.isTrivia=function(e){return 2<=e&&e<=7},(Cn=S.FunctionFlags||(S.FunctionFlags={}))[Cn.Normal=0]="Normal",Cn[Cn.Generator=1]="Generator",Cn[Cn.Async=2]="Async",Cn[Cn.Invalid=4]="Invalid",Cn[Cn.AsyncGenerator=3]="AsyncGenerator",S.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 251:case 208:case 165:e.asteriskToken&&(t|=1);case 209:nr(e,256)&&(t|=2)}return e.body||(t|=4),t},S.isAsyncFunction=function(e){switch(e.kind){case 251:case 208:case 209:case 165:return void 0!==e.body&&void 0===e.asteriskToken&&nr(e,256)}return!1},S.isStringOrNumericLiteralLike=it,S.isSignedNumericLiteral=at,S.hasDynamicName=ot,S.isDynamicName=st,S.isWellKnownSymbolSyntactically=ct,S.getPropertyNameForPropertyNameNode=ut,S.isPropertyNameLiteral=lt,S.getTextOfIdentifierOrLiteral=_t,S.getEscapedTextOfIdentifierOrLiteral=function(e){return S.isIdentifierOrPrivateIdentifier(e)?e.escapedText:S.escapeLeadingUnderscores(e.text)},S.getPropertyNameForUniqueESSymbol=function(e){return"__@"+S.getSymbolId(e)+"@"+e.escapedName},S.getPropertyNameForKnownSymbolName=dt,S.getSymbolNameForPrivateIdentifier=function(e,t){return"__#"+S.getSymbolId(e)+"@"+t},S.isKnownSymbol=function(e){return S.startsWith(e.escapedName,"__@")},S.isESSymbolIdentifier=pt,S.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},S.isParameterDeclaration=function(e){return 160===ft(e).kind},S.getRootDeclaration=ft,S.nodeStartsNewLexicalEnvironment=function(e){return 166===(e=e.kind)||208===e||251===e||209===e||165===e||167===e||168===e||256===e||297===e},S.nodeIsSynthesized=gt,S.getOriginalSourceFile=function(e){return S.getParseTreeNode(e,S.isSourceFile)||e},(Cn=S.Associativity||(S.Associativity={}))[Cn.Left=0]="Left",Cn[Cn.Right=1]="Right",S.getExpressionAssociativity=function(e){var t=yt(e),r=204===e.kind&&void 0!==e.arguments;return mt(e.kind,t,r)},S.getOperatorAssociativity=mt,S.getExpressionPrecedence=function(e){var t=yt(e),r=204===e.kind&&void 0!==e.arguments;return ht(e.kind,t,r)},S.getOperator=yt,(Cn=S.OperatorPrecedence||(S.OperatorPrecedence={}))[Cn.Comma=0]="Comma",Cn[Cn.Spread=1]="Spread",Cn[Cn.Yield=2]="Yield",Cn[Cn.Assignment=3]="Assignment",Cn[Cn.Conditional=4]="Conditional",Cn[Cn.Coalesce=4]="Coalesce",Cn[Cn.LogicalOR=5]="LogicalOR",Cn[Cn.LogicalAND=6]="LogicalAND",Cn[Cn.BitwiseOR=7]="BitwiseOR",Cn[Cn.BitwiseXOR=8]="BitwiseXOR",Cn[Cn.BitwiseAND=9]="BitwiseAND",Cn[Cn.Equality=10]="Equality",Cn[Cn.Relational=11]="Relational",Cn[Cn.Shift=12]="Shift",Cn[Cn.Additive=13]="Additive",Cn[Cn.Multiplicative=14]="Multiplicative",Cn[Cn.Exponentiation=15]="Exponentiation",Cn[Cn.Unary=16]="Unary",Cn[Cn.Update=17]="Update",Cn[Cn.LeftHandSide=18]="LeftHandSide",Cn[Cn.Member=19]="Member",Cn[Cn.Primary=20]="Primary",Cn[Cn.Highest=20]="Highest",Cn[Cn.Lowest=0]="Lowest",Cn[Cn.Invalid=-1]="Invalid",S.getOperatorPrecedence=ht,S.getBinaryOperatorPrecedence=vt,S.getSemanticJsxChildren=function(e){return S.filter(e,function(e){switch(e.kind){case 283:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})},S.createDiagnosticCollection=function(){var r=[],n=[],i=new S.Map,a=!1;return{add:function(e){var t;e.file?(t=i.get(e.file.fileName))||(t=[],i.set(e.file.fileName,t),S.insertSorted(n,e.file.fileName,S.compareStringsCaseSensitive)):(a&&(a=!1,r=r.slice()),t=r);S.insertSorted(t,e,Zr)},lookup:function(e){var t;t=e.file?i.get(e.file.fileName):r;if(!t)return;e=S.binarySearch(t,e,S.identity,$r);if(0<=e)return t[e];return},getGlobalDiagnostics:function(){return a=!0,r},getDiagnostics:function(e){if(e)return i.get(e)||[];e=S.flatMapToMutable(n,function(e){return i.get(e)});return r.length&&e.unshift.apply(e,r),e},reattachFileDiagnostics:function(t){S.forEach(i.get(t.fileName),function(e){return e.file=t})}}};var bt=/\$\{/g;S.hasInvalidEscape=function(e){return e&&!!(S.isNoSubstitutionTemplateLiteral(e)?e.templateFlags:e.head.templateFlags||S.some(e.templateSpans,function(e){return!!e.literal.templateFlags}))};var xt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Dt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,St=/[\\`]/g,Tt=new S.Map(S.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"}));function Ct(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Et(e,t,r){if(0!==e.charCodeAt(0))return Tt.get(e)||Ct(e.charCodeAt(0));e=r.charCodeAt(t+e.length);return 48<=e&&e<=57?"\\x00":"\\0"}function kt(e,t){t=96===t?St:39===t?Dt:xt;return e.replace(t,Et)}S.escapeString=kt;var Nt=/[^\u0000-\u007F]/g;function At(e,t){return e=kt(e,t),Nt.test(e)?e.replace(Nt,function(e){return Ct(e.charCodeAt(0))}):e}S.escapeNonAsciiString=At;var Ft=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Pt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,wt=new S.Map(S.getEntries({'"':"&quot;","'":"&apos;"}));function It(e){return 0===e.charCodeAt(0)?"&#0;":wt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ot(e,t){t=39===t?Pt:Ft;return e.replace(t,It)}S.escapeJsxAttributeString=Ot,S.stripQuotes=function(e){var t,r=e.length;return 2<=r&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},S.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return 97<=t&&t<=122||S.stringContains(e,"-")};var Mt=["","    "];function Lt(e){for(var t=Mt[1],r=Mt.length;r<=e;r++)Mt.push(Mt[r-1]+t);return Mt[e]}function Rt(){return Mt[1].length}function Bt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function jt(e,t,r){return t.moduleName||Jt(e,t.fileName,r&&r.fileName)}function Jt(t,e,r){var n=function(e){return t.getCanonicalFileName(e)},i=S.toPath(r?S.getDirectoryPath(r):t.getCommonSourceDirectory(),t.getCurrentDirectory(),n),e=S.getNormalizedAbsolutePath(e,t.getCurrentDirectory()),n=wn(S.getRelativePathToDirectoryOrUrl(i,e,i,n,!1));return r?S.ensurePathIsNonModuleName(n):n}function zt(e,t,r,n,i){t=t.declarationDir||t.outDir;return wn(t?qt(e,t,r,n,i):e)+".d.ts"}function Ut(e){return e.outFile||e.out}function Vt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&ue(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(R(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Kt(e,t,r){return qt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function qt(e,t,r,n,i){r=0===i(r=S.getNormalizedAbsolutePath(e,r)).indexOf(i(n))?r.substring(n.length):r;return S.combinePaths(t,r)}function Wt(e,t){return S.computeLineOfPosition(e,t)}function Ht(e){if(e&&0<e.parameters.length){var t=2===e.parameters.length&&Gt(e.parameters[0]);return e.parameters[t?1:0]}}function Gt(e){return Xt(e.name)}function Xt(e){return!!e&&78===e.kind&&Qt(e)}function Qt(e){return 107===e.originalKeywordKind}function Yt(e){if(le(e)||!S.isFunctionDeclaration(e)){var t=e.type;return t||!le(e)?t:S.isJSDocPropertyLikeTag(e)?e.typeExpression&&e.typeExpression.type:S.getJSDocType(e)}}function Zt(e,t,r,n){$t(e,t,r.pos,n)}function $t(e,t,r,n){n&&n.length&&r!==n[0].pos&&Wt(e,r)!==Wt(e,n[0].pos)&&t.writeLine()}function er(e,t,r,n,i,a,o,s){if(n&&0<n.length){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u<l.length;u++){var _=l[u];c&&(r.writeSpace(" "),c=!1),s(e,t,r,_.pos,_.end,o),_.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function tr(e,t,r){for(var n=0;t<r&&S.isWhiteSpaceSingleLine(e.charCodeAt(t));t++)9===e.charCodeAt(t)?n+=Rt()-n%Rt():n++;return n}function rr(e,t){return!!or(e,t)}function nr(e,t){return!!sr(e,t)}function ir(e){return nr(e,32)}function ar(e){return rr(e,64)}function or(e,t){return ur(e)&t}function sr(e,t){return lr(e)&t}function cr(e,t,r){return 0<=e.kind&&e.kind<=156?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|dr(e)),!t||4096&e.modifierFlagsCache||!r&&!le(e)||!e.parent||(e.modifierFlagsCache|=4096|_r(e)),-536875009&e.modifierFlagsCache)}function ur(e){return cr(e,!0)}function lr(e){return cr(e,!1)}function _r(e){var t=0;return e.parent&&!S.isParameter(e)&&(le(e)&&(S.getJSDocPublicTagNoCache(e)&&(t|=4),S.getJSDocPrivateTagNoCache(e)&&(t|=8),S.getJSDocProtectedTagNoCache(e)&&(t|=16),S.getJSDocReadonlyTagNoCache(e)&&(t|=64)),S.getJSDocDeprecatedTagNoCache(e)&&(t|=8192)),t}function dr(e){var t=pr(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function pr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=fr(n[r].kind);return t}function fr(e){switch(e){case 123:return 32;case 122:return 4;case 121:return 16;case 120:return 8;case 125:return 128;case 92:return 1;case 133:return 2;case 84:return 2048;case 87:return 512;case 129:return 256;case 142:return 64}return 0}function gr(e){return 74===e||75===e||76===e}function mr(e){return 62<=e&&e<=77}function yr(e){e=hr(e);return e&&!e.isImplements?e.class:void 0}function hr(e){return S.isExpressionWithTypeArguments(e)&&S.isHeritageClause(e.parent)&&S.isClassLike(e.parent.parent)?{class:e.parent.parent,isImplements:116===e.parent.token}:void 0}function vr(e,t){return S.isBinaryExpression(e)&&(t?62===e.operatorToken.kind:mr(e.operatorToken.kind))&&S.isLeftHandSideExpression(e.left)}function br(e){return void 0!==yr(e)}function xr(e){return 78===e.kind||Dr(e)}function Dr(e){return S.isPropertyAccessExpression(e)&&S.isIdentifier(e.name)&&xr(e.expression)}function Sr(e){return Ce(e)&&"prototype"===Fe(e)}S.getIndentString=Lt,S.getIndentSize=Rt,S.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(e){var t=S.computeLineStarts(e);i=1<t.length&&(a=a+t.length-1,(o=r.length-e.length+S.last(t))-r.length==0)}function u(e){e&&e.length&&(i&&(e=Lt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function e(){o=a=n=0,s=!(i=!(r=""))}return e(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,s=!(i=!0))},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*Rt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&S.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:e,reportInaccessibleThisError:S.noop,reportPrivateInBaseOfClassExpression:S.noop,reportInaccessibleUniqueSymbolError:S.noop,trackSymbol:S.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},S.getTrailingSemicolonDeferringWriter=function(r){var e=!1;function n(){e&&(r.writeTrailingSemicolon(";"),e=!1)}return __assign(__assign({},r),{writeTrailingSemicolon:function(){e=!0},writeLiteral:function(e){n(),r.writeLiteral(e)},writeStringLiteral:function(e){n(),r.writeStringLiteral(e)},writeSymbol:function(e,t){n(),r.writeSymbol(e,t)},writePunctuation:function(e){n(),r.writePunctuation(e)},writeKeyword:function(e){n(),r.writeKeyword(e)},writeOperator:function(e){n(),r.writeOperator(e)},writeParameter:function(e){n(),r.writeParameter(e)},writeSpace:function(e){n(),r.writeSpace(e)},writeProperty:function(e){n(),r.writeProperty(e)},writeComment:function(e){n(),r.writeComment(e)},writeLine:function(){n(),r.writeLine()},increaseIndent:function(){n(),r.increaseIndent()},decreaseIndent:function(){n(),r.decreaseIndent()}})},S.hostUsesCaseSensitiveFileNames=Bt,S.hostGetCanonicalFileName=function(e){return S.createGetCanonicalFileName(Bt(e))},S.getResolvedExternalModuleName=jt,S.getExternalModuleNameFromDeclaration=function(e,t,r){if((r=t.getExternalModuleFileFromDeclaration(r))&&!r.isDeclarationFile)return jt(e,r)},S.getExternalModuleNameFromPath=Jt,S.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(e=n.outDir?wn(Kt(e,t,n.outDir)):wn(e))+r},S.getDeclarationEmitOutputFilePath=function(e,t){return zt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},S.getDeclarationEmitOutputFilePathWorker=zt,S.outFile=Ut,S.getPathsBasePath=function(e,t){var r;if(e.paths)return null!==(r=e.baseUrl)&&void 0!==r?r:S.Debug.checkDefined(e.pathsBasePath||(null===(e=t.getCurrentDirectory)||void 0===e?void 0:e.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},S.getSourceFilesToEmit=function(t,e,r){var n=t.getCompilerOptions();if(Ut(n)){var i=tn(n),a=n.emitDeclarationOnly||i===S.ModuleKind.AMD||i===S.ModuleKind.System;return S.filter(t.getSourceFiles(),function(e){return(a||!S.isExternalModule(e))&&Vt(e,t,r)})}return e=void 0===e?t.getSourceFiles():[e],S.filter(e,function(e){return Vt(e,t,r)})},S.sourceFileMayBeEmitted=Vt,S.getSourceFilePathInNewDir=Kt,S.getSourceFilePathInNewDirWorker=qt,S.writeFile=function(e,t,r,n,i,a){e.writeFile(r,n,i,function(e){t.add(Qr(S.Diagnostics.Could_not_write_file_0_Colon_1,r,e))},a)},S.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(e){!function e(t,r,n){t.length>S.getRootLength(t)&&!n(t)&&(e(S.getDirectoryPath(t),r,n),r(t))}(S.getDirectoryPath(S.normalizePath(t)),a,o),i(t,r,n)}},S.getLineOfLocalPosition=function(e,t){return e=S.getLineStarts(e),S.computeLineOfPosition(e,t)},S.getLineOfLocalPositionFromLineMap=Wt,S.getFirstConstructorWithBody=function(e){return S.find(e.members,function(e){return S.isConstructorDeclaration(e)&&l(e.body)})},S.getSetAccessorValueParameter=Ht,S.getSetAccessorTypeAnnotationNode=function(e){return(e=Ht(e))&&e.type},S.getThisParameter=function(e){if(e.parameters.length&&!S.isJSDocSignature(e)){e=e.parameters[0];if(Gt(e))return e}},S.parameterIsThisKeyword=Gt,S.isThisIdentifier=Xt,S.identifierIsThisKeyword=Qt,S.getAllAccessorDeclarations=function(e,t){var r,n,i,a;return ot(t)?167===(r=t).kind?i=t:168===t.kind?a=t:S.Debug.fail("Accessor has wrong kind"):S.forEach(e,function(e){S.isAccessor(e)&&nr(e,32)===nr(t,32)&&ut(e.name)===ut(t.name)&&(r?n=n||e:r=e,167!==e.kind||i||(i=e),168!==e.kind||a||(a=e))}),{firstAccessor:r,secondAccessor:n,getAccessor:i,setAccessor:a}},S.getEffectiveTypeAnnotationNode=Yt,S.getTypeAnnotationNode=function(e){return e.type},S.getEffectiveReturnTypeNode=function(e){return S.isJSDocSignature(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(le(e)?S.getJSDocReturnType(e):void 0)},S.getJSDocTypeParameterDeclarations=function(e){return S.flatMap(S.getJSDocTags(e),function(e){return t=e,!S.isJSDocTemplateTag(t)||311===t.parent.kind&&t.parent.tags.some(Oe)?void 0:e.typeParameters;var t})},S.getEffectiveSetAccessorTypeAnnotationNode=function(e){return(e=Ht(e))&&Yt(e)},S.emitNewLineBeforeLeadingComments=Zt,S.emitNewLineBeforeLeadingCommentsOfPosition=$t,S.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Wt(e,r)!==Wt(e,n)&&t.writeLine()},S.emitComments=er,S.emitDetachedComments=function(t,e,r,n,i,a,o){var s,c;if(o?0===i.pos&&(s=S.filter(S.getLeadingCommentRanges(t,i.pos),function(e){return f(t,e.pos)})):s=S.getLeadingCommentRanges(t,i.pos),s){for(var u=[],l=void 0,_=0,d=s;_<d.length;_++){var p=d[_];if(l)if(Wt(e,l.end)+2<=Wt(e,p.pos))break;u.push(p),l=p}u.length&&Wt(e,S.last(u).end)+2<=Wt(e,S.skipTrivia(t,i.pos))&&(Zt(e,r,i,s),er(t,e,r,u,!1,!0,a,n),c={nodePos:i.pos,detachedCommentEndPos:S.last(u).end})}return c},S.writeCommentRange=function(e,t,r,n,i,a){if(42===e.charCodeAt(n+1))for(var o=S.computeLineAndCharacterOfPosition(t,n),s=t.length,c=void 0,u=n,l=o.line;u<i;l++){var _=l+1===s?e.length+1:t[l+1];if(u!==n){void 0===c&&(c=tr(e,t[o.line],n));var d=r.getIndent()*Rt()-c+tr(e,u,_);if(0<d){var p=d%Rt(),f=Lt((d-p)/Rt());for(r.rawWrite(f);p;)r.rawWrite(" "),p--}else r.rawWrite("")}g=e,m=i,y=r,h=a,d=u,f=_,f=Math.min(m,f-1),!void((d=g.substring(d,f).replace(/^\s+|\s+$/g,""))?(y.writeComment(d),f!==m&&y.writeLine()):y.rawWrite(h)),u=_}else r.writeComment(e.substring(n,i));var g,m,y,h},S.hasEffectiveModifiers=function(e){return 0!==ur(e)},S.hasSyntacticModifiers=function(e){return 0!==lr(e)},S.hasEffectiveModifier=rr,S.hasSyntacticModifier=nr,S.hasStaticModifier=ir,S.hasEffectiveReadonlyModifier=ar,S.getSelectedEffectiveModifierFlags=or,S.getSelectedSyntacticModifierFlags=sr,S.getEffectiveModifierFlags=ur,S.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return cr(e,!0,!0)},S.getSyntacticModifierFlags=lr,S.getEffectiveModifierFlagsNoCache=function(e){return dr(e)|_r(e)},S.getSyntacticModifierFlagsNoCache=dr,S.modifiersToFlags=pr,S.modifierToFlag=fr,S.isLogicalOperator=function(e){return 56===e||55===e||53===e},S.isLogicalOrCoalescingAssignmentOperator=gr,S.isLogicalOrCoalescingAssignmentExpression=function(e){return gr(e.operatorToken.kind)},S.isAssignmentOperator=mr,S.tryGetClassExtendingExpressionWithTypeArguments=yr,S.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=hr,S.isAssignmentExpression=vr,S.isDestructuringAssignment=function(e){if(vr(e,!0)){e=e.left.kind;return 200===e||199===e}return!1},S.isExpressionWithTypeArgumentsInClassExtendsClause=br,S.isEntityNameExpression=xr,S.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 157:for(;e=e.left,78!==e.kind;);return e;case 201:for(;e=e.expression,78!==e.kind;);return e}},S.isDottedName=function e(t){return 78===t.kind||107===t.kind||105===t.kind||201===t.kind&&e(t.expression)||207===t.kind&&e(t.expression)},S.isPropertyAccessEntityNameExpression=Dr,S.tryGetPropertyAccessOrIdentifierToString=function e(t){if(S.isPropertyAccessExpression(t)){var r=e(t.expression);if(void 0!==r)return r+"."+I(t.name)}else if(S.isIdentifier(t))return S.unescapeLeadingUnderscores(t.escapedText)},S.isPrototypeAccess=Sr,S.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 157===e.parent.kind&&e.parent.right===e||201===e.parent.kind&&e.parent.name===e},S.isEmptyObjectLiteral=function(e){return 200===e.kind&&0===e.properties.length},S.isEmptyArrayLiteral=function(e){return 199===e.kind&&0===e.elements.length},S.getLocalSymbolForExportDefault=function(e){if((t=e)&&0<S.length(t.declarations)&&nr(t.declarations[0],512))for(var t,r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},S.tryExtractTSExtension=function(t){return S.find(S.supportedTSExtensionsForExtractExtension,function(e){return S.fileExtensionIs(t,e)})};var Tr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Cr(e){for(var t,r,n,i,a="",o=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);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)):S.Debug.assert(!1,"Unexpected code point")}return t}(e),s=0,c=o.length;s<c;)t=o[s]>>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],c<=s+1?n=i=64:c<=s+2&&(i=64),a+=Tr.charAt(t)+Tr.charAt(r)+Tr.charAt(n)+Tr.charAt(i),s+=3;return a}function Er(e,t){return void 0===t&&(t=e),S.Debug.assert(e<=t||-1===t),{pos:e,end:t}}function kr(e,t){return Er(t,e.end)}function Nr(e){return e.decorators&&0<e.decorators.length?kr(e,e.decorators.end):e}function Ar(e,t,r){return Fr(Pr(e,r,!1),t.end,r)}function Fr(e,t,r){return 0===S.getLinesBetweenPositions(r,e,t)}function Pr(e,t,r){return Ln(e.pos)?-1:S.skipTrivia(t.text,e.pos,!1,r)}function wr(e){return void 0!==e.initializer}function Ir(e){return 33554432&e.flags?e.checkFlags:0}function Or(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 207:return Or(t);case 215:case 214:var r=t.operator;return 45===r||46===r?i():0;case 216:var r=t.left,n=t.operatorToken;return r===e&&mr(n.kind)?62===n.kind?1:i():0;case 201:return t.name!==e?0:Or(t);case 288:n=Or(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return S.Debug.assertNever(e)}}(n):n;case 289:return e===t.objectAssignmentInitializer?0:Or(t.parent);case 199:return Or(t);default:return 0}function i(){return t.parent&&233===function(e){for(;207===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function Mr(n,i,e){var a=e.onDeleteValue,o=e.onExistingValue;n.forEach(function(e,t){var r=i.get(t);void 0===r?(n.delete(t),a(e,t)):o&&o(e,r,t)})}function Lr(e){if(32&e.flags){e=Rr(e);return!!e&&nr(e,128)}return!1}function Rr(e){return S.find(e.declarations,S.isClassLike)}function Br(e){return 3899393&e.flags?e.objectFlags:0}function jr(e){return 201===e.kind||202===e.kind}function Jr(e){for(;jr(e);)e=e.expression;return e}function e(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function zr(e,t){this.flags=t,(S.Debug.isDebugging||S.tracing.isTracing())&&(this.checker=e)}function Ur(e,t){this.flags=t,S.Debug.isDebugging&&(this.checker=e)}function Vr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Kr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function qr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function Wr(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function Hr(e,r,n){return void 0===n&&(n=0),e.replace(/{(\d+)}/g,function(e,t){return""+S.Debug.checkDefined(r[+t+n])})}function Gr(e){return S.localizedDiagnosticMessages&&S.localizedDiagnosticMessages[e.key]||e.message}function Xr(e,t,r,n){S.Debug.assertGreaterThanOrEqual(t,0),S.Debug.assertGreaterThanOrEqual(r,0),e&&(S.Debug.assertLessThanOrEqual(t,e.text.length),S.Debug.assertLessThanOrEqual(t+r,e.text.length));var i=Gr(n);return 4<arguments.length&&(i=Hr(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function Qr(e){var t=Gr(e);return 1<arguments.length&&(t=Hr(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Yr(e){return e.file?e.file.path:void 0}function Zr(e,t){return $r(e,t)||function(e,r){if(!e.relatedInformation&&!r.relatedInformation)return 0;if(e.relatedInformation&&r.relatedInformation)return S.compareValues(e.relatedInformation.length,r.relatedInformation.length)||S.forEach(e.relatedInformation,function(e,t){return Zr(e,r.relatedInformation[t])})||0;return e.relatedInformation?-1:1}(e,t)||0}function $r(e,t){return S.compareStringsCaseSensitive(Yr(e),Yr(t))||S.compareValues(e.start,t.start)||S.compareValues(e.length,t.length)||S.compareValues(e.code,t.code)||function e(t,r){{if("string"==typeof t&&"string"==typeof r)return S.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1}var n=S.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;var i=Math.min(t.next.length,r.next.length);for(var a=0;a<i;a++)if(n=e(t.next[a],r.next[a]))return n;{if(t.next.length<r.next.length)return-1;if(t.next.length>r.next.length)return 1}return 0}(e.messageText,t.messageText)||0}function en(e){return e.target||0}function tn(e){return"number"==typeof e.module?e.module:2<=en(e)?S.ModuleKind.ES2015:S.ModuleKind.CommonJS}function rn(e){return!(!e.declaration&&!e.composite)}function nn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function an(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function on(e,t){return t.strictFlag?nn(e,t.name):e[t.name]}function sn(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function cn(){var r,n;return{getSymlinkedFiles:function(){return n},getSymlinkedDirectories:function(){return r},setSymlinkedFile:function(e,t){return(n=n||new S.Map).set(e,t)},setSymlinkedDirectory:function(e,t){return(r=r||new S.Map).set(e,t)}}}function un(e,t){return"node_modules"===t(e)||S.startsWith(e,"@")}S.convertToBase64=Cr,S.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Cr(t)},S.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Tr.charCodeAt(64);){var a=Tr.indexOf(t[i]),o=Tr.indexOf(t[i+1]),s=Tr.indexOf(t[i+2]),c=Tr.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,a=(15&o)<<4|s>>2&15,o=(3&s)<<6|63&c;0==a&&0!==s?n.push(u):0==o&&0!==c?n.push(u,a):n.push(u,a,o),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},S.readJson=function(e,t){try{var r=t.readFile(e);if(!r)return{};r=S.parseConfigFileTextToJson(e,r);return r.error?{}:r.config}catch(e){return{}}},S.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)},S.getNewLineCharacter=function(e,t){switch(e.newLine){case 0:return"\r\n";case 1:return"\n"}return t?t():S.sys?S.sys.newLine:"\r\n"},S.createRange=Er,S.moveRangeEnd=function(e,t){return Er(e.pos,t)},S.moveRangePos=kr,S.moveRangePastDecorators=Nr,S.moveRangePastModifiers=function(e){return e.modifiers&&0<e.modifiers.length?kr(e,e.modifiers.end):Nr(e)},S.isCollapsedRange=function(e){return e.pos===e.end},S.createTokenRange=function(e,t){return Er(e,e+S.tokenToString(t).length)},S.rangeIsOnSingleLine=function(e,t){return Ar(e,e,t)},S.rangeStartPositionsAreOnSameLine=function(e,t,r){return Fr(Pr(e,r,!1),Pr(t,r,!1),r)},S.rangeEndPositionsAreOnSameLine=function(e,t,r){return Fr(e.end,t.end,r)},S.rangeStartIsOnSameLineAsRangeEnd=Ar,S.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Fr(e.end,Pr(t,r,!1),r)},S.getLinesBetweenRangeEndAndRangeStart=function(e,t,r,n){return n=Pr(t,r,n),S.getLinesBetweenPositions(r,e.end,n)},S.getLinesBetweenRangeEndPositions=function(e,t,r){return S.getLinesBetweenPositions(r,e.end,t.end)},S.isNodeArrayMultiLine=function(e,t){return!Fr(e.pos,e.end,t)},S.positionsAreOnSameLine=Fr,S.getStartPositionOfRange=Pr,S.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(e,t,r,n){return e=S.skipTrivia(r.text,e,!1,n),n=function(e,t,r){void 0===t&&(t=0);for(;e-- >t;)if(!S.isWhiteSpaceLike(r.text.charCodeAt(e)))return e}(e,t,r),S.getLinesBetweenPositions(r,null!=n?n:t,e)},S.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(e,t,r,n){return n=S.skipTrivia(r.text,e,!1,n),S.getLinesBetweenPositions(r,e,Math.min(t,n))},S.isDeclarationNameOfEnumOrNamespace=function(e){var t=S.getParseTreeNode(e);if(t)switch(t.parent.kind){case 255:case 256:return t===t.parent.name}return!1},S.getInitializedVariables=function(e){return S.filter(e.declarations,wr)},S.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},S.closeFileWatcher=function(e){e.close()},S.getCheckFlags=Ir,S.getDeclarationModifierFlagsFromSymbol=function(e){if(e.valueDeclaration){var t=S.getCombinedModifierFlags(e.valueDeclaration);return e.parent&&32&e.parent.flags?t:-29&t}if(6&Ir(e)){t=e.checkFlags;return(1024&t?8:256&t?4:16)|(2048&t?32:0)}return 4194304&e.flags?36:0},S.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},S.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},S.isWriteOnlyAccess=function(e){return 1===Or(e)},S.isWriteAccess=function(e){return 0!==Or(e)},(Cn={})[Cn.Read=0]="Read",Cn[Cn.Write=1]="Write",Cn[Cn.ReadWrite=2]="ReadWrite",S.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},S.clearMap=function(e,t){e.forEach(t),e.clear()},S.mutateMapSkippingNewValues=Mr,S.mutateMap=function(r,e,t){Mr(r,e,t);var n=t.createNewValue;e.forEach(function(e,t){r.has(t)||r.set(t,n(t,e))})},S.isAbstractConstructorType=function(e){return!!(16&Br(e))&&!!e.symbol&&Lr(e.symbol)},S.isAbstractConstructorSymbol=Lr,S.getClassLikeDeclarationOfSymbol=Rr,S.getObjectFlags=Br,S.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},S.forSomeAncestorDirectory=function(e,t){return!!S.forEachAncestorDirectory(e,function(e){return!!t(e)||void 0})},S.isUMDExportSymbol=function(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&S.isNamespaceExportDeclaration(e.declarations[0])},S.showModuleSpecifier=function(e){return e=e.moduleSpecifier,S.isStringLiteral(e)?e.text:h(e)},S.getLastChild=function(e){var r;return S.forEachChild(e,function(e){l(e)&&(r=e)},function(e){for(var t=e.length-1;0<=t;t--)if(l(e[t])){r=e[t];break}}),r},S.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},S.isObjectTypeDeclaration=function(e){return S.isClassLike(e)||S.isInterfaceDeclaration(e)||S.isTypeLiteralNode(e)},S.isTypeNodeKind=function(e){return 172<=e&&e<=195||128===e||152===e||144===e||155===e||145===e||131===e||147===e||148===e||113===e||150===e||141===e||223===e||303===e||304===e||305===e||306===e||307===e||308===e||309===e},S.isAccessExpression=jr,S.getNameOfAccessExpression=function(e){return 201===e.kind?e.name:(S.Debug.assert(202===e.kind),e.argumentExpression)},S.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},S.isNamedImportsOrExports=function(e){return 264===e.kind||268===e.kind},S.getLeftmostAccessExpression=Jr,S.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 215:e=e.operand;continue;case 216:e=e.left;continue;case 217:e=e.condition;continue;case 205:e=e.tag;continue;case 203:if(t)return e;case 224:case 202:case 201:case 225:case 336:e=e.expression;continue}return e}},S.objectAllocator={getNodeConstructor:function(){return Vr},getTokenConstructor:function(){return Kr},getIdentifierConstructor:function(){return qr},getPrivateIdentifierConstructor:function(){return Vr},getSourceFileConstructor:function(){return Vr},getSymbolConstructor:function(){return e},getTypeConstructor:function(){return zr},getSignatureConstructor:function(){return Ur},getSourceMapSourceConstructor:function(){return Wr}},S.setObjectAllocator=function(e){S.objectAllocator=e},S.formatStringFromArgs=Hr,S.setLocalizedDiagnosticMessages=function(e){S.localizedDiagnosticMessages=e},S.getLocaleSpecificMessage=Gr,S.createDetachedDiagnostic=function(e,t,r,n){S.Debug.assertGreaterThanOrEqual(t,0),S.Debug.assertGreaterThanOrEqual(r,0);var i=Gr(n);return 4<arguments.length&&(i=Hr(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},S.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(function e(t,r){var n=r.fileName||"",i=r.text.length;S.Debug.assertEqual(t.fileName,n),S.Debug.assertLessThanOrEqual(t.start,i),S.Debug.assertLessThanOrEqual(t.start+t.length,i);var a,o={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){o.relatedInformation=[];for(var s=0,c=t.relatedInformation;s<c.length;s++){var u=c[s];void 0===(a=u).file&&void 0!==a.start&&void 0!==a.length&&"string"==typeof a.fileName&&u.fileName===n?(S.Debug.assertLessThanOrEqual(u.start,i),S.Debug.assertLessThanOrEqual(u.start+u.length,i),o.relatedInformation.push(e(u,r))):o.relatedInformation.push(u)}}return o}(a,t))}return r},S.createFileDiagnostic=Xr,S.formatMessage=function(e,t){return t=Gr(t),2<arguments.length&&(t=Hr(t,arguments,2)),t},S.createCompilerDiagnostic=Qr,S.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}},S.chainDiagnosticMessages=function(e,t){var r=Gr(t);return 2<arguments.length&&(r=Hr(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},S.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},S.compareDiagnostics=Zr,S.compareDiagnosticsSkipRelatedInformation=$r,S.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},S.getEmitScriptTarget=en,S.getEmitModuleKind=tn,S.getEmitModuleResolutionKind=function(e){var t=e.moduleResolution;return void 0===t&&(t=tn(e)===S.ModuleKind.CommonJS?S.ModuleResolutionKind.NodeJs:S.ModuleResolutionKind.Classic),t},S.hasJsonModuleEmitEnabled=function(e){switch(tn(e)){case S.ModuleKind.CommonJS:case S.ModuleKind.AMD:case S.ModuleKind.ES2015:case S.ModuleKind.ES2020:case S.ModuleKind.ESNext:return!0;default:return!1}},S.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},S.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},S.getAreDeclarationMapsEnabled=function(e){return!(!rn(e)||!e.declarationMap)},S.getAllowSyntheticDefaultImports=function(e){var t=tn(e);return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:e.esModuleInterop||t===S.ModuleKind.System},S.getEmitDeclarations=rn,S.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},S.getStrictOptionValue=nn,S.getAllowJSCompilerOption=an,S.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&S.semanticDiagnosticsOptionDeclarations.some(function(e){return!jn(on(r,e),on(t,e))})},S.compilerOptionsAffectEmit=function(t,r){return r!==t&&S.affectsEmitOptionDeclarations.some(function(e){return!jn(on(r,e),on(t,e))})},S.getCompilerOptionValue=on,S.getJSXTransformEnabled=function(e){return 2===(e=e.jsx)||4===e||5===e},S.getJSXImplicitImportBase=function(e,t){return t=null==t?void 0:t.pragmas.get("jsximportsource"),t=S.isArray(t)?t[0]:t,4===e.jsx||5===e.jsx||e.jsxImportSource||t?(null==t?void 0:t.arguments.factory)||e.jsxImportSource||"react":void 0},S.getJSXRuntimeImport=function(e,t){return e?e+"/"+(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},S.hasZeroOrOneAsteriskCharacter=sn,S.createSymlinkCache=cn,S.discoverProbableSymlinks=function(e,t,r){for(var n=cn(),i=0,a=S.flatten(S.mapDefined(e,function(e){return e.resolvedModules&&S.compact(S.arrayFrom(S.mapIterator(e.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})))}));i<a.length;i++){var o=a[i],s=function(e,t,r,n){var i=S.getPathComponents(S.toPath(e,r,n)),a=S.getPathComponents(S.toPath(t,r,n)),o=!1;for(;!un(i[i.length-2],n)&&!un(a[a.length-2],n)&&n(i[i.length-1])===n(a[a.length-1]);)i.pop(),a.pop(),o=!0;return o?[S.getPathFromPathComponents(i),S.getPathFromPathComponents(a)]:void 0}(o[0],o[1],r,t)||S.emptyArray,o=s[0],s=s[1];o&&s&&n.setSymlinkedDirectory(S.toPath(s,r,t),{real:o,realPath:S.toPath(o,r,t)})}return n},S.tryRemoveDirectoryPrefix=function(e,t,r){return void 0===(r=S.tryRemovePrefix(e,t,r))?void 0:(r=r,S.isAnyDirectorySeparator(r.charCodeAt(0))?r.slice(1):void 0)};var ln=/[^\w\s\/]/g;function _n(e){return"\\"+e}S.regExpEscape=function(e){return e.replace(ln,_n)};var dn=[42,63];S.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var pn="(?!("+S.commonPackageFolders.join("|")+")(/|$))",fn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+pn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return xn(e,fn.singleAsteriskRegexFragment)}},gn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+pn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return xn(e,gn.singleAsteriskRegexFragment)}},mn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return xn(e,mn.singleAsteriskRegexFragment)}},yn={files:fn,directories:gn,exclude:mn};function hn(e,t,r){t=vn(e,t,r);if(t&&t.length)return"^("+t.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===r?"($|/)":"$")}function vn(e,t,r){if(void 0!==e&&0!==e.length)return S.flatMap(e,function(e){return e&&function(e,t,r,n){var i=n.singleAsteriskRegexFragment,a=n.doubleAsteriskRegexFragment,o=n.replaceWildcardCharacter,s="",c=!1,e=S.getNormalizedPathComponents(e,t),t=S.last(e);if("exclude"!==r&&"**"===t)return;e[0]=S.removeTrailingDirectorySeparator(e[0]),bn(t)&&e.push("**","*");for(var u=0,l=0,_=e;l<_.length;l++){var d,p=_[l];"**"===p?s+=a:("directories"===r&&(s+="(",u++),c&&(s+=S.directorySeparator),"exclude"!==r?(d="",42===p.charCodeAt(0)?(d+="([^./]"+i+")?",p=p.substr(1)):63===p.charCodeAt(0)&&(d+="[^./]",p=p.substr(1)),(d+=p.replace(ln,o))!==p&&(s+=pn),s+=d):s+=p.replace(ln,o)),c=!0}for(;0<u;)s+=")?",u--;return s}(e,t,r,yn[r])})}function bn(e){return!/[.*?]/.test(e)}function xn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Dn(e,t,r,n,i){e=S.normalizePath(e),i=S.normalizePath(i);i=S.combinePaths(i,e);return{includeFilePatterns:S.map(vn(r,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:hn(r,i,"files"),includeDirectoryPattern:hn(r,i,"directories"),excludePattern:hn(t,i,"exclude"),basePaths:function(r,e,n){var i=[r];if(e){for(var t=[],a=0,o=e;a<o.length;a++){var s=o[a],s=S.isRootedDiskPath(s)?s:S.normalizePath(S.combinePaths(r,s));t.push(function(e){var t=S.indexOfAnyCharCode(e,dn);if(t<0)return S.hasExtension(e)?S.removeTrailingDirectorySeparator(S.getDirectoryPath(e)):e;return e.substring(0,e.lastIndexOf(S.directorySeparator,t))}(s))}t.sort(S.getStringComparer(!n));for(var c=0,u=t;c<u.length;c++)!function(t){S.every(i,function(e){return!S.containsPath(e,t,r,!n)})&&i.push(t)}(u[c])}return i}(e,r,n)}}function Sn(e,t){return new RegExp(e,t?"":"i")}function Tn(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}}S.getRegularExpressionForWildcard=hn,S.getRegularExpressionsForWildcards=vn,S.isImplicitGlob=bn,S.getFileMatcherPatterns=Dn,S.getRegexFromPattern=Sn,S.matchFiles=function(e,f,t,r,n,i,a,g,m){e=S.normalizePath(e),i=S.normalizePath(i);for(var y=(r=Dn(e,t,r,n,i)).includeFilePatterns&&r.includeFilePatterns.map(function(e){return Sn(e,n)}),h=r.includeDirectoryPattern&&Sn(r.includeDirectoryPattern,n),v=r.excludePattern&&Sn(r.excludePattern,n),b=y?y.map(function(){return[]}):[[]],x=new S.Map,D=S.createGetCanonicalFileName(n),o=0,s=r.basePaths;o<s.length;o++){var c=s[o];!function e(n,i,t){var r=D(m(i));if(x.has(r))return;x.set(r,!0);var a=g(n),r=a.files,a=a.directories;var o=function(e){var t=S.combinePaths(n,e),r=S.combinePaths(i,e);return f&&!S.fileExtensionIsOneOf(t,f)||v&&v.test(r)?"continue":void(y?-1!==(e=S.findIndex(y,function(e){return e.test(r)}))&&b[e].push(t):b[0].push(t))};for(var s=0,c=S.sort(r,S.compareStringsCaseSensitive);s<c.length;s++){var u=c[s];o(u)}if(void 0!==t&&0===--t)return;for(var l=0,_=S.sort(a,S.compareStringsCaseSensitive);l<_.length;l++){var u=_[l],d=S.combinePaths(n,u),p=S.combinePaths(i,u);h&&!h.test(p)||v&&v.test(p)||e(d,p,t)}}(c,S.combinePaths(i,c),a)}return S.flatten(b)},S.ensureScriptKind=function(e,t){return t||Tn(e)||3},S.getScriptKindFromFileName=Tn,S.supportedTSExtensions=[".ts",".tsx",".d.ts"],S.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],S.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],S.supportedJSExtensions=[".js",".jsx"],S.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var Cn,En=__spreadArrays(S.supportedTSExtensions,S.supportedJSExtensions),kn=__spreadArrays(S.supportedTSExtensions,S.supportedJSExtensions,[".json"]);function Nn(e,t){var r=e&&an(e);if(!t||0===t.length)return r?En:S.supportedTSExtensions;t=__spreadArrays(r?En:S.supportedTSExtensions,S.mapDefined(t,function(e){return 7===e.scriptKind||r&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t}));return S.deduplicate(t,S.equateStringsCaseSensitive,S.compareStringsCaseSensitive)}function An(e,t){return e&&e.resolveJsonModule?t===En?kn:t===S.supportedTSExtensions?S.supportedTSExtensionsWithJson:__spreadArrays(t,[".json"]):t}function Fn(e,t){return e<2?0:e<t.length?2:t.length}S.getSupportedExtensions=Nn,S.getSuppoertedExtensionsWithJsonIfResolveJsonModule=An,S.hasJSFileExtension=function(t){return S.some(S.supportedJSExtensions,function(e){return S.fileExtensionIs(t,e)})},S.hasTSFileExtension=function(t){return S.some(S.supportedTSExtensions,function(e){return S.fileExtensionIs(t,e)})},S.isSupportedSourceFileName=function(e,t,r){if(!e)return!1;for(var n=0,i=An(t,Nn(t,r));n<i.length;n++){var a=i[n];if(S.fileExtensionIs(e,a))return!0}return!1},(Cn=S.ExtensionPriority||(S.ExtensionPriority={}))[Cn.TypeScriptFiles=0]="TypeScriptFiles",Cn[Cn.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",Cn[Cn.Highest=0]="Highest",Cn[Cn.Lowest=2]="Lowest",S.getExtensionPriority=function(e,t){for(var r=t.length-1;0<=r;r--)if(S.fileExtensionIs(e,t[r]))return Fn(r,t);return 0},S.adjustExtensionPriority=Fn,S.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var Pn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function wn(e){for(var t=0,r=Pn;t<r.length;t++){var n=In(e,r[t]);if(void 0!==n)return n}return e}function In(e,t){return S.fileExtensionIs(e,t)?On(e,t):void 0}function On(e,t){return e.substring(0,e.length-t.length)}function Mn(e){S.Debug.assert(sn(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Ln(e){return!(0<=e)}function Rn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Bn(t){return S.find(Pn,function(e){return S.fileExtensionIs(t,e)})}function jn(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&S.equalOwnProperties(e,t,jn)}function Jn(e,t){return e.pos=t,e}function zn(e,t){return e.end=t,e}function Un(e,t,r){return zn(Jn(e,t),r)}function Vn(e,t){return e&&t&&(e.parent=t),e}S.removeFileExtension=wn,S.tryRemoveExtension=In,S.removeExtension=On,S.changeExtension=function(e,t){return S.changeAnyExtension(e,t,Pn,!1)},S.tryParsePattern=Mn,S.positionIsSynthesized=Ln,S.extensionIsTS=Rn,S.resolutionExtensionIsTSOrJson=function(e){return Rn(e)||".json"===e},S.extensionFromPath=function(e){var t=Bn(e);return void 0!==t?t:S.Debug.fail("File "+e+" has unknown extension.")},S.isAnySupportedFileExtension=function(e){return void 0!==Bn(e)},S.tryGetExtensionFromPath=Bn,S.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},S.emptyFileSystemEntries={files:S.emptyArray,directories:S.emptyArray},S.matchPatternOrExact=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];if(sn(a)){var o=Mn(a);if(o)r.push(o);else if(a===t)return a}}return S.findBestPatternMatch(r,function(e){return e},t)},S.sliceAfter=function(e,t){return t=e.indexOf(t),S.Debug.assert(-1!==t),e.slice(t)},S.addRelatedInfo=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return r.length&&(e.relatedInformation||(e.relatedInformation=[]),S.Debug.assert(e.relatedInformation!==S.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(t=e.relatedInformation).push.apply(t,r)),e},S.minAndMax=function(e,t){S.Debug.assert(0!==e.length);for(var r=t(e[0]),n=r,i=1;i<e.length;i++){var a=t(e[i]);a<r?r=a:n<a&&(n=a)}return{min:r,max:n}},S.rangeOfNode=function(e){return{pos:g(e),end:e.end}},S.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},S.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},S.isJsonEqual=jn,S.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;2<=s;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),l=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=l;l=l>>>16;l&&(o[u+1]|=l)}for(var _="",d=o.length-1,p=!0;p;){for(var f=0,p=!1,u=d;0<=u;u--){var g=f<<16|o[u],m=g/10|0,f=g-10*(o[u]=m);m&&!p&&(d=u,p=!0)}_=f+_}return _},S.pseudoBigIntToString=function(e){var t=e.negative,e=e.base10Value;return(t&&"0"!==e?"-":"")+e},S.isValidTypeOnlyAliasUseSite=function(e){return!!(8388608&e.flags)||se(e)||function(e){if(78!==e.kind)return!1;e=S.findAncestor(e.parent,function(e){switch(e.kind){case 286:return!0;case 201:case 223:return!1;default:return"quit"}});return 116===(null==e?void 0:e.token)||253===(null==e?void 0:e.parent.kind)}(e)||function(e){for(;78===e.kind||201===e.kind;)e=e.parent;if(158!==e.kind)return!1;if(nr(e.parent,128))return!0;var t=e.parent.parent.kind;return 253===t||177===t}(e)||!ae(e)},S.typeOnlyDeclarationIsExport=function(e){return 270===e.kind},S.isIdentifierTypeReference=function(e){return S.isTypeReferenceNode(e)&&S.isIdentifier(e.typeName)},S.arrayIsHomogeneous=function(e,t){if(void 0===t&&(t=S.equateValues),e.length<2)return!0;for(var r=e[0],n=1,i=e.length;n<i;n++)if(!t(r,e[n]))return!1;return!0},S.setTextRangePos=Jn,S.setTextRangeEnd=zn,S.setTextRangePosEnd=Un,S.setTextRangePosWidth=function(e,t,r){return Un(e,t,t+r)},S.setNodeFlags=function(e,t){return e&&(e.flags=t),e},S.setParent=Vn,S.setEachParent=function(e,t){if(e)for(var r=0,n=e;r<n.length;r++)Vn(n[r],t);return e},S.setParentRecursive=function(e,r){return e&&(S.forEachChildRecursively(e,S.isJSDocNode(e)?i:function(e,t){return i(e,t)||function(e){if(S.hasJSDocNodes(e))for(var t=0,r=e.jsDoc;t<r.length;t++){var n=r[t];i(n,e),S.forEachChildRecursively(n,i)}}(e)}),e);function i(e,t){if(r&&e.parent===t)return"skip";Vn(e,t)}}}(ts=ts||{}),function(o){o.createBaseNodeFactory=function(){var t,r,n,i,a;return{createBaseSourceFileNode:function(e){return new(a=a||o.objectAllocator.getSourceFileConstructor())(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n=n||o.objectAllocator.getIdentifierConstructor())(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(i=i||o.objectAllocator.getPrivateIdentifierConstructor())(e,-1,-1)},createBaseTokenNode:function(e){return new(r=r||o.objectAllocator.getTokenConstructor())(e,-1,-1)},createBaseNode:function(e){return new(t=t||o.objectAllocator.getNodeConstructor())(e,-1,-1)}}}}(ts=ts||{}),function(l){l.createParenthesizerRules=function(i){return{parenthesizeLeftSideOfBinary:function(e,t){return n(e,t,!0)},parenthesizeRightSideOfBinary:function(e,t,r){return n(e,r,!1,t)},parenthesizeExpressionOfComputedPropertyName:function(e){return l.isCommaSequence(e)?i.createParenthesizedExpression(e):e},parenthesizeConditionOfConditionalExpression:function(e){var t=l.getOperatorPrecedence(217,57),r=l.skipPartiallyEmittedExpressions(e),r=l.getExpressionPrecedence(r);return 1===l.compareValues(r,t)?e:i.createParenthesizedExpression(e)},parenthesizeBranchOfConditionalExpression:function(e){var t=l.skipPartiallyEmittedExpressions(e);return l.isCommaSequence(t)?i.createParenthesizedExpression(e):e},parenthesizeExpressionOfExportDefault:function(e){var t=l.skipPartiallyEmittedExpressions(e),r=l.isCommaSequence(t);if(!r)switch(l.getLeftmostExpression(t,!1).kind){case 221:case 208:r=!0}return r?i.createParenthesizedExpression(e):e},parenthesizeExpressionOfNew:function(e){var t=l.getLeftmostExpression(e,!0);switch(t.kind){case 203:return i.createParenthesizedExpression(e);case 204:return t.arguments?e:i.createParenthesizedExpression(e)}return r(e)},parenthesizeLeftSideOfAccess:r,parenthesizeOperandOfPostfixUnary:function(e){return l.isLeftHandSideExpression(e)?e:l.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeOperandOfPrefixUnary:function(e){return l.isUnaryExpression(e)?e:l.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeExpressionsOfCommaDelimitedList:function(e){var t=l.sameMap(e,a);return l.setTextRange(i.createNodeArray(t,e.hasTrailingComma),e)},parenthesizeExpressionForDisallowedComma:a,parenthesizeExpressionOfExpressionStatement:function(e){var t=l.skipPartiallyEmittedExpressions(e);if(l.isCallExpression(t)){var r=t.expression,n=l.skipPartiallyEmittedExpressions(r).kind;if(208===n||209===n){r=i.updateCallExpression(t,l.setTextRange(i.createParenthesizedExpression(r),r),t.typeArguments,t.arguments);return i.restoreOuterExpressions(e,r,8)}}t=l.getLeftmostExpression(t,!1).kind;return 200!==t&&208!==t?e:l.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeConciseBodyOfArrowFunction:function(e){return l.isBlock(e)||!l.isCommaSequence(e)&&200!==l.getLeftmostExpression(e,!1).kind?e:l.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeMemberOfConditionalType:t,parenthesizeMemberOfElementType:o,parenthesizeElementTypeOfArrayType:function(e){switch(e.kind){case 176:case 188:case 185:return i.createParenthesizedType(e)}return o(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:function(e){return i.createNodeArray(l.sameMap(e,o))},parenthesizeTypeArguments:function(e){if(l.some(e))return i.createNodeArray(l.sameMap(e,s))}};function u(e){if(e=l.skipPartiallyEmittedExpressions(e),l.isLiteralKind(e.kind))return e.kind;if(216!==e.kind||39!==e.operatorToken.kind)return 0;if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;var t=u(e.left),t=l.isLiteralKind(t)&&t===u(e.right)?t:0;return e.cachedLiteralKind=t}function n(e,t,r,n){return 207!==l.skipPartiallyEmittedExpressions(t).kind&&function(e,t,r,n){var i=l.getOperatorPrecedence(216,e),a=l.getOperatorAssociativity(216,e),o=l.skipPartiallyEmittedExpressions(t);if(!r&&209===t.kind&&3<i)return 1;var s=l.getExpressionPrecedence(o);switch(l.compareValues(s,i)){case-1:return r||1!==a||219!==t.kind?1:void 0;case 1:return;case 0:if(r)return 1===a;if(l.isBinaryExpression(o)&&o.operatorToken.kind===e){if(41===(c=e)||51===c||50===c||52===c)return;if(39===e){var c=n?u(n):0;if(l.isLiteralKind(c)&&c===u(o))return}}return 0===l.getExpressionAssociativity(o)}}(e,t,r,n)?i.createParenthesizedExpression(t):t}function r(e){var t=l.skipPartiallyEmittedExpressions(e);return l.isLeftHandSideExpression(t)&&(204!==t.kind||t.arguments)?e:l.setTextRange(i.createParenthesizedExpression(e),e)}function a(e){var t=l.skipPartiallyEmittedExpressions(e),t=l.getExpressionPrecedence(t);return l.getOperatorPrecedence(216,27)<t?e:l.setTextRange(i.createParenthesizedExpression(e),e)}function t(e){return 184===e.kind?i.createParenthesizedType(e):e}function o(e){switch(e.kind){case 182:case 183:case 174:case 175:return i.createParenthesizedType(e)}return t(e)}function s(e,t){return 0===t&&l.isFunctionOrConstructorTypeNode(e)&&e.typeParameters?i.createParenthesizedType(e):e}},l.nullParenthesizerRules={parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:l.identity,parenthesizeConditionOfConditionalExpression:l.identity,parenthesizeBranchOfConditionalExpression:l.identity,parenthesizeExpressionOfExportDefault:l.identity,parenthesizeExpressionOfNew:function(e){return l.cast(e,l.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(e){return l.cast(e,l.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(e){return l.cast(e,l.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(e){return l.cast(e,l.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(e){return l.cast(e,l.isNodeArray)},parenthesizeExpressionForDisallowedComma:l.identity,parenthesizeExpressionOfExpressionStatement:l.identity,parenthesizeConciseBodyOfArrowFunction:l.identity,parenthesizeMemberOfConditionalType:l.identity,parenthesizeMemberOfElementType:l.identity,parenthesizeElementTypeOfArrayType:l.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(e){return l.cast(e,l.isNodeArray)},parenthesizeTypeArguments:function(e){return e&&l.cast(e,l.isNodeArray)}}}(ts=ts||{}),function(c){c.createNodeConverters=function(n){return{convertToFunctionBlock:function(e,t){if(c.isBlock(e))return e;var r=n.createReturnStatement(e);c.setTextRange(r,e);t=n.createBlock([r],t);return c.setTextRange(t,e),t},convertToFunctionExpression:function(e){if(!e.body)return c.Debug.fail("Cannot convert a FunctionDeclaration without a body");var t=n.createFunctionExpression(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);c.setOriginalNode(t,e),c.setTextRange(t,e),c.getStartsOnNewLine(e)&&c.setStartsOnNewLine(t,!0);return t},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:r,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function t(e){if(c.isBindingElement(e)){if(e.dotDotDotToken)return c.Debug.assertNode(e.name,c.isIdentifier),c.setOriginalNode(c.setTextRange(n.createSpreadElement(e.name),e),e);var t=s(e.name);return e.initializer?c.setOriginalNode(c.setTextRange(n.createAssignment(t,e.initializer),e),e):t}return c.cast(e,c.isExpression)}function r(e){if(c.isBindingElement(e)){if(e.dotDotDotToken)return c.Debug.assertNode(e.name,c.isIdentifier),c.setOriginalNode(c.setTextRange(n.createSpreadAssignment(e.name),e),e);if(e.propertyName){var t=s(e.name);return c.setOriginalNode(c.setTextRange(n.createPropertyAssignment(e.propertyName,e.initializer?n.createAssignment(t,e.initializer):t),e),e)}return c.Debug.assertNode(e.name,c.isIdentifier),c.setOriginalNode(c.setTextRange(n.createShorthandPropertyAssignment(e.name,e.initializer),e),e)}return c.cast(e,c.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 197:case 199:return o(e);case 196:case 200:return a(e)}}function a(e){return c.isObjectBindingPattern(e)?c.setOriginalNode(c.setTextRange(n.createObjectLiteralExpression(c.map(e.elements,r)),e),e):c.cast(e,c.isObjectLiteralExpression)}function o(e){return c.isArrayBindingPattern(e)?c.setOriginalNode(c.setTextRange(n.createArrayLiteralExpression(c.map(e.elements,t)),e),e):c.cast(e,c.isArrayLiteralExpression)}function s(e){return c.isBindingPattern(e)?i(e):c.cast(e,c.isExpression)}},c.nullNodeConverters={convertToFunctionBlock:c.notImplemented,convertToFunctionExpression:c.notImplemented,convertToArrayAssignmentElement:c.notImplemented,convertToObjectAssignmentElement:c.notImplemented,convertToAssignmentPattern:c.notImplemented,convertToObjectAssignmentPattern:c.notImplemented,convertToArrayAssignmentPattern:c.notImplemented,convertToAssignmentElementTarget:c.notImplemented}}(ts=ts||{}),function(Wn){var Hn,Gn=0;function e(e,u){var c=8&e?Xn:Qn,s=Wn.memoize(function(){return 1&e?Wn.nullParenthesizerRules:Wn.createParenthesizerRules(g)}),t=Wn.memoize(function(){return 2&e?Wn.nullNodeConverters:Wn.createNodeConverters(g)}),r=Wn.memoizeOne(function(r){return function(e,t){return yt(e,r,t)}}),n=Wn.memoizeOne(function(t){return function(e){return gt(t,e)}}),i=Wn.memoizeOne(function(t){return function(e){return mt(e,t)}}),a=Wn.memoizeOne(function(e){return function(){return y(e)}}),o=Wn.memoizeOne(function(t){return function(e){return Mr(t,e)}}),l=Wn.memoizeOne(function(n){return function(e,t){return r=n,t=t,(e=e).type!==t?c(Mr(r,t),e):e;var r}}),_=Wn.memoizeOne(function(r){return function(e,t){return Yr(r,e,t)}}),d=Wn.memoizeOne(function(n){return function(e,t,r){return function(e,t,r,n){void 0===r&&(r=Jr(t));return t.tagName!==r||t.comment!==n?c(Yr(e,r,n),t):t}(n,e,t,r)}}),p=Wn.memoizeOne(function(n){return function(e,t,r){return Zr(n,e,t,r)}}),f=Wn.memoizeOne(function(i){return function(e,t,r,n){return function(e,t,r,n,i){void 0===r&&(r=Jr(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?c(Zr(e,r,n,i),t):t}(i,e,t,r,n)}}),g={get parenthesizer(){return s()},get converters(){return t()},createNodeArray:m,createNumericLiteral:F,createBigIntLiteral:P,createStringLiteral:I,createStringLiteralFromNode:function(e){var t=w(Wn.getTextOfIdentifierOrLiteral(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:O,createLiteralLikeNode:function(e,t){switch(e){case 8:return F(t,0);case 9:return P(t);case 10:return I(t,void 0);case 11:return sn(t,!1);case 12:return sn(t,!0);case 13:return O(t);case 14:return Dt(e,t,void 0,0)}},createIdentifier:R,updateIdentifier:function(e,t){return e.typeArguments!==t?c(R(Wn.idText(e),t),e):e},createTempVariable:B,createLoopVariable:function(){return L("",2)},createUniqueName:function(e,t){void 0===t&&(t=0);return Wn.Debug.assert(!(7&t),"Argument out of range: flags"),Wn.Debug.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),L(e,3|t)},getGeneratedNameForNode:j,createPrivateIdentifier:function(e){Wn.startsWith(e,"#")||Wn.Debug.fail("First character of private identifier must be #: "+e);var t=u.createBasePrivateIdentifierNode(79);return t.escapedText=Wn.escapeLeadingUnderscores(e),t.transformFlags|=4194304,t},createToken:z,createSuper:function(){return z(105)},createThis:U,createNull:function(){return z(103)},createTrue:V,createFalse:K,createModifier:q,createModifiersFromModifierFlags:W,createQualifiedName:H,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?c(H(t,r),e):e},createComputedPropertyName:G,updateComputedPropertyName:function(e,t){return e.expression!==t?c(G(t),e):e},createTypeParameterDeclaration:X,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?c(X(t,r,n),e):e},createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?c(Z(t),e):e},createPropertySignature:$,updatePropertySignature:ee,createPropertyDeclaration:te,updatePropertyDeclaration:re,createMethodSignature:ne,updateMethodSignature:ie,createMethodDeclaration:ae,updateMethodDeclaration:oe,createConstructorDeclaration:se,updateConstructorDeclaration:ce,createGetAccessorDeclaration:ue,updateGetAccessorDeclaration:le,createSetAccessorDeclaration:_e,updateSetAccessorDeclaration:de,createCallSignature:pe,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?D(pe(t,r,n),e):e},createConstructSignature:fe,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?D(fe(t,r,n),e):e},createIndexSignature:ge,updateIndexSignature:me,createTemplateLiteralTypeSpan:ye,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?c(ye(t,r),e):e},createKeywordTypeNode:z,createTypePredicateNode:he,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?c(he(t,r,n),e):e},createTypeReferenceNode:ve,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?c(ve(t,r),e):e},createFunctionTypeNode:be,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?D(be(t,r,n),e):e},createConstructorTypeNode:xe,updateConstructorTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?D(xe(t,r,n),e):e},createTypeQueryNode:De,updateTypeQueryNode:function(e,t){return e.exprName!==t?c(De(t),e):e},createTypeLiteralNode:Se,updateTypeLiteralNode:function(e,t){return e.members!==t?c(Se(t),e):e},createArrayTypeNode:Te,updateArrayTypeNode:function(e,t){return e.elementType!==t?c(Te(t),e):e},createTupleTypeNode:Ce,updateTupleTypeNode:function(e,t){return e.elements!==t?c(Ce(t),e):e},createNamedTupleMember:Ee,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?c(Ee(t,r,n,i),e):e},createOptionalTypeNode:ke,updateOptionalTypeNode:function(e,t){return e.type!==t?c(ke(t),e):e},createRestTypeNode:Ne,updateRestTypeNode:function(e,t){return e.type!==t?c(Ne(t),e):e},createUnionTypeNode:function(e){return Ae(182,e)},updateUnionTypeNode:Fe,createIntersectionTypeNode:function(e){return Ae(183,e)},updateIntersectionTypeNode:Fe,createConditionalTypeNode:Pe,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?c(Pe(t,r,n,i),e):e},createInferTypeNode:we,updateInferTypeNode:function(e,t){return e.typeParameter!==t?c(we(t),e):e},createImportTypeNode:Oe,updateImportTypeNode:function(e,t,r,n,i){void 0===i&&(i=e.isTypeOf);return e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?c(Oe(t,r,n,i),e):e},createParenthesizedType:Me,updateParenthesizedType:function(e,t){return e.type!==t?c(Me(t),e):e},createThisTypeNode:function(){var e=y(187);return e.transformFlags=1,e},createTypeOperatorNode:Le,updateTypeOperatorNode:function(e,t){return e.type!==t?c(Le(e.operator,t),e):e},createIndexedAccessTypeNode:Re,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?c(Re(t,r),e):e},createMappedTypeNode:Be,updateMappedTypeNode:function(e,t,r,n,i,a){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a?c(Be(t,r,n,i,a),e):e},createLiteralTypeNode:je,updateLiteralTypeNode:function(e,t){return e.literal!==t?c(je(t),e):e},createTemplateLiteralType:Ie,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?c(Ie(t,r),e):e},createObjectBindingPattern:Je,updateObjectBindingPattern:function(e,t){return e.elements!==t?c(Je(t),e):e},createArrayBindingPattern:ze,updateArrayBindingPattern:function(e,t){return e.elements!==t?c(ze(t),e):e},createBindingElement:Ue,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?c(Ue(t,r,n,i),e):e},createArrayLiteralExpression:Ke,updateArrayLiteralExpression:function(e,t){return e.elements!==t?c(Ke(t,e.multiLine),e):e},createObjectLiteralExpression:qe,updateObjectLiteralExpression:function(e,t){return e.properties!==t?c(qe(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?function(e,t){return Wn.setEmitFlags(We(e,t),131072)}:We,updatePropertyAccessExpression:function(e,t,r){if(Wn.isPropertyAccessChain(e))return Ge(e,t,e.questionDotToken,Wn.cast(r,Wn.isIdentifier));return e.expression!==t||e.name!==r?c(We(t,r),e):e},createPropertyAccessChain:4&e?function(e,t,r){return Wn.setEmitFlags(He(e,t,r),131072)}:He,updatePropertyAccessChain:Ge,createElementAccessExpression:Xe,updateElementAccessExpression:function(e,t,r){if(Wn.isElementAccessChain(e))return Ye(e,t,e.questionDotToken,r);return e.expression!==t||e.argumentExpression!==r?c(Xe(t,r),e):e},createElementAccessChain:Qe,updateElementAccessChain:Ye,createCallExpression:Ze,updateCallExpression:function(e,t,r,n){if(Wn.isCallChain(e))return et(e,t,e.questionDotToken,r,n);return e.expression!==t||e.typeArguments!==r||e.arguments!==n?c(Ze(t,r,n),e):e},createCallChain:$e,updateCallChain:et,createNewExpression:tt,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?c(tt(t,r,n),e):e},createTaggedTemplateExpression:rt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?c(rt(t,r,n),e):e},createTypeAssertion:nt,updateTypeAssertion:it,createParenthesizedExpression:at,updateParenthesizedExpression:ot,createFunctionExpression:st,updateFunctionExpression:ct,createArrowFunction:ut,updateArrowFunction:lt,createDeleteExpression:_t,updateDeleteExpression:function(e,t){return e.expression!==t?c(_t(t),e):e},createTypeOfExpression:dt,updateTypeOfExpression:function(e,t){return e.expression!==t?c(dt(t),e):e},createVoidExpression:pt,updateVoidExpression:function(e,t){return e.expression!==t?c(pt(t),e):e},createAwaitExpression:ft,updateAwaitExpression:function(e,t){return e.expression!==t?c(ft(t),e):e},createPrefixUnaryExpression:gt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?c(gt(e.operator,t),e):e},createPostfixUnaryExpression:mt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?c(mt(t,e.operator),e):e},createBinaryExpression:yt,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?c(yt(t,r,n),e):e},createConditionalExpression:vt,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?c(vt(t,r,n,i,a),e):e},createTemplateExpression:bt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?c(bt(t,r),e):e},createTemplateHead:function(e,t,r){return xt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return xt(16,e,t,r)},createTemplateTail:function(e,t,r){return xt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return xt(14,e,t,r)},createTemplateLiteralLikeNode:Dt,createYieldExpression:St,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?c(St(t,r),e):e},createSpreadElement:Tt,updateSpreadElement:function(e,t){return e.expression!==t?c(Tt(t),e):e},createClassExpression:Ct,updateClassExpression:Et,createOmittedExpression:function(){return Ve(222)},createExpressionWithTypeArguments:kt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?c(kt(t,r),e):e},createAsExpression:Nt,updateAsExpression:At,createNonNullExpression:Ft,updateNonNullExpression:Pt,createNonNullChain:wt,updateNonNullChain:It,createMetaProperty:Ot,updateMetaProperty:function(e,t){return e.name!==t?c(Ot(e.keywordToken,t),e):e},createTemplateSpan:Mt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?c(Mt(t,r),e):e},createSemicolonClassElement:function(){var e=y(229);return e.transformFlags|=256,e},createBlock:Lt,updateBlock:function(e,t){return e.statements!==t?c(Lt(t,e.multiLine),e):e},createVariableStatement:Rt,updateVariableStatement:Bt,createEmptyStatement:jt,createExpressionStatement:Jt,updateExpressionStatement:function(e,t){return e.expression!==t?c(Jt(t),e):e},createIfStatement:zt,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?c(zt(t,r,n),e):e},createDoStatement:Ut,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?c(Ut(t,r),e):e},createWhileStatement:Vt,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?c(Vt(t,r),e):e},createForStatement:Kt,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?c(Kt(t,r,n,i),e):e},createForInStatement:qt,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?c(qt(t,r,n),e):e},createForOfStatement:Wt,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?c(Wt(t,r,n,i),e):e},createContinueStatement:Ht,updateContinueStatement:function(e,t){return e.label!==t?c(Ht(t),e):e},createBreakStatement:Gt,updateBreakStatement:function(e,t){return e.label!==t?c(Gt(t),e):e},createReturnStatement:Xt,updateReturnStatement:function(e,t){return e.expression!==t?c(Xt(t),e):e},createWithStatement:Qt,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?c(Qt(t,r),e):e},createSwitchStatement:Yt,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?c(Yt(t,r),e):e},createLabeledStatement:Zt,updateLabeledStatement:$t,createThrowStatement:er,updateThrowStatement:function(e,t){return e.expression!==t?c(er(t),e):e},createTryStatement:tr,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?c(tr(t,r,n),e):e},createDebuggerStatement:function(){return y(248)},createVariableDeclaration:rr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?c(rr(t,r,n,i),e):e},createVariableDeclarationList:nr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?c(nr(t,e.flags),e):e},createFunctionDeclaration:ir,updateFunctionDeclaration:ar,createClassDeclaration:or,updateClassDeclaration:sr,createInterfaceDeclaration:cr,updateInterfaceDeclaration:ur,createTypeAliasDeclaration:lr,updateTypeAliasDeclaration:_r,createEnumDeclaration:dr,updateEnumDeclaration:pr,createModuleDeclaration:fr,updateModuleDeclaration:gr,createModuleBlock:mr,updateModuleBlock:function(e,t){return e.statements!==t?c(mr(t),e):e},createCaseBlock:yr,updateCaseBlock:function(e,t){return e.clauses!==t?c(yr(t),e):e},createNamespaceExportDeclaration:hr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?c(hr(t),e):e},createImportEqualsDeclaration:vr,updateImportEqualsDeclaration:br,createImportDeclaration:xr,updateImportDeclaration:Dr,createImportClause:Sr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?c(Sr(t,r,n),e):e},createNamespaceImport:Tr,updateNamespaceImport:function(e,t){return e.name!==t?c(Tr(t),e):e},createNamespaceExport:Cr,updateNamespaceExport:function(e,t){return e.name!==t?c(Cr(t),e):e},createNamedImports:Er,updateNamedImports:function(e,t){return e.elements!==t?c(Er(t),e):e},createImportSpecifier:kr,updateImportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?c(kr(t,r),e):e},createExportAssignment:Nr,updateExportAssignment:Ar,createExportDeclaration:Fr,updateExportDeclaration:Pr,createNamedExports:wr,updateNamedExports:function(e,t){return e.elements!==t?c(wr(t),e):e},createExportSpecifier:Ir,updateExportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?c(Ir(t,r),e):e},createMissingDeclaration:function(){return h(271,void 0,void 0)},createExternalModuleReference:Or,updateExternalModuleReference:function(e,t){return e.expression!==t?c(Or(t),e):e},get createJSDocAllType(){return a(303)},get createJSDocUnknownType(){return a(304)},get createJSDocNonNullableType(){return o(306)},get updateJSDocNonNullableType(){return l(306)},get createJSDocNullableType(){return o(305)},get updateJSDocNullableType(){return l(305)},get createJSDocOptionalType(){return o(307)},get updateJSDocOptionalType(){return l(307)},get createJSDocVariadicType(){return o(309)},get updateJSDocVariadicType(){return l(309)},get createJSDocNamepathType(){return o(310)},get updateJSDocNamepathType(){return l(310)},createJSDocFunctionType:Lr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?c(Lr(t,r),e):e},createJSDocTypeLiteral:Rr,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?c(Rr(t,r),e):e},createJSDocTypeExpression:Br,updateJSDocTypeExpression:function(e,t){return e.type!==t?c(Br(t),e):e},createJSDocSignature:jr,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?c(jr(t,r,n),e):e},createJSDocTemplateTag:Ur,updateJSDocTemplateTag:function(e,t,r,n,i){void 0===t&&(t=Jr(e));return e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?c(Ur(t,r,n,i),e):e},createJSDocTypedefTag:Vr,updateJSDocTypedefTag:function(e,t,r,n,i){void 0===t&&(t=Jr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?c(Vr(t,r,n,i),e):e},createJSDocParameterTag:Kr,updateJSDocParameterTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Jr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?c(Kr(t,r,n,i,a,o),e):e},createJSDocPropertyTag:qr,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Jr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?c(qr(t,r,n,i,a,o),e):e},createJSDocCallbackTag:Wr,updateJSDocCallbackTag:function(e,t,r,n,i){void 0===t&&(t=Jr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?c(Wr(t,r,n,i),e):e},createJSDocAugmentsTag:Hr,updateJSDocAugmentsTag:function(e,t,r,n){void 0===t&&(t=Jr(e));return e.tagName!==t||e.class!==r||e.comment!==n?c(Hr(t,r,n),e):e},createJSDocImplementsTag:Gr,updateJSDocImplementsTag:function(e,t,r,n){void 0===t&&(t=Jr(e));return e.tagName!==t||e.class!==r||e.comment!==n?c(Gr(t,r,n),e):e},createJSDocSeeTag:Xr,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?c(Xr(t,r,n),e):e},createJSDocNameReference:Qr,updateJSDocNameReference:function(e,t){return e.name!==t?c(Qr(t),e):e},get createJSDocTypeTag(){return p(329)},get updateJSDocTypeTag(){return f(329)},get createJSDocReturnTag(){return p(327)},get updateJSDocReturnTag(){return f(327)},get createJSDocThisTag(){return p(328)},get updateJSDocThisTag(){return f(328)},get createJSDocEnumTag(){return p(325)},get updateJSDocEnumTag(){return f(325)},get createJSDocAuthorTag(){return _(317)},get updateJSDocAuthorTag(){return d(317)},get createJSDocClassTag(){return _(319)},get updateJSDocClassTag(){return d(319)},get createJSDocPublicTag(){return _(320)},get updateJSDocPublicTag(){return d(320)},get createJSDocPrivateTag(){return _(321)},get updateJSDocPrivateTag(){return d(321)},get createJSDocProtectedTag(){return _(322)},get updateJSDocProtectedTag(){return d(322)},get createJSDocReadonlyTag(){return _(323)},get updateJSDocReadonlyTag(){return d(323)},get createJSDocDeprecatedTag(){return _(318)},get updateJSDocDeprecatedTag(){return d(318)},createJSDocUnknownTag:$r,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?c($r(t,r),e):e},createJSDocComment:en,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?c(en(t,r),e):e},createJsxElement:tn,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?c(tn(t,r,n),e):e},createJsxSelfClosingElement:rn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?c(rn(t,r,n),e):e},createJsxOpeningElement:nn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?c(nn(t,r,n),e):e},createJsxClosingElement:an,updateJsxClosingElement:function(e,t){return e.tagName!==t?c(an(t),e):e},createJsxFragment:on,createJsxText:sn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?c(sn(t,r),e):e},createJsxOpeningFragment:function(){var e=y(278);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=y(279);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?c(on(t,r,n),e):e},createJsxAttribute:cn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?c(cn(t,r),e):e},createJsxAttributes:un,updateJsxAttributes:function(e,t){return e.properties!==t?c(un(t),e):e},createJsxSpreadAttribute:ln,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?c(ln(t),e):e},createJsxExpression:_n,updateJsxExpression:function(e,t){return e.expression!==t?c(_n(e.dotDotDotToken,t),e):e},createCaseClause:dn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?c(dn(t,r),e):e},createDefaultClause:pn,updateDefaultClause:function(e,t){return e.statements!==t?c(pn(t),e):e},createHeritageClause:fn,updateHeritageClause:function(e,t){return e.types!==t?c(fn(e.token,t),e):e},createCatchClause:gn,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?c(gn(t,r),e):e},createPropertyAssignment:mn,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?function(e,t){t.decorators&&(e.decorators=t.decorators);t.modifiers&&(e.modifiers=t.modifiers);t.questionToken&&(e.questionToken=t.questionToken);t.exclamationToken&&(e.exclamationToken=t.exclamationToken);return c(e,t)}(mn(t,r),e):e},createShorthandPropertyAssignment:yn,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?function(e,t){t.decorators&&(e.decorators=t.decorators);t.modifiers&&(e.modifiers=t.modifiers);t.equalsToken&&(e.equalsToken=t.equalsToken);t.questionToken&&(e.questionToken=t.questionToken);t.exclamationToken&&(e.exclamationToken=t.exclamationToken);return c(e,t)}(yn(t,r),e):e},createSpreadAssignment:hn,updateSpreadAssignment:function(e,t){return e.expression!==t?c(hn(t),e):e},createEnumMember:vn,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?c(vn(t,r),e):e},createSourceFile:function(e,t,r){var n=u.createBaseSourceFileNode(297);return n.statements=m(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=ti(n.statements)|ei(n.endOfFileToken),n},updateSourceFile:function(e,t,r,n,i,a,o){void 0===r&&(r=e.isDeclarationFile);void 0===n&&(n=e.referencedFiles);void 0===i&&(i=e.typeReferenceDirectives);void 0===a&&(a=e.hasNoDefaultLib);void 0===o&&(o=e.libReferenceDirectives);return e.statements!==t||e.isDeclarationFile!==r||e.referencedFiles!==n||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==a||e.libReferenceDirectives!==o?c(function(e,t,r,n,i,a,o){var s,c=u.createBaseSourceFileNode(297);for(s in e)"emitNode"!==s&&!Wn.hasProperty(c,s)&&Wn.hasProperty(e,s)&&(c[s]=e[s]);return c.flags|=e.flags,c.statements=m(t),c.endOfFileToken=e.endOfFileToken,c.isDeclarationFile=r,c.referencedFiles=n,c.typeReferenceDirectives=i,c.hasNoDefaultLib=a,c.libReferenceDirectives=o,c.transformFlags=ti(c.statements)|ei(c.endOfFileToken),c}(e,t,r,n,i,a,o),e):e},createBundle:bn,updateBundle:function(e,t,r){void 0===r&&(r=Wn.emptyArray);return e.sourceFiles!==t||e.prepends!==r?c(bn(t,r),e):e},createUnparsedSource:function(e,t,r){var n=y(299);return n.prologues=e,n.syntheticReferences=t,n.texts=r,n.fileName="",n.text="",n.referencedFiles=Wn.emptyArray,n.libReferenceDirectives=Wn.emptyArray,n.getLineAndCharacterOfPosition=function(e){return Wn.getLineAndCharacterOfPosition(n,e)},n},createUnparsedPrologue:function(e){return xn(292,e)},createUnparsedPrepend:function(e,t){e=xn(293,e);return e.texts=t,e},createUnparsedTextLike:function(e,t){return xn(t?295:294,e)},createUnparsedSyntheticReference:function(e){var t=y(296);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=y(300);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=y(227);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=y(334);return t._children=e,t},createNotEmittedStatement:function(e){var t=y(335);return t.original=e,Wn.setTextRange(t,e),t},createPartiallyEmittedExpression:Dn,updatePartiallyEmittedExpression:Sn,createCommaListExpression:Cn,updateCommaListExpression:function(e,t){return e.elements!==t?c(Cn(t),e):e},createEndOfDeclarationMarker:function(e){var t=y(339);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=y(338);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:En,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?c(En(t,r),e):e},cloneNode:kn,get createComma(){return r(27)},get createAssignment(){return r(62)},get createLogicalOr(){return r(56)},get createLogicalAnd(){return r(55)},get createBitwiseOr(){return r(51)},get createBitwiseXor(){return r(52)},get createBitwiseAnd(){return r(50)},get createStrictEquality(){return r(36)},get createStrictInequality(){return r(37)},get createEquality(){return r(34)},get createInequality(){return r(35)},get createLessThan(){return r(29)},get createLessThanEquals(){return r(32)},get createGreaterThan(){return r(31)},get createGreaterThanEquals(){return r(33)},get createLeftShift(){return r(47)},get createRightShift(){return r(48)},get createUnsignedRightShift(){return r(49)},get createAdd(){return r(39)},get createSubtract(){return r(40)},get createMultiply(){return r(41)},get createDivide(){return r(43)},get createModulo(){return r(44)},get createExponent(){return r(42)},get createPrefixPlus(){return n(39)},get createPrefixMinus(){return n(40)},get createPrefixIncrement(){return n(45)},get createPrefixDecrement(){return n(46)},get createBitwiseNot(){return n(54)},get createLogicalNot(){return n(53)},get createPostfixIncrement(){return i(45)},get createPostfixDecrement(){return i(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return Ze(st(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Lt(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return Ze(ut(void 0,void 0,t?[t]:[],void 0,void 0,Lt(e,!0)),void 0,r?[r]:[])},createVoidZero:Nn,createExportDefault:function(e){return Nr(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Fr(void 0,void 0,!1,wr([Ir(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?g.createStrictEquality(e,Nn()):g.createStrictEquality(dt(e),I(t))},createMethodCall:An,createGlobalMethodCall:Fn,createFunctionBindCall:function(e,t,r){return An(e,"bind",__spreadArrays([t],r))},createFunctionCallCall:function(e,t,r){return An(e,"call",__spreadArrays([t],r))},createFunctionApplyCall:function(e,t,r){return An(e,"apply",[t,r])},createArraySliceCall:function(e,t){return An(e,"slice",void 0===t?[]:[Kn(t)])},createArrayConcatCall:function(e,t){return An(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Fn("Object","defineProperty",[e,Kn(t),r])},createPropertyDescriptor:function(e,t){var r=[];Pn(r,"enumerable",Kn(e.enumerable)),Pn(r,"configurable",Kn(e.configurable));var n=Pn(r,"writable",Kn(e.writable));n=Pn(r,"value",e.value)||n;var i=Pn(r,"get",e.get);return i=Pn(r,"set",e.set)||i,Wn.Debug.assert(!(n&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),qe(r,!t)},createCallBinding:function(e,t,r,n){void 0===n&&(n=!1);var i,a,o=Wn.skipOuterExpressions(e,15);Wn.isSuperProperty(o)?(i=U(),a=o):Wn.isSuperKeyword(o)?(i=U(),a=void 0!==r&&r<2?Wn.setTextRange(R("_super"),o):o):4096&Wn.getEmitFlags(o)?(i=Nn(),a=s().parenthesizeLeftSideOfAccess(o)):Wn.isPropertyAccessExpression(o)?On(o.expression,n)?(i=B(t),a=We(Wn.setTextRange(g.createAssignment(i,o.expression),o.expression),o.name),Wn.setTextRange(a,o)):(i=o.expression,a=o):Wn.isElementAccessExpression(o)?On(o.expression,n)?(i=B(t),a=Xe(Wn.setTextRange(g.createAssignment(i,o.expression),o.expression),o.argumentExpression),Wn.setTextRange(a,o)):(i=o.expression,a=o):(i=Nn(),a=s().parenthesizeLeftSideOfAccess(e));return{target:a,thisArg:i}},inlineExpressions:function(e){return 10<e.length?Cn(e):Wn.reduceLeft(e,g.createComma)},getInternalName:function(e,t,r){return Mn(e,t,r,49152)},getLocalName:function(e,t,r){return Mn(e,t,r,16384)},getExportName:Ln,getDeclarationName:function(e,t,r){return Mn(e,t,r)},getNamespaceMemberName:Rn,getExternalModuleOrNamespaceExportName:function(e,t,r,n){if(e&&Wn.hasSyntacticModifier(t,1))return Rn(e,Mn(t),r,n);return Ln(t,r,n)},restoreOuterExpressions:function e(t,r,n){void 0===n&&(n=15);if(t&&Wn.isOuterExpression(t,n)&&!In(t))return wn(t,e(t.expression,r));return r},restoreEnclosingLabel:function e(t,r,n){if(!r)return t;var t=$t(r,r.label,Wn.isLabeledStatement(r.statement)?e(t,r.statement):t);n&&n(r);return t},createUseStrictPrologue:Bn,copyPrologue:function(e,t,r,n){r=jn(e,t,r);return Jn(e,t,r,n)},copyStandardPrologue:jn,copyCustomPrologue:Jn,ensureUseStrict:function(e){return Wn.findUseStrictPrologue(e)?e:Wn.setTextRange(m(__spreadArrays([Bn()],e)),e)},liftToBlock:function(e){return Wn.Debug.assert(Wn.every(e,Wn.isStatementOrBlock),"Cannot lift nodes to a Block."),Wn.singleOrUndefined(e)||Lt(e)},mergeLexicalEnvironment:function(e,t){if(!Wn.some(t))return e;var r=zn(e,Wn.isPrologueDirective,0),n=zn(e,Wn.isHoistedFunction,r),i=zn(e,Wn.isHoistedVariableStatement,n),a=zn(t,Wn.isPrologueDirective,0),o=zn(t,Wn.isHoistedFunction,a),s=zn(t,Wn.isHoistedVariableStatement,o),c=zn(t,Wn.isCustomPrologue,s);Wn.Debug.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");var u=Wn.isNodeArray(e)?e.slice():e;s<c&&u.splice.apply(u,__spreadArrays([i,0],t.slice(s,c)));o<s&&u.splice.apply(u,__spreadArrays([n,0],t.slice(o,s)));a<o&&u.splice.apply(u,__spreadArrays([r,0],t.slice(a,o)));if(0<a)if(0===r)u.splice.apply(u,__spreadArrays([0,0],t.slice(0,a)));else{for(var l=new Wn.Map,_=0;_<r;_++){var d=e[_];l.set(d.expression.text,!0)}for(_=a-1;0<=_;_--){var p=t[_];l.has(p.expression.text)||u.unshift(p)}}if(Wn.isNodeArray(e))return Wn.setTextRange(m(u,e.hasTrailingComma),e);return e},updateModifiers:function(e,t){var r;"number"==typeof t&&(t=W(t));return Wn.isParameter(e)?Y(e,e.decorators,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):Wn.isPropertySignature(e)?ee(e,t,e.name,e.questionToken,e.type):Wn.isPropertyDeclaration(e)?re(e,e.decorators,t,e.name,null!==(r=e.questionToken)&&void 0!==r?r:e.exclamationToken,e.type,e.initializer):Wn.isMethodSignature(e)?ie(e,t,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):Wn.isMethodDeclaration(e)?oe(e,e.decorators,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):Wn.isConstructorDeclaration(e)?ce(e,e.decorators,t,e.parameters,e.body):Wn.isGetAccessorDeclaration(e)?le(e,e.decorators,t,e.name,e.parameters,e.type,e.body):Wn.isSetAccessorDeclaration(e)?de(e,e.decorators,t,e.name,e.parameters,e.body):Wn.isIndexSignatureDeclaration(e)?me(e,e.decorators,t,e.parameters,e.type):Wn.isFunctionExpression(e)?ct(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):Wn.isArrowFunction(e)?lt(e,t,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):Wn.isClassExpression(e)?Et(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members):Wn.isVariableStatement(e)?Bt(e,t,e.declarationList):Wn.isFunctionDeclaration(e)?ar(e,e.decorators,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):Wn.isClassDeclaration(e)?sr(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members):Wn.isInterfaceDeclaration(e)?ur(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members):Wn.isTypeAliasDeclaration(e)?_r(e,e.decorators,t,e.name,e.typeParameters,e.type):Wn.isEnumDeclaration(e)?pr(e,e.decorators,t,e.name,e.members):Wn.isModuleDeclaration(e)?gr(e,e.decorators,t,e.name,e.body):Wn.isImportEqualsDeclaration(e)?br(e,e.decorators,t,e.name,e.moduleReference):Wn.isImportDeclaration(e)?Dr(e,e.decorators,t,e.importClause,e.moduleSpecifier):Wn.isExportAssignment(e)?Ar(e,e.decorators,t,e.expression):Wn.isExportDeclaration(e)?Pr(e,e.decorators,t,e.isTypeOnly,e.exportClause,e.moduleSpecifier):Wn.Debug.assertNever(e)}};return g;function m(e,t){if(void 0===e||e===Wn.emptyArray)e=[];else if(Wn.isNodeArray(e))return void 0===e.transformFlags&&ri(e),Wn.Debug.attachNodeArrayDebugInfo(e),e;var r=e.length,e=1<=r&&r<=4?e.slice():e;return Wn.setTextRangePosEnd(e,-1,-1),e.hasTrailingComma=!!t,ri(e),Wn.Debug.attachNodeArrayDebugInfo(e),e}function y(e){return u.createBaseNode(e)}function h(e,t,r){e=y(e);return e.decorators=Un(t),e.modifiers=Un(r),e.transformFlags|=ti(e.decorators)|ti(e.modifiers),e.symbol=void 0,e.localSymbol=void 0,e.locals=void 0,e.nextContainer=void 0,e}function v(e,t,r,n){var i=h(e,t,r);if(n=Vn(n),i.name=n)switch(i.kind){case 165:case 167:case 168:case 163:case 288:if(Wn.isIdentifier(n)){i.transformFlags|=$n(n);break}default:i.transformFlags|=ei(n)}return i}function b(e,t,r,n,i){n=v(e,t,r,n);return n.typeParameters=Un(i),n.transformFlags|=ti(n.typeParameters),i&&(n.transformFlags|=1),n}function x(e,t,r,n,i,a,o){i=b(e,t,r,n,i);return i.parameters=m(a),i.type=o,i.transformFlags|=ti(i.parameters)|ei(i.type),o&&(i.transformFlags|=1),i}function D(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),c(e,t)}function S(e,t,r,n,i,a,o,s){o=x(e,t,r,n,i,a,o);return o.body=s,o.transformFlags|=-8388609&ei(o.body),s||(o.transformFlags|=1),o}function T(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),D(e,t)}function C(e,t,r,n,i,a){i=b(e,t,r,n,i);return i.heritageClauses=Un(a),i.transformFlags|=ti(i.heritageClauses),i}function E(e,t,r,n,i,a,o){a=C(e,t,r,n,i,a);return a.members=m(o),a.transformFlags|=ti(a.members),a}function k(e,t,r,n,i){n=v(e,t,r,n);return n.initializer=i,n.transformFlags|=ei(n.initializer),n}function N(e,t,r,n,i,a){a=k(e,t,r,n,a);return a.type=i,a.transformFlags|=ei(i),i&&(a.transformFlags|=1),a}function A(e,t){e=J(e);return e.text=t,e}function F(e,t){void 0===t&&(t=0);e=A(8,"number"==typeof e?e+"":e);return 384&(e.numericLiteralFlags=t)&&(e.transformFlags|=256),e}function P(e){e=A(9,"string"==typeof e?e:Wn.pseudoBigIntToString(e)+"n");return e.transformFlags|=4,e}function w(e,t){e=A(10,e);return e.singleQuote=t,e}function I(e,t,r){t=w(e,t);return(t.hasExtendedUnicodeEscape=r)&&(t.transformFlags|=256),t}function O(e){return A(13,e)}function M(e,t){void 0===t&&e&&(t=Wn.stringToToken(e)),78===t&&(t=void 0);var r=u.createBaseIdentifierNode(78);return r.originalKeywordKind=t,r.escapedText=Wn.escapeLeadingUnderscores(e),r}function L(e,t){e=M(e,void 0);return e.autoGenerateFlags=t,e.autoGenerateId=Gn,Gn++,e}function R(e,t,r){r=M(e,r);return t&&(r.typeArguments=m(t)),130===r.originalKeywordKind&&(r.transformFlags|=8388608),r}function B(e,t){var r=1;t&&(r|=8);r=L("",r);return e&&e(r),r}function j(e,t){void 0===t&&(t=0),Wn.Debug.assert(!(7&t),"Argument out of range: flags");t=L(e&&Wn.isIdentifier(e)?Wn.idText(e):"",4|t);return t.original=e,t}function J(e){return u.createBaseTokenNode(e)}function z(e){Wn.Debug.assert(0<=e&&e<=156,"Invalid token"),Wn.Debug.assert(e<=14||17<=e,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Wn.Debug.assert(e<=8||14<=e,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Wn.Debug.assert(78!==e,"Invalid token. Use 'createIdentifier' to create identifiers");var t=J(e),r=0;switch(e){case 129:r=96;break;case 122:case 120:case 121:case 142:case 125:case 133:case 84:case 128:case 144:case 155:case 141:case 145:case 147:case 131:case 148:case 113:case 152:case 150:r=1;break;case 123:case 105:r=256;break;case 107:r=4096}return r&&(t.transformFlags|=r),t}function U(){return z(107)}function V(){return z(109)}function K(){return z(94)}function q(e){return z(e)}function W(e){var t=[];return 1&e&&t.push(z(92)),2&e&&t.push(z(133)),512&e&&t.push(z(87)),2048&e&&t.push(z(84)),4&e&&t.push(z(122)),8&e&&t.push(z(120)),16&e&&t.push(z(121)),128&e&&t.push(z(125)),32&e&&t.push(z(123)),64&e&&t.push(z(142)),256&e&&t.push(z(129)),t}function H(e,t){var r=y(157);return r.left=e,r.right=Vn(t),r.transformFlags|=ei(r.left)|$n(r.right),r}function G(e){var t=y(158);return t.expression=s().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=33024|ei(t.expression),t}function X(e,t,r){e=v(159,void 0,void 0,e);return e.constraint=t,e.default=r,e.transformFlags=1,e}function Q(e,t,r,n,i,a,o){a=N(160,e,t,n,a,o&&s().parenthesizeExpressionForDisallowedComma(o));return a.dotDotDotToken=r,a.questionToken=i,Wn.isThisIdentifier(a.name)?a.transformFlags=1:(a.transformFlags|=ei(a.dotDotDotToken)|ei(a.questionToken),i&&(a.transformFlags|=1),92&Wn.modifiersToFlags(a.modifiers)&&(a.transformFlags|=2048),(o||r)&&(a.transformFlags|=256)),a}function Y(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?c(Q(t,r,n,i,a,o,s),e):e}function Z(e){var t=y(161);return t.expression=s().parenthesizeLeftSideOfAccess(e),t.transformFlags|=2049|ei(t.expression),t}function $(e,t,r,n){t=v(162,void 0,e,t);return t.type=n,t.questionToken=r,t.transformFlags=1,t}function ee(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?c($(t,r,n,i),e):e}function te(e,t,r,n,i,a){a=N(163,e,t,r,i,a);return a.questionToken=n&&Wn.isQuestionToken(n)?n:void 0,a.exclamationToken=n&&Wn.isExclamationToken(n)?n:void 0,a.transformFlags|=ei(a.questionToken)|ei(a.exclamationToken)|4194304,(Wn.isComputedPropertyName(a.name)||Wn.hasStaticModifier(a)&&a.initializer)&&(a.transformFlags|=2048),(n||2&Wn.modifiersToFlags(a.modifiers))&&(a.transformFlags|=1),a}function re(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.questionToken!==(void 0!==i&&Wn.isQuestionToken(i)?i:void 0)||e.exclamationToken!==(void 0!==i&&Wn.isExclamationToken(i)?i:void 0)||e.type!==a||e.initializer!==o?c(te(t,r,n,i,a,o),e):e}function ne(e,t,r,n,i,a){a=x(164,void 0,e,t,n,i,a);return a.questionToken=r,a.transformFlags=1,a}function ie(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?D(ne(t,r,n,i,a,o),e):e}function ae(e,t,r,n,i,a,o,s,c){c=S(165,e,t,n,a,o,s,c);return c.asteriskToken=r,c.questionToken=i,c.transformFlags|=ei(c.asteriskToken)|ei(c.questionToken)|256,i&&(c.transformFlags|=1),256&Wn.modifiersToFlags(c.modifiers)?c.transformFlags|=r?32:64:r&&(c.transformFlags|=512),c}function oe(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?T(ae(t,r,n,i,a,o,s,c,u),e):e}function se(e,t,r,n){n=S(166,e,t,void 0,void 0,r,void 0,n);return n.transformFlags|=256,n}function ce(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?T(se(t,r,n,i),e):e}function ue(e,t,r,n,i,a){return S(167,e,t,r,void 0,n,i,a)}function le(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?T(ue(t,r,n,i,a,o),e):e}function _e(e,t,r,n,i){return S(168,e,t,r,void 0,n,void 0,i)}function de(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?T(_e(t,r,n,i,a),e):e}function pe(e,t,r){r=x(169,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function fe(e,t,r){r=x(170,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function ge(e,t,r,n){n=x(171,e,t,void 0,void 0,r,n);return n.transformFlags=1,n}function me(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?D(ge(t,r,n,i),e):e}function ye(e,t){var r=y(194);return r.type=e,r.literal=t,r.transformFlags=1,r}function he(e,t,r){var n=y(172);return n.assertsModifier=e,n.parameterName=Vn(t),n.type=r,n.transformFlags=1,n}function ve(e,t){var r=y(173);return r.typeName=Vn(e),r.typeArguments=t&&s().parenthesizeTypeArguments(m(t)),r.transformFlags=1,r}function be(e,t,r){r=x(174,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function xe(e,t,r){r=x(175,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function De(e){var t=y(176);return t.exprName=e,t.transformFlags=1,t}function Se(e){var t=y(177);return t.members=m(e),t.transformFlags=1,t}function Te(e){var t=y(178);return t.elementType=s().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ce(e){var t=y(179);return t.elements=m(e),t.transformFlags=1,t}function Ee(e,t,r,n){var i=y(192);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function ke(e){var t=y(180);return t.type=s().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ne(e){var t=y(181);return t.type=e,t.transformFlags=1,t}function Ae(e,t){e=y(e);return e.types=s().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),e.transformFlags=1,e}function Fe(e,t){return e.types!==t?c(Ae(e.kind,t),e):e}function Pe(e,t,r,n){var i=y(184);return i.checkType=s().parenthesizeMemberOfConditionalType(e),i.extendsType=s().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function we(e){var t=y(185);return t.typeParameter=e,t.transformFlags=1,t}function Ie(e,t){var r=y(193);return r.head=e,r.templateSpans=m(t),r.transformFlags=1,r}function Oe(e,t,r,n){void 0===n&&(n=!1);var i=y(195);return i.argument=e,i.qualifier=t,i.typeArguments=r&&s().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function Me(e){var t=y(186);return t.type=e,t.transformFlags=1,t}function Le(e,t){var r=y(188);return r.operator=e,r.type=s().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function Re(e,t){var r=y(189);return r.objectType=s().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function Be(e,t,r,n,i){var a=y(190);return a.readonlyToken=e,a.typeParameter=t,a.nameType=r,a.questionToken=n,a.type=i,a.transformFlags=1,a}function je(e){var t=y(191);return t.literal=e,t.transformFlags=1,t}function Je(e){var t=y(196);return t.elements=m(e),t.transformFlags|=131328|ti(t.elements),8192&t.transformFlags&&(t.transformFlags|=16416),t}function ze(e){var t=y(197);return t.elements=m(e),t.transformFlags|=131328|ti(t.elements),t}function Ue(e,t,r,n){n=k(198,void 0,void 0,r,n);return n.propertyName=Vn(t),n.dotDotDotToken=e,n.transformFlags|=256|ei(n.dotDotDotToken),n.propertyName&&(n.transformFlags|=(Wn.isIdentifier(n.propertyName)?$n:ei)(n.propertyName)),e&&(n.transformFlags|=8192),n}function Ve(e){return y(e)}function Ke(e,t){var r=Ve(199);return r.elements=s().parenthesizeExpressionsOfCommaDelimitedList(m(e)),r.multiLine=t,r.transformFlags|=ti(r.elements),r}function qe(e,t){var r=Ve(200);return r.properties=m(e),r.multiLine=t,r.transformFlags|=ti(r.properties),r}function We(e,t){var r=Ve(201);return r.expression=s().parenthesizeLeftSideOfAccess(e),r.name=Vn(t),r.transformFlags=ei(r.expression)|(Wn.isIdentifier(r.name)?$n:ei)(r.name),Wn.isSuperKeyword(e)&&(r.transformFlags|=96),r}function He(e,t,r){var n=Ve(201);return n.flags|=32,n.expression=s().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.name=Vn(r),n.transformFlags|=8|ei(n.expression)|ei(n.questionDotToken)|(Wn.isIdentifier(n.name)?$n:ei)(n.name),n}function Ge(e,t,r,n){return Wn.Debug.assert(!!(32&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==n?c(He(t,r,n),e):e}function Xe(e,t){var r=Ve(202);return r.expression=s().parenthesizeLeftSideOfAccess(e),r.argumentExpression=Kn(t),r.transformFlags|=ei(r.expression)|ei(r.argumentExpression),Wn.isSuperKeyword(e)&&(r.transformFlags|=96),r}function Qe(e,t,r){var n=Ve(202);return n.flags|=32,n.expression=s().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=Kn(r),n.transformFlags|=ei(n.expression)|ei(n.questionDotToken)|ei(n.argumentExpression)|8,n}function Ye(e,t,r,n){return Wn.Debug.assert(!!(32&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==n?c(Qe(t,r,n),e):e}function Ze(e,t,r){var n=Ve(203);return n.expression=s().parenthesizeLeftSideOfAccess(e),n.typeArguments=Un(t),n.arguments=s().parenthesizeExpressionsOfCommaDelimitedList(m(r)),n.transformFlags|=ei(n.expression)|ti(n.typeArguments)|ti(n.arguments),n.typeArguments&&(n.transformFlags|=1),Wn.isImportKeyword(n.expression)?n.transformFlags|=2097152:Wn.isSuperProperty(n.expression)&&(n.transformFlags|=4096),n}function $e(e,t,r,n){var i=Ve(203);return i.flags|=32,i.expression=s().parenthesizeLeftSideOfAccess(e),i.questionDotToken=t,i.typeArguments=Un(r),i.arguments=s().parenthesizeExpressionsOfCommaDelimitedList(m(n)),i.transformFlags|=ei(i.expression)|ei(i.questionDotToken)|ti(i.typeArguments)|ti(i.arguments)|8,i.typeArguments&&(i.transformFlags|=1),Wn.isSuperProperty(i.expression)&&(i.transformFlags|=4096),i}function et(e,t,r,n,i){return Wn.Debug.assert(!!(32&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==r||e.typeArguments!==n||e.arguments!==i?c($e(t,r,n,i),e):e}function tt(e,t,r){var n=Ve(204);return n.expression=s().parenthesizeExpressionOfNew(e),n.typeArguments=Un(t),n.arguments=r?s().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=ei(n.expression)|ti(n.typeArguments)|ti(n.arguments)|8,n.typeArguments&&(n.transformFlags|=1),n}function rt(e,t,r){var n=Ve(205);return n.tag=s().parenthesizeLeftSideOfAccess(e),n.typeArguments=Un(t),n.template=r,n.transformFlags|=ei(n.tag)|ti(n.typeArguments)|ei(n.template)|256,n.typeArguments&&(n.transformFlags|=1),Wn.hasInvalidEscape(n.template)&&(n.transformFlags|=32),n}function nt(e,t){var r=Ve(206);return r.expression=s().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=ei(r.expression)|ei(r.type)|1,r}function it(e,t,r){return e.type!==t||e.expression!==r?c(nt(t,r),e):e}function at(e){var t=Ve(207);return t.expression=e,t.transformFlags=ei(t.expression),t}function ot(e,t){return e.expression!==t?c(at(t),e):e}function st(e,t,r,n,i,a,o){o=S(208,void 0,e,r,n,i,a,o);return o.asteriskToken=t,o.transformFlags|=ei(o.asteriskToken),o.typeParameters&&(o.transformFlags|=1),256&Wn.modifiersToFlags(o.modifiers)?o.asteriskToken?o.transformFlags|=32:o.transformFlags|=64:o.asteriskToken&&(o.transformFlags|=512),o}function ct(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?T(st(t,r,n,i,a,o,s),e):e}function ut(e,t,r,n,i,a){a=S(209,void 0,e,void 0,t,r,n,s().parenthesizeConciseBodyOfArrowFunction(a));return a.equalsGreaterThanToken=null!=i?i:z(38),a.transformFlags|=256|ei(a.equalsGreaterThanToken),256&Wn.modifiersToFlags(a.modifiers)&&(a.transformFlags|=64),a}function lt(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?T(ut(t,r,n,i,a,o),e):e}function _t(e){var t=Ve(210);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ei(t.expression),t}function dt(e){var t=Ve(211);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ei(t.expression),t}function pt(e){var t=Ve(212);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ei(t.expression),t}function ft(e){var t=Ve(213);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=524384|ei(t.expression),t}function gt(e,t){var r=Ve(214);return r.operator=e,r.operand=s().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=ei(r.operand),r}function mt(e,t){var r=Ve(215);return r.operator=t,r.operand=s().parenthesizeOperandOfPostfixUnary(e),r.transformFlags=ei(r.operand),r}function yt(e,t,r){var n=Ve(216),t="number"==typeof(i=t)?z(i):i,i=t.kind;return n.left=s().parenthesizeLeftSideOfBinary(i,e),n.operatorToken=t,n.right=s().parenthesizeRightSideOfBinary(i,n.left,r),n.transformFlags|=ei(n.left)|ei(n.operatorToken)|ei(n.right),60===i?n.transformFlags|=8:62===i?Wn.isObjectLiteralExpression(n.left)?n.transformFlags|=1312|ht(n.left):Wn.isArrayLiteralExpression(n.left)&&(n.transformFlags|=1280|ht(n.left)):42===i||66===i?n.transformFlags|=128:Wn.isLogicalOrCoalescingAssignmentOperator(i)&&(n.transformFlags|=4),n}function ht(e){if(16384&e.transformFlags)return 16384;if(32&e.transformFlags)for(var t=0,r=Wn.getElementsOfBindingOrAssignmentPattern(e);t<r.length;t++){var n=r[t],n=Wn.getTargetOfBindingOrAssignmentElement(n);if(n&&Wn.isAssignmentPattern(n)){if(16384&n.transformFlags)return 16384;if(32&n.transformFlags){n=ht(n);if(n)return n}}}return 0}function vt(e,t,r,n,i){var a=Ve(217);return a.condition=s().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:z(57),a.whenTrue=s().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:z(58),a.whenFalse=s().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=ei(a.condition)|ei(a.questionToken)|ei(a.whenTrue)|ei(a.colonToken)|ei(a.whenFalse),a}function bt(e,t){var r=Ve(218);return r.head=e,r.templateSpans=m(t),r.transformFlags|=ei(r.head)|ti(r.templateSpans)|256,r}function xt(e,t,r,n){void 0===n&&(n=0),Wn.Debug.assert(!(-2049&n),"Unsupported template flags.");var i=void 0;if(void 0!==r&&r!==t&&"object"==typeof(i=function(e,t){Hn=Hn||Wn.createScanner(99,!1,0);switch(e){case 14:Hn.setText("`"+t+"`");break;case 15:Hn.setText("`"+t+"${");break;case 16:Hn.setText("}"+t+"${");break;case 17:Hn.setText("}"+t+"`")}var r,e=Hn.scan();23===e&&(e=Hn.reScanTemplateToken(!1));if(Hn.isUnterminated())return Hn.setText(void 0),Zn;switch(e){case 14:case 15:case 16:case 17:r=Hn.getTokenValue()}return void 0!==r&&1===Hn.scan()?(Hn.setText(void 0),r):(Hn.setText(void 0),Zn)}(e,r)))return Wn.Debug.fail("Invalid raw text");if(void 0===t){if(void 0===i)return Wn.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&Wn.Debug.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Dt(e,t,r,n)}function Dt(e,t,r,n){e=J(e);return e.text=t,e.rawText=r,e.templateFlags=2048&n,e.transformFlags|=256,e.templateFlags&&(e.transformFlags|=32),e}function St(e,t){Wn.Debug.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");var r=Ve(219);return r.expression=t&&s().parenthesizeExpressionForDisallowedComma(t),r.asteriskToken=e,r.transformFlags|=ei(r.expression)|ei(r.asteriskToken)|262432,r}function Tt(e){var t=Ve(220);return t.expression=s().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=8448|ei(t.expression),t}function Ct(e,t,r,n,i,a){a=E(221,e,t,r,n,i,a);return a.transformFlags|=256,a}function Et(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?c(Ct(t,r,n,i,a,o),e):e}function kt(e,t){var r=y(223);return r.expression=s().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&s().parenthesizeTypeArguments(t),r.transformFlags|=ei(r.expression)|ti(r.typeArguments)|256,r}function Nt(e,t){var r=Ve(224);return r.expression=e,r.type=t,r.transformFlags|=ei(r.expression)|ei(r.type)|1,r}function At(e,t,r){return e.expression!==t||e.type!==r?c(Nt(t,r),e):e}function Ft(e){var t=Ve(225);return t.expression=s().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|ei(t.expression),t}function Pt(e,t){return Wn.isNonNullChain(e)?It(e,t):e.expression!==t?c(Ft(t),e):e}function wt(e){var t=Ve(225);return t.flags|=32,t.expression=s().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|ei(t.expression),t}function It(e,t){return Wn.Debug.assert(!!(32&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?c(wt(t),e):e}function Ot(e,t){var r=Ve(226);switch(r.keywordToken=e,r.name=t,r.transformFlags|=ei(r.name),e){case 102:r.transformFlags|=256;break;case 99:r.transformFlags|=4;break;default:return Wn.Debug.assertNever(e)}return r}function Mt(e,t){var r=y(228);return r.expression=e,r.literal=t,r.transformFlags|=ei(r.expression)|ei(r.literal)|256,r}function Lt(e,t){var r=y(230);return r.statements=m(e),r.multiLine=t,r.transformFlags|=ti(r.statements),r}function Rt(e,t){e=h(232,void 0,e);return e.declarationList=Wn.isArray(t)?nr(t):t,e.transformFlags|=ei(e.declarationList),2&Wn.modifiersToFlags(e.modifiers)&&(e.transformFlags=1),e}function Bt(e,t,r){return e.modifiers!==t||e.declarationList!==r?c(Rt(t,r),e):e}function jt(){return y(231)}function Jt(e){var t=y(233);return t.expression=s().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=ei(t.expression),t}function zt(e,t,r){var n=y(234);return n.expression=e,n.thenStatement=qn(t),n.elseStatement=qn(r),n.transformFlags|=ei(n.expression)|ei(n.thenStatement)|ei(n.elseStatement),n}function Ut(e,t){var r=y(235);return r.statement=qn(e),r.expression=t,r.transformFlags|=ei(r.statement)|ei(r.expression),r}function Vt(e,t){var r=y(236);return r.expression=e,r.statement=qn(t),r.transformFlags|=ei(r.expression)|ei(r.statement),r}function Kt(e,t,r,n){var i=y(237);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=qn(n),i.transformFlags|=ei(i.initializer)|ei(i.condition)|ei(i.incrementor)|ei(i.statement),i}function qt(e,t,r){var n=y(238);return n.initializer=e,n.expression=t,n.statement=qn(r),n.transformFlags|=ei(n.initializer)|ei(n.expression)|ei(n.statement),n}function Wt(e,t,r,n){var i=y(239);return i.awaitModifier=e,i.initializer=t,i.expression=s().parenthesizeExpressionForDisallowedComma(r),i.statement=qn(n),i.transformFlags|=ei(i.awaitModifier)|ei(i.initializer)|ei(i.expression)|ei(i.statement)|256,e&&(i.transformFlags|=32),i}function Ht(e){var t=y(240);return t.label=Vn(e),t.transformFlags|=1048576|ei(t.label),t}function Gt(e){var t=y(241);return t.label=Vn(e),t.transformFlags|=1048576|ei(t.label),t}function Xt(e){var t=y(242);return t.expression=e,t.transformFlags|=1048608|ei(t.expression),t}function Qt(e,t){var r=y(243);return r.expression=e,r.statement=qn(t),r.transformFlags|=ei(r.expression)|ei(r.statement),r}function Yt(e,t){var r=y(244);return r.expression=s().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=ei(r.expression)|ei(r.caseBlock),r}function Zt(e,t){var r=y(245);return r.label=Vn(e),r.statement=qn(t),r.transformFlags|=ei(r.label)|ei(r.statement),r}function $t(e,t,r){return e.label!==t||e.statement!==r?c(Zt(t,r),e):e}function er(e){var t=y(246);return t.expression=e,t.transformFlags|=ei(t.expression),t}function tr(e,t,r){var n=y(247);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=ei(n.tryBlock)|ei(n.catchClause)|ei(n.finallyBlock),n}function rr(e,t,r,n){n=N(249,void 0,void 0,e,r,n&&s().parenthesizeExpressionForDisallowedComma(n));return n.exclamationToken=t,n.transformFlags|=ei(n.exclamationToken),t&&(n.transformFlags|=1),n}function nr(e,t){void 0===t&&(t=0);var r=y(250);return r.flags|=3&t,r.declarations=m(e),r.transformFlags|=1048576|ti(r.declarations),3&t&&(r.transformFlags|=65792),r}function ir(e,t,r,n,i,a,o,s){s=S(251,e,t,n,i,a,o,s);return s.asteriskToken=r,!s.body||2&Wn.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=1048576|ei(s.asteriskToken),256&Wn.modifiersToFlags(s.modifiers)?s.asteriskToken?s.transformFlags|=32:s.transformFlags|=64:s.asteriskToken&&(s.transformFlags|=512)),s}function ar(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?T(ir(t,r,n,i,a,o,s,c),e):e}function or(e,t,r,n,i,a){a=E(252,e,t,r,n,i,a);return 2&Wn.modifiersToFlags(a.modifiers)?a.transformFlags=1:(a.transformFlags|=256,2048&a.transformFlags&&(a.transformFlags|=1)),a}function sr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?c(or(t,r,n,i,a,o),e):e}function cr(e,t,r,n,i,a){i=C(253,e,t,r,n,i);return i.members=m(a),i.transformFlags=1,i}function ur(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?c(cr(t,r,n,i,a,o),e):e}function lr(e,t,r,n,i){n=b(254,e,t,r,n);return n.type=i,n.transformFlags=1,n}function _r(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?c(lr(t,r,n,i,a),e):e}function dr(e,t,r,n){r=v(255,e,t,r);return r.members=m(n),r.transformFlags|=1|ti(r.members),r.transformFlags&=-8388609,r}function pr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?c(dr(t,r,n,i),e):e}function fr(e,t,r,n,i){void 0===i&&(i=0);t=h(256,e,t);return t.flags|=1044&i,t.name=r,t.body=n,2&Wn.modifiersToFlags(t.modifiers)?t.transformFlags=1:t.transformFlags|=ei(t.name)|ei(t.body)|1,t.transformFlags&=-8388609,t}function gr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?c(fr(t,r,n,i,e.flags),e):e}function mr(e){var t=y(257);return t.statements=m(e),t.transformFlags|=ti(t.statements),t}function yr(e){var t=y(258);return t.clauses=m(e),t.transformFlags|=ti(t.clauses),t}function hr(e){e=v(259,void 0,void 0,e);return e.transformFlags=1,e}function vr(e,t,r,n){r=v(260,e,t,r);return r.moduleReference=n,r.transformFlags|=ei(r.moduleReference),Wn.isExternalModuleReference(r.moduleReference)||(r.transformFlags|=1),r.transformFlags&=-8388609,r}function br(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.moduleReference!==i?c(vr(t,r,n,i),e):e}function xr(e,t,r,n){t=h(261,e,t);return t.importClause=r,t.moduleSpecifier=n,t.transformFlags|=ei(t.importClause)|ei(t.moduleSpecifier),t.transformFlags&=-8388609,t}function Dr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?c(xr(t,r,n,i),e):e}function Sr(e,t,r){var n=y(262);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=ei(n.name)|ei(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-8388609,n}function Tr(e){var t=y(263);return t.name=e,t.transformFlags|=ei(t.name),t.transformFlags&=-8388609,t}function Cr(e){var t=y(269);return t.name=e,t.transformFlags|=4|ei(t.name),t.transformFlags&=-8388609,t}function Er(e){var t=y(264);return t.elements=m(e),t.transformFlags|=ti(t.elements),t.transformFlags&=-8388609,t}function kr(e,t){var r=y(265);return r.propertyName=e,r.name=t,r.transformFlags|=ei(r.propertyName)|ei(r.name),r.transformFlags&=-8388609,r}function Nr(e,t,r,n){t=h(266,e,t);return t.isExportEquals=r,t.expression=r?s().parenthesizeRightSideOfBinary(62,void 0,n):s().parenthesizeExpressionOfExportDefault(n),t.transformFlags|=ei(t.expression),t.transformFlags&=-8388609,t}function Ar(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?c(Nr(t,r,e.isExportEquals,n),e):e}function Fr(e,t,r,n,i){t=h(267,e,t);return t.isTypeOnly=r,t.exportClause=n,t.moduleSpecifier=i,t.transformFlags|=ei(t.exportClause)|ei(t.moduleSpecifier),t.transformFlags&=-8388609,t}function Pr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a?c(Fr(t,r,n,i,a),e):e}function wr(e){var t=y(268);return t.elements=m(e),t.transformFlags|=ti(t.elements),t.transformFlags&=-8388609,t}function Ir(e,t){var r=y(270);return r.propertyName=Vn(e),r.name=Vn(t),r.transformFlags|=ei(r.propertyName)|ei(r.name),r.transformFlags&=-8388609,r}function Or(e){var t=y(272);return t.expression=e,t.transformFlags|=ei(t.expression),t.transformFlags&=-8388609,t}function Mr(e,t){e=y(e);return e.type=t,e}function Lr(e,t){return x(308,void 0,void 0,void 0,void 0,e,t)}function Rr(e,t){void 0===t&&(t=!1);var r=y(312);return r.jsDocPropertyTags=Un(e),r.isArrayType=t,r}function Br(e){var t=y(301);return t.type=e,t}function jr(e,t,r){var n=y(313);return n.typeParameters=Un(e),n.parameters=m(t),n.type=r,n}function Jr(e){var t=Yn(e.kind);return e.tagName.escapedText===Wn.escapeLeadingUnderscores(t)?e.tagName:R(t)}function zr(e,t,r){e=y(e);return e.tagName=t,e.comment=r,e}function Ur(e,t,r,n){n=zr(330,null!=e?e:R("template"),n);return n.constraint=t,n.typeParameters=m(r),n}function Vr(e,t,r,n){n=zr(331,null!=e?e:R("typedef"),n);return n.typeExpression=t,n.fullName=r,n.name=Wn.getJSDocTypeAliasName(r),n}function Kr(e,t,r,n,i,a){a=zr(326,null!=e?e:R("param"),a);return a.typeExpression=n,a.name=t,a.isNameFirst=!!i,a.isBracketed=r,a}function qr(e,t,r,n,i,a){a=zr(333,null!=e?e:R("prop"),a);return a.typeExpression=n,a.name=t,a.isNameFirst=!!i,a.isBracketed=r,a}function Wr(e,t,r,n){n=zr(324,null!=e?e:R("callback"),n);return n.typeExpression=t,n.fullName=r,n.name=Wn.getJSDocTypeAliasName(r),n}function Hr(e,t,r){r=zr(315,null!=e?e:R("augments"),r);return r.class=t,r}function Gr(e,t,r){r=zr(316,null!=e?e:R("implements"),r);return r.class=t,r}function Xr(e,t,r){r=zr(332,null!=e?e:R("see"),r);return r.name=t,r}function Qr(e){var t=y(302);return t.name=e,t}function Yr(e,t,r){return zr(e,null!=t?t:R(Yn(e)),r)}function Zr(e,t,r,n){n=zr(e,null!=t?t:R(Yn(e)),n);return n.typeExpression=r,n}function $r(e,t){return zr(314,e,t)}function en(e,t){var r=y(311);return r.comment=e,r.tags=Un(t),r}function tn(e,t,r){var n=y(273);return n.openingElement=e,n.children=m(t),n.closingElement=r,n.transformFlags|=ei(n.openingElement)|ti(n.children)|ei(n.closingElement)|2,n}function rn(e,t,r){var n=y(274);return n.tagName=e,n.typeArguments=Un(t),n.attributes=r,n.transformFlags|=ei(n.tagName)|ti(n.typeArguments)|ei(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function nn(e,t,r){var n=y(275);return n.tagName=e,n.typeArguments=Un(t),n.attributes=r,n.transformFlags|=ei(n.tagName)|ti(n.typeArguments)|ei(n.attributes)|2,t&&(n.transformFlags|=1),n}function an(e){var t=y(276);return t.tagName=e,t.transformFlags|=2|ei(t.tagName),t}function on(e,t,r){var n=y(277);return n.openingFragment=e,n.children=m(t),n.closingFragment=r,n.transformFlags|=ei(n.openingFragment)|ti(n.children)|ei(n.closingFragment)|2,n}function sn(e,t){var r=y(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function cn(e,t){var r=y(280);return r.name=e,r.initializer=t,r.transformFlags|=ei(r.name)|ei(r.initializer)|2,r}function un(e){var t=y(281);return t.properties=m(e),t.transformFlags|=2|ti(t.properties),t}function ln(e){var t=y(282);return t.expression=e,t.transformFlags|=2|ei(t.expression),t}function _n(e,t){var r=y(283);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=ei(r.dotDotDotToken)|ei(r.expression)|2,r}function dn(e,t){var r=y(284);return r.expression=s().parenthesizeExpressionForDisallowedComma(e),r.statements=m(t),r.transformFlags|=ei(r.expression)|ti(r.statements),r}function pn(e){var t=y(285);return t.statements=m(e),t.transformFlags=ti(t.statements),t}function fn(e,t){var r=y(286);switch(r.token=e,r.types=m(t),r.transformFlags|=ti(r.types),e){case 93:r.transformFlags|=256;break;case 116:r.transformFlags|=1;break;default:return Wn.Debug.assertNever(e)}return r}function gn(e,t){var r=y(287);return e=Wn.isString(e)?rr(e,void 0,void 0,void 0):e,r.variableDeclaration=e,r.block=t,r.transformFlags|=ei(r.variableDeclaration)|ei(r.block),e||(r.transformFlags|=16),r}function mn(e,t){e=v(288,void 0,void 0,e);return e.initializer=s().parenthesizeExpressionForDisallowedComma(t),e.transformFlags|=ei(e.name)|ei(e.initializer),e}function yn(e,t){e=v(289,void 0,void 0,e);return e.objectAssignmentInitializer=t&&s().parenthesizeExpressionForDisallowedComma(t),e.transformFlags|=256|ei(e.objectAssignmentInitializer),e}function hn(e){var t=y(290);return t.expression=s().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16416|ei(t.expression),t}function vn(e,t){var r=y(291);return r.name=Vn(e),r.initializer=t&&s().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=ei(r.name)|ei(r.initializer)|1,r}function bn(e,t){void 0===t&&(t=Wn.emptyArray);var r=y(298);return r.prepends=t,r.sourceFiles=e,r}function xn(e,t){e=y(e);return e.data=t,e}function Dn(e,t){var r=y(336);return r.expression=e,r.original=t,r.transformFlags|=1|ei(r.expression),Wn.setTextRange(r,t),r}function Sn(e,t){return e.expression!==t?c(Dn(t,e.original),e):e}function Tn(e){if(Wn.nodeIsSynthesized(e)&&!Wn.isParseTreeNode(e)&&!e.original&&!e.emitNode&&!e.id){if(Wn.isCommaListExpression(e))return e.elements;if(Wn.isBinaryExpression(e)&&Wn.isCommaToken(e.operatorToken))return[e.left,e.right]}return e}function Cn(e){var t=y(337);return t.elements=m(Wn.sameFlatMap(e,Tn)),t.transformFlags|=ti(t.elements),t}function En(e,t){var r=y(340);return r.expression=e,r.thisArg=t,r.transformFlags|=ei(r.expression)|ei(r.thisArg),r}function kn(e){if(void 0===e)return e;var t,r=Wn.isSourceFile(e)?u.createBaseSourceFileNode(297):Wn.isIdentifier(e)?u.createBaseIdentifierNode(78):Wn.isPrivateIdentifier(e)?u.createBasePrivateIdentifierNode(79):Wn.isNodeKind(e.kind)?u.createBaseNode(e.kind):u.createBaseTokenNode(e.kind);for(t in r.flags|=-9&e.flags,r.transformFlags=e.transformFlags,ni(r,e),e)!r.hasOwnProperty(t)&&e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function Nn(){return pt(F("0"))}function An(e,t,r){return Ze(We(e,t),void 0,r)}function Fn(e,t,r){return An(R(e),t,r)}function Pn(e,t,r){return!!r&&(e.push(mn(t,r)),!0)}function wn(e,t){switch(e.kind){case 207:return ot(e,t);case 206:return it(e,e.type,t);case 224:return At(e,t,e.type);case 225:return Pt(e,t);case 336:return Sn(e,t)}}function In(e){return Wn.isParenthesizedExpression(e)&&Wn.nodeIsSynthesized(e)&&Wn.nodeIsSynthesized(Wn.getSourceMapRange(e))&&Wn.nodeIsSynthesized(Wn.getCommentRange(e))&&!Wn.some(Wn.getSyntheticLeadingComments(e))&&!Wn.some(Wn.getSyntheticTrailingComments(e))}function On(e,t){var r=Wn.skipParentheses(e);switch(r.kind){case 78:return t;case 107:case 8:case 9:case 10:return;case 199:return 0===r.elements.length?void 0:1;case 200:return 0<r.properties.length;default:return 1}}function Mn(e,t,r,n){void 0===n&&(n=0);var i=Wn.getNameOfDeclaration(e);if(i&&Wn.isIdentifier(i)&&!Wn.isGeneratedIdentifier(i)){var a=Wn.setParent(Wn.setTextRange(kn(i),i),i.parent);return n|=Wn.getEmitFlags(i),r||(n|=48),t||(n|=1536),n&&Wn.setEmitFlags(a,n),a}return j(e)}function Ln(e,t,r){return Mn(e,t,r,8192)}function Rn(e,t,r,n){e=We(e,Wn.nodeIsSynthesized(t)?t:kn(t));Wn.setTextRange(e,t);t=0;return n||(t|=48),r||(t|=1536),t&&Wn.setEmitFlags(e,t),e}function Bn(){return Wn.startOnNewLine(Jt(I("use strict")))}function jn(e,t,r){Wn.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var n,i=!1,a=0,o=e.length;a<o;){var s=e[a];if(!Wn.isPrologueDirective(s))break;n=s,Wn.isStringLiteral(n.expression)&&"use strict"===n.expression.text&&(i=!0),t.push(s),a++}return r&&!i&&t.push(Bn()),a}function Jn(e,t,r,n,i){void 0===i&&(i=Wn.returnTrue);for(var a=e.length;void 0!==r&&r<a;){var o=e[r];if(!(1048576&Wn.getEmitFlags(o)&&i(o)))break;Wn.append(t,n?Wn.visitNode(o,n,Wn.isStatement):o),r++}return r}function zn(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function Un(e){return e?m(e):void 0}function Vn(e){return"string"==typeof e?R(e):e}function Kn(e){return"string"==typeof e?I(e):"number"==typeof e?F(e):"boolean"==typeof e?(e?V:K)():e}function qn(e){return e&&Wn.isNotEmittedStatement(e)?Wn.setTextRange(ni(jt(),e),e):e}}function Xn(e,t){return e!==t&&Wn.setTextRange(e,t),e}function Qn(e,t){return e!==t&&(ni(e,t),Wn.setTextRange(e,t)),e}function Yn(e){switch(e){case 329:return"type";case 327:return"returns";case 328:return"this";case 325:return"enum";case 317:return"author";case 319:return"class";case 320:return"public";case 321:return"private";case 322:return"protected";case 323:return"readonly";case 330:return"template";case 331:return"typedef";case 326:return"param";case 333:return"prop";case 324:return"callback";case 315:return"augments";case 316:return"implements";default:return Wn.Debug.fail("Unsupported kind: "+Wn.Debug.formatSyntaxKind(e))}}(a=Wn.NodeFactoryFlags||(Wn.NodeFactoryFlags={}))[a.None=0]="None",a[a.NoParenthesizerRules=1]="NoParenthesizerRules",a[a.NoNodeConverters=2]="NoNodeConverters",a[a.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",a[a.NoOriginalNode=8]="NoOriginalNode",Wn.createNodeFactory=e;var Zn={};function $n(e){return-8388609&ei(e)}function ei(e){if(!e)return 0;var t=e.transformFlags&~r(e.kind);return Wn.isNamedDeclaration(e)&&Wn.isPropertyName(e.name)?(e=e.name,t|4096&e.transformFlags):t}function ti(e){return e?e.transformFlags:0}function ri(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=ei(n[r]);e.transformFlags=t}function r(e){if(172<=e&&e<=195)return-2;switch(e){case 203:case 204:case 199:return 536879104;case 256:return 546379776;case 160:return 536870912;case 209:return 547309568;case 208:case 251:return 547313664;case 250:return 537018368;case 252:case 221:return 536905728;case 166:return 547311616;case 163:return 536875008;case 165:case 167:case 168:return 538923008;case 128:case 144:case 155:case 141:case 147:case 145:case 131:case 148:case 113:case 159:case 162:case 164:case 169:case 170:case 171:case 253:case 254:return-2;case 200:return 536922112;case 287:return 536887296;case 196:case 197:return 536879104;case 206:case 224:case 336:case 207:case 105:return 536870912;case 201:case 202:default:return 536870912}}Wn.getTransformFlagsSubtreeExclusions=r;var t=Wn.createBaseNodeFactory();function n(e){return e.flags|=8,e}var i,a={createBaseSourceFileNode:function(e){return n(t.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return n(t.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return n(t.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return n(t.createBaseTokenNode(e))},createBaseNode:function(e){return n(t.createBaseNode(e))}};function ni(e,t){return!(e.original=t)||(t=t.emitNode)&&(e.emitNode=function(e,t){var r=e.flags,n=e.leadingComments,i=e.trailingComments,a=e.commentRange,o=e.sourceMapRange,s=e.tokenSourceMapRanges,c=e.constantValue,u=e.helpers,e=e.startsOnNewLine;t=t||{};n&&(t.leadingComments=Wn.addRange(n.slice(),t.leadingComments));i&&(t.trailingComments=Wn.addRange(i.slice(),t.trailingComments));r&&(t.flags=r);a&&(t.commentRange=a);o&&(t.sourceMapRange=o);s&&(t.tokenSourceMapRanges=function(e,t){t=t||[];for(var r in e)t[r]=e[r];return t}(s,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l];t.helpers=Wn.appendIfUnique(t.helpers,d)}void 0!==e&&(t.startsOnNewLine=e);return t}(t,e.emitNode)),e}Wn.factory=e(4,a),Wn.createUnparsedSourceFile=function(e,t,r){var n,i,a,o,s,c,u,l,_;Wn.isString(e)?(a="",d=(o=e).length,s=t,c=r):(Wn.Debug.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",s="js"===t?e.javascriptMapPath:e.declarationMapPath,u=function(){return"js"===t?e.javascriptText:e.declarationText},l=function(){return"js"===t?e.javascriptMapText:e.declarationMapText},d=function(){return u().length},e.buildInfo&&e.buildInfo.bundle&&(Wn.Debug.assert(void 0===r||"boolean"==typeof r),n=r,i="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,_=e.oldFileOfCurrentEmit));var d=_?function(e){for(var t,r,n=0,i=e.sections;n<i.length;n++){var a=i[n];switch(a.kind){case"internal":case"text":t=Wn.append(t,Wn.setTextRange(Wn.factory.createUnparsedTextLike(a.data,"internal"===a.kind),a));break;case"no-default-lib":case"reference":case"type":case"lib":r=Wn.append(r,Wn.setTextRange(Wn.factory.createUnparsedSyntheticReference(a),a));break;case"prologue":case"emitHelpers":case"prepend":break;default:Wn.Debug.assertNever(a)}}var o=Wn.factory.createUnparsedSource(Wn.emptyArray,r,null!=t?t:Wn.emptyArray);return Wn.setEachParent(r,o),Wn.setEachParent(t,o),o.helpers=Wn.map(e.sources&&e.sources.helpers,function(e){return Wn.getAllUnscopedEmitHelpers().get(e)}),o}(Wn.Debug.assertDefined(i)):function(e,t,r){for(var n,i,a,o,s,c,u,l,_=0,d=e?e.sections:Wn.emptyArray;_<d.length;_++){var p=d[_];switch(p.kind){case"prologue":n=Wn.append(n,Wn.setTextRange(Wn.factory.createUnparsedPrologue(p.data),p));break;case"emitHelpers":i=Wn.append(i,Wn.getAllUnscopedEmitHelpers().get(p.data));break;case"no-default-lib":l=!0;break;case"reference":a=Wn.append(a,{pos:-1,end:-1,fileName:p.data});break;case"type":o=Wn.append(o,p.data);break;case"lib":s=Wn.append(s,{pos:-1,end:-1,fileName:p.data});break;case"prepend":for(var f=void 0,g=0,m=p.texts;g<m.length;g++){var y=m[g];t&&"internal"===y.kind||(f=Wn.append(f,Wn.setTextRange(Wn.factory.createUnparsedTextLike(y.data,"internal"===y.kind),y)))}c=Wn.addRange(c,f),u=Wn.append(u,Wn.factory.createUnparsedPrepend(p.data,null!=f?f:Wn.emptyArray));break;case"internal":if(t){u=u||[];break}case"text":u=Wn.append(u,Wn.setTextRange(Wn.factory.createUnparsedTextLike(p.data,"internal"===p.kind),p));break;default:Wn.Debug.assertNever(p)}}u||(h=Wn.factory.createUnparsedTextLike(void 0,!1),Wn.setTextRangePosWidth(h,0,"function"==typeof r?r():r),u=[h]);var h=Wn.parseNodeFactory.createUnparsedSource(null!=n?n:Wn.emptyArray,void 0,u);return Wn.setEachParent(n,h),Wn.setEachParent(u,h),Wn.setEachParent(c,h),h.hasNoDefaultLib=l,h.helpers=i,h.referencedFiles=a||Wn.emptyArray,h.typeReferenceDirectives=o,h.libReferenceDirectives=s||Wn.emptyArray,h}(i,n,d);return d.fileName=a,d.sourceMapPath=s,d.oldFileOfCurrentEmit=_,u&&l?(Object.defineProperty(d,"text",{get:u}),Object.defineProperty(d,"sourceMapText",{get:l})):(Wn.Debug.assert(!_),d.text=null!=o?o:"",d.sourceMapText=c),d},Wn.createInputFiles=function(r,e,t,n,i,a,o,s,c,u,l){var _,d,p,f,g=Wn.parseNodeFactory.createInputFiles();return Wn.isString(r)?(g.javascriptText=r,g.javascriptMapPath=t,g.javascriptMapText=n,g.declarationText=e,g.declarationMapPath=i,g.declarationMapText=a,g.javascriptPath=o,g.declarationPath=s,g.buildInfoPath=c,g.buildInfo=u,g.oldFileOfCurrentEmit=l):(_=new Wn.Map,d=function(e){if(void 0!==e){var t=_.get(e);return void 0===t&&(t=r(e),_.set(e,void 0!==t&&t)),!1!==t?t:void 0}},p=function(e){var t=d(e);return void 0!==t?t:"/* Input file "+e+" was missing */\r\n"},g.javascriptPath=e,g.javascriptMapPath=t,g.declarationPath=Wn.Debug.assertDefined(n),g.declarationMapPath=i,g.buildInfoPath=a,Object.defineProperties(g,{javascriptText:{get:function(){return p(e)}},javascriptMapText:{get:function(){return d(t)}},declarationText:{get:function(){return p(Wn.Debug.assertDefined(n))}},declarationMapText:{get:function(){return d(i)}},buildInfo:{get:function(){return e=function(){return d(a)},void 0===f&&(e=e(),f=void 0!==e&&Wn.getBuildInfo(e)),f||void 0;var e}}})),g},Wn.createSourceMapSource=function(e,t,r){return new(i=i||Wn.objectAllocator.getSourceMapSourceConstructor())(e,t,r)},Wn.setOriginalNode=ni}(ts=ts||{}),function(c){function u(e){var t;if(!e.emitNode){if(c.isParseTreeNode(e)){if(297===e.kind)return e.emitNode={annotatedNodes:[e]};u(null!==(t=c.getSourceFileOfNode(c.getParseTreeNode(c.getSourceFileOfNode(e))))&&void 0!==t?t:c.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function i(e){return null===(e=e.emitNode)||void 0===e?void 0:e.leadingComments}function a(e,t){return u(e).leadingComments=t,e}function o(e){return null===(e=e.emitNode)||void 0===e?void 0:e.trailingComments}function s(e,t){return u(e).trailingComments=t,e}c.getOrCreateEmitNode=u,c.disposeEmitNodes=function(e){if(e=null===(e=null===(e=c.getSourceFileOfNode(c.getParseTreeNode(e)))||void 0===e?void 0:e.emitNode)||void 0===e?void 0:e.annotatedNodes)for(var t=0,r=e;t<r.length;t++)r[t].emitNode=void 0},c.removeAllComments=function(e){var t=u(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},c.setEmitFlags=function(e,t){return u(e).flags=t,e},c.addEmitFlags=function(e,t){var r=u(e);return r.flags=r.flags|t,e},c.getSourceMapRange=function(e){var t;return null!==(t=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==t?t:e},c.setSourceMapRange=function(e,t){return u(e).sourceMapRange=t,e},c.getTokenSourceMapRange=function(e,t){return null===(e=null===(e=e.emitNode)||void 0===e?void 0:e.tokenSourceMapRanges)||void 0===e?void 0:e[t]},c.setTokenSourceMapRange=function(e,t,r){var n,i=u(e);return(null!==(n=i.tokenSourceMapRanges)&&void 0!==n?n:i.tokenSourceMapRanges=[])[t]=r,e},c.getStartsOnNewLine=function(e){return null===(e=e.emitNode)||void 0===e?void 0:e.startsOnNewLine},c.setStartsOnNewLine=function(e,t){return u(e).startsOnNewLine=t,e},c.getCommentRange=function(e){var t;return null!==(t=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==t?t:e},c.setCommentRange=function(e,t){return u(e).commentRange=t,e},c.getSyntheticLeadingComments=i,c.setSyntheticLeadingComments=a,c.addSyntheticLeadingComment=function(e,t,r,n){return a(e,c.append(i(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))},c.getSyntheticTrailingComments=o,c.setSyntheticTrailingComments=s,c.addSyntheticTrailingComment=function(e,t,r,n){return s(e,c.append(o(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))},c.moveSyntheticComments=function(e,t){return a(e,i(t)),s(e,o(t)),(t=u(t)).leadingComments=void 0,t.trailingComments=void 0,e},c.getConstantValue=function(e){return null===(e=e.emitNode)||void 0===e?void 0:e.constantValue},c.setConstantValue=function(e,t){return u(e).constantValue=t,e},c.addEmitHelper=function(e,t){var r=u(e);return r.helpers=c.append(r.helpers,t),e},c.addEmitHelpers=function(e,t){if(c.some(t))for(var r=u(e),n=0,i=t;n<i.length;n++){var a=i[n];r.helpers=c.appendIfUnique(r.helpers,a)}return e},c.removeEmitHelper=function(e,t){return!!(e=null===(e=e.emitNode)||void 0===e?void 0:e.helpers)&&c.orderedRemoveItem(e,t)},c.getEmitHelpers=function(e){return null===(e=e.emitNode)||void 0===e?void 0:e.helpers},c.moveEmitHelpers=function(e,t,r){var n=(e=e.emitNode)&&e.helpers;if(c.some(n)){for(var i=u(t),a=0,o=0;o<n.length;o++){var s=n[o];r(s)?(a++,i.helpers=c.appendIfUnique(i.helpers,s)):0<a&&(n[o-a]=s)}0<a&&(n.length-=a)}},c.ignoreSourceNewlines=function(e){return u(e).flags|=134217728,e}}(ts=ts||{}),function(d){function e(n){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];return function(e){for(var t="",r=0;r<i.length;r++)t+=n[r],t+=e(i[r]);return t+=n[n.length-1]}}var t;d.createEmitHelperFactory=function(u){var l=u.factory;return{getUnscopedHelperName:_,createDecorateHelper:function(e,t,r,n){u.requestEmitHelper(d.decorateHelper);var i=[];i.push(l.createArrayLiteralExpression(e,!0)),i.push(t),r&&(i.push(r),n&&i.push(n));return l.createCallExpression(_("__decorate"),void 0,i)},createMetadataHelper:function(e,t){return u.requestEmitHelper(d.metadataHelper),l.createCallExpression(_("__metadata"),void 0,[l.createStringLiteral(e),t])},createParamHelper:function(e,t,r){return u.requestEmitHelper(d.paramHelper),d.setTextRange(l.createCallExpression(_("__param"),void 0,[l.createNumericLiteral(t+""),e]),r)},createAssignHelper:function(e){if(2<=u.getCompilerOptions().target)return l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"assign"),void 0,e);return u.requestEmitHelper(d.assignHelper),l.createCallExpression(_("__assign"),void 0,e)},createAwaitHelper:function(e){return u.requestEmitHelper(d.awaitHelper),l.createCallExpression(_("__await"),void 0,[e])},createAsyncGeneratorHelper:function(e,t){return u.requestEmitHelper(d.awaitHelper),u.requestEmitHelper(d.asyncGeneratorHelper),(e.emitNode||(e.emitNode={})).flags|=786432,l.createCallExpression(_("__asyncGenerator"),void 0,[t?l.createThis():l.createVoidZero(),l.createIdentifier("arguments"),e])},createAsyncDelegatorHelper:function(e){return u.requestEmitHelper(d.awaitHelper),u.requestEmitHelper(d.asyncDelegator),l.createCallExpression(_("__asyncDelegator"),void 0,[e])},createAsyncValuesHelper:function(e){return u.requestEmitHelper(d.asyncValues),l.createCallExpression(_("__asyncValues"),void 0,[e])},createRestHelper:function(e,t,r,n){u.requestEmitHelper(d.restHelper);for(var i=[],a=0,o=0;o<t.length-1;o++){var s,c=d.getPropertyNameOfBindingOrAssignmentElement(t[o]);c&&(d.isComputedPropertyName(c)?(d.Debug.assertIsDefined(r,"Encountered computed property name but 'computedTempVariables' argument was not provided."),s=r[a],a++,i.push(l.createConditionalExpression(l.createTypeCheck(s,"symbol"),void 0,s,void 0,l.createAdd(s,l.createStringLiteral(""))))):i.push(l.createStringLiteralFromNode(c)))}return l.createCallExpression(_("__rest"),void 0,[e,d.setTextRange(l.createArrayLiteralExpression(i),n)])},createAwaiterHelper:function(e,t,r,n){u.requestEmitHelper(d.awaiterHelper);n=l.createFunctionExpression(void 0,l.createToken(41),void 0,void 0,[],void 0,n);return(n.emitNode||(n.emitNode={})).flags|=786432,l.createCallExpression(_("__awaiter"),void 0,[e?l.createThis():l.createVoidZero(),t?l.createIdentifier("arguments"):l.createVoidZero(),r?d.createExpressionFromEntityName(l,r):l.createVoidZero(),n])},createExtendsHelper:function(e){return u.requestEmitHelper(d.extendsHelper),l.createCallExpression(_("__extends"),void 0,[e,l.createUniqueName("_super",48)])},createTemplateObjectHelper:function(e,t){return u.requestEmitHelper(d.templateObjectHelper),l.createCallExpression(_("__makeTemplateObject"),void 0,[e,t])},createSpreadHelper:function(e){return u.requestEmitHelper(d.readHelper),u.requestEmitHelper(d.spreadHelper),l.createCallExpression(_("__spread"),void 0,e)},createSpreadArraysHelper:function(e){return u.requestEmitHelper(d.spreadArraysHelper),l.createCallExpression(_("__spreadArrays"),void 0,e)},createValuesHelper:function(e){return u.requestEmitHelper(d.valuesHelper),l.createCallExpression(_("__values"),void 0,[e])},createReadHelper:function(e,t){return u.requestEmitHelper(d.readHelper),l.createCallExpression(_("__read"),void 0,void 0!==t?[e,l.createNumericLiteral(t+"")]:[e])},createGeneratorHelper:function(e){return u.requestEmitHelper(d.generatorHelper),l.createCallExpression(_("__generator"),void 0,[l.createThis(),e])},createCreateBindingHelper:function(e,t,r){return u.requestEmitHelper(d.createBindingHelper),l.createCallExpression(_("__createBinding"),void 0,__spreadArrays([l.createIdentifier("exports"),e,t],r?[r]:[]))},createImportStarHelper:function(e){return u.requestEmitHelper(d.importStarHelper),l.createCallExpression(_("__importStar"),void 0,[e])},createImportStarCallbackHelper:function(){return u.requestEmitHelper(d.importStarHelper),_("__importStar")},createImportDefaultHelper:function(e){return u.requestEmitHelper(d.importDefaultHelper),l.createCallExpression(_("__importDefault"),void 0,[e])},createExportStarHelper:function(e,t){void 0===t&&(t=l.createIdentifier("exports"));return u.requestEmitHelper(d.exportStarHelper),u.requestEmitHelper(d.createBindingHelper),l.createCallExpression(_("__exportStar"),void 0,[e,t])},createClassPrivateFieldGetHelper:function(e,t){return u.requestEmitHelper(d.classPrivateFieldGetHelper),l.createCallExpression(_("__classPrivateFieldGet"),void 0,[e,t])},createClassPrivateFieldSetHelper:function(e,t,r){return u.requestEmitHelper(d.classPrivateFieldSetHelper),l.createCallExpression(_("__classPrivateFieldSet"),void 0,[e,t,r])}};function _(e){return d.setEmitFlags(l.createIdentifier(e),4098)}},d.compareEmitHelpers=function(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:d.compareValues(e.priority,t.priority)},d.helperString=e,d.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'},d.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n            };'},d.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };"},d.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || function () {\n                __assign = Object.assign || function(t) {\n                    for (var s, i = 1, n = arguments.length; i < n; i++) {\n                        s = arguments[i];\n                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                            t[p] = s[p];\n                    }\n                    return t;\n                };\n                return __assign.apply(this, arguments);\n            };"},d.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},d.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[d.awaitHelper],text:'\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var g = generator.apply(thisArg, _arguments || []), i, q = [];\n                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n                function fulfill(value) { resume("next", value); }\n                function reject(value) { resume("throw", value); }\n                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n            };'},d.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[d.awaitHelper],text:'\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i, p;\n                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n            };'},d.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncValues) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator], i;\n                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n            };'},d.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                            t[p[i]] = s[p[i]];\n                    }\n                return t;\n            };'},d.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n                return new (P || (P = Promise))(function (resolve, reject) {\n                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'},d.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:"\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = function (d, b) {\n                    extendStatics = Object.setPrototypeOf ||\n                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n                    return extendStatics(d, b);\n                };\n\n                return function (d, b) {\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();"},d.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n                return cooked;\n            };'},d.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i["return"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };'},d.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,dependencies:[d.readHelper],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            };"},d.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n            var __spreadArrays = (this && this.__spreadArrays) || function () {\n                for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n                for (var r = Array(s), k = 0, i = 0; i < il; i++)\n                    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n                        r[k] = a[j];\n                return r;\n            };"},d.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n            var __values = (this && this.__values) || function(o) {\n                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n                if (m) return m.call(o);\n                if (o && typeof o.length === "number") return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n            };'},d.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (_) try {\n                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [op[0] & 2, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'},d.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n            }) : (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                o[k2] = m[k];\n            }));"},d.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n                Object.defineProperty(o, "default", { enumerable: true, value: v });\n            }) : function(o, v) {\n                o["default"] = v;\n            });'},d.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[d.createBindingHelper,d.setModuleDefaultHelper],priority:2,text:'\n            var __importStar = (this && this.__importStar) || function (mod) {\n                if (mod && mod.__esModule) return mod;\n                var result = {};\n                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n                __setModuleDefault(result, mod);\n                return result;\n            };'},d.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n            var __importDefault = (this && this.__importDefault) || function (mod) {\n                return (mod && mod.__esModule) ? mod : { "default": mod };\n            };'},d.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[d.createBindingHelper],priority:2,text:'\n            var __exportStar = (this && this.__exportStar) || function(m, exports) {\n                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n            };'},d.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {\n                if (!privateMap.has(receiver)) {\n                    throw new TypeError("attempted to get private field on non-instance");\n                }\n                return privateMap.get(receiver);\n            };'},d.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n                if (!privateMap.has(receiver)) {\n                    throw new TypeError("attempted to set private field on non-instance");\n                }\n                privateMap.set(receiver, value);\n                return value;\n            };'},d.getAllUnscopedEmitHelpers=function(){return t=t||d.arrayToMap([d.decorateHelper,d.metadataHelper,d.paramHelper,d.assignHelper,d.awaitHelper,d.asyncGeneratorHelper,d.asyncDelegator,d.asyncValues,d.restHelper,d.awaiterHelper,d.extendsHelper,d.templateObjectHelper,d.spreadHelper,d.spreadArraysHelper,d.valuesHelper,d.readHelper,d.generatorHelper,d.importStarHelper,d.importDefaultHelper,d.exportStarHelper,d.classPrivateFieldGetHelper,d.classPrivateFieldSetHelper,d.createBindingHelper,d.setModuleDefaultHelper],function(e){return e.name})},d.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e(__makeTemplateObject(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_superIndex")},d.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e(__makeTemplateObject(["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"],["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(ts=ts||{}),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=function(e){return 78===e.kind},e.isQualifiedName=function(e){return 157===e.kind},e.isComputedPropertyName=function(e){return 158===e.kind},e.isPrivateIdentifier=function(e){return 79===e.kind},e.isSuperKeyword=function(e){return 105===e.kind},e.isImportKeyword=function(e){return 99===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isTypeParameterDeclaration=function(e){return 159===e.kind},e.isParameter=function(e){return 160===e.kind},e.isDecorator=function(e){return 161===e.kind},e.isPropertySignature=function(e){return 162===e.kind},e.isPropertyDeclaration=function(e){return 163===e.kind},e.isMethodSignature=function(e){return 164===e.kind},e.isMethodDeclaration=function(e){return 165===e.kind},e.isConstructorDeclaration=function(e){return 166===e.kind},e.isGetAccessorDeclaration=function(e){return 167===e.kind},e.isSetAccessorDeclaration=function(e){return 168===e.kind},e.isCallSignatureDeclaration=function(e){return 169===e.kind},e.isConstructSignatureDeclaration=function(e){return 170===e.kind},e.isIndexSignatureDeclaration=function(e){return 171===e.kind},e.isTypePredicateNode=function(e){return 172===e.kind},e.isTypeReferenceNode=function(e){return 173===e.kind},e.isFunctionTypeNode=function(e){return 174===e.kind},e.isConstructorTypeNode=function(e){return 175===e.kind},e.isTypeQueryNode=function(e){return 176===e.kind},e.isTypeLiteralNode=function(e){return 177===e.kind},e.isArrayTypeNode=function(e){return 178===e.kind},e.isTupleTypeNode=function(e){return 179===e.kind},e.isNamedTupleMember=function(e){return 192===e.kind},e.isOptionalTypeNode=function(e){return 180===e.kind},e.isRestTypeNode=function(e){return 181===e.kind},e.isUnionTypeNode=function(e){return 182===e.kind},e.isIntersectionTypeNode=function(e){return 183===e.kind},e.isConditionalTypeNode=function(e){return 184===e.kind},e.isInferTypeNode=function(e){return 185===e.kind},e.isParenthesizedTypeNode=function(e){return 186===e.kind},e.isThisTypeNode=function(e){return 187===e.kind},e.isTypeOperatorNode=function(e){return 188===e.kind},e.isIndexedAccessTypeNode=function(e){return 189===e.kind},e.isMappedTypeNode=function(e){return 190===e.kind},e.isLiteralTypeNode=function(e){return 191===e.kind},e.isImportTypeNode=function(e){return 195===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 194===e.kind},e.isTemplateLiteralTypeNode=function(e){return 193===e.kind},e.isObjectBindingPattern=function(e){return 196===e.kind},e.isArrayBindingPattern=function(e){return 197===e.kind},e.isBindingElement=function(e){return 198===e.kind},e.isArrayLiteralExpression=function(e){return 199===e.kind},e.isObjectLiteralExpression=function(e){return 200===e.kind},e.isPropertyAccessExpression=function(e){return 201===e.kind},e.isElementAccessExpression=function(e){return 202===e.kind},e.isCallExpression=function(e){return 203===e.kind},e.isNewExpression=function(e){return 204===e.kind},e.isTaggedTemplateExpression=function(e){return 205===e.kind},e.isTypeAssertionExpression=function(e){return 206===e.kind},e.isParenthesizedExpression=function(e){return 207===e.kind},e.isFunctionExpression=function(e){return 208===e.kind},e.isArrowFunction=function(e){return 209===e.kind},e.isDeleteExpression=function(e){return 210===e.kind},e.isTypeOfExpression=function(e){return 211===e.kind},e.isVoidExpression=function(e){return 212===e.kind},e.isAwaitExpression=function(e){return 213===e.kind},e.isPrefixUnaryExpression=function(e){return 214===e.kind},e.isPostfixUnaryExpression=function(e){return 215===e.kind},e.isBinaryExpression=function(e){return 216===e.kind},e.isConditionalExpression=function(e){return 217===e.kind},e.isTemplateExpression=function(e){return 218===e.kind},e.isYieldExpression=function(e){return 219===e.kind},e.isSpreadElement=function(e){return 220===e.kind},e.isClassExpression=function(e){return 221===e.kind},e.isOmittedExpression=function(e){return 222===e.kind},e.isExpressionWithTypeArguments=function(e){return 223===e.kind},e.isAsExpression=function(e){return 224===e.kind},e.isNonNullExpression=function(e){return 225===e.kind},e.isMetaProperty=function(e){return 226===e.kind},e.isSyntheticExpression=function(e){return 227===e.kind},e.isPartiallyEmittedExpression=function(e){return 336===e.kind},e.isCommaListExpression=function(e){return 337===e.kind},e.isTemplateSpan=function(e){return 228===e.kind},e.isSemicolonClassElement=function(e){return 229===e.kind},e.isBlock=function(e){return 230===e.kind},e.isVariableStatement=function(e){return 232===e.kind},e.isEmptyStatement=function(e){return 231===e.kind},e.isExpressionStatement=function(e){return 233===e.kind},e.isIfStatement=function(e){return 234===e.kind},e.isDoStatement=function(e){return 235===e.kind},e.isWhileStatement=function(e){return 236===e.kind},e.isForStatement=function(e){return 237===e.kind},e.isForInStatement=function(e){return 238===e.kind},e.isForOfStatement=function(e){return 239===e.kind},e.isContinueStatement=function(e){return 240===e.kind},e.isBreakStatement=function(e){return 241===e.kind},e.isReturnStatement=function(e){return 242===e.kind},e.isWithStatement=function(e){return 243===e.kind},e.isSwitchStatement=function(e){return 244===e.kind},e.isLabeledStatement=function(e){return 245===e.kind},e.isThrowStatement=function(e){return 246===e.kind},e.isTryStatement=function(e){return 247===e.kind},e.isDebuggerStatement=function(e){return 248===e.kind},e.isVariableDeclaration=function(e){return 249===e.kind},e.isVariableDeclarationList=function(e){return 250===e.kind},e.isFunctionDeclaration=function(e){return 251===e.kind},e.isClassDeclaration=function(e){return 252===e.kind},e.isInterfaceDeclaration=function(e){return 253===e.kind},e.isTypeAliasDeclaration=function(e){return 254===e.kind},e.isEnumDeclaration=function(e){return 255===e.kind},e.isModuleDeclaration=function(e){return 256===e.kind},e.isModuleBlock=function(e){return 257===e.kind},e.isCaseBlock=function(e){return 258===e.kind},e.isNamespaceExportDeclaration=function(e){return 259===e.kind},e.isImportEqualsDeclaration=function(e){return 260===e.kind},e.isImportDeclaration=function(e){return 261===e.kind},e.isImportClause=function(e){return 262===e.kind},e.isNamespaceImport=function(e){return 263===e.kind},e.isNamespaceExport=function(e){return 269===e.kind},e.isNamedImports=function(e){return 264===e.kind},e.isImportSpecifier=function(e){return 265===e.kind},e.isExportAssignment=function(e){return 266===e.kind},e.isExportDeclaration=function(e){return 267===e.kind},e.isNamedExports=function(e){return 268===e.kind},e.isExportSpecifier=function(e){return 270===e.kind},e.isMissingDeclaration=function(e){return 271===e.kind},e.isNotEmittedStatement=function(e){return 335===e.kind},e.isSyntheticReference=function(e){return 340===e.kind},e.isMergeDeclarationMarker=function(e){return 338===e.kind},e.isEndOfDeclarationMarker=function(e){return 339===e.kind},e.isExternalModuleReference=function(e){return 272===e.kind},e.isJsxElement=function(e){return 273===e.kind},e.isJsxSelfClosingElement=function(e){return 274===e.kind},e.isJsxOpeningElement=function(e){return 275===e.kind},e.isJsxClosingElement=function(e){return 276===e.kind},e.isJsxFragment=function(e){return 277===e.kind},e.isJsxOpeningFragment=function(e){return 278===e.kind},e.isJsxClosingFragment=function(e){return 279===e.kind},e.isJsxAttribute=function(e){return 280===e.kind},e.isJsxAttributes=function(e){return 281===e.kind},e.isJsxSpreadAttribute=function(e){return 282===e.kind},e.isJsxExpression=function(e){return 283===e.kind},e.isCaseClause=function(e){return 284===e.kind},e.isDefaultClause=function(e){return 285===e.kind},e.isHeritageClause=function(e){return 286===e.kind},e.isCatchClause=function(e){return 287===e.kind},e.isPropertyAssignment=function(e){return 288===e.kind},e.isShorthandPropertyAssignment=function(e){return 289===e.kind},e.isSpreadAssignment=function(e){return 290===e.kind},e.isEnumMember=function(e){return 291===e.kind},e.isUnparsedPrepend=function(e){return 293===e.kind},e.isSourceFile=function(e){return 297===e.kind},e.isBundle=function(e){return 298===e.kind},e.isUnparsedSource=function(e){return 299===e.kind},e.isJSDocTypeExpression=function(e){return 301===e.kind},e.isJSDocNameReference=function(e){return 302===e.kind},e.isJSDocAllType=function(e){return 303===e.kind},e.isJSDocUnknownType=function(e){return 304===e.kind},e.isJSDocNullableType=function(e){return 305===e.kind},e.isJSDocNonNullableType=function(e){return 306===e.kind},e.isJSDocOptionalType=function(e){return 307===e.kind},e.isJSDocFunctionType=function(e){return 308===e.kind},e.isJSDocVariadicType=function(e){return 309===e.kind},e.isJSDocNamepathType=function(e){return 310===e.kind},e.isJSDoc=function(e){return 311===e.kind},e.isJSDocTypeLiteral=function(e){return 312===e.kind},e.isJSDocSignature=function(e){return 313===e.kind},e.isJSDocAugmentsTag=function(e){return 315===e.kind},e.isJSDocAuthorTag=function(e){return 317===e.kind},e.isJSDocClassTag=function(e){return 319===e.kind},e.isJSDocCallbackTag=function(e){return 324===e.kind},e.isJSDocPublicTag=function(e){return 320===e.kind},e.isJSDocPrivateTag=function(e){return 321===e.kind},e.isJSDocProtectedTag=function(e){return 322===e.kind},e.isJSDocReadonlyTag=function(e){return 323===e.kind},e.isJSDocDeprecatedTag=function(e){return 318===e.kind},e.isJSDocEnumTag=function(e){return 325===e.kind},e.isJSDocParameterTag=function(e){return 326===e.kind},e.isJSDocReturnTag=function(e){return 327===e.kind},e.isJSDocThisTag=function(e){return 328===e.kind},e.isJSDocTypeTag=function(e){return 329===e.kind},e.isJSDocTemplateTag=function(e){return 330===e.kind},e.isJSDocTypedefTag=function(e){return 331===e.kind},e.isJSDocUnknownTag=function(e){return 314===e.kind},e.isJSDocPropertyTag=function(e){return 333===e.kind},e.isJSDocImplementsTag=function(e){return 316===e.kind},e.isSyntaxList=function(e){return 334===e.kind}}(ts=ts||{}),function(f){function l(e,t,r,n){if(f.isComputedPropertyName(r))return f.setTextRange(e.createElementAccessExpression(t,r.expression),n);r=f.setTextRange(f.isIdentifierOrPrivateIdentifier(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return f.getOrCreateEmitNode(r).flags|=64,r}function g(e,t){e=f.parseNodeFactory.createIdentifier(e||"React");return f.setParent(e,f.getParseTreeNode(t)),e}function m(e,t,r){if(f.isQualifiedName(t)){var n=m(e,t.left,r),i=e.createIdentifier(f.idText(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(n,i)}return g(f.idText(t),r)}function y(e,t,r,n){return t?m(e,t,n):e.createPropertyAccessExpression(g(r,n),"createElement")}function _(e,t){return f.isIdentifier(t)?e.createStringLiteralFromNode(t):f.isComputedPropertyName(t)?f.setParent(f.setTextRange(e.cloneNode(t.expression),t.expression),t.expression.parent):f.setParent(f.setTextRange(e.cloneNode(t),t),t.parent)}function i(e){return f.isStringLiteral(e.expression)&&"use strict"===e.expression.text}function r(e,t){switch(void 0===t&&(t=15),e.kind){case 207:return 0!=(1&t);case 206:case 224:return 0!=(2&t);case 225:return 0!=(4&t);case 336:return 0!=(8&t)}return!1}function t(e,t){for(void 0===t&&(t=15);r(e,t);)e=e.expression;return e}function h(e){return f.setStartsOnNewLine(e,!0)}function u(e){e=f.getOriginalNode(e,f.isSourceFile),e=e&&e.emitNode;return e&&e.externalHelpersModuleName}function p(e,t,r,n,i){if(r.importHelpers&&f.isEffectiveExternalModule(t,r)){var a=u(t);if(a)return a;var a=f.getEmitModuleKind(r),o=(n||r.esModuleInterop&&i)&&a!==f.ModuleKind.System&&a<f.ModuleKind.ES2015;if(!o){a=f.getEmitHelpers(t);if(a)for(var s=0,c=a;s<c.length;s++)if(!c[s].scoped){o=!0;break}}if(o){t=f.getOriginalNode(t,f.isSourceFile),t=f.getOrCreateEmitNode(t);return t.externalHelpersModuleName||(t.externalHelpersModuleName=e.createUniqueName(f.externalHelpersModuleNameText))}}}function s(e,t,r,n){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&f.outFile(n)?e.createStringLiteral(f.getExternalModuleNameFromPath(r,t.fileName)):void 0}function n(e){if(f.isDeclarationBindingElement(e))return e.name;if(!f.isObjectLiteralElementLike(e))return f.isAssignmentExpression(e,!0)?n(e.left):f.isSpreadElement(e)?n(e.expression):e;switch(e.kind){case 288:return n(e.initializer);case 289:return e.name;case 290:return n(e.expression)}}function a(e){switch(e.kind){case 198:if(e.propertyName){var t=e.propertyName;return f.isPrivateIdentifier(t)?f.Debug.failBadSyntaxKind(t):f.isComputedPropertyName(t)&&o(t.expression)?t.expression:t}break;case 288:if(e.name){t=e.name;return f.isPrivateIdentifier(t)?f.Debug.failBadSyntaxKind(t):f.isComputedPropertyName(t)&&o(t.expression)?t.expression:t}break;case 290:return e.name&&f.isPrivateIdentifier(e.name)?f.Debug.failBadSyntaxKind(e.name):e.name}var r=n(e);if(r&&f.isPropertyName(r))return r}function o(e){e=e.kind;return 10===e||8===e}f.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},f.createMemberAccessForPropertyName=l,f.createJsxFactoryExpression=y,f.createExpressionForJsxElement=function(e,t,r,n,i,a){var o=[r];if(n&&o.push(n),i&&0<i.length)if(n||o.push(e.createNull()),1<i.length)for(var s=0,c=i;s<c.length;s++){var u=c[s];h(u),o.push(u)}else o.push(i[0]);return f.setTextRange(e.createCallExpression(t,void 0,o),a)},f.createExpressionForJsxFragment=function(e,t,r,n,i,a,o){var s,c,u,l=[(s=e,c=n,u=a,(r=r)?m(s,r,u):s.createPropertyAccessExpression(g(c,u),"Fragment")),e.createNull()];if(i&&0<i.length)if(1<i.length)for(var _=0,d=i;_<d.length;_++){var p=d[_];h(p),l.push(p)}else l.push(i[0]);return f.setTextRange(e.createCallExpression(y(e,t,n,a),void 0,l),o)},f.createForOfBindingStatement=function(e,t,r){if(f.isVariableDeclarationList(t)){var n=f.first(t.declarations),n=e.updateVariableDeclaration(n,n.name,void 0,void 0,r);return f.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[n])),t)}return r=f.setTextRange(e.createAssignment(t,r),t),f.setTextRange(e.createExpressionStatement(r),t)},f.insertLeadingStatement=function(e,t,r){return f.isBlock(t)?e.updateBlock(t,f.setTextRange(e.createNodeArray(__spreadArrays([r],t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},f.createExpressionFromEntityName=function e(t,r){if(f.isQualifiedName(r)){var n=e(t,r.left),i=f.setParent(f.setTextRange(t.cloneNode(r.right),r.right),r.right.parent);return f.setTextRange(t.createPropertyAccessExpression(n,i),r)}return f.setParent(f.setTextRange(t.cloneNode(r),r),r.parent)},f.createExpressionForPropertyName=_,f.createExpressionForObjectLiteralElementLike=function(e,t,r,n){switch(r.name&&f.isPrivateIdentifier(r.name)&&f.Debug.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 167:case 168:return function(e,t,r,n,i){var a=(o=f.getAllAccessorDeclarations(t,r)).firstAccessor,t=o.getAccessor,o=o.setAccessor;if(r===a)return f.setTextRange(e.createObjectDefinePropertyCall(n,_(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:t&&f.setTextRange(f.setOriginalNode(e.createFunctionExpression(t.modifiers,void 0,void 0,void 0,t.parameters,void 0,t.body),t),t),set:o&&f.setTextRange(f.setOriginalNode(e.createFunctionExpression(o.modifiers,void 0,void 0,void 0,o.parameters,void 0,o.body),o),o)},!i)),a)}(e,t.properties,r,n,!!t.multiLine);case 288:return s=e,c=r,u=n,f.setOriginalNode(f.setTextRange(s.createAssignment(l(s,u,c.name,c.name),c.initializer),c),c);case 289:return i=e,a=r,o=n,f.setOriginalNode(f.setTextRange(i.createAssignment(l(i,o,a.name,a.name),i.cloneNode(a.name)),a),a);case 165:return o=e,i=r,a=n,f.setOriginalNode(f.setTextRange(o.createAssignment(l(o,a,i.name,i.name),f.setOriginalNode(f.setTextRange(o.createFunctionExpression(i.modifiers,i.asteriskToken,void 0,void 0,i.parameters,void 0,i.body),i),i)),i),i)}var i,a,o,s,c,u},f.isInternalName=function(e){return 0!=(32768&f.getEmitFlags(e))},f.isLocalName=function(e){return 0!=(16384&f.getEmitFlags(e))},f.isExportName=function(e){return 0!=(8192&f.getEmitFlags(e))},f.findUseStrictPrologue=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(!f.isPrologueDirective(n))break;if(i(n))return n}},f.startsWithUseStrict=function(e){return void 0!==(e=f.firstOrUndefined(e))&&f.isPrologueDirective(e)&&i(e)},f.isCommaSequence=function(e){return 216===e.kind&&27===e.operatorToken.kind||337===e.kind},f.isOuterExpression=r,f.skipOuterExpressions=t,f.skipAssertions=function(e){return t(e,6)},f.startOnNewLine=h,f.getExternalHelpersModuleName=u,f.hasRecordedExternalHelpers=function(e){return!(!(e=(e=f.getOriginalNode(e,f.isSourceFile))&&e.emitNode)||!e.externalHelpersModuleName&&!e.externalHelpers)},f.createExternalHelpersImportDeclarationIfNeeded=function(t,r,n,e,i,a,o){if(e.importHelpers&&f.isEffectiveExternalModule(n,e)){var s=void 0,c=f.getEmitModuleKind(e);if(c>=f.ModuleKind.ES2015&&c<=f.ModuleKind.ESNext){c=f.getEmitHelpers(n);if(c){for(var u=[],l=0,_=c;l<_.length;l++){var d=_[l];d.scoped||(d=d.importName)&&f.pushIfUnique(u,d)}f.some(u)&&(u.sort(f.compareStringsCaseSensitive),s=t.createNamedImports(f.map(u,function(e){return f.isFileLevelUniqueName(n,e)?t.createImportSpecifier(void 0,t.createIdentifier(e)):t.createImportSpecifier(t.createIdentifier(e),r.getUnscopedHelperName(e))})),c=f.getOriginalNode(n,f.isSourceFile),f.getOrCreateEmitNode(c).externalHelpers=!0)}}else{o=p(t,n,e,i,a||o);o&&(s=t.createNamespaceImport(o))}if(s){s=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,s),t.createStringLiteral(f.externalHelpersModuleNameText));return f.addEmitFlags(s,67108864),s}}},f.getOrCreateExternalHelpersModuleNameIfNeeded=p,f.getLocalNameForExternalImport=function(e,t,r){var n=f.getNamespaceDeclarationNode(t);return!n||f.isDefaultImport(t)||f.isExportNamespaceAsDefaultDeclaration(t)?261===t.kind&&t.importClause||267===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0:(n=n.name,f.isGeneratedIdentifier(n)?n:e.createIdentifier(f.getSourceTextOfNodeFromSourceFile(r,n)||f.idText(n)))},f.getExternalModuleNameLiteral=function(e,t,r,n,i,a){var o=f.getExternalModuleName(t);if(10===o.kind)return t=t,n=n,a=a,s(e,i.getExternalModuleFileFromDeclaration(t),n,a)||function(e,t,r){t=r.renamedDependencies&&r.renamedDependencies.get(t.text);return t&&e.createStringLiteral(t)}(e,o,r)||e.cloneNode(o)},f.tryGetModuleNameFromFile=s,f.getInitializerOfBindingOrAssignmentElement=function e(t){if(f.isDeclarationBindingElement(t))return t.initializer;if(f.isPropertyAssignment(t)){var r=t.initializer;return f.isAssignmentExpression(r,!0)?r.right:void 0}return f.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:f.isAssignmentExpression(t,!0)?t.right:f.isSpreadElement(t)?e(t.expression):void 0},f.getTargetOfBindingOrAssignmentElement=n,f.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 160:case 198:return e.dotDotDotToken;case 220:case 290:return e}},f.getPropertyNameOfBindingOrAssignmentElement=function(e){var t=a(e);return f.Debug.assert(!!t||f.isSpreadAssignment(e),"Invalid property name for binding element."),t},f.tryGetPropertyNameOfBindingOrAssignmentElement=a,f.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 196:case 197:case 199:return e.elements;case 200:return e.properties}},f.getJSDocTypeAliasName=function(e){if(e)for(var t=e;;){if(f.isIdentifier(t)||!t.body)return f.isIdentifier(t)?t:t.name;t=t.body}},f.canHaveModifiers=function(e){return 160===(e=e.kind)||162===e||163===e||164===e||165===e||166===e||167===e||168===e||171===e||208===e||209===e||221===e||232===e||251===e||252===e||253===e||254===e||255===e||256===e||260===e||261===e||266===e||267===e},f.isExportModifier=function(e){return 92===e.kind},f.isAsyncModifier=function(e){return 129===e.kind},f.isStaticModifier=function(e){return 123===e.kind}}(ts=ts||{}),function(r){r.setTextRange=function(e,t){return t?r.setTextRangePosEnd(e,t.pos,t.end):e}}(ts=ts||{}),function(xi){var t,r,n,i,a,y,Di,e;function o(e,t){return t&&e(t)}function s(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function Si(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function Ti(e,t,r){if(e&&!(e.kind<=156))switch(e.kind){case 157:return o(t,e.left)||o(t,e.right);case 159:return o(t,e.name)||o(t,e.constraint)||o(t,e.default)||o(t,e.expression);case 289:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.questionToken)||o(t,e.exclamationToken)||o(t,e.equalsToken)||o(t,e.objectAssignmentInitializer);case 290:return o(t,e.expression);case 160:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.dotDotDotToken)||o(t,e.name)||o(t,e.questionToken)||o(t,e.type)||o(t,e.initializer);case 163:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.questionToken)||o(t,e.exclamationToken)||o(t,e.type)||o(t,e.initializer);case 162:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.questionToken)||o(t,e.type)||o(t,e.initializer);case 288:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.questionToken)||o(t,e.initializer);case 249:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.exclamationToken)||o(t,e.type)||o(t,e.initializer);case 198:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.dotDotDotToken)||o(t,e.propertyName)||o(t,e.name)||o(t,e.initializer);case 174:case 175:case 169:case 170:case 171:return s(t,r,e.decorators)||s(t,r,e.modifiers)||s(t,r,e.typeParameters)||s(t,r,e.parameters)||o(t,e.type);case 165:case 164:case 166:case 167:case 168:case 208:case 251:case 209:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.asteriskToken)||o(t,e.name)||o(t,e.questionToken)||o(t,e.exclamationToken)||s(t,r,e.typeParameters)||s(t,r,e.parameters)||o(t,e.type)||o(t,e.equalsGreaterThanToken)||o(t,e.body);case 173:return o(t,e.typeName)||s(t,r,e.typeArguments);case 172:return o(t,e.assertsModifier)||o(t,e.parameterName)||o(t,e.type);case 176:return o(t,e.exprName);case 177:return s(t,r,e.members);case 178:return o(t,e.elementType);case 179:return s(t,r,e.elements);case 182:case 183:return s(t,r,e.types);case 184:return o(t,e.checkType)||o(t,e.extendsType)||o(t,e.trueType)||o(t,e.falseType);case 185:return o(t,e.typeParameter);case 195:return o(t,e.argument)||o(t,e.qualifier)||s(t,r,e.typeArguments);case 186:case 188:return o(t,e.type);case 189:return o(t,e.objectType)||o(t,e.indexType);case 190:return o(t,e.readonlyToken)||o(t,e.typeParameter)||o(t,e.nameType)||o(t,e.questionToken)||o(t,e.type);case 191:return o(t,e.literal);case 192:return o(t,e.dotDotDotToken)||o(t,e.name)||o(t,e.questionToken)||o(t,e.type);case 196:case 197:case 199:return s(t,r,e.elements);case 200:return s(t,r,e.properties);case 201:return o(t,e.expression)||o(t,e.questionDotToken)||o(t,e.name);case 202:return o(t,e.expression)||o(t,e.questionDotToken)||o(t,e.argumentExpression);case 203:case 204:return o(t,e.expression)||o(t,e.questionDotToken)||s(t,r,e.typeArguments)||s(t,r,e.arguments);case 205:return o(t,e.tag)||o(t,e.questionDotToken)||s(t,r,e.typeArguments)||o(t,e.template);case 206:return o(t,e.type)||o(t,e.expression);case 207:case 210:case 211:case 212:return o(t,e.expression);case 214:return o(t,e.operand);case 219:return o(t,e.asteriskToken)||o(t,e.expression);case 213:return o(t,e.expression);case 215:return o(t,e.operand);case 216:return o(t,e.left)||o(t,e.operatorToken)||o(t,e.right);case 224:return o(t,e.expression)||o(t,e.type);case 225:return o(t,e.expression);case 226:return o(t,e.name);case 217:return o(t,e.condition)||o(t,e.questionToken)||o(t,e.whenTrue)||o(t,e.colonToken)||o(t,e.whenFalse);case 220:return o(t,e.expression);case 230:case 257:return s(t,r,e.statements);case 297:return s(t,r,e.statements)||o(t,e.endOfFileToken);case 232:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.declarationList);case 250:return s(t,r,e.declarations);case 233:return o(t,e.expression);case 234:return o(t,e.expression)||o(t,e.thenStatement)||o(t,e.elseStatement);case 235:return o(t,e.statement)||o(t,e.expression);case 236:return o(t,e.expression)||o(t,e.statement);case 237:return o(t,e.initializer)||o(t,e.condition)||o(t,e.incrementor)||o(t,e.statement);case 238:return o(t,e.initializer)||o(t,e.expression)||o(t,e.statement);case 239:return o(t,e.awaitModifier)||o(t,e.initializer)||o(t,e.expression)||o(t,e.statement);case 240:case 241:return o(t,e.label);case 242:return o(t,e.expression);case 243:return o(t,e.expression)||o(t,e.statement);case 244:return o(t,e.expression)||o(t,e.caseBlock);case 258:return s(t,r,e.clauses);case 284:return o(t,e.expression)||s(t,r,e.statements);case 285:return s(t,r,e.statements);case 245:return o(t,e.label)||o(t,e.statement);case 246:return o(t,e.expression);case 247:return o(t,e.tryBlock)||o(t,e.catchClause)||o(t,e.finallyBlock);case 287:return o(t,e.variableDeclaration)||o(t,e.block);case 161:return o(t,e.expression);case 252:case 221:case 253:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||s(t,r,e.typeParameters)||s(t,r,e.heritageClauses)||s(t,r,e.members);case 254:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||s(t,r,e.typeParameters)||o(t,e.type);case 255:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||s(t,r,e.members);case 291:return o(t,e.name)||o(t,e.initializer);case 256:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.body);case 260:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.moduleReference);case 261:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.importClause)||o(t,e.moduleSpecifier);case 262:return o(t,e.name)||o(t,e.namedBindings);case 259:case 263:case 269:return o(t,e.name);case 264:case 268:return s(t,r,e.elements);case 267:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.exportClause)||o(t,e.moduleSpecifier);case 265:case 270:return o(t,e.propertyName)||o(t,e.name);case 266:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.expression);case 218:return o(t,e.head)||s(t,r,e.templateSpans);case 228:return o(t,e.expression)||o(t,e.literal);case 193:return o(t,e.head)||s(t,r,e.templateSpans);case 194:return o(t,e.type)||o(t,e.literal);case 158:return o(t,e.expression);case 286:return s(t,r,e.types);case 223:return o(t,e.expression)||s(t,r,e.typeArguments);case 272:return o(t,e.expression);case 271:return s(t,r,e.decorators);case 337:return s(t,r,e.elements);case 273:return o(t,e.openingElement)||s(t,r,e.children)||o(t,e.closingElement);case 277:return o(t,e.openingFragment)||s(t,r,e.children)||o(t,e.closingFragment);case 274:case 275:return o(t,e.tagName)||s(t,r,e.typeArguments)||o(t,e.attributes);case 281:return s(t,r,e.properties);case 280:return o(t,e.name)||o(t,e.initializer);case 282:return o(t,e.expression);case 283:return o(t,e.dotDotDotToken)||o(t,e.expression);case 276:return o(t,e.tagName);case 180:case 181:case 301:case 306:case 305:case 307:case 309:return o(t,e.type);case 308:return s(t,r,e.parameters)||o(t,e.type);case 311:return s(t,r,e.tags);case 332:return o(t,e.tagName)||o(t,e.name);case 302:return o(t,e.name);case 326:case 333:return o(t,e.tagName)||(e.isNameFirst?o(t,e.name)||o(t,e.typeExpression):o(t,e.typeExpression)||o(t,e.name));case 317:return o(t,e.tagName);case 316:case 315:return o(t,e.tagName)||o(t,e.class);case 330:return o(t,e.tagName)||o(t,e.constraint)||s(t,r,e.typeParameters);case 331:return o(t,e.tagName)||(e.typeExpression&&301===e.typeExpression.kind?o(t,e.typeExpression)||o(t,e.fullName):o(t,e.fullName)||o(t,e.typeExpression));case 324:return o(t,e.tagName)||o(t,e.fullName)||o(t,e.typeExpression);case 327:case 329:case 328:case 325:return o(t,e.tagName)||o(t,e.typeExpression);case 313:return xi.forEach(e.typeParameters,t)||xi.forEach(e.parameters,t)||o(t,e.type);case 312:return xi.forEach(e.jsDocPropertyTags,t);case 314:case 319:case 320:case 321:case 322:case 323:return o(t,e.tagName);case 336:return o(t,e.expression)}}function Ci(e){return void 0!==e.externalModuleIndicator}function h(e,t,i,a,o,s){function c(e){var t="";if(s&&l(e)&&(t=a.substring(e.pos,e.end)),e._children&&(e._children=void 0),xi.setTextRangePosEnd(e,e.pos+i,e.end+i),s&&l(e)&&xi.Debug.assert(t===o.substring(e.pos,e.end)),Ti(e,c,u),xi.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++)c(n[r]);b(e,s)}function u(e){e._children=void 0,xi.setTextRangePosEnd(e,e.pos+i,e.end+i);for(var t=0,r=e;t<r.length;t++)c(r[t])}(t?u:c)(e)}function l(e){switch(e.kind){case 10:case 8:case 78:return 1}}function v(e,t,r,n,i){xi.Debug.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),xi.Debug.assert(e.pos<=r,"Adjusting an element that was entirely after the change range"),xi.Debug.assert(e.pos<=e.end);t=Math.min(e.pos,n),n=e.end>=r?e.end+i:Math.min(e.end,n);xi.Debug.assert(t<=n),e.parent&&(xi.Debug.assertGreaterThanOrEqual(t,e.parent.pos),xi.Debug.assertLessThanOrEqual(n,e.parent.end)),xi.setTextRangePosEnd(e,t,n)}function b(e,t){if(t){var r=e.pos,n=function(e){xi.Debug.assert(e.pos>=r),r=e.end};if(xi.hasJSDocNodes(e))for(var i=0,a=e.jsDoc;i<a.length;i++)n(a[i]);Ti(e,n),xi.Debug.assert(r<=e.end)}}function x(e,t,r,n){var i=e.text;r&&(xi.Debug.assert(i.length-r.span.length+r.newLength===t.length),(n||xi.Debug.shouldAssert(3))&&(e=i.substr(0,r.span.start),n=t.substr(0,r.span.start),xi.Debug.assert(e===n),i=i.substring(xi.textSpanEnd(r.span),i.length),t=t.substring(xi.textSpanEnd(xi.textChangeRangeNewSpan(r)),t.length),xi.Debug.assert(i===t)))}function D(t){var o=t.statements,s=0;xi.Debug.assert(s<o.length);var c=o[s],r=-1;return{currentNode:function(e){function n(e){return a>=e.pos&&a<e.end&&(Ti(e,n,i),!0)}function i(e){if(a>=e.pos&&a<e.end)for(var t=0;t<e.length;t++){var r=e[t];if(r){if(r.pos===a)return o=e,s=t,c=r,!0;if(r.pos<a&&a<r.end)return Ti(r,n,i),!0}}return!1}var a;return e!==r&&(c&&c.end===e&&s<o.length-1&&(c=o[++s]),c&&c.pos===e||(a=e,s=-1,c=o=void 0,Ti(t,n,i))),r=e,xi.Debug.assert(!c||c.pos===e),c}}}function Ei(e){return xi.fileExtensionIs(e,".d.ts")}function ki(e,t){for(var r=[],n=0,i=xi.getLeadingCommentRanges(t,0)||xi.emptyArray;n<i.length;n++){var a=i[n];!function(e,t,r){if(n=2===t.kind&&f.exec(r)){var n,i=n[1].toLowerCase();if((n=xi.commentPragmas[i])&&1&n.kind)if(n.args){for(var a={},o=0,s=n.args;o<s.length;o++){var c,u=s[o],l=function(e){if(p.has(e))return p.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return p.set(e,t),t}(u.name).exec(r);if(!l&&!u.optional)return;l&&(u.captureSpan?(c=t.pos+l.index+l[1].length+l[2].length,a[u.name]={value:l[3],pos:c,end:c+l[3].length}):a[u.name]=l[3])}e.push({name:i,args:{arguments:a,range:t}})}else e.push({name:i,args:{arguments:{},range:t}})}else{if(i=2===t.kind&&g.exec(r))return m(e,t,2,i),0;if(3===t.kind)for(var _=/\s*@(\S+)\s*(.*)\s*$/gim,d=void 0;d=_.exec(r);)m(e,t,4,d)}}(r,a,t.substring(a.pos,a.end))}e.pragmas=new xi.Map;for(var o=0,s=r;o<s.length;o++){var c,u=s[o];e.pragmas.has(u.name)?(c=e.pragmas.get(u.name))instanceof Array?c.push(u.args):e.pragmas.set(u.name,[c,u.args]):e.pragmas.set(u.name,u.args)}}function Ni(c,u){c.checkJsDirective=void 0,c.referencedFiles=[],c.typeReferenceDirectives=[],c.libReferenceDirectives=[],c.amdDependencies=[],c.hasNoDefaultLib=!1,c.pragmas.forEach(function(e,t){switch(t){case"reference":var i=c.referencedFiles,a=c.typeReferenceDirectives,o=c.libReferenceDirectives;xi.forEach(xi.toArray(e),function(e){var t=e.arguments,r=t.types,n=t.lib,t=t.path;e.arguments["no-default-lib"]?c.hasNoDefaultLib=!0:r?a.push({pos:r.pos,end:r.end,fileName:r.value}):n?o.push({pos:n.pos,end:n.end,fileName:n.value}):t?i.push({pos:t.pos,end:t.end,fileName:t.value}):u(e.range.pos,e.range.end-e.range.pos,xi.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":c.amdDependencies=xi.map(xi.toArray(e),function(e){return{name:e.arguments.name,path:e.arguments.path}});break;case"amd-module":if(e instanceof Array)for(var r=0,n=e;r<n.length;r++){var s=n[r];c.moduleName&&u(s.range.pos,s.range.end-s.range.pos,xi.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),c.moduleName=s.arguments.name}else c.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":xi.forEach(xi.toArray(e),function(e){(!c.checkJsDirective||e.range.pos>c.checkJsDirective.pos)&&(c.checkJsDirective={enabled:"ts-check"===t,end:e.range.end,pos:e.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:xi.Debug.fail("Unhandled pragma kind")}})}(e={})[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc",(e={})[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse",xi.parseBaseNodeFactory={createBaseSourceFileNode:function(e){return new(a=a||xi.objectAllocator.getSourceFileConstructor())(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n=n||xi.objectAllocator.getIdentifierConstructor())(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(i=i||xi.objectAllocator.getPrivateIdentifierConstructor())(e,-1,-1)},createBaseTokenNode:function(e){return new(r=r||xi.objectAllocator.getTokenConstructor())(e,-1,-1)},createBaseNode:function(e){return new(t=t||xi.objectAllocator.getNodeConstructor())(e,-1,-1)}},xi.parseNodeFactory=xi.createNodeFactory(1,xi.parseBaseNodeFactory),xi.isJSDocLikeText=Si,xi.forEachChild=Ti,xi.forEachChildRecursively=function(e,c,u){for(var l=[e];l.length;){var t=l.pop(),t=function(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(xi.isArray(i)){if(u)if(s=u(i,e)){if("skip"===s)continue;return s}for(var a=i.length-1;0<=a;a--){var o=i[a];if(s=c(o,e)){if("skip"===s)continue;return s}l.push(o)}}else{l.push(i);var s=c(i,e);if(s&&"skip"!==s)return s}}}(t,function(e){var t=[];return Ti(e,r,r),t;function r(e){t.unshift(e)}}(t));if(t)return t}},xi.createSourceFile=function(e,t,r,n,i){void 0===n&&(n=!1);var a=["parse","createSourceFile",{path:e}];return xi.tracing.begin.apply(xi.tracing,a),xi.performance.mark("beforeParse"),xi.perfLogger.logStartParseSourceFile(e),i=100===r?y.parseSourceFile(e,t,r,void 0,n,6):y.parseSourceFile(e,t,r,void 0,n,i),xi.perfLogger.logStopParseSourceFile(),xi.performance.mark("afterParse"),xi.performance.measure("Parse","beforeParse","afterParse"),xi.tracing.end.apply(xi.tracing,a),i},xi.parseIsolatedEntityName=function(e,t){return y.parseIsolatedEntityName(e,t)},xi.parseJsonText=function(e,t){return y.parseJsonText(e,t)},xi.isExternalModule=Ci,xi.updateSourceFile=function(e,t,r,n){return void 0===n&&(n=!1),(n=Di.updateSourceFile(e,t,r,n)).flags|=3145728&e.flags,n},xi.parseIsolatedJSDocComment=function(e,t,r){return(r=y.JSDocParser.parseIsolatedJSDocComment(e,t,r))&&r.jsDoc&&y.fixupParentReferences(r.jsDoc),r},xi.parseJSDocTypeExpressionForTests=function(e,t,r){return y.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(e){var a,o,s,c,u,j=xi.createScanner(99,!0),n=20480;function t(e){return m++,e}var J,l,y,_,d,p,z,f,g,U,m,h,v,b,x,r,D,i={createBaseSourceFileNode:function(e){return t(new u(e,0,0))},createBaseIdentifierNode:function(e){return t(new s(e,0,0))},createBasePrivateIdentifierNode:function(e){return t(new c(e,0,0))},createBaseTokenNode:function(e){return t(new o(e,0,0))},createBaseNode:function(e){return t(new a(e,0,0))}},V=xi.createNodeFactory(11,i),S=!0,T=!1;function C(e,t,r,n,i){void 0===r&&(r=2),void 0===i&&(i=!1),E(e,t,r,n,6),l=D,ue();var a,r=ae();if(1===U)a=Fe([],r,r),s=ke();else{var o=void 0;switch(U){case 22:o=an();break;case 109:case 94:case 103:o=ke();break;case 40:o=(ye(function(){return 8===ue()&&58!==ue()})?Mr:sn)();break;case 8:case 10:if(ye(function(){return 58!==ue()})){o=ht();break}default:o=sn()}n=V.createExpressionStatement(o);Pe(n,r),a=Fe([n],r),s=Ee(1,xi.Diagnostics.Unexpected_token)}var s=I(e,2,6,!1,a,s,l);i&&w(s),s.nodeCount=m,s.identifierCount=b,s.identifiers=h,s.parseDiagnostics=xi.attachFileToDiagnostics(z,s),f&&(s.jsDocDiagnostics=xi.attachFileToDiagnostics(f,s));return k(),s}function E(e,t,r,n,i){switch(a=xi.objectAllocator.getNodeConstructor(),o=xi.objectAllocator.getTokenConstructor(),s=xi.objectAllocator.getIdentifierConstructor(),c=xi.objectAllocator.getPrivateIdentifierConstructor(),u=xi.objectAllocator.getSourceFileConstructor(),J=xi.normalizePath(e),y=t,_=r,g=n,d=i,p=xi.getLanguageVariant(i),z=[],x=0,h=new xi.Map,v=new xi.Map,S=!(l=m=b=0),d){case 1:case 2:D=131072;break;case 6:D=33685504;break;default:D=0}T=!1,j.setText(y),j.setOnError(ie),j.setScriptTarget(_),j.setLanguageVariant(p)}function k(){j.clearCommentDirectives(),j.setText(""),j.setOnError(void 0),p=d=g=_=y=void 0,f=z=void(l=0),S=!(r=h=void(x=0))}function N(e,t){return t?F(e):e}e.parseSourceFile=function(e,t,r,n,i,a){if(void 0===i&&(i=!1),6!==(a=xi.ensureScriptKind(e,a)))return E(e,t,r,n,a),a=function(e,t,r){var n=Ei(J);n&&(D|=8388608);l=D,ue();var i=it(0,Cn);xi.Debug.assert(1===U);var a=F(ke()),a=I(J,e,r,n,i,a,l);ki(a,y),Ni(a,function(e,t,r){z.push(xi.createDetachedDiagnostic(J,e,t,r))}),a.commentDirectives=j.getCommentDirectives(),a.nodeCount=m,a.identifierCount=b,a.identifiers=h,a.parseDiagnostics=xi.attachFileToDiagnostics(z,a),f&&(a.jsDocDiagnostics=xi.attachFileToDiagnostics(f,a));t&&w(a);return a}(r,i,a),k(),a;i=C(e,t,r,n,i);return xi.convertToObjectWorker(i,i.parseDiagnostics,!1,void 0,void 0),i.referencedFiles=xi.emptyArray,i.typeReferenceDirectives=xi.emptyArray,i.libReferenceDirectives=xi.emptyArray,i.amdDependencies=xi.emptyArray,i.hasNoDefaultLib=!1,i.pragmas=xi.emptyMap,i},e.parseIsolatedEntityName=function(e,t){return E("",e,t,void 0,1),ue(),e=dt(!0),t=1===U&&!z.length,k(),t?e:void 0},e.parseJsonText=C;var A,K=!1;function F(t){xi.Debug.assert(!t.jsDoc);var e=xi.mapDefined(xi.getJSDocCommentRanges(t,y),function(e){return A.parseJSDocComment(t,e.pos,e.end-e.pos)});return e.length&&(t.jsDoc=e),K&&(K=!1,t.flags|=134217728),t}function P(i){var e=g,t=Di.createSyntaxCursor(i);g={currentNode:function(e){e=t.currentNode(e);S&&e&&u(e)&&(e.intersectsChange=!0);return e}};var a=[],o=z;z=[];for(var r,n,s=0,c=l(i.statements,0);-1!==c;)!function(){var t=i.statements[s],n=i.statements[c];xi.addRange(a,i.statements,s,c),s=_(i.statements,c);var e=xi.findIndex(o,function(e){return e.start>=t.pos}),r=0<=e?xi.findIndex(o,function(e){return e.start>=n.pos},e):-1;0<=e&&xi.addRange(z,o,e,0<=r?r:void 0),me(function(){var e=D;for(D|=32768,j.setTextPos(n.pos),ue();1!==U;){var t=j.getStartPos(),r=at(0,Cn);if(a.push(r),t===j.getStartPos()&&ue(),0<=s){t=i.statements[s];if(r.end===t.pos)break;r.end>t.pos&&(s=_(i.statements,s+1))}}D=e},2),c=0<=s?l(i.statements,s):-1}();return 0<=s&&(r=i.statements[s],xi.addRange(a,i.statements,s),0<=(n=xi.findIndex(o,function(e){return e.start>=r.pos}))&&xi.addRange(z,o,n)),g=e,V.updateSourceFile(i,xi.setTextRange(V.createNodeArray(a),i.statements));function u(e){return!(32768&e.flags)&&8388608&e.transformFlags}function l(e,t){for(var r=t;r<e.length;r++)if(u(e[r]))return r;return-1}function _(e,t){for(var r=t;r<e.length;r++)if(!u(e[r]))return r;return-1}}function w(e){xi.setParentRecursive(e,!0)}function I(e,t,r,n,i,a,o){a=V.createSourceFile(i,a,o);return xi.setTextRangePosWidth(a,0,y.length),(o=a).externalModuleIndicator=xi.forEach(o.statements,mi)||function(e){return 2097152&e.flags?yi(e):void 0}(o),!n&&Ci(a)&&8388608&a.transformFlags&&(a=P(a)),a.text=y,a.bindDiagnostics=[],a.bindSuggestionDiagnostics=void 0,a.languageVersion=t,a.fileName=e,a.languageVariant=xi.getLanguageVariant(r),a.isDeclarationFile=n,a.scriptKind=r,a}function O(e,t){e?D|=t:D&=~t}function M(e){O(e,4096)}function L(e){O(e,8192)}function R(e){O(e,16384)}function B(e){O(e,32768)}function q(e,t){var r=e&D;if(r){O(!1,r);e=t();return O(!0,r),e}return t()}function W(e,t){var r=e&~D;if(r){O(!0,r);e=t();return O(!1,r),e}return t()}function H(e){return q(4096,e)}function G(e){return W(32768,e)}function X(e){return 0!=(D&e)}function Q(){return X(8192)}function Y(){return X(4096)}function Z(){return X(16384)}function $(){return X(32768)}function ee(e,t){re(j.getTokenPos(),j.getTextPos(),e,t)}function te(e,t,r,n){var i=xi.lastOrUndefined(z);i&&e===i.start||z.push(xi.createDetachedDiagnostic(J,e,t,r,n)),T=!0}function re(e,t,r,n){te(e,t-e,r,n)}function ne(e,t,r){re(e.pos,e.end,t,r)}function ie(e,t){te(j.getTextPos(),t,e)}function ae(){return j.getStartPos()}function oe(){return j.hasPrecedingJSDocComment()}function se(){return U=j.scan()}function ce(e){return ue(),e()}function ue(){return xi.isKeyword(U)&&(j.hasUnicodeEscape()||j.hasExtendedUnicodeEscape())&&re(j.getTokenPos(),j.getTextPos(),xi.Diagnostics.Keywords_cannot_contain_escape_characters),se()}function le(){return U=j.scanJsDocToken()}function _e(){return U=j.reScanGreaterToken()}function de(){return U=j.reScanTemplateHeadOrNoSubstitutionTemplate()}function pe(){return U=j.reScanLessThanToken()}function fe(){return U=j.scanJsxIdentifier()}function ge(){return U=j.scanJsxToken()}function me(e,t){var r=U,n=z.length,i=T,a=D,e=0!==t?j.lookAhead(e):j.tryScan(e);return xi.Debug.assert(a===D),e&&0===t||(U=r,2!==t&&(z.length=n),T=i),e}function ye(e){return me(e,1)}function he(e){return me(e,0)}function ve(){return 78===U||115<U}function be(){return 78===U||(124!==U||!Q())&&((130!==U||!$())&&115<U)}function xe(e,t,r){return void 0===r&&(r=!0),U===e?(r&&ue(),!0):(t?ee(t):ee(xi.Diagnostics._0_expected,xi.tokenToString(e)),!1)}function De(e){if(U===e)return le(),1;ee(xi.Diagnostics._0_expected,xi.tokenToString(e))}function Se(e){return U===e&&(ue(),!0)}function Te(e){if(U===e)return ke()}function Ce(e){if(U===e)return t=ae(),e=U,le(),Pe(V.createToken(e),t);var t}function Ee(e,t,r){return Te(e)||we(e,!1,t||xi.Diagnostics._0_expected,r||xi.tokenToString(e))}function ke(){var e=ae(),t=U;return ue(),Pe(V.createToken(t),e)}function Ne(){return 26===U||(19===U||1===U||j.hasPrecedingLineBreak())}function Ae(){return Ne()?(26===U&&ue(),1):xe(26)}function Fe(e,t,r,n){n=V.createNodeArray(e,n);return xi.setTextRangePosEnd(n,t,null!=r?r:j.getStartPos()),n}function Pe(e,t,r){return xi.setTextRangePosEnd(e,t,null!=r?r:j.getStartPos()),D&&(e.flags|=D),T&&(T=!1,e.flags|=65536),e}function we(e,t,r,n){t?te(j.getStartPos(),0,r,n):r&&ee(r,n);n=ae();return Pe(78===e?V.createIdentifier("",void 0,void 0):xi.isTemplateLiteralKind(e)?V.createTemplateLiteralLikeNode(e,"","",void 0):8===e?V.createNumericLiteral("",void 0):10===e?V.createStringLiteral("",void 0):271===e?V.createMissingDeclaration():V.createToken(e),n)}function Ie(e){var t=h.get(e);return void 0===t&&h.set(e,t=e),t}function Oe(e,t,r){if(b++,e){var n=ae(),i=U,e=Ie(j.getTokenValue());return se(),Pe(V.createIdentifier(e,void 0,i),n)}if(79===U)return ee(r||xi.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Oe(!0);i=1===U,n=j.isReservedWord(),r=j.getTokenText(),n=n?xi.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:xi.Diagnostics.Identifier_expected;return we(78,i,t||n,r)}function Me(e){return Oe(ve(),void 0,e)}function Le(e,t){return Oe(be(),e,t)}function Re(e){return Oe(xi.tokenIsIdentifierOrKeyword(U),e)}function Be(){return xi.tokenIsIdentifierOrKeyword(U)||10===U||8===U}function je(e){if(10!==U&&8!==U)return(e&&22===U?function(){var e=ae();xe(22);var t=H(Dr);return xe(23),Pe(V.createComputedPropertyName(t),e)}:79===U?ze:Re)();e=ht();return e.text=Ie(e.text),e}function Je(){return je(!0)}function ze(){var e,t,r=ae(),t=V.createPrivateIdentifier((e=j.getTokenText(),void 0===(t=v.get(e))&&v.set(e,t=e),t));return ue(),Pe(t,r)}function Ue(e){return U===e&&he(Ke)}function Ve(){return ue(),!j.hasPrecedingLineBreak()&&He()}function Ke(){switch(U){case 84:return 91===ue();case 92:return ue(),87===U?ye(Ge):149===U?ye(We):qe();case 87:return Ge();case 123:case 134:case 146:return ue(),He();default:return Ve()}}function qe(){return 41!==U&&126!==U&&18!==U&&He()}function We(){return ue(),qe()}function He(){return 22===U||18===U||41===U||25===U||Be()}function Ge(){return ue(),83===U||97===U||117===U||125===U&&ye(hn)||129===U&&ye(vn)}function Xe(e,t){if(ot(e))return 1;switch(e){case 0:case 1:case 3:return(26!==U||!t)&&Sn();case 2:return 81===U||87===U;case 4:return ye(zt);case 5:return ye(qn)||26===U&&!t;case 6:return 22===U||Be();case 12:switch(U){case 22:case 41:case 25:case 24:return 1;default:return Be()}case 18:return Be();case 9:return 22===U||25===U||Be();case 7:return 18===U?ye(Qe):t?be()&&!et():br()&&!et();case 8:return wn();case 10:return 27===U||25===U||wn();case 19:return be();case 15:switch(U){case 27:case 24:return 1}case 11:return 25===U||xr();case 16:return At(!1);case 17:return At(!0);case 20:case 21:return 27===U||or();case 22:return ai();case 23:return xi.tokenIsIdentifierOrKeyword(U);case 13:return xi.tokenIsIdentifierOrKeyword(U)||18===U;case 14:return 1}return xi.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Qe(){if(xi.Debug.assert(18===U),19!==ue())return!0;var e=ue();return 27===e||18===e||93===e||116===e}function Ye(){return ue(),be()}function Ze(){return ue(),xi.tokenIsIdentifierOrKeyword(U)}function $e(){return ue(),xi.tokenIsIdentifierOrKeywordOrGreaterThan(U)}function et(){return(116===U||93===U)&&ye(tt)}function tt(){return ue(),xr()}function rt(){return ue(),or()}function nt(e){if(1===U)return 1;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===U;case 3:return 19===U||81===U||87===U;case 7:return 18===U||93===U||116===U;case 8:return function(){if(Ne())return 1;if(wr(U))return 1;return 38===U}();case 19:return 31===U||20===U||18===U||93===U||116===U;case 11:return 21===U||26===U;case 15:case 21:case 10:return 23===U;case 17:case 16:case 18:return 21===U||23===U;case 20:return 27!==U;case 22:return 18===U||19===U;case 13:return 31===U||43===U;case 14:return 29===U&&ye(li);default:return}}function it(e,t){var r=x;x|=1<<e;for(var n=[],i=ae();!nt(e);)if(Xe(e,!1)){var a=at(e,t);n.push(a)}else if(ct(e))break;return x=r,Fe(n,i)}function at(e,t){e=ot(e);return e?st(e):t()}function ot(e){if(g&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)&&!T){var t=g.currentNode(j.getStartPos());if(!(xi.nodeIsMissing(t)||t.intersectsChange||xi.containsParseError(t))){var r=25358336&t.flags;if(r===D&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 166:case 171:case 167:case 168:case 163:case 229:return!0;case 165:var t=e;return!(78===t.name.kind&&132===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 284:case 285:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 251:case 232:case 230:case 234:case 233:case 246:case 242:case 244:case 241:case 240:case 238:case 239:case 237:case 236:case 243:case 231:case 247:case 245:case 235:case 248:case 261:case 260:case 267:case 266:case 256:case 252:case 253:case 255:case 254:return!0}return!1}(e);case 6:return 291===e.kind;case 4:return function(e){if(e)switch(e.kind){case 170:case 164:case 171:case 162:case 169:return!0}return!1}(e);case 8:return function(e){if(249!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(160!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(t,e))return t.jsDocCache&&(t.jsDocCache=void 0),t}}}function st(e){return j.setTextPos(e.end),ue(),e}function ct(e){if(!function(){switch(e){case 0:case 1:return ee(xi.Diagnostics.Declaration_or_statement_expected),0;case 2:return ee(xi.Diagnostics.case_or_default_expected),0;case 3:return ee(xi.Diagnostics.Statement_expected),0;case 18:case 4:return ee(xi.Diagnostics.Property_or_signature_expected),0;case 5:return ee(xi.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected),0;case 6:return ee(xi.Diagnostics.Enum_member_expected),0;case 7:return ee(xi.Diagnostics.Expression_expected),0;case 8:return xi.isKeyword(U)?ee(xi.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,xi.tokenToString(U)):ee(xi.Diagnostics.Variable_declaration_expected);case 9:return ee(xi.Diagnostics.Property_destructuring_pattern_expected),0;case 10:return ee(xi.Diagnostics.Array_element_destructuring_pattern_expected),0;case 11:return ee(xi.Diagnostics.Argument_expression_expected),0;case 12:return ee(xi.Diagnostics.Property_assignment_expected),0;case 15:return ee(xi.Diagnostics.Expression_or_comma_expected),0;case 17:case 16:return ee(xi.Diagnostics.Parameter_declaration_expected),0;case 19:return ee(xi.Diagnostics.Type_parameter_declaration_expected),0;case 20:return ee(xi.Diagnostics.Type_argument_expected),0;case 21:return ee(xi.Diagnostics.Type_expected),0;case 22:return ee(xi.Diagnostics.Unexpected_token_expected),0;case 23:case 13:case 14:return ee(xi.Diagnostics.Identifier_expected),0;default:;}}(),function(){for(var e=0;e<24;e++)if(x&1<<e&&(Xe(e,!0)||nt(e)))return 1}())return 1;ue()}function ut(e,t,r){var n=x;x|=1<<e;for(var i=[],a=ae(),o=-1;;)if(Xe(e,!1)){var s=j.getStartPos();if(i.push(at(e,t)),o=j.getTokenPos(),!Se(27)){if(o=-1,nt(e))break;xe(27,6===e?xi.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0),r&&26===U&&!j.hasPrecedingLineBreak()&&ue(),s===j.getStartPos()&&ue()}}else{if(nt(e))break;if(ct(e))break}return x=n,Fe(i,a,void 0,0<=o)}function lt(){var e=Fe([],ae());return e.isMissingList=!0,e}function _t(e,t,r,n){if(xe(r)){t=ut(e,t);return xe(n),t}return lt()}function dt(e,t){for(var r=ae(),n=(e?Re:Le)(t),i=ae();Se(24);){if(29===U){n.jsdocDotPos=i;break}i=ae(),n=Pe(V.createQualifiedName(n,pt(e,!1)),r)}return n}function pt(e,t){if(j.hasPrecedingLineBreak()&&xi.tokenIsIdentifierOrKeyword(U)&&ye(yn))return we(78,!0,xi.Diagnostics.Identifier_expected);if(79!==U)return(e?Re:Le)();e=ze();return t?e:we(78,!0,xi.Diagnostics.Identifier_expected)}function ft(e){for(var t,r,n=ae(),i=[];t=e,r=void 0,r=ae(),r=Pe(V.createTemplateSpan(H(Dr),yt(t)),r),i.push(r),16===r.literal.kind;);return Fe(i,n)}function gt(e){var t=ae();return Pe(V.createTemplateExpression(vt(e),ft(e)),t)}function mt(){var e=ae();return Pe(V.createTemplateLiteralType(vt(!1),function(){var e,t=ae(),r=[];for(;e=function(){var e=ae();return Pe(V.createTemplateLiteralTypeSpan(yr(),yt(!1)),e)}(),r.push(e),16===e.literal.kind;);return Fe(r,t)}()),e)}function yt(e){return 19===U?(e=e,U=j.reScanTemplateToken(e),e=bt(U),xi.Debug.assert(16===e.kind||17===e.kind,"Template fragment has wrong token kind"),e):Ee(17,xi.Diagnostics._0_expected,xi.tokenToString(19))}function ht(){return bt(U)}function vt(e){e&&de();e=bt(U);return xi.Debug.assert(15===e.kind,"Template head has wrong token kind"),e}function bt(e){var t,r,n=ae(),e=xi.isTemplateLiteralKind(e)?V.createTemplateLiteralLikeNode(e,j.getTokenValue(),(r=14===(t=e)||17===t,(t=j.getTokenText()).substring(1,t.length-(j.isUnterminated()?0:r?1:2))),2048&j.getTokenFlags()):8===e?V.createNumericLiteral(j.getTokenValue(),j.getNumericLiteralFlags()):10===e?V.createStringLiteral(j.getTokenValue(),void 0,j.hasExtendedUnicodeEscape()):xi.isLiteralKind(e)?V.createLiteralLikeNode(e,j.getTokenValue()):xi.Debug.fail();return j.hasExtendedUnicodeEscape()&&(e.hasExtendedUnicodeEscape=!0),j.isUnterminated()&&(e.isUnterminated=!0),ue(),Pe(e,n)}function xt(){return dt(!0,xi.Diagnostics.Type_expected)}function Dt(){if(!j.hasPrecedingLineBreak()&&29===pe())return _t(20,yr,29,31)}function St(){var e=ae();return Pe(V.createTypeReferenceNode(xt(),Dt()),e)}function Tt(){var e=ae();return ue(),Pe(V.createThisTypeNode(),e)}function Ct(){var e,t=ae();return 107!==U&&102!==U||(e=Re(),xe(58)),Pe(V.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Et(),void 0),t)}function Et(){j.setInJSDocType(!0);var e=ae();if(Se(139)){var t=V.createJSDocNamepathType(void 0);e:for(;;)switch(U){case 19:case 1:case 27:case 5:break e;default:le()}return j.setInJSDocType(!1),Pe(t,e)}var r=Se(25),t=gr();return j.setInJSDocType(!1),r&&(t=Pe(V.createJSDocVariadicType(t),e)),62===U?(ue(),Pe(V.createJSDocOptionalType(t),e)):t}function kt(){var e,t,r=ae(),n=Le();Se(93)&&(or()||!xr()?e=yr():t=Lr());var i=Se(62)?yr():void 0,i=V.createTypeParameterDeclaration(n,e,i);return i.expression=t,Pe(i,r)}function Nt(){if(29===U)return _t(19,kt,29,31)}function At(e){return 25===U||wn()||xi.isModifierKind(U)||59===U||or(!e)}function Ft(){return wt(!0)}function Pt(){return wt(!1)}function wt(e){var t=ae(),r=oe();if(107===U)return N(Pe(V.createParameterDeclaration(void 0,void 0,void 0,Oe(!0),void 0,vr(),void 0),t),r);var n=e?G(Gn):Gn(),i=S;S=!1;e=Qn(),r=N(Pe(V.createParameterDeclaration(n,e,Te(25),(n=e,e=In(xi.Diagnostics.Private_identifiers_cannot_be_used_as_parameters),0===xi.getFullWidth(e)&&!xi.some(n)&&xi.isModifierKind(U)&&ue(),e),Te(57),vr(),Sr()),t),r);return S=i,r}function It(e,t){if(function(e,t){{if(38===e)return xe(e),!0;if(Se(58))return!0;if(t&&38===U)return ee(xi.Diagnostics._0_expected,xi.tokenToString(58)),ue(),!0}return!1}(e,t))return gr()}function Ot(e){var t=Q(),r=$();L(!!(1&e)),B(!!(2&e));e=32&e?ut(17,Ct):ut(16,r?Ft:Pt);return L(t),B(r),e}function Mt(e){if(!xe(20))return lt();e=Ot(e);return xe(21),e}function Lt(){Se(27)||Ae()}function Rt(e){var t=ae(),r=oe();170===e&&xe(102);var n=Nt(),i=Mt(4),a=It(58,!0);return Lt(),N(Pe(169===e?V.createCallSignature(n,i,a):V.createConstructSignature(n,i,a),t),r)}function Bt(){return 22===U&&ye(jt)}function jt(){if(ue(),25===U||23===U)return!0;if(xi.isModifierKind(U)){if(ue(),be())return!0}else{if(!be())return!1;ue()}return 58===U||27===U||57===U&&(ue(),58===U||27===U||23===U)}function Jt(e,t,r,n){var i=_t(16,Pt,22,23),a=vr();return Lt(),N(Pe(V.createIndexSignature(r,n,i,a),e),t)}function zt(){if(20===U||29===U)return!0;for(var e=!1;xi.isModifierKind(U);)e=!0,ue();return 22===U||(Be()&&(e=!0,ue()),!!e&&(20===U||29===U||57===U||58===U||27===U||Ne()))}function Ut(){if(20===U||29===U)return Rt(169);if(102===U&&ye(Vt))return Rt(170);var e,t,r,n,i,a=ae(),o=oe(),s=Qn();return Bt()?Jt(a,o,void 0,s):(e=a,t=o,r=s,a=Je(),o=Te(57),20===U||29===U?(s=Nt(),n=Mt(4),i=It(58,!0),n=V.createMethodSignature(r,a,o,s,n,i)):(i=vr(),n=V.createPropertySignature(r,a,o,i),62===U&&(n.initializer=Sr())),Lt(),N(Pe(n,e),t))}function Vt(){return ue(),20===U||29===U}function Kt(){return 24===ue()}function qt(){switch(ue()){case 20:case 29:case 24:return!0}return!1}function Wt(){var e;return xe(18)?(e=it(4,Ut),xe(19)):e=lt(),e}function Ht(){return ue(),39===U||40===U?142===ue():(142===U&&ue(),22===U&&Ye()&&100===ue())}function Gt(){var e,t=ae();xe(18),142!==U&&39!==U&&40!==U||142!==(e=ke()).kind&&xe(142),xe(22);var r,n=function(){var e=ae(),t=Re();xe(100);var r=yr();return Pe(V.createTypeParameterDeclaration(t,r,void 0),e)}(),i=Se(126)?yr():void 0;xe(23),57!==U&&39!==U&&40!==U||57!==(r=ke()).kind&&xe(57);var a=vr();return Ae(),xe(19),Pe(V.createMappedTypeNode(e,n,i,r,a),t)}function Xt(){var e=ae();if(Se(25))return Pe(V.createRestTypeNode(yr()),e);var t=yr();if(xi.isJSDocNullableType(t)&&t.pos===t.type.pos){e=V.createOptionalTypeNode(t.type);return xi.setTextRange(e,t),e.flags=t.flags,e}return t}function Qt(){return 58===ue()||57===U&&58===ue()}function Yt(){return 25===U?xi.tokenIsIdentifierOrKeyword(ue())&&Qt():xi.tokenIsIdentifierOrKeyword(U)&&Qt()}function Zt(){if(ye(Yt)){var e=ae(),t=oe(),r=Te(25),n=Re(),i=Te(57);xe(58);var a=Xt();return N(Pe(V.createNamedTupleMember(r,n,i,a),e),t)}return Xt()}function $t(){var e=ae(),t=oe(),r=Se(102),n=Nt(),i=Mt(4),a=It(38,!1);return N(Pe(r?V.createConstructorTypeNode(n,i,a):V.createFunctionTypeNode(n,i,a),e),t)}function er(){var e=ke();return 24===U?void 0:e}function tr(e){var t=ae();e&&ue();var r=109===U||94===U||103===U?ke():bt(U);return e&&(r=Pe(V.createPrefixUnaryExpression(40,r),t)),Pe(V.createLiteralTypeNode(r),t)}function rr(){return ue(),99===U}function nr(){l|=1048576;var e=ae(),t=Se(111);xe(99),xe(20);var r=yr();xe(21);var n=Se(24)?xt():void 0,i=Dt();return Pe(V.createImportTypeNode(r,n,i,t),e)}function ir(){return ue(),8===U||9===U}function ar(){switch(U){case 128:case 152:case 147:case 144:case 155:case 148:case 131:case 150:case 141:case 145:return he(er)||St();case 65:j.reScanAsteriskEqualsToken();case 41:return a=ae(),ue(),Pe(V.createJSDocAllType(),a);case 60:j.reScanQuestionToken();case 57:return a=ae(),ue(),Pe(27===U||19===U||21===U||31===U||62===U||51===U?V.createJSDocUnknownType():V.createJSDocNullableType(yr()),a);case 97:return function(){var e=ae(),t=oe();if(ye(ui)){ue();var r=Mt(36),n=It(58,!1);return N(Pe(V.createJSDocFunctionType(r,n),e),t)}return Pe(V.createTypeReferenceNode(Re(),void 0),e)}();case 53:return i=ae(),ue(),Pe(V.createJSDocNonNullableType(ar()),i);case 14:case 10:case 8:case 9:case 109:case 94:case 103:return tr();case 40:return ye(ir)?tr(!0):St();case 113:return ke();case 107:i=Tt();return 137!==U||j.hasPrecedingLineBreak()?i:(n=i,ue(),Pe(V.createTypePredicateNode(void 0,n,yr()),n.pos));case 111:return ye(rr)?nr():(r=ae(),xe(111),Pe(V.createTypeQueryNode(dt(!0)),r));case 18:return ye(Ht)?Gt():(t=ae(),Pe(V.createTypeLiteralNode(Wt()),t));case 22:return e=ae(),Pe(V.createTupleTypeNode(_t(21,Zt,22,23)),e);case 20:return function(){var e=ae();xe(20);var t=yr();return xe(21),Pe(V.createParenthesizedType(t),e)}();case 99:return nr();case 127:return ye(yn)?(n=ae(),r=Ee(127),t=(107===U?Tt:Le)(),e=Se(137)?yr():void 0,Pe(V.createTypePredicateNode(r,t,e),n)):St();case 15:return mt();default:return St()}var e,t,r,n,i,a}function or(e){switch(U){case 128:case 152:case 147:case 144:case 155:case 131:case 142:case 148:case 151:case 113:case 150:case 103:case 107:case 111:case 141:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 145:case 41:case 57:case 53:case 25:case 135:case 99:case 127:case 14:case 15:return!0;case 97:return!e;case 40:return!e&&ye(ir);case 20:return!e&&ye(sr);default:return be()}}function sr(){return ue(),21===U||At(!1)||or()}function cr(){var e,t=ae();return xe(135),Pe(V.createInferTypeNode((e=ae(),Pe(V.createTypeParameterDeclaration(Le(),void 0,void 0),e))),t)}function ur(){var e,t,r=U;switch(r){case 138:case 151:case 142:return e=r,t=ae(),xe(e),Pe(V.createTypeOperatorNode(e,ur()),t);case 135:return cr()}return function(){for(var e,t=ae(),r=ar();!j.hasPrecedingLineBreak();)switch(U){case 53:ue(),r=Pe(V.createJSDocNonNullableType(r),t);break;case 57:if(ye(rt))return r;ue(),r=Pe(V.createJSDocNullableType(r),t);break;case 22:xe(22),r=or()?(e=yr(),xe(23),Pe(V.createIndexedAccessTypeNode(r,e),t)):(xe(23),Pe(V.createArrayTypeNode(r),t));break;default:return r}return r}()}function lr(e){if(pr()){var t=$t();return ne(t,xi.isFunctionTypeNode(t)?e?xi.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:xi.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?xi.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:xi.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),t}}function _r(e,t,r){var n=ae(),i=51===e,a=Se(e),o=a&&lr(i)||t();if(U===e||a){for(var s=[o];Se(e);)s.push(lr(i)||t());o=Pe(r(Fe(s,n)),n)}return o}function dr(){return _r(50,ur,V.createIntersectionTypeNode)}function pr(){return 29===U||(20===U&&ye(fr)||102===U)}function fr(){if(ue(),21===U||25===U)return!0;if(function(){if(xi.isModifierKind(U)&&Qn(),be()||107===U)return ue(),1;if(22===U||18===U){var e=z.length;return In(),e===z.length}}()){if(58===U||27===U||57===U||62===U)return!0;if(21===U&&(ue(),38===U))return!0}return!1}function gr(){var e=ae(),t=be()&&he(mr),r=yr();return t?Pe(V.createTypePredicateNode(void 0,t,r),e):r}function mr(){var e=Le();if(137===U&&!j.hasPrecedingLineBreak())return ue(),e}function yr(){return q(40960,hr)}function hr(e){if(pr())return $t();var t=ae(),r=_r(51,dr,V.createUnionTypeNode);if(e||j.hasPrecedingLineBreak()||!Se(93))return r;var n=hr(!0);xe(57);var i=hr();xe(58);e=hr();return Pe(V.createConditionalTypeNode(r,n,i,e),t)}function vr(){return Se(58)?yr():void 0}function br(){switch(U){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return ye(qt);default:return be()}}function xr(){if(br())return!0;switch(U){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return function(){if(Y()&&100===U)return!1;return 0<xi.getBinaryOperatorPrecedence(U)}()?!0:be()}}function Dr(){var e=Z();e&&R(!1);for(var t,r=ae(),n=Tr();t=Te(27);)n=Or(n,t,Tr(),r);return e&&R(!0),n}function Sr(){return Se(62)?Tr():void 0}function Tr(){if(function(){if(124!==U)return!1;if(Q())return!0;return ye(bn)}())return t=ae(),ue(),j.hasPrecedingLineBreak()||41!==U&&!xr()?Pe(V.createYieldExpression(void 0,void 0),t):Pe(V.createYieldExpression(Te(41),Tr()),t);var e=(0!==(r=20!==U&&29!==U&&129!==U?38!==U?0:1:ye(Er))?1===r?Ar(!0):he(kr):void 0)||function(){if(129===U&&1===ye(Nr)){var e=ae(),t=Yn(),r=Pr(0);return Cr(e,r,t)}return}();if(e)return e;var t=ae(),r=Pr(0);return 78===r.kind&&38===U?Cr(t,r,void 0):xi.isLeftHandSideExpression(r)&&xi.isAssignmentOperator(_e())?Or(r,ke(),Tr(),t):(e=r,r=t,(t=Te(57))?Pe(V.createConditionalExpression(e,t,q(n,Tr),t=Ee(58),xi.nodeIsPresent(t)?Tr():we(78,!1,xi.Diagnostics._0_expected,xi.tokenToString(58))),r):e)}function Cr(e,t,r){xi.Debug.assert(38===U,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n=V.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);Pe(n,t.pos);var i=Fe([n],n.pos,n.end),t=Ee(38),n=Fr(!!r);return F(Pe(V.createArrowFunction(r,void 0,i,void 0,t,n),e))}function Er(){if(129===U){if(ue(),j.hasPrecedingLineBreak())return 0;if(20!==U&&29!==U)return 0}var e=U,t=ue();if(20!==e)return xi.Debug.assert(29===e),be()?1!==p?2:ye(function(){var e=ue();if(93===e)switch(ue()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:0;if(21===t)switch(ue()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(xi.isModifierKind(t)&&129!==t&&ye(Ye))return 1;if(!be()&&107!==t)return 0;switch(ue()){case 58:return 1;case 57:return ue(),58===U||27===U||62===U||21===U?1:0;case 27:case 62:case 21:return 2}return 0}function kr(){var e=j.getTokenPos();if(null==r||!r.has(e)){var t=Ar(!1);return t||(r=r||new xi.Set).add(e),t}}function Nr(){if(129===U){if(ue(),j.hasPrecedingLineBreak()||38===U)return 0;var e=Pr(0);if(!j.hasPrecedingLineBreak()&&78===e.kind&&38===U)return 1}return 0}function Ar(e){var t,r=ae(),n=oe(),i=Yn(),a=xi.some(i,xi.isAsyncModifier)?2:0,o=Nt();if(xe(20)){if(t=Ot(a),!xe(21)&&!e)return}else{if(!e)return;t=lt()}var s=It(58,!1);if(!s||e||!function e(t){switch(t.kind){case 173:return xi.nodeIsMissing(t.typeName);case 174:case 175:var r=t.parameters,n=t.type;return!!r.isMissingList||e(n);case 186:return e(t.type);default:return!1}}(s)){a=s&&xi.isJSDocFunctionType(s);if(e||38===U||!a&&18===U){e=U,a=Ee(38),e=38===e||18===e?Fr(xi.some(i,xi.isAsyncModifier)):Le();return N(Pe(V.createArrowFunction(i,o,t,s,a,e),r),n)}}}function Fr(e){if(18===U)return _n(e?2:0);if(26!==U&&97!==U&&83!==U&&Sn()&&(18===U||97===U||83===U||59===U||!xr()))return _n(16|(e?2:0));var t=S;S=!1;e=e?G(Tr):q(32768,Tr);return S=t,e}function Pr(e){var t=ae();return Ir(e,Lr(),t)}function wr(e){return 100===e||156===e}function Ir(e,t,r){for(;;){_e();var n=xi.getBinaryOperatorPrecedence(U);if(!(42===U?e<=n:e<n))break;if(100===U&&Y())break;if(126===U){if(j.hasPrecedingLineBreak())break;ue(),i=t,a=yr(),t=Pe(V.createAsExpression(i,a),i.pos)}else t=Or(t,ke(),Pr(n),r)}var i,a;return t}function Or(e,t,r,n){return Pe(V.createBinaryExpression(e,t,r),n)}function Mr(){var e=ae();return Pe(V.createPrefixUnaryExpression(U,ce(Rr)),e)}function Lr(){if(function(){switch(U){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==p)return!1;default:return!0}}()){var e=ae(),t=Br();return 42===U?Ir(xi.getBinaryOperatorPrecedence(U),t,e):t}var r=U,n=Rr();return 42===U&&(e=xi.skipTrivia(y,n.pos),t=n.end,206===n.kind?re(e,t,xi.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):re(e,t,xi.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,xi.tokenToString(r))),n}function Rr(){switch(U){case 39:case 40:case 54:case 53:return Mr();case 88:return t=ae(),Pe(V.createDeleteExpression(ce(Rr)),t);case 111:return t=ae(),Pe(V.createTypeOfExpression(ce(Rr)),t);case 113:return e=ae(),Pe(V.createVoidExpression(ce(Rr)),e);case 29:return function(){var e=ae();xe(29);var t=yr();xe(31);var r=Rr();return Pe(V.createTypeAssertion(t,r),e)}();case 130:if(130===U&&($()||ye(bn)))return e=ae(),Pe(V.createAwaitExpression(ce(Rr)),e);default:return Br()}var e,t}function Br(){if(45===U||46===U){var e=ae();return Pe(V.createPrefixUnaryExpression(U,ce(jr)),e)}if(1===p&&29===U&&ye($e))return zr(!0);var t=jr();if(xi.Debug.assert(xi.isLeftHandSideExpression(t)),45!==U&&46!==U||j.hasPrecedingLineBreak())return t;e=U;return ue(),Pe(V.createPostfixUnaryExpression(t,e),t.pos)}function jr(){var e,t=ae();return 99===U?ye(Vt)?(l|=1048576,e=ke()):ye(Kt)?(ue(),ue(),e=Pe(V.createMetaProperty(99,Re()),t),l|=2097152):e=Jr():e=(105===U?function(){var e=ae(),t=ke();{var r;29===U&&(r=ae(),void 0!==he(en)&&re(r,ae(),xi.Diagnostics.super_may_not_use_type_arguments))}return 20!==U&&24!==U&&22!==U?(Ee(24,xi.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Pe(V.createPropertyAccessExpression(t,pt(!0,!0)),e)):t}:Jr)(),Zr(t,e)}function Jr(){return Xr(ae(),tn(),!0)}function zr(e,t){var r,n,i=ae(),a=function(e){var t=ae();if(xe(29),31===U)return ge(),Pe(V.createJsxOpeningFragment(),t);var r=Kr(),n=ii(),i=function(){var e=ae();return Pe(V.createJsxAttributes(it(13,Wr)),e)}();i=31===U?(ge(),V.createJsxOpeningElement(r,n,i)):(xe(43),e?xe(31):(xe(31,void 0,!1),ge()),V.createJsxSelfClosingElement(r,n,i));return Pe(i,t)}(e),a=275===a.kind?(r=Vr(a),n=function(e){var t=ae();xe(30);var r=Kr();e?xe(31):(xe(31,void 0,!1),ge());return Pe(V.createJsxClosingElement(r),t)}(e),Ai(a.tagName,n.tagName)||ne(n,xi.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,xi.getTextOfNodeFromSourceText(y,a.tagName)),Pe(V.createJsxElement(a,r,n),i)):278===a.kind?Pe(V.createJsxFragment(a,Vr(a),function(e){var t=ae();xe(30),xi.tokenIsIdentifierOrKeyword(U)&&ne(Kr(),xi.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);e?xe(31):(xe(31,void 0,!1),ge());return Pe(V.createJsxJsxClosingFragment(),t)}(e)),i):(xi.Debug.assert(274===a.kind),a);if(e&&29===U){var o=void 0===t?a.pos:t,e=he(function(){return zr(!0,o)});if(e){t=we(27,!1);return xi.setTextRangePosWidth(t,e.pos,0),re(xi.skipTrivia(y,o),e.end,xi.Diagnostics.JSX_expressions_must_have_one_parent_element),Pe(V.createBinaryExpression(a,t,e),i)}}return a}function Ur(e,t){switch(t){case 1:return void(xi.isJsxOpeningFragment(e)?ne(e,xi.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):(n=e.tagName,re(xi.skipTrivia(y,n.pos),n.end,xi.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,xi.getTextOfNodeFromSourceText(y,e.tagName))));case 30:case 7:return;case 11:case 12:return r=ae(),n=V.createJsxText(j.getTokenValue(),12===U),U=j.scanJsxToken(),Pe(n,r);case 18:return qr(!1);case 29:return zr(!1);default:return xi.Debug.assertNever(t)}var r,n}function Vr(e){var t=[],r=ae(),n=x;for(x|=16384;;){var i=Ur(e,U=j.reScanJsxToken());if(!i)break;t.push(i)}return x=n,Fe(t,r)}function Kr(){var e=ae();fe();for(var t=(107===U?ke:Re)();Se(24);)t=Pe(V.createPropertyAccessExpression(t,pt(!0,!1)),e);return t}function qr(e){var t,r,n=ae();if(xe(18))return 19!==U&&(t=Te(25),r=Dr()),e?xe(19):xe(19,void 0,!1)&&ge(),Pe(V.createJsxExpression(t,r),n)}function Wr(){if(18===U)return function(){var e=ae();xe(18),xe(25);var t=Dr();return xe(19),Pe(V.createJsxSpreadAttribute(t),e)}();fe();var e=ae();return Pe(V.createJsxAttribute(Re(),62!==U?void 0:10===(U=j.scanJsxAttributeValue())?ht():qr(!0)),e)}function Hr(){return ue(),xi.tokenIsIdentifierOrKeyword(U)||22===U||Qr()}function Gr(e){if(32&e.flags)return!0;if(xi.isNonNullExpression(e)){for(var t=e.expression;xi.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;xi.isNonNullExpression(e);)e.flags|=32,e=e.expression;return!0}}return!1}function Xr(e,t,r){for(;;){var n=void 0;if(r&&28===U&&ye(Hr)?(n=Ee(28),xi.tokenIsIdentifierOrKeyword(U)):Se(24))i=e,a=t,o=n,s=pt(!(s=c=s=void 0),!0),c=o||Gr(a),s=c?V.createPropertyAccessChain(a,o,s):V.createPropertyAccessExpression(a,s),c&&xi.isPrivateIdentifier(s.name)&&ne(s.name,xi.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),t=Pe(s,i);else if(n||53!==U||j.hasPrecedingLineBreak())if(!n&&Z()||!Se(22)){if(!Qr())return t;t=Yr(e,t,n,void 0)}else c=e,s=t,i=n,n=void 0,n=23===U?we(78,!0,xi.Diagnostics.An_element_access_expression_should_take_an_argument):(n=H(Dr),xi.isStringOrNumericLiteralLike(n)&&(n.text=Ie(n.text)),n),xe(23),t=Pe(i||Gr(s)?V.createElementAccessChain(s,i,n):V.createElementAccessExpression(s,n),c);else ue(),t=Pe(V.createNonNullExpression(t),e)}var i,a,o,s,c}function Qr(){return 14===U||15===U}function Yr(e,t,r,n){n=V.createTaggedTemplateExpression(t,n,14===U?(de(),ht()):gt(!0));return(r||32&t.flags)&&(n.flags|=32),n.questionDotToken=r,Pe(n,e)}function Zr(e,t){for(;;){t=Xr(e,t,!0);var r=Te(28);if(29===U||47===U){var n=he(en);if(n){if(Qr()){t=Yr(e,t,r,n);continue}var i=$r();t=Pe(r||Gr(t)?V.createCallChain(t,r,n,i):V.createCallExpression(t,n,i),e);continue}}else if(20===U){i=$r();t=Pe(r||Gr(t)?V.createCallChain(t,r,void 0,i):V.createCallExpression(t,void 0,i),e);continue}r&&(n=we(78,!1,xi.Diagnostics.Identifier_expected),t=Pe(V.createPropertyAccessChain(t,r,n),e));break}return t}function $r(){xe(20);var e=ut(11,nn);return xe(21),e}function en(){if(29===pe()){ue();var e=ut(20,yr);if(xe(31))return e&&function(){switch(U){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function tn(){switch(U){case 8:case 9:case 10:case 14:return ht();case 107:case 105:case 103:case 109:case 94:return ke();case 20:return function(){var e=ae(),t=oe();xe(20);var r=H(Dr);return xe(21),N(Pe(V.createParenthesizedExpression(r),e),t)}();case 22:return an();case 18:return sn();case 129:if(!ye(vn))break;return cn();case 83:return ei(ae(),oe(),void 0,void 0,221);case 97:return cn();case 102:return function(){var e=ae();if(xe(102),Se(24)){var t=Re();return Pe(V.createMetaProperty(102,t),e)}var r,n,i=ae(),a=tn();for(;;){a=Xr(i,a,!1),r=he(en),Qr()&&(xi.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),a=Yr(i,a,void 0,r),r=void 0);break}20===U?n=$r():r&&re(e,j.getStartPos(),xi.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Pe(V.createNewExpression(a,r,n),e)}();case 43:case 67:if(13===(U=j.reScanSlashToken()))return ht();break;case 15:return gt(!1)}return Le(xi.Diagnostics.Expression_expected)}function rn(){return 25===U?function(){var e=ae();xe(25);var t=Tr();return Pe(V.createSpreadElement(t),e)}():27===U?Pe(V.createOmittedExpression(),ae()):Tr()}function nn(){return q(n,rn)}function an(){var e=ae();xe(22);var t=j.hasPrecedingLineBreak(),r=ut(15,rn);return xe(23),Pe(V.createArrayLiteralExpression(r,t),e)}function on(){var e=ae(),t=oe();if(Te(25)){var r=Tr();return N(Pe(V.createSpreadAssignment(r),e),t)}var n=Gn(),i=Qn();if(Ue(134))return Kn(e,t,n,i,167);if(Ue(146))return Kn(e,t,n,i,168);var a,o,s=Te(41),c=be(),u=Je(),l=Te(57),r=Te(53);return s||20===U||29===U?zn(e,t,n,i,s,u,l,r):(c&&58!==U?(a=(o=Te(62))?H(Tr):void 0,(a=V.createShorthandPropertyAssignment(u,a)).equalsToken=o):(xe(58),o=H(Tr),a=V.createPropertyAssignment(u,o)),a.decorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=r,N(Pe(a,e),t))}function sn(){var e=ae(),t=j.getTokenPos();xe(18);var r,n=j.hasPrecedingLineBreak(),i=ut(12,on,!0);return xe(19)||(r=xi.lastOrUndefined(z))&&r.code===xi.Diagnostics._0_expected.code&&xi.addRelatedInfo(r,xi.createDetachedDiagnostic(J,t,1,xi.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here)),Pe(V.createObjectLiteralExpression(i,n),e)}function cn(){var e=Z();e&&R(!1);var t=ae(),r=oe(),n=Qn();xe(97);var i=Te(41),a=i?1:0,o=xi.some(n,xi.isAsyncModifier)?2:0,s=a&&o?W(40960,un):a?W(8192,un):o?G(un):un(),c=Nt(),u=Mt(a|o),l=It(58,!1),o=_n(a|o);return e&&R(!0),N(Pe(V.createFunctionExpression(n,i,s,c,u,l,o),t),r)}function un(){return ve()?Me():void 0}function ln(e,t){var r=ae(),n=j.getTokenPos();if(xe(18,t)||e){var t=j.hasPrecedingLineBreak(),i=it(1,Cn);return xe(19)||(e=xi.lastOrUndefined(z))&&e.code===xi.Diagnostics._0_expected.code&&xi.addRelatedInfo(e,xi.createDetachedDiagnostic(J,n,1,xi.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here)),Pe(V.createBlock(i,t),r)}i=lt();return Pe(V.createBlock(i,void 0),r)}function _n(e,t){var r=Q();L(!!(1&e));var n=$();B(!!(2&e));var i=S;S=!1;var a=Z();a&&R(!1);t=ln(!!(16&e),t);return a&&R(!0),S=i,L(r),B(n),t}function dn(){var e=ae();xe(96);var t,r,n=Te(130);return xe(20),26!==U&&(t=112===U||118===U||84===U?Ln(!0):W(4096,Dr)),Pe((n?xe:Se)(156)?(r=H(Tr),xe(21),V.createForOfStatement(n,t,r,Cn())):Se(100)?(r=H(Dr),xe(21),V.createForInStatement(t,r,Cn())):(xe(26),n=26!==U&&21!==U?H(Dr):void 0,xe(26),r=21!==U?H(Dr):void 0,xe(21),V.createForStatement(t,n,r,Cn())),e)}function pn(e){var t=ae();xe(241===e?80:85);var r=Ne()?void 0:Le();return Ae(),Pe(241===e?V.createBreakStatement(r):V.createContinueStatement(r),t)}function fn(){return(81===U?function(){var e=ae();xe(81);var t=H(Dr);xe(58);var r=it(3,Cn);return Pe(V.createCaseClause(t,r),e)}:function(){var e=ae();xe(87),xe(58);var t=it(3,Cn);return Pe(V.createDefaultClause(t),e)})()}function gn(){var e=ae();xe(106),xe(20);var t=H(Dr);xe(21);var r=function(){var e=ae();xe(18);var t=it(2,fn);return xe(19),Pe(V.createCaseBlock(t),e)}();return Pe(V.createSwitchStatement(t,r),e)}function mn(){var e=ae();xe(110);var t,r=ln(!1),n=82===U?function(){var e,t=ae();xe(82),Se(20)?(e=Mn(),xe(21)):e=void 0;var r=ln(!1);return Pe(V.createCatchClause(e,r),t)}():void 0;return n&&95!==U||(xe(95),t=ln(!1)),Pe(V.createTryStatement(r,n,t),e)}function yn(){return ue(),xi.tokenIsIdentifierOrKeyword(U)&&!j.hasPrecedingLineBreak()}function hn(){return ue(),83===U&&!j.hasPrecedingLineBreak()}function vn(){return ue(),97===U&&!j.hasPrecedingLineBreak()}function bn(){return ue(),(xi.tokenIsIdentifierOrKeyword(U)||8===U||9===U||10===U)&&!j.hasPrecedingLineBreak()}function xn(){for(;;)switch(U){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 149:return ue(),!j.hasPrecedingLineBreak()&&be();case 139:case 140:return ue(),!j.hasPrecedingLineBreak()&&(be()||10===U);case 125:case 129:case 133:case 120:case 121:case 122:case 142:if(ue(),j.hasPrecedingLineBreak())return!1;continue;case 154:return ue(),18===U||78===U||92===U;case 99:return ue(),10===U||41===U||18===U||xi.tokenIsIdentifierOrKeyword(U);case 92:var e=ue();if(149===e&&(e=ye(ue)),62===e||41===e||18===e||87===e||126===e)return!0;continue;case 123:ue();continue;default:return!1}}function Dn(){return ye(xn)}function Sn(){switch(U){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return Dn()||ye(qt);case 84:case 92:return Dn();case 129:case 133:case 117:case 139:case 140:case 149:case 154:return!0;case 122:case 120:case 121:case 123:case 142:return Dn()||!ye(yn);default:return xr()}}function Tn(){return ue(),be()||18===U||22===U}function Cn(){switch(U){case 26:return e=ae(),xe(26),Pe(V.createEmptyStatement(),e);case 18:return ln(!1);case 112:return Bn(ae(),oe(),void 0,void 0);case 118:if(ye(Tn))return Bn(ae(),oe(),void 0,void 0);break;case 97:return jn(ae(),oe(),void 0,void 0);case 83:return $n(ae(),oe(),void 0,void 0);case 98:return function(){var e=ae();xe(98),xe(20);var t=H(Dr);xe(21);var r=Cn(),n=Se(90)?Cn():void 0;return Pe(V.createIfStatement(t,r,n),e)}();case 89:return function(){var e=ae();xe(89);var t=Cn();xe(114),xe(20);var r=H(Dr);return xe(21),Se(26),Pe(V.createDoStatement(t,r),e)}();case 114:return function(){var e=ae();xe(114),xe(20);var t=H(Dr);xe(21);var r=Cn();return Pe(V.createWhileStatement(t,r),e)}();case 96:return dn();case 85:return pn(240);case 80:return pn(241);case 104:return function(){var e=ae();xe(104);var t=Ne()?void 0:H(Dr);return Ae(),Pe(V.createReturnStatement(t),e)}();case 115:return function(){var e=ae();xe(115),xe(20);var t=H(Dr);xe(21);var r=W(16777216,Cn);return Pe(V.createWithStatement(t,r),e)}();case 106:return gn();case 108:return function(){var e=ae();xe(108);var t=j.hasPrecedingLineBreak()?void 0:H(Dr);return void 0===t&&(b++,t=Pe(V.createIdentifier(""),ae())),Ae(),Pe(V.createThrowStatement(t),e)}();case 110:case 82:case 95:return mn();case 86:return e=ae(),xe(86),Ae(),Pe(V.createDebuggerStatement(),e);case 59:return kn();case 129:case 117:case 149:case 139:case 140:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 142:case 154:if(Dn())return kn()}var e,t,r,n,i,a;return r=ae(),n=oe(),i=20===U,a=H(Dr),xi.isIdentifier(a)&&Se(58)?t=V.createLabeledStatement(a,Cn()):(Ae(),t=V.createExpressionStatement(a),i&&(n=!1)),N(Pe(t,r),n)}function En(e){return 133===e.kind}function kn(){var e=xi.some(ye(function(){return Gn(),Qn()}),En);if(e){var t=W(8388608,function(){var e=ot(x);if(e)return st(e)});if(t)return t}var r=ae(),n=oe(),i=Gn(),a=Qn();if(e){for(var o=0,s=a;o<s.length;o++)s[o].flags|=8388608;return W(8388608,function(){return Nn(r,n,i,a)})}return Nn(r,n,i,a)}function Nn(e,t,r,n){switch(U){case 112:case 118:case 84:return Bn(e,t,r,n);case 97:return jn(e,t,r,n);case 83:return $n(e,t,r,n);case 117:return function(e,t,r,n){xe(117);var i=Le(),a=Nt(),o=ti(),s=Wt();return N(Pe(V.createInterfaceDeclaration(r,n,i,a,o,s),e),t)}(e,t,r,n);case 149:return function(e,t,r,n){xe(149);var i=Le(),a=Nt();xe(62);var o=136===U&&he(er)||yr();return Ae(),N(Pe(V.createTypeAliasDeclaration(r,n,i,a,o),e),t)}(e,t,r,n);case 91:return function(e,t,r,n){xe(91);var i,a=Le();xe(18)?(i=q(40960,function(){return ut(6,oi)}),xe(19)):i=lt();return N(Pe(V.createEnumDeclaration(r,n,a,i),e),t)}(e,t,r,n);case 154:case 139:case 140:return function(e,t,r,n){var i=0;{if(154===U)return ci(e,t,r,n);if(Se(140))i|=16;else if(xe(139),10===U)return ci(e,t,r,n)}return function e(t,r,n,i,a){var o=16&a;var s=Le();var o=Se(24)?e(ae(),!1,void 0,void 0,4|o):si();var a=V.createModuleDeclaration(n,i,s,o,a);return N(Pe(a,t),r)}(e,t,r,n,i)}(e,t,r,n);case 99:return function(e,t,r,n){xe(99);var i,a=j.getStartPos();be()&&(i=Le());var o,s=!1;153===U||"type"!==(null==i?void 0:i.escapedText)||!be()&&41!==U&&18!==U||(s=!0,i=be()?Le():void 0);if(i&&27!==U&&153!==U)return function(e,t,r,n,i,a){xe(62);var o=143===U&&ye(ui)?function(){var e=ae();xe(143),xe(20);var t=_i();return xe(21),Pe(V.createExternalModuleReference(t),e)}():dt(!1);Ae();t=N(Pe(V.createImportEqualsDeclaration(r,n,i,o),e),t);a&&ne(t,xi.Diagnostics.Only_ECMAScript_imports_may_use_import_type);return t}(e,t,r,n,i,s);!i&&41!==U&&18!==U||(o=function(e,t,r){var n;e&&!Se(27)||(n=41===U?function(){var e=ae();xe(41),xe(126);var t=Le();return Pe(V.createNamespaceImport(t),e)}():di(264));return Pe(V.createImportClause(r,e,n),t)}(i,a,s),xe(153));s=_i();return Ae(),N(Pe(V.createImportDeclaration(r,n,o,s),e),t)}(e,t,r,n);case 92:switch(ue(),U){case 87:case 62:return function(e,t,r,n){var i,a=$();B(!0),Se(62)?i=!0:xe(87);var o=Tr();return Ae(),B(a),N(Pe(V.createExportAssignment(r,n,i,o),e),t)}(e,t,r,n);case 126:return function(e,t,r,n){xe(126),xe(140);var i=Le();Ae();i=V.createNamespaceExportDeclaration(i);return i.decorators=r,i.modifiers=n,N(Pe(i,e),t)}(e,t,r,n);default:return function(e,t,r,n){var i,a,o=$();B(!0);var s=Se(149),c=ae();Se(41)?(Se(126)&&(i=function(e){return Pe(V.createNamespaceExport(Re()),e)}(c)),xe(153),a=_i()):(i=di(268),153!==U&&(10!==U||j.hasPrecedingLineBreak())||(xe(153),a=_i()));return Ae(),B(o),N(Pe(V.createExportDeclaration(r,n,s,i,a),e),t)}(e,t,r,n)}default:if(r||n){var i=we(271,!0,xi.Diagnostics.Declaration_expected);return xi.setTextRangePos(i,e),i.decorators=r,i.modifiers=n,i}return}}function An(e,t){if(18===U||!Ne())return _n(e,t);Ae()}function Fn(){var e=ae();if(27===U)return Pe(V.createOmittedExpression(),e);var t=Te(25),r=In(),n=Sr();return Pe(V.createBindingElement(t,void 0,r,n),e)}function Pn(){var e,t=ae(),r=Te(25),n=ve(),i=Je();n&&58!==U?(e=i,i=void 0):(xe(58),e=In());n=Sr();return Pe(V.createBindingElement(r,i,e,n),t)}function wn(){return 18===U||22===U||79===U||ve()}function In(e){return 22===U?function(){var e=ae();xe(22);var t=ut(10,Fn);return xe(23),Pe(V.createArrayBindingPattern(t),e)}():18===U?function(){var e=ae();xe(18);var t=ut(9,Pn);return xe(19),Pe(V.createObjectBindingPattern(t),e)}():Me(e)}function On(){return Mn(!0)}function Mn(e){var t,r=ae(),n=In(xi.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);e&&78===n.kind&&53===U&&!j.hasPrecedingLineBreak()&&(t=ke());var i=vr(),e=wr(U)?void 0:Sr();return Pe(V.createVariableDeclaration(n,t,i,e),r)}function Ln(e){var t,r,n=ae(),i=0;switch(U){case 112:break;case 118:i|=1;break;case 84:i|=2;break;default:xi.Debug.fail()}return ue(),156===U&&ye(Rn)?t=lt():(r=Y(),M(e),t=ut(8,e?Mn:On),M(r)),Pe(V.createVariableDeclarationList(t,i),n)}function Rn(){return Ye()&&21===ue()}function Bn(e,t,r,n){var i=Ln(!1);Ae();i=V.createVariableStatement(n,i);return i.decorators=r,N(Pe(i,e),t)}function jn(e,t,r,n){var i=$(),a=xi.modifiersToFlags(n);xe(97);var o=Te(41),s=(512&a?un:Me)(),c=o?1:0,u=256&a?2:0,l=Nt();1&a&&B(!0);var _=Mt(c|u),a=It(58,!1),u=An(c|u,xi.Diagnostics.or_expected);return B(i),N(Pe(V.createFunctionDeclaration(r,n,o,s,l,_,a,u),e),t)}function Jn(i,a,o,s){return he(function(){if(132===U?xe(132):10===U&&20===ye(ue)&&he(function(){var e=ht();return"constructor"===e.text?e:void 0})){var e=Nt(),t=Mt(0),r=It(58,!1),n=An(0,xi.Diagnostics.or_expected),n=V.createConstructorDeclaration(o,s,t,n);return n.typeParameters=e,n.type=r,N(Pe(n,i),a)}})}function zn(e,t,r,n,i,a,o,s,c){var u=i?1:0,l=xi.some(n,xi.isAsyncModifier)?2:0,_=Nt(),d=Mt(u|l),p=It(58,!1),c=An(u|l,c),c=V.createMethodDeclaration(r,n,i,a,o,_,d,p,c);return c.exclamationToken=s,N(Pe(c,e),t)}function Un(e,t,r,n,i,a){var o=a||j.hasPrecedingLineBreak()?void 0:Te(53),s=vr(),c=q(45056,Sr);return Ae(),N(Pe(V.createPropertyDeclaration(r,n,i,a||o,s,c),e),t)}function Vn(e,t,r,n){var i=Te(41),a=Je(),o=Te(57);return i||20===U||29===U?zn(e,t,r,n,i,a,o,void 0,xi.Diagnostics.or_expected):Un(e,t,r,n,a,o)}function Kn(e,t,r,n,i){var a=Je(),o=Nt(),s=Mt(0),c=It(58,!1),u=An(0),u=167===i?V.createGetAccessorDeclaration(r,n,a,s,c,u):V.createSetAccessorDeclaration(r,n,a,s,u);return u.typeParameters=o,c&&168===u.kind&&(u.type=c),N(Pe(u,e),t)}function qn(){var e;if(59===U)return!0;for(;xi.isModifierKind(U);){if(e=U,xi.isClassMemberModifier(e))return!0;ue()}if(41===U)return!0;if(Be()&&(e=U,ue()),22===U)return!0;if(void 0!==e){if(!xi.isKeyword(e)||146===e||134===e)return!0;switch(U){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Ne()}}return!1}function Wn(){if($()&&130===U){var e=ae(),t=Le(xi.Diagnostics.Expression_expected);return ue(),Zr(e,Xr(e,t,!0))}return jr()}function Hn(){var e=ae();if(Se(59)){var t=W(16384,Wn);return Pe(V.createDecorator(t),e)}}function Gn(){for(var e,t,r=ae();t=Hn();)e=xi.append(e,t);return e&&Fe(e,r)}function Xn(e){var t=ae(),r=U;if(84===U&&e){if(!he(Ve))return}else if(!xi.isModifierKind(U)||!he(Ke))return;return Pe(V.createToken(r),t)}function Qn(e){for(var t,r,n=ae();r=Xn(e);)t=xi.append(t,r);return t&&Fe(t,n)}function Yn(){var e;return 129===U&&(e=ae(),ue(),e=Fe([Pe(V.createToken(129),e)],e)),e}function Zn(){var e=ae();if(26===U)return ue(),Pe(V.createSemicolonClassElement(),e);var t=oe(),r=Gn(),n=Qn(!0);if(Ue(134))return Kn(e,t,r,n,167);if(Ue(146))return Kn(e,t,r,n,168);if(132===U||10===U){var i=Jn(e,t,r,n);if(i)return i}if(Bt())return Jt(e,t,r,n);if(xi.tokenIsIdentifierOrKeyword(U)||10===U||8===U||41===U||22===U){if(xi.some(n,En)){for(var a=0,o=n;a<o.length;a++)o[a].flags|=8388608;return W(8388608,function(){return Vn(e,t,r,n)})}return Vn(e,t,r,n)}if(r||n){i=we(78,!0,xi.Diagnostics.Declaration_expected);return Un(e,t,r,n,i,void 0)}return xi.Debug.fail("Should not have attempted to parse class member declaration.")}function $n(e,t,r,n){return ei(e,t,r,n,252)}function ei(e,t,r,n,i){var a=$();xe(83);var o=!ve()||116===U&&ye(Ze)?void 0:Oe(ve()),s=Nt();xi.some(n,xi.isExportModifier)&&B(!0);var c,u=ti();return xe(18)?(c=it(5,Zn),xe(19)):c=lt(),B(a),N(Pe(252===i?V.createClassDeclaration(r,n,o,s,u,c):V.createClassExpression(r,n,o,s,u,c),e),t)}function ti(){if(ai())return it(22,ri)}function ri(){var e=ae(),t=U;xi.Debug.assert(93===t||116===t),ue();var r=ut(7,ni);return Pe(V.createHeritageClause(t,r),e)}function ni(){var e=ae(),t=jr(),r=ii();return Pe(V.createExpressionWithTypeArguments(t,r),e)}function ii(){return 29===U?_t(20,yr,29,31):void 0}function ai(){return 93===U||116===U}function oi(){var e=ae(),t=oe(),r=Je(),n=H(Sr);return N(Pe(V.createEnumMember(r,n),e),t)}function si(){var e,t=ae();return xe(18)?(e=it(1,Cn),xe(19)):e=lt(),Pe(V.createModuleBlock(e),t)}function ci(e,t,r,n){var i,a,o=0;return 154===U?(i=Le(),o|=1024):(i=ht()).text=Ie(i.text),18===U?a=si():Ae(),N(Pe(V.createModuleDeclaration(r,n,i,a,o),e),t)}function ui(){return 20===ue()}function li(){return 43===ue()}function _i(){if(10!==U)return Dr();var e=ht();return e.text=Ie(e.text),e}function di(e){var t=ae();return Pe(264===e?V.createNamedImports(_t(23,fi,18,19)):V.createNamedExports(_t(23,pi,18,19)),t)}function pi(){return gi(270)}function fi(){return gi(265)}function gi(e){var t,r=ae(),n=xi.isKeyword(U)&&!be(),i=j.getTokenPos(),a=j.getTextPos(),o=Re(),o=126===U?(t=o,xe(126),n=xi.isKeyword(U)&&!be(),i=j.getTokenPos(),a=j.getTextPos(),Re()):o;return 265===e&&n&&re(i,a,xi.Diagnostics.Identifier_expected),Pe(265===e?V.createImportSpecifier(t,o):V.createExportSpecifier(t,o),r)}function mi(e){return t=e,r=92,xi.some(t.modifiers,function(e){return e.kind===r})||xi.isImportEqualsDeclaration(e)&&xi.isExternalModuleReference(e.moduleReference)||xi.isImportDeclaration(e)||xi.isExportAssignment(e)||xi.isExportDeclaration(e)?e:void 0;var t,r}function yi(e){return t=e,xi.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText?e:Ti(e,yi);var t}function hi(e){var t=ae(),r=(e?Se:xe)(18),n=W(4194304,Et);e&&!r||De(19);n=V.createJSDocTypeExpression(n);return w(n),Pe(n,t)}function vi(){var e=ae(),t=Se(18),r=dt(!1);t&&De(19);r=V.createJSDocNameReference(r);return w(r),Pe(r,e)}function bi(c,e){void 0===c&&(c=0);var u=y,l=void 0===e?u.length:c+e;if(e=l-c,xi.Debug.assert(0<=c),xi.Debug.assert(c<=l),xi.Debug.assert(l<=u.length),Si(u,c)){var S,_,d,p=[];return j.scanRange(c+3,e-5,function(){var t,e,r,n,i=1,a=c-(u.lastIndexOf("\n",c)+1)+4;function o(e){t=t||a,p.push(e),a+=e.length}for(le();R(5););R(4)&&(a=i=0);e:for(;;){switch(U){case 59:0===i||1===i?(g(p),(e=E(a))&&(S?S.push(e):(S=[e],_=e.pos),d=e.end),t=void(i=0)):o(j.getTokenText());break;case 4:p.push(j.getTokenText()),a=i=0;break;case 41:var s=j.getTokenText();1===i||2===i?(i=2,o(s)):(i=1,a+=s.length);break;case 5:s=j.getTokenText();2===i?p.push(s):void 0!==t&&a+s.length>t&&p.push(s.slice(t-a)),a+=s.length;break;case 1:break e;default:i=2,o(j.getTokenText())}le()}return f(p),g(p),r=p.length?p.join(""):void 0,n=S&&Fe(S,_,d),Pe(V.createJSDocComment(r,n),c,l)})}function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function g(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function n(){for(;;){if(le(),1===U)return!0;if(5!==U&&4!==U)return!1}}function T(){if(5!==U&&4!==U||!ye(n))for(;5===U||4===U;)le()}function C(){if((5===U||4===U)&&ye(n))return"";for(var e=j.hasPrecedingLineBreak(),t=!1,r="";e&&41===U||5===U||4===U;)r+=j.getTokenText(),4===U?(t=e=!0,r=""):41===U&&(e=!1),le();return t?r:""}function E(e){xi.Debug.assert(59===U);var t=j.getTokenPos();le();var r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,h,v,b,x=B(void 0),D=C();switch(x.escapedText){case"author":r=function(e,t,r,n){var i=he(function(){var e=[],t=!1,r=!1,n=j.getToken();e:for(;;){switch(n){case 78:case 5:case 24:case 59:e.push(j.getTokenText());break;case 29:if(t||r)return;t=!0,e.push(j.getTokenText());break;case 31:if(!t||r)return;r=!0,e.push(j.getTokenText()),j.setTextPos(j.getTokenPos()+1);break e;case 4:case 1:break e}n=le()}if(t&&r)return 0===e.length?void 0:e.join("")});if(!i){var a=ae();return Pe(V.createJSDocAuthorTag(t,k(e,a,r,n)),e,a)}!ye(function(){return 4!==ue()})||(r=N(r))&&(i+=r);return Pe(V.createJSDocAuthorTag(t,i),e)}(t,x,e,D);break;case"implements":g=t,m=x,y=e,h=D,v=I(),b=ae(),r=Pe(V.createJSDocImplementsTag(m,v,k(g,b,y,h)),g,b);break;case"augments":case"extends":u=t,l=x,_=e,d=D,p=I(),f=ae(),r=Pe(V.createJSDocAugmentsTag(l,p,k(u,f,_,d)),u,f);break;case"class":case"constructor":r=O(t,V.createJSDocClassTag,x,e,D);break;case"public":r=O(t,V.createJSDocPublicTag,x,e,D);break;case"private":r=O(t,V.createJSDocPrivateTag,x,e,D);break;case"protected":r=O(t,V.createJSDocProtectedTag,x,e,D);break;case"readonly":r=O(t,V.createJSDocReadonlyTag,x,e,D);break;case"deprecated":K=!0,r=O(t,V.createJSDocDeprecatedTag,x,e,D);break;case"this":r=function(e,t,r,n){var i=hi(!0);T();var a=ae();return Pe(V.createJSDocThisTag(t,i,k(e,a,r,n)),e,a)}(t,x,e,D);break;case"enum":r=function(e,t,r,n){var i=hi(!0);T();var a=ae();return Pe(V.createJSDocEnumTag(t,i,k(e,a,r,n)),e,a)}(t,x,e,D);break;case"arg":case"argument":case"param":return P(t,x,2,e);case"return":case"returns":r=function(e,t,r,n){xi.some(S,xi.isJSDocReturnTag)&&re(t.pos,j.getTokenPos(),xi.Diagnostics._0_tag_already_specified,t.escapedText);var i=A(),a=ae();return Pe(V.createJSDocReturnTag(t,i,k(e,a,r,n)),e,a)}(t,x,e,D);break;case"template":l=t,p=x,_=e,d=D,u=18===U?hi():void 0,f=function(){var e=ae(),t=[];for(;T(),t.push(function(){var e=ae(),t=B(xi.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);return Pe(V.createTypeParameterDeclaration(t,void 0,void 0),e)}()),C(),R(27););return Fe(t,e)}(),c=ae(),r=Pe(V.createJSDocTemplateTag(p,u,f,k(l,c,_,d)),l,c);break;case"type":r=w(t,x,e,D);break;case"typedef":r=function(e,t,r,n){var i=A();C();var a=M();T();var o=N(r);if(!i||F(i.type)){for(var s,c,u=void 0,l=void 0,_=void 0,d=!1;u=he(function(){return L(1,r)});)if(d=!0,329===u.kind){if(l){ee(xi.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var p=xi.lastOrUndefined(z);p&&xi.addRelatedInfo(p,xi.createDetachedDiagnostic(J,0,0,xi.Diagnostics.The_tag_was_first_specified_here));break}l=u}else _=xi.append(_,u);d&&(s=i&&178===i.type.kind,c=V.createJSDocTypeLiteral(_,s),i=l&&l.typeExpression&&!F(l.typeExpression.type)?l.typeExpression:Pe(c,e),s=i.end)}s=s||void 0!==o?ae():(null!==(c=null!=a?a:i)&&void 0!==c?c:t).end,o=o||k(e,s,r,n);return Pe(V.createJSDocTypedefTag(t,i,a,o),e,s)}(t,x,e,D);break;case"callback":r=function(e,t,r,n){var i=M();T();var a=N(r),o=function(e){var t,r,n=ae();for(;t=he(function(){return L(4,e)});)r=xi.append(r,t);return Fe(r||[],n)}(r),s=he(function(){if(R(59)){var e=E(r);if(e&&327===e.kind)return e}}),o=Pe(V.createJSDocSignature(void 0,o,s),e),s=ae();a=a||k(e,s,r,n);return Pe(V.createJSDocCallbackTag(t,o,i,a),e,s)}(t,x,e,D);break;case"see":n=t,i=x,c=e,a=D,o=vi(),s=ae(),a=void 0!==c&&void 0!==a?k(n,s,c,a):void 0,r=Pe(V.createJSDocSeeTag(i,o,a),n,s);break;default:i=t,o=x,a=e,n=D,s=ae(),r=Pe(V.createJSDocUnknownTag(o,k(i,s,a,n)),i,s)}return r}function k(e,t,r,n){return n||(r+=t-e),N(r,n.slice(r))}function N(t,e){var r,n=[],i=0;function a(e){r=r||t,n.push(e),t+=e.length}void 0!==e&&(""!==e&&a(e),i=1);var o,s=U;e:for(;;){switch(s){case 4:i=0,n.push(j.getTokenText()),t=0;break;case 59:if(3===i){n.push(j.getTokenText());break}j.setTextPos(j.getTextPos()-1);case 1:break e;case 5:2===i||3===i?a(j.getTokenText()):(o=j.getTokenText(),void 0!==r&&t+o.length>r&&n.push(o.slice(r-t)),t+=o.length);break;case 18:i=2,ye(function(){return 59===le()&&xi.tokenIsIdentifierOrKeyword(le())&&"link"===j.getTokenText()})&&(a(j.getTokenText()),le(),a(j.getTokenText()),le()),a(j.getTokenText());break;case 61:i=3===i?2:3,a(j.getTokenText());break;case 41:if(0===i){t+=i=1;break}default:3!==i&&(i=2),a(j.getTokenText())}s=le()}return f(n),g(n),0===n.length?void 0:n.join("")}function A(){return C(),18===U?hi():void 0}function m(){var e=R(22);e&&T();var t=R(61),r=function(){var e=B();Se(22)&&xe(23);for(;Se(24);){var t=B();Se(22)&&xe(23),e=function(e,t){return Pe(V.createQualifiedName(e,t),e.pos)}(e,t)}return e}();return t&&(Ce(t=61)||we(t,!1,xi.Diagnostics._0_expected,xi.tokenToString(t))),e&&(T(),Te(62)&&Dr(),xe(23)),{name:r,isBracketed:e}}function F(e){switch(e.kind){case 145:return!0;case 178:return F(e.elementType);default:return xi.isTypeReferenceNode(e)&&xi.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function P(e,t,r,n){var i=A(),a=!i;C();var o=m(),s=o.name,c=o.isBracketed;T(),a&&(i=A());o=N(n+j.getStartPos()-e),n=4!==r&&function(e,t,r,n){if(e&&F(e.type)){for(var i=ae(),a=void 0,o=void 0;a=he(function(){return L(r,n,t)});)326!==a.kind&&333!==a.kind||(o=xi.append(o,a));if(o){e=Pe(V.createJSDocTypeLiteral(o,178===e.type.kind),i);return Pe(V.createJSDocTypeExpression(e),i)}}}(i,s,r,n);return n&&(i=n,a=!0),Pe(1===r?V.createJSDocPropertyTag(t,s,c,i,a,o):V.createJSDocParameterTag(t,s,c,i,a,o),e)}function w(e,t,r,n){xi.some(S,xi.isJSDocTypeTag)&&re(t.pos,j.getTokenPos(),xi.Diagnostics._0_tag_already_specified,t.escapedText);var i=hi(!0),a=ae(),n=void 0!==r&&void 0!==n?k(e,a,r,n):void 0;return Pe(V.createJSDocTypeTag(t,i,n),e,a)}function I(){var e=Se(18),t=ae(),r=function(){var e=ae(),t=B();for(;Se(24);){var r=B();t=Pe(V.createPropertyAccessExpression(t,r),e)}return t}(),n=ii(),t=Pe(V.createExpressionWithTypeArguments(r,n),t);return e&&xe(19),t}function O(e,t,r,n,i){var a=ae();return Pe(t(r,k(e,a,n,i)),e,a)}function M(e){var t=j.getTokenPos();if(xi.tokenIsIdentifierOrKeyword(U)){var r=B();if(Se(24)){var n=M(!0);return Pe(V.createModuleDeclaration(void 0,void 0,r,n,e?4:void 0),t)}return e&&(r.isInJSDocNamespace=!0),r}}function L(e,t,r){for(var n=!0,i=!1;;)switch(le()){case 59:if(n){var a=function(e,t){xi.Debug.assert(59===U);var r=j.getStartPos();le();var n,i=B();switch(T(),i.escapedText){case"type":return 1===e&&w(r,i);case"prop":case"property":n=1;break;case"arg":case"argument":case"param":n=6;break;default:return!1}return!!(e&n)&&P(r,i,e,t)}(e,t);return!a||326!==a.kind&&333!==a.kind||4===e||!r||!xi.isIdentifier(a.name)&&function(e,t){for(;!xi.isIdentifier(e)||!xi.isIdentifier(t);){if(xi.isIdentifier(e)||xi.isIdentifier(t)||e.right.escapedText!==t.right.escapedText)return;e=e.left,t=t.left}return e.escapedText===t.escapedText}(r,a.name.left)?a:!1}i=!1;break;case 4:i=!(n=!0);break;case 41:i&&(n=!1),i=!0;break;case 78:n=!1;break;case 1:return!1}}function R(e){return U===e&&(le(),!0)}function B(e){if(!xi.tokenIsIdentifierOrKeyword(U))return we(78,!e,e||xi.Diagnostics.Identifier_expected);b++;var t=j.getTokenPos(),r=j.getTextPos(),n=U,e=Ie(j.getTokenValue()),r=Pe(V.createIdentifier(e,void 0,n),t,r);return le(),r}}e.fixupParentReferences=w,(i={})[i.SourceElements=0]="SourceElements",i[i.BlockStatements=1]="BlockStatements",i[i.SwitchClauses=2]="SwitchClauses",i[i.SwitchClauseStatements=3]="SwitchClauseStatements",i[i.TypeMembers=4]="TypeMembers",i[i.ClassMembers=5]="ClassMembers",i[i.EnumMembers=6]="EnumMembers",i[i.HeritageClauseElement=7]="HeritageClauseElement",i[i.VariableDeclarations=8]="VariableDeclarations",i[i.ObjectBindingElements=9]="ObjectBindingElements",i[i.ArrayBindingElements=10]="ArrayBindingElements",i[i.ArgumentExpressions=11]="ArgumentExpressions",i[i.ObjectLiteralMembers=12]="ObjectLiteralMembers",i[i.JsxAttributes=13]="JsxAttributes",i[i.JsxChildren=14]="JsxChildren",i[i.ArrayLiteralMembers=15]="ArrayLiteralMembers",i[i.Parameters=16]="Parameters",i[i.JSDocParameters=17]="JSDocParameters",i[i.RestProperties=18]="RestProperties",i[i.TypeParameters=19]="TypeParameters",i[i.TypeArguments=20]="TypeArguments",i[i.TupleElementTypes=21]="TupleElementTypes",i[i.HeritageClauses=22]="HeritageClauses",i[i.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",i[i.Count=24]="Count",(i={})[i.False=0]="False",i[i.True=1]="True",i[i.Unknown=2]="Unknown",(e=A=e.JSDocParser||(e.JSDocParser={})).parseJSDocTypeExpressionForTests=function(e,t,r){return E("file.js",e,99,void 0,1),j.setText(e,t,r),U=j.scan(),e=hi(),t=I("file.js",99,1,!1,[],V.createToken(1),0),r=xi.attachFileToDiagnostics(z,t),f&&(t.jsDocDiagnostics=xi.attachFileToDiagnostics(f,t)),k(),e?{jsDocTypeExpression:e,diagnostics:r}:void 0},e.parseJSDocTypeExpression=hi,e.parseJSDocNameReference=vi,e.parseIsolatedJSDocComment=function(e,t,r){E("",e,99,void 0,1);var n=W(4194304,function(){return bi(t,r)}),e={languageVariant:0,text:e},e=xi.attachFileToDiagnostics(z,e);return k(),n?{jsDoc:n,diagnostics:e}:void 0},e.parseJSDocComment=function(e,t,r){var n=U,i=z.length,a=T,o=W(4194304,function(){return bi(t,r)});return xi.setParent(o,e),131072&D&&(f=f||[]).push.apply(f,z),U=n,z.length=i,T=a,o},(e={})[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks",(e={})[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(y=y||{}),(e=Di=Di||{}).updateSourceFile=function(e,t,r,n){if(x(e,t,r,n=n||xi.Debug.shouldAssert(2)),xi.textChangeRangeIsUnchanged(r))return e;if(0===e.statements.length)return y.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind);var i=e;xi.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0,y.fixupParentReferences(i);var a=e.text,o=D(e),s=function(e,t){for(var r=t.span.start,n=0;0<r&&n<=1;n++){var i=function(e,r){var n,i=e;{var t;Ti(e,function e(t){if(xi.nodeIsMissing(t))return;{if(!(t.pos<=r))return xi.Debug.assert(t.pos>r),!0;if(t.pos>=i.pos&&(i=t),r<t.end)return Ti(t,e),!0;xi.Debug.assert(t.end<=r),n=t}}),n&&(t=function(e){for(;;){var t=xi.getLastChild(e);if(!t)return e;e=t}}(n)).pos>i.pos&&(i=t)}return i}(e,r);xi.Debug.assert(i.pos<=r);i=i.pos;r=Math.max(0,i-1)}var a=xi.createTextSpanFromBounds(r,xi.textSpanEnd(t.span)),t=t.newLength+(t.span.start-r);return xi.createTextChangeRange(a,t)}(e,r);x(e,t,s,n),xi.Debug.assert(s.span.start<=r.span.start),xi.Debug.assert(xi.textSpanEnd(s.span)===xi.textSpanEnd(r.span)),xi.Debug.assert(xi.textSpanEnd(xi.textChangeRangeNewSpan(s))===xi.textSpanEnd(xi.textChangeRangeNewSpan(r)));var c,u,l,_,d,p,f,r=xi.textChangeRangeNewSpan(s).length-s.span.length;function g(e){if(xi.Debug.assert(e.pos<=e.end),e.pos>u)h(e,!1,_,d,p,f);else{var t=e.end;if(c<=t){if(e.intersectsChange=!0,e._children=void 0,v(e,c,u,l,_),Ti(e,g,m),xi.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++)g(n[r]);b(e,f)}else xi.Debug.assert(t<c)}}function m(e){if(xi.Debug.assert(e.pos<=e.end),e.pos>u)h(e,!0,_,d,p,f);else{var t=e.end;if(c<=t){e.intersectsChange=!0,e._children=void 0,v(e,c,u,l,_);for(var r=0,n=e;r<n.length;r++)g(n[r])}else xi.Debug.assert(t<c)}}return i=i,c=s.span.start,u=xi.textSpanEnd(s.span),l=xi.textSpanEnd(xi.textChangeRangeNewSpan(s)),_=r,d=a,p=t,f=n,g(i),(o=y.parseSourceFile(e.fileName,t,e.languageVersion,o,!0,e.scriptKind)).commentDirectives=function(e,t,r,n,i,a,o,s){if(!e)return t;for(var c,u=!1,l=0,_=e;l<_.length;l++){var d=_[l],p=d.range,f=d.type;p.end<r?c=xi.append(c,d):p.pos>n&&(g(),f={range:{pos:p.pos+i,end:p.end+i},type:f},c=xi.append(c,f),s&&xi.Debug.assert(a.substring(p.pos,p.end)===o.substring(f.range.pos,f.range.end)))}return g(),c;function g(){u||(u=!0,c?t&&c.push.apply(c,t):c=t)}}(e.commentDirectives,o.commentDirectives,s.span.start,xi.textSpanEnd(s.span),r,a,t,n),o},e.createSyntaxCursor=D,(e={})[e.Value=-1]="Value",xi.isDeclarationFileName=Ei,xi.processCommentPragmas=ki,xi.processPragmasIntoFields=Ni;var p=new xi.Map,f=/^\/\/\/\s*<(\S+)\s.*?\/>/im,g=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function m(e,t,r,n){var i,a;n&&(i=n[1].toLowerCase(),(a=xi.commentPragmas[i])&&a.kind&r&&("fail"!==(n=function(e,t){if(!t)return{};if(!e.args)return{};for(var r=t.split(/\s+/),n={},i=0;i<e.args.length;i++){var a=e.args[i];if(!r[i]&&!a.optional)return"fail";if(a.captureSpan)return xi.Debug.fail("Capture spans not yet implemented for non-xml pragmas");n[a.name]=r[i]}return n}(a,n[2]))&&e.push({name:i,args:{arguments:n,range:t}})))}function Ai(e,t){return e.kind===t.kind&&(78===e.kind?e.escapedText===t.escapedText:107===e.kind||e.name.escapedText===t.name.escapedText&&Ai(e.expression,t.expression))}xi.tagNamesAreEquivalent=Ai}(ts=ts||{}),function(T){T.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var e=new T.Map(T.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));T.inverseJsxOptionMap=new T.Map(T.arrayFrom(T.mapIterator(e.entries(),function(e){var t=e[0];return[""+e[1],t]})));var t,r,n=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.esnext.weakref.d.ts"]];function i(e){var t=new T.Map,r=new T.Map;return T.forEach(e,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),{optionsNameMap:t,shortOptionNames:r}}function a(){return t=t||i(T.optionDeclarations)}function o(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function s(e){return c(e,T.createCompilerDiagnostic)}function c(e,t){var r=T.arrayFrom(e.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return t(T.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+e.name,r)}function u(e,t,r){return oe(e,se(t||""),r)}function l(t,e,r){if(void 0===e&&(e=""),e=se(e),!T.startsWith(e,"-")){if(""===e)return[];var n=e.split(",");switch(t.element.type){case"number":return T.map(n,parseInt);case"string":return T.map(n,function(e){return e||""});default:return T.mapDefined(n,function(e){return u(t.element,e,r)})}}}function _(e){return e.name}function m(e,t,r,n){var i=T.getSpellingSuggestion(e,t.optionDeclarations,_);return i?r(t.unknownDidYouMeanDiagnostic,n||e,i.name):r(t.unknownOptionDiagnostic,n||e)}function d(a,e,o){var s,c={},u=[],l=[];return _(e),{options:c,watchOptions:s,fileNames:u,errors:l};function _(e){for(var t=0;t<e.length;){var r,n,i=e[t];t++,64===i.charCodeAt(0)?function(e){var t=b(e,o||function(e){return T.sys.readFile(e)});if(!T.isString(t))return l.push(t);for(var r=[],n=0;;){for(;n<t.length&&t.charCodeAt(n)<=32;)n++;if(n>=t.length)break;var i=n;if(34===t.charCodeAt(i)){for(n++;n<t.length&&34!==t.charCodeAt(n);)n++;n<t.length?(r.push(t.substring(i+1,n)),n++):l.push(T.createCompilerDiagnostic(T.Diagnostics.Unterminated_quoted_string_in_response_file_0,e))}else{for(;32<t.charCodeAt(n);)n++;r.push(t.substring(i,n))}}_(r)}(i.slice(1)):45===i.charCodeAt(0)?(r=i.slice(45===i.charCodeAt(1)?2:1),(n=g(a.getOptionsNameMap,r,!0))?t=p(e,t,a,n,c,l):(n=g(F.getOptionsNameMap,r,!0))?t=p(e,t,F,n,s=s||{},l):l.push(m(r,a,T.createCompilerDiagnostic,i))):u.push(i)}}}function p(e,t,r,n,i,a){if(n.isTSConfigOnly)"null"===(o=e[t])?(i[n.name]=void 0,t++):"boolean"===n.type?"false"===o?(i[n.name]=!1,t++):("true"===o&&t++,a.push(T.createCompilerDiagnostic(T.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,n.name))):(a.push(T.createCompilerDiagnostic(T.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,n.name)),o&&!T.startsWith(o,"-")&&t++);else if(e[t]||"boolean"===n.type||a.push(T.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,n.name,L(n))),"null"!==e[t])switch(n.type){case"number":i[n.name]=parseInt(e[t]),t++;break;case"boolean":var o=e[t];i[n.name]="false"!==o,"false"!==o&&"true"!==o||t++;break;case"string":i[n.name]=e[t]||"",t++;break;case"list":var s=l(n,e[t],a);i[n.name]=s||[],s&&t++;break;default:i[n.name]=u(n,e[t],a),t++}else i[n.name]=void 0,t++;return t}function f(e,t){return g(a,e,t)}function g(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),e=n.optionsNameMap,n=n.shortOptionNames;return!r||void 0!==(n=n.get(t))&&(t=n),e.get(t)}T.libs=n.map(function(e){return e[0]}),T.libMap=new T.Map(n),T.optionsForWatch=[{name:"watchFile",type:new T.Map(T.getEntries({fixedpollinginterval:T.WatchFileKind.FixedPollingInterval,prioritypollinginterval:T.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:T.WatchFileKind.DynamicPriorityPolling,usefsevents:T.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:T.WatchFileKind.UseFsEventsOnParentDirectory})),category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:new T.Map(T.getEntries({usefsevents:T.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:T.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:T.WatchDirectoryKind.DynamicPriorityPolling})),category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:new T.Map(T.getEntries({fixedinterval:T.PollingWatchKind.FixedInterval,priorityinterval:T.PollingWatchKind.PriorityInterval,dynamicpriority:T.PollingWatchKind.DynamicPriority})),category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],T.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:T.Diagnostics.FILE_OR_DIRECTORY,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Generates_a_CPU_profile},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:T.Diagnostics.DIRECTORY,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],T.optionDeclarations=__spreadArrays(T.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,paramType:T.Diagnostics.FILE_OR_DIRECTORY,description:T.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:T.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:T.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:T.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:T.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:new T.Map(T.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:T.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:new T.Map(T.getEntries({none:T.ModuleKind.None,commonjs:T.ModuleKind.CommonJS,amd:T.ModuleKind.AMD,system:T.ModuleKind.System,umd:T.ModuleKind.UMD,es6:T.ModuleKind.ES2015,es2015:T.ModuleKind.ES2015,es2020:T.ModuleKind.ES2020,esnext:T.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:T.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:T.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:T.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:T.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:T.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:T.Diagnostics.LOCATION,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:T.Diagnostics.FILE,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:new T.Map(T.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:T.Diagnostics.Basic_Options,description:T.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Strict_Type_Checking_Options,description:T.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Additional_Checks,description:T.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Additional_Checks,description:T.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Additional_Checks,description:T.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Additional_Checks,description:T.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!1,category:T.Diagnostics.Additional_Checks,description:T.Diagnostics.Include_undefined_in_index_signature_results},{name:"moduleResolution",type:new T.Map(T.getEntries({node:T.ModuleResolutionKind.NodeJs,classic:T.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:T.Diagnostics.STRATEGY,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Module_Resolution_Options,description:T.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:T.Diagnostics.LOCATION,category:T.Diagnostics.Source_Map_Options,description:T.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:T.Diagnostics.LOCATION,category:T.Diagnostics.Source_Map_Options,description:T.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Source_Map_Options,description:T.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Source_Map_Options,description:T.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Experimental_Options,description:T.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:T.Diagnostics.Experimental_Options,description:T.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"jsxFragmentFactory",type:"string",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:T.Diagnostics.Advanced_Options,paramType:T.Diagnostics.FILE,description:T.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:new T.Map(T.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:T.Diagnostics.NEWLINE,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Disable_solution_searching_for_this_project},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Disable_loading_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:T.Diagnostics.DIRECTORY,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:T.Diagnostics.Advanced_Options,description:T.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:T.Diagnostics.List_of_language_service_plugins}]),T.semanticDiagnosticsOptionDeclarations=T.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),T.affectsEmitOptionDeclarations=T.optionDeclarations.filter(function(e){return!!e.affectsEmit}),T.moduleResolutionOptionDeclarations=T.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),T.sourceFileAffectingCompilerOptions=T.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),T.transpileOptionValueCompilerOptions=T.optionDeclarations.filter(function(e){return T.hasProperty(e,"transpileOptionValue")}),T.buildOpts=__spreadArrays(T.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:T.Diagnostics.Command_line_Options,description:T.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),T.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"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}],T.createOptionNameMap=i,T.getOptionsNameMap=a,T.defaultInitCompilerOptions={module:T.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},T.convertEnableAutoDiscoveryToEnable=o,T.createCompilerDiagnosticForInvalidCustomType=s,T.parseCustomTypeOption=u,T.parseListTypeOption=l,T.parseCommandLineWorker=d,T.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:a,optionDeclarations:T.optionDeclarations,unknownOptionDiagnostic:T.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:T.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:T.Diagnostics.Compiler_option_0_expects_an_argument},T.parseCommandLine=function(e,t){return d(T.compilerOptionsDidYouMeanDiagnostics,e,t)},T.getOptionFromName=f;var y={getOptionsNameMap:function(){return r=r||i(T.buildOpts)},optionDeclarations:T.buildOpts,unknownOptionDiagnostic:T.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:T.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:T.Diagnostics.Build_option_0_requires_a_value_of_type_1};function h(e,t){t=T.parseJsonText(e,t);return{config:O(t,t.parseDiagnostics),error:t.parseDiagnostics.length?t.parseDiagnostics[0]:void 0}}function v(e,t){t=b(e,t);return T.isString(t)?T.parseJsonText(e,t):{fileName:e,parseDiagnostics:[t]}}function b(t,e){var r;try{r=e(t)}catch(e){return T.createCompilerDiagnostic(T.Diagnostics.Cannot_read_file_0_Colon_1,t,e.message)}return void 0===r?T.createCompilerDiagnostic(T.Diagnostics.Cannot_read_file_0,t):r}function x(e){return T.arrayToMap(e,_)}T.parseBuildCommand=function(e){var t=(n=d(y,e)).options,r=n.watchOptions,e=n.fileNames,n=n.errors,t=t;return 0===e.length&&e.push("."),t.clean&&t.force&&n.push(T.createCompilerDiagnostic(T.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),t.clean&&t.verbose&&n.push(T.createCompilerDiagnostic(T.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),t.clean&&t.watch&&n.push(T.createCompilerDiagnostic(T.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),t.watch&&t.dry&&n.push(T.createCompilerDiagnostic(T.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:t,watchOptions:r,projects:e,errors:n}},T.getDiagnosticText=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return T.createCompilerDiagnostic.apply(void 0,arguments).messageText},T.getParsedCommandLineOfConfigFile=function(e,t,r,n,i,a){var o=b(e,function(e){return r.readFile(e)});if(T.isString(o)){var s=T.parseJsonText(e,o),c=r.getCurrentDirectory();return s.path=T.toPath(e,c,T.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,U(s,r,T.getNormalizedAbsolutePath(T.getDirectoryPath(e),c),t,T.getNormalizedAbsolutePath(e,c),void 0,a,n,i)}r.onUnRecoverableConfigFileDiagnostic(o)},T.readConfigFile=function(e,t){return t=b(e,t),T.isString(t)?h(e,t):{config:{},error:t}},T.parseConfigFileTextToJson=h,T.readJsonConfigFile=v,T.tryReadFile=b;var D,S={optionDeclarations:T.typeAcquisitionDeclarations,unknownOptionDiagnostic:T.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:T.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function C(){return D=D||i(T.optionsForWatch)}var E,k,N,A,F={getOptionsNameMap:C,optionDeclarations:T.optionsForWatch,unknownOptionDiagnostic:T.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:T.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:T.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function P(){return E=E||x(T.optionDeclarations)}function w(){return k=k||x(T.optionsForWatch)}function I(){return N=N||x(T.typeAcquisitionDeclarations)}function O(e,t){return M(e,t,!0,void 0,void 0)}function M(u,l,_,t,d){return u.statements.length?f(u.statements[0].expression,t):_?{}:void 0;function p(e){return t&&t.elementOptions===e}function s(e,a,o,s){for(var c=_?{}:void 0,t=0,r=e.properties;t<r.length;t++)!function(n){if(288!==n.kind)return l.push(T.createDiagnosticForNodeInSourceFile(u,n,T.Diagnostics.Property_assignment_expected));n.questionToken&&l.push(T.createDiagnosticForNodeInSourceFile(u,n.questionToken,T.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(n.name)||l.push(T.createDiagnosticForNodeInSourceFile(u,n.name,T.Diagnostics.String_literal_with_double_quotes_expected));var e=T.isComputedNonLiteralName(n.name)?void 0:T.getTextOfPropertyName(n.name),t=e&&T.unescapeLeadingUnderscores(e),r=t&&a?a.get(t):void 0;t&&o&&!r&&(a?l.push(m(t,o,function(e,t,r){return T.createDiagnosticForNodeInSourceFile(u,n.name,e,t,r)})):l.push(T.createDiagnosticForNodeInSourceFile(u,n.name,o.unknownOptionDiagnostic,t)));var i=f(n.initializer,r);void 0!==t&&(_&&(c[t]=i),d&&(s||p(a))&&(e=R(r,i),s?e&&d.onSetValidOptionKeyValueInParent(s,r,i):p(a)&&(e?d.onSetValidOptionKeyValueInRoot(t,n.name,i,n.initializer):r||d.onSetUnknownOptionKeyValueInRoot(t,n.name,i,n.initializer))))}(r[t]);return c}function f(n,t){switch(n.kind){case 109:return o(t&&"boolean"!==t.type),!0;case 94:return o(t&&"boolean"!==t.type),!1;case 103:return o(t&&"extends"===t.name),null;case 10:g(n)||l.push(T.createDiagnosticForNodeInSourceFile(u,n,T.Diagnostics.String_literal_with_double_quotes_expected)),o(t&&T.isString(t.type)&&"string"!==t.type);var e,r=n.text;return t&&!T.isString(t.type)&&((e=t).type.has(r.toLowerCase())||l.push(c(e,function(e,t,r){return T.createDiagnosticForNodeInSourceFile(u,n,e,t,r)}))),r;case 8:return o(t&&"number"!==t.type),Number(n.text);case 214:if(40!==n.operator||8!==n.operand.kind)break;return o(t&&"number"!==t.type),-Number(n.operand.text);case 200:o(t&&"object"!==t.type);var i=n;return t?s(i,t.elementOptions,t.extraKeyDiagnostics,t.name):s(i,void 0,void 0,void 0);case 199:return o(t&&"list"!==t.type),i=n.elements,a=t&&t.element,_?T.filter(i.map(function(e){return f(e,a)}),function(e){return void 0!==e}):i.forEach(function(e){return f(e,a)})}var a;function o(e){e&&l.push(T.createDiagnosticForNodeInSourceFile(u,n,T.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,L(t)))}t?o(!0):l.push(T.createDiagnosticForNodeInSourceFile(u,n,T.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function g(e){return T.isStringLiteral(e)&&T.isStringDoubleQuoted(e,u)}}function L(e){return"list"===e.type?"Array":T.isString(e.type)?e.type:"string"}function R(e,t){return!!e&&(!!K(t)||("list"===e.type?T.isArray(t):typeof t===(T.isString(e.type)?e.type:"string")))}function B(e){return __assign({},T.arrayFrom(e.entries()).reduce(function(e,t){return __assign(__assign({},e),((e={})[t[0]]=t[1],e))},{}))}function j(r,e){return T.forEachEntry(e,function(e,t){if(e===r)return t})}function J(e,t){return z(e,a(),t)}function z(i,e,a){function t(e){if(T.hasProperty(i,e)){if(o.has(e)&&o.get(e).category===T.Diagnostics.Command_line_Options)return 1;var t,r=i[e],n=o.get(e.toLowerCase());n&&((t=function e(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"object"!==t.type)return"list"===t.type?e(t.element):t.type}(n))?"list"===n.type?s.set(e,r.map(function(e){return j(e,t)})):s.set(e,j(r,t)):a&&n.isFilePath?s.set(e,T.getRelativePathFromFile(a.configFilePath,T.getNormalizedAbsolutePath(r,T.getDirectoryPath(a.configFilePath)),c)):s.set(e,r))}}var r,o=e.optionsNameMap,s=new T.Map,c=a&&T.createGetCanonicalFileName(a.useCaseSensitiveFileNames);for(r in i)t(r);return s}function U(e,t,r,n,i,a,o,s,c){return W(void 0,e,t,r,n,c,i,a,o,s)}function V(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function K(e){return null==e}function q(e,t){return T.getDirectoryPath(T.getNormalizedAbsolutePath(e,t))}function W(e,l,_,d,t,r,p,f,g,n){void 0===t&&(t={}),void 0===f&&(f=[]),void 0===g&&(g=[]),T.Debug.assert(void 0===e&&void 0!==l||void 0!==e&&void 0===l);var m,y=[],i=Y(e,l,_,d,p,f,y,n),h=i.raw,v=T.extend(t,i.options||{}),e=r&&i.watchOptions?T.extend(r,i.watchOptions):i.watchOptions||r;v.configFilePath=p&&T.normalizeSlashes(p),V(v,l);n=function(){var e=D("references",function(e){return"object"==typeof e},"object");if(T.isArray(e))for(var t=0,r=e;t<r.length;t++){var n=r[t];"string"!=typeof n.path?S(T.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(m=m||[]).push({path:T.getNormalizedAbsolutePath(n.path,d),originalPath:n.path,prepend:n.prepend,circular:n.circular})}var i=b(x("files"));{var a;i&&(a="no-prop"===e||T.isArray(e)&&0===e.length,e=T.hasProperty(h,"extends"),0===i.length&&a&&!e&&(l?(c=p||"tsconfig.json",s=T.Diagnostics.The_files_list_in_config_file_0_is_empty,o=T.firstDefined(T.getTsConfigPropArray(l,"files"),function(e){return e.initializer}),u=o?T.createDiagnosticForNodeInSourceFile(l,o,s,c):T.createCompilerDiagnostic(s,c),y.push(u)):S(T.Diagnostics.The_files_list_in_config_file_0_is_empty,p||"tsconfig.json")))}var o=b(x("include")),s=x("exclude"),c=b(s);{var u;"no-prop"===s&&h.compilerOptions&&(u=h.compilerOptions.outDir,s=h.compilerOptions.declarationDir,(u||s)&&(c=[u,s].filter(function(e){return!!e})))}void 0===i&&void 0===o&&(o=["**/*"]);c=function(e,t,r,n,i,a,o,s,c){var u,l;n=T.normalizePath(n),t&&(u=pe(t,o,!1,c,"include"));r&&(l=pe(r,o,!0,c,"exclude"));c=function(e,t,r,n){var t=T.getRegularExpressionForWildcard(t,r,"exclude"),i=t&&new RegExp(t,n?"":"i"),a={};if(void 0!==e){for(var o=[],s=0,c=e;s<c.length;s++){var u,l=c[s],_=T.normalizePath(T.combinePaths(r,l));i&&i.test(_)||(l=function(e,t){var r=_e.exec(e);if(r)return{key:t?r[0]:T.toFileNameLowerCase(r[0]),flags:le.test(e)?1:0};if(T.isImplicitGlob(e))return{key:t?e:T.toFileNameLowerCase(e),flags:1};return}(_,n))&&(u=l.key,_=l.flags,(void 0===(l=a[u])||l<_)&&1===(a[u]=_)&&o.push(u))}for(u in a)if(T.hasProperty(a,u))for(var d=0,p=o;d<p.length;d++){var f=p[d];u!==f&&T.containsPath(f,u,r,!n)&&delete a[u]}}return a}(u,l,n,a.useCaseSensitiveFileNames);return de({filesSpecs:e,includeSpecs:t,excludeSpecs:r,validatedFilesSpec:T.filter(e,T.isString),validatedIncludeSpecs:u,validatedExcludeSpecs:l,wildcardDirectories:c},n,i,a,s)}(i,o,c,p?q(p,d):d,v,_,y,g,l);G(c,X(h),f)&&y.push(H(c.spec,p));return c}(),t=n.fileNames,r=n.wildcardDirectories,n=n.spec;return{options:v,watchOptions:e,fileNames:t,projectReferences:m,typeAcquisition:i.typeAcquisition||te(),raw:h,errors:y,wildcardDirectories:r,compileOnSave:!!h.compileOnSave,configFileSpecs:n};function b(e){return T.isArray(e)?e:void 0}function x(e){return D(e,T.isString,"string")}function D(e,t,r){if(!T.hasProperty(h,e)||K(h[e]))return"no-prop";if(T.isArray(h[e])){var n=h[e];return l||T.every(n,t)||y.push(T.createCompilerDiagnostic(T.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e,r)),n}return S(T.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}function S(e,t,r){l||y.push(T.createCompilerDiagnostic(e,t,r))}}function H(e,t){var r=e.includeSpecs,e=e.excludeSpecs;return T.createCompilerDiagnostic(T.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(e||[]))}function G(e,t,r){return 0===e.fileNames.length&&t&&(!r||0===r.length)}function X(e){return!T.hasProperty(e,"files")&&!T.hasProperty(e,"references")}function Q(e){return e.options}function Y(e,t,r,n,i,a,o,s){n=T.normalizeSlashes(n);var c=T.getNormalizedAbsolutePath(i||"",n);if(0<=a.indexOf(c))return o.push(T.createCompilerDiagnostic(T.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,__spreadArrays(a,[c]).join(" -> "))),{raw:e||O(t,o)};var u,l,e=e?function(e,t,r,n,i){T.hasProperty(e,"excludes")&&i.push(T.createCompilerDiagnostic(T.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var a=ee(e.compilerOptions,r,i,n),o=re(e.typeAcquisition||e.typingOptions,r,i,n),s=function(e,t,r){return ne(w(),e,t,void 0,F,r)}(e.watchOptions,r,i);{var c;e.compileOnSave=function(e,t,r){if(!T.hasProperty(e,T.compileOnSaveCommandLineOption.name))return!1;r=ie(T.compileOnSaveCommandLineOption,e.compileOnSave,t,r);return"boolean"==typeof r&&r}(e,r,i),e.extends&&(T.isString(e.extends)?(c=n?q(n,r):r,c=Z(e.extends,t,c,i,T.createCompilerDiagnostic)):i.push(T.createCompilerDiagnostic(T.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")))}return{raw:e,options:a,watchOptions:s,typeAcquisition:o,extendedConfigPath:c}}(e,r,n,i,o):function(i,a,o,s,c){var u,l,_,d,p=$(s),e={onSetValidOptionKeyValueInParent:function(e,t,r){var n;switch(e){case"compilerOptions":n=p;break;case"watchOptions":n=_=_||{};break;case"typeAcquisition":n=u=u||te(s);break;case"typingOptions":n=l=l||te(s);break;default:T.Debug.fail("Unknown option")}n[t.name]=function t(e,r,n){if(K(n))return;{if("list"===e.type){var i=e;return i.element.isFilePath||!T.isString(i.element.type)?T.filter(T.map(n,function(e){return t(i.element,r,e)}),function(e){return!!e}):n}if(!T.isString(e.type))return e.type.get(T.isString(n)?n.toLowerCase():n)}return ae(e,r,n)}(t,o,r)},onSetValidOptionKeyValueInRoot:function(e,t,r,n){if("extends"===e){e=s?q(s,o):o;d=Z(r,a,e,c,function(e,t){return T.createDiagnosticForNodeInSourceFile(i,n,e,t)})}},onSetUnknownOptionKeyValueInRoot:function(e,t,r,n){"excludes"===e&&c.push(T.createDiagnosticForNodeInSourceFile(i,t,T.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},e=M(i,c,!0,(void 0===A&&(A={name:void 0,type:"object",elementOptions:x([{name:"compilerOptions",type:"object",elementOptions:P(),extraKeyDiagnostics:T.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:F},{name:"typingOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:S},{name:"typeAcquisition",type:"object",elementOptions:I(),extraKeyDiagnostics:S},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{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"}},T.compileOnSaveCommandLineOption])}),A),e);u=u||(l?void 0!==l.enableAutoDiscovery?{enable:l.enableAutoDiscovery,include:l.include,exclude:l.exclude}:l:te(s));return{raw:e,options:p,watchOptions:_,typeAcquisition:u,extendedConfigPath:d}}(t,r,n,i,o);return null!==(i=e.options)&&void 0!==i&&i.paths&&(e.options.pathsBasePath=n),e.extendedConfigPath&&(a=a.concat([c]),(o=function(e,t,r,n,i,a,o){var s,c,u=r.useCaseSensitiveFileNames?t:T.toFileNameLowerCase(t);{var l,_,d,p;o&&(l=o.get(u))?(s=l.extendedResult,c=l.extendedConfig):((s=v(t,function(e){return r.readFile(e)})).parseDiagnostics.length||(l=T.getDirectoryPath(t),Q(c=Y(void 0,s,r,l,T.getBaseFileName(t),i,a,o))&&(_=T.convertToRelativePath(l,n,T.identity),d=function(e){return T.isRootedDiskPath(e)?e:T.combinePaths(_,e)},n=function(e){p[e]&&(p[e]=T.map(p[e],d))},p=c.raw,n("include"),n("exclude"),n("files"))),o&&o.set(u,{extendedResult:s,extendedConfig:c}))}e&&(e.extendedSourceFiles=[s.fileName],s.extendedSourceFiles&&(e=e.extendedSourceFiles).push.apply(e,s.extendedSourceFiles));if(s.parseDiagnostics.length)return void a.push.apply(a,s.parseDiagnostics);return c}(t,e.extendedConfigPath,r,n,a,o,s))&&Q(o)&&(u=o.raw,l=e.raw,(s=function(e){var t=l[e]||u[e];t&&(l[e]=t)})("include"),s("exclude"),s("files"),void 0===l.compileOnSave&&(l.compileOnSave=u.compileOnSave),e.options=T.assign({},o.options,e.options),e.watchOptions=e.watchOptions&&o.watchOptions?T.assign({},o.watchOptions,e.watchOptions):e.watchOptions||o.watchOptions)),e}function Z(e,t,r,n,i){if(e=T.normalizeSlashes(e),T.isRootedDiskPath(e)||T.startsWith(e,"./")||T.startsWith(e,"../")){var a=T.getNormalizedAbsolutePath(e,r);return t.fileExists(a)||T.endsWith(a,".json")||(a+=".json",t.fileExists(a))?a:void n.push(i(T.Diagnostics.File_0_not_found,e))}t=T.nodeModuleNameResolver(e,T.combinePaths(r,"tsconfig.json"),{moduleResolution:T.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(t.resolvedModule)return t.resolvedModule.resolvedFileName;n.push(i(T.Diagnostics.File_0_not_found,e))}function $(e){return e&&"jsconfig.json"===T.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ee(e,t,r,n){var i=$(n);return ne(P(),e,t,i,T.compilerOptionsDidYouMeanDiagnostics,r),n&&(i.configFilePath=T.normalizeSlashes(n)),i}function te(e){return{enable:!!e&&"jsconfig.json"===T.getBaseFileName(e),include:[],exclude:[]}}function re(e,t,r,n){n=te(n),e=o(e);return ne(I(),e,t,n,S,r),n}function ne(e,t,r,n,i,a){if(t){for(var o in t){var s=e.get(o);s?(n=n||{})[s.name]=ie(s,t[o],r,a):a.push(m(o,i,T.createCompilerDiagnostic))}return n}}function ie(e,t,r,n){if(R(e,t)){var i=e.type;return"list"===i&&T.isArray(t)?(a=e,o=t,s=r,c=n,T.filter(T.map(o,function(e){return ie(a.element,e,s,c)}),function(e){return!!e})):T.isString(i)?ae(e,r,t):oe(e,t,n)}var a,o,s,c;n.push(T.createCompilerDiagnostic(T.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,L(e)))}function ae(e,t,r){return e.isFilePath&&""===(r=T.getNormalizedAbsolutePath(r,t))&&(r="."),r}function oe(e,t,r){if(!K(t)){t=t.toLowerCase(),t=e.type.get(t);if(void 0!==t)return t;r.push(s(e))}}function se(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}T.convertToObject=O,T.convertToObjectWorker=M,T.convertToTSConfig=function(e,t,r){var n=T.createGetCanonicalFileName(r.useCaseSensitiveFileNames),i=T.map(T.filter(e.fileNames,e.configFileSpecs&&e.configFileSpecs.validatedIncludeSpecs?function(e,t,r,n){if(!t)return function(e){return!0};var t=T.getFileMatcherPatterns(e,r,t,n.useCaseSensitiveFileNames,n.getCurrentDirectory()),i=t.excludePattern&&T.getRegexFromPattern(t.excludePattern,n.useCaseSensitiveFileNames),a=t.includeFilePattern&&T.getRegexFromPattern(t.includeFilePattern,n.useCaseSensitiveFileNames);if(a)return i?function(e){return!(a.test(e)&&!i.test(e))}:function(e){return!a.test(e)};if(i)return function(e){return i.test(e)};return function(e){return!0}}(t,e.configFileSpecs.validatedIncludeSpecs,e.configFileSpecs.validatedExcludeSpecs,r):function(e){return!0}),function(e){return T.getRelativePathFromFile(T.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),T.getNormalizedAbsolutePath(e,r.getCurrentDirectory()),n)}),a=J(e.options,{configFilePath:T.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),o=e.watchOptions&&z(e.watchOptions,C());return __assign(__assign({compilerOptions:__assign(__assign({},B(a)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:o&&B(o),references:T.map(e.projectReferences,function(e){return __assign(__assign({},e),{path:e.originalPath||"",originalPath:void 0})}),files:T.length(i)?i:void 0},e.configFileSpecs?{include:(i=e.configFileSpecs.validatedIncludeSpecs,!T.length(i)||1===T.length(i)&&"**/*"===i[0]?void 0:i),exclude:e.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!e.compileOnSave||void 0})},T.generateTSConfig=function(e,g,m){var y=J(T.extend(e,T.defaultInitCompilerOptions));return function(){for(var e=T.createMultiMap(),t=0,r=T.optionDeclarations;t<r.length;t++){var n=r[t],i=n.category;!function(e){var t=e.category,e=e.name;return void 0!==t&&t!==T.Diagnostics.Command_line_Options&&(t!==T.Diagnostics.Advanced_Options||y.has(e))}(n)||e.add(T.getLocaleSpecificMessage(i),n)}var o=0,s=0,c=[];e.forEach(function(e,t){0!==c.length&&c.push({value:""}),c.push({value:"/* "+t+" */"});for(var r=0,n=e;r<n.length;r++){var i=n[r],a=void 0,a=y.has(i.name)?'"'+i.name+'": '+JSON.stringify(y.get(i.name))+((s+=1)===y.size?"":","):'// "'+i.name+'": '+JSON.stringify(function(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:var t=e.type.keys().next();return t.done?T.Debug.fail("Expected 'option.type' to have entries."):t.value}}(i))+",";c.push({value:a,description:"/* "+(i.description&&T.getLocaleSpecificMessage(i.description)||i.name)+" */"}),o=Math.max(a.length,o)}});var a=h(2),u=[];u.push("{"),u.push(a+'"compilerOptions": {'),u.push(""+a+a+"/* "+T.getLocaleSpecificMessage(T.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),u.push("");for(var l=0,_=c;l<_.length;l++){var d=_[l],p=d.value,d=d.description,d=void 0===d?"":d;u.push(p&&""+a+a+p+(d&&h(o-p.length+2)+d))}if(g.length){u.push(a+"},"),u.push(a+'"files": [');for(var f=0;f<g.length;f++)u.push(""+a+a+JSON.stringify(g[f])+(f===g.length-1?"":","));u.push(a+"]")}else u.push(a+"}");return u.push("}"),u.join(m)+m}();function h(e){return Array(e+1).join(" ")}},T.convertToOptionsWithAbsolutePaths=function(e,t){var r,n={},i=a().optionsNameMap;for(r in e)T.hasProperty(e,r)&&(n[r]=function(e,t,r){if(e&&!K(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}(i.get(r.toLowerCase()),e[r],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n},T.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return W(e,void 0,t,r,n,c,i,a,o,s)},T.parseJsonSourceFileConfigFileContent=U,T.setConfigFileInOptions=V,T.canJsonReportNoInputFiles=X,T.updateErrorForNoInputFiles=function(e,t,r,n,i){var a=n.length;return G(e,i)?n.push(H(r,t)):T.filterMutate(n,function(e){return!(e.code===T.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)}),a!==n.length},T.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:ee(e,t,n,r),errors:n}},T.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:re(e,t,n,r),errors:n}};var ce=/(^|\/)\*\*\/?$/,ue=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,le=/\/[^/]*?[*?][^/]*\//,_e=/^[^*?]*(?=\/[^/]*[*?])/;function de(e,n,t,i,r){void 0===r&&(r=T.emptyArray),n=T.normalizePath(n);var a,o=T.createGetCanonicalFileName(i.useCaseSensitiveFileNames),s=new T.Map,c=new T.Map,u=new T.Map,l=e.validatedFilesSpec,_=e.validatedIncludeSpecs,d=e.validatedExcludeSpecs,p=e.wildcardDirectories,f=T.getSupportedExtensions(t,r),t=T.getSuppoertedExtensionsWithJsonIfResolveJsonModule(t,f);if(l)for(var g=0,m=l;g<m.length;g++){var y=m[g],h=T.getNormalizedAbsolutePath(y,n);s.set(o(h),h)}if(_&&0<_.length)for(var v=function(t){var e;if(T.fileExtensionIs(t,".json"))return a||(e=_.filter(function(e){return T.endsWith(e,".json")}),e=T.map(T.getRegularExpressionsForWildcards(e,n,"files"),function(e){return"^"+e+"$"}),a=e?e.map(function(e){return T.getRegexFromPattern(e,i.useCaseSensitiveFileNames)}):T.emptyArray),-1!==T.findIndex(a,function(e){return e.test(t)})&&(r=o(t),s.has(r)||u.has(r)||u.set(r,t)),"continue";if(function(e,t,r,n,i){for(var a=T.getExtensionPriority(e,n),o=T.adjustExtensionPriority(a,n),s=0;s<o;s++){var c=n[s],c=i(T.changeExtension(e,c));if(t.has(c)||r.has(c))return!0}return!1}(t,s,c,f,o))return"continue";!function(e,t,r,n){for(var i=T.getExtensionPriority(e,r),a=T.getNextLowestExtensionPriority(i,r);a<r.length;a++){var o=r[a],o=n(T.changeExtension(e,o));t.delete(o)}}(t,c,f,o);var r=o(t);s.has(r)||c.has(r)||c.set(r,t)},b=0,x=i.readDirectory(n,t,d,_,void 0);b<x.length;b++)v(h=x[b]);t=T.arrayFrom(s.values()),d=T.arrayFrom(c.values());return{fileNames:t.concat(d,T.arrayFrom(u.values())),wildcardDirectories:p,spec:e}}function pe(e,i,a,o,s){return e.filter(function(e){if(!T.isString(e))return!1;var t,r,n=function(e,t){{if(!t&&ce.test(e))return T.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(ue.test(e))return T.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}}(e,a);return void 0!==n&&i.push((t=n,r=e,(e=T.getTsConfigPropArrayElementValue(o,s,r))?T.createDiagnosticForNodeInSourceFile(o,e,t,r):T.createCompilerDiagnostic(t,r))),void 0===n})}T.getFileNamesFromConfigSpecs=de,T.isExcludedFile=function(e,t,r,n,i){var a=t.validatedFilesSpec,o=t.validatedIncludeSpecs,t=t.validatedExcludeSpecs;if(!T.length(o)||!T.length(t))return!1;r=T.normalizePath(r);var s=T.createGetCanonicalFileName(n);if(a)for(var c=0,u=a;c<u.length;c++){var l=u[c];if(s(T.getNormalizedAbsolutePath(l,r))===e)return!1}return i=T.getRegularExpressionForWildcard(t,T.combinePaths(T.normalizePath(i),r),"exclude"),!!(n=i&&T.getRegexFromPattern(i,n))&&(!!n.test(e)||!T.hasExtension(e)&&n.test(T.ensureTrailingDirectorySeparator(e)))},T.convertCompilerOptionsForTelemetry=function(e){var t,r,n={};for(t in e)!e.hasOwnProperty(t)||void 0!==(r=f(t))&&(n[t]=function t(r,e){switch(e.type){case"object":case"string":return"";case"number":return"number"==typeof r?r:"";case"boolean":return"boolean"==typeof r?r:"";case"list":var n=e.element;return T.isArray(r)?r.map(function(e){return t(e,n)}):"";default:return T.forEachEntry(e.type,function(e,t){if(e===r)return t})}}(e[t],r));return n}}(ts=ts||{}),function(h){function v(e){e.trace(h.formatMessage.apply(void 0,arguments))}function d(e,t){return!!e.traceResolution&&void 0!==t.trace}function u(e,t){var r,n;return t&&e&&("string"==typeof(n=e.packageJsonContent).name&&"string"==typeof n.version&&(r={name:n.name,subModuleName:t.path.slice(e.packageDirectory.length+h.directorySeparator.length),version:n.version})),t&&{path:t.path,extension:t.ext,packageId:r}}function _(e){return u(void 0,e)}function p(e){if(e)return h.Debug.assert(void 0===e.packageId),{path:e.path,ext:e.extension}}var f,e,n;function g(e){if(e)return h.Debug.assert(h.extensionIsTS(e.extension)),{fileName:e.path,packageId:e.packageId}}function m(e,t,r,n){var i;return n?((i=n.failedLookupLocations).push.apply(i,r),n):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function o(e,t,r,n){if(h.hasProperty(e,t)){e=e[t];if(typeof e===r&&null!==e)return e;n.traceEnabled&&v(n.host,h.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,null===e?"null":typeof e)}else n.traceEnabled&&v(n.host,h.Diagnostics.package_json_does_not_have_a_0_field,t)}function y(e,t,r,n){e=o(e,t,"string",n);if(void 0!==e){if(e){r=h.normalizePath(h.combinePaths(r,e));return n.traceEnabled&&v(n.host,h.Diagnostics.package_json_has_0_field_1_that_references_2,t,e,r),r}n.traceEnabled&&v(n.host,h.Diagnostics.package_json_had_a_falsy_0_field,t)}}function b(e,t,r){return y(e,"typings",t,r)||y(e,"types",t,r)}function x(e,t,r){return y(e,"main",t,r)}function s(e,t){var r=function(e,t){if(void 0!==(e=o(e,"typesVersions","object",t)))return t.traceEnabled&&v(t.host,h.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),e}(e,t);if(void 0!==r){if(t.traceEnabled)for(var n in r)h.hasProperty(r,n)&&!h.VersionRange.tryParse(n)&&v(t.host,h.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,n);var i=c(r);if(i){var a=i.version,e=i.paths;if("object"==typeof e)return i;t.traceEnabled&&v(t.host,h.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+a+"']","object",typeof e)}else t.traceEnabled&&v(t.host,h.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,h.versionMajorMinor)}}function c(e){for(var t in n=n||new h.Version(h.version),e)if(h.hasProperty(e,t)){var r=h.VersionRange.tryParse(t);if(void 0!==r&&r.test(n))return{version:t,paths:e[t]}}}function D(e,t){return e.typeRoots||(e.configFilePath?r=h.getDirectoryPath(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?(r=r,(n=t).directoryExists?(h.forEachAncestorDirectory(h.normalizePath(r),function(e){e=h.combinePaths(e,a);n.directoryExists(e)&&(i=i||[]).push(e)}),i):[h.combinePaths(r,a)]):void 0);var r,n,i}h.trace=v,h.isTraceEnabled=d,(e=f=f||{})[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",h.getPackageJsonTypesVersionsPaths=c,h.getEffectiveTypeRoots=D;var a=h.combinePaths("node_modules","@types");function i(n){var i=new h.Map,a=new h.Map;return{ownMap:i,redirectsMap:a,getOrCreateMapOfCacheRedirects:function(e){if(!e)return i;var t=e.sourceFile.path,r=a.get(t);r||(r=!n||h.optionsHaveModuleResolutionChanges(n,e.commandLine.options)?new h.Map:i,a.set(t,r));return r},clear:function(){i.clear(),a.clear()},setOwnOptions:function(e){n=e},setOwnMap:function(e){i=e}}}function l(r,n,s,c){return{getOrCreateCacheForDirectory:function(e,t){e=h.toPath(e,s,c);return i(r,t,e,function(){return new h.Map})},getOrCreateCacheForModuleName:function(e,t){return h.Debug.assert(!h.isExternalModuleNameRelative(e)),i(n,t,e,a)},directoryToModuleNameMap:r,moduleNameToDirectoryMap:n};function i(e,t,r,n){e=e.getOrCreateMapOfCacheRedirects(t),t=e.get(r);return t||(t=n(),e.set(r,t)),t}function a(){var o=new h.Map;return{get:function(e){return o.get(h.toPath(e,s,c))},set:function(e,t){var r=h.toPath(e,s,c);if(o.has(r))return;o.set(r,t);var e=t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName),n=e&&function(e,t){var r=h.toPath(h.getDirectoryPath(t),s,c),n=0,i=Math.min(e.length,r.length);for(;n<i&&e.charCodeAt(n)===r.charCodeAt(n);)n++;if(n===e.length&&(r.length===n||r[n]===h.directorySeparator))return e;var a=h.getRootLength(e);if(n<a)return;t=e.lastIndexOf(h.directorySeparator,n-1);return-1!==t?e.substr(0,Math.max(t,a)):void 0}(r,e),i=r;for(;i!==n;){var a=h.getDirectoryPath(i);if(a===i||o.has(a))break;o.set(a,t),i=a}}}}}function S(e,t,r,n,i){var a=function(e,t,r,n){var i=n.compilerOptions,a=i.baseUrl,i=i.paths;if(i&&!h.pathIsRelative(t)){n.traceEnabled&&(a&&v(n.host,h.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,t),v(n.host,h.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));a=h.getPathsBasePath(n.compilerOptions,n.host);return H(e,t,a,i,r,!1,n)}}(e,t,n,i);return a?a.value:h.isExternalModuleNameRelative(t)?function(e,t,r,n,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&v(i.host,h.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);for(var a,o,s=h.normalizePath(h.combinePaths(r,t)),c=0,u=i.compilerOptions.rootDirs;c<u.length;c++){var l=u[c],_=h.normalizePath(l);h.endsWith(_,h.directorySeparator)||(_+=h.directorySeparator);var d=h.startsWith(s,_)&&(void 0===o||o.length<_.length);i.traceEnabled&&v(i.host,h.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,s,d),d&&(o=_,a=l)}if(o){i.traceEnabled&&v(i.host,h.Diagnostics.Longest_matching_prefix_for_0_is_1,s,o);var p=s.substr(o.length);i.traceEnabled&&v(i.host,h.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,p,o,s);r=n(e,s,!h.directoryProbablyExists(r,i.host),i);if(r)return r;i.traceEnabled&&v(i.host,h.Diagnostics.Trying_other_entries_in_rootDirs);for(var f=0,g=i.compilerOptions.rootDirs;f<g.length;f++)if((l=g[f])!==a){var m=h.combinePaths(h.normalizePath(l),p);i.traceEnabled&&v(i.host,h.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,p,l,m);var y=h.getDirectoryPath(m),y=n(e,m,!h.directoryProbablyExists(y,i.host),i);if(y)return y}i.traceEnabled&&v(i.host,h.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(e,t,r,n,i):function(e,t,r,n){var i=n.compilerOptions.baseUrl;if(!i)return;n.traceEnabled&&v(n.host,h.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);var a=h.normalizePath(h.combinePaths(i,t));n.traceEnabled&&v(n.host,h.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,t,i,a);return r(e,a,!h.directoryProbablyExists(h.getDirectoryPath(a),n.host),n)}(e,t,n,i)}h.resolveTypeReferenceDirective=function(n,i,e,a,t){var o=d(e,a);t&&(e=t.commandLine.options);var r=[],s={compilerOptions:e,host:a,traceEnabled:o,failedLookupLocations:r},c=D(e,a);o&&(void 0===i?void 0===c?v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,c):void 0===c?v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,c),t&&v(a,h.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,t.sourceFile.fileName));var u,l=function(){{if(c&&c.length)return o&&v(a,h.Diagnostics.Resolving_with_primary_search_path_0,c.join(", ")),h.firstDefined(c,function(e){var t=h.combinePaths(e,n),r=h.getDirectoryPath(t),e=h.directoryProbablyExists(r,a);return!e&&o&&v(a,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),g(j(f.DtsOnly,t,!e,s))});o&&v(a,h.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}}(),t=!0;return l||(l=function(){var e=i&&h.getDirectoryPath(i);{if(void 0!==e){o&&v(a,h.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,e);var t,r=g(h.isExternalModuleNameRelative(n)?(t=h.normalizePathAndParts(h.combinePaths(e,n)).path,w(f.DtsOnly,t,!1,s,!0)):(r=V(f.DtsOnly,n,e,s,void 0,void 0))&&r.value);return!r&&o&&v(a,h.Diagnostics.Type_reference_directive_0_was_not_resolved,n),r}o&&v(a,h.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}(),t=!1),l&&(u=l.fileName,l=l.packageId,e=e.preserveSymlinks?u:P(u,a,o),o&&(l?v(a,h.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,e,h.packageIdToString(l),t):v(a,h.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,e,t)),u={primary:t,resolvedFileName:e,packageId:l,isExternalLibraryImport:I(u)}),{resolvedTypeReferenceDirective:u,failedLookupLocations:r}},h.getAutomaticTypeDirectiveNames=function(e,t){if(e.types)return e.types;var r=[];if(t.directoryExists&&t.getDirectories){e=D(e,t);if(e)for(var n=0,i=e;n<i.length;n++){var a=i[n];if(t.directoryExists(a))for(var o=0,s=t.getDirectories(a);o<s.length;o++){var c=s[o],u=h.normalizePath(c),c=h.combinePaths(a,u,"package.json");t.fileExists(c)&&null===h.readJson(c,t).typings||46!==(u=h.getBaseFileName(u)).charCodeAt(0)&&r.push(u)}}}return r},h.createModuleResolutionCache=function(e,t,r){return l(i(r),i(r),e,t)},h.createCacheWithRedirects=i,h.createModuleResolutionCacheWithMaps=l,h.resolveModuleNameFromCache=function(e,t,r){return t=h.getDirectoryPath(t),(t=r&&r.getOrCreateCacheForDirectory(t))&&t.get(e)},h.resolveModuleName=function(e,t,r,n,i,a){var o=d(r,n);a&&(r=a.commandLine.options),o&&(v(n,h.Diagnostics.Resolving_module_0_from_1,e,t),a&&v(n,h.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));var s=h.getDirectoryPath(t),c=i&&i.getOrCreateCacheForDirectory(s,a),u=c&&c.get(e);if(u)o&&v(n,h.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,e,s);else{var l=r.moduleResolution;switch(void 0===l?(l=h.getEmitModuleKind(r)===h.ModuleKind.CommonJS?h.ModuleResolutionKind.NodeJs:h.ModuleResolutionKind.Classic,o&&v(n,h.Diagnostics.Module_resolution_kind_is_not_specified_using_0,h.ModuleResolutionKind[l])):o&&v(n,h.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,h.ModuleResolutionKind[l]),h.perfLogger.logStartResolveModule(e),l){case h.ModuleResolutionKind.NodeJs:u=A(e,t,r,n,i,a);break;case h.ModuleResolutionKind.Classic:u=Y(e,t,r,n,i,a);break;default:return h.Debug.fail("Unexpected moduleResolution: "+l)}u&&u.resolvedModule&&h.perfLogger.logInfoEvent('Module "'+e+'" resolved to "'+u.resolvedModule.resolvedFileName+'"'),h.perfLogger.logStopResolveModule(u&&u.resolvedModule?""+u.resolvedModule.resolvedFileName:"null"),c&&(c.set(e,u),h.isExternalModuleNameRelative(e)||i.getOrCreateCacheForModuleName(e,a).set(s,u))}return o&&(u.resolvedModule?u.resolvedModule.packageId?v(n,h.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,u.resolvedModule.resolvedFileName,h.packageIdToString(u.resolvedModule.packageId)):v(n,h.Diagnostics.Module_name_0_was_successfully_resolved_to_1,e,u.resolvedModule.resolvedFileName):v(n,h.Diagnostics.Module_name_0_was_not_resolved,e)),u},h.resolveJSModule=function(e,t,r){var r=(n=N(e,t,r)).resolvedModule,n=n.failedLookupLocations;if(!r)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+n.join(", "));return r.resolvedFileName},h.tryResolveJSModule=function(e,t,r){return(r=N(e,t,r).resolvedModule)&&r.resolvedFileName};var T=[f.JavaScript],C=[f.TypeScript,f.JavaScript],E=__spreadArrays(C,[f.Json]),k=[f.TSConfig];function N(e,t,r){return F(e,t,{moduleResolution:h.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,T,void 0)}function A(e,t,r,n,i,a,o){return F(e,h.getDirectoryPath(t),r,n,i,o?k:r.resolveJsonModule?E:C,a)}function F(i,a,o,s,c,e,u){var l=d(o,s),t=[],_={compilerOptions:o,host:s,traceEnabled:l,failedLookupLocations:t},r=h.forEach(e,function(e){var t=S(e,i,a,function(e,t,r,n){return w(e,t,r,n,!0)},_);if(t)return Z({resolved:t,isExternalLibraryImport:I(t.path)});{if(h.isExternalModuleNameRelative(i)){var r=h.normalizePathAndParts(h.combinePaths(a,i)),n=r.path,r=r.parts,n=w(e,n,!1,_,!0);return n&&Z({resolved:n,isExternalLibraryImport:h.contains(r,"node_modules")})}l&&v(s,h.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,f[e]);n=V(e,i,a,_,c,u);if(n){r=n.value;return o.preserveSymlinks||!r||r.originalPath||(e=P(r.path,s,l),n=e===r.path?void 0:r.path,r=__assign(__assign({},r),{path:e,originalPath:n})),{value:r&&{resolved:r,isExternalLibraryImport:!0}}}}});return m(null===(e=null==r?void 0:r.value)||void 0===e?void 0:e.resolved,null===(r=null==r?void 0:r.value)||void 0===r?void 0:r.isExternalLibraryImport,t,_.resultFromCache)}function P(e,t,r){if(!t.realpath)return e;var n=h.normalizePath(t.realpath(e));return r&&v(t,h.Diagnostics.Resolving_real_path_for_0_result_1,e,n),h.Debug.assert(t.fileExists(n),e+" linked to nonexistent file "+n),n}function w(e,t,r,n,i){if(n.traceEnabled&&v(n.host,h.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,t,f[e]),!h.hasTrailingDirectorySeparator(t)){r||(o=h.getDirectoryPath(t),h.directoryProbablyExists(o,n.host)||(n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),r=!0));var a=L(e,t,r,n);if(a){var o=i?function(e){var t=h.normalizePath(e.path),r=t.lastIndexOf(h.nodeModulesPathPart);if(-1===r)return;e=r+h.nodeModulesPathPart.length,r=O(t,e);64===t.charCodeAt(e)&&(r=O(t,r));return t.slice(0,r)}(a):void 0;return u(o?J(o,!1,n):void 0,a)}}return r||h.directoryProbablyExists(t,n.host)||(n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),j(e,t,r,n,i)}function I(e){return h.stringContains(e,h.nodeModulesPathPart)}function O(e,t){e=e.indexOf(h.directorySeparator,t+1);return-1===e?t:e}function M(e,t,r,n){return _(L(e,t,r,n))}function L(e,t,r,n){if(e===f.Json||e===f.TSConfig){var i=h.tryRemoveExtension(t,".json");return void 0===i&&e===f.Json?void 0:R(i||t,e,r,n)}var a=R(t,e,r,n);if(a)return a;if(h.hasJSFileExtension(t)){i=h.removeFileExtension(t);return n.traceEnabled&&(a=t.substring(i.length),v(n.host,h.Diagnostics.File_name_0_has_a_1_extension_stripping_it,t,a)),R(i,e,r,n)}}function R(r,e,n,i){var t;switch(n||(t=h.getDirectoryPath(r))&&(n=!h.directoryProbablyExists(t,i.host)),e){case f.DtsOnly:return a(".d.ts");case f.TypeScript:return a(".ts")||a(".tsx")||a(".d.ts");case f.JavaScript:return a(".js")||a(".jsx");case f.TSConfig:case f.Json:return a(".json")}function a(e){var t=B(r+e,n,i);return void 0===t?void 0:{path:t,ext:e}}}function B(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&v(r.host,h.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&v(r.host,h.Diagnostics.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function j(e,t,r,n,i){void 0===i&&(i=!0);i=i?J(t,r,n):void 0;return u(i,z(e,t,r,n,i&&i.packageJsonContent,i&&i.versionPaths))}function J(e,t,r){var n=r.host,i=r.traceEnabled,a=!t&&h.directoryProbablyExists(e,n),o=h.combinePaths(e,"package.json");if(a&&n.fileExists(o)){t=h.readJson(o,n);return i&&v(n,h.Diagnostics.Found_package_json_at_0,o),{packageDirectory:e,packageJsonContent:t,versionPaths:s(t,r)}}a&&i&&v(n,h.Diagnostics.File_0_does_not_exist,o),r.failedLookupLocations.push(o)}function z(e,t,r,n,i,a){var o;if(i)switch(e){case f.JavaScript:case f.Json:o=x(i,t,n);break;case f.TypeScript:o=b(i,t,n)||x(i,t,n);break;case f.DtsOnly:o=b(i,t,n);break;case f.TSConfig:o=y(i,"tsconfig",t,n);break;default:return h.Debug.assertNever(e)}function s(e,t,r,n){var i,a,o=B(t,r,n);if(o){var s=(i=e,a=o,void 0!==(s=h.tryGetExtensionFromPath(a))&&function(e,t){switch(e){case f.JavaScript:return".js"===t||".jsx"===t;case f.TSConfig:case f.Json:return".json"===t;case f.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case f.DtsOnly:return".d.ts"===t}}(i,s)?{path:a,ext:s}:void 0);if(s)return _(s);n.traceEnabled&&v(n.host,h.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,o)}return w(e===f.DtsOnly?f.TypeScript:e,t,r,n,!1)}var c=o?!h.directoryProbablyExists(h.getDirectoryPath(o),n.host):void 0,u=r||!h.directoryProbablyExists(t,n.host),l=h.combinePaths(t,e===f.TSConfig?"tsconfig":"index");if(a&&(!o||h.containsPath(t,o))){r=h.getRelativePathFromDirectory(t,o||l,!1);n.traceEnabled&&v(n.host,h.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,h.version,r);a=H(e,r,t,a.paths,s,c||u,n);if(a)return p(a.value)}c=o&&p(s(e,o,c,n));return c||L(e,l,u,n)}function U(e){var t=e.indexOf(h.directorySeparator);return"@"===e[0]&&(t=e.indexOf(h.directorySeparator,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function V(e,t,r,n,i,a){return K(e,t,r,n,!1,i,a)}function K(r,n,e,i,a,t,o){var s=t&&t.getOrCreateCacheForModuleName(n,o);return h.forEachAncestorDirectory(h.normalizeSlashes(e),function(e){if("node_modules"!==h.getBaseFileName(e)){var t=Q(s,n,e,i);return t?t:Z(q(r,n,e,i,a))}})}function q(e,t,r,n,i){var a=h.combinePaths(r,"node_modules"),r=h.directoryProbablyExists(a,n.host);!r&&n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a);i=i?void 0:W(e,t,a,r,n);if(i)return i;if(e===f.TypeScript||e===f.DtsOnly){e=h.combinePaths(a,"@types"),a=r;return r&&!h.directoryProbablyExists(e,n.host)&&(n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),a=!1),W(f.DtsOnly,function(e,t){var r=G(e);t.traceEnabled&&r!==e&&v(t.host,h.Diagnostics.Scoped_package_detected_looking_in_0,r);return r}(t,n),e,a,n)}}function W(e,t,r,n,i){var a=h.normalizePath(h.combinePaths(r,t));if(c=J(a,!n,i)){var o=L(e,a,!n,i);if(o)return _(o);var s=z(e,a,!n,i,c.packageJsonContent,c.versionPaths);return u(c,s)}o=function(e,t,r,n){n=L(e,t,r,n)||z(e,t,r,n,c&&c.packageJsonContent,c&&c.versionPaths);return u(c,n)},s=U(t),t=s.packageName,s=s.rest;if(""!==s){var c,r=h.combinePaths(r,t);if((c=J(r,!n,i))&&c.versionPaths){i.traceEnabled&&v(i.host,h.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,c.versionPaths.version,h.version,s);t=n&&h.directoryProbablyExists(r,i.host),t=H(e,s,r,c.versionPaths.paths,o,!t,i);if(t)return t.value}}return o(e,a,!n,i)}function H(n,e,i,t,a,o,s){var r=h.matchPatternOrExact(h.getOwnKeys(t),e);if(r){var c=h.isString(r)?void 0:h.matchedText(r,e),r=h.isString(r)?r:h.patternText(r);return s.traceEnabled&&v(s.host,h.Diagnostics.Module_name_0_matched_pattern_1,e,r),{value:h.forEach(t[r],function(e){var t=c?e.replace("*",c):e,r=h.normalizePath(h.combinePaths(i,t));s.traceEnabled&&v(s.host,h.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,e,t);e=h.tryGetExtensionFromPath(r);if(void 0!==e){t=B(r,o,s);if(void 0!==t)return _({path:t,ext:e})}return a(n,r,o||!h.directoryProbablyExists(h.getDirectoryPath(r),s.host),s)})}}}h.nodeModuleNameResolver=A,h.nodeModulesPathPart="/node_modules/",h.pathContainsNodeModules=I,h.parsePackageName=U;var r="__";function G(e){if(h.startsWith(e,"@")){var t=e.replace(h.directorySeparator,r);if(t!==e)return t.slice(1)}return e}function X(e){return h.stringContains(e,r)?"@"+e.replace(r,h.directorySeparator):e}function Q(e,t,r,n){e=e&&e.get(r);if(e)return n.traceEnabled&&v(n.host,h.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),{value:(n.resultFromCache=e).resolvedModule&&{path:e.resolvedModule.resolvedFileName,originalPath:e.resolvedModule.originalPath||!0,extension:e.resolvedModule.extension,packageId:e.resolvedModule.packageId}}}function Y(a,e,t,r,o,s){var n=[],c={compilerOptions:t,host:r,traceEnabled:d(t,r),failedLookupLocations:n},u=h.getDirectoryPath(e),e=i(f.TypeScript)||i(f.JavaScript);return m(e&&e.value,!1,n,c.resultFromCache);function i(r){var e=S(r,a,u,M,c);if(e)return{value:e};if(h.isExternalModuleNameRelative(a)){var t=h.normalizePath(h.combinePaths(u,a));return Z(M(r,t,!1,c))}var n=o&&o.getOrCreateCacheForModuleName(a,s),i=h.forEachAncestorDirectory(u,function(e){var t=Q(n,a,e,c);if(t)return t;e=h.normalizePath(h.combinePaths(e,a));return Z(M(r,e,!1,c))});return i||(r===f.TypeScript?(e=a,t=u,i=c,K(f.DtsOnly,e,t,i,!0,void 0,void 0)):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}h.getTypesPackageName=function(e){return"@types/"+G(e)},h.mangleScopedPackageName=G,h.getPackageNameFromTypesPackageName=function(e){var t=h.removePrefix(e,"@types/");return t!==e?X(t):e},h.unmangleScopedPackageName=X,h.classicNameResolver=Y,h.loadModuleFromGlobalCache=function(e,t,r,n,i){var a=d(r,n);return a&&v(n,h.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i),a={compilerOptions:r,host:n,traceEnabled:a,failedLookupLocations:t=[]},m(q(f.DtsOnly,e,i,a,!1),!0,t,a.resultFromCache)}}(ts=ts||{}),function(A){var e;function F(e,t){return e.body&&!e.body.parent&&(A.setParent(e.body,e),A.setParentRecursive(e.body,!1)),e.body?u(e.body,t):1}function u(e,t){void 0===t&&(t=new A.Map);var r=A.getNodeId(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);e=function(e,r){switch(e.kind){case 253:case 254:return 0;case 255:if(A.isEnumConst(e))return 2;break;case 261:case 260:if(!A.hasSyntacticModifier(e,1))return 0;break;case 267:var t=e;if(t.moduleSpecifier||!t.exportClause||268!==t.exportClause.kind)break;for(var n=0,i=0,a=t.exportClause.elements;i<a.length;i++){var o=function(e,t){var r=e.propertyName||e.name,n=e.parent;for(;n;){if(A.isBlock(n)||A.isModuleBlock(n)||A.isSourceFile(n)){for(var i=n.statements,a=void 0,o=0,s=i;o<s.length;o++){var c=s[o];if(A.nodeHasName(c,r)){c.parent||(A.setParent(c,n),A.setParentRecursive(c,!1));c=u(c,t);if((void 0===a||a<c)&&(a=c),1===a)return a}}if(void 0!==a)return a}n=n.parent}return 1}(a[i],r);if(n<o&&(n=o),1===n)return n}return n;case 257:var s=0;return A.forEachChild(e,function(e){var t=u(e,r);switch(t){case 0:return;case 2:return void(s=2);case 1:return s=1,!0;default:A.Debug.assertNever(t)}}),s;case 256:return F(e,r);case 78:if(e.isInJSDocNamespace)return 0}return 1}(e,t);return t.set(r,e),e}function m(e){return A.Debug.attachFlowNodeDebugInfo(e),e}(e=A.ModuleInstanceState||(A.ModuleInstanceState={}))[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",A.getModuleInstanceState=F,(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";var v,P,r,w,b,y,x,l,D,S,I,O,M,L,R,B,j,J,z,U,T,V,n,C,K,i,q,W,a=(K=!1,i=0,q={flags:1},W={flags:1},function(e,t){v=e,P=t,r=A.getEmitScriptTarget(P),e=v,t=t,V=!(!A.getStrictOptionValue(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator,C=new A.Set,i=0,n=A.objectAllocator.getSymbolConstructor(),A.Debug.attachFlowNodeDebugInfo(q),A.Debug.attachFlowNodeDebugInfo(W),v.locals||(Oe(v),v.symbolCount=i,v.classifiableNames=C,function(){if(D){for(var e=b,t=l,r=x,n=w,i=I,a=0,o=D;a<o.length;a++){var s=o[a],c=A.getJSDocHost(s);b=A.findAncestor(c.parent,function(e){return!!(1&xe(e))})||v,x=A.getEnclosingBlockScopeContainer(c)||v,I=m({flags:2}),Oe((w=s).typeExpression);var u=A.getNameOfDeclaration(s);if((A.isJSDocEnumTag(s)||!s.fullName)&&u&&A.isPropertyAccessEntityNameExpression(u.parent)){c=Xe(u.parent);if(c){He(v.symbol,u.parent,c,!!A.findAncestor(u,function(e){return A.isPropertyAccessExpression(e)&&"prototype"===e.name.escapedText}),!1);c=b;switch(A.getAssignmentDeclarationPropertyAccessKind(u.parent)){case 1:case 2:b=A.isExternalOrCommonJsModule(v)?v:void 0;break;case 4:b=u.parent.expression;break;case 3:b=u.parent.expression.name;break;case 5:b=nt(v,u.parent.expression)?v:A.isPropertyAccessExpression(u.parent.expression)?u.parent.expression.name:u.parent.expression;break;case 0:return A.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}b&&_(s,524288,788968),b=c}}else A.isJSDocEnumTag(s)||!s.fullName||78===s.fullName.kind?(w=s.parent,ke(s,524288,788968)):Oe(s.fullName)}b=e,l=t,x=r,w=n,I=i}}()),z=j=B=R=L=M=O=I=D=l=x=y=b=w=r=P=v=void 0,K=U=S=!1,T=0});function E(e,t,r,n,i){return A.createDiagnosticForNodeInSourceFile(A.getSourceFileOfNode(e)||v,e,t,r,n,i)}function k(e,t){return i++,new n(e,t)}function N(e,t,r){e.flags|=r,(t.symbol=e).declarations=A.appendIfUnique(e.declarations,t),1955&r&&!e.exports&&(e.exports=A.createSymbolTable()),6240&r&&!e.members&&(e.members=A.createSymbolTable()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&r&&A.setValueDeclaration(e,t)}function H(e){if(266===e.kind)return e.isExportEquals?"export=":"default";var t=A.getNameOfDeclaration(e);if(t){if(A.isAmbientModule(e)){var r=A.getTextOfIdentifierOrLiteral(t);return A.isGlobalScopeAugmentation(e)?"__global":'"'+r+'"'}if(158===t.kind){var n=t.expression;return A.isStringOrNumericLiteralLike(n)?A.escapeLeadingUnderscores(n.text):A.isSignedNumericLiteral(n)?A.tokenToString(n.operator)+n.operand.text:(A.Debug.assert(A.isWellKnownSymbolSyntactically(n)),A.getPropertyNameForKnownSymbolName(A.idText(n.name)))}if(A.isWellKnownSymbolSyntactically(t))return A.getPropertyNameForKnownSymbolName(A.idText(t.name));if(A.isPrivateIdentifier(t)){n=A.getContainingClass(e);if(!n)return;n=n.symbol;return A.getSymbolNameForPrivateIdentifier(n,t.escapedText)}return A.isPropertyNameLiteral(t)?A.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(e.kind){case 166:return"__constructor";case 174:case 169:case 313:return"__call";case 175:case 170:return"__new";case 171:return"__index";case 267:return"__export";case 297:return"export=";case 216:if(2===A.getAssignmentDeclarationKind(e))return"export=";A.Debug.fail("Unknown binary declaration kind");break;case 308:return A.isJSDocConstructSignature(e)?"__new":"__call";case 160:return A.Debug.assert(308===e.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(A.SyntaxKind?A.SyntaxKind[e.parent.kind]:e.parent.kind)+", expected JSDocFunctionType"}),"arg"+e.parent.parameters.indexOf(e)}}function f(e){return A.isNamedDeclaration(e)?A.declarationNameToString(e.name):A.unescapeLeadingUnderscores(A.Debug.checkDefined(H(e)))}function G(e,t,r,n,i,a){A.Debug.assert(!A.hasDynamicName(r));var o,s,c,u,l,_,d=A.hasSyntacticModifier(r,512)||A.isExportSpecifier(r)&&"default"===r.name.escapedText,p=d&&t?"default":H(r);if(void 0===p)o=k(0,"__missing");else if(o=e.get(p),2885600&n&&C.add(p),o){if(a&&!o.isReplaceableByMethod)return o;o.flags&i&&(o.isReplaceableByMethod?e.set(p,o=k(0,p)):3&n&&67108864&o.flags||(A.isNamedDeclaration(r)&&A.setParent(r.name,r),s=2&o.flags?A.Diagnostics.Cannot_redeclare_block_scoped_variable_0:A.Diagnostics.Duplicate_identifier_0,c=!0,(384&o.flags||384&n)&&(s=A.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,c=!1),u=!1,A.length(o.declarations)&&(d||o.declarations&&o.declarations.length&&266===r.kind&&!r.isExportEquals)&&(s=A.Diagnostics.A_module_cannot_have_multiple_default_exports,u=!(c=!1)),l=[],A.isTypeAliasDeclaration(r)&&A.nodeIsMissing(r.type)&&A.hasSyntacticModifier(r,1)&&2887656&o.flags&&l.push(E(r,A.Diagnostics.Did_you_mean_0,"export type { "+A.unescapeLeadingUnderscores(r.name.escapedText)+" }")),_=A.getNameOfDeclaration(r)||r,A.forEach(o.declarations,function(e,t){var r=A.getNameOfDeclaration(e)||e,e=E(r,s,c?f(e):void 0);v.bindDiagnostics.push(u?A.addRelatedInfo(e,E(_,0===t?A.Diagnostics.Another_export_default_is_here:A.Diagnostics.and_here)):e),u&&l.push(E(r,A.Diagnostics.The_first_export_default_is_here))}),d=E(_,s,c?f(r):void 0),v.bindDiagnostics.push(A.addRelatedInfo.apply(void 0,__spreadArrays([d],l))),o=k(0,p)))}else e.set(p,o=k(0,p)),a&&(o.isReplaceableByMethod=!0);return N(o,r,n),o.parent?A.Debug.assert(o.parent===t,"Existing symbol parent should match new one"):o.parent=t,o}function _(e,t,r){var n=!!(1&A.getCombinedModifierFlags(e))||function(e){e.parent&&A.isModuleDeclaration(e)&&(e=e.parent);if(!A.isJSDocTypeAlias(e))return!1;if(!A.isJSDocEnumTag(e)&&e.fullName)return!0;e=A.getNameOfDeclaration(e);return!!e&&(!(!A.isPropertyAccessEntityNameExpression(e.parent)||!Xe(e.parent))||!!(A.isDeclaration(e.parent)&&1&A.getCombinedModifierFlags(e.parent)))}(e);if(2097152&t)return 270===e.kind||260===e.kind&&n?G(b.symbol.exports,b.symbol,e,t,r):G(b.locals,void 0,e,t,r);if(A.isJSDocTypeAlias(e)&&A.Debug.assert(A.isInJSFile(e)),A.isAmbientModule(e)||!(n||64&b.flags))return G(b.locals,void 0,e,t,r);if(!b.locals||A.hasSyntacticModifier(e,512)&&!H(e))return G(b.symbol.exports,b.symbol,e,t,r);n=111551&t?1048576:0,n=G(b.locals,void 0,e,n,r);return n.exportSymbol=G(b.symbol.exports,b.symbol,e,t,r),e.localSymbol=n}function X(e){Q(e,function(e){return 251===e.kind?Oe(e):void 0}),Q(e,function(e){return 251!==e.kind?Oe(e):void 0})}function Q(e,t){void 0===t&&(t=Oe),void 0!==e&&A.forEach(e,t)}function Y(e){A.forEachChild(e,Oe,Q)}function h(e){var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,h,v,b,x,D,S,T,C,E,k,N=K;if(K=!1,function(e){if(!(1&I.flags))return!1;{var r;I===q&&(A.isStatementButNotDeclaration(e)&&231!==e.kind||252===e.kind||256===e.kind&&function(e){e=F(e);return 1===e||2===e&&!!P.preserveConstEnums}(e))&&(I=W,P.allowUnreachableCode||(r=A.unreachableCodeIsError(P)&&!(8388608&e.flags)&&(!A.isVariableStatement(e)||!!(3&A.getCombinedNodeFlags(e.declarationList))||e.declarationList.declarations.some(function(e){return!!e.initializer})),function(e,r){var t,n;A.isStatement(e)&&rt(e)&&A.isBlock(e.parent)?(t=e.parent.statements,n=A.sliceAfter(t,e),A.getRangesWhere(n,rt,function(e,t){return r(n[e],n[t-1])})):r(e,e)}(e,function(e,t){return Ie(r,e,t,A.Diagnostics.Unreachable_code_detected)})))}return!0}(e))return Y(e),Me(e),void(K=N);switch(232<=e.kind&&e.kind<=248&&!P.allowUnreachableCode&&(e.flowNode=I),e.kind){case 236:C=de(T=e,re()),E=te(),k=te(),ie(C,I),I=C,le(T.expression,E,k),I=ce(E),_e(T.statement,k,C),ie(C,I),I=ce(k);break;case 235:b=e,x=re(),D=de(b,te()),S=te(),ie(x,I),I=x,_e(b.statement,S,D),ie(D,I),I=ce(D),le(b.expression,x,S),I=ce(S);break;case 237:b=de(D=e,re()),x=te(),S=te(),Oe(D.initializer),ie(b,I),I=b,le(D.condition,x,S),I=ce(x),_e(D.statement,S,b),Oe(D.incrementor),ie(b,I),I=ce(S);break;case 238:case 239:h=de(y=e,re()),v=te(),Oe(y.expression),ie(h,I),I=h,239===y.kind&&Oe(y.awaitModifier),ie(v,I),Oe(y.initializer),250!==y.initializer.kind&&me(y.initializer),_e(y.statement,v,h),ie(h,I),!void(I=ce(v));break;case 234:y=e,h=te(),v=te(),m=te(),le(y.expression,h,v),I=ce(h),Oe(y.thenStatement),ie(m,I),I=ce(v),Oe(y.elseStatement),ie(m,I),I=ce(m);break;case 242:case 246:Oe((g=e).expression),242===g.kind&&(U=!0,L&&ie(L,I)),!void(I=q);break;case 241:case 240:Oe((p=e).label),!void(p.label?(f=function(e){for(var t=z;t;t=t.next)if(t.name===e)return t;return}(p.label.escapedText))&&(f.referenced=!0,pe(p,f.breakTarget,f.continueTarget)):pe(p,O,M));break;case 247:m=e,g=L,_=j,d=te(),f=te(),p=te(),m.finallyBlock&&(L=f),ie(p,I),j=p,Oe(m.tryBlock),ie(d,I),m.catchClause&&(I=ce(p),ie(p=te(),I),j=p,Oe(m.catchClause),ie(d,I)),L=g,j=_,!void(I=m.finallyBlock?((_=te()).antecedents=A.concatenate(A.concatenate(d.antecedents,p.antecedents),f.antecedents),I=_,Oe(m.finallyBlock),1&I.flags?q:(L&&f.antecedents&&ie(L,ne(_,f.antecedents,I)),j&&p.antecedents&&ie(j,ne(_,p.antecedents,I)),d.antecedents?ne(_,d.antecedents,I):q)):ce(d));break;case 244:!function(e){var t=te();Oe(e.expression);var r=O,n=J;O=t,J=I,Oe(e.caseBlock),ie(t,I);var i=A.forEach(e.caseBlock.clauses,function(e){return 285===e.kind});e.possiblyExhaustive=!i&&!t.antecedents,i||ie(t,ae(J,e,0,0)),O=r,J=n,I=ce(t)}(e);break;case 258:!function(e){for(var t=e.clauses,r=Z(e.parent.expression),n=q,i=0;i<t.length;i++){for(var a=i;!t[i].statements.length&&i+1<t.length;)Oe(t[i]),i++;var o=te();ie(o,r?ae(J,e.parent,a,i+1):J),ie(o,n),I=ce(o);o=t[i];Oe(o),1&(n=I).flags||i===t.length-1||!P.noFallthroughCasesInSwitch||(o.fallthroughFlowNode=I)}}(e);break;case 284:_=I,I=J,Oe((d=e).expression),I=_,Q(d.statements);break;case 233:Oe((l=e).expression),fe(l.expression);break;case 245:l=e,u=te(),z={next:z,name:l.label.escapedText,breakTarget:u,continueTarget:void 0,referenced:!1},Oe(l.label),Oe(l.statement),z.referenced||P.allowUnusedLabels||function(e,t,r){Ie(e,t,t,r)}(A.unusedLabelIsError(P),l.label,A.Diagnostics.Unused_label),z=z.next,ie(u,I),!void(I=ce(u));break;case 214:!void(53===(c=e).operator?(u=R,R=B,B=u,Y(c),B=R,R=u):(Y(c),45!==c.operator&&46!==c.operator||me(c.operand)));break;case 215:Y(s=e),45!==s.operator&&46!==s.operator||me(s.operand);break;case 216:if(A.isDestructuringAssignment(e))return o=e,(K=N)?(K=!1,Oe(o.operatorToken),Oe(o.right),K=!0,Oe(o.left)):(K=!0,Oe(o.left),K=!1,Oe(o.operatorToken),Oe(o.right)),void me(o.left);!function(e){for(var n={expr:[e],state:[1],inStrictMode:[void 0],parent:[void 0]},i=0;0<=i;)switch(e=n.expr[i],n.state[i]){case 0:A.setParent(e,w);var t=V;Re(e);var r=w;w=e,o(1,t,r);break;case 1:55===(a=e.operatorToken.kind)||56===a||60===a||A.isLogicalOrCoalescingAssignmentOperator(a)?(ue(e)?(r=te(),ye(e,r,r),I=ce(r)):ye(e,R,B),s()):(o(2),c(e.left));break;case 2:27===e.operatorToken.kind&&fe(e.left),o(3),c(e.operatorToken);break;case 3:o(4),c(e.right);break;case 4:var a=e.operatorToken.kind;A.isAssignmentOperator(a)&&!A.isAssignmentTarget(e)&&(me(e.left),62===a&&202===e.left.kind&&ee(e.left.expression)&&(I=oe(256,I,e))),s();break;default:return A.Debug.fail("Invalid state "+n.state[i]+" for bindBinaryExpressionFlow")}function o(e,t,r){n.state[i]=e,void 0!==t&&(n.inStrictMode[i]=t),void 0!==r&&(n.parent[i]=r)}function s(){void 0!==n.inStrictMode[i]&&(V=n.inStrictMode[i],w=n.parent[i]),i--}function c(e){e&&A.isBinaryExpression(e)&&!A.isDestructuringAssignment(e)?(i++,n.expr[i]=e,n.state[i]=0,n.inStrictMode[i]=void 0,n.parent[i]=void 0):Oe(e)}}(e);break;case 210:Y(a=e),201===a.expression.kind&&me(a.expression);break;case 217:c=e,s=te(),o=te(),a=te(),le(c.condition,s,o),I=ce(s),Oe(c.questionToken),Oe(c.whenTrue),ie(a,I),I=ce(o),Oe(c.colonToken),Oe(c.whenFalse),ie(a,I),I=ce(a);break;case 249:Y(i=e),(i.initializer||A.isForInOrOfStatement(i.parent.parent))&&function e(t){var r=A.isOmittedExpression(t)?void 0:t.name;if(A.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e(a)}else I=oe(16,I,t)}(i);break;case 201:case 202:i=e,(A.isOptionalChain(i)?be:Y)(i);break;case 203:r=e,A.isOptionalChain(r)?be(r):208===(n=A.skipParentheses(r.expression)).kind||209===n.kind?(Q(r.typeArguments),Q(r.arguments),Oe(r.expression)):(Y(r),105===r.expression.kind&&(I=se(I,r))),!void(201===r.expression.kind&&(n=r.expression,A.isIdentifier(n.name)&&ee(n.expression)&&A.isPushOrUnshiftIdentifier(n.name)&&(I=oe(256,I,r))));break;case 225:r=e,(A.isOptionalChain(r)?be:Y)(r);break;case 331:case 324:case 325:t=e,A.setParent(t.tagName,t),325!==t.kind&&t.fullName&&(A.setParent(t.fullName,t),A.setParentRecursive(t.fullName,!1));break;case 297:X(e.statements),Oe(e.endOfFileToken);break;case 230:case 257:X(e.statements);break;case 198:t=e,A.isBindingPattern(t.name)?(Q(t.decorators),Q(t.modifiers),Oe(t.dotDotDotToken),Oe(t.propertyName),Oe(t.initializer),Oe(t.name)):Y(t);break;case 200:case 199:case 288:case 220:K=N;default:Y(e)}Me(e),K=N}function Z(e){switch(e.kind){case 78:case 79:case 107:case 201:case 202:return o(e);case 203:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(o(r[t]))return!0;if(201===e.expression.kind&&o(e.expression.expression))return!0;return!1}(e);case 207:case 225:return Z(e.expression);case 216:return function(e){switch(e.operatorToken.kind){case 62:case 74:case 75:case 76:return o(e.left);case 34:case 35:case 36:case 37:return ee(e.left)||ee(e.right)||t(e.right,e.left)||t(e.left,e.right);case 101:return ee(e.left);case 100:return function(e,t){return A.isStringLiteralLike(e)&&Z(t)}(e.left,e.right);case 27:return Z(e.right)}return!1}(e);case 214:return 53===e.operator&&Z(e.operand);case 211:return Z(e.expression)}return!1}function $(e){return 78===e.kind||79===e.kind||107===e.kind||105===e.kind||(A.isPropertyAccessExpression(e)||A.isNonNullExpression(e)||A.isParenthesizedExpression(e))&&$(e.expression)||A.isBinaryExpression(e)&&27===e.operatorToken.kind&&$(e.right)||A.isElementAccessExpression(e)&&A.isStringOrNumericLiteralLike(e.argumentExpression)&&$(e.expression)||A.isAssignmentExpression(e)&&$(e.left)}function o(e){return $(e)||A.isOptionalChain(e)&&o(e.expression)}function t(e,t){return A.isTypeOfExpression(e)&&ee(e.expression)&&A.isStringLiteralLike(t)}function ee(e){switch(e.kind){case 207:return ee(e.expression);case 216:switch(e.operatorToken.kind){case 62:return ee(e.left);case 27:return ee(e.right)}}return o(e)}function te(){return m({flags:4,antecedents:void 0})}function re(){return m({flags:8,antecedents:void 0})}function ne(e,t,r){return m({flags:1024,target:e,antecedents:t,antecedent:r})}function s(e){e.flags|=2048&e.flags?4096:2048}function ie(e,t){1&t.flags||A.contains(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),s(t))}function c(e,t,r){return 1&t.flags?t:r?!(109===r.kind&&64&e||94===r.kind&&32&e)||A.isExpressionOfOptionalChainRoot(r)||A.isNullishCoalesce(r.parent)?Z(r)?(s(t),m({flags:e,antecedent:t,node:r})):t:q:32&e?t:q}function ae(e,t,r,n){return s(e),m({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function oe(e,t,r){s(t);r=m({flags:e,antecedent:t,node:r});return j&&ie(j,r),r}function se(e,t){return s(e),m({flags:512,antecedent:e,node:t})}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:q}function d(e){for(;;)if(207===e.kind)e=e.expression;else{if(214!==e.kind||53!==e.operator)return 216===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function p(e){return e=A.skipParentheses(e),A.isBinaryExpression(e)&&A.isLogicalOrCoalescingAssignmentOperator(e.operatorToken.kind)}function ue(e){for(;A.isParenthesizedExpression(e.parent)||A.isPrefixUnaryExpression(e.parent)&&53===e.parent.operator;)e=e.parent;return!(function(e){var t=e.parent;switch(t.kind){case 234:case 236:case 235:return t.expression===e;case 237:case 217:return t.condition===e}}(e)||p(e.parent)||d(e.parent)||A.isOptionalChain(e.parent)&&e.parent.expression===e)}function g(e,t,r,n){var i=R,a=B;R=r,B=n,e(t),R=i,B=a}function le(e,t,r){g(Oe,e,t,r),e&&(p(e)||d(e)||A.isOptionalChain(e)&&A.isOutermostOptionalChain(e))||(ie(t,c(32,I,e)),ie(r,c(64,I,e)))}function _e(e,t,r){var n=O,i=M;O=t,M=r,Oe(e),O=n,M=i}function de(e,t){for(var r=z;r&&245===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function pe(e,t,r){r=241===e.kind?t:r;r&&(ie(r,I),I=q)}function fe(e){203===e.kind&&(e=e,A.isDottedName(e.expression)&&105!==e.expression.kind&&(I=se(I,e)))}function ge(e){216===e.kind&&62===e.operatorToken.kind?me(e.left):me(e)}function me(e){if($(e))I=oe(16,I,e);else if(199===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];220===n.kind?me(n.expression):ge(n)}else if(200===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];288===o.kind?ge(o.initializer):289===o.kind?me(o.name):290===o.kind&&me(o.expression)}}function ye(e,t,r){var n=te();55===e.operatorToken.kind||75===e.operatorToken.kind?le(e.left,n,r):le(e.left,t,n),I=ce(n),Oe(e.operatorToken),A.isLogicalOrCoalescingAssignmentOperator(e.operatorToken.kind)?(g(Oe,e.right,t,r),me(e.left),ie(t,c(32,I,e)),ie(r,c(64,I,e))):le(e.right,t,r)}function he(e){switch(e.kind){case 201:Oe(e.questionDotToken),Oe(e.name);break;case 202:Oe(e.questionDotToken),Oe(e.argumentExpression);break;case 203:Oe(e.questionDotToken),Q(e.typeArguments),Q(e.arguments)}}function ve(e,t,r){var n,i,a,o=A.isOptionalChainRoot(e)?te():void 0;g(Oe,n=e.expression,i=o||t,a=r),A.isOptionalChain(n)&&!A.isOutermostOptionalChain(n)||(ie(i,c(32,I,n)),ie(a,c(64,I,n))),o&&(I=ce(o)),g(he,e,t,r),A.isOutermostOptionalChain(e)&&(ie(t,c(32,I,e)),ie(r,c(64,I,e)))}function be(e){var t;ue(e)?(ve(e,t=te(),t),I=ce(t)):ve(e,R,B)}function xe(e){switch(e.kind){case 221:case 252:case 255:case 200:case 177:case 312:case 281:return 1;case 253:return 65;case 256:case 254:case 190:return 33;case 297:return 37;case 165:if(A.isObjectLiteralOrClassExpressionMethod(e))return 173;case 166:case 251:case 164:case 167:case 168:case 169:case 313:case 308:case 174:case 170:case 171:case 175:return 45;case 208:case 209:return 61;case 257:return 4;case 163:return e.initializer?4:0;case 287:case 237:case 238:case 239:case 258:return 2;case 230:return A.isFunctionLike(e.parent)?0:2}return 0}function De(e){l&&(l.nextContainer=e),l=e}function Se(e,t,r){switch(b.kind){case 256:return _(e,t,r);case 297:return n=e,i=t,a=r,A.isExternalModule(v)?_(n,i,a):G(v.locals,void 0,n,i,a);case 221:case 252:return n=e,i=t,a=r,A.hasSyntacticModifier(n,32)?G(b.symbol.exports,b.symbol,n,i,a):G(b.symbol.members,b.symbol,n,i,a);case 255:return G(b.symbol.exports,b.symbol,e,t,r);case 177:case 312:case 200:case 253:case 281:return G(b.symbol.members,b.symbol,e,t,r);case 174:case 175:case 169:case 170:case 313:case 171:case 165:case 164:case 166:case 167:case 168:case 251:case 208:case 209:case 308:case 331:case 324:case 254:case 190:return G(b.locals,void 0,e,t,r)}var n,i,a}function Te(e){var t;8388608&e.flags&&(t=e,!(t=A.isSourceFile(t)?t:A.tryCast(t.body,A.isModuleBlock))||!t.statements.some(function(e){return A.isExportDeclaration(e)||A.isExportAssignment(e)}))?e.flags|=64:e.flags&=-65}function Ce(e){var t=F(e),r=0!==t;return Se(e,r?512:1024,r?110735:0),t}function Ee(e,t,r){r=k(t,r);return 106508&t&&(r.parent=b.symbol),N(r,e,t),r}function ke(e,t,r){switch(x.kind){case 256:_(e,t,r);break;case 297:if(A.isExternalOrCommonJsModule(b)){_(e,t,r);break}default:x.locals||(x.locals=A.createSymbolTable(),De(x)),G(x.locals,void 0,e,t,r)}}function Ne(e){v.parseDiagnostics.length||8388608&e.flags||4194304&e.flags||A.isIdentifierName(e)||(V&&116<=e.originalKeywordKind&&e.originalKeywordKind<=124?v.bindDiagnostics.push(E(e,function(e){if(A.getContainingClass(e))return A.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(v.externalModuleIndicator)return A.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return A.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),A.declarationNameToString(e))):130===e.originalKeywordKind?A.isExternalModule(v)&&A.isInTopLevelContext(e)?v.bindDiagnostics.push(E(e,A.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,A.declarationNameToString(e))):32768&e.flags&&v.bindDiagnostics.push(E(e,A.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,A.declarationNameToString(e))):124===e.originalKeywordKind&&8192&e.flags&&v.bindDiagnostics.push(E(e,A.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,A.declarationNameToString(e))))}function Ae(e,t){var r,n;t&&78===t.kind&&(n=r=t,!A.isIdentifier(n)||"eval"!==n.escapedText&&"arguments"!==n.escapedText||(t=A.getErrorSpanForNode(v,t),v.bindDiagnostics.push(A.createFileDiagnostic(v,t.start,t.length,function(e){if(A.getContainingClass(e))return A.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(v.externalModuleIndicator)return A.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return A.Diagnostics.Invalid_use_of_0_in_strict_mode}(e),A.idText(r)))))}function Fe(e){V&&Ae(e,e.name)}function Pe(e){var t;r<2&&(297===x.kind||256===x.kind||A.isFunctionLike(x)||(t=A.getErrorSpanForNode(v,e),v.bindDiagnostics.push(A.createFileDiagnostic(v,t.start,t.length,(e=e,A.getContainingClass(e)?A.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:v.externalModuleIndicator?A.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:A.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5)))))}function we(e,t,r,n,i){e=A.getSpanOfTokenAtPosition(v,e.pos);v.bindDiagnostics.push(A.createFileDiagnostic(v,e.start,e.length,t,r,n,i))}function Ie(e,t,r,n){e=e,r={pos:A.getTokenPosOfNode(t,v),end:r.end},n=n,n=A.createFileDiagnostic(v,r.pos,r.end-r.pos,n),e?v.bindDiagnostics.push(n):v.bindSuggestionDiagnostics=A.append(v.bindSuggestionDiagnostics,__assign(__assign({},n),{category:A.DiagnosticCategory.Suggestion}))}function Oe(e){var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g;e&&(A.setParent(e,w),t=V,Re(e),w=(156<e.kind?(r=w,0===(d=xe(w=e))?h(e):(n=e,p=b,f=y,g=x,1&(i=d)?(209!==n.kind&&(y=b),b=x=n,32&i&&(b.locals=A.createSymbolTable()),De(b)):2&i&&((x=n).locals=void 0),4&i?(a=I,o=O,s=M,c=L,u=j,l=z,_=U,(d=16&i&&!A.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!A.getImmediatelyInvokedFunctionExpression(n))||(I=m({flags:2}),144&i&&(I.node=n)),L=d||166===n.kind||A.isInJSFile&&(251===n.kind||208===n.kind)?te():void 0,z=M=O=j=void 0,U=!1,h(n),n.flags&=-2817,!(1&I.flags)&&8&i&&A.nodeIsPresent(n.body)&&(n.flags|=256,U&&(n.flags|=512),n.endFlowNode=I),297===n.kind&&(n.flags|=T),L&&(ie(L,I),I=ce(L),166!==n.kind&&(!A.isInJSFile||251!==n.kind&&208!==n.kind)||(n.returnFlowNode=I)),d||(I=a),O=o,M=s,L=c,j=u,z=l,U=_):64&i?(S=!1,h(n),n.flags=S?128|n.flags:-129&n.flags):h(n),b=p,y=f,x=g)):(r=w,1===e.kind&&(w=e),Me(e)),r),V=t)}function Me(e){if(A.hasJSDocNodes(e))if(A.isInJSFile(e))for(var t=0,r=e.jsDoc;t<r.length;t++)Oe(a=r[t]);else for(var n=0,i=e.jsDoc;n<i.length;n++){var a=i[n];A.setParent(a,e),A.setParentRecursive(a,!1)}}function Le(e){if(!V)for(var t=0,r=e;t<r.length;t++){var n=r[t];if(!A.isPrologueDirective(n))return;if(function(e){e=A.getSourceTextOfNodeFromSourceFile(v,e.expression);return'"use strict"'===e||"'use strict'"===e}(n))return void(V=!0)}}function Re(e){switch(e.kind){case 78:if(e.isInJSDocNamespace){for(var t=e.parent;t&&!A.isJSDocTypeAlias(t);)t=t.parent;ke(t,524288,788968);break}case 107:return I&&(A.isExpression(e)||289===w.kind)&&(e.flowNode=I),Ne(e),0;case 105:e.flowNode=I;break;case 79:return"#constructor"===(h=e).escapedText&&(v.parseDiagnostics.length||v.bindDiagnostics.push(E(h,A.Diagnostics.constructor_is_a_reserved_word,A.declarationNameToString(h)))),0;case 201:case 202:var r=e;I&&$(r)&&(r.flowNode=I),A.isSpecialPropertyDeclaration(r)&&(107===(h=r).expression.kind?Ue(h):A.isBindableStaticAccessExpression(h)&&297===h.parent.parent.kind&&(A.isPrototypeAccess(h.expression)?qe(h,h.parent):We(h))),A.isInJSFile(r)&&v.commonJsModuleIndicator&&A.isModuleExportsAccessExpression(r)&&!it(x,"module")&&G(v.locals,void 0,r.expression,134217729,111550);break;case 216:switch(A.getAssignmentDeclarationKind(e)){case 1:Je(e);break;case 2:!function(e){if(je(e)){var t=A.getRightMostAssignedExpression(e.right);if(!(A.isEmptyObjectLiteral(t)||b===v&&nt(v,t))){if(A.isObjectLiteralExpression(t)&&A.every(t.properties,A.isShorthandPropertyAssignment))return A.forEach(t.properties,ze);t=A.exportAssignmentIsAlias(e)?2097152:1049092,t=G(v.symbol.exports,v.symbol,e,67108864|t,0),A.setValueDeclaration(t,e)}}}(e);break;case 3:qe(e.left,e);break;case 6:y=e,A.setParent(y.left,y),A.setParent(y.right,y),Qe(y.left.expression,y.left,!1,!0);break;case 4:Ue(e);break;case 5:var n=e.left.expression;if(A.isInJSFile(e)&&A.isIdentifier(n)){var i=it(x,n.escapedText);if(A.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)){Ue(e);break}}n=Ye((y=e).left.expression,b)||Ye(y.left.expression,x),!void((A.isInJSFile(y)||A.isFunctionSymbol(n))&&(i=A.getLeftmostAccessExpression(y.left),A.isIdentifier(i)&&2097152&(null===(i=it(b,i.escapedText))||void 0===i?void 0:i.flags)||(A.setParent(y.left,y),A.setParent(y.right,y),A.isIdentifier(y.left.expression)&&b===v&&nt(v,y.left.expression)?Je(y):A.hasDynamicName(y)?(Ee(y,67108868,"__computed"),n=He(n,y.left.expression,Xe(y.left),!1,!1),Ke(y,n)):We(A.cast(y.left,A.isBindableStaticNameExpression)))));break;case 0:break;default:A.Debug.fail("Unknown binary expression special property assignment kind")}return r=e,V&&A.isLeftHandSideExpression(r.left)&&A.isAssignmentOperator(r.operatorToken.kind)&&Ae(r,r.left),0;case 287:return m=e,V&&m.variableDeclaration&&Ae(m,m.variableDeclaration.name),0;case 210:return m=e,V&&78===m.expression.kind&&(m=A.getErrorSpanForNode(v,m.expression),v.bindDiagnostics.push(A.createFileDiagnostic(v,m.start,m.length,A.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))),0;case 8:return g=e,V&&32&g.numericLiteralFlags&&v.bindDiagnostics.push(E(g,A.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode)),0;case 215:return g=e,V&&Ae(g,g.operand),0;case 214:return f=e,V&&(45!==f.operator&&46!==f.operator||Ae(f,f.operand)),0;case 243:return f=e,V&&we(f,A.Diagnostics.with_statements_are_not_allowed_in_strict_mode),0;case 245:return p=e,V&&2<=P.target&&(A.isDeclarationStatement(p.statement)||A.isVariableStatement(p.statement))&&we(p.label,A.Diagnostics.A_label_is_not_allowed_here),0;case 187:return void(S=!0);case 172:break;case 159:return function(e){{var t;A.isJSDocTemplateTag(e.parent)?(t=A.find(e.parent.parent.tags,A.isJSDocTypeAlias)||A.getHostSignatureFromJSDoc(e.parent))?(t.locals||(t.locals=A.createSymbolTable()),G(t.locals,void 0,e,262144,526824)):Se(e,262144,526824):185===e.parent.kind?(t=function(e){e=A.findAncestor(e,function(e){return e.parent&&A.isConditionalTypeNode(e.parent)&&e.parent.extendsType===e});return e&&e.parent}(e.parent))?(t.locals||(t.locals=A.createSymbolTable()),G(t.locals,void 0,e,262144,526824)):Ee(e,262144,H(e)):Se(e,262144,526824)}}(e),0;case 160:return et(e),0;case 249:return $e(e),0;case 198:return e.flowNode=I,$e(e),0;case 163:case 162:return tt(p=e,4|(p.questionToken?16777216:0),0);case 288:case 289:return tt(e,4,0);case 291:return tt(e,8,900095);case 169:case 170:case 171:return Se(e,131072,0);case 165:case 164:return tt(e,8192|(e.questionToken?16777216:0),A.isObjectLiteralMethod(e)?0:103359);case 251:return function(e){v.isDeclarationFile||8388608&e.flags||A.isAsyncFunction(e)&&(T|=2048);Fe(e),V?(Pe(e),ke(e,16,110991)):Se(e,16,110991)}(e),0;case 166:return Se(e,16384,0);case 167:return tt(e,32768,46015);case 168:return tt(e,65536,78783);case 174:case 308:case 313:case 175:return function(e){var t=k(131072,H(e));N(t,e,131072);var r=k(2048,"__type");N(r,e,2048),r.members=A.createSymbolTable(),r.members.set(t.escapedName,t)}(e),0;case 177:case 312:case 190:return Ee(e,2048,"__type");case 319:return Y(d=e),(d=A.getHostSignatureFromJSDoc(d))&&165!==d.kind&&N(d.symbol,d,32),0;case 200:return function(e){var t;if((t={})[t.Property=1]="Property",t[t.Accessor=2]="Accessor",V&&!A.isAssignmentTarget(e))for(var r=new A.Map,n=0,i=e.properties;n<i.length;n++){var a,o,s=i[n];290!==s.kind&&78===s.name.kind&&(a=s.name,o=288===s.kind||289===s.kind||165===s.kind?1:2,(s=r.get(a.escapedText))?1==o&&1===s&&(s=A.getErrorSpanForNode(v,a),v.bindDiagnostics.push(A.createFileDiagnostic(v,s.start,s.length,A.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))):r.set(a.escapedText,o))}return Ee(e,4096,"__object")}(e);case 208:case 209:return function(e){v.isDeclarationFile||8388608&e.flags||A.isAsyncFunction(e)&&(T|=2048);I&&(e.flowNode=I);Fe(e);var t=e.name?e.name.escapedText:"__function";return Ee(e,16,t)}(e);case 203:switch(A.getAssignmentDeclarationKind(e)){case 7:return l=Ye((u=e).arguments[0]),_=297===u.parent.parent.kind,l=He(l,u.arguments[0],_,!1,!1),Ge(u,l,!1),0;case 8:return function(e){if(!je(e))return;var t=Ze(e.arguments[0],void 0,function(e,t){return t&&N(t,e,67110400),t});t&&G(t.exports,t,e,1048580,0)}(e),0;case 9:return function(e){var t=Ye(e.arguments[0].expression);t&&t.valueDeclaration&&N(t,t.valueDeclaration,32);Ge(e,t,!0)}(e),0;case 0:break;default:return A.Debug.fail("Unknown call expression assignment declaration kind")}A.isInJSFile(e)&&(d=e,!v.commonJsModuleIndicator&&A.isRequireCall(d,!1)&&je(d));break;case 221:case 252:return V=!0,function(e){252===e.kind?ke(e,32,899503):(n=e.name?e.name.escapedText:"__class",Ee(e,32,n),e.name&&C.add(e.name.escapedText));var t=e.symbol,r=k(4194308,"prototype"),n=t.exports.get(r.escapedName);n&&(e.name&&A.setParent(e.name,e),v.bindDiagnostics.push(E(n.declarations[0],A.Diagnostics.Duplicate_identifier_0,A.symbolName(r)))),t.exports.set(r.escapedName,r),r.parent=t}(e),0;case 253:return ke(e,64,788872),0;case 254:return ke(e,524288,788968),0;case 255:return c=e,A.isEnumConst(c)?ke(c,128,899967):ke(c,256,899327);case 256:return Te(c=e),A.isAmbientModule(c)?(A.hasSyntacticModifier(c,1)&&we(c,A.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),A.isModuleAugmentationExternal(c)?Ce(c):(o=void 0,10===c.name.kind&&(s=c.name.text,A.hasZeroOrOneAsteriskCharacter(s)?o=A.tryParsePattern(s):we(c.name,A.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s)),s=Se(c,512,110735),v.patternAmbientModules=A.append(v.patternAmbientModules,o&&{pattern:o,symbol:s}))):0!==(o=Ce(c))&&((s=c.symbol).constEnumOnlyModule=!(304&s.flags)&&2===o&&!1!==s.constEnumOnlyModule),0;case 281:return Ee(e,4096,"__jsxAttributes");case 280:return Se(e,4,0);case 260:case 263:case 265:case 270:return Se(e,2097152,2097152);case 259:return function(e){e.modifiers&&e.modifiers.length&&v.bindDiagnostics.push(E(e,A.Diagnostics.Modifiers_cannot_appear_here));var t=A.isSourceFile(e.parent)?A.isExternalModule(e.parent)?e.parent.isDeclarationFile?void 0:A.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:A.Diagnostics.Global_module_exports_may_only_appear_in_module_files:A.Diagnostics.Global_module_exports_may_only_appear_at_top_level;t?v.bindDiagnostics.push(E(e,t)):(v.symbol.globalExports=v.symbol.globalExports||A.createSymbolTable(),G(v.symbol.globalExports,v.symbol,e,2097152,2097152))}(e),0;case 262:return(s=e).name&&Se(s,2097152,2097152),0;case 267:return a=e,b.symbol&&b.symbol.exports?a.exportClause?A.isNamespaceExport(a.exportClause)&&(A.setParent(a.exportClause,a),G(b.symbol.exports,b.symbol,a.exportClause,2097152,2097152)):G(b.symbol.exports,b.symbol,a,8388608,0):Ee(a,8388608,H(a)),0;case 266:return function(e){{var t;b.symbol&&b.symbol.exports?(t=A.exportAssignmentIsAlias(e)?2097152:4,t=G(b.symbol.exports,b.symbol,e,t,67108863),e.isExportEquals&&A.setValueDeclaration(t,e)):Ee(e,2097152,H(e))}}(e),0;case 297:return Le(e.statements),Te(v),A.isExternalModule(v)?Be():A.isJsonSourceFile(v)&&(Be(),a=v.symbol,G(v.symbol.exports,v.symbol,v,4,67108863),v.symbol=a),0;case 230:if(!A.isFunctionLike(e.parent))return;case 257:return Le(e.statements),0;case 326:if(313===e.parent.kind)return et(e),0;if(312!==e.parent.kind)break;case 333:return Se(e,e.isBracketed||e.typeExpression&&307===e.typeExpression.type.kind?16777220:4,0);case 331:case 324:case 325:return(D=D||[]).push(e)}var a,o,s,c,u,l,_,d,p,f,g,m,y,h}function Be(){Ee(v,512,'"'+A.removeFileExtension(v.fileName)+'"')}function je(e){return!v.externalModuleIndicator&&(v.commonJsModuleIndicator||(v.commonJsModuleIndicator=e,Be()),1)}function Je(e){var t,r;!je(e)||(t=Ze(e.left.expression,void 0,function(e,t){return t&&N(t,e,67110400),t}))&&(r=A.isAliasableExpression(e.right)&&(A.isExportsIdentifier(e.left.expression)||A.isModuleExportsAccessExpression(e.left.expression))?2097152:1048580,A.setParent(e.left,e),G(t.exports,t,e.left,r,0))}function ze(e){G(v.symbol.exports,v.symbol,e,69206016,0)}function Ue(e){if(A.Debug.assert(A.isInJSFile(e)),!(A.isBinaryExpression(e)&&A.isPropertyAccessExpression(e.left)&&A.isPrivateIdentifier(e.left.name)||A.isPropertyAccessExpression(e)&&A.isPrivateIdentifier(e.name))){var t=A.getThisContainer(e,!1);switch(t.kind){case 251:case 208:var r=t.symbol;A.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&(n=t.parent.left,A.isBindableStaticAccessExpression(n)&&A.isPrototypeAccess(n.expression)&&(r=Ye(n.expression.expression,y))),r&&r.valueDeclaration&&(r.members=r.members||A.createSymbolTable(),A.hasDynamicName(e)?Ve(e,r):G(r.members,r,e,67108868,0),N(r,r.valueDeclaration,32));break;case 166:case 163:case 165:case 167:case 168:var n=t.parent,r=A.hasSyntacticModifier(t,32)?n.symbol.exports:n.symbol.members;A.hasDynamicName(e)?Ve(e,n.symbol):G(r,n.symbol,e,67108868,0,!0);break;case 297:if(A.hasDynamicName(e))break;t.commonJsModuleIndicator?G(t.symbol.exports,t.symbol,e,1048580,0):Se(e,1,111550);break;default:A.Debug.failBadSyntaxKind(t)}}}function Ve(e,t){Ee(e,4,"__computed"),Ke(e,t)}function Ke(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new A.Map)).set(A.getNodeId(e),e)}function qe(e,t){var r=e.expression,n=r.expression;A.setParent(n,r),A.setParent(r,e),A.setParent(e,t),Qe(n,e,!0,!0)}function We(e){A.Debug.assert(!A.isIdentifier(e)),A.setParent(e.expression,e),Qe(e.expression,e,!1,!1)}function He(e,t,r,n,i){return 2097152&(null==e?void 0:e.flags)||(r&&!n&&(e=Ze(t,e,function(e,t,r){return t?(N(t,e,67110400),t):G(r?r.exports:v.jsGlobalAugmentations||(v.jsGlobalAugmentations=A.createSymbolTable()),r,e,67110400,110735)})),i&&e&&e.valueDeclaration&&N(e,e.valueDeclaration,32)),e}function Ge(e,t,r){var n,i;t&&function(e){if(1072&e.flags)return!0;var t=e.valueDeclaration;if(t&&A.isCallExpression(t))return!!A.getAssignedExpandoInitializer(t);e=t?A.isVariableDeclaration(t)?t.initializer:A.isBinaryExpression(t)?t.right:A.isPropertyAccessExpression(t)&&A.isBinaryExpression(t.parent)?t.parent.right:void 0:void 0;if(e=e&&A.getRightMostAssignedExpression(e)){t=A.isPrototypeAccess(A.isVariableDeclaration(t)?t.name:A.isBinaryExpression(t)?t.left:t);return!!A.getExpandoInitializer(!A.isBinaryExpression(e)||56!==e.operatorToken.kind&&60!==e.operatorToken.kind?e:e.right,t)}return!1}(t)&&(n=r?t.members||(t.members=A.createSymbolTable()):t.exports||(t.exports=A.createSymbolTable()),r=i=0,A.isFunctionLikeDeclaration(A.getAssignedExpandoInitializer(e))?(i=8192,r=103359):A.isCallExpression(e)&&A.isBindableObjectDefinePropertyCall(e)&&(A.some(e.arguments[2].properties,function(e){e=A.getNameOfDeclaration(e);return!!e&&A.isIdentifier(e)&&"set"===A.idText(e)})&&(i|=65540,r|=78783),A.some(e.arguments[2].properties,function(e){e=A.getNameOfDeclaration(e);return!!e&&A.isIdentifier(e)&&"get"===A.idText(e)})&&(i|=32772,r|=46015)),0===i&&(i=4,r=0),G(n,t,e,67108864|i,-67108865&r))}function Xe(e){return A.isBinaryExpression(e.parent)?297===function(e){for(;A.isBinaryExpression(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:297===e.parent.parent.kind}function Qe(e,t,r,n){var i=Ye(e,b)||Ye(e,x),e=Xe(t);Ge(t,i=He(i,t.expression,e,r,n),r)}function Ye(e,t){if(void 0===t&&(t=b),A.isIdentifier(e))return it(t,e.escapedText);t=Ye(e.expression);return t&&t.exports&&t.exports.get(A.getElementOrPropertyAccessName(e))}function Ze(e,t,r){if(nt(v,e))return v.symbol;if(A.isIdentifier(e))return r(e,Ye(e),t);var n=Ze(e.expression,t,r),t=A.getNameOrArgument(e);return A.isPrivateIdentifier(t)&&A.Debug.fail("unexpected PrivateIdentifier"),r(t,n&&n.exports&&n.exports.get(A.getElementOrPropertyAccessName(e)),n)}function $e(e){V&&Ae(e,e.name),A.isBindingPattern(e.name)||(A.isInJSFile(e)&&A.isRequireVariableDeclaration(e,!0)&&!A.getJSDocTypeTag(e)?Se(e,2097152,2097152):A.isBlockOrCatchScoped(e)?ke(e,2,111551):A.isParameterDeclaration(e)?Se(e,1,111551):Se(e,1,111550))}function et(e){var t;326===e.kind&&313!==b.kind||(!V||8388608&e.flags||Ae(e,e.name),A.isBindingPattern(e.name)?Ee(e,1,"__"+e.parent.parameters.indexOf(e)):Se(e,1,111551),A.isParameterPropertyDeclaration(e,e.parent)&&G((t=e.parent.parent).symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0))}function tt(e,t,r){return v.isDeclarationFile||8388608&e.flags||!A.isAsyncFunction(e)||(T|=2048),I&&A.isObjectLiteralOrClassExpressionMethod(e)&&(e.flowNode=I),A.hasDynamicName(e)?Ee(e,t,"__computed"):Se(e,t,r)}function rt(e){return!(A.isFunctionDeclaration(e)||function(e){switch(e.kind){case 253:case 254:return!0;case 256:return 1!==F(e);case 255:return A.hasSyntacticModifier(e,2048);default:return!1}}(e)||A.isEnumDeclaration(e)||A.isVariableStatement(e)&&!(3&A.getCombinedNodeFlags(e))&&e.declarationList.declarations.some(function(e){return!e.initializer}))}function nt(e,t){for(var r,n=0,i=[t];i.length&&n<100;){if(n++,t=i.shift(),A.isExportsIdentifier(t)||A.isModuleExportsAccessExpression(t))return!0;!A.isIdentifier(t)||(r=it(e,t.escapedText))&&r.valueDeclaration&&A.isVariableDeclaration(r.valueDeclaration)&&r.valueDeclaration.initializer&&(r=r.valueDeclaration.initializer,i.push(r),A.isAssignmentExpression(r,!0)&&(i.push(r.left),i.push(r.right)))}return!1}function it(e,t){var r=e.locals&&e.locals.get(t);return r?r.exportSymbol||r:A.isSourceFile(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):e.symbol&&e.symbol.exports&&e.symbol.exports.get(t)}A.bindSourceFile=function(e,t){var r=["bind","bindSourceFile",{path:e.path}];A.tracing.begin.apply(A.tracing,r),A.performance.mark("beforeBind"),A.perfLogger.logStartBindFile(""+e.fileName),a(e,t),A.perfLogger.logStopBindFile(),A.performance.mark("afterBind"),A.performance.measure("Bind","beforeBind","afterBind"),A.tracing.end.apply(A.tracing,r)},A.isExportsOrModuleExportsOrAlias=nt}(ts=ts||{}),function(b){b.createGetSymbolWalker=function(i,l,_,d,p,f,g,m,y,h,v){return function(r){void 0===r&&(r=function(){return!0});var a=[],n=[];return{walkType:function(e){try{return s(e),{visitedTypes:b.getOwnValues(a),visitedSymbols:b.getOwnValues(n)}}finally{b.clear(a),b.clear(n)}},walkSymbol:function(e){try{return u(e),{visitedTypes:b.getOwnValues(a),visitedSymbols:b.getOwnValues(n)}}finally{b.clear(a),b.clear(n)}}};function s(e){var t,r,n,i;e&&(a[e.id]||u((a[e.id]=e).symbol)||(524288&e.flags&&(4&(t=(i=e).objectFlags)&&(s((n=e).target),b.forEach(v(n),s)),32&t&&(s((r=e).typeParameter),s(r.constraintType),s(r.templateType),s(r.modifiersType)),3&t&&(o(r=e),b.forEach(r.typeParameters,s),b.forEach(d(r),s),s(r.thisType)),24&t&&o(i)),262144&e.flags&&s(y(e)),3145728&e.flags&&(i=e,b.forEach(i.types,s)),4194304&e.flags&&s(e.type),8388608&e.flags&&(s((e=e).objectType),s(e.indexType),s(e.constraint))))}function c(e){var t=l(e);t&&s(t.type),b.forEach(e.typeParameters,s);for(var r=0,n=e.parameters;r<n.length;r++)u(n[r]);s(i(e)),s(_(e))}function o(e){s(m(e,0)),s(m(e,1));for(var e=p(e),t=0,r=e.callSignatures;t<r.length;t++)c(r[t]);for(var n=0,i=e.constructSignatures;n<i.length;n++)c(i[n]);for(var a=0,o=e.properties;a<o.length;a++)u(o[a])}function u(e){if(!e)return!1;var t=b.getSymbolId(e);return!n[t]&&(n[t]=e,!r(e)||(s(f(e)),e.exports&&e.exports.forEach(u),b.forEach(e.declarations,function(e){e.type&&176===e.type.kind&&(e=e.type,u(g(h(e.exprName))))}),!1))}}}}(ts=ts||{}),function(tS){var rS=/^".+"$/,nS="(anonymous)",t=1,r=1,iS=1,aS=1;(e={})[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType",(e={})[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next",(e={})[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield",(e={})[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts";var oS=new tS.Map(tS.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),sS=new tS.Map(tS.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));(e={})[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes",(e={})[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",(e={})[e.None=0]="None",e[e.NoIndexSignatures=1]="NoIndexSignatures",e[e.Writing=2]="Writing",e[e.CacheSymbol=4]="CacheSymbol",e[e.NoTupleBoundsCheck=8]="NoTupleBoundsCheck",e[e.ExpressionPosition=16]="ExpressionPosition",(e={})[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback",(e={})[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck",(e={})[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional",(e={})[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both",(e={}).resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers",(e={})[e.Local=0]="Local",e[e.Parameter=1]="Parameter";var cS=tS.and(mS,function(e){return!tS.isAccessor(e)});(e={})[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod",(e={})[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace",(e={})[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional",(e={})[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize";var uS,e,lS=new tS.Map(tS.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function _S(){}function dS(){this.flags=0}function pS(e){return e.id||(e.id=r,r++),e.id}function fS(e){return e.id||(e.id=t,t++),e.id}function gS(e,t){e=tS.getModuleInstanceState(e);return 1===e||t&&2===e}function mS(e){return 251!==e.kind&&165!==e.kind||!!e.body}function yS(e){switch(e.parent.kind){case 265:case 270:return tS.isIdentifier(e);default:return tS.isDeclarationName(e)}}function hS(e){switch(e.kind){case 262:case 260:case 263:case 265:return!0;case 78:return 265===e.parent.kind;default:return!1}}function vS(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function bS(e){return!!(1&e.flags)}function xS(e){return!!(2&e.flags)}tS.getNodeId=pS,tS.getSymbolId=fS,tS.isInstantiatedModule=gS,tS.createTypeChecker=function(b,M){var x,s,c,H,o=tS.memoize(function(){var t=new tS.Set;return b.getSourceFiles().forEach(function(e){e.resolvedModules&&tS.forEachEntry(e.resolvedModules,function(e){e&&e.packageId&&t.add(e.packageId.name)})}),t}),n=tS.objectAllocator.getSymbolConstructor(),t=tS.objectAllocator.getTypeConstructor(),u=tS.objectAllocator.getSignatureConstructor(),r=0,i=0,_=0,a=0,l=0,d=0,p=0,f=[],A=tS.createSymbolTable(),g=[1],G=b.getCompilerOptions(),R=tS.getEmitScriptTarget(G),D=tS.getEmitModuleKind(G),m=tS.getAllowSyntheticDefaultImports(G),X=tS.getStrictOptionValue(G,"strictNullChecks"),O=tS.getStrictOptionValue(G,"strictFunctionTypes"),S=tS.getStrictOptionValue(G,"strictBindCallApply"),T=tS.getStrictOptionValue(G,"strictPropertyInitialization"),Q=tS.getStrictOptionValue(G,"noImplicitAny"),y=tS.getStrictOptionValue(G,"noImplicitThis"),h=!!G.keyofStringsOnly,I=G.suppressExcessPropertyErrors?0:32768,v=function(){var o,e=b.getResolvedTypeReferenceDirectives();e&&(o=new tS.Map,e.forEach(function(e,t){e&&e.resolvedFileName&&(e=b.getSourceFile(e.resolvedFileName))&&function e(t,r){if(o.has(t.path))return;o.set(t.path,r);for(var n=0,i=t.referencedFiles;n<i.length;n++){var a=i[n].fileName,a=tS.resolveTripleslashReference(a,t.fileName),a=b.getSourceFile(a);a&&e(a,r)}}(e,t)}));return{getReferencedExportContainer:Hx,getReferencedImportDeclaration:Gx,getReferencedDeclarationWithCollidingName:Qx,isDeclarationWithCollidingName:Yx,isValueAliasDeclaration:function(e){e=tS.getParseTreeNode(e);return!e||Zx(e)},hasGlobalName:yD,isReferencedAliasDeclaration:function(e,t){e=tS.getParseTreeNode(e);return!e||rD(e,t)},getNodeCheckFlags:function(e){e=tS.getParseTreeNode(e);return e?cD(e):0},isTopLevelValueImportEqualsWithEntityName:$x,isDeclarationVisible:xa,isImplementationOfOverload:nD,isRequiredInitializedParameter:iD,isOptionalUninitializedParameterProperty:aD,isExpandoFunctionDeclaration:oD,getPropertiesOfContainerFunction:sD,createTypeOfDeclaration:fD,createReturnTypeOfSignatureDeclaration:gD,createTypeOfExpression:mD,createLiteralConstValue:xD,isSymbolAccessible:ea,isEntityNameVisible:oa,getConstantValue:function(e){e=tS.getParseTreeNode(e,lD);return e?_D(e):void 0},collectLinkedAliases:Da,getReferencedValueDeclaration:vD,getTypeReferenceSerializationKind:pD,isOptionalParameter:vc,moduleExportsSomeValue:Wx,isArgumentsLocalBinding:qx,getExternalModuleFileFromDeclaration:TD,getTypeReferenceDirectivesForEntityName:function(e){if(!o)return;var t=790504;(78===e.kind&&rf(e)||201===e.kind&&!function(e){return e.parent&&223===e.parent.kind&&e.parent.parent&&286===e.parent.parent.kind}(e))&&(t=1160127);e=pi(e,t,!0);return e&&e!==Ne?r(e,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:bD,isLateBound:function(e){e=tS.getParseTreeNode(e,tS.isDeclaration),e=e&&Ai(e);return!!(e&&4096&tS.getCheckFlags(e))},getJsxFactoryEntity:DD,getJsxFragmentFactoryEntity:SD,getAllAccessorDeclarations:function(e){var t=168===(e=tS.getParseTreeNode(e,tS.isGetOrSetAccessorDeclaration)).kind?167:168,t=tS.getDeclarationOfKind(Ai(e),t);return{firstAccessor:t&&t.pos<e.pos?t:e,secondAccessor:t&&t.pos<e.pos?e:t,setAccessor:168===e.kind?e:t,getAccessor:167===e.kind?e:t}},getSymbolOfExternalModuleSpecifier:function(e){return mi(e,e,void 0)},isBindingCapturedByNode:function(e,t){e=tS.getParseTreeNode(e),t=tS.getParseTreeNode(t);return!!e&&!!t&&(tS.isVariableDeclaration(t)||tS.isBindingElement(t))&&function(e,t){e=wn(e);return!!e&&tS.contains(e.capturedBlockScopeBindings,Ai(t))}(e,t)},getDeclarationStatementsForSourceFile:function(e,t,r,n){var i=tS.getParseTreeNode(e);tS.Debug.assert(i&&297===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");i=Ai(e);return i?i.exports?C.symbolTableToDeclarationStatements(i.exports,e,t,r,n):[]:e.locals?C.symbolTableToDeclarationStatements(e.locals,e,t,r,n):[]},isImportRequiredByAugmentation:function(e){var t=tS.getSourceFileOfNode(e);if(!t.symbol)return!1;var r=TD(e);if(!r)return!1;if(r===t)return!1;for(var t=Ci(t.symbol),n=0,i=tS.arrayFrom(t.values());n<i.length;n++){var a=i[n];if(a.mergeId)for(var a=Ni(a),o=0,s=a.declarations;o<s.length;o++){var c=s[o];if(tS.getSourceFileOfNode(c)===r)return!0}}return!1}};function r(e,t){if(o&&function(e){if(!e.declarations)return!1;var t=e;for(;;){var r=Fi(t);if(!r)break;t=r}if(t.valueDeclaration&&297===t.valueDeclaration.kind&&512&t.flags)return!1;for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n],a=tS.getSourceFileOfNode(a);if(o.has(a.path))return!0}return!1}(e)){for(var r,n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(a.symbol&&a.symbol.flags&t){a=tS.getSourceFileOfNode(a),a=o.get(a.path);if(!a)return;(r=r||[]).push(a)}}return r}}}(),C={typeToTypeNode:function(t,e,r,n){return E(e,r,n,function(e){return B(t,e)})},indexInfoToIndexSignatureDeclaration:function(t,r,e,n,i){return E(e,n,i,function(e){return j(t,r,e,void 0)})},signatureToSignatureDeclaration:function(t,r,e,n,i){return E(e,n,i,function(e){return J(t,r,e)})},symbolToEntityName:function(t,r,e,n,i){return E(e,n,i,function(e){return ee(t,e,r,!1)})},symbolToExpression:function(t,r,e,n,i){return E(e,n,i,function(e){return te(t,e,r)})},symbolToTypeParameterDeclarations:function(t,e,r,n){return E(e,r,n,function(e){return q(t,e)})},symbolToParameterDeclaration:function(t,e,r,n){return E(e,r,n,function(e){return L(t,e)})},typeParameterToDeclaration:function(t,e,r,n){return E(e,r,n,function(e){return z(t,e)})},symbolTableToDeclarationStatements:function(t,e,r,n,i){return E(e,r,n,function(e){return function(e,y,h){var v=r(tS.factory.createPropertyDeclaration,165,!0),b=r(function(e,t,r,n,i){return tS.factory.createPropertySignature(t,r,n,i)},164,!1),x=y.enclosingDeclaration,u=[],i=new tS.Set,n=[],a=y;y=__assign(__assign({},a),{usedSymbolNames:new tS.Set(a.usedSymbolNames),remappedSymbolNames:new tS.Map,tracker:__assign(__assign({},a.tracker),{trackSymbol:function(e,t,r){var n;0===ea(e,t,r,!1).accessibility?(n=K(e,y,r),4&e.flags||D(n[0])):a.tracker&&a.tracker.trackSymbol&&a.tracker.trackSymbol(e,t,r)}})}),tS.forEachEntry(e,function(e,t){L(e,tS.unescapeLeadingUnderscores(t))});var c=!h,t=e.get("export=");t&&1<e.size&&2097152&t.flags&&(e=tS.createSymbolTable()).set("export=",t);return d(e),function(e){e=function(o){var e=tS.findIndex(o,function(e){return tS.isExportDeclaration(e)&&!e.moduleSpecifier&&!!e.exportClause&&tS.isNamedExports(e.exportClause)});{var t,r;0<=e&&(t=o[e],r=tS.mapDefined(t.exportClause.elements,function(t){if(!t.propertyName){var e=tS.indicesOf(o),e=tS.filter(e,function(e){return tS.nodeHasName(o[e],t.name)});if(tS.length(e)&&tS.every(e,function(e){return s(o[e])})){for(var r=0,n=e;r<n.length;r++){var i=n[r];o[i]=(a=o[i],i=void 0,i=-3&(1|tS.getEffectiveModifierFlags(a)),tS.factory.updateModifiers(a,i))}return}}var a;return t}),tS.length(r)?o[e]=tS.factory.updateExportDeclaration(t,t.decorators,t.modifiers,t.isTypeOnly,tS.factory.updateNamedExports(t.exportClause,r),t.moduleSpecifier):tS.orderedRemoveItemAt(o,e))}return o}(e=function(e){var t=tS.filter(e,function(e){return tS.isExportDeclaration(e)&&!e.moduleSpecifier&&!!e.exportClause&&tS.isNamedExports(e.exportClause)});1<tS.length(t)&&(r=tS.filter(e,function(e){return!tS.isExportDeclaration(e)||!!e.moduleSpecifier||!e.exportClause}),e=__spreadArrays(r,[tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports(tS.flatMap(t,function(e){return tS.cast(e.exportClause,tS.isNamedExports).elements})),void 0)]));var r=tS.filter(e,function(e){return tS.isExportDeclaration(e)&&!!e.moduleSpecifier&&!!e.exportClause&&tS.isNamedExports(e.exportClause)});if(1<tS.length(r)){t=tS.group(r,function(e){return tS.isStringLiteral(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"});if(t.length!==r.length)for(var n=0,i=t;n<i.length;n++)!function(t){1<t.length&&(e=__spreadArrays(tS.filter(e,function(e){return-1===t.indexOf(e)}),[tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports(tS.flatMap(t,function(e){return tS.cast(e.exportClause,tS.isNamedExports).elements})),t[0].moduleSpecifier)]))}(i[n])}return e}(e=function(e){var t=tS.find(e,tS.isExportAssignment),r=tS.findIndex(e,tS.isModuleDeclaration),n=-1!==r?e[r]:void 0;{var i,a,o,s;n&&t&&t.isExportEquals&&tS.isIdentifier(t.expression)&&tS.isIdentifier(n.name)&&tS.idText(n.name)===tS.idText(t.expression)&&n.body&&tS.isModuleBlock(n.body)&&(i=tS.filter(e,function(e){return!!(1&tS.getEffectiveModifierFlags(e))}),a=n.name,o=n.body,tS.length(i)&&(n=tS.factory.updateModuleDeclaration(n,n.decorators,n.modifiers,n.name,o=tS.factory.updateModuleBlock(o,tS.factory.createNodeArray(__spreadArrays(n.body.statements,[tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports(tS.map(tS.flatMap(i,function(e){if(tS.isVariableStatement(e))return tS.filter(tS.map(e.declarationList.declarations,tS.getNameOfDeclaration),l);return tS.filter([tS.getNameOfDeclaration(e)],l)}),function(e){return tS.factory.createExportSpecifier(void 0,e)})),void 0)])))),e=__spreadArrays(e.slice(0,r),[n],e.slice(r+1))),tS.find(e,function(e){return e!==n&&tS.nodeHasName(e,a)})||(u=[],s=!tS.some(o.statements,function(e){return tS.hasSyntacticModifier(e,1)||tS.isExportAssignment(e)||tS.isExportDeclaration(e)}),tS.forEach(o.statements,function(e){S(e,s?1:0)}),e=__spreadArrays(tS.filter(e,function(e){return e!==n&&e!==t}),u)))}return e}(e))),x&&(tS.isSourceFile(x)&&tS.isExternalOrCommonJsModule(x)||tS.isModuleDeclaration(x))&&(!tS.some(e,tS.isExternalModuleIndicator)||!tS.hasScopeMarker(e)&&tS.some(e,tS.needsScopeMarker))&&e.push(tS.createEmptyExports(tS.factory));return e}(u);function l(e){return!!e&&78===e.kind}function s(e){return tS.isEnumDeclaration(e)||tS.isVariableStatement(e)||tS.isFunctionDeclaration(e)||tS.isClassDeclaration(e)||tS.isModuleDeclaration(e)&&!tS.isExternalModuleAugmentation(e)&&!tS.isGlobalScopeAugmentation(e)||tS.isInterfaceDeclaration(e)||wx(e)}function _(e){var t=-2&tS.getEffectiveModifierFlags(e);return tS.factory.updateModifiers(e,t)}function d(e,t,r){t||n.push(new tS.Map),e.forEach(function(e){o(e,!1,!!r)}),t||(n[n.length-1].forEach(function(e){o(e,!0,!!r)}),n.pop())}function o(e,t,r){var n=Ni(e);i.has(fS(n))||(i.add(fS(n)),(!t||tS.length(e.declarations)&&tS.some(e.declarations,function(e){return!!tS.findAncestor(e,function(e){return e===x})}))&&(y=function(e){e=__assign({},e);e.typeParameterNames&&(e.typeParameterNames=new tS.Map(e.typeParameterNames));e.typeParameterNamesByText&&(e.typeParameterNamesByText=new tS.Set(e.typeParameterNamesByText));e.typeParameterSymbolList&&(e.typeParameterSymbolList=new tS.Set(e.typeParameterSymbolList));return e}(n=y),function(e,t,r){var n=tS.unescapeLeadingUnderscores(e.escapedName),i="default"===e.escapedName;if(t&&!(131072&y.flags)&&tS.isStringANonContextualKeyword(n)&&!i)return y.encounteredError=!0;var a=i&&!!(-113&e.flags||16&e.flags&&tS.length(Rs(_o(e))))&&!(2097152&e.flags),o=!a&&!t&&tS.isStringANonContextualKeyword(n)&&!i;(a||o)&&(t=!0);var s=(t?0:1)|(i&&!a?512:0),c=1536&e.flags&&7&e.flags&&"export="!==e.escapedName,u=c&&F(_o(e),e);(8208&e.flags||u)&&C(_o(e),e,L(e,n),s);524288&e.flags&&function(e,t,r){var n=Fo(e),i=Pn(e).typeParameters,a=tS.map(i,function(e){return z(e,y)}),i=(o=tS.find(e.declarations,tS.isJSDocTypeAlias))?o.comment||o.parent.comment:void 0,o=y.flags;y.flags|=8388608,S(tS.setSyntheticLeadingComments(tS.factory.createTypeAliasDeclaration(void 0,void 0,L(e,t),a,B(n,y)),i?[{kind:3,text:"*\n * "+i.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),y.flags=o}(e,n,s);{var l,_,d,p;!(7&e.flags&&"export="!==e.escapedName)||4194304&e.flags||32&e.flags||u||(r?A(e)&&(a=o=!1):(l=_o(e),_=L(e,n),16&e.flags||!F(l,e)?(d=2&e.flags?rg(e)?2:1:void 0,p=!a&&4&e.flags?M(_,e):_,(i=e.declarations&&tS.find(e.declarations,function(e){return tS.isVariableDeclaration(e)}))&&tS.isVariableDeclarationList(i.parent)&&1===i.parent.declarations.length&&(i=i.parent.parent),(r=tS.find(e.declarations,tS.isPropertyAccessExpression))&&tS.isBinaryExpression(r.parent)&&tS.isIdentifier(r.parent.right)&&l.symbol&&tS.isSourceFile(l.symbol.valueDeclaration)?(r=_===r.parent.right.escapedText?void 0:r.parent.right,S(tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports([tS.factory.createExportSpecifier(r,_)])),0),y.tracker.trackSymbol(l.symbol,y.enclosingDeclaration,111551)):(S(tS.setTextRange(tS.factory.createVariableStatement(void 0,tS.factory.createVariableDeclarationList([tS.factory.createVariableDeclaration(p,void 0,ce(y,l,e,x,D,h))],d)),i),p!==_?-2&s:s),p===_||t||(S(tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports([tS.factory.createExportSpecifier(p,_)])),0),a=o=!1))):C(l,e,_,s)))}384&e.flags&&function(e,t,r){S(tS.factory.createEnumDeclaration(void 0,tS.factory.createModifiersFromModifierFlags(Kh(e)?2048:0),L(e,t),tS.map(tS.filter(Rs(_o(e)),function(e){return!!(8&e.flags)}),function(e){var t=e.declarations&&e.declarations[0]&&tS.isEnumMember(e.declarations[0])?_D(e.declarations[0]):void 0;return tS.factory.createEnumMember(tS.unescapeLeadingUnderscores(e.escapedName),void 0===t?void 0:"string"==typeof t?tS.factory.createStringLiteral(t):tS.factory.createNumericLiteral(t))})),r)}(e,n,s);32&e.flags&&(4&e.flags&&tS.isBinaryExpression(e.valueDeclaration.parent)&&tS.isClassExpression(e.valueDeclaration.parent.right)?N:function(e,t,r){var n=vo(e),i=tS.map(n,function(e){return z(e,y)}),a=ko(d=Ao(e)),o=tS.mapDefined(function(e){for(var t=tS.emptyArray,r=0,n=e.symbol.declarations;r<n.length;r++){var i=n[r],i=tS.getEffectiveImplementsTypeNodes(i);if(i)for(var a=0,o=i;a<o.length;a++){var s=e_(o[a]);s!==Ie&&(t===tS.emptyArray?t=[s]:t.push(s))}}return t}(d),O),s=_o(e),c=!(null===(_=s.symbol)||void 0===_||!_.valueDeclaration)&&tS.isClassLike(s.symbol.valueDeclaration),u=c?Co(s):Fe,l=__spreadArrays(tS.length(a)?[tS.factory.createHeritageClause(93,tS.map(a,function(e){return function(e,t,r){e=I(e,111551);if(e)return e;r=M(r+"_base");return S(tS.factory.createVariableStatement(undefined,tS.factory.createVariableDeclarationList([tS.factory.createVariableDeclaration(r,undefined,B(t,y))],2)),0),tS.factory.createExpressionWithTypeArguments(tS.factory.createIdentifier(r),void 0)}(e,u,t)}))]:[],tS.length(o)?[tS.factory.createHeritageClause(116,o)]:[]),n=function(e,t,r){if(!tS.length(t))return r;var n=new tS.Map;tS.forEach(r,function(e){n.set(e.escapedName,e)});for(var i=0,a=t;i<a.length;i++)for(var o=Rs(ns(a[i],e.thisType)),s=0,c=o;s<c.length;s++){var u=c[s],l=n.get(u.escapedName);l&&!kd(l,u)&&n.delete(u.escapedName)}return tS.arrayFrom(n.values())}(d,a,Rs(d)),_=tS.filter(n,function(e){e=e.valueDeclaration;return e&&!(tS.isNamedDeclaration(e)&&tS.isPrivateIdentifier(e.name))}),o=tS.some(n,function(e){e=e.valueDeclaration;return e&&tS.isNamedDeclaration(e)&&tS.isPrivateIdentifier(e.name)})?[tS.factory.createPropertyDeclaration(void 0,void 0,tS.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:tS.emptyArray,n=tS.flatMap(_,function(e){return v(e,!1,a[0])}),_=tS.flatMap(tS.filter(Rs(s),function(e){return!(4194304&e.flags||"prototype"===e.escapedName||k(e))}),function(e){return v(e,!0,u)}),s=!c&&e.valueDeclaration&&tS.isInJSFile(e.valueDeclaration)&&!tS.some(uc(s,1))?[tS.factory.createConstructorDeclaration(void 0,tS.factory.createModifiersFromModifierFlags(8),[],void 0)]:P(1,s,a[0],166),d=w(d,a[0]);S(tS.setTextRange(tS.factory.createClassDeclaration(void 0,void 0,t,i,l,__spreadArrays(d,_,s,n,o)),e.declarations&&tS.filter(e.declarations,function(e){return tS.isClassDeclaration(e)||tS.isClassExpression(e)})[0]),r)})(e,L(e,n),s);(1536&e.flags&&(!c||function(e){return tS.every(T(e),function(e){return!(111551&ii(e).flags)})}(e))||u)&&function(a,e,t){var o,r,n=T(a),n=(i=tS.arrayToMultiMap(n,function(e){return e.parent&&e.parent===a?"real":"merged"})).get("real")||tS.emptyArray,i=i.get("merged")||tS.emptyArray;tS.length(n)&&(r=L(a,e),E(n,r,t,!!(67108880&a.flags))),tS.length(i)&&(o=tS.getSourceFileOfNode(y.enclosingDeclaration),r=L(a,e),i=tS.factory.createModuleBlock([tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports(tS.mapDefined(tS.filter(i,function(e){return"export="!==e.escapedName}),function(e){var t=tS.unescapeLeadingUnderscores(e.escapedName),r=L(e,t),n=e.declarations&&Kn(e);if(!o||(n?o===tS.getSourceFileOfNode(n):tS.some(e.declarations,function(e){return tS.getSourceFileOfNode(e)===o}))){var i=n&&ri(n,!0);D(i||e);var i=i?L(i,tS.unescapeLeadingUnderscores(i.escapedName)):r;return tS.factory.createExportSpecifier(t===i?void 0:i,t)}null!==(t=null===(i=y.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)&&void 0!==t&&t.call(i,o,a,e)})))]),S(tS.factory.createModuleDeclaration(void 0,void 0,tS.factory.createIdentifier(r),i,16),0))}(e,n,s);64&e.flags&&!(32&e.flags)&&function(e,t,r){var n=Ao(e),i=vo(e),a=tS.map(i,function(e){return z(e,y)}),o=ko(n),s=tS.length(o)?Qu(o):void 0,c=tS.flatMap(Rs(n),function(e){return b(e,!1,s)}),u=P(0,n,s,169),i=P(1,n,s,170),n=w(n,s),o=tS.length(o)?[tS.factory.createHeritageClause(93,tS.mapDefined(o,function(e){return I(e,111551)}))]:void 0;S(tS.factory.createInterfaceDeclaration(void 0,void 0,L(e,t),a,o,__spreadArrays(n,i,u,c)),r)}(e,n,s);2097152&e.flags&&N(e,L(e,n),s);4&e.flags&&"export="===e.escapedName&&A(e);if(8388608&e.flags)for(var f=0,g=e.declarations;f<g.length;f++){var m=g[f],m=gi(m,m.moduleSpecifier);m&&S(tS.factory.createExportDeclaration(void 0,void 0,!1,void 0,tS.factory.createStringLiteral(Y(m,y))),0)}a?S(tS.factory.createExportAssignment(void 0,void 0,!1,tS.factory.createIdentifier(L(e,n))),0):o&&S(tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports([tS.factory.createExportSpecifier(L(e,n),n)])),0)}(e,t,r),y=n))}function D(e){var t;tS.some(e.declarations,tS.isParameterDeclaration)||(tS.Debug.assertIsDefined(n[n.length-1]),M(tS.unescapeLeadingUnderscores(e.escapedName),e),t=!!(2097152&e.flags)&&!tS.some(e.declarations,function(e){return!!tS.findAncestor(e,tS.isExportDeclaration)||tS.isNamespaceExport(e)||tS.isImportEqualsDeclaration(e)&&!tS.isExternalModuleReference(e.moduleReference)}),n[t?0:n.length-1].set(fS(e),e))}function S(e,t){var r,n;tS.canHaveModifiers(e)&&(r=0,1&t&&y.enclosingDeclaration&&(n=y.enclosingDeclaration,tS.isSourceFile(n)&&(tS.isExternalOrCommonJsModule(n)||tS.isJsonSourceFile(n))||tS.isAmbientModule(n)&&!tS.isGlobalScopeAugmentation(n)||tS.isModuleDeclaration(y.enclosingDeclaration))&&s(e)&&(r|=1),!c||1&r||y.enclosingDeclaration&&8388608&y.enclosingDeclaration.flags||!(tS.isEnumDeclaration(e)||tS.isVariableStatement(e)||tS.isFunctionDeclaration(e)||tS.isClassDeclaration(e)||tS.isModuleDeclaration(e))||(r|=2),512&t&&(tS.isClassDeclaration(e)||tS.isInterfaceDeclaration(e)||tS.isFunctionDeclaration(e))&&(r|=512),r&&(e=tS.factory.updateModifiers(e,r|tS.getEffectiveModifierFlags(e)))),u.push(e)}function T(e){return e.exports?tS.filter(tS.arrayFrom(e.exports.values()),k):[]}function C(e,t,r,n){for(var i=0,a=uc(e,0);i<a.length;i++){var o=a[i],s=J(o,251,y,{name:tS.factory.createIdentifier(r),privateSymbolVisitor:D,bundledImports:h});S(tS.setTextRange(s,o.declaration&&tS.isVariableDeclaration(o.declaration.parent)&&o.declaration.parent.parent||o.declaration),n)}1536&t.flags&&t.exports&&t.exports.size||E(tS.filter(Rs(e),k),r,n,!0)}function E(e,t,r,n){var i,a,o,s;tS.length(e)&&(i=tS.arrayToMultiMap(e,function(e){return!tS.length(e.declarations)||tS.some(e.declarations,function(e){return tS.getSourceFileOfNode(e)===tS.getSourceFileOfNode(y.enclosingDeclaration)})?"local":"remote"}).get("local")||tS.emptyArray,s=tS.parseNodeFactory.createModuleDeclaration(void 0,void 0,tS.factory.createIdentifier(t),tS.factory.createModuleBlock([]),16),tS.setParent(s,x),s.locals=tS.createSymbolTable(e),s.symbol=e[0].parent,a=u,o=c,c=!(u=[]),t=__assign(__assign({},y),{enclosingDeclaration:s}),e=y,y=t,d(tS.createSymbolTable(i),n,!0),y=e,c=o,o=u,u=a,o=tS.map(o,function(e){return tS.isExportAssignment(e)&&!e.isExportEquals&&tS.isIdentifier(e.expression)?tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports([tS.factory.createExportSpecifier(e.expression,tS.factory.createIdentifier("default"))])):e}),o=tS.every(o,function(e){return tS.hasSyntacticModifier(e,1)})?tS.map(o,_):o,S(s=tS.factory.updateModuleDeclaration(s,s.decorators,s.modifiers,s.name,tS.factory.createModuleBlock(o)),r))}function k(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&32&tS.getEffectiveModifierFlags(e.valueDeclaration)&&tS.isClassLike(e.valueDeclaration.parent))}function N(e,t,r){var n=Kn(e);if(!n)return tS.Debug.fail();var i=Ni(ri(n,!0));if(i){var a=tS.unescapeLeadingUnderscores(i.escapedName);"export="===a&&(G.esModuleInterop||G.allowSyntheticDefaultImports)&&(a="default");var o=L(i,a);switch(D(i),n.kind){case 198:if(249===(null===(c=null===(s=n.parent)||void 0===s?void 0:s.parent)||void 0===c?void 0:c.kind)){var s=Y(i.parent||i,y),c=n.propertyName;S(tS.factory.createImportDeclaration(void 0,void 0,tS.factory.createImportClause(!1,void 0,tS.factory.createNamedImports([tS.factory.createImportSpecifier(c&&tS.isIdentifier(c)?tS.factory.createIdentifier(tS.idText(c)):void 0,tS.factory.createIdentifier(t))])),tS.factory.createStringLiteral(s)),0);break}tS.Debug.failBadSyntaxKind((null===(u=n.parent)||void 0===u?void 0:u.parent)||n,"Unhandled binding element grandparent kind in declaration serialization");break;case 289:216===(null===(_=null===(l=n.parent)||void 0===l?void 0:l.parent)||void 0===_?void 0:_.kind)&&p(tS.unescapeLeadingUnderscores(e.escapedName),o);break;case 249:if(tS.isPropertyAccessExpression(n.initializer)){var u=n.initializer,l=tS.factory.createUniqueName(t),_=Y(i.parent||i,y);S(tS.factory.createImportEqualsDeclaration(void 0,void 0,l,tS.factory.createExternalModuleReference(tS.factory.createStringLiteral(_))),0),S(tS.factory.createImportEqualsDeclaration(void 0,void 0,tS.factory.createIdentifier(t),tS.factory.createQualifiedName(l,u.name)),r);break}case 260:if("export="===i.escapedName&&tS.some(i.declarations,tS.isJsonSourceFile)){A(e);break}var d=!(512&i.flags||tS.isVariableDeclaration(n));S(tS.factory.createImportEqualsDeclaration(void 0,void 0,tS.factory.createIdentifier(t),d?ee(i,y,67108863,!1):tS.factory.createExternalModuleReference(tS.factory.createStringLiteral(Y(i,y)))),d?r:0);break;case 259:S(tS.factory.createNamespaceExportDeclaration(tS.idText(n.name)),0);break;case 262:S(tS.factory.createImportDeclaration(void 0,void 0,tS.factory.createImportClause(!1,tS.factory.createIdentifier(t),void 0),tS.factory.createStringLiteral(Y(i.parent||i,y))),0);break;case 263:S(tS.factory.createImportDeclaration(void 0,void 0,tS.factory.createImportClause(!1,void 0,tS.factory.createNamespaceImport(tS.factory.createIdentifier(t))),tS.factory.createStringLiteral(Y(i,y))),0);break;case 269:S(tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamespaceExport(tS.factory.createIdentifier(t)),tS.factory.createStringLiteral(Y(i,y))),0);break;case 265:S(tS.factory.createImportDeclaration(void 0,void 0,tS.factory.createImportClause(!1,void 0,tS.factory.createNamedImports([tS.factory.createImportSpecifier(t!==a?tS.factory.createIdentifier(a):void 0,tS.factory.createIdentifier(t))])),tS.factory.createStringLiteral(Y(i.parent||i,y))),0);break;case 270:d=n.parent.parent.moduleSpecifier;p(tS.unescapeLeadingUnderscores(e.escapedName),d?a:o,d&&tS.isStringLiteralLike(d)?tS.factory.createStringLiteral(d.text):void 0);break;case 266:A(e);break;case 216:case 201:case 202:"default"===e.escapedName||"export="===e.escapedName?A(e):p(t,o);break;default:return tS.Debug.failBadSyntaxKind(n,"Unhandled alias declaration kind in symbol serializer!")}}}function p(e,t,r){S(tS.factory.createExportDeclaration(void 0,void 0,!1,tS.factory.createNamedExports([tS.factory.createExportSpecifier(e!==t?t:void 0,e)]),r),0)}function A(e){if(4194304&e.flags)return!1;var t=tS.unescapeLeadingUnderscores(e.escapedName),r="export="===t,n=r||"default"===t,i=e.declarations&&Kn(e),a=i&&ri(i,!0);if(a&&tS.length(a.declarations)&&tS.some(a.declarations,function(e){return tS.getSourceFileOfNode(e)===tS.getSourceFileOfNode(x)})){var o=i&&(tS.isExportAssignment(i)||tS.isBinaryExpression(i)?tS.getExportAssignmentExpression(i):tS.getPropertyAssignmentAliasLikeExpression(i)),i=o&&tS.isEntityNameExpression(o)?function(e){switch(e.kind){case 78:return e;case 157:for(;e=e.left,78!==e.kind;);return e;case 201:do{if(tS.isModuleExportsAccessExpression(e.expression)&&!tS.isPrivateIdentifier(e.name))return e.name}while(78!==(e=e.expression).kind);return e}}(o):void 0,s=i&&pi(i,67108863,!0,!0,x);(s||a)&&D(s||a);s=y.tracker.trackSymbol;return y.tracker.trackSymbol=tS.noop,n?u.push(tS.factory.createExportAssignment(void 0,void 0,r,te(a,y,67108863))):i===o&&i?p(t,tS.idText(i)):o&&tS.isClassExpression(o)?p(t,L(a,tS.symbolName(a))):(c=M(t,e),S(tS.factory.createImportEqualsDeclaration(void 0,void 0,tS.factory.createIdentifier(c),ee(a,y,67108863,!1)),0),p(t,c)),y.tracker.trackSymbol=s,!0}var c=M(t,e),s=hp(_o(Ni(e)));return F(s,e)?C(s,e,c,n?0:1):S(tS.factory.createVariableStatement(void 0,tS.factory.createVariableDeclarationList([tS.factory.createVariableDeclaration(c,void 0,ce(y,s,e,x,D,h))],2)),a&&4&a.flags&&"export="===a.escapedName?2:t===c?1:0),n?(u.push(tS.factory.createExportAssignment(void 0,void 0,r,tS.factory.createIdentifier(c))),!0):t!==c&&(p(t,c),!0)}function F(e,t){var r=tS.getSourceFileOfNode(y.enclosingDeclaration);return 48&tS.getObjectFlags(e)&&!dc(e,0)&&!dc(e,1)&&!fa(e)&&!(!tS.length(tS.filter(Rs(e),k))&&!tS.length(uc(e,0)))&&!tS.length(uc(e,1))&&!oe(t,x)&&!(e.symbol&&tS.some(e.symbol.declarations,function(e){return tS.getSourceFileOfNode(e)!==r}))&&!tS.some(Rs(e),function(e){return Xo(e.escapedName)})&&!tS.some(Rs(e),function(e){return tS.some(e.declarations,function(e){return tS.getSourceFileOfNode(e)!==r})})&&tS.every(Rs(e),function(e){return tS.isIdentifierText(tS.symbolName(e),R)})}function r(d,p,f){return function(e,t,r){var n=tS.getDeclarationModifierFlagsFromSymbol(e),i=!!(8&n);if(t&&2887656&e.flags)return[];if(4194304&e.flags||r&&sc(r,e.escapedName)&&Mh(sc(r,e.escapedName))===Mh(e)&&(16777216&e.flags)==(16777216&sc(r,e.escapedName).flags)&&O_(_o(e),ka(r,e.escapedName)))return[];var a=-257&n|(t?32:0),o=ie(e,y),r=tS.find(e.declarations,tS.or(tS.isPropertyDeclaration,tS.isAccessor,tS.isVariableDeclaration,tS.isPropertySignature,tS.isBinaryExpression,tS.isPropertyAccessExpression));if(98304&e.flags&&f){t=[];return 65536&e.flags&&t.push(tS.setTextRange(tS.factory.createSetAccessorDeclaration(void 0,tS.factory.createModifiersFromModifierFlags(a),o,[tS.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,i?void 0:ce(y,_o(e),e,x,D,h))],void 0),tS.find(e.declarations,tS.isSetAccessor)||r)),32768&e.flags&&(n=8&n,t.push(tS.setTextRange(tS.factory.createGetAccessorDeclaration(void 0,tS.factory.createModifiersFromModifierFlags(a),o,[],n?void 0:ce(y,_o(e),e,x,D,h),void 0),tS.find(e.declarations,tS.isGetAccessor)||r))),t}if(98311&e.flags)return tS.setTextRange(d(void 0,tS.factory.createModifiersFromModifierFlags((Mh(e)?64:0)|a),o,16777216&e.flags?tS.factory.createToken(57):void 0,i?void 0:ce(y,_o(e),e,x,D,h),void 0),tS.find(e.declarations,tS.or(tS.isPropertyDeclaration,tS.isVariableDeclaration))||r);if(8208&e.flags){r=uc(_o(e),0);if(8&a)return tS.setTextRange(d(void 0,tS.factory.createModifiersFromModifierFlags((Mh(e)?64:0)|a),o,16777216&e.flags?tS.factory.createToken(57):void 0,void 0,void 0),tS.find(e.declarations,tS.isFunctionLikeDeclaration)||r[0]&&r[0].declaration||e.declarations[0]);for(var s=[],c=0,u=r;c<u.length;c++){var l=u[c],_=J(l,p,y,{name:o,questionToken:16777216&e.flags?tS.factory.createToken(57):void 0,modifiers:a?tS.factory.createModifiersFromModifierFlags(a):void 0});s.push(tS.setTextRange(_,l.declaration))}return s}return tS.Debug.fail("Unhandled class member kind! "+(e.__debugFlags||e.flags))}}function P(e,t,r,n){var i=uc(t,e);if(1===e){if(!r&&tS.every(i,function(e){return 0===tS.length(e.parameters)}))return[];if(r){var a=uc(r,1);if(!tS.length(a)&&tS.every(i,function(e){return 0===tS.length(e.parameters)}))return[];if(a.length===i.length){for(var o=!1,s=0;s<a.length;s++)if(!Ad(i[s],a[s],!1,!1,!0,M_)){o=!0;break}if(!o)return[]}}for(var c=0,u=0,l=i;u<l.length;u++){var _=l[u];_.declaration&&(c|=tS.getSelectedEffectiveModifierFlags(_.declaration,24))}if(c)return[tS.setTextRange(tS.factory.createConstructorDeclaration(void 0,tS.factory.createModifiersFromModifierFlags(c),[],void 0),i[0].declaration)]}for(var d=[],p=0,f=i;p<f.length;p++){var g=f[p],m=J(g,n,y);d.push(tS.setTextRange(m,g.declaration))}return d}function w(e,t){for(var r=[],n=0,i=[0,1];n<i.length;n++){var a=i[n],o=dc(e,a);if(o){if(t){var s=dc(t,a);if(s&&O_(o.type,s.type))continue}r.push(j(o,a,y,void 0))}}return r}function I(e,t){var r,n;if(e.target&&$i(e.target.symbol,x,t)?(r=tS.map($c(e),function(e){return B(e,y)}),n=te(e.target.symbol,y,788968)):e.symbol&&$i(e.symbol,x,t)&&(n=te(e.symbol,y,788968)),n)return tS.factory.createExpressionWithTypeArguments(n,r)}function O(e){var t=I(e,788968);return t||(e.symbol?tS.factory.createExpressionWithTypeArguments(te(e.symbol,y,788968),void 0):void 0)}function M(e,t){var r,n=t?fS(t):void 0;if(n&&y.remappedSymbolNames.has(n))return y.remappedSymbolNames.get(n);t&&(e=f(t,e));for(var i=0,a=e;null!==(r=y.usedSymbolNames)&&void 0!==r&&r.has(e);)e=a+"_"+ ++i;return null!==(t=y.usedSymbolNames)&&void 0!==t&&t.add(e),n&&y.remappedSymbolNames.set(n,e),e}function f(e,t){var r;return"default"!==t&&"__class"!==t&&"__function"!==t||(r=y.flags,y.flags|=16777216,e=ba(e,y),y.flags=r,t=0<e.length&&tS.isSingleOrDoubleQuote(e.charCodeAt(0))?tS.stripQuotes(e):e),"default"===t?t="_default":"export="===t&&(t="_exports"),t=tS.isIdentifierText(t,R)&&!tS.isStringANonContextualKeyword(t)?t:"_"+t.replace(/[^a-zA-Z0-9]/g,"_")}function L(e,t){var r=fS(e);return y.remappedSymbolNames.has(r)?y.remappedSymbolNames.get(r):(t=f(e,t),y.remappedSymbolNames.set(r,t),t)}}(t,e,i)})}};function E(e,t,r,n){var i,a;tS.Debug.assert(void 0===e||0==(8&e.flags));t={enclosingDeclaration:e,flags:t||0,tracker:r&&r.trackSymbol?r:{trackSymbol:tS.noop,moduleResolverHost:134217728&t?{getCommonSourceDirectory:b.getCommonSourceDirectory?function(){return b.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return b.getSourceFiles()},getCurrentDirectory:function(){return b.getCurrentDirectory()},getSymlinkCache:tS.maybeBind(b,b.getSymlinkCache),useCaseSensitiveFileNames:tS.maybeBind(b,b.useCaseSensitiveFileNames),redirectTargetsMap:b.redirectTargetsMap,getProjectReferenceRedirect:function(e){return b.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return b.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return b.fileExists(e)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},n=n(t);return t.truncating&&1&t.flags&&null!==(a=null===(i=t.tracker)||void 0===i?void 0:i.reportTruncationError)&&void 0!==a&&a.call(i),t.encounteredError?void 0:n}function k(e){return e.truncating||(e.truncating=e.approximateLength>(1&e.flags?tS.noTruncationMaximumTruncationLength:tS.defaultMaximumTruncationLength))}function B(e,g){x&&x.throwIfCancellationRequested&&x.throwIfCancellationRequested();var t=8388608&g.flags;if(g.flags&=-8388609,!e)return 262144&g.flags?(g.approximateLength+=3,tS.factory.createKeywordTypeNode(128)):void(g.encounteredError=!0);if(536870912&g.flags||(e=rc(e)),1&e.flags)return g.approximateLength+=3,tS.factory.createKeywordTypeNode(e===Me?136:128);if(2&e.flags)return tS.factory.createKeywordTypeNode(152);if(4&e.flags)return g.approximateLength+=6,tS.factory.createKeywordTypeNode(147);if(8&e.flags)return g.approximateLength+=6,tS.factory.createKeywordTypeNode(144);if(64&e.flags)return g.approximateLength+=6,tS.factory.createKeywordTypeNode(155);if(16&e.flags)return g.approximateLength+=7,tS.factory.createKeywordTypeNode(131);if(1024&e.flags&&!(1048576&e.flags)){var r=Fi(e.symbol),n=Z(r,g,788968);if(Ro(r)===e)return n;r=tS.symbolName(e.symbol);return tS.isIdentifierText(r,0)?v(n,tS.factory.createTypeReferenceNode(r,void 0)):tS.isImportTypeNode(n)?(n.isTypeOf=!0,tS.factory.createIndexedAccessTypeNode(n,tS.factory.createLiteralTypeNode(tS.factory.createStringLiteral(r)))):tS.isTypeReferenceNode(n)?tS.factory.createIndexedAccessTypeNode(tS.factory.createTypeQueryNode(n.typeName),tS.factory.createLiteralTypeNode(tS.factory.createStringLiteral(r))):tS.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&e.flags)return Z(e.symbol,g,788968);if(128&e.flags)return g.approximateLength+=e.value.length+2,tS.factory.createLiteralTypeNode(tS.setEmitFlags(tS.factory.createStringLiteral(e.value,!!(268435456&g.flags)),16777216));if(256&e.flags){r=e.value;return g.approximateLength+=(""+r).length,tS.factory.createLiteralTypeNode(r<0?tS.factory.createPrefixUnaryExpression(40,tS.factory.createNumericLiteral(-r)):tS.factory.createNumericLiteral(r))}if(2048&e.flags)return g.approximateLength+=tS.pseudoBigIntToString(e.value).length+1,tS.factory.createLiteralTypeNode(tS.factory.createBigIntLiteral(e.value));if(512&e.flags)return g.approximateLength+=e.intrinsicName.length,tS.factory.createLiteralTypeNode("true"===e.intrinsicName?tS.factory.createTrue():tS.factory.createFalse());if(8192&e.flags){if(!(1048576&g.flags)){if(Zi(e.symbol,g.enclosingDeclaration))return g.approximateLength+=6,Z(e.symbol,g,111551);g.tracker.reportInaccessibleUniqueSymbolError&&g.tracker.reportInaccessibleUniqueSymbolError()}return g.approximateLength+=13,tS.factory.createTypeOperatorNode(151,tS.factory.createKeywordTypeNode(148))}if(16384&e.flags)return g.approximateLength+=4,tS.factory.createKeywordTypeNode(113);if(32768&e.flags)return g.approximateLength+=9,tS.factory.createKeywordTypeNode(150);if(65536&e.flags)return g.approximateLength+=4,tS.factory.createLiteralTypeNode(tS.factory.createNull());if(131072&e.flags)return g.approximateLength+=5,tS.factory.createKeywordTypeNode(141);if(4096&e.flags)return g.approximateLength+=6,tS.factory.createKeywordTypeNode(148);if(67108864&e.flags)return g.approximateLength+=6,tS.factory.createKeywordTypeNode(145);if(hl(e))return 4194304&g.flags&&(g.encounteredError||32768&g.flags||(g.encounteredError=!0),g.tracker.reportInaccessibleThisError&&g.tracker.reportInaccessibleThisError()),g.approximateLength+=4,tS.factory.createThisTypeNode();if(!t&&e.aliasSymbol&&(16384&g.flags||Yi(e.aliasSymbol,g.enclosingDeclaration))){var i=P(e.aliasTypeArguments,g);return!Vi(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?Z(e.aliasSymbol,g,788968,i):tS.factory.createTypeReferenceNode(tS.factory.createIdentifier(""),i)}i=tS.getObjectFlags(e);if(4&i)return tS.Debug.assert(!!(524288&e.flags)),e.node?f(e,h):h(e);if(262144&e.flags||3&i){if(262144&e.flags&&tS.contains(g.inferTypeParameters,e))return g.approximateLength+=tS.symbolName(e.symbol).length+6,tS.factory.createInferTypeNode(w(e,g,void 0));if(4&g.flags&&262144&e.flags&&!Yi(e.symbol,g.enclosingDeclaration)){var a=$(e,g);return g.approximateLength+=tS.idText(a).length,tS.factory.createTypeReferenceNode(tS.factory.createIdentifier(tS.idText(a)),void 0)}return e.symbol?Z(e.symbol,g,788968):tS.factory.createTypeReferenceNode(tS.factory.createIdentifier("?"),void 0)}if(3145728&e.flags){a=1048576&e.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Xe:Io(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&Hl(e[n+o-1])===Hl(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(Je);32768&r&&t.push(Re);return t||e}(e.types):e.types;if(1===tS.length(a))return B(a[0],g);a=P(a,g,!0);return a&&0<a.length?1048576&e.flags?tS.factory.createUnionTypeNode(a):tS.factory.createIntersectionTypeNode(a):void(g.encounteredError||262144&g.flags||(g.encounteredError=!0))}if(48&i)return tS.Debug.assert(!!(524288&e.flags)),m(e);if(4194304&e.flags){var o=e.type;g.approximateLength+=6;var s=B(o,g);return tS.factory.createTypeOperatorNode(138,s)}if(134217728&e.flags){var c=e.texts,u=e.types,o=tS.factory.createTemplateHead(c[0]),l=tS.factory.createNodeArray(tS.map(u,function(e,t){return tS.factory.createTemplateLiteralTypeSpan(B(e,g),(t<u.length-1?tS.factory.createTemplateMiddle:tS.factory.createTemplateTail)(c[t+1]))}));return g.approximateLength+=2,tS.factory.createTemplateLiteralType(o,l)}if(268435456&e.flags){var _=B(e.type,g);return Z(e.symbol,g,788968,[_])}if(8388608&e.flags){var d=B(e.objectType,g),s=B(e.indexType,g);return g.approximateLength+=2,tS.factory.createIndexedAccessTypeNode(d,s)}if(16777216&e.flags){l=B(e.checkType,g),_=g.inferTypeParameters;g.inferTypeParameters=e.root.inferTypeParameters;d=B(e.extendsType,g);g.inferTypeParameters=_;s=p(Fl(e)),_=p(Pl(e));return g.approximateLength+=15,tS.factory.createConditionalTypeNode(l,d,s,_)}return 33554432&e.flags?B(e.baseType,g):tS.Debug.fail("Should be unreachable.");function p(e){var t,r;return 1048576&e.flags?null!==(r=g.visitedTypes)&&void 0!==r&&r.has(e.id)?(131072&g.flags||(g.encounteredError=!0,null!==(r=null===(t=g.tracker)||void 0===t?void 0:t.reportCyclicStructureError)&&void 0!==r&&r.call(t)),N(g)):f(e,function(e){return B(e,g)}):B(e,g)}function m(e){var r=e.id,n=e.symbol;if(n){var t=fa(e)?788968:111551;if(Wy(n.valueDeclaration))return Z(n,g,t);if(32&n.flags&&!so(n)&&!(221===n.valueDeclaration.kind&&2048&g.flags)||896&n.flags||function(){var e=!!(8192&n.flags)&&tS.some(n.declarations,function(e){return tS.hasSyntacticModifier(e,32)}),t=!!(16&n.flags)&&(n.parent||tS.forEach(n.declarations,function(e){return 297===e.parent.kind||257===e.parent.kind}));if(e||t)return(!!(4096&g.flags)||(null===(t=g.visitedTypes)||void 0===t?void 0:t.has(r)))&&(!(8&g.flags)||Zi(n,g.enclosingDeclaration))}())return Z(n,g,t);if(null!==(t=g.visitedTypes)&&void 0!==t&&t.has(r)){t=function(e){if(e.symbol&&2048&e.symbol.flags){e=tS.walkUpParenthesizedTypes(e.symbol.declarations[0].parent);if(254===e.kind)return Ai(e)}return}(e);return t?Z(t,g,788968):N(g)}return f(e,y)}return y(e)}function f(e,t){var r,n=e.id,i=16&tS.getObjectFlags(e)&&e.symbol&&32&e.symbol.flags,i=4&tS.getObjectFlags(e)&&e.node?"N"+pS(e.node):e.symbol?(i?"+":"")+fS(e.symbol):void 0;if(g.visitedTypes||(g.visitedTypes=new tS.Set),i&&!g.symbolDepth&&(g.symbolDepth=new tS.Map),i){if(10<(r=g.symbolDepth.get(i)||0))return N(g);g.symbolDepth.set(i,r+1)}g.visitedTypes.add(n);e=t(e);return g.visitedTypes.delete(n),i&&g.symbolDepth.set(i,r),e}function y(e){if(ws(e)||e.containsError)return function(e){tS.Debug.assert(!!(524288&e.flags));var t=e.declaration.readonlyToken?tS.factory.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?tS.factory.createToken(e.declaration.questionToken.kind):void 0,n=ks(e)?tS.factory.createTypeOperatorNode(138,B(Ns(e),g)):B(Ss(e),g),i=w(Ds(e),g,n),n=e.declaration.nameType?B(Ts(e),g):void 0,e=B(Cs(e),g),e=tS.factory.createMappedTypeNode(t,i,n,r,e);return g.approximateLength+=10,tS.setEmitFlags(e,1)}(e);var t=Is(e);if(!t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo){if(!t.callSignatures.length&&!t.constructSignatures.length)return g.approximateLength+=2,tS.setEmitFlags(tS.factory.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return J(t.callSignatures[0],174,g);if(1===t.constructSignatures.length&&!t.callSignatures.length)return J(t.constructSignatures[0],175,g)}e=g.flags;g.flags|=4194304;t=function(e){if(k(g))return[tS.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var t=[],r=0,n=e.callSignatures;r<n.length;r++){var i=n[r];t.push(J(i,169,g))}for(var a=0,o=e.constructSignatures;a<o.length;a++){i=o[a];t.push(J(i,170,g))}{var s;e.stringIndexInfo&&(s=void 0,s=2048&e.objectFlags?j(Vc(Fe,e.stringIndexInfo.isReadonly,e.stringIndexInfo.declaration),0,g,N(g)):j(e.stringIndexInfo,0,g,void 0),t.push(s))}e.numberIndexInfo&&t.push(j(e.numberIndexInfo,1,g,void 0));var c=e.properties;if(!c)return t;for(var u=0,l=0,_=c;l<_.length;l++){var d=_[l];if(u++,2048&g.flags){if(4194304&d.flags)continue;24&tS.getDeclarationModifierFlagsFromSymbol(d)&&g.tracker.reportPrivateInBaseOfClassExpression&&g.tracker.reportPrivateInBaseOfClassExpression(tS.unescapeLeadingUnderscores(d.escapedName))}if(k(g)&&u+2<c.length-1){t.push(tS.factory.createPropertySignature(void 0,"... "+(c.length-u)+" more ...",void 0,void 0)),F(c[c.length-1],g,t);break}F(d,g,t)}return t.length?t:void 0}(t);g.flags=e;t=tS.factory.createTypeLiteralNode(t);return g.approximateLength+=2,tS.setEmitFlags(t,1024&g.flags?0:1)}function h(e){var t=$c(e);if(e.target===Nt||e.target===At){if(2&g.flags){var r=B(t[0],g);return tS.factory.createTypeReferenceNode(e.target===Nt?"Array":"ReadonlyArray",[r])}var n=B(t[0],g),r=tS.factory.createArrayTypeNode(n);return e.target===Nt?r:tS.factory.createTypeOperatorNode(142,r)}if(!(8&e.target.objectFlags)){if(2048&g.flags&&e.symbol.valueDeclaration&&tS.isClassLike(e.symbol.valueDeclaration)&&!Zi(e.symbol,g.enclosingDeclaration))return m(e);var i=e.target.outerTypeParameters,a=0,o=void 0;if(i)for(var s=i.length;a<s;){for(var c,u=a,l=Hc(i[a]);a++,a<s&&Hc(i[a])===l;);tS.rangeEquals(i,t,u,a)||(c=P(t.slice(u,a),g),u=g.flags,g.flags|=16,c=Z(l,g,788968,c),g.flags=u,o=o?v(o,c):c)}n=void 0;0<t.length&&(r=(e.target.typeParameters||tS.emptyArray).length,n=P(t.slice(a,r),g));p=g.flags;g.flags|=16;n=Z(e.symbol,g,788968,n);return g.flags=p,o?v(o,n):n}if(0<t.length){var _=eu(e),d=P(t.slice(0,_),g);if(d){if(e.target.labeledElementDeclarations)for(var a=0;a<d.length;a++){var p=e.target.elementFlags[a];d[a]=tS.factory.createNamedTupleMember(12&p?tS.factory.createToken(25):void 0,tS.factory.createIdentifier(tS.unescapeLeadingUnderscores(oh(e.target.labeledElementDeclarations[a]))),2&p?tS.factory.createToken(57):void 0,4&p?tS.factory.createArrayTypeNode(d[a]):d[a])}else for(a=0;a<Math.min(_,d.length);a++){var p=e.target.elementFlags[a];d[a]=12&p?tS.factory.createRestTypeNode(4&p?tS.factory.createArrayTypeNode(d[a]):d[a]):2&p?tS.factory.createOptionalTypeNode(d[a]):d[a]}var f=tS.setEmitFlags(tS.factory.createTupleTypeNode(d),1);return e.target.readonly?tS.factory.createTypeOperatorNode(142,f):f}}if(g.encounteredError||524288&g.flags){f=tS.setEmitFlags(tS.factory.createTupleTypeNode([]),1);return e.target.readonly?tS.factory.createTypeOperatorNode(142,f):f}g.encounteredError=!0}function v(e,t){if(tS.isImportTypeNode(e)){var r=e.typeArguments;o=(o=e.qualifier)&&(tS.isIdentifier(o)?tS.factory.updateIdentifier(o,r):tS.factory.updateQualifiedName(o,o.left,tS.factory.updateIdentifier(o.right,r))),r=t.typeArguments;for(var n=0,i=b(t);n<i.length;n++)var a=i[n],o=o?tS.factory.createQualifiedName(o,a):a;return tS.factory.updateImportTypeNode(e,e.argument,o,r,e.isTypeOf)}var r=e.typeArguments,s=e.typeName;s=tS.isIdentifier(s)?tS.factory.updateIdentifier(s,r):tS.factory.updateQualifiedName(s,s.left,tS.factory.updateIdentifier(s.right,r)),r=t.typeArguments;for(var c=0,u=b(t);c<u.length;c++)a=u[c],s=tS.factory.createQualifiedName(s,a);return tS.factory.updateTypeReferenceNode(e,s,r)}function b(e){for(var t=e.typeName,r=[];!tS.isIdentifier(t);)r.unshift(t.right),t=t.left;return r.unshift(t),r}}function N(e){return e.approximateLength+=3,1&e.flags?tS.factory.createKeywordTypeNode(128):tS.factory.createTypeReferenceNode(tS.factory.createIdentifier("..."),void 0)}function F(r,e,t){var n=!!(8192&tS.getCheckFlags(r)),i=n&&33554432&e.flags?Fe:_o(r),a=e.enclosingDeclaration;e.enclosingDeclaration=void 0,e.tracker.trackSymbol&&4096&tS.getCheckFlags(r)&&(Qo(d=tS.first(r.declarations))&&(tS.isBinaryExpression(d)?(_=tS.getNameOfDeclaration(d))&&tS.isElementAccessExpression(_)&&tS.isPropertyAccessEntityNameExpression(_.argumentExpression)&&U(_.argumentExpression,a,e):U(d.name.expression,a,e))),e.enclosingDeclaration=a;var o=ie(r,e);e.approximateLength+=tS.symbolName(r).length+1;var s=16777216&r.flags?tS.factory.createToken(57):void 0;if(8208&r.flags&&!Os(i).length&&!Mh(r))for(var c=0,u=uc(wf(i,function(e){return!(32768&e.flags)}),0);c<u.length;c++){var l=J(u[c],164,e,{name:o,questionToken:s});t.push(p(l))}else{var _=e.flags;e.flags|=n?33554432:0;var d=void 0,d=n&&33554432&_?N(e):i?ce(e,i,r,a):tS.factory.createKeywordTypeNode(128);e.flags=_;_=Mh(r)?[tS.factory.createToken(142)]:void 0;_&&(e.approximateLength+=9);d=tS.factory.createPropertySignature(_,o,s,d);t.push(p(d))}function p(e){var t;return tS.some(r.declarations,function(e){return 333===e.kind})?(t=tS.find(r.declarations,function(e){return 333===e.kind}).comment)&&tS.setSyntheticLeadingComments(e,[{kind:3,text:"*\n * "+t.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]):r.valueDeclaration&&tS.setCommentRange(e,r.valueDeclaration),e}}function P(e,a,t){if(tS.some(e)){if(k(a)){if(!t)return[tS.factory.createTypeReferenceNode("...",void 0)];if(2<e.length)return[B(e[0],a),tS.factory.createTypeReferenceNode("... "+(e.length-2)+" more ...",void 0),B(e[e.length-1],a)]}for(var r=!(64&a.flags)?tS.createUnderscoreEscapedMultiMap():void 0,o=[],n=0,i=0,s=e;i<s.length;i++){var c=s[i];if(n++,k(a)&&n+2<e.length-1){o.push(tS.factory.createTypeReferenceNode("... "+(e.length-n)+" more ...",void 0));var u=B(e[e.length-1],a);u&&o.push(u);break}a.approximateLength+=2;u=B(c,a);u&&(o.push(u),r&&tS.isIdentifierTypeReference(u)&&r.add(u.typeName.escapedText,[c,o.length-1]))}return r&&(t=a.flags,a.flags|=64,r.forEach(function(e){if(!tS.arrayIsHomogeneous(e,function(e,t){e=e[0],t=t[0];return(e=e)===(t=t)||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}))for(var t=0,r=e;t<r.length;t++){var n=r[t],i=n[0],n=n[1];o[n]=B(i,a)}}),a.flags=t),o}}function j(e,t,r,n){var i=tS.getNameFromIndexInfo(e)||"x",t=tS.factory.createKeywordTypeNode(0===t?147:144),t=tS.factory.createParameterDeclaration(void 0,void 0,void 0,i,void 0,t,void 0);return n=n||B(e.type||Fe,r),e.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=i.length+4,tS.factory.createIndexSignature(void 0,e.isReadonly?[tS.factory.createToken(142)]:void 0,[t],n)}function J(t,r,n,i){var e,a,o,s,c=256&n.flags;c&&(n.flags&=-257),32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?s=t.target.typeParameters.map(function(e){return B(C_(e,t.mapper),n)}):o=t.typeParameters&&t.typeParameters.map(function(e){return z(e,n)});var u=us(t,!0)[0],l=(tS.some(u,function(e){return e!==u[u.length-1]&&!!(32768&tS.getCheckFlags(e))})?t.parameters:u).map(function(e){return L(e,n,166===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)});t.thisParameter&&(_=L(t.thisParameter,n),l.unshift(_));var _,d,p=Fc(t);p?(_=2===p.kind||3===p.kind?tS.factory.createToken(127):void 0,f=1===p.kind||3===p.kind?tS.setEmitFlags(tS.factory.createIdentifier(p.parameterName),16777216):tS.factory.createThisTypeNode(),d=p.type&&B(p.type,n),f=tS.factory.createTypePredicateNode(_,f,d)):!(d=Pc(t))||c&&Na(d)?c||(f=tS.factory.createKeywordTypeNode(128)):f=function(t,e,r,n,i){if(e!==Ie&&t.enclosingDeclaration){var a=r.declaration&&tS.getEffectiveReturnTypeNode(r.declaration);if(tS.findAncestor(a,function(e){return e===t.enclosingDeclaration})&&a&&C_(e_(a),r.mapper)===e&&se(a,e)){i=ue(t,a,n,i);if(i)return i}}return B(e,t)}(n,d,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports),n.approximateLength+=3;var f=169===r?tS.factory.createCallSignature(o,l,f):170===r?tS.factory.createConstructSignature(o,l,f):164===r?tS.factory.createMethodSignature(null==i?void 0:i.modifiers,null!==(e=null==i?void 0:i.name)&&void 0!==e?e:tS.factory.createIdentifier(""),null==i?void 0:i.questionToken,o,l,f):165===r?tS.factory.createMethodDeclaration(void 0,null==i?void 0:i.modifiers,void 0,null!==(e=null==i?void 0:i.name)&&void 0!==e?e:tS.factory.createIdentifier(""),void 0,o,l,f,void 0):166===r?tS.factory.createConstructorDeclaration(void 0,null==i?void 0:i.modifiers,l,void 0):167===r?tS.factory.createGetAccessorDeclaration(void 0,null==i?void 0:i.modifiers,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:tS.factory.createIdentifier(""),l,f,void 0):168===r?tS.factory.createSetAccessorDeclaration(void 0,null==i?void 0:i.modifiers,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:tS.factory.createIdentifier(""),l,void 0):171===r?tS.factory.createIndexSignature(void 0,null==i?void 0:i.modifiers,l,f):308===r?tS.factory.createJSDocFunctionType(l,f):174===r?tS.factory.createFunctionTypeNode(o,l,null!=f?f:tS.factory.createTypeReferenceNode(tS.factory.createIdentifier(""))):175===r?tS.factory.createConstructorTypeNode(o,l,null!=f?f:tS.factory.createTypeReferenceNode(tS.factory.createIdentifier(""))):251===r?tS.factory.createFunctionDeclaration(void 0,null==i?void 0:i.modifiers,void 0,null!=i&&i.name?tS.cast(i.name,tS.isIdentifier):tS.factory.createIdentifier(""),o,l,f,void 0):208===r?tS.factory.createFunctionExpression(null==i?void 0:i.modifiers,void 0,null!=i&&i.name?tS.cast(i.name,tS.isIdentifier):tS.factory.createIdentifier(""),o,l,f,tS.factory.createBlock([])):209===r?tS.factory.createArrowFunction(null==i?void 0:i.modifiers,o,l,f,void 0,tS.factory.createBlock([])):tS.Debug.assertNever(r);return s&&(f.typeArguments=tS.factory.createNodeArray(s)),f}function w(e,t,r){var n=t.flags;t.flags&=-513;var i=$(e,t),e=Xs(e),e=e&&B(e,t);return t.flags=n,tS.factory.createTypeParameterDeclaration(i,r,e)}function z(e,t,r){return void 0===r&&(r=js(e)),w(e,t,r&&B(r,t))}function L(e,t,r,n,i){var a=tS.getDeclarationOfKind(e,160);a||tS.isTransientSymbol(e)||(a=tS.getDeclarationOfKind(e,326));var o,s=_o(e);a&&iD(a)&&(s=ap(s)),1073741824&t.flags&&a&&!tS.isJSDocParameterTag(a)&&(o=a,!!X&&vc(o)&&!o.initializer)&&(s=gf(s,524288));s=ce(t,s,e,t.enclosingDeclaration,n,i),n=!(8192&t.flags)&&r&&a&&a.modifiers?a.modifiers.map(tS.factory.cloneNode):void 0,i=a&&tS.isRestParameter(a)||32768&tS.getCheckFlags(e)?tS.factory.createToken(25):void 0,r=a&&a.name?78===a.name.kind?tS.setEmitFlags(tS.factory.cloneNode(a.name),16777216):157===a.name.kind?tS.setEmitFlags(tS.factory.cloneNode(a.name.right),16777216):OJd(a.name):tS.symbolName(e),a=a&&vc(a)||16384&tS.getCheckFlags(e)?tS.factory.createToken(57):void 0,s=tS.factory.createParameterDeclaration(void 0,n,i,r,a,s,void 0);return t.approximateLength+=tS.symbolName(e).length+3,s}function U(e,t,r){!r.tracker.trackSymbol||(e=Rn(e=tS.getFirstIdentifier(e),e.escapedText,1160127,void 0,void 0,!0))&&r.tracker.trackSymbol(e,t,111551)}function V(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),K(e,t,r,n)}function K(e,p,t,f){var r;return 262144&e.flags||!(p.enclosingDeclaration||64&p.flags)||134217728&p.flags?r=[e]:(r=tS.Debug.checkDefined(function e(t,r,n){var i=Xi(t,p.enclosingDeclaration,r,!!(128&p.flags));var a;if(!i||Qi(i[0],p.enclosingDeclaration,1===i.length?r:Gi(r))){var o=Pi(i?i[0]:t,p.enclosingDeclaration,r);if(tS.length(o)){a=o.map(function(e){return tS.some(e.declarations,ia)?Y(e,p):void 0});var s=o.map(function(e,t){return t});s.sort(d);for(var s=s.map(function(e){return o[e]}),c=0,u=s;c<u.length;c++){var l=u[c],_=e(l,Gi(r),!1);if(_){if(l.exports&&l.exports.get("export=")&&Oi(l.exports.get("export="),t)){i=_;break}i=_.concat(i||[Ii(l,t)||t]);break}}}}if(i)return i;if((n||!(6144&t.flags))&&(n||f||!tS.forEach(t.declarations,ia)))return[t];function d(e,t){var r=a[e],e=a[t];if(r&&e){var t=tS.pathIsRelative(e);return tS.pathIsRelative(r)===t?tS.moduleSpecifiers.countPathComponents(r)-tS.moduleSpecifiers.countPathComponents(e):t?-1:1}return 0}}(e,t,!0)),tS.Debug.assert(r&&0<r.length)),r}function q(e,t){var r;return 524384&ox(e).flags&&(r=tS.factory.createNodeArray(tS.map(vo(e),function(e){return z(e,t)}))),r}function W(e,t,r){var n;tS.Debug.assert(e&&0<=t&&t<e.length);var i,a,o=e[t],s=fS(o);if(null===(n=r.typeParameterSymbolList)||void 0===n||!n.has(s))return(r.typeParameterSymbolList||(r.typeParameterSymbolList=new tS.Set)).add(s),512&r.flags&&t<e.length-1&&(s=o,i=e[t+1],a=1&tS.getCheckFlags(i)?(a=2097152&s.flags?ai(s):s,a=tS.concatenate(ho(a),vo(a)),P(tS.map(a,function(e){return o_(e,i.mapper)}),r)):q(o,r)),a}function Y(t,e){var r=tS.getDeclarationOfKind(t,297);if(r||(s=tS.firstDefined(t.declarations,function(e){return wi(e,t)}))&&(r=tS.getDeclarationOfKind(s,297)),r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(e.tracker.trackReferencedAmbientModule){var n=tS.filter(t.declarations,tS.isAmbientModule);if(tS.length(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];e.tracker.trackReferencedAmbientModule(o,t)}}if(rS.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!e.enclosingDeclaration||!e.tracker.moduleResolverHost)return rS.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):tS.getSourceFileOfNode(tS.getNonAugmentationDeclaration(t)).fileName;var s,c=tS.getSourceFileOfNode(tS.getOriginalNode(e.enclosingDeclaration)),u=Pn(t),l=u.specifierCache&&u.specifierCache.get(c.path);return l||(s=!!tS.outFile(G),r=e.tracker.moduleResolverHost,n=s?__assign(__assign({},G),{baseUrl:r.getCommonSourceDirectory()}):G,l=tS.first(tS.moduleSpecifiers.getModuleSpecifiers(t,n,c,r,{importModuleSpecifierPreference:s?"non-relative":"relative",importModuleSpecifierEnding:s?"minimal":void 0})),null!==(s=u.specifierCache)&&void 0!==s||(u.specifierCache=new tS.Map),u.specifierCache.set(c.path,l)),l}function Z(e,u,t,l){var r=V(e,u,t,!(16384&u.flags)),n=111551===t;if(tS.some(r[0].declarations,ia)){var i=1<r.length?_(r,r.length-1,1):void 0,a=l||W(r,0,u),e=Y(r[0],u);!(67108864&u.flags)&&tS.getEmitModuleResolutionKind(G)===tS.ModuleResolutionKind.NodeJs&&0<=e.indexOf("/node_modules/")&&(u.encounteredError=!0,u.tracker.reportLikelyUnsafeImportRequiredError&&u.tracker.reportLikelyUnsafeImportRequiredError(e));t=tS.factory.createLiteralTypeNode(tS.factory.createStringLiteral(e));if(u.tracker.trackExternalModuleSymbolOfImportTypeNode&&u.tracker.trackExternalModuleSymbolOfImportTypeNode(r[0]),u.approximateLength+=e.length+10,!i||tS.isEntityName(i))return i&&((o=tS.isIdentifier(i)?i:i.right).typeArguments=void 0),tS.factory.createImportTypeNode(t,i,a,n);e=function e(t){return tS.isIndexedAccessTypeNode(t.objectType)?e(t.objectType):t}(i),i=e.objectType.typeName;return tS.factory.createIndexedAccessTypeNode(tS.factory.createImportTypeNode(t,i,a,n),e.indexType)}r=_(r,r.length-1,0);if(tS.isIndexedAccessTypeNode(r))return r;if(n)return tS.factory.createTypeQueryNode(r);var o,n=(o=tS.isIdentifier(r)?r:r.right).typeArguments;return o.typeArguments=void 0,tS.factory.createTypeReferenceNode(r,n);function _(e,t,r){var n,i,a=t===e.length-1?l:W(e,t,u),o=e[t],s=e[t-1];if(0===t?(u.flags|=16777216,n=ba(o,u),u.approximateLength+=(n?n.length:0)+1,u.flags^=16777216):s&&Ti(s)&&(i=Ti(s),tS.forEachEntry(i,function(e,t){if(Oi(e,o)&&!Xo(t)&&"export="!==t)return n=tS.unescapeLeadingUnderscores(t),!0})),n=n||ba(o,u),u.approximateLength+=n.length+1,!(16&u.flags)&&s&&ts(s)&&ts(s).get(o.escapedName)&&Oi(ts(s).get(o.escapedName),o)){var c=_(e,t-1,r);return tS.isIndexedAccessTypeNode(c)?tS.factory.createIndexedAccessTypeNode(c,tS.factory.createLiteralTypeNode(tS.factory.createStringLiteral(n))):tS.factory.createIndexedAccessTypeNode(tS.factory.createTypeReferenceNode(c,a),tS.factory.createLiteralTypeNode(tS.factory.createStringLiteral(n)))}a=tS.setEmitFlags(tS.factory.createIdentifier(n,a),16777216);if(a.symbol=o,r<t){c=_(e,t-1,r);return tS.isEntityName(c)?tS.factory.createQualifiedName(c,a):tS.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return a}}function $(e,t){if(4&t.flags&&t.typeParameterNames){var r=t.typeParameterNames.get(e.id);if(r)return r}var n,i,r=ee(e.symbol,t,788968,!0);if(!(78&r.kind))return tS.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var a=r.escapedText,o=0,s=a;null!==(i=t.typeParameterNamesByText)&&void 0!==i&&i.has(s)||(n=s,i=e,(n=Rn(t.enclosingDeclaration,n,788968,void 0,n,!1))&&!(262144&n.flags&&n===i.symbol));)s=a+"_"+ ++o;s!==a&&(r=tS.factory.createIdentifier(s,r.typeArguments)),(t.typeParameterNames||(t.typeParameterNames=new tS.Map)).set(e.id,r),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new tS.Set)).add(r.escapedText)}return r}function ee(e,o,t,r){t=V(e,o,t);return!r||1===t.length||o.encounteredError||65536&o.flags||(o.encounteredError=!0),function e(t,r){var n=W(t,r,o);var i=t[r];0===r&&(o.flags|=16777216);var a=ba(i,o);0===r&&(o.flags^=16777216);var n=tS.setEmitFlags(tS.factory.createIdentifier(a,n),16777216);n.symbol=i;return 0<r?tS.factory.createQualifiedName(e(t,r-1),n):n}(t,t.length-1)}function te(e,u,t){t=V(e,u,t);return function e(t,r){var n=W(t,r,u);var i=t[r];0===r&&(u.flags|=16777216);var a=ba(i,u);0===r&&(u.flags^=16777216);var o=a.charCodeAt(0);if(tS.isSingleOrDoubleQuote(o)&&tS.some(i.declarations,ia))return tS.factory.createStringLiteral(Y(i,u));var s=35===o?1<a.length&&tS.isIdentifierStart(a.charCodeAt(1),R):tS.isIdentifierStart(o,R);{if(0===r||s){var c=tS.setEmitFlags(tS.factory.createIdentifier(a,n),16777216);return c.symbol=i,0<r?tS.factory.createPropertyAccessExpression(e(t,r-1),c):c}91===o&&(a=a.substring(1,a.length-1),o=a.charCodeAt(0));var c=void 0;return tS.isSingleOrDoubleQuote(o)?c=tS.factory.createStringLiteral(a.substring(1,a.length-1).replace(/\\./g,function(e){return e.substring(1)}),39===o):""+ +a===a&&(c=tS.factory.createNumericLiteral(+a)),c||((c=tS.setEmitFlags(tS.factory.createIdentifier(a,n),16777216)).symbol=i),tS.factory.createElementAccessExpression(e(t,r-1),c)}}(t,t.length-1)}function re(e){e=tS.getNameOfDeclaration(e);return!!e&&tS.isStringLiteral(e)}function ne(e){e=tS.getNameOfDeclaration(e);return!!(e&&tS.isStringLiteral(e)&&(e.singleQuote||!tS.nodeIsSynthesized(e)&&tS.startsWith(tS.getTextOfNode(e,!1),"'")))}function ie(e,t){var r=!!tS.length(e.declarations)&&tS.every(e.declarations,ne),t=function(e,t,r){var n=Pn(e).nameType;if(n){if(384&n.flags){e=""+n.value;return tS.isIdentifierText(e,G.target)||Yg(e)?Yg(e)&&tS.startsWith(e,"-")?tS.factory.createComputedPropertyName(tS.factory.createNumericLiteral(+e)):ae(e):tS.factory.createStringLiteral(e,!!r)}if(8192&n.flags)return tS.factory.createComputedPropertyName(te(n.symbol,t,111551))}}(e,t,r);return t||(tS.isKnownSymbol(e)?tS.factory.createComputedPropertyName(tS.factory.createPropertyAccessExpression(tS.factory.createIdentifier("Symbol"),e.escapedName.substr(3))):ae(tS.unescapeLeadingUnderscores(e.escapedName),!!tS.length(e.declarations)&&tS.every(e.declarations,re),r))}function ae(e,t,r){return tS.isIdentifierText(e,G.target)?tS.factory.createIdentifier(e):!t&&Yg(e)&&0<=+e?tS.factory.createNumericLiteral(+e):tS.factory.createStringLiteral(e,!!r)}function oe(e,t){return e.declarations&&tS.find(e.declarations,function(e){return!(!tS.getEffectiveTypeAnnotationNode(e)||t&&!tS.findAncestor(e,function(e){return e===t}))})}function se(e,t){return!(4&tS.getObjectFlags(t))||!tS.isTypeReferenceNode(e)||tS.length(e.typeArguments)>=Dc(t.target.typeParameters)}function ce(t,e,r,n,i,a){if(e!==Ie&&n){n=oe(r,n);if(n&&!tS.isFunctionLikeDeclaration(n)){n=tS.getEffectiveTypeAnnotationNode(n);if(e_(n)===e&&se(n,e)){var o=ue(t,n,i,a);if(o)return o}}}o=t.flags;8192&e.flags&&e.symbol===r&&(!t.enclosingDeclaration||tS.some(r.declarations,function(e){return tS.getSourceFileOfNode(e)===tS.getSourceFileOfNode(t.enclosingDeclaration)}))&&(t.flags|=1048576);e=B(e,t);return t.flags=o,e}function ue(u,e,l,_){x&&x.throwIfCancellationRequested&&x.throwIfCancellationRequested();var d=!1,p=tS.getSourceFileOfNode(e),t=tS.visitNode(e,function n(i){if(tS.isJSDocAllType(i)||310===i.kind)return tS.factory.createKeywordTypeNode(128);if(tS.isJSDocUnknownType(i))return tS.factory.createKeywordTypeNode(152);if(tS.isJSDocNullableType(i))return tS.factory.createUnionTypeNode([tS.visitNode(i.type,n),tS.factory.createLiteralTypeNode(tS.factory.createNull())]);if(tS.isJSDocOptionalType(i))return tS.factory.createUnionTypeNode([tS.visitNode(i.type,n),tS.factory.createKeywordTypeNode(150)]);if(tS.isJSDocNonNullableType(i))return tS.visitNode(i.type,n);if(tS.isJSDocVariadicType(i))return tS.factory.createArrayTypeNode(tS.visitNode(i.type,n));if(tS.isJSDocTypeLiteral(i))return tS.factory.createTypeLiteralNode(tS.map(i.jsDocPropertyTags,function(e){var t=tS.isIdentifier(e.name)?e.name:e.name.right,r=ka(e_(i),t.escapedText),r=r&&e.typeExpression&&e_(e.typeExpression.type)!==r?B(r,u):void 0;return tS.factory.createPropertySignature(void 0,t,e.typeExpression&&tS.isJSDocOptionalType(e.typeExpression.type)?tS.factory.createToken(57):void 0,r||e.typeExpression&&tS.visitNode(e.typeExpression.type,n)||tS.factory.createKeywordTypeNode(128))}));if(tS.isTypeReferenceNode(i)&&tS.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return tS.setOriginalNode(tS.factory.createKeywordTypeNode(128),i);if((tS.isExpressionWithTypeArguments(i)||tS.isTypeReferenceNode(i))&&tS.isJSDocIndexSignature(i))return tS.factory.createTypeLiteralNode([tS.factory.createIndexSignature(void 0,void 0,[tS.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,tS.visitNode(i.typeArguments[0],n))],tS.visitNode(i.typeArguments[1],n))]);if(tS.isJSDocFunctionType(i)){var r;return tS.isJSDocConstructSignature(i)?tS.factory.createConstructorTypeNode(tS.visitNodes(i.typeParameters,n),tS.mapDefined(i.parameters,function(e,t){return e.name&&tS.isIdentifier(e.name)&&"new"===e.name.escapedText?void(r=e.type):tS.factory.createParameterDeclaration(void 0,void 0,o(e),s(e,t),e.questionToken,tS.visitNode(e.type,n),void 0)}),tS.visitNode(r||i.type,n)||tS.factory.createKeywordTypeNode(128)):tS.factory.createFunctionTypeNode(tS.visitNodes(i.typeParameters,n),tS.map(i.parameters,function(e,t){return tS.factory.createParameterDeclaration(void 0,void 0,o(e),s(e,t),e.questionToken,tS.visitNode(e.type,n),void 0)}),tS.visitNode(i.type,n)||tS.factory.createKeywordTypeNode(128))}if(tS.isTypeReferenceNode(i)&&tS.isInJSDoc(i)&&(!se(i,e_(i))||_u(i)||Ne===iu(nu(i),788968,!0)))return tS.setOriginalNode(B(e_(i),u),i);if(tS.isLiteralImportTypeNode(i))return tS.factory.updateImportTypeNode(i,tS.factory.updateLiteralTypeNode(i.argument,c(i,i.argument.literal)),i.qualifier,tS.visitNodes(i.typeArguments,n,tS.isTypeNode),i.isTypeOf);if(tS.isEntityName(i)||tS.isEntityNameExpression(i)){var e=tS.getFirstIdentifier(i);if(tS.isInJSFile(i)&&(tS.isExportsIdentifier(e)||tS.isModuleExportsAccessExpression(e.parent)||tS.isQualifiedName(e.parent)&&tS.isModuleIdentifier(e.parent.left)&&tS.isExportsIdentifier(e.parent.right)))return d=!0,i;var t=pi(e,67108863,!0,!0);if(t&&(0!==ea(t,u.enclosingDeclaration,67108863,!1).accessibility?d=!0:(null!==(e=null===(a=u.tracker)||void 0===a?void 0:a.trackSymbol)&&void 0!==e&&e.call(a,t,u.enclosingDeclaration,67108863),null!=l&&l(t)),tS.isIdentifier(i))){var a=262144&t.flags?$(Ro(t),u):tS.factory.cloneNode(i);return a.symbol=t,tS.setEmitFlags(tS.setOriginalNode(a,i),16777216)}}p&&tS.isTupleTypeNode(i)&&tS.getLineAndCharacterOfPosition(p,i.pos).line===tS.getLineAndCharacterOfPosition(p,i.end).line&&tS.setEmitFlags(i,1);return tS.visitEachChild(i,n,tS.nullTransformationContext);function o(e){return e.dotDotDotToken||(e.type&&tS.isJSDocVariadicType(e.type)?tS.factory.createToken(25):void 0)}function s(e,t){return e.name&&tS.isIdentifier(e.name)&&"this"===e.name.escapedText?"this":o(e)?"args":"arg"+t}function c(e,t){if(_){if(u.tracker&&u.tracker.moduleResolverHost){var e=TD(e);if(e){var r=tS.createGetCanonicalFileName(!!b.useCaseSensitiveFileNames),r={getCanonicalFileName:r,getCurrentDirectory:function(){return u.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return u.tracker.moduleResolverHost.getCommonSourceDirectory()}},r=tS.getResolvedExternalModuleName(r,e);return tS.factory.createStringLiteral(r)}}}else u.tracker&&u.tracker.trackExternalModuleSymbolOfImportTypeNode&&((r=mi(t,t,void 0))&&u.tracker.trackExternalModuleSymbolOfImportTypeNode(r));return t}});if(!d)return t===e?tS.setTextRange(tS.factory.cloneNode(e),e):t}var le=tS.createSymbolTable(),_e=Dn(4,"undefined");_e.declarations=[];var de=Dn(1536,"globalThis",8);de.exports=le,de.declarations=[],le.set(de.escapedName,de);var pe,fe=Dn(4,"arguments"),ge=Dn(4,"require"),me={getNodeCount:function(){return tS.sum(b.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return tS.sum(b.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return tS.sum(b.getSourceFiles(),"symbolCount")+i},getTypeCatalog:function(){return f},getTypeCount:function(){return r},getInstantiationCount:function(){return a},getRelationCacheSizes:function(){return{assignable:_n.size,identity:pn.size,subtype:un.size,strictSubtype:ln.size}},isUndefinedSymbol:function(e){return e===_e},isArgumentsSymbol:function(e){return e===fe},isUnknownSymbol:function(e){return e===Ne},getMergedSymbol:Ni,getDiagnostics:Fx,getGlobalDiagnostics:function(){return Px(),an.getGlobalDiagnostics()},getRecursionIdentity:Ed,getTypeOfSymbolAtLocation:function(e,t){t=tS.getParseTreeNode(t);return t?function(e,t){if(e=e.exportSymbol||e,78===t.kind&&(tS.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),tS.isExpressionNode(t)&&!tS.isAssignmentTarget(t))){var r=_v(t);if(Mi(wn(t).resolvedSymbol)===e)return r}return _o(e)}(e,t):Ie},getSymbolsOfParameterPropertyDeclaration:function(e,t){e=tS.getParseTreeNode(e,tS.isParameter);return void 0===e?tS.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(e,t){var r=e.parent,e=e.parent.parent,r=On(r.locals,t,111551),t=On(ts(e.symbol),t,111551);if(r&&t)return[r,t];return tS.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(e,tS.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Ro,getPropertiesOfType:Rs,getPropertyOfType:function(e,t){return sc(e,tS.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(e,t,r){r=tS.getParseTreeNode(r);if(r){r=jm(tS.escapeLeadingUnderscores(t),r);return r?Jm(e,r):void 0}},getTypeOfPropertyOfType:function(e,t){return ka(e,tS.escapeLeadingUnderscores(t))},getIndexInfoOfType:dc,getSignaturesOfType:uc,getIndexTypeOfType:pc,getBaseTypes:ko,getBaseTypeOfLiteralType:Ud,getWidenedType:hp,getTypeFromTypeNode:function(e){e=tS.getParseTreeNode(e,tS.isTypeNode);return e?e_(e):Ie},getParameterType:uh,getPromisedTypeOfPromise:Lv,getAwaitedType:function(e){return Bv(e)},getReturnTypeOfSignature:Pc,isNullableType:Am,getNullableType:ip,getNonNullableType:op,getNonOptionalType:up,getTypeArguments:$c,typeToTypeNode:C.typeToTypeNode,indexInfoToIndexSignatureDeclaration:C.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:C.signatureToSignatureDeclaration,symbolToEntityName:C.symbolToEntityName,symbolToExpression:C.symbolToExpression,symbolToTypeParameterDeclarations:C.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:C.symbolToParameterDeclaration,typeParameterToDeclaration:C.typeParameterToDeclaration,getSymbolsInScope:function(e,t){e=tS.getParseTreeNode(e);return e?function(e,t){if(16777216&e.flags)return[];var r=tS.createSymbolTable(),n=!1;return function(){for(;e;){switch(e.locals&&!In(e)&&a(e.locals,t),e.kind){case 297:if(!tS.isExternalOrCommonJsModule(e))break;case 256:a(Ai(e).exports,2623475&t);break;case 255:a(Ai(e).exports,8&t);break;case 221:e.name&&i(e.symbol,t);case 252:case 253:n||a(ts(Ai(e)),788968&t);break;case 208:e.name&&i(e.symbol,t)}tS.introducesArgumentsExoticObject(e)&&i(fe,t),n=tS.hasSyntacticModifier(e,32),e=e.parent}a(le,t)}(),r.delete("this"),mc(r);function i(e,t){tS.getCombinedLocalAndExportSymbolFlags(e)&t&&(t=e.escapedName,r.has(t)||r.set(t,e))}function a(e,t){t&&e.forEach(function(e){i(e,t)})}}(e,t):[]},getSymbolAtLocation:function(e){e=tS.getParseTreeNode(e);return e?Bx(e,!0):void 0},getShorthandAssignmentValueSymbol:function(e){e=tS.getParseTreeNode(e);return e?function(e){if(e&&289===e.kind)return pi(e.name,2208703);return}(e):void 0},getExportSpecifierLocalTargetSymbol:function(e){e=tS.getParseTreeNode(e,tS.isExportSpecifier);return e?(e=e,tS.isExportSpecifier(e)?e.parent.parent.moduleSpecifier?Zn(e.parent.parent,e):pi(e.propertyName||e.name,2998271):pi(e,2998271)):void 0},getExportSymbolOfSymbol:function(e){return Ni(e.exportSymbol||e)},getTypeAtLocation:function(e){e=tS.getParseTreeNode(e);return e?jx(e):Ie},getTypeOfAssignmentPattern:function(e){e=tS.getParseTreeNode(e,tS.isAssignmentPattern);return e&&Jx(e)||Ie},getPropertySymbolOfDestructuringAssignment:function(e){var t=tS.getParseTreeNode(e,tS.isIdentifier);return t?(e=t,(t=Jx(tS.cast(e.parent.parent,tS.isAssignmentPattern)))&&sc(t,e.escapedText)):void 0},signatureToString:function(e,t,r,n){return ca(e,tS.getParseTreeNode(t),r,n)},typeToString:function(e,t,r){return ua(e,tS.getParseTreeNode(t),r)},symbolToString:function(e,t,r,n){return sa(e,tS.getParseTreeNode(t),r,n)},typePredicateToString:function(e,t,r){return ga(e,tS.getParseTreeNode(t),r)},writeSignature:function(e,t,r,n,i){return ca(e,tS.getParseTreeNode(t),r,n,i)},writeType:function(e,t,r,n){return ua(e,tS.getParseTreeNode(t),r,n)},writeSymbol:function(e,t,r,n,i){return sa(e,tS.getParseTreeNode(t),r,n,i)},writeTypePredicate:function(e,t,r,n){return ga(e,tS.getParseTreeNode(t),r,n)},getAugmentedPropertiesOfType:Ux,getRootSymbols:function e(t){var r=Kx(t);return r?tS.flatMap(r,e):[t]},getSymbolOfExpando:Gy,getContextualType:function(e,t){var r=tS.getParseTreeNode(e,tS.isExpression);if(r){var n=tS.findAncestor(r,tS.isCallLikeExpression),i=n&&wn(n).resolvedSignature;if(4&t&&n){for(var a=r;wn(a).skipDirectInference=!0,a=a.parent,a&&a!==n;);wn(n).resolvedSignature=void 0}e=Bg(r,t);if(4&t&&n){for(a=r;wn(a).skipDirectInference=void 0,a=a.parent,a&&a!==n;);wn(n).resolvedSignature=i}return e}},getContextualTypeForObjectLiteralElement:function(e){e=tS.getParseTreeNode(e,tS.isObjectLiteralElementLike);return e?Fg(e):void 0},getContextualTypeForArgumentAtIndex:function(e,t){e=tS.getParseTreeNode(e,tS.isCallLikeExpression);return e&&Tg(e,t)},getContextualTypeForJsxAttribute:function(e){e=tS.getParseTreeNode(e,tS.isJsxAttributeLike);return e&&Ig(e)},isContextSensitive:A_,getFullyQualifiedName:di,getResolvedSignature:function(e,t,r){return ye(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return ye(e,t,r,16)},getExpandedParameters:us,hasEffectiveRestParameter:fh,getConstantValue:function(e){e=tS.getParseTreeNode(e,lD);return e?_D(e):void 0},isValidPropertyAccess:function(e,t){e=tS.getParseTreeNode(e,tS.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!e&&function(e,t){switch(e.kind){case 201:return Zm(e,105===e.expression.kind,t,hp(fv(e.expression)));case 157:return Zm(e,!1,t,hp(fv(e.left)));case 195:return Zm(e,!1,t,e_(e))}}(e,tS.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(e,t,r){e=tS.getParseTreeNode(e,tS.isPropertyAccessExpression);return!!e&&(t=t,r=r,Zm(e=e,201===e.kind&&105===e.expression.kind,r.escapedName,t))},getSignatureFromDeclaration:function(e){e=tS.getParseTreeNode(e,tS.isFunctionLike);return e?Tc(e):void 0},isImplementationOfOverload:function(e){e=tS.getParseTreeNode(e,tS.isFunctionLike);return e?nD(e):void 0},getImmediateAliasedSymbol:em,getAliasedSymbol:ai,getEmitResolver:function(e,t){return Fx(e,t),v},getExportsOfModule:Di,getExportsAndPropertiesOfModule:function(e){var t=Di(e),r=vi(e);r!==e&&tS.addRange(t,Rs(_o(r)));return t},getSymbolWalker:tS.createGetSymbolWalker(function(e){return Oc(e)||Fe},Fc,Pc,ko,Is,_o,tf,_c,js,tS.getFirstIdentifier,$c),getAmbientModules:function(){xt||(xt=[],le.forEach(function(e,t){rS.test(t)&&xt.push(e)}));return xt},getJsxIntrinsicTagNamesAt:function(e){e=um(uS.IntrinsicElements,e);return e?Rs(e):tS.emptyArray},isOptionalParameter:function(e){e=tS.getParseTreeNode(e,tS.isParameter);return!!e&&vc(e)},tryGetMemberInModuleExports:function(e,t){return Si(tS.escapeLeadingUnderscores(e),t)},tryGetMemberInModuleExportsAndProperties:function(e,t){return function(e,t){var r=Si(e,t);if(r)return r;r=vi(t);if(r===t)return;r=_o(r);return 131068&r.flags||1&tS.getObjectFlags(r)||Bd(r)?void 0:sc(r,e)}(tS.escapeLeadingUnderscores(e),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return hc(e,!1)},getApparentType:Ys,getUnionType:Ku,isTypeAssignableTo:j_,createAnonymousType:Wi,createSignature:as,createSymbol:Dn,createIndexInfo:Vc,getAnyType:function(){return Fe},getStringType:function(){return Ue},getNumberType:function(){return Ve},createPromiseType:xh,createArrayType:ku,getElementTypeOfArrayType:Od,getBooleanType:function(){return Xe},getFalseType:function(e){return e?qe:We},getTrueType:function(e){return e?He:Ge},getVoidType:function(){return Ye},getUndefinedType:function(){return Re},getNullType:function(){return Je},getESSymbolType:function(){return Qe},getNeverType:function(){return Ze},getOptionalType:function(){return je},isSymbolAccessible:ea,isArrayType:Pd,isTupleType:Hd,isArrayLikeType:Md,isTypeInvalidDueToUnionDiscriminant:function(r,e){return e.properties.some(function(e){var t=e.name&&el(e.name),t=t&&Ho(t)?Zo(t):void 0,t=void 0===t?void 0:ka(r,t);return!!t&&zd(t)&&!j_(jx(e),t)})},getAllPossiblePropertiesOfTypes:function(e){var t=Ku(e);if(!(1048576&t.flags))return Ux(t);for(var r=tS.createSymbolTable(),n=0,i=e;n<i.length;n++)for(var a=i[n],o=0,s=Ux(a);o<s.length;o++){var c,u=s[o].escapedName;r.has(u)||(c=$s(t,u))&&r.set(u,c)}return tS.arrayFrom(r.values())},getSuggestedSymbolForNonexistentProperty:qm,getSuggestionForNonexistentProperty:Hm,getSuggestedSymbolForNonexistentJSXAttribute:Wm,getSuggestedSymbolForNonexistentSymbol:function(e,t,r){return Gm(e,tS.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentSymbol:function(e,t,r){return function(e,t,r){r=Gm(e,t,r);return r&&tS.symbolName(r)}(e,tS.escapeLeadingUnderscores(t),r)},getSuggestedSymbolForNonexistentModule:Xm,getSuggestionForNonexistentExport:function(e,t){t=Xm(e,t);return t&&tS.symbolName(t)},getBaseConstraintOfType:Ks,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Xs(e):void 0},resolveName:function(e,t,r,n){return Rn(t,tS.escapeLeadingUnderscores(e),r,void 0,void 0,!1,n)},getJsxNamespace:function(e){return tS.unescapeLeadingUnderscores(mn(e))},getAccessibleSymbolChain:Xi,getTypePredicateOfSignature:Fc,resolveExternalModuleName:function(e){e=tS.getParseTreeNode(e,tS.isExpression);return e&&gi(e,e,!0)},resolveExternalModuleSymbol:vi,tryGetThisTypeAt:function(e,t){e=tS.getParseTreeNode(e);return e&&pg(e,t)},getTypeArgumentConstraint:function(e){e=tS.getParseTreeNode(e,tS.isTypeNode);return e&&function(e){var t=tS.tryCast(e.parent,tS.isTypeReferenceType);if(!t)return;var r=kv(t),e=js(r[t.typeArguments.indexOf(e)]);return e&&C_(e,a_(r,Cv(t,r)))}(e)},getSuggestionDiagnostics:function(e,t){var n,r=tS.getParseTreeNode(e,tS.isSourceFile)||tS.Debug.fail("Could not determine parsed source file.");if(tS.skipTypeChecking(r,G,b))return tS.emptyArray;try{return x=t,kx(r),tS.Debug.assert(!!(1&wn(r).flags)),n=tS.addRange(n,on.getDiagnostics(r.fileName)),Qv(Ax(r),function(e,t,r){tS.containsParseError(e)||Nx(t,!!(8388608&e.flags))||(n=n||[]).push(__assign(__assign({},r),{category:tS.DiagnosticCategory.Suggestion}))}),n||tS.emptyArray}finally{x=void 0}},runWithCancellationToken:function(e,t){try{return x=e,t(me)}finally{x=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:vo,isDeclarationVisible:xa};function ye(e,t,r,n){e=tS.getParseTreeNode(e,tS.isCallLikeExpression);pe=r;n=e?qy(e,t,n):void 0;return pe=void 0,n}var he=new tS.Map,ve=new tS.Map,be=new tS.Map,xe=new tS.Map,De=new tS.Map,Se=new tS.Map,Te=new tS.Map,Ce=new tS.Map,Ee=[],ke=new tS.Map,Ne=Dn(4,"unknown"),Ae=Dn(0,"__resolving__"),Fe=ji(1,"any"),Pe=ji(1,"any"),we=ji(1,"any"),Ie=ji(1,"error"),Oe=ji(1,"any",524288),Me=ji(1,"intrinsic"),Le=ji(2,"unknown"),Re=ji(32768,"undefined"),Be=X?Re:ji(32768,"undefined",524288),je=ji(32768,"undefined"),Je=ji(65536,"null"),ze=X?Je:ji(65536,"null",524288),Ue=ji(4,"string"),Ve=ji(8,"number"),Ke=ji(64,"bigint"),qe=ji(512,"false"),We=ji(512,"false"),He=ji(512,"true"),Ge=ji(512,"true");He.regularType=Ge,He.freshType=He,(Ge.regularType=Ge).freshType=He,qe.regularType=We,qe.freshType=qe,(We.regularType=We).freshType=qe;var Xe=Ji([We,Ge]);Ji([We,He]),Ji([qe,Ge]),Ji([qe,He]);var Qe=ji(4096,"symbol"),Ye=ji(16384,"void"),Ze=ji(131072,"never"),$e=ji(131072,"never"),et=ji(131072,"never",2097152),tt=ji(131072,"never"),rt=ji(131072,"never"),nt=ji(67108864,"object"),it=Ku([Ue,Ve,Qe]),at=h?Ue:it,ot=Ku([Ve,Ke]),st=Ku([Ue,Ve,Xe,Ke,Je,Re]),ct=c_(function(e){return 262144&e.flags?(t=e).constraint===Le?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Ui(t.symbol),t.restrictiveInstantiation.constraint=Le,t.restrictiveInstantiation):e;var t}),ut=c_(function(e){return 262144&e.flags?we:e}),lt=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0),_t=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0);_t.objectFlags|=4096;var e=Dn(2048,"__type");e.members=tS.createSymbolTable();var dt=Wi(e,A,tS.emptyArray,tS.emptyArray,void 0,void 0),pt=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0);pt.instantiations=new tS.Map;var ft=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0);ft.objectFlags|=2097152;var gt=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0),mt=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0),yt=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0),ht=Ui(),vt=Ui();vt.constraint=ht;var bt,xt,Dt,St,Tt,Ct,Et,kt,Nt,At,Ft,Pt,wt,It,Ot,Mt,Lt,Rt,Bt,jt,Jt,zt,Ut,Vt,Kt,qt,Wt,Ht,Gt,Xt,Qt,Yt,Zt,$t,er,tr,rr,nr,ir,ar,or,sr,cr,ur,lr,_r,dr,pr=Ui(),fr=xc(1,"<<unresolved>>",0,Fe),gr=as(void 0,void 0,void 0,tS.emptyArray,Fe,void 0,0,0),mr=as(void 0,void 0,void 0,tS.emptyArray,Ie,void 0,0,0),yr=as(void 0,void 0,void 0,tS.emptyArray,Fe,void 0,0,0),hr=as(void 0,void 0,void 0,tS.emptyArray,$e,void 0,0,0),vr=Vc(Ue,!0),br=new tS.Map,xr={get yieldType(){return tS.Debug.fail("Not supported")},get returnType(){return tS.Debug.fail("Not supported")},get nextType(){return tS.Debug.fail("Not supported")}},Dr=Ab(Fe,Fe,Fe),Sr=Ab(Fe,Fe,Le),Tr=Ab(Ze,Fe,Re),Cr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return($t=$t||hu("AsyncIterator",3,e))||pt},getGlobalIterableType:function(e){return(Zt=Zt||hu("AsyncIterable",1,e))||pt},getGlobalIterableIteratorType:function(e){return(er=er||hu("AsyncIterableIterator",1,e))||pt},getGlobalGeneratorType:function(e){return(tr=tr||hu("AsyncGenerator",3,e))||pt},resolveIterationType:Bv,mustHaveANextMethodDiagnostic:tS.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:tS.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:tS.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Er={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return(Ht=Ht||hu("Iterator",3,e))||pt},getGlobalIterableType:Su,getGlobalIterableIteratorType:function(e){return(Gt=Gt||hu("IterableIterator",1,e))||pt},getGlobalGeneratorType:function(e){return(Xt=Xt||hu("Generator",3,e))||pt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:tS.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:tS.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:tS.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},kr=new tS.Map,Nr=!1,Ar=new tS.Map,Fr=0,Pr=0,wr=0,Ir=!1,Or=0,Mr=Xl(""),Lr=Xl(0),Rr=Xl({negative:!1,base10Value:"0"}),Br=[],jr=[],Jr=[],zr=0,Ur=10,Vr=[],Kr=[],qr=[],Wr=[],Hr=[],Gr=[],Xr=[],Qr=[],Yr=[],Zr=[],$r=[],en=[],tn=[],rn=[],nn=[],an=tS.createDiagnosticCollection(),on=tS.createDiagnosticCollection(),sn=new tS.Map(tS.getEntries({string:Ue,number:Ve,bigint:Ke,boolean:Xe,symbol:Qe,undefined:Re})),cn=Ku(tS.arrayFrom(oS.keys(),Xl)),un=new tS.Map,ln=new tS.Map,_n=new tS.Map,dn=new tS.Map,pn=new tS.Map,fn=new tS.Map,gn=tS.createSymbolTable();return gn.set(_e.escapedName,_e),function(){for(var e,t=0,r=b.getSourceFiles();t<r.length;t++){var n=r[t];tS.bindSourceFile(n,G)}bt=new tS.Map;for(var i=0,a=b.getSourceFiles();i<a.length;i++)if(!(n=a[i]).redirectInfo){if(!tS.isExternalOrCommonJsModule(n)){var o=n.locals.get("globalThis");if(o)for(var s=0,c=o.declarations;s<c.length;s++){var u=c[s];an.add(tS.createDiagnosticForNode(u,tS.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}An(le,n.locals)}n.jsGlobalAugmentations&&An(le,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Dt=tS.concatenate(Dt,n.patternAmbientModules)),n.moduleAugmentations.length&&(e=e||[]).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(function(e,t){le.has(t)||le.set(t,e)})}if(e)for(var l=0,_=e;l<_.length;l++)for(var d=_[l],p=0,f=d;p<f.length;p++){var g=f[p];tS.isGlobalScopeAugmentation(g.parent)&&Fn(g)}if(function(a,o){gn.forEach(function(e,t){var r,n,i=a.get(t);i?tS.forEach(i.declarations,(r=tS.unescapeLeadingUnderscores(t),n=o,function(e){return an.add(tS.createDiagnosticForNode(e,n,r))})):a.set(t,e)})}(le,tS.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Pn(_e).type=Be,Pn(fe).type=hu("IArguments",0,!0),Pn(Ne).type=Ie,Pn(de).type=zi(16,de),Nt=hu("Array",1,!0),Tt=hu("Object",0,!0),Ct=hu("Function",0,!0),Et=S&&hu("CallableFunction",0,!0)||Ct,kt=S&&hu("NewableFunction",0,!0)||Ct,Ft=hu("String",0,!0),Pt=hu("Number",0,!0),wt=hu("Boolean",0,!0),It=hu("RegExp",0,!0),Mt=ku(Fe),(Lt=ku(Pe))===lt&&(Lt=Wi(void 0,A,tS.emptyArray,tS.emptyArray,void 0,void 0)),At=Tu("ReadonlyArray",1)||Nt,Rt=At?Cu(At,[Fe]):Mt,Ot=Tu("ThisType",1),e)for(var m=0,y=e;m<y.length;m++)for(var d=y[m],h=0,v=d;h<v.length;h++){g=v[h];tS.isGlobalScopeAugmentation(g.parent)||Fn(g)}bt.forEach(function(e){var t=e.firstFile,r=e.secondFile,e=e.conflictingSymbols;e.size<8?e.forEach(function(e,t){for(var r=e.isBlockScoped,n=e.firstFileLocations,i=e.secondFileLocations,a=r?tS.Diagnostics.Cannot_redeclare_block_scoped_variable_0:tS.Diagnostics.Duplicate_identifier_0,o=0,s=n;o<s.length;o++)Nn(s[o],a,t,i);for(var c=0,u=i;c<u.length;c++)Nn(u[c],a,t,n)}):(e=tS.arrayFrom(e.keys()).join(", "),an.add(tS.addRelatedInfo(tS.createDiagnosticForNode(t,tS.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,e),tS.createDiagnosticForNode(r,tS.Diagnostics.Conflicts_are_in_this_file))),an.add(tS.addRelatedInfo(tS.createDiagnosticForNode(r,tS.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,e),tS.createDiagnosticForNode(t,tS.Diagnostics.Conflicts_are_in_this_file))))}),bt=void 0}(),me;function mn(e){if(e){var t=tS.getSourceFileOfNode(e);if(t)if(tS.isJsxOpeningFragment(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){var n=tS.isArray(r)?r[0]:r;if(t.localJsxFragmentFactory=tS.parseIsolatedEntityName(n.arguments.factory,R),tS.visitNode(t.localJsxFragmentFactory,i),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=tS.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}r=SD(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=tS.getFirstIdentifier(r).escapedText}else{if(t.localJsxNamespace)return t.localJsxNamespace;r=t.pragmas.get("jsx");if(r){n=tS.isArray(r)?r[0]:r;if(t.localJsxFactory=tS.parseIsolatedEntityName(n.arguments.factory,R),tS.visitNode(t.localJsxFactory,i),t.localJsxFactory)return t.localJsxNamespace=tS.getFirstIdentifier(t.localJsxFactory).escapedText}}}return lr||(lr="React",G.jsxFactory?(_r=tS.parseIsolatedEntityName(G.jsxFactory,R),tS.visitNode(_r,i),_r&&(lr=tS.getFirstIdentifier(_r).escapedText)):G.reactNamespace&&(lr=tS.escapeLeadingUnderscores(G.reactNamespace))),_r=_r||tS.factory.createQualifiedName(tS.factory.createIdentifier(tS.unescapeLeadingUnderscores(lr)),"createElement"),lr;function i(e){return tS.setTextRangePosEnd(e,-1,-1),tS.visitEachChild(e,i,tS.nullTransformationContext)}}function yn(e,t,r,n,i,a,o){o=hn(t,r,n,i,a,o);return o.skippedOn=e,o}function hn(e,t,r,n,i,a){a=e?tS.createDiagnosticForNode(e,t,r,n,i,a):tS.createCompilerDiagnostic(t,r,n,i,a);return an.add(a),a}function vn(e,t){e?an.add(t):on.add(__assign(__assign({},t),{category:tS.DiagnosticCategory.Suggestion}))}function bn(e,t,r,n,i,a,o){var s;t.pos<0||t.end<0?e&&(s=tS.getSourceFileOfNode(t),vn(e,"message"in r?tS.createFileDiagnostic(s,0,0,r,n,i,a,o):tS.createDiagnosticForFileFromMessageChain(s,r))):vn(e,"message"in r?tS.createDiagnosticForNode(t,r,n,i,a,o):tS.createDiagnosticForNodeFromMessageChain(t,r))}function xn(e,t,r,n,i,a,o){o=hn(e,r,n,i,a,o);return t&&(e=tS.createDiagnosticForNode(e,tS.Diagnostics.Did_you_forget_to_use_await),tS.addRelatedInfo(o,e)),o}function Dn(e,t,r){i++;t=new n(33554432|e,t);return t.checkFlags=r||0,t}function Sn(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Tn(e,t){t.mergeId||(t.mergeId=iS,iS++),Vr[t.mergeId]=e}function Cn(e){var t=Dn(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new tS.Map(e.members)),e.exports&&(t.exports=new tS.Map(e.exports)),Tn(t,e),t}function En(e,t,r){if(void 0===r&&(r=!1),!(e.flags&Sn(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){var n=ii(e);if(n===Ne)return t;e=Cn(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&tS.setValueDeclaration(e,t.valueDeclaration),tS.addRange(e.declarations,t.declarations),t.members&&(e.members||(e.members=tS.createSymbolTable()),An(e.members,t.members,r)),t.exports&&(e.exports||(e.exports=tS.createSymbolTable()),An(e.exports,t.exports,r)),r||Tn(e,t)}else{var i,a,o,s,c,u;1024&e.flags?e!==de&&hn(tS.getNameOfDeclaration(t.declarations[0]),tS.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,sa(e)):(i=!!(384&e.flags||384&t.flags),a=!!(2&e.flags||2&t.flags),o=i?tS.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a?tS.Diagnostics.Cannot_redeclare_block_scoped_variable_0:tS.Diagnostics.Duplicate_identifier_0,u=t.declarations&&tS.getSourceFileOfNode(t.declarations[0]),n=e.declarations&&tS.getSourceFileOfNode(e.declarations[0]),r=sa(t),u&&n&&bt&&!i&&u!==n?(s=-1===tS.comparePaths(u.path,n.path)?u:n,c=s===u?n:u,u=tS.getOrUpdate(bt,s.path+"|"+c.path,function(){return{firstFile:s,secondFile:c,conflictingSymbols:new tS.Map}}),l((u=tS.getOrUpdate(u.conflictingSymbols,r,function(){return{isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}})).firstFileLocations,t),l(u.secondFileLocations,e)):(kn(t,o,r,e),kn(e,o,r,t)))}return e;function l(e,t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];tS.pushIfUnique(e,i)}}}function kn(e,t,r,n){tS.forEach(e.declarations,function(e){Nn(e,t,r,n.declarations)})}function Nn(e,t,n,r){for(var i,a,o,s,c=(tS.getExpandoInitializer(e,!1)?tS.getNameOfExpando(e):tS.getNameOfDeclaration(e))||e,u=(i=t,e=n,o=(t=c)?tS.createDiagnosticForNode(t,i,e,a,o,s):tS.createCompilerDiagnostic(i,e,a,o,s),(s=an.lookup(o))||(an.add(o),o)),l=0,_=r||tS.emptyArray;l<_.length;l++)!function(e){var t,r;(e=(tS.getExpandoInitializer(e,!1)?tS.getNameOfExpando(e):tS.getNameOfDeclaration(e))||e)!==c&&(u.relatedInformation=u.relatedInformation||[],t=tS.createDiagnosticForNode(e,tS.Diagnostics._0_was_also_declared_here,n),r=tS.createDiagnosticForNode(e,tS.Diagnostics.and_here),5<=tS.length(u.relatedInformation)||tS.some(u.relatedInformation,function(e){return 0===tS.compareDiagnostics(e,r)||0===tS.compareDiagnostics(e,t)})||tS.addRelatedInfo(u,tS.length(u.relatedInformation)?r:t))}(_[l])}function An(n,e,i){void 0===i&&(i=!1),e.forEach(function(e,t){var r=n.get(t);n.set(t,r?En(r,e,i):e)})}function Fn(e){var t,r=e.parent;if(r.symbol.declarations[0]===r)if(tS.isGlobalScopeAugmentation(r))An(le,r.symbol.exports);else{var n=mi(e,e,8388608&e.parent.parent.flags?void 0:tS.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(n)if(1920&(n=vi(n)).flags)if(tS.some(Dt,function(e){return n===e.symbol})){var i=En(r.symbol,n,!0);(St=St||new tS.Map).set(e.text,i)}else{if(null!==(i=n.exports)&&void 0!==i&&i.get("__export")&&null!==(t=r.symbol.exports)&&void 0!==t&&t.size)for(var a=es(n,"resolvedExports"),o=0,s=tS.arrayFrom(r.symbol.exports.entries());o<s.length;o++){var c=s[o],u=c[0],c=c[1];a.has(u)&&!n.exports.has(u)&&En(a.get(u),c)}En(n,r.symbol)}else hn(e,tS.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else tS.Debug.assert(1<r.symbol.declarations.length)}function Pn(e){if(33554432&e.flags)return e;e=fS(e);return Kr[e]||(Kr[e]=new _S)}function wn(e){e=pS(e);return qr[e]||(qr[e]=new dS)}function In(e){return 297===e.kind&&!tS.isExternalOrCommonJsModule(e)}function On(e,t,r){if(r){e=Ni(e.get(t));if(e){if(tS.Debug.assert(0==(1&tS.getCheckFlags(e)),"Should never get an instantiated symbol here."),e.flags&r)return e;if(2097152&e.flags){t=ai(e);if(t===Ne||t.flags&r)return e}}}}function Mn(t,e){var r=tS.getSourceFileOfNode(t),n=tS.getSourceFileOfNode(e),i=tS.getEnclosingBlockScopeContainer(t);if(r!==n){if(D&&(r.externalModuleIndicator||n.externalModuleIndicator)||!tS.outFile(G)||rf(e)||8388608&t.flags)return!0;if(o(e,t))return!0;var a=b.getSourceFiles();return a.indexOf(r)<=a.indexOf(n)}if(t.pos<=e.pos&&(!tS.isPropertyDeclaration(t)||!tS.isThisProperty(e.parent)||t.initializer||t.exclamationToken)){if(198!==t.kind)return 249===t.kind?!function(e,t){switch(e.parent.parent.kind){case 232:case 237:case 239:if(Un(t,e,i))return!0}var r=e.parent.parent;return tS.isForInOrOfStatement(r)&&Un(t,r.expression,i)}(t,e):tS.isClassDeclaration(t)?!tS.findAncestor(e,function(e){return tS.isComputedPropertyName(e)&&e.parent.parent===t}):tS.isPropertyDeclaration(t)?!s(t,e,!1):!tS.isParameterPropertyDeclaration(t,t.parent)||!(99===G.target&&G.useDefineForClassFields&&tS.getContainingClass(t)===tS.getContainingClass(e)&&o(e,t));n=tS.getAncestor(e,198);return n?tS.findAncestor(n,tS.isBindingElement)!==tS.findAncestor(t,tS.isBindingElement)||t.pos<n.pos:Mn(tS.getAncestor(t,249),e)}return!!(270===e.parent.kind||266===e.parent.kind&&e.parent.isExportEquals)||(!(266!==e.kind||!e.isExportEquals)||(!!(4194304&e.flags||rf(e)||tS.findAncestor(e,function(e){return tS.isInterfaceDeclaration(e)||tS.isTypeAliasDeclaration(e)}))||!!o(e,t)&&(99!==G.target||!G.useDefineForClassFields||!tS.getContainingClass(t)||!tS.isPropertyDeclaration(t)&&!tS.isParameterPropertyDeclaration(t,t.parent)||!s(t,e,!0))));function o(r,n){return tS.findAncestor(r,function(e){if(e===i)return"quit";if(tS.isFunctionLike(e))return!0;var t=e.parent&&163===e.parent.kind&&e.parent.initializer===e;if(t)if(tS.hasSyntacticModifier(e.parent,32)){if(165===n.kind)return!0}else if(!(163===n.kind&&!tS.hasSyntacticModifier(n,32))||tS.getContainingClass(r)!==tS.getContainingClass(n))return!0;return!1})}function s(t,e,r){return!(e.end>t.end)&&void 0===tS.findAncestor(e,function(e){if(e===t)return"quit";switch(e.kind){case 209:return!0;case 163:return!r||!(tS.isPropertyDeclaration(t)&&e.parent===t.parent||tS.isParameterPropertyDeclaration(t,t.parent)&&e.parent===t.parent.parent)||"quit";case 230:switch(e.parent.kind){case 167:case 165:case 168:return!0;default:return!1}default:return!1}})}}function Ln(e,t,r){var n=tS.getEmitScriptTarget(G),t=t;if(tS.isParameter(r)&&t.body&&e.valueDeclaration.pos>=t.body.pos&&e.valueDeclaration.end<=t.body.end&&2<=n){e=wn(t);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=tS.forEach(t.parameters,function(e){return i(e.name)||!!e.initializer&&i(e.initializer)})||!1),!e.declarationRequiresScopeChange}function i(e){switch(e.kind){case 209:case 208:case 251:case 166:return!1;case 165:case 167:case 168:case 288:return i(e.name);case 163:return tS.hasStaticModifier(e)?n<99||!G.useDefineForClassFields:i(e.name);default:return tS.isNullishCoalesce(e)||tS.isOptionalChain(e)?n<7:tS.isBindingElement(e)&&e.dotDotDotToken&&tS.isObjectBindingPattern(e.parent)?n<4:!tS.isTypeNode(e)&&tS.forEachChild(e,i)||!1}}}function Rn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Bn(e,t,r,n,i,a,o,On,s)}function Bn(e,t,r,n,i,a,o,s,c){var u,l,_,d,p,f,g,m,y,h,v=e,b=!1,x=e,D=!1;e:for(;e;){if(e.locals&&!In(e)&&(u=s(e.locals,t,r))){var S=!0;if(tS.isFunctionLike(e)&&l&&l!==e.body?(r&u.flags&788968&&311!==l.kind&&(S=!!(262144&u.flags)&&(l===e.type||160===l.kind||159===l.kind)),r&u.flags&3&&(Ln(u,e,l)?S=!1:1&u.flags&&(S=160===l.kind||l===e.type&&!!tS.findAncestor(u.valueDeclaration,tS.isParameter)))):184===e.kind&&(S=l===e.trueType),S)break e;u=void 0}switch(b=b||function(e,t){if(209!==e.kind&&208!==e.kind)return tS.isTypeQueryNode(e)||(tS.isFunctionLikeDeclaration(e)||163===e.kind&&!tS.hasSyntacticModifier(e,32))&&(!t||t!==e.name);if(t&&t===e.name)return!1;if(e.asteriskToken||tS.hasSyntacticModifier(e,256))return!0;return!tS.getImmediatelyInvokedFunctionExpression(e)}(e,l),e.kind){case 297:if(!tS.isExternalOrCommonJsModule(e))break;D=!0;case 256:var T=Ai(e).exports||A;if(297===e.kind||tS.isModuleDeclaration(e)&&8388608&e.flags&&!tS.isGlobalScopeAugmentation(e)){if(u=T.get("default")){var C=tS.getLocalSymbolForExportDefault(u);if(C&&u.flags&r&&C.escapedName===t)break e;u=void 0}C=T.get(t);if(C&&2097152===C.flags&&(tS.getDeclarationOfKind(C,270)||tS.getDeclarationOfKind(C,269)))break}if("default"!==t&&(u=s(T,t,2623475&r))){if(!tS.isSourceFile(e)||!e.commonJsModuleIndicator||u.declarations.some(tS.isJSDocTypeAlias))break e;u=void 0}break;case 255:if(u=s(Ai(e).exports,t,8&r))break e;break;case 163:tS.hasSyntacticModifier(e,32)||(E=Ri(e.parent))&&E.locals&&s(E.locals,t,111551&r)&&(d=e);break;case 252:case 221:case 253:if(u=s(Ai(e).members||A,t,788968&r)){if(!function(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(159===i.kind)if((tS.isJSDocTemplateTag(i.parent)?tS.getJSDocHost(i.parent):i.parent)===t)return!(tS.isJSDocTemplateTag(i.parent)&&tS.find(i.parent.parent.tags,tS.isJSDocTypeAlias))}return!1}(u,e)){u=void 0;break}if(l&&tS.hasSyntacticModifier(l,32))return void hn(x,tS.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(221===e.kind&&32&r){var E=e.name;if(E&&t===E.escapedText){u=e.symbol;break e}}break;case 223:if(l===e.expression&&93===e.parent.token){var k=e.parent.parent;if(tS.isClassLike(k)&&(u=s(Ai(k).members,t,788968&r)))return void(n&&hn(x,tS.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 158:if(k=e.parent.parent,(tS.isClassLike(k)||253===k.kind)&&(u=s(Ai(k).members,t,788968&r)))return void hn(x,tS.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 209:if(2<=G.target)break;case 165:case 166:case 167:case 168:case 251:if(3&r&&"arguments"===t){u=fe;break e}break;case 208:if(3&r&&"arguments"===t){u=fe;break e}if(16&r){var N=e.name;if(N&&t===N.escapedText){u=e.symbol;break e}}break;case 161:e.parent&&160===e.parent.kind&&(e=e.parent),e.parent&&(tS.isClassElement(e.parent)||252===e.parent.kind)&&(e=e.parent);break;case 331:case 324:case 325:e=tS.getJSDocHost(e);break;case 160:l&&(l===e.initializer||l===e.name&&tS.isBindingPattern(l))&&(p=p||e);break;case 198:l&&(l===e.initializer||l===e.name&&tS.isBindingPattern(l))&&tS.isParameterDeclaration(e)&&!p&&(p=e);break;case 185:if(262144&r){N=e.typeParameter.name;if(N&&t===N.escapedText){u=e.typeParameter.symbol;break e}}}!function(e){switch(e.kind){case 251:case 252:case 253:case 255:case 254:case 256:return!0;default:return!1}}(e)||(_=e),e=(l=e).parent}if(!a||!u||_&&u===_.symbol||(u.isReferenced|=r),!u){if(l&&(tS.Debug.assert(297===l.kind),l.commonJsModuleIndicator&&"exports"===t&&r&l.symbol.flags))return l.symbol;o||(u=s(le,t,r))}if(!u&&v&&tS.isInJSFile(v)&&v.parent&&tS.isRequireCall(v.parent,!1))return ge;if(u){if(n){if(d&&(99!==G.target||!G.useDefineForClassFields)){o=d.name;return void hn(x,tS.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,tS.declarationNameToString(o),jn(i))}x&&(2&r||(32&r||384&r)&&111551==(111551&r))&&(2&(f=Mi(u)).flags||32&f.flags||384&f.flags)&&function(e,t){if(tS.Debug.assert(!!(2&e.flags||32&e.flags||384&e.flags)),!(67108881&e.flags&&32&e.flags)){var r,n,i=tS.find(e.declarations,function(e){return tS.isBlockOrCatchScoped(e)||tS.isClassLike(e)||255===e.kind});if(void 0===i)return tS.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");8388608&i.flags||Mn(i,t)||(r=void 0,n=tS.declarationNameToString(tS.getNameOfDeclaration(i)),2&e.flags?r=hn(t,tS.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,n):32&e.flags?r=hn(t,tS.Diagnostics.Class_0_used_before_its_declaration,n):256&e.flags?r=hn(t,tS.Diagnostics.Enum_0_used_before_its_declaration,n):(tS.Debug.assert(!!(128&e.flags)),G.preserveConstEnums&&(r=hn(t,tS.Diagnostics.Enum_0_used_before_its_declaration,n))),r&&tS.addRelatedInfo(r,tS.createDiagnosticForNode(i,tS.Diagnostics._0_is_declared_here,n)))}}(f,x),!u||!D||111551!=(111551&r)||4194304&v.flags||(g=Ni(u),tS.length(g.declarations)&&tS.every(g.declarations,function(e){return tS.isNamespaceExportDeclaration(e)||tS.isSourceFile(e)&&!!e.symbol.globalExports})&&bn(!G.allowUmdGlobalAccess,x,tS.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,tS.unescapeLeadingUnderscores(t))),u&&p&&!b&&111551==(111551&r)&&(y=Ni(rs(u)),m=tS.getRootDeclaration(p),y===Ai(p)?hn(x,tS.Diagnostics.Parameter_0_cannot_reference_itself,tS.declarationNameToString(p.name)):y.valueDeclaration&&y.valueDeclaration.pos>p.pos&&m.parent.locals&&s(m.parent.locals,y.escapedName,r)===y&&hn(x,tS.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,tS.declarationNameToString(p.name),tS.declarationNameToString(x))),u&&x&&111551&r&&2097152&u.flags&&(f=u,h=t,g=x,tS.isValidTypeOnlyAliasUseSite(g)||(m=ci(f))&&(y=tS.typeOnlyDeclarationIsExport(m),f=y?tS.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:tS.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,y=y?tS.Diagnostics._0_was_exported_here:tS.Diagnostics._0_was_imported_here,h=tS.unescapeLeadingUnderscores(h),tS.addRelatedInfo(hn(g,f,h),tS.createDiagnosticForNode(m,y,h))))}return u}n&&(x&&(function(e,t,r){if(!tS.isIdentifier(e)||e.escapedText!==t||Ix(e)||rf(e))return!1;var n=tS.getThisContainer(e,!1),i=n;for(;i;){if(tS.isClassLike(i.parent)){var a=Ai(i.parent);if(!a)break;if(sc(_o(a),t))return hn(e,tS.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,jn(r),sa(a)),!0;if(i===n&&!tS.hasSyntacticModifier(i,32))if(sc(Ro(a).thisType,t))return hn(e,tS.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,jn(r)),!0}i=i.parent}return!1}(x,t,i)||Jn(x)||function(e,t,r){var n=1920|(tS.isInJSFile(e)?111551:0);if(r===n){var i=ii(Rn(e,t,788968&~n,void 0,void 0,!1)),r=e.parent;if(i){if(tS.isQualifiedName(r)){tS.Debug.assert(r.left===e,"Should only be resolving left side of qualified name as a namespace");n=r.right.escapedText;if(sc(Ro(i),n))return hn(r,tS.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,tS.unescapeLeadingUnderscores(t),tS.unescapeLeadingUnderscores(n)),!0}return hn(e,tS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,tS.unescapeLeadingUnderscores(t)),!0}}return!1}(x,t,r)||function(e,t){if(zn(t)&&270===e.parent.kind)return hn(e,tS.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(x,t)||function(e,t,r){if(111551&r){if(zn(t))return hn(e,tS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,tS.unescapeLeadingUnderscores(t)),!0;var n=ii(Rn(e,t,788544,void 0,void 0,!1));if(n&&!(1024&n.flags)){r=tS.unescapeLeadingUnderscores(t);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?!function(e,t){e=tS.findAncestor(e.parent,function(e){return!tS.isComputedPropertyName(e)&&!tS.isPropertySignature(e)&&(tS.isTypeLiteralNode(e)||"quit")});if(e&&1===e.members.length){t=Ro(t);return!!(1048576&t.flags)&&Uh(t,384,!0)}return!1}(e,n)?hn(e,tS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):hn(e,tS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):hn(e,tS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r),!0}}return!1}(x,t,r)||function(e,t,r){if(111127&r){if(ii(Rn(e,t,1024,void 0,void 0,!1)))return hn(e,tS.Diagnostics.Cannot_use_namespace_0_as_a_value,tS.unescapeLeadingUnderscores(t)),!0}else if(788544&r)if(ii(Rn(e,t,1536,void 0,void 0,!1)))return hn(e,tS.Diagnostics.Cannot_use_namespace_0_as_a_type,tS.unescapeLeadingUnderscores(t)),!0;return!1}(x,t,r)||function(e,t,r){if(788584&r){r=ii(Rn(e,t,111127,void 0,void 0,!1));if(r&&!(1920&r.flags))return hn(e,tS.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,tS.unescapeLeadingUnderscores(t)),!0}return!1}(x,t,r))||(h=void 0,c&&zr<Ur&&(h=Gm(v,t,r))&&(v=sa(h),c=hn(x,c,jn(i),v),h.valueDeclaration&&tS.addRelatedInfo(c,tS.createDiagnosticForNode(h.valueDeclaration,tS.Diagnostics._0_is_declared_here,v))),h||i&&((h=function(e){for(var t=jn(e),r=tS.getScriptTargetFeatures(),e=tS.getOwnKeys(r),n=0,i=e;n<i.length;n++){var a=i[n],o=tS.getOwnKeys(r[a]);if(void 0!==o&&tS.contains(o,t))return a}}(i))?hn(x,n,jn(i),h):hn(x,n,jn(i))),zr++))}function jn(e){return tS.isString(e)?tS.unescapeLeadingUnderscores(e):tS.declarationNameToString(e)}function Jn(e){var t=function e(t){switch(t.kind){case 78:case 201:return t.parent?e(t.parent):void 0;case 223:if(tS.isEntityNameExpression(t.expression))return t.expression;default:return}}(e);return t&&pi(t,64,!0)&&(hn(e,tS.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,tS.getTextOfNode(t)),1)}function zn(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Un(e,t,r){return!!t&&!!tS.findAncestor(e,function(e){return e===r||tS.isFunctionLike(e)?"quit":e===t})}function Vn(e){switch(e.kind){case 260:return e;case 262:return e.parent;case 263:return e.parent.parent;case 265:return e.parent.parent.parent;default:return}}function Kn(e){return tS.find(e.declarations,qn)}function qn(e){return 260===e.kind||259===e.kind||262===e.kind&&!!e.name||263===e.kind||269===e.kind||265===e.kind||270===e.kind||266===e.kind&&tS.exportAssignmentIsAlias(e)||tS.isBinaryExpression(e)&&2===tS.getAssignmentDeclarationKind(e)&&tS.exportAssignmentIsAlias(e)||tS.isAccessExpression(e)&&tS.isBinaryExpression(e.parent)&&e.parent.left===e&&62===e.parent.operatorToken.kind&&Wn(e.parent.right)||289===e.kind||288===e.kind&&Wn(e.initializer)||tS.isRequireVariableDeclaration(e,!0)}function Wn(e){return tS.isAliasableExpression(e)||tS.isFunctionExpression(e)&&Wy(e)}function Hn(e,t){var r=$n(e);if(r){var n=tS.getLeftmostAccessExpression(r.expression).arguments[0];return tS.isIdentifier(r.name)?ii(sc(Nc(n),r.name.escapedText)):void 0}if(tS.isVariableDeclaration(e)||272===e.moduleReference.kind){var i=gi(e,tS.getExternalModuleRequireArgument(e)||tS.getExternalModuleImportEqualsDeclarationExpression(e)),a=vi(i);return oi(e,i,a,!1),a}n=_i(e.moduleReference,t);return oi(r=e,void 0,i=n,!1)&&(a=ci(Ai(r)),t=tS.typeOnlyDeclarationIsExport(a),e=t?tS.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:tS.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=t?tS.Diagnostics._0_was_exported_here:tS.Diagnostics._0_was_imported_here,t=tS.unescapeLeadingUnderscores(a.name.escapedText),tS.addRelatedInfo(hn(r.moduleReference,e),tS.createDiagnosticForNode(a,i,t))),n}function Gn(e,t,r,n){var i=e.exports.get("export="),t=i?sc(_o(i),t):e.exports.get(t),n=ii(t,n);return oi(r,t,n,!1),n}function Xn(e){return tS.isExportAssignment(e)&&!e.isExportEquals||tS.hasSyntacticModifier(e,512)||tS.isExportSpecifier(e)}function Qn(e,t,r){if(!m)return!1;if(e&&!e.isDeclarationFile)return tS.isSourceFileJS(e)?!e.externalModuleIndicator&&!Gn(t,tS.escapeLeadingUnderscores("__esModule"),void 0,r):xi(t);e=Gn(t,"default",void 0,!0);return(!e||!tS.some(e.declarations,Xn))&&!Gn(t,tS.escapeLeadingUnderscores("__esModule"),void 0,r)}function Yn(e,t){var r=gi(e,e.parent.moduleSpecifier);if(r){var n,i,a=void 0,a=tS.isShorthandAmbientModuleSymbol(r)?r:Gn(r,"default",e,t),o=Qn(tS.find(r.declarations,tS.isSourceFile),r,t);if(a||o){if(o){var s=vi(r,t)||ii(r,t);return oi(e,r,s,!1),s}}else xi(r)?(n=D>=tS.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",i=r.exports.get("export=").valueDeclaration,s=hn(e.name,tS.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,sa(r),n),tS.addRelatedInfo(s,tS.createDiagnosticForNode(i,tS.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))):(i=e,null!==(r=(n=r).exports)&&void 0!==r&&r.has(i.symbol.escapedName)?hn(i.name,tS.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,sa(n),sa(i.symbol)):(i=hn(i.name,tS.Diagnostics.Module_0_has_no_default_export,sa(n)),!(n=null===(n=n.exports)||void 0===n?void 0:n.get("__export"))||(n=tS.find(n.declarations,function(e){var t;return!!(tS.isExportDeclaration(e)&&e.moduleSpecifier&&null!==(t=null===(t=gi(e,e.moduleSpecifier))||void 0===t?void 0:t.exports)&&void 0!==t&&t.has("default"))}))&&tS.addRelatedInfo(i,tS.createDiagnosticForNode(n,tS.Diagnostics.export_Asterisk_does_not_re_export_a_default))));return oi(e,a,void 0,!1),a}}function Zn(e,t,r){void 0===r&&(r=!1);var n=tS.getExternalModuleRequireArgument(e)||e.moduleSpecifier,i=gi(e,n),a=!tS.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(tS.isIdentifier(a)){var o,s,c=bi(i,n,r,"default"===a.escapedText&&!(!G.allowSyntheticDefaultImports&&!G.esModuleInterop));if(c&&a.escapedText){if(tS.isShorthandAmbientModuleSymbol(i))return i;var u=void 0,u=i&&i.exports&&i.exports.get("export=")?sc(_o(c),a.escapedText):function(e,t){if(3&e.flags){e=e.valueDeclaration.type;if(e)return ii(sc(e_(e),t))}}(c,a.escapedText);u=ii(u,r);var n=function(e,t,r,n){if(1536&e.flags){t=Ti(e).get(t.escapedText),n=ii(t,n);return oi(r,t,n,!1),n}}(c,a,t,r);void 0===n&&"default"===a.escapedText&&Qn(tS.find(i.declarations,tS.isSourceFile),i,r)&&(n=vi(i,r)||ii(i,r));var l,t=n&&u&&n!==u?function(e,t){if(e===Ne&&t===Ne)return Ne;if(790504&e.flags)return e;var r=Dn(e.flags|t.flags,e.escapedName);return r.declarations=tS.deduplicate(tS.concatenate(e.declarations,t.declarations),tS.equateValues),r.parent=e.parent||t.parent,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),t.members&&(r.members=new tS.Map(t.members)),e.exports&&(r.exports=new tS.Map(e.exports)),r}(u,n):n||u;return t||(r=di(i,e),n=tS.declarationNameToString(a),void 0!==(u=Xm(a,c))?(l=sa(u),c=hn(a,tS.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,r,n,l),u.valueDeclaration&&tS.addRelatedInfo(c,tS.createDiagnosticForNode(u.valueDeclaration,tS.Diagnostics._0_is_declared_here,l))):null!==(l=i.exports)&&void 0!==l&&l.has("default")?hn(a,tS.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,r,n):(e=e,a=a,o=n,n=r,s=null===(i=(r=i).valueDeclaration.locals)||void 0===i?void 0:i.get(a.escapedText),i=r.exports,s?(r=null==i?void 0:i.get("export="))?Oi(r,s)?function(e,t,r,n){var i;D>=tS.ModuleKind.ES2015?(i=G.esModuleInterop?tS.Diagnostics._0_can_only_be_imported_by_using_a_default_import:tS.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,hn(t,i,r)):tS.isInJSFile(e)?(i=G.esModuleInterop?tS.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:tS.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,hn(t,i,r)):(i=G.esModuleInterop?tS.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:tS.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,hn(t,i,r,r,n))}(e,a,o,n):hn(a,tS.Diagnostics.Module_0_has_no_exported_member_1,n,o):(i=(i=i?tS.find(mc(i),function(e){return!!Oi(e,s)}):void 0)?hn(a,tS.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,n,o,sa(i)):hn(a,tS.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,n,o),tS.addRelatedInfo.apply(void 0,__spreadArrays([i],tS.map(s.declarations,function(e,t){return tS.createDiagnosticForNode(e,0===t?tS.Diagnostics._0_is_declared_here:tS.Diagnostics.and_here,o)})))):hn(a,tS.Diagnostics.Module_0_has_no_exported_member_1,n,o))),t}}}function $n(e){if(tS.isVariableDeclaration(e)&&e.initializer&&tS.isPropertyAccessExpression(e.initializer))return e.initializer}function ei(e,t,r){r=e.parent.parent.moduleSpecifier?Zn(e.parent.parent,e,r):pi(e.propertyName||e.name,t,!1,r);return oi(e,void 0,r,!1),r}function ti(e,t){if(tS.isClassExpression(e))return Zh(e).symbol;if(tS.isEntityName(e)||tS.isEntityNameExpression(e)){t=pi(e,901119,!0,t);return t?t:(Zh(e),wn(e).resolvedSymbol)}}function ri(e,t){switch(void 0===t&&(t=!1),e.kind){case 260:case 249:return Hn(e,t);case 262:return Yn(e,t);case 263:return l=t,_=(u=e).parent.parent.moduleSpecifier,d=gi(u,_),l=bi(d,_,l,!1),oi(u,d,l,!1),l;case 269:return o=t,s=(a=e).parent.moduleSpecifier,c=s&&gi(a,s),o=s&&bi(c,s,o,!1),oi(a,c,o,!1),o;case 265:case 198:return s=e,a=t,o=$n(c=tS.isBindingElement(s)?tS.getRootDeclaration(s):s.parent.parent.parent),i=Zn(c,o||s,a),c=s.propertyName||s.name,o&&i&&tS.isIdentifier(c)?ii(sc(_o(i),c.escapedText),a):(oi(s,void 0,i,!1),i);case 270:return ei(e,901119,t);case 266:case 216:return i=e,n=t,n=ti(tS.isExportAssignment(i)?i.expression:i.right,n),oi(i,void 0,n,!1),n;case 259:return r=t,r=vi((n=e).parent.symbol,r),oi(n,void 0,r,!1),r;case 289:return pi(e.name,901119,!0,t);case 288:return r=t,ti(e.initializer,r);case 202:case 201:return function(e,t){if(tS.isBinaryExpression(e.parent)&&e.parent.left===e&&62===e.parent.operatorToken.kind)return ti(e.parent.right,t)}(e,t);default:return tS.Debug.fail()}var r,n,i,a,o,s,c,u,l,_,d}function ni(e,t){return void 0===t&&(t=901119),e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function ii(e,t){return!t&&ni(e)?ai(e):e}function ai(e){tS.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=Pn(e);if(t.target)t.target===Ae&&(t.target=Ne);else{t.target=Ae;var r=Kn(e);if(!r)return tS.Debug.fail();var n=ri(r);t.target===Ae?t.target=n||Ne:hn(r,tS.Diagnostics.Circular_definition_of_import_alias_0,sa(e))}return t.target}function oi(e,t,r,n){if(e&&!tS.isPropertyAccessExpression(e)){var i=Ai(e);if(tS.isTypeOnlyImportOrExportDeclaration(e))return Pn(i).typeOnlyDeclaration=e,1;i=Pn(i);return si(i,t,n)||si(i,r,n)}}function si(e,t,r){return t&&(void 0===e.typeOnlyDeclaration||r&&!1===e.typeOnlyDeclaration)&&(t=(r=null!==(r=null===(r=t.exports)||void 0===r?void 0:r.get("export="))&&void 0!==r?r:t).declarations&&tS.find(r.declarations,tS.isTypeOnlyImportOrExportDeclaration),e.typeOnlyDeclaration=null!==(r=null!=t?t:Pn(r).typeOnlyDeclaration)&&void 0!==r&&r),!!e.typeOnlyDeclaration}function ci(e){if(2097152&e.flags)return Pn(e).typeOnlyDeclaration||void 0}function ui(e){var t=Ai(e),e=ai(t);e&&(e===Ne||111551&e.flags&&!tD(e)&&!ci(t))&&li(t)}function li(e){var t=Pn(e);if(!t.referenced){t.referenced=!0;t=Kn(e);if(!t)return tS.Debug.fail();!tS.isInternalModuleImportEqualsDeclaration(t)||((e=ii(e))===Ne||111551&e.flags)&&Zh(t.moduleReference)}}function _i(e,t){return 78===e.kind&&tS.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),78===e.kind||157===e.parent.kind?pi(e,1920,!1,t):(tS.Debug.assert(260===e.parent.kind),pi(e,901119,!1,t))}function di(e,t){return e.parent?di(e.parent,t)+"."+sa(e):sa(e,t,void 0,20)}function pi(e,t,r,n,i){if(!tS.nodeIsMissing(e)){var a=1920|(tS.isInJSFile(e)?111551&t:0);if(78===e.kind){var o,s=t===a||tS.nodeIsSynthesized(e)?tS.Diagnostics.Cannot_find_namespace_0:ef(tS.getFirstIdentifier(e)),c=tS.isInJSFile(e)&&!tS.nodeIsSynthesized(e)?function(e,t){if(uu(e.parent)){var r=function(e){if(tS.findAncestor(e,function(e){return tS.isJSDocNode(e)||4194304&e.flags?tS.isJSDocTypeAlias(e):"quit"}))return;var t=tS.getJSDocHost(e);if(tS.isExpressionStatement(t)&&tS.isBinaryExpression(t.expression)&&3===tS.getAssignmentDeclarationKind(t.expression))if(r=Ai(t.expression.left))return fi(r);if((tS.isObjectLiteralMethod(t)||tS.isPropertyAssignment(t))&&tS.isBinaryExpression(t.parent.parent)&&6===tS.getAssignmentDeclarationKind(t.parent.parent))if(r=Ai(t.parent.parent.left))return fi(r);e=tS.getEffectiveJSDocHost(e);if(e&&tS.isFunctionLike(e)){var r;return(r=Ai(e))&&r.valueDeclaration}}(e.parent);if(r)return Rn(r,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(!(o=Ni(Rn(i||e,e.escapedText,t,r||c?void 0:s,e,!0))))return Ni(c)}else{if(157!==e.kind&&201!==e.kind)throw tS.Debug.assertNever(e,"Unknown entity name kind.");var u,s=157===e.kind?e.left:e.expression,c=157===e.kind?e.right:e.name,a=pi(s,a,r,!1,i);if(!a||tS.nodeIsMissing(c))return;if(a===Ne)return a;if(tS.isInJSFile(e)&&a.valueDeclaration&&tS.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer&&eh(a.valueDeclaration.initializer)&&(!(i=gi(i=a.valueDeclaration.initializer.arguments[0],i))||(u=vi(i))&&(a=u)),o=Ni(On(Ti(a),c.escapedText,t)),!o)return void(r||(u=di(a),r=tS.declarationNameToString(c),(a=Xm(c,a))?hn(c,tS.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,u,r,sa(a)):hn(c,tS.Diagnostics.Namespace_0_has_no_exported_member_1,u,r)))}return tS.Debug.assert(0==(1&tS.getCheckFlags(o)),"Should never get an instantiated symbol here."),!tS.nodeIsSynthesized(e)&&tS.isEntityName(e)&&(2097152&o.flags||266===e.parent.kind)&&oi(tS.getAliasDeclarationFromName(e),o,void 0,!0),o.flags&t||n?o:ai(o)}}function fi(e){e=e.parent.valueDeclaration;if(e)return(tS.isAssignmentDeclaration(e)?tS.getAssignedExpandoInitializer(e):tS.hasOnlyExpressionInitializer(e)?tS.getDeclaredExpandoInitializer(e):void 0)||e}function gi(e,t,r){var n=tS.getEmitModuleResolutionKind(G)===tS.ModuleResolutionKind.Classic?tS.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:tS.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return mi(e,t,r?void 0:n)}function mi(e,t,r,n){return void 0===n&&(n=!1),tS.isStringLiteralLike(t)?yi(e,t.text,r,t,n):void 0}function yi(e,t,r,n,i){void 0===i&&(i=!1),tS.startsWith(t,"@types/")&&hn(n,tS.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,tS.removePrefix(t,"@types/"),t);var a=hc(t,!0);if(a)return a;var o=tS.getSourceFileOfNode(e),s=tS.getResolvedModule(o,t),a=s&&tS.getResolutionDiagnostic(G,s),e=s&&!a&&b.getSourceFile(s.resolvedFileName);if(e)return e.symbol?(s.isExternalLibraryImport&&!tS.resolutionExtensionIsTSOrJson(s.extension)&&hi(!1,n,s,t),Ni(e.symbol)):void(r&&hn(n,tS.Diagnostics.File_0_is_not_a_module,e.fileName));if(Dt){o=tS.findBestPatternMatch(Dt,function(e){return e.pattern},t);if(o){e=St&&St.get(t);return e?Ni(e):Ni(o.symbol)}}if(s&&!tS.resolutionExtensionIsTSOrJson(s.extension)&&void 0===a||a===tS.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)i?hn(n,tS.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,s.resolvedFileName):hi(Q&&!!r,n,s,t);else if(r){if(s){i=b.getProjectReferenceRedirect(s.resolvedFileName);if(i)return void hn(n,tS.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,i,s.resolvedFileName)}a?hn(n,a,t,s.resolvedFileName):(s=tS.tryExtractTSExtension(t))?hn(n,tS.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,s,tS.removeExtension(t,s)):!G.resolveJsonModule&&tS.fileExtensionIs(t,".json")&&tS.getEmitModuleResolutionKind(G)===tS.ModuleResolutionKind.NodeJs&&tS.hasJsonModuleEmitEnabled(G)?hn(n,tS.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):hn(n,r,t)}}function hi(e,t,r,n){var i=r.packageId,a=r.resolvedFileName,i=!tS.isExternalModuleNameRelative(n)&&i?(r=i.name,o().has(tS.getTypesPackageName(r))?tS.chainDiagnosticMessages(void 0,tS.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i.name,tS.mangleScopedPackageName(i.name)):tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,tS.mangleScopedPackageName(i.name))):void 0;bn(e,t,tS.chainDiagnosticMessages(i,tS.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,n,a))}function vi(e,t){if(null!=e&&e.exports){t=function(e,t){if(!e||e===Ne||e===t||1===t.exports.size||2097152&e.flags)return e;var r=Pn(e);if(r.cjsExportMerged)return r.cjsExportMerged;var n=33554432&e.flags?e:Cn(e);n.flags=512|n.flags,void 0===n.exports&&(n.exports=tS.createSymbolTable());return t.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?En(n.exports.get(t),e):e)}),Pn(n).cjsExportMerged=n,r.cjsExportMerged=n}(Ni(ii(e.exports.get("export="),t)),Ni(e));return Ni(t)||e}}function bi(e,t,r,n){var i=vi(e,r);if(!r&&i){if(!(n||1539&i.flags||tS.getDeclarationOfKind(i,297))){var a=D>=tS.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return hn(t,tS.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,a),i}if(G.esModuleInterop){n=t.parent;if(tS.isImportDeclaration(n)&&tS.getNamespaceDeclarationNode(n)||tS.isImportCall(n)){a=_o(i),t=cc(a,0);if(t&&t.length||(t=cc(a,1)),t&&t.length){a=$y(a,i,e),e=Dn(i.flags,i.escapedName);e.declarations=i.declarations?i.declarations.slice():[],e.parent=i.parent,e.target=i,e.originatingImport=n,i.valueDeclaration&&(e.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(e.constEnumOnlyModule=!0),i.members&&(e.members=new tS.Map(i.members)),i.exports&&(e.exports=new tS.Map(i.exports));a=Is(a);return e.type=Wi(e,a.members,tS.emptyArray,tS.emptyArray,a.stringIndexInfo,a.numberIndexInfo),e}}}}return i}function xi(e){return void 0!==e.exports.get("export=")}function Di(e){return mc(Ci(e))}function Si(e,t){t=Ci(t);if(t)return t.get(e)}function Ti(e){return 6256&e.flags?es(e,"resolvedExports"):1536&e.flags?Ci(e):e.exports||A}function Ci(e){var t=Pn(e);return t.resolvedExports||(t.resolvedExports=ki(e))}function Ei(n,e,i,a){e&&e.forEach(function(e,t){var r;"default"!==t&&((r=n.get(t))?i&&a&&r&&ii(r)!==ii(e)&&((r=i.get(t)).exportsWithDuplicate?r.exportsWithDuplicate.push(a):r.exportsWithDuplicate=[a]):(n.set(t,e),i&&a&&i.set(t,{specifierText:tS.getTextOfNode(a.moduleSpecifier)})))})}function ki(e){var u=[];return function e(t){if(!(t&&t.exports&&tS.pushIfUnique(u,t)))return;var a=new tS.Map(t.exports);var t=t.exports.get("__export");if(t){for(var r=tS.createSymbolTable(),o=new tS.Map,n=0,i=t.declarations;n<i.length;n++){var s=i[n],c=gi(s,s.moduleSpecifier),c=e(c);Ei(r,c,o,s)}o.forEach(function(e,t){var e=e.exportsWithDuplicate;if("export="!==t&&e&&e.length&&!a.has(t))for(var r=0,n=e;r<n.length;r++){var i=n[r];an.add(tS.createDiagnosticForNode(i,tS.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,o.get(t).specifierText,tS.unescapeLeadingUnderscores(t)))}}),Ei(a,r)}return a}(e=vi(e))||A}function Ni(e){var t;return e&&e.mergeId&&(t=Vr[e.mergeId])?t:e}function Ai(e){return Ni(e.symbol&&rs(e.symbol))}function Fi(e){return Ni(e.parent&&rs(e.parent))}function Pi(t,e,r){var n=Fi(t);if(n&&!(262144&t.flags)){var i=tS.mapDefined(n.declarations,function(e){return n&&wi(e,n)}),a=e&&function(e,t){var r,n=tS.getSourceFileOfNode(t),i=pS(n),a=Pn(e);if(a.extendedContainersByFile&&(r=a.extendedContainersByFile.get(i)))return r;if(n&&n.imports){for(var o=0,s=n.imports;o<s.length;o++){var c=s[o];tS.nodeIsSynthesized(c)||(c=gi(t,c,!0))&&Ii(c,e)&&(r=tS.append(r,c))}if(tS.length(r))return(a.extendedContainersByFile||(a.extendedContainersByFile=new tS.Map)).set(i,r),r}if(a.extendedContainers)return a.extendedContainers;for(var u=0,l=b.getSourceFiles();u<l.length;u++){var _=l[u];tS.isExternalModule(_)&&(Ii(_=Ai(_),e)&&(r=tS.append(r,_)))}return a.extendedContainers=r||tS.emptyArray}(t,e),r=function(e,t){e=!!tS.length(e.declarations)&&tS.first(e.declarations);if(111551&t&&e&&e.parent&&tS.isVariableDeclaration(e.parent)&&(tS.isObjectLiteralExpression(e)&&e===e.parent.initializer||tS.isTypeLiteralNode(e)&&e===e.parent.type))return Ai(e.parent)}(n,r);if(e&&Xi(n,e,1920,!1))return tS.append(tS.concatenate(tS.concatenate([n],i),a),r);r=tS.append(tS.append(i,n),r);return tS.concatenate(r,a)}a=tS.mapDefined(t.declarations,function(e){return!tS.isAmbientModule(e)&&e.parent&&ia(e.parent)?Ai(e.parent):tS.isClassExpression(e)&&tS.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind&&tS.isAccessExpression(e.parent.left)&&tS.isEntityNameExpression(e.parent.left.expression)?tS.isModuleExportsAccessExpression(e.parent.left)||tS.isExportsIdentifier(e.parent.left.expression)?Ai(tS.getSourceFileOfNode(e)):(Zh(e.parent.left.expression),wn(e.parent.left.expression).resolvedSymbol):void 0});if(tS.length(a))return tS.mapDefined(a,function(e){return Ii(e,t)?e:void 0})}function wi(e,t){var r=ra(e),e=r&&r.exports&&r.exports.get("export=");return e&&Oi(e,t)?r:void 0}function Ii(e,t){if(e===Fi(t))return t;var r=e.exports&&e.exports.get("export=");if(r&&Oi(r,t))return e;r=Ti(e),e=r.get(t.escapedName);return e&&Oi(e,t)?e:tS.forEachEntry(r,function(e){if(Oi(e,t))return e})}function Oi(e,t){return Ni(ii(Ni(e)))===Ni(ii(Ni(t)))&&e}function Mi(e){return Ni(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Li(e){return 111551&e.flags||2097152&e.flags&&111551&ai(e).flags&&!ci(e)}function Ri(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t];if(166===n.kind&&tS.nodeIsPresent(n.body))return n}}function Bi(e){e=new t(me,e);return r++,e.id=r,f.push(e),e}function ji(e,t,r){void 0===r&&(r=0);e=Bi(e);return e.intrinsicName=t,e.objectFlags=r,e}function Ji(e){e=Ku(e);return e.flags|=16,e.intrinsicName="boolean",e}function zi(e,t){var r=Bi(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function Ui(e){var t=Bi(262144);return e&&(t.symbol=e),t}function Vi(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Ki(e){var r;return e.forEach(function(e,t){!Vi(t)&&Li(e)&&(r=r||[]).push(e)}),r||tS.emptyArray}function qi(e,t,r,n,i,a){return e.members=t,e.properties=t===A?tS.emptyArray:Ki(t),e.callSignatures=r,e.constructSignatures=n,e.stringIndexInfo=i,e.numberIndexInfo=a,e}function Wi(e,t,r,n,i,a){return qi(zi(16,e),t,r,n,i,a)}function Hi(e,n){for(var i,t=e;t;t=t.parent){var r=function(e){if(e.locals&&!In(e)&&(i=n(e.locals)))return{value:i};switch(e.kind){case 297:if(!tS.isExternalOrCommonJsModule(e))break;case 256:var t=Ai(e);if(i=n((null==t?void 0:t.exports)||A))return{value:i};break;case 252:case 221:case 253:var r;if((Ai(e).members||A).forEach(function(e,t){788968&e.flags&&(r=r||tS.createSymbolTable()).set(t,e)}),r&&(i=n(r)))return{value:i}}}(t);if("object"==typeof r)return r.value}return n(le)}function Gi(e){return 111551===e?111551:1920}function Xi(n,i,a,o,r){if(void 0===r&&(r=new tS.Map),n&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 163:case 165:case 167:case 168:continue;default:return!1}return!0}return!1}(n)){var e=fS(n),s=r.get(e);return s||r.set(e,s=[]),Hi(i,c)}function c(e,t){if(tS.pushIfUnique(s,e)){t=function(e,r){if(l(e.get(n.escapedName),void 0,r))return[n];return tS.forEachEntry(e,function(e){if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(tS.isUMDExportSymbol(e)&&i&&tS.isExternalModule(tS.getSourceFileOfNode(i)))&&(!o||tS.some(e.declarations,tS.isExternalModuleImportEqualsDeclaration))&&(r||!tS.getDeclarationOfKind(e,270))){var t=_(e,ai(e),r);if(t)return t}if(e.escapedName===n.escapedName&&e.exportSymbol&&l(Ni(e.exportSymbol),void 0,r))return[n]})||(e===le?_(de,de,r):void 0)}(e,t);return s.pop(),t}}function u(e,t){return!Qi(e,i,t)||!!Xi(e.parent,i,Gi(t),o,r)}function l(e,t,r){return(n===(t||e)||Ni(n)===Ni(t||e))&&!tS.some(e.declarations,ia)&&(r||u(Ni(e),a))}function _(e,t,r){if(l(e,t,r))return[e];t=Ti(t),t=t&&c(t,!0);return t&&u(e,Gi(a))?[e].concat(t):void 0}}function Qi(t,e,r){var n=!1;return Hi(e,function(e){e=Ni(e.get(t.escapedName));return!!e&&(e===t||!!((e=2097152&e.flags&&!tS.getDeclarationOfKind(e,270)?ai(e):e).flags&r)&&(n=!0))}),n}function Yi(e,t){return 0===ta(e,t,788968,!1,!0).accessibility}function Zi(e,t){return 0===ta(e,t,111551,!1,!0).accessibility}function $i(e,t,r){return 0===ta(e,t,r,!1,!1).accessibility}function ea(e,t,r,n){return ta(e,t,r,n,!0)}function ta(e,t,r,n,i){if(e&&t){i=function e(t,r,n,i,a,o){if(tS.length(t)){for(var s,c=!1,u=0,l=t;u<l.length;u++){var _=l[u],d=Xi(_,r,i,!1);if(d){if(s=_,d=aa(d[0],a))return d}else if(o&&tS.some(_.declarations,ia)){if(a){c=!0;continue}return{accessibility:0}}if(_=e(Pi(_,r,i),r,n,n===_?Gi(i):i,a,o))return _}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:sa(n,r,i),errorModuleName:s!==n?sa(s,r,1920):void 0}:void 0}}([e],t,e,r,n,i);if(i)return i;i=tS.forEach(e.declarations,ra);if(i)if(i!==ra(t))return{accessibility:2,errorSymbolName:sa(e,t,r),errorModuleName:sa(i)};return{accessibility:1,errorSymbolName:sa(e,t,r)}}return{accessibility:0}}function ra(e){e=tS.findAncestor(e,na);return e&&Ai(e)}function na(e){return tS.isAmbientModule(e)||297===e.kind&&tS.isExternalOrCommonJsModule(e)}function ia(e){return tS.isModuleWithStringLiteralName(e)||297===e.kind&&tS.isExternalOrCommonJsModule(e)}function aa(i,r){var n;if(tS.every(tS.filter(i.declarations,function(e){return 78!==e.kind}),function(e){var t,r;if(xa(e))return!0;var n=Vn(e);{if(n&&!tS.hasSyntacticModifier(n,1)&&xa(n.parent))return a(e,n);if(tS.isVariableDeclaration(e)&&tS.isVariableStatement(e.parent.parent)&&!tS.hasSyntacticModifier(e.parent.parent,1)&&xa(e.parent.parent.parent))return a(e,e.parent.parent);if(tS.isLateVisibilityPaintedStatement(e)&&!tS.hasSyntacticModifier(e,1)&&xa(e.parent))return a(e,e);if(2097152&i.flags&&tS.isBindingElement(e)&&tS.isInJSFile(e)&&null!==(t=e.parent)&&void 0!==t&&t.parent&&tS.isVariableDeclaration(e.parent.parent)&&null!==(r=e.parent.parent.parent)&&void 0!==r&&r.parent&&tS.isVariableStatement(e.parent.parent.parent.parent)&&!tS.hasSyntacticModifier(e.parent.parent.parent.parent,1)&&e.parent.parent.parent.parent.parent&&xa(e.parent.parent.parent.parent.parent))return a(e,e.parent.parent.parent.parent)}return!1}))return{accessibility:0,aliasesToMakeVisible:n};function a(e,t){return r&&(wn(e).isVisible=!0,n=tS.appendIfUnique(n,t)),!0}}function oa(e,t){var r=176===e.parent.kind||tS.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)||158===e.parent.kind?1160127:157===e.kind||201===e.kind||260===e.parent.kind?1920:788968,e=tS.getFirstIdentifier(e),t=Rn(t,e.escapedText,r,void 0,void 0,!1);return t&&262144&t.flags&&788968&r?{accessibility:0}:t&&aa(t,!0)||{accessibility:1,errorSymbolName:tS.getTextOfNode(e),errorNode:e}}function sa(i,a,o,e,t){void 0===e&&(e=4);var s=70221824;2&e&&(s|=128),1&e&&(s|=512),8&e&&(s|=16384),16&e&&(s|=134217728);var c=4&e?C.symbolToExpression:C.symbolToEntityName;return t?r(t).getText():tS.usingSingleLineStringWriter(r);function r(e){var t=c(i,o,a,s),r=297===(null==a?void 0:a.kind)?tS.createPrinter({removeComments:!0,neverAsciiEscape:!0}):tS.createPrinter({removeComments:!0}),n=a&&tS.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function ca(i,a,o,s,e){return void 0===o&&(o=0),e?t(e).getText():tS.usingSingleLineStringWriter(t);function t(e){var t=262144&o?1===s?175:174:1===s?170:169,r=C.signatureToSignatureDeclaration(i,t,a,70222336|pa(o)),n=tS.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),t=a&&tS.getSourceFileOfNode(a);return n.writeNode(4,r,t,tS.getTrailingSemicolonDeferringWriter(e)),e}}function ua(e,t,r,n){void 0===r&&(r=1064960),void 0===n&&(n=tS.createTextWriter(""));var i=G.noErrorTruncation||1&r,e=C.typeToTypeNode(e,t,70221824|pa(r)|(i?1:0),n);if(void 0===e)return tS.Debug.fail("should always get typenode");r=tS.createPrinter({removeComments:!0}),t=t&&tS.getSourceFileOfNode(t);r.writeNode(4,e,t,n);n=n.getText(),i=i?2*tS.noTruncationMaximumTruncationLength:2*tS.defaultMaximumTruncationLength;return i&&n&&n.length>=i?n.substr(0,i-"...".length)+"...":n}function la(e,t){var r=da(e.symbol)?ua(e,e.symbol.valueDeclaration):ua(e),n=da(t.symbol)?ua(t,t.symbol.valueDeclaration):ua(t);return r===n&&(r=_a(e),n=_a(t)),[r,n]}function _a(e){return ua(e,void 0,64)}function da(e){return e&&e.valueDeclaration&&tS.isExpression(e.valueDeclaration)&&!A_(e.valueDeclaration)}function pa(e){return void 0===e&&(e=0),814775659&e}function fa(e){return e.symbol&&32&e.symbol.flags&&(e===Ao(e.symbol)||1073741824&tS.getObjectFlags(e))}function ga(i,a,o,e){return void 0===o&&(o=16384),e?t(e).getText():tS.usingSingleLineStringWriter(t);function t(e){var t=tS.factory.createTypePredicateNode(2===i.kind||3===i.kind?tS.factory.createToken(127):void 0,1===i.kind||3===i.kind?tS.factory.createIdentifier(i.parameterName):tS.factory.createThisTypeNode(),i.type&&C.typeToTypeNode(i.type,a,70222336|pa(o))),r=tS.createPrinter({removeComments:!0}),n=a&&tS.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function ma(e){return 8===e?"private":16===e?"protected":"public"}function ya(e){return e&&e.parent&&257===e.parent.kind&&tS.isExternalModuleAugmentation(e.parent.parent)}function ha(e){return 297===e.kind||tS.isAmbientModule(e)}function va(e,t){var r=Pn(e).nameType;if(r){if(384&r.flags){e=""+r.value;return tS.isIdentifierText(e,G.target)||Yg(e)?Yg(e)&&tS.startsWith(e,"-")?"["+e+"]":e:'"'+tS.escapeString(e,34)+'"'}if(8192&r.flags)return"["+ba(r.symbol,t)+"]"}}function ba(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&tS.findAncestor(e.declarations[0],ha)!==tS.findAncestor(t.enclosingDeclaration,ha)))return"default";if(e.declarations&&e.declarations.length){var r=tS.firstDefined(e.declarations,function(e){return tS.getNameOfDeclaration(e)?e:void 0}),n=r&&tS.getNameOfDeclaration(r);if(r&&n){if(tS.isCallExpression(r)&&tS.isBindableObjectDefinePropertyCall(r))return tS.symbolName(e);if(tS.isComputedPropertyName(n)&&!(4096&tS.getCheckFlags(e))){var i=Pn(e).nameType;if(i&&384&i.flags){i=va(e,t);if(void 0!==i)return i}}return tS.declarationNameToString(n)}if((r=r||e.declarations[0]).parent&&249===r.parent.kind)return tS.declarationNameToString(r.parent.name);switch(r.kind){case 221:case 208:case 209:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),221===r.kind?"(Anonymous class)":"(Anonymous function)"}}n=va(e,t);return void 0!==n?n:tS.symbolName(e)}function xa(t){if(t){var e=wn(t);return void 0===e.isVisible&&(e.isVisible=!!function(){switch(t.kind){case 324:case 331:case 325:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&tS.isSourceFile(t.parent.parent.parent));case 198:return xa(t.parent.parent);case 249:if(tS.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 256:case 252:case 253:case 254:case 251:case 255:case 260:if(tS.isExternalModuleAugmentation(t))return!0;var e=Ea(t);return 1&tS.getCombinedModifierFlags(t)||260!==t.kind&&297!==e.kind&&8388608&e.flags?xa(e):In(e);case 163:case 162:case 167:case 168:case 165:case 164:if(tS.hasEffectiveModifier(t,24))return!1;case 166:case 170:case 169:case 171:case 160:case 257:case 174:case 175:case 177:case 173:case 178:case 179:case 182:case 183:case 186:case 192:return xa(t.parent);case 262:case 263:case 265:return!1;case 159:case 297:case 259:return!0;case 266:default:return!1}}()),e.isVisible}return!1}function Da(e,n){var t,i,a;return e.parent&&266===e.parent.kind?t=Rn(e,e.escapedText,2998271,void 0,e,!1):270===e.parent.kind&&(t=ei(e.parent,2998271)),t&&((a=new tS.Set).add(fS(t)),function r(e){tS.forEach(e,function(e){var t=Vn(e)||e;n?wn(e).isVisible=!0:(i=i||[],tS.pushIfUnique(i,t)),tS.isInternalModuleImportEqualsDeclaration(e)&&(t=e.moduleReference,t=tS.getFirstIdentifier(t),(t=Rn(e,t.escapedText,901119,void 0,void 0,!1))&&a&&tS.tryAddToSet(a,fS(t))&&r(t.declarations))})}(t.declarations)),i}function Sa(e,t){var r=Ta(e,t);if(!(0<=r))return Br.push(e),jr.push(!0),Jr.push(t),1;for(var n=Br.length,i=r;i<n;i++)jr[i]=!1}function Ta(e,t){for(var r=Br.length-1;0<=r;r--){if(function(e,t){switch(t){case 0:return!!Pn(e).type;case 5:return!!wn(e).resolvedEnumType;case 2:return!!Pn(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved}return tS.Debug.assertNever(t)}(Br[r],Jr[r]))return-1;if(Br[r]===e&&Jr[r]===t)return r}return-1}function Ca(){return Br.pop(),Jr.pop(),jr.pop()}function Ea(e){return tS.findAncestor(tS.getRootDeclaration(e),function(e){switch(e.kind){case 249:case 250:case 265:case 264:case 263:case 262:return!1;default:return!0}}).parent}function ka(e,t){t=sc(e,t);return t?_o(t):void 0}function Na(e){return e&&0!=(1&e.flags)}function Aa(e){var t=Ai(e);return t&&Pn(t).type||Ba(e,!1)}function Fa(e,t,r){if(131072&(e=wf(e,function(e){return!(98304&e.flags)})).flags)return lt;if(1048576&e.flags)return If(e,function(e){return Fa(e,t,r)});var n=Ku(tS.map(t,el));if(ml(e)||yl(n)){if(131072&n.flags)return e;var i=ar=ar||yu("Omit",524288,tS.Diagnostics.Cannot_find_global_type_0);return i?ru(i,[e,n]):Ie}for(var a=tS.createSymbolTable(),o=0,s=Rs(e);o<s.length;o++){var c=s[o];j_(tl(c,8576),n)||24&tS.getDeclarationModifierFlagsFromSymbol(c)||!Ul(c)||a.set(c.escapedName,Vl(c,!1))}i=dc(e,0),e=dc(e,1),e=Wi(r,a,tS.emptyArray,tS.emptyArray,i,e);return e.objectFlags|=131072,e}function Pa(e,t){e=wa(e);return e?Zf(e,t):t}function wa(e){var t=function(e){var t=e.parent.parent;switch(t.kind){case 198:case 288:return wa(t);case 199:return wa(e.parent);case 249:return t.initializer;case 216:return t.right}}(e);if(t&&t.flowNode){var r=(n=(i=e).parent,198!==i.kind||196!==n.kind?288!==i.kind&&289!==i.kind?""+n.elements.indexOf(i):Ia(i.name):Ia(i.propertyName||i.name));if(r){var n=tS.setTextRange(tS.parseNodeFactory.createStringLiteral(r),e),i=tS.isLeftHandSideExpression(t)?t:tS.parseNodeFactory.createParenthesizedExpression(t),r=tS.setTextRange(tS.parseNodeFactory.createElementAccessExpression(i,n),e);return tS.setParent(n,r),tS.setParent(r,e),i!==t&&tS.setParent(i,r),r.flowNode=t.flowNode,r}}}function Ia(e){e=el(e);return 384&e.flags?""+e.value:void 0}function Oa(e){var t=e.parent,r=Aa(t.parent);if(!r||Na(r))return r;if(X&&8388608&e.flags&&tS.isParameterDeclaration(e)?r=op(r):!X||!t.parent.initializer||65536&ff(Tf(t.parent.initializer))||(r=gf(r,524288)),196===t.kind)if(e.dotDotDotToken){if(2&(r=rc(r)).flags||!rm(r))return hn(e,tS.Diagnostics.Rest_types_may_only_be_created_from_object_types),Ie;for(var n=[],i=0,a=t.elements;i<a.length;i++){var o=a[i];o.dotDotDotToken||n.push(o.propertyName||o.name)}c=Fa(r,n,e.symbol)}else var s=e.propertyName||e.name,c=Pa(e,ag(Sl(r,u=el(s),void 0,s,void 0,void 0,16),e.name));else{var u,s=Eb(65|(e.dotDotDotToken?0:128),r,Re,t),l=t.elements.indexOf(e);c=e.dotDotDotToken?Pf(r,Hd)?If(r,function(e){return Lu(e,l)}):ku(s):Md(r)?(u=Xl(l),t=Wg(e)?8:0,Pa(e,ag(Cl(r,u,void 0,e.name,16|t)||Ie,e.name))):s}return e.initializer?tS.getEffectiveTypeAnnotationNode(tS.walkUpBindingElementsAndPatterns(e))?!X||32768&tp($h(e))?c:gf(c,524288):ev(e,Ku([gf(c,524288),$h(e)],2)):c}function Ma(e){e=tS.getJSDocType(e);if(e)return e_(e)}function La(e){e=tS.skipParentheses(e);return 199===e.kind&&0===e.elements.length}function Ra(e,t){return void 0===t&&(t=!0),X&&t?ap(e):e}function Ba(e,t){if(tS.isVariableDeclaration(e)&&238===e.parent.parent.kind){var r=il(Fm(fv(e.parent.parent.expression)));return 4456448&r.flags?al(r):Ue}if(tS.isVariableDeclaration(e)&&239===e.parent.parent.kind)return Cb(e.parent.parent)||Fe;if(tS.isBindingPattern(e.parent))return Oa(e);r=t&&(tS.isParameter(e)&&yc(e)||bc(e)||!tS.isBindingElement(e)&&!tS.isVariableDeclaration(e)&&!!e.questionToken),t=eo(e);if(t)return Ra(t,r);if((Q||tS.isInJSFile(e))&&tS.isVariableDeclaration(e)&&!tS.isBindingPattern(e.name)&&!(1&tS.getCombinedModifierFlags(e))&&!(8388608&e.flags)){if(!(2&tS.getCombinedNodeFlags(e)||e.initializer&&(i=e.initializer,103!==(i=tS.skipParentheses(i)).kind&&(78!==i.kind||tf(i)!==_e))))return Pe;if(e.initializer&&La(e.initializer))return Lt}if(tS.isParameter(e)){var n=e.parent;if(168===n.kind&&!Yo(n)){var i=tS.getDeclarationOfKind(Ai(e.parent),167);if(i){var a=Tc(i),o=zD(n);return o&&e===o?(tS.Debug.assert(!o.type),_o(a.thisParameter)):Pc(a)}}if(tS.isInJSFile(e)){o=tS.getJSDocType(n);if(o&&tS.isFunctionTypeNode(o)){a=Tc(o),o=n.parameters.indexOf(e);return(e.dotDotDotToken?_h:uh)(a,o)}}if(n="this"===e.symbol.escapedName?yg(n):hg(e))return Ra(n,r)}if(tS.hasOnlyExpressionInitializer(e)&&e.initializer){if(tS.isInJSFile(e)&&!tS.isParameter(e)){var s=qa(e,Ai(e),tS.getDeclaredExpandoInitializer(e));if(s)return s}return Ra(n=ev(e,$h(e)),r)}if(!tS.isPropertyDeclaration(e)||tS.hasStaticModifier(e)||!Q&&!tS.isInJSFile(e))return tS.isJsxAttribute(e)?He:tS.isBindingPattern(e.name)?Qa(e.name,!1,!0):void 0;s=Ri(e.parent);return(n=s?Ua(e.symbol,s):2&tS.getEffectiveModifierFlags(e)?Td(e.symbol):void 0)&&Ra(n,r)}function ja(t){if(t.valueDeclaration&&tS.isBinaryExpression(t.valueDeclaration)){var e=Pn(t);return void 0===e.isConstructorDeclaredProperty&&(e.isConstructorDeclaredProperty=!1,e.isConstructorDeclaredProperty=!!za(t)&&tS.every(t.declarations,function(e){return tS.isBinaryExpression(e)&&Eg(e)&&(202!==e.left.kind||tS.isStringOrNumericLiteralLike(e.left.argumentExpression))&&!Wa(void 0,e,t,e)})),e.isConstructorDeclaredProperty}return!1}function Ja(e){e=e.valueDeclaration;return e&&tS.isPropertyDeclaration(e)&&!tS.getEffectiveTypeAnnotationNode(e)&&!e.initializer&&(Q||tS.isInJSFile(e))}function za(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],n=tS.getThisContainer(n,!1);if(n&&(166===n.kind||Wy(n)))return n}}function Ua(e,t){var r=tS.startsWith(e.escapedName,"__#")?tS.factory.createPrivateIdentifier(e.escapedName.split("@")[1]):tS.unescapeLeadingUnderscores(e.escapedName),r=tS.factory.createPropertyAccessExpression(tS.factory.createThis(),r);tS.setParent(r.expression,r),tS.setParent(r,t),r.flowNode=t.returnFlowNode;r=Va(r,e);return!Q||r!==Pe&&r!==Lt||hn(e.valueDeclaration,tS.Diagnostics.Member_0_implicitly_has_an_1_type,sa(e),ua(r)),Pf(r,Am)?void 0:pb(r)}function Va(e,t){t=t&&(!Ja(t)||2&tS.getEffectiveModifierFlags(t.valueDeclaration))&&Td(t)||Re;return Zf(e,Pe,t)}function Ka(e,t){var r=tS.getAssignedExpandoInitializer(e.valueDeclaration);if(r){var n=tS.getJSDocTypeTag(r);return n&&n.typeExpression?e_(n.typeExpression):qa(e.valueDeclaration,e,r)||Vd(Zh(r))}var i,a=!1,o=!1;if(ja(e)&&(g=Ua(e,za(e))),!g){for(var s=void 0,c=void 0,u=0,l=e.declarations;u<l.length;u++){var _,d=l[u],p=tS.isBinaryExpression(d)||tS.isCallExpression(d)?d:tS.isAccessExpression(d)?tS.isBinaryExpression(d.parent)?d.parent:d:void 0;p&&((4===(_=tS.isAccessExpression(p)?tS.getAssignmentDeclarationPropertyAccessKind(p):tS.getAssignmentDeclarationKind(p))||tS.isBinaryExpression(p)&&Eg(p,_))&&(Ha(p)?a=!0:o=!0),tS.isCallExpression(p)||(s=Wa(s,p,e,d)),s||(c=c||[]).push(tS.isBinaryExpression(p)||tS.isCallExpression(p)?function(e,t,r,n){if(tS.isCallExpression(r)){if(t)return _o(t);var i=Zh(r.arguments[2]),a=ka(i,"value");if(a)return a;a=ka(i,"get");if(a){a=dy(a);if(a)return Pc(a)}i=ka(i,"set");if(i){var o=dy(i);if(o)return yh(o)}return Fe}if(function(t,e){return tS.isPropertyAccessExpression(t)&&107===t.expression.kind&&tS.forEachChildRecursively(e,function(e){return nf(t,e)})}(r.left,r.right))return Fe;i=t?_o(t):Vd(Zh(r.right));if(524288&i.flags&&2===n&&"export="===e.escapedName){var o=Is(i),s=tS.createSymbolTable();tS.copyEntries(o.members,s);n=s.size;t&&!t.exports&&(t.exports=tS.createSymbolTable()),(t||e).exports.forEach(function(e,t){var r,n,i=s.get(t);i&&i!==e?111551&e.flags&&111551&i.flags?(tS.getSourceFileOfNode(e.valueDeclaration)!==tS.getSourceFileOfNode(i.valueDeclaration)&&(n=tS.unescapeLeadingUnderscores(e.escapedName),r=(null===(r=tS.tryCast(i.valueDeclaration,tS.isNamedDeclaration))||void 0===r?void 0:r.name)||i.valueDeclaration,tS.addRelatedInfo(hn(e.valueDeclaration,tS.Diagnostics.Duplicate_identifier_0,n),tS.createDiagnosticForNode(r,tS.Diagnostics._0_was_also_declared_here,n)),tS.addRelatedInfo(hn(r,tS.Diagnostics.Duplicate_identifier_0,n),tS.createDiagnosticForNode(e.valueDeclaration,tS.Diagnostics._0_was_also_declared_here,n))),(n=Dn(e.flags|i.flags,t)).type=Ku([_o(e),_o(i)]),n.valueDeclaration=i.valueDeclaration,n.declarations=tS.concatenate(i.declarations,e.declarations),s.set(t,n)):s.set(t,En(e,i)):s.set(t,e)});o=Wi(n!==s.size?void 0:o.symbol,s,o.callSignatures,o.constructSignatures,o.stringIndexInfo,o.numberIndexInfo);return o.objectFlags|=16384&tS.getObjectFlags(i),o.symbol&&32&o.symbol.flags&&i===Ao(o.symbol)&&(o.objectFlags|=1073741824),o}if(Ld(i))return bp(r,Mt),Mt;return i}(e,t,p,_):Ze))}if(!(g=s)){if(!tS.length(c))return Ie;var f,r=a?(f=c,i=e.declarations,tS.Debug.assert(f.length===i.length),f.filter(function(e,t){t=i[t],t=tS.isBinaryExpression(t)?t:tS.isBinaryExpression(t.parent)?t.parent:void 0;return t&&Ha(t)})):void 0;!o||(f=Td(e))&&((r=r||[]).push(f),a=!0);var g=Ku(tS.some(r,function(e){return!!(-98305&e.flags)})?r:c,2)}}g=hp(Ra(g,o&&!a));return wf(g,function(e){return!!(-98305&e.flags)})===Ze?(bp(e.valueDeclaration,Fe),Fe):g}function qa(e,t,r){var n;if(tS.isInJSFile(e)&&r&&tS.isObjectLiteralExpression(r)&&!r.properties.length){for(var i=tS.createSymbolTable();tS.isBinaryExpression(e)||tS.isPropertyAccessExpression(e);){var a=Ai(e);null!==(n=null==a?void 0:a.exports)&&void 0!==n&&n.size&&An(i,a.exports),e=(tS.isBinaryExpression(e)?e:e.parent).parent}var o=Ai(e);null!==(r=null==o?void 0:o.exports)&&void 0!==r&&r.size&&An(i,o.exports);t=Wi(t,i,tS.emptyArray,tS.emptyArray,void 0,void 0);return t.objectFlags|=16384,t}}function Wa(e,t,r,n){t=tS.getEffectiveTypeAnnotationNode(t.parent);if(t){var i=hp(e_(t));if(!e)return i;e===Ie||i===Ie||O_(e,i)||gb(void 0,e,n,i)}if(r.parent){i=tS.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(i)return ka(e_(i),r.escapedName)}return e}function Ha(e){e=tS.getThisContainer(e,!1);return 166===e.kind||251===e.kind||208===e.kind&&!tS.isPrototypePropertyAssignment(e.parent)}function Ga(e,t,r){return e.initializer?Ra(ev(e,$h(e,tS.isBindingPattern(e.name)?Qa(e.name,!0,!1):Le))):tS.isBindingPattern(e.name)?Qa(e.name,t,r):(r&&!$a(e)&&bp(e,Fe),t?Oe:Fe)}function Xa(e,t,r){var n=e.elements,i=tS.lastOrUndefined(n),a=i&&198===i.kind&&i.dotDotDotToken?i:void 0;if(0===n.length||1===n.length&&a)return 2<=R?(o=Fe,Cu(Su(!0),[o])):Mt;var o=tS.map(n,function(e){return tS.isOmittedExpression(e)?Fe:Ga(e,t,r)}),s=tS.findLastIndex(n,function(e){return!(e===a||tS.isOmittedExpression(e)||Wg(e))},n.length-1)+1,n=Iu(o,tS.map(n,function(e,t){return e===a?4:s<=t?2:1}));return t&&((n=Yc(n)).pattern=e,n.objectFlags|=1048576),n}function Qa(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),(196===e.kind?function(e,r,n){var i,a=tS.createSymbolTable(),o=1048704;tS.forEach(e.elements,function(e){var t=e.propertyName||e.name;e.dotDotDotToken?i=Vc(Fe,!1):Ho(t=el(t))?(t=Zo(t),(t=Dn(4|(e.initializer?16777216:0),t)).type=Ga(e,r,n),t.bindingElement=e,a.set(t.escapedName,t)):o|=512});var t=Wi(void 0,a,tS.emptyArray,tS.emptyArray,i,void 0);return t.objectFlags|=o,r&&(t.pattern=e,t.objectFlags|=1048576),t}:Xa)(e,t,r)}function Ya(e,t){return Za(Ba(e,!0),e,t)}function Za(e,t,r){return e?(r&&xp(t,e),8192&e.flags&&(tS.isBindingElement(t)||!t.type)&&e.symbol!==Ai(t)&&(e=Qe),hp(e)):(e=tS.isParameter(t)&&t.dotDotDotToken?Mt:Fe,r&&($a(t)||bp(t,e)),e)}function $a(e){e=tS.getRootDeclaration(e);return Pv(160===e.kind?e.parent:e)}function eo(e){e=tS.getEffectiveTypeAnnotationNode(e);if(e)return e_(e)}function to(e){var t=Pn(e);return t.type||(e=function(e){if(4194304&e.flags)return function(e){return(e=Ro(Fi(e))).typeParameters?Qc(e,tS.map(e.typeParameters,function(e){return Fe})):e}(e);if(e===ge)return Fe;if(134217728&e.flags){var t=Ai(tS.getSourceFileOfNode(e.valueDeclaration)),r=tS.createSymbolTable();return r.set("exports",t),Wi(e,r,tS.emptyArray,tS.emptyArray,void 0,void 0)}var n,t=e.valueDeclaration;if(tS.isCatchClauseVariableDeclarationOrBindingElement(t)){r=t;if(!r.type)return Fe;r=jx(r.type);return Na(r)||r===Le?r:Ie}if(tS.isSourceFile(t)&&tS.isJsonSourceFile(t))return t.statements.length?hp(Vd(fv(t.statements[0].expression))):lt;if(!Sa(e,0))return(512&e.flags&&!(67108864&e.flags)?co:lo)(e);if(266===t.kind)n=Za(Zh(t.expression),t);else if(tS.isBinaryExpression(t)||tS.isInJSFile(t)&&(tS.isCallExpression(t)||(tS.isPropertyAccessExpression(t)||tS.isBindableStaticElementAccessExpression(t))&&tS.isBinaryExpression(t.parent)))n=Ka(e);else if(tS.isPropertyAccessExpression(t)||tS.isElementAccessExpression(t)||tS.isIdentifier(t)||tS.isStringLiteralLike(t)||tS.isNumericLiteral(t)||tS.isClassDeclaration(t)||tS.isFunctionDeclaration(t)||tS.isMethodDeclaration(t)&&!tS.isObjectLiteralMethod(t)||tS.isMethodSignature(t)||tS.isSourceFile(t)){if(9136&e.flags)return co(e);n=tS.isBinaryExpression(t.parent)?Ka(e):eo(t)||Fe}else if(tS.isPropertyAssignment(t))n=eo(t)||iv(t);else if(tS.isJsxAttribute(t))n=eo(t)||am(t);else if(tS.isShorthandPropertyAssignment(t))n=eo(t)||nv(t.name,0);else if(tS.isObjectLiteralMethod(t))n=eo(t)||av(t,0);else if(tS.isParameter(t)||tS.isPropertyDeclaration(t)||tS.isPropertySignature(t)||tS.isVariableDeclaration(t)||tS.isBindingElement(t)||tS.isJSDocPropertyLikeTag(t))n=Ya(t,!0);else if(tS.isEnumDeclaration(t))n=co(e);else if(tS.isEnumMember(t))n=uo(e);else{if(!tS.isAccessor(t))return tS.Debug.fail("Unhandled declaration kind! "+tS.Debug.formatSyntaxKind(t.kind)+" for "+tS.Debug.formatSymbol(e));n=oo(e)}return Ca()?n:(!(512&e.flags)||67108864&e.flags?lo:co)(e)}(e),t.type||(t.type=e)),t.type}function ro(e){if(e)return 167!==e.kind?tS.getEffectiveSetAccessorTypeAnnotationNode(e):tS.getEffectiveReturnTypeNode(e)}function no(e){e=ro(e);return e&&e_(e)}function io(e){return Ac(Tc(e))}function ao(e){var t=Pn(e);return t.type||(t.type=function(e){if(!Sa(e,0))return Ie;var t=oo(e);Ca()||(t=Fe,Q&&hn(tS.getDeclarationOfKind(e,167),tS.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,sa(e)));return t}(e))}function oo(e){var t=tS.getDeclarationOfKind(e,167),r=tS.getDeclarationOfKind(e,168);if(t&&tS.isInJSFile(t)){var n=Ma(t);if(n)return n}n=no(t);if(n)return n;n=no(r);return n||(t&&t.body?Th(t):(r?Pv(r)||bn(Q,r,tS.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,sa(e)):(tS.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),Pv(t)||bn(Q,t,tS.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,sa(e))),Fe))}function so(e){e=Co(Ao(e));return 8650752&e.flags?e:2097152&e.flags?tS.find(e.types,function(e){return!!(8650752&e.flags)}):void 0}function co(e){var t,r=Pn(e),n=r;return r.type||(!(t=e.valueDeclaration&&Gy(e.valueDeclaration,!1))||(t=Hy(e,t))&&(e=r=t),n.type=r.type=function(e){var t=e.valueDeclaration;{if(1536&e.flags&&tS.isShorthandAmbientModuleSymbol(e))return Fe;if(t&&(216===t.kind||tS.isAccessExpression(t)&&216===t.parent.kind))return Ka(e);if(512&e.flags&&t&&tS.isSourceFile(t)&&t.commonJsModuleIndicator){var r=vi(e);if(r!==e){if(!Sa(e,0))return Ie;var n=Ni(e.exports.get("export=")),n=Ka(n,n===r?void 0:r);return Ca()?n:lo(e)}}}r=zi(16,e);{if(32&e.flags){n=so(e);return n?Qu([r,n]):r}return X&&16777216&e.flags?ap(r):r}}(e)),r.type}function uo(e){var t=Pn(e);return t.type||(t.type=Mo(e))}function lo(e){var t=e.valueDeclaration;return tS.getEffectiveTypeAnnotationNode(t)?(hn(e.valueDeclaration,tS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,sa(e)),Ie):(Q&&(160!==t.kind||t.initializer)&&hn(e.valueDeclaration,tS.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,sa(e)),Fe)}function _o(e){var t,r,n=tS.getCheckFlags(e);return 65536&n?((t=Pn(t=e)).type||(tS.Debug.assertIsDefined(t.deferralParent),tS.Debug.assertIsDefined(t.deferralConstituents),t.type=(1048576&t.deferralParent.flags?Ku:Qu)(t.deferralConstituents)),t.type):1&n?function(e){var t=Pn(e);if(!t.type){if(!Sa(e,0))return t.type=Ie;var r=C_(_o(t.target),t.mapper);Ca()||(r=lo(e)),t.type=r}return t.type}(e):262144&n?function(e){if(!e.type){var t=e.mappedType;if(!Sa(e,0))return t.containsError=!0,Ie;var r=Cs(t.target||t),n=f_(t.mapper,Ds(t),e.keyType),n=C_(r,n),n=X&&16777216&e.flags&&!Jh(n,49152)?ap(n):524288&e.checkFlags?gf(n,524288):n;Ca()||(hn(H,tS.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,sa(e),ua(t)),n=Ie),e.type=n}return e.type}(e):8192&n?Lp((r=e).propertyType,r.mappedType,r.constraintType):7&e.flags?to(e):9136&e.flags?co(e):8&e.flags?uo(e):98304&e.flags?ao(e):2097152&e.flags?((e=Pn(r=e)).type||(r=ai(r),e.type=111551&r.flags?_o(r):Ie),e.type):Ie}function po(e,t){return void 0!==e&&void 0!==t&&0!=(4&tS.getObjectFlags(e))&&e.target===t}function fo(e){return 4&tS.getObjectFlags(e)?e.target:e}function go(e,n){return function e(t){{if(7&tS.getObjectFlags(t)){var r=fo(t);return r===n||tS.some(ko(r),e)}if(2097152&t.flags)return tS.some(t.types,e)}return!1}(e)}function mo(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e=tS.appendIfUnique(e,Lo(Ai(i)))}return e}function yo(t,e){for(;;){var r;if((t=t.parent)&&tS.isBinaryExpression(t)&&(6!==(r=tS.getAssignmentDeclarationKind(t))&&3!==r||(r=Ai(t.left))&&r.parent&&!tS.findAncestor(r.parent.valueDeclaration,function(e){return t===e})&&(t=r.parent.valueDeclaration)),!t)return;switch(t.kind){case 232:case 252:case 221:case 253:case 169:case 170:case 164:case 174:case 175:case 308:case 251:case 165:case 208:case 209:case 254:case 330:case 331:case 325:case 324:case 190:case 184:var n=yo(t,e);if(190===t.kind)return tS.append(n,Lo(Ai(t.typeParameter)));if(184===t.kind)return tS.concatenate(n,wl(t));if(232===t.kind&&!tS.isInJSFile(t))break;var i=mo(n,tS.getEffectiveTypeParameterDeclarations(t)),n=e&&(252===t.kind||221===t.kind||253===t.kind||Wy(t))&&Ao(Ai(t)).thisType;return n?tS.append(i,n):i;case 326:i=tS.getParameterSymbolFromJSDoc(t);i&&(t=i.valueDeclaration)}}}function ho(e){e=32&e.flags?e.valueDeclaration:tS.getDeclarationOfKind(e,253);return tS.Debug.assert(!!e,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),yo(e)}function vo(e){for(var t=0,r=e.declarations;t<r.length;t++){var n,i=r[t];(253===i.kind||252===i.kind||221===i.kind||Wy(i)||tS.isTypeAlias(i))&&(n=mo(n,tS.getEffectiveTypeParameterDeclarations(i)))}return n}function bo(e){e=uc(e,1);if(1!==e.length)return!1;e=e[0];return!e.typeParameters&&1===e.parameters.length&&bS(e)&&Od(ah(e.parameters[0]))===Fe}function xo(e){if(0<uc(e,1).length)return 1;if(8650752&e.flags){e=Ks(e);return e&&bo(e)}}function Do(e){return tS.getEffectiveBaseTypeNode(e.symbol.valueDeclaration)}function So(e,t,r){var n=tS.length(t),i=tS.isInJSFile(r);return tS.filter(uc(e,1),function(e){return(i||n>=Dc(e.typeParameters))&&n<=tS.length(e.typeParameters)})}function To(e,t,r){var e=So(e,t,r),n=tS.map(t,e_);return tS.sameMap(e,function(e){return tS.some(e.typeParameters)?Mc(e,n,tS.isInJSFile(r)):e})}function Co(e){if(!e.resolvedBaseConstructorType){var t=e.symbol.valueDeclaration,r=tS.getEffectiveBaseTypeNode(t),n=Do(e);if(!n)return e.resolvedBaseConstructorType=Re;if(!Sa(e,1))return Ie;var i=fv(n.expression);if(r&&n!==r&&(tS.Debug.assert(!r.typeArguments),fv(r.expression)),2621440&i.flags&&Is(i),!Ca())return hn(e.symbol.valueDeclaration,tS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,sa(e.symbol)),e.resolvedBaseConstructorType=Ie;if(!(1&i.flags||i===ze||xo(i))){t=hn(n.expression,tS.Diagnostics.Type_0_is_not_a_constructor_function_type,ua(i));return 262144&i.flags&&(r=Wc(i),n=Le,!r||(r=uc(r,1))[0]&&(n=Pc(r[0])),tS.addRelatedInfo(t,tS.createDiagnosticForNode(i.symbol.declarations[0],tS.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,sa(i.symbol),ua(n)))),e.resolvedBaseConstructorType=Ie}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function Eo(e,t){hn(e,tS.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ua(t,void 0,2))}function ko(e){if(!e.baseTypesResolved){if(Sa(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[(i=e,ku(Ku(tS.sameMap(i.typeParameters,function(e,t){return 8&i.elementFlags[t]?Sl(e,Ve):e})||tS.emptyArray),i.readonly))]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=tS.resolvingEmptyArray;var t=Ys(Co(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=tS.emptyArray;var r=Do(e),n=t.symbol?Ro(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,e=$c(e);return t[r].symbol!==e[r].symbol}return!0}(n))a=tu(r,t.symbol);else if(1&t.flags)a=t;else{var i=To(t,r.typeArguments,r);if(!i.length)return hn(r.expression,tS.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=tS.emptyArray;a=Pc(i[0])}if(a===Ie)return e.resolvedBaseTypes=tS.emptyArray;if(!No(i=rc(a))){var a=oc(void 0,a),a=tS.chainDiagnosticMessages(a,tS.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ua(i));return an.add(tS.createDiagnosticForNodeFromMessageChain(r.expression,a)),e.resolvedBaseTypes=tS.emptyArray}if(e===i||go(i,e))return hn(e.symbol.valueDeclaration,tS.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ua(e,void 0,2)),e.resolvedBaseTypes=tS.emptyArray;e.resolvedBaseTypes===tS.resolvingEmptyArray&&(e.members=void 0),e.resolvedBaseTypes=[i]}(e),64&e.symbol.flags&&function(e){e.resolvedBaseTypes=e.resolvedBaseTypes||tS.emptyArray;for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];if(253===n.kind&&tS.getInterfaceBaseTypeNodes(n))for(var i=0,a=tS.getInterfaceBaseTypeNodes(n);i<a.length;i++){var o=a[i],s=rc(e_(o));s!==Ie&&(No(s)?e===s||go(s,e)?Eo(n,e):e.resolvedBaseTypes===tS.emptyArray?e.resolvedBaseTypes=[s]:e.resolvedBaseTypes.push(s):hn(o,tS.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(e)):tS.Debug.fail("type must be class or interface"),!Ca()))for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];252!==n.kind&&253!==n.kind||Eo(n,e)}e.baseTypesResolved=!0}var i;return e.resolvedBaseTypes}function No(e){if(262144&e.flags){var t=Ks(e);if(t)return No(t)}return!!(67633153&e.flags&&!ws(e)||2097152&e.flags&&tS.every(e.types,No))}function Ao(e){var t,r,n,i=Pn(e),a=i;return i.declaredType||(t=32&e.flags?1:2,(r=Hy(e,(n=(null==(n=null===(n=null==(n=(n=e.valueDeclaration)&&Gy(n,!0))?void 0:n.exports)||void 0===n?void 0:n.get("prototype"))?void 0:n.valueDeclaration)&&function(e){if(!e.parent)return!1;var t=e.parent;for(;t&&201===t.kind;)t=t.parent;if(t&&tS.isBinaryExpression(t)&&tS.isPrototypeAccess(t.left)&&62===t.operatorToken.kind){e=tS.getInitializerOfBinaryExpression(t);return tS.isObjectLiteralExpression(e)&&e}}(n.valueDeclaration))?Ai(n):void 0))&&(e=i=r),n=a.declaredType=i.declaredType=zi(t,e),r=ho(e),a=vo(e),!r&&!a&&1!=t&&function(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if(253===n.kind){if(128&n.flags)return;n=tS.getInterfaceBaseTypeNodes(n);if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];if(tS.isEntityNameExpression(o.expression)){o=pi(o.expression,788968,!0);if(!o||!(64&o.flags)||Ao(o).thisType)return}}}}return 1}(e)||(n.objectFlags|=4,n.typeParameters=tS.concatenate(r,a),n.outerTypeParameters=r,n.localTypeParameters=a,n.instantiations=new tS.Map,n.instantiations.set(Gc(n.typeParameters),n),(n.target=n).resolvedTypeArguments=n.typeParameters,n.thisType=Ui(e),n.thisType.isThisType=!0,n.thisType.constraint=n)),i.declaredType}function Fo(e){var t=Pn(e);if(!t.declaredType){if(!Sa(e,2))return Ie;var r=tS.Debug.checkDefined(tS.find(e.declarations,tS.isTypeAlias),"Type alias symbol with no valid declaration found"),n=tS.isJSDocTypeAlias(r)?r.typeExpression:r.type,i=n?e_(n):Ie;Ca()?(n=vo(e))&&(t.typeParameters=n,t.instantiations=new tS.Map,t.instantiations.set(Gc(n),i)):(i=Ie,hn(tS.isNamedDeclaration(r)?r.name:r||r,tS.Diagnostics.Type_alias_0_circularly_references_itself,sa(e))),t.declaredType=i}return t.declaredType}function Po(e){var t=e.initializer;if(!t)return!(8388608&e.flags);switch(t.kind){case 10:case 8:case 14:return 1;case 214:return 40===t.operator&&8===t.operand.kind;case 78:return tS.nodeIsMissing(t)||Ai(e.parent).exports.get(t.escapedText);case 216:return function e(t){return!!tS.isStringLiteralLike(t)||216===t.kind&&e(t.left)&&e(t.right)}(t);default:return}}function wo(e){var t=Pn(e);if(void 0!==t.enumKind)return t.enumKind;for(var r=!1,n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(255===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&tS.isStringLiteralLike(c.initializer))return t.enumKind=1;Po(c)||(r=!0)}}return t.enumKind=r?0:1}function Io(e){return 1024&e.flags&&!(1048576&e.flags)?Ro(Fi(e.symbol)):e}function Oo(e){var t=Pn(e);if(t.declaredType)return t.declaredType;if(1===wo(e)){_++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(255===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=uD(c),u=Wl(Xl(void 0!==u?u:0,_,Ai(c)));Pn(Ai(c)).declaredType=u,r.push(Hl(u))}}if(r.length){var l=Ku(r,1,e,void 0);return 1048576&l.flags&&(l.flags|=1024,l.symbol=e),t.declaredType=l}}l=Bi(32);return l.symbol=e,t.declaredType=l}function Mo(e){var t=Pn(e);return t.declaredType||(e=Oo(Fi(e)),t.declaredType||(t.declaredType=e)),t.declaredType}function Lo(e){var t=Pn(e);return t.declaredType||(t.declaredType=Ui(e))}function Ro(e){return Bo(e)||Ie}function Bo(e){return 96&e.flags?Ao(e):524288&e.flags?Fo(e):262144&e.flags?Lo(e):384&e.flags?Oo(e):8&e.flags?Mo(e):2097152&e.flags?(e=Pn(t=e)).declaredType||(e.declaredType=Ro(ai(t))):void 0;var t}function jo(e){switch(e.kind){case 128:case 152:case 147:case 144:case 155:case 131:case 148:case 145:case 113:case 150:case 141:case 191:return!0;case 178:return jo(e.elementType);case 173:return!e.typeArguments||e.typeArguments.every(jo)}return!1}function Jo(e){e=tS.getEffectiveConstraintOfTypeParameter(e);return!e||jo(e)}function zo(e){var t=tS.getEffectiveTypeAnnotationNode(e);return t?jo(t):!tS.hasInitializer(e)}function Uo(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 163:case 162:return zo(t);case 165:case 164:case 166:case 167:case 168:return r=t,n=tS.getEffectiveReturnTypeNode(r),i=tS.getEffectiveTypeParameterDeclarations(r),(166===r.kind||!!n&&jo(n))&&r.parameters.every(zo)&&i.every(Jo)}}var r,n,i}function Vo(e,t,r){for(var n=tS.createSymbolTable(),i=0,a=e;i<a.length;i++){var o=a[i];n.set(o.escapedName,r&&Uo(o)?o:y_(o,t))}return n}function Ko(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||qo(i)||e.set(i.escapedName,i)}}function qo(e){return e.valueDeclaration&&tS.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration)&&tS.hasSyntacticModifier(e.valueDeclaration,32)}function Wo(e){var t,r;return e.declaredProperties||(r=ts(t=e.symbol),e.declaredProperties=Ki(r),e.declaredCallSignatures=tS.emptyArray,e.declaredConstructSignatures=tS.emptyArray,e.declaredCallSignatures=kc(r.get("__call")),e.declaredConstructSignatures=kc(r.get("__new")),e.declaredStringIndexInfo=Kc(t,0),e.declaredNumberIndexInfo=Kc(t,1)),e}function Ho(e){return!!(8576&e.flags)}function Go(e){if(!tS.isComputedPropertyName(e)&&!tS.isElementAccessExpression(e))return!1;var t=tS.isComputedPropertyName(e)?e.expression:e.argumentExpression;return tS.isEntityNameExpression(t)&&Ho(tS.isComputedPropertyName(e)?Zg(e):Zh(t))}function Xo(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Qo(e){e=tS.getNameOfDeclaration(e);return!!e&&Go(e)}function Yo(e){return tS.hasDynamicName(e)&&!Qo(e)}function Zo(e){return 8192&e.flags?e.escapedName:384&e.flags?tS.escapeLeadingUnderscores(""+e.value):tS.Debug.fail()}function $o(e,t,r,n){tS.Debug.assert(!!n.symbol,"The member is expected to have a symbol.");var i=wn(n);if(!i.resolvedSymbol){i.resolvedSymbol=n.symbol;var a=tS.isBinaryExpression(n)?n.left:n.name,o=tS.isElementAccessExpression(a)?Zh(a.argumentExpression):Zg(a);if(Ho(o)){var s=Zo(o),c=n.symbol.flags,u=r.get(s);u||r.set(s,u=Dn(0,s,4096));var l,t=t&&t.get(s);return(u.flags&Sn(c)||t)&&(t=t?tS.concatenate(t.declarations,u.declarations):u.declarations,l=!(8192&o.flags)&&tS.unescapeLeadingUnderscores(s)||tS.declarationNameToString(a),tS.forEach(t,function(e){return hn(tS.getNameOfDeclaration(e)||e,tS.Diagnostics.Property_0_was_also_declared_here,l)}),hn(a||n,tS.Diagnostics.Duplicate_property_0,l),u=Dn(0,s,4096)),u.nameType=o,o=u,n=n,c=c,tS.Debug.assert(!!(4096&tS.getCheckFlags(o)),"Expected a late-bound symbol."),o.flags|=c,(Pn(n.symbol).lateSymbol=o).declarations?o.declarations.push(n):o.declarations=[n],111551&c&&(o.valueDeclaration&&o.valueDeclaration.kind===n.kind||(o.valueDeclaration=n)),u.parent?tS.Debug.assert(u.parent===e,"Existing symbol parent should match new one"):u.parent=e,i.resolvedSymbol=u}}return i.resolvedSymbol}function es(e,t){var r=Pn(e);if(!r[t]){var n="resolvedExports"===t,i=n?1536&e.flags?ki(e):e.exports:e.members;r[t]=i||A;for(var a=tS.createSymbolTable(),o=0,s=e.declarations||tS.emptyArray;o<s.length;o++){var c=s[o],c=tS.getMembersOfDeclaration(c);if(c)for(var u=0,l=c;u<l.length;u++){var _=l[u];n===tS.hasStaticModifier(_)&&Qo(_)&&$o(e,i,a,_)}}var d=e.assignmentDeclarationMembers;if(d)for(var p=0,f=tS.arrayFrom(d.values());p<f.length;p++){var _=f[p],g=tS.getAssignmentDeclarationKind(_);n==!(3===g||tS.isBinaryExpression(_)&&Eg(_,g)||9===g||6===g)&&Qo(_)&&$o(e,i,a,_)}r[t]=function(e,t){if(null==e||!e.size)return t;if(null==t||!t.size)return e;var r=tS.createSymbolTable();return An(r,e),An(r,t),r}(i,a)||A}return r[t]}function ts(e){return 6256&e.flags?es(e,"resolvedMembers"):e.members||A}function rs(e){if(106500&e.flags&&"__computed"===e.escapedName){var t,r=Pn(e);return!r.lateSymbol&&tS.some(e.declarations,Qo)&&(t=Ni(e.parent),(tS.some(e.declarations,tS.hasStaticModifier)?Ti:ts)(t)),r.lateSymbol||(r.lateSymbol=e)}return e}function ns(e,t,r){if(4&tS.getObjectFlags(e)){var n=e.target,i=$c(e);if(tS.length(n.typeParameters)===tS.length(i)){n=Qc(n,tS.concatenate(i,[t||n.thisType]));return r?Ys(n):n}}else if(2097152&e.flags)return Qu(tS.map(e.types,function(e){return ns(e,t,r)}));return r?Ys(e):e}function is(e,t,r,n){var i,a,o,s,c,u=tS.rangeEquals(r,n,0,r.length)?(a=t.symbol?ts(t.symbol):tS.createSymbolTable(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredStringIndexInfo,t.declaredNumberIndexInfo):(i=a_(r,n),a=Vo(t.declaredProperties,i,1===r.length),o=i_(t.declaredCallSignatures,i),s=i_(t.declaredConstructSignatures,i),c=N_(t.declaredStringIndexInfo,i),N_(t.declaredNumberIndexInfo,i)),r=ko(t);if(r.length){t.symbol&&a===ts(t.symbol)&&(a=tS.createSymbolTable(t.declaredProperties)),qi(e,a,o,s,c,u);for(var l=tS.lastOrUndefined(n),_=0,d=r;_<d.length;_++){var p=d[_],p=l?ns(C_(p,i),l):p;Ko(a,Rs(p)),o=tS.concatenate(o,uc(p,0)),s=tS.concatenate(s,uc(p,1)),c=c||(p===Fe?Vc(Fe,!1):dc(p,0)),u=u||dc(p,1)}}qi(e,a,o,s,c,u)}function as(e,t,r,n,i,a,o,s){s=new u(me,s);return s.declaration=e,s.typeParameters=t,s.parameters=n,s.thisParameter=r,s.resolvedReturnType=i,s.resolvedTypePredicate=a,s.minArgumentCount=o,s.resolvedMinArgumentCount=void 0,s.target=void 0,s.mapper=void 0,s.unionSignatures=void 0,s}function os(e){var t=as(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,19&e.flags);return t.target=e.target,t.mapper=e.mapper,t.unionSignatures=e.unionSignatures,t}function ss(e,t){e=os(e);return e.unionSignatures=t,e.target=void 0,e.mapper=void 0,e}function cs(e,t){if((12&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});var r=4===t?"inner":"outer";return e.optionalCallSignatureCache[r]||(e.optionalCallSignatureCache[r]=function(e,t){tS.Debug.assert(4===t||8===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");e=os(e);return e.flags|=t,e}(e,t))}function us(o,e){if(bS(o)){var t=o.parameters.length-1,r=_o(o.parameters[t]);if(Hd(r))return[n(r,t)];if(!e&&1048576&r.flags&&tS.every(r.types,Hd))return tS.map(r.types,function(e){return n(e,t)})}return[o.parameters];function n(n,i){var e=$c(n),a=n.target.labeledElementDeclarations,e=tS.map(e,function(e,t){var r=!!a&&oh(a[t])||sh(o,i+t,n),t=n.target.elementFlags[t],r=Dn(1,r,12&t?32768:2&t?16384:0);return r.type=4&t?ku(e):e,r});return tS.concatenate(o.parameters.slice(0,i),e)}}function ls(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(Ad(s,t,r,n,i,r?R_:M_))return s}}function _s(e){for(var t,r,n=0;n<e.length;n++){if(0===e[n].length)return tS.emptyArray;1<e[n].length&&(r=void 0===r?n:-1);for(var i=0,a=e[n];i<a.length;i++){var o,s,c,u,l=a[i];t&&ls(t,l,!1,!1,!0)||(o=function(e,t,r){if(t.typeParameters){if(0<r)return;for(var n=1;n<e.length;n++)if(!ls(e[n],t,!1,!1,!1))return;return[t]}for(var i,n=0;n<e.length;n++){var a=n===r?t:ls(e[n],t,!0,!1,!0);if(!a)return;i=tS.appendIfUnique(i,a)}return i}(e,l,n))&&(s=l,1<o.length&&(u=l.thisParameter,(c=tS.forEach(o,function(e){return e.thisParameter}))&&(u=pp(c,Qu(tS.mapDefined(o,function(e){return e.thisParameter&&_o(e.thisParameter)})))),(s=ss(l,o)).thisParameter=u),(t=t||[]).push(s))}}if(!tS.length(t)&&-1!==r){for(var _=e[void 0!==r?r:0],d=_.slice(),p=function(e){if(e!==_){var o=e[0];if(tS.Debug.assert(!!o,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(d=o.typeParameters&&tS.some(d,function(e){return!!e.typeParameters})?void 0:tS.map(d,function(e){return r=o,n=(t=e).declaration,i=function(e,t){for(var r=dh(e),n=dh(t),i=n<=r?e:t,a=i===e?t:e,o=i===e?r:n,s=fh(e)||fh(t),c=s&&!fh(i),u=new Array(o+(c?1:0)),l=0;l<o;l++){var _=lh(i,l),d=lh(a,l)||Le,p=Qu([_,d]),f=s&&!c&&l===o-1,g=l>=ph(i)&&l>=ph(a),_=r<=l?void 0:sh(e,l),d=n<=l?void 0:sh(t,l),d=Dn(1|(g&&!f?16777216:0),(_===d?_:_?d?void 0:_:d)||"arg"+l);d.type=f?ku(p):p,u[l]=d}{var m;c&&((m=Dn(1,"args")).type=ku(uh(a,o)),u[o]=m)}return u}(t,r),a=function(e,t){if(!e||!t)return e||t;t=Qu([_o(e),_o(t)]);return pp(e,t)}(t.thisParameter,r.thisParameter),e=Math.max(t.minArgumentCount,r.minArgumentCount),(e=as(n,t.typeParameters||r.typeParameters,a,i,void 0,void 0,e,19&(t.flags|r.flags))).unionSignatures=tS.concatenate(t.unionSignatures||[t],[r]),e;var t,r,n,i,a})))return"break"}},f=0,g=e;f<g.length;f++)if("break"===p(g[f]))break;t=d}return t||tS.emptyArray}function ds(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=dc(Ys(a[i]),t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return Vc(Ku(r,2),n)}function ps(e,t){return e?t?Qu([e,t]):e:t}function fs(e,t){return e?t?Vc(Qu([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function gs(e,t){return e&&t&&Vc(Ku([e.type,t.type]),e.isReadonly||t.isReadonly)}function ms(e){var t=tS.countWhere(e,function(e){return 0<uc(e,1).length}),e=tS.map(e,bo);return 0<t&&t===tS.countWhere(e,function(e){return e})&&(t=e.indexOf(!0),e[t]=!1),e}function ys(n){for(var i,a,o,s,c=n.types,u=ms(c),l=tS.countWhere(u,function(e){return e}),e=function(r){var e,t=n.types[r];u[r]||((e=uc(t,1)).length&&0<l&&(e=tS.map(e,function(e){var t=os(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(Pc(uc(t[a],1)[0]));return Qu(i)}(Pc(e),c,u,r),t})),a=hs(a,e)),i=hs(i,uc(t,0)),o=fs(o,dc(t,0)),s=fs(s,dc(t,1))},t=0;t<c.length;t++)e(t);qi(n,A,i||tS.emptyArray,a||tS.emptyArray,o,s)}function hs(e,t){for(var r=0,n=t;r<n.length;r++)!function(t){e&&!tS.every(e,function(e){return!Ad(e,t,!1,!1,!1,M_)})||(e=tS.append(e,t))}(n[r]);return e}function vs(e){var t,r,n,i,a,o,s,c=Ni(e.symbol);e.target?(qi(e,A,tS.emptyArray,tS.emptyArray,void 0,void 0),qi(e,t=Vo(Os(e.target),e.mapper,!1),i=i_(uc(e.target,0),e.mapper),s=i_(uc(e.target,1),e.mapper),r=N_(dc(e.target,0),e.mapper),a=N_(dc(e.target,1),e.mapper))):2048&c.flags?(qi(e,A,tS.emptyArray,tS.emptyArray,void 0,void 0),i=kc((t=ts(c)).get("__call")),s=kc(t.get("__new")),qi(e,t,i,s,r=Kc(c,0),a=Kc(c,1))):(t=A,r=void 0,c.exports&&(t=Ti(c),c===de&&(n=new tS.Map,t.forEach(function(e){418&e.flags||n.set(e.escapedName,e)}),t=n)),qi(e,t,tS.emptyArray,tS.emptyArray,void 0,void 0),32&c.flags&&(11272192&(i=Co(Ao(c))).flags?Ko(t=tS.createSymbolTable(Ki(t)),Rs(i)):i===Fe&&(r=Vc(Fe,!1))),a=384&c.flags&&(32&Ro(c).flags||tS.some(e.properties,function(e){return!!(296&_o(e).flags)}))?vr:void 0,qi(e,t,tS.emptyArray,tS.emptyArray,r,a),8208&c.flags&&(e.callSignatures=kc(c)),32&c.flags&&(o=Ao(c),s=c.members?kc(c.members.get("__constructor")):tS.emptyArray,16&c.flags&&(s=tS.addRange(s.slice(),tS.mapDefined(e.callSignatures,function(e){return Wy(e.declaration)?as(e.declaration,e.typeParameters,e.thisParameter,e.parameters,o,void 0,e.minArgumentCount,19&e.flags):void 0}))),s.length||(s=function(e){var t=uc(Co(e),1);if(0===t.length)return[as(void 0,e.localTypeParameters,void 0,tS.emptyArray,e,void 0,0,0)];for(var r=Do(e),n=tS.isInJSFile(r),i=pu(r),a=tS.length(i),o=[],s=0,c=t;s<c.length;s++){var u=c[s],l=Dc(u.typeParameters),_=tS.length(u.typeParameters);(n||l<=a&&a<=_)&&((u=_?Rc(u,Sc(i,u.typeParameters,l,n)):os(u)).typeParameters=e.localTypeParameters,u.resolvedReturnType=e,o.push(u))}return o}(o)),e.constructSignatures=s))}function bs(e){if(4194304&e.flags){var t=Ys(e.type);return(Gd(t)?Ru:il)(t)}if(16777216&e.flags){if(e.root.isDistributive){var r=e.checkType,t=bs(r);if(t!==r)return T_(e,p_(e.root.checkType,t,e.mapper))}return e}return 1048576&e.flags?Ku(tS.sameMap(e.types,bs)):2097152&e.flags?Qu(tS.sameMap(e.types,bs)):e}function xs(s){var c,u,l=tS.createSymbolTable();qi(s,A,tS.emptyArray,tS.emptyArray,void 0,void 0);var _=Ds(s),e=Ss(s),r=Ts(s.target||s),d=Cs(s.target||s),p=Ys(Ns(s)),f=As(s),t=h?128:8576;if(ks(s)){for(var n=0,i=Rs(p);n<i.length;n++)a(tl(i[n],t));(1&p.flags||dc(p,0))&&a(Ue),!h&&dc(p,1)&&a(Ve)}else Ff(bs(e),a);function a(t){Ff(r?C_(r,f_(s.mapper,_,t)):t,function(e){return function(e,t){{var r,n,i,a,o;Ho(t)?(r=Zo(t),(o=l.get(r))?(o.nameType=Ku([o.nameType,t]),o.keyType=Ku([o.keyType,e])):(n=Ho(e)?sc(p,Zo(e)):void 0,i=!!(4&f||!(8&f)&&n&&16777216&n.flags),a=!!(1&f||!(2&f)&&n&&Mh(n)),o=X&&!i&&n&&16777216&n.flags,(o=Dn(4|(i?16777216:0),r,262144|(a?8:0)|(o?524288:0))).mappedType=s,o.nameType=t,o.keyType=e,n&&(o.syntheticOrigin=n,o.declarations=n.declarations),l.set(r,o))):45&t.flags&&(e=C_(d,f_(s.mapper,_,e)),5&t.flags?c=Vc(c?Ku([c.type,e]):e,!!(1&f)):u=Vc(u?Ku([u.type,e]):e,!!(1&f)))}}(t,e)})}qi(s,l,tS.emptyArray,tS.emptyArray,c,u)}function Ds(e){return e.typeParameter||(e.typeParameter=Lo(Ai(e.declaration.typeParameter)))}function Ss(e){return e.constraintType||(e.constraintType=js(Ds(e))||Ie)}function Ts(e){return e.declaration.nameType?e.nameType||(e.nameType=C_(e_(e.declaration.nameType),e.mapper)):void 0}function Cs(e){return e.templateType||(e.templateType=e.declaration.type?C_(Ra(e_(e.declaration.type),!!(4&As(e))),e.mapper):Ie)}function Es(e){return tS.getEffectiveConstraintOfTypeParameter(e.declaration.typeParameter)}function ks(e){e=Es(e);return 188===e.kind&&138===e.operator}function Ns(e){var t;return e.modifiersType||(ks(e)?e.modifiersType=C_(e_(Es(e).type),e.mapper):(t=(t=Ss(kl(e.declaration)))&&262144&t.flags?js(t):t,e.modifiersType=t&&4194304&t.flags?C_(t.type,e.mapper):Le)),e.modifiersType}function As(e){e=e.declaration;return(e.readonlyToken?40===e.readonlyToken.kind?2:1:0)|(e.questionToken?40===e.questionToken.kind?8:4:0)}function Fs(e){e=As(e);return 8&e?-1:4&e?1:0}function Ps(e){var t=Fs(e),e=Ns(e);return t||(ws(e)?Fs(e):0)}function ws(e){return!!(32&tS.getObjectFlags(e))&&yl(Ss(e))}function Is(e){var t,r,n,i,a;return e.members||(524288&e.flags?4&e.objectFlags?(n=Wo((r=e).target),i=tS.concatenate(n.typeParameters,[n.thisType]),a=$c(r),is(r,n,i,a.length===i.length?a:tS.concatenate(a,[r]))):3&e.objectFlags?is(t=e,Wo(t),tS.emptyArray,tS.emptyArray):2048&e.objectFlags?function(e){for(var t=dc(e.source,0),r=As(e.mappedType),n=!(1&r),i=4&r?0:16777216,t=t&&Vc(Lp(t.type,e.mappedType,e.constraintType),n&&t.isReadonly),a=tS.createSymbolTable(),o=0,s=Rs(e.source);o<s.length;o++){var c=s[o],u=8192|(n&&Mh(c)?8:0),u=Dn(4|c.flags&i,c.escapedName,u);u.declarations=c.declarations,u.nameType=Pn(c).nameType,u.propertyType=_o(c),u.mappedType=e.mappedType,u.constraintType=e.constraintType,a.set(c.escapedName,u)}qi(e,a,tS.emptyArray,tS.emptyArray,t,void 0)}(e):16&e.objectFlags?vs(e):32&e.objectFlags&&xs(e):1048576&e.flags?(n=e,i=_s(tS.map(n.types,function(e){return e===Ct?[mr]:uc(e,0)})),a=_s(tS.map(n.types,function(e){return uc(e,1)})),r=ds(n.types,0),t=ds(n.types,1),qi(n,A,i,a,r,t)):2097152&e.flags&&ys(e)),e}function Os(e){return 524288&e.flags?Is(e).properties:tS.emptyArray}function Ms(e,t){if(524288&e.flags){t=Is(e).members.get(t);if(t&&Li(t))return t}}function Ls(e){if(!e.resolvedProperties){for(var t=tS.createSymbolTable(),r=0,n=e.types;r<n.length;r++){for(var i=n[r],a=0,o=Rs(i);a<o.length;a++){var s,c=o[a];t.has(c.escapedName)||(s=tc(e,c.escapedName))&&t.set(c.escapedName,s)}if(1048576&e.flags&&!dc(i,0)&&!dc(i,1))break}e.resolvedProperties=Ki(t)}return e.resolvedProperties}function Rs(e){return(3145728&(e=Zs(e)).flags?Ls:Os)(e)}function Bs(e){return 262144&e.flags?js(e):8388608&e.flags?Ws(t=e)?function(e){var t=Js(e.indexType);if(t&&t!==e.indexType){var r=Cl(e.objectType,t,e.noUncheckedIndexedAccessCandidate);if(r)return r}r=Js(e.objectType);if(r&&r!==e.objectType)return Cl(r,e.indexType,e.noUncheckedIndexedAccessCandidate);return}(t):void 0:16777216&e.flags?Ws(t=e)?Vs(t):void 0:Ks(e);var t}function js(e){return Ws(e)?Wc(e):void 0}function Js(e){var t=vl(e,!1);return t!==e?t:Bs(e)}function zs(e){var t,r;return e.resolvedDefaultConstraint||(t=(r=e).resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?C_(e_(r.root.node.trueType),r.combinedMapper):Fl(r)),r=Pl(e),e.resolvedDefaultConstraint=Na(t)?r:Na(r)?t:Ku([t,r])),e.resolvedDefaultConstraint}function Us(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=vl(e.checkType,!1),t=t===e.checkType?Bs(t):t;if(t&&t!==e.checkType){e=T_(e,p_(e.root.checkType,t,e.mapper));if(!(131072&e.flags))return e}}}function Vs(e){return Us(e)||zs(e)}function Ks(e){if(464781312&e.flags){var t=Hs(e);return t!==gt&&t!==mt?t:void 0}return 4194304&e.flags?at:void 0}function qs(e){return Ks(e)||e}function Ws(e){return Hs(e)!==mt}function Hs(i){if(i.resolvedBaseConstraint)return i.resolvedBaseConstraint;var a=!1,o=[];return i.resolvedBaseConstraint=ns(t(i),i);function t(e){if(!e.immediateBaseConstraint){if(!Sa(e,4))return mt;if(50<=p)return tS.tracing.instant("check","getImmediateBaseConstraint_DepthLimit",{typeId:e.id,originalTypeId:i.id,depth:p}),hn(H,tS.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),a=!0,e.immediateBaseConstraint=gt;var t,r,n=void 0;Cd(e,o,o.length)||(o.push(e),p++,n=function(e){if(262144&e.flags){var t=Wc(e);return e.isThisType||!t?t:c(t)}if(3145728&e.flags){for(var r=e.types,n=[],i=0,a=r;i<a.length;i++){var o=c(a[i]);o&&n.push(o)}return 1048576&e.flags&&n.length===r.length?Ku(n):2097152&e.flags&&n.length?Qu(n):void 0}if(4194304&e.flags)return at;if(134217728&e.flags){var r=e.types,s=tS.mapDefined(r,c);return s.length===r.length?ol(e.texts,s):Ue}if(268435456&e.flags)return(t=c(e.type))?cl(e.symbol,t):Ue;if(8388608&e.flags){r=c(e.objectType),s=c(e.indexType),s=r&&s&&Cl(r,s,e.noUncheckedIndexedAccessCandidate);return s&&c(s)}if(16777216&e.flags){t=Vs(e);p++;t=t&&c(t);return p--,t}if(33554432&e.flags)return c(e.substitute);return e}(vl(e,!1)),p--,o.pop()),Ca()||(262144&e.flags&&((t=qc(e))&&(r=hn(t,tS.Diagnostics.Type_parameter_0_has_a_circular_constraint,ua(e)),!H||tS.isNodeDescendantOf(t,H)||tS.isNodeDescendantOf(H,t)||tS.addRelatedInfo(r,tS.createDiagnosticForNode(H,tS.Diagnostics.Circularity_originates_in_type_at_this_location)))),n=mt),a&&(n=mt),e.immediateBaseConstraint=n||gt}return e.immediateBaseConstraint}function c(e){e=t(e);return e!==gt&&e!==mt?e:void 0}}function Gs(e){var t;return e.default?e.default===yt&&(e.default=mt):e.target?(t=Gs(e.target),e.default=t?C_(t,e.mapper):gt):(e.default=yt,t=(t=e.symbol&&tS.forEach(e.symbol.declarations,function(e){return tS.isTypeParameterDeclaration(e)&&e.default}))?e_(t):gt,e.default===yt&&(e.default=t)),e.default}function Xs(e){e=Gs(e);return e!==gt&&e!==mt?e:void 0}function Qs(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=v_(e);if(t&&!e.declaration.nameType){var r=js(t);if(r&&(Pd(r)||Hd(r)))return C_(e,p_(t,r,e.mapper))}return e}(e))}function Ys(e){var t,e=465829888&e.flags?Ks(e)||Le:e;return 32&tS.getObjectFlags(e)?Qs(e):2097152&e.flags?(t=e).resolvedApparentType||(t.resolvedApparentType=ns(t,t,!0)):402653316&e.flags?Ft:296&e.flags?Pt:2112&e.flags?(t=7<=R,(or=or||hu("BigInt",0,t))||lt):528&e.flags?wt:12288&e.flags?bu(2<=R):67108864&e.flags?lt:4194304&e.flags?at:2&e.flags&&!X?lt:e}function Zs(e){return rc(Ys(rc(e)))}function $s(e,t){for(var r,n,i,a,o,s=1048576&e.flags,c=s?0:16777216,u=4,l=0,_=0,d=e.types;_<d.length;_++)(D=Ys(d[_]))===Ie||131072&D.flags||(o=(x=sc(D,t))?tS.getDeclarationModifierFlagsFromSymbol(x):0,x?(s?c|=16777216&x.flags:c&=x.flags,r?x!==r&&(n||(n=new tS.Map).set(fS(r),r),a=fS(x),n.has(a)||n.set(a,x)):r=x,l|=(Mh(x)?8:0)|(24&o?0:256)|(16&o?512:0)|(8&o?1024:0)|(32&o?2048:0),Cm(x)||(u=2)):s&&((o=!Xo(t)&&(Yg(t)&&dc(D,1)||dc(D,0)))?(l|=32|(o.isReadonly?8:0),i=tS.append(i,Hd(D)?Qd(D)||Re:o.type)):Hp(D)?(l|=32,i=tS.append(i,Re)):l|=16));if(r&&!(s&&(n||48&l)&&1536&l)){if(!(n||16&l||i))return r;for(var p,f,g,m,y=[],h=!1,v=0,b=n?tS.arrayFrom(n.values()):[r];v<b.length;v++){var x=b[v];m?x.valueDeclaration&&x.valueDeclaration!==m&&(h=!0):m=x.valueDeclaration,p=tS.addRange(p,x.declarations);var D=_o(x);f?D!==f&&(l|=64):(f=D,g=Pn(x).nameType),zd(D)&&(l|=128),131072&D.flags&&(l|=131072),y.push(D)}tS.addRange(y,i);var S=Dn(4|c,t,u|l);return S.containingType=e,!h&&m&&(S.valueDeclaration=m).symbol.parent&&(S.parent=m.symbol.parent),S.declarations=p,S.nameType=g,2<y.length?(S.checkFlags|=65536,S.deferralParent=e,S.deferralConstituents=y):S.type=(s?Ku:Qu)(y),S}}function ec(e,t){var r=e.propertyCache||(e.propertyCache=tS.createSymbolTable()),n=r.get(t);return n||(n=$s(e,t))&&r.set(t,n),n}function tc(e,t){t=ec(e,t);return!t||16&tS.getCheckFlags(t)?void 0:t}function rc(e){return 1048576&e.flags&&268435456&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){var t=tS.sameMap(e.types,rc);if(t===e.types)return e;t=Ku(t);1048576&t.flags&&(t.resolvedReducedType=t);return t}(e)):2097152&e.flags?(268435456&e.objectFlags||(e.objectFlags|=268435456|(tS.some(Ls(e),nc)?536870912:0)),536870912&e.objectFlags?Ze:e):e}function nc(e){return ic(e)||ac(e)}function ic(e){return!(16777216&e.flags||192!=(131264&tS.getCheckFlags(e))||!(131072&_o(e).flags))}function ac(e){return!e.valueDeclaration&&!!(1024&tS.getCheckFlags(e))}function oc(e,t){if(536870912&tS.getObjectFlags(t)){var r=tS.find(Ls(t),ic);if(r)return tS.chainDiagnosticMessages(e,tS.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ua(t,void 0,536870912),sa(r));r=tS.find(Ls(t),ac);if(r)return tS.chainDiagnosticMessages(e,tS.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ua(t,void 0,536870912),sa(r))}return e}function sc(e,t){if(524288&(e=Zs(e)).flags){var r=Is(e),n=r.members.get(t);if(n&&Li(n))return n;r=r===ft?Ct:r.callSignatures.length?Et:r.constructSignatures.length?kt:void 0;if(r){r=Ms(r,t);if(r)return r}return Ms(Tt,t)}if(3145728&e.flags)return tc(e,t)}function cc(e,t){if(3670016&e.flags){e=Is(e);return 0===t?e.callSignatures:e.constructSignatures}return tS.emptyArray}function uc(e,t){return cc(Zs(e),t)}function lc(e,t){if(3670016&e.flags){e=Is(e);return 0===t?e.stringIndexInfo:e.numberIndexInfo}}function _c(e,t){t=lc(e,t);return t&&t.type}function dc(e,t){return lc(Zs(e),t)}function pc(e,t){return _c(Zs(e),t)}function fc(e,t){if(dp(e)){for(var r=[],n=0,i=Rs(e);n<i.length;n++){var a=i[n];0!==t&&!Yg(a.escapedName)||r.push(_o(a))}if(0===t&&tS.append(r,pc(e,1)),r.length)return Ku(r)}}function gc(e){for(var t=0,r=tS.getEffectiveTypeParameterDeclarations(e);t<r.length;t++)var n=r[t],i=tS.appendIfUnique(i,Lo(n.symbol));return i}function mc(e){var r=[];return e.forEach(function(e,t){Vi(t)||r.push(e)}),r}function yc(e){return tS.isInJSFile(e)&&(e.type&&307===e.type.kind||tS.getJSDocParameterTags(e).some(function(e){var t=e.isBracketed,e=e.typeExpression;return t||!!e&&307===e.type.kind}))}function hc(e,t){if(!tS.isExternalModuleNameRelative(e)){e=On(le,'"'+e+'"',512);return e&&t?Ni(e):e}}function vc(e){if(tS.hasQuestionToken(e)||bc(e)||yc(e))return!0;if(e.initializer){var t=Tc(e.parent),r=e.parent.parameters.indexOf(e);return tS.Debug.assert(0<=r),r>=ph(t,3)}t=tS.getImmediatelyInvokedFunctionExpression(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length)}function bc(e){if(!tS.isJSDocPropertyLikeTag(e))return!1;var t=e.isBracketed,e=e.typeExpression;return t||!!e&&307===e.type.kind}function xc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Dc(e){var t,r=0;if(e)for(var n=0;n<e.length;n++)(t=e[n]).symbol&&tS.forEach(t.symbol.declarations,function(e){return tS.isTypeParameterDeclaration(e)&&e.default})||(r=n+1);return r}function Sc(e,t,r,n){var i=tS.length(t);if(!i)return[];var a=tS.length(e);if(n||r<=a&&a<=i){for(var o=e?e.slice():[],s=a;s<i;s++)o[s]=Ie;for(var c=Zp(n),s=a;s<i;s++){var u=Xs(t[s]);n&&u&&(O_(u,Le)||O_(u,lt))&&(u=Fe),o[s]=u?C_(u,a_(t,o)):c}return o.length=t.length,o}return e&&e.slice()}function Tc(e){var t=wn(e);if(!t.resolvedSignature){var r=[],n=0,i=0,a=void 0,o=!1,s=tS.getImmediatelyInvokedFunctionExpression(e),c=tS.isJSDocConstructSignature(e);!s&&tS.isInJSFile(e)&&tS.isValueSignatureDeclaration(e)&&!tS.hasJSDocParameterTags(e)&&!tS.getJSDocType(e)&&(n|=16);for(var u=c?1:0;u<e.parameters.length;u++){var l=e.parameters[u],_=l.symbol,d=tS.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;_&&4&_.flags&&!tS.isBindingPattern(l.name)&&(_=Rn(l,_.escapedName,111551,void 0,void 0,!1)),0===u&&"this"===_.escapedName?(o=!0,a=l.symbol):r.push(_),d&&191===d.kind&&(n|=2),bc(l)||l.initializer||l.questionToken||l.dotDotDotToken||s&&r.length>s.arguments.length&&!d||yc(l)||(i=r.length)}167!==e.kind&&168!==e.kind||Yo(e)||o&&a||(c=167===e.kind?168:167,(c=tS.getDeclarationOfKind(Ai(e),c))&&(a=(p=zD(p=c))&&p.symbol));var p=166===e.kind?Ao(Ni(e.parent.symbol)):void 0,p=p?p.localTypeParameters:gc(e);(tS.hasRestParameter(e)||tS.isInJSFile(e)&&function(e,t){if(tS.isJSDocSignature(e)||!Ec(e))return!1;var r=tS.lastOrUndefined(e.parameters),r=r?tS.getJSDocParameterTags(r):tS.getJSDocTags(e).filter(tS.isJSDocParameterTag),e=tS.firstDefined(r,function(e){return e.typeExpression&&tS.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:void 0}),r=Dn(3,"args",32768);r.type=e?ku(e_(e.type)):Mt,e&&t.pop();return t.push(r),!0}(e,r))&&(n|=1),t.resolvedSignature=as(e,p,a,r,void 0,void 0,i,n)}return t.resolvedSignature}function Cc(e){if(tS.isInJSFile(e)&&tS.isFunctionLikeDeclaration(e)){e=tS.getJSDocTypeTag(e),e=e&&e.typeExpression&&dy(e_(e.typeExpression));return e&&Bc(e)}}function Ec(e){var t=wn(e);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 78:return"arguments"===t.escapedText&&tS.isExpressionNode(t);case 163:case 165:case 167:case 168:return 158===t.name.kind&&e(t.name);default:return!tS.nodeStartsNewLexicalEnvironment(t)&&!tS.isPartOfTypeNode(t)&&!!tS.forEachChild(t,e)}}(e.body)),t.containsArgumentsReference}function kc(e){if(!e)return tS.emptyArray;for(var t=[],r=0;r<e.declarations.length;r++){var n=e.declarations[r];if(tS.isFunctionLike(n)){if(0<r&&n.body){var i=e.declarations[r-1];if(n.parent===i.parent&&n.kind===i.kind&&n.pos===i.end)continue}t.push(Tc(n))}}return t}function Nc(e){e=gi(e,e);if(e){e=vi(e);if(e)return _o(e)}return Fe}function Ac(e){if(e.thisParameter)return _o(e.thisParameter)}function Fc(e){var t,r,n,i,a;return e.resolvedTypePredicate||(e.target?(t=Fc(e.target),e.resolvedTypePredicate=t?(i=t,a=e.mapper,xc(i.kind,i.parameterName,i.parameterIndex,C_(i.type,a))):fr):e.unionSignatures?e.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=Fc(i[n]);if(a&&2!==a.kind&&3!==a.kind){if(t){if(!qu(t,a))return}else t=a;r.push(a.type)}}if(!t)return;e=Ku(r);return xc(t.kind,t.parameterName,t.parameterIndex,e)}(e.unionSignatures)||fr:(t=void 0,(i=e.declaration&&tS.getEffectiveReturnTypeNode(e.declaration))||!tS.isInJSFile(e.declaration)||(r=Cc(e.declaration))&&e!==r&&(t=Fc(r)),e.resolvedTypePredicate=i&&tS.isTypePredicateNode(i)?(a=e,n=(r=i).parameterName,i=r.type&&e_(r.type),187===n.kind?xc(r.assertsModifier?2:0,void 0,void 0,i):xc(r.assertsModifier?3:1,n.escapedText,tS.findIndex(a.parameters,function(e){return e.escapedName===n.escapedText}),i)):t||fr),tS.Debug.assert(!!e.resolvedTypePredicate)),e.resolvedTypePredicate===fr?void 0:e.resolvedTypePredicate}function Pc(e){if(!e.resolvedReturnType){if(!Sa(e,3))return Ie;var t,r,n=e.target?C_(Pc(e.target),e.mapper):e.unionSignatures?Ku(tS.map(e.unionSignatures,Pc),2):wc(e.declaration)||(tS.nodeIsMissing(e.declaration.body)?Fe:Th(e.declaration));4&e.flags?n=sp(n):8&e.flags&&(n=ap(n)),Ca()||(e.declaration&&((r=tS.getEffectiveReturnTypeNode(e.declaration))?hn(r,tS.Diagnostics.Return_type_annotation_circularly_references_itself):Q&&(t=e.declaration,(r=tS.getNameOfDeclaration(t))?hn(r,tS.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,tS.declarationNameToString(r)):hn(t,tS.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=Fe),e.resolvedReturnType=n}return e.resolvedReturnType}function wc(e){if(166===e.kind)return Ao(Ni(e.parent.symbol));if(tS.isJSDocConstructSignature(e))return e_(e.parameters[0].type);var t=tS.getEffectiveReturnTypeNode(e);if(t)return e_(t);if(167===e.kind&&!Yo(e)){t=tS.isInJSFile(e)&&Ma(e);if(t)return t;t=no(tS.getDeclarationOfKind(Ai(e),168));if(t)return t}return(e=Cc(e=e))&&Pc(e)}function Ic(e){return!e.resolvedReturnType&&0<=Ta(e,3)}function Oc(e){if(bS(e)){e=_o(e.parameters[e.parameters.length-1]),e=Hd(e)?Qd(e):e;return e&&pc(e,1)}}function Mc(e,t,r,n){e=Lc(e,Sc(t,e.typeParameters,Dc(e.typeParameters),r));if(n){r=py(Pc(e));if(r){r=os(r);r.typeParameters=n;n=os(e);return n.resolvedReturnType=Jc(r),n}}return e}function Lc(e,t){var r=e.instantiations||(e.instantiations=new tS.Map),n=Gc(t),i=r.get(n);return i||r.set(n,i=Rc(e,t)),i}function Rc(e,t){return m_(e,(t=t,a_(e.typeParameters,t)),!0)}function Bc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=m_(t=e,l_(t.typeParameters),!0)):e;var t}function jc(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Mc(t=e,tS.map(t.typeParameters,function(e){return e.target&&!js(e.target)?e.target:e}),tS.isInJSFile(t.declaration))):e;var t}function Jc(e){var t,r;return e.isolatedSignatureType||(t=166===(r=e.declaration?e.declaration.kind:0)||170===r||175===r,(r=zi(16)).members=A,r.properties=tS.emptyArray,r.callSignatures=t?tS.emptyArray:[e],r.constructSignatures=t?[e]:tS.emptyArray,e.isolatedSignatureType=r),e.isolatedSignatureType}function zc(e){return e.members.get("__index")}function Uc(e,t){var r=1===t?144:147,e=zc(e);if(e)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n],o=tS.cast(a,tS.isIndexSignatureDeclaration);if(1===o.parameters.length){a=o.parameters[0];if(a.type&&a.type.kind===r)return o}}}function Vc(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Kc(e,t){t=Uc(e,t);if(t)return Vc(t.type?e_(t.type):Fe,tS.hasEffectiveModifier(t,64),t)}function qc(e){return tS.mapDefined(tS.filter(e.symbol&&e.symbol.declarations,tS.isTypeParameterDeclaration),tS.getEffectiveConstraintOfTypeParameter)[0]}function Wc(e){var t,r;return e.constraint||(e.target?(r=js(e.target),e.constraint=r?C_(r,e.mapper):gt):(t=qc(e))?(1&(r=e_(t)).flags&&r!==Ie&&(r=190===t.parent.parent.kind?at:Le),e.constraint=r):e.constraint=function(e){var t;if(e.symbol)for(var r=0,n=e.symbol.declarations;r<n.length;r++){var i,a,o,s=n[r];185===s.parent.kind&&(a=void 0===(i=(o=tS.walkUpParenthesizedTypesAndGetParentAndChild(s.parent.parent))[0])?s.parent:i,173===(s=o[1]).kind?!(o=kv(i=s))||(a=i.typeArguments.indexOf(a))<o.length&&(!(a=js(o[a]))||(o=C_(a,a_(o,Cv(i,o))))!==e&&(t=tS.append(t,o))):160===s.kind&&s.dotDotDotToken||181===s.kind||192===s.kind&&s.dotDotDotToken?t=tS.append(t,ku(Le)):194===s.kind&&(t=tS.append(t,Ue)))}return t&&Qu(t)}(e)||gt),e.constraint===gt?void 0:e.constraint}function Hc(e){e=tS.getDeclarationOfKind(e.symbol,159),e=tS.isJSDocTemplateTag(e.parent)?tS.getHostSignatureFromJSDoc(e.parent):e.parent;return e&&Ai(e)}function Gc(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,1<a&&(t+=":"+a),n+=a}return t}function Xc(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var a=i[n];a.flags&t||(r|=tS.getObjectFlags(a))}return 3670016&r}function Qc(e,t){var r=Gc(t),n=e.instantiations.get(r);return n||(n=zi(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Xc(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function Yc(e){var t=Bi(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Zc(e,t,r){var n=Ll(t),i=Rl(n),a=zi(4,e.symbol);return a.target=e,a.node=t,a.mapper=r,a.aliasSymbol=n,a.aliasTypeArguments=r?n_(i,r):i,a}function $c(e){if(!e.resolvedTypeArguments){if(!Sa(e,6))return(null===(t=e.target.localTypeParameters)||void 0===t?void 0:t.map(function(){return Ie}))||tS.emptyArray;var t=e.node,t=t?173===t.kind?tS.concatenate(e.target.outerTypeParameters,Cv(t,e.target.localTypeParameters)):178===t.kind?[e_(t.elementType)]:tS.map(t.elements,e_):tS.emptyArray;Ca()?e.resolvedTypeArguments=e.mapper?n_(t,e.mapper):t:(e.resolvedTypeArguments=(null===(t=e.target.localTypeParameters)||void 0===t?void 0:t.map(function(){return Ie}))||tS.emptyArray,hn(e.node||H,e.target.symbol?tS.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:tS.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&sa(e.target.symbol)))}return e.resolvedTypeArguments}function eu(e){return tS.length(e.target.typeParameters)}function tu(e,t){var r=Ro(Ni(t)),n=r.localTypeParameters;if(n){var i=tS.length(e.typeArguments),a=Dc(n),o=tS.isInJSFile(e);if(!(!Q&&o)&&(i<a||i>n.length)){i=o&&tS.isExpressionWithTypeArguments(e)&&!tS.isJSDocAugmentsTag(e.parent);if(hn(e,a===n.length?i?tS.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:tS.Diagnostics.Generic_type_0_requires_1_type_argument_s:i?tS.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:tS.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ua(r,void 0,2),a,n.length),!o)return Ie}return 173===e.kind&&Pu(e,tS.length(e.typeArguments)!==n.length)?Zc(r,e,void 0):Qc(r,tS.concatenate(r.outerTypeParameters,Sc(pu(e),n,a,o)))}return lu(e,t)?r:Ie}function ru(e,t){var r=Ro(e);if(r===Me&&lS.has(e.escapedName)&&t&&1===t.length)return cl(e,t[0]);var n=Pn(e),i=n.typeParameters,a=Gc(t),o=n.instantiations.get(a);return o||n.instantiations.set(a,o=C_(r,a_(i,Sc(t,i,Dc(i),tS.isInJSFile(e.valueDeclaration))))),o}function nu(e){switch(e.kind){case 173:return e.typeName;case 223:var t=e.expression;if(tS.isEntityNameExpression(t))return t}}function iu(e,t,r){return e&&pi(e,t,r)||Ne}function au(e,t){if(t===Ne)return Ie;if(96&(t=function(e){var t=e.valueDeclaration;if(t&&tS.isInJSFile(t)&&!(524288&e.flags)&&!tS.getExpandoInitializer(t,!1)){t=tS.isVariableDeclaration(t)?tS.getDeclaredExpandoInitializer(t):tS.getAssignedExpandoInitializer(t);if(t){t=Ai(t);if(t)return Hy(t,e)}}}(t)||t).flags)return tu(e,t);if(524288&t.flags)return function(e,t){var r=Ro(t),n=Pn(t).typeParameters;if(n){var i=tS.length(e.typeArguments),a=Dc(n);return i<a||i>n.length?(hn(e,a===n.length?tS.Diagnostics.Generic_type_0_requires_1_type_argument_s:tS.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,sa(t),a,n.length),Ie):ru(t,pu(e))}return lu(e,t)?r:Ie}(e,t);var r=Bo(t);if(r)return lu(e,t)?Hl(r):Ie;if(111551&t.flags&&uu(e)){r=function(e,t){var r=wn(e);{var n,i,a;r.resolvedJSDocType||(n=_o(t),i=n,t.valueDeclaration&&(a=195===e.kind&&e.qualifier,n.symbol&&n.symbol!==t&&a&&(i=au(e,n.symbol))),r.resolvedJSDocType=i)}return r.resolvedJSDocType}(e,t);return r||(iu(nu(e),788968),_o(t))}return Ie}function ou(e,t){if(3&t.flags||t===e)return e;var r=e.id+">"+t.id,n=Ce.get(r);if(n)return n;n=Bi(33554432);return n.baseType=e,n.substitute=t,Ce.set(r,n),n}function su(e){return 179===e.kind&&1===e.elements.length}function cu(e,t){for(var r;t&&!tS.isStatement(t)&&311!==t.kind;){var n,i=t.parent;184!==i.kind||t!==i.trueType||(n=function e(t,r,n){return su(r)&&su(n)?e(t,r.elements[0],n.elements[0]):Nl(e_(r))===t?e_(n):void 0}(e,i.checkType,i.extendsType))&&(r=tS.append(r,n)),t=i}return r?ou(e,Qu(tS.append(r,e))):e}function uu(e){return!!(4194304&e.flags)&&(173===e.kind||195===e.kind)}function lu(e,t){if(!e.typeArguments)return 1;hn(e,tS.Diagnostics.Type_0_is_not_generic,t?sa(t):e.typeName?tS.declarationNameToString(e.typeName):nS)}function _u(e){if(tS.isIdentifier(e.typeName)){var t=e.typeArguments;switch(e.typeName.escapedText){case"String":return lu(e),Ue;case"Number":return lu(e),Ve;case"Boolean":return lu(e),Xe;case"Void":return lu(e),Ye;case"Undefined":return lu(e),Re;case"Null":return lu(e),Je;case"Function":case"function":return lu(e),Ct;case"array":return t&&t.length||Q?void 0:Mt;case"promise":return t&&t.length||Q?void 0:xh(Fe);case"Object":if(t&&2===t.length){if(tS.isJSDocIndexSignature(e)){var r=e_(t[0]),n=Vc(e_(t[1]),!1);return Wi(void 0,A,tS.emptyArray,tS.emptyArray,r===Ue?n:void 0,r===Ve?n:void 0)}return Fe}return lu(e),Q?void 0:Fe}}}function du(e){var t=wn(e);if(!t.resolvedType){if(tS.isConstTypeReference(e)&&tS.isAssertionExpression(e.parent))return t.resolvedSymbol=Ne,t.resolvedType=Zh(e.parent.expression);var r=void 0,n=void 0,i=788968;uu(e)&&((n=_u(e))||((r=iu(nu(e),i,!0))===Ne?r=iu(nu(e),900095):iu(nu(e),i),n=au(e,r))),n=n||au(e,r=iu(nu(e),i)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function pu(e){return tS.map(e.typeArguments,e_)}function fu(e){var t=wn(e);return t.resolvedType||(t.resolvedType=Hl(hp(fv(e.exprName)))),t.resolvedType}function gu(e,t){function r(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 252:case 253:case 255:return n}}}if(!e)return t?pt:lt;var n=Ro(e);return 524288&n.flags?tS.length(n.typeParameters)!==t?(hn(r(e),tS.Diagnostics.Global_type_0_must_have_1_type_parameter_s,tS.symbolName(e),t),t?pt:lt):n:(hn(r(e),tS.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,tS.symbolName(e)),t?pt:lt)}function mu(e,t){return yu(e,111551,t?tS.Diagnostics.Cannot_find_global_value_0:void 0)}function yu(e,t,r){return Rn(void 0,e,t,r,e,!1)}function hu(e,t,r){e=yu(e,788968,r?tS.Diagnostics.Cannot_find_global_type_0:void 0);return e||r?gu(e,t):void 0}function vu(e){return jt=jt||mu("Symbol",e)}function bu(e){return(Jt=Jt||hu("Symbol",0,e))||lt}function xu(e){return(Ut=Ut||hu("Promise",1,e))||pt}function Du(e){return Kt=Kt||mu("Promise",e)}function Su(e){return(Wt=Wt||hu("Iterable",1,e))||pt}function Tu(e,t){void 0===t&&(t=0);e=yu(e,788968,void 0);return e&&gu(e,t)}function Cu(e,t){return e!==pt?Qc(e,t):lt}function Eu(e){return Cu((zt=zt||hu("TypedPropertyDescriptor",1,!0))||pt,[e])}function ku(e,t){return Cu(t?At:Nt,[e])}function Nu(e){switch(e.kind){case 180:return 2;case 181:return Au(e);case 192:return e.questionToken?2:e.dotDotDotToken?Au(e):1;default:return 1}}function Au(e){return $l(e.type)?4:8}function Fu(e){var t,t=(t=e.parent,tS.isTypeOperatorNode(t)&&142===t.operator);return $l(e)?t?At:Nt:Ou(tS.map(e.elements,Nu),t,tS.some(e.elements,function(e){return 192!==e.kind})?void 0:e.elements)}function Pu(e,t){return Ll(e)||function e(t){var r=t.parent;switch(r.kind){case 186:case 192:case 173:case 182:case 183:case 189:case 184:case 188:case 178:case 179:return e(r);case 254:return!0}return!1}(e)&&(178===e.kind?wu(e.elementType):179===e.kind?tS.some(e.elements,wu):t||tS.some(e.typeArguments,wu))}function wu(e){switch(e.kind){case 173:return uu(e)||!!(524288&iu(e.typeName,788968).flags);case 176:return!0;case 188:return 151!==e.operator&&wu(e.type);case 186:case 180:case 192:case 307:case 305:case 306:case 301:return wu(e.type);case 181:return 178!==e.type.kind||wu(e.type.elementType);case 182:case 183:return tS.some(e.types,wu);case 189:return wu(e.objectType)||wu(e.indexType);case 184:return wu(e.checkType)||wu(e.extendsType)||wu(e.trueType)||wu(e.falseType)}return!1}function Iu(e,t,r,n){void 0===r&&(r=!1);n=Ou(t||tS.map(e,function(e){return 1}),r,n);return n===pt?lt:e.length?Mu(n,e):n}function Ou(e,t,r){if(1===e.length&&4&e[0])return t?At:Nt;var n=tS.map(e,function(e){return 1&e?"#":2&e?"?":4&e?".":"*"}).join()+(t?"R":"")+(r&&r.length?","+tS.map(r,pS).join(","):""),i=he.get(n);return i||he.set(n,i=function(e,t,r){var n,i=e.length,a=tS.findLastIndex(e,function(e){return!!(9&e)})+1,o=[],s=0;if(i){n=new Array(i);for(var c=0;c<i;c++){var u=n[c]=Ui(),l=e[c];12&(s|=l)||((l=Dn(4|(2&l?16777216:0),""+c,t?8:0)).tupleLabelDeclaration=null==r?void 0:r[c],l.type=u,o.push(l))}}var _=o.length,d=Dn(4,"length");if(12&s)d.type=Ve;else{for(var p=[],c=a;c<=i;c++)p.push(Xl(c));d.type=Ku(p)}o.push(d);d=zi(12);return d.typeParameters=n,d.outerTypeParameters=void 0,d.localTypeParameters=n,d.instantiations=new tS.Map,d.instantiations.set(Gc(d.typeParameters),d),(d.target=d).resolvedTypeArguments=d.typeParameters,d.thisType=Ui(),d.thisType.isThisType=!0,(d.thisType.constraint=d).declaredProperties=o,d.declaredCallSignatures=tS.emptyArray,d.declaredConstructSignatures=tS.emptyArray,d.declaredStringIndexInfo=void 0,d.declaredNumberIndexInfo=void 0,d.elementFlags=e,d.minLength=a,d.fixedLength=_,d.hasRestElement=!!(12&s),d.combinedFlags=s,d.readonly=t,d.labeledElementDeclarations=r,d}(e,t,r)),i}function Mu(e,t){return(8&e.objectFlags&&8&e.combinedFlags?function t(n,i){var a,o;var r=tS.findIndex(i,function(e,t){return!!(8&n.elementFlags[t]&&1179648&e.flags)});if(0<=r)return Yu(tS.map(i,function(e,t){return 8&n.elementFlags[t]?e:Le}))?If(i[r],function(e){return t(n,tS.replaceElement(i,r,e))}):Ie;var e=tS.findIndex(i,function(e,t){return!(!(8&n.elementFlags[t])||58982400&e.flags||ws(e))});if(e<0)return Qc(n,i);var s=[];var c=[];var u=[];var l=-1;var _;var d=function(e){var r=i[e],t=n.elementFlags[e];8&t?58982400&r.flags||ws(r)?f(r,8,null===(a=n.labeledElementDeclarations)||void 0===a?void 0:a[e]):Hd(r)?tS.forEach($c(r),function(e,t){return f(e,r.target.elementFlags[t],null===(e=r.target.labeledElementDeclarations)||void 0===e?void 0:e[t])}):f(Md(r)&&pc(r,1)||Ie,4,null===(o=n.labeledElementDeclarations)||void 0===o?void 0:o[e]):f(r,t,null===(o=n.labeledElementDeclarations)||void 0===o?void 0:o[e])};for(var p=0;p<i.length;p++)d(p);_&&(s[s.length-1]=Ku(_));var e=Ou(c,n.readonly,u);return e===pt?lt:c.length?Qc(e,s):e;function f(e,t,r){if(_)_.push(8&t?Sl(e,Ve):e);else{if(1&t&&0<=l){for(var n=l;n<c.length;n++)2&c[n]&&(c[n]=1);l=-1}else 2&t&&l<0?l=c.length:4&t&&(_=[e]);s.push(e),c.push(t),u&&r?u.push(r):u=void 0}}}:Qc)(e,t)}function Lu(e,t,r){void 0===r&&(r=0);var n=e.target,r=eu(e)-r;return t>n.fixedLength?function(e){e=Qd(e);return e&&ku(e)}(e)||Iu(tS.emptyArray):Iu($c(e).slice(t,r),n.elementFlags.slice(t,r),!1,n.labeledElementDeclarations&&n.labeledElementDeclarations.slice(t,r))}function Ru(e){return Ku(tS.append(tS.arrayOf(e.target.fixedLength,function(e){return Xl(""+e)}),il(e.target.readonly?At:Nt)))}function Bu(e){return e.id}function ju(e,t){return 0<=tS.binarySearch(e,t,Bu,tS.compareValues)}function Ju(e,t){var r=tS.binarySearch(e,t,Bu,tS.compareValues);return r<0&&(e.splice(~r,0,t),1)}function zu(e,t,r){for(var n,i,a,o=0,s=r;o<s.length;o++){var c=s[o];n=e,i=t,a=void 0,t=1048576&(a=(c=c).flags)?zu(n,i,c.types):(131072&a||(i|=205258751&a,469499904&a&&(i|=262144),c===we&&(i|=8388608),!X&&98304&a?524288&tS.getObjectFlags(c)||(i|=4194304):(a=(a=n.length)&&c.id>n[a-1].id?~a:tS.binarySearch(n,c,Bu,tS.compareValues))<0&&n.splice(~a,0,c)),i)}return t}function Uu(e,t){var r=e.length;if(0===r||function(e){var t=e[0];if(1024&t.flags){for(var r=Fi(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(1024&i.flags)||r!==Fi(i.symbol))return}return 1}}(e))return 1;for(var n=r,i=0;0<n;)for(var a=e[--n],o=0,s=e;o<s.length;o++){var c=s[o];if(a!==c){if(1e5===i)if((t?25e6:1e6)<i/(r-n)*r)return tS.tracing.instant("check","removeSubtypes_DepthLimit",{typeIds:e.map(function(e){return e.id})}),void hn(H,tS.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(i++,od(a,c,ln)&&(!(1&tS.getObjectFlags(fo(a)))||!(1&tS.getObjectFlags(fo(c)))||J_(a,c))){tS.orderedRemoveItemAt(e,n);break}}}return 1}function Vu(e){var r=tS.filter(e,gl);if(r.length)for(var n=e.length;0<n;)!function(){var t=e[--n];128&t.flags&&tS.some(r,function(e){return B_(t,e)})&&tS.orderedRemoveItemAt(e,n)}()}function Ku(e,t,r,n){if(void 0===t&&(t=1),0===e.length)return Ze;if(1===e.length)return e[0];var i=[],a=zu(i,0,e);if(0!==t){if(3&a)return 1&a?8388608&a?we:Fe:Le;switch(t){case 1:11136&a&&function(e,t){for(var r=e.length;0<r;){var n=e[--r];(128&n.flags&&4&t||256&n.flags&&8&t||2048&n.flags&&64&t||8192&n.flags&&4096&t||Gl(n)&&ju(e,n.regularType))&&tS.orderedRemoveItemAt(e,r)}}(i,a),128&a&&134217728&a&&Vu(i);break;case 2:if(!Uu(i,!(262144&a)))return Ie}if(0===i.length)return 65536&a?4194304&a?Je:ze:32768&a?4194304&a?Re:Be:Ze}return Wu(i,(469647395&a?0:262144)|(2097152&a?268435456:0),r,n)}function qu(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Wu(e,t,r,n){if(0===e.length)return Ze;if(1===e.length)return e[0];var i=Gc(e),a=ve.get(i);return a||(a=Bi(1048576),ve.set(i,a),a.objectFlags=t|Xc(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function Hu(e,t,r){for(var n,i,a,o=0,s=r;o<s.length;o++){var c=s[o];n=e,i=t,a=Hl(c),c=void 0,t=2097152&(c=a.flags)?Hu(n,i,a.types):(rd(a)?16777216&i||(i|=16777216,n.set(a.id.toString(),a)):(3&c?a===we&&(i|=8388608):!X&&98304&c||n.has(a.id.toString())||(109440&a.flags&&109440&i&&(i|=67108864),n.set(a.id.toString(),a)),i|=205258751&c),i)}return t}function Gu(e,t){if(tS.every(e,function(e){return!!(1048576&e.flags)&&tS.some(e.types,function(e){return!!(e.flags&t)})})){for(var r=0;r<e.length;r++)e[r]=wf(e[r],function(e){return!(e.flags&t)});return 1}}function Xu(e){var t,r=tS.findIndex(e,function(e){return!!(262144&tS.getObjectFlags(e))});if(!(r<0)){for(var n=r+1;n<e.length;){var i=e[n];262144&tS.getObjectFlags(i)?((t=t||[e[r]]).push(i),tS.orderedRemoveItemAt(e,n)):n++}if(t){for(var a=[],o=[],s=0,c=t;s<c.length;s++)for(var u=0,l=c[s].types;u<l.length;u++)Ju(a,i=l[u])&&(!function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!ju(i.types,t)){var a=128&t.flags?Ue:256&t.flags?Ve:2048&t.flags?Ke:8192&t.flags?Qe:void 0;if(!a||!ju(i.types,a))return}}return 1}(t,i)||Ju(o,i));return e[r]=Wu(o,262144),1}}}function Qu(e,t,r){var n=new tS.Map,i=Hu(n,0,e),a=tS.arrayFrom(n.values());if(131072&i||X&&98304&i&&84410368&i||67108864&i&&402783228&i||402653316&i&&67238776&i||296&i&&469891796&i||2112&i&&469889980&i||12288&i&&469879804&i||49152&i&&469842940&i)return Ze;if(134217728&i&&128&i&&function(e){for(var t=e.length,r=tS.filter(e,function(e){return!!(128&e.flags)});0<t;){var n=e[--t];if(134217728&n.flags)for(var i=0,a=r;i<a.length;i++){if(B_(a[i],n)){tS.orderedRemoveItemAt(e,t);break}if(gl(n))return 1}}}(a))return Ze;if(1&i)return 8388608&i?we:Fe;if(!X&&98304&i)return 32768&i?Re:Je;if((4&i&&128&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i)&&function(e,t){for(var r=e.length;0<r;){var n=e[--r];(4&n.flags&&128&t||8&n.flags&&256&t||64&n.flags&&2048&t||4096&n.flags&&8192&t)&&tS.orderedRemoveItemAt(e,r)}}(a,i),16777216&i&&524288&i&&tS.orderedRemoveItemAt(a,tS.findIndex(a,rd)),0===a.length)return Le;if(1===a.length)return a[0];e=Gc(a);if(!(n=be.get(e))){if(1048576&i)if(Xu(a))n=Qu(a,t,r);else if(Gu(a,32768))n=Ku([Qu(a),Re],1,t,r);else if(Gu(a,65536))n=Ku([Qu(a),Je],1,t,r);else{if(!Yu(a))return Ie;var o=tS.findIndex(a,function(e){return 0!=(1048576&e.flags)}),s=a[o],n=Ku(tS.map(s.types,function(e){return Qu(tS.replaceElement(a,o,e))}),1,t,r)}else i=a,s=t,t=r,(r=Bi(2097152)).objectFlags=Xc(i,98304),r.types=i,r.aliasSymbol=s,r.aliasTypeArguments=t,n=r;be.set(e,n)}return n}function Yu(e){var t=tS.reduceLeft(e,function(e,t){return e*(1048576&t.flags?t.types.length:131072&t.flags?0:1)},1);return!(1e5<=t)||(tS.tracing.instant("check","checkCrossProductUnion_DepthLimit",{typeIds:e.map(function(e){return e.id}),size:t}),void hn(H,tS.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent))}function Zu(e,t){var r=Bi(4194304);return r.type=e,r.stringsOnly=t,r}function $u(e){return!(!e||!(16777216&e.flags&&!e.root.isDistributive||137363456&e.flags&&tS.some(e.types,$u)||272629760&e.flags&&$u(e.type)||8388608&e.flags&&$u(e.indexType)||33554432&e.flags&&$u(e.substitute)))}function el(e){return tS.isPrivateIdentifier(e)?Ze:tS.isIdentifier(e)?Xl(tS.unescapeLeadingUnderscores(e.escapedText)):Hl((tS.isComputedPropertyName(e)?Zg:fv)(e))}function tl(e,t){if(!(24&tS.getDeclarationModifierFlagsFromSymbol(e))){var r,n=Pn(rs(e)).nameType;if(n||tS.isKnownSymbol(e)||(n="default"===e.escapedName?Xl("default"):(r=e.valueDeclaration&&tS.getNameOfDeclaration(e.valueDeclaration))&&el(r)||Xl(tS.symbolName(e))),n&&n.flags&t)return n}return Ze}function rl(e,t){return Ku(tS.map(Rs(e),function(e){return tl(e,t)}))}function nl(e){e=dc(e,1);return e!==vr?e:void 0}function il(e,t,r){return void 0===t&&(t=h),1048576&(e=rc(e)).flags?Qu(tS.map(e.types,function(e){return il(e,t,r)})):2097152&e.flags?Ku(tS.map(e.types,function(e){return il(e,t,r)})):58982400&e.flags||Gd(e)||ws(e)&&$u(Ts(e))?(o=e,t?o.resolvedStringIndexType||(o.resolvedStringIndexType=Zu(o,!0)):o.resolvedIndexType||(o.resolvedIndexType=Zu(o,!1))):32&tS.getObjectFlags(e)?(i=r,o=wf(Ss(n=e),function(e){return!(i&&5&e.flags)}),(a=n.declaration.nameType&&e_(n.declaration.nameType))?If(o,function(e){return C_(a,f_(n.mapper,Ds(n),e))}):o):e===we?we:2&e.flags?Ze:131073&e.flags?at:t?!r&&dc(e,0)?Ue:rl(e,128):!r&&dc(e,0)?Ku([Ue,Ve,rl(e,8192)]):nl(e)?Ku([Ve,rl(e,8320)]):rl(e,8576);var n,i,a,o}function al(e){if(h)return e;var t=ir=ir||yu("Extract",524288,tS.Diagnostics.Cannot_find_global_type_0);return t?ru(t,[e,Ue]):Ue}function ol(t,r){var n=tS.findIndex(r,function(e){return!!(1179648&e.flags)});if(0<=n)return Yu(r)?If(r[n],function(e){return ol(t,tS.replaceElement(r,n,e))}):Ie;if(tS.contains(r,we))return we;var a=[],o=[],s=t[0];if(!function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];if(101248&i.flags)s+=sl(i)||"",s+=t[n+1];else if(134217728&i.flags){if(s+=i.texts[0],!e(i.texts,i.types))return!1;s+=t[n+1]}else{if(!yl(i)&&!fl(i))return!1;a.push(i),o.push(s),s=t[n+1]}}return!0}(t,r))return Ue;if(0===a.length)return Xl(s);o.push(s);var e,i,c=Gc(a)+"|"+tS.map(o,function(e){return e.length}).join(",")+"|"+o.join(""),u=Se.get(c);return u||Se.set(c,(e=o,i=a,(c=Bi(134217728)).texts=e,c.types=i,u=c)),u}function sl(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?tS.pseudoBigIntToString(e.value):512&e.flags?e.intrinsicName:65536&e.flags?"null":32768&e.flags?"undefined":void 0}function cl(t,e){return 1179648&e.flags?If(e,function(e){return cl(t,e)}):yl(e)?function(e,t){var r=fS(e)+","+t.id,n=Te.get(r);n||Te.set(r,n=function(e,t){var r=Bi(268435456);return r.symbol=e,r.type=t,r}(e,t));return n}(t,e):128&e.flags?Xl(function(e,t){switch(lS.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}(t,e.value)):e}function ul(e){return!Q&&(!!(16384&tS.getObjectFlags(e))||(1048576&e.flags?tS.every(e.types,ul):2097152&e.flags?tS.some(e.types,ul):!!(465829888&e.flags)&&ul(Hs(e))))}function ll(e,t){var r=t&&202===t.kind?t:void 0;return Ho(e)?Zo(e):r&&ry(r.argumentExpression,e,!1)?tS.getPropertyNameForKnownSymbolName(tS.idText(r.argumentExpression.name)):t&&tS.isPropertyName(t)?tS.getPropertyNameForPropertyNameNode(t):void 0}function _l(e,t){return!(8208&t.flags)||!tS.isCallLikeExpression(tS.findAncestor(e,function(e){return!tS.isAccessExpression(e)})||e.parent)&&tS.every(t.declarations,function(e){return!tS.isFunctionLike(e)||!!(134217728&tS.getCombinedNodeFlags(e))})}function dl(e,t,r,n,i,a,o,s,c){var u=a&&202===a.kind?a:void 0,l=a&&tS.isPrivateIdentifier(a)?void 0:ll(r,a);if(void 0!==l){var _=sc(t,l);if(_){if(c&&a&&134217728&Tm(_)&&_l(a,_)&&bn(!1,null!==(d=null==u?void 0:u.argumentExpression)&&void 0!==d?d:tS.isIndexedAccessTypeNode(a)?a.indexType:a,tS.Diagnostics._0_is_deprecated,l),u){if(Ym(_,u,107===u.expression.kind),Lh(u,_,tS.getAssignmentTargetKind(u)))return void hn(u.argumentExpression,tS.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,sa(_));if(4&o&&(wn(a).resolvedSymbol=_),zm(u,_))return Pe}var d=_o(_);return u&&1!==tS.getAssignmentTargetKind(u)?Zf(u,d):d}if(Pf(t,Hd)&&Yg(l)&&0<=+l)return!a||!Pf(t,function(e){return!e.target.hasRestElement})||8&o||(p=pl(a),Hd(t)?hn(p,tS.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,ua(t),eu(t),tS.unescapeLeadingUnderscores(l)):hn(p,tS.Diagnostics.Property_0_does_not_exist_on_type_1,tS.unescapeLeadingUnderscores(l),ua(t))),f(dc(t,1)),If(t,function(e){e=Qd(e)||Re;return s?Ku([e,Re]):e})}if(!(98304&r.flags)&&zh(r,402665900)){if(131073&t.flags)return t;var p,_=dc(t,0),d=zh(r,296)&&dc(t,1)||_;if(d)return 1&o&&d===_?void(u&&hn(u,tS.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ua(r),ua(e))):(a&&!zh(r,12)?hn(p=pl(a),tS.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ua(r)):f(d),s?Ku([d.type,Re]):d.type);if(131072&r.flags)return Ze;if(ul(t))return Fe;if(u&&!Vh(t))return void(t.symbol===de&&void 0!==l&&de.exports.has(l)&&418&de.exports.get(l).flags?hn(u,tS.Diagnostics.Property_0_does_not_exist_on_type_1,tS.unescapeLeadingUnderscores(l),ua(t)):!Q||G.suppressImplicitAnyIndexErrors||i||(void 0!==l&&Km(l,t)?hn(u,tS.Diagnostics.Property_0_is_a_static_member_of_type_1,l,ua(t)):pc(t,1)?hn(u.argumentExpression,tS.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):(i=void 0)!==l&&(i=Hm(l,t))?void 0!==i&&hn(u.argumentExpression,tS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,ua(t),i):void 0!==(l=function(t,e,r){var n=tS.isAssignmentTarget(e)?"set":"get";if(!function(e){if(e=Ms(t,e)){e=dy(_o(e));return e&&1<=ph(e)&&j_(r,uh(e,0))}}(n))return;e=tS.tryGetPropertyAccessOrIdentifierToString(e.expression);void 0===e?e=n:e+="."+n;return e}(t,u,r))?hn(u,tS.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ua(t),l):(i=void 0,1024&r.flags?i=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ua(r)+"]",ua(t)):8192&r.flags?(l=di(r.symbol,u),i=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Property_0_does_not_exist_on_type_1,"["+l+"]",ua(t))):128&r.flags||256&r.flags?i=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,ua(t)):12&r.flags&&(i=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ua(r),ua(t))),i=tS.chainDiagnosticMessages(i,tS.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ua(n),ua(t)),an.add(tS.createDiagnosticForNodeFromMessageChain(u,i)))))}return ul(t)?Fe:(a&&(p=pl(a),384&r.flags?hn(p,tS.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,ua(t)):12&r.flags?hn(p,tS.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ua(t),ua(r)):hn(p,tS.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ua(r))),Na(r)?r:void 0);function f(e){e&&e.isReadonly&&u&&(tS.isAssignmentTarget(u)||tS.isDeleteTarget(u))&&hn(u,tS.Diagnostics.Index_signature_in_type_0_only_permits_reading,ua(t))}}function pl(e){return 202===e.kind?e.argumentExpression:189===e.kind?e.indexType:158===e.kind?e.expression:e}function fl(e){return-1!==st.types.indexOf(e)||!!(1&e.flags)}function gl(e){return!!(134217728&e.flags)&&tS.every(e.types,fl)}function ml(e){return 3145728&e.flags?(4194304&e.objectFlags||(e.objectFlags|=4194304|(tS.some(e.types,ml)?8388608:0)),!!(8388608&e.objectFlags)):!!(58982400&e.flags)||ws(e)||Gd(e)}function yl(e){return 3145728&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(tS.some(e.types,yl)?33554432:0)),!!(33554432&e.objectFlags)):!!(465829888&e.flags)&&!gl(e)}function hl(e){return 262144&e.flags&&e.isThisType}function vl(e,t){return 8388608&e.flags?function(e,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(e[r])return e[r]===mt?e:e[r];e[r]=mt;var n=function(e){if(33554432&e.flags)return e.substitute;return e}(vl(e.objectType,t)),i=vl(e.indexType,t),a=function(t,e,r){if(1048576&e.flags){e=tS.map(e.types,function(e){return vl(Sl(t,e),r)});return(r?Qu:Ku)(e)}}(n,i,t);if(a)return e[r]=a;if(!(465829888&i.flags)){a=bl(n,i,t);if(a)return e[r]=a}if(Gd(n)&&296&i.flags){i=Zd(n,8&i.flags?0:n.target.fixedLength,0,t);if(i)return e[r]=i}if(ws(n))return e[r]=If(Dl(n,e.indexType),function(e){return vl(e,t)});return e[r]=e}(e,t):16777216&e.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Fl(e),a=Pl(e);if(131072&a.flags&&Nl(i)===Nl(r)){if(1&r.flags||j_(k_(r),k_(n)))return vl(i,t);if(xl(r,n))return Ze}else if(131072&i.flags&&Nl(a)===Nl(r)){if(!(1&r.flags)&&j_(k_(r),k_(n)))return Ze;if(1&r.flags||xl(r,n))return vl(a,t)}return e}(e,t):e}function bl(e,t,r){if(3145728&e.flags){var n=tS.map(e.types,function(e){return vl(Sl(e,t),r)});return(2097152&e.flags||r?Qu:Ku)(n)}}function xl(e,t){return 131072&Ku([ps(e,t),Ze]).flags}function Dl(e,t){t=a_([Ds(e)],[t]),t=__(e.mapper,t);return C_(Cs(e),t)}function Sl(e,t,r,n,i,a,o){return void 0===o&&(o=0),Cl(e,t,r,n,o,i,a)||(n?Ie:Le)}function Tl(e,t){return Pf(e,function(e){if(384&e.flags){e=Zo(e);if(Yg(e)){e=+e;return 0<=e&&e<t}}return!1})}function Cl(e,t,r,n,i,a,o){if(void 0===i&&(i=0),e===we||t===we)return we;var s,c,u,l,_=r||!!G.noUncheckedIndexedAccess&&16==(18&i);if(!nd(e)||98304&t.flags||!zh(t,12)||(t=Ue),yl(t)||(n&&189!==n.kind?Gd(e)&&!Tl(t,e.target.fixedLength):ml(e)&&(!Hd(e)||!Tl(t,e.target.fixedLength)))){if(3&e.flags)return e;var d=e.id+","+t.id+(_?"?":""),p=De.get(d);return p||De.set(d,(s=e,c=t,u=a,l=o,r=_,(d=Bi(8388608)).objectType=s,d.indexType=c,d.aliasSymbol=u,d.aliasTypeArguments=l,d.noUncheckedIndexedAccessCandidate=r,p=d)),p}var f=Zs(e);if(!(1048576&t.flags)||16&t.flags)return dl(e,f,t,t,!1,n,4|i,_,!0);for(var g=[],m=!1,y=0,h=t.types;y<h.length;y++){var v=dl(e,f,h[y],t,m,n,i,_);if(v)g.push(v);else{if(!n)return;m=!0}}return m?void 0:2&i?Qu(g,a,o):Ku(g,1,a,o)}function El(e){var t,r,n,i=wn(e);return i.resolvedType||(n=Sl(t=e_(e.objectType),r=e_(e.indexType),void 0,e,n=Ll(e),Rl(n)),i.resolvedType=8388608&n.flags&&n.objectType===t&&n.indexType===r?cu(n,e):n),i.resolvedType}function kl(e){var t,r=wn(e);return r.resolvedType||((t=zi(32,e.symbol)).declaration=e,t.aliasSymbol=Ll(e),t.aliasTypeArguments=Rl(t.aliasSymbol),Ss(r.resolvedType=t)),r.resolvedType}function Nl(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Sl(Nl(e.objectType),Nl(e.indexType)):e}function Al(o,s){for(var c,u;;){var e=function(){var e=C_(o.checkType,s),t=ml(e)||yl(e),r=C_(o.extendsType,s);if(e===we||r===we)return{value:we};var n=void 0;o.inferTypeParameters&&(a=Tp(o.inferTypeParameters,void 0,0),t&&tS.some(o.inferTypeParameters,function(e){return e===r})||Kp(a.inferences,e,r,768),n=d_(s,a.mapper));var i=n?C_(o.extendsType,n):r;if(!t&&!ml(i)&&!yl(i)){if(!(3&i.flags)&&(1&e.flags||!j_(E_(e),E_(i)))){1&e.flags&&(u=u||[]).push(C_(e_(o.node.trueType),n||s));var a=e_(o.node.falseType);if(16777216&a.flags){t=a.root;if(t.node.parent===o.node&&(!t.isDistributive||t.checkType===o.checkType))return o=t,"continue"}return c=C_(a,s),"break"}if(3&i.flags||j_(k_(e),k_(i)))return c=C_(e_(o.node.trueType),n||s),"break"}e=Nl(e);return(c=Bi(16777216)).root=o,c.checkType=e,c.extendsType=r,c.mapper=s,c.combinedMapper=n,c.aliasSymbol=o.aliasSymbol,c.aliasTypeArguments=n_(o.aliasTypeArguments,s),"break"}();if("object"==typeof e)return e.value;if("break"===e)break}return u?Ku(tS.append(u,c)):c}function Fl(e){return e.resolvedTrueType||(e.resolvedTrueType=C_(e_(e.root.node.trueType),e.mapper))}function Pl(e){return e.resolvedFalseType||(e.resolvedFalseType=C_(e_(e.root.node.falseType),e.mapper))}function wl(e){var t;return e.locals&&e.locals.forEach(function(e){262144&e.flags&&(t=tS.append(t,Ro(e)))}),t}function Il(e){var t=wn(e);if(!t.resolvedType){if(e.isTypeOf&&e.typeArguments)return hn(e,tS.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=Ne,t.resolvedType=Ie;if(!tS.isLiteralImportTypeNode(e))return hn(e.argument,tS.Diagnostics.String_literal_expected),t.resolvedSymbol=Ne,t.resolvedType=Ie;var r=e.isTypeOf?111551:4194304&e.flags?900095:788968,n=gi(e,e.argument.literal);if(!n)return t.resolvedSymbol=Ne,t.resolvedType=Ie;n=vi(n,!1);if(tS.nodeIsMissing(e.qualifier))n.flags&r?t.resolvedType=Ol(e,t,n,r):(hn(e,111551==r?tS.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:tS.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),t.resolvedSymbol=Ne,t.resolvedType=Ie);else{for(var i,a=function e(t){return tS.isIdentifier(t)?[t]:tS.append(e(t.left),t.right)}(e.qualifier),o=n;i=a.shift();){var s=a.length?1920:r,c=Ni(ii(o)),s=e.isTypeOf?sc(_o(c),i.escapedText):On(Ti(c),i.escapedText,s);if(!s)return hn(i,tS.Diagnostics.Namespace_0_has_no_exported_member_1,di(o),tS.declarationNameToString(i)),t.resolvedType=Ie;wn(i).resolvedSymbol=s,o=wn(i.parent).resolvedSymbol=s}t.resolvedType=Ol(e,t,o,r)}}return t.resolvedType}function Ol(e,t,r,n){var i=ii(r);return t.resolvedSymbol=i,111551===n?_o(r):au(e,i)}function Ml(e){var t,r,n=wn(e);return n.resolvedType||(t=Ll(e),0!==ts(e.symbol).size||t?((r=zi(16,e.symbol)).aliasSymbol=t,r.aliasTypeArguments=Rl(t),tS.isJSDocTypeLiteral(e)&&e.isArrayType&&(r=ku(r)),n.resolvedType=r):n.resolvedType=dt),n.resolvedType}function Ll(e){for(var t=e.parent;tS.isParenthesizedTypeNode(t)||tS.isJSDocTypeExpression(t)||tS.isTypeOperatorNode(t)&&142===t.operator;)t=t.parent;return tS.isTypeAlias(t)?Ai(t):void 0}function Rl(e){return e?vo(e):void 0}function Bl(e){return 524288&e.flags&&!ws(e)}function jl(e){return td(e)||!!(474058748&e.flags)}function Jl(e,s){if(2===e.types.length){var t=e.types[0],r=e.types[1];return tS.every(e.types,jl)?td(t)?t:td(r)?r:lt:jl(t)?n(r):jl(r)?n(t):void 0}function n(e){for(var t=tS.createSymbolTable(),r=0,n=Rs(e);r<n.length;r++){var i,a,o=n[r];24&tS.getDeclarationModifierFlagsFromSymbol(o)||Ul(o)&&(i=65536&o.flags&&!(32768&o.flags),(a=Dn(16777220,o.escapedName,s?8:0)).type=i?Re:_o(o),a.declarations=o.declarations,a.nameType=Pn(o).nameType,a.syntheticOrigin=o,t.set(o.escapedName,a))}e=Wi(e.symbol,t,tS.emptyArray,tS.emptyArray,dc(e,0),dc(e,1));return e.objectFlags|=1048704,e}}function zl(t,r,n,i,a){if(1&t.flags||1&r.flags)return Fe;if(2&t.flags||2&r.flags)return Le;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&t.flags)return(e=Jl(t,a))?zl(e,r,n,i,a):Yu([t,r])?If(t,function(e){return zl(e,r,n,i,a)}):Ie;if(1048576&r.flags)return(e=Jl(r,a))?zl(t,e,n,i,a):Yu([t,r])?If(r,function(e){return zl(t,e,n,i,a)}):Ie;if(473960444&r.flags)return t;if(ml(t)||ml(r)){if(td(t))return r;if(2097152&t.flags){var e=t.types,o=e[e.length-1];if(Bl(o)&&Bl(r))return Qu(tS.concatenate(e.slice(0,e.length-1),[zl(o,r,n,i,a)]))}return Qu([t,r])}for(var s,c=tS.createSymbolTable(),u=new tS.Set,o=t===lt?(s=dc(r,0),dc(r,1)):(s=gs(dc(t,0),dc(r,0)),gs(dc(t,1),dc(r,1))),l=0,_=Rs(r);l<_.length;l++){var d=_[l];24&tS.getDeclarationModifierFlagsFromSymbol(d)?u.add(d.escapedName):Ul(d)&&c.set(d.escapedName,Vl(d,a))}for(var p=0,f=Rs(t);p<f.length;p++){var g,m,y,h=f[p];!u.has(h.escapedName)&&Ul(h)&&(c.has(h.escapedName)?(g=_o(d=c.get(h.escapedName)),16777216&d.flags&&(m=tS.concatenate(h.declarations,d.declarations),(y=Dn(4|16777216&h.flags,h.escapedName)).type=Ku([_o(h),gf(g,524288)]),y.leftSpread=h,y.rightSpread=d,y.declarations=m,y.nameType=Pn(h).nameType,c.set(h.escapedName,y))):c.set(h.escapedName,Vl(h,a)))}o=Wi(n,c,tS.emptyArray,tS.emptyArray,Kl(s,a),Kl(o,a));return o.objectFlags|=1049728|i,o}function Ul(e){return!(tS.some(e.declarations,tS.isPrivateIdentifierPropertyDeclaration)||106496&e.flags&&e.declarations.some(function(e){return tS.isClassLike(e.parent)}))}function Vl(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===Mh(e))return e;t=Dn(4|16777216&e.flags,e.escapedName,t?8:0);return t.type=r?Re:_o(e),t.declarations=e.declarations,t.nameType=Pn(e).nameType,t.syntheticOrigin=e,t}function Kl(e,t){return e&&e.isReadonly!==t?Vc(e.type,t,e.declaration):e}function ql(e,t,r){e=Bi(e);return e.symbol=r,e.value=t,e}function Wl(e){var t;return 2944&e.flags?(e.freshType||((t=ql(e.flags,e.value,e.symbol)).regularType=e,t.freshType=t,e.freshType=t),e.freshType):e}function Hl(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=Ku(tS.sameMap(e.types,Hl))):e}function Gl(e){return!!(2944&e.flags)&&e.freshType===e}function Xl(e,t,r){var n=(t||"")+("number"==typeof e?"#":"string"==typeof e?"@":"n")+("object"==typeof e?tS.pseudoBigIntToString(e):e),i=xe.get(n);return i||(t=("number"==typeof e?256:"string"==typeof e?128:2048)|(t?1024:0),xe.set(n,i=ql(t,e,r)),i.regularType=i),i}function Ql(e){if(tS.isValidESSymbolDeclaration(e)){var t=Ai(e),e=Pn(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=(e=t,(t=Bi(8192)).symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+fS(t.symbol),t))}return Qe}function Yl(e){var t,r,n=wn(e);return n.resolvedType||(n.resolvedType=(t=e,r=tS.getThisContainer(t,!1),!(e=r&&r.parent)||!tS.isClassLike(e)&&253!==e.kind||tS.hasSyntacticModifier(r,32)||tS.isConstructorDeclaration(r)&&!tS.isNodeDescendantOf(t,r.body)?e&&tS.isObjectLiteralExpression(e)&&tS.isBinaryExpression(e.parent)&&6===tS.getAssignmentDeclarationKind(e.parent)||(e=4194304&t.flags?tS.getHostSignatureFromJSDoc(t):void 0)&&tS.isFunctionExpression(e)&&tS.isBinaryExpression(e.parent)&&3===tS.getAssignmentDeclarationKind(e.parent)?Ao(Ai(e.parent.left).parent).thisType:Wy(r)&&tS.isNodeDescendantOf(t,r.body)?Ao(Ai(r)).thisType:(hn(t,tS.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ie):Ao(Ai(e)).thisType)),n.resolvedType}function Zl(e){return e_($l(e.type)||e.type)}function $l(e){switch(e.kind){case 186:return $l(e.type);case 179:if(1===e.elements.length&&(181===(e=e.elements[0]).kind||192===e.kind&&e.dotDotDotToken))return $l(e.type);break;case 178:return e.elementType}}function e_(e){return cu(t_(e),e)}function t_(e){switch(e.kind){case 128:case 303:case 304:return Fe;case 152:return Le;case 147:return Ue;case 144:return Ve;case 155:return Ke;case 131:return Xe;case 148:return Qe;case 113:return Ye;case 150:return Re;case 103:return Je;case 141:return Ze;case 145:return 131072&e.flags&&!Q?Fe:nt;case 136:return Me;case 187:case 107:return Yl(e);case 191:return function(e){if(103===e.literal.kind)return Je;var t=wn(e);return t.resolvedType||(t.resolvedType=Hl(fv(e.literal))),t.resolvedType}(e);case 173:return du(e);case 172:return e.assertsModifier?Ye:Xe;case 223:return du(e);case 176:return fu(e);case 178:case 179:return(g=wn(d=e)).resolvedType||((p=Fu(d))===pt?g.resolvedType=lt:179===d.kind&&tS.some(d.elements,function(e){return!!(8&Nu(e))})||!Pu(d)?(f=178===d.kind?[e_(d.elementType)]:tS.map(d.elements,e_),g.resolvedType=Mu(p,f)):g.resolvedType=179===d.kind&&0===d.elements.length?p:Zc(p,d,void 0)),g.resolvedType;case 180:return _=e_((_=e).type),X?ap(_):_;case 182:return(l=wn(_=e)).resolvedType||(u=Ll(_),l.resolvedType=Ku(tS.map(_.types,e_),1,u,Rl(u))),l.resolvedType;case 183:return(c=wn(u=e)).resolvedType||(l=Ll(u),c.resolvedType=Qu(tS.map(u.types,e_),l,Rl(l))),c.resolvedType;case 305:return s=e_((s=e).type),X?ip(s,65536):s;case 307:return Ra(e_(e.type));case 192:return(o=wn(a=e)).resolvedType||(o.resolvedType=a.dotDotDotToken?Zl(a):a.questionToken&&X?ap(e_(a.type)):e_(a.type));case 186:case 306:case 301:return e_(e.type);case 181:return Zl(e);case 309:return function(e){var t=e_(e.type),r=e.parent,n=e.parent.parent;if(tS.isJSDocTypeExpression(e.parent)&&tS.isJSDocParameterTag(n)){e=tS.getHostSignatureFromJSDoc(n);if(e){e=tS.lastOrUndefined(e.parameters),n=tS.getParameterSymbolFromJSDoc(n);if(!e||n&&e.symbol===n&&tS.isRestParameter(e))return ku(t)}}if(tS.isParameter(r)&&tS.isJSDocFunctionType(r.parent))return ku(t);return Ra(t)}(e);case 174:case 175:case 177:case 312:case 308:case 313:return Ml(e);case 188:return function(e){var t=wn(e);if(!t.resolvedType)switch(e.operator){case 138:t.resolvedType=il(e_(e.type));break;case 151:t.resolvedType=148===e.type.kind?Ql(tS.walkUpParenthesizedTypes(e.parent)):Ie;break;case 142:t.resolvedType=e_(e.type);break;default:throw tS.Debug.assertNever(e.operator)}return t.resolvedType}(e);case 189:return El(e);case 190:return kl(e);case 184:return(i=wn(n=e)).resolvedType||(c=e_(n.checkType),o=Rl(s=Ll(n)),a=yo(n,!0),a=o?a:tS.filter(a,function(e){return h_(e,n)}),o={node:n,checkType:c,extendsType:e_(n.extendsType),isDistributive:!!(262144&c.flags),inferTypeParameters:wl(n),outerTypeParameters:a,instantiations:void 0,aliasSymbol:s,aliasTypeArguments:o},i.resolvedType=Al(o,void 0),a&&(o.instantiations=new tS.Map,o.instantiations.set(Gc(a),i.resolvedType))),i.resolvedType;case 185:return(r=wn(i=e)).resolvedType||(r.resolvedType=Lo(Ai(i.typeParameter))),r.resolvedType;case 193:return(t=wn(r=e)).resolvedType||(t.resolvedType=ol(__spreadArrays([r.head.text],tS.map(r.templateSpans,function(e){return e.literal.text})),tS.map(r.templateSpans,function(e){return e_(e.type)}))),t.resolvedType;case 195:return Il(e);case 78:case 157:case 201:t=Bx(e);return t?Ro(t):Ie;default:return Ie}var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g}function r_(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function n_(e,t){return r_(e,t,C_)}function i_(e,t){return r_(e,t,m_)}function a_(e,t){return 1===e.length?s_(e[0],t?t[0]:Fe):{kind:1,sources:e,targets:t}}function o_(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:Fe;return e;case 2:return t.func(e);case 3:case 4:var a=o_(e,t.mapper1);return(a!==e&&3===t.kind?C_:o_)(a,t.mapper2)}}function s_(e,t){return{kind:0,source:e,target:t}}function c_(e){return{kind:2,func:e}}function u_(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function l_(e){return a_(e,void 0)}function __(e,t){return e?u_(3,e,t):t}function d_(e,t){return e?u_(4,e,t):t}function p_(e,t,r){return r?u_(4,s_(e,t),r):s_(e,t)}function f_(e,t,r){return e?u_(4,e,s_(t,r)):s_(t,r)}function g_(e){var t=Ui(e.symbol);return t.target=e,t}function m_(e,t,r){if(e.typeParameters&&!r){a=tS.map(e.typeParameters,g_),t=__(a_(e.typeParameters,a),t);for(var n=0,i=a;n<i.length;n++)i[n].mapper=t}var a=as(e.declaration,a,e.thisParameter&&y_(e.thisParameter,t),r_(e.parameters,t,y_),void 0,void 0,e.minArgumentCount,19&e.flags);return a.target=e,a.mapper=t,a}function y_(e,t){var r=Pn(e);if(r.type&&!Pp(r.type))return e;1&tS.getCheckFlags(e)&&(e=r.target,t=__(r.mapper,t));var n=Dn(e.flags,e.escapedName,1|53256&tS.getCheckFlags(e));return n.declarations=e.declarations,n.parent=e.parent,n.target=e,n.mapper=t,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),r.nameType&&(n.nameType=r.nameType),n}function h_(r,e){if(r.symbol&&r.symbol.declarations&&1===r.symbol.declarations.length){for(var t=r.symbol.declarations[0].parent,n=e;n!==t;n=n.parent)if(!n||230===n.kind||184===n.kind&&tS.forEachChild(n.extendsType,i))return!0;return!!tS.forEachChild(e,i)}return!0;function i(e){switch(e.kind){case 187:return!!r.isThisType;case 78:return!r.isThisType&&tS.isPartOfTypeNode(e)&&!(157===(t=e).kind||173===t.parent.kind&&t.parent.typeArguments&&t===t.parent.typeName||195===t.parent.kind&&t.parent.typeArguments&&t===t.parent.qualifier)&&t_(e)===r;case 176:return!0}var t;return!!tS.forEachChild(e,i)}}function v_(e){e=Ss(e);if(4194304&e.flags){e=Nl(e.type);if(262144&e.flags)return e}}function b_(d,p){var f=v_(d);if(f){var e=C_(f,p);if(f!==e)return If(rc(e),function(e){if(61603843&e.flags&&e!==we&&e!==Ie){if(!d.declaration.nameType){if(Pd(e))return function(e,t,r){r=D_(t,Ve,!0,r);return r===Ie?Ie:ku(r,x_(wd(e),As(t)))}(e,d,p_(f,e,p));if(Gd(e))return s=d,c=f,u=p,l=(o=e).target.elementFlags,_=tS.map($c(o),function(e,t){t=8&l[t]?e:4&l[t]?ku(e):Iu([e],[l[t]]);return b_(s,p_(c,t,u))}),o=x_(o.target.readonly,As(s)),Iu(_,tS.map(_,function(e){return 8}),o);if(Hd(e))return r=d,n=p_(f,t=e,p),i=t.target.elementFlags,a=tS.map($c(t),function(e,t){return D_(r,Xl(""+t),!!(2&i[t]),n)}),_=As(r),o=4&_?tS.map(i,function(e){return 1&e?2:e}):8&_?tS.map(i,function(e){return 2&e?1:e}):i,_=x_(t.target.readonly,_),tS.contains(a,Ie)?Ie:Iu(a,o,_,t.target.labeledElementDeclarations)}return S_(d,p_(f,e,p))}var t,r,n,i,a,o,s,c,u,l,_;return e})}return S_(d,p)}function x_(e,t){return!!(1&t)||!(2&t)&&e}function D_(e,t,r,n){t=f_(n,Ds(e),t),t=C_(Cs(e.target||e),t),e=As(e);return X&&4&e&&!Jh(t,49152)?ap(t):X&&8&e&&r?gf(t,524288):t}function S_(e,t){var r,n,i=zi(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(i.declaration=e.declaration,n=g_(r=Ds(e)),t=__(s_(r,i.typeParameter=n),t),n.mapper=t),i.target=e,i.mapper=t,i.aliasSymbol=e.aliasSymbol,i.aliasTypeArguments=n_(e.aliasTypeArguments,t),i}function T_(e,t){var r=e.root;if(r.outerTypeParameters){var n=tS.map(r.outerTypeParameters,function(e){return o_(e,t)}),i=Gc(n),a=r.instantiations.get(i);return a||(a=function(t,r){if(t.isDistributive){var n=t.checkType,e=o_(n,r);if(n!==e&&1179648&e.flags)return If(e,function(e){return Al(t,p_(n,e,r))})}return Al(t,r)}(r,a_(r.outerTypeParameters,n)),r.instantiations.set(i,a)),a}return e}function C_(e,t){if(!(e&&t&&Pp(e)))return e;if(50===d||5e6<=l)return tS.tracing.instant("check","instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:d,instantiationCount:l}),hn(H,tS.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ie;a++,l++,d++;t=function(e,t){var r=e.flags;if(262144&r)return o_(e,t);if(524288&r){var n=e.objectFlags;if(52&n){if(4&n&&!e.node){var i=e.resolvedTypeArguments,a=n_(i,t);return a!==i?Mu(e.target,a):e}return function(e,t){var r,n=4&e.objectFlags?e.node:e.symbol.declarations[0],i=wn(n),a=4&e.objectFlags?i.resolvedType:64&e.objectFlags?e.target:e,o=i.outerTypeParameters;if(o||(c=yo(n,!0),Wy(n)&&(r=gc(n),c=tS.addRange(c,r)),o=c||tS.emptyArray,o=(4&a.objectFlags||2048&a.symbol.flags)&&!a.aliasTypeArguments?tS.filter(o,function(e){return h_(e,n)}):o,i.outerTypeParameters=o),o.length){var s=__(e.mapper,t),c=tS.map(o,function(e){return o_(e,s)}),i=Gc(c);a.instantiations||(a.instantiations=new tS.Map,a.instantiations.set(Gc(o),a));t=a.instantiations.get(i);return t||(c=a_(o,c),t=4&a.objectFlags?Zc(e.target,e.node,c):(32&a.objectFlags?b_:S_)(a,c),a.instantiations.set(i,t)),t}return e}(e,t)}return e}if(3145728&r){i=e.types,a=n_(i,t);return a===i?e:2097152&r?Qu(a,e.aliasSymbol,n_(e.aliasTypeArguments,t)):Ku(a,1,e.aliasSymbol,n_(e.aliasTypeArguments,t))}if(4194304&r)return il(C_(e.type,t));if(134217728&r)return ol(e.texts,n_(e.types,t));if(268435456&r)return cl(e.symbol,C_(e.type,t));if(8388608&r)return Sl(C_(e.objectType,t),C_(e.indexType,t),e.noUncheckedIndexedAccessCandidate,void 0,e.aliasSymbol,n_(e.aliasTypeArguments,t));if(16777216&r)return T_(e,__(e.mapper,t));if(33554432&r){r=C_(e.baseType,t);if(8650752&r.flags)return ou(r,C_(e.substitute,t));t=C_(e.substitute,t);return 3&t.flags||j_(k_(r),k_(t))?r:t}return e}(e,t);return d--,t}function E_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=C_(e,ut))}function k_(e){return 262143&e.flags?e:e.restrictiveInstantiation||(e.restrictiveInstantiation=C_(e,ct),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function N_(e,t){return e&&Vc(C_(e.type,t),e.isReadonly,e.declaration)}function A_(e){switch(tS.Debug.assert(165!==e.kind||tS.isObjectLiteralMethod(e)),e.kind){case 208:case 209:case 165:case 251:return F_(e);case 200:return tS.some(e.properties,A_);case 199:return tS.some(e.elements,A_);case 217:return A_(e.whenTrue)||A_(e.whenFalse);case 216:return(56===e.operatorToken.kind||60===e.operatorToken.kind)&&(A_(e.left)||A_(e.right));case 288:return A_(e.initializer);case 207:return A_(e.expression);case 281:return tS.some(e.properties,A_)||tS.isJsxOpeningElement(e.parent)&&tS.some(e.parent.parent.children,A_);case 280:var t=e.initializer;return!!t&&A_(t);case 283:t=e.expression;return!!t&&A_(t)}return!1}function F_(e){return(!tS.isFunctionDeclaration(e)||tS.isInJSFile(e)&&!!Ma(e))&&(P_(e)||!(e=e).typeParameters&&!tS.getEffectiveReturnTypeNode(e)&&!!e.body&&230!==e.body.kind&&A_(e.body))}function P_(e){if(!e.typeParameters){if(tS.some(e.parameters,function(e){return!tS.getEffectiveTypeAnnotationNode(e)}))return!0;if(209!==e.kind){e=tS.firstOrUndefined(e.parameters);if(!e||!tS.parameterIsThisKeyword(e))return!0}}return!1}function w_(e){return(tS.isInJSFile(e)&&tS.isFunctionDeclaration(e)||Vg(e)||tS.isObjectLiteralMethod(e))&&F_(e)}function I_(e){if(524288&e.flags){var t=Is(e);if(t.constructSignatures.length||t.callSignatures.length){var r=zi(16,e.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=tS.emptyArray,r.constructSignatures=tS.emptyArray,r}}else if(2097152&e.flags)return Qu(tS.map(e.types,I_));return e}function O_(e,t){return od(e,t,pn)}function M_(e,t){return od(e,t,pn)?-1:0}function L_(e,t){return od(e,t,_n)?-1:0}function R_(e,t){return od(e,t,un)?-1:0}function B_(e,t){return od(e,t,un)}function j_(e,t){return od(e,t,_n)}function J_(t,r){return 1048576&t.flags?tS.every(t.types,function(e){return J_(e,r)}):1048576&r.flags?tS.some(r.types,function(e){return J_(t,e)}):58982400&t.flags?J_(Ks(t)||Le,r):r===Tt?!!(67633152&t.flags):r===Ct?!!(524288&t.flags)&&pf(t):go(t,fo(r))||Pd(r)&&!wd(r)&&J_(t,At)}function z_(e,t){return od(e,t,dn)}function U_(e,t){return z_(e,t)||z_(t,e)}function V_(e,t,r,n,i,a){return ud(e,t,_n,r,n,i,a)}function K_(e,t,r,n,i,a){return q_(e,t,_n,r,n,i,a,void 0)}function q_(e,t,r,n,i,a,o,s){return!!od(e,t,r)||(!n||!H_(i,e,t,r,a,o,s))&&ud(e,t,r,n,a,o,s)}function W_(e){return!!(16777216&e.flags||2097152&e.flags&&tS.some(e.types,W_))}function H_(e,t,r,n,i,a,o){if(!e||W_(r))return!1;if(!ud(t,r,n,void 0)&&function(e,t,r,n,i,a,o){for(var s=uc(t,0),c=uc(t,1),u=0,l=[c,s];u<l.length;u++){var _=l[u];if(tS.some(_,function(e){e=Pc(e);return!(131073&e.flags)&&ud(e,r,n,void 0)})){var d=o||{};V_(t,r,e,i,a,d);d=d.errors[d.errors.length-1];return tS.addRelatedInfo(d,tS.createDiagnosticForNode(e,_===c?tS.Diagnostics.Did_you_mean_to_use_new_with_this_expression:tS.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(e,t,r,n,i,a,o))return!0;switch(e.kind){case 283:case 207:return H_(e.expression,t,r,n,i,a,o);case 216:switch(e.operatorToken.kind){case 62:case 27:return H_(e.right,t,r,n,i,a,o)}break;case 200:return s=e,c=t,l=n,_=a,d=o,!(131068&(u=r).flags)&&G_(function(t){var r,n,i,a;return __generator(this,function(e){switch(e.label){case 0:if(!tS.length(t.properties))return[2];r=0,n=t.properties,e.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],tS.isSpreadAssignment(i))return[3,7];if(!(a=tl(Ai(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 168:case 167:case 165:case 289:return[3,2];case 288:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return e.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:tS.isComputedNonLiteralName(i.name)?tS.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return e.sent(),[3,7];case 6:tS.Debug.assertNever(i),e.label=7;case 7:return r++,[3,1];case 8:return[2]}})}(s),c,u,l,_,d);case 199:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(Rd(t))return G_(Q_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=Hg(e,1,!0);return e.contextualType=o,!!Rd(s)&&G_(Q_(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(e,t,r,n,a,o);case 281:return function(i,e,a,t,r,n){var o,s=G_(function(t){var r,n;return __generator(this,function(e){switch(e.label){case 0:if(!tS.length(t.properties))return[2];r=0,n=t.properties,e.label=1;case 1:return r<n.length?(n=n[r],tS.isJsxSpreadAttribute(n)?[3,3]:[4,{errorNode:n.name,innerExpression:n.initializer,nameType:Xl(tS.idText(n.name))}]):[3,4];case 2:e.sent(),e.label=3;case 3:return r++,[3,1];case 4:return[2]}})}(i),e,a,t,r,n);if(tS.isJsxOpeningElement(i.parent)&&tS.isJsxElement(i.parent.parent)){var c=i.parent.parent,u=fm(dm(i)),l=void 0===u?"children":tS.unescapeLeadingUnderscores(u),_=Xl(l),d=Sl(a,_),p=tS.getSemanticJsxChildren(c.children);if(!tS.length(p))return s;var f,g,m=1<tS.length(p),y=wf(d,Bd),h=wf(d,function(e){return!Bd(e)});m?y!==Ze?(u=Iu(om(c,0)),m=function(t,r){var n,i,a,o;return __generator(this,function(e){switch(e.label){case 0:if(!tS.length(t.children))return[2];i=n=0,e.label=1;case 1:return i<t.children.length?(a=t.children[i],o=Xl(i-n),(o=X_(a,o,r))?[4,o]:[3,3]):[3,5];case 2:return e.sent(),[3,4];case 3:n++,e.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(c,v),s=G_(m,u,y,t,r,n)||s):od(Sl(e,_),d,t)||(s=!0,g=hn(c.openingElement.tagName,tS.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,l,ua(d)),n&&n.skipLogging&&(n.errors||(n.errors=[])).push(g)):h!==Ze?(f=X_(p[0],_,v))&&(s=G_(function(){return __generator(this,function(e){switch(e.label){case 0:return[4,f];case 1:return e.sent(),[2]}})}(),e,a,t,r,n)||s):od(Sl(e,_),d,t)||(s=!0,g=hn(c.openingElement.tagName,tS.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,l,ua(d)),n&&n.skipLogging&&(n.errors||(n.errors=[])).push(g))}return s;function v(){var e,t,r,n;return o||(e=tS.getTextOfNode(i.parent.tagName),t=void 0===(n=fm(dm(i)))?"children":tS.unescapeLeadingUnderscores(n),r=Sl(a,Xl(t)),n=tS.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2,o=__assign(__assign({},n),{key:"!!ALREADY FORMATTED!!",message:tS.formatMessage(void 0,n,e,t,ua(r))})),o}}(e,t,r,n,a,o);case 209:return function(e,t,r,n,i,a){if(tS.isBlock(e.body))return!1;if(tS.some(e.parameters,tS.hasType))return!1;var o=dy(t);if(!o)return!1;var s=uc(r,0);if(!tS.length(s))return!1;var c=e.body,t=Pc(o),o=Ku(tS.map(s,Pc));if(!ud(t,o,n,void 0)){s=c&&H_(c,t,o,n,void 0,i,a);if(s)return s;a=a||{};if(ud(t,o,n,c,void 0,i,a),a.errors)return r.symbol&&tS.length(r.symbol.declarations)&&tS.addRelatedInfo(a.errors[a.errors.length-1],tS.createDiagnosticForNode(r.symbol.declarations[0],tS.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&tS.getFunctionFlags(e))&&!ka(t,"then")&&ud(xh(t),o,n,void 0)&&tS.addRelatedInfo(a.errors[a.errors.length-1],tS.createDiagnosticForNode(e,tS.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,r,n,a,o)}var s,c,u,l,_,d;return!1}function G_(e,t,r,n,i,a){for(var o=!1,s=e.next();!s.done;s=e.next()){var c,u=s.value,l=u.errorNode,_=u.innerExpression,d=u.nameType,p=u.errorMessage,f=function(e,t,r){var n=Cl(t,r);if(n)return n;if(1048576&t.flags){t=_d(e,t);if(t)return Cl(t,r)}}(t,r,d);!f||8388608&f.flags||(c=Cl(t,d))&&!ud(c,f,n,void 0)&&(_&&H_(_,c,f,n,void 0,i,a)||(u=a||{},ud(_=_?function(e,t){e.contextualType=t;try{return nv(e,1,t)}finally{e.contextualType=void 0}}(_,c):c,f,n,l,p,i,u)&&_!==c&&ud(c,f,n,l,p,i,u),u.errors&&(c=u.errors[u.errors.length-1],f=!1,(p=void 0!==(l=Ho(d)?Zo(d):void 0)?sc(r,l):void 0)||(u=zh(d,296)&&dc(r,1)||dc(r,0)||void 0)&&u.declaration&&!tS.getSourceFileOfNode(u.declaration).hasNoDefaultLib&&(f=!0,tS.addRelatedInfo(c,tS.createDiagnosticForNode(u.declaration,tS.Diagnostics.The_expected_type_comes_from_this_index_signature))),!f&&(p&&tS.length(p.declarations)||r.symbol&&tS.length(r.symbol.declarations))&&(p=(p&&tS.length(p.declarations)?p:r.symbol).declarations[0],tS.getSourceFileOfNode(p).hasNoDefaultLib||tS.addRelatedInfo(c,tS.createDiagnosticForNode(p,tS.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!l||8192&d.flags?ua(d):tS.unescapeLeadingUnderscores(l),ua(r)))))),o=!0)}return o}function X_(e,t,r){switch(e.kind){case 283:return{errorNode:e,innerExpression:e.expression,nameType:t};case 11:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:r()};case 273:case 274:case 277:return{errorNode:e,innerExpression:e,nameType:t};default:return tS.Debug.assertNever(e,"Found invalid jsx child")}}function Q_(t,r){var n,i,a;return __generator(this,function(e){switch(e.label){case 0:if(!(a=tS.length(t.elements)))return[2];n=0,e.label=1;case 1:return n<a?Rd(r)&&!sc(r,""+n)?[3,3]:(i=t.elements[n],tS.isOmittedExpression(i)?[3,3]:(a=Xl(n),[4,{errorNode:i,innerExpression:i,nameType:a}])):[3,4];case 2:e.sent(),e.label=3;case 3:return n++,[3,1];case 4:return[2]}})}function Y_(e,t,r,n,i){return ud(e,t,dn,r,n,i)}function Z_(e,t,r,n,i,a,o,s){if(e===t)return-1;if(!(g=t).typeParameters&&(!g.thisParameter||Na(ah(g.thisParameter)))&&1===g.parameters.length&&bS(g)&&(ah(g.parameters[0])===Mt||Na(ah(g.parameters[0])))&&Na(Pc(g)))return-1;var c=dh(t);if(!fh(t)&&(8&r?fh(e)||dh(e)>c:ph(e)>c))return 0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=gy(e,t=jc(t),void 0,o));var u=dh(e),l=mh(e),_=mh(t);if((l||_)&&C_(l||_,s),l&&_&&u!==c)return 0;var d=t.declaration?t.declaration.kind:0,p=!(3&r)&&O&&165!==d&&164!==d&&166!==d,f=-1,g=Ac(e);if(g&&g!==Ye){d=Ac(t);if(d){if(!(x=!p&&o(g,d,!1)||o(d,g,n)))return n&&i(tS.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;f&=x}}for(var m=l||_?Math.min(u,c):Math.max(u,c),y=l||_?m-1:-1,h=0;h<m;h++){var v=(h===y?_h:lh)(e,h),b=(h===y?_h:lh)(t,h);if(v&&b){var x,D=3&r?void 0:dy(op(v)),S=3&r?void 0:dy(op(b));if((x=D&&S&&!Fc(D)&&!Fc(S)&&(98304&tp(v))==(98304&tp(b))?Z_(S,D,8&r|(p?2:1),n,i,a,o,s):!(3&r)&&!p&&o(v,b,!1)||o(b,v,n))&&8&r&&h>=ph(e)&&h<ph(t)&&o(v,b,!1)&&(x=0),!x)return n&&i(tS.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,tS.unescapeLeadingUnderscores(sh(e,h)),tS.unescapeLeadingUnderscores(sh(t,h))),0;f&=x}}if(!(4&r)){u=Ic(t)?Fe:t.declaration&&Wy(t.declaration)?Ao(Ni(t.declaration.symbol)):Pc(t);if(u===Ye)return f;c=Ic(e)?Fe:e.declaration&&Wy(e.declaration)?Ao(Ni(e.declaration.symbol)):Pc(e),l=Fc(t);if(l){_=Fc(e);if(_)f&=function(e,t,r,n,i){if(e.kind!==t.kind)return r&&(n(tS.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),n(tS.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ga(e),ga(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return r&&(n(tS.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),n(tS.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ga(e),ga(t))),0;i=e.type===t.type?-1:e.type&&t.type?i(e.type,t.type,r):0;0===i&&r&&n(tS.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ga(e),ga(t));return i}(_,l,n,i,o);else if(tS.isIdentifierTypePredicate(l))return n&&i(tS.Diagnostics.Signature_0_must_be_a_type_predicate,ca(e)),0}else!(f&=1&r&&o(u,c,!1)||o(c,u,n))&&n&&a&&a(c,u)}return f}function $_(e,t){var r=Bc(e),n=Bc(t),e=Pc(r),t=Pc(n);return(t===Ye||od(t,e,_n)||od(e,t,_n))&&0!==Z_(r,n,!0?4:0,!1,void 0,void 0,L_,void 0)}function ed(e){return e!==ft&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&!e.stringIndexInfo&&!e.numberIndexInfo}function td(e){return 524288&e.flags?!ws(e)&&ed(Is(e)):!!(67108864&e.flags)||(1048576&e.flags?tS.some(e.types,td):!!(2097152&e.flags)&&tS.every(e.types,td))}function rd(e){return!!(16&tS.getObjectFlags(e)&&(e.members&&ed(e)||e.symbol&&2048&e.symbol.flags&&0===ts(e.symbol).size))}function nd(e){return 524288&e.flags&&!ws(e)&&0===Rs(e).length&&dc(e,0)&&!dc(e,1)||3145728&e.flags&&tS.every(e.types,nd)||!1}function id(e,t,r){if(e===t)return 1;var n=fS(e)+","+fS(t),i=fn.get(n);if(void 0!==i&&(4&i||!(2&i)||!r))return 1&i;if(e.escapedName===t.escapedName&&256&e.flags&&256&t.flags){for(var a=_o(t),o=0,s=Rs(_o(e));o<s.length;o++){var c=s[o];if(8&c.flags){var u=sc(a,c.escapedName);if(!(u&&8&u.flags))return void(r?(r(tS.Diagnostics.Property_0_is_missing_in_type_1,tS.symbolName(c),ua(Ro(t),void 0,64)),fn.set(n,6)):fn.set(n,2))}}return fn.set(n,1),1}fn.set(n,6)}function ad(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===we)return 1;if(!(131072&a)){if(402653316&i&&4&a)return 1;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return 1;if(296&i&&8&a)return 1;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return 1;if(2112&i&&64&a)return 1;if(528&i&&16&a)return 1;if(12288&i&&4096&a)return 1;if(32&i&&32&a&&id(e.symbol,t.symbol,n))return 1;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&id(e.symbol,t.symbol,n))return 1;if(2944&i&&2944&a&&e.value===t.value&&id(Fi(e.symbol),Fi(t.symbol),n))return 1}if(32768&i&&(!X||49152&a))return 1;if(65536&i&&(!X||65536&a))return 1;if(524288&i&&67108864&a)return 1;if(r===_n||r===dn){if(1&i)return 1;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return 1}}}function od(e,t,r){if(Gl(e)&&(e=e.regularType),Gl(t)&&(t=t.regularType),e===t)return!0;if(r!==pn){if(r===dn&&!(131072&t.flags)&&ad(t,e,r)||ad(e,t,r))return!0}else if(!(3145728&e.flags||3145728&t.flags||e.flags===t.flags||469237760&e.flags))return!1;if(524288&e.flags&&524288&t.flags){var n=r.get(xd(e,t,0,r));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&ud(e,t,r,void 0)}function sd(e,t){return 4096&tS.getObjectFlags(e)&&!nm(t.escapedName)}function cd(e,t){for(;;){var r=Gl(e)?e.regularType:4&tS.getObjectFlags(e)&&e.node?Qc(e.target,$c(e)):3145728&e.flags?rc(e):33554432&e.flags?t?e.baseType:e.substitute:25165824&e.flags?vl(e,t):e;if(r===e)break;e=r}return e}function ud(e,t,k,f,c,r,n){var D,u,l,_,d,g,p=0,m=0,y=0,h=!1,v=0,b=[],x=!1;tS.Debug.assert(k!==pn||!f,"no error reporting in identity checking");var i,a,o=P(e,t,!!f,c);return b.length&&C(),h?(tS.tracing.instant("check","checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:m}),a=hn(f||H,tS.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,ua(e),ua(t)),n&&(n.errors||(n.errors=[])).push(a)):D&&(!r||(i=r())&&(tS.concatenateDiagnosticMessageChains(i,D),D=i),i=void 0,c&&f&&!o&&e.symbol&&((e=Pn(e.symbol)).originatingImport&&!tS.isImportCall(e.originatingImport)&&ud(_o(e.target),t,k,void 0)&&(e=tS.createDiagnosticForNode(e.originatingImport,tS.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead),i=tS.append(i,e))),a=tS.createDiagnosticForNodeFromMessageChain(f,D,i),u&&tS.addRelatedInfo.apply(void 0,__spreadArrays([a],u)),n&&(n.errors||(n.errors=[])).push(a),n&&n.skipLogging||an.add(a)),f&&n&&n.skipLogging&&0===o&&tS.Debug.assert(!!n.errors,"missed opportunity to interact with error."),0!==o;function S(e){D=e.errorInfo,g=e.lastSkippedInfo,b=e.incompatibleStack,v=e.overrideNextErrorInfo,u=e.relatedInfo}function T(){return{errorInfo:D,lastSkippedInfo:g,incompatibleStack:b.slice(),overrideNextErrorInfo:v,relatedInfo:u?u.slice():void 0}}function N(e,t,r,n,i){v++,g=void 0,b.push([e,t,r,n,i])}function C(){var e=b;b=[];var t=g;if(g=void 0,1===e.length)return A.apply(void 0,e[0]),void(t&&E.apply(void 0,__spreadArrays([void 0],t)));for(var r="",n=[];e.length;){var i=e.pop(),a=i[0],o=i.slice(1);switch(a.code){case tS.Diagnostics.Types_of_property_0_are_incompatible.code:0===r.indexOf("new ")&&(r="("+r+")");var s=""+o[0];0===r.length?r=s:tS.isIdentifierText(s,G.target)?r=r+"."+s:"["===s[0]&&"]"===s[s.length-1]?r+=s:r=r+"["+s+"]";break;case tS.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case tS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case tS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case tS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:0===r.length?((s=a).code===tS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?s=tS.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:a.code===tS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(s=tS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),n.unshift([s,o[0],o[1]])):r=(a.code===tS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||a.code===tS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+r+"("+(a.code===tS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||a.code===tS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")";break;default:return tS.Debug.fail("Unhandled Diagnostic: "+a.code)}}r?A(")"===r[r.length-1]?tS.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:tS.Diagnostics.The_types_of_0_are_incompatible_between_these_types,r):n.shift();for(var c=0,u=n;c<u.length;c++){var l=u[c],a=l[0],o=l.slice(1),l=a.elidedInCompatabilityPyramid;a.elidedInCompatabilityPyramid=!1,A.apply(void 0,__spreadArrays([a],o)),a.elidedInCompatabilityPyramid=l}t&&E.apply(void 0,__spreadArrays([void 0],t))}function A(e,t,r,n,i){tS.Debug.assert(!!f),b.length&&C(),e.elidedInCompatabilityPyramid||(D=tS.chainDiagnosticMessages(D,e,t,r,n,i))}function E(e,t,r){b.length&&C();var n=la(t,r),i=n[0],a=n[1],o=t,s=i;zd(t)&&!ld(r)&&(o=Ud(t),tS.Debug.assert(!j_(o,r),"generalized source shouldn't be assignable"),s=_a(o)),262144&r.flags&&(n=void 0,(r=Ks(r))&&(j_(o,r)||(n=j_(t,r)))?A(tS.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,a,ua(r)):A(tS.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,a,s)),A(e=e||(k===dn?tS.Diagnostics.Type_0_is_not_comparable_to_type_1:i===a?tS.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:tS.Diagnostics.Type_0_is_not_assignable_to_type_1),s,a)}function F(e,t,r){return Hd(e)?e.target.readonly&&Id(t)?void(r&&A(tS.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ua(e),ua(t))):Hd(t)||Pd(t):wd(e)&&Id(t)?void(r&&A(tS.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ua(e),ua(t))):!Hd(t)||Pd(e)}function P(u,l,_,d,e){if(void 0===_&&(_=!1),void 0===e&&(e=0),524288&u.flags&&131068&l.flags)return ad(u,l,k,_?A:void 0)?-1:(p(u,l,0,!!(4096&tS.getObjectFlags(u))),0);var t=cd(u,!1),r=cd(l,!0);if(t===r)return-1;if(k===pn)return function(e,t){var r=e.flags&t.flags;if(!(469237760&r))return 0;if(3145728&r){r=w(e,t);return r&&(r&=w(t,e)),r}return M(e,t,!1,0)}(t,r);if(262144&t.flags&&Bs(t)===r)return-1;if(1048576&r.flags&&524288&t.flags&&r.types.length<=3&&Jh(r,98304)){var n=Of(r,-98305);if(!(1179648&n.flags)){if(t===n)return-1;r=n}}if(k===dn&&!(131072&r.flags)&&ad(r,t,k)||ad(t,r,k,_?A:void 0))return-1;var i=!!(4096&tS.getObjectFlags(t)),a=!(2&e)&&Hp(t)&&32768&tS.getObjectFlags(t);if(a&&function(c,e,u){if(!Dm(e)||!Q&&16384&tS.getObjectFlags(e))return!1;var l=!!(4096&tS.getObjectFlags(c));if((k===_n||k===dn)&&(Af(Tt,e)||!l&&td(e)))return!1;var _,d=e;1048576&e.flags&&(d=eS(c,e,P)||function(e){if(Jh(e,67108864)){var t=wf(e,function(e){return!(131068&e.flags)});if(!(131072&t.flags))return t}return e}(e),_=1048576&d.flags?d.types:[d]);for(var t=function(e){if(o=e,s=c.symbol,o.valueDeclaration&&s.valueDeclaration&&o.valueDeclaration.parent===s.valueDeclaration&&!sd(c,e)){if(!xm(d,e.escapedName,l)){if(u){var t,r,n,i=wf(d,Dm);if(!f)return{value:tS.Debug.fail()};tS.isJsxAttributes(f)||tS.isJsxOpeningLikeElement(f)||tS.isJsxOpeningLikeElement(f.parent)?(e.valueDeclaration&&tS.isJsxAttribute(e.valueDeclaration)&&tS.getSourceFileOfNode(f)===tS.getSourceFileOfNode(e.valueDeclaration.name)&&(f=e.valueDeclaration.name),(r=(r=Wm(n=sa(e),i))?sa(r):void 0)?A(tS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,n,ua(i),r):A(tS.Diagnostics.Property_0_does_not_exist_on_type_1,n,ua(i))):(t=c.symbol&&tS.firstOrUndefined(c.symbol.declarations),r=void 0,e.valueDeclaration&&tS.findAncestor(e.valueDeclaration,function(e){return e===t})&&tS.getSourceFileOfNode(t)===tS.getSourceFileOfNode(f)&&(n=e.valueDeclaration,tS.Debug.assertNode(n,tS.isObjectLiteralElementLike),n=(f=n).name,tS.isIdentifier(n)&&(r=Hm(n,i))),void 0!==r?A(tS.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,sa(e),ua(i),r):A(tS.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,sa(e),ua(i)))}return{value:!0}}if(_&&!P(_o(e),(i=_,a=e.escapedName,Ku(tS.reduceLeft(i,function(e,t){var r=(3145728&(t=Ys(t)).flags?tc:Ms)(t,a),t=r&&_o(r)||Yg(a)&&pc(t,1)||pc(t,0)||Re;return tS.append(e,t)},void 0)||tS.emptyArray)),u))return u&&N(tS.Diagnostics.Types_of_property_0_are_incompatible,sa(e)),{value:!0}}var a,o,s},r=0,n=Rs(c);r<n.length;r++){var i=n[r],i=t(i);if("object"==typeof i)return i.value}return!1}(t,r,_))return _&&E(d,t,r),0;var o=k!==dn&&!(2&e)&&2752508&t.flags&&t!==Tt&&2621440&r.flags&&pd(r)&&(0<Rs(t).length||Vx(t));if(o&&!function(e,t,r){for(var n=0,i=Rs(e);n<i.length;n++){var a=i[n];if(xm(t,a.escapedName,r))return!0}return!1}(t,r,i))return _&&(c=uc(t,0),s=uc(t,1),0<c.length&&P(Pc(c[0]),r,!1)||0<s.length&&P(Pc(s[0]),r,!1)?A(tS.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ua(t),ua(r)):A(tS.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,ua(t),ua(r))),0;var s,n=0,c=T();return 1048576&t.flags?n=(k===dn?O:function(e,t,r,n){for(var i=-1,a=e.types,o=0;o<a.length;o++){var s=a[o];if(1048576&t.flags&&t.types.length===a.length){var c=P(s,t.types[o],!1,void 0,n);if(c){i&=c;continue}}s=P(s,t,r,void 0,n);if(!s)return 0;i&=s}return i})(t,r,_&&!(131068&t.flags),e):(1048576&r.flags?n=I(fp(t),r,_&&!(131068&t.flags)&&!(131068&r.flags)):2097152&r.flags?n=function(e,t,r,n){for(var i=-1,t=t.types,a=0,o=t;a<o.length;a++){var s=o[a],s=P(e,s,r,void 0,n);if(!s)return 0;i&=s}return i}(fp(t),r,_,2):2097152&t.flags&&(n=O(t,r,!1,1)),!n&&(469499904&t.flags||469499904&r.flags)&&(n=M(t,r,_,e))&&S(c)),!n&&2359296&t.flags&&((s=function(e,t){for(var r,n=!1,i=0,a=e;i<a.length;i++)if(465829888&(s=a[i]).flags){for(var o=Bs(s);o&&21233664&o.flags;)o=Bs(o);o&&(r=tS.append(r,o),t&&(r=tS.append(r,s)))}else 469892092&s.flags&&(n=!0);if(r&&(t||n)){if(n)for(var s,c=0,u=e;c<u.length;c++)469892092&(s=u[c]).flags&&(r=tS.append(r,s));return Qu(r)}}(2097152&t.flags?t.types:[t],!!(1048576&r.flags)))&&(2097152&t.flags||1048576&r.flags)&&Pf(s,function(e){return e!==t})&&(n=P(s,r,!1,void 0,e))&&S(c)),n&&!x&&(2097152&r.flags&&(a||o)||Bl(r)&&!Pd(r)&&!Hd(r)&&2097152&t.flags&&3670016&Ys(t).flags&&!tS.some(t.types,function(e){return!!(2097152&tS.getObjectFlags(e))}))&&(x=!0,n&=M(t,r,_,4),x=!1),p(t,r,n,i),n;function p(e,t,r,n){if(!r&&_){e=u.aliasSymbol?u:e,t=l.aliasSymbol?l:t;var i=0<v;if(i&&v--,524288&e.flags&&524288&t.flags&&(a=D,F(e,t,_),D!==a&&(i=!!D)),524288&e.flags&&131068&t.flags)o=t,s=da((a=e).symbol)?ua(a,a.symbol.valueDeclaration):ua(a),c=da(o.symbol)?ua(o,o.symbol.valueDeclaration):ua(o),(Ft===a&&Ue===o||Pt===a&&Ve===o||wt===a&&Xe===o||bu(!1)===a&&Qe===o)&&A(tS.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,c,s);else if(e.symbol&&524288&e.flags&&Tt===e)A(tS.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(n&&2097152&t.flags){c=t.types,s=um(uS.IntrinsicAttributes,f),n=um(uS.IntrinsicClassAttributes,f);if(s!==Ie&&n!==Ie&&(tS.contains(c,s)||tS.contains(c,n)))return r}else D=oc(D,l);if(!d&&i)return g=[e,t],r;E(d,e,t)}var a,o,s,c}}function w(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=I(i[n],t,!1);if(!a)return 0;r&=a}return r}function I(e,t,r){var n=t.types;if(1048576&t.flags&&ju(n,e))return-1;for(var i=0,a=n;i<a.length;i++){var o=P(e,a[i],!1);if(o)return o}return r&&P(e,_d(e,t,P)||n[n.length-1],!0),0}function O(e,t,r,n){var i=e.types;if(1048576&e.flags&&ju(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=P(i[o],t,r&&o===a-1,void 0,n);if(s)return s}return 0}function M(e,t,r,n){if(h)return 0;var i=xd(e,t,n|(x?8:0),k),a=k.get(i);if(void 0!==a&&(!(r&&2&a)||4&a))return dr&&(8&(s=24&a)&&C_(e,c_(L)),16&s&&C_(e,c_(R))),1&a?-1:0;if(l){for(var o=0;o<p;o++)if(i===l[o])return 3;if(100===m)return h=!0,0}else l=[],_=[],d=[];var s=p;l[p]=i,p++,_[m]=e,d[m]=t,m++;var c,a=y;1&y||!Cd(e,_,m)||(y|=1),2&y||!Cd(t,d,m)||(y|=2);var u=0;dr&&(c=dr,dr=function(e){return u|=e?16:8,c(e)}),3===y&&tS.tracing.instant("check","recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:_.map(function(e){return e.id}),targetId:t.id,targetIdStack:d.map(function(e){return e.id}),depth:m});n=3!==y?function(e,t,r,n){tS.tracing.push("check","structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id});n=function(e,r,i,t){if(4&t)return z(e,r,i,void 0,0);var a,o,n=e.flags&r.flags;if(k===pn&&!(524288&n)){if(4194304&n)return P(e.type,r.type,!1);var s=0;return 8388608&n&&(s=P(e.objectType,r.objectType,!1))&&(s&=P(e.indexType,r.indexType,!1))?s:16777216&n&&e.root.isDistributive===r.root.isDistributive&&(s=P(e.checkType,r.checkType,!1))&&(s&=P(e.extendsType,r.extendsType,!1))&&(s&=P(Fl(e),Fl(r),!1))&&(s&=P(Pl(e),Pl(r),!1))?s:33554432&n?P(e.substitute,r.substitute,!1):0}var c=!1,u=T();if(17301504&e.flags&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===r.aliasSymbol&&!e.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){if((v=gd(e.aliasSymbol))===tS.emptyArray)return 1;if(void 0!==(b=x(e.aliasTypeArguments,r.aliasTypeArguments,v,t)))return b}if(Xd(e)&&!e.target.readonly&&(a=P($c(e)[0],r))||Xd(r)&&(r.target.readonly||Id(Ks(e)||e))&&(a=P(e,$c(r)[0])))return a;if(262144&r.flags){if(32&tS.getObjectFlags(e)&&!e.declaration.nameType&&P(il(r),Ss(e))&&!(4&As(e))){var l=Cs(e),_=Sl(r,Ds(e));if(a=P(l,_,i))return a}}else if(4194304&r.flags){n=r.type;if(4194304&e.flags&&(a=P(n,e.type,!1)))return a;if(Hd(n)){if(a=P(e,Ru(n),i))return a}else{var d=Js(n);if(d&&-1===P(e,il(d,r.stringsOnly),i))return-1}}else if(8388608&r.flags){if(k===_n||k===dn){var p=r.objectType,f=r.indexType,g=Ks(p)||p,f=Ks(f)||f;if(!ml(g)&&!yl(f)){var m=2|(g!==p?1:0);if((d=Cl(g,f,r.noUncheckedIndexedAccessCandidate,void 0,m))&&(a=P(e,d,i)))return a}}}else if(ws(r)&&!r.declaration.nameType){p=Cs(r),g=As(r);if(!(8&g)){if(8388608&p.flags&&p.objectType===e&&p.indexType===Ds(r))return-1;if(!ws(e)){f=Ss(r),m=il(e,void 0,!0),p=4&g,g=p?ps(f,m):void 0;if(p?!(131072&g.flags):P(f,m)){l=Cs(r),f=Ds(r),m=Of(l,-98305);if(8388608&m.flags&&m.indexType===f){if(a=P(e,m.objectType,i))return a}else{f=g?Qu([g,f]):f,_=Sl(e,f);if(a=P(_,l,i))return a}}o=D,S(u)}}}else if(134217728&r.flags&&128&e.flags&&gl(r)){var y=Vp(e,r);if(y&&tS.every(y,function(e,t){return function t(r,e){if(1048576&e.flags)return!!Ff(e,function(e){return t(r,e)});switch(e){case Ue:return!0;case Ve:return""!==r.value&&isFinite(+r.value);case Ke:return""!==r.value&&Up(r.value);case He:return"true"===r.value;case qe:return"false"===r.value;case Re:return"undefined"===r.value;case Je:return"null"===r.value;default:return!!(1&e.flags)}}(e,r.types[t])}))return-1}if(8650752&e.flags)if(8388608&e.flags&&8388608&r.flags){if((a=P(e.objectType,r.objectType,i))&&(a&=P(e.indexType,r.indexType,i)),a)return S(u),a}else if(!(d=Bs(e))||262144&e.flags&&1&d.flags){if(a=P(lt,Of(r,-67108865)))return S(u),a}else{if(a=P(d,r,!1,void 0,t))return S(u),a;if(a=P(ns(d,e),r,i,void 0,t))return S(u),a}else if(4194304&e.flags){if(a=P(at,r,i))return S(u),a}else if(134217728&e.flags){if(134217728&r.flags&&e.texts.length===r.texts.length&&e.types.length===r.types.length&&tS.every(e.texts,function(e,t){return e===r.texts[t]})&&tS.every(C_(e,c_(R)).types,function(e,t){return!!(5&r.types[t].flags)||!!P(e,r.types[t],!1)}))return-1;if((d=Ks(e))&&d!==e&&(a=P(d,r,i)))return S(u),a}else if(268435456&e.flags){if(268435456&r.flags&&e.symbol===r.symbol){if(a=P(e.type,r.type,i))return S(u),a}else if((d=Ks(e))&&(a=P(d,r,i)))return S(u),a}else if(16777216&e.flags){if(16777216&r.flags){l=e.root.inferTypeParameters,y=e.extendsType,d=void 0;if(l&&(Kp((l=Tp(l,void 0,0,P)).inferences,r.extendsType,y,768),y=C_(y,l.mapper),d=l.mapper),O_(y,r.extendsType)&&(P(e.checkType,r.checkType)||P(r.checkType,e.checkType))&&((a=P(C_(Fl(e),d),Fl(r),i))&&(a&=P(Pl(e),Pl(r),i)),a))return S(u),a}else{var h=Us(e);if(h&&(a=P(h,r,i)))return S(u),a}h=zs(e);if(h&&(a=P(h,r,i)))return S(u),a}else{if(k!==un&&k!==ln&&function(e){return 32&tS.getObjectFlags(e)&&4&As(e)}(r)&&td(e))return-1;if(ws(r))return ws(e)&&(a=function(e,t,r){if(k===dn||(k===pn?As(e)===As(t):Ps(e)<=Ps(t))){var n=Ss(t),i=C_(Ss(e),c_(Ps(e)<0?L:R));if(n=P(n,i,r)){i=a_([Ds(e)],[Ds(t)]);if(C_(Ts(e),i)===C_(Ts(t),i))return n&P(C_(Cs(e),i),Cs(t),r)}}return 0}(e,r,i))?(S(u),a):0;var v,h=!!(131068&e.flags);if(k!==pn)e=Ys(e);else if(ws(e))return 0;if(4&tS.getObjectFlags(e)&&4&tS.getObjectFlags(r)&&e.target===r.target&&!(8192&tS.getObjectFlags(e)||8192&tS.getObjectFlags(r))){if((v=yd(e.target))===tS.emptyArray)return 1;if(void 0!==(b=x($c(e),$c(r),v,t)))return b}else{if(wd(r)?Pd(e)||Hd(e):Pd(r)&&Hd(e)&&!e.target.readonly)return k!==pn?P(pc(e,1)||Fe,pc(r,1)||Fe,i):0;if((k===un||k===ln)&&td(r)&&32768&tS.getObjectFlags(r)&&!td(e))return 0}if(2621440&e.flags&&524288&r.flags){var b=i&&D===u.errorInfo&&!h;if((a=z(e,r,b,void 0,t))&&(a&=U(e,r,0,b))&&(a&=U(e,r,1,b))&&(a&=W(e,r,0,h,b,t))&&(a&=W(e,r,1,h,b,t)),c&&a)D=o||D||u.errorInfo;else if(a)return a}if(2621440&e.flags&&1048576&r.flags){t=Of(r,36175872);if(1048576&t.flags){t=function(s,c){var u=uf(Rs(s),c);if(!u)return 0;for(var e=1,t=0,r=u;t<r.length;t++){var n=r[t];if(25<(e*=function(e){return 1048576&e.flags?e.types.length:1}(_o(n))))return tS.tracing.instant("check","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:s.id,targetId:c.id,numCombinations:e}),0}for(var i=new Array(u.length),a=new tS.Set,o=0;o<u.length;o++){var l=_o(n=u[o]);i[o]=1048576&l.flags?l.types:[l],a.add(n.escapedName)}for(var _=tS.cartesianProduct(i),d=[],p=function(n){var e=!1;e:for(var t=0,r=c.types;t<r.length;t++){for(var i=r[t],a=0;a<u.length;a++){var o=function(t){var e=u[t],r=sc(i,e.escapedName);return r?e===r?"continue":j(s,c,e,r,function(e){return n[t]},!1,0,X||k===dn)?void 0:"continue-outer":"continue-outer"}(a);if("continue-outer"===o)continue e}tS.pushIfUnique(d,i,tS.equateValues),e=!0}if(!e)return{value:0}},f=0,g=_;f<g.length;f++){var m=g[f],m=p(m);if("object"==typeof m)return m.value}for(var y=-1,h=0,v=d;h<v.length;h++){var b=v[h];if((y&=z(s,b,!1,a,0))&&(y&=U(s,b,0,!1))&&(y&=U(s,b,1,!1))&&(!(y&=W(s,b,0,!1,!1,0))||Hd(s)&&Hd(b)||(y&=W(s,b,1,!1,!1,0))),!y)return y}return y}(e,t);if(t)return t}}}return 0;function x(e,t,r,n){if(a=function(e,t,r,n,i){if(void 0===e&&(e=tS.emptyArray),void 0===t&&(t=tS.emptyArray),void 0===r&&(r=tS.emptyArray),e.length!==t.length&&k===pn)return 0;for(var a=(e.length<=t.length?e:t).length,o=-1,s=0;s<a;s++){var c=s<r.length?r[s]:1,u=7&c;if(4!=u){var l=e[s],_=t[s],d=-1;if(8&c?d=k===pn?P(l,_,!1):M_(l,_):1==u?d=P(l,_,n,void 0,i):2==u?d=P(_,l,n,void 0,i):3==u?d=(d=P(_,l,!1))||P(l,_,n,void 0,i):(d=P(l,_,n,void 0,i))&&(d&=P(_,l,n,void 0,i)),!d)return 0;o&=d}}return o}(e,t,r,i,n))return a;if(tS.some(r,function(e){return!!(24&e)}))return o=void 0,void S(u);t=t&&function(e,t){for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1}(t,r);if(c=!t,r!==tS.emptyArray&&!t){if(c&&(!i||!tS.some(r,function(e){return 0==(7&e)})))return 0;o=D,S(u)}}}(e,t,r,n);return tS.tracing.pop(),n}(e,t,r,n):3;if(dr=dr&&c,y=a,m--,n){if(-1===n||0===m){if(-1===n||3===n)for(o=s;o<p;o++)k.set(l[o],1|u);p=s}}else k.set(i,2|(r?4:0)|u),p=s;return n}function L(e){return!dr||e!==ht&&e!==vt&&e!==pr||dr(!1),e}function R(e){return!dr||e!==ht&&e!==vt&&e!==pr||dr(!0),e}function B(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r=r||e.slice(0,n):r&&r.push(e[n]);return r||e}function j(e,t,r,n,i,a,o,s){var c,u=tS.getDeclarationModifierFlagsFromSymbol(r),l=tS.getDeclarationModifierFlagsFromSymbol(n);if(8&u||8&l){if(r.valueDeclaration!==n.valueDeclaration)return a&&(8&u&&8&l?A(tS.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,sa(n)):A(tS.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,sa(n),ua(8&u?e:t),ua(8&u?t:e))),0}else if(16&l){if(c=r,Dd(n,function(e){return!!(16&tS.getDeclarationModifierFlagsFromSymbol(e))&&(t=c,r=Sd(e),!Dd(t,function(e){e=Sd(e);return!!e&&go(e,r)}));var t,r}))return a&&A(tS.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,sa(n),ua(Sd(r)||e),ua(Sd(n)||t)),0}else if(16&u)return a&&A(tS.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,sa(n),ua(e),ua(t)),0;o=function(e,t,r,n,i){var a=X&&!!(48&tS.getCheckFlags(t)),o=r(e);if(65536&tS.getCheckFlags(t)&&!Pn(t).type){e=Pn(t);tS.Debug.assertIsDefined(e.deferralParent),tS.Debug.assertIsDefined(e.deferralConstituents);for(var s=!!(1048576&e.deferralParent.flags),c=s?0:-1,u=0,l=e.deferralConstituents;u<l.length;u++){var _=P(o,l[u],!1,void 0,s?0:2);if(s){if(_)return _}else{if(!_)return P(o,Ra(_o(t),a),n);c&=_}}return s&&!c&&a&&(c=P(o,Re)),s&&!c&&n?P(o,Ra(_o(t),a),n):c}return P(o,Ra(_o(t),a),n,void 0,i)}(r,n,i,a,o);return o?s||!(16777216&r.flags)||16777216&n.flags?o:(a&&A(tS.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,sa(n),ua(e),ua(t)),0):(a&&N(tS.Diagnostics.Types_of_property_0_are_incompatible,sa(n)),0)}function J(e,t,r,n){var i=!1;if(r.valueDeclaration&&tS.isNamedDeclaration(r.valueDeclaration)&&tS.isPrivateIdentifier(r.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){var a=r.valueDeclaration.name.escapedText,o=tS.getSymbolNameForPrivateIdentifier(e.symbol,a);if(o&&sc(e,o)){var o=tS.factory.getDeclarationName(e.symbol.valueDeclaration),s=tS.factory.getDeclarationName(t.symbol.valueDeclaration);return void A(tS.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,jn(a),jn(""===o.escapedText?nS:o),jn(""===s.escapedText?nS:s))}}s=tS.arrayFrom(Rp(e,t,n,!1));c&&(c.code===tS.Diagnostics.Class_0_incorrectly_implements_interface_1.code||c.code===tS.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)||(i=!0),1===s.length?(n=sa(r),A.apply(void 0,__spreadArrays([tS.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,n],la(e,t))),tS.length(r.declarations)&&(n=tS.createDiagnosticForNode(r.declarations[0],tS.Diagnostics._0_is_declared_here,n),tS.Debug.assert(!!D),u?u.push(n):u=[n]),i&&D&&v++):F(e,t,!1)&&(5<s.length?A(tS.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ua(e),ua(t),tS.map(s.slice(0,4),function(e){return sa(e)}).join(", "),s.length-4):A(tS.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ua(e),ua(t),tS.map(s,function(e){return sa(e)}).join(", ")),i&&D&&v++)}function z(e,t,r,n,i){if(k===pn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;e=B(Os(e),r),r=B(Os(t),r);if(e.length!==r.length)return 0;for(var n=-1,i=0,a=e;i<a.length;i++){var o=a[i],s=Ms(t,o.escapedName);if(!s)return 0;s=Nd(o,s,P);if(!s)return 0;n&=s}return n}(e,t,n);var a=-1;if(Hd(t)){if(Pd(e)||Hd(e)){if(!t.target.readonly&&(wd(e)||Hd(e)&&e.target.readonly))return 0;var o=eu(e),s=eu(t),c=Hd(e)?4&e.target.combinedFlags:4,u=4&t.target.combinedFlags,l=Hd(e)?e.target.minLength:0,_=t.target.minLength;if(!c&&o<_)return r&&A(tS.Diagnostics.Source_has_0_element_s_but_target_requires_1,o,_),0;if(!u&&s<l)return r&&A(tS.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,l,s),0;if(!u&&c)return r&&(l<_?A(tS.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,_):A(tS.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,s)),0;for(var d=Math.max(o,s),p=0;p<d;p++){var f=p<s?t.target.elementFlags[p]:u,g=Hd(e)&&p<o?e.target.elementFlags[p]:c,m=!!n;if(g&&f){if(8&f&&!(8&g)||8&g&&!(12&f))return r&&A(tS.Diagnostics.Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other,p),0;if(1&f&&!(1&g))return r&&A(tS.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,p,ua(e),ua(t)),0;if(!(m&&((12&g||12&f)&&(m=!1),m&&null!=n&&n.has(""+p)))){var y=$c(e)[Math.min(p,o-1)],m=$c(t)[Math.min(p,s-1)];if(!(T=P(y,8&g&&4&f?ku(m):m,r,void 0,i)))return r&&N(tS.Diagnostics.Types_of_property_0_are_incompatible,p),0;a&=T}}}return a}if(12&t.target.combinedFlags)return 0}l=!(k!==un&&k!==ln||Hp(e)||Ld(e)||Hd(e)),_=Bp(e,t,l,!1);if(_)return r&&J(e,t,_,l),0;if(Hp(t))for(var h=0,v=B(Rs(e),n);h<v.length;h++){var b=v[h];if(!Ms(t,b.escapedName))if((y=_o(b))!==Re&&y!==Be&&y!==je)return r&&A(tS.Diagnostics.Property_0_does_not_exist_on_type_1,sa(b),ua(t)),0}for(var l=Rs(t),x=Hd(e)&&Hd(t),D=0,S=B(l,n);D<S.length;D++){var T,C=S[D],E=C.escapedName;if(!(4194304&C.flags)&&(!x||Yg(E)||"length"===E))if((b=sc(e,E))&&b!==C){if(!(T=j(e,t,b,C,_o,r,i,k===dn)))return 0;a&=T}}return a}function U(e,t,r,n){if(k===pn)return function(e,t,r){var n=uc(e,r),i=uc(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=Ad(n[o],i[o],!1,!1,!1,P);if(!s)return 0;a&=s}return a}(e,t,r);if(t===ft||e===ft)return-1;var i=e.symbol&&Wy(e.symbol.valueDeclaration),a=t.symbol&&Wy(t.symbol.valueDeclaration),o=uc(e,i&&1===r?0:r),s=uc(t,a&&1===r?0:r);if(1===r&&o.length&&s.length){if(tS.isAbstractConstructorType(e)&&!tS.isAbstractConstructorType(t))return n&&A(tS.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,r){if(!e.declaration||!t.declaration)return!0;e=tS.getSelectedEffectiveModifierFlags(e.declaration,24),t=tS.getSelectedEffectiveModifierFlags(t.declaration,24);if(8===t)return!0;if(16===t&&8!==e)return!0;if(16!==t&&!e)return!0;r&&A(tS.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ma(e),ma(t));return!1}(o[0],s[0],n))return 0}var c=-1,u=T(),l=1===r?K:V,_=tS.getObjectFlags(e),d=tS.getObjectFlags(t);if(64&_&&64&d&&e.symbol===t.symbol)for(var p=0;p<s.length;p++){if(!(x=q(o[p],s[p],!0,n,l(o[p],s[p]))))return 0;c&=x}else if(1===o.length&&1===s.length){i=k===dn||!!G.noStrictGenericChecks,a=tS.first(o),t=tS.first(s);if(!(c=q(a,t,i,n,l(a,t)))&&n&&1===r&&_&d&&(166===(null===(d=t.declaration)||void 0===d?void 0:d.kind)||166===(null===(f=a.declaration)||void 0===f?void 0:f.kind))){var f=function(e){return ca(e,void 0,262144,r)};return A(tS.Diagnostics.Type_0_is_not_assignable_to_type_1,f(a),f(t)),A(tS.Diagnostics.Types_of_construct_signatures_are_incompatible),c}}else e:for(var g=0,m=s;g<m.length;g++){for(var y=m[g],h=n,v=0,b=o;v<b.length;v++){var x,D=b[v];if(x=q(D,y,!0,h,l(D,y))){c&=x,S(u);continue e}h=!1}return h&&A(tS.Diagnostics.Type_0_provides_no_match_for_the_signature_1,ua(e),ca(y,void 0,void 0,r)),0}return c}function V(e,t){return 0===e.parameters.length&&0===t.parameters.length?function(e,t){return N(tS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ua(e),ua(t))}:function(e,t){return N(tS.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,ua(e),ua(t))}}function K(e,t){return 0===e.parameters.length&&0===t.parameters.length?function(e,t){return N(tS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ua(e),ua(t))}:function(e,t){return N(tS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,ua(e),ua(t))}}function q(e,t,r,n,i){return Z_(r?Bc(e):e,r?Bc(t):t,k===ln?8:0,n,A,i,P,c_(R))}function s(e,t,r){t=P(e,t,r);return!t&&r&&A(tS.Diagnostics.Index_signatures_are_incompatible),t}function W(e,t,r,n,i,a){if(k===pn)return function(e,t,r){t=dc(t,r),r=dc(e,r);if(!r&&!t)return-1;if(r&&t&&r.isReadonly===t.isReadonly)return P(r.type,t.type);return 0}(e,t,r);var o=pc(t,r);if(!o||1&o.flags&&!n)return-1;if(ws(e))return pc(t,0)?P(Cs(e),o,i):0;t=pc(e,r)||1===r&&pc(e,0);if(t)return s(t,o,i);if(1&a||!dp(e))return i&&A(tS.Diagnostics.Index_signature_is_missing_in_type_0,ua(e)),0;a=function(e,t,r,n){for(var i=-1,a=0,o=(2097152&e.flags?Ls:Os)(e);a<o.length;a++){var s=o[a];if(!sd(e,s)){var c=Pn(s).nameType;if(!(c&&8192&c.flags)&&(0===r||Yg(s.escapedName))){c=P(_o(s),t,n);if(!c)return n&&A(tS.Diagnostics.Property_0_is_incompatible_with_index_signature,sa(s)),0;i&=c}}}return i}(e,o,r,i);return!a||0!==r||(e=pc(e,1))&&(a&=s(e,o,i)),a}}function ld(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!tS.forEach(e.types,ld);if(465829888&e.flags){var t=Bs(e);if(t&&t!==e)return ld(t)}return Jd(e)||!!(134217728&e.flags)}function _d(e,t,r){return void 0===r&&(r=L_),eS(e,t,r,!0)||function(r,e){var n=tS.getObjectFlags(r);if(20&n&&1048576&e.flags)return tS.find(e.types,function(e){if(524288&e.flags){var t=n&tS.getObjectFlags(e);if(4&t)return r.target===e.target;if(16&t)return!!r.aliasSymbol&&r.aliasSymbol===e.aliasSymbol}return!1})}(e,t)||function(e,t){if(128&tS.getObjectFlags(e)&&Ff(t,Md))return tS.find(t.types,function(e){return!Md(e)})}(e,t)||function(e,t){var r=0;if(0<uc(e,r).length||0<uc(e,r=1).length)return tS.find(t.types,function(e){return 0<uc(e,r).length})}(e,t)||function(e,t){for(var r,n=0,i=0,a=t.types;i<a.length;i++){var o,s=a[i],c=Qu([il(e),il(s)]);4194304&c.flags?(r=s,n=1/0):1048576&c.flags?(o=tS.length(tS.filter(c.types,Jd)),n<=o&&(r=s,n=o)):Jd(c)&&n<=1&&(r=s,n=1)}return r}(e,t)}function dd(e,t,r,n,i){for(var a=e.types.map(function(e){}),o=0,s=t;o<s.length;o++){var c=s[o],u=c[0],l=c[1],c=ec(e,l);if(!(i&&c&&16&tS.getCheckFlags(c)))for(var _=0,d=0,p=e.types;d<p.length;d++){var f=ka(p[d],l);f&&r(u(),f)?a[_]=void 0===a[_]||a[_]:a[_]=!1,_++}}var g=a.indexOf(!0);if(-1===g)return n;for(var m=a.indexOf(!0,g+1);-1!==m;){if(!O_(e.types[g],e.types[m]))return n;m=a.indexOf(!0,m+1)}return e.types[g]}function pd(e){if(524288&e.flags){var t=Is(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo&&0<t.properties.length&&tS.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&e.flags)&&tS.every(e.types,pd)}function fd(e,t,r){e=Qc(e,tS.map(e.typeParameters,function(e){return e===t?r:e}));return e.objectFlags|=8192,e}function gd(n){var i=Pn(n);return md(i.typeParameters,i,function(e,t,r){r=ru(n,n_(i.typeParameters,s_(t,r)));return r.aliasTypeArgumentsContainsMarker=!0,r})}function md(e,o,s){var t,r;void 0===e&&(e=tS.emptyArray);var c=o.variances;if(!c){tS.tracing.push("check","getVariancesWorker",{arity:e.length,id:null!==(r=null!==(t=o.id)&&void 0!==t?t:null===(r=o.declaredType)||void 0===r?void 0:r.id)&&void 0!==r?r:-1}),o.variances=tS.emptyArray,c=[];for(var n=0,i=e;n<i.length;n++)!function(e){var t=!1,r=!1,n=dr;dr=function(e){return e?r=!0:t=!0};var i=s(o,e,ht),a=s(o,e,vt);3===(a=(j_(a,i)?1:0)|(j_(i,a)?2:0))&&j_(s(o,e,pr),i)&&(a=4),dr=n,(t||r)&&(t&&(a|=8),r&&(a|=16)),c.push(a)}(i[n]);o.variances=c,tS.tracing.pop()}return c}function yd(e){return e===Nt||e===At||8&e.objectFlags?g:md(e.typeParameters,e,fd)}function hd(e){return 262144&e.flags&&!js(e)}function vd(e){return t=e,!!(4&tS.getObjectFlags(t))&&!t.node&&tS.some($c(e),function(e){return hd(e)||vd(e)});var t}function bd(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=$c(e);i<a.length;i++){var o,s=a[i];hd(s)?((o=t.indexOf(s))<0&&(o=t.length,t.push(s)),n+="="+o):r<4&&vd(s)?n+="<"+bd(s,t,r+1)+">":n+="-"+s.id}return n}function xd(e,t,r,n){n===pn&&e.id>t.id&&(i=e,e=t,t=i);var i=r?":"+r:"";if(vd(e)&&vd(t)){r=[];return bd(e,r)+","+bd(t,r)+i}return e.id+","+t.id+i}function Dd(e,t){if(!(6&tS.getCheckFlags(e)))return t(e);for(var r=0,n=e.containingType.types;r<n.length;r++){var i=sc(n[r],e.escapedName),i=i&&Dd(i,t);if(i)return i}}function Sd(e){return e.parent&&32&e.parent.flags?Ro(Fi(e)):void 0}function Td(e){var t=Sd(e),t=t&&ko(t)[0];return t&&ka(t,e.escapedName)}function Cd(e,t,r){if(5<=r){var n=Ed(e);if(n)for(var i=0,a=0;a<r;a++)if(Ed(t[a])===n&&5<=++i)return 1}}function Ed(e){if(524288&e.flags&&!Gp(e)){if(tS.getObjectFlags(e)&&e.node)return e.node;if(e.symbol&&!(16&tS.getObjectFlags(e)&&32&e.symbol.flags))return e.symbol;if(Hd(e))return e.target}if(8388608&e.flags){for(;e=e.objectType,8388608&e.flags;);return e}if(16777216&e.flags)return e.root}function kd(e,t){return 0!==Nd(e,t,M_)}function Nd(e,t,r){if(e===t)return-1;var n=24&tS.getDeclarationModifierFlagsFromSymbol(e);if(n!=(24&tS.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(n){if(ox(e)!==ox(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return Mh(e)!==Mh(t)?0:r(_o(e),_o(t))}function Ad(e,t,r,n,i,a){if(e===t)return-1;if(s=t,c=r,u=dh(o=e),l=dh(s),_=ph(o),r=ph(s),o=fh(o),s=fh(s),(u!==l||_!==r||o!==s)&&!(c&&_<=r))return 0;var o,s,c,u,l,_;if(tS.length(e.typeParameters)!==tS.length(t.typeParameters))return 0;if(t.typeParameters){for(var d=a_(e.typeParameters,t.typeParameters),p=0;p<t.typeParameters.length;p++)if(!((b=e.typeParameters[p])===(h=t.typeParameters[p])||a(C_(Wc(b),d)||Le,Wc(h)||Le)&&a(C_(Xs(b),d)||Le,Xs(h)||Le)))return 0;e=m_(e,d,!0)}var f=-1;if(!n){var g=Ac(e);if(g){var m=Ac(t);if(m){if(!(v=a(g,m)))return 0;f&=v}}}for(var y=dh(t),p=0;p<y;p++){var h,v,b=uh(e,p);if(!(v=a(h=uh(t,p),b)))return 0;f&=v}return i||(g=Fc(e),m=Fc(t),f&=g||m?(i=m,m=a,(g=g)&&i&&qu(g,i)?g.type===i.type?-1:g.type&&i.type?m(g.type,i.type):0:0):a(Pc(e),Pc(t))),f}function Fd(e){return function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t],i=Ud(n),a=a||i;if(i===n||i!==a)return}return 1}(e)?Ku(e):tS.reduceLeft(e,function(e,t){return B_(e,t)?t:e})}function Pd(e){return!!(4&tS.getObjectFlags(e))&&(e.target===Nt||e.target===At)}function wd(e){return!!(4&tS.getObjectFlags(e))&&e.target===At}function Id(e){return Pd(e)&&!wd(e)||Hd(e)&&!e.target.readonly}function Od(e){return Pd(e)?$c(e)[0]:void 0}function Md(e){return Pd(e)||!(98304&e.flags)&&j_(e,Rt)}function Ld(e){e=Pd(e)?$c(e)[0]:void 0;return e===Be||e===tt}function Rd(e){return Hd(e)||!!sc(e,"0")}function Bd(e){return Md(e)||Rd(e)}function jd(e){return!(240512&e.flags)}function Jd(e){return!!(109440&e.flags)}function zd(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||tS.every(e.types,Jd):Jd(e))}function Ud(e){return 1024&e.flags?Io(e):128&e.flags?Ue:256&e.flags?Ve:2048&e.flags?Ke:512&e.flags?Xe:1048576&e.flags?Ku(tS.sameMap(e.types,Ud)):e}function Vd(e){return 1024&e.flags&&Gl(e)?Io(e):128&e.flags&&Gl(e)?Ue:256&e.flags&&Gl(e)?Ve:2048&e.flags&&Gl(e)?Ke:512&e.flags&&Gl(e)?Xe:1048576&e.flags?Ku(tS.sameMap(e.types,Vd)):e}function Kd(e){return 8192&e.flags?Qe:1048576&e.flags?Ku(tS.sameMap(e.types,Kd)):e}function qd(e,t){return tv(e,t)||(e=Kd(Vd(e))),e}function Wd(e,t,r,n){return e&&Jd(e)&&(e=qd(e,t?Gb(r,t,n):void 0)),e}function Hd(e){return!!(4&tS.getObjectFlags(e)&&8&e.target.objectFlags)}function Gd(e){return Hd(e)&&!!(8&e.target.combinedFlags)}function Xd(e){return Gd(e)&&1===e.target.elementFlags.length}function Qd(e){return Zd(e,e.target.fixedLength)}function Yd(e){return Hd(e)?eu(e)-tS.findLastIndex(e.target.elementFlags,function(e){return!(3&e)})-1:0}function Zd(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=eu(e)-r;if(t<i){for(var a=$c(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?Sl(c,Ve):c)}return(n?Qu:Ku)(o)}}function $d(e){return"0"===e.value.base10Value}function ep(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=tp(n[r]);return t}function tp(e){return 1048576&e.flags?ep(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?$d(e)?2048:0:512&e.flags?e===qe||e===We?512:0:117724&e.flags}function rp(e){return 117632&tp(e)?wf(e,function(e){return!(117632&tp(e))}):e}function np(e){return 4&e.flags?Mr:8&e.flags?Lr:64&e.flags?Rr:e===We||e===qe||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&$d(e)?e:Ze}function ip(e,t){t=t&~e.flags&98304;return 0==t?e:Ku(32768==t?[e,Re]:65536==t?[e,Je]:[e,Re,Je])}function ap(e){return tS.Debug.assert(X),32768&e.flags?e:Ku([e,Re])}function op(e){return X?(t=e,(Bt=Bt||(yu("NonNullable",524288,void 0)||Ne))!==Ne?ru(Bt,[t]):gf(t,2097152)):e;var t}function sp(e){return X?Ku([e,je]):e}function cp(e){return e!==je}function up(e){return X?wf(e,cp):e}function lp(e,t,r){return r?(tS.isOutermostOptionalChain(t)?ap:sp)(e):e}function _p(e,t){return tS.isExpressionOfOptionalChainRoot(t)?op(e):tS.isOptionalChain(t)?up(e):e}function dp(e){return 2097152&e.flags?tS.every(e.types,dp):!(!e.symbol||0==(7040&e.symbol.flags)||Vx(e))||!!(2048&tS.getObjectFlags(e)&&dp(e.source))}function pp(e,t){var r=Dn(e.flags,e.escapedName,8&tS.getCheckFlags(e));r.declarations=e.declarations,r.parent=e.parent,r.type=t,(r.target=e).valueDeclaration&&(r.valueDeclaration=e.valueDeclaration);e=Pn(e).nameType;return e&&(r.nameType=e),r}function fp(e){if(!(Hp(e)&&32768&tS.getObjectFlags(e)))return e;var t=e.regularType;if(t)return t;var r=e,t=function(e,t){for(var r=tS.createSymbolTable(),n=0,i=Os(e);n<i.length;n++){var a=i[n],o=_o(a),s=t(o);r.set(a.escapedName,s===o?a:pp(a,s))}return r}(e,fp),t=Wi(r.symbol,t,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return t.flags=r.flags,t.objectFlags|=-32769&r.objectFlags,e.regularType=t}function gp(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function mp(e){if(!e.resolvedProperties){for(var t=new tS.Map,r=0,n=function e(t){if(!t.siblings){for(var r=[],n=0,i=e(t.parent);n<i.length;n++){var a=i[n];!Hp(a)||(a=Ms(a,t.propertyName))&&Ff(_o(a),function(e){r.push(e)})}t.siblings=r}return t.siblings}(e);r<n.length;r++){var i=n[r];if(Hp(i)&&!(1024&tS.getObjectFlags(i)))for(var a=0,o=Rs(i);a<o.length;a++){var s=o[a];t.set(s.escapedName,s)}}e.resolvedProperties=tS.arrayFrom(t.values())}return e.resolvedProperties}function yp(e,t){for(var r,n,i=tS.createSymbolTable(),a=0,o=Os(e);a<o.length;a++){var s=o[a];i.set(s.escapedName,function(e,t){if(!(4&e.flags))return e;var r=_o(e);return(t=vp(r,t&&gp(t,e.escapedName,void 0)))===r?e:pp(e,t)}(s,t))}if(t)for(var c=0,u=mp(t);c<u.length;c++){s=u[c];i.has(s.escapedName)||i.set(s.escapedName,(r=s,n=void 0,(n=ke.get(r.escapedName))||((n=pp(r,Re)).flags|=16777216,ke.set(r.escapedName,n),n)))}var l=dc(e,0),_=dc(e,1),_=Wi(e.symbol,i,tS.emptyArray,tS.emptyArray,l&&Vc(hp(l.type),l.isReadonly),_&&Vc(hp(_.type),_.isReadonly));return _.objectFlags|=2113536&tS.getObjectFlags(e),_}function hp(e){return vp(e,void 0)}function vp(e,t){if(1572864&tS.getObjectFlags(e)){if(void 0===t&&e.widened)return e.widened;var r,n,i=void 0;return 98305&e.flags?i=Fe:Hp(e)?i=yp(e,t):1048576&e.flags?(r=t||gp(void 0,void 0,e.types),i=Ku(n=tS.sameMap(e.types,function(e){return 98304&e.flags?e:vp(e,r)}),tS.some(n,td)?2:1)):2097152&e.flags?i=Qu(tS.sameMap(e.types,hp)):(Pd(e)||Hd(e))&&(i=Qc(e.target,tS.sameMap($c(e),hp))),i&&void 0===t&&(e.widened=i),i||e}return e}function bp(e,t,r){var n,i=ua(hp(t));if(!tS.isInJSFile(e)||tS.isCheckJsEnabledForFile(tS.getSourceFileOfNode(e),G)){switch(e.kind){case 216:case 163:case 162:n=Q?tS.Diagnostics.Member_0_implicitly_has_an_1_type:tS.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 160:var a=e;if(tS.isIdentifier(a.name)&&(tS.isCallSignatureDeclaration(a.parent)||tS.isMethodSignature(a.parent)||tS.isFunctionTypeNode(a.parent))&&-1<a.parent.parameters.indexOf(a)&&(Rn(a,a.name.escapedText,788968,void 0,a.name.escapedText,!0)||a.name.originalKeywordKind&&tS.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a);return void bn(Q,e,tS.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,tS.declarationNameToString(a.name))}n=e.dotDotDotToken?Q?tS.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:tS.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Q?tS.Diagnostics.Parameter_0_implicitly_has_an_1_type:tS.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 198:if(n=tS.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Q)return;break;case 308:return void hn(e,tS.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 251:case 165:case 164:case 167:case 168:case 208:case 209:if(Q&&!e.name)return void hn(e,3===r?tS.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:tS.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);n=Q?3===r?tS.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:tS.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:tS.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 190:return void(Q&&hn(e,tS.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:n=Q?tS.Diagnostics.Variable_0_implicitly_has_an_1_type:tS.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}bn(Q,e,n,tS.declarationNameToString(tS.getNameOfDeclaration(e)),i)}}function xp(e,t,r){!(M&&Q&&524288&tS.getObjectFlags(t))||r&&Kg(e)||!function e(t){var r=!1;if(524288&tS.getObjectFlags(t)){if(1048576&t.flags)if(tS.some(t.types,td))r=!0;else for(var n=0,i=t.types;n<i.length;n++)e(l=i[n])&&(r=!0);if(Pd(t)||Hd(t))for(var a=0,o=$c(t);a<o.length;a++)e(l=o[a])&&(r=!0);if(Hp(t))for(var s=0,c=Os(t);s<c.length;s++){var u=c[s],l=_o(u);524288&tS.getObjectFlags(l)&&(e(l)||hn(u.valueDeclaration,tS.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,sa(u),ua(hp(l))),r=!0)}}return r}(t)&&bp(e,t,r)}function Dp(e,t,r){var n=dh(e),i=dh(t),a=gh(e),o=gh(t),i=o?i-1:i,s=a?i:Math.min(n,i),n=Ac(e);!n||(i=Ac(t))&&r(n,i);for(var c=0;c<s;c++)r(uh(e,c),uh(t,c));o&&r(_h(e,s),o)}function Sp(e,t,r){var n=Fc(e),i=Fc(t);n&&i&&qu(n,i)&&n.type&&i.type?r(n.type,i.type):r(Pc(e),Pc(t))}function Tp(e,t,r,n){return Cp(e.map(Np),t,r,n||L_)}function Cp(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:c_(function(e){return Ep(i,e,!0)}),nonFixingMapper:c_(function(e){return Ep(i,e,!1)})};return i}function Ep(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(kp(n),a.isFixed=!0),Yp(e,i)}return t}function kp(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function Np(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Ap(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Fp(e){return e&&e.mapper}function Pp(e){var t=tS.getObjectFlags(e);if(67108864&t)return!!(134217728&t);t=!!(465829888&e.flags||524288&e.flags&&!wp(e)&&(4&t&&(e.node||tS.forEach($c(e),Pp))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||131104&t)||3145728&e.flags&&!(1024&e.flags)&&!wp(e)&&tS.some(e.types,Pp));return 3899393&e.flags&&(e.objectFlags|=67108864|(t?134217728:0)),t}function wp(e){if(e.aliasSymbol&&!e.aliasTypeArguments){e=tS.getDeclarationOfKind(e.aliasSymbol,254);return e&&tS.findAncestor(e.parent,function(e){return 297===e.kind||256!==e.kind&&"quit"})}}function Ip(e,t){return!!(e===t||3145728&e.flags&&tS.some(e.types,function(e){return Ip(e,t)})||16777216&e.flags&&(Fl(e)===t||Pl(e)===t))}function Op(e,t,r){if(!Nr){var n=e.id+","+t.id+","+r.id;if(kr.has(n))return kr.get(n);Nr=!0;r=function(e,t,r){if(!(dc(e,0)||0!==Rs(e).length&&Mp(e)))return;if(Pd(e))return ku(Lp($c(e)[0],t,r),wd(e));if(Hd(e)){var n=tS.map($c(e),function(e){return Lp(e,t,r)}),i=4&As(t)?tS.sameMap(e.target.elementFlags,function(e){return 2&e?1:e}):e.target.elementFlags;return Iu(n,i,e.target.readonly,e.target.labeledElementDeclarations)}i=zi(2064,void 0);return i.source=e,i.mappedType=t,i.constraintType=r,i}(e,t,r);return Nr=!1,kr.set(n,r),r}}function Mp(e){return!(2097152&tS.getObjectFlags(e))||Hp(e)&&tS.some(Rs(e),function(e){return Mp(_o(e))})||Hd(e)&&tS.some($c(e),Mp)}function Lp(e,t,r){r=Sl(r.type,Ds(t)),t=Cs(t),r=Np(r);return Kp([r],e,t),jp(r)||Le}function Rp(t,r,n,i){var a,o,s,c,u;return __generator(this,function(e){switch(e.label){case 0:c=Rs(r),a=0,c=c,e.label=1;case 1:return a<c.length?qo(o=c[a])||!n&&(16777216&o.flags||48&tS.getCheckFlags(o))?[3,5]:(s=sc(t,o.escapedName))?[3,3]:[4,o]:[3,6];case 2:return e.sent(),[3,5];case 3:return i?!(109440&(c=_o(o)).flags)||1&(u=_o(s)).flags||Hl(u)===Hl(c)?[3,5]:[4,o]:[3,5];case 4:e.sent(),e.label=5;case 5:return a++,[3,1];case 6:return[2]}})}function Bp(e,t,r,n){n=Rp(e,t,r,n).next();if(!n.done)return n.value}function jp(e){return e.candidates?Ku(e.candidates,2):e.contraCandidates?Qu(e.contraCandidates):void 0}function Jp(e){return!!wn(e).skipDirectInference}function zp(e){return e.symbol&&tS.some(e.symbol.declarations,Jp)}function Up(e){var t=tS.createScanner(99,!1),r=!0;t.setOnError(function(){return r=!1}),t.setText(e+"n");var n=t.scan();40===n&&(n=t.scan());var i=t.getTokenFlags();return r&&9===n&&t.getTextPos()===e.length+1&&!(512&i)}function Vp(e,t){var r=e.value,n=t.texts,i=n.length-1,e=n[0],t=n[i];if(r.startsWith(e)&&r.slice(e.length).endsWith(t)){for(var a=[],o=r.slice(e.length,r.length-t.length),s=0,c=1;c<i;c++){var u=n[c],l=0<u.length?o.indexOf(u,s):s<o.length?s+1:-1;if(l<0)return;a.push(Xl(o.slice(s,l))),s=l+u.length}return a.push(Xl(o.slice(s))),a}}function Kp(f,e,g,h,m){void 0===h&&(h=0),void 0===m&&(m=!1);var y,u,l,_,v=!1,b=1024,x=!0,d=0;function D(e,t){if(Pp(t)){if(e===we){var r=y;return y=e,D(t,t),void(y=r)}if(e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)E(e.aliasTypeArguments,t.aliasTypeArguments,gd(e.aliasSymbol));else if(e===t&&3145728&e.flags)for(var n=0,i=e.types;n<i.length;n++){var a=i[n];D(a,a)}else{if(1048576&t.flags){var o=C(1048576&e.flags?e.types:[e],t.types,qp),s=C(o[0],o[1],Wp),c=s[0];if(0===(o=s[1]).length)return;if(t=Ku(o),0===c.length)return void S(e,t,1);e=Ku(c)}else if(2097152&t.flags&&tS.some(t.types,function(e){return!!N(e)||ws(e)&&!!N(v_(e)||Ze)})){if(!(1048576&e.flags)){s=C(2097152&e.flags?e.types:[e],t.types,O_),c=s[0],o=s[1];if(0===c.length||0===o.length)return;e=Qu(c),t=Qu(o)}}else 41943040&t.flags&&(t=Nl(t));if(8650752&t.flags){if(2097152&tS.getObjectFlags(e)||e===Oe||e===$e||64&h&&(e===Pe||e===Lt)||zp(e))return;o=N(t);if(o)return o.isFixed||((void 0===o.priority||h<o.priority)&&(o.candidates=void 0,o.contraCandidates=void 0,o.topLevel=!0,o.priority=h),h===o.priority&&(p=y||e,m&&!v?tS.contains(o.contraCandidates,p)||(o.contraCandidates=tS.append(o.contraCandidates,p),kp(f)):tS.contains(o.candidates,p)||(o.candidates=tS.append(o.candidates,p),kp(f))),!(64&h)&&262144&t.flags&&o.topLevel&&!Ip(g,t)&&(o.topLevel=!1,kp(f))),void(b=Math.min(b,h));(p=vl(t,!1))!==t?T(e,p,D):8388608&t.flags&&(465829888&(o=vl(t.indexType,!1)).flags&&((o=bl(vl(t.objectType,!1),o,!1))&&o!==t&&T(e,o,D)))}if(!(4&tS.getObjectFlags(e)&&4&tS.getObjectFlags(t)&&(e.target===t.target||Pd(e)&&Pd(t)))||e.node&&t.node)if(4194304&e.flags&&4194304&t.flags)m=!m,D(e.type,t.type),m=!m;else if((zd(e)||4&e.flags)&&4194304&t.flags){_=(_=e,d=tS.createSymbolTable(),Ff(_,function(e){var t,r;128&e.flags&&((r=Dn(4,t=tS.escapeLeadingUnderscores(e.value))).type=Fe,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),d.set(t,r))}),_=4&_.flags?Vc(lt,!1):void 0,Wi(void 0,d,tS.emptyArray,tS.emptyArray,_,void 0));m=!m,S(_,t.type,128),m=!m}else if(8388608&e.flags&&8388608&t.flags)D(e.objectType,t.objectType),D(e.indexType,t.indexType);else if(268435456&e.flags&&268435456&t.flags)e.symbol===t.symbol&&D(e.type,t.type);else if(16777216&t.flags)T(e,t,F);else if(3145728&t.flags)A(e,t.types,t.flags);else if(1048576&e.flags)for(var u=0,l=e.types;u<l.length;u++)D(l[u],t);else if(134217728&t.flags)!function(e,t){for(var r=128&e.flags?Vp(e,t):134217728&e.flags&&tS.arraysEqual(e.texts,t.texts)?e.types:void 0,n=t.types,i=0;i<n.length;i++)D(r?r[i]:Ze,n[i])}(e,t);else{if(e=rc(e),!(256&h&&467927040&e.flags)){_=Ys(e);if(_!==e&&x&&!(2621440&_.flags))return x=!1,D(_,t);e=_}2621440&e.flags&&T(e,t,P)}else E($c(e),$c(t),yd(e.target));var _,d,p;25165824&e.flags&&(p=vl(e,m))!==e&&D(p,t)}}}function S(e,t,r){var n=h;h|=r,D(e,t),h=n}function T(e,t,r){var n,i,a,o,s=e.id+","+t.id,c=u&&u.get(s);b=void 0===c?((u=u||new tS.Map).set(s,-1),n=b,b=1024,i=d,a=Ed(e)||e,o=Ed(t)||t,a&&tS.contains(l,a)&&(d|=1),o&&tS.contains(_,o)&&(d|=2),3!==d?(a&&(l=l||[]).push(a),o&&(_=_||[]).push(o),r(e,t),o&&_.pop(),a&&l.pop()):b=-1,d=i,u.set(s,b),Math.min(b,n)):Math.min(b,c)}function C(e,t,r){for(var n,i,a=0,o=t;a<o.length;a++)for(var s=o[a],c=0,u=e;c<u.length;c++){var l=u[c];r(l,s)&&(D(l,s),n=tS.appendIfUnique(n,l),i=tS.appendIfUnique(i,s))}return[n?tS.filter(e,function(e){return!tS.contains(n,e)}):e,i?tS.filter(t,function(e){return!tS.contains(i,e)}):t]}function E(e,t,r){for(var n=(e.length<t.length?e:t).length,i=0;i<n;i++)(i<r.length&&2==(7&r[i])?k:D)(e[i],t[i])}function k(e,t){O||512&h?(m=!m,D(e,t),m=!m):D(e,t)}function N(e){if(8650752&e.flags)for(var t=0,r=f;t<r.length;t++){var n=r[t];if(e===n.typeParameter)return n}}function A(e,t,r){var n=0;if(1048576&r){for(var i=void 0,a=1048576&e.flags?e.types:[e],o=new Array(a.length),s=!1,c=0,u=t;c<u.length;c++)if(N(g=u[c]))i=g,n++;else for(var l=0;l<a.length;l++){var _=b;b=1024,D(a[l],g),b===h&&(o[l]=!0),s=s||-1===b,b=Math.min(b,_)}if(0===n){var d=function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],i=2097152&i.flags&&tS.find(i.types,function(e){return!!N(e)});if(!i||t&&i!==t)return;t=i}return t}(t);return void(d&&S(e,d,1))}if(1===n&&!s){d=tS.flatMap(a,function(e,t){return o[t]?void 0:e});if(d.length)return void D(Ku(d),i)}}else for(var p=0,f=t;p<f.length;p++)N(g=f[p])?n++:D(e,g);if(2097152&r?1===n:0<n)for(var g,m=0,y=t;m<y.length;m++)N(g=y[m])&&S(e,g,1)}function F(e,t){var r;16777216&e.flags?(D(e.checkType,t.checkType),D(e.extendsType,t.extendsType),D(Fl(e),Fl(t)),D(Pl(e),Pl(t))):(r=h,h|=m?32:0,A(e,[Fl(t),Pl(t)],t.flags),h=r)}function P(e,t){if(4&tS.getObjectFlags(e)&&4&tS.getObjectFlags(t)&&(e.target===t.target||Pd(e)&&Pd(t)))E($c(e),$c(t),yd(e.target));else{var r,n,i,a;if(ws(e)&&ws(t)&&(D(Ss(e),Ss(t)),D(Cs(e),Cs(t)),i=Ts(e),a=Ts(t),i&&a&&D(i,a)),32&tS.getObjectFlags(t)&&!t.declaration.nameType)if(function e(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=e(t,r,o[a])||i;return i}if(4194304&n.flags){var s=N(n.type);return!s||s.isFixed||zp(t)||(c=Op(t,r,n))&&S(c,s.typeParameter,2097152&tS.getObjectFlags(t)?8:4),!0}if(262144&n.flags){S(il(t),n,16);var c=Bs(n);return c&&e(t,r,c)?!0:(s=tS.map(Rs(t),_o),n=pc(t,0),c=(c=nl(t))&&c.type,D(Ku(tS.append(tS.append(s,n),c)),Cs(r)),!0)}return!1}(e,t,Ss(t)))return;if(n=t,!(Hd(f=e)&&Hd(n)?(i=f,!(8&(a=n).target.combinedFlags)&&a.target.minLength>i.target.minLength||!a.target.hasRestElement&&(i.target.hasRestElement||a.target.fixedLength<i.target.fixedLength)):Bp(f,n,!1,!0)&&Bp(n,f,!1,!0))){if(Pd(e)||Hd(e)){if(Hd(t)){var o=eu(e),s=eu(t),c=$c(t),u=t.target.elementFlags;if(Hd(e)&&(r=t,eu(m=e)===eu(r)&&tS.every(m.target.elementFlags,function(e,t){return(12&e)==(12&r.target.elementFlags[t])}))){for(var l=0;l<s;l++)D($c(e)[l],c[l]);return}for(var _=Hd(e)?Math.min(e.target.fixedLength,t.target.fixedLength):0,d=!Hd(e)||0<o&&4&e.target.elementFlags[o-1]?$c(e)[o-1]:void 0,p=12&t.target.combinedFlags?d?Yd(t):Math.min(Yd(e),Yd(t)):0,f=d?0:p,l=0;l<_;l++)D($c(e)[l],c[l]);if(d&&o-_==1)for(l=_;l<s-p;l++)D(8&u[l]?ku(d):d,c[l]);else{var g,m=s-_-p;2==m&&u[_]&u[_+1]&8&&Hd(e)?(g=N(c[_]))&&void 0!==g.impliedArity&&(D(Lu(e,_,f+o-g.impliedArity),c[_]),D(Lu(e,_+g.impliedArity,f),c[_+1])):1==m&&8&u[_]?(g=2&t.target.elementFlags[s-1],S(Hd(e)?Lu(e,_,f):ku(d),c[_],g?2:0)):1==m&&4&u[_]&&((f=Hd(e)?Zd(e,_,f):d)&&D(f,c[_]))}for(l=0;l<p;l++)D(d||$c(e)[o-l-1],c[s-l-1]);return}if(Pd(t))return void I(e,t)}!function(e,t){for(var t=Os(t),r=0,n=t;r<n.length;r++){var i=n[r],a=sc(e,i.escapedName);a&&D(_o(a),_o(i))}}(e,t),w(e,t,0),w(e,t,1),I(e,t)}}}function w(e,t,r){for(var n,i,a,o,s=uc(e,r),c=uc(t,r),u=s.length,l=c.length,_=u<l?u:l,d=!!(2097152&tS.getObjectFlags(e)),p=0;p<_;p++)n=function(e){var t=e.typeParameters;if(t){var r=l_(t);return m_(e,a_(t,tS.map(t,function(e){return C_(Ks(e),r)||Le})),!0)}return e}(s[u-_+p]),i=Bc(c[l-_+p]),o=void 0,(a=d)||(o=v,a=i.declaration?i.declaration.kind:0,v=v||165===a||164===a||166===a,Dp(n,i,k),v=o),!void Sp(n,i,D)}function I(e,t){var r=pc(t,0);r&&(n=pc(e,0)||fc(e,0))&&D(n,r);var n,t=pc(t,1);t&&(n=pc(e,1)||pc(e,0)||fc(e,1))&&D(n,t)}D(e,g)}function qp(e,t){return O_(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Wp(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Hp(e){return!!(128&tS.getObjectFlags(e))}function Gp(e){return!!(65664&tS.getObjectFlags(e))}function Xp(e){return 208&e.priority?Qu(e.contraCandidates):(e=e.contraCandidates,tS.reduceLeft(e,function(e,t){return B_(t,e)?t:e}))}function Qp(e,t){var r,n=function(e){if(1<e.length){var t=tS.filter(e,Gp);if(t.length){t=Ku(t,2);return tS.concatenate(tS.filter(e,function(e){return!Gp(e)}),[t])}}return e}(e.candidates),r=!!(r=js(r=e.typeParameter))&&Jh(16777216&r.flags?zs(r):r,406978556),t=!r&&e.topLevel&&(e.isFixed||!Ip(Pc(t),e.typeParameter)),n=r?tS.sameMap(n,Hl):t?tS.sameMap(n,Vd):n;return hp(208&e.priority?Ku(n,2):function(e){if(!X)return Fd(e);var t=tS.filter(e,function(e){return!(98304&e.flags)});return t.length?ip(Fd(t),98304&ep(e)):Ku(e,2)}(n))}function Yp(e,t){var r,n,i,a,o,s=e.inferences[t];return s.inferredType||(n=void 0,(r=e.signature)?(i=s.candidates?Qp(s,r):void 0,s.contraCandidates?(r=Xp(s),n=!i||131072&i.flags||!B_(i,r)?r:i):i?n=i:1&e.flags?n=$e:(i=Xs(s.typeParameter))&&(n=C_(i,d_((o=t,c_(function(t){return tS.findIndex(a.inferences,function(e){return e.typeParameter===t})>=o?Le:t})),(a=e).nonFixingMapper)))):n=jp(s),s.inferredType=n||Zp(!!(2&e.flags)),(t=js(s.typeParameter))&&(t=C_(t,e.nonFixingMapper),n&&e.compareTypes(n,ns(t,n))||(s.inferredType=n=t))),s.inferredType}function Zp(e){return e?Fe:Le}function $p(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Yp(e,r));return t}function ef(e){switch(e.escapedText){case"document":case"console":return tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return G.types?tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return G.types?tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return G.types?tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return tS.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return 289===e.parent.kind?tS.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:tS.Diagnostics.Cannot_find_name_0}}function tf(e){var t=wn(e);return t.resolvedSymbol||(t.resolvedSymbol=!tS.nodeIsMissing(e)&&Rn(e,e.escapedText,1160127,ef(e),e,!tS.isWriteOnlyAccess(e),!1,tS.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||Ne),t.resolvedSymbol}function rf(e){return!!tS.findAncestor(e,function(e){return 176===e.kind||78!==e.kind&&157!==e.kind&&"quit"})}function nf(e,t){switch(t.kind){case 207:case 225:return nf(e,t.expression);case 216:return tS.isAssignmentExpression(t)&&nf(e,t.left)||tS.isBinaryExpression(t)&&27===t.operatorToken.kind&&nf(e,t.right)}switch(e.kind){case 78:case 79:return 78===t.kind&&tf(e)===tf(t)||(249===t.kind||198===t.kind)&&Mi(tf(e))===Ai(t);case 107:return 107===t.kind;case 105:return 105===t.kind;case 225:case 207:return nf(e.expression,t);case 201:case 202:return tS.isAccessExpression(t)&&af(e)===af(t)&&nf(e.expression,t.expression)}return!1}function af(e){return 201===e.kind?e.name.escapedText:tS.isStringOrNumericLiteralLike(e.argumentExpression)?tS.escapeLeadingUnderscores(e.argumentExpression.text):void 0}function of(e,t){for(;tS.isAccessExpression(e);)if(nf(e=e.expression,t))return!0;return!1}function sf(e,t){for(;tS.isOptionalChain(e);)if(nf(e=e.expression,t))return 1}function cf(e,t){if(e&&1048576&e.flags){t=ec(e,t);if(t&&2&tS.getCheckFlags(t))return void 0===t.isDiscriminantProperty&&(t.isDiscriminantProperty=192==(192&t.checkFlags)&&!Jh(_o(t),465829888)),!!t.isDiscriminantProperty}return!1}function uf(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];cf(t,a.escapedName)&&(r?r.push(a):r=[a])}return r}function lf(e,t){return nf(e,t)||of(e,t)}function _f(e){return(!e.id||e.id<0)&&(e.id=aS,aS++),e.id}function df(e,t){if(e!==t){if(131072&t.flags)return t;var r=wf(e,function(e){return function(e,t){if(!(1048576&e.flags))return j_(e,t);for(var r=0,n=e.types;r<n.length;r++)if(j_(n[r],t))return!0;return!1}(t,e)});if(512&t.flags&&Gl(t)&&(r=If(r,Wl)),j_(t,r))return r}return e}function pf(e){var t=Is(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&B_(e,Ct))}function ff(e){var t=e.flags;if(4&t)return X?16317953:16776705;if(128&t){var r=""===e.value;return X?r?12123649:7929345:r?12582401:16776705}if(40&t)return X?16317698:16776450;if(256&t){var n=0===e.value;return X?n?12123394:7929090:n?12582146:16776450}if(64&t)return X?16317188:16775940;if(2048&t){n=$d(e);return X?n?12122884:7928580:n?12581636:16775940}return 16&t?X?16316168:16774920:528&t?X?e===qe||e===We?12121864:7927560:e===qe||e===We?12580616:16774920:524288&t?16&tS.getObjectFlags(e)&&td(e)?X?16318463:16777215:pf(e)?X?7880640:16728e3:X?7888800:16736160:49152&t?9830144:65536&t?9363232:12288&t?X?7925520:16772880:67108864&t?X?7888800:16736160:131072&t?0:465829888&t?ff(Ks(e)||Le):3145728&t?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=ff(n[r]);return t}(e.types):16777215}function gf(e,t){return wf(e,function(e){return 0!=(ff(e)&t)})}function mf(e,t){if(t){t=_v(t);return Ku([gf(e,524288),t])}return e}function yf(e,t){var r=el(t);if(!Ho(r))return Ie;r=Zo(r);return ag(ka(e,r),t)||Yg(r)&&vf(pc(e,1))||vf(pc(e,0))||Ie}function hf(e,t){return Pf(e,Rd)&&(ka(r=e,""+t)||(Pf(r,Hd)?If(r,function(e){return Qd(e)||Re}):void 0))||vf(Eb(65,e,Re,void 0))||Ie;var r}function vf(e){return e&&(G.noUncheckedIndexedAccess?Ku([e,Re]):e)}function bf(e){return ku(Eb(65,e,Re,void 0)||Ie)}function xf(e){return 216===e.parent.kind&&e.parent.left===e||239===e.parent.kind&&e.parent.initializer===e}function Df(e){return yf(Sf(e.parent),e.name)}function Sf(e){var t,r,n=e.parent;switch(n.kind){case 238:return Ue;case 239:return Cb(n)||Ie;case 216:return 199===(r=n).parent.kind&&xf(r.parent)||288===r.parent.kind&&xf(r.parent.parent)?mf(Sf(r),r.right):_v(r.right);case 210:return Re;case 199:return t=e,hf(Sf(r=n),r.elements.indexOf(t));case 220:return bf(Sf(n.parent));case 288:return Df(n);case 289:return mf(Df(t=n),t.objectAssignmentInitializer)}return Ie}function Tf(e){return wn(e).resolvedType||_v(e)}function Cf(e){return 249===e.kind?(r=e).initializer?Tf(r.initializer):238===r.parent.parent.kind?Ue:239===r.parent.parent.kind&&Cb(r.parent.parent)||Ie:(r=(t=e).parent,e=Cf(r.parent),mf(196===r.kind?yf(e,t.propertyName||t.name):t.dotDotDotToken?bf(e):hf(e,r.elements.indexOf(t)),t.initializer));var t,r}function Ef(e){switch(e.kind){case 207:return Ef(e.expression);case 216:switch(e.operatorToken.kind){case 62:case 74:case 75:case 76:return Ef(e.left);case 27:return Ef(e.right)}}return e}function kf(e){var t=wn(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(284===(i=i).kind?Hl(_v(i.expression)):Ze)}}return t.switchTypes}function Nf(e,t){for(var r=[],n=0,i=e.caseBlock.clauses;n<i.length;n++){var a=i[n];if(284===a.kind){if(tS.isStringLiteralLike(a.expression)){r.push(a.expression.text);continue}return tS.emptyArray}t&&r.push(void 0)}return r}function Af(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!ju(t.types,i))return}return 1}if(1024&e.flags&&Io(e)===t)return 1;return ju(t.types,e)}(e,t)}function Ff(e,t){return 1048576&e.flags?tS.forEach(e.types,t):t(e)}function Pf(e,t){return 1048576&e.flags?tS.every(e.types,t):t(e)}function wf(e,t){if(1048576&e.flags){var r=e.types,n=tS.filter(r,t);return n===r?e:Wu(n,e.objectFlags)}return 131072&e.flags||t(e)?e:Ze}function If(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=0,a=e.types;i<a.length;i++){var o=t(a[i]);o&&(n?n.push(o):n=[o])}return n&&Ku(n,r?0:1)}function Of(e,t){return wf(e,function(e){return 0!=(e.flags&t)})}function Mf(e,t){return Af(Ue,e)&&Jh(t,128)||Af(Ve,e)&&Jh(t,256)||Af(Ke,e)&&Jh(t,2048)?If(e,function(e){return 4&e.flags?Of(t,132):8&e.flags?Of(t,264):64&e.flags?Of(t,2112):e}):e}function Lf(e){return 0===e.flags}function Rf(e){return 0===e.flags?e.type:e}function Bf(e,t){return t?{flags:0,type:131072&e.flags?$e:e}:e}function jf(e){return Ee[e.id]||(Ee[e.id]=(t=e,(e=zi(256)).elementType=t,e));var t}function Jf(e,t){t=fp(Ud(pv(t)));return Af(t,e.elementType)?e:jf(Ku([e.elementType,t]))}function zf(e){return e.finalArrayType||(e.finalArrayType=131072&(e=e.elementType).flags?Lt:ku(1048576&e.flags?Ku(e.types,2):e))}function Uf(e){return 256&tS.getObjectFlags(e)?zf(e):e}function Vf(e){return 256&tS.getObjectFlags(e)?e.elementType:Ze}function Kf(e,t){return function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var i=n[r];if(!(131072&i.flags)){if(!(256&tS.getObjectFlags(i)))return;t=!0}}return t}(e)?jf(Ku(tS.map(e,Vf))):Ku(tS.sameMap(e,Uf),t)}function qf(e){var t=function e(t){var r=t.parent;return 207===r.kind||216===r.kind&&62===r.operatorToken.kind&&r.left===t||216===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(e),r=t.parent,e=tS.isPropertyAccessExpression(r)&&("length"===r.name.escapedText||203===r.parent.kind&&tS.isIdentifier(r.name)&&tS.isPushOrUnshiftIdentifier(r.name)),r=202===r.kind&&r.expression===t&&216===r.parent.kind&&62===r.parent.operatorToken.kind&&r.parent.left===r&&!tS.isAssignmentTarget(r.parent)&&zh(_v(r.argumentExpression),296);return e||r}function Wf(e,t){if(8752&e.flags)return _o(e);if(7&e.flags){if(262144&tS.getCheckFlags(e)){var r=e.syntheticOrigin;if(r&&Wf(r))return _o(e)}var n=e.valueDeclaration;if(n){if((249===(i=n).kind||160===i.kind||163===i.kind||162===i.kind)&&tS.getEffectiveTypeAnnotationNode(i))return _o(e);if(tS.isVariableDeclaration(n)&&239===n.parent.parent.kind){r=n.parent.parent,i=Hf(r.expression,void 0);if(i)return Eb(r.awaitModifier?15:13,i,Re,void 0)}t&&tS.addRelatedInfo(t,tS.createDiagnosticForNode(n,tS.Diagnostics._0_needs_an_explicit_type_annotation,sa(e)))}}var i}function Hf(e,t){if(!(16777216&e.flags))switch(e.kind){case 78:var r=Mi(tf(e));return Wf(2097152&r.flags?ai(r):r,t);case 107:return function(e){e=tS.getThisContainer(e,!1);if(tS.isFunctionLike(e)){var t=Tc(e);if(t.thisParameter)return Wf(t.thisParameter)}if(tS.isClassLike(e.parent)){t=Ai(e.parent);return tS.hasSyntacticModifier(e,32)?_o(t):Ro(t).thisType}}(e);case 105:return gg(e);case 201:r=Hf(e.expression,t),r=r&&sc(r,e.name.escapedText);return r&&Wf(r,t);case 207:return Hf(e.expression,t)}}function Gf(e){var t,r=wn(e),n=r.effectsSignature;return void 0===n&&(t=void 0,233===e.parent.kind?t=Hf(e.expression,void 0):105!==e.expression.kind&&(t=tS.isOptionalChain(e)?Om(_p(fv(e.expression),e.expression),e.expression):Nm(e.expression)),t=1!==(t=uc(t&&Ys(t)||Le,0)).length||t[0].typeParameters?tS.some(t,Xf)?qy(e):void 0:t[0],n=r.effectsSignature=t&&Xf(t)?t:mr),n===mr?void 0:n}function Xf(e){return!!(Fc(e)||e.declaration&&131072&(wc(e.declaration)||Le).flags)}function Qf(e){var t=function t(e,r){for(;;){if(e===sr)return cr;var n=e.flags;if(4096&n){if(!r){var i=_f(e),a=Zr[i];return void 0!==a?a:Zr[i]=t(e,!0)}r=!1}if(368&n)e=e.antecedent;else if(512&n){var o=Gf(e.node);if(o){var s=Fc(o);if(s&&3===s.kind&&!s.type){var c=e.node.arguments[s.parameterIndex];if(c&&Yf(c))return!1}if(131072&Pc(o).flags)return!1}e=e.antecedent}else{if(4&n)return tS.some(e.antecedents,function(e){return t(e,!1)});if(8&n)e=e.antecedents[0];else{if(!(128&n)){if(1024&n){sr=void 0;var s=e.target,c=s.antecedents;s.antecedents=e.antecedents;var o=t(e.antecedent,!1);return s.antecedents=c,o}return!(1&n)}if(e.clauseStart===e.clauseEnd&&Nh(e.switchStatement))return!1;e=e.antecedent}}}}(e,!1);return sr=e,cr=t}function Yf(e){e=tS.skipParentheses(e);return 94===e.kind||216===e.kind&&(55===e.operatorToken.kind&&(Yf(e.left)||Yf(e.right))||56===e.operatorToken.kind&&Yf(e.left)&&Yf(e.right))}function Zf(u,p,l,_,e){var t;void 0===l&&(l=p);var r=!1,d=0;if(Ir)return Ie;if(!u.flowNode||!e&&!(536624127&p.flags))return p;Or++;var f=wr,e=Rf(m(u.flowNode));wr=f;e=256&tS.getObjectFlags(e)&&qf(u)?Lt:Uf(e);return e===rt||u.parent&&225===u.parent.kind&&131072&gf(e,2097152).flags?p:e;function g(){return r?t:(r=!0,t=function e(t,r,n,i){switch(t.kind){case 78:var a=tf(t);return a!==Ne?(i?pS(i):"-1")+"|"+r.id+"|"+n.id+"|"+(ng(t)?"@":"")+fS(a):void 0;case 107:return"0|"+(i?pS(i):"-1")+"|"+r.id+"|"+n.id;case 225:case 207:return e(t.expression,r,n,i);case 201:case 202:var o=af(t);if(void 0!==o)return(a=e(t.expression,r,n,i))&&a+"."+o}}(u,p,l,_))}function m(e){if(2e3===d)return tS.tracing.instant("check","getTypeAtFlowNode_DepthLimit",{flowId:e.id}),Ir=!0,t=u,r=tS.findAncestor(t,tS.isFunctionOrModuleBlock),t=tS.getSourceFileOfNode(t),r=tS.getSpanOfTokenAtPosition(t,r.statements.pos),an.add(tS.createFileDiagnostic(t,r.start,r.length,tS.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Ie;var t,r,n;for(d++;;){var i=e.flags;if(4096&i){for(var a=f;a<wr;a++)if(Qr[a]===e)return d--,Yr[a];n=e}var o=void 0;if(16&i){if(!(o=function(e){var t=e.node;if(nf(u,t)){if(!Qf(e))return rt;if(2===tS.getAssignmentTargetKind(t)){var r=m(e.antecedent);return Bf(Ud(Rf(r)),Lf(r))}if(p!==Pe&&p!==Lt)return 1048576&p.flags?df(p,y(e)):p;if(function(e){return 249===e.kind&&e.initializer&&La(e.initializer)||198!==e.kind&&216===e.parent.kind&&La(e.parent.right)}(t))return jf(Ze);r=Vd(y(e));return j_(r,p)?r:Mt}if(of(u,t)){if(!Qf(e))return rt;if(tS.isVariableDeclaration(t)&&(tS.isInJSFile(t)||tS.isVarConst(t))){r=tS.getDeclaredExpandoInitializer(t);if(r&&(208===r.kind||209===r.kind))return m(e.antecedent)}return p}if(tS.isVariableDeclaration(t)&&238===t.parent.parent.kind&&nf(u,t.parent.parent.expression))return Fm(Rf(m(e.antecedent)));return}(e))){e=e.antecedent;continue}}else if(512&i){if(!(o=function(e){var t=Gf(e.node);if(t){var r=Fc(t);if(r&&(2===r.kind||3===r.kind)){var n=m(e.antecedent),i=Uf(Rf(n)),r=r.type?F(i,r,e.node,!0):3===r.kind&&0<=r.parameterIndex&&r.parameterIndex<e.node.arguments.length?function e(t,r){var r=tS.skipParentheses(r);if(94===r.kind)return rt;if(216===r.kind){if(55===r.operatorToken.kind)return e(e(t,r.left),r.right);if(56===r.operatorToken.kind)return Ku([e(t,r.left),e(t,r.right)])}return P(t,r,!0)}(i,e.node.arguments[r.parameterIndex]):i;return r===i?n:Bf(r,Lf(n))}if(131072&Pc(t).flags)return rt}return}(e))){e=e.antecedent;continue}}else if(96&i)o=function(e){var t=m(e.antecedent),r=Rf(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),r=Uf(r),n=P(r,e.node,n);return n!==r?Bf(n,Lf(t)):t}(e);else if(128&i)o=function(t){var e=t.switchStatement.expression,r=m(t.antecedent),n=Rf(r);nf(u,e)?n=T(n,t.switchStatement,t.clauseStart,t.clauseEnd):211===e.kind&&nf(u,e.expression)?n=function(t,e,r,n){var i=Nf(e,!0);if(!i.length)return t;var a,o=tS.findIndex(i,function(e){return void 0===e}),s=r===n||r<=o&&o<n;{var c;a=-1<o?(c=i.filter(function(e){return void 0!==e}),e=o<r?r-1:r,o=o<n?n-1:n,u=c.slice(e,o),kh(e,o,c,s)):(u=i.slice(r,n),kh(r,n,i,s))}if(s)return wf(t,function(e){return(ff(e)&a)===a});var u=gf(Ku(u.map(function(e){return C(t,e)||t})),a);return gf(If(t,E(u)),a)}(n,t.switchStatement,t.clauseStart,t.clauseEnd):(X&&(sf(e,u)?n=S(n,t.switchStatement,t.clauseStart,t.clauseEnd,function(e){return!(163840&e.flags)}):211===e.kind&&sf(e.expression,u)&&(n=S(n,t.switchStatement,t.clauseStart,t.clauseEnd,function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))),h(e,n)&&(n=v(n,e,function(e){return T(e,t.switchStatement,t.clauseStart,t.clauseEnd)})));return Bf(n,Lf(r))}(e);else if(12&i){if(1===e.antecedents.length){e=e.antecedents[0];continue}o=(4&i?function(e){for(var t,r=[],n=!1,i=!1,a=0,o=e.antecedents;a<o.length;a++){var s=o[a];if(!t&&128&s.flags&&s.clauseStart===s.clauseEnd)t=s;else{var c=m(s);if((u=Rf(c))===p&&p===l)return u;tS.pushIfUnique(r,u),Af(u,p)||(n=!0),Lf(c)&&(i=!0)}}if(t){var u=Rf(c=m(t));if(!tS.contains(r,u)&&!Nh(t.switchStatement)){if(u===p&&p===l)return u;r.push(u),Af(u,p)||(n=!0),Lf(c)&&(i=!0)}}return Bf(Kf(r,n?2:1),i)}:function(e){var t=_f(e),r=Wr[t]||(Wr[t]=new tS.Map),n=g();if(!n)return p;t=r.get(n);if(t)return t;for(var i=Fr;i<Pr;i++)if(Hr[i]===e&&Gr[i]===n&&Xr[i].length)return Bf(Kf(Xr[i],1),!0);for(var a,o=[],s=!1,c=0,u=e.antecedents;c<u.length;c++){var l=u[c],_=void 0;if(a){Hr[Pr]=e,Gr[Pr]=n,Xr[Pr]=o,Pr++;var d=ur;ur=void 0,_=m(l),ur=d,Pr--;d=r.get(n);if(d)return d}else _=a=m(l);_=Rf(_);if(tS.pushIfUnique(o,_),Af(_,p)||(s=!0),_===p)break}t=Kf(o,s?2:1);if(Lf(a))return Bf(t,!0);return r.set(n,t),t})(e)}else if(256&i){if(!(o=function(e){if(p===Pe||p===Lt){var t=e.node,r=(203===t.kind?t.expression:t.left).expression;if(nf(u,Ef(r))){r=m(e.antecedent),e=Rf(r);if(256&tS.getObjectFlags(e)){var n=e;if(203===t.kind)for(var i=0,a=t.arguments;i<a.length;i++){var o=a[i];n=Jf(n,o)}else zh(pv(t.left.argumentExpression),296)&&(n=Jf(n,t.right));return n===e?r:Bf(n,Lf(r))}return r}}return}(e))){e=e.antecedent;continue}}else if(1024&i){var s=e.target,c=s.antecedents;s.antecedents=e.antecedents,o=m(e.antecedent),s.antecedents=c}else if(2&i){i=e.node;if(i&&i!==_&&201!==u.kind&&202!==u.kind&&107!==u.kind){e=i.flowNode;continue}o=l}else o=pb(p);return n&&(Qr[wr]=n,Yr[wr]=o,wr++),d--,o}}function y(e){e=e.node;return ag((249===e.kind||198===e.kind?Cf:Sf)(e),u)}function h(e,t){var r=1048576&p.flags?p:t;if(1048576&r.flags&&tS.isAccessExpression(e)){t=af(e);return void 0!==t?nf(u,e.expression)&&cf(r,t):void 0}}function v(e,t,r){var n=af(t);if(void 0===n)return e;t=ka(e,n);if(!t)return e;var i=r(t);return wf(e,function(e){var t,t=ka(t=e,e=n)||Yg(e)&&pc(t,1)||pc(t,0)||Le;return!(131072&t.flags)&&z_(t,i)})}function s(e,t,r){return nf(u,t)?gf(e,r?4194304:8388608):(X&&r&&sf(t,u)&&(e=gf(e,2097152)),h(t,e)?v(e,t,function(e){return gf(e,r?4194304:8388608)}):e)}function c(e,t,n){if(1572864&e.flags||hl(e)||2097152&e.flags&&tS.every(e.types,function(e){return e.symbol!==de})){var i=tS.escapeLeadingUnderscores(t.text);return wf(e,function(e){return t=i,r=n,!!dc(e=e,0)||((t=sc(e,t))?!!(16777216&t.flags)||r:!r);var t,r})}return e}function n(e,t,r){switch(t.operatorToken.kind){case 62:case 74:case 75:case 76:return s(P(e,t.right,r),t.left,r);case 34:case 35:case 36:case 37:var n=t.operatorToken.kind,i=Ef(t.left),a=Ef(t.right);if(211===i.kind&&tS.isStringLiteralLike(a))return D(e,i,n,a,r);if(211===a.kind&&tS.isStringLiteralLike(i))return D(e,a,n,i,r);if(nf(u,i))return x(e,n,a,r);if(nf(u,a))return x(e,n,i,r);if(X&&(sf(i,u)?e=b(e,n,a,r):sf(a,u)&&(e=b(e,n,i,r))),h(i,e))return v(e,i,function(e){return x(e,n,a,r)});if(h(a,e))return v(e,a,function(e){return x(e,n,i,r)});if(k(i))return N(e,n,a,r);if(k(a))return N(e,n,i,r);break;case 101:return function(e,t,r){var n=Ef(t.left);if(!nf(u,n))return r&&X&&sf(n,u)?gf(e,2097152):e;var i,n=_v(t.right);if(!J_(n,Ct))return e;t=sc(n,"prototype");t&&(Na(a=_o(t))||(i=a));if(Na(e)&&(i===Tt||i===Ct))return e;{var a;i||(a=uc(n,1),i=a.length?Ku(tS.map(a,function(e){return Pc(Bc(e))})):lt)}if(!r&&1048576&n.flags)if(!tS.find(n.types,function(e){return!xo(e)}))return e;return A(e,i,r,J_)}(e,t,r);case 100:var o=Ef(t.right);if(tS.isStringLiteralLike(t.left)&&nf(u,o))return c(e,t.left,r);break;case 27:return P(e,t.right,r)}return e}function b(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,r=_v(r);return i!==n&&Pf(r,function(e){return!!(e.flags&a)})||i===n&&Pf(r,function(e){return!(e.flags&(3|a))})?gf(e,2097152):e}function x(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=_v(r);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?nt:e;if(98304&i.flags)return X?gf(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(n)return Mf(wf(e,34===t?function(e){return U_(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return U_(e,i)}),i);if(Jd(i)){var a=Hl(i);return wf(e,function(e){return Jd(e)?!U_(e,i):Hl(e)!==a})}return e}function D(e,t,r,n,i){35!==r&&37!==r||(i=!i);r=Ef(t.expression);if(!nf(u,r))return X&&sf(r,u)&&i===("undefined"!==n.text)?gf(e,2097152):e;if(1&e.flags&&"function"===n.text)return e;if(i&&2&e.flags&&"object"===n.text){if(216===t.parent.parent.kind){var a=t.parent.parent;if(55===a.operatorToken.kind&&a.right===t.parent&&function e(t,r){return nf(t,r)||216===r.kind&&55===r.operatorToken.kind&&(e(t,r.left)||e(t,r.right))}(u,a.left))return nt}return Ku([nt,Je])}a=i?oS.get(n.text)||128:sS.get(n.text)||32768,n=C(e,n.text);return gf(i&&n?If(e,E(n)):e,a)}function S(e,t,r,n,i){return r!==n&&tS.every(kf(t).slice(r,n),i)?gf(e,2097152):e}function T(e,t,r,n){var i=kf(t);if(!i.length)return e;var a=i.slice(r,n),r=r===n||tS.contains(a,Ze);if(2&e.flags&&!r){for(var o=void 0,s=0;s<a.length;s+=1){var c=a[s];if(67239932&c.flags)void 0!==o&&o.push(c);else{if(!(524288&c.flags))return e;void 0===o&&(o=a.slice(0,s)),o.push(nt)}}return Ku(void 0===o?a:o)}var u=Ku(a),n=131072&u.flags?Ze:Mf(wf(e,function(e){return U_(u,e)}),u);if(!r)return n;r=wf(e,function(e){return!(Jd(e)&&tS.contains(i,Hl(e)))});return 131072&n.flags?r:Ku([n,r])}function C(e,t){switch(t){case"function":return 1&e.flags?e:Ct;case"object":return 2&e.flags?Ku([nt,Je]):e;default:return sn.get(t)}}function E(r){return function(e){if(B_(e,r))return e;if(B_(r,e))return r;if(465829888&e.flags){var t=Ks(e)||Fe;if(B_(r,t))return Qu([e,r])}return e}}function k(e){return(tS.isPropertyAccessExpression(e)&&"constructor"===tS.idText(e.name)||tS.isElementAccessExpression(e)&&tS.isStringLiteralLike(e.argumentExpression)&&"constructor"===e.argumentExpression.text)&&nf(u,e.expression)}function N(e,t,r,n){if(n?34!==t&&36!==t:35!==t&&37!==t)return e;r=_v(r);if(!dD(r)&&!xo(r))return e;r=sc(r,"prototype");if(!r)return e;var r=_o(r),i=Na(r)?void 0:r;return i&&i!==Tt&&i!==Ct?Na(e)?i:wf(e,function(e){return function(e,t){if(524288&e.flags&&1&tS.getObjectFlags(e)||524288&t.flags&&1&tS.getObjectFlags(t))return e.symbol===t.symbol;return B_(e,t)}(e,i)}):e}function A(e,t,r,n){if(!r)return wf(e,function(e){return!n(e,t)});if(1048576&e.flags){r=wf(e,function(e){return n(e,t)});if(!(131072&r.flags))return r}return B_(t,e)?t:B_(e,t)?e:Qu([e,t])}function i(e,t,r){if(function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(lf(t,n[r]))return 1;return!(201!==e.expression.kind||!lf(t,e.expression.expression))}(t,u)){var n=r||!tS.isCallChain(t)?Gf(t):void 0,n=n&&Fc(n);if(n&&(0===n.kind||1===n.kind))return F(e,n,t,r)}return e}function F(e,t,r,n){if(t.type&&(!Na(e)||t.type!==Tt&&t.type!==Ct)){i=(i=r,1===(r=t).kind||3===r.kind?i.arguments[r.parameterIndex]:(i=tS.skipParentheses(i.expression),tS.isAccessExpression(i)?tS.skipParentheses(i.expression):void 0));if(i){if(nf(u,i))return A(e,t.type,n,B_);if(X&&n&&sf(i,u)&&!(65536&ff(t.type))&&(e=gf(e,2097152)),h(i,e))return v(e,i,function(e){return A(e,t.type,n,B_)})}}var i;return e}function P(e,t,r){if(tS.isExpressionOfOptionalChainRoot(t)||tS.isBinaryExpression(t.parent)&&60===t.parent.operatorToken.kind&&t.parent.left===t)return function(e,t,r){if(nf(u,t))return gf(e,r?2097152:262144);if(h(t,e))return v(e,t,function(e){return gf(e,r?2097152:262144)});return e}(e,t,r);switch(t.kind){case 78:case 107:case 105:case 201:case 202:return s(e,t,r);case 203:return i(e,t,r);case 207:case 225:return P(e,t.expression,r);case 216:return n(e,t,r);case 214:if(53===t.operator)return P(e,t.operand,!r)}return e}}function $f(e){return tS.findAncestor(e.parent,function(e){return tS.isFunctionLike(e)&&!tS.getImmediatelyInvokedFunctionExpression(e)||257===e.kind||297===e.kind||163===e.kind})}function eg(e){var t=tS.getRootDeclaration(e.valueDeclaration).parent,r=wn(t);return 8388608&r.flags||(r.flags|=8388608,r=t,tS.findAncestor(r.parent,function(e){return tS.isFunctionLike(e)&&!!(8388608&wn(e).flags)})||tg(t)),e.isAssigned}function tg(e){var t;78===e.kind?!tS.isAssignmentTarget(e)||(t=tf(e)).valueDeclaration&&160===tS.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0):tS.forEachChild(e,tg)}function rg(e){return 3&e.flags&&0!=(2&Tm(e))&&_o(e)!==Lt}function ng(e){var t=e.parent;return 201===t.kind||203===t.kind&&t.expression===e||202===t.kind&&t.expression===e||198===t.kind&&t.name===e&&t.initializer}function ig(e){return 58982400&e.flags&&Jh(Ks(e)||Le,98304)}function ag(e,t){return e&&ng(t)&&Ff(e,ig)?If(hp(e),qs):e}function og(e,t){!ni(e,111551)||rf(t)||ci(e)||(G.preserveConstEnums&&(t=t,tS.findAncestor(t,function(e){return e.parent&&tS.isExportAssignment(e.parent)&&e.parent.expression===e&&tS.isEntityNameExpression(e)}))||!tD(ai(e))?li(e):(e=Pn(e=e)).constEnumReferenced||(e.constEnumReferenced=!0))}function sg(e){var t=tf(e);if(t===Ne)return Ie;if(t===fe){var r=tS.getContainingFunction(e);return R<2&&(209===r.kind?hn(e,tS.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):tS.hasSyntacticModifier(r,256)&&hn(e,tS.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),wn(r).flags|=8192,_o(t)}e.parent&&tS.isPropertyAccessExpression(e.parent)&&e.parent.expression===e||og(t,e);var n=Mi(t),i=2097152&n.flags?ai(n):n;134217728&Tm(i)&&_l(e.parent,i)&&bn(!1,e,tS.Diagnostics._0_is_deprecated,e.escapedText);var a=n.valueDeclaration;if(32&n.flags)if(252===a.kind&&tS.nodeIsDecorated(a))for(r=tS.getContainingClass(e);void 0!==r;){if(r===a&&r.name!==e){wn(a).flags|=16777216,wn(e).flags|=33554432;break}r=tS.getContainingClass(r)}else if(221===a.kind)for(r=tS.getThisContainer(e,!1);297!==r.kind;){if(r.parent===a){163===r.kind&&tS.hasSyntacticModifier(r,32)&&(wn(a).flags|=16777216,wn(e).flags|=33554432);break}r=tS.getThisContainer(r,!1)}!function(e,t){if(!(2<=R||0==(34&t.flags)||tS.isSourceFile(t.valueDeclaration)||287===t.valueDeclaration.parent.kind)){for(var r,n,i,a,o=tS.getEnclosingBlockScopeContainer(t.valueDeclaration),s=function(e,t){return!!tS.findAncestor(e,function(e){return e===t?"quit":tS.isFunctionLike(e)})}(e.parent,o),c=o,u=!1;c&&!tS.nodeStartsNewLexicalEnvironment(c);){if(tS.isIterationStatement(c,!1)){u=!0;break}c=c.parent}u&&(s&&(r=!0,tS.isForStatement(o)&&(!(a=tS.getAncestor(t.valueDeclaration,250))||a.parent!==o||(n=function(e,t){return tS.findAncestor(e,function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement})}(e.parent,o))&&((i=wn(n)).flags|=131072,i=i.capturedBlockScopeBindings||(i.capturedBlockScopeBindings=[]),tS.pushIfUnique(i,t),n===o.initializer&&(r=!1))),r&&(wn(c).flags|=65536)),tS.isForStatement(o)&&(a=tS.getAncestor(t.valueDeclaration,250))&&a.parent===o&&function(e,t){var r=e;for(;207===r.parent.kind;)r=r.parent;var n=!1;tS.isAssignmentTarget(r)?n=!0:214!==r.parent.kind&&215!==r.parent.kind||(e=r.parent,n=45===e.operator||46===e.operator);return!!n&&!!tS.findAncestor(r,function(e){return e===t?"quit":e===t.statement})}(e,o)&&(wn(t.valueDeclaration).flags|=4194304),wn(t.valueDeclaration).flags|=524288),s&&(wn(t.valueDeclaration).flags|=262144)}}(e,t);var o=ag(_o(n),e),s=tS.getAssignmentTargetKind(e);if(s){if(!(3&n.flags||tS.isInJSFile(e)&&512&n.flags))return hn(e,tS.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,sa(t)),Ie;if(Mh(n))return 3&n.flags?hn(e,tS.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,sa(t)):hn(e,tS.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,sa(t)),Ie}var c=2097152&n.flags;if(3&n.flags){if(1===s)return o}else{if(!c)return o;a=tS.find(t.declarations,hS)}if(!a)return o;for(var u=160===tS.getRootDeclaration(a).kind,l=$f(a),_=$f(e),d=_!==l,p=e.parent&&e.parent.parent&&tS.isSpreadAssignment(e.parent)&&xf(e.parent.parent),i=134217728&t.flags;_!==l&&(208===_.kind||209===_.kind||tS.isObjectLiteralOrClassExpressionMethod(_))&&(rg(n)||u&&!eg(n));)_=$f(_);p=u||c||d||p||i||tS.isBindingElement(a)||o!==Pe&&o!==Lt&&(!X||0!=(16387&o.flags)||rf(e)||270===e.parent.kind)||225===e.parent.kind||249===a.kind&&a.exclamationToken||8388608&a.flags,i=Zf(e,o,p?u?function(e,t){if(Sa(t.symbol,2)){var r=X&&160===t.kind&&t.initializer&&32768&tp(e)&&!(32768&tp(fv(t.initializer)));return Ca(),r?gf(e,524288):e}return lo(t.symbol),e}(o,a):o:o===Pe||o===Lt?Re:ap(o),_,!p);if(qf(e)||o!==Pe&&o!==Lt){if(!p&&!(32768&tp(o))&&32768&tp(i))return hn(e,tS.Diagnostics.Variable_0_is_used_before_being_assigned,sa(t)),o}else if(i===Pe||i===Lt)return Q&&(hn(tS.getNameOfDeclaration(a),tS.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,sa(t),ua(i)),hn(e,tS.Diagnostics.Variable_0_implicitly_has_an_1_type,sa(t),ua(i))),pb(i);return s?Ud(i):i}function cg(e,t){wn(e).flags|=2,163===t.kind||166===t.kind?wn(t.parent).flags|=4:wn(t).flags|=4}function ug(e){return tS.isSuperCall(e)?e:tS.isFunctionLike(e)?void 0:tS.forEachChild(e,ug)}function lg(e){return Co(Ro(Ai(e)))===ze}function _g(e,t,r){t=t.parent;tS.getClassExtendsHeritageElement(t)&&!lg(t)&&e.flowNode&&!function t(e,r){for(;;){var n=e.flags;if(4096&n){if(!r){var i=_f(e),a=$r[i];return void 0!==a?a:$r[i]=t(e,!0)}r=!1}if(496&n)e=e.antecedent;else if(512&n){if(105===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return tS.every(e.antecedents,function(e){return t(e,!1)});if(!(8&n)){if(1024&n){var o=e.target,a=o.antecedents;return o.antecedents=e.antecedents,i=t(e.antecedent,!1),o.antecedents=a,i}return!!(1&n)}e=e.antecedents[0]}}}(e.flowNode,!1)&&hn(e,r)}function dg(e){var t=tS.getThisContainer(e,!0),r=!1;switch(166===t.kind&&_g(e,t,tS.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),209===t.kind&&(t=tS.getThisContainer(t,!1),r=!0),t.kind){case 256:hn(e,tS.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 255:hn(e,tS.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 166:fg(e,t)&&hn(e,tS.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 163:case 162:!tS.hasSyntacticModifier(t,32)||99===G.target&&G.useDefineForClassFields||hn(e,tS.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 158:hn(e,tS.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&R<2&&cg(e,t);var n,i,a=pg(e,!0,t);return y&&(a===(n=_o(de))&&r?hn(e,tS.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this):a||(i=hn(e,tS.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),tS.isSourceFile(t)||(r=pg(t))&&r!==n&&tS.addRelatedInfo(i,tS.createDiagnosticForNode(t,tS.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container)))),a||Fe}function pg(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=tS.getThisContainer(e,!1));var n=tS.isInJSFile(e);if(tS.isFunctionLike(r)&&(!bg(e)||tS.getThisParameter(r))){var i,a=io(r)||n&&function(e){var t=tS.getJSDocType(e);if(t&&308===t.kind){t=t;if(0<t.parameters.length&&t.parameters[0].name&&"this"===t.parameters[0].name.escapedText)return e_(t.parameters[0].type)}e=tS.getJSDocThisTag(e);if(e&&e.typeExpression)return e_(e.typeExpression)}(r);if(a||(i=208===(i=r).kind&&tS.isBinaryExpression(i.parent)&&3===tS.getAssignmentDeclarationKind(i.parent)?i.parent.left.expression.expression:165===i.kind&&200===i.parent.kind&&tS.isBinaryExpression(i.parent.parent)&&6===tS.getAssignmentDeclarationKind(i.parent.parent)?i.parent.parent.left.expression:208===i.kind&&288===i.parent.kind&&200===i.parent.parent.kind&&tS.isBinaryExpression(i.parent.parent.parent)&&6===tS.getAssignmentDeclarationKind(i.parent.parent.parent)?i.parent.parent.parent.left.expression:208===i.kind&&tS.isPropertyAssignment(i.parent)&&tS.isIdentifier(i.parent.name)&&("value"===i.parent.name.escapedText||"get"===i.parent.name.escapedText||"set"===i.parent.name.escapedText)&&tS.isObjectLiteralExpression(i.parent.parent)&&tS.isCallExpression(i.parent.parent.parent)&&i.parent.parent.parent.arguments[2]===i.parent.parent&&9===tS.getAssignmentDeclarationKind(i.parent.parent.parent)?i.parent.parent.parent.arguments[0].expression:tS.isMethodDeclaration(i)&&tS.isIdentifier(i.name)&&("value"===i.name.escapedText||"get"===i.name.escapedText||"set"===i.name.escapedText)&&tS.isObjectLiteralExpression(i.parent)&&tS.isCallExpression(i.parent.parent)&&i.parent.parent.arguments[2]===i.parent&&9===tS.getAssignmentDeclarationKind(i.parent.parent)?i.parent.parent.arguments[0].expression:void 0,n&&i?(i=fv(i).symbol)&&i.members&&16&i.flags&&(a=Ro(i).thisType):Wy(r)&&(a=Ro(Ni(r.symbol)).thisType),a=a||yg(r)),a)return Zf(e,a)}if(tS.isClassLike(r.parent)){var o=Ai(r.parent);return Zf(e,tS.hasSyntacticModifier(r,32)?_o(o):Ro(o).thisType)}if(tS.isSourceFile(r)){if(r.commonJsModuleIndicator){o=Ai(r);return o&&_o(o)}return r.externalModuleIndicator?Re:t?_o(de):void 0}}function fg(e,t){return tS.findAncestor(e,function(e){return tS.isFunctionLikeDeclaration(e)?"quit":160===e.kind&&e.parent===t})}function gg(e){var t=203===e.parent.kind&&e.parent.expression===e,r=tS.getSuperContainer(e,!0),n=r,i=!1;if(!t)for(;n&&209===n.kind;)n=tS.getSuperContainer(n,!0),i=R<2;var a=0;if(!function(e){if(!e)return!1;{if(t)return 166===e.kind;if(tS.isClassLike(e.parent)||200===e.parent.kind)return tS.hasSyntacticModifier(e,32)?165===e.kind||164===e.kind||167===e.kind||168===e.kind:165===e.kind||164===e.kind||167===e.kind||168===e.kind||163===e.kind||162===e.kind||166===e.kind}return!1}(n)){var o=tS.findAncestor(e,function(e){return e===n?"quit":158===e.kind});return o&&158===o.kind?hn(e,tS.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?hn(e,tS.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(tS.isClassLike(n.parent)||200===n.parent.kind)?hn(e,tS.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):hn(e,tS.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Ie}if(t||166!==r.kind||_g(e,n,tS.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=tS.hasSyntacticModifier(n,32)||t?512:256,wn(e).flags|=a,165===n.kind&&tS.hasSyntacticModifier(n,256)&&(tS.isSuperProperty(e.parent)&&tS.isAssignmentTarget(e.parent)?wn(n).flags|=4096:wn(n).flags|=2048),i&&cg(e.parent,n),200===n.parent.kind)return R<2?(hn(e,tS.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ie):Fe;o=n.parent;if(!tS.getClassExtendsHeritageElement(o))return hn(e,tS.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Ie;r=Ro(Ai(o)),o=r&&ko(r)[0];return o?166===n.kind&&fg(e,n)?(hn(e,tS.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Ie):512===a?Co(r):ns(o,r.thisType):Ie}function mg(e){return 4&tS.getObjectFlags(e)&&e.target===Ot?$c(e)[0]:void 0}function yg(e){if(209!==e.kind){if(w_(e)){var t=qg(e);if(t){var r=t.thisParameter;if(r)return _o(r)}}t=tS.isInJSFile(e);if(y||t){var n=165!==(r=e).kind&&167!==r.kind&&168!==r.kind||200!==r.parent.kind?208===r.kind&&288===r.parent.kind?r.parent.parent:void 0:r.parent;if(n){for(var i=Mg(n),a=n,o=i;o;){var s=If(o,function(e){return 2097152&e.flags?tS.forEach(e.types,mg):mg(e)});if(s)return C_(s,Fp(jg(n)));if(288!==a.parent.kind)break;o=Mg(a=a.parent.parent)}return hp(i?op(i):Zh(n))}i=tS.walkUpParenthesizedExpressions(e.parent);if(216===i.kind&&62===i.operatorToken.kind){e=i.left;if(tS.isAccessExpression(e)){e=e.expression;if(t&&tS.isIdentifier(e)){i=tS.getSourceFileOfNode(i);if(i.commonJsModuleIndicator&&tf(e)===i.symbol)return}return hp(Zh(e))}}}}}function hg(e){var t=e.parent;if(w_(t)){var r=tS.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var n=Cy(r),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return hy(n,i,n.length,Fe,void 0,0);var r=wn(r),a=r.resolvedSignature;r.resolvedSignature=gr;i=i<n.length?Vd(fv(n[i])):e.initializer?void 0:Be;return r.resolvedSignature=a,i}a=qg(t);if(a){i=t.parameters.indexOf(e)-(tS.getThisParameter(t)?1:0);return(e.dotDotDotToken&&tS.lastOrUndefined(t.parameters)===e?_h:lh)(a,i)}}}function vg(e){var t,r,n=tS.getEffectiveTypeAnnotationNode(e);if(n)return e_(n);switch(e.kind){case 160:return hg(e);case 198:return function(e){var t=e.parent.parent,r=e.propertyName||e.name,n=vg(t)||198!==t.kind&&t.initializer&&$h(t);if(!n||tS.isBindingPattern(r)||tS.isComputedNonLiteralName(r))return;if(197===t.name.kind){e=tS.indexOfNode(e.parent.elements,e);return e<0?void 0:Pg(n,e)}r=el(r);if(Ho(r)){r=Zo(r);return ka(n,r)}}(e);case 163:if(tS.hasSyntacticModifier(e,32))return t=e,(r=tS.isExpression(t.parent)&&Bg(t.parent))?Ng(r,Ai(t).escapedName):void 0}}function bg(e){for(var t=!1;e.parent&&!tS.isFunctionLike(e.parent);){if(tS.isParameter(e.parent)&&(t||e.parent.initializer===e))return 1;tS.isBindingElement(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}}function xg(e,t){var r=!!(2&tS.getFunctionFlags(t)),t=Dg(t);if(t)return Gb(e,t,r)||void 0}function Dg(e){var t=wc(e);if(t)return t;e=Kg(e);return e&&!Ic(e)?Pc(e):void 0}function Sg(e,t){t=Cy(e).indexOf(t);return-1===t?void 0:Tg(e,t)}function Tg(e,t){var r=wn(e).resolvedSignature===yr?yr:qy(e);return tS.isJsxOpeningLikeElement(e)&&0===t?Jg(r,e):uh(r,t)}function Cg(e,t){var r=e.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 62:case 75:case 74:case 76:return e===a?function(e){var t=tS.getAssignmentDeclarationKind(e);switch(t){case 0:return _v(e.left);case 5:case 1:case 6:case 3:if(Eg(e,t))return kg(e,t);if(e.left.symbol){var r=e.left.symbol.valueDeclaration;if(!r)return;var n=tS.cast(e.left,tS.isAccessExpression),i=tS.getEffectiveTypeAnnotationNode(r);if(i)return e_(i);if(tS.isIdentifier(n.expression)){i=n.expression,i=Rn(i,i.escapedText,111551,void 0,i.escapedText,!0);if(i){i=i.valueDeclaration&&tS.getEffectiveTypeAnnotationNode(i.valueDeclaration);if(i){n=tS.getElementOrPropertyAccessName(n);if(void 0!==n)return Ng(e_(i),n)}return}}return tS.isInJSFile(r)?void 0:_v(e.left)}return _v(e.left);case 2:case 4:return kg(e,t);case 7:case 8:case 9:return tS.Debug.fail("Does not apply");default:return tS.Debug.assertNever(t)}}(r):void 0;case 56:case 60:var o=Bg(r,t);return e===a&&(o&&o.pattern||!o&&!tS.isDefaultedExpandoInitializer(r))?_v(n):o;case 55:case 27:return e===a?Bg(r,t):void 0;default:return}}function Eg(e,t){if(void 0===t&&(t=tS.getAssignmentDeclarationKind(e)),4===t)return!0;if(!tS.isInJSFile(e)||5!==t||!tS.isIdentifier(e.left.expression))return!1;t=e.left.expression.escapedText,t=Rn(e.left,t,111551,void 0,void 0,!0,!0);return tS.isThisInitializedDeclaration(null==t?void 0:t.valueDeclaration)}function kg(e,t){if(!e.symbol)return _v(e.left);if(e.symbol.valueDeclaration){var r=tS.getEffectiveTypeAnnotationNode(e.symbol.valueDeclaration);if(r){r=e_(r);if(r)return r}}if(2!==t){t=tS.cast(e.left,tS.isAccessExpression);if(tS.isObjectLiteralMethod(tS.getThisContainer(t.expression,!1))){e=dg(t.expression),t=tS.getElementOrPropertyAccessName(t);return void 0!==t&&Ng(e,t)||void 0}}}function Ng(e,n){return If(e,function(e){if(ws(e)){var t=Ss(e),r=Ks(t)||t,t=Xl(tS.unescapeLeadingUnderscores(n));if(j_(t,r))return Dl(e,t)}else if(3670016&e.flags){r=sc(e,n);if(r)return t=r,262144&tS.getCheckFlags(t)&&!t.type&&0<=Ta(t,0)?void 0:_o(r);if(Hd(e)){r=Qd(e);if(r&&Yg(n)&&0<=+n)return r}return Yg(n)&&Ag(e,1)||Ag(e,0)}},!0)}function Ag(e,t){return If(e,function(e){return _c(e,t)},!0)}function Fg(e,t){var r=Mg(e.parent,t);if(r){if(!Yo(e)){t=Ng(r,Ai(e).escapedName);if(t)return t}return Xg(e.name)&&Ag(r,1)||Ag(r,0)}}function Pg(e,t){return e&&(Ng(e,""+t)||If(e,function(e){return kb(1,e,Re,void 0,!1)},!0))}function wg(e){var t=e.parent;return tS.isJsxAttributeLike(t)?Bg(e):tS.isJsxElement(t)?function(e,t){var r=Mg(e.openingElement.tagName),n=fm(dm(e));if(r&&!Na(r)&&n&&""!==n){var e=tS.getSemanticJsxChildren(e.children),i=e.indexOf(t),n=Ng(r,n);return n&&(1===e.length?n:If(n,function(e){return Md(e)?Sl(e,Xl(i)):e},!0))}}(t,e):void 0}function Ig(e){if(!tS.isJsxAttribute(e))return Bg(e.parent);var t=Mg(e.parent);return t&&!Na(t)?Ng(t,e.name.escapedText):void 0}function Og(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 150:return!0;case 201:case 207:return Og(e.expression);case 283:return!e.expression||Og(e.expression)}return!1}function Mg(e,t){var r,n,i=Lg((tS.isObjectLiteralMethod(e)?function(e,t){if(tS.Debug.assert(tS.isObjectLiteralMethod(e)),!(16777216&e.flags))return Fg(e,t)}:Bg)(e,t),e,t);if(i&&!(t&&2&t&&8650752&i.flags)){t=If(i,Ys,!0);if(1048576&t.flags){if(tS.isObjectLiteralExpression(e))return i=e,dd(n=t,tS.map(tS.filter(i.properties,function(e){return!!e.symbol&&288===e.kind&&Og(e.initializer)&&cf(n,e.symbol.escapedName)}),function(e){return[function(){return fv(e.initializer)},e.symbol.escapedName]}),j_,n);if(tS.isJsxAttributes(e))return e=e,dd(r=t,tS.map(tS.filter(e.properties,function(e){return!!e.symbol&&280===e.kind&&cf(r,e.symbol.escapedName)&&(!e.initializer||Og(e.initializer))}),function(e){return[e.initializer?function(){return fv(e.initializer)}:function(){return He},e.symbol.escapedName]}),j_,r)}return t}}function Lg(e,t,r){if(e&&Jh(e,465829888)){t=jg(t);if(t&&tS.some(t.inferences,cv)){if(r&&1&r)return Rg(e,t.nonFixingMapper);if(t.returnMapper)return Rg(e,t.returnMapper)}}return e}function Rg(e,t){return 465829888&e.flags?C_(e,t):1048576&e.flags?Ku(tS.map(e.types,function(e){return Rg(e,t)}),0):2097152&e.flags?Qu(tS.map(e.types,function(e){return Rg(e,t)})):e}function Bg(e,t){if(!(16777216&e.flags)){if(e.contextualType)return e.contextualType;var r,n=e.parent;switch(n.kind){case 249:case 160:case 163:case 162:case 198:return function(e,t){var r=e.parent;if(tS.hasInitializer(r)&&e===r.initializer){e=vg(r);if(e)return e;if(!(8&t)&&tS.isBindingPattern(r.name))return Qa(r.name,!0,!1)}}(e,t);case 209:case 242:return function(e){var t=tS.getContainingFunction(e);if(t){var r=Dg(t);if(r){e=tS.getFunctionFlags(t);if(1&e){t=wb(r,2&e?2:1,void 0);if(!t)return;r=t.returnType}if(2&e){e=If(r,Bv);return e&&Ku([e,Dh(e)])}return r}}}(e);case 219:return function(e){if(r=tS.getContainingFunction(e)){var t=tS.getFunctionFlags(r),r=Dg(r);if(r)return e.asteriskToken?r:Gb(0,r,0!=(2&t))}}(n);case 213:return function(e,t){if(t=Bg(e,t)){t=Bv(t);return t&&Ku([t,Dh(t)])}}(n,t);case 203:if(99===n.expression.kind)return Ue;case 204:return Sg(n,e);case 206:case 224:return tS.isConstTypeReference(n.type)?function(e){if(tS.isCallLikeExpression(e.parent))return Sg(e.parent,e);return}(n):e_(n.type);case 216:return Cg(e,t);case 288:case 289:return Fg(n,t);case 290:return Mg(n.parent,t);case 199:var i=n;return Pg(Mg(i,t),tS.indexOfNode(i.elements,e));case 217:return a=t,i=(r=e).parent,r===i.whenTrue||r===i.whenFalse?Bg(i,a):void 0;case 228:return tS.Debug.assert(218===n.parent.kind),function(e,t){if(205===e.parent.kind)return Sg(e.parent,t)}(n.parent,e);case 207:var a=tS.isInJSFile(n)?tS.getJSDocTypeTag(n):void 0;return a?e_(a.typeExpression.type):Bg(n,t);case 283:return wg(n);case 280:case 282:return Ig(n);case 275:case 274:return function(e,t){if(tS.isJsxOpeningElement(e)&&e.parent.contextualType&&4!==t)return e.parent.contextualType;return Tg(e,0)}(n,t)}}}function jg(e){e=tS.findAncestor(e,function(e){return!!e.inferenceContext});return e&&e.inferenceContext}function Jg(e,t){return(0!==by(t)?function(e,t){e=hh(e,Le);e=zg(t,dm(t),e);t=um(uS.IntrinsicAttributes,t);t!==Ie&&(e=ps(t,e));return e}:function(e,t){var r=dm(t),n=function(e){return pm(uS.ElementAttributesPropertyNameContainer,e)}(r),i=void 0===n?hh(e,Le):""===n?Pc(e):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n<i.length;n++){var a=Pc(i[n]);if(Na(a))return a;a=ka(a,t);if(!a)return;r.push(a)}return Qu(r)}e=Pc(e);return Na(e)?e:ka(e,t)}(e,n);if(!i)return n&&tS.length(t.attributes.properties)&&hn(t,tS.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,tS.unescapeLeadingUnderscores(n)),Le;{if(Na(i=zg(t,r,i)))return i;n=i,r=um(uS.IntrinsicClassAttributes,t);r!==Ie&&(i=vo(r.symbol),e=Pc(e),n=ps(i?Qc(r,Sc([e],i,Dc(i),tS.isInJSFile(t))):r,n));t=um(uS.IntrinsicAttributes,t);return t!==Ie&&(n=ps(t,n)),n}})(e,t)}function zg(e,t,r){t=(n=t)&&On(n.exports,uS.LibraryManagedAttributes,788968);if(t){var n=Ro(t),t=function(e){if(im(e.tagName))return Jc(Uy(e,t=mm(e)));var t,r=Zh(e.tagName);return 128&r.flags?(t=gm(r,e))?Jc(Uy(e,t)):Ie:r}(e);if(2<=tS.length(n.typeParameters))return Qc(n,i=Sc([t,r],n.typeParameters,2,tS.isInJSFile(e)));if(2<=tS.length(n.aliasTypeArguments)){var i=Sc([t,r],n.aliasTypeArguments,2,tS.isInJSFile(e));return ru(n.aliasSymbol,i)}}return r}function Ug(e,t){e=uc(e,0);if(1===e.length){e=e[0];if(!function(e,t){for(var r=0;r<t.parameters.length;r++){var n=t.parameters[r];if(n.initializer||n.questionToken||n.dotDotDotToken||yc(n))break}t.parameters.length&&tS.parameterIsThisKeyword(t.parameters[0])&&r--;return!fh(e)&&dh(e)<r}(e,t))return e}}function Vg(e){return 208===e.kind||209===e.kind}function Kg(e){return Vg(e)||tS.isObjectLiteralMethod(e)?qg(e):void 0}function qg(e){tS.Debug.assert(165!==e.kind||tS.isObjectLiteralMethod(e));var t=Cc(e);if(t)return t;t=Mg(e,1);if(t){if(!(1048576&t.flags))return Ug(t,e);for(var r,n=0,i=t.types;n<i.length;n++){var a=Ug(i[n],e);if(a)if(r){if(!Ad(r[0],a,!1,!0,!0,M_))return;r.push(a)}else r=[a]}return r?1===r.length?r[0]:ss(r[0],r):void 0}}function Wg(e){return 198===e.kind&&!!e.initializer||216===e.kind&&62===e.operatorToken.kind}function Hg(e,t,r){for(var n=e.elements,i=n.length,a=[],o=[],s=Mg(e),c=tS.isAssignmentTarget(e),e=rv(e),u=0;u<i;u++){var l,_,d=n[u];220===d.kind?(R<2&&CD(d,G.downlevelIteration?1536:2048),Md(l=fv(d.expression,t,r))?(a.push(l),o.push(8)):(c?(_=pc(l,1)||kb(65,l,Re,void 0,!1)||Le,a.push(_)):a.push(Eb(33,l,Re,d.expression)),o.push(4))):(d=nv(d,t,Pg(s,a.length),r),a.push(d),o.push(1))}return c?Iu(a,o):r||e||s&&Ff(s,Rd)?Gg(Iu(a,o,e)):Gg(ku(a.length?Ku(tS.sameMap(a,function(e,t){return 8&o[t]?Cl(e,Ve)||Fe:e}),2):X?tt:Be,e))}function Gg(e){if(!(4&tS.getObjectFlags(e)))return e;var t=e.literalType;return t||((t=e.literalType=Yc(e)).objectFlags|=1114112),t}function Xg(e){switch(e.kind){case 158:return zh(Zg(e),296);case 78:return Yg(e.escapedText);case 8:case 10:return Yg(e.text);default:return!1}}function Qg(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Yg(e){return(+e).toString()===e}function Zg(e){var t=wn(e.expression);return t.resolvedType||(t.resolvedType=fv(e.expression),98304&t.resolvedType.flags||!zh(t.resolvedType,402665900)&&!j_(t.resolvedType,it)?hn(e,tS.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):ry(e.expression,t.resolvedType,!0)),t.resolvedType}function $g(e,t,r,n){for(var i,a,o=[],s=t;s<r.length;s++)(0===n||(i=r[s],a=void 0,a=null===(a=i.declarations)||void 0===a?void 0:a[0],Yg(i.escapedName)||a&&tS.isNamedDeclaration(a)&&Xg(a.name)))&&o.push(_o(r[s]));return Vc(o.length?Ku(o,2):Re,rv(e))}function em(e){tS.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=Pn(e);if(!t.immediateTarget){e=Kn(e);if(!e)return tS.Debug.fail();t.immediateTarget=ri(e,!0)}return t.immediateTarget}function tm(r,e){var n=tS.isAssignmentTarget(r);!function(e,t){for(var r=new tS.Map,n=0,i=e.properties;n<i.length;n++){var a=i[n];if(290!==a.kind){var o=a.name;if(158===o.kind&&LD(o),289===a.kind&&!t&&a.objectAssignmentInitializer)return YD(a.equalsToken,tS.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);if(79===o.kind)return YD(o,tS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(a.modifiers)for(var s=0,c=a.modifiers;s<c.length;s++){var u=c[s];129===u.kind&&165===a.kind||YD(u,tS.Diagnostics._0_modifier_cannot_be_used_here,tS.getTextOfNode(u))}var l=void 0;switch(a.kind){case 289:jD(a.exclamationToken,tS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 288:BD(a.questionToken,tS.Diagnostics.An_object_member_cannot_be_declared_optional),8===o.kind&&$D(o),l=4;break;case 165:l=8;break;case 167:l=1;break;case 168:l=2;break;default:throw tS.Debug.assertNever(a,"Unexpected syntax kind:"+a.kind)}if(!t){var _=tS.getPropertyNameForPropertyNameNode(o);if(void 0!==_){var d=r.get(_);if(d)if(12&l&&12&d)YD(o,tS.Diagnostics.Duplicate_identifier_0,tS.getTextOfNode(o));else{if(!(3&l&&3&d))return YD(o,tS.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===d||l===d)return YD(o,tS.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);r.set(_,l|d)}else r.set(_,l)}}}else if(t){_=tS.skipParentheses(a.expression);if(tS.isArrayLiteralExpression(_)||tS.isObjectLiteralExpression(_))return YD(a.expression,tS.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(r,n);for(var t=X?tS.createSymbolTable():void 0,i=tS.createSymbolTable(),a=[],o=lt,s=Mg(r),c=s&&s.pattern&&(196===s.pattern.kind||200===s.pattern.kind),u=rv(r),l=u?8:0,_=tS.isInJSFile(r)&&!tS.isInJsonFile(r),d=tS.getJSDocEnumTag(r),p=!s&&_&&!d,f=I,g=!1,m=!1,y=!1,h=0,v=r.properties;h<v.length;h++){var b=v[h];b.name&&tS.isComputedPropertyName(b.name)&&!tS.isWellKnownSymbolSyntactically(b.name)&&Zg(b.name)}for(var x=0,D=0,S=r.properties;D<S.length;D++){var T=S[D],C=Ai(T),E=T.name&&158===T.name.kind&&!tS.isWellKnownSymbolSyntactically(T.name.expression)?Zg(T.name):void 0;if(288===T.kind||289===T.kind||tS.isObjectLiteralMethod(T)){var k=288===T.kind?iv(T,e):289===T.kind?nv(!n&&T.objectAssignmentInitializer?T.objectAssignmentInitializer:T.name,e):av(T,e);_&&((N=Ma(T))?(V_(k,N,T),k=N):d&&d.typeExpression&&V_(k,e_(d.typeExpression),T)),f|=3670016&tS.getObjectFlags(k);var N=E&&Ho(E)?E:void 0,A=N?Dn(4|C.flags,Zo(N),4096|l):Dn(4|C.flags,C.escapedName,l);N&&(A.nameType=N),n?(288===T.kind&&Wg(T.initializer)||289===T.kind&&T.objectAssignmentInitializer)&&(A.flags|=16777216):!c||512&tS.getObjectFlags(s)||((N=sc(s,C.escapedName))?A.flags|=16777216&N.flags:G.suppressExcessPropertyErrors||dc(s,0)||hn(T.name,tS.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,sa(C),ua(s))),A.declarations=C.declarations,A.parent=C.parent,C.valueDeclaration&&(A.valueDeclaration=C.valueDeclaration),A.type=k,A.target=C,C=A,null!=t&&t.set(A.escapedName,A)}else{if(290===T.kind){if(R<2&&CD(T,2),0<a.length&&(o=zl(o,w(),r.symbol,f,u),a=[],i=tS.createSymbolTable(),y=m=!1),!rm(k=rc(fv(T.expression))))return hn(T,tS.Diagnostics.Spread_types_may_only_be_created_from_object_types),Ie;t&&sm(k,t,T),o=zl(o,k,r.symbol,f,u),x=a.length;continue}tS.Debug.assert(167===T.kind||168===T.kind),Cx(T)}!E||8576&E.flags?i.set(C.escapedName,C):j_(E,it)&&(j_(E,Ve)?y=!0:m=!0,n&&(g=!0)),a.push(C)}if(c&&290!==r.parent.kind)for(var F=0,P=Rs(s);F<P.length;F++){A=P[F];i.get(A.escapedName)||sc(o,A.escapedName)||(16777216&A.flags||hn(A.valueDeclaration||A.bindingElement,tS.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(A.escapedName,A),a.push(A))}return o!==lt?(0<a.length&&(o=zl(o,w(),r.symbol,f,u),a=[],i=tS.createSymbolTable(),y=m=!1),If(o,function(e){return e===lt?w():e})):w();function w(){var e=m?$g(r,x,a,0):void 0,t=y?$g(r,x,a,1):void 0,t=Wi(r.symbol,i,tS.emptyArray,tS.emptyArray,e,t);return t.objectFlags|=1048704|f,p&&(t.objectFlags|=16384),g&&(t.objectFlags|=512),n&&(t.pattern=r),t}}function rm(e){if(465829888&e.flags){var t=Ks(e);if(void 0!==t)return rm(t)}return!!(126615553&e.flags||117632&tp(e)&&rm(rp(e))||3145728&e.flags&&tS.every(e.types,rm))}function nm(e){return!tS.stringContains(e,"-")}function im(e){return 78===e.kind&&tS.isIntrinsicJsxName(e.escapedText)}function am(e,t){return e.initializer?nv(e.initializer,t):He}function om(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];11===a.kind?a.containsOnlyTriviaWhiteSpaces||r.push(Ue):283===a.kind&&!a.expression||r.push(nv(a,t))}return r}function sm(e,t,r){for(var n=0,i=Rs(e);n<i.length;n++){var a=i[n],o=t.get(a.escapedName),s=_o(a);!o||Jh(s,98304)||Jh(s,3)&&16777216&a.flags||(o=hn(o.valueDeclaration,tS.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,tS.unescapeLeadingUnderscores(o.escapedName)),tS.addRelatedInfo(o,tS.createDiagnosticForNode(r,tS.Diagnostics.This_spread_always_overwrites_this_property)))}}function cm(e,t){return function(e,t){for(var r,n=e.attributes,i=X?tS.createSymbolTable():void 0,a=tS.createSymbolTable(),o=_t,s=!1,c=!1,u=4096,l=fm(dm(e)),_=0,d=n.properties;_<d.length;_++){var p,f,g=d[_],m=g.symbol;tS.isJsxAttribute(g)?(f=am(g,t),u|=3670016&tS.getObjectFlags(f),(p=Dn(4|m.flags,m.escapedName)).declarations=m.declarations,p.parent=m.parent,m.valueDeclaration&&(p.valueDeclaration=m.valueDeclaration),p.type=f,p.target=m,a.set(p.escapedName,p),null!=i&&i.set(p.escapedName,p),g.name.escapedText===l&&(c=!0)):(tS.Debug.assert(282===g.kind),0<a.size&&(o=zl(o,v(),n.symbol,u,!1),a=tS.createSymbolTable()),Na(f=rc(Zh(g.expression,t)))&&(s=!0),rm(f)?(o=zl(o,f,n.symbol,u,!1),i&&sm(f,i,g)):r=r?Qu([r,f]):f)}s||0<a.size&&(o=zl(o,v(),n.symbol,u,!1));var y,h=273===e.parent.kind?e.parent:void 0;return h&&h.openingElement===e&&0<h.children.length&&(y=om(h,t),!s&&l&&""!==l&&(c&&hn(n,tS.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,tS.unescapeLeadingUnderscores(l)),e=(h=Mg(e.attributes))&&Ng(h,l),(h=Dn(4,l)).type=1===y.length?y[0]:e&&Ff(e,Rd)?Iu(y):ku(Ku(y)),h.valueDeclaration=tS.factory.createPropertySignature(void 0,tS.unescapeLeadingUnderscores(l),void 0,void 0),tS.setParent(h.valueDeclaration,n),h.valueDeclaration.symbol=h,(y=tS.createSymbolTable()).set(l,h),o=zl(o,Wi(n.symbol,y,tS.emptyArray,tS.emptyArray,void 0,void 0),n.symbol,u,!1))),s?Fe:r&&o!==_t?Qu([r,o]):r||(o===_t?v():o);function v(){u|=I;var e=Wi(n.symbol,a,tS.emptyArray,tS.emptyArray,void 0,void 0);return e.objectFlags|=1048704|u,e}}(e.parent,t)}function um(e,t){t=dm(t),t=t&&Ti(t),e=t&&On(t,e,788968);return e?Ro(e):Ie}function lm(e){var t=wn(e);if(t.resolvedSymbol)return t.resolvedSymbol;var r=um(uS.IntrinsicElements,e);if(r===Ie)return Q&&hn(e,tS.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,tS.unescapeLeadingUnderscores(uS.IntrinsicElements)),t.resolvedSymbol=Ne;if(!tS.isIdentifier(e.tagName))return tS.Debug.fail();var n=sc(r,e.tagName.escapedText);return n?(t.jsxFlags|=1,t.resolvedSymbol=n):pc(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(hn(e,tS.Diagnostics.Property_0_does_not_exist_on_type_1,tS.idText(e.tagName),"JSX."+uS.IntrinsicElements),t.resolvedSymbol=Ne)}function _m(e){var t=e&&tS.getSourceFileOfNode(e),r=t&&wn(t);if(!r||!1!==r.jsxImplicitImportContainer){if(r&&r.jsxImplicitImportContainer)return r.jsxImplicitImportContainer;t=tS.getJSXRuntimeImport(tS.getJSXImplicitImportBase(G,t),G);if(t){e=yi(e,t,tS.getEmitModuleResolutionKind(G)===tS.ModuleResolutionKind.Classic?tS.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:tS.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,e),e=e&&e!==Ne?Ni(ii(e)):void 0;return r&&(r.jsxImplicitImportContainer=e||!1),e}}}function dm(e){var t=e&&wn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=_m(e);if(r&&r!==Ne||(r=Rn(e,e=mn(e),1920,void 0,e,!1)),r){r=ii(On(Ti(ii(r)),uS.JSX,1920));if(r&&r!==Ne)return t&&(t.jsxNamespace=r),r}t&&(t.jsxNamespace=!1)}t=ii(yu(uS.JSX,1920,void 0));return t!==Ne?t:void 0}function pm(e,t){var r=t&&On(t.exports,e,788968),t=r&&Ro(r),t=t&&Rs(t);if(t){if(0===t.length)return"";if(1===t.length)return t[0].escapedName;1<t.length&&hn(r.declarations[0],tS.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,tS.unescapeLeadingUnderscores(e))}}function fm(e){return pm(uS.ElementChildrenAttributeNameContainer,e)}function gm(e,t){t=um(uS.IntrinsicElements,t);if(t===Ie)return Fe;e=e.value,e=sc(t,tS.escapeLeadingUnderscores(e));if(e)return _o(e);t=pc(t,0);return t||void 0}function mm(e){tS.Debug.assert(im(e.tagName));var t=wn(e);if(t.resolvedJsxElementAttributesType)return t.resolvedJsxElementAttributesType;e=lm(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=_o(e):2&t.jsxFlags?t.resolvedJsxElementAttributesType=pc(Ro(e),0):t.resolvedJsxElementAttributesType=Ie}function ym(e){e=um(uS.ElementClass,e);if(e!==Ie)return e}function hm(e){return um(uS.Element,e)}function vm(e){e=hm(e);if(e)return Ku([e,Je])}function bm(e){var t,r,n,i,a,o,s,c=tS.isJsxOpeningLikeElement(e);function u(){var e=tS.getTextOfNode(a.tagName);return tS.chainDiagnosticMessages(void 0,tS.Diagnostics._0_cannot_be_used_as_a_JSX_component,e)}c&&function(e){wD(e,e.typeArguments);for(var t=new tS.Map,r=0,n=e.attributes.properties;r<n.length;r++){var i=n[r];if(282!==i.kind){var a=i.name,i=i.initializer;if(t.get(a.escapedText))return YD(a,tS.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(a.escapedText,!0),i&&283===i.kind&&!i.expression)return YD(i,tS.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(e),n=e,0===(G.jsx||0)&&hn(n,tS.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===hm(n)&&Q&&hn(n,tS.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),_m(e)||(t=an&&2===G.jsx?tS.Diagnostics.Cannot_find_name_0:void 0,r=mn(e),n=c?e.tagName:e,i=void 0,tS.isJsxOpeningFragment(e)&&"null"===r||(i=Rn(n,r,111551,t,r,!0)),i&&(i.isReferenced=67108863,2097152&i.flags&&!ci(i)&&li(i))),c&&(Xy(c=qy(i=e),e),e=by(i),c=Pc(c),a=i,1===e?(o=vm(a))&&ud(c,o,_n,a.tagName,tS.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,u):0===e?(s=ym(a))&&ud(c,s,_n,a.tagName,tS.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,u):(o=vm(a),s=ym(a),o&&s&&ud(c,Ku([o,s]),_n,a.tagName,tS.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,u)))}function xm(e,t,r){if(524288&e.flags){var n=Is(e);if(n.stringIndexInfo||n.numberIndexInfo&&Yg(t)||Ms(e,t)||r&&!nm(t))return 1}else if(3145728&e.flags&&Dm(e))for(var i=0,a=e.types;i<a.length;i++)if(xm(a[i],t,r))return 1}function Dm(e){return!!(524288&e.flags&&!(512&tS.getObjectFlags(e))||67108864&e.flags||1048576&e.flags&&tS.some(e.types,Dm)||2097152&e.flags&&tS.every(e.types,Dm))}function Sm(e,t){if(!function(e){if(e.expression&&tS.isCommaSequence(e.expression))YD(e.expression,tS.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){t=fv(e.expression,t);return e.dotDotDotToken&&t!==Fe&&!Pd(t)&&hn(e,tS.Diagnostics.JSX_spread_child_must_be_an_array_type),t}return Ie}function Tm(e){return e.valueDeclaration?tS.getCombinedNodeFlags(e.valueDeclaration):0}function Cm(e){if(8192&e.flags||4&tS.getCheckFlags(e))return 1;if(tS.isInJSFile(e.valueDeclaration)){e=e.valueDeclaration.parent;return e&&tS.isBinaryExpression(e)&&3===tS.getAssignmentDeclarationKind(e)}}function Em(e,t,r,n){var i,a=tS.getDeclarationModifierFlagsFromSymbol(n),o=157===e.kind?e.right:195===e.kind?e:e.name;if(t){if(R<2&&km(n))return hn(o,tS.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&a)return hn(o,tS.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,sa(n),ua(Sd(n))),!1}if(128&a&&tS.isThisProperty(e)&&km(n)&&((s=tS.getClassLikeDeclarationOfSymbol(Fi(n)))&&(i=e,!!tS.findAncestor(i,function(e){return!!(tS.isConstructorDeclaration(e)&&tS.nodeIsPresent(e.body)||tS.isPropertyDeclaration(e))||!(!tS.isClassLike(e)&&!tS.isFunctionLikeDeclaration(e))&&"quit"}))))return hn(o,tS.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,sa(n),tS.getTextOfIdentifierOrLiteral(s.name)),!1;if(tS.isPropertyAccessExpression(e)&&tS.isPrivateIdentifier(e.name))return!!tS.getContainingClass(e)||(hn(o,tS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),!1);if(!(24&a))return!0;if(8&a)return!!Mx(e,s=tS.getClassLikeDeclarationOfSymbol(Fi(n)))||(hn(o,tS.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,sa(n),ua(Sd(n))),!1);if(t)return!0;if(!(s=Ox(e,function(e){var t,e=Ro(Ai(e));return t=e,!Dd(n,function(e){return!!(16&tS.getDeclarationModifierFlagsFromSymbol(e))&&!go(t,Sd(e))})&&t?e:void 0}))){t=void 0;if(32&a||!(t=function(e){e=tS.getThisContainer(e,!1);return e&&tS.isFunctionLike(e)?tS.getThisParameter(e):void 0}(e))||!t.type)return hn(o,tS.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,sa(n),ua(Sd(n)||r)),!1;var t=e_(t.type),s=(262144&t.flags?js(t):t).target}return!!(32&a)||(262144&r.flags&&(r=(r.isThisType?js:Ks)(r)),!(!r||!go(r,s))||(hn(o,tS.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,sa(n),ua(s)),!1))}function km(e){return Dd(e,function(e){return!(8192&e.flags)})}function Nm(e){return Om(fv(e),e)}function Am(e){return!!(98304&(X?tp(e):e.flags))}function Fm(e){return Am(e)?op(e):e}function Pm(e,t){hn(e,32768&t?65536&t?tS.Diagnostics.Object_is_possibly_null_or_undefined:tS.Diagnostics.Object_is_possibly_undefined:tS.Diagnostics.Object_is_possibly_null)}function wm(e,t){hn(e,32768&t?65536&t?tS.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:tS.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:tS.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Im(e,t,r){if(X&&2&e.flags)return hn(t,tS.Diagnostics.Object_is_of_type_unknown),Ie;var n=98304&(X?tp(e):e.flags);if(n){r(t,n);n=op(e);return 229376&n.flags?Ie:n}return e}function Om(e,t){return Im(e,t,Pm)}function Mm(e,t){e=Om(e,t);return e!==Ie&&16384&e.flags&&hn(t,tS.Diagnostics.Object_is_possibly_undefined),e}function Lm(e){return 32&e.flags?(r=fv((t=e).expression),n=_p(r,t.expression),lp(Um(t,t.expression,Om(n,t.expression),t.name),t,n!==r)):Um(e,e.expression,Nm(e.expression),e.name);var t,r,n}function Rm(e){return Um(e,e.left,Nm(e.left),e.right)}function Bm(e){for(;207===e.parent.kind;)e=e.parent;return tS.isCallOrNewExpression(e.parent)&&e.parent.expression===e}function jm(e,t){for(var r=tS.getContainingClass(t);r;r=tS.getContainingClass(r)){var n=r.symbol,i=tS.getSymbolNameForPrivateIdentifier(n,e),i=n.members&&n.members.get(i)||n.exports&&n.exports.get(i);if(i)return i}}function Jm(e,t){return sc(e,t.escapedName)}function zm(e,t){return(ja(t)||tS.isThisProperty(e)&&Ja(t))&&tS.getThisContainer(e,!0)===za(t)}function Um(e,t,r,n){var i=wn(t).resolvedSymbol,a=tS.getAssignmentTargetKind(e),o=Ys(0!==a||Bm(e)?hp(r):r);tS.isPrivateIdentifier(n)&&CD(e,1048576);var s,c,u,l,_=Na(o)||o===$e;if(tS.isPrivateIdentifier(n)){var d=jm(n.escapedText,n);if(_){if(d)return o;if(!tS.getContainingClass(n))return YD(n,tS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Fe}if(!(s=d?Jm(r,d):void 0)&&function(e,r,t){var n,i=Rs(e);i&&tS.forEach(i,function(e){var t=e.valueDeclaration;if(t&&tS.isNamedDeclaration(t)&&tS.isPrivateIdentifier(t.name)&&t.name.escapedText===r.escapedText)return n=e,!0});var a=jn(r);if(n){var o=n.valueDeclaration,s=tS.getContainingClass(o);if(tS.Debug.assert(!!s),t){i=t.valueDeclaration,t=tS.getContainingClass(i);if(tS.Debug.assert(!!t),tS.findAncestor(t,function(e){return s===e})){e=hn(r,tS.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,a,ua(e));return tS.addRelatedInfo(e,tS.createDiagnosticForNode(i,tS.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,a),tS.createDiagnosticForNode(o,tS.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,a)),1}}return hn(r,tS.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,a,jn(s.name||nS)),1}}(r,n,d))return Ie}else{if(_)return tS.isIdentifier(t)&&i&&og(i,e),o;s=sc(o,n.escapedText)}if(!tS.isIdentifier(t)||!i||s&&tD(s)||og(i,e),s){if(134217728&Tm(s)&&_l(e,s)&&bn(!1,n,tS.Diagnostics._0_is_deprecated,n.escapedText),c=e,d=n,(i=(_=s).valueDeclaration)&&!tS.getSourceFileOfNode(c).isDeclarationFile&&(l=tS.idText(d),!function(e){return!!tS.findAncestor(e,function(e){switch(e.kind){case 163:return!0;case 288:case 165:case 167:case 168:case 290:case 158:case 228:case 283:case 280:case 281:case 282:case 275:case 223:case 286:return!1;default:return!tS.isExpressionNode(e)&&"quit"}})}(c)||tS.isAccessExpression(c)&&tS.isAccessExpression(c.expression)||Mn(i,d)||function(e){if(!(32&e.parent.flags))return!1;var t=_o(e.parent);for(;;){if(!(t=t.symbol&&function(e){e=ko(e);return 0!==e.length?Qu(e):void 0}(t)))return!1;var r=sc(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(_)?252!==i.kind||173===c.parent.kind||8388608&i.flags||Mn(i,d)||(u=hn(d,tS.Diagnostics.Class_0_used_before_its_declaration,l)):u=hn(d,tS.Diagnostics.Property_0_is_used_before_its_initialization,l),u&&tS.addRelatedInfo(u,tS.createDiagnosticForNode(i,tS.Diagnostics._0_is_declared_here,l))),Ym(s,e,107===t.kind),wn(e).resolvedSymbol=s,Em(e,105===t.kind,o,s),Lh(e,s,a))return hn(n,tS.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,tS.idText(n)),Ie;l=zm(e,s)?Pe:ag(_o(s),e)}else{a=tS.isPrivateIdentifier(n)||0!==a&&ml(r)&&!hl(r)?void 0:dc(o,0);if(!a||!a.type)return ul(r)?Fe:r.symbol===de?(de.exports.has(n.escapedText)&&418&de.exports.get(n.escapedText).flags?hn(n,tS.Diagnostics.Property_0_does_not_exist_on_type_1,tS.unescapeLeadingUnderscores(n.escapedText),ua(r)):Q&&hn(n,tS.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ua(r)),Fe):(n.escapedText&&!Jn(e)&&function(e,t){var r,n,i,a,o;if(!tS.isPrivateIdentifier(e)&&1048576&t.flags&&!(131068&t.flags))for(var s=0,c=t.types;s<c.length;s++){var u=c[s];if(!sc(u,e.escapedText)&&!dc(u,0)){r=tS.chainDiagnosticMessages(r,tS.Diagnostics.Property_0_does_not_exist_on_type_1,tS.declarationNameToString(e),ua(u));break}}Km(e.escapedText,t)?r=tS.chainDiagnosticMessages(r,tS.Diagnostics.Property_0_is_a_static_member_of_type_1,tS.declarationNameToString(e),ua(t)):(a=Lv(t))&&sc(a,e.escapedText)?(r=tS.chainDiagnosticMessages(r,tS.Diagnostics.Property_0_does_not_exist_on_type_1,tS.declarationNameToString(e),ua(t)),n=tS.createDiagnosticForNode(e,tS.Diagnostics.Did_you_forget_to_use_await)):(i=tS.declarationNameToString(e),l=ua(t),void 0!==(o=function(e,t){var r=Ys(t).symbol;if(!r)return;for(var n=tS.getScriptTargetFeatures(),t=tS.getOwnKeys(n),i=0,a=t;i<a.length;i++){var o=a[i],s=n[o][tS.symbolName(r)];if(void 0!==s&&tS.contains(s,e))return o}}(i,t))?r=tS.chainDiagnosticMessages(r,tS.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,i,l,o):void 0!==(a=qm(e,t))?(o=tS.symbolName(a),r=tS.chainDiagnosticMessages(r,tS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,i,l,o),n=a.valueDeclaration&&tS.createDiagnosticForNode(a.valueDeclaration,tS.Diagnostics._0_is_declared_here,o)):r=tS.chainDiagnosticMessages(oc(r,t),tS.Diagnostics.Property_0_does_not_exist_on_type_1,i,l));var l=tS.createDiagnosticForNodeFromMessageChain(e,r);n&&tS.addRelatedInfo(l,n),an.add(l)}(n,hl(r)?o:r),Ie);a.isReadonly&&(tS.isAssignmentTarget(e)||tS.isDeleteTarget(e))&&hn(e,tS.Diagnostics.Index_signature_in_type_0_only_permits_reading,ua(o)),l=G.noUncheckedIndexedAccess&&!tS.isAssignmentTarget(e)?Ku([a.type,Re]):a.type}return Vm(e,s,l,n)}function Vm(e,t,r,n){var i=tS.getAssignmentTargetKind(e);if(!tS.isAccessExpression(e)||1===i||t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags))return r;if(r===Pe)return Va(e,t);var a,o,s=!1;X&&T&&107===e.expression.kind?(a=t&&t.valueDeclaration)&&sx(a)&&(166!==(o=$f(e)).kind||o.parent!==a.parent||8388608&a.flags||(s=!0)):X&&t&&t.valueDeclaration&&tS.isPropertyAccessExpression(t.valueDeclaration)&&tS.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&$f(e)===$f(t.valueDeclaration)&&(s=!0);e=Zf(e,r,s?ap(r):r);return s&&!(32768&tp(r))&&32768&tp(e)?(hn(n,tS.Diagnostics.Property_0_is_used_before_being_assigned,sa(t)),r):i?Ud(e):e}function Km(e,t){e=t.symbol&&sc(_o(t.symbol),e);return void 0!==e&&e.valueDeclaration&&tS.hasSyntacticModifier(e.valueDeclaration,32)}function qm(e,t){return Qm(tS.isString(e)?e:tS.idText(e),Rs(t),111551)}function Wm(e,t){var r=tS.isString(e)?e:tS.idText(e),e=Rs(t),t="for"===r?tS.find(e,function(e){return"htmlFor"===tS.symbolName(e)}):"class"===r?tS.find(e,function(e){return"className"===tS.symbolName(e)}):void 0;return null!=t?t:Qm(r,e,111551)}function Hm(e,t){t=qm(e,t);return t&&tS.symbolName(t)}function Gm(e,n,t){return tS.Debug.assert(void 0!==n,"outername should always be defined"),Bn(e,n,t,void 0,n,!1,!1,function(e,t,r){return tS.Debug.assertEqual(n,t,"name should equal outerName"),On(e,t,r)||Qm(tS.unescapeLeadingUnderscores(t),tS.arrayFrom(e.values()),r)})}function Xm(e,t){return t.exports&&Qm(tS.idText(e),Di(t),2623475)}function Qm(e,t,r){return tS.getSpellingSuggestion(e,t,function(e){var t=tS.symbolName(e);if(tS.startsWith(t,'"'))return;if(e.flags&r)return t;if(2097152&e.flags){e=function(e){if(Pn(e).target!==Ae)return ai(e)}(e);if(e&&e.flags&r)return t}return})}function Ym(e,t,r){var n=e&&106500&e.flags&&e.valueDeclaration;if(n){var i=tS.hasEffectiveModifier(n,8),n=tS.isNamedDeclaration(e.valueDeclaration)&&tS.isPrivateIdentifier(e.valueDeclaration.name);if((i||n)&&(!t||!tS.isWriteOnlyAccess(t)||65536&e.flags)){if(r){t=tS.findAncestor(t,tS.isFunctionLikeDeclaration);if(t&&t.symbol===e)return}(1&tS.getCheckFlags(e)?Pn(e).target:e).isReferenced=67108863}}}function Zm(t,r,n,e){if(e===Ie||Na(e))return!0;var i=sc(e,n);if(i){if(tS.isPropertyAccessExpression(t)&&i.valueDeclaration&&tS.isPrivateIdentifierPropertyDeclaration(i.valueDeclaration)){var a=tS.getContainingClass(i.valueDeclaration);return!tS.isOptionalChain(t)&&!!tS.findAncestor(t,function(e){return e===a})}return Em(t,r,e,i)}return tS.isInJSFile(t)&&0!=(1048576&e.flags)&&e.types.some(function(e){return Zm(t,r,n,e)})}function $m(e){var t,r=tS.skipParentheses(e);if(78===r.kind){var n=tf(r);if(3&n.flags)for(var i=e,a=e.parent;a;){if(238===a.kind&&i===a.statement&&function(e){var t=e.initializer;if(250===t.kind){e=t.declarations[0];if(e&&!tS.isBindingPattern(e.name))return Ai(e)}else if(78===t.kind)return tf(t)}(a)===n&&(pc(t=_v(a.expression),1)&&!pc(t,0)))return 1;a=(i=a).parent}}}function ey(e){return 32&e.flags?(r=fv((t=e).expression),n=_p(r,t.expression),lp(ty(t,Om(n,t.expression)),t,n!==r)):ty(e,Nm(e.expression));var t,r,n}function ty(e,t){var r=0!==tS.getAssignmentTargetKind(e)||Bm(e)?hp(t):t,n=e.argumentExpression,t=fv(n);if(r===Ie||r===$e)return r;if(Vh(r)&&!tS.isStringLiteralLike(n))return hn(n,tS.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ie;r=Cl(r,$m(n)?Ve:t,void 0,e,16|(tS.isAssignmentTarget(e)?2|(ml(r)&&!hl(r)?1:0):0))||Ie;return Av(Vm(e,r.symbol,r,n),e)}function ry(e,t,r){if(t!==Ie&&tS.isWellKnownSymbolSyntactically(e))if(0!=(12288&t.flags)){var n=e.expression,i=tf(n);if(i){t=vu(!0);if(t){if(i===t)return 1;r&&hn(n,tS.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object)}}}else r&&hn(e,tS.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,tS.getTextOfNode(e))}function ny(e){return tS.isCallOrNewExpression(e)||tS.isTaggedTemplateExpression(e)||tS.isJsxOpeningLikeElement(e)}function iy(e){return ny(e)&&tS.forEach(e.typeArguments,Sx),205===e.kind?fv(e.template):tS.isJsxOpeningLikeElement(e)?fv(e.attributes):161!==e.kind&&tS.forEach(e.arguments,function(e){fv(e)}),gr}function ay(e){return iy(e),mr}function oy(e){return!!e&&(220===e.kind||227===e.kind&&e.isSpread)}function sy(e){return tS.findIndex(e,oy)}function cy(e){return!!(16384&e.flags)}function uy(e){return!!(49155&e.flags)}function ly(e,t,r,n){void 0===n&&(n=!1);var i=!1,a=dh(r),o=ph(r);if(205===e.kind){var s,c=t.length;i=218===e.template.kind?(s=tS.last(e.template.templateSpans),tS.nodeIsMissing(s.literal)||!!s.literal.isUnterminated):(s=e.template,tS.Debug.assert(14===s.kind),!!s.isUnterminated)}else if(161===e.kind)c=Ey(e,r);else if(tS.isJsxOpeningLikeElement(e)){if(i=e.attributes.end===e.end)return 1;c=0===o?t.length:1,a=0===t.length?a:1,o=Math.min(o,1)}else{if(!e.arguments)return tS.Debug.assert(204===e.kind),0===ph(r);c=n?t.length+1:t.length,i=e.arguments.end===e.end;t=sy(t);if(0<=t)return t>=ph(r)&&(fh(r)||t<dh(r))}if(fh(r)||!(a<c)){if(i||o<=c)return 1;for(var u=c;u<o;u++)if(131072&wf(uh(r,u),tS.isInJSFile(e)&&!X?uy:cy).flags)return;return 1}}function _y(e,t){var r=tS.length(e.typeParameters),e=Dc(e.typeParameters);return!tS.some(t)||t.length>=e&&t.length<=r}function dy(e){return fy(e,0,!1)}function py(e){return fy(e,0,!1)||fy(e,1,!1)}function fy(e,t,r){if(524288&e.flags){e=Is(e);if(r||0===e.properties.length&&!e.stringIndexInfo&&!e.numberIndexInfo){if(0===t&&1===e.callSignatures.length&&0===e.constructSignatures.length)return e.callSignatures[0];if(1===t&&1===e.constructSignatures.length&&0===e.callSignatures.length)return e.constructSignatures[0]}}}function gy(e,t,r,n){var i=Tp(e.typeParameters,e,0,n),n=gh(t),n=r&&(n&&262144&n.flags?r.nonFixingMapper:r.mapper);return Dp(n?m_(t,n):t,e,function(e,t){Kp(i.inferences,e,t)}),r||Sp(t,e,function(e,t){Kp(i.inferences,e,t,64)}),Mc(e,$p(i),tS.isInJSFile(t.declaration))}function my(e,t,r,n,i){if(tS.isJsxOpeningLikeElement(e))return o=n,s=i,c=Jg(c=t,a=e),o=Yh(a.attributes,c,s,o),Kp(s.inferences,o,c),$p(s);var a,o,s,c;161===e.kind||(a=Bg(e,tS.every(t.typeParameters,function(e){return!!Xs(e)})?8:0))&&(o=jg(e),s=(s=dy(c=C_(a,Fp((void 0===(c=1)&&(c=0),(s=o)&&Cp(tS.map(s.inferences,Ap),s.signature,s.flags|c,s.compareTypes))))))&&s.typeParameters?Jc(Lc(s,s.typeParameters)):c,c=Pc(t),Kp(i.inferences,s,c,64),s=Tp(t.typeParameters,t,i.flags),o=C_(a,o&&o.returnMapper),Kp(s.inferences,o,c),i.returnMapper=tS.some(s.inferences,cv)?Fp((c=s,(s=tS.filter(c.inferences,cv)).length?Cp(tS.map(s,Ap),c.signature,c.flags,c.compareTypes):void 0)):void 0);var u=mh(t),l=u?Math.min(dh(t)-1,r.length):r.length;u&&262144&u.flags&&((_=tS.find(i.inferences,function(e){return e.typeParameter===u}))&&(_.impliedArity=tS.findIndex(r,oy,l)<0?r.length-l:void 0));var _=Ac(t);_&&(e=(e=Sy(e))?fv(e):Ye,Kp(i.inferences,e,_));for(var d=0;d<l;d++){var p,f=r[d];222!==f.kind&&(f=Yh(f,p=uh(t,d),i,n),Kp(i.inferences,f,p))}return u&&(_=hy(r,l,r.length,u,i,n),Kp(i.inferences,_,u)),$p(i)}function yy(e){return 1048576&e.flags?If(e,yy):1&e.flags||Id(Ks(e)||e)?e:Hd(e)?Iu($c(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Iu([e],[8])}function hy(e,t,r,n,i,a){if(r-1<=t&&oy(o=e[r-1]))return yy(227===o.kind?o.type:Yh(o.expression,n,i,a));for(var o,s,c,u=[],l=[],_=[],d=t;d<r;d++)oy(o=e[d])?Md(s=227===o.kind?o.type:fv(o.expression))?(u.push(s),l.push(8)):(u.push(Eb(33,s,Re,220===o.kind?o.expression:o)),l.push(4)):(s=Yh(o,c=Sl(n,Xl(d-t)),i,a),c=Jh(c,406978556),u.push((c?Hl:Vd)(s)),l.push(1)),227===o.kind&&o.tupleNameSource&&_.push(o.tupleNameSource);return Iu(u,l,!1,tS.length(_)===tS.length(u)?_:void 0)}function vy(e,t,r,n){for(var i=tS.isInJSFile(e.declaration),a=e.typeParameters,o=Sc(tS.map(t,e_),a,Dc(a),i),s=0;s<t.length;s++){tS.Debug.assert(void 0!==a[s],"Should not call checkTypeArguments with too many type arguments");var c=js(a[s]);if(c){var u=r&&n?function(){return tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,l=n||tS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1,_=_||a_(a,o),d=o[s];if(!V_(d,ns(C_(c,_),d),r?t[s]:void 0,l,u))return}}return o}function by(e){if(im(e.tagName))return 2;e=Ys(fv(e.tagName));return tS.length(uc(e,1))?0:tS.length(uc(e,0))?1:2}function xy(g,e,t,r,m,n,y){e=Jg(e,g),r=Yh(g.attributes,e,void 0,r);return function(){var e=tS.isJsxOpeningElement(g)||tS.isJsxSelfClosingElement(g)&&!im(g.tagName)?fv(g.tagName):void 0;if(!e)return 1;var t=uc(e,0);if(!tS.length(t))return 1;var r=DD(g);if(!r)return 1;e=pi(r,111551,!0,!1,g);if(!e)return 1;e=uc(_o(e),0);if(!tS.length(e))return 1;for(var n=!1,i=0,a=0,o=e;a<o.length;a++){var s=uc(uh(o[a],0),0);if(tS.length(s))for(var c=0,u=s;c<u.length;c++){var l=u[c];if(n=!0,fh(l))return 1;l=dh(l);i<l&&(i=l)}}if(!n)return 1;for(var _=1/0,d=0,p=t;d<p.length;d++){var f=ph(p[d]);f<_&&(_=f)}if(_<=i)return 1;m&&(t=tS.createDiagnosticForNode(g.tagName,tS.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,tS.entityNameToString(g.tagName),_,tS.entityNameToString(r),i),(r=null===(r=Bx(g.tagName))||void 0===r?void 0:r.valueDeclaration)&&tS.addRelatedInfo(t,tS.createDiagnosticForNode(r,tS.Diagnostics._0_is_declared_here,tS.entityNameToString(g.tagName))),y&&y.skipLogging&&(y.errors||(y.errors=[])).push(t),y.skipLogging||an.add(t));return}()&&q_(r,e,t,m?g.tagName:void 0,g.attributes,void 0,n,y)}function Dy(e,t,r,n,i,a,o){var s={errors:void 0,skipLogging:!0};if(tS.isJsxOpeningLikeElement(e))return xy(e,r,n,i,a,o,s)?void 0:(tS.Debug.assert(!a||!!s.errors,"jsx should have errors when reporting errors"),s.errors||tS.emptyArray);var c=Ac(r);if(c&&c!==Ye&&204!==e.kind){var u=Sy(e),l=void 0;u?(l=fv(u),tS.isOptionalChainRoot(u.parent)?l=op(l):tS.isOptionalChain(u.parent)&&(l=up(l))):l=Ye;var _=a?u||e:void 0,u=tS.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!ud(l,c,n,_,u,o,s))return tS.Debug.assert(!a||!!s.errors,"this parameter should have errors when reporting errors"),s.errors||tS.emptyArray}for(var d=tS.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,c=mh(r),p=c?Math.min(dh(r)-1,t.length):t.length,f=0;f<p;f++){var g=t[f];if(222!==g.kind){var m=uh(r,f),y=Yh(g,m,void 0,i),y=4&i?fp(y):y;if(!q_(y,m,n,a?g:void 0,g,d,o,s))return tS.Debug.assert(!a||!!s.errors,"parameter should have errors when reporting errors"),h(g,y,m),s.errors||tS.emptyArray}}if(c){u=hy(t,p,t.length,c,void 0,i),_=a?p<t.length?t[p]:e:void 0;if(!ud(u,c,n,_,d,void 0,s))return tS.Debug.assert(!a||!!s.errors,"rest parameter should have errors when reporting errors"),h(_,u,c),s.errors||tS.emptyArray}function h(e,t,r){e&&a&&s.errors&&s.errors.length&&(Mv(r)||(t=Mv(t))&&od(t,r,n)&&tS.addRelatedInfo(s.errors[0],tS.createDiagnosticForNode(e,tS.Diagnostics.Did_you_forget_to_use_await)))}}function Sy(e){if(203===e.kind){e=tS.skipOuterExpressions(e.expression);if(tS.isAccessExpression(e))return e.expression}}function Ty(e,t,r,n){n=tS.parseNodeFactory.createSyntheticExpression(t,r,n);return tS.setTextRange(n,e),tS.setParent(n,e),n}function Cy(e){if(205===e.kind){var t=e.template,r=[Ty(t,(rr=rr||hu("TemplateStringsArray",0,!0))||lt)];return 218===t.kind&&tS.forEach(t.templateSpans,function(e){r.push(e.expression)}),r}if(161===e.kind)return function(e){var t=e.parent,r=e.expression;switch(t.kind){case 252:case 221:return[Ty(r,_o(Ai(t)))];case 160:var n=t.parent;return[Ty(r,166===t.parent.kind?_o(Ai(n)):Ie),Ty(r,Fe),Ty(r,Ve)];case 163:case 165:case 167:case 168:n=163!==t.kind&&0!==R;return[Ty(r,function(e){var t=Ai(e.parent);return(tS.hasSyntacticModifier(e,32)?_o:Ro)(t)}(t)),Ty(r,function(e){var t=e.name;switch(t.kind){case 78:return Xl(tS.idText(t));case 8:case 10:return Xl(t.text);case 158:var r=Zg(t);return zh(r,12288)?r:Ue;default:return tS.Debug.fail("Unsupported property name.")}}(t)),Ty(r,n?Eu(jx(t)):Fe)]}return tS.Debug.fail()}(e);if(tS.isJsxOpeningLikeElement(e))return 0<e.attributes.properties.length||tS.isJsxOpeningElement(e)&&0<e.parent.children.length?[e.attributes]:tS.emptyArray;var a=e.arguments||tS.emptyArray,e=sy(a);if(0<=e){for(var o=a.slice(0,e),s=e;s<a.length;s++)!function(){var n=a[s],i=220===n.kind&&(Pr?fv:Zh)(n.expression);i&&Hd(i)?tS.forEach($c(i),function(e,t){var r=i.target.elementFlags[t],t=Ty(n,4&r?ku(e):e,!!(12&r),null===(r=i.target.labeledElementDeclarations)||void 0===r?void 0:r[t]);o.push(t)}):o.push(n)}();return o}return a}function Ey(e,t){switch(e.parent.kind){case 252:case 221:return 1;case 163:return 2;case 165:case 167:case 168:return 0===R||t.parameters.length<=2?2:3;case 160:return 3;default:return tS.Debug.fail()}}function ky(e,t){var r,n,i=tS.getSourceFileOfNode(e);return e=tS.isPropertyAccessExpression(e.expression)?(r=(n=tS.getErrorSpanForNode(i,e.expression.name)).start,t?n.length:e.end-r):(r=(n=tS.getErrorSpanForNode(i,e.expression)).start,t?n.length:e.end-r),{start:r,length:e,sourceFile:i}}function Ny(e,t,r,n,i,a){if(tS.isCallExpression(e)){var o=ky(e),s=o.sourceFile,c=o.start,o=o.length;return tS.createFileDiagnostic(s,c,o,t,r,n,i,a)}return tS.createDiagnosticForNode(e,t,r,n,i,a)}function Ay(e,t,r){for(var n,i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=r.length,u=0,l=t;u<l.length;u++){var _=l[u],d=ph(_),p=dh(_);d<c&&o<d&&(o=d),c<p&&p<s&&(s=p),d<i&&(i=d,n=_),a=Math.max(a,p)}var f,g=tS.some(t,fh),m=!g&&i<a?i+"-"+a:i,y=-1<sy(r);c<=a&&y&&c--;var h,t=g||y?g&&y?tS.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:g?tS.Diagnostics.Expected_at_least_0_arguments_but_got_1:tS.Diagnostics.Expected_0_arguments_but_got_1_or_more:1===m&&0===c&&function(e){if(tS.isCallExpression(e)&&tS.isIdentifier(e.expression)){var t=Rn(e.expression,e.expression.escapedText,111551,void 0,void 0,!1),e=null==t?void 0:t.valueDeclaration;if(e&&tS.isParameter(e)&&Vg(e.parent)&&tS.isNewExpression(e.parent.parent)&&tS.isIdentifier(e.parent.parent.expression)){t=Du(!1);return t?Bx(e.parent.parent.expression,!0)===t:void 0}}}(e)?tS.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:tS.Diagnostics.Expected_0_arguments_but_got_1;if(n&&ph(n)>c&&n.declaration&&((v=n.declaration.parameters[n.thisParameter?c+1:c])&&(f=tS.createDiagnosticForNode(v,tS.isBindingPattern(v.name)?tS.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:tS.isRestParameter(v)?tS.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:tS.Diagnostics.An_argument_for_0_was_not_provided,v.name?tS.isBindingPattern(v.name)?void 0:tS.idText(tS.getFirstIdentifier(v.name)):c))),i<c&&c<a)return Ny(e,tS.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c,o,s);if(!y&&c<i){var v=Ny(e,t,m,c);return f?tS.addRelatedInfo(v,f):v}g||y?(h=tS.factory.createNodeArray(r),y&&c&&(b=tS.elementAt(r,sy(r)+1)||void 0,h=tS.factory.createNodeArray(r.slice(c<a&&b?r.indexOf(b):Math.min(a,r.length-1))))):h=tS.factory.createNodeArray(r.slice(a));var b=tS.first(h).pos,r=tS.last(h).end;r===b&&r++,tS.setTextRangePosEnd(h,b,r);m=tS.createDiagnosticForNodeArray(tS.getSourceFileOfNode(e),h,t,m,c);return f?tS.addRelatedInfo(m,f):m}function Fy(u,e,t,r,n,i){var l,a=205===u.kind,o=161===u.kind,s=tS.isJsxOpeningLikeElement(u),c=!t&&M;o||(l=u.typeArguments,(a||s||105!==u.expression.kind)&&tS.forEach(l,Sx));var _=t||[];if(!function(e,t,r){var n,i,a,o,s=0,c=-1;tS.Debug.assert(!t.length);for(var u=0,l=e;u<l.length;u++){var _=l[u],d=_.declaration&&Ai(_.declaration),p=_.declaration&&_.declaration.parent;i&&d!==i?(a=s=t.length,n=p):n&&p===n?a+=1:(n=p,a=s),i=d,xS(_)?(o=++c,s++):o=a,t.splice(o,0,r?cs(_,r):_)}}(e,_,n),!_.length)return c&&an.add(Ny(u,tS.Diagnostics.Call_target_does_not_contain_any_signatures)),ay(u);var d,p,f,g,m=Cy(u),n=1===_.length&&!_[0].typeParameters,y=o||n||!tS.some(m,A_)?0:4,r=!!(16&r)&&203===u.kind&&u.arguments.hasTrailingComma;if(1<_.length&&(w=O(_,un,n,r)),w=w||O(_,_n,n,r))return w;if(c)if(d)if(1===d.length||3<d.length){var h,v=d[d.length-1];3<d.length&&(h=tS.chainDiagnosticMessages(h,tS.Diagnostics.The_last_overload_gave_the_following_error),h=tS.chainDiagnosticMessages(h,tS.Diagnostics.No_overload_matches_this_call));var b=Dy(u,m,v,_n,0,!0,function(){return h});if(b)for(var x=0,D=b;x<D.length;x++){var S=D[x];v.declaration&&3<d.length&&tS.addRelatedInfo(S,tS.createDiagnosticForNode(v.declaration,tS.Diagnostics.The_last_overload_is_declared_here)),I(v,S),an.add(S)}else tS.Debug.fail("No error for last overload signature")}else{for(var T=[],C=0,E=Number.MAX_VALUE,k=0,N=0,A=0,F=d;A<F.length;A++)!function(e){var t=Dy(u,m,e,_n,0,!0,function(){return tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Overload_0_of_1_2_gave_the_following_error,N+1,_.length,ca(e))});t?(t.length<=E&&(E=t.length,k=N),C=Math.max(C,t.length),T.push(t)):tS.Debug.fail("No error for 3 or fewer overload signatures"),N++}(F[A]);var P=1<C?T[k]:tS.flatten(T);tS.Debug.assert(0<P.length,"No errors reported for 3 or fewer overload signatures");var r=tS.chainDiagnosticMessages(tS.map(P,function(e){return"string"==typeof e.messageText?e:e.messageText}),tS.Diagnostics.No_overload_matches_this_call),w=__spreadArrays(tS.flatMap(P,function(e){return e.relatedInformation})),c=void 0;c=tS.every(P,function(e){return e.start===P[0].start&&e.length===P[0].length&&e.file===P[0].file})?{file:(b=P[0]).file,start:b.start,length:b.length,code:r.code,category:r.category,messageText:r,relatedInformation:w}:tS.createDiagnosticForNodeFromMessageChain(u,r,w),I(d[0],c),an.add(c)}else p?an.add(Ay(u,[p],m)):f?vy(f,u.typeArguments,!0,i):0===(g=tS.filter(e,function(e){return _y(e,l)})).length?an.add(function(e,t,r){var n=r.length;if(1===t.length){var i=Dc((l=t[0]).typeParameters),a=tS.length(l.typeParameters);return tS.createDiagnosticForNodeArray(tS.getSourceFileOfNode(e),r,tS.Diagnostics.Expected_0_type_arguments_but_got_1,i<a?i+"-"+a:i,n)}for(var o=-1/0,s=1/0,c=0,u=t;c<u.length;c++){var l,_=Dc((l=u[c]).typeParameters),a=tS.length(l.typeParameters);n<_?s=Math.min(s,_):a<n&&(o=Math.max(o,a))}return o!==-1/0&&s!==1/0?tS.createDiagnosticForNodeArray(tS.getSourceFileOfNode(e),r,tS.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,n,o,s):tS.createDiagnosticForNodeArray(tS.getSourceFileOfNode(e),r,tS.Diagnostics.Expected_0_type_arguments_but_got_1,o===-1/0?s:o,n)}(u,e,l)):o?i&&an.add(Ny(u,i)):an.add(Ay(u,g,m));return o=u,i=_,g=m,t=!!t,tS.Debug.assert(0<i.length),Cx(o),t||1===i.length||i.some(function(e){return!!e.typeParameters})?function(e,t,r){var n=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=dh(a);if(fh(a)||t<=o)return i;n<o&&(n=o,r=i)}return r}(t,void 0===pe?r.length:pe),i=t[n],a=i.typeParameters;if(!a)return i;var o=ny(e)?e.typeArguments:void 0,r=o?Rc(i,function(e,t,r){var n=e.map(jx);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(js(t[n.length])||Zp(r));return n}(o,a,tS.isInJSFile(e))):function(e,t,r,n){t=Tp(t,r,tS.isInJSFile(e)?2:0),t=my(e,r,n,12,t);return Rc(r,t)}(e,a,i,r);return t[n]=r}(o,i,g):function(r){var e,t=tS.mapDefined(r,function(e){return e.thisParameter});t.length&&(e=wy(t,t.map(ah)));for(var n=tS.minAndMax(r,Py),i=n.min,a=n.max,o=[],s=0;s<a;s++)!function(t){var e=tS.mapDefined(r,function(e){return bS(e)?t<e.parameters.length-1?e.parameters[t]:tS.last(e.parameters):t<e.parameters.length?e.parameters[t]:void 0});tS.Debug.assert(0!==e.length),o.push(wy(e,tS.mapDefined(r,function(e){return lh(e,t)})))}(s);var c=tS.mapDefined(r,function(e){return bS(e)?tS.last(e.parameters):void 0}),t=0;0!==c.length&&(n=ku(Ku(tS.mapDefined(r,Oc),2)),o.push(Iy(c,n)),t|=1);r.some(xS)&&(t|=2);return as(r[0].declaration,void 0,e,o,Qu(r.map(Pc)),void 0,i,t)}(i);function I(e,t){var r,n=d,i=p,a=f,e=(null===(r=null===(o=e.declaration)||void 0===o?void 0:o.symbol)||void 0===r?void 0:r.declarations)||tS.emptyArray,o=1<e.length?tS.find(e,function(e){return tS.isFunctionLikeDeclaration(e)&&tS.nodeIsPresent(e.body)}):void 0;o&&(e=!(r=Tc(o)).typeParameters,O([r],_n,e)&&tS.addRelatedInfo(t,tS.createDiagnosticForNode(o,tS.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))),d=n,p=i,f=a}function O(e,t,r,n){if(void 0===n&&(n=!1),f=p=d=void 0,r){var i=e[0];return tS.some(l)||!ly(u,m,i,n)?void 0:Dy(u,m,i,t,0,!1,void 0)?void(d=[i]):i}for(var a=0;a<e.length;a++)if(_y(i=e[a],l)&&ly(u,m,i,n)){var o=void 0,s=void 0;if(i.typeParameters){var c=void 0;if(tS.some(l)){if(!(c=vy(i,l,!1))){f=i;continue}}else s=Tp(i.typeParameters,i,tS.isInJSFile(u)?2:0),c=my(u,i,m,8|y,s),y|=4&s.flags?8:0;if(o=Mc(i,c,tS.isInJSFile(i.declaration),s&&s.inferredTypeParameters),mh(i)&&!ly(u,m,o,n)){p=o;continue}}else o=i;if(!Dy(u,m,o,t,y,!1,void 0)){if(y){if(y=0,s){o=Mc(i,c=my(u,i,m,y,s),tS.isInJSFile(i.declaration),s&&s.inferredTypeParameters);if(mh(i)&&!ly(u,m,o,n)){p=o;continue}}if(Dy(u,m,o,t,y,!1,void 0)){(d=d||[]).push(o);continue}}return e[a]=o}(d=d||[]).push(o)}}}function Py(e){var t=e.parameters.length;return bS(e)?t-1:t}function wy(e,t){return Iy(e,Ku(t,2))}function Iy(e,t){return pp(tS.first(e),t)}function Oy(e){return!(!e.typeParameters||!dD(Pc(e)))}function My(e,t,r,n){return Na(e)||Na(t)&&262144&e.flags||!r&&!n&&!(1179648&t.flags)&&j_(e,Ct)}function Ly(e,t,r){e.arguments&&R<1&&(0<=(a=sy(e.arguments))&&hn(e.arguments[a],tS.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher));var n=Nm(e.expression);if(n===$e)return hr;if((n=Ys(n))===Ie)return ay(e);if(Na(n))return e.typeArguments&&hn(e,tS.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),iy(e);var i=uc(n,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;var r=t.declaration,n=tS.getSelectedEffectiveModifierFlags(r,24);if(!n||166!==r.kind)return!0;var i=tS.getClassLikeDeclarationOfSymbol(r.parent.symbol),t=Ro(r.parent.symbol);if(Mx(e,i))return!0;i=tS.getContainingClass(e);if(i&&16&n){i=jx(i);if(function e(t,r){var n=ko(r);if(!tS.length(n))return!1;var r=n[0];if(2097152&r.flags){for(var n=r.types,i=ms(n),a=0,o=0,s=r.types;o<s.length;o++){var c=s[o];if(!i[a]&&3&tS.getObjectFlags(c)){if(c.symbol===t)return!0;if(e(t,c))return!0}a++}return!1}if(r.symbol===t)return!0;return e(t,r)}(r.parent.symbol,i))return!0}8&n&&hn(e,tS.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ua(t));16&n&&hn(e,tS.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ua(t));return!1}(e,i[0]))return ay(e);var a=n.symbol&&tS.getClassLikeDeclarationOfSymbol(n.symbol);return a&&tS.hasSyntacticModifier(a,128)?(hn(e,tS.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),ay(e)):Fy(e,i,t,r,0)}i=uc(n,0);if(i.length){r=Fy(e,i,t,r,0);return Q||(r.declaration&&!Wy(r.declaration)&&Pc(r)!==Ye&&hn(e,tS.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ac(r)===Ye&&hn(e,tS.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return By(e.expression,n,1),ay(e)}function Ry(e,t,r){var n,i=0===r,a=Bv(t),o=a&&0<uc(a,r).length;if(1048576&t.flags){for(var s=!1,c=0,u=t.types;c<u.length;c++){var l=u[c];if(0!==uc(l,r).length){if(s=!0,n)break}else if(n||(n=tS.chainDiagnosticMessages(n,i?tS.Diagnostics.Type_0_has_no_call_signatures:tS.Diagnostics.Type_0_has_no_construct_signatures,ua(l)),n=tS.chainDiagnosticMessages(n,i?tS.Diagnostics.Not_all_constituents_of_type_0_are_callable:tS.Diagnostics.Not_all_constituents_of_type_0_are_constructable,ua(t))),s)break}s||(n=tS.chainDiagnosticMessages(void 0,i?tS.Diagnostics.No_constituent_of_type_0_is_callable:tS.Diagnostics.No_constituent_of_type_0_is_constructable,ua(t))),n=n||tS.chainDiagnosticMessages(n,i?tS.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:tS.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ua(t))}else n=tS.chainDiagnosticMessages(n,i?tS.Diagnostics.Type_0_has_no_call_signatures:tS.Diagnostics.Type_0_has_no_construct_signatures,ua(t));a=i?tS.Diagnostics.This_expression_is_not_callable:tS.Diagnostics.This_expression_is_not_constructable;return!tS.isCallExpression(e.parent)||0!==e.parent.arguments.length||(e=wn(e).resolvedSymbol)&&32768&e.flags&&(a=tS.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without),{messageChain:tS.chainDiagnosticMessages(n,a),relatedMessage:o?tS.Diagnostics.Did_you_forget_to_use_await:void 0}}function By(e,t,r,n){var i=Ry(e,t,r),a=i.messageChain,i=i.relatedMessage,a=tS.createDiagnosticForNodeFromMessageChain(e,a);i&&tS.addRelatedInfo(a,tS.createDiagnosticForNode(e,i)),tS.isCallExpression(e.parent)&&(e=(i=ky(e.parent,!0)).start,i=i.length,a.start=e,a.length=i),an.add(a),jy(t,r,n?tS.addRelatedInfo(a,n):a)}function jy(e,t,r){var n;e.symbol&&(!(n=Pn(e.symbol).originatingImport)||tS.isImportCall(n)||(t=uc(_o(Pn(e.symbol).target),t))&&t.length&&tS.addRelatedInfo(r,tS.createDiagnosticForNode(n,tS.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}function Jy(e){switch(e.parent.kind){case 252:case 221:return tS.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 160:return tS.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 163:return tS.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 165:case 167:case 168:return tS.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return tS.Debug.fail()}}function zy(e,t,r){var n=fv(e.expression),i=Ys(n);if(i===Ie)return ay(e);var a,o=uc(i,0),s=uc(i,1).length;if(My(n,i,o.length,s))return iy(e);if(a=e,(s=o).length&&tS.every(s,function(e){return 0===e.minArgumentCount&&!bS(e)&&e.parameters.length<Ey(a,e)})){var c=tS.getTextOfNode(e.expression,!1);return hn(e,tS.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,c),ay(e)}c=Jy(e);if(o.length)return Fy(e,o,t,r,0,c);r=Ry(e.expression,i,0),c=tS.chainDiagnosticMessages(r.messageChain,c),c=tS.createDiagnosticForNodeFromMessageChain(e.expression,c);return r.relatedMessage&&tS.addRelatedInfo(c,tS.createDiagnosticForNode(e.expression,r.relatedMessage)),an.add(c),jy(i,0,c),ay(e)}function Uy(e,t){var r=dm(e),n=r&&Ti(r),r=n&&On(n,uS.Element,788968),n=r&&C.symbolToEntityName(r,788968,e),e=tS.factory.createFunctionTypeNode(void 0,[tS.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,C.typeToTypeNode(t,e))],n?tS.factory.createTypeReferenceNode(n,void 0):tS.factory.createKeywordTypeNode(128)),n=Dn(1,"props");return n.type=t,as(e,void 0,void 0,[n],r?Ro(r):Ie,void 0,1,0)}function Vy(e,t,r){if(im(e.tagName)){var n=mm(e),i=Uy(e,n);return K_(Yh(e.attributes,Jg(i,e),void 0,0),n,e.tagName,e.attributes),tS.length(e.typeArguments)&&(tS.forEach(e.typeArguments,Sx),an.add(tS.createDiagnosticForNodeArray(tS.getSourceFileOfNode(e),e.typeArguments,tS.Diagnostics.Expected_0_type_arguments_but_got_1,0,tS.length(e.typeArguments)))),i}var a=fv(e.tagName),n=Ys(a);if(n===Ie)return ay(e);i=function t(e,r){if(4&e.flags)return[gr];if(128&e.flags){var n=gm(e,r);return n?[Uy(r,n)]:(hn(r,tS.Diagnostics.Property_0_does_not_exist_on_type_1,e.value,"JSX."+uS.IntrinsicElements),tS.emptyArray)}n=Ys(e),e=uc(n,1);return 0===e.length&&(e=uc(n,0)),0===e.length&&1048576&n.flags&&(e=_s(tS.map(n.types,function(e){return t(e,r)}))),e}(a,e);return My(a,n,i.length,0)?iy(e):0===i.length?(hn(e.tagName,tS.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,tS.getTextOfNode(e.tagName)),ay(e)):Fy(e,i,t,r,0)}function Ky(e,t,r){switch(e.kind){case 203:return function(e,t,r){if(105===e.expression.kind){var n=gg(e.expression);if(Na(n)){for(var i=0,a=e.arguments;i<a.length;i++)fv(a[i]);return gr}if(n!==Ie){var o=tS.getEffectiveBaseTypeNode(tS.getContainingClass(e));if(o)return Fy(e,To(n,o.typeArguments,o),t,r,0)}return iy(e)}var s,c=fv(e.expression);if(tS.isCallChain(e)?(s=(u=_p(c,e.expression))===c?0:tS.isOutermostOptionalChain(e)?8:4,c=u):s=0,(c=Im(c,e.expression,wm))===$e)return hr;if((n=Ys(c))===Ie)return ay(e);var o=uc(n,0),u=uc(n,1).length;return My(c,n,o.length,u)?(c!==Ie&&e.typeArguments&&hn(e,tS.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),iy(e)):o.length?8&r&&!e.typeArguments&&o.some(Oy)?(sv(e,r),yr):o.some(function(e){return tS.isInJSFile(e.declaration)&&!!tS.getJSDocClassTag(e.declaration)})?(hn(e,tS.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ua(c)),ay(e)):Fy(e,o,t,r,s):(u?hn(e,tS.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ua(c)):(u=void 0,1===e.arguments.length&&(c=tS.getSourceFileOfNode(e).text,tS.isLineBreak(c.charCodeAt(tS.skipTrivia(c,e.expression.end,!0)-1))&&(u=tS.createDiagnosticForNode(e.expression,tS.Diagnostics.Are_you_missing_a_semicolon))),By(e.expression,n,0,u)),ay(e))}(e,t,r);case 204:return Ly(e,t,r);case 205:return function(e,t,r){var n=fv(e.tag),i=Ys(n);if(i===Ie)return ay(e);var a=uc(i,0),o=uc(i,1).length;if(My(n,i,a.length,o))return iy(e);if(a.length)return Fy(e,a,t,r,0);if(tS.isArrayLiteralExpression(e.parent)){r=tS.createDiagnosticForNode(e.tag,tS.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return an.add(r),ay(e)}return By(e.tag,i,0),ay(e)}(e,t,r);case 161:return zy(e,t,r);case 275:case 274:return Vy(e,t,r)}throw tS.Debug.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function qy(e,t,r){var n=wn(e),i=n.resolvedSignature;if(i&&i!==yr&&!t)return i;n.resolvedSignature=yr;r=Ky(e,t,r||0);return r!==yr&&(n.resolvedSignature=Fr===Pr?r:i),r}function Wy(e){if(!e||!tS.isInJSFile(e))return!1;var t=tS.isFunctionDeclaration(e)||tS.isFunctionExpression(e)?e:tS.isVariableDeclaration(e)&&e.initializer&&tS.isFunctionExpression(e.initializer)?e.initializer:void 0;if(t){if(tS.getJSDocClassTag(e))return!0;var t=Ai(t);return!(null===(t=null==t?void 0:t.members)||void 0===t||!t.size)}return!1}function Hy(e,t){if(t){var r=Pn(t);if(r.inferredClassSymbol&&r.inferredClassSymbol.has(fS(e)))return r.inferredClassSymbol.get(fS(e));var n=tS.isTransientSymbol(e)?e:Cn(e);return n.exports=n.exports||tS.createSymbolTable(),n.members=n.members||tS.createSymbolTable(),n.flags|=32&t.flags,null!==(e=t.exports)&&void 0!==e&&e.size&&An(n.exports,t.exports),null!==(e=t.members)&&void 0!==e&&e.size&&An(n.members,t.members),(r.inferredClassSymbol||(r.inferredClassSymbol=new tS.Map)).set(fS(n),n),n}}function Gy(e,t){if(e.parent){var r,n;if(tS.isVariableDeclaration(e.parent)&&e.parent.initializer===e){if(!(tS.isInJSFile(e)||tS.isVarConst(e.parent)&&tS.isFunctionLikeDeclaration(e)))return;r=e.parent.name,n=e.parent}else if(tS.isBinaryExpression(e.parent)){var i=e.parent,a=e.parent.operatorToken.kind;if(62!==a||!t&&i.right!==e){if(!(56!==a&&60!==a||(tS.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(r=i.parent.name,n=i.parent):tS.isBinaryExpression(i.parent)&&62===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=r=i.parent.left),r&&tS.isBindableStaticNameExpression(r)&&tS.isSameEntityName(r,i.left))))return}else n=r=i.left}else t&&tS.isFunctionDeclaration(e)&&(r=e.name,n=e);if(n&&r&&(t||tS.getExpandoInitializer(e,tS.isPrototypeAccess(r))))return Ai(n)}}function Xy(e,t){e.declaration&&134217728&e.declaration.flags&&bn(!1,Qy(t),tS.Diagnostics._0_is_deprecated,ca(e))}function Qy(e){switch((e=tS.skipParentheses(e)).kind){case 203:case 161:case 204:return Qy(e.expression);case 205:return Qy(e.tag);case 275:case 274:return Qy(e.tagName);case 202:return e.argumentExpression;case 201:return e.name;case 173:var t=e;return tS.isQualifiedName(t.typeName)?t.typeName.right:t;default:return e}}function Yy(e){if(tS.isCallExpression(e)){var t=e.expression;if(tS.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),tS.isIdentifier(t)&&"Symbol"===t.escapedText){e=vu(!1);return e?e===Rn(t,"Symbol",111551,void 0,void 0,!1):void 0}}}function Zy(e){if(ID(e.arguments)||function(e){if(D===tS.ModuleKind.ES2015)return YD(e,tS.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(e.typeArguments)return YD(e,tS.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=e.arguments;1!==t.length?YD(e,tS.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(ND(t),tS.isSpreadElement(t[0])&&YD(t[0],tS.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(e),0===e.arguments.length)return Sh(e,Fe);for(var t=e.arguments[0],r=Zh(t),n=1;n<e.arguments.length;++n)Zh(e.arguments[n]);(32768&r.flags||65536&r.flags||!j_(r,Ue))&&hn(t,tS.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ua(r));r=gi(e,t);if(r){t=bi(r,t,!0,!1);if(t)return Sh(e,$y(_o(t),t,r))}return Sh(e,Fe)}function $y(e,t,r){if(m&&e&&e!==Ie){var n,i,a=e;return a.syntheticType||(Qn(tS.find(r.declarations,tS.isSourceFile),r,!1)?(i=tS.createSymbolTable(),(n=Dn(2097152,"default")).parent=r,n.nameType=Xl("default"),n.target=ii(t),i.set("default",n),i=Wi(n=Dn(2048,"__type"),i,tS.emptyArray,tS.emptyArray,void 0,void 0),n.type=i,a.syntheticType=rm(e)?zl(e,i,n,0,!1):i):a.syntheticType=e),a.syntheticType}return e}function eh(e){if(tS.isRequireCall(e,!0)){if(!tS.isIdentifier(e.expression))return tS.Debug.fail();var t=Rn(e.expression,e.expression.escapedText,111551,void 0,void 0,!0);if(t===ge)return 1;if(!(2097152&t.flags)){e=16&t.flags?251:3&t.flags?249:0;if(0!=e){e=tS.getDeclarationOfKind(t,e);return e&&8388608&e.flags}}}}function th(e){!function(e){if(e.questionDotToken||32&e.flags)return YD(e.template,tS.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1}(e)&&wD(e,e.typeArguments),R<2&&CD(e,524288);var t=qy(e);return Xy(t,e),Pc(t)}function rh(e,t,r,n){n=fv(r,n);if(tS.isConstTypeReference(t))return function e(t){switch(t.kind){case 10:case 14:case 8:case 9:case 109:case 94:case 199:case 200:case 218:return!0;case 207:return e(t.expression);case 214:var r=t.operator,n=t.operand;return 40===r&&(8===n.kind||9===n.kind)||39===r&&8===n.kind;case 201:case 202:if(n=t.expression,tS.isIdentifier(n))return(n=Bx(n))&&2097152&n.flags&&(n=ai(n)),!!(n&&384&n.flags&&1===wo(n))}return!1}(r)||hn(r,tS.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Hl(n);Sx(t),n=fp(Ud(n));t=e_(t);return M&&t!==Ie&&(z_(t,hp(n))||Y_(n,t,e,tS.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),t}function nh(e){return 32&e.flags?(r=fv((t=e).expression),lp(op(n=_p(r,t.expression)),t,n!==r)):op(fv(e.expression));var t,r,n}function ih(e){return function(e){var t=e.name.escapedText;switch(e.keywordToken){case 102:if("target"!==t)return YD(e.name,tS.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,tS.tokenToString(e.keywordToken),"target");break;case 99:if("meta"!==t)YD(e.name,tS.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,tS.tokenToString(e.keywordToken),"meta")}}(e),102===e.keywordToken?(t=e,(r=tS.getNewTargetContainer(t))?166!==r.kind?_o(Ai(r)):_o(Ai(r.parent)):(hn(t,tS.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ie)):99===e.keywordToken?function(e){D!==tS.ModuleKind.ES2020&&D!==tS.ModuleKind.ESNext&&D!==tS.ModuleKind.System&&hn(e,tS.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);var t=tS.getSourceFileOfNode(e);return tS.Debug.assert(!!(2097152&t.flags),"Containing file is missing import meta node flag."),tS.Debug.assert(!!t.externalModuleIndicator,"Containing file should be a module."),"meta"===e.name.escapedText?(nr=nr||hu("ImportMeta",0,!0))||lt:Ie}(e):tS.Debug.assertNever(e.keywordToken);var t,r}function ah(e){var t=_o(e);if(X){e=e.valueDeclaration;if(e&&tS.hasInitializer(e))return ap(t)}return t}function oh(e){return tS.Debug.assert(tS.isIdentifier(e.name)),e.name.escapedText}function sh(e,t,r){var n=e.parameters.length-(bS(e)?1:0);if(t<n)return e.parameters[t].escapedName;e=e.parameters[n]||Ne,r=r||_o(e);if(Hd(r)){r=r.target.labeledElementDeclarations,n=t-n;return r&&oh(r[n])||e.escapedName+"_"+n}return e.escapedName}function ch(e){return 192===e.kind||tS.isParameter(e)&&e.name&&tS.isIdentifier(e.name)}function uh(e,t){return lh(e,t)||Fe}function lh(e,t){var r=e.parameters.length-(bS(e)?1:0);if(t<r)return ah(e.parameters[t]);if(bS(e)){e=_o(e.parameters[r]),r=t-r;if(!Hd(e)||e.target.hasRestElement||r<e.target.fixedLength)return Sl(e,Xl(r))}}function _h(e,t){var r=dh(e),n=ph(e),i=gh(e);if(i&&r-1<=t)return t===r-1?i:ku(Sl(i,Ve));for(var a=[],o=[],s=[],c=t;c<r;c++){!i||c<r-1?(a.push(uh(e,c)),o.push(c<n?1:2)):(a.push(i),o.push(8));var u=function(e,t){var r=e.parameters.length-(bS(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&ch(n)?n:void 0}if(n=e.parameters[r]||Ne,Hd(e=_o(n))){e=e.target.labeledElementDeclarations;return e&&e[t-r]}return n.valueDeclaration&&ch(n.valueDeclaration)?n.valueDeclaration:void 0}(e,c);u&&s.push(u)}return Iu(a,o,!1,tS.length(s)===tS.length(a)?s:void 0)}function dh(e){var t=e.parameters.length;if(bS(e)){e=_o(e.parameters[t-1]);if(Hd(e))return t+e.target.fixedLength-(e.target.hasRestElement?0:1)}return t}function ph(e,t){var r=1&t,n=2&t;if(n||void 0===e.resolvedMinArgumentCount){var i,a=void 0;if(bS(e)&&(!Hd(i=_o(e.parameters[e.parameters.length-1]))||0<(t=(t=tS.findIndex(i.target.elementFlags,function(e){return!(1&e)}))<0?i.target.fixedLength:t)&&(a=e.parameters.length-1+t)),void 0===a){if(!r&&16&e.flags)return 0;a=e.minArgumentCount}if(n)return a;for(var o=a-1;0<=o;o--){if(131072&wf(uh(e,o),cy).flags)break;a=o}e.resolvedMinArgumentCount=a}return e.resolvedMinArgumentCount}function fh(e){if(bS(e)){e=_o(e.parameters[e.parameters.length-1]);return!Hd(e)||e.target.hasRestElement}return!1}function gh(e){if(bS(e)){e=_o(e.parameters[e.parameters.length-1]);if(!Hd(e))return e;if(e.target.hasRestElement)return Lu(e,e.target.fixedLength)}}function mh(e){e=gh(e);return!e||Pd(e)||Na(e)||0!=(131072&rc(e).flags)?void 0:e}function yh(e){return hh(e,Ze)}function hh(e,t){return 0<e.parameters.length?uh(e,0):t}function vh(e,t){e.typeParameters=t.typeParameters,t.thisParameter&&((i=e.thisParameter)&&(!i.valueDeclaration||i.valueDeclaration.type)||(i||(e.thisParameter=pp(t.thisParameter,void 0)),bh(e.thisParameter,_o(t.thisParameter))));for(var r=e.parameters.length-(bS(e)?1:0),n=0;n<r;n++){var i=e.parameters[n];tS.getEffectiveTypeAnnotationNode(i.valueDeclaration)||bh(i,lh(t,n))}bS(e)&&(i=tS.last(e.parameters),!tS.isTransientSymbol(i)&&tS.getEffectiveTypeAnnotationNode(i.valueDeclaration)||bh(i,_h(t,r)))}function bh(e,t){var r=Pn(e);r.type||(e=e.valueDeclaration,r.type=t||Ya(e,!0),78!==e.name.kind&&(r.type===Le&&(r.type=Qa(e.name)),function e(t){for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];tS.isOmittedExpression(i)||(78===i.name.kind?Pn(Ai(i)).type=Oa(i):e(i.name))}}(e.name)))}function xh(e){var t=xu(!0);return t!==pt?Qc(t,[e=Bv(e)||Le]):Le}function Dh(e){var t=(Vt=Vt||hu("PromiseLike",1,!0))||pt;return t!==pt?Qc(t,[e=Bv(e)||Le]):Le}function Sh(e,t){t=xh(t);return t===Le?(hn(e,tS.isImportCall(e)?tS.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:tS.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),Ie):(Du(!0)||hn(e,tS.isImportCall(e)?tS.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:tS.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),t)}function Th(e,t){if(!e.body)return Ie;var r,n,i,a,o,s=tS.getFunctionFlags(e),c=0!=(2&s),u=0!=(1&s),l=Ye;if(230!==e.body.kind)r=Zh(e.body,t&&-9&t),c&&(r=Rv(r,e,tS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(u){var _=Fh(e,t);_?0<_.length&&(r=Ku(_,2)):l=Ze;var _=(d=e,n=t,i=[],a=[],o=0!=(2&tS.getFunctionFlags(d)),tS.forEachYieldExpression(d.body,function(e){var t=e.expression?fv(e.expression,n):Be;tS.pushIfUnique(i,Eh(e,t,Fe,o)),(e=e.asteriskToken?(t=wb(t,o?19:17,e.expression))&&t.nextType:Bg(e))&&tS.pushIfUnique(a,e)}),{yieldTypes:i,nextTypes:a}),d=_.yieldTypes,_=_.nextTypes,d=tS.some(d)?Ku(d,2):void 0,_=tS.some(_)?Qu(_):void 0}else{var p=Fh(e,t);if(!p)return 2&s?Sh(e,Ze):Ze;if(0===p.length)return 2&s?Sh(e,Ye):Ye;r=Ku(p,2)}return(r||d||_)&&(d&&xp(e,d,3),r&&xp(e,r,1),_&&xp(e,_,2),(r&&Jd(r)||d&&Jd(d)||_&&Jd(_))&&(s=(t=Kg(e))?t===Tc(e)?u?void 0:r:Lg(Pc(t),e):void 0,u?(d=Wd(d,s,0,c),r=Wd(r,s,1,c),_=Wd(_,s,2,c)):(p=s,t=c,(s=r)&&Jd(s)&&(s=qd(s,p?t?Lv(p):p:void 0)),r=s)),d=d&&hp(d),r=r&&hp(r),_=_&&hp(_)),u?Ch(d||Ze,r||l,_||xg(2,e)||Le,c):c?xh(r||l):r||l}function Ch(e,t,r,n){var i=n?Cr:Er,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Le,t=i.resolveIterationType(t,void 0)||Le,r=i.resolveIterationType(r,void 0)||Le,a!==pt)return Cu(a,[e,t,r]);var o=i.getGlobalIterableIteratorType(!1),n=o!==pt?Lb(o,i):void 0,a=n?n.returnType:Fe,n=n?n.nextType:Re;return j_(t,a)&&j_(n,r)?o!==pt?Cu(o,[e]):(i.getGlobalIterableIteratorType(!0),lt):(i.getGlobalGeneratorType(!0),lt)}function Eh(e,t,r,n){var i=e.expression||e,t=e.asteriskToken?Eb(n?19:17,t,r,i):t;return n?Bv(t,i,e.asteriskToken?tS.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:tS.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):t}function kh(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=sS.get(r[a])||32768;for(a=e;a<t;a++)i&=~(sS.get(r[a])||0);for(a=0;a<e;a++)i|=sS.get(r[a])||32768}else{for(a=e;a<t;a++)i|=oS.get(r[a])||128;for(a=0;a<e;a++)i&=~(oS.get(r[a])||0)}return i}function Nh(e){var t=wn(e);return void 0!==t.isExhaustive?t.isExhaustive:t.isExhaustive=function(e){if(211===e.expression.kind){var t=_v(e.expression.expression),r=kh(0,0,Nf(e,!1),!0),t=Ks(t)||t;return 3&t.flags?556800==(556800&r):!!(131072&wf(t,function(e){return(ff(e)&r)===r}).flags)}t=_v(e.expression);if(!zd(t))return!1;e=kf(e);return!(!e.length||tS.some(e,jd))&&function(e,t){return 1048576&e.flags?!tS.forEach(e.types,function(e){return!tS.contains(t,e)}):tS.contains(t,e)}(If(t,Hl),e)}(e)}function Ah(e){return e.endFlowNode&&Qf(e.endFlowNode)}function Fh(t,r){var n=tS.getFunctionFlags(t),i=[],a=Ah(t),o=!1;if(tS.forEachReturnStatement(t.body,function(e){e=e.expression;e?(e=Zh(e,r&&-9&r),2&n&&(e=Rv(e,t,tS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&e.flags&&(o=!0),tS.pushIfUnique(i,e)):a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 208:case 209:return!0;case 165:return 200===e.parent.kind;default:return!1}}(t))return!(X&&i.length&&a)||Wy(t)&&i.some(function(e){return e.symbol===t.symbol})||tS.pushIfUnique(i,Re),i}function Ph(e,t){if(M){var r=tS.getFunctionFlags(e),t=t&&Yb(t,r);if((!t||!Jh(t,16385))&&164!==e.kind&&!tS.nodeIsMissing(e.body)&&230===e.body.kind&&Ah(e)){r=512&e.flags;if(t&&131072&t.flags)hn(tS.getEffectiveReturnTypeNode(e),tS.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(t&&!r)hn(tS.getEffectiveReturnTypeNode(e),tS.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(t&&X&&!j_(Re,t))hn(tS.getEffectiveReturnTypeNode(e)||e,tS.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(G.noImplicitReturns){if(!t){if(!r)return;if(Zb(e,Pc(Tc(e))))return}hn(tS.getEffectiveReturnTypeNode(e)||e,tS.Diagnostics.Not_all_code_paths_return_a_value)}}}}function wh(e,t){if(tS.Debug.assert(165!==e.kind||tS.isObjectLiteralMethod(e)),Cx(e),t&&4&t&&A_(e)){if(!tS.getEffectiveReturnTypeNode(e)&&!P_(e)){var r=qg(e);if(r&&Pp(Pc(r))){var n=wn(e);if(n.contextFreeType)return n.contextFreeType;var i=Th(e,t),a=as(void 0,void 0,void 0,tS.emptyArray,i,void 0,0,0),o=Wi(e.symbol,A,[a],tS.emptyArray,void 0,void 0);return o.objectFlags|=2097152,n.contextFreeType=o}}return ft}return PD(e)||208!==e.kind||RD(e),i=t,1024&(n=wn(a=e)).flags||(o=qg(a),1024&n.flags||(n.flags|=1024,(t=tS.firstOrUndefined(uc(_o(Ai(a)),0)))&&(A_(a)&&(o?(n=jg(a),i&&2&i&&function(e,t,r){for(var n=e.parameters.length-(bS(e)?1:0),i=0;i<n;i++){var a=e.parameters[i].valueDeclaration;!a.type||(a=tS.getEffectiveTypeAnnotationNode(a))&&Kp(r.inferences,e_(a),uh(t,i))}var o,s=gh(t);s&&262144&s.flags&&(vh(e,m_(t,r.nonFixingMapper)),o=dh(t)-1,Kp(r.inferences,_h(e,o),s))}(t,o,n),n=n?m_(o,n.mapper):o,vh(t,n)):function(e){e.thisParameter&&bh(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)bh(r[t])}(t)),!o||wc(a)||t.resolvedReturnType||(i=Th(a,i),t.resolvedReturnType||(t.resolvedReturnType=i)),hv(a)))),_o(Ai(e))}function Ih(e,t,r,n){if(void 0===n&&(n=!1),j_(t,ot))return!0;t=n&&Mv(t);return xn(e,!!t&&j_(t,ot),r),!1}function Oh(e){if(!tS.isCallExpression(e))return!1;if(!tS.isBindableObjectDefinePropertyCall(e))return!1;var t=Zh(e.arguments[2]);if(ka(t,"value")){var r=sc(t,"writable"),e=r&&_o(r);if(!e||e===qe||e===We)return!0;if(r&&r.valueDeclaration&&tS.isPropertyAssignment(r.valueDeclaration)){r=fv(r.valueDeclaration.initializer);if(r===qe||r===We)return!0}return!1}return!sc(t,"set")}function Mh(e){return!!(8&tS.getCheckFlags(e)||4&e.flags&&64&tS.getDeclarationModifierFlagsFromSymbol(e)||3&e.flags&&2&Tm(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||tS.some(e.declarations,Oh))}function Lh(e,t,r){if(0!==r){if(Mh(t)){if(4&t.flags&&tS.isAccessExpression(e)&&107===e.expression.kind){var n=tS.getContainingFunction(e);if(!n||166!==n.kind&&!Wy(n))return 1;if(t.valueDeclaration){var i=tS.isBinaryExpression(t.valueDeclaration),a=n.parent===t.valueDeclaration.parent,r=n===t.valueDeclaration.parent,o=i&&(null===(o=t.parent)||void 0===o?void 0:o.valueDeclaration)===n.parent,n=i&&(null===(t=t.parent)||void 0===t?void 0:t.valueDeclaration)===n;return!(a||r||o||n)}}return 1}if(tS.isAccessExpression(e)){e=tS.skipParentheses(e.expression);if(78===e.kind){e=wn(e).resolvedSymbol;if(2097152&e.flags){e=Kn(e);return e&&263===e.kind}}}}}function Rh(e,t,r){var n=tS.skipOuterExpressions(e,7);if(78===n.kind||tS.isAccessExpression(n)){if(!(32&n.flags))return 1;hn(e,r)}else hn(e,t)}function Bh(e){fv(e.expression);var t=tS.skipParentheses(e.expression);if(!tS.isAccessExpression(t))return hn(t,tS.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Xe;tS.isPropertyAccessExpression(t)&&tS.isPrivateIdentifier(t.name)&&hn(t,tS.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);e=Mi(wn(t).resolvedSymbol);return e&&(Mh(e)&&hn(t,tS.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),t=t,e=_o(e),!X||131075&e.flags||32768&tp(e)||hn(t,tS.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)),Xe}function jh(e){return Jh(e,2112)?zh(e,3)||Jh(e,296)?ot:Ke:Ve}function Jh(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Jh(n[r],t))return!0;return!1}function zh(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&j_(e,Ve)||!!(2112&t)&&j_(e,Ke)||!!(402653316&t)&&j_(e,Ue)||!!(528&t)&&j_(e,Xe)||!!(16384&t)&&j_(e,Ye)||!!(131072&t)&&j_(e,Ze)||!!(65536&t)&&j_(e,Je)||!!(32768&t)&&j_(e,Re)||!!(4096&t)&&j_(e,Qe)||!!(67108864&t)&&j_(e,nt))}function Uh(e,t,r){return 1048576&e.flags?tS.every(e.types,function(e){return Uh(e,t,r)}):zh(e,t,r)}function Vh(e){return 16&tS.getObjectFlags(e)&&e.symbol&&Kh(e.symbol)}function Kh(e){return 0!=(128&e.flags)}function qh(e,t,r,n,i){void 0===i&&(i=!1);var a=e.properties,o=a[r];if(288===o.kind||289===o.kind){var s=o.name,c=el(s);!Ho(c)||(e=sc(t,Zo(c)))&&(Ym(e,o,i),Em(o,!1,t,e));s=Pa(o,Sl(t,c,void 0,s,void 0,void 0,16));return Hh(289===o.kind?o:o.initializer,s)}if(290===o.kind){if(!(r<a.length-1)){R<99&&CD(o,4);var u=[];if(n)for(var l=0,_=n;l<_.length;l++){var d=_[l];tS.isSpreadAssignment(d)||u.push(d.name)}s=Fa(t,u,t.symbol);return ND(n,tS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Hh(o.expression,s)}hn(o,tS.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else hn(o,tS.Diagnostics.Property_assignment_expected)}function Wh(e,t,r,n,i){var a=e.elements,o=a[r];if(222!==o.kind){if(220!==o.kind){var s=Xl(r);if(Md(t)){var c=16|(Wg(o)?8:0),c=Cl(t,s,void 0,Ty(o,s),c)||Ie;return Hh(o,Pa(o,Wg(o)?gf(c,524288):c),i)}return Hh(o,n,i)}if(r<a.length-1)hn(o,tS.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{o=o.expression;if(216!==o.kind||62!==o.operatorToken.kind)return ND(e.elements,tS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Hh(o,Pf(t,Hd)?If(t,function(e){return Lu(e,r)}):ku(n),i);hn(o.operatorToken,tS.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function Hh(e,t,r,n){var i,e=289===e.kind?((i=e).objectAssignmentInitializer&&(!X||32768&tp(fv(i.objectAssignmentInitializer))||(t=gf(t,524288)),function(e,t,r,n,i){var a=t.kind;if(62===a&&(200===e.kind||199===e.kind))return Hh(e,fv(r,n),n,107===r.kind);a=(55===a||56===a||60===a?Db:fv)(e,n),n=fv(r,n),Qh(e,t,r,a,n,i)}(i.name,i.equalsToken,i.objectAssignmentInitializer,r)),e.name):e;return 216===e.kind&&62===e.operatorToken.kind&&(Xh(e,r),e=e.left),200===e.kind?function(e,t,r){var n=e.properties;if(X&&0===n.length)return Om(t,e);for(var i=0;i<n.length;i++)qh(e,t,i,n,r);return t}(e,t,n):(199===e.kind?function(e,t,r){var n=e.elements;R<2&&G.downlevelIteration&&CD(e,512);for(var i=Eb(193,t,Re,e)||Ie,a=G.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;220===e.elements[o].kind&&(s=a=null!=a?a:Eb(65,t,Re,e)||Ie),Wh(e,t,o,s,r)}return t}:function(e,t,r){var n=fv(e,r),i=290===e.parent.kind?tS.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:tS.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,r=290===e.parent.kind?tS.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:tS.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;Rh(e,i,r)&&K_(t,n,e,e);tS.isPrivateIdentifierPropertyAccessExpression(e)&&CD(e.parent,2097152);return t})(e,t,r)}function Gh(e,t){return 0!=(98304&t.flags)||z_(e,t)}function Xh(e,t){for(var r,n,i,a={expr:[e],state:[0],leftType:[void 0]},o=0;0<=o;)switch(e=a.expr[o],a.state[o]){case 0:if(tS.isInJSFile(e)&&tS.getAssignedExpandoInitializer(e)){u(fv(e.right,t));break}if(s=i=void 0,i=(n=e).left,s=n.operatorToken,n=n.right,60===s.kind&&(!tS.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||YD(i,tS.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,tS.tokenToString(i.operatorToken.kind),tS.tokenToString(s.kind)),!tS.isBinaryExpression(n)||56!==n.operatorToken.kind&&55!==n.operatorToken.kind||YD(n,tS.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,tS.tokenToString(n.operatorToken.kind),tS.tokenToString(s.kind))),62===(s=e.operatorToken.kind)&&(200===e.left.kind||199===e.left.kind)){u(Hh(e.left,fv(e.right,t),t,107===e.right.kind));break}l(1),_(e.left);break;case 1:var s,c=r;a.leftType[o]=c,55!==(s=e.operatorToken.kind)&&56!==s&&60!==s||xb(c,e.left),l(2),_(e.right);break;case 2:c=a.leftType[o];u(Qh(e.left,e.operatorToken,e.right,c,r,e));break;default:return tS.Debug.fail("Invalid state "+a.state[o]+" for checkBinaryExpression")}return r;function u(e){r=e,o--}function l(e){a.state[o]=e}function _(e){tS.isBinaryExpression(e)?(o++,a.expr[o]=e,a.state[o]=0,a.leftType[o]=void 0):r=fv(e,t)}}function Qh(n,a,i,o,s,c){var t,e,r,u,l,_=a.kind;switch(_){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 77:case 50:case 72:if(o===$e||s===$e)return $e;o=Om(o,n),s=Om(s,i);var d=void 0;if(528&o.flags&&528&s.flags&&void 0!==(d=function(e){switch(e){case 51:case 73:return 56;case 52:case 77:return 37;case 50:case 72:return 55;default:return}}(a.kind)))return hn(c||a,tS.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,tS.tokenToString(a.kind),tS.tokenToString(d)),Ve;var p,f=Ih(n,o,tS.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),d=Ih(i,s,tS.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(zh(o,3)&&zh(s,3)||!Jh(o,2112)&&!Jh(s,2112))p=Ve;else if(b(o,s)){switch(_){case 49:case 71:T();break;case 42:case 66:R<3&&hn(c,tS.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=Ke}else T(b),p=Ie;return f&&d&&D(p),p;case 39:case 63:if(o===$e||s===$e)return $e;zh(o,402653316)||zh(s,402653316)||(o=Om(o,n),s=Om(s,i));var g=void 0;if(zh(o,296,!0)&&zh(s,296,!0)?g=Ve:zh(o,2112,!0)&&zh(s,2112,!0)?g=Ke:zh(o,402653316,!0)||zh(s,402653316,!0)?g=Ue:(Na(o)||Na(s))&&(g=o===Ie||s===Ie?Ie:Fe),g&&!x(_))return g;if(g)return 63===_&&D(g),g;return T(function(e,t){return zh(e,402655727)&&zh(t,402655727)}),Fe;case 29:case 31:case 32:case 33:return x(_)&&(o=Ud(Om(o,n)),s=Ud(Om(s,i)),S(function(e,t){return z_(e,t)||z_(t,e)||j_(e,ot)&&j_(t,ot)})),Xe;case 34:case 35:case 36:case 37:return S(function(e,t){return Gh(e,t)||Gh(t,e)}),Xe;case 101:return r=n,u=i,l=s,(g=o)===$e||l===$e?$e:(!Na(g)&&Uh(g,131068)&&hn(r,tS.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Na(l)||Vx(l)||B_(l,Ct)||hn(u,tS.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Xe);case 100:return r=n,m=i,l=s,(u=o)===$e||l===$e?$e:(u=Om(u,r),l=Om(l,m),Uh(u,402665900)||zh(u,407109632)||hn(r,tS.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Uh(l,126091264)||hn(m,tS.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Xe);case 55:case 75:var m=4194304&ff(o)?Ku([If(X?o:Ud(s),np),s]):o;return 75===_&&D(s),m;case 56:case 74:var y=8388608&ff(o)?Ku([rp(o),s],2):o;return 74===_&&D(s),y;case 60:case 76:var h=262144&ff(o)?Ku([op(o),s],2):o;return 76===_&&D(s),h;case 62:var v=tS.isBinaryExpression(n.parent)?tS.getAssignmentDeclarationKind(n.parent):0;return function(e){if(2===v)for(var t=0,r=Os(e);t<r.length;t++){var n,i=r[t],a=_o(i);a.symbol&&32&a.symbol.flags&&(n=i.escapedName,(a=Rn(i.valueDeclaration,n,788968,void 0,n,!1))&&a.declarations.some(tS.isJSDocTypedefTag)&&(kn(a,tS.Diagnostics.Duplicate_identifier_0,tS.unescapeLeadingUnderscores(n),i),kn(i,tS.Diagnostics.Duplicate_identifier_0,tS.unescapeLeadingUnderscores(n),a)))}}(s),function(e){switch(e){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var t=Ai(n),r=tS.getAssignedExpandoInitializer(i);return!!r&&tS.isObjectLiteralExpression(r)&&!(null===(t=null==t?void 0:t.exports)||void 0===t||!t.size);default:return!1}}(v)?(524288&s.flags&&(2===v||6===v||td(s)||pf(s)||1&tS.getObjectFlags(s))||D(s),o):(D(s),fp(s));case 27:return G.allowUnreachableCode||!function e(t){switch((t=tS.skipParentheses(t)).kind){case 78:case 10:case 13:case 205:case 218:case 14:case 8:case 9:case 109:case 94:case 103:case 150:case 208:case 221:case 209:case 199:case 200:case 211:case 225:case 274:case 273:return!0;case 217:return e(t.whenTrue)&&e(t.whenFalse);case 216:return!tS.isAssignmentOperator(t.operatorToken.kind)&&(e(t.left)&&e(t.right));case 214:case 215:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 212:case 206:case 224:default:return!1}}(n)||78===(e=i).kind&&"eval"===e.escapedText||(h=(y=tS.getSourceFileOfNode(n)).text,t=tS.skipTrivia(h,n.pos),y.parseDiagnostics.some(function(e){return e.code===tS.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&tS.textSpanContainsPosition(e,t)})||hn(n,tS.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)),s;default:return tS.Debug.fail()}function b(e,t){return zh(e,2112)&&zh(t,2112)}function x(e){var t=Jh(o,12288)?n:Jh(s,12288)?i:void 0;if(!t)return 1;hn(t,tS.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,tS.tokenToString(e))}function D(e){M&&tS.isAssignmentOperator(_)&&(!Rh(n,tS.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,tS.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)||tS.isIdentifier(n)&&"exports"===tS.unescapeLeadingUnderscores(n.escapedText)||K_(e,o,n,i))}function S(e){return!e(o,s)&&(T(e),1)}function T(e){var t=!1,r=c||a;e&&(n=Bv(o),i=Bv(s),t=!(n===o&&i===s)&&!(!n||!i)&&e(n,i));var n=o,i=s;!t&&e&&(n=(e=function(e,t,r){var n=e,i=t,e=Ud(e),t=Ud(t);r(e,t)||(n=e,i=t);return[n,i]}(o,s,e))[0],i=e[1]);n=la(n,i),i=n[0],n=n[1];!function(e,t,r,n){var i;switch(a.kind){case 36:case 34:i="false";break;case 37:case 35:i="true"}if(i)return xn(e,t,tS.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,i,r,n);return}(r,t,i,n)&&xn(r,t,tS.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,tS.tokenToString(a.kind),i,n)}}function Yh(e,t,r,n){var i=281!==(o=e).kind||tS.isJsxSelfClosingElement(o.parent)?o:o.parent.parent,a=i.contextualType,o=i.inferenceContext;try{i.contextualType=t;var s=fv(e,1|n|((i.inferenceContext=r)?2:0));return Jh(s,2944)&&tv(s,Lg(t,e))?Hl(s):s}finally{i.contextualType=a,i.inferenceContext=o}}function Zh(e,t){var r=wn(e);if(!r.resolvedType){if(t&&0!==t)return fv(e,t);var n=Fr,i=ur;Fr=Pr,ur=void 0,r.resolvedType=fv(e,t),ur=i,Fr=n}return r.resolvedType}function $h(e,t){var r=tS.getEffectiveInitializer(e),r=dv(r)||(t?Yh(r,t,void 0,0):Zh(r));return tS.isParameter(e)&&197===e.name.kind&&Hd(r)&&!r.target.hasRestElement&&eu(r)<e.name.elements.length?function(e,t){for(var r=t.elements,n=$c(e).slice(),i=e.target.elementFlags.slice(),a=eu(e);a<r.length;a++){var o=r[a];(a<r.length-1||198!==o.kind||!o.dotDotDotToken)&&(n.push(!tS.isOmittedExpression(o)&&Wg(o)?Ga(o,!1,!1):Fe),i.push(2),tS.isOmittedExpression(o)||Wg(o)||bp(o,Fe))}return Iu(n,i,e.target.readonly)}(r,e.name):r}function ev(e,t){t=2&tS.getCombinedNodeFlags(e)||tS.isDeclarationReadonly(e)?t:Vd(t);if(tS.isInJSFile(e)){if(98304&t.flags)return bp(e,Fe),Fe;if(Ld(t))return bp(e,Mt),Mt}return t}function tv(t,e){if(e){if(3145728&e.flags){var r=e.types;return tS.some(r,function(e){return tv(t,e)})}if(58982400&e.flags){r=Ks(e)||Le;return Jh(r,4)&&Jh(t,128)||Jh(r,8)&&Jh(t,256)||Jh(r,64)&&Jh(t,2048)||Jh(r,4096)&&Jh(t,8192)||tv(t,r)}return!!(406847616&e.flags&&Jh(t,128)||256&e.flags&&Jh(t,256)||2048&e.flags&&Jh(t,2048)||512&e.flags&&Jh(t,512)||8192&e.flags&&Jh(t,8192))}return!1}function rv(e){e=e.parent;return tS.isAssertionExpression(e)&&tS.isConstTypeReference(e.type)||(tS.isParenthesizedExpression(e)||tS.isArrayLiteralExpression(e)||tS.isSpreadElement(e))&&rv(e)||(tS.isPropertyAssignment(e)||tS.isShorthandPropertyAssignment(e)||tS.isTemplateSpan(e))&&rv(e.parent)}function nv(e,t,r,n){t=fv(e,t,n);return rv(e)?Hl(t):(n=e,206===(n=tS.skipParentheses(n)).kind||224===n.kind?t:qd(t,Lg(2===arguments.length?Bg(e):r,e)))}function iv(e,t){return 158===e.name.kind&&Zg(e.name),nv(e.initializer,t)}function av(e,t){return VD(e),158===e.name.kind&&Zg(e.name),ov(e,wh(e,t),t)}function ov(e,t,r){if(r&&10&r){var n=fy(t,0,!0),i=fy(t,1,!0),a=n||i;if(a&&a.typeParameters){i=Mg(e,2);if(i){i=fy(op(i),n?0:1,!1);if(i&&!i.typeParameters){if(8&r)return sv(e,r),ft;n=jg(e),r=n.signature&&Pc(n.signature),e=r&&py(r);if(e&&!e.typeParameters&&!tS.every(n.inferences,cv)){var r=function(e,t){for(var r,n,i=[],a=0,o=t;a<o.length;a++){var s=(c=o[a]).symbol.escapedName;uv(e.inferredTypeParameters,s)||uv(i,s)?((s=Ui(Dn(262144,function(e,t){var r=t.length;for(;1<r&&48<=t.charCodeAt(r-1)&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!uv(e,a))return a}}(tS.concatenate(e.inferredTypeParameters,i),s)))).target=c,r=tS.append(r,c),n=tS.append(n,s),i.push(s)):i.push(c)}if(n)for(var c,u=a_(r,n),l=0,_=n;l<_.length;l++)(c=_[l]).mapper=u;return i}(n,a.typeParameters),e=Lc(a,r),o=tS.map(n.inferences,function(e){return Np(e.typeParameter)});if(Dp(e,i,function(e,t){Kp(o,e,t,0,!0)}),tS.some(o,cv)&&(Sp(e,i,function(e,t){Kp(o,e,t)}),!function(e,t){for(var r=0;r<e.length;r++)if(cv(e[r])&&cv(t[r]))return!0;return!1}(n.inferences,o)))return function(e,t){for(var r=0;r<e.length;r++)!cv(e[r])&&cv(t[r])&&(e[r]=t[r])}(n.inferences,o),n.inferredTypeParameters=tS.concatenate(n.inferredTypeParameters,r),Jc(e)}return Jc(gy(a,i,n))}}}}return t}function sv(e,t){2&t&&(jg(e).flags|=4)}function cv(e){return!(!e.candidates&&!e.contraCandidates)}function uv(e,t){return tS.some(e,function(e){return e.symbol.escapedName===t})}function lv(e){e=dy(e);if(e&&!e.typeParameters)return Pc(e)}function _v(e){var t=dv(e);if(t)return t;if(67108864&e.flags&&ur){var r=ur[pS(e)];if(r)return r}t=Or,r=fv(e);return Or!==t&&((ur=ur||[])[pS(e)]=r,tS.setNodeFlags(e,67108864|e.flags)),r}function dv(e){var t,r,n,i=tS.skipParentheses(e);if(!tS.isCallExpression(i)||105===i.expression.kind||tS.isRequireCall(i,!0)||Yy(i)){if(tS.isAssertionExpression(i)&&!tS.isConstTypeReference(i.type))return e_(i.type);if(8===e.kind||10===e.kind||109===e.kind||94===e.kind)return fv(e)}else{i=tS.isCallChain(i)?(r=fv((t=i).expression),n=_p(r,t.expression),(e=lv(r))&&lp(e,t,n!==r)):lv(Nm(i.expression));if(i)return i}}function pv(e){var t=wn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Fe;try{return t.contextFreeType=fv(e,4)}finally{e.contextualType=r}}function fv(e,t,r){tS.tracing.push("check","checkExpression",{kind:e.kind,pos:e.pos,end:e.end});var n=H;l=0;r=ov(H=e,function(e,t,r){var n=e.kind;if(x)switch(n){case 221:case 208:case 209:x.throwIfCancellationRequested()}switch(n){case 78:return sg(e);case 107:return dg(e);case 105:return gg(e);case 103:return ze;case 14:case 10:return Wl(Xl(e.text));case 8:return $D(e),Wl(Xl(+e.text));case 9:return function(e){tS.isLiteralTypeNode(e.parent)||tS.isPrefixUnaryExpression(e.parent)&&tS.isLiteralTypeNode(e.parent.parent)||!(R<7)||YD(e,tS.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)}(e),Wl(function(e){return Xl({negative:!1,base10Value:tS.parsePseudoBigInt(e.text)})}(e));case 109:return He;case 94:return qe;case 218:return function(e){for(var t=[e.head.text],r=[],n=0,i=e.templateSpans;n<i.length;n++){var a=i[n],o=fv(a.expression);Jh(o,12288)&&hn(a.expression,tS.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(a.literal.text),r.push(j_(o,st)?o:Ue)}return rv(e)?ol(t,r):Ue}(e);case 13:return It;case 199:return Hg(e,t,r);case 200:return tm(e,t);case 201:return Lm(e);case 157:return Rm(e);case 202:return ey(e);case 203:if(99===e.expression.kind)return Zy(e);case 204:return function(e,t){if(wD(e,e.typeArguments)||ID(e.arguments),(t=qy(e,void 0,t))===yr)return et;if(Xy(t,e),105===e.expression.kind)return Ye;if(204===e.kind){var r=t.declaration;if(r&&166!==r.kind&&170!==r.kind&&175!==r.kind&&!tS.isJSDocConstructSignature(r)&&!Wy(r))return Q&&hn(e,tS.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Fe}if(tS.isInJSFile(e)&&eh(e))return Nc(e.arguments[0]);if(12288&(r=Pc(t)).flags&&Yy(e))return Ql(tS.walkUpParenthesizedExpressions(e.parent));if(203===e.kind&&233===e.parent.kind&&16384&r.flags&&Fc(t)&&(tS.isDottedName(e.expression)?Gf(e)||(n=hn(e.expression,tS.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation),Hf(e.expression,n)):hn(e.expression,tS.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name)),tS.isInJSFile(e)){var n=Gy(e,!1);if(null!==(e=null==n?void 0:n.exports)&&void 0!==e&&e.size){n=Wi(n,n.exports,tS.emptyArray,tS.emptyArray,void 0,void 0);return n.objectFlags|=16384,Qu([r,n])}}return r}(e,t);case 205:return th(e);case 207:return function(e,t){var r=tS.isInJSFile(e)?tS.getJSDocTypeTag(e):void 0;if(r)return rh(r,r.typeExpression.type,e.expression,t);return fv(e.expression,t)}(e,t);case 221:return function(e){return ix(e),Cx(e),_o(Ai(e))}(e);case 208:case 209:return wh(e,t);case 211:return function(e){return fv(e.expression),cn}(e);case 206:case 224:return function(e){return rh(e,e.type,e.expression)}(e);case 225:return nh(e);case 226:return ih(e);case 210:return Bh(e);case 212:return function(e){return fv(e.expression),Be}(e);case 213:return function(e){var t,r;M&&(32768&e.flags||(tS.isInTopLevelContext(e)?HD(t=tS.getSourceFileOfNode(e))||(r=void 0,tS.isEffectiveExternalModule(t,G)||(r=r||tS.getSpanOfTokenAtPosition(t,e.pos),i=tS.createFileDiagnostic(t,r.start,r.length,tS.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module),an.add(i)),(D!==tS.ModuleKind.ESNext&&D!==tS.ModuleKind.System||R<4)&&(r=tS.getSpanOfTokenAtPosition(t,e.pos),i=tS.createFileDiagnostic(t,r.start,r.length,tS.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher),an.add(i))):HD(t=tS.getSourceFileOfNode(e))||(r=tS.getSpanOfTokenAtPosition(t,e.pos),i=tS.createFileDiagnostic(t,r.start,r.length,tS.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),(r=tS.getContainingFunction(e))&&166!==r.kind&&0==(2&tS.getFunctionFlags(r))&&(n=tS.createDiagnosticForNode(r,tS.Diagnostics.Did_you_mean_to_mark_this_function_as_async),tS.addRelatedInfo(i,n)),an.add(i))),bg(e)&&hn(e,tS.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer));var n=fv(e.expression),i=Rv(n,e,tS.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return i!==n||i===Ie||3&n.flags||vn(!1,tS.createDiagnosticForNode(e,tS.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),i}(e);case 214:return function(e){var t=fv(e.operand);if(t===$e)return $e;switch(e.operand.kind){case 8:switch(e.operator){case 40:return Wl(Xl(-e.operand.text));case 39:return Wl(Xl(+e.operand.text))}break;case 9:if(40===e.operator)return Wl(Xl({negative:!0,base10Value:tS.parsePseudoBigInt(e.operand.text)}))}switch(e.operator){case 39:case 40:case 54:return Om(t,e.operand),Jh(t,12288)&&hn(e.operand,tS.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,tS.tokenToString(e.operator)),39===e.operator?(Jh(t,2112)&&hn(e.operand,tS.Diagnostics.Operator_0_cannot_be_applied_to_type_1,tS.tokenToString(e.operator),ua(Ud(t))),Ve):jh(t);case 53:Db(e.operand);var r=12582912&ff(t);return 4194304==r?qe:8388608==r?He:Xe;case 45:case 46:return Ih(e.operand,Om(t,e.operand),tS.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Rh(e.operand,tS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,tS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),jh(t)}return Ie}(e);case 215:return function(e){var t=fv(e.operand);return t===$e?$e:(Ih(e.operand,Om(t,e.operand),tS.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Rh(e.operand,tS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,tS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),jh(t))}(e);case 216:return Xh(e,t);case 217:return function(e,t){var r=Db(e.condition);return bb(e.condition,e.whenTrue,r),Ku([fv(e.whenTrue,t),fv(e.whenFalse,t)],2)}(e,t);case 220:return function(e,t){return R<2&&CD(e,G.downlevelIteration?1536:2048),Eb(33,fv(e.expression,t),Re,e.expression)}(e,t);case 222:return Be;case 219:return function(e){M&&(8192&e.flags||GD(e,tS.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),bg(e)&&hn(e,tS.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=tS.getContainingFunction(e);if(!t)return Fe;if(!(1&(a=tS.getFunctionFlags(t))))return Fe;var r=0!=(2&a);e.asteriskToken&&(r&&R<99&&CD(e,53248),!r&&R<2&&G.downlevelIteration&&CD(e,256));var n=wc(t),i=(o=n&&Xb(n,r))&&o.yieldType||Fe,a=o&&o.nextType||Fe,o=r?Bv(a)||Fe:a,a=e.expression?fv(e.expression):Be,o=Eh(e,a,o,r);return n&&o&&K_(o,i,e.expression||e,e.expression),e.asteriskToken?Nb(r?19:17,1,a,e.expression)||Fe:n?Gb(2,n,r)||Fe:xg(2,t)||Fe}(e);case 227:return function(e){return e.isSpread?Sl(e.type,Ve):e.type}(e);case 283:return Sm(e,t);case 273:return function(e){return Cx(e),hm(e)||Fe}(e);case 274:return function(e){return Cx(e),hm(e)||Fe}(e);case 277:return function(e){bm(e.openingFragment);var t=tS.getSourceFileOfNode(e);return!tS.getJSXTransformEnabled(G)||!G.jsxFactory&&!t.pragmas.has("jsx")||G.jsxFragmentFactory||t.pragmas.has("jsxfrag")||hn(e,G.jsxFactory?tS.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:tS.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),om(e),hm(e)||Fe}(e);case 281:return cm(e,t);case 275:tS.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ie}(e,t,r),t);return Vh(r)&&(t=r,201===(e=e).parent.kind&&e.parent.expression===e||202===e.parent.kind&&e.parent.expression===e||(78===e.kind||157===e.kind)&&Lx(e)||176===e.parent.kind&&e.parent.exprName===e||270===e.parent.kind||hn(e,tS.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),G.isolatedModules&&(tS.Debug.assert(!!(128&t.symbol.flags)),8388608&t.symbol.valueDeclaration.flags&&hn(e,tS.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))),H=n,tS.tracing.pop(),r}function gv(e){e.expression&&GD(e.expression,tS.Diagnostics.Type_expected),Sx(e.constraint),Sx(e.default);var t=Lo(Ai(e));Ks(t),Gs(t)===mt&&hn(e.default,tS.Diagnostics.Type_parameter_0_has_a_circular_default,ua(t));var r=js(t),n=Xs(t);r&&n&&V_(n,ns(C_(r,s_(t,n)),n),e.default,tS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),M&&tx(e.name,tS.Diagnostics.Type_parameter_name_cannot_be_0)}function mv(e){ED(e),fb(e);var t=tS.getContainingFunction(e);tS.hasSyntacticModifier(e,92)&&(166===t.kind&&tS.nodeIsPresent(t.body)||hn(e,tS.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),166===t.kind&&tS.isIdentifier(e.name)&&"constructor"===e.name.escapedText&&hn(e.name,tS.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),e.questionToken&&tS.isBindingPattern(e.name)&&t.body&&hn(e,tS.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&tS.isIdentifier(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&hn(e,tS.Diagnostics.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),166!==t.kind&&170!==t.kind&&175!==t.kind||hn(e,tS.Diagnostics.A_constructor_cannot_have_a_this_parameter),209===t.kind&&hn(e,tS.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),167!==t.kind&&168!==t.kind||hn(e,tS.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||tS.isBindingPattern(e.name)||j_(rc(_o(e.symbol)),Rt)||hn(e,tS.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function yv(e){var t=function(e){switch(e.parent.kind){case 209:case 169:case 251:case 208:case 174:case 165:case 164:var t=e.parent;if(e===t.type)return t}}(e);if(t){var r=Tc(t),n=Fc(r);if(n){Sx(e.type);var i=e.parameterName;if(0===n.kind||2===n.kind)Yl(i);else if(0<=n.parameterIndex)bS(r)&&n.parameterIndex===r.parameters.length-1?hn(i,tS.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):n.type&&V_(n.type,_o(r.parameters[n.parameterIndex]),e.type,void 0,function(){return tS.chainDiagnosticMessages(void 0,tS.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var a=!1,o=0,s=t.parameters;o<s.length;o++){var c=s[o].name;if(tS.isBindingPattern(c)&&function e(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!tS.isOmittedExpression(o)){var o=o.name;if(78===o.kind&&o.escapedText===n)return hn(r,tS.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((197===o.kind||196===o.kind)&&e(o,r,n))return!0}}}(c,i,n.parameterName)){a=!0;break}}a||hn(e.parameterName,tS.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}else hn(e,tS.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}function hv(e){171===e.kind?ED(r=e)||function(e){var t=e.parameters[0];if(1!==e.parameters.length)return YD(t?t.name:e,tS.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(ND(e.parameters,tS.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return YD(t.dotDotDotToken,tS.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(tS.hasEffectiveModifiers(t))return YD(t.name,tS.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return YD(t.questionToken,tS.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return YD(t.name,tS.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return YD(t.name,tS.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(147===t.type.kind||144===t.type.kind)return e.type||YD(e,tS.Diagnostics.An_index_signature_must_have_a_type_annotation);var r=e_(t.type);4&r.flags||8&r.flags?YD(t.name,tS.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,tS.getTextOfNode(t.name),ua(r),ua(e.type?e_(e.type):Fe)):1048576&r.flags&&Uh(r,384,!0)?YD(t.name,tS.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):YD(t.name,tS.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}(r):174!==e.kind&&251!==e.kind&&175!==e.kind&&169!==e.kind&&166!==e.kind&&170!==e.kind||PD(e);var t=tS.getFunctionFlags(e);if(4&t||(3==(3&t)&&R<99&&CD(e,12288),2==(3&t)&&R<4&&CD(e,64),0!=(3&t)&&R<2&&CD(e,128)),rx(e.typeParameters),tS.forEach(e.parameters,mv),e.type&&Sx(e.type),M){n=e,!void(2<=R||!tS.hasRestParameter(n)||8388608&n.flags||tS.nodeIsMissing(n.body)||tS.forEach(n.parameters,function(e){e.name&&!tS.isBindingPattern(e.name)&&e.name.escapedText===fe.escapedName&&yn("noEmit",e,tS.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}));var r,n,i=tS.getEffectiveReturnTypeNode(e);if(Q&&!i)switch(e.kind){case 170:hn(e,tS.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 169:hn(e,tS.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}i&&(1==(5&(r=tS.getFunctionFlags(e)))?(t=e_(i))===Ye?hn(i,tS.Diagnostics.A_generator_cannot_have_a_void_type_annotation):V_(Ch(n=Gb(0,t,0!=(2&r))||Fe,Gb(1,t,0!=(2&r))||n,Gb(2,t,0!=(2&r))||Le,!!(2&r)),t,i):2==(3&r)&&function(e,t){var r=e_(t);if(2<=R){if(r===Ie)return;var n=xu(!0);if(n!==pt&&!po(r,n))return hn(t,tS.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ua(Bv(r)||Ye))}else{if(!function(e){zv(e&&tS.getEntityNameFromTypeNode(e))}(t),r===Ie)return;var i=tS.getEntityNameFromTypeNode(t);if(void 0===i)return hn(t,tS.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,ua(r));var a=pi(i,111551,!0),n=a?_o(a):Ie;if(n===Ie)return 78===i.kind&&"Promise"===i.escapedText&&fo(r)===xu(!1)?hn(t,tS.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):hn(t,tS.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,tS.entityNameToString(i));a=(qt=qt||hu("PromiseConstructorLike",0,!0))||lt;if(a===lt)return hn(t,tS.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,tS.entityNameToString(i));if(!V_(n,a,t,tS.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;a=i&&tS.getFirstIdentifier(i),t=On(e.locals,a.escapedText,111551);if(t)return hn(t.valueDeclaration,tS.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,tS.idText(a),tS.entityNameToString(i))}Rv(r,e,tS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,i)),171!==e.kind&&308!==e.kind&&Xv(e)}}function vv(e){for(var t=new tS.Map,r=0,n=e.members;r<n.length;r++){var i=n[r];if(162===i.kind){var a=void 0,o=i.name;switch(o.kind){case 10:case 8:a=o.text;break;case 78:a=tS.idText(o);break;default:continue}t.get(a)?(hn(tS.getNameOfDeclaration(i.symbol.valueDeclaration),tS.Diagnostics.Duplicate_identifier_0,a),hn(i.name,tS.Diagnostics.Duplicate_identifier_0,a)):t.set(a,!0)}}}function bv(e){if(253===e.kind){var t=Ai(e);if(0<t.declarations.length&&t.declarations[0]!==e)return}e=zc(Ai(e));if(e)for(var r=!1,n=!1,i=0,a=e.declarations;i<a.length;i++){var o=a[i];if(1===o.parameters.length&&o.parameters[0].type)switch(o.parameters[0].type.kind){case 147:n?hn(o,tS.Diagnostics.Duplicate_string_index_signature):n=!0;break;case 144:r?hn(o,tS.Diagnostics.Duplicate_number_index_signature):r=!0}}}function xv(e){if(ED(e)||function(e){if(tS.isClassLike(e.parent)){if(tS.isStringLiteral(e.name)&&"constructor"===e.name.text)return YD(e.name,tS.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(UD(e.name,tS.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;if(R<2&&tS.isPrivateIdentifier(e.name))return YD(e.name,tS.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(253===e.parent.kind){if(UD(e.name,tS.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(e.initializer)return YD(e.initializer,tS.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(177===e.parent.kind){if(UD(e.name,tS.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(e.initializer)return YD(e.initializer,tS.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&e.flags&&qD(e);if(tS.isPropertyDeclaration(e)&&e.exclamationToken&&(!tS.isClassLike(e.parent)||!e.type||e.initializer||8388608&e.flags||tS.hasSyntacticModifier(e,160))){var t=e.initializer?tS.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?tS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:tS.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return YD(e.exclamationToken,t)}}(e)||LD(e.name),fb(e),tS.isPrivateIdentifier(e.name)&&R<99)for(var t=tS.getEnclosingBlockScopeContainer(e);t;t=tS.getEnclosingBlockScopeContainer(t))wn(t).flags|=67108864}function Dv(e){hv(e),function(e){var t=tS.isInJSFile(e)?tS.getJSDocTypeParameterDeclarations(e):void 0,r=e.typeParameters||t&&tS.firstOrUndefined(t);if(r){t=r.pos===r.end?r.pos:tS.skipTrivia(tS.getSourceFileOfNode(e).text,r.pos);return XD(e,t,r.end-t,tS.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){if(e=tS.getEffectiveReturnTypeNode(e))YD(e,tS.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),Sx(e.body);var t=Ai(e),r=tS.getDeclarationOfKind(t,e.kind);if(e===r&&Iv(t),!tS.nodeIsMissing(e.body)&&M){r=e.parent;if(tS.getClassExtendsHeritageElement(r)){cg(e.parent,r);t=lg(r),r=ug(e.body);if(r){if(t&&hn(r,tS.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==G.target||!G.useDefineForClassFields)&&(tS.some(e.parent.members,function(e){return!!tS.isPrivateIdentifierPropertyDeclaration(e)||163===e.kind&&!tS.hasSyntacticModifier(e,32)&&!!e.initializer})||tS.some(e.parameters,function(e){return tS.hasSyntacticModifier(e,92)}))){for(var n=void 0,i=0,a=e.body.statements;i<a.length;i++){var o=a[i];if(233===o.kind&&tS.isSuperCall(o.expression)){n=o;break}if(!tS.isPrologueDirective(o))break}n||hn(e,tS.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else t||hn(e,tS.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Sv(e){var t,r,n;M&&(PD(e)||function(e){if(!(8388608&e.flags)){if(R<1)return YD(e.name,tS.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===e.body&&!tS.hasSyntacticModifier(e,128))return XD(e,e.end-1,";".length,tS.Diagnostics._0_expected,"{")}if(e.body&&tS.hasSyntacticModifier(e,128))return YD(e,tS.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(e.typeParameters)return YD(e.name,tS.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return zD(e)||e.parameters.length===(167===e.kind?0:1)}(e))return YD(e.name,167===e.kind?tS.Diagnostics.A_get_accessor_cannot_have_parameters:tS.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(168===e.kind){if(e.type)return YD(e.name,tS.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=tS.Debug.checkDefined(tS.getSetAccessorValueParameter(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return YD(t.dotDotDotToken,tS.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return YD(t.questionToken,tS.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return YD(e.name,tS.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||LD(e.name),Wv(e),hv(e),167===e.kind&&!(8388608&e.flags)&&tS.nodeIsPresent(e.body)&&256&e.flags&&(512&e.flags||hn(e.name,tS.Diagnostics.A_get_accessor_must_return_a_value)),158===e.name.kind&&Zg(e.name),tS.isPrivateIdentifier(e.name)&&hn(e.name,tS.Diagnostics.An_accessor_cannot_be_named_with_a_private_identifier),Yo(e)||(r=167===e.kind?168:167,(n=tS.getDeclarationOfKind(Ai(e),r))&&((28&(t=tS.getEffectiveModifierFlags(e)))!=(28&(r=tS.getEffectiveModifierFlags(n)))&&hn(e.name,tS.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&t)!=(128&r)&&hn(e.name,tS.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Tv(e,n,no,tS.Diagnostics.get_and_set_accessor_must_have_the_same_type),Tv(e,n,io,tS.Diagnostics.get_and_set_accessor_must_have_the_same_this_type))),n=ao(Ai(e)),167===e.kind&&Ph(e,n)),Sx(e.body)}function Tv(e,t,r,n){var i=r(e),t=r(t);i&&t&&!O_(i,t)&&hn(e,n)}function Cv(e,t){return Sc(tS.map(e.typeArguments,e_),t,Dc(t),tS.isInJSFile(e))}function Ev(e,t){for(var r,n,i=!0,a=0;a<t.length;a++){var o=js(t[a]);o&&(r||(n=a_(t,r=Cv(e,t))),i=i&&V_(r[a],C_(o,n),e.typeArguments[a],tS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function kv(e){var t=du(e);if(t!==Ie){e=wn(e).resolvedSymbol;if(e)return 524288&e.flags&&Pn(e).typeParameters||(4&tS.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function Nv(e){wD(e,e.typeArguments),173!==e.kind||void 0===e.typeName.jsdocDotPos||tS.isInJSFile(e)||tS.isInJSDoc(e)||XD(e,e.typeName.jsdocDotPos,1,tS.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),tS.forEach(e.typeArguments,Sx);var t,r=du(e);r!==Ie&&(e.typeArguments&&M&&((t=kv(e))&&Ev(e,t)),(t=wn(e).resolvedSymbol)&&(tS.some(t.declarations,function(e){return wx(e)&&!!(134217728&e.flags)})&&bn(!1,Qy(e),tS.Diagnostics._0_is_deprecated,t.escapedName),32&r.flags&&8&t.flags&&hn(e,tS.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,ua(r))))}function Av(e,t){if(!(8388608&e.flags))return e;var r=e.objectType,n=e.indexType;if(j_(n,il(r,!1)))return 202===t.kind&&tS.isAssignmentTarget(t)&&32&tS.getObjectFlags(r)&&1&As(r)&&hn(t,tS.Diagnostics.Index_signature_in_type_0_only_permits_reading,ua(r)),e;var i=Ys(r);if(dc(i,1)&&zh(n,296))return e;if(ml(r)){var a=ll(n,t);if(a){i=Ff(i,function(e){return sc(e,a)});if(i&&24&tS.getDeclarationModifierFlagsFromSymbol(i))return hn(t,tS.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,tS.unescapeLeadingUnderscores(a)),Ie}}return hn(t,tS.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ua(n),ua(r)),Ie}function Fv(e){!function(e){if(151===e.operator){if(148!==e.type.kind)return YD(e.type,tS.Diagnostics._0_expected,tS.tokenToString(148));var t=tS.walkUpParenthesizedTypes(e.parent);switch(tS.isInJSFile(t)&&tS.isJSDocTypeExpression(t)&&(t=t.parent,tS.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 249:var r=t;if(78!==r.name.kind)return YD(e,tS.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!tS.isVariableDeclarationInVariableStatement(r))return YD(e,tS.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return YD(t.name,tS.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 163:if(!tS.hasSyntacticModifier(t,32)||!tS.hasEffectiveModifier(t,64))return YD(t.name,tS.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 162:if(!tS.hasSyntacticModifier(t,64))return YD(t.name,tS.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:YD(e,tS.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(142===e.operator&&178!==e.type.kind&&179!==e.type.kind)GD(e,tS.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,tS.tokenToString(148))}(e),Sx(e.type)}function Pv(e){return(tS.hasEffectiveModifier(e,8)||tS.isPrivateIdentifierPropertyDeclaration(e))&&!!(8388608&e.flags)}function wv(e,t){var r=tS.getCombinedModifierFlags(e);return 253!==e.parent.kind&&252!==e.parent.kind&&221!==e.parent.kind&&8388608&e.flags&&(2&r||tS.isModuleBlock(e.parent)&&tS.isModuleDeclaration(e.parent.parent)&&tS.isGlobalScopeAugmentation(e.parent.parent)||(r|=1),r|=2),r&t}function Iv(t){if(M){for(var e,r,n,i,a,o,s,c,u,l,_=0,d=155,p=!1,f=!0,g=!1,m=t.declarations,y=0!=(16384&t.flags),h=!1,v=!1,b=!1,x=[],D=0,S=m;D<S.length;D++){var T=S[D],C=8388608&T.flags,E=T.parent&&(253===T.parent.kind||177===T.parent.kind)||C;E&&(n=void 0),252!==T.kind&&221!==T.kind||C||(b=!0),251!==T.kind&&165!==T.kind&&164!==T.kind&&166!==T.kind||(x.push(T),_|=C=wv(T,155),d&=C,p=p||tS.hasQuestionToken(T),f=f&&tS.hasQuestionToken(T),(C=tS.nodeIsPresent(T.body))&&e?y?v=!0:h=!0:(null==n?void 0:n.parent)===T.parent&&n.end!==T.pos&&I(n),C?e=e||T:g=!0,n=T,E||(r=T))}if(v&&tS.forEach(x,function(e){hn(e,tS.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),h&&tS.forEach(x,function(e){hn(tS.getNameOfDeclaration(e)||e,tS.Diagnostics.Duplicate_function_implementation)}),b&&!y&&16&t.flags&&tS.forEach(m,function(e){Nn(e,tS.Diagnostics.Duplicate_identifier_0,tS.symbolName(t),m)}),!r||r.body||tS.hasSyntacticModifier(r,128)||r.questionToken||I(r),g&&(s=m,c=e,u=155,0!=(_^d)&&(l=wv(w(s,c),u),tS.forEach(s,function(e){var t=wv(e,u)^l;1&t?hn(tS.getNameOfDeclaration(e),tS.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?hn(tS.getNameOfDeclaration(e),tS.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?hn(tS.getNameOfDeclaration(e)||e,tS.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&hn(tS.getNameOfDeclaration(e),tS.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})),i=m,a=e,p!==f&&(o=tS.hasQuestionToken(w(i,a)),tS.forEach(i,function(e){tS.hasQuestionToken(e)!==o&&hn(tS.getNameOfDeclaration(e),tS.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})),e))for(var k=kc(t),N=Tc(e),A=0,F=k;A<F.length;A++){var P=F[A];if(!$_(N,P)){tS.addRelatedInfo(hn(P.declaration,tS.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),tS.createDiagnosticForNode(e,tS.Diagnostics.The_implementation_signature_is_declared_here));break}}}function w(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function I(t){if(!t.name||!tS.nodeIsMissing(t.name)){var r=!1,e=tS.forEachChild(t.parent,function(e){return r?e:void(r=e===t)});if(e&&e.pos===t.end&&e.kind===t.kind){var n=e.name||e,i=e.name;if(t.name&&i&&(tS.isPrivateIdentifier(t.name)&&tS.isPrivateIdentifier(i)&&t.name.escapedText===i.escapedText||tS.isComputedPropertyName(t.name)&&tS.isComputedPropertyName(i)||tS.isPropertyNameLiteral(t.name)&&tS.isPropertyNameLiteral(i)&&tS.getEscapedTextOfIdentifierOrLiteral(t.name)===tS.getEscapedTextOfIdentifierOrLiteral(i)))return void((165===t.kind||164===t.kind)&&tS.hasSyntacticModifier(t,32)!==tS.hasSyntacticModifier(e,32)&&hn(n,tS.hasSyntacticModifier(t,32)?tS.Diagnostics.Function_overload_must_be_static:tS.Diagnostics.Function_overload_must_not_be_static));if(tS.nodeIsPresent(e.body))return void hn(n,tS.Diagnostics.Function_implementation_name_must_be_0,tS.declarationNameToString(t.name))}n=t.name||t;y?hn(n,tS.Diagnostics.Constructor_implementation_is_missing):tS.hasSyntacticModifier(t,128)?hn(n,tS.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):hn(n,tS.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Ov(e){if(M){var t=e.localSymbol;if((t||(t=Ai(e)).exportSymbol)&&tS.getDeclarationOfKind(t,e.kind)===e){for(var r=0,n=0,i=0,a=0,o=t.declarations;a<o.length;a++){var s=g(p=o[a]),c=wv(p,513);1&c?512&c?i|=s:r|=s:n|=s}var u=r&n,l=i&(r|n);if(u||l)for(var _=0,d=t.declarations;_<d.length;_++){var p,s=g(p=d[_]),f=tS.getNameOfDeclaration(p);s&l?hn(f,tS.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,tS.declarationNameToString(f)):s&u&&hn(f,tS.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,tS.declarationNameToString(f))}}}function g(e){var t=e;switch(t.kind){case 253:case 254:case 331:case 324:case 325:return 2;case 256:return tS.isAmbientModule(t)||0!==tS.getModuleInstanceState(t)?5:4;case 252:case 255:case 291:return 3;case 297:return 7;case 266:if(!tS.isEntityNameExpression(t.expression))return 1;t=t.expression;case 260:case 263:case 262:var r=0,n=ai(Ai(t));return tS.forEach(n.declarations,function(e){r|=g(e)}),r;case 249:case 198:case 251:case 265:case 78:return 1;default:return tS.Debug.failBadSyntaxKind(t)}}}function Mv(e,t,r,n){e=Lv(e,t);return e&&Bv(e,t,r,n)}function Lv(e,t){if(!Na(e)){var r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(po(e,xu(!1)))return r.promisedTypeOfPromise=$c(e)[0];e=ka(e,"then");if(!Na(e)){e=e?uc(e,0):tS.emptyArray;if(0!==e.length){e=gf(Ku(tS.map(e,yh)),2097152);if(!Na(e)){e=uc(e,0);if(0!==e.length)return r.promisedTypeOfPromise=Ku(tS.map(e,yh),2);t&&hn(t,tS.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&hn(t,tS.Diagnostics.A_promise_must_have_a_then_method)}}}function Rv(e,t,r,n){return Bv(e,t,r,n)||Ie}function Bv(e,t,r,n){return Na(e)?e:e.awaitedTypeOfType||(e.awaitedTypeOfType=If(e,t?function(e){return jv(e,t,r,n)}:jv))}function jv(e,t,r,n){var i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;var a=Lv(e);if(a){if(e.id===a.id||0<=nn.lastIndexOf(a.id))return void(t&&hn(t,tS.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));nn.push(e.id);var o=Bv(a,t,r,n);return nn.pop(),o?i.awaitedTypeOfType=o:void 0}if(o=e,!((o=ka(o,"then"))&&0<uc(gf(o,2097152),0).length))return i.awaitedTypeOfType=e;if(t){if(!r)return tS.Debug.fail();hn(t,r,n)}}function Jv(e){var t=qy(e);Xy(t,e);var r=Pc(t);if(!(1&r.flags)){var n,t=Jy(e);switch(e.parent.kind){case 252:var i=Ku([_o(Ai(e.parent)),Ye]);break;case 160:i=Ye,n=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 163:i=Ye,n=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 165:case 167:case 168:i=Ku([Eu(jx(e.parent)),Ye]);break;default:return tS.Debug.fail()}V_(r,i,e,t,function(){return n})}}function zv(e){var t;e&&(t=tS.getFirstIdentifier(e),e=2097152|(78===e.kind?788968:1920),(e=Rn(t,t.escapedText,e,void 0,void 0,!0))&&2097152&e.flags&&Li(e)&&!tD(ai(e))&&!ci(e)&&li(e))}function Uv(e){e=Vv(e);e&&tS.isEntityName(e)&&zv(e)}function Vv(e){if(e)switch(e.kind){case 183:case 182:return Kv(e.types);case 184:return Kv([e.trueType,e.falseType]);case 186:case 192:return Vv(e.type);case 173:return e.typeName}}function Kv(e){for(var t,r=0,n=e;r<n.length;r++){for(var i=n[r];186===i.kind||192===i.kind;)i=i.type;if(141!==i.kind&&(X||(191!==i.kind||103!==i.literal.kind)&&150!==i.kind)){var a=Vv(i);if(!a)return;if(t){if(!tS.isIdentifier(t)||!tS.isIdentifier(a)||t.escapedText!==a.escapedText)return}else t=a}}return t}function qv(e){var t=tS.getEffectiveTypeAnnotationNode(e);return tS.isRestParameter(e)?tS.getRestParameterElementType(t):t}function Wv(e){if(e.decorators&&tS.nodeCanBeDecorated(e,e.parent,e.parent.parent)){G.experimentalDecorators||hn(e,tS.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=e.decorators[0];if(CD(t,8),160===e.kind&&CD(t,32),G.emitDecoratorMetadata)switch(CD(t,16),e.kind){case 252:var r=tS.getFirstConstructorWithBody(e);if(r)for(var n=0,i=r.parameters;n<i.length;n++)Uv(qv(i[n]));break;case 167:case 168:r=167===e.kind?168:167,r=tS.getDeclarationOfKind(Ai(e),r);Uv(ro(e)||r&&ro(r));break;case 165:for(var a=0,o=e.parameters;a<o.length;a++)Uv(qv(o[a]));Uv(tS.getEffectiveReturnTypeNode(e));break;case 163:Uv(tS.getEffectiveTypeAnnotationNode(e));break;case 160:Uv(qv(e));for(var s=0,c=e.parent.parameters;s<c.length;s++)Uv(qv(c[s]))}tS.forEach(e.decorators,Jv)}}function Hv(e){switch(e.kind){case 78:return e;case 201:return e.name;default:return}}function Gv(t){Wv(t),hv(t);var e,r,n=tS.getFunctionFlags(t);t.name&&158===t.name.kind&&Zg(t.name),Yo(t)||(i=Ai(t),e=t.localSymbol||i,r=tS.find(e.declarations,function(e){return e.kind===t.kind&&!(131072&e.flags)}),t===r&&Iv(e),i.parent&&Iv(i));var i=164===t.kind?void 0:t.body;Sx(i),Ph(t,wc(t)),M&&!tS.getEffectiveReturnTypeNode(t)&&(tS.nodeIsMissing(i)&&!Pv(t)&&bp(t,Fe),1&n&&tS.nodeIsPresent(i)&&Pc(Tc(t))),!tS.isInJSFile(t)||(i=tS.getJSDocTypeTag(t))&&i.typeExpression&&!Ug(e_(i.typeExpression),t)&&hn(i,tS.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function Xv(e){var t,r;M&&(t=tS.getSourceFileOfNode(e),(r=Ar.get(t.path))||(r=[],Ar.set(t.path,r)),r.push(e))}function Qv(e,t){for(var r,n,i,a=0,o=e;a<o.length;a++){var c=o[a];switch(c.kind){case 252:case 221:!function(e){for(var t=0,r=c.members;t<r.length;t++){var n=r[t];switch(n.kind){case 165:case 163:case 167:case 168:if(168===n.kind&&32768&n.symbol.flags)break;var i=Ai(n);i.isReferenced||!(tS.hasEffectiveModifier(n,8)||tS.isNamedDeclaration(n)&&tS.isPrivateIdentifier(n.name))||8388608&n.flags||e(n,0,tS.createDiagnosticForNode(n.name,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,sa(i)));break;case 166:for(var a=0,o=n.parameters;a<o.length;a++){var s=o[a];!s.symbol.isReferenced&&tS.hasSyntacticModifier(s,8)&&e(s,0,tS.createDiagnosticForNode(s.name,tS.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,tS.symbolName(s.symbol)))}break;case 171:case 229:break;default:tS.Debug.fail()}}}(t),$v(c,t);break;case 297:case 256:case 230:case 258:case 237:case 238:case 239:nb(c,t);break;case 166:case 208:case 251:case 209:case 165:case 167:case 168:c.body&&nb(c,t),$v(c,t);break;case 164:case 169:case 170:case 174:case 175:case 254:case 253:$v(c,t);break;case 185:n=t,i=void 0,eb(i=(r=c).typeParameter)&&n(r,1,tS.createDiagnosticForNode(r,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,tS.idText(i.name)));break;default:tS.Debug.assertNever(c,"Node should not have been registered for unused identifiers check")}}}function Yv(e,t,r){var n=tS.getNameOfDeclaration(e)||e,i=wx(e)?tS.Diagnostics._0_is_declared_but_never_used:tS.Diagnostics._0_is_declared_but_its_value_is_never_read;r(e,0,tS.createDiagnosticForNode(n,i,t))}function Zv(e){return tS.isIdentifier(e)&&95===tS.idText(e).charCodeAt(0)}function $v(e,t){if(tS.last(Ai(e).declarations)===e)for(var e=tS.getEffectiveTypeParameterDeclarations(e),r=new tS.Set,n=0,i=e;n<i.length;n++){var a,o,s,c,u,l=i[n];eb(l)&&(a=tS.idText(l.name),185!==(o=l.parent).kind&&o.typeParameters.every(eb)?tS.tryAddToSet(r,o)&&(s=tS.isJSDocTemplateTag(o)?tS.rangeOfNode(o):tS.rangeOfTypeParameters(o.typeParameters),c=(u=1===o.typeParameters.length)?tS.Diagnostics._0_is_declared_but_its_value_is_never_read:tS.Diagnostics.All_type_parameters_are_unused,u=u?a:void 0,t(l,1,tS.createFileDiagnostic(tS.getSourceFileOfNode(o),s.pos,s.end-s.pos,c,u))):t(l,1,tS.createDiagnosticForNode(l,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,a)))}}function eb(e){return!(262144&Ni(e.symbol).isReferenced||Zv(e.name))}function tb(e,t,r,n){var i=String(n(t)),n=e.get(i);n?n[1].push(r):e.set(i,[t,[r]])}function rb(e){return tS.tryCast(tS.getRootDeclaration(e),tS.isParameter)}function nb(e,o){var s=new tS.Map,c=new tS.Map,u=new tS.Map;e.locals.forEach(function(e){if(262144&e.flags?3&e.flags&&!(3&e.isReferenced):!e.isReferenced&&!e.exportSymbol)for(var t=0,r=e.declarations;t<r.length;t++){var n,i,a=r[t];n=a,(tS.isBindingElement(n)&&Zv(n.name)?tS.findAncestor(n.parent,function(e){return!(tS.isArrayBindingPattern(e)||tS.isVariableDeclaration(e)||tS.isVariableDeclarationList(e))&&(!!tS.isForOfStatement(e)||"quit")}):tS.isAmbientModule(n)||(tS.isVariableDeclaration(n)&&tS.isForInOrOfStatement(n.parent.parent)||ab(n))&&Zv(n.name))||(ab(a)?tb(s,262===(i=a).kind?i:(263===i.kind?i:i.parent).parent,a,pS):tS.isBindingElement(a)&&tS.isObjectBindingPattern(a.parent)?a!==tS.last(a.parent.elements)&&tS.last(a.parent.elements).dotDotDotToken||tb(c,a.parent,a,pS):tS.isVariableDeclaration(a)?tb(u,a.parent,a,pS):(n=e.valueDeclaration&&rb(e.valueDeclaration),i=e.valueDeclaration&&tS.getNameOfDeclaration(e.valueDeclaration),n&&i?tS.isParameterPropertyDeclaration(n,n.parent)||tS.parameterIsThisKeyword(n)||Zv(i)||o(n,1,tS.createDiagnosticForNode(i,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,tS.symbolName(e))):Yv(a,tS.symbolName(e),o)))}}),s.forEach(function(e){var t=e[0],r=e[1],e=t.parent;if((t.name?1:0)+(t.namedBindings?263===t.namedBindings.kind?1:t.namedBindings.elements.length:0)===r.length)o(e,0,1===r.length?tS.createDiagnosticForNode(e,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,tS.idText(tS.first(r).name)):tS.createDiagnosticForNode(e,tS.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var n=0,i=r;n<i.length;n++){var a=i[n];Yv(a,tS.idText(a.name),o)}}),c.forEach(function(e){var t=e[0],e=e[1],r=rb(t.parent)?1:0;if(t.elements.length===e.length)1===e.length&&249===t.parent.kind&&250===t.parent.parent.kind?tb(u,t.parent.parent,t.parent,pS):o(t,r,1===e.length?tS.createDiagnosticForNode(t,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,ib(tS.first(e).name)):tS.createDiagnosticForNode(t,tS.Diagnostics.All_destructured_elements_are_unused));else for(var n=0,i=e;n<i.length;n++){var a=i[n];o(a,r,tS.createDiagnosticForNode(a,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,ib(a.name)))}}),u.forEach(function(e){var t=e[0],e=e[1];if(t.declarations.length===e.length)o(t,0,1===e.length?tS.createDiagnosticForNode(tS.first(e).name,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,ib(tS.first(e).name)):tS.createDiagnosticForNode(232===t.parent.kind?t.parent:t,tS.Diagnostics.All_variables_are_unused));else for(var r=0,n=e;r<n.length;r++){var i=n[r];o(i,0,tS.createDiagnosticForNode(i,tS.Diagnostics._0_is_declared_but_its_value_is_never_read,ib(i.name)))}})}function ib(e){switch(e.kind){case 78:return tS.idText(e);case 197:case 196:return ib(tS.cast(tS.first(e.elements),tS.isBindingElement).name);default:return tS.Debug.assertNever(e)}}function ab(e){return 262===e.kind||265===e.kind||263===e.kind}function ob(e){var t;230===e.kind&&ZD(e),tS.isFunctionOrModuleBlock(e)?(t=Ir,tS.forEach(e.statements,Sx),Ir=t):tS.forEach(e.statements,Sx),e.locals&&Xv(e)}function sb(e,t,r){if(t&&t.escapedText===r&&163!==e.kind&&162!==e.kind&&165!==e.kind&&164!==e.kind&&167!==e.kind&&168!==e.kind&&!(8388608&e.flags)){e=tS.getRootDeclaration(e);return 160===e.kind&&tS.nodeIsMissing(e.parent.body)?void 0:1}}function cb(t){tS.findAncestor(t,function(e){return!!(4&cD(e))&&(78!==t.kind?hn(tS.getNameOfDeclaration(t),tS.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):hn(t,tS.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function ub(t){tS.findAncestor(t,function(e){return!!(8&cD(e))&&(78!==t.kind?hn(tS.getNameOfDeclaration(t),tS.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):hn(t,tS.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function lb(e){67108864&cD(tS.getEnclosingBlockScopeContainer(e))&&yn("noEmit",e,tS.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,"WeakMap")}function _b(e,t){D>=tS.ModuleKind.ES2015||(sb(e,t,"require")||sb(e,t,"exports"))&&(tS.isModuleDeclaration(e)&&1!==tS.getModuleInstanceState(e)||297===(e=Ea(e)).kind&&tS.isExternalOrCommonJsModule(e)&&yn("noEmit",t,tS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,tS.declarationNameToString(t),tS.declarationNameToString(t)))}function db(e,t){4<=R||!sb(e,t,"Promise")||tS.isModuleDeclaration(e)&&1!==tS.getModuleInstanceState(e)||297===(e=Ea(e)).kind&&tS.isExternalOrCommonJsModule(e)&&2048&e.flags&&yn("noEmit",t,tS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,tS.declarationNameToString(t),tS.declarationNameToString(t))}function pb(e){return e===Pe?Fe:e===Lt?Mt:e}function fb(t){var e,r,n,i,a,o,s,c;Wv(t),tS.isBindingElement(t)||Sx(t.type),t.name&&(158===t.name.kind&&(Zg(t.name),t.initializer&&Zh(t.initializer)),198===t.kind&&(196===t.parent.kind&&R<99&&CD(t,4),t.propertyName&&158===t.propertyName.kind&&Zg(t.propertyName),r=Aa(e=t.parent.parent),n=t.propertyName||t.name,r&&!tS.isBindingPattern(n)&&(!Ho(n=el(n))||(i=sc(r,Zo(n)))&&(Ym(i,void 0,!1),Em(e,!!e.initializer&&105===e.initializer.kind,r,i)))),tS.isBindingPattern(t.name)&&(197===t.name.kind&&R<2&&G.downlevelIteration&&CD(t,512),tS.forEach(t.name.elements,Sx)),t.initializer&&tS.isParameterDeclaration(t)&&tS.nodeIsMissing(tS.getContainingFunction(t).body)?hn(t,tS.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation):tS.isBindingPattern(t.name)?(i=t.initializer&&238!==t.parent.parent.kind,s=0===t.name.elements.length,(i||s)&&(a=Ya(t),i&&(o=Zh(t.initializer),X&&s?Mm(o,t):K_(o,Ya(t),t,t.initializer)),s&&(tS.isArrayBindingPattern(t.name)?Eb(65,a,Re,t):X&&Mm(a,t)))):2097152&(o=Ai(t)).flags&&tS.isRequireVariableDeclaration(t,!0)?gx(t):(s=pb(_o(o)),t===o.valueDeclaration?((c=tS.getEffectiveInitializer(t))&&(tS.isInJSFile(t)&&tS.isObjectLiteralExpression(c)&&(0===c.properties.length||tS.isPrototypeAccess(t.name))&&!(null===(a=o.exports)||void 0===a||!a.size)||238===t.parent.parent.kind||K_(Zh(c),s,t,c,void 0)),1<o.declarations.length&&tS.some(o.declarations,function(e){return e!==t&&tS.isVariableLike(e)&&!mb(e,t)})&&hn(t.name,tS.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,tS.declarationNameToString(t.name))):(c=pb(Ya(t)),s===Ie||c===Ie||O_(s,c)||67108864&o.flags||gb(o.valueDeclaration,s,t,c),t.initializer&&K_(Zh(t.initializer),c,t,t.initializer,void 0),mb(t,o.valueDeclaration)||hn(t.name,tS.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,tS.declarationNameToString(t.name))),163!==t.kind&&162!==t.kind&&(Ov(t),249!==t.kind&&198!==t.kind||function(e){if(0==(3&tS.getCombinedNodeFlags(e))&&!tS.isParameterDeclaration(e)&&(249!==e.kind||e.initializer)){var t=Ai(e);if(1&t.flags){if(!tS.isIdentifier(e.name))return tS.Debug.fail();var r=Rn(e,e.name.escapedText,3,void 0,void 0,!1);r&&r!==t&&2&r.flags&&3&Tm(r)&&((t=232===(t=tS.getAncestor(r.valueDeclaration,250)).parent.kind&&t.parent.parent?t.parent.parent:void 0)&&(230===t.kind&&tS.isFunctionLike(t.parent)||257===t.kind||256===t.kind||297===t.kind)||(r=sa(r),hn(e,tS.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,r,r)))}}}(t),_b(t,t.name),db(t,t.name),R<99&&sb(t,t.name,"WeakMap")&&rn.push(t))))}function gb(e,t,r,n){var i=tS.getNameOfDeclaration(r),a=163===r.kind||162===r.kind?tS.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:tS.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,r=tS.declarationNameToString(i),n=hn(i,a,r,ua(t),ua(n));e&&tS.addRelatedInfo(n,tS.createDiagnosticForNode(e,tS.Diagnostics._0_was_also_declared_here,r))}function mb(e,t){if(160===e.kind&&249===t.kind||249===e.kind&&160===t.kind)return 1;if(tS.hasQuestionToken(e)===tS.hasQuestionToken(t))return tS.getSelectedEffectiveModifierFlags(e,504)===tS.getSelectedEffectiveModifierFlags(t,504)}function yb(e){tS.tracing.push("check","checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end}),function(e){if(238!==e.parent.parent.kind&&239!==e.parent.parent.kind)if(8388608&e.flags)qD(e);else if(!e.initializer){if(tS.isBindingPattern(e.name)&&!tS.isBindingPattern(e.parent))return YD(e,tS.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(tS.isVarConst(e))return YD(e,tS.Diagnostics.const_declarations_must_be_initialized)}if(e.exclamationToken&&(232!==e.parent.parent.kind||!e.type||e.initializer||8388608&e.flags)){var t=e.initializer?tS.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:tS.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return YD(e.exclamationToken,t)}(t=tS.getEmitModuleKind(G))<tS.ModuleKind.ES2015&&t!==tS.ModuleKind.System&&!(8388608&e.parent.parent.flags)&&tS.hasSyntacticModifier(e.parent.parent,1)&&function e(t){if(78===t.kind){if("__esModule"===tS.idText(t))return QD("noEmit",t,tS.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=t.elements,r=0,n=t;r<n.length;r++){var i=n[r];if(!tS.isOmittedExpression(i))return e(i.name)}return!1}(e.name),(tS.isLet(e)||tS.isVarConst(e))&&function e(t){if(78===t.kind){if(118===t.originalKeywordKind)return YD(t,tS.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=t.elements,r=0,n=t;r<n.length;r++){var i=n[r];tS.isOmittedExpression(i)||e(i.name)}return!1}(e.name)}(e),fb(e),tS.tracing.pop()}function hb(e){return function(e){if(e.dotDotDotToken){var t=e.parent.elements;if(e!==tS.last(t))return YD(e,tS.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(ND(t,tS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return YD(e.name,tS.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)XD(e,e.initializer.pos-1,1,tS.Diagnostics.A_rest_element_cannot_have_an_initializer)}(e),fb(e)}function vb(e){ED(e)||WD(e.declarationList)||function(e){if(!function e(t){switch(t.kind){case 234:case 235:case 236:case 243:case 237:case 238:case 239:return!1;case 245:return e(t.parent)}return!0}(e.parent))tS.isLet(e.declarationList)?YD(e,tS.Diagnostics.let_declarations_can_only_be_declared_inside_a_block):tS.isVarConst(e.declarationList)&&YD(e,tS.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}(e),tS.forEach(e.declarationList.declarations,Sx)}function bb(a,e,t){var o,s;!X||(o=tS.isIdentifier(a)?a:tS.isPropertyAccessExpression(a)?a.name:void 0)&&(tp(t)||0===uc(t,0).length||(s=Bx(o))&&(tS.forEachChild(e,function e(t){if(tS.isIdentifier(t)){var r=Bx(t);if(r&&r===s){if(tS.isIdentifier(a))return!0;for(var n=o.parent,i=t.parent;n&&i;){if(tS.isIdentifier(n)&&tS.isIdentifier(i)||107===n.kind&&107===i.kind)return Bx(n)===Bx(i);if(!tS.isPropertyAccessExpression(n)||!tS.isPropertyAccessExpression(i))return!1;if(Bx(n.name)!==Bx(i.name))return!1;i=i.expression,n=n.expression}}}return tS.forEachChild(t,e)})||hn(a,tS.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)))}function xb(e,t){return 16384&e.flags&&hn(t,tS.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function Db(e,t){return xb(fv(e,t),e)}function Sb(e){JD(e);var t,r,n,i=Fm(fv(e.expression));250===e.initializer.kind?((n=e.initializer.declarations[0])&&tS.isBindingPattern(n.name)&&hn(n.name,tS.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Tb(e)):(r=fv(t=e.initializer),199===t.kind||200===t.kind?hn(t,tS.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):j_(131072&(n=al(il(n=i))).flags?Ue:n,r)?Rh(t,tS.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,tS.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):hn(t,tS.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)),i!==Ze&&zh(i,126091264)||hn(e.expression,tS.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,ua(i)),Sx(e.statement),e.locals&&Xv(e)}function Tb(e){e=e.initializer;1<=e.declarations.length&&yb(e.declarations[0])}function Cb(e){return Eb(e.awaitModifier?15:13,Nm(e.expression),Re,e.expression)}function Eb(e,t,r,n){return Na(t)?t:kb(e,t,r,n,!0)||Fe}function kb(e,t,r,n,i){var a=0!=(2&e);if(t!==Ze){var o=2<=R,s=!o&&G.downlevelIteration,c=G.noUncheckedIndexedAccess&&!!(128&e);if(o||s||a){var u=wb(t,e,o?n:void 0);if(i&&(!u||(l=8&e?tS.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?tS.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?tS.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?tS.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0)&&V_(r,u.nextType,n,l)),u||o)return c?vf(u&&u.yieldType):u&&u.yieldType}var i=t,r=!1,l=!1;if(4&e)if(1048576&i.flags?(o=t.types,(u=tS.filter(o,function(e){return!(402653316&e.flags)}))!==o&&(i=Ku(u,2))):402653316&i.flags&&(i=Ze),l=i!==t,l&&(R<1&&n&&(hn(n,tS.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),r=!0),131072&i.flags))return c?vf(Ue):Ue;if(!Md(i))return n&&!r&&(r=Nb(e,0,t,void 0),r=(s=4&e&&!l?s?[tS.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:r?[tS.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[tS.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:s?[tS.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:r?[tS.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[tS.Diagnostics.Type_0_is_not_an_array_type,!0])[0],xn(n,s[1]&&!!Mv(i),r,ua(i))),l?c?vf(Ue):Ue:void 0;i=pc(i,1);return l&&i?402653316&i.flags&&!G.noUncheckedIndexedAccess?Ue:Ku(c?[i,Ue,Re]:[i,Ue],2):128&e?vf(i):i}jb(n,t,a)}function Nb(e,t,r,n){if(!Na(r)){n=wb(r,e,n);return n&&n[vS(t)]}}function Ab(e,t,r){if(void 0===e&&(e=Ze),void 0===t&&(t=Ze),void 0===r&&(r=Le),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Gc([e,t,r]),i=br.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},br.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Fb(e){for(var t,r,n,i=0,a=e;i<a.length;i++){var o=a[i];if(void 0!==o&&o!==xr){if(o===Dr)return Dr;t=tS.append(t,o.yieldType),r=tS.append(r,o.returnType),n=tS.append(n,o.nextType)}}return t||r||n?Ab(t&&Ku(t),r&&Ku(r),n&&Qu(n)):xr}function Pb(e,t,r){return e[t]=r}function wb(e,t,r){if(Na(e))return Dr;if(!(1048576&e.flags)){var n=Ob(e,t,r);return n===xr?void(r&&jb(r,e,!!(2&t))):n}var i,a=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",n=e[a];if(n)return n===xr?void 0:n;for(var o=0,s=e.types;o<s.length;o++){var c=Ob(s[o],t,r);if(c===xr)return r&&jb(r,e,!!(2&t)),void Pb(e,a,xr);i=tS.append(i,c)}n=i?Fb(i):xr;return Pb(e,a,n),n===xr?void 0:n}function Ib(e,t){if(e===xr)return xr;if(e===Dr)return Dr;var r=e.yieldType,n=e.returnType,e=e.nextType;return Ab(Bv(r,t)||Fe,Bv(n,t)||Fe,e)}function Ob(e,t,r){if(Na(e))return Dr;var n;if(2&t&&(n=Mb(e,Cr)||Rb(e,Cr)))return n;if(1&t&&(n=Mb(e,Er)||Rb(e,Er))){if(!(2&t))return n;if(n!==xr)return Pb(e,"iterationTypesOfAsyncIterable",Ib(n,r))}if(2&t&&(n=Bb(e,Cr,r))!==xr)return n;if(1&t&&(n=Bb(e,Er,r))!==xr)return 2&t?Pb(e,"iterationTypesOfAsyncIterable",n?Ib(n,r):xr):n;return xr}function Mb(e,t){return e[t.iterableCacheKey]}function Lb(e,t){t=Mb(e,t)||Bb(e,t,void 0);return t===xr?Tr:t}function Rb(e,t){var r;if(po(e,r=t.getGlobalIterableType(!1))||po(e,r=t.getGlobalIterableIteratorType(!1))){var n=$c(e)[0],i=Lb(r,t),a=i.returnType,o=i.nextType;return Pb(e,t.iterableCacheKey,Ab(n,a,o))}if(po(e,t.getGlobalGeneratorType(!1))){i=$c(e),n=i[0],a=i[1],o=i[2];return Pb(e,t.iterableCacheKey,Ab(n,a,o))}}function Bb(e,t,r){var n=sc(e,tS.getPropertyNameForKnownSymbolName(t.iteratorSymbolName)),n=!n||16777216&n.flags?void 0:_o(n);if(Na(n))return Pb(e,t.iterableCacheKey,Dr);n=n?uc(n,0):void 0;if(!tS.some(n))return Pb(e,t.iterableCacheKey,xr);r=null!==(r=Jb(Qu(tS.map(n,Pc)),t,r))&&void 0!==r?r:xr;return Pb(e,t.iterableCacheKey,r)}function jb(e,t,r){r=r?tS.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:tS.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;xn(e,!!Mv(t),r,ua(t))}function Jb(e,t,r){if(Na(e))return Dr;r=zb(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(po(e,r)){var n=$c(e)[0],i=zb(r,t)||Hb(r,t,void 0),a=i===xr?Tr:i,o=a.returnType,i=a.nextType;return Pb(e,t.iteratorCacheKey,Ab(n,o,i))}if(po(e,t.getGlobalIteratorType(!1))||po(e,t.getGlobalGeneratorType(!1))){a=$c(e),n=a[0],o=a[1],i=a[2];return Pb(e,t.iteratorCacheKey,Ab(n,o,i))}}(e,t)||Hb(e,t,r);return r===xr?void 0:r}function zb(e,t){return e[t.iteratorCacheKey]}function Ub(e,t){e=ka(e,"done")||qe;return j_(0===t?qe:He,e)}function Vb(e){return Ub(e,0)}function Kb(e){return Ub(e,1)}function qb(e){if(Na(e))return Dr;var t=e.iterationTypesOfIteratorResult;if(t)return t;if(po(e,(Qt=Qt||hu("IteratorYieldResult",1,!1))||pt))return Pb(e,"iterationTypesOfIteratorResult",Ab($c(e)[0],void 0,void 0));if(po(e,(Yt=Yt||hu("IteratorReturnResult",1,!1))||pt))return Pb(e,"iterationTypesOfIteratorResult",Ab(void 0,$c(e)[0],void 0));var r=wf(e,Vb),t=r!==Ze?ka(r,"value"):void 0,r=wf(e,Kb),r=r!==Ze?ka(r,"value"):void 0;return Pb(e,"iterationTypesOfIteratorResult",t||r?Ab(t,r||Ye,void 0):xr)}function Wb(e,t,r,n){var i=sc(e,r);if(i||"next"===r){var a=!i||"next"===r&&16777216&i.flags?void 0:"next"===r?_o(i):gf(_o(i),2097152);if(Na(a))return"next"===r?Dr:Sr;var o,s,c=a?uc(a,0):tS.emptyArray;if(0===c.length)return n&&hn(n,"next"===r?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic,r),"next"===r?Dr:void 0;if(null!=a&&a.symbol&&1===c.length){var u=t.getGlobalGeneratorType(!1),e=t.getGlobalIteratorType(!1),i=(null===(i=null===(i=u.symbol)||void 0===i?void 0:i.members)||void 0===i?void 0:i.get(r))===a.symbol,l=!i&&(null===(l=null===(l=e.symbol)||void 0===l?void 0:l.members)||void 0===l?void 0:l.get(r))===a.symbol;if(i||l){e=i?u:e,a=a.mapper;return Ab(o_(e.typeParameters[0],a),o_(e.typeParameters[1],a),"next"===r?o_(e.typeParameters[2],a):void 0)}}for(var _,d,p,f=0,g=c;f<g.length;f++){var m=g[f];"throw"!==r&&tS.some(m.parameters)&&(o=tS.append(o,uh(m,0))),s=tS.append(s,Pc(m))}"throw"!==r&&(c=o?Ku(o):Le,"next"===r?_=c:"return"===r&&(y=t.resolveIterationType(c,n)||Fe,d=tS.append(d,y)));var y=s?Qu(s):Ze,y=qb(t.resolveIterationType(y,n)||Fe);return d=y===xr?(n&&hn(n,t.mustHaveAValueDiagnostic,r),p=Fe,tS.append(d,Fe)):(p=y.yieldType,tS.append(d,y.returnType)),Ab(p,Ku(d),_)}}function Hb(e,t,r){r=Fb([Wb(e,t,"next",r),Wb(e,t,"return",r),Wb(e,t,"throw",r)]);return Pb(e,t.iteratorCacheKey,r)}function Gb(e,t,r){if(!Na(t)){r=Xb(t,r);return r&&r[vS(e)]}}function Xb(e,t){if(Na(e))return Dr;var r=t?Cr:Er;return wb(e,t?2:1,void 0)||Jb(e,r,void 0)}function Qb(e){ZD(e)||function(e){for(var t=e;t;){if(tS.isFunctionLike(t))return YD(e,tS.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 245:if(e.label&&t.label.escapedText===e.label.escapedText)return 240!==e.kind||tS.isIterationStatement(t.statement,!0)||YD(e,tS.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 244:if(241===e.kind&&!e.label)return;break;default:if(tS.isIterationStatement(t,!1)&&!e.label)return}t=t.parent}if(e.label){var r=241===e.kind?tS.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:tS.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return YD(e,r)}r=241===e.kind?tS.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:tS.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement,YD(e,r)}(e)}function Yb(e,t){var r=!!(2&t);return!!(1&t)?null!==(t=Gb(1,e,r))&&void 0!==t?t:Ie:r?null!==(r=Bv(e))&&void 0!==r?r:Ie:e}function Zb(e,t){e=Yb(t,tS.getFunctionFlags(e));return e&&Jh(e,16387)}function $b(e){var t,r,n,i,a,o;ZD(e)||tS.isIdentifier(e.expression)&&!e.expression.escapedText&&(t=e,r=tS.Diagnostics.Line_break_not_permitted_here,HD(o=tS.getSourceFileOfNode(t))||(t=tS.getSpanOfTokenAtPosition(o,t.pos),an.add(tS.createFileDiagnostic(o,tS.textSpanEnd(t),0,r,n,i,a)))),e.expression&&fv(e.expression)}function ex(r){var e,n=Uc(r.symbol,1),i=Uc(r.symbol,0),a=pc(r,0),o=pc(r,1);if(a||o){tS.forEach(Os(r),function(e){var t=_o(e);_(e,t,r,i,a,0),_(e,t,r,n,o,1)});var t=r.symbol.valueDeclaration;if(1&tS.getObjectFlags(r)&&tS.isClassLike(t))for(var s=0,c=t.members;s<c.length;s++){var u,l=c[s];!tS.hasSyntacticModifier(l,32)&&Yo(l)&&(_(u=Ai(l),l=_o(u),r,i,a,0),_(u,l,r,n,o,1))}}function _(t,e,r,n,i,a){var o,s,c;i&&!tS.isKnownSymbol(t)&&((s=(o=t.valueDeclaration)&&tS.getNameOfDeclaration(o))&&tS.isPrivateIdentifier(s)||(1!==a||(s?Xg(s):Yg(t.escapedName)))&&(o&&s&&(216===o.kind||158===s.kind||t.parent===r.symbol)?c=o:n?c=n:2&tS.getObjectFlags(r)&&(c=tS.forEach(ko(r),function(e){return Ms(e,t.escapedName)&&pc(e,a)})?void 0:r.symbol.declarations[0]),c&&!j_(e,i)&&hn(c,0===a?tS.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:tS.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,sa(t),ua(e),ua(i))))}a&&o&&!(e=n||i)&&2&tS.getObjectFlags(r)&&(e=tS.forEach(ko(r),function(e){return pc(e,0)&&pc(e,1)})?void 0:r.symbol.declarations[0]),e&&!j_(o,a)&&hn(e,tS.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,ua(o),ua(a))}function tx(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":hn(e,t,e.escapedText)}}function rx(e){if(e)for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(gv(n),M){n.default?(t=!0,a=n.default,o=e,s=r,function e(t){if(173===t.kind){var r=du(t);if(262144&r.flags)for(var n=s;n<o.length;n++)r.symbol===Ai(o[n])&&hn(t,tS.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}tS.forEachChild(t,e)}(a)):t&&hn(n,tS.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var i=0;i<r;i++)e[i].symbol===n.symbol&&hn(n.name,tS.Diagnostics.Duplicate_identifier_0,tS.declarationNameToString(n.name))}}var a,o,s}function nx(e){if(1!==e.declarations.length){var t=Pn(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;t=(t=e,tS.filter(t.declarations,function(e){return 252===e.kind||253===e.kind}));if(!(t.length<=1))if(!function(e,t){for(var r=tS.length(t),n=Dc(t),i=0,a=e;i<a.length;i++){var o=a[i],s=tS.getEffectiveTypeParameterDeclarations(o),c=s.length;if(c<n||r<c)return!1;for(var u=0;u<c;u++){var l=s[u],_=t[u];if(l.name.escapedText!==_.symbol.escapedName)return!1;var d=tS.getEffectiveConstraintOfTypeParameter(l),p=d&&e_(d),d=js(_);if(p&&d&&!O_(p,d))return!1;l=l.default&&e_(l.default),_=Xs(_);if(l&&_&&!O_(l,_))return!1}}return!0}(t,Ro(e).localTypeParameters))for(var r=sa(e),n=0,i=t;n<i.length;n++)hn(i[n].name,tS.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,r)}}}function ix(e){s=e,u=tS.getSourceFileOfNode(s),function(e){var t=!1,r=!1;if(!ED(e)&&e.heritageClauses)for(var n=0,i=e.heritageClauses;n<i.length;n++){var a=i[n];if(93===a.token){if(t)return GD(a,tS.Diagnostics.extends_clause_already_seen);if(r)return GD(a,tS.Diagnostics.extends_clause_must_precede_implements_clause);if(1<a.types.length)return GD(a.types[1],tS.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(tS.Debug.assert(116===a.token),r)return GD(a,tS.Diagnostics.implements_clause_already_seen);r=!0}OD(a)}}(s)||AD(s.typeParameters,u),Wv(e),e.name&&(tx(e.name,tS.Diagnostics.Class_name_cannot_be_0),_b(e,e.name),db(e,e.name),8388608&e.flags||(l=e.name,1===R&&"Object"===l.escapedText&&D<tS.ModuleKind.ES2015&&hn(l,tS.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,tS.ModuleKind[D]))),rx(tS.getEffectiveTypeParameterDeclarations(e)),Ov(e);var t=Ai(e),r=Ro(t),n=ns(r),i=_o(t);nx(t),Iv(t),function(e){for(var t=new tS.Map,r=new tS.Map,n=new tS.Map,i=0,a=e.members;i<a.length;i++){var o=a[i];if(166===o.kind)for(var s=0,c=o.parameters;s<c.length;s++){var u=c[s];tS.isParameterPropertyDeclaration(u,o)&&!tS.isBindingPattern(u.name)&&f(t,u.name,u.name.escapedText,3)}else{var l=tS.hasSyntacticModifier(o,32),_=o.name;if(!_)return;var d=tS.isPrivateIdentifier(_)?n:l?r:t,p=_&&tS.getPropertyNameForPropertyNameNode(_);if(p)switch(o.kind){case 167:f(d,_,p,1);break;case 168:f(d,_,p,2);break;case 163:f(d,_,p,3);break;case 165:f(d,_,p,8)}}}function f(e,t,r,n){var i=e.get(r);i?8&i?8!==n&&hn(t,tS.Diagnostics.Duplicate_identifier_0,tS.getTextOfNode(t)):i&n?hn(t,tS.Diagnostics.Duplicate_identifier_0,tS.getTextOfNode(t)):e.set(r,i|n):e.set(r,n)}}(e),8388608&e.flags||function(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t],i=n.name;if(tS.hasSyntacticModifier(n,32)&&i){var a=tS.getPropertyNameForPropertyNameNode(i);switch(a){case"name":case"length":case"caller":case"arguments":case"prototype":hn(i,tS.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,a,ba(Ai(e)))}}}}(e);var a=tS.getEffectiveBaseTypeNode(e);if(a){tS.forEach(a.typeArguments,Sx),R<2&&CD(a.parent,1);var o=tS.getClassExtendsHeritageElement(e);o&&o!==a&&fv(o.expression);var s=ko(r);if(s.length&&M){var c=s[0],u=Co(r),l=Ys(u);if(t=a,!(s=uc(o=l,1)).length||(s=s[0].declaration)&&tS.hasEffectiveModifier(s,8)&&(s=tS.getClassLikeDeclarationOfSymbol(o.symbol),Mx(t,s)||hn(t,tS.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,di(o.symbol))),Sx(a.expression),tS.some(a.typeArguments)){tS.forEach(a.typeArguments,Sx);for(var _=0,d=So(l,a.typeArguments,a);_<d.length;_++)if(!Ev(a,d[_].typeParameters))break}V_(n,h=ns(c,r.thisType),void 0)?V_(i,I_(l),e.name||e,tS.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ax(e,n,h,tS.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&u.flags&&!bo(i)&&hn(e.name||e,tS.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),l.symbol&&32&l.symbol.flags||8650752&u.flags||(p=To(l,a.typeArguments,a),tS.forEach(p,function(e){return!Wy(e.declaration)&&!O_(Pc(e),c)})&&hn(a.expression,tS.Diagnostics.Base_constructors_must_all_have_the_same_return_type)),function(e,t){var r=Rs(t);e:for(var n=0,i=r;n<i.length;n++){var a=i[n],o=ox(a);if(!(4194304&o.flags)){var s=Ms(e,o.escapedName);if(s){var c=ox(s),u=tS.getDeclarationModifierFlagsFromSymbol(o);if(tS.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c===o){var l=tS.getClassLikeDeclarationOfSymbol(e.symbol);if(128&u&&(!l||!tS.hasSyntacticModifier(l,128))){for(var _=0,d=ko(e);_<d.length;_++){var p=d[_];if(p!==t){p=Ms(p,o.escapedName),p=p&&ox(p);if(p&&p!==o)continue e}}221===l.kind?hn(l,tS.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,sa(a),ua(t)):hn(l,tS.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ua(e),sa(a),ua(t))}}else{var f=tS.getDeclarationModifierFlagsFromSymbol(c);if(!(8&u||8&f)){var g,m=void 0,s=98308&o.flags,l=98308&c.flags;if(s&&l)128&u&&!(o.valueDeclaration&&tS.isPropertyDeclaration(o.valueDeclaration)&&o.valueDeclaration.initializer)||o.valueDeclaration&&253===o.valueDeclaration.parent.kind||c.valueDeclaration&&tS.isBinaryExpression(c.valueDeclaration)||(a=4==s&&4!=l,(l=4!=s&&4==l)||a?(g=l?tS.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:tS.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor,hn(tS.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,g,sa(o),ua(t),ua(e))):G.useDefineForClassFields&&(!(g=tS.find(c.declarations,function(e){return 163===e.kind&&!e.initializer}))||33554432&c.flags||128&u||128&f||c.declarations.some(function(e){return!!(8388608&e.flags)})||(u=Ri(tS.getClassLikeDeclarationOfSymbol(e.symbol)),f=g.name,!g.exclamationToken&&u&&tS.isIdentifier(f)&&X&&cx(f,e,u)||(u=tS.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration,hn(tS.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,u,sa(o),ua(t))))));else{if(Cm(o)){if(Cm(c)||4&c.flags)continue;tS.Debug.assert(!!(98304&c.flags)),m=tS.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else m=98304&o.flags?tS.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:tS.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;hn(tS.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,m,ua(t),sa(o),ua(e))}}}}}}}(r,c)}}var p=tS.getEffectiveImplementsTypeNodes(e);if(p)for(var f=0,g=p;f<g.length;f++){var m,y,h,v=g[f];tS.isEntityNameExpression(v.expression)||hn(v.expression,tS.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Nv(v),!M||(m=rc(e_(v)))!==Ie&&(No(m)?(y=m.symbol&&32&m.symbol.flags?tS.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:tS.Diagnostics.Class_0_incorrectly_implements_interface_1,V_(n,h=ns(m,r.thisType),void 0)||ax(e,n,h,y)):hn(v,tS.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members))}M&&(ex(r),bv(e),function(e){if(X&&T&&!(8388608&e.flags))for(var t=Ri(e),r=0,n=e.members;r<n.length;r++){var i,a,o=n[r];2&tS.getEffectiveModifierFlags(o)||sx(o)&&(i=o.name,(tS.isIdentifier(i)||tS.isPrivateIdentifier(i))&&(3&(a=_o(Ai(o))).flags||32768&tp(a)||t&&cx(i,a,t)||hn(o.name,tS.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,tS.declarationNameToString(i))))}}(e))}function ax(e,i,a,t){for(var o=!1,r=function(e){if(tS.hasStaticModifier(e))return"continue";var t,r,n=e.name&&Bx(e.name)||Bx(e);n&&(t=sc(i,n.escapedName),r=sc(a,n.escapedName),t&&r&&(V_(_o(t),_o(r),e.name||e,void 0,function(){return tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,sa(n),ua(i),ua(a))})||(o=!0)))},n=0,s=e.members;n<s.length;n++)r(s[n]);o||V_(i,a,e.name||e,t)}function ox(e){return 1&tS.getCheckFlags(e)?e.target:e}function sx(e){return 163===e.kind&&!tS.hasSyntacticModifier(e,160)&&!e.exclamationToken&&!e.initializer}function cx(e,t,r){e=tS.factory.createPropertyAccessExpression(tS.factory.createThis(),e);return tS.setParent(e.expression,e),tS.setParent(e,r),e.flowNode=r.returnFlowNode,!(32768&tp(Zf(e,t,ap(t))))}function ux(e){if(ED(e)||function(e){var t=!1;if(e.heritageClauses)for(var r=0,n=e.heritageClauses;r<n.length;r++){var i=n[r];if(93!==i.token)return tS.Debug.assert(116===i.token),GD(i,tS.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return GD(i,tS.Diagnostics.extends_clause_already_seen);t=!0,OD(i)}}(e),rx(e.typeParameters),M){tx(e.name,tS.Diagnostics.Interface_name_cannot_be_0),Ov(e);var t=Ai(e);if(nx(t),e===tS.getDeclarationOfKind(t,253)){var r=Ro(t),n=ns(r);if(function(t,e){var r=ko(t);if(r.length<2)return 1;var n=new tS.Map;tS.forEach(Wo(t).declaredProperties,function(e){n.set(e.escapedName,{prop:e,containingType:t})});for(var i=!0,a=0,o=r;a<o.length;a++)for(var s=o[a],c=0,u=Rs(ns(s,t.thisType));c<u.length;c++){var l,_,d=u[c],p=n.get(d.escapedName);p?p.containingType===t||kd(p.prop,d)||(i=!1,l=ua(p.containingType),_=ua(s),p=tS.chainDiagnosticMessages(void 0,tS.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,sa(d),l,_),p=tS.chainDiagnosticMessages(p,tS.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,ua(t),l,_),an.add(tS.createDiagnosticForNodeFromMessageChain(e,p))):n.set(d.escapedName,{prop:d,containingType:s})}return i}(r,e.name)){for(var i=0,a=ko(r);i<a.length;i++)V_(n,ns(a[i],r.thisType),e.name,tS.Diagnostics.Interface_0_incorrectly_extends_interface_1);ex(r)}}vv(e)}tS.forEach(tS.getInterfaceBaseTypeNodes(e),function(e){tS.isEntityNameExpression(e.expression)||hn(e.expression,tS.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Nv(e)}),tS.forEach(e.members,Sx),M&&(bv(e),Xv(e))}function lx(e){var t=wn(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++)var a=i[n],o=function(e,t){{var r;tS.isComputedNonLiteralName(e.name)?hn(e.name,tS.Diagnostics.Computed_property_names_are_not_allowed_in_enums):Yg(r=tS.getTextOfPropertyName(e.name))&&!Qg(r)&&hn(e.name,tS.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(c){var e=wo(Ai(c.parent)),t=tS.isEnumConst(c.parent),r=c.initializer,n=1!==e||Po(c)?function e(t){switch(t.kind){case 214:var r=e(t.operand);if("number"==typeof r)switch(t.operator){case 39:return r;case 40:return-r;case 54:return~r}break;case 216:var n=e(t.left),i=e(t.right);if("number"==typeof n&&"number"==typeof i)switch(t.operatorToken.kind){case 51:return n|i;case 50:return n&i;case 48:return n>>i;case 49:return n>>>i;case 47:return n<<i;case 52:return n^i;case 41:return n*i;case 43:return n/i;case 39:return n+i;case 40:return n-i;case 44:return n%i;case 42:return Math.pow(n,i)}else if("string"==typeof n&&"string"==typeof i&&39===t.operatorToken.kind)return n+i;break;case 10:case 14:return t.text;case 8:return $D(t),+t.text;case 207:return e(t.expression);case 78:var a=t;return Qg(a.escapedText)?+a.escapedText:tS.nodeIsMissing(t)?0:u(t,Ai(c.parent),a.escapedText);case 202:case 201:var o=t;if(_x(o)){var s=_v(o.expression);if(s.symbol&&384&s.symbol.flags){var a=void 0;return a=201===o.kind?o.name.escapedText:tS.escapeLeadingUnderscores(tS.cast(o.argumentExpression,tS.isLiteralExpression).text),u(t,s.symbol,a)}}}return}(r):void 0;if(void 0!==n)t&&"number"==typeof n&&!isFinite(n)&&hn(r,isNaN(n)?tS.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:tS.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===e)return hn(r,tS.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;t?hn(r,tS.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):8388608&c.parent.flags?hn(r,tS.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):zh(t=fv(r),296)?V_(t,Ro(Ai(c.parent)),r,void 0):hn(r,tS.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,ua(t))}return n;function u(e,t,r){t=t.exports.get(r);if(t){r=t.valueDeclaration;if(r!==c)return Mn(r,c)?uD(r):(hn(e,tS.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);hn(e,tS.Diagnostics.Property_0_is_used_before_being_assigned,sa(t))}}}(e);if(8388608&e.parent.flags&&!tS.isEnumConst(e.parent)&&0===wo(Ai(e.parent)))return;return void 0===t?void hn(e.name,tS.Diagnostics.Enum_member_must_have_initializer):t}(a,r),r="number"==typeof(wn(a).enumMemberValue=o)?o+1:void 0}}function _x(e){return 78===e.kind||201===e.kind&&_x(e.expression)||202===e.kind&&_x(e.expression)&&tS.isStringLiteralLike(e.argumentExpression)}function dx(e){tS.isPrivateIdentifier(e.name)&&hn(e,tS.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function px(e){if(M){var t=tS.isGlobalScopeAugmentation(e),r=8388608&e.flags;t&&!r&&hn(e.name,tS.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var n=tS.isAmbientModule(e);if(vx(e,n?tS.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:tS.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;ED(e)||r||10!==e.name.kind||YD(e.name,tS.Diagnostics.Only_ambient_modules_can_use_quoted_names),tS.isIdentifier(e.name)&&(_b(e,e.name),db(e,e.name)),Ov(e);var i=Ai(e);if(512&i.flags&&!r&&1<i.declarations.length&&gS(e,!!G.preserveConstEnums||!!G.isolatedModules)&&((r=function(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if((252===n.kind||251===n.kind&&tS.nodeIsPresent(n.body))&&!(8388608&n.flags))return n}}(i))&&(tS.getSourceFileOfNode(e)!==tS.getSourceFileOfNode(r)?hn(e.name,tS.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<r.pos&&hn(e.name,tS.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)),(r=tS.getDeclarationOfKind(i,252))&&(i=e,r=r,i=tS.getEnclosingBlockScopeContainer(i),r=tS.getEnclosingBlockScopeContainer(r),In(i)?In(r):!In(r)&&i===r)&&(wn(e).flags|=32768)),n)if(tS.isExternalModuleAugmentation(e)){if((t||33554432&Ai(e).flags)&&e.body)for(var a=0,o=e.body.statements;a<o.length;a++)!function e(t,r){switch(t.kind){case 232:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];e(a,r)}break;case 266:case 267:GD(t,tS.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 260:case 261:GD(t,tS.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 198:case 249:var o=t.name;if(tS.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];e(u,r)}break}case 252:case 255:case 251:case 253:case 256:case 254:if(r)return;var o=Ai(t);o&&(!(33554432&o.flags)||o.parent&&tS.isExternalModuleAugmentation(o.parent.declarations[0]))}}(o[a],t)}else In(e.parent)?t?hn(e.name,tS.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):tS.isExternalModuleNameRelative(tS.getTextOfIdentifierOrLiteral(e.name))&&hn(e.name,tS.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):hn(e.name,t?tS.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:tS.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}e.body&&(Sx(e.body),tS.isGlobalScopeAugmentation(e)||Xv(e))}function fx(e){var t=tS.getExternalModuleName(e);if(t&&!tS.nodeIsMissing(t))if(tS.isStringLiteral(t)){var r=257===e.parent.kind&&tS.isAmbientModule(e.parent.parent);if(297===e.parent.kind||r){if(!r||!tS.isExternalModuleNameRelative(t.text)||ya(e))return 1;hn(e,tS.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name)}else hn(t,267===e.kind?tS.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:tS.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module)}else hn(t,tS.Diagnostics.String_literal_expected)}function gx(e){var t,r=Ai(e),n=ai(r);n!==Ne&&(t=(1160127&(r=Ni(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0),n.flags&t&&hn(e,270===e.kind?tS.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:tS.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,sa(r)),!G.isolatedModules||270!==e.kind||e.parent.parent.isTypeOnly||111551&n.flags||8388608&e.flags||hn(e,tS.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),tS.isImportSpecifier(e)&&tS.every(n.declarations,function(e){return!!(134217728&tS.getCombinedNodeFlags(e))})&&bn(!1,e.name,tS.Diagnostics._0_is_deprecated,r.escapedName))}function mx(e){_b(e,e.name),db(e,e.name),gx(e),265===e.kind&&"default"===tS.idText(e.propertyName||e.name)&&G.esModuleInterop&&D!==tS.ModuleKind.System&&D<tS.ModuleKind.ES2015&&CD(e,262144)}function yx(e){var t;vx(e,tS.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)||(!ED(e)&&tS.hasEffectiveModifiers(e)&&GD(e,tS.Diagnostics.An_import_declaration_cannot_have_modifiers),!fx(e)||(t=e.importClause)&&!function(e){if(e.isTypeOnly&&e.name&&e.namedBindings)return YD(e,tS.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);return!1}(t)&&(t.name&&mx(t),t.namedBindings&&(263===t.namedBindings.kind?(mx(t.namedBindings),D!==tS.ModuleKind.System&&D<tS.ModuleKind.ES2015&&G.esModuleInterop&&CD(e,131072)):gi(e,e.moduleSpecifier)&&tS.forEach(t.namedBindings.elements,mx))))}function hx(e){var t,r,n;vx(e,tS.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)||(!ED(e)&&tS.hasEffectiveModifiers(e)&&GD(e,tS.Diagnostics.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&tS.isNamedExports(e.exportClause)&&tS.length(e.exportClause.elements)&&0===R&&CD(e,4194304),(t=(r=e).isTypeOnly&&268!==(null===(t=r.exportClause)||void 0===t?void 0:t.kind))&&YD(r,tS.Diagnostics.Only_named_exports_may_use_export_type),e.moduleSpecifier&&!fx(e)||(e.exportClause&&!tS.isNamespaceExport(e.exportClause)?(tS.forEach(e.exportClause.elements,xx),n=!(r=257===e.parent.kind&&tS.isAmbientModule(e.parent.parent))&&257===e.parent.kind&&!e.moduleSpecifier&&8388608&e.flags,297===e.parent.kind||r||n||hn(e,tS.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)):((n=gi(e,e.moduleSpecifier))&&xi(n)?hn(e.moduleSpecifier,tS.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,sa(n)):e.exportClause&&gx(e.exportClause),D!==tS.ModuleKind.System&&D<tS.ModuleKind.ES2015&&(e.exportClause?G.esModuleInterop&&CD(e,131072):CD(e,65536)))))}function vx(e,t){var r=297===e.parent.kind||257===e.parent.kind||256===e.parent.kind;return r||GD(e,t),!r}function bx(e){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];tS.isImportDeclaration(i)&&i.importClause&&!i.importClause.isTypeOnly&&(t=i.importClause,tS.forEachImportClauseDeclaration(t,function(e){return!!Ai(e).isReferenced}))&&!rD(i.importClause,!0)&&(t=i.importClause,!tS.forEachImportClauseDeclaration(t,function(e){return!!Pn(Ai(e)).constEnumReferenced}))&&hn(i,tS.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error)}}function xx(e){var t,r;gx(e),tS.getEmitDeclarations(G)&&Da(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier?G.esModuleInterop&&D!==tS.ModuleKind.System&&D<tS.ModuleKind.ES2015&&"default"===tS.idText(e.propertyName||e.name)&&CD(e,262144):(r=Rn(t=e.propertyName||e.name,t.escapedText,2998271,void 0,void 0,!0))&&(r===_e||r===de||In(Ea(r.declarations[0])))?hn(t,tS.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,tS.idText(t)):(ui(e),(!(r=r&&(2097152&r.flags?ai(r):r))||r===Ne||111551&r.flags)&&Zh(e.propertyName||e.name))}function Dx(e){var t,r=Ai(e),n=Pn(r);n.exportsChecked||((t=r.exports.get("export="))&&(e=r,tS.forEachEntry(e.exports,function(e,t){return"export="!==t}))&&(ya(t=Kn(t)||t.valueDeclaration)||tS.isInJSFile(t)||hn(t,tS.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)),(r=Ci(r))&&r.forEach(function(e,t){var r=e.declarations,n=e.flags;if("__export"!==t&&!(1984&n)){e=tS.countWhere(r,cS);if(!(524288&n&&e<=2)&&1<e)for(var i=0,a=r;i<a.length;i++){var o=a[i];mS(o)&&an.add(tS.createDiagnosticForNode(o,tS.Diagnostics.Cannot_redeclare_exported_variable_0,tS.unescapeLeadingUnderscores(t)))}}}),n.exportsChecked=!0)}function Sx(e){var t;e&&(t=H,l=0,function(e){tS.isInJSFile(e)&&tS.forEach(e.jsDoc,function(e){e=e.tags;return tS.forEach(e,Sx)});var t=e.kind;if(x)switch(t){case 256:case 252:case 253:case 251:x.throwIfCancellationRequested()}switch(232<=t&&t<=248&&e.flowNode&&!Qf(e.flowNode)&&bn(!1===G.allowUnreachableCode,e,tS.Diagnostics.Unreachable_code_detected),t){case 159:return gv(e);case 160:return mv(e);case 163:return xv(e);case 162:return function(e){tS.isPrivateIdentifier(e.name)&&hn(e,tS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),xv(e)}(e);case 174:case 175:case 169:case 170:case 171:return hv(e);case 165:case 164:return function(e){VD(e)||LD(e.name),tS.isPrivateIdentifier(e.name)&&hn(e,tS.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Gv(e),tS.hasSyntacticModifier(e,128)&&165===e.kind&&e.body&&hn(e,tS.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,tS.declarationNameToString(e.name))}(e);case 166:return Dv(e);case 167:case 168:return Sv(e);case 173:return Nv(e);case 172:return yv(e);case 176:return function(e){fu(e)}(e);case 177:return function(e){tS.forEach(e.members,Sx),M&&(ex(Ml(e)),bv(e),vv(e))}(e);case 178:return function(e){Sx(e.elementType)}(e);case 179:return function(e){for(var t=e.elements,r=!1,n=!1,i=tS.some(t,tS.isNamedTupleMember),a=0;a<t.length;a++){var o=t[a];if(192!==o.kind&&i){YD(o,tS.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var s=Nu(o);if(8&s){var c=e_(o.type);if(!Md(c)){hn(o,tS.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Pd(c)||Hd(c)&&4&c.target.combinedFlags)&&(n=!0)}else if(4&s)n=!0;else if(2&s)r=!0;else if(r){YD(o,tS.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}if(n&&a!==t.length-1){YD(o,tS.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}}tS.forEach(e.elements,Sx),e_(e)}(e);case 182:case 183:return function(e){tS.forEach(e.types,Sx),e_(e)}(e);case 186:case 180:case 181:return Sx(e.type);case 187:return function(e){Yl(e)}(e);case 188:return Fv(e);case 184:return function(e){tS.forEachChild(e,Sx)}(e);case 185:return function(e){tS.findAncestor(e,function(e){return e.parent&&184===e.parent.kind&&e.parent.extendsType===e})||YD(e,tS.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Sx(e.typeParameter),Xv(e)}(e);case 193:return function(e){for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];Sx(n.type),V_(e_(n.type),st,n.type)}e_(e)}(e);case 195:return function(e){Sx(e.argument),e_(e)}(e);case 192:return function(e){e.dotDotDotToken&&e.questionToken&&YD(e,tS.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),180===e.type.kind&&YD(e.type,tS.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),181===e.type.kind&&YD(e.type,tS.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Sx(e.type),e_(e)}(e);case 315:return function(e){var t,r,n=tS.getEffectiveJSDocHost(e);n&&(tS.isClassDeclaration(n)||tS.isClassExpression(n))?(r=tS.getJSDocTags(n).filter(tS.isJSDocAugmentsTag),tS.Debug.assert(0<r.length),1<r.length&&hn(r[1],tS.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag),t=Hv(e.class.expression),!(r=tS.getClassExtendsHeritageElement(n))||(r=Hv(r.expression))&&t.escapedText!==r.escapedText&&hn(t,tS.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,tS.idText(e.tagName),tS.idText(t),tS.idText(r))):hn(n,tS.Diagnostics.JSDoc_0_is_not_attached_to_a_class,tS.idText(e.tagName))}(e);case 316:return function(e){var t=tS.getEffectiveJSDocHost(e);t&&(tS.isClassDeclaration(t)||tS.isClassExpression(t))||hn(t,tS.Diagnostics.JSDoc_0_is_not_attached_to_a_class,tS.idText(e.tagName))}(e);case 331:case 324:case 325:return function(e){e.typeExpression||hn(e.name,tS.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&tx(e.name,tS.Diagnostics.Type_alias_name_cannot_be_0),Sx(e.typeExpression)}(e);case 330:return function(e){Sx(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)Sx(r[t])}(e);case 329:return function(e){Sx(e.typeExpression)}(e);case 326:return function(e){var t,r;Sx(e.typeExpression),tS.getParameterSymbolFromJSDoc(e)||(t=tS.getHostSignatureFromJSDoc(e))&&(-1<(r=tS.getJSDocTags(t).filter(tS.isJSDocParameterTag).indexOf(e))&&r<t.parameters.length&&tS.isBindingPattern(t.parameters[r].name)||(Ec(t)?tS.findLast(tS.getJSDocTags(t),tS.isJSDocParameterTag)===e&&e.typeExpression&&e.typeExpression.type&&!Pd(e_(e.typeExpression.type))&&hn(e.name,tS.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,tS.idText(157===e.name.kind?e.name.right:e.name)):tS.isQualifiedName(e.name)?hn(e.name,tS.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,tS.entityNameToString(e.name),tS.entityNameToString(e.name.left)):hn(e.name,tS.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,tS.idText(e.name))))}(e);case 333:return function(e){Sx(e.typeExpression)}(e);case 308:!function(e){!M||e.type||tS.isJSDocConstructSignature(e)||bp(e,Fe),hv(e)}(e);case 306:case 305:case 303:case 304:case 312:return Tx(e),tS.forEachChild(e,Sx);case 309:return function(e){Tx(e),Sx(e.type);var t=e.parent;if(tS.isParameter(t)&&tS.isJSDocFunctionType(t.parent))return tS.last(t.parent.parameters)!==t&&hn(e,tS.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);tS.isJSDocTypeExpression(t)||hn(e,tS.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=e.parent.parent;if(!tS.isJSDocParameterTag(r))return hn(e,tS.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);(t=tS.getParameterSymbolFromJSDoc(r))&&((r=tS.getHostSignatureFromJSDoc(r))&&tS.last(r.parameters).symbol===t||hn(e,tS.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list))}(e);case 301:return Sx(e.type);case 189:return function(e){Sx(e.objectType),Sx(e.indexType),Av(El(e),e)}(e);case 190:return function(e){Sx(e.typeParameter),Sx(e.nameType),Sx(e.type),e.type||bp(e,Fe);var t=kl(e),r=Ts(t);r?V_(r,at,e.nameType):V_(Ss(t),at,tS.getEffectiveConstraintOfTypeParameter(e.typeParameter))}(e);case 251:return function(e){M&&(Gv(e),RD(e),_b(e,e.name),db(e,e.name))}(e);case 230:case 257:return ob(e);case 232:return vb(e);case 233:return function(e){ZD(e),fv(e.expression)}(e);case 234:return function(e){ZD(e);var t=Db(e.expression);bb(e.expression,e.thenStatement,t),Sx(e.thenStatement),231===e.thenStatement.kind&&hn(e.thenStatement,tS.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Sx(e.elseStatement)}(e);case 235:return function(e){ZD(e),Sx(e.statement),Db(e.expression)}(e);case 236:return function(e){ZD(e),Db(e.expression),Sx(e.statement)}(e);case 237:return function(e){ZD(e)||e.initializer&&250===e.initializer.kind&&WD(e.initializer),e.initializer&&(250===e.initializer.kind?tS.forEach(e.initializer.declarations,yb):fv(e.initializer)),e.condition&&Db(e.condition),e.incrementor&&fv(e.incrementor),Sx(e.statement),e.locals&&Xv(e)}(e);case 238:return Sb(e);case 239:return function(e){var t,r,n;JD(e),e.awaitModifier?2==(6&tS.getFunctionFlags(tS.getContainingFunction(e)))&&R<99&&CD(e,32768):G.downlevelIteration&&R<2&&CD(e,256),250===e.initializer.kind?Tb(e):(t=e.initializer,r=Cb(e),199===t.kind||200===t.kind?Hh(t,r||Ie):(n=fv(t),Rh(t,tS.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,tS.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),r&&K_(r,n,t,e.expression))),Sx(e.statement),e.locals&&Xv(e)}(e);case 240:case 241:return Qb(e);case 242:return function(e){var t,r,n,i,a;ZD(e)||((t=tS.getContainingFunction(e))?(r=Pc(Tc(t)),n=tS.getFunctionFlags(t),X||e.expression||131072&r.flags?(a=e.expression?Zh(e.expression):Re,168===t.kind?e.expression&&hn(e,tS.Diagnostics.Setters_cannot_return_a_value):166===t.kind?e.expression&&!K_(a,r,e,e.expression)&&hn(e,tS.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class):wc(t)&&(i=null!==(i=Yb(r,n))&&void 0!==i?i:r,a=2&n?Rv(a,e,tS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i&&K_(a,i,e,e.expression))):166!==t.kind&&G.noImplicitReturns&&!Zb(t,r)&&hn(e,tS.Diagnostics.Not_all_code_paths_return_a_value)):GD(e,tS.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body))}(e);case 243:return function(e){ZD(e)||32768&e.flags&&GD(e,tS.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),fv(e.expression);var t=tS.getSourceFileOfNode(e);HD(t)||XD(t,t=tS.getSpanOfTokenAtPosition(t,e.pos).start,e.statement.pos-t,tS.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}(e);case 244:return function(e){var i;ZD(e);var a=!1,o=fv(e.expression),s=zd(o);tS.forEach(e.caseBlock.clauses,function(e){var t,r,n;285!==e.kind||a||(void 0===i?i=e:(YD(e,tS.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),a=!0)),M&&284===e.kind&&(r=zd(t=fv(e.expression)),n=o,r&&s||(t=r?Ud(t):t,n=Ud(o)),Gh(n,t)||Y_(t,n,e.expression,void 0)),tS.forEach(e.statements,Sx),G.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&Qf(e.fallthroughFlowNode)&&hn(e,tS.Diagnostics.Fallthrough_case_in_switch)}),e.caseBlock.locals&&Xv(e.caseBlock)}(e);case 245:return function(t){ZD(t)||tS.findAncestor(t.parent,function(e){return tS.isFunctionLike(e)?"quit":245===e.kind&&e.label.escapedText===t.label.escapedText&&(YD(t.label,tS.Diagnostics.Duplicate_label_0,tS.getTextOfNode(t.label)),!0)}),Sx(t.statement)}(e);case 246:return $b(e);case 247:return function(e){ZD(e),ob(e.tryBlock);var t,r,n,i=e.catchClause;i&&(i.variableDeclaration&&((t=i.variableDeclaration).type?!(r=Ba(t,!1))||3&r.flags||GD(t.type,tS.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified):t.initializer?GD(t.initializer,tS.Diagnostics.Catch_clause_variable_cannot_have_an_initializer):(n=i.block.locals)&&tS.forEachKey(i.locals,function(e){var t=n.get(e);t&&0!=(2&t.flags)&&YD(t.valueDeclaration,tS.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,e)})),ob(i.block)),e.finallyBlock&&ob(e.finallyBlock)}(e);case 249:return yb(e);case 198:return hb(e);case 252:return function(e){e.name||tS.hasSyntacticModifier(e,512)||GD(e,tS.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),ix(e),tS.forEach(e.members,Sx),Xv(e)}(e);case 253:return ux(e);case 254:return function(e){ED(e),tx(e.name,tS.Diagnostics.Type_alias_name_cannot_be_0),Ov(e),rx(e.typeParameters),136===e.type.kind?lS.has(e.name.escapedText)&&1===tS.length(e.typeParameters)||hn(e.type,tS.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Sx(e.type),Xv(e))}(e);case 255:return function(e){var t,r,n;M&&(ED(e),tx(e.name,tS.Diagnostics.Enum_name_cannot_be_0),_b(e,e.name),db(e,e.name),Ov(e),e.members.forEach(dx),lx(e),t=Ai(e),e===tS.getDeclarationOfKind(t,e.kind)&&(1<t.declarations.length&&(r=tS.isEnumConst(e),tS.forEach(t.declarations,function(e){tS.isEnumDeclaration(e)&&tS.isEnumConst(e)!==r&&hn(tS.getNameOfDeclaration(e),tS.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})),n=!1,tS.forEach(t.declarations,function(e){if(255!==e.kind)return!1;if(!e.members.length)return!1;e=e.members[0];e.initializer||(n?hn(e.name,tS.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)})))}(e);case 256:return px(e);case 261:return yx(e);case 260:return function(e){var t,r;vx(e,tS.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)||(ED(e),(tS.isInternalModuleImportEqualsDeclaration(e)||fx(e))&&(mx(e),tS.hasSyntacticModifier(e,1)&&ui(e),272!==e.moduleReference.kind?(t=ai(Ai(e)))!==Ne&&(111551&t.flags&&(1920&pi(r=tS.getFirstIdentifier(e.moduleReference),112575).flags||hn(r,tS.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,tS.declarationNameToString(r))),788968&t.flags&&tx(e.name,tS.Diagnostics.Import_name_cannot_be_0)):D>=tS.ModuleKind.ES2015&&!(8388608&e.flags)&&YD(e,tS.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)))}(e);case 267:return hx(e);case 266:return function(e){var t,r,n;vx(e,tS.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)||(256!==(t=(297===e.parent.kind?e:e.parent).parent).kind||tS.isAmbientModule(t)?(!ED(e)&&tS.hasEffectiveModifiers(e)&&GD(e,tS.Diagnostics.An_export_assignment_cannot_have_modifiers),78===e.expression.kind?((n=pi(r=e.expression,67108863,!0,!0,e))?(og(n,r),((n=2097152&n.flags?ai(n):n)===Ne||111551&n.flags)&&Zh(e.expression)):Zh(e.expression),tS.getEmitDeclarations(G)&&Da(e.expression,!0)):Zh(e.expression),Dx(t),8388608&e.flags&&!tS.isEntityNameExpression(e.expression)&&YD(e.expression,tS.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||8388608&e.flags||(D>=tS.ModuleKind.ES2015?YD(e,tS.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):D===tS.ModuleKind.System&&YD(e,tS.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?hn(e,tS.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):hn(e,tS.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module))}(e);case 231:case 248:return ZD(e);case 271:(function(e){Wv(e)})(e)}}(H=e),H=t)}function Tx(e){tS.isInJSFile(e)||YD(e,tS.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Cx(e){var t,r=wn(tS.getSourceFileOfNode(e));1&r.flags||(r.deferredNodes=r.deferredNodes||new tS.Map,t=pS(e),r.deferredNodes.set(t,e))}function Ex(e){var t,r=H;switch(l=0,(H=e).kind){case 203:case 204:case 205:case 161:case 275:iy(e);break;case 208:case 209:case 165:case 164:!function(e){tS.Debug.assert(165!==e.kind||tS.isObjectLiteralMethod(e));var t,r=tS.getFunctionFlags(e),n=wc(e);Ph(e,n),e.body&&(tS.getEffectiveReturnTypeNode(e)||Pc(Tc(e)),230===e.body.kind?Sx(e.body):(t=fv(e.body),(n=n&&Yb(n,r))&&K_(2==(3&r)?Rv(t,e.body,tS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):t,n,e.body,e.body)))}(e);break;case 167:case 168:Sv(e);break;case 221:t=e,tS.forEach(t.members,Sx),Xv(t);break;case 274:bm(e);break;case 273:bm((t=e).openingElement),im(t.closingElement.tagName)?lm(t.closingElement):fv(t.closingElement.tagName),om(t)}H=r}function kx(e){var t,r=["check","checkSourceFile",{path:e.path}];tS.tracing.begin.apply(tS.tracing,r),tS.performance.mark("beforeCheck"),1&(e=wn(t=e)).flags||tS.skipTypeChecking(t,G,b)||(function(n){8388608&n.flags&&function(){for(var e=0,t=n.statements;e<t.length;e++){var r=t[e];if((tS.isDeclaration(r)||232===r.kind)&&function(e){if(253===e.kind||254===e.kind||261===e.kind||260===e.kind||267===e.kind||266===e.kind||259===e.kind||tS.hasSyntacticModifier(e,515))return!1;return GD(e,tS.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}(r))return}}()}(t),tS.clear(en),tS.clear(tn),tS.clear(rn),tS.forEach(t.statements,Sx),Sx(t.endOfFileToken),function(e){(e=wn(e)).deferredNodes&&e.deferredNodes.forEach(Ex)}(t),tS.isExternalOrCommonJsModule(t)&&Xv(t),t.isDeclarationFile||!G.noUnusedLocals&&!G.noUnusedParameters||Qv(Ax(t),function(e,t,r){!tS.containsParseError(e)&&Nx(t,!!(8388608&e.flags))&&an.add(r)}),2===G.importsNotUsedAsValues&&!t.isDeclarationFile&&tS.isExternalModule(t)&&bx(t),tS.isExternalOrCommonJsModule(t)&&Dx(t),en.length&&(tS.forEach(en,cb),tS.clear(en)),tn.length&&(tS.forEach(tn,ub),tS.clear(tn)),rn.length&&(tS.forEach(rn,lb),tS.clear(rn)),e.flags|=1),tS.performance.mark("afterCheck"),tS.performance.measure("Check","beforeCheck","afterCheck"),tS.tracing.end.apply(tS.tracing,r)}function Nx(e,t){if(!t)switch(e){case 0:return G.noUnusedLocals;case 1:return G.noUnusedParameters;default:return tS.Debug.assertNever(e)}}function Ax(e){return Ar.get(e.path)||tS.emptyArray}function Fx(e,t){try{return x=t,function(e){if(Px(),e){var t=an.getGlobalDiagnostics(),r=t.length;kx(e);var n=an.getDiagnostics(e.fileName),e=an.getGlobalDiagnostics();if(e===t)return 0===r&&0<e.length?tS.concatenate(e,n):n;e=tS.relativeComplement(t,e,tS.compareDiagnostics);return tS.concatenate(e,n)}return tS.forEach(b.getSourceFiles(),kx),an.getDiagnostics()}(e)}finally{x=void 0}}function Px(){if(!M)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function wx(e){switch(e.kind){case 159:case 252:case 253:case 254:case 255:case 331:case 324:case 325:return!0;case 262:return e.isTypeOnly;case 265:case 270:return e.parent.parent.isTypeOnly;default:return!1}}function Ix(e){for(;157===e.parent.kind;)e=e.parent;return 173===e.parent.kind}function Ox(e,t){for(var r;(e=tS.getContainingClass(e))&&!(r=t(e)););return r}function Mx(e,t){return Ox(e,function(e){return e===t})}function Lx(e){return void 0!==function(e){for(;157===e.parent.kind;)e=e.parent;return 260===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:266===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Rx(e){if(tS.isDeclarationName(e))return Ai(e.parent);if(tS.isInJSFile(e)&&201===e.parent.kind&&e.parent===e.parent.parent.left&&!tS.isPrivateIdentifier(e)){var t=function(e){switch(tS.getAssignmentDeclarationKind(e.parent.parent)){case 1:case 3:return Ai(e.parent);case 4:case 2:case 5:return Ai(e.parent.parent)}}(e);if(t)return t}if(266===e.parent.kind&&tS.isEntityNameExpression(e)){t=pi(e,2998271,!0);if(t&&t!==Ne)return t}else if(!tS.isPropertyAccessExpression(e)&&!tS.isPrivateIdentifier(e)&&Lx(e)){var r=tS.getAncestor(e,260);return tS.Debug.assert(void 0!==r),_i(e,!0)}if(!tS.isPropertyAccessExpression(e)&&!tS.isPrivateIdentifier(e)){r=function(e){for(var t=e.parent;tS.isQualifiedName(t);)t=(e=t).parent;if(t&&195===t.kind&&t.qualifier===e)return t}(e);if(r){e_(r);r=wn(e).resolvedSymbol;return r===Ne?void 0:r}}for(;tS.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;if(function(e){for(;201===e.parent.kind;)e=e.parent;return 223===e.parent.kind}(e)){var n=0;223===e.parent.kind?(n=788968,tS.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)&&(n|=111551)):n=1920,n|=2097152;var i=tS.isEntityNameExpression(e)?pi(e,n):void 0;if(i)return i}if(326===e.parent.kind)return tS.getParameterSymbolFromJSDoc(e.parent);if(159===e.parent.kind&&330===e.parent.parent.kind){tS.Debug.assert(!tS.isInJSFile(e));i=tS.getTypeParameterFromJsDoc(e.parent);return i&&i.symbol}if(tS.isExpressionNode(e)){if(tS.nodeIsMissing(e))return;if(78===e.kind){if(tS.isJSXTagName(e)&&im(e)){var a=lm(e.parent);return a===Ne?void 0:a}return pi(e,111551,!1,!0)}if(201===e.kind||157===e.kind){a=wn(e);return a.resolvedSymbol?a.resolvedSymbol:((201===e.kind?Lm:Rm)(e),a.resolvedSymbol)}}else{if(Ix(e))return pi(e,n=173===e.parent.kind?788968:1920,!1,!0);if(function(e){for(;157===e.parent.kind;)e=e.parent;for(;201===e.parent.kind;)e=e.parent;return 302===e.parent.kind}(e))return pi(e,n=901119,!1,!0,tS.getHostSignatureFromJSDoc(e))}return 172===e.parent.kind?pi(e,1):void 0}function Bx(e,t){if(297===e.kind)return tS.isExternalModule(e)?Ni(e.symbol):void 0;var r=e.parent,n=r.parent;if(!(16777216&e.flags)){if(yS(e)){var i=Ai(r);return tS.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e?em(i):i}if(tS.isLiteralComputedPropertyDeclarationName(e))return Ai(r.parent);if(78===e.kind){if(Lx(e))return Rx(e);if(198===r.kind&&196===n.kind&&e===r.propertyName){i=sc(jx(n),e.escapedText);if(i)return i}}switch(e.kind){case 78:case 79:case 201:case 157:return Rx(e);case 107:var a=tS.getThisContainer(e,!1);if(tS.isFunctionLike(a)){a=Tc(a);if(a.thisParameter)return a.thisParameter}if(tS.isInExpressionContext(e))return fv(e).symbol;case 187:return Yl(e).symbol;case 105:return fv(e).symbol;case 132:var o=e.parent;return o&&166===o.kind?o.parent.symbol:void 0;case 10:case 14:if(tS.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&tS.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e||(261===e.parent.kind||267===e.parent.kind)&&e.parent.moduleSpecifier===e||tS.isInJSFile(e)&&tS.isRequireCall(e.parent,!1)||tS.isImportCall(e.parent)||tS.isLiteralTypeNode(e.parent)&&tS.isLiteralImportTypeNode(e.parent.parent)&&e.parent.parent.argument===e.parent)return gi(e,e,t);if(tS.isCallExpression(r)&&tS.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===e)return Ai(r);case 8:o=tS.isElementAccessExpression(r)?r.argumentExpression===e?_v(r.expression):void 0:tS.isLiteralTypeNode(r)&&tS.isIndexedAccessTypeNode(n)?e_(n.objectType):void 0;return o&&sc(o,tS.escapeLeadingUnderscores(e.text));case 87:case 97:case 38:case 83:return Ai(e.parent);case 195:return tS.isLiteralImportTypeNode(e)?Bx(e.argument.literal,t):void 0;case 92:return tS.isExportAssignment(e.parent)?tS.Debug.checkDefined(e.parent.symbol):void 0;default:return}}}function jx(e){if(tS.isSourceFile(e)&&!tS.isExternalModule(e))return Ie;if(16777216&e.flags)return Ie;var t,r=tS.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e),n=r&&Ao(Ai(r.class));if(tS.isPartOfTypeNode(e)){var i=e_(e);return n?ns(i,n.thisType):i}if(tS.isExpressionNode(e))return zx(e);if(n&&!r.isImplements){r=tS.firstOrUndefined(ko(n));return r?ns(r,n.thisType):Ie}if(wx(e))return Ro(t=Ai(e));if(n=e,78===n.kind&&wx(n.parent)&&tS.getNameOfDeclaration(n.parent)===n)return(t=Bx(e))?Ro(t):Ie;if(tS.isDeclaration(e))return _o(t=Ai(e));if(yS(e))return(t=Bx(e))?_o(t):Ie;if(tS.isBindingPattern(e))return Ba(e.parent,!0)||Ie;if(Lx(e)&&(t=Bx(e))){e=Ro(t);return e!==Ie?e:_o(t)}return Ie}function Jx(e){if(tS.Debug.assert(200===e.kind||199===e.kind),239===e.parent.kind)return Hh(e,Cb(e.parent)||Ie);if(216===e.parent.kind)return Hh(e,_v(e.parent.right)||Ie);if(288===e.parent.kind){var t=tS.cast(e.parent.parent,tS.isObjectLiteralExpression);return qh(t,Jx(t)||Ie,tS.indexOfNode(t.properties,e.parent))}var r=tS.cast(e.parent,tS.isArrayLiteralExpression),n=Jx(r)||Ie,t=Eb(65,n,Re,e.parent)||Ie;return Wh(r,n,r.elements.indexOf(e),t)}function zx(e){return tS.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),Hl(_v(e))}function Ux(e){e=Ys(e);var t=tS.createSymbolTable(Rs(e)),e=uc(e,0).length?Et:uc(e,1).length?kt:void 0;return e&&tS.forEach(Rs(e),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),Ki(t)}function Vx(e){return tS.typeHasCallOrConstructSignatures(e,me)}function Kx(t){if(6&tS.getCheckFlags(t))return tS.mapDefined(Pn(t).containingType.types,function(e){return sc(e,t.escapedName)});if(33554432&t.flags){var e=t.leftSpread,r=t.rightSpread,n=t.syntheticOrigin;return e?[e,r]:n?[n]:tS.singleElementArray(function(e){var t,r=e;for(;r=Pn(r).target;)t=r;return t}(t))}}function qx(e){if(tS.isGeneratedIdentifier(e))return!1;var t=tS.getParseTreeNode(e,tS.isIdentifier);if(!t)return!1;e=t.parent;return!!e&&(!((tS.isPropertyAccessExpression(e)||tS.isPropertyAssignment(e))&&e.name===t)&&hD(t)===fe)}function Wx(e){var t=gi(e.parent,e);if(!t||tS.isShorthandAmbientModuleSymbol(t))return!0;var r=xi(t),e=Pn(t=vi(t));return void 0===e.exportsSomeValue&&(e.exportsSomeValue=r?!!(111551&t.flags):tS.forEachEntry(Ci(t),function(e){return(e=ii(e))&&!!(111551&e.flags)})),e.exportsSomeValue}function Hx(e,t){var r=tS.getParseTreeNode(e,tS.isIdentifier);if(r){e=hD(r,(n=r,tS.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name));if(e){if(1048576&e.flags){var n=Ni(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}var i=Fi(e);if(i){if(512&i.flags&&297===i.valueDeclaration.kind){e=i.valueDeclaration;return e!==tS.getSourceFileOfNode(r)?void 0:e}return tS.findAncestor(r.parent,function(e){return tS.isModuleOrEnumDeclaration(e)&&Ai(e)===i})}}}}function Gx(e){if(e.generatedImportReference)return e.generatedImportReference;e=tS.getParseTreeNode(e,tS.isIdentifier);if(e){e=hD(e);if(ni(e,111551)&&!ci(e))return Kn(e)}}function Xx(e){if(418&e.flags&&!tS.isSourceFile(e.valueDeclaration)){var t,r,n=Pn(e);return void 0===n.isDeclarationWithCollidingName&&(t=tS.getEnclosingBlockScopeContainer(e.valueDeclaration),(tS.isStatementWithLocals(t)||(i=e,tS.isBindingElement(i.valueDeclaration)&&287===tS.walkUpBindingElementsAndPatterns(i.valueDeclaration).parent.kind))&&(r=wn(e.valueDeclaration),Rn(t.parent,e.escapedName,111551,void 0,void 0,!1)?n.isDeclarationWithCollidingName=!0:262144&r.flags?(i=524288&r.flags,e=tS.isIterationStatement(t,!1),r=230===t.kind&&tS.isIterationStatement(t.parent,!1),n.isDeclarationWithCollidingName=!(tS.isBlockScopedContainerTopLevel(t)||i&&(e||r))):n.isDeclarationWithCollidingName=!1)),n.isDeclarationWithCollidingName}var i;return!1}function Qx(e){if(!tS.isGeneratedIdentifier(e)){e=tS.getParseTreeNode(e,tS.isIdentifier);if(e){e=hD(e);if(e&&Xx(e))return e.valueDeclaration}}}function Yx(e){e=tS.getParseTreeNode(e,tS.isDeclaration);if(e){e=Ai(e);if(e)return Xx(e)}return!1}function Zx(e){switch(e.kind){case 260:return eD(Ai(e)||Ne);case 262:case 263:case 265:case 270:var t=Ai(e)||Ne;return eD(t)&&!ci(t);case 267:t=e.exportClause;return!!t&&(tS.isNamespaceExport(t)||tS.some(t.elements,Zx));case 266:return!e.expression||78!==e.expression.kind||eD(Ai(e)||Ne)}return!1}function $x(e){e=tS.getParseTreeNode(e,tS.isImportEqualsDeclaration);return!(void 0===e||297!==e.parent.kind||!tS.isInternalModuleImportEqualsDeclaration(e))&&(eD(Ai(e))&&e.moduleReference&&!tS.nodeIsMissing(e.moduleReference))}function eD(e){e=ai(e);return e===Ne||!!(111551&e.flags)&&(G.preserveConstEnums||!tD(e))}function tD(e){return Kh(e)||e.constEnumOnlyModule}function rD(e,t){if(qn(e)){var r=Ai(e);if(r&&Pn(r).referenced)return!0;r=Pn(r).target;if(r&&1&tS.getEffectiveModifierFlags(e)&&111551&r.flags&&(G.preserveConstEnums||!tD(r)))return!0}return!!t&&!!tS.forEachChild(e,function(e){return rD(e,t)})}function nD(e){if(tS.nodeIsPresent(e.body)){if(tS.isGetAccessor(e)||tS.isSetAccessor(e))return!1;var t=kc(Ai(e));return 1<t.length||1===t.length&&t[0].declaration!==e}return!1}function iD(e){return!(!X||vc(e)||tS.isJSDocParameterTag(e)||!e.initializer||tS.hasSyntacticModifier(e,92))}function aD(e){return X&&vc(e)&&!e.initializer&&tS.hasSyntacticModifier(e,92)}function oD(e){e=tS.getParseTreeNode(e,tS.isFunctionDeclaration);if(!e)return!1;e=Ai(e);return!!(e&&16&e.flags)&&!!tS.forEachEntry(Ti(e),function(e){return 111551&e.flags&&e.valueDeclaration&&tS.isPropertyAccessExpression(e.valueDeclaration)})}function sD(e){e=tS.getParseTreeNode(e,tS.isFunctionDeclaration);if(!e)return tS.emptyArray;e=Ai(e);return e&&Rs(_o(e))||tS.emptyArray}function cD(e){return wn(e).flags||0}function uD(e){return lx(e.parent),wn(e).enumMemberValue}function lD(e){switch(e.kind){case 291:case 201:case 202:return!0}return!1}function _D(e){if(291===e.kind)return uD(e);e=wn(e).resolvedSymbol;if(e&&8&e.flags){e=e.valueDeclaration;if(tS.isEnumConst(e.parent))return uD(e)}}function dD(e){return 524288&e.flags&&0<uc(e,0).length}function pD(e,t){var r=tS.getParseTreeNode(e,tS.isEntityName);if(!r)return tS.TypeReferenceSerializationKind.Unknown;if(t&&!(t=tS.getParseTreeNode(t)))return tS.TypeReferenceSerializationKind.Unknown;var n=pi(r,111551,!0,!0,t),e=(null===(e=null==n?void 0:n.declarations)||void 0===e?void 0:e.every(tS.isTypeOnlyImportOrExportDeclaration))||!1,n=n&&2097152&n.flags?ai(n):n,r=pi(r,788968,!0,!1,t);if(n&&n===r){t=Du(!1);if(t&&n===t)return tS.TypeReferenceSerializationKind.Promise;n=_o(n);if(n&&xo(n))return e?tS.TypeReferenceSerializationKind.TypeWithCallSignature:tS.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!r)return e?tS.TypeReferenceSerializationKind.ObjectType:tS.TypeReferenceSerializationKind.Unknown;r=Ro(r);return r===Ie?e?tS.TypeReferenceSerializationKind.ObjectType:tS.TypeReferenceSerializationKind.Unknown:3&r.flags?tS.TypeReferenceSerializationKind.ObjectType:zh(r,245760)?tS.TypeReferenceSerializationKind.VoidNullableOrNeverType:zh(r,528)?tS.TypeReferenceSerializationKind.BooleanType:zh(r,296)?tS.TypeReferenceSerializationKind.NumberLikeType:zh(r,2112)?tS.TypeReferenceSerializationKind.BigIntLikeType:zh(r,402653316)?tS.TypeReferenceSerializationKind.StringLikeType:Hd(r)?tS.TypeReferenceSerializationKind.ArrayLikeType:zh(r,12288)?tS.TypeReferenceSerializationKind.ESSymbolType:dD(r)?tS.TypeReferenceSerializationKind.TypeWithCallSignature:Pd(r)?tS.TypeReferenceSerializationKind.ArrayLikeType:tS.TypeReferenceSerializationKind.ObjectType}function fD(e,t,r,n,i){var a=tS.getParseTreeNode(e,tS.isVariableLikeOrAccessor);if(!a)return tS.factory.createToken(128);e=Ai(a),a=!e||133120&e.flags?Ie:Vd(_o(e));return 8192&a.flags&&a.symbol===e&&(r|=1048576),i&&(a=ap(a)),C.typeToTypeNode(a,t,1024|r,n)}function gD(e,t,r,n){e=tS.getParseTreeNode(e,tS.isFunctionLike);if(!e)return tS.factory.createToken(128);e=Tc(e);return C.typeToTypeNode(Pc(e),t,1024|r,n)}function mD(e,t,r,n){e=tS.getParseTreeNode(e,tS.isExpression);if(!e)return tS.factory.createToken(128);e=hp(zx(e));return C.typeToTypeNode(e,t,1024|r,n)}function yD(e){return le.has(tS.escapeLeadingUnderscores(e))}function hD(e,t){var r=wn(e).resolvedSymbol;if(r)return r;r=e;return t&&(t=e.parent,tS.isDeclaration(t)&&e===t.name&&(r=Ea(t))),Rn(r,e.escapedText,3257279,void 0,void 0,!0)}function vD(e){if(!tS.isGeneratedIdentifier(e)){e=tS.getParseTreeNode(e,tS.isIdentifier);if(e){e=hD(e);if(e)return Mi(e).valueDeclaration}}}function bD(e){return!!(tS.isDeclarationReadonly(e)||tS.isVariableDeclaration(e)&&tS.isVarConst(e))&&Gl(_o(Ai(e)))}function xD(e,t){var r=_o(Ai(e));return e=e,t=t,(t=1024&(r=r).flags?C.symbolToExpression(r.symbol,111551,e,void 0,t):r===He?tS.factory.createTrue():r===qe&&tS.factory.createFalse())?t:"object"==typeof(r=r.value)?tS.factory.createBigIntLiteral(r):"number"==typeof r?tS.factory.createNumericLiteral(r):tS.factory.createStringLiteral(r)}function DD(e){return e?(mn(e),tS.getSourceFileOfNode(e).localJsxFactory||_r):_r}function SD(e){if(e){var t=tS.getSourceFileOfNode(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;e=t.pragmas.get("jsxfrag"),e=tS.isArray(e)?e[0]:e;if(e)return t.localJsxFragmentFactory=tS.parseIsolatedEntityName(e.arguments.factory,R),t.localJsxFragmentFactory}}if(G.jsxFragmentFactory)return tS.parseIsolatedEntityName(G.jsxFragmentFactory,R)}function TD(e){e=256===e.kind?tS.tryCast(e.name,tS.isStringLiteral):tS.getExternalModuleName(e),e=mi(e,e,void 0);if(e)return tS.getDeclarationOfKind(e,297)}function CD(e,t){if((s&t)!==t&&G.importHelpers){var r=tS.getSourceFileOfNode(e);if(tS.isEffectiveExternalModule(r,G)&&!(8388608&e.flags)){var n=function(e,t){c=c||(yi(e,tS.externalHelpersModuleNameText,tS.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Ne);return c}(r,e);if(n!==Ne)for(var i,a=t&~s,o=1;o<=4194304;o<<=1)a&o&&(i=function(e){switch(e){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"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__importStar";case 262144:return"__importDefault";case 524288:return"__makeTemplateObject";case 1048576:return"__classPrivateFieldGet";case 2097152:return"__classPrivateFieldSet";case 4194304:return"__createBinding";default:return tS.Debug.fail("Unrecognized helper")}}(o),On(n.exports,tS.escapeLeadingUnderscores(i),111551)||hn(e,tS.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,tS.externalHelpersModuleNameText,i));s|=t}}}function ED(e){return function(e){if(!e.decorators)return!1;{if(!tS.nodeCanBeDecorated(e,e.parent,e.parent.parent))return 165!==e.kind||tS.nodeIsPresent(e.body)?GD(e,tS.Diagnostics.Decorators_are_not_valid_here):GD(e,tS.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(167===e.kind||168===e.kind){var t=tS.getAllAccessorDeclarations(e.parent.members,e);if(t.firstAccessor.decorators&&e===t.secondAccessor)return GD(e,tS.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}return!1}(e)||function(e){var t,r,n,i,a=function(e){return!!e.modifiers&&(function(e){switch(e.kind){case 167:case 168:case 166:case 163:case 162:case 165:case 164:case 171:case 256:case 261:case 260:case 267:case 266:case 208:case 209:case 160:return!1;default:if(257===e.parent.kind||297===e.parent.kind)return!1;switch(e.kind){case 251:return kD(e,129);case 252:return kD(e,125);case 253:case 232:case 254:return!0;case 255:return kD(e,84);default:return tS.Debug.fail(),!1}}}(e)?GD(e,tS.Diagnostics.Modifiers_cannot_appear_here):void 0)}(e);if(void 0!==a)return a;for(var o=0,s=0,c=e.modifiers;s<c.length;s++){var u=c[s];if(142!==u.kind){if(162===e.kind||164===e.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_type_member,tS.tokenToString(u.kind));if(171===e.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,tS.tokenToString(u.kind))}switch(u.kind){case 84:if(255!==e.kind)return YD(e,tS.Diagnostics.A_class_member_cannot_have_the_0_keyword,tS.tokenToString(84));break;case 122:case 121:case 120:var l=ma(tS.modifierToFlag(u.kind));if(28&o)return YD(u,tS.Diagnostics.Accessibility_modifier_already_seen);if(32&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,l,"static");if(64&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,l,"readonly");if(256&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,l,"async");if(257===e.parent.kind||297===e.parent.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,l);if(128&o)return 120===u.kind?YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,l,"abstract"):YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,l,"abstract");if(tS.isPrivateIdentifierPropertyDeclaration(e))return YD(u,tS.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);o|=tS.modifierToFlag(u.kind);break;case 123:if(32&o)return YD(u,tS.Diagnostics._0_modifier_already_seen,"static");if(64&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(257===e.parent.kind||297===e.parent.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(160===e.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&o)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(tS.isPrivateIdentifierPropertyDeclaration(e))return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"static");o|=32,t=u;break;case 142:if(64&o)return YD(u,tS.Diagnostics._0_modifier_already_seen,"readonly");if(163!==e.kind&&162!==e.kind&&171!==e.kind&&160!==e.kind)return YD(u,tS.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);o|=64,i=u;break;case 92:if(1&o)return YD(u,tS.Diagnostics._0_modifier_already_seen,"export");if(2&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&o)return YD(u,tS.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(tS.isClassLike(e.parent))return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(160===e.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");o|=1;break;case 87:l=(297===e.parent.kind?e:e.parent).parent;if(256===l.kind&&!tS.isAmbientModule(l))return YD(u,tS.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);o|=512;break;case 133:if(2&o)return YD(u,tS.Diagnostics._0_modifier_already_seen,"declare");if(256&o)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(tS.isClassLike(e.parent)&&!tS.isPropertyDeclaration(e))return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(160===e.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&e.parent.flags&&257===e.parent.kind)return YD(u,tS.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(tS.isPrivateIdentifierPropertyDeclaration(e))return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");o|=2,r=u;break;case 125:if(128&o)return YD(u,tS.Diagnostics._0_modifier_already_seen,"abstract");if(252!==e.kind){if(165!==e.kind&&163!==e.kind&&167!==e.kind&&168!==e.kind)return YD(u,tS.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(252!==e.parent.kind||!tS.hasSyntacticModifier(e.parent,128))return YD(u,tS.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&o)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&o)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&o&&n)return YD(n,tS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract")}if(tS.isNamedDeclaration(e)&&79===e.name.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");o|=128;break;case 129:if(256&o)return YD(u,tS.Diagnostics._0_modifier_already_seen,"async");if(2&o||8388608&e.parent.flags)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(160===e.kind)return YD(u,tS.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&o)return YD(u,tS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");o|=256,n=u}}{if(166===e.kind)return 32&o?YD(t,tS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&o?YD(t,tS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&o?YD(n,tS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&o)&&YD(i,tS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((261===e.kind||260===e.kind)&&2&o)return YD(r,tS.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(160===e.kind&&92&o&&tS.isBindingPattern(e.name))return YD(e,tS.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(160===e.kind&&92&o&&e.dotDotDotToken)return YD(e,tS.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter)}if(256&o)return function(e,t){switch(e.kind){case 165:case 251:case 208:case 209:return!1}return YD(t,tS.Diagnostics._0_modifier_cannot_be_used_here,"async")}(e,n);return!1}(e)}function kD(e,t){return 1<e.modifiers.length||e.modifiers[0].kind!==t}function ND(e,t){return void 0===t&&(t=tS.Diagnostics.Trailing_comma_not_allowed),!(!e||!e.hasTrailingComma)&&XD(e[0],e.end-",".length,",".length,t)}function AD(e,t){if(e&&0===e.length){var r=e.pos-"<".length;return XD(t,r,tS.skipTrivia(t.text,e.end)+">".length-r,tS.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function FD(e){if(3<=R){var t=e.body&&tS.isBlock(e.body)&&tS.findUseStrictPrologue(e.body.statements);if(t){e=(e=e.parameters,tS.filter(e,function(e){return!!e.initializer||tS.isBindingPattern(e.name)||tS.isRestParameter(e)}));if(tS.length(e)){tS.forEach(e,function(e){tS.addRelatedInfo(hn(e,tS.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),tS.createDiagnosticForNode(t,tS.Diagnostics.use_strict_directive_used_here))});e=e.map(function(e,t){return 0===t?tS.createDiagnosticForNode(e,tS.Diagnostics.Non_simple_parameter_declared_here):tS.createDiagnosticForNode(e,tS.Diagnostics.and_here)});return tS.addRelatedInfo.apply(void 0,__spreadArrays([hn(t,tS.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],e)),!0}}}return!1}function PD(e){var t=tS.getSourceFileOfNode(e);return ED(e)||AD(e.typeParameters,t)||function(e){for(var t=!1,r=e.length,n=0;n<r;n++){var i=e[n];if(i.dotDotDotToken){if(n!==r-1)return YD(i.dotDotDotToken,tS.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&i.flags||ND(e,tS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return YD(i.questionToken,tS.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return YD(i.name,tS.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(vc(i)){if(t=!0,i.questionToken&&i.initializer)return YD(i.name,tS.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return YD(i.name,tS.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!tS.isArrowFunction(e))return!1;var r=e.equalsGreaterThanToken,e=tS.getLineAndCharacterOfPosition(t,r.pos).line,t=tS.getLineAndCharacterOfPosition(t,r.end).line;return e!==t&&YD(r,tS.Diagnostics.Line_terminator_not_permitted_before_arrow)}(e,t)||tS.isFunctionLikeDeclaration(e)&&FD(e)}function wD(e,t){return ND(t)||function(e,t){if(t&&0===t.length){var r=tS.getSourceFileOfNode(e),e=t.pos-"<".length;return XD(r,e,tS.skipTrivia(r.text,t.end)+">".length-e,tS.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function ID(e){return function(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];if(222===n.kind)return XD(n,n.pos,0,tS.Diagnostics.Argument_expression_expected)}return}(e)}function OD(e){var t=e.types;if(ND(t))return 1;if(t&&0===t.length){var r=tS.tokenToString(e.token);return XD(e,t.pos,0,tS.Diagnostics._0_list_cannot_be_empty,r)}return tS.some(t,MD)}function MD(e){return wD(e,e.typeArguments)}function LD(e){return 158===e.kind&&(216===e.expression.kind&&27===e.expression.operatorToken.kind&&YD(e.expression,tS.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name))}function RD(e){return e.asteriskToken&&(tS.Debug.assert(251===e.kind||208===e.kind||165===e.kind),8388608&e.flags?YD(e.asteriskToken,tS.Diagnostics.Generators_are_not_allowed_in_an_ambient_context):!e.body&&YD(e.asteriskToken,tS.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator))}function BD(e,t){return e&&YD(e,t)}function jD(e,t){return e&&YD(e,t)}function JD(e){if(ZD(e))return 1;if(239===e.kind&&e.awaitModifier&&0==(32768&e.flags)){if(HD(tS.getSourceFileOfNode(e)))return;var t=tS.createDiagnosticForNode(e.awaitModifier,tS.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),r=tS.getContainingFunction(e);return r&&166!==r.kind&&(tS.Debug.assert(0==(2&tS.getFunctionFlags(r)),"Enclosing function should never be an async function."),n=tS.createDiagnosticForNode(r,tS.Diagnostics.Did_you_mean_to_mark_this_function_as_async),tS.addRelatedInfo(t,n)),an.add(t),1}if(250===e.initializer.kind){r=e.initializer;if(!WD(r)){var n=r.declarations;if(!n.length)return;if(1<n.length){t=238===e.kind?tS.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:tS.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return GD(r.declarations[1],t)}n=n[0];if(n.initializer){var t=238===e.kind?tS.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:tS.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return YD(n.name,t)}if(n.type)return YD(n,t=238===e.kind?tS.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:tS.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}function zD(e){if(e.parameters.length===(167===e.kind?1:2))return tS.getThisParameter(e)}function UD(e,t){if(r=e,tS.isDynamicName(r)&&!Go(r))return YD(e,t);var r}function VD(e){if(PD(e))return 1;if(165===e.kind){if(200===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||129!==tS.first(e.modifiers).kind))return GD(e,tS.Diagnostics.Modifiers_cannot_appear_here);if(BD(e.questionToken,tS.Diagnostics.An_object_member_cannot_be_declared_optional))return 1;if(jD(e.exclamationToken,tS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return 1;if(void 0===e.body)return XD(e,e.end-1,";".length,tS.Diagnostics._0_expected,"{")}if(RD(e))return 1}return tS.isClassLike(e.parent)?8388608&e.flags?UD(e.name,tS.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):165===e.kind&&!e.body&&UD(e.name,tS.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):253===e.parent.kind?UD(e.name,tS.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type):177===e.parent.kind&&UD(e.name,tS.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 KD(e){return tS.isStringOrNumericLiteralLike(e)||214===e.kind&&40===e.operator&&8===e.operand.kind}function qD(e){var t=e.initializer;if(t){var r=!(KD(t)||(r=t,(tS.isPropertyAccessExpression(r)||tS.isElementAccessExpression(r)&&KD(r.argumentExpression))&&tS.isEntityNameExpression(r.expression)&&1024&Zh(r).flags)||109===t.kind||94===t.kind||(9===(n=t).kind||214===n.kind&&40===n.operator&&9===n.operand.kind)),n=tS.isDeclarationReadonly(e)||tS.isVariableDeclaration(e)&&tS.isVarConst(e);return!n||e.type?YD(t,tS.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):r?YD(t,tS.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference):(!n||r)&&YD(t,tS.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function WD(e){var t=e.declarations;return ND(e.declarations)||!e.declarations.length&&XD(e,t.pos,t.end-t.pos,tS.Diagnostics.Variable_declaration_list_cannot_be_empty)}function HD(e){return 0<e.parseDiagnostics.length}function GD(e,t,r,n,i){var a=tS.getSourceFileOfNode(e);if(HD(a))return!1;e=tS.getSpanOfTokenAtPosition(a,e.pos);return an.add(tS.createFileDiagnostic(a,e.start,e.length,t,r,n,i)),!0}function XD(e,t,r,n,i,a,o){e=tS.getSourceFileOfNode(e);return!HD(e)&&(an.add(tS.createFileDiagnostic(e,t,r,n,i,a,o)),!0)}function QD(e,t,r,n,i,a){return!HD(tS.getSourceFileOfNode(t))&&(yn(e,t,r,n,i,a),!0)}function YD(e,t,r,n,i){return!HD(tS.getSourceFileOfNode(e))&&(an.add(tS.createDiagnosticForNode(e,t,r,n,i)),!0)}function ZD(e){if(8388608&e.flags){if(!wn(e).hasReportedStatementInAmbientContext&&(tS.isFunctionLike(e.parent)||tS.isAccessor(e.parent)))return wn(e).hasReportedStatementInAmbientContext=GD(e,tS.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(230===e.parent.kind||257===e.parent.kind||297===e.parent.kind){var t=wn(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=GD(e,tS.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function $D(e){if(32&e.numericLiteralFlags){var t=void 0;if(1<=R?t=tS.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:tS.isChildOfNodeWithKind(e,191)?t=tS.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:tS.isChildOfNodeWithKind(e,291)&&(t=tS.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=tS.isPrefixUnaryExpression(e.parent)&&40===e.parent.operator,n=(r?"-":"")+"0o"+e.text;return YD(r?e.parent:e,t,n)}}16&(n=e).numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf(".")||((e=+tS.getTextOfNode(n))<=Math.pow(2,53)-1&&e<1+e||vn(!1,tS.createDiagnosticForNode(n,tS.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers)))}function eS(e,t,r,n){if(1048576&t.flags&&2621440&e.flags){e=Rs(e);if(e){e=uf(e,t);if(e)return dd(t,tS.map(e,function(e){return[function(){return _o(e)},e.escapedName]}),r,void 0,n)}}}},(e=uS=uS||{}).JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes",tS.signatureHasRestParameter=bS,tS.signatureHasLiteralTypes=xS}(ts=ts||{}),function(m){var c=m.or(m.isTypeNode,m.isTypeParameterDeclaration);function u(e,t,r,n){if(void 0===e||void 0===t)return e;t=t(e);return t===e?e:void 0!==t?(t=m.isArray(t)?(n||function(e){return m.Debug.assert(e.length<=1,"Too many nodes written to output."),m.singleOrUndefined(e)})(t):t,m.Debug.assertNode(t,r),t):void 0}function l(e,t,r,n,i){if(void 0===e||void 0===t)return e;var a,o,s=e.length;(void 0===n||n<0)&&(n=0),(void 0===i||s-n<i)&&(i=s-n);var c=-1,u=-1;(0<n||i<s)&&(a=[],o=e.hasTrailingComma&&n+i===s);for(var l=0;l<i;l++){var _=e[l+n],d=void 0!==_?t(_):void 0;if((void 0!==a||void 0===d||d!==_)&&(void 0===a&&(a=e.slice(0,l),o=e.hasTrailingComma,c=e.pos,u=e.end),d))if(m.isArray(d))for(var p=0,f=d;p<f.length;p++){var g=f[p];m.Debug.assertNode(g,r),a.push(g)}else m.Debug.assertNode(d,r),a.push(d)}if(a){s=m.factory.createNodeArray(a,o);return m.setTextRangePosEnd(s,c,u),s}return e}function _(e,t,r,n,i,a){return void 0===a&&(a=l),r.startLexicalEnvironment(),e=a(e,t,m.isStatement,n),i&&(e=r.factory.ensureUseStrict(e)),m.factory.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function d(e,t,r,n){var i;return void 0===n&&(n=l),r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),i=n(e,t,m.isParameterDeclaration),2&r.getLexicalEnvironmentFlags()&&2<=m.getEmitScriptTarget(r.getCompilerOptions())&&(i=function(e,t){for(var r,n=0;n<e.length;n++){var i=e[n],a=function(e,t){return e.dotDotDotToken?e:m.isBindingPattern(e.name)?function(e,t){var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,t):e.initializer?function(e,t,r,n){var i=n.factory;return n.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(t),"undefined"),m.setEmitFlags(m.setTextRange(i.createBlock([i.createExpressionStatement(m.setEmitFlags(m.setTextRange(i.createAssignment(m.setEmitFlags(i.cloneNode(t),48),m.setEmitFlags(r,1584|m.getEmitFlags(r))),e),1536))]),e),1953))),i.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,t):e}(i,t);!r&&a===i||((r=r||e.slice(0,n))[n]=a)}if(r)return m.setTextRange(t.factory.createNodeArray(r,e.hasTrailingComma),e);return e}(i,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),i}function p(e,t,r,n){void 0===n&&(n=u),r.resumeLexicalEnvironment();n=n(e,t,m.isConciseBody),e=r.endLexicalEnvironment();if(m.some(e)){if(!n)return r.factory.createBlock(e);t=r.factory.converters.convertToFunctionBlock(n),e=m.factory.mergeLexicalEnvironment(t.statements,e);return r.factory.updateBlock(t,e)}return n}m.visitNode=u,m.visitNodes=l,m.visitLexicalEnvironment=_,m.visitParameterList=d,m.visitFunctionBody=p,m.visitEachChild=function(e,t,r,n,i,a){if(void 0===n&&(n=l),void 0===a&&(a=u),void 0!==e){var o=e.kind;if(0<o&&o<=156||187===o)return e;var s=r.factory;switch(o){case 78:return s.updateIdentifier(e,n(e.typeArguments,t,c));case 157:return s.updateQualifiedName(e,a(e.left,t,m.isEntityName),a(e.right,t,m.isIdentifier));case 158:return s.updateComputedPropertyName(e,a(e.expression,t,m.isExpression));case 159:return s.updateTypeParameterDeclaration(e,a(e.name,t,m.isIdentifier),a(e.constraint,t,m.isTypeNode),a(e.default,t,m.isTypeNode));case 160:return s.updateParameterDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.dotDotDotToken,i,m.isToken),a(e.name,t,m.isBindingName),a(e.questionToken,i,m.isToken),a(e.type,t,m.isTypeNode),a(e.initializer,t,m.isExpression));case 161:return s.updateDecorator(e,a(e.expression,t,m.isExpression));case 162:return s.updatePropertySignature(e,n(e.modifiers,t,m.isToken),a(e.name,t,m.isPropertyName),a(e.questionToken,i,m.isToken),a(e.type,t,m.isTypeNode));case 163:return s.updatePropertyDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),a(e.questionToken||e.exclamationToken,i,m.isToken),a(e.type,t,m.isTypeNode),a(e.initializer,t,m.isExpression));case 164:return s.updateMethodSignature(e,n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),a(e.questionToken,i,m.isToken),n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 165:return s.updateMethodDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.asteriskToken,i,m.isToken),a(e.name,t,m.isPropertyName),a(e.questionToken,i,m.isToken),n(e.typeParameters,t,m.isTypeParameterDeclaration),d(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),p(e.body,t,r,a));case 166:return s.updateConstructorDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),d(e.parameters,t,r,n),p(e.body,t,r,a));case 167:return s.updateGetAccessorDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),d(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),p(e.body,t,r,a));case 168:return s.updateSetAccessorDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),d(e.parameters,t,r,n),p(e.body,t,r,a));case 169:return s.updateCallSignature(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 170:return s.updateConstructSignature(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 171:return s.updateIndexSignature(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 172:return s.updateTypePredicateNode(e,a(e.assertsModifier,t),a(e.parameterName,t),a(e.type,t,m.isTypeNode));case 173:return s.updateTypeReferenceNode(e,a(e.typeName,t,m.isEntityName),n(e.typeArguments,t,m.isTypeNode));case 174:return s.updateFunctionTypeNode(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 175:return s.updateConstructorTypeNode(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 176:return s.updateTypeQueryNode(e,a(e.exprName,t,m.isEntityName));case 177:return s.updateTypeLiteralNode(e,n(e.members,t,m.isTypeElement));case 178:return s.updateArrayTypeNode(e,a(e.elementType,t,m.isTypeNode));case 179:return s.updateTupleTypeNode(e,n(e.elements,t,m.isTypeNode));case 180:return s.updateOptionalTypeNode(e,a(e.type,t,m.isTypeNode));case 181:return s.updateRestTypeNode(e,a(e.type,t,m.isTypeNode));case 182:return s.updateUnionTypeNode(e,n(e.types,t,m.isTypeNode));case 183:return s.updateIntersectionTypeNode(e,n(e.types,t,m.isTypeNode));case 184:return s.updateConditionalTypeNode(e,a(e.checkType,t,m.isTypeNode),a(e.extendsType,t,m.isTypeNode),a(e.trueType,t,m.isTypeNode),a(e.falseType,t,m.isTypeNode));case 185:return s.updateInferTypeNode(e,a(e.typeParameter,t,m.isTypeParameterDeclaration));case 195:return s.updateImportTypeNode(e,a(e.argument,t,m.isTypeNode),a(e.qualifier,t,m.isEntityName),l(e.typeArguments,t,m.isTypeNode),e.isTypeOf);case 192:return s.updateNamedTupleMember(e,u(e.dotDotDotToken,t,m.isToken),u(e.name,t,m.isIdentifier),u(e.questionToken,t,m.isToken),u(e.type,t,m.isTypeNode));case 186:return s.updateParenthesizedType(e,a(e.type,t,m.isTypeNode));case 188:return s.updateTypeOperatorNode(e,a(e.type,t,m.isTypeNode));case 189:return s.updateIndexedAccessTypeNode(e,a(e.objectType,t,m.isTypeNode),a(e.indexType,t,m.isTypeNode));case 190:return s.updateMappedTypeNode(e,a(e.readonlyToken,i,m.isToken),a(e.typeParameter,t,m.isTypeParameterDeclaration),a(e.nameType,t,m.isTypeNode),a(e.questionToken,i,m.isToken),a(e.type,t,m.isTypeNode));case 191:return s.updateLiteralTypeNode(e,a(e.literal,t,m.isExpression));case 193:return s.updateTemplateLiteralType(e,a(e.head,t,m.isTemplateHead),n(e.templateSpans,t,m.isTemplateLiteralTypeSpan));case 194:return s.updateTemplateLiteralTypeSpan(e,a(e.type,t,m.isTypeNode),a(e.literal,t,m.isTemplateMiddleOrTemplateTail));case 196:return s.updateObjectBindingPattern(e,n(e.elements,t,m.isBindingElement));case 197:return s.updateArrayBindingPattern(e,n(e.elements,t,m.isArrayBindingElement));case 198:return s.updateBindingElement(e,a(e.dotDotDotToken,i,m.isToken),a(e.propertyName,t,m.isPropertyName),a(e.name,t,m.isBindingName),a(e.initializer,t,m.isExpression));case 199:return s.updateArrayLiteralExpression(e,n(e.elements,t,m.isExpression));case 200:return s.updateObjectLiteralExpression(e,n(e.properties,t,m.isObjectLiteralElementLike));case 201:return 32&e.flags?s.updatePropertyAccessChain(e,a(e.expression,t,m.isExpression),a(e.questionDotToken,i,m.isToken),a(e.name,t,m.isIdentifier)):s.updatePropertyAccessExpression(e,a(e.expression,t,m.isExpression),a(e.name,t,m.isIdentifierOrPrivateIdentifier));case 202:return 32&e.flags?s.updateElementAccessChain(e,a(e.expression,t,m.isExpression),a(e.questionDotToken,i,m.isToken),a(e.argumentExpression,t,m.isExpression)):s.updateElementAccessExpression(e,a(e.expression,t,m.isExpression),a(e.argumentExpression,t,m.isExpression));case 203:return 32&e.flags?s.updateCallChain(e,a(e.expression,t,m.isExpression),a(e.questionDotToken,i,m.isToken),n(e.typeArguments,t,m.isTypeNode),n(e.arguments,t,m.isExpression)):s.updateCallExpression(e,a(e.expression,t,m.isExpression),n(e.typeArguments,t,m.isTypeNode),n(e.arguments,t,m.isExpression));case 204:return s.updateNewExpression(e,a(e.expression,t,m.isExpression),n(e.typeArguments,t,m.isTypeNode),n(e.arguments,t,m.isExpression));case 205:return s.updateTaggedTemplateExpression(e,a(e.tag,t,m.isExpression),l(e.typeArguments,t,m.isExpression),a(e.template,t,m.isTemplateLiteral));case 206:return s.updateTypeAssertion(e,a(e.type,t,m.isTypeNode),a(e.expression,t,m.isExpression));case 207:return s.updateParenthesizedExpression(e,a(e.expression,t,m.isExpression));case 208:return s.updateFunctionExpression(e,n(e.modifiers,t,m.isModifier),a(e.asteriskToken,i,m.isToken),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),d(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),p(e.body,t,r,a));case 209:return s.updateArrowFunction(e,n(e.modifiers,t,m.isModifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),d(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),a(e.equalsGreaterThanToken,i,m.isToken),p(e.body,t,r,a));case 210:return s.updateDeleteExpression(e,a(e.expression,t,m.isExpression));case 211:return s.updateTypeOfExpression(e,a(e.expression,t,m.isExpression));case 212:return s.updateVoidExpression(e,a(e.expression,t,m.isExpression));case 213:return s.updateAwaitExpression(e,a(e.expression,t,m.isExpression));case 214:return s.updatePrefixUnaryExpression(e,a(e.operand,t,m.isExpression));case 215:return s.updatePostfixUnaryExpression(e,a(e.operand,t,m.isExpression));case 216:return s.updateBinaryExpression(e,a(e.left,t,m.isExpression),a(e.operatorToken,i,m.isToken),a(e.right,t,m.isExpression));case 217:return s.updateConditionalExpression(e,a(e.condition,t,m.isExpression),a(e.questionToken,i,m.isToken),a(e.whenTrue,t,m.isExpression),a(e.colonToken,i,m.isToken),a(e.whenFalse,t,m.isExpression));case 218:return s.updateTemplateExpression(e,a(e.head,t,m.isTemplateHead),n(e.templateSpans,t,m.isTemplateSpan));case 219:return s.updateYieldExpression(e,a(e.asteriskToken,i,m.isToken),a(e.expression,t,m.isExpression));case 220:return s.updateSpreadElement(e,a(e.expression,t,m.isExpression));case 221:return s.updateClassExpression(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.heritageClauses,t,m.isHeritageClause),n(e.members,t,m.isClassElement));case 223:return s.updateExpressionWithTypeArguments(e,a(e.expression,t,m.isExpression),n(e.typeArguments,t,m.isTypeNode));case 224:return s.updateAsExpression(e,a(e.expression,t,m.isExpression),a(e.type,t,m.isTypeNode));case 225:return 32&e.flags?s.updateNonNullChain(e,a(e.expression,t,m.isExpression)):s.updateNonNullExpression(e,a(e.expression,t,m.isExpression));case 226:return s.updateMetaProperty(e,a(e.name,t,m.isIdentifier));case 228:return s.updateTemplateSpan(e,a(e.expression,t,m.isExpression),a(e.literal,t,m.isTemplateMiddleOrTemplateTail));case 230:return s.updateBlock(e,n(e.statements,t,m.isStatement));case 232:return s.updateVariableStatement(e,n(e.modifiers,t,m.isModifier),a(e.declarationList,t,m.isVariableDeclarationList));case 233:return s.updateExpressionStatement(e,a(e.expression,t,m.isExpression));case 234:return s.updateIfStatement(e,a(e.expression,t,m.isExpression),a(e.thenStatement,t,m.isStatement,s.liftToBlock),a(e.elseStatement,t,m.isStatement,s.liftToBlock));case 235:return s.updateDoStatement(e,a(e.statement,t,m.isStatement,s.liftToBlock),a(e.expression,t,m.isExpression));case 236:return s.updateWhileStatement(e,a(e.expression,t,m.isExpression),a(e.statement,t,m.isStatement,s.liftToBlock));case 237:return s.updateForStatement(e,a(e.initializer,t,m.isForInitializer),a(e.condition,t,m.isExpression),a(e.incrementor,t,m.isExpression),a(e.statement,t,m.isStatement,s.liftToBlock));case 238:return s.updateForInStatement(e,a(e.initializer,t,m.isForInitializer),a(e.expression,t,m.isExpression),a(e.statement,t,m.isStatement,s.liftToBlock));case 239:return s.updateForOfStatement(e,a(e.awaitModifier,i,m.isToken),a(e.initializer,t,m.isForInitializer),a(e.expression,t,m.isExpression),a(e.statement,t,m.isStatement,s.liftToBlock));case 240:return s.updateContinueStatement(e,a(e.label,t,m.isIdentifier));case 241:return s.updateBreakStatement(e,a(e.label,t,m.isIdentifier));case 242:return s.updateReturnStatement(e,a(e.expression,t,m.isExpression));case 243:return s.updateWithStatement(e,a(e.expression,t,m.isExpression),a(e.statement,t,m.isStatement,s.liftToBlock));case 244:return s.updateSwitchStatement(e,a(e.expression,t,m.isExpression),a(e.caseBlock,t,m.isCaseBlock));case 245:return s.updateLabeledStatement(e,a(e.label,t,m.isIdentifier),a(e.statement,t,m.isStatement,s.liftToBlock));case 246:return s.updateThrowStatement(e,a(e.expression,t,m.isExpression));case 247:return s.updateTryStatement(e,a(e.tryBlock,t,m.isBlock),a(e.catchClause,t,m.isCatchClause),a(e.finallyBlock,t,m.isBlock));case 249:return s.updateVariableDeclaration(e,a(e.name,t,m.isBindingName),a(e.exclamationToken,i,m.isToken),a(e.type,t,m.isTypeNode),a(e.initializer,t,m.isExpression));case 250:return s.updateVariableDeclarationList(e,n(e.declarations,t,m.isVariableDeclaration));case 251:return s.updateFunctionDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.asteriskToken,i,m.isToken),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),d(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),p(e.body,t,r,a));case 252:return s.updateClassDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.heritageClauses,t,m.isHeritageClause),n(e.members,t,m.isClassElement));case 253:return s.updateInterfaceDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.heritageClauses,t,m.isHeritageClause),n(e.members,t,m.isTypeElement));case 254:return s.updateTypeAliasDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),a(e.type,t,m.isTypeNode));case 255:return s.updateEnumDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),n(e.members,t,m.isEnumMember));case 256:return s.updateModuleDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),a(e.body,t,m.isModuleBody));case 257:return s.updateModuleBlock(e,n(e.statements,t,m.isStatement));case 258:return s.updateCaseBlock(e,n(e.clauses,t,m.isCaseOrDefaultClause));case 259:return s.updateNamespaceExportDeclaration(e,a(e.name,t,m.isIdentifier));case 260:return s.updateImportEqualsDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),a(e.moduleReference,t,m.isModuleReference));case 261:return s.updateImportDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.importClause,t,m.isImportClause),a(e.moduleSpecifier,t,m.isExpression));case 262:return s.updateImportClause(e,e.isTypeOnly,a(e.name,t,m.isIdentifier),a(e.namedBindings,t,m.isNamedImportBindings));case 263:return s.updateNamespaceImport(e,a(e.name,t,m.isIdentifier));case 269:return s.updateNamespaceExport(e,a(e.name,t,m.isIdentifier));case 264:return s.updateNamedImports(e,n(e.elements,t,m.isImportSpecifier));case 265:return s.updateImportSpecifier(e,a(e.propertyName,t,m.isIdentifier),a(e.name,t,m.isIdentifier));case 266:return s.updateExportAssignment(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.expression,t,m.isExpression));case 267:return s.updateExportDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),e.isTypeOnly,a(e.exportClause,t,m.isNamedExportBindings),a(e.moduleSpecifier,t,m.isExpression));case 268:return s.updateNamedExports(e,n(e.elements,t,m.isExportSpecifier));case 270:return s.updateExportSpecifier(e,a(e.propertyName,t,m.isIdentifier),a(e.name,t,m.isIdentifier));case 272:return s.updateExternalModuleReference(e,a(e.expression,t,m.isExpression));case 273:return s.updateJsxElement(e,a(e.openingElement,t,m.isJsxOpeningElement),n(e.children,t,m.isJsxChild),a(e.closingElement,t,m.isJsxClosingElement));case 274:return s.updateJsxSelfClosingElement(e,a(e.tagName,t,m.isJsxTagNameExpression),n(e.typeArguments,t,m.isTypeNode),a(e.attributes,t,m.isJsxAttributes));case 275:return s.updateJsxOpeningElement(e,a(e.tagName,t,m.isJsxTagNameExpression),n(e.typeArguments,t,m.isTypeNode),a(e.attributes,t,m.isJsxAttributes));case 276:return s.updateJsxClosingElement(e,a(e.tagName,t,m.isJsxTagNameExpression));case 277:return s.updateJsxFragment(e,a(e.openingFragment,t,m.isJsxOpeningFragment),n(e.children,t,m.isJsxChild),a(e.closingFragment,t,m.isJsxClosingFragment));case 280:return s.updateJsxAttribute(e,a(e.name,t,m.isIdentifier),a(e.initializer,t,m.isStringLiteralOrJsxExpression));case 281:return s.updateJsxAttributes(e,n(e.properties,t,m.isJsxAttributeLike));case 282:return s.updateJsxSpreadAttribute(e,a(e.expression,t,m.isExpression));case 283:return s.updateJsxExpression(e,a(e.expression,t,m.isExpression));case 284:return s.updateCaseClause(e,a(e.expression,t,m.isExpression),n(e.statements,t,m.isStatement));case 285:return s.updateDefaultClause(e,n(e.statements,t,m.isStatement));case 286:return s.updateHeritageClause(e,n(e.types,t,m.isExpressionWithTypeArguments));case 287:return s.updateCatchClause(e,a(e.variableDeclaration,t,m.isVariableDeclaration),a(e.block,t,m.isBlock));case 288:return s.updatePropertyAssignment(e,a(e.name,t,m.isPropertyName),a(e.initializer,t,m.isExpression));case 289:return s.updateShorthandPropertyAssignment(e,a(e.name,t,m.isIdentifier),a(e.objectAssignmentInitializer,t,m.isExpression));case 290:return s.updateSpreadAssignment(e,a(e.expression,t,m.isExpression));case 291:return s.updateEnumMember(e,a(e.name,t,m.isPropertyName),a(e.initializer,t,m.isExpression));case 297:return s.updateSourceFile(e,_(e.statements,t,r));case 336:return s.updatePartiallyEmittedExpression(e,a(e.expression,t,m.isExpression));case 337:return s.updateCommaListExpression(e,n(e.elements,t,m.isExpression));default:return e}}}}(ts=ts||{}),function(L){L.createSourceMapGenerator=function(n,e,t,i,r){var a,o,y=(r=r.extendedDiagnostics?L.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):L.performance.nullTimer).enter,h=r.exit,s=[],c=[],u=new L.Map,l=[],_="",d=0,p=0,f=0,g=0,m=0,v=0,b=!1,x=0,D=0,S=0,T=0,C=0,E=0,k=!1,N=!1,A=!1;return{getSources:function(){return s},addSource:F,setSourceContent:P,addName:w,addMapping:I,appendSourceMap:function(e,t,r,n,i,a){L.Debug.assert(x<=e,"generatedLine cannot backtrack"),L.Debug.assert(0<=t,"generatedCharacter cannot be negative"),y();for(var o,s=[],c=R(r.mappings),u=c.next();!u.done;u=c.next()){var l,_,d,p,f,g,m=u.value;if(a&&(m.generatedLine>a.line||m.generatedLine===a.line&&m.generatedCharacter>a.character))break;i&&(m.generatedLine<i.line||i.line===m.generatedLine&&m.generatedCharacter<i.character)||((p=d=_=l=void 0)!==m.sourceIndex&&(void 0===(l=s[m.sourceIndex])&&(g=r.sources[m.sourceIndex],f=r.sourceRoot?L.combinePaths(r.sourceRoot,g):g,g=L.combinePaths(L.getDirectoryPath(n),f),s[m.sourceIndex]=l=F(g),r.sourcesContent&&"string"==typeof r.sourcesContent[m.sourceIndex]&&P(l,r.sourcesContent[m.sourceIndex])),_=m.sourceLine,d=m.sourceCharacter,r.names&&void 0!==m.nameIndex&&void 0===(p=(o=o||[])[m.nameIndex])&&(o[m.nameIndex]=p=w(r.names[m.nameIndex]))),f=m.generatedLine-(i?i.line:0),g=f+e,m=i&&i.line===m.generatedLine?m.generatedCharacter-i.character:m.generatedCharacter,I(g,0==f?m+t:m,l,_,d,p))}h()},toJSON:M,toString:function(){return JSON.stringify(M())}};function F(e){y();var t=L.getRelativePathToDirectoryOrUrl(i,e,n.getCurrentDirectory(),n.getCanonicalFileName,!0),r=u.get(t);return void 0===r&&(r=c.length,c.push(t),s.push(e),u.set(t,r)),h(),r}function P(e,t){if(y(),null!==t){for(a=a||[];a.length<e;)a.push(null);a[e]=t}h()}function w(e){y();var t=(o=o||new L.Map).get(e);return void 0===t&&(t=l.length,l.push(e),o.set(e,t)),h(),t}function I(e,t,r,n,i,a){var o,s,c;L.Debug.assert(x<=e,"generatedLine cannot backtrack"),L.Debug.assert(0<=t,"generatedCharacter cannot be negative"),L.Debug.assert(void 0===r||0<=r,"sourceIndex cannot be negative"),L.Debug.assert(void 0===n||0<=n,"sourceLine cannot be negative"),L.Debug.assert(void 0===i||0<=i,"sourceCharacter cannot be negative"),y(),k&&x===e&&D===t&&(s=n,c=i,void 0===(o=r)||void 0===s||void 0===c||S!==o||!(s<T||T===s&&c<C))||(O(),x=e,D=t,k=!(A=N=!1)),void 0!==r&&void 0!==n&&void 0!==i&&(S=r,T=n,C=i,N=!0,void 0!==a&&(E=a,A=!0)),h()}function O(){if(k&&(!b||d!==x||p!==D||f!==S||g!==T||m!==C||v!==E)){if(y(),d<x)for(;_+=";",d++,p=0,d<x;);else L.Debug.assertEqual(d,x,"generatedLine cannot backtrack"),b&&(_+=",");_+=B(D-p),p=D,N&&(_+=B(S-f),f=S,_+=B(T-g),g=T,_+=B(C-m),m=C,A&&(_+=B(E-v),v=E)),b=!0,h()}}function M(){return O(),{version:3,file:e,sourceRoot:t,sources:c,names:l,mappings:_,sourcesContent:a}}};var i=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,a=/^\s*(\/\/[@#] .*)?$/;function t(e){return"string"==typeof e||null===e}function r(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&L.isArray(e.sources)&&L.every(e.sources,L.isString)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||L.isArray(e.sourcesContent)&&L.every(e.sourcesContent,t))&&(void 0===e.names||null===e.names||L.isArray(e.names)&&L.every(e.names,L.isString))}function R(i){var t,r=!1,a=0,n=0,o=0,s=0,c=0,u=0,l=0;return{get pos(){return a},get error(){return t},get state(){return _(!0,!0)},next:function(){for(;!r&&a<i.length;){var e=i.charCodeAt(a);if(59!==e){if(44!==e){var t=!1,e=!1;if(o+=y(),g())return d();if(o<0)return f("Invalid generatedCharacter found");if(!m()){if(t=!0,s+=y(),g())return d();if(s<0)return f("Invalid sourceIndex found");if(m())return f("Unsupported Format: No entries after sourceIndex");if(c+=y(),g())return d();if(c<0)return f("Invalid sourceLine found");if(m())return f("Unsupported Format: No entries after sourceLine");if(u+=y(),g())return d();if(u<0)return f("Invalid sourceCharacter found");if(!m()){if(e=!0,l+=y(),g())return d();if(l<0)return f("Invalid nameIndex found");if(!m())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:_(t,e),done:r}}a++}else n++,o=0,a++}return d()}};function _(e,t){return{generatedLine:n,generatedCharacter:o,sourceIndex:e?s:void 0,sourceLine:e?c:void 0,sourceCharacter:e?u:void 0,nameIndex:t?l:void 0}}function d(){return{value:void 0,done:r=!0}}function p(e){void 0===t&&(t=e)}function f(e){return p(e),d()}function g(){return void 0!==t}function m(){return a===i.length||44===i.charCodeAt(a)||59===i.charCodeAt(a)}function y(){for(var e=!0,t=0,r=0;e;a++){if(a>=i.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var n=65<=(n=i.charCodeAt(a))&&n<=90?n-65:97<=n&&n<=122?n-97+26:48<=n&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1==n)return p("Invalid character in VLQ"),-1;e=0!=(32&n),r|=(31&n)<<t,t+=5}return 0==(1&r)?r>>=1:r=-(r>>=1),r}}function p(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function B(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;0<(e>>=5)&&(r|=32),t+=String.fromCharCode(0<=(r=r)&&r<26?65+r:26<=r&&r<52?97+r-26:52<=r&&r<62?48+r-52:62===r?43:63===r?47:L.Debug.fail(r+": not a base64 value"))}while(0<e);return t}function f(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function g(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function m(e,t){return L.Debug.assert(e.sourceIndex===t.sourceIndex),L.compareValues(e.sourcePosition,t.sourcePosition)}function y(e,t){return L.compareValues(e.generatedPosition,t.generatedPosition)}function h(e){return e.sourcePosition}function v(e){return e.generatedPosition}L.getLineInfo=function(t,r){return{getLineCount:function(){return r.length},getLineText:function(e){return t.substring(r[e],r[e+1])}}},L.tryGetSourceMappingURL=function(e){for(var t=e.getLineCount()-1;0<=t;t--){var r=e.getLineText(t),n=i.exec(r);if(n)return n[1];if(!r.match(a))break}},L.isRawSourceMap=r,L.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(r(t))return t}catch(e){}},L.decodeMappings=R,L.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},L.isSourceMapping=p,L.createDocumentPositionMapper=function(i,a,e){var r,o,s,e=L.getDirectoryPath(e),t=a.sourceRoot?L.getNormalizedAbsolutePath(a.sourceRoot,e):e,c=L.getNormalizedAbsolutePath(a.file,e),u=i.getSourceFileLike(c),l=a.sources.map(function(e){return L.getNormalizedAbsolutePath(e,t)}),_=new L.Map(l.map(function(e,t){return[i.getCanonicalFileName(e),t]}));return{getSourcePosition:function(e){var t=function(){if(void 0===o){for(var e=[],t=0,r=d();t<r.length;t++){var n=r[t];e.push(n)}o=L.sortAndDeduplicate(e,y,g)}return o}();if(!L.some(t))return e;var r=L.binarySearchKey(t,e.pos,v,L.compareValues);r<0&&(r=~r);r=t[r];return void 0!==r&&f(r)?{fileName:l[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(e){var t=_.get(i.getCanonicalFileName(e.fileName));if(void 0===t)return e;var r=function(e){if(void 0===s){for(var t=[],r=0,n=d();r<n.length;r++){var i,a=n[r];f(a)&&((i=t[a.sourceIndex])||(t[a.sourceIndex]=i=[]),i.push(a))}s=t.map(function(e){return L.sortAndDeduplicate(e,m,g)})}return s[e]}(t);if(!L.some(r))return e;var n=L.binarySearchKey(r,e.pos,h,L.compareValues);n<0&&(n=~n);n=r[n];return void 0!==n&&n.sourceIndex===t?{fileName:c,pos:n.generatedPosition}:e}};function n(e){var t,r,n=void 0!==u?L.getPositionOfLineAndCharacter(u,e.generatedLine,e.generatedCharacter,!0):-1;return p(e)&&(r=i.getSourceFileLike(l[e.sourceIndex]),t=a.sources[e.sourceIndex],r=void 0!==r?L.getPositionOfLineAndCharacter(r,e.sourceLine,e.sourceCharacter,!0):-1),{generatedPosition:n,source:t,sourceIndex:e.sourceIndex,sourcePosition:r,nameIndex:e.nameIndex}}function d(){var e,t;return void 0===r&&(e=R(a.mappings),t=L.arrayFrom(e,n),r=void 0!==e.error?(i.log&&i.log("Encountered error while decoding sourcemap: "+e.error),L.emptyArray):t),r}},L.identitySourceMapConsumer={getSourcePosition:L.identity,getGeneratedPosition:L.identity}}(ts=ts||{}),function(x){function D(e){return(e=x.getOriginalNode(e))?x.getNodeId(e):0}function a(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function S(e){if(x.getNamespaceDeclarationNode(e))return!0;var t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!x.isNamedImports(t))return!1;for(var r=0,n=0,i=t.elements;n<i.length;n++)a(i[n])&&r++;return 0<r&&r!==t.elements.length||!!(t.elements.length-r)&&x.isDefaultImport(e)}function T(e){return!S(e)&&(x.isDefaultImport(e)||!!e.importClause&&x.isNamedImports(e.importClause.namedBindings)&&(!!(e=e.importClause.namedBindings)&&(!!x.isNamedImports(e)&&x.some(e.elements,a))))}function C(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function t(e){return x.isStringLiteralLike(e)||8===e.kind||x.isKeyword(e.kind)||x.isIdentifier(e)}x.getOriginalNodeId=D,x.chainBundle=function(t,r){return function(e){return(297===e.kind?r:function(e){return t.factory.createBundle(x.map(e.sourceFiles,r),e.prepends)})(e)}},x.getExportNeedsImportStarHelper=function(e){return!!x.getNamespaceDeclarationNode(e)},x.getImportNeedsImportStarHelper=S,x.getImportNeedsImportDefaultHelper=T,x.collectExternalModuleInfo=function(e,t,a,r){for(var n,i=[],o=x.createMultiMap(),s=[],c=new x.Map,u=!1,l=!1,_=!1,d=!1,p=0,f=t.statements;p<f.length;p++){var g,m=f[p];switch(m.kind){case 261:i.push(m),!_&&S(m)&&(_=!0),!d&&T(m)&&(d=!0);break;case 260:272===m.moduleReference.kind&&i.push(m);break;case 267:m.moduleSpecifier?m.exportClause?(i.push(m),x.isNamedExports(m.exportClause)?b(m):(g=m.exportClause.name,c.get(x.idText(g))||(C(s,D(m),g),c.set(x.idText(g),!0),v=x.append(v,g)),_=!0)):(i.push(m),l=!0):b(m);break;case 266:m.isExportEquals&&!n&&(n=m);break;case 232:if(x.hasSyntacticModifier(m,1))for(var y=0,h=m.declarationList.declarations;y<h.length;y++)var v=function e(t,r,n){if(x.isBindingPattern(t.name))for(var i=0,a=t.name.elements;i<a.length;i++){var o=a[i];x.isOmittedExpression(o)||(n=e(o,r,n))}else{var s;x.isGeneratedIdentifier(t.name)||(s=x.idText(t.name),r.get(s)||(r.set(s,!0),n=x.append(n,t.name)))}return n}(h[y],c,v);break;case 251:x.hasSyntacticModifier(m,1)&&(x.hasSyntacticModifier(m,512)?u||(C(s,D(m),e.factory.getDeclarationName(m)),u=!0):(g=m.name,c.get(x.idText(g))||(C(s,D(m),g),c.set(x.idText(g),!0),v=x.append(v,g))));break;case 252:x.hasSyntacticModifier(m,1)&&(x.hasSyntacticModifier(m,512)?u||(C(s,D(m),e.factory.getDeclarationName(m)),u=!0):(g=m.name)&&!c.get(x.idText(g))&&(C(s,D(m),g),c.set(x.idText(g),!0),v=x.append(v,g)))}}return(r=x.createExternalHelpersImportDeclarationIfNeeded(e.factory,e.getEmitHelperFactory(),t,r,l,_,d))&&i.unshift(r),{externalImports:i,exportSpecifiers:o,exportEquals:n,hasExportStarsToExportValues:l,exportedBindings:s,exportedNames:v,externalHelpersImportDeclaration:r};function b(e){for(var t=0,r=x.cast(e.exportClause,x.isNamedExports).elements;t<r.length;t++){var n,i=r[t];c.get(x.idText(i.name))||(n=i.propertyName||i.name,e.moduleSpecifier||o.add(x.idText(n),i),(n=a.getReferencedImportDeclaration(n)||a.getReferencedValueDeclaration(n))&&C(s,D(n),i.name),c.set(x.idText(i.name),!0),v=x.append(v,i.name))}}},x.isSimpleCopiableExpression=t,x.isSimpleInlineableExpression=function(e){return!x.isIdentifier(e)&&t(e)||x.isWellKnownSymbolSyntactically(e)},x.isCompoundAssignment=function(e){return 63<=e&&e<=77},x.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},x.addPrologueDirectivesAndInitialSuperCall=function(e,t,r,n){if(t.body){var i=t.body.statements,e=e.copyPrologue(i,r,!1,n);if(e===i.length)return e;var a=x.findIndex(i,function(e){return x.isExpressionStatement(e)&&x.isSuperCall(e.expression)},e);if(-1<a){for(var o=e;o<=a;o++)r.push(x.visitNode(i[o],n,x.isStatement));return a+1}return e}return 0},x.getProperties=function(e,n,i){return x.filter(e.members,function(e){return t=e,r=n,e=i,x.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&x.hasStaticModifier(t)===e;var t,r})},x.isInitializedProperty=function(e){return 163===e.kind&&void 0!==e.initializer}}(ts=ts||{}),function(h){var e;function v(e,t){e=h.getTargetOfBindingOrAssignmentElement(e);return h.isBindingOrAssignmentPattern(e)?function(e,t){for(var e=h.getElementsOfBindingOrAssignmentPattern(e),r=0,n=e;r<n.length;r++)if(v(n[r],t))return 1;return}(e,t):h.isIdentifier(e)&&e.escapedText===t}function b(e){var t=h.tryGetPropertyNameOfBindingOrAssignmentElement(e);if(t&&h.isComputedPropertyName(t)&&!h.isLiteralExpression(t.expression))return!0;e=h.getTargetOfBindingOrAssignmentElement(e);return!!e&&h.isBindingOrAssignmentPattern(e)&&(e=e,!!h.forEach(h.getElementsOfBindingOrAssignmentPattern(e),b))}function x(e,t,r,n,i){var a,o,s,c=h.getTargetOfBindingOrAssignmentElement(t);i||((a=h.visitNode(h.getInitializerOfBindingOrAssignmentElement(t),e.visitor,h.isExpression))?r?(s=a,i=D(o=e,i=r,!0,n),r=o.context.factory.createConditionalExpression(o.context.factory.createTypeCheck(i,"undefined"),void 0,s,void 0,i),!h.isSimpleInlineableExpression(a)&&h.isBindingOrAssignmentPattern(c)&&(r=D(e,r,!0,n))):r=a:r=r||e.context.factory.createVoidZero()),h.isObjectBindingOrAssignmentPattern(c)?function(e,t,r,n,i){var a,o,s=h.getElementsOfBindingOrAssignmentPattern(r),c=s.length;1!==c&&(t=!h.isDeclarationBindingElement(t)||0!==c,n=D(e,n,t,i));for(var u=0;u<c;u++){var l,_,d=s[u];h.getRestIndicatorOfBindingOrAssignmentElement(d)?u===c-1&&(a&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),n,i,r),a=void 0),_=e.context.getEmitHelperFactory().createRestHelper(n,s,o,r),x(e,d,_,d)):(l=h.getPropertyNameOfBindingOrAssignmentElement(d),!(1<=e.level)||24576&d.transformFlags||24576&h.getTargetOfBindingOrAssignmentElement(d).transformFlags||h.isComputedPropertyName(l)?(a&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),n,i,r),a=void 0),_=function(e,t,r){{if(h.isComputedPropertyName(r)){var n=D(e,h.visitNode(r.expression,e.visitor),!1,r);return e.context.factory.createElementAccessExpression(t,n)}if(h.isStringOrNumericLiteralLike(r)){n=h.factory.cloneNode(r);return e.context.factory.createElementAccessExpression(t,n)}r=e.context.factory.createIdentifier(h.idText(r));return e.context.factory.createPropertyAccessExpression(t,r)}}(e,n,l),h.isComputedPropertyName(l)&&(o=h.append(o,_.argumentExpression)),x(e,d,_,d)):a=h.append(a,h.visitNode(d,e.visitor)))}a&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),n,i,r)}(e,t,c,r,n):h.isArrayBindingOrAssignmentPattern(c)?function(e,t,r,n,i){var a,o,s=h.getElementsOfBindingOrAssignmentPattern(r),c=s.length;e.level<1&&e.downlevelIteration?n=D(e,h.setTextRange(e.context.getEmitHelperFactory().createReadHelper(n,0<c&&h.getRestIndicatorOfBindingOrAssignmentElement(s[c-1])?void 0:c),i),!1,i):(1!==c&&(e.level<1||0===c)||h.every(s,h.isOmittedExpression))&&(t=!h.isDeclarationBindingElement(t)||0!==c,n=D(e,n,t,i));for(var u=0;u<c;u++){var l,_,d=s[u];1<=e.level?a=16384&d.transformFlags||e.hasTransformedPriorElement&&!y(d)?(e.hasTransformedPriorElement=!0,l=e.context.factory.createTempVariable(void 0),e.hoistTempVariables&&e.context.hoistVariableDeclaration(l),o=h.append(o,[l,d]),h.append(a,e.createArrayBindingOrAssignmentElement(l))):h.append(a,d):h.isOmittedExpression(d)||(h.getRestIndicatorOfBindingOrAssignmentElement(d)?u===c-1&&(_=e.context.factory.createArraySliceCall(n,u),x(e,d,_,d)):(_=e.context.factory.createElementAccessExpression(n,u),x(e,d,_,d)))}if(a&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(a),n,i,r),o)for(var p=0,f=o;p<f.length;p++){var g=f[p],m=g[0],d=g[1];x(e,d,m,d)}}(e,t,c,r,n):e.emitBindingOrAssignment(c,r,n,t)}function y(e){var t=h.getTargetOfBindingOrAssignmentElement(e);if(!t||h.isOmittedExpression(t))return!0;var r=h.tryGetPropertyNameOfBindingOrAssignmentElement(e);if(r&&!h.isPropertyNameLiteral(r))return!1;e=h.getInitializerOfBindingOrAssignmentElement(e);return!(e&&!h.isSimpleInlineableExpression(e))&&(h.isBindingOrAssignmentPattern(t)?h.every(h.getElementsOfBindingOrAssignmentPattern(t),y):h.isIdentifier(t))}function D(e,t,r,n){if(h.isIdentifier(t)&&r)return t;r=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(r),e.emitExpression(h.setTextRange(e.context.factory.createAssignment(r,t),n))):e.emitBindingOrAssignment(r,t,n,void 0),r}function l(e){return e}(e=h.FlattenLevel||(h.FlattenLevel={}))[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",h.flattenDestructuringAssignment=function(e,i,a,t,r,o){var n,s,c=e;if(h.isDestructuringAssignment(e))for(n=e.right;h.isEmptyArrayLiteral(e.left)||h.isEmptyObjectLiteral(e.left);){if(!h.isDestructuringAssignment(n))return h.visitNode(n,i,h.isExpression);c=e=n,n=e.right}if(t={context:a,level:t,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:function(e,t,r,n){h.Debug.assertNode(e,o?h.isIdentifier:h.isExpression);r=o?o(e,t,r):h.setTextRange(a.factory.createAssignment(h.visitNode(e,i,h.isExpression),t),r);r.original=n,u(r)},createArrayBindingOrAssignmentPattern:function(e){return t=a.factory,e=e,t.createArrayLiteralExpression(h.map(e,t.converters.convertToArrayAssignmentElement));var t},createObjectBindingOrAssignmentPattern:function(e){return t=a.factory,e=e,t.createObjectLiteralExpression(h.map(e,t.converters.convertToObjectAssignmentElement));var t},createArrayBindingOrAssignmentElement:l,visitor:i},n&&(n=h.visitNode(n,i,h.isExpression),h.isIdentifier(n)&&v(e,n.escapedText)||b(e)?n=D(t,n,!1,c):r?n=D(t,n,!0,c):h.nodeIsSynthesized(e)&&(c=n)),x(t,e,n,c,h.isDestructuringAssignment(e)),n&&r){if(!h.some(s))return n;s.push(n)}return a.factory.inlineExpressions(s)||a.factory.createOmittedExpression();function u(e){s=h.append(s,e)}},h.flattenDestructuringBinding=function(e,t,i,r,n,a,o){void 0===a&&(a=!1);var s,c=[],u=[],r={context:i,level:r,downlevelIteration:!!i.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:function(e){s=h.append(s,e)},emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:function(e){return t=i.factory,e=e,h.Debug.assertEachNode(e,h.isArrayBindingElement),t.createArrayBindingPattern(e);var t},createObjectBindingOrAssignmentPattern:function(e){return t=i.factory,e=e,h.Debug.assertEachNode(e,h.isBindingElement),t.createObjectBindingPattern(e);var t},createArrayBindingOrAssignmentElement:function(e){return t=i.factory,e=e,t.createBindingElement(void 0,void 0,e);var t},visitor:t};!h.isVariableDeclaration(e)||(t=h.getInitializerOfBindingOrAssignmentElement(e))&&(h.isIdentifier(t)&&v(e,t.escapedText)||b(e))&&(t=D(r,t,!1,t),e=i.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t)),x(r,e,n,e,o),s&&(o=i.factory.createTempVariable(void 0),a?y(o,g=i.factory.inlineExpressions(s),s=void 0,void 0):(i.hoistVariableDeclaration(o),(a=h.last(c)).pendingExpressions=h.append(a.pendingExpressions,i.factory.createAssignment(o,a.value)),h.addRange(a.pendingExpressions,s),a.value=o));for(var l=0,_=c;l<_.length;l++){var d=_[l],p=d.pendingExpressions,f=d.name,g=d.value,m=d.location,d=d.original,p=i.factory.createVariableDeclaration(f,void 0,void 0,p?i.factory.inlineExpressions(h.append(p,g)):g);p.original=d,h.setTextRange(p,m),u.push(p)}return u;function y(e,t,r,n){h.Debug.assertNode(e,h.isBindingName),s&&(t=i.factory.inlineExpressions(h.append(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:n})}}}(ts=ts||{}),function(f){var g,e;function m(e){return e.templateFlags?f.factory.createVoidZero():f.factory.createStringLiteral(e.text)}function y(e,t){var r=e.rawText;return void 0===r&&(r=f.getSourceTextOfNodeFromSourceFile(t,e),t=14===e.kind||17===e.kind,r=r.substring(1,r.length-(t?1:2))),r=r.replace(/\r\n?/g,"\n"),f.setTextRange(f.factory.createStringLiteral(r),e)}(e=g=f.ProcessLevel||(f.ProcessLevel={}))[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",f.processTaggedTemplateExpression=function(e,t,r,n,i,a){var o=f.visitNode(t.tag,r,f.isExpression),s=[void 0],c=[],u=[],l=t.template;if(a===g.LiftRestriction&&!f.hasInvalidEscape(l))return f.visitEachChild(t,r,e);if(f.isNoSubstitutionTemplateLiteral(l))c.push(m(l)),u.push(y(l,n));else{c.push(m(l.head)),u.push(y(l.head,n));for(var _=0,d=l.templateSpans;_<d.length;_++){var p=d[_];c.push(m(p.literal)),u.push(y(p.literal,n)),s.push(f.visitNode(p.expression,r,f.isExpression))}}return e=e.getEmitHelperFactory().createTemplateObjectHelper(f.factory.createArrayLiteralExpression(c),f.factory.createArrayLiteralExpression(u)),f.isExternalModule(n)?(i(i=f.factory.createUniqueName("templateObject")),s[0]=f.factory.createLogicalOr(i,f.factory.createAssignment(i,e))):s[0]=e,f.factory.createCallExpression(o,void 0,s)}}(ts=ts||{}),function(je){var e;(e={})[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers",(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",je.transformTypeScript=function(c){var u,l,_,d,o,p,s,f,g,a,m=c.factory,y=c.getEmitHelperFactory,h=c.startLexicalEnvironment,v=c.resumeLexicalEnvironment,b=c.endLexicalEnvironment,x=c.hoistVariableDeclaration,D=c.getEmitResolver(),S=c.getCompilerOptions(),T=je.getStrictOptionValue(S,"strictNullChecks"),C=je.getEmitScriptTarget(S),E=je.getEmitModuleKind(S),k=c.onEmitNode,r=c.onSubstituteNode;return c.onEmitNode=function(e,t,r){var n=a,i=u;je.isSourceFile(t)&&(u=t);2&f&&function(e){return 256===je.getOriginalNode(e).kind}(t)&&(a|=2);8&f&&function(e){return 255===je.getOriginalNode(e).kind}(t)&&(a|=8);k(e,t,r),a=n,u=i},c.onSubstituteNode=function(e,t){{if(t=r(e,t),1===e)return function(e){switch(e.kind){case 78:return function(e){return function(e){if(1&f&&33554432&D.getNodeCheckFlags(e)){var t=D.getReferencedValueDeclaration(e);if(t){t=g[t.id];if(t){t=m.cloneNode(t);return je.setSourceMapRange(t,e),je.setCommentRange(t,e),t}}}return}(e)||Re(e)||e}(e);case 201:case 202:return Be(e)}return e}(t);if(je.isShorthandPropertyAssignment(t))return function(e){if(2&f){var t=e.name,r=Re(t);if(r){if(e.objectAssignmentInitializer){var n=m.createAssignment(r,e.objectAssignmentInitializer);return je.setTextRange(m.createPropertyAssignment(t,n),e)}return je.setTextRange(m.createPropertyAssignment(t,r),e)}}return e}(t)}return t},c.enableSubstitution(201),c.enableSubstitution(202),function(e){return(298!==e.kind?t:function(e){return m.createBundle(e.sourceFiles.map(t),je.mapDefined(e.prepends,function(e){return 300===e.kind?je.createUnparsedSourceFile(e,"js"):e}))})(e)};function t(e){if(e.isDeclarationFile)return e;e=N(u=e,R);return je.addEmitHelpers(e,c.readEmitHelpers()),u=void 0,e}function N(e,t){var r=d,n=o,i=p,a=s;!function(e){switch(e.kind){case 297:case 258:case 257:case 230:d=e,p=o=void 0;break;case 252:case 251:if(je.hasSyntacticModifier(e,2))break;e.name?he(e):je.Debug.assert(252===e.kind||je.hasSyntacticModifier(e,512)),je.isClassDeclaration(e)&&(o=e)}}(e);e=t(e);return d!==r&&(p=i),d=r,o=n,s=a,e}function A(e){return N(e,n)}function n(e){return 1&e.transformFlags?L(e):e}function i(e){return N(e,F)}function F(e){switch(e.kind){case 261:case 260:case 266:case 267:return function(e){if(je.getParseTreeNode(e)!==e)return 1&e.transformFlags?je.visitEachChild(e,A,c):e;switch(e.kind){case 261:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;var t=je.visitNode(e.importClause,De,je.isImportClause);return t||1===S.importsNotUsedAsValues||2===S.importsNotUsedAsValues?m.updateImportDeclaration(e,void 0,void 0,t,e.moduleSpecifier):void 0}(e);case 260:return ke(e);case 266:return function(e){return D.isValueAliasDeclaration(e)?je.visitEachChild(e,A,c):void 0}(e);case 267:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||je.isNamespaceExport(e.exportClause))return e;if(!D.isValueAliasDeclaration(e))return;var t=je.visitNode(e.exportClause,Ce,je.isNamedExportBindings);return t?m.updateExportDeclaration(e,void 0,void 0,e.isTypeOnly,t,e.moduleSpecifier):void 0}(e);default:je.Debug.fail("Unhandled ellided statement")}}(e);default:return n(e)}}function P(e){return N(e,w)}function w(e){if(267!==e.kind&&261!==e.kind&&262!==e.kind&&(260!==e.kind||272!==e.moduleReference.kind))return 1&e.transformFlags||je.hasSyntacticModifier(e,1)?L(e):e}function I(e){return N(e,O)}function O(e){switch(e.kind){case 166:return de(e);case 163:return _e(e);case 171:case 167:case 168:case 165:return n(e);case 229:return e;default:return je.Debug.failBadSyntaxKind(e)}}function M(e){if(!(2270&je.modifierToFlag(e.kind)||l&&92===e.kind))return e}function L(e){if(je.isStatement(e)&&je.hasSyntacticModifier(e,2))return m.createNotEmittedStatement(e);switch(e.kind){case 92:case 87:return l?void 0:e;case 122:case 120:case 121:case 125:case 84:case 133:case 142:case 178:case 179:case 180:case 181:case 177:case 172:case 159:case 128:case 152:case 131:case 147:case 144:case 141:case 113:case 148:case 175:case 174:case 176:case 173:case 182:case 183:case 184:case 186:case 187:case 188:case 189:case 190:case 191:case 171:case 161:case 254:return;case 163:return _e(e);case 259:return;case 166:return de(e);case 253:return m.createNotEmittedStatement(e);case 252:return function(e){if(!(J(e)||l&&je.hasSyntacticModifier(e,1)))return je.visitEachChild(e,A,c);var t=je.getProperties(e,!0,!0),r=function(e,t){var r=0;je.some(t)&&(r|=1);t=je.getEffectiveBaseTypeNode(e);t&&103!==je.skipOuterExpressions(t.expression).kind&&(r|=64);!function(e){if(e.decorators&&0<e.decorators.length)return!0;e=je.getFirstConstructorWithBody(e);if(e)return je.forEach(e.parameters,B);return!1}(e)||(r|=2);je.childIsDecorated(e)&&(r|=4);Ne(e)?r|=8:!function(e){return Ae(e)&&je.hasSyntacticModifier(e,512)}(e)?Fe(e)&&(r|=16):r|=32;C<=1&&7&r&&(r|=128);return r}(e,t);128&r&&c.startLexicalEnvironment();var n=e.name||(5&r?m.getGeneratedNameForNode(e):void 0),i=2&r?function(e,t){var r=je.moveRangePastDecorators(e),n=function(e){if(16777216&D.getNodeCheckFlags(e)){0==(1&f)&&(f|=1,c.enableSubstitution(78),g=[]);var t=m.createUniqueName(e.name&&!je.isGeneratedIdentifier(e.name)?je.idText(e.name):"default");return g[je.getOriginalNodeId(e)]=t,x(t),t}}(e),i=m.getLocalName(e,!1,!0),a=je.visitNodes(e.heritageClauses,A,je.isHeritageClause),o=z(e),o=m.createClassExpression(void 0,void 0,t,void 0,a,o);je.setOriginalNode(o,e),je.setTextRange(o,r);o=m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(i,void 0,void 0,n?m.createAssignment(n,o):o)],1));return je.setOriginalNode(o,e),je.setTextRange(o,r),je.setCommentRange(o,e),o}(e,n):function(e,t,r){var n=128&r?void 0:je.visitNodes(e.modifiers,M,je.isModifier),n=m.createClassDeclaration(void 0,n,t,void 0,je.visitNodes(e.heritageClauses,A,je.isHeritageClause),z(e)),t=je.getEmitFlags(e);1&r&&(t|=32);return je.setTextRange(n,e),je.setOriginalNode(n,e),je.setEmitFlags(n,t),n}(e,n,r),a=[i];H(a,e,!1),H(a,e,!0),function(e,t){var r=function(e){var t=function(e){var t=e.decorators,e=K(je.getFirstConstructorWithBody(e));return t||e?{decorators:t,parameters:e}:void 0}(e),r=W(e,e,t);if(!r)return;var n=g&&g[je.getOriginalNodeId(e)],t=m.getLocalName(e,!1,!0),r=y().createDecorateHelper(r,t),r=m.createAssignment(t,n?m.createAssignment(n,r):r);return je.setEmitFlags(r,1536),je.setSourceMapRange(r,je.moveRangePastDecorators(e)),r}(t);r&&e.push(je.setOriginalNode(m.createExpressionStatement(r),t))}(a,e),128&r&&(t=je.createTokenRange(je.skipTrivia(u.text,e.members.end),19),n=m.getInternalName(e),n=m.createPartiallyEmittedExpression(n),je.setTextRangeEnd(n,t.end),je.setEmitFlags(n,1536),n=m.createReturnStatement(n),je.setTextRangePos(n,t.pos),je.setEmitFlags(n,1920),a.push(n),je.insertStatementsAfterStandardPrologue(a,c.endLexicalEnvironment()),n=m.createImmediatelyInvokedArrowFunction(a),je.setEmitFlags(n,33554432),n=m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(m.getLocalName(e,!1,!1),void 0,void 0,n)])),je.setOriginalNode(n,e),je.setCommentRange(n,e),je.setSourceMapRange(n,je.moveRangePastDecorators(e)),je.startOnNewLine(n),a=[n]);8&r?we(a,e):(128&r||2&r)&&(32&r?a.push(m.createExportDefault(m.getLocalName(e,!1,!0))):16&r&&a.push(m.createExternalModuleExport(m.getLocalName(e,!1,!0))));1<a.length&&(a.push(m.createEndOfDeclarationMarker(e)),je.setEmitFlags(i,4194304|je.getEmitFlags(i)));return je.singleOrMany(a)}(e);case 221:return function(e){if(!J(e))return je.visitEachChild(e,A,c);var t=m.createClassExpression(void 0,void 0,e.name,void 0,je.visitNodes(e.heritageClauses,A,je.isHeritageClause),z(e));return je.setOriginalNode(t,e),je.setTextRange(t,e),t}(e);case 286:return 116!==(s=e).token?je.visitEachChild(s,A,c):void 0;case 223:return s=e,m.updateExpressionWithTypeArguments(s,je.visitNode(s.expression,A,je.isLeftHandSideExpression),void 0);case 165:return function(e){if(!le(e))return;var t=m.updateMethodDeclaration(e,void 0,je.visitNodes(e.modifiers,M,je.isModifier),e.asteriskToken,ue(e),void 0,void 0,je.visitParameterList(e.parameters,A,c),void 0,je.visitFunctionBody(e.body,A,c));t!==e&&(je.setCommentRange(t,e),je.setSourceMapRange(t,je.moveRangePastDecorators(e)));return t}(e);case 167:return function(e){if(!fe(e))return;var t=m.updateGetAccessorDeclaration(e,void 0,je.visitNodes(e.modifiers,M,je.isModifier),ue(e),je.visitParameterList(e.parameters,A,c),void 0,je.visitFunctionBody(e.body,A,c)||m.createBlock([]));t!==e&&(je.setCommentRange(t,e),je.setSourceMapRange(t,je.moveRangePastDecorators(e)));return t}(e);case 168:return function(e){if(!fe(e))return;var t=m.updateSetAccessorDeclaration(e,void 0,je.visitNodes(e.modifiers,M,je.isModifier),ue(e),je.visitParameterList(e.parameters,A,c),je.visitFunctionBody(e.body,A,c)||m.createBlock([]));t!==e&&(je.setCommentRange(t,e),je.setSourceMapRange(t,je.moveRangePastDecorators(e)));return t}(e);case 251:return function(e){if(!le(e))return m.createNotEmittedStatement(e);var t=m.updateFunctionDeclaration(e,void 0,je.visitNodes(e.modifiers,M,je.isModifier),e.asteriskToken,e.name,void 0,je.visitParameterList(e.parameters,A,c),void 0,je.visitFunctionBody(e.body,A,c)||m.createBlock([]));if(Ne(e)){var r=[t];return we(r,e),r}return t}(e);case 208:return le(o=e)?m.updateFunctionExpression(o,je.visitNodes(o.modifiers,M,je.isModifier),o.asteriskToken,o.name,void 0,je.visitParameterList(o.parameters,A,c),void 0,je.visitFunctionBody(o.body,A,c)||m.createBlock([])):m.createOmittedExpression();case 209:return a=e,m.updateArrowFunction(a,je.visitNodes(a.modifiers,M,je.isModifier),void 0,je.visitParameterList(a.parameters,A,c),void 0,a.equalsGreaterThanToken,je.visitFunctionBody(a.body,A,c));case 160:return function(e){if(je.parameterIsThisKeyword(e))return;var t=m.updateParameterDeclaration(e,void 0,void 0,e.dotDotDotToken,je.visitNode(e.name,A,je.isBindingName),void 0,void 0,je.visitNode(e.initializer,A,je.isExpression));t!==e&&(je.setCommentRange(t,e),je.setTextRange(t,je.moveRangePastModifiers(e)),je.setSourceMapRange(t,je.moveRangePastModifiers(e)),je.setEmitFlags(t.name,32));return t}(e);case 207:return function(e){var t=je.skipOuterExpressions(e.expression,-7);if(je.isAssertionExpression(t)){t=je.visitNode(e.expression,A,je.isExpression);return je.length(je.getLeadingCommentRangesOfNode(t,u))?m.updateParenthesizedExpression(e,t):m.createPartiallyEmittedExpression(t,e)}return je.visitEachChild(e,A,c)}(e);case 206:case 224:return o=e,a=je.visitNode(o.expression,A,je.isExpression),m.createPartiallyEmittedExpression(a,o);case 203:return i=e,m.updateCallExpression(i,je.visitNode(i.expression,A,je.isExpression),void 0,je.visitNodes(i.arguments,A,je.isExpression));case 204:return i=e,m.updateNewExpression(i,je.visitNode(i.expression,A,je.isExpression),void 0,je.visitNodes(i.arguments,A,je.isExpression));case 205:return n=e,m.updateTaggedTemplateExpression(n,je.visitNode(n.tag,A,je.isExpression),void 0,je.visitNode(n.template,A,je.isExpression));case 225:return r=e,n=je.visitNode(r.expression,A,je.isLeftHandSideExpression),m.createPartiallyEmittedExpression(n,r);case 255:return function(e){if(!function(e){return!je.isEnumConst(e)||S.preserveConstEnums||S.isolatedModules}(e))return m.createNotEmittedStatement(e);var t=[],r=2,n=be(t,e);n&&(E===je.ModuleKind.System&&d===u||(r|=512));var i=Me(e),a=Le(e),o=je.hasSyntacticModifier(e,1)?m.getExternalModuleOrNamespaceExportName(_,e,!1,!0):m.getLocalName(e,!1,!0),s=m.createLogicalOr(o,m.createAssignment(o,m.createObjectLiteralExpression()));ye(e)&&(o=m.getLocalName(e,!1,!0),s=m.createAssignment(o,s));s=m.createExpressionStatement(m.createCallExpression(m.createFunctionExpression(void 0,void 0,void 0,void 0,[m.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,function(e,t){var r=_;_=t;var n=[];h();t=je.map(e.members,me);return je.insertStatementsAfterStandardPrologue(n,b()),je.addRange(n,t),_=r,m.createBlock(je.setTextRange(m.createNodeArray(n),e.members),!0)}(e,a)),void 0,[s]));je.setOriginalNode(s,e),n&&(je.setSyntheticLeadingComments(s,void 0),je.setSyntheticTrailingComments(s,void 0));return je.setTextRange(s,e),je.addEmitFlags(s,r),t.push(s),t.push(m.createEndOfDeclarationMarker(e)),t}(e);case 232:return function(e){{if(!Ne(e))return je.visitEachChild(e,A,c);var t=je.getInitializedVariables(e.declarationList);if(0!==t.length)return je.setTextRange(m.createExpressionStatement(m.inlineExpressions(je.map(t,ge))),e)}}(e);case 249:return r=e,m.updateVariableDeclaration(r,je.visitNode(r.name,A,je.isBindingName),void 0,void 0,je.visitNode(r.initializer,A,je.isExpression));case 256:return xe(e);case 260:return ke(e);case 274:return t=e,m.updateJsxSelfClosingElement(t,je.visitNode(t.tagName,A,je.isJsxTagNameExpression),void 0,je.visitNode(t.attributes,A,je.isJsxAttributes));case 275:return t=e,m.updateJsxOpeningElement(t,je.visitNode(t.tagName,A,je.isJsxTagNameExpression),void 0,je.visitNode(t.attributes,A,je.isJsxAttributes));default:return je.visitEachChild(e,A,c)}var t,r,n,i,a,o,s}function R(e){var t=je.getStrictOptionValue(S,"alwaysStrict")&&!(je.isExternalModule(e)&&E>=je.ModuleKind.ES2015)&&!je.isJsonSourceFile(e);return m.updateSourceFile(e,je.visitLexicalEnvironment(e.statements,i,c,0,t))}function B(e){return void 0!==e.decorators&&0<e.decorators.length}function j(e){return!!(2048&e.transformFlags)}function J(e){return je.some(e.decorators)||je.some(e.typeParameters)||je.some(e.heritageClauses,j)||je.some(e.members,j)}function z(e){var t=[],r=je.getFirstConstructorWithBody(e),n=r&&je.filter(r.parameters,function(e){return je.isParameterPropertyDeclaration(e,r)});if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];je.isIdentifier(o.name)&&t.push(je.setOriginalNode(m.createPropertyDeclaration(void 0,void 0,o.name,void 0,void 0,void 0),o))}return je.addRange(t,je.visitNodes(e.members,I,je.isClassElement)),je.setTextRange(m.createNodeArray(t),e.members)}function U(t,e){return je.filter(t.members,e?function(e){return V(e,!0,t)}:function(e){return V(e,!1,t)})}function V(e,t,r){return je.nodeOrChildIsDecorated(e,r)&&t===je.hasSyntacticModifier(e,32)}function K(e){var t;if(e)for(var r=e.parameters,e=0<r.length&&je.parameterIsThisKeyword(r[0]),n=e?1:0,i=e?r.length-1:r.length,a=0;a<i;a++){var o=r[a+n];(t||o.decorators)&&((t=t||new Array(i))[a]=o.decorators)}return t}function q(e,t){switch(t.kind){case 167:case 168:return function(e,t){if(!t.body)return;var r=je.getAllAccessorDeclarations(e.members,t),n=r.firstAccessor,e=r.secondAccessor,r=r.setAccessor,e=n.decorators?n:e&&e.decorators?e:void 0;if(!e||t!==e)return;e=e.decorators,r=K(r);return e||r?{decorators:e,parameters:r}:void 0}(e,t);case 165:return function(e){if(!e.body)return;var t=e.decorators,e=K(e);return t||e?{decorators:t,parameters:e}:void 0}(t);case 163:return function(e){e=e.decorators;return e?{decorators:e}:void 0}(t);default:return}}function W(e,t,r){if(r){var n=[];return je.addRange(n,je.map(r.decorators,G)),je.addRange(n,je.flatMap(r.parameters,X)),function(e,t,r){S.emitDecoratorMetadata&&(Q(e)&&r.push(y().createMetadataHelper("design:type",$(e))),Z(e)&&r.push(y().createMetadataHelper("design:paramtypes",ee(e,t))),Y(e)&&r.push(y().createMetadataHelper("design:returntype",te(e))))}(e,t,n),n}}function H(e,t,r){je.addRange(e,je.map(function(e,t){for(var r,t=U(e,t),n=0,i=t;n<i.length;n++){var a=i[n],a=function(e,t){var r=q(e,t),n=W(t,e,r);if(!n)return;var i=function(e,t){return je.hasSyntacticModifier(t,32)?m.getDeclarationName(e):function(e){return m.createPropertyAccessExpression(m.getDeclarationName(e),"prototype")}(e)}(e,t),r=ce(t,!0),e=0<C?163===t.kind?m.createVoidZero():m.createNull():void 0,e=y().createDecorateHelper(n,i,r,e);return je.setTextRange(e,je.moveRangePastDecorators(t)),je.setEmitFlags(e,1536),e}(e,a);a&&(r?r.push(a):r=[a])}return r}(t,r),Pe))}function G(e){return je.visitNode(e.expression,A,je.isExpression)}function X(e,t){var r;if(e){r=[];for(var n=0,i=e;n<i.length;n++){var a=i[n],o=y().createParamHelper(G(a),t);je.setTextRange(o,a.expression),je.setEmitFlags(o,1536),r.push(o)}}return r}function Q(e){e=e.kind;return 165===e||167===e||168===e||163===e}function Y(e){return 165===e.kind}function Z(e){switch(e.kind){case 252:case 221:return void 0!==je.getFirstConstructorWithBody(e);case 165:case 167:case 168:return 1}}function $(e){switch(e.kind){case 163:case 160:return re(e.type);case 168:case 167:return re((t=e,(t=D.getAllAccessorDeclarations(t)).setAccessor&&je.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&je.getEffectiveReturnTypeNode(t.getAccessor)));case 252:case 221:case 165:return m.createIdentifier("Function");default:return m.createVoidZero()}var t}function ee(e,t){var e=je.isClassLike(e)?je.getFirstConstructorWithBody(e):je.isFunctionLike(e)&&je.nodeIsPresent(e.body)?e:void 0,r=[];if(e)for(var n=function(e,t){if(t&&167===e.kind){t=je.getAllAccessorDeclarations(t.members,e).setAccessor;if(t)return t.parameters}return e.parameters}(e,t),i=n.length,a=0;a<i;a++){var o=n[a];0===a&&je.isIdentifier(o.name)&&"this"===o.name.escapedText||(o.dotDotDotToken?r.push(re(je.getRestParameterElementType(o.type))):r.push($(o)))}return m.createArrayLiteralExpression(r)}function te(e){return je.isFunctionLike(e)&&e.type?re(e.type):je.isAsyncFunction(e)?m.createIdentifier("Promise"):m.createVoidZero()}function re(e){if(void 0===e)return m.createIdentifier("Object");switch(e.kind){case 113:case 150:case 141:return m.createVoidZero();case 186:return re(e.type);case 174:case 175:return m.createIdentifier("Function");case 178:case 179:return m.createIdentifier("Array");case 172:case 131:return m.createIdentifier("Boolean");case 147:return m.createIdentifier("String");case 145:return m.createIdentifier("Object");case 191:switch(e.literal.kind){case 10:case 14:return m.createIdentifier("String");case 214:case 8:return m.createIdentifier("Number");case 9:return se();case 109:case 94:return m.createIdentifier("Boolean");case 103:return m.createVoidZero();default:return je.Debug.failBadSyntaxKind(e.literal)}case 144:return m.createIdentifier("Number");case 155:return se();case 148:return C<2?oe():m.createIdentifier("Symbol");case 173:return function(e){var t=D.getTypeReferenceSerializationKind(e.typeName,o||d);switch(t){case je.TypeReferenceSerializationKind.Unknown:if(je.findAncestor(e,function(e){return e.parent&&je.isConditionalTypeNode(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)}))return m.createIdentifier("Object");var r=function e(t){if(78===t.kind){var r=ae(t);return ie(r,r)}if(78===t.left.kind)return ie(ae(t.left),ae(t));var n=e(t.left);var r=m.createTempVariable(x);return m.createLogicalAnd(m.createLogicalAnd(n.left,m.createStrictInequality(m.createAssignment(r,n.right),m.createVoidZero())),m.createPropertyAccessExpression(r,t.right))}(e.typeName),n=m.createTempVariable(x);return m.createConditionalExpression(m.createTypeCheck(m.createAssignment(n,r),"function"),void 0,n,void 0,m.createIdentifier("Object"));case je.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ae(e.typeName);case je.TypeReferenceSerializationKind.VoidNullableOrNeverType:return m.createVoidZero();case je.TypeReferenceSerializationKind.BigIntLikeType:return se();case je.TypeReferenceSerializationKind.BooleanType:return m.createIdentifier("Boolean");case je.TypeReferenceSerializationKind.NumberLikeType:return m.createIdentifier("Number");case je.TypeReferenceSerializationKind.StringLikeType:return m.createIdentifier("String");case je.TypeReferenceSerializationKind.ArrayLikeType:return m.createIdentifier("Array");case je.TypeReferenceSerializationKind.ESSymbolType:return C<2?oe():m.createIdentifier("Symbol");case je.TypeReferenceSerializationKind.TypeWithCallSignature:return m.createIdentifier("Function");case je.TypeReferenceSerializationKind.Promise:return m.createIdentifier("Promise");case je.TypeReferenceSerializationKind.ObjectType:return m.createIdentifier("Object");default:return je.Debug.assertNever(t)}}(e);case 183:case 182:return ne(e.types);case 184:return ne([e.trueType,e.falseType]);case 188:if(142===e.operator)return re(e.type);break;case 176:case 189:case 190:case 177:case 128:case 152:case 187:case 195:break;case 303:case 304:case 308:case 309:case 310:break;case 305:case 306:case 307:return re(e.type);default:return je.Debug.failBadSyntaxKind(e)}return m.createIdentifier("Object")}function ne(e){for(var t,r=0,n=e;r<n.length;r++){for(var i=n[r];186===i.kind;)i=i.type;if(141!==i.kind&&(T||(191!==i.kind||103!==i.literal.kind)&&150!==i.kind)){var a=re(i);if(je.isIdentifier(a)&&"Object"===a.escapedText)return a;if(t){if(!je.isIdentifier(t)||!je.isIdentifier(a)||t.escapedText!==a.escapedText)return m.createIdentifier("Object")}else t=a}}return t||m.createVoidZero()}function ie(e,t){return m.createLogicalAnd(m.createStrictInequality(m.createTypeOfExpression(e),m.createStringLiteral("undefined")),t)}function ae(e){switch(e.kind){case 78:var t=je.setParent(je.setTextRange(je.parseNodeFactory.cloneNode(e),e),e.parent);return t.original=void 0,je.setParent(t,je.getParseTreeNode(d)),t;case 157:return t=e,m.createPropertyAccessExpression(ae(t.left),t.right)}}function oe(){return m.createConditionalExpression(m.createTypeCheck(m.createIdentifier("Symbol"),"function"),void 0,m.createIdentifier("Symbol"),void 0,m.createIdentifier("Object"))}function se(){return C<99?m.createConditionalExpression(m.createTypeCheck(m.createIdentifier("BigInt"),"function"),void 0,m.createIdentifier("BigInt"),void 0,m.createIdentifier("Object")):m.createIdentifier("BigInt")}function ce(e,t){e=e.name;return je.isPrivateIdentifier(e)?m.createIdentifier(""):je.isComputedPropertyName(e)?t&&!je.isSimpleInlineableExpression(e.expression)?m.getGeneratedNameForNode(e):e.expression:je.isIdentifier(e)?m.createStringLiteral(je.idText(e)):m.cloneNode(e)}function ue(e){var t=e.name;if(je.isComputedPropertyName(t)&&(!je.hasStaticModifier(e)&&s||je.some(e.decorators))){var r=je.visitNode(t.expression,A,je.isExpression),e=je.skipPartiallyEmittedExpressions(r);if(!je.isSimpleInlineableExpression(e)){e=m.getGeneratedNameForNode(t);return x(e),m.updateComputedPropertyName(t,m.createAssignment(e,r))}}return je.visitNode(t,A,je.isPropertyName)}function le(e){return!je.nodeIsMissing(e.body)}function _e(e){if(!(8388608&e.flags)){var t=m.updatePropertyDeclaration(e,void 0,je.visitNodes(e.modifiers,A,je.isModifier),ue(e),void 0,void 0,je.visitNode(e.initializer,A));return t!==e&&(je.setCommentRange(t,e),je.setSourceMapRange(t,je.moveRangePastDecorators(e))),t}}function de(e){if(le(e))return m.updateConstructorDeclaration(e,void 0,void 0,je.visitParameterList(e.parameters,A,c),function(e,t){var r=t&&je.filter(t.parameters,function(e){return je.isParameterPropertyDeclaration(e,t)});if(!je.some(r))return je.visitFunctionBody(e,A,c);var n=[],i=0;v(),i=je.addPrologueDirectivesAndInitialSuperCall(m,t,n,A),je.addRange(n,je.map(r,pe)),je.addRange(n,je.visitNodes(e.statements,A,je.isStatement,i)),n=m.mergeLexicalEnvironment(n,b());n=m.createBlock(je.setTextRange(m.createNodeArray(n),e.statements),!0);return je.setTextRange(n,e),je.setOriginalNode(n,e),n}(e.body,e))}function pe(e){var t=e.name;if(je.isIdentifier(t)){var r=je.setParent(je.setTextRange(m.cloneNode(t),t),t.parent);je.setEmitFlags(r,1584);t=je.setParent(je.setTextRange(m.cloneNode(t),t),t.parent);return je.setEmitFlags(t,1536),je.startOnNewLine(je.removeAllComments(je.setTextRange(je.setOriginalNode(m.createExpressionStatement(m.createAssignment(je.setTextRange(m.createPropertyAccessExpression(m.createThis(),r),e.name),t)),e),je.moveRangePos(e,-1))))}}function fe(e){return!je.nodeIsMissing(e.body)||!je.hasSyntacticModifier(e,128)}function ge(e){var t=e.name;return je.isBindingPattern(t)?je.flattenDestructuringAssignment(e,A,c,0,!1,Ie):je.setTextRange(m.createAssignment(Oe(t),je.visitNode(e.initializer,A,je.isExpression)),e)}function me(e){var t,r=ce(e,!1),t=(n=e,void 0!==(t=D.getConstantValue(n))?"string"==typeof t?m.createStringLiteral(t):m.createNumericLiteral(t):(0==(8&f)&&(f|=8,c.enableSubstitution(78)),n.initializer?je.visitNode(n.initializer,A,je.isExpression):m.createVoidZero())),n=m.createAssignment(m.createElementAccessExpression(_,r),t),r=10===t.kind?n:m.createAssignment(m.createElementAccessExpression(_,n),r);return je.setTextRange(m.createExpressionStatement(je.setTextRange(r,e)),e)}function ye(e){return Ne(e)||Ae(e)&&E!==je.ModuleKind.ES2015&&E!==je.ModuleKind.ES2020&&E!==je.ModuleKind.ESNext&&E!==je.ModuleKind.System}function he(e){p=p||new je.Map;var t=ve(e);p.has(t)||p.set(t,e)}function ve(e){return je.Debug.assertNode(e.name,je.isIdentifier),e.name.escapedText}function be(e,t){var r=m.createVariableStatement(je.visitNodes(t.modifiers,M,je.isModifier),m.createVariableDeclarationList([m.createVariableDeclaration(m.getLocalName(t,!1,!0))],297===d.kind?0:1));if(je.setOriginalNode(r,t),he(t),function(e){if(p){var t=ve(e);return p.get(t)===e}return 1}(t))return 255===t.kind?je.setSourceMapRange(r.declarationList,t):je.setSourceMapRange(r,t),je.setCommentRange(r,t),je.addEmitFlags(r,4195328),e.push(r),!0;r=m.createMergeDeclarationMarker(r);return je.setEmitFlags(r,4195840),e.push(r),!1}function xe(e){if(s=e,(s=je.getParseTreeNode(s,je.isModuleDeclaration))&&!je.isInstantiatedModule(s,!!S.preserveConstEnums||!!S.isolatedModules))return m.createNotEmittedStatement(e);je.Debug.assertNode(e.name,je.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&f)&&(f|=2,c.enableSubstitution(78),c.enableSubstitution(289),c.enableEmitNotification(256));var t=[],r=2,n=be(t,e);n&&(E===je.ModuleKind.System&&d===u||(r|=512));var i=Me(e),a=Le(e),o=je.hasSyntacticModifier(e,1)?m.getExternalModuleOrNamespaceExportName(_,e,!1,!0):m.getLocalName(e,!1,!0),s=m.createLogicalOr(o,m.createAssignment(o,m.createObjectLiteralExpression()));ye(e)&&(o=m.getLocalName(e,!1,!0),s=m.createAssignment(o,s));s=m.createExpressionStatement(m.createCallExpression(m.createFunctionExpression(void 0,void 0,void 0,void 0,[m.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,function(e,t){var r=_,n=l,i=p;_=t,l=e,p=void 0;var a,o=[];h(),e.body&&(257===e.body.kind?(N(e.body,function(e){return je.addRange(o,je.visitNodes(e.statements,P,je.isStatement))}),s=e.body.statements,a=e.body):((t=xe(e.body))&&(je.isArray(t)?je.addRange(o,t):o.push(t)),t=function e(t){if(256===t.body.kind){var r=e(t.body);return r||t.body}}(e).body,s=je.moveRangePos(t.statements,-1)));je.insertStatementsAfterStandardPrologue(o,b()),_=r,l=n,p=i;var s=m.createBlock(je.setTextRange(m.createNodeArray(o),s),!0);je.setTextRange(s,a),e.body&&257===e.body.kind||je.setEmitFlags(s,1536|je.getEmitFlags(s));return s}(e,a)),void 0,[s]));return je.setOriginalNode(s,e),n&&(je.setSyntheticLeadingComments(s,void 0),je.setSyntheticTrailingComments(s,void 0)),je.setTextRange(s,e),je.addEmitFlags(s,r),t.push(s),t.push(m.createEndOfDeclarationMarker(e)),t}function De(e){if(!e.isTypeOnly){var t=D.isReferencedAliasDeclaration(e)?e.name:void 0,r=je.visitNode(e.namedBindings,Se,je.isNamedImportBindings);return t||r?m.updateImportClause(e,!1,t,r):void 0}}function Se(e){if(263===e.kind)return D.isReferencedAliasDeclaration(e)?e:void 0;var t=je.visitNodes(e.elements,Te,je.isImportSpecifier);return je.some(t)?m.updateNamedImports(e,t):void 0}function Te(e){return D.isReferencedAliasDeclaration(e)?e:void 0}function Ce(e){return je.isNamespaceExport(e)?(t=e,m.updateNamespaceExport(t,je.visitNode(t.name,A,je.isIdentifier))):(t=e,e=je.visitNodes(t.elements,Ee,je.isExportSpecifier),je.some(e)?m.updateNamedExports(t,e):void 0);var t}function Ee(e){return D.isValueAliasDeclaration(e)?e:void 0}function ke(e){if(je.isExternalModuleImportEqualsDeclaration(e)){var t=D.isReferencedAliasDeclaration(e);return t||1!==S.importsNotUsedAsValues?t?je.visitEachChild(e,A,c):void 0:je.setOriginalNode(je.setTextRange(m.createImportDeclaration(void 0,void 0,void 0,e.moduleReference.expression),e),e)}if(r=e,D.isReferencedAliasDeclaration(r)||!je.isExternalModule(u)&&D.isTopLevelValueImportEqualsWithEntityName(r)){var r,n=je.createExpressionFromEntityName(m,e.moduleReference);return je.setEmitFlags(n,3584),Fe(e)||!Ne(e)?je.setOriginalNode(je.setTextRange(m.createVariableStatement(je.visitNodes(e.modifiers,M,je.isModifier),m.createVariableDeclarationList([je.setOriginalNode(m.createVariableDeclaration(e.name,void 0,void 0,n),e)])),e),e):je.setOriginalNode((t=e.name,r=n,n=e,je.setTextRange(m.createExpressionStatement(m.createAssignment(m.getNamespaceMemberName(_,t,!1,!0),r)),n)),e)}}function Ne(e){return void 0!==l&&je.hasSyntacticModifier(e,1)}function Ae(e){return void 0===l&&je.hasSyntacticModifier(e,1)}function Fe(e){return Ae(e)&&!je.hasSyntacticModifier(e,512)}function Pe(e){return m.createExpressionStatement(e)}function we(e,t){var r=m.createAssignment(m.getExternalModuleOrNamespaceExportName(_,t,!1,!0),m.getLocalName(t));je.setSourceMapRange(r,je.createRange((t.name||t).pos,t.end));r=m.createExpressionStatement(r);je.setSourceMapRange(r,je.createRange(-1,t.end)),e.push(r)}function Ie(e,t,r){return je.setTextRange(m.createAssignment(Oe(e),t),r)}function Oe(e){return m.getNamespaceMemberName(_,e,!1,!0)}function Me(e){var t=m.getGeneratedNameForNode(e);return je.setSourceMapRange(t,e.name),t}function Le(e){return m.getGeneratedNameForNode(e)}function Re(e){if(f&a&&!je.isGeneratedIdentifier(e)&&!je.isLocalName(e)){var t=D.getReferencedExportContainer(e,!1);if(t&&297!==t.kind)if(2&a&&256===t.kind||8&a&&255===t.kind)return je.setTextRange(m.createPropertyAccessExpression(m.getGeneratedNameForNode(t),e),e)}}function Be(e){var t=function(e){if(S.isolatedModules)return;return je.isPropertyAccessExpression(e)||je.isElementAccessExpression(e)?D.getConstantValue(e):void 0}(e);if(void 0===t)return e;je.setConstantValue(e,t);t="string"==typeof t?m.createStringLiteral(t):m.createNumericLiteral(t);return S.removeComments||(e=je.getOriginalNode(e,je.isAccessExpression),e=je.isPropertyAccessExpression(e)?je.declarationNameToString(e.name):je.getTextOfNode(e.argumentExpression),je.addSyntheticTrailingComment(t,3," "+e+" ")),t}}}(ts=ts||{}),function(L){var e;(e={})[e.ClassAliases=1]="ClassAliases",(e={})[e.InstanceField=0]="InstanceField",L.transformClassFields=function(s){var o,c,u,l,_=s.factory,d=s.hoistVariableDeclaration,p=s.endLexicalEnvironment,f=s.resumeLexicalEnvironment,g=s.getEmitResolver(),e=s.getCompilerOptions(),n=L.getEmitScriptTarget(e),m=n<99,r=s.onSubstituteNode;s.onSubstituteNode=function(e,t){return t=r(e,t),1!==e?t:function(e){if(78===e.kind)return function(e){return function(e){if(1&o&&33554432&g.getNodeCheckFlags(e)){var t=g.getReferencedValueDeclaration(e);if(t){t=c[t.id];if(t){t=_.cloneNode(t);return L.setSourceMapRange(t,e),L.setCommentRange(t,e),t}}}return}(e)||e}(e);return e}(t)};var y,i=[];return L.chainBundle(s,function(e){var t=s.getCompilerOptions();if(e.isDeclarationFile||t.useDefineForClassFields&&99===t.target)return e;e=L.visitEachChild(e,h,s);return L.addEmitHelpers(e,s.readEmitHelpers()),e});function h(e){if(!(4194304&e.transformFlags))return e;switch(e.kind){case 221:case 252:return function(e){var t=u;u=void 0,m&&(i.push(y),y=void 0);e=(L.isClassDeclaration(e)?function(e){if(!L.forEach(e.members,E))return L.visitEachChild(e,h,s);var t=L.getEffectiveBaseTypeNode(e),r=!(!t||103===L.skipOuterExpressions(t.expression).kind),t=[_.updateClassDeclaration(e,void 0,e.modifiers,e.name,void 0,L.visitNodes(e.heritageClauses,h,L.isHeritageClause),k(e,r))];L.some(u)&&t.push(_.createExpressionStatement(_.inlineExpressions(u)));r=L.getProperties(e,!0,!0);L.some(r)&&A(t,r,_.getInternalName(e));return t}:function(e){if(!L.forEach(e.members,E))return L.visitEachChild(e,h,s);var t=L.isClassDeclaration(L.getOriginalNode(e)),r=L.getProperties(e,!0,!0),n=L.getEffectiveBaseTypeNode(e),i=!(!n||103===L.skipOuterExpressions(n.expression).kind),a=_.updateClassExpression(e,L.visitNodes(e.decorators,h,L.isDecorator),e.modifiers,e.name,void 0,L.visitNodes(e.heritageClauses,h,L.isHeritageClause),k(e,i));if(L.some(r)||L.some(u)){if(t)return L.Debug.assertIsDefined(l,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),l&&u&&L.some(u)&&l.push(_.createExpressionStatement(_.inlineExpressions(u))),l&&L.some(r)&&A(l,r,_.getInternalName(e)),a;n=[],i=16777216&g.getNodeCheckFlags(e),t=_.createTempVariable(d,!!i);return i&&(0==(1&o)&&(o|=1,s.enableSubstitution(78),c=[]),(i=_.cloneNode(t)).autoGenerateFlags&=-9,c[L.getOriginalNodeId(e)]=i),L.setEmitFlags(a,65536|L.getEmitFlags(a)),n.push(L.startOnNewLine(_.createAssignment(t,a))),L.addRange(n,L.map(u,L.startOnNewLine)),L.addRange(n,function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n],o=F(a,t);o&&(L.startOnNewLine(o),L.setSourceMapRange(o,L.moveRangePastModifiers(a)),L.setCommentRange(o,a),L.setOriginalNode(o,a),r.push(o))}return r}(r,t)),n.push(L.startOnNewLine(t)),_.inlineExpressions(n)}return a})(e);m&&(y=i.pop());return u=t,e}(e);case 163:return x(e);case 232:return function(e){var t=l;l=[];e=L.visitEachChild(e,h,s),e=L.some(l)?__spreadArrays([e],l):e;return l=t,e}(e);case 158:return b(e);case 201:return function(e){if(m&&L.isPrivateIdentifier(e.name)){var t=w(e.name);if(t)return L.setOriginalNode(D(t,e.expression),e)}return L.visitEachChild(e,h,s)}(e);case 214:return function(e){if(m&&L.isPrivateIdentifierPropertyAccessExpression(e.operand)){var t=45===e.operator?39:46===e.operator?40:void 0,r=void 0;if(t&&(r=w(e.operand.name))){var n=T(L.visitNode(e.operand.expression,h,L.isExpression)),i=n.readExpression,a=n.initializeExpression,n=_.createPrefixUnaryExpression(39,D(r,i));return L.setOriginalNode(C(r,a||i,_.createBinaryExpression(n,t,_.createNumericLiteral(1)),62),e)}}return L.visitEachChild(e,h,s)}(e);case 215:return S(e,!1);case 203:return function(e){if(m&&L.isPrivateIdentifierPropertyAccessExpression(e.expression)){var t=_.createCallBinding(e.expression,d,n),r=t.thisArg,t=t.target;return _.updateCallExpression(e,_.createPropertyAccessExpression(L.visitNode(t,h),"call"),void 0,__spreadArrays([L.visitNode(r,h,L.isExpression)],L.visitNodes(e.arguments,h,L.isExpression)))}return L.visitEachChild(e,h,s)}(e);case 216:return function(e){if(m){if(L.isDestructuringAssignment(e)){var t=u;u=void 0,e=_.updateBinaryExpression(e,L.visitNode(e.left,a),e.operatorToken,L.visitNode(e.right,h));var r=L.some(u)?_.inlineExpressions(L.compact(__spreadArrays(u,[e]))):e;return u=t,r}if(L.isAssignmentExpression(e)&&L.isPrivateIdentifierPropertyAccessExpression(e.left)){r=w(e.left.name);if(r)return L.setOriginalNode(C(r,e.left.expression,e.right,e.operatorToken.kind),e)}}return L.visitEachChild(e,h,s)}(e);case 79:return t=e,m?L.setOriginalNode(_.createIdentifier(""),t):t;case 233:return function(e){if(L.isPostfixUnaryExpression(e.expression))return _.updateExpressionStatement(e,S(e.expression,!0));return L.visitEachChild(e,h,s)}(e);case 237:return function(e){if(e.incrementor&&L.isPostfixUnaryExpression(e.incrementor))return _.updateForStatement(e,L.visitNode(e.initializer,h,L.isForInitializer),L.visitNode(e.condition,h,L.isExpression),S(e.incrementor,!0),L.visitNode(e.statement,h,L.isStatement));return L.visitEachChild(e,h,s)}(e);case 205:return function(e){if(m&&L.isPrivateIdentifierPropertyAccessExpression(e.tag)){var t=_.createCallBinding(e.tag,d,n),r=t.thisArg,t=t.target;return _.updateTaggedTemplateExpression(e,_.createCallExpression(_.createPropertyAccessExpression(L.visitNode(t,h),"bind"),void 0,[L.visitNode(r,h,L.isExpression)]),void 0,L.visitNode(e.template,h,L.isTemplateLiteral))}return L.visitEachChild(e,h,s)}(e)}var t;return L.visitEachChild(e,h,s)}function a(e){switch(e.kind){case 200:case 199:return t=e,L.isArrayLiteralExpression(t)?_.updateArrayLiteralExpression(t,L.visitNodes(t.elements,O,L.isExpression)):_.updateObjectLiteralExpression(t,L.visitNodes(t.properties,M,L.isObjectLiteralElementLike));default:return h(e)}var t}function v(e){switch(e.kind){case 166:return;case 167:case 168:case 165:return L.visitEachChild(e,v,s);case 163:return x(e);case 158:return b(e);case 229:return e;default:return h(e)}}function b(e){var t,r=L.visitEachChild(e,h,s);return L.some(u)&&((t=u).push(e.expression),u=[],r=_.updateComputedPropertyName(r,_.inlineExpressions(t))),r}function x(e){if(L.Debug.assert(!L.some(e.decorators)),!m&&L.isPrivateIdentifier(e.name))return _.updatePropertyDeclaration(e,void 0,L.visitNodes(e.modifiers,h,L.isModifier),e.name,void 0,void 0,void 0);e=function(e,t){if(L.isComputedPropertyName(e)){var r=L.visitNode(e.expression,h,L.isExpression),n=L.skipPartiallyEmittedExpressions(r),i=L.isSimpleInlineableExpression(n);if(L.isAssignmentExpression(n)&&L.isGeneratedIdentifier(n.left)||i||!t)return i||L.isIdentifier(n)?void 0:r;e=_.getGeneratedNameForNode(e);return d(e),_.createAssignment(e,r)}}(e.name,!!e.initializer||!!s.getCompilerOptions().useDefineForClassFields);e&&!L.isSimpleInlineableExpression(e)&&P().push(e)}function D(e,t){return t=L.visitNode(t,h,L.isExpression),0!==e.placement?L.Debug.fail("Unexpected private identifier placement"):s.getEmitHelperFactory().createClassPrivateFieldGetHelper(L.nodeIsSynthesized(t)?t:_.cloneNode(t),e.weakMapName)}function S(e,t){if(m&&L.isPrivateIdentifierPropertyAccessExpression(e.operand)){var r=45===e.operator?39:46===e.operator?40:void 0,n=void 0;if(r&&(n=w(e.operand.name))){var i=T(L.visitNode(e.operand.expression,h,L.isExpression)),a=i.readExpression,o=i.initializeExpression,i=_.createPrefixUnaryExpression(39,D(n,a)),t=t?void 0:_.createTempVariable(d);return L.setOriginalNode(_.inlineExpressions(L.compact([C(n,o||a,_.createBinaryExpression(t?_.createAssignment(t,i):i,r,_.createNumericLiteral(1)),62),t])),e)}}return L.visitEachChild(e,h,s)}function T(e){var t=L.nodeIsSynthesized(e)?e:_.cloneNode(e);if(L.isSimpleInlineableExpression(e))return{readExpression:t,initializeExpression:void 0};e=_.createTempVariable(d);return{readExpression:e,initializeExpression:_.createAssignment(e,t)}}function C(e,t,r,n){return 0!==e.placement?L.Debug.fail("Unexpected private identifier placement"):function(e,t,r,n){{if(t=L.visitNode(t,h,L.isExpression),r=L.visitNode(r,h,L.isExpression),L.isCompoundAssignment(n)){var i=T(t),a=i.readExpression,i=i.initializeExpression;return s.getEmitHelperFactory().createClassPrivateFieldSetHelper(i||a,e.weakMapName,_.createBinaryExpression(s.getEmitHelperFactory().createClassPrivateFieldGetHelper(a,e.weakMapName),L.getNonAssignmentOperatorForCompoundAssignment(n),r))}return s.getEmitHelperFactory().createClassPrivateFieldSetHelper(t,e.weakMapName,r)}}(e,t,r,n)}function E(e){return L.isPropertyDeclaration(e)||m&&e.name&&L.isPrivateIdentifier(e.name)}function k(e,t){if(m)for(var r=0,n=e.members;r<n.length;r++){var i=n[r];L.isPrivateIdentifierPropertyDeclaration(i)&&(a=i.name,i=i=void 0,i=L.getTextOfPropertyName(a),i=_.createUniqueName("_"+i.substring(1),24),d(i),(y=y||new L.Map).set(a.escapedText,{placement:0,weakMapName:i}),P().push(_.createAssignment(i,_.createNewExpression(_.createIdentifier("WeakMap"),void 0,[]))))}var a,o=[],t=function(e,t){var r=L.visitNode(L.getFirstConstructorWithBody(e),h,L.isConstructorDeclaration),n=e.members.filter(N);if(!L.some(n))return r;n=L.visitParameterList(r?r.parameters:void 0,h,s),t=function(e,t,r){var n=s.getCompilerOptions().useDefineForClassFields,i=L.getProperties(e,!1,!1);n||(i=L.filter(i,function(e){return!!e.initializer||L.isPrivateIdentifier(e.name)}));if(!t&&!L.some(i))return L.visitFunctionBody(void 0,h,s);f();var a=0,o=[];!t&&r&&o.push(_.createExpressionStatement(_.createCallExpression(_.createSuper(),void 0,[_.createSpreadElement(_.createIdentifier("arguments"))])));t&&(a=L.addPrologueDirectivesAndInitialSuperCall(_,t,o,h));null!=t&&t.body&&(-1===(r=L.findIndex(t.body.statements,function(e){return!L.isParameterPropertyDeclaration(L.getOriginalNode(e),t)},a))&&(r=t.body.statements.length),a<r&&(n||L.addRange(o,L.visitNodes(t.body.statements,h,L.isStatement,a,r-a)),a=r));A(o,i,_.createThis()),t&&L.addRange(o,L.visitNodes(t.body.statements,h,L.isStatement,a));return o=_.mergeLexicalEnvironment(o,p()),L.setTextRange(_.createBlock(L.setTextRange(_.createNodeArray(o),t?t.body.statements:e.members),!0),t?t.body:void 0)}(e,r,t);return t?L.startOnNewLine(L.setOriginalNode(L.setTextRange(_.createConstructorDeclaration(void 0,void 0,null!=n?n:[],t),r||e),r)):void 0}(e,t);return t&&o.push(t),L.addRange(o,L.visitNodes(e.members,v,L.isClassElement)),L.setTextRange(_.createNodeArray(o),e.members)}function N(e){return!(!L.isPropertyDeclaration(e)||L.hasStaticModifier(e))&&(s.getCompilerOptions().useDefineForClassFields?n<99:L.isInitializedProperty(e)||m&&L.isPrivateIdentifierPropertyDeclaration(e))}function A(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=F(a,r);o&&(o=_.createExpressionStatement(o),L.setSourceMapRange(o,L.moveRangePastModifiers(a)),L.setCommentRange(o,a),L.setOriginalNode(o,a),e.push(o))}}function F(e,t){var r,n=!s.getCompilerOptions().useDefineForClassFields,i=L.isComputedPropertyName(e.name)&&!L.isSimpleInlineableExpression(e.name.expression)?_.updateComputedPropertyName(e.name,_.getGeneratedNameForNode(e.name)):e.name;if(m&&L.isPrivateIdentifier(i)){var a=w(i);if(a){if(0===a.placement)return r=t,o=L.visitNode(e.initializer,h,L.isExpression),a=a.weakMapName,L.factory.createCallExpression(L.factory.createPropertyAccessExpression(a,"set"),void 0,[r,o||L.factory.createVoidZero()])}else L.Debug.fail("Undeclared private name for property declaration.")}if((!L.isPrivateIdentifier(i)||e.initializer)&&(!L.isPrivateIdentifier(i)||e.initializer)){var o=L.getOriginalNode(e),o=e.initializer||n?null!==(e=L.visitNode(e.initializer,h,L.isExpression))&&void 0!==e?e:_.createVoidZero():L.isParameterPropertyDeclaration(o,o.parent)&&L.isIdentifier(i)?i:_.createVoidZero();if(n||L.isPrivateIdentifier(i)){n=L.createMemberAccessForPropertyName(_,t,i,i);return _.createAssignment(n,o)}i=L.isComputedPropertyName(i)?i.expression:L.isIdentifier(i)?_.createStringLiteral(L.unescapeLeadingUnderscores(i.escapedText)):i,o=_.createPropertyDescriptor({value:o,configurable:!0,writable:!0,enumerable:!0});return _.createObjectDefinePropertyCall(t,i,o)}}function P(){return u=u||[]}function w(e){if(y&&(r=y.get(e.escapedText)))return r;for(var t=i.length-1;0<=t;--t){var r,n=i[t];if(n)if(r=n.get(e.escapedText))return r}}function I(e){var t=_.getGeneratedNameForNode(e),r=w(e.name);if(!r)return L.visitEachChild(e,h,s);var n=e.expression;return!L.isThisProperty(e)&&!L.isSuperProperty(e)&&L.isSimpleCopiableExpression(e.expression)||(n=_.createTempVariable(d,!0),P().push(_.createBinaryExpression(n,62,e.expression))),_.createPropertyAccessExpression(_.createParenthesizedExpression(_.createObjectLiteralExpression([_.createSetAccessorDeclaration(void 0,void 0,"value",[_.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0)],_.createBlock([_.createExpressionStatement(C(r,n,t,62))]))])),"value")}function O(e){var t=L.getTargetOfBindingOrAssignmentElement(e);if(t&&L.isPrivateIdentifierPropertyAccessExpression(t)){t=I(t);return L.isAssignmentExpression(e)?_.updateBinaryExpression(e,t,e.operatorToken,L.visitNode(e.right,h,L.isExpression)):L.isSpreadElement(e)?_.updateSpreadElement(e,t):t}return L.visitNode(e,a)}function M(e){if(L.isPropertyAssignment(e)){var t=L.getTargetOfBindingOrAssignmentElement(e);if(t&&L.isPrivateIdentifierPropertyAccessExpression(t)){var r=L.getInitializerOfBindingOrAssignmentElement(e),t=I(t);return _.updatePropertyAssignment(e,L.visitNode(e.name,h),r?_.createAssignment(t,L.visitNode(r,h)):t)}return _.updatePropertyAssignment(e,L.visitNode(e.name,h),L.visitNode(e.initializer,a))}return L.visitNode(e,h)}}}(ts=ts||{}),function(J){var e;function z(n,e,t,r){var i=0!=(4096&e.getNodeCheckFlags(t)),a=[];return r.forEach(function(e,t){var r=J.unescapeLeadingUnderscores(t),t=[];t.push(n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[],void 0,void 0,J.setEmitFlags(n.createPropertyAccessExpression(J.setEmitFlags(n.createSuper(),4),r),4)))),i&&t.push(n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,n.createAssignment(J.setEmitFlags(n.createPropertyAccessExpression(J.setEmitFlags(n.createSuper(),4),r),4),n.createIdentifier("v"))))),a.push(n.createPropertyAssignment(r,n.createObjectLiteralExpression(t)))}),n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super",48),void 0,void 0,n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[n.createNull(),n.createObjectLiteralExpression(a,!0)]))],2))}(e={})[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",(e={})[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis",J.transformES2017=function(d){var p,f,g,m,y=d.factory,h=d.getEmitHelperFactory,v=d.resumeLexicalEnvironment,b=d.endLexicalEnvironment,i=d.hoistVariableDeclaration,x=d.getEmitResolver(),t=d.getCompilerOptions(),D=J.getEmitScriptTarget(t),a=0,S=[],o=0,s=d.onEmitNode,r=d.onSubstituteNode;return d.onEmitNode=function(e,t,r){if(1&p&&function(e){e=e.kind;return 252===e||166===e||165===e||167===e||168===e}(t)){var n=6144&x.getNodeCheckFlags(t);if(n!==a){var i=a;return a=n,s(e,t,r),void(a=i)}}else if(p&&S[J.getNodeId(t)]){i=a;return a=0,s(e,t,r),void(a=i)}s(e,t,r)},d.onSubstituteNode=function(e,t){if(t=r(e,t),1===e&&a)return function(e){switch(e.kind){case 201:return B(e);case 202:return j(e);case 203:return function(e){var t=e.expression;if(J.isSuperProperty(t)){t=(J.isPropertyAccessExpression(t)?B:j)(t);return y.createCallExpression(y.createPropertyAccessExpression(t,"call"),void 0,__spreadArrays([y.createThis()],e.arguments))}return e}(e)}return e}(t);return t},J.chainBundle(d,function(e){if(e.isDeclarationFile)return e;c(1,!1),c(2,!J.isEffectiveStrictModeSourceFile(e,t));e=J.visitEachChild(e,C,d);return J.addEmitHelpers(e,d.readEmitHelpers()),e});function c(e,t){o=t?o|e:o&~e}function n(e){return 0!=(o&e)}function T(){return n(2)}function u(e,t,r){var n=e&~o;if(n){c(n,!0);e=t(r);return c(n,!1),e}return t(r)}function l(e){return J.visitEachChild(e,C,d)}function C(e){if(0==(64&e.transformFlags))return e;switch(e.kind){case 129:return;case 213:return function(e){if(!n(1))return J.visitEachChild(e,C,d);return J.setOriginalNode(J.setTextRange(y.createYieldExpression(void 0,J.visitNode(e.expression,C,J.isExpression)),e),e)}(e);case 165:return u(3,E,e);case 251:return u(3,k,e);case 208:return u(3,N,e);case 209:return u(1,A,e);case 201:return g&&J.isPropertyAccessExpression(e)&&105===e.expression.kind&&g.add(e.name.escapedText),J.visitEachChild(e,C,d);case 202:return g&&105===e.expression.kind&&(m=!0),J.visitEachChild(e,C,d);case 167:case 168:case 166:case 252:case 221:return u(3,l,e);default:return J.visitEachChild(e,C,d)}}function _(e){if(J.isNodeWithPossibleHoistedDeclaration(e))switch(e.kind){case 232:return function(e){if(P(e.declarationList)){var t=w(e.declarationList,!1);return t?y.createExpressionStatement(t):void 0}return J.visitEachChild(e,C,d)}(e);case 237:return n=(r=e).initializer,y.updateForStatement(r,P(n)?w(n,!1):J.visitNode(r.initializer,C,J.isForInitializer),J.visitNode(r.condition,C,J.isExpression),J.visitNode(r.incrementor,C,J.isExpression),J.visitNode(r.statement,_,J.isStatement,y.liftToBlock));case 238:return t=e,y.updateForInStatement(t,P(t.initializer)?w(t.initializer,!0):J.visitNode(t.initializer,C,J.isForInitializer),J.visitNode(t.expression,C,J.isExpression),J.visitNode(t.statement,_,J.isStatement,y.liftToBlock));case 239:return t=e,y.updateForOfStatement(t,J.visitNode(t.awaitModifier,C,J.isToken),P(t.initializer)?w(t.initializer,!0):J.visitNode(t.initializer,C,J.isForInitializer),J.visitNode(t.expression,C,J.isExpression),J.visitNode(t.statement,_,J.isStatement,y.liftToBlock));case 287:return function(e){var r,t=new J.Set;{if(F(e.variableDeclaration,t),t.forEach(function(e,t){f.has(t)&&(r=r||new J.Set(f)).delete(t)}),r){var n=f;f=r;t=J.visitEachChild(e,_,d);return f=n,t}return J.visitEachChild(e,_,d)}}(e);case 230:case 244:case 258:case 284:case 285:case 247:case 235:case 236:case 234:case 243:case 245:return J.visitEachChild(e,_,d);default:return J.Debug.assertNever(e,"Unhandled node.")}var t,r,n;return C(e)}function E(e){return y.updateMethodDeclaration(e,void 0,J.visitNodes(e.modifiers,C,J.isModifier),e.asteriskToken,e.name,void 0,void 0,J.visitParameterList(e.parameters,C,d),void 0,2&J.getFunctionFlags(e)?L(e):J.visitFunctionBody(e.body,C,d))}function k(e){return y.updateFunctionDeclaration(e,void 0,J.visitNodes(e.modifiers,C,J.isModifier),e.asteriskToken,e.name,void 0,J.visitParameterList(e.parameters,C,d),void 0,2&J.getFunctionFlags(e)?L(e):J.visitFunctionBody(e.body,C,d))}function N(e){return y.updateFunctionExpression(e,J.visitNodes(e.modifiers,C,J.isModifier),e.asteriskToken,e.name,void 0,J.visitParameterList(e.parameters,C,d),void 0,2&J.getFunctionFlags(e)?L(e):J.visitFunctionBody(e.body,C,d))}function A(e){return y.updateArrowFunction(e,J.visitNodes(e.modifiers,C,J.isModifier),void 0,J.visitParameterList(e.parameters,C,d),void 0,e.equalsGreaterThanToken,2&J.getFunctionFlags(e)?L(e):J.visitFunctionBody(e.body,C,d))}function F(e,t){e=e.name;if(J.isIdentifier(e))t.add(e.escapedText);else for(var r=0,n=e.elements;r<n.length;r++){var i=n[r];J.isOmittedExpression(i)||F(i,t)}}function P(e){return e&&J.isVariableDeclarationList(e)&&!(3&e.flags)&&e.declarations.some(M)}function w(e,t){r=e,J.forEach(r.declarations,I);var r=J.getInitializedVariables(e);return 0===r.length?t?J.visitNode(y.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,J.isExpression):void 0:y.inlineExpressions(J.map(r,O))}function I(e){e=e.name;if(J.isIdentifier(e))i(e);else for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];J.isOmittedExpression(n)||I(n)}}function O(e){e=J.setSourceMapRange(y.createAssignment(y.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return J.visitNode(e,C,J.isExpression)}function M(e){e=e.name;if(J.isIdentifier(e))return f.has(e.escapedText);for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];if(!J.isOmittedExpression(n)&&M(n))return!0}return!1}function L(e){v();var t=J.getOriginalNode(e,J.isFunctionLike).type,r=D<2?function(e){var t=e&&J.getEntityNameFromTypeNode(e);if(t&&J.isEntityName(t)){e=x.getTypeReferenceSerializationKind(t);if(e===J.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||e===J.TypeReferenceSerializationKind.Unknown)return t}return}(t):void 0,n=209===e.kind,i=0!=(8192&x.getNodeCheckFlags(e)),a=f;f=new J.Set;for(var o=0,s=e.parameters;o<s.length;o++)F(s[o],f);var c,u,l,_=g,t=m;return n||(g=new J.Set,m=!1),l=n?(u=h().createAwaiterHelper(T(),i,r,R(e.body)),c=b(),J.some(c)?(l=y.converters.convertToFunctionBlock(u),y.updateBlock(l,J.setTextRange(y.createNodeArray(J.concatenate(c,l.statements)),l.statements))):u):(c=[],u=y.copyPrologue(e.body.statements,c,!1,C),c.push(y.createReturnStatement(h().createAwaiterHelper(T(),i,r,R(e.body,u)))),J.insertStatementsAfterStandardPrologue(c,b()),(r=2<=D&&6144&x.getNodeCheckFlags(e))&&(0==(1&p)&&(p|=1,d.enableSubstitution(203),d.enableSubstitution(201),d.enableSubstitution(202),d.enableEmitNotification(252),d.enableEmitNotification(165),d.enableEmitNotification(167),d.enableEmitNotification(168),d.enableEmitNotification(166),d.enableEmitNotification(232)),g.size&&(u=z(y,x,e,g),S[J.getNodeId(u)]=!0,J.insertStatementsAfterStandardPrologue(c,[u]))),l=y.createBlock(c,!0),J.setTextRange(l,e.body),r&&m&&(4096&x.getNodeCheckFlags(e)?J.addEmitHelper(l,J.advancedAsyncSuperHelper):2048&x.getNodeCheckFlags(e)&&J.addEmitHelper(l,J.asyncSuperHelper)),l),f=a,n||(g=_,m=t),l}function R(e,t){return J.isBlock(e)?y.updateBlock(e,J.visitNodes(e.statements,_,J.isStatement,t)):y.converters.convertToFunctionBlock(J.visitNode(e,_,J.isConciseBody))}function B(e){return 105===e.expression.kind?J.setTextRange(y.createPropertyAccessExpression(y.createUniqueName("_super",48),e.name),e):e}function j(e){return 105===e.expression.kind?(t=e.argumentExpression,r=e,4096&a?J.setTextRange(y.createPropertyAccessExpression(y.createCallExpression(y.createUniqueName("_superIndex",48),void 0,[t]),"value"),r):J.setTextRange(y.createCallExpression(y.createUniqueName("_superIndex",48),void 0,[t]),r)):e;var t,r}},J.createSuperAccessVariableStatement=z}(ts=ts||{}),function(H){var e;(e={})[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",(e={})[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes",H.transformES2018=function(s){var p=s.factory,f=s.getEmitHelperFactory,c=s.resumeLexicalEnvironment,u=s.endLexicalEnvironment,g=s.hoistVariableDeclaration,l=s.getEmitResolver(),i=s.getCompilerOptions(),_=H.getEmitScriptTarget(i),a=s.onEmitNode;s.onEmitNode=function(e,t,r){if(1&d&&function(e){e=e.kind;return 252===e||166===e||165===e||167===e||168===e}(t)){var n=6144&l.getNodeCheckFlags(t);if(n!==x){var i=x;return x=n,a(e,t,r),void(x=i)}}else if(d&&S[H.getNodeId(t)]){i=x;return x=0,a(e,t,r),void(x=i)}a(e,t,r)};var d,o,m,y,h,v,r=s.onSubstituteNode,b=!(s.onSubstituteNode=function(e,t){if(t=r(e,t),1===e&&x)return function(e){switch(e.kind){case 201:return q(e);case 202:return W(e);case 203:return function(e){var t=e.expression;if(H.isSuperProperty(t)){t=(H.isPropertyAccessExpression(t)?q:W)(t);return p.createCallExpression(p.createPropertyAccessExpression(t,"call"),void 0,__spreadArrays([p.createThis()],e.arguments))}return e}(e)}return e}(t);return t}),x=0,D=0,S=[];return H.chainBundle(s,function(e){if(e.isDeclarationFile)return e;e=function(e){var t=T(2,H.isEffectiveStrictModeSourceFile(e,i)?0:1);b=!1;var r=H.visitEachChild(e,k,s),n=H.concatenate(r.statements,y&&[p.createVariableStatement(void 0,p.createVariableDeclarationList(y))]),e=p.updateSourceFile(r,H.setTextRange(p.createNodeArray(n),e.statements));return C(t),e}(m=e);return H.addEmitHelpers(e,s.readEmitHelpers()),y=m=void 0,e});function T(e,t){var r=D;return D=3&(D&~e|t),r}function C(e){D=e}function E(e){y=H.append(y,p.createVariableDeclaration(e))}function k(e){return t(e,!1)}function N(e){return t(e,!0)}function n(e){if(129!==e.kind)return e}function A(e,t,r,n){if(D===(D&~r|n))return e(t);n=T(r,n),t=e(t);return C(n),t}function F(e){return H.visitEachChild(e,k,s)}function t(e,t){if(0==(32&e.transformFlags))return e;switch(e.kind){case 213:return function(e){if(2&o&&1&o)return H.setOriginalNode(H.setTextRange(p.createYieldExpression(void 0,f().createAwaitHelper(H.visitNode(e.expression,k,H.isExpression))),e),e);return H.visitEachChild(e,k,s)}(e);case 219:return function(e){if(2&o&&1&o){if(e.asteriskToken){var t=H.visitNode(H.Debug.assertDefined(e.expression),k,H.isExpression);return H.setOriginalNode(H.setTextRange(p.createYieldExpression(void 0,f().createAwaitHelper(p.updateYieldExpression(e,e.asteriskToken,H.setTextRange(f().createAsyncDelegatorHelper(H.setTextRange(f().createAsyncValuesHelper(t),t)),t)))),e),e)}return H.setOriginalNode(H.setTextRange(p.createYieldExpression(void 0,O(e.expression?H.visitNode(e.expression,k,H.isExpression):p.createVoidZero())),e),e)}return H.visitEachChild(e,k,s)}(e);case 242:return function(e){if(2&o&&1&o)return p.updateReturnStatement(e,O(e.expression?H.visitNode(e.expression,k,H.isExpression):p.createVoidZero()));return H.visitEachChild(e,k,s)}(e);case 245:return function(e){if(2&o){var t=H.unwrapInnermostStatementOfLabel(e);return 239===t.kind&&t.awaitModifier?I(t,e):p.restoreEnclosingLabel(H.visitNode(t,k,H.isStatement,p.liftToBlock),e)}return H.visitEachChild(e,k,s)}(e);case 200:return function(e){if(16384&e.transformFlags){var t=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a,o=i[n];290===o.kind?(t&&(r.push(p.createObjectLiteralExpression(t)),t=void 0),a=o.expression,r.push(H.visitNode(a,k,H.isExpression))):t=H.append(t,288===o.kind?p.createPropertyAssignment(o.name,H.visitNode(o.initializer,k,H.isExpression)):H.visitNode(o,k,H.isObjectLiteralElementLike))}t&&r.push(p.createObjectLiteralExpression(t));return r}(e.properties);t.length&&200!==t[0].kind&&t.unshift(p.createObjectLiteralExpression());var r=t[0];if(1<t.length){for(var n=1;n<t.length;n++)r=f().createAssignHelper([r,t[n]]);return r}return f().createAssignHelper(t)}return H.visitEachChild(e,k,s)}(e);case 216:return function(e,t){if(H.isDestructuringAssignment(e)&&16384&e.left.transformFlags)return H.flattenDestructuringAssignment(e,k,s,1,!t);return 27!==e.operatorToken.kind?H.visitEachChild(e,k,s):p.updateBinaryExpression(e,H.visitNode(e.left,N,H.isExpression),e.operatorToken,H.visitNode(e.right,t?N:k,H.isExpression))}(e,t);case 337:return function(e,t){if(t)return H.visitEachChild(e,N,s);for(var r,n=0;n<e.elements.length;n++){var i=e.elements[n],a=H.visitNode(i,n<e.elements.length-1?N:k,H.isExpression);!r&&a===i||(r=r||e.elements.slice(0,n)).push(a)}t=r?H.setTextRange(p.createNodeArray(r),e.elements):e.elements;return p.updateCommaListExpression(e,t)}(e,t);case 287:return function(e){if(e.variableDeclaration&&H.isBindingPattern(e.variableDeclaration.name)&&16384&e.variableDeclaration.name.transformFlags){var t=p.getGeneratedNameForNode(e.variableDeclaration.name),r=p.updateVariableDeclaration(e.variableDeclaration,e.variableDeclaration.name,void 0,void 0,t),n=H.flattenDestructuringBinding(r,k,s,1),r=H.visitNode(e.block,k,H.isBlock);return H.some(n)&&(r=p.updateBlock(r,__spreadArrays([p.createVariableStatement(void 0,n)],r.statements))),p.updateCatchClause(e,p.updateVariableDeclaration(e.variableDeclaration,t,void 0,void 0,void 0),r)}return H.visitEachChild(e,k,s)}(e);case 232:return function(e){if(H.hasSyntacticModifier(e,1)){var t=b;b=!0;var r=H.visitEachChild(e,k,s);return b=t,r}return H.visitEachChild(e,k,s)}(e);case 249:return function(e){if(b){var t=b,r=P(e,!(b=!1));return b=t,r}return P(e,!1)}(e);case 235:case 236:case 238:return A(F,e,0,2);case 239:return I(e,void 0);case 237:return A(w,e,0,2);case 212:return i=e,H.visitEachChild(i,N,s);case 166:return A(M,e,2,1);case 165:return A(B,e,2,1);case 167:return A(L,e,2,1);case 168:return A(R,e,2,1);case 251:return A(j,e,2,1);case 208:return A(z,e,2,1);case 209:return A(J,e,2,0);case 160:return function(e){if(16384&e.transformFlags)return p.updateParameterDeclaration(e,void 0,void 0,e.dotDotDotToken,p.getGeneratedNameForNode(e),void 0,void 0,H.visitNode(e.initializer,k,H.isExpression));return H.visitEachChild(e,k,s)}(e);case 233:return n=e,H.visitEachChild(n,N,s);case 207:return n=e,r=t,H.visitEachChild(n,r?N:k,s);case 205:return r=e,H.processTaggedTemplateExpression(s,r,k,m,E,H.ProcessLevel.LiftRestriction);case 201:return h&&H.isPropertyAccessExpression(e)&&105===e.expression.kind&&h.add(e.name.escapedText),H.visitEachChild(e,k,s);case 202:return h&&105===e.expression.kind&&(v=!0),H.visitEachChild(e,k,s);case 252:case 221:return A(F,e,2,1);default:return H.visitEachChild(e,k,s)}var r,n,i}function P(e,t){return H.isBindingPattern(e.name)&&16384&e.name.transformFlags?H.flattenDestructuringBinding(e,k,s,1,void 0,t):H.visitEachChild(e,k,s)}function w(e){return p.updateForStatement(e,H.visitNode(e.initializer,N,H.isForInitializer),H.visitNode(e.condition,k,H.isExpression),H.visitNode(e.incrementor,N,H.isExpression),H.visitNode(e.statement,k,H.isStatement))}function I(e,t){var r=T(0,2);16384&e.initializer.transformFlags&&(e=function(e){var t=H.skipParentheses(e.initializer);if(H.isVariableDeclarationList(t)||H.isAssignmentPattern(t)){var r=void 0,n=void 0,i=p.createTempVariable(void 0),t=[H.createForOfBindingStatement(p,t,i)];return H.isBlock(e.statement)?(H.addRange(t,e.statement.statements),r=e.statement,n=e.statement.statements):e.statement&&(H.append(t,e.statement),r=e.statement,n=e.statement),p.updateForOfStatement(e,e.awaitModifier,H.setTextRange(p.createVariableDeclarationList([H.setTextRange(p.createVariableDeclaration(i),e.initializer)],1),e.initializer),e.expression,H.setTextRange(p.createBlock(H.setTextRange(p.createNodeArray(t),n),!0),r))}return e}(e));t=e.awaitModifier?function(e,t,r){var n=H.visitNode(e.expression,k,H.isExpression),i=H.isIdentifier(n)?p.getGeneratedNameForNode(n):p.createTempVariable(void 0),a=H.isIdentifier(n)?p.getGeneratedNameForNode(i):p.createTempVariable(void 0),o=p.createUniqueName("e"),s=p.getGeneratedNameForNode(o),c=p.createTempVariable(void 0),u=H.setTextRange(f().createAsyncValuesHelper(n),e.expression),l=p.createCallExpression(p.createPropertyAccessExpression(i,"next"),void 0,[]),_=p.createPropertyAccessExpression(a,"done"),d=p.createPropertyAccessExpression(a,"value"),n=p.createFunctionCallCall(c,i,[]);g(o),g(c);u=2&r?p.inlineExpressions([p.createAssignment(o,p.createVoidZero()),u]):u,e=H.setEmitFlags(H.setTextRange(p.createForStatement(H.setEmitFlags(H.setTextRange(p.createVariableDeclarationList([H.setTextRange(p.createVariableDeclaration(i,void 0,void 0,u),e.expression),p.createVariableDeclaration(a)]),e.expression),2097152),p.createComma(p.createAssignment(a,O(l)),p.createLogicalNot(_)),void 0,function(e,t){var r,n,t=H.createForOfBindingStatement(p,e.initializer,t),t=[H.visitNode(t,k,H.isStatement)],e=H.visitNode(e.statement,k,H.isStatement);H.isBlock(e)?(H.addRange(t,e.statements),n=(r=e).statements):t.push(e);return H.setEmitFlags(H.setTextRange(p.createBlock(H.setTextRange(p.createNodeArray(t),n),!0),r),432)}(e,d)),e),256);return p.createTryStatement(p.createBlock([p.restoreEnclosingLabel(e,t)]),p.createCatchClause(p.createVariableDeclaration(s),H.setEmitFlags(p.createBlock([p.createExpressionStatement(p.createAssignment(o,p.createObjectLiteralExpression([p.createPropertyAssignment("error",s)])))]),1)),p.createBlock([p.createTryStatement(p.createBlock([H.setEmitFlags(p.createIfStatement(p.createLogicalAnd(p.createLogicalAnd(a,p.createLogicalNot(_)),p.createAssignment(c,p.createPropertyAccessExpression(i,"return"))),p.createExpressionStatement(O(n))),1)]),void 0,H.setEmitFlags(p.createBlock([H.setEmitFlags(p.createIfStatement(o,p.createThrowStatement(p.createPropertyAccessExpression(o,"error"))),1)]),1))]))}(e,t,r):p.restoreEnclosingLabel(H.visitEachChild(e,k,s),t);return C(r),t}function O(e){return 1&o?p.createYieldExpression(void 0,f().createAwaitHelper(e)):p.createAwaitExpression(e)}function M(e){var t=o;o=0;e=p.updateConstructorDeclaration(e,void 0,e.modifiers,H.visitParameterList(e.parameters,k,s),V(e));return o=t,e}function L(e){var t=o;o=0;e=p.updateGetAccessorDeclaration(e,void 0,e.modifiers,H.visitNode(e.name,k,H.isPropertyName),H.visitParameterList(e.parameters,k,s),void 0,V(e));return o=t,e}function R(e){var t=o;o=0;e=p.updateSetAccessorDeclaration(e,void 0,e.modifiers,H.visitNode(e.name,k,H.isPropertyName),H.visitParameterList(e.parameters,k,s),V(e));return o=t,e}function B(e){var t=o;o=H.getFunctionFlags(e);e=p.updateMethodDeclaration(e,void 0,1&o?H.visitNodes(e.modifiers,n,H.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,H.visitNode(e.name,k,H.isPropertyName),H.visitNode(void 0,k,H.isToken),void 0,H.visitParameterList(e.parameters,k,s),void 0,(2&o&&1&o?U:V)(e));return o=t,e}function j(e){var t=o;o=H.getFunctionFlags(e);e=p.updateFunctionDeclaration(e,void 0,1&o?H.visitNodes(e.modifiers,n,H.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,e.name,void 0,H.visitParameterList(e.parameters,k,s),void 0,(2&o&&1&o?U:V)(e));return o=t,e}function J(e){var t=o;o=H.getFunctionFlags(e);e=p.updateArrowFunction(e,e.modifiers,void 0,H.visitParameterList(e.parameters,k,s),void 0,e.equalsGreaterThanToken,V(e));return o=t,e}function z(e){var t=o;o=H.getFunctionFlags(e);e=p.updateFunctionExpression(e,1&o?H.visitNodes(e.modifiers,n,H.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,e.name,void 0,H.visitParameterList(e.parameters,k,s),void 0,(2&o&&1&o?U:V)(e));return o=t,e}function U(e){c();var t=[],r=p.copyPrologue(e.body.statements,t,!1,k);K(t,e);var n=h,i=v;h=new H.Set,v=!1;var a=p.createReturnStatement(f().createAsyncGeneratorHelper(p.createFunctionExpression(void 0,p.createToken(41),e.name&&p.getGeneratedNameForNode(e.name),void 0,[],void 0,p.updateBlock(e.body,H.visitLexicalEnvironment(e.body.statements,k,s,r))),!!(1&D))),o=2<=_&&6144&l.getNodeCheckFlags(e);o&&(0==(1&d)&&(d|=1,s.enableSubstitution(203),s.enableSubstitution(201),s.enableSubstitution(202),s.enableEmitNotification(252),s.enableEmitNotification(165),s.enableEmitNotification(167),s.enableEmitNotification(168),s.enableEmitNotification(166),s.enableEmitNotification(232)),r=H.createSuperAccessVariableStatement(p,l,e,h),S[H.getNodeId(r)]=!0,H.insertStatementsAfterStandardPrologue(t,[r])),t.push(a),H.insertStatementsAfterStandardPrologue(t,u());t=p.updateBlock(e.body,t);return o&&v&&(4096&l.getNodeCheckFlags(e)?H.addEmitHelper(t,H.advancedAsyncSuperHelper):2048&l.getNodeCheckFlags(e)&&H.addEmitHelper(t,H.asyncSuperHelper)),h=n,v=i,t}function V(e){c();var t=0,r=[],n=null!==(i=H.visitNode(e.body,k,H.isConciseBody))&&void 0!==i?i:p.createBlock([]);H.isBlock(n)&&(t=p.copyPrologue(n.statements,r,!1,k)),H.addRange(r,K(void 0,e));var i=u();if(0<t||H.some(r)||H.some(i)){e=p.converters.convertToFunctionBlock(n,!0);return H.insertStatementsAfterStandardPrologue(r,i),H.addRange(r,e.statements.slice(t)),p.updateBlock(e,H.setTextRange(p.createNodeArray(r),e.statements))}return n}function K(e,t){for(var r=0,n=t.parameters;r<n.length;r++){var i,a=n[r];16384&a.transformFlags&&(i=p.getGeneratedNameForNode(a),i=H.flattenDestructuringBinding(a,k,s,1,i,!1,!0),H.some(i)&&(i=p.createVariableStatement(void 0,p.createVariableDeclarationList(i)),H.setEmitFlags(i,1048576),e=H.append(e,i)))}return e}function q(e){return 105===e.expression.kind?H.setTextRange(p.createPropertyAccessExpression(p.createUniqueName("_super",48),e.name),e):e}function W(e){return 105===e.expression.kind?(t=e.argumentExpression,r=e,4096&x?H.setTextRange(p.createPropertyAccessExpression(p.createCallExpression(p.createIdentifier("_superIndex"),void 0,[t]),"value"),r):H.setTextRange(p.createCallExpression(p.createIdentifier("_superIndex"),void 0,[t]),r)):e;var t,r}}}(ts=ts||{}),function(i){i.transformES2019=function(t){var r=t.factory;return i.chainBundle(t,function(e){if(e.isDeclarationFile)return e;return i.visitEachChild(e,n,t)});function n(e){return 0==(16&e.transformFlags)?e:287!==e.kind?i.visitEachChild(e,n,t):(e=e).variableDeclaration?i.visitEachChild(e,n,t):r.updateCatchClause(e,r.createVariableDeclaration(r.createTempVariable(void 0)),i.visitNode(e.block,n,i.isBlock))}}}(ts=ts||{}),function(g){g.transformES2020=function(o){var l=o.factory,_=o.hoistVariableDeclaration;return g.chainBundle(o,function(e){if(e.isDeclarationFile)return e;return g.visitEachChild(e,d,o)});function d(e){if(0==(8&e.transformFlags))return e;switch(e.kind){case 201:case 202:case 203:if(32&e.flags){var t=s(e,!1,!1);return g.Debug.assertNotNode(t,g.isSyntheticReference),t}return g.visitEachChild(e,d,o);case 216:return 60===e.operatorToken.kind?function(e){var t=g.visitNode(e.left,d,g.isExpression),r=t;g.isSimpleCopiableExpression(t)||(r=l.createTempVariable(_),t=l.createAssignment(r,t));return l.createConditionalExpression(f(t,r),void 0,r,void 0,g.visitNode(e.right,d,g.isExpression))}(e):g.visitEachChild(e,d,o);case 210:return t=e,g.isOptionalChain(g.skipParentheses(t.expression))?g.setOriginalNode(p(t.expression,!1,!0),t):l.updateDeleteExpression(t,g.visitNode(t.expression,d,g.isExpression));default:return g.visitEachChild(e,d,o)}}function p(e,t,r){switch(e.kind){case 207:return i=t,a=r,a=p((n=e).expression,i,a),g.isSyntheticReference(a)?l.createSyntheticReferenceExpression(l.updateParenthesizedExpression(n,a.expression),a.thisArg):l.updateParenthesizedExpression(n,a);case 201:case 202:return function(e,t,r){if(g.isOptionalChain(e))return s(e,t,r);var n,r=g.visitNode(e.expression,d,g.isExpression);return g.Debug.assertNotNode(r,g.isSyntheticReference),t&&(g.isSimpleCopiableExpression(r)?n=r:(n=l.createTempVariable(_),r=l.createAssignment(n,r))),r=201===e.kind?l.updatePropertyAccessExpression(e,r,g.visitNode(e.name,d,g.isIdentifier)):l.updateElementAccessExpression(e,r,g.visitNode(e.argumentExpression,d,g.isExpression)),n?l.createSyntheticReferenceExpression(r,n):r}(e,t,r);case 203:return n=e,a=t,g.isOptionalChain(n)?s(n,a,!1):g.visitEachChild(n,d,o);default:return g.visitNode(e,d,g.isExpression)}var n,i,a}function s(e,t,r){var n=function(e){g.Debug.assertNotNode(e,g.isNonNullChain);for(var t=[e];!e.questionDotToken&&!g.isTaggedTemplateExpression(e);)e=g.cast(g.skipPartiallyEmittedExpressions(e.expression),g.isOptionalChain),g.Debug.assertNotNode(e,g.isNonNullChain),t.unshift(e);return{expression:e.expression,chain:t}}(e),e=n.expression,i=n.chain,n=p(e,g.isCallChain(i[0]),!1),a=g.isSyntheticReference(n)?n.thisArg:void 0,e=g.isSyntheticReference(n)?n.expression:n,n=e;g.isSimpleCopiableExpression(e)||(n=l.createTempVariable(_),e=l.createAssignment(n,e));for(var o,s=n,c=0;c<i.length;c++){var u=i[c];switch(u.kind){case 201:case 202:c===i.length-1&&t&&(g.isSimpleCopiableExpression(s)?o=s:(o=l.createTempVariable(_),s=l.createAssignment(o,s))),s=201===u.kind?l.createPropertyAccessExpression(s,g.visitNode(u.name,d,g.isIdentifier)):l.createElementAccessExpression(s,g.visitNode(u.argumentExpression,d,g.isExpression));break;case 203:s=0===c&&a?l.createFunctionCallCall(s,105===a.kind?l.createThis():a,g.visitNodes(u.arguments,d,g.isExpression)):l.createCallExpression(s,void 0,g.visitNodes(u.arguments,d,g.isExpression))}g.setOriginalNode(s,u)}n=r?l.createConditionalExpression(f(e,n,!0),void 0,l.createTrue(),void 0,l.createDeleteExpression(s)):l.createConditionalExpression(f(e,n,!0),void 0,l.createVoidZero(),void 0,s);return o?l.createSyntheticReferenceExpression(n,o):n}function f(e,t,r){return l.createBinaryExpression(l.createBinaryExpression(e,l.createToken(r?36:37),l.createNull()),l.createToken(r?56:55),l.createBinaryExpression(t,l.createToken(r?36:37),l.createVoidZero()))}}}(ts=ts||{}),function(_){_.transformESNext=function(r){var c=r.hoistVariableDeclaration,u=r.factory;return _.chainBundle(r,function(e){if(e.isDeclarationFile)return e;return _.visitEachChild(e,l,r)});function l(e){if(0==(4&e.transformFlags))return e;if(216===e.kind){var t=e;if(_.isLogicalOrCoalescingAssignmentExpression(t))return function(e){var t=e.operatorToken,r=_.getNonAssignmentOperatorForCompoundAssignment(t.kind),n=_.skipParentheses(_.visitNode(e.left,l,_.isLeftHandSideExpression)),i=n,a=_.skipParentheses(_.visitNode(e.right,l,_.isExpression));{var o,s;_.isAccessExpression(n)&&(s=_.isSimpleCopiableExpression(n.expression),o=s?n.expression:u.createTempVariable(c),t=s?n.expression:u.createAssignment(o,n.expression),n=_.isPropertyAccessExpression(n)?(i=u.createPropertyAccessExpression(o,n.name),u.createPropertyAccessExpression(t,n.name)):(e=_.isSimpleCopiableExpression(n.argumentExpression),s=e?n.argumentExpression:u.createTempVariable(c),i=u.createElementAccessExpression(o,s),u.createElementAccessExpression(t,e?n.argumentExpression:u.createAssignment(s,n.argumentExpression))))}return u.createBinaryExpression(n,r,u.createParenthesizedExpression(u.createAssignment(i,a)))}(t)}return _.visitEachChild(e,l,r)}}}(ts=ts||{}),function(N){N.transformJsx=function(c){var u,l,_=c.factory,d=c.getEmitHelperFactory,p=c.getCompilerOptions();return N.chainBundle(c,function(e){if(e.isDeclarationFile)return e;u=e,(l={}).importSpecifier=N.getJSXImplicitImportBase(p,e);var t=N.visitEachChild(e,g,c);N.addEmitHelpers(t,c.readEmitHelpers());var r=t.statements;l.filenameDeclaration&&(r=N.insertStatementAfterCustomPrologue(r.slice(),_.createVariableStatement(void 0,_.createVariableDeclarationList([l.filenameDeclaration],2))));if(l.utilizedImplicitRuntimeImports)for(var n=0,i=N.arrayFrom(l.utilizedImplicitRuntimeImports.entries());n<i.length;n++){var a=i[n],o=a[0],s=a[1];N.isExternalModule(e)?(a=_.createImportDeclaration(void 0,void 0,_.createImportClause(!1,void 0,_.createNamedImports(N.arrayFrom(s.values()))),_.createStringLiteral(o)),N.setParentRecursive(a,!1),r=N.insertStatementAfterCustomPrologue(r.slice(),a)):N.isExternalOrCommonJsModule(e)&&(o=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(_.createObjectBindingPattern(N.map(N.arrayFrom(s.values()),function(e){return _.createBindingElement(void 0,e.propertyName,e.name)})),void 0,void 0,_.createCallExpression(_.createIdentifier("require"),void 0,[_.createStringLiteral(o)]))],2)),N.setParentRecursive(o,!1),r=N.insertStatementAfterCustomPrologue(r.slice(),o))}r!==t.statements&&(t=_.updateSourceFile(t,r));return l=void 0,t});function o(e){return f((e=e,5===p.jsx?"jsxDEV":1<e?"jsxs":"jsx"))}function f(e){var t="createElement"===e?l.importSpecifier:N.getJSXRuntimeImport(l.importSpecifier,p),r=null===(n=null===(r=l.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(t))||void 0===n?void 0:n.get(e);if(r)return r.name;l.utilizedImplicitRuntimeImports||(l.utilizedImplicitRuntimeImports=N.createMap());var n=l.utilizedImplicitRuntimeImports.get(t);n||(n=N.createMap(),l.utilizedImplicitRuntimeImports.set(t,n));r=_.createUniqueName("_"+e,112),t=_.createImportSpecifier(_.createIdentifier(e),r);return r.generatedImportReference=t,n.set(e,t),r}function g(e){return 2&e.transformFlags?function(e){switch(e.kind){case 273:return t(e,!1);case 274:return n(e,!1);case 277:return i(e,!1);case 283:return k(e);default:return N.visitEachChild(e,g,c)}}(e):e}function m(e){switch(e.kind){case 11:return function(e){e=function(e){for(var t,r=0,n=-1,i=0;i<e.length;i++){var a=e.charCodeAt(i);N.isLineBreak(a)?(-1!==r&&-1!==n&&(t=T(t,e.substr(r,n-r+1))),r=-1):N.isWhiteSpaceSingleLine(a)||(n=i,-1===r&&(r=i))}return-1!==r?T(t,e.substr(r)):t}(e.text);return void 0===e?void 0:_.createStringLiteral(e)}(e);case 283:return k(e);case 273:return t(e,!0);case 274:return n(e,!0);case 277:return i(e,!0);default:return N.Debug.failBadSyntaxKind(e)}}function r(e){return void 0===l.importSpecifier||function(e){for(var t=!1,r=0,n=e.attributes.properties;r<n.length;r++){var i=n[r];if(N.isJsxSpreadAttribute(i))t=!0;else if(t&&N.isJsxAttribute(i)&&"key"===i.name.escapedText)return 1}return}(e)}function t(e,t){return(r(e.openingElement)?h:a)(e.openingElement,e.children,t,e)}function n(e,t){return(r(e)?h:a)(e,void 0,t,e)}function i(e,t){return(void 0===l.importSpecifier?b:v)(e.openingFragment,e.children,t,e)}function s(e){var t=N.getSemanticJsxChildren(e);if(1===N.length(t)){t=m(t[0]);return t&&_.createObjectLiteralExpression([_.createPropertyAssignment("children",t)])}e=N.mapDefined(e,m);return e.length?_.createObjectLiteralExpression([_.createPropertyAssignment("children",_.createArrayLiteralExpression(e))]):void 0}function a(e,t,r,n){var i=E(e),a=N.find(e.attributes.properties,function(e){return!!e.name&&N.isIdentifier(e.name)&&"key"===e.name.escapedText}),o=a?N.filter(e.attributes.properties,function(e){return e!==a}):e.attributes.properties,e=[];return o.length&&(e=N.flatten(N.spanMap(o,N.isJsxSpreadAttribute,function(e,t){return t?N.map(e,x):_.createObjectLiteralExpression(N.map(e,D))})),N.isJsxSpreadAttribute(o[0])&&e.unshift(_.createObjectLiteralExpression())),t&&t.length&&((o=s(t))&&e.push(o)),y(i,0===e.length?_.createObjectLiteralExpression([]):N.singleOrUndefined(e)||d().createAssignHelper(e),a,N.length(N.getSemanticJsxChildren(t||N.emptyArray)),r,n)}function y(e,t,r,n,i,a){t=[e,t,r?S(r.initializer):_.createVoidZero()];5!==p.jsx||(r=N.getOriginalNode(u))&&N.isSourceFile(r)&&(t.push(1<n?_.createTrue():_.createFalse()),r=N.getLineAndCharacterOfPosition(r,a.pos),t.push(_.createObjectLiteralExpression([_.createPropertyAssignment("fileName",function(){if(l.filenameDeclaration)return l.filenameDeclaration.name;var e=_.createVariableDeclaration(_.createUniqueName("_jsxFileName",48),void 0,void 0,_.createStringLiteral(u.fileName));return l.filenameDeclaration=e,l.filenameDeclaration.name}()),_.createPropertyAssignment("lineNumber",_.createNumericLiteral(r.line+1)),_.createPropertyAssignment("columnNumber",_.createNumericLiteral(r.character+1))])),t.push(_.createThis()));a=N.setTextRange(_.createCallExpression(o(n),void 0,t),a);return i&&N.startOnNewLine(a),a}function h(e,t,r,n){var i,a=E(e),o=e.attributes.properties,s=0===o.length?_.createNull():(i=N.flatten(N.spanMap(o,N.isJsxSpreadAttribute,function(e,t){return t?N.map(e,x):_.createObjectLiteralExpression(N.map(e,D))})),N.isJsxSpreadAttribute(o[0])&&i.unshift(_.createObjectLiteralExpression()),(s=N.singleOrUndefined(i))||d().createAssignHelper(i)),e=void 0===l.importSpecifier?N.createJsxFactoryExpression(_,c.getEmitResolver().getJsxFactoryEntity(u),p.reactNamespace,e):f("createElement"),n=N.createExpressionForJsxElement(_,e,a,s,N.mapDefined(t,m),n);return r&&N.startOnNewLine(n),n}function v(e,t,r,n){var i,a;return t&&t.length&&((a=s(t))&&(i=a)),y(f("Fragment"),i||_.createObjectLiteralExpression([]),void 0,N.length(N.getSemanticJsxChildren(t)),r,n)}function b(e,t,r,n){n=N.createExpressionForJsxFragment(_,c.getEmitResolver().getJsxFactoryEntity(u),c.getEmitResolver().getJsxFragmentFactoryEntity(u),p.reactNamespace,N.mapDefined(t,m),e,n);return r&&N.startOnNewLine(n),n}function x(e){return N.visitNode(e.expression,g,N.isExpression)}function D(e){var t,r,t=(r=(t=e).name,t=N.idText(r),/^[A-Za-z_]\w*$/.test(t)?r:_.createStringLiteral(t)),e=S(e.initializer);return _.createPropertyAssignment(t,e)}function S(e){if(void 0===e)return _.createTrue();if(10!==e.kind)return 283===e.kind?void 0===e.expression?_.createTrue():N.visitNode(e.expression,g,N.isExpression):N.Debug.failBadSyntaxKind(e);var t,r,n=void 0!==e.singleQuote?e.singleQuote:!N.isStringDoubleQuoted(e,u),n=_.createStringLiteral((t=e.text,((r=C(t))===t?void 0:r)||e.text),n);return N.setTextRange(n,e)}function T(e,t){t=C(t);return void 0===e?t:e+" "+t}function C(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,r,n,i,a,o){if(i)return N.utf16EncodeAsString(parseInt(i,10));if(a)return N.utf16EncodeAsString(parseInt(a,16));o=A.get(o);return o?N.utf16EncodeAsString(o):e})}function E(e){if(273===e.kind)return E(e.openingElement);e=e.tagName;return N.isIdentifier(e)&&N.isIntrinsicJsxName(e.escapedText)?_.createStringLiteral(N.idText(e)):N.createExpressionFromEntityName(_,e)}function k(e){return N.visitNode(e.expression,g,N.isExpression)}};var A=new N.Map(N.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(ts=ts||{}),function(u){u.transformES2016=function(t){var o=t.factory,s=t.hoistVariableDeclaration;return u.chainBundle(t,function(e){if(e.isDeclarationFile)return e;return u.visitEachChild(e,c,t)});function c(e){return 0==(128&e.transformFlags)?e:216!==e.kind?u.visitEachChild(e,c,t):function(e){switch(e.operatorToken.kind){case 66:return function(e){var t,r=u.visitNode(e.left,c,u.isExpression),n=u.visitNode(e.right,c,u.isExpression);{var i,a;r=u.isElementAccessExpression(r)?(a=o.createTempVariable(s),i=o.createTempVariable(s),t=u.setTextRange(o.createElementAccessExpression(u.setTextRange(o.createAssignment(a,r.expression),r.expression),u.setTextRange(o.createAssignment(i,r.argumentExpression),r.argumentExpression)),r),u.setTextRange(o.createElementAccessExpression(a,i),r)):u.isPropertyAccessExpression(r)?(a=o.createTempVariable(s),t=u.setTextRange(o.createPropertyAccessExpression(u.setTextRange(o.createAssignment(a,r.expression),r.expression),r.name),r),u.setTextRange(o.createPropertyAccessExpression(a,r.name),r)):t=r}return u.setTextRange(o.createAssignment(t,u.setTextRange(o.createGlobalMethodCall("Math","pow",[r,n]),e)),e)}(e);case 42:return function(e){var t=u.visitNode(e.left,c,u.isExpression),r=u.visitNode(e.right,c,u.isExpression);return u.setTextRange(o.createGlobalMethodCall("Math","pow",[t,r]),e)}(e);default:return u.visitEachChild(e,c,t)}}(e)}}}(ts=ts||{}),function(Te){var e;(e={})[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings",(e={})[e.Body=1]="Body",e[e.Initializer=2]="Initializer",(e={})[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter",(e={})[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return",(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.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="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=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.NewTarget=16384]="NewTarget",e[e.CapturedLexicalThis=32768]="CapturedLexicalThis",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes",Te.transformES2015=function(u){var l,i,_,a,p,o,f=u.factory,d=u.getEmitHelperFactory,g=u.startLexicalEnvironment,m=u.resumeLexicalEnvironment,y=u.endLexicalEnvironment,h=u.hoistVariableDeclaration,n=u.getCompilerOptions(),v=u.getEmitResolver(),r=u.onSubstituteNode,s=u.onEmitNode;function b(e){a=Te.append(a,f.createVariableDeclaration(e))}return u.onEmitNode=function(e,t,r){if(1&o&&Te.isFunctionLike(t)){var n=x(16286,8&Te.getEmitFlags(t)?81:65);return s(e,t,r),void D(n,0,0)}s(e,t,r)},u.onSubstituteNode=function(e,t){if(t=r(e,t),1===e)return function(e){switch(e.kind){case 78:return function(e){if(2&o&&!Te.isInternalName(e)){var t=v.getReferencedDeclarationWithCollidingName(e);if(t&&(!Te.isClassLike(t)||!function(e,t){var r=Te.getParseTreeNode(t);if(!r||r===e||r.end<=e.pos||r.pos>=e.end)return!1;var n=Te.getEnclosingBlockScopeContainer(e);for(;r;){if(r===n||r===e)return!1;if(Te.isClassElement(r)&&r.parent===e)return!0;r=r.parent}return!1}(t,e)))return Te.setTextRange(f.getGeneratedNameForNode(Te.getNameOfDeclaration(t)),e)}return e}(e);case 107:return function(e){if(1&o&&16&_)return Te.setTextRange(f.createUniqueName("_this",48),e);return e}(e)}return e}(t);if(Te.isIdentifier(t))return function(e){if(2&o&&!Te.isInternalName(e)){var t=Te.getParseTreeNode(e,Te.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 198:case 252:case 255:case 249:return e.parent.name===e&&v.isDeclarationWithCollidingName(e.parent)}return!1}(t))return Te.setTextRange(f.getGeneratedNameForNode(t),e)}return e}(t);return t},Te.chainBundle(u,function(e){if(e.isDeclarationFile)return e;i=(l=e).text;e=function(e){var t=x(8064,64),r=[],n=[];g();var i=f.copyPrologue(e.statements,r,!1,T);Te.addRange(n,Te.visitNodes(e.statements,T,Te.isStatement,i)),a&&n.push(f.createVariableStatement(void 0,f.createVariableDeclarationList(a)));return f.mergeLexicalEnvironment(r,y()),M(r,e),D(t,0,0),f.updateSourceFile(e,Te.setTextRange(f.createNodeArray(Te.concatenate(r,n)),e.statements))}(e);return Te.addEmitHelpers(e,u.readEmitHelpers()),a=i=l=void 0,_=0,e});function x(e,t){var r=_;return _=16383&(_&~e|t),r}function D(e,t,r){_=-16384&(_&~t|r)|e}function S(e){return 0!=(8192&_)&&242===e.kind&&!e.expression}function t(e){return 0!=(256&e.transformFlags)||void 0!==p||8192&_&&(1048576&(t=e).transformFlags&&(Te.isReturnStatement(t)||Te.isIfStatement(t)||Te.isWithStatement(t)||Te.isSwitchStatement(t)||Te.isCaseBlock(t)||Te.isCaseClause(t)||Te.isDefaultClause(t)||Te.isTryStatement(t)||Te.isCatchClause(t)||Te.isLabeledStatement(t)||Te.isIterationStatement(t,!1)||Te.isBlock(t)))||Te.isIterationStatement(e,!1)&&ie(e)||0!=(33554432&Te.getEmitFlags(e));var t}function T(e){return t(e)?c(e,!1):e}function C(e){return t(e)?c(e,!0):e}function E(e){return 105===e.kind?be(!0):T(e)}function c(e,t){switch(e.kind){case 123:return;case 252:return function(e){var t=f.createVariableDeclaration(f.getLocalName(e,!0),void 0,void 0,A(e));Te.setOriginalNode(t,e);var r=[],t=f.createVariableStatement(void 0,f.createVariableDeclarationList([t]));Te.setOriginalNode(t,e),Te.setTextRange(t,e),Te.startOnNewLine(t),r.push(t),Te.hasSyntacticModifier(e,1)&&(n=Te.hasSyntacticModifier(e,512)?f.createExportDefault(f.getLocalName(e)):f.createExternalModuleExport(f.getLocalName(e)),Te.setOriginalNode(n,t),r.push(n));var n=Te.getEmitFlags(e);0==(4194304&n)&&(r.push(f.createEndOfDeclarationMarker(e)),Te.setEmitFlags(t,4194304|n));return Te.singleOrMany(r)}(e);case 221:return A(e);case 160:return function(e){if(!e.dotDotDotToken)return Te.isBindingPattern(e.name)?Te.setOriginalNode(Te.setTextRange(f.createParameterDeclaration(void 0,void 0,void 0,f.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?Te.setOriginalNode(Te.setTextRange(f.createParameterDeclaration(void 0,void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(e);case 251:return function(e){var t=p;p=void 0;var r=x(16286,65),n=Te.visitParameterList(e.parameters,T,u),i=J(e),a=16384&_?f.getLocalName(e):e.name;return D(r,49152,0),p=t,f.updateFunctionDeclaration(e,void 0,Te.visitNodes(e.modifiers,T,Te.isModifier),e.asteriskToken,a,void 0,n,void 0,i)}(e);case 209:return function(e){4096&e.transformFlags&&(_|=32768);var t=p;p=void 0;var r=x(15232,66),n=f.createFunctionExpression(void 0,void 0,void 0,void 0,Te.visitParameterList(e.parameters,T,u),void 0,J(e));Te.setTextRange(n,e),Te.setOriginalNode(n,e),Te.setEmitFlags(n,8),32768&_&&De();return D(r,0,0),p=t,n}(e);case 208:return function(e){var t=262144&Te.getEmitFlags(e)?x(16278,69):x(16286,65),r=p;p=void 0;var n=Te.visitParameterList(e.parameters,T,u),i=J(e),a=16384&_?f.getLocalName(e):e.name;return D(t,49152,0),p=r,f.updateFunctionExpression(e,void 0,e.asteriskToken,a,void 0,n,void 0,i)}(e);case 249:return V(e);case 78:return N(e);case 250:return function(e){if(3&e.flags||131072&e.transformFlags){3&e.flags&&xe();var t=Te.flatMap(e.declarations,1&e.flags?U:V),r=f.createVariableDeclarationList(t);return Te.setOriginalNode(r,e),Te.setTextRange(r,e),Te.setCommentRange(r,e),131072&e.transformFlags&&(Te.isBindingPattern(e.declarations[0].name)||Te.isBindingPattern(Te.last(e.declarations).name))&&Te.setSourceMapRange(r,function(e){for(var t=-1,r=-1,n=0,i=e;n<i.length;n++){var a=i[n];t=-1===t?a.pos:-1===a.pos?t:Math.min(t,a.pos),r=Math.max(r,a.end)}return Te.createRange(t,r)}(t)),r}return Te.visitEachChild(e,T,u)}(e);case 244:return function(e){if(void 0===p)return Te.visitEachChild(e,T,u);var t=p.allowedNonLabeledJumps;p.allowedNonLabeledJumps|=2;e=Te.visitEachChild(e,T,u);return p.allowedNonLabeledJumps=t,e}(e);case 258:return s=e,c=x(7104,0),s=Te.visitEachChild(s,T,u),D(c,0,0),s;case 230:return function(e,t){if(t)return Te.visitEachChild(e,T,u);t=256&_?x(7104,512):x(6976,128),e=Te.visitEachChild(e,T,u);return D(t,0,0),e}(e,!1);case 241:case 240:return function(e){if(p){var t=241===e.kind?2:4;if(!(e.label&&p.labels&&p.labels.get(Te.idText(e.label))||!e.label&&p.allowedNonLabeledJumps&t)){var r=void 0,t=e.label;t?241===e.kind?(r="break-"+t.escapedText,le(p,!0,Te.idText(t),r)):(r="continue-"+t.escapedText,le(p,!1,Te.idText(t),r)):r=241===e.kind?(p.nonLocalJumps|=2,"break"):(p.nonLocalJumps|=4,"continue");r=f.createStringLiteral(r);if(p.loopOutParameters.length){for(var n=p.loopOutParameters,i=void 0,a=0;a<n.length;a++){var o=ce(n[a],1);i=0===a?o:f.createBinaryExpression(i,27,o)}r=f.createBinaryExpression(i,27,r)}return f.createReturnStatement(r)}}return Te.visitEachChild(e,T,u)}(e);case 245:return function(e){p&&!p.labels&&(p.labels=new Te.Map);var t=Te.unwrapInnermostStatementOfLabel(e,p&&K);return Te.isIterationStatement(t,!1)?function(e,t){switch(e.kind){case 235:case 236:return H(e,t);case 237:return G(e,t);case 238:return X(e,t);case 239:return Q(e,t)}}(t,e):f.restoreEnclosingLabel(Te.visitNode(t,T,Te.isStatement,f.liftToBlock),e,p&&q)}(e);case 235:case 236:return H(e,void 0);case 237:return G(e,void 0);case 238:return X(e,void 0);case 239:return Q(e,void 0);case 233:return s=e,Te.visitEachChild(s,C,u);case 200:return function(e){for(var t=e.properties,r=-1,n=!1,i=0;i<t.length;i++){var a=t[i];if(262144&a.transformFlags&&4&_||(n=158===Te.Debug.checkDefined(a.name).kind)){r=i;break}}if(r<0)return Te.visitEachChild(e,T,u);var o=f.createTempVariable(h),s=[],c=f.createAssignment(o,Te.setEmitFlags(f.createObjectLiteralExpression(Te.visitNodes(t,T,Te.isObjectLiteralElementLike,0,r),e.multiLine),n?65536:0));e.multiLine&&Te.startOnNewLine(c);return s.push(c),function(e,t,r,n){for(var i=t.properties,a=i.length,o=n;o<a;o++){var s=i[o];switch(s.kind){case 167:case 168:var c=Te.getAllAccessorDeclarations(t.properties,s);s===c.firstAccessor&&e.push(B(r,c,t,!!t.multiLine));break;case 165:e.push(function(e,t,r,n){r=f.createAssignment(Te.createMemberAccessForPropertyName(f,t,Te.visitNode(e.name,T,Te.isPropertyName)),j(e,e,void 0,r));Te.setTextRange(r,e),n&&Te.startOnNewLine(r);return r}(s,r,t,t.multiLine));break;case 288:e.push(function(e,t,r){t=f.createAssignment(Te.createMemberAccessForPropertyName(f,t,Te.visitNode(e.name,T,Te.isPropertyName)),Te.visitNode(e.initializer,T,Te.isExpression));Te.setTextRange(t,e),r&&Te.startOnNewLine(t);return t}(s,r,t.multiLine));break;case 289:e.push(function(e,t,r){t=f.createAssignment(Te.createMemberAccessForPropertyName(f,t,Te.visitNode(e.name,T,Te.isPropertyName)),f.cloneNode(e.name));Te.setTextRange(t,e),r&&Te.startOnNewLine(t);return t}(s,r,t.multiLine));break;default:Te.Debug.failBadSyntaxKind(t)}}}(s,e,o,r),s.push(e.multiLine?Te.startOnNewLine(Te.setParent(Te.setTextRange(f.cloneNode(o),o),o.parent)):o),f.inlineExpressions(s)}(e);case 287:return function(e){var t=x(7104,0);{var r,n;Te.Debug.assert(!!e.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e=Te.isBindingPattern(e.variableDeclaration.name)?(n=f.createTempVariable(void 0),r=f.createVariableDeclaration(n),Te.setTextRange(r,e.variableDeclaration),n=Te.flattenDestructuringBinding(e.variableDeclaration,T,u,0,n),n=f.createVariableDeclarationList(n),Te.setTextRange(n,e.variableDeclaration),n=f.createVariableStatement(void 0,n),f.updateCatchClause(e,r,function(e,t){var r=Te.visitNodes(e.statements,T,Te.isStatement);return f.updateBlock(e,__spreadArrays([t],r))}(e.block,n))):Te.visitEachChild(e,T,u)}return D(t,0,0),e}(e);case 289:return o=e,Te.setTextRange(f.createPropertyAssignment(o.name,N(f.cloneNode(o.name))),o);case 158:return a=e,Te.visitEachChild(a,T,u);case 199:return function(e){if(Te.some(e.elements,Te.isSpreadElement))return pe(e.elements,!0,!!e.multiLine,!!e.elements.hasTrailingComma);return Te.visitEachChild(e,T,u)}(e);case 203:return function(e){if(33554432&Te.getEmitFlags(e))return function(e){function t(e){return Te.isVariableStatement(e)&&!!Te.first(e.declarationList.declarations).initializer}var r=Te.cast(Te.cast(Te.skipOuterExpressions(e.expression),Te.isArrowFunction).body,Te.isBlock),n=p;p=void 0;var i=Te.visitNodes(r.statements,T,Te.isStatement);p=n;var a=Te.filter(i,t),o=Te.filter(i,function(e){return!t(e)}),s=Te.cast(Te.first(a),Te.isVariableStatement).declarationList.declarations[0],c=Te.skipOuterExpressions(s.initializer),u=Te.tryCast(c,Te.isAssignmentExpression),l=Te.cast(u?Te.skipOuterExpressions(u.right):c,Te.isCallExpression),r=Te.cast(Te.skipOuterExpressions(l.expression),Te.isFunctionExpression),_=r.body.statements,n=0,d=-1,i=[];u&&((c=Te.tryCast(_[n],Te.isExpressionStatement))&&(i.push(c),n++),i.push(_[n]),n++,i.push(f.createExpressionStatement(f.createAssignment(u.left,Te.cast(s.name,Te.isIdentifier)))));for(;!Te.isReturnStatement(Te.elementAt(_,d));)d--;Te.addRange(i,_,n,d),d<-1&&Te.addRange(i,_,d+1);return Te.addRange(i,o),Te.addRange(i,a,1),f.restoreOuterExpressions(e.expression,f.restoreOuterExpressions(s.initializer,f.restoreOuterExpressions(u&&u.right,f.updateCallExpression(l,f.restoreOuterExpressions(l.expression,f.updateFunctionExpression(r,void 0,void 0,void 0,void 0,r.parameters,void 0,f.updateBlock(r.body,i))),void 0,l.arguments))))}(e);var t=Te.skipOuterExpressions(e.expression);if(105===t.kind||Te.isSuperProperty(t)||Te.some(e.arguments,Te.isSpreadElement))return de(e,!0);return f.updateCallExpression(e,Te.visitNode(e.expression,E,Te.isExpression),void 0,Te.visitNodes(e.arguments,T,Te.isExpression))}(e);case 204:return function(e){if(Te.some(e.arguments,Te.isSpreadElement)){var t=f.createCallBinding(f.createPropertyAccessExpression(e.expression,"bind"),h),r=t.target,t=t.thisArg;return f.createNewExpression(f.createFunctionApplyCall(Te.visitNode(r,T,Te.isExpression),t,pe(f.createNodeArray(__spreadArrays([f.createVoidZero()],e.arguments)),!1,!1,!1)),void 0,[])}return Te.visitEachChild(e,T,u)}(e);case 207:return o=e,a=t,Te.visitEachChild(o,a?C:T,u);case 216:return z(e,t);case 337:return function(e,t){if(t)return Te.visitEachChild(e,C,u);for(var r,n=0;n<e.elements.length;n++){var i=e.elements[n],a=Te.visitNode(i,n<e.elements.length-1?C:T,Te.isExpression);!r&&a===i||(r=r||e.elements.slice(0,n)).push(a)}t=r?Te.setTextRange(f.createNodeArray(r),e.elements):e.elements;return f.updateCommaListExpression(e,t)}(e,t);case 14:case 15:case 16:case 17:return i=e,Te.setTextRange(f.createStringLiteral(i.text),i);case 10:return function(e){if(e.hasExtendedUnicodeEscape)return Te.setTextRange(f.createStringLiteral(e.text),e);return e}(e);case 8:return function(e){if(384&e.numericLiteralFlags)return Te.setTextRange(f.createNumericLiteral(e.text),e);return e}(e);case 205:return i=e,Te.processTaggedTemplateExpression(u,i,T,l,b,Te.ProcessLevel.All);case 218:return function(i){var e=[];(function(e,t){!function(e){return Te.Debug.assert(0!==e.templateSpans.length),0!==e.head.text.length||0===e.templateSpans[0].literal.text.length}(t)||e.push(f.createStringLiteral(t.head.text))})(e,i),function(e){for(var t=0,r=i.templateSpans;t<r.length;t++){var n=r[t];e.push(Te.visitNode(n.expression,T,Te.isExpression)),0!==n.literal.text.length&&e.push(f.createStringLiteral(n.literal.text))}}(e);e=Te.reduceLeft(e,f.createAdd);Te.nodeIsSynthesized(e)&&Te.setTextRange(e,i);return e}(e);case 219:return n=e,Te.visitEachChild(n,T,u);case 220:return n=e,Te.visitNode(n.expression,T,Te.isExpression);case 105:return be(!1);case 107:return function(e){2&_&&(_|=32768);if(p)return 2&_?(p.containsLexicalThis=!0,e):p.thisName||(p.thisName=f.createUniqueName("this"));return e}(e);case 226:return 102!==(r=e).keywordToken||"target"!==r.name.escapedText?r:(_|=16384,f.createUniqueName("_newTarget",48));case 165:return function(e){Te.Debug.assert(!Te.isComputedPropertyName(e.name));var t=j(e,Te.moveRangePos(e,-1),void 0,void 0);return Te.setEmitFlags(t,512|Te.getEmitFlags(t)),Te.setTextRange(f.createPropertyAssignment(e.name,t),e)}(e);case 167:case 168:return function(e){Te.Debug.assert(!Te.isComputedPropertyName(e.name));var t=p;p=void 0;var r=x(16286,65),n=Te.visitParameterList(e.parameters,T,u),i=J(e);i=167===e.kind?f.updateGetAccessorDeclaration(e,e.decorators,e.modifiers,e.name,n,e.type,i):f.updateSetAccessorDeclaration(e,e.decorators,e.modifiers,e.name,n,i);return D(r,49152,0),p=t,i}(e);case 232:return function(e){var t,r=x(0,Te.hasSyntacticModifier(e,1)?32:0);if(p&&0==(3&e.declarationList.flags)&&!function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(33554432&Te.getEmitFlags(e.declarationList.declarations[0].initializer))}(e)){for(var n=void 0,i=0,a=e.declarationList.declarations;i<a.length;i++){var o,s=a[i];!function(a,e){a.hoistedLocalVariables||(a.hoistedLocalVariables=[]),function e(t){if(78===t.kind)a.hoistedLocalVariables.push(t);else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];Te.isOmittedExpression(i)||e(i.name)}}(e.name)}(p,s),s.initializer&&(o=void 0,Te.isBindingPattern(s.name)?o=Te.flattenDestructuringAssignment(s,T,u,0):(o=f.createBinaryExpression(s.name,62,Te.visitNode(s.initializer,T,Te.isExpression)),Te.setTextRange(o,s)),n=Te.append(n,o))}t=n?Te.setTextRange(f.createExpressionStatement(f.inlineExpressions(n)),e):void 0}else t=Te.visitEachChild(e,T,u);return D(r,0,0),t}(e);case 242:return function(e){{if(p)return p.nonLocalJumps|=8,S(e)&&(e=k(e)),f.createReturnStatement(f.createObjectLiteralExpression([f.createPropertyAssignment(f.createIdentifier("value"),e.expression?Te.visitNode(e.expression,T,Te.isExpression):f.createVoidZero())]));if(S(e))return k(e)}return Te.visitEachChild(e,T,u)}(e);case 212:return r=e,Te.visitEachChild(r,C,u);default:return Te.visitEachChild(e,T,u)}var r,n,i,a,o,s,c}function k(e){return Te.setOriginalNode(f.createReturnStatement(f.createUniqueName("_this",48)),e)}function N(e){return p&&v.isArgumentsLocalBinding(e)?p.argumentsName||(p.argumentsName=f.createUniqueName("arguments")):e}function A(e){e.name&&xe();var t=Te.getClassExtendsHeritageElement(e),r=f.createFunctionExpression(void 0,void 0,void 0,void 0,t?[f.createParameterDeclaration(void 0,void 0,void 0,f.createUniqueName("_super",48))]:[],void 0,function(e,t){var r=[],n=f.getInternalName(e),n=Te.isIdentifierANonContextualKeyword(n)?f.getGeneratedNameForNode(n):n;g(),function(e,t,r){r&&e.push(Te.setTextRange(f.createExpressionStatement(d().createExtendsHelper(f.getInternalName(t))),r))}(r,e,t),function(e,t,r,n){var i=p;p=void 0;var a=x(16278,73),o=Te.getFirstConstructorWithBody(t),s=function(e,t){if(!e||!t)return!1;if(Te.some(e.parameters))return!1;t=Te.firstOrUndefined(e.body.statements);if(!t||!Te.nodeIsSynthesized(t)||233!==t.kind)return!1;e=t.expression;if(!Te.nodeIsSynthesized(e)||203!==e.kind)return!1;t=e.expression;if(!Te.nodeIsSynthesized(t)||105!==t.kind)return!1;e=Te.singleOrUndefined(e.arguments);if(!e||!Te.nodeIsSynthesized(e)||220!==e.kind)return!1;e=e.expression;return Te.isIdentifier(e)&&"arguments"===e.escapedText}(o,void 0!==n),s=f.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,function(e,t){return Te.visitParameterList(e&&!t?e.parameters:void 0,T,u)||[]}(o,s),void 0,function(e,t,r,n){var i=!!r&&103!==Te.skipOuterExpressions(r.expression).kind;if(!e)return function(e,t){var r=[];m(),f.mergeLexicalEnvironment(r,y()),t&&r.push(f.createReturnStatement(P()));r=f.createNodeArray(r);Te.setTextRange(r,e.members);r=f.createBlock(r,!0);return Te.setTextRange(r,e),Te.setEmitFlags(r,1536),r}(t,i);var a=[],r=[];m();t=0;n||(t=f.copyStandardPrologue(e.body.statements,a,!1));I(r,e),O(r,e,n),n||(t=f.copyCustomPrologue(e.body.statements,r,t,T));n?o=P():i&&t<e.body.statements.length&&(n=e.body.statements[t],Te.isExpressionStatement(n)&&Te.isSuperCall(n.expression)&&(o=function(e){return de(e,!1)}(n.expression)));o&&(_|=8192,t++);{var o;Te.addRange(r,Te.visitNodes(e.body.statements,T,Te.isStatement,t)),f.mergeLexicalEnvironment(a,y()),R(a,e,!1),i?!o||t!==e.body.statements.length||4096&e.body.transformFlags?(L(r,e,o||F()),function e(t){{if(242===t.kind)return!0;if(234===t.kind){var r=t;if(r.elseStatement)return e(r.thenStatement)&&e(r.elseStatement)}else if(230===t.kind){var t=Te.lastOrUndefined(t.statements);if(t&&e(t))return!0}}return!1}(e.body)||r.push(f.createReturnStatement(f.createUniqueName("_this",48)))):(t=Te.cast(Te.cast(o,Te.isBinaryExpression).left,Te.isCallExpression),o=f.createReturnStatement(o),Te.setCommentRange(o,Te.getCommentRange(t)),Te.setEmitFlags(t,1536),r.push(o)):M(a,e)}r=f.createBlock(Te.setTextRange(f.createNodeArray(Te.concatenate(a,r)),e.body.statements),!0);return Te.setTextRange(r,e.body),r}(o,t,n,s));Te.setTextRange(s,o||t),n&&Te.setEmitFlags(s,8),e.push(s),D(a,49152,0),p=i}(r,e,n,t),function(e,t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];switch(i.kind){case 229:e.push(function(e){return Te.setTextRange(f.createEmptyStatement(),e)}(i));break;case 165:e.push(function(e,t,r){var n=Te.getCommentRange(t),i=Te.getSourceMapRange(t),a=j(t,t,void 0,r),o=Te.visitNode(t.name,T,Te.isPropertyName);s=!Te.isPrivateIdentifier(o)&&u.getCompilerOptions().useDefineForClassFields?(r=Te.isComputedPropertyName(o)?o.expression:Te.isIdentifier(o)?f.createStringLiteral(Te.unescapeLeadingUnderscores(o.escapedText)):o,f.createObjectDefinePropertyCall(e,r,f.createPropertyDescriptor({value:a,enumerable:!1,writable:!0,configurable:!0}))):(s=Te.createMemberAccessForPropertyName(f,e,o,t.name),f.createAssignment(s,a));Te.setEmitFlags(a,1536),Te.setSourceMapRange(a,i);var s=Te.setTextRange(f.createExpressionStatement(s),t);return Te.setOriginalNode(s,t),Te.setCommentRange(s,n),Te.setEmitFlags(s,48),s}(Se(t,i),i,t));break;case 167:case 168:var a=Te.getAllAccessorDeclarations(t.members,i);i===a.firstAccessor&&e.push(function(e,t,r){r=f.createExpressionStatement(B(e,t,r,!1));return Te.setEmitFlags(r,1536),Te.setSourceMapRange(r,Te.getSourceMapRange(t.firstAccessor)),r}(Se(t,i),a,t));break;case 166:break;default:Te.Debug.failBadSyntaxKind(i,l&&l.fileName)}}}(r,e);t=Te.createTokenRange(Te.skipTrivia(i,e.members.end),19),n=f.createPartiallyEmittedExpression(n);Te.setTextRangeEnd(n,t.end),Te.setEmitFlags(n,1536);n=f.createReturnStatement(n);Te.setTextRangePos(n,t.pos),Te.setEmitFlags(n,1920),r.push(n),Te.insertStatementsAfterStandardPrologue(r,y());e=f.createBlock(Te.setTextRange(f.createNodeArray(r),e.members),!0);return Te.setEmitFlags(e,1536),e}(e,t));Te.setEmitFlags(r,65536&Te.getEmitFlags(e)|524288);r=f.createPartiallyEmittedExpression(r);Te.setTextRangeEnd(r,e.end),Te.setEmitFlags(r,1536);r=f.createPartiallyEmittedExpression(r);Te.setTextRangeEnd(r,Te.skipTrivia(i,e.pos)),Te.setEmitFlags(r,1536);t=f.createParenthesizedExpression(f.createCallExpression(r,void 0,t?[Te.visitNode(t.expression,T,Te.isExpression)]:[]));return Te.addSyntheticLeadingComment(t,3,"* @class "),t}function F(){return Te.setEmitFlags(f.createThis(),4)}function P(){return f.createLogicalOr(f.createLogicalAnd(f.createStrictInequality(f.createUniqueName("_super",48),f.createNull()),f.createFunctionApplyCall(f.createUniqueName("_super",48),F(),f.createIdentifier("arguments"))),F())}function w(e){return void 0!==e.initializer||Te.isBindingPattern(e.name)}function I(e,t){if(!Te.some(t.parameters,w))return!1;for(var r,n=!1,i=0,a=t.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(Te.isBindingPattern(s)?n=function(e,t,r,n){{if(0<r.elements.length)return Te.insertStatementAfterCustomPrologue(e,Te.setEmitFlags(f.createVariableStatement(void 0,f.createVariableDeclarationList(Te.flattenDestructuringBinding(t,T,u,0,f.getGeneratedNameForNode(t)))),1048576)),!0;if(n)return Te.insertStatementAfterCustomPrologue(e,Te.setEmitFlags(f.createExpressionStatement(f.createAssignment(f.getGeneratedNameForNode(t),Te.visitNode(n,T,Te.isExpression))),1048576)),!0}return!1}(e,o,s,c)||n:c&&(r=e,o=o,s=s,c=c,c=Te.visitNode(c,T,Te.isExpression),c=f.createIfStatement(f.createTypeCheck(f.cloneNode(s),"undefined"),Te.setEmitFlags(Te.setTextRange(f.createBlock([f.createExpressionStatement(Te.setEmitFlags(Te.setTextRange(f.createAssignment(Te.setEmitFlags(Te.setParent(Te.setTextRange(f.cloneNode(s),s),s.parent),48),Te.setEmitFlags(c,1584|Te.getEmitFlags(c))),o),1536))]),o),1953)),Te.startOnNewLine(c),Te.setTextRange(c,o),Te.setEmitFlags(c,1050528),Te.insertStatementAfterCustomPrologue(r,c),n=!0))}return n}function O(e,t,r){var n=[],i=Te.lastOrUndefined(t.parameters);if(o=r,!(a=i)||!a.dotDotDotToken||o)return!1;r=78===i.name.kind?Te.setParent(Te.setTextRange(f.cloneNode(i.name),i.name),i.name.parent):f.createTempVariable(void 0);Te.setEmitFlags(r,48);var a=78===i.name.kind?f.cloneNode(i.name):r,o=t.parameters.length-1,t=f.createLoopVariable();n.push(Te.setEmitFlags(Te.setTextRange(f.createVariableStatement(void 0,f.createVariableDeclarationList([f.createVariableDeclaration(r,void 0,void 0,f.createArrayLiteralExpression([]))])),i),1048576));t=f.createForStatement(Te.setTextRange(f.createVariableDeclarationList([f.createVariableDeclaration(t,void 0,void 0,f.createNumericLiteral(o))]),i),Te.setTextRange(f.createLessThan(t,f.createPropertyAccessExpression(f.createIdentifier("arguments"),"length")),i),Te.setTextRange(f.createPostfixIncrement(t),i),f.createBlock([Te.startOnNewLine(Te.setTextRange(f.createExpressionStatement(f.createAssignment(f.createElementAccessExpression(a,0==o?t:f.createSubtract(t,f.createNumericLiteral(o))),f.createElementAccessExpression(f.createIdentifier("arguments"),t))),i))]));return Te.setEmitFlags(t,1048576),Te.startOnNewLine(t),n.push(t),78!==i.name.kind&&n.push(Te.setEmitFlags(Te.setTextRange(f.createVariableStatement(void 0,f.createVariableDeclarationList(Te.flattenDestructuringBinding(i,T,u,0,a))),i),1048576)),Te.insertStatementsAfterCustomPrologue(e,n),!0}function M(e,t){return 32768&_&&209!==t.kind&&(L(e,t,f.createThis()),1)}function L(e,t,r){De();r=f.createVariableStatement(void 0,f.createVariableDeclarationList([f.createVariableDeclaration(f.createUniqueName("_this",48),void 0,void 0,r)]));Te.setEmitFlags(r,1050112),Te.setSourceMapRange(r,t),Te.insertStatementAfterCustomPrologue(e,r)}function R(e,t,r){if(16384&_){var n=void 0;switch(t.kind){case 209:return e;case 165:case 167:case 168:n=f.createVoidZero();break;case 166:n=f.createPropertyAccessExpression(Te.setEmitFlags(f.createThis(),4),"constructor");break;case 251:case 208:n=f.createConditionalExpression(f.createLogicalAnd(Te.setEmitFlags(f.createThis(),4),f.createBinaryExpression(Te.setEmitFlags(f.createThis(),4),101,f.getLocalName(t))),void 0,f.createPropertyAccessExpression(Te.setEmitFlags(f.createThis(),4),"constructor"),void 0,f.createVoidZero());break;default:return Te.Debug.failBadSyntaxKind(t)}var i=f.createVariableStatement(void 0,f.createVariableDeclarationList([f.createVariableDeclaration(f.createUniqueName("_newTarget",48),void 0,void 0,n)]));Te.setEmitFlags(i,1050112),r&&(e=e.slice()),Te.insertStatementAfterCustomPrologue(e,i)}return e}function B(e,t,r,n){var i=t.firstAccessor,a=t.getAccessor,o=t.setAccessor,s=Te.setParent(Te.setTextRange(f.cloneNode(e),e),e.parent);Te.setEmitFlags(s,1568),Te.setSourceMapRange(s,i.name);t=Te.visitNode(i.name,T,Te.isPropertyName);if(Te.isPrivateIdentifier(t))return Te.Debug.failBadSyntaxKind(t,"Encountered unhandled private identifier while transforming ES2015.");e=Te.createExpressionForPropertyName(f,t);Te.setEmitFlags(e,1552),Te.setSourceMapRange(e,i.name);t=[];a&&(i=j(a,void 0,void 0,r),Te.setSourceMapRange(i,Te.getSourceMapRange(a)),Te.setEmitFlags(i,512),i=f.createPropertyAssignment("get",i),Te.setCommentRange(i,Te.getCommentRange(a)),t.push(i)),o&&(r=j(o,void 0,void 0,r),Te.setSourceMapRange(r,Te.getSourceMapRange(o)),Te.setEmitFlags(r,512),r=f.createPropertyAssignment("set",r),Te.setCommentRange(r,Te.getCommentRange(o)),t.push(r)),t.push(f.createPropertyAssignment("enumerable",a||o?f.createFalse():f.createTrue()),f.createPropertyAssignment("configurable",f.createTrue()));t=f.createCallExpression(f.createPropertyAccessExpression(f.createIdentifier("Object"),"defineProperty"),void 0,[s,e,f.createObjectLiteralExpression(t,!0)]);return n&&Te.startOnNewLine(t),t}function j(e,t,r,n){var i=p;p=void 0;var a=n&&Te.isClassLike(n)&&!Te.hasSyntacticModifier(e,32)?x(16286,73):x(16286,65),o=Te.visitParameterList(e.parameters,T,u),n=J(e);return 16384&_&&!r&&(251===e.kind||208===e.kind)&&(r=f.getGeneratedNameForNode(e)),D(a,49152,0),p=i,Te.setOriginalNode(Te.setTextRange(f.createFunctionExpression(void 0,e.asteriskToken,r,void 0,o,void 0,n),t),e)}function J(e){var t,r,n=!1,i=!1,a=[],o=[],s=e.body;if(m(),Te.isBlock(s)&&(t=f.copyStandardPrologue(s.statements,a,!1),t=f.copyCustomPrologue(s.statements,o,t,T,Te.isHoistedFunction),t=f.copyCustomPrologue(s.statements,o,t,T,Te.isHoistedVariableStatement)),n=I(o,e)||n,n=O(o,e,!1)||n,Te.isBlock(s)?(t=f.copyCustomPrologue(s.statements,o,t,T),c=s.statements,Te.addRange(o,Te.visitNodes(s.statements,T,Te.isStatement,t)),!n&&s.multiLine&&(n=!0)):(Te.Debug.assert(209===e.kind),c=Te.moveRangeEnd(s,-1),r=e.equalsGreaterThanToken,Te.nodeIsSynthesized(r)||Te.nodeIsSynthesized(s)||(Te.rangeEndIsOnSameLineAsRangeStart(r,s,l)?i=!0:n=!0),r=Te.visitNode(s,T,Te.isExpression),r=f.createReturnStatement(r),Te.setTextRange(r,s),Te.moveSyntheticComments(r,s),Te.setEmitFlags(r,1440),o.push(r),r=s),f.mergeLexicalEnvironment(a,y()),R(a,e,!1),M(a,e),Te.some(a)&&(n=!0),o.unshift.apply(o,a),Te.isBlock(s)&&Te.arrayIsEqualTo(o,s.statements))return s;var c=f.createBlock(Te.setTextRange(f.createNodeArray(o),c),n);return Te.setTextRange(c,e.body),!n&&i&&Te.setEmitFlags(c,1),r&&Te.setTokenSourceMapRange(c,19,r),Te.setOriginalNode(c,e.body),c}function z(e,t){return Te.isDestructuringAssignment(e)?Te.flattenDestructuringAssignment(e,T,u,0,!t):27===e.operatorToken.kind?f.updateBinaryExpression(e,Te.visitNode(e.left,C,Te.isExpression),e.operatorToken,Te.visitNode(e.right,t?C:T,Te.isExpression)):Te.visitEachChild(e,T,u)}function U(e){var t,r,n=e.name;return Te.isBindingPattern(n)?V(e):e.initializer||(t=e,n=262144&(r=v.getNodeCheckFlags(t)),r&=524288,0!=(64&_)||n&&r&&0!=(512&_)||0!=(4096&_)||v.isDeclarationWithCollidingName(t)&&(!r||n||0!=(6144&_)))?Te.visitEachChild(e,T,u):f.updateVariableDeclaration(e,e.name,void 0,void 0,f.createVoidZero())}function V(e){var t=x(32,0),e=Te.isBindingPattern(e.name)?Te.flattenDestructuringBinding(e,T,u,0,void 0,0!=(32&t)):Te.visitEachChild(e,T,u);return D(t,0,0),e}function K(e){p.labels.set(Te.idText(e.label),!0)}function q(e){p.labels.set(Te.idText(e.label),!1)}function W(e,t,r,n,i){t=x(e,t),i=function(e,t,r,n){if(!ie(e)){var i=void 0;p&&(i=p.allowedNonLabeledJumps,p.allowedNonLabeledJumps=6);var a=n?n(e,t,void 0,r):f.restoreEnclosingLabel(Te.isForStatement(e)?function(e){return f.updateForStatement(e,Te.visitNode(e.initializer,C,Te.isForInitializer),Te.visitNode(e.condition,T,Te.isExpression),Te.visitNode(e.incrementor,C,Te.isExpression),Te.visitNode(e.statement,T,Te.isStatement,f.liftToBlock))}(e):Te.visitEachChild(e,T,u),t,p&&q);return p&&(p.allowedNonLabeledJumps=i),a}var o=function(e){var t;switch(e.kind){case 237:case 238:case 239:var r=e.initializer;r&&250===r.kind&&(t=r)}var n=[],i=[];if(t&&3&Te.getCombinedNodeFlags(t))for(var a=re(e),o=0,s=t.declarations;o<s.length;o++){var c=s[o];!function e(t,r,n,i,a){var o=r.name;if(Te.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];Te.isOmittedExpression(u)||e(t,u,n,i,a)}else{n.push(f.createParameterDeclaration(void 0,void 0,void 0,o));var l,_,d=v.getNodeCheckFlags(r);(4194304&d||a)&&(l=f.createUniqueName("out_"+Te.idText(o)),_=0,4194304&d&&(_|=1),Te.isForStatement(t)&&t.initializer&&v.isBindingCapturedByNode(t.initializer,r)&&(_|=2),i.push({flags:_,originalName:o,outParamName:l}))}}(e,c,n,i,a)}var u={loopParameters:n,loopOutParameters:i};p&&(p.argumentsName&&(u.argumentsName=p.argumentsName),p.thisName&&(u.thisName=p.thisName),p.hoistedLocalVariables&&(u.hoistedLocalVariables=p.hoistedLocalVariables));return u}(e),s=[],c=p;p=o;i=re(e)?function(e,t){var r=f.createUniqueName("_loop_init"),n=0!=(262144&e.initializer.transformFlags),i=0;t.containsLexicalThis&&(i|=8);n&&4&_&&(i|=262144);var a=[];a.push(f.createVariableStatement(void 0,e.initializer)),ue(t.loopOutParameters,2,1,a);i=f.createVariableStatement(void 0,Te.setEmitFlags(f.createVariableDeclarationList([f.createVariableDeclaration(r,void 0,void 0,Te.setEmitFlags(f.createFunctionExpression(void 0,n?f.createToken(41):void 0,void 0,void 0,void 0,void 0,Te.visitNode(f.createBlock(a,!0),T,Te.isBlock)),i))]),2097152)),t=f.createVariableDeclarationList(Te.map(t.loopOutParameters,se));return{functionName:r,containsYield:n,functionDeclaration:i,part:t}}(e,o):void 0,a=ae(e)?function(e,t,r){var n=f.createUniqueName("_loop");g();var i=Te.visitNode(e.statement,T,Te.isStatement,f.liftToBlock),a=y(),o=[];(ne(e)||function(e){return Te.isForStatement(e)&&!!e.incrementor&&te(e.incrementor)}(e))&&(t.conditionVariable=f.createUniqueName("inc"),e.incrementor?o.push(f.createIfStatement(t.conditionVariable,f.createExpressionStatement(Te.visitNode(e.incrementor,T,Te.isExpression)),f.createExpressionStatement(f.createAssignment(t.conditionVariable,f.createTrue())))):o.push(f.createIfStatement(f.createLogicalNot(t.conditionVariable),f.createExpressionStatement(f.createAssignment(t.conditionVariable,f.createTrue())))),ne(e)&&o.push(f.createIfStatement(f.createPrefixUnaryExpression(53,Te.visitNode(e.condition,T,Te.isExpression)),Te.visitNode(f.createBreakStatement(),T,Te.isStatement))));Te.isBlock(i)?Te.addRange(o,i.statements):o.push(i);ue(t.loopOutParameters,1,1,o),Te.insertStatementsAfterStandardPrologue(o,a);o=f.createBlock(o,!0);Te.isBlock(i)&&Te.setOriginalNode(o,i);i=0!=(262144&e.statement.transformFlags),e=0;t.containsLexicalThis&&(e|=8);i&&0!=(4&_)&&(e|=262144);e=f.createVariableStatement(void 0,Te.setEmitFlags(f.createVariableDeclarationList([f.createVariableDeclaration(n,void 0,void 0,Te.setEmitFlags(f.createFunctionExpression(void 0,i?f.createToken(41):void 0,void 0,void 0,t.loopParameters,void 0,o),e))]),2097152)),r=function(e,t,r,n){var i=[],a=!(-5&t.nonLocalJumps||t.labeledNonLocalBreaks||t.labeledNonLocalContinues),e=f.createCallExpression(e,void 0,Te.map(t.loopParameters,function(e){return e.name})),e=n?f.createYieldExpression(f.createToken(41),Te.setEmitFlags(e,8388608)):e;{var o;a?(i.push(f.createExpressionStatement(e)),ue(t.loopOutParameters,1,0,i)):(a=f.createUniqueName("state"),e=f.createVariableStatement(void 0,f.createVariableDeclarationList([f.createVariableDeclaration(a,void 0,void 0,e)])),i.push(e),ue(t.loopOutParameters,1,0,i),8&t.nonLocalJumps&&(o=void 0,o=r?(r.nonLocalJumps|=8,f.createReturnStatement(a)):f.createReturnStatement(f.createPropertyAccessExpression(a,"value")),i.push(f.createIfStatement(f.createTypeCheck(a,"object"),o))),2&t.nonLocalJumps&&i.push(f.createIfStatement(f.createStrictEquality(a,f.createStringLiteral("break")),f.createBreakStatement())),(t.labeledNonLocalBreaks||t.labeledNonLocalContinues)&&(o=[],_e(t.labeledNonLocalBreaks,!0,a,r,o),_e(t.labeledNonLocalContinues,!1,a,r,o),i.push(f.createSwitchStatement(a,f.createCaseBlock(o)))))}return i}(n,t,r,i);return{functionName:n,containsYield:i,functionDeclaration:e,part:r}}(e,o,c):void 0;p=c,i&&s.push(i.functionDeclaration);a&&s.push(a.functionDeclaration);(function(e,t,r){var n;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n=n||[]).push(f.createVariableDeclaration(t.argumentsName,void 0,void 0,f.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n=n||[]).push(f.createVariableDeclaration(t.thisName,void 0,void 0,f.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n=n||[];for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(f.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n=n||[];for(var s=0,c=t.loopOutParameters;s<c.length;s++){var u=c[s];n.push(f.createVariableDeclaration(u.outParamName))}}t.conditionVariable&&(n=n||[]).push(f.createVariableDeclaration(t.conditionVariable,void 0,void 0,f.createFalse())),n&&e.push(f.createVariableStatement(void 0,f.createVariableDeclarationList(n)))})(s,o,c),i&&s.push(function(e,t){e=f.createCallExpression(e,void 0,[]),e=t?f.createYieldExpression(f.createToken(41),Te.setEmitFlags(e,8388608)):e;return f.createExpressionStatement(e)}(i.functionName,i.containsYield));t=a?n?n(e,t,a.part,r):(a=oe(e,i,f.createBlock(a.part,!0)),f.restoreEnclosingLabel(a,t,p&&q)):(e=oe(e,i,Te.visitNode(e.statement,T,Te.isStatement,f.liftToBlock)),f.restoreEnclosingLabel(e,t,p&&q));return s.push(t),s}(r,n,t,i);return D(t,0,0),i}function H(e,t){return W(0,1280,e,t)}function G(e,t){return W(5056,3328,e,t)}function X(e,t){return W(3008,5376,e,t)}function Q(e,t){return W(3008,5376,e,t,n.downlevelIteration?ee:$)}function Y(e,t,r){var n,i,a,o=[],s=e.initializer;if(Te.isVariableDeclarationList(s)?(3&e.initializer.flags&&xe(),(n=Te.firstOrUndefined(s.declarations))&&Te.isBindingPattern(n.name)?(i=Te.flattenDestructuringBinding(n,T,u,0,t),a=Te.setTextRange(f.createVariableDeclarationList(i),e.initializer),Te.setOriginalNode(a,e.initializer),Te.setSourceMapRange(a,Te.createRange(i[0].pos,Te.last(i).end)),o.push(f.createVariableStatement(void 0,a))):o.push(Te.setTextRange(f.createVariableStatement(void 0,Te.setOriginalNode(Te.setTextRange(f.createVariableDeclarationList([f.createVariableDeclaration(n?n.name:f.createTempVariable(void 0),void 0,void 0,t)]),Te.moveRangePos(s,-1)),s)),Te.moveRangeEnd(s,-1)))):(t=f.createAssignment(s,t),Te.isDestructuringAssignment(t)?o.push(f.createExpressionStatement(z(t,!0))):(Te.setTextRangeEnd(t,s.end),o.push(Te.setTextRange(f.createExpressionStatement(Te.visitNode(t,T,Te.isExpression)),Te.moveRangeEnd(s,-1))))),r)return Z(Te.addRange(o,r));e=Te.visitNode(e.statement,T,Te.isStatement,f.liftToBlock);return Te.isBlock(e)?f.updateBlock(e,Te.setTextRange(f.createNodeArray(Te.concatenate(o,e.statements)),e.statements)):(o.push(e),Z(o))}function Z(e){return Te.setEmitFlags(f.createBlock(f.createNodeArray(e),!0),432)}function $(e,t,r){var n=Te.visitNode(e.expression,T,Te.isExpression),i=f.createLoopVariable(),a=Te.isIdentifier(n)?f.getGeneratedNameForNode(n):f.createTempVariable(void 0);Te.setEmitFlags(n,48|Te.getEmitFlags(n));r=Te.setTextRange(f.createForStatement(Te.setEmitFlags(Te.setTextRange(f.createVariableDeclarationList([Te.setTextRange(f.createVariableDeclaration(i,void 0,void 0,f.createNumericLiteral(0)),Te.moveRangePos(e.expression,-1)),Te.setTextRange(f.createVariableDeclaration(a,void 0,void 0,n),e.expression)]),e.expression),2097152),Te.setTextRange(f.createLessThan(i,f.createPropertyAccessExpression(a,"length")),e.expression),Te.setTextRange(f.createPostfixIncrement(i),e.expression),Y(e,f.createElementAccessExpression(a,i),r)),e);return Te.setEmitFlags(r,256),Te.setTextRange(r,e),f.restoreEnclosingLabel(r,t,p&&q)}function ee(e,t,r,n){var i=Te.visitNode(e.expression,T,Te.isExpression),a=Te.isIdentifier(i)?f.getGeneratedNameForNode(i):f.createTempVariable(void 0),o=Te.isIdentifier(i)?f.getGeneratedNameForNode(a):f.createTempVariable(void 0),s=f.createUniqueName("e"),c=f.getGeneratedNameForNode(s),u=f.createTempVariable(void 0),l=Te.setTextRange(d().createValuesHelper(i),e.expression),i=f.createCallExpression(f.createPropertyAccessExpression(a,"next"),void 0,[]);h(s),h(u);l=1024&n?f.inlineExpressions([f.createAssignment(s,f.createVoidZero()),l]):l,e=Te.setEmitFlags(Te.setTextRange(f.createForStatement(Te.setEmitFlags(Te.setTextRange(f.createVariableDeclarationList([Te.setTextRange(f.createVariableDeclaration(a,void 0,void 0,l),e.expression),f.createVariableDeclaration(o,void 0,void 0,i)]),e.expression),2097152),f.createLogicalNot(f.createPropertyAccessExpression(o,"done")),f.createAssignment(o,i),Y(e,f.createPropertyAccessExpression(o,"value"),r)),e),256);return f.createTryStatement(f.createBlock([f.restoreEnclosingLabel(e,t,p&&q)]),f.createCatchClause(f.createVariableDeclaration(c),Te.setEmitFlags(f.createBlock([f.createExpressionStatement(f.createAssignment(s,f.createObjectLiteralExpression([f.createPropertyAssignment("error",c)])))]),1)),f.createBlock([f.createTryStatement(f.createBlock([Te.setEmitFlags(f.createIfStatement(f.createLogicalAnd(f.createLogicalAnd(o,f.createLogicalNot(f.createPropertyAccessExpression(o,"done"))),f.createAssignment(u,f.createPropertyAccessExpression(a,"return"))),f.createExpressionStatement(f.createFunctionCallCall(u,a,[]))),1)]),void 0,Te.setEmitFlags(f.createBlock([Te.setEmitFlags(f.createIfStatement(s,f.createThrowStatement(f.createPropertyAccessExpression(s,"error"))),1)]),1))]))}function te(e){return 0!=(131072&v.getNodeCheckFlags(e))}function re(e){return Te.isForStatement(e)&&!!e.initializer&&te(e.initializer)}function ne(e){return Te.isForStatement(e)&&e.condition&&te(e.condition)}function ie(e){return ae(e)||re(e)}function ae(e){return 0!=(65536&v.getNodeCheckFlags(e))}function oe(e,t,r){switch(e.kind){case 237:return c=t,u=r,l=(s=e).condition&&te(s.condition),_=l||s.incrementor&&te(s.incrementor),f.updateForStatement(s,Te.visitNode(c?c.part:s.initializer,C,Te.isForInitializer),Te.visitNode(l?void 0:s.condition,T,Te.isExpression),Te.visitNode(_?void 0:s.incrementor,C,Te.isExpression),u);case 238:return a=e,o=r,f.updateForInStatement(a,Te.visitNode(a.initializer,T,Te.isForInitializer),Te.visitNode(a.expression,T,Te.isExpression),o);case 239:return a=e,o=r,f.updateForOfStatement(a,void 0,Te.visitNode(a.initializer,T,Te.isForInitializer),Te.visitNode(a.expression,T,Te.isExpression),o);case 235:return n=e,i=r,f.updateDoStatement(n,i,Te.visitNode(n.expression,T,Te.isExpression));case 236:return i=e,n=r,f.updateWhileStatement(i,Te.visitNode(i.expression,T,Te.isExpression),n);default:return Te.Debug.failBadSyntaxKind(e,"IterationStatement expected")}var n,i,a,o,s,c,u,l,_}function se(e){return f.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function ce(e,t){var r=0===t?e.outParamName:e.originalName,e=0===t?e.originalName:e.outParamName;return f.createBinaryExpression(e,62,r)}function ue(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(f.createExpressionStatement(ce(o,r)))}}function le(e,t,r,n){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Te.Map),e.labeledNonLocalBreaks.set(r,n)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Te.Map),e.labeledNonLocalContinues.set(r,n))}function _e(e,i,a,o,s){e&&e.forEach(function(e,t){var r,n=[];!o||o.labels&&o.labels.get(t)?(r=f.createIdentifier(t),n.push(i?f.createBreakStatement(r):f.createContinueStatement(r))):(le(o,i,t,e),n.push(f.createReturnStatement(a))),s.push(f.createCaseClause(f.createStringLiteral(e),n))})}function de(e,t){if(8192&e.transformFlags||105===e.expression.kind||Te.isSuperProperty(Te.skipOuterExpressions(e.expression))){var r=f.createCallBinding(e.expression,h),n=r.target,i=r.thisArg;105===e.expression.kind&&Te.setEmitFlags(i,4);r=void 0;return r=8192&e.transformFlags?f.createFunctionApplyCall(Te.visitNode(n,E,Te.isExpression),105===e.expression.kind?i:Te.visitNode(i,T,Te.isExpression),pe(e.arguments,!1,!1,!1)):Te.setTextRange(f.createFunctionCallCall(Te.visitNode(n,E,Te.isExpression),105===e.expression.kind?i:Te.visitNode(i,T,Te.isExpression),Te.visitNodes(e.arguments,T,Te.isExpression)),e),105===e.expression.kind&&(i=f.createLogicalOr(r,F()),r=t?f.createAssignment(f.createUniqueName("_this",48),i):i),Te.setOriginalNode(r,e)}return Te.visitEachChild(e,T,u)}function pe(e,t,i,a){var o=e.length,e=Te.flatten(Te.spanMap(e,me,function(e,t,r,n){return t(e,i,a&&n===o)}));if(n.downlevelIteration){if(1===e.length)if(ge(r=e[0],"___spread"))return e[0];return d().createSpreadHelper(e)}if(1===e.length){var r=e[0];if(!t||(t=r,Te.isArrayLiteralExpression(t)&&Te.every(t.elements,fe))||ge(r,"___spreadArrays"))return e[0]}return d().createSpreadArraysHelper(e)}function fe(e){return!Te.isOmittedExpression(e)}function ge(e,t){return Te.isCallExpression(e)&&Te.isIdentifier(e.expression)&&4096&Te.getEmitFlags(e.expression)&&e.expression.escapedText===t}function me(e){return Te.isSpreadElement(e)?ye:he}function ye(e){return Te.map(e,ve)}function he(e,t,r){return f.createArrayLiteralExpression(Te.visitNodes(f.createNodeArray(e,r),T,Te.isExpression),t)}function ve(e){return Te.visitNode(e.expression,T,Te.isExpression)}function be(e){return 8&_&&!e?f.createPropertyAccessExpression(f.createUniqueName("_super",48),"prototype"):f.createUniqueName("_super",48)}function xe(){0==(2&o)&&(o|=2,u.enableSubstitution(78))}function De(){0==(1&o)&&(o|=1,u.enableSubstitution(107),u.enableEmitNotification(166),u.enableEmitNotification(165),u.enableEmitNotification(167),u.enableEmitNotification(168),u.enableEmitNotification(209),u.enableEmitNotification(208),u.enableEmitNotification(251))}function Se(e,t){return Te.hasSyntacticModifier(t,32)?f.getInternalName(e):f.createPropertyAccessExpression(f.getInternalName(e),"prototype")}}}(ts=ts||{}),function(s){s.transformES5=function(e){var i,a,r=e.factory,t=e.getCompilerOptions();1!==t.jsx&&3!==t.jsx||(i=e.onEmitNode,e.onEmitNode=function(e,t,r){switch(t.kind){case 275:case 276:case 274:var n=t.tagName;a[s.getOriginalNodeId(n)]=!0}i(e,t,r)},e.enableEmitNotification(275),e.enableEmitNotification(276),e.enableEmitNotification(274),a=[]);var n=e.onSubstituteNode;return e.onSubstituteNode=function(e,t){if(t.id&&a&&a[t.id])return n(e,t);{if(t=n(e,t),s.isPropertyAccessExpression(t))return function(e){if(s.isPrivateIdentifier(e.name))return e;var t=o(e.name);if(t)return s.setTextRange(r.createElementAccessExpression(e.expression,t),e);return e}(t);if(s.isPropertyAssignment(t))return function(e){var t=s.isIdentifier(e.name)&&o(e.name);if(t)return r.updatePropertyAssignment(e,t,e.initializer);return e}(t)}return t},e.enableSubstitution(201),e.enableSubstitution(288),s.chainBundle(e,function(e){return e});function o(e){var t=e.originalKeywordKind||(s.nodeIsSynthesized(e)?s.stringToToken(s.idText(e)):void 0);if(void 0!==t&&80<=t&&t<=115)return s.setTextRange(r.createStringLiteralFromNode(e),e)}}}(ts=ts||{}),function(Pe){var 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",(e={})[e.Open=0]="Open",e[e.Close=1]="Close",(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",(e={})[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done",(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",Pe.transformGenerators=function(a){var n,i,m,y,h,v,b,x,D,S,T=a.factory,C=a.getEmitHelperFactory,E=a.resumeLexicalEnvironment,k=a.endLexicalEnvironment,o=a.hoistFunctionDeclaration,l=a.hoistVariableDeclaration,e=a.getCompilerOptions(),s=Pe.getEmitScriptTarget(e),r=a.getEmitResolver(),c=a.onSubstituteNode;a.onSubstituteNode=function(e,t){return t=c(e,t),1!==e?t:function(e){if(Pe.isIdentifier(e))return function(e){if(!Pe.isGeneratedIdentifier(e)&&n&&n.has(Pe.idText(e))){var t=Pe.getOriginalNode(e);if(Pe.isIdentifier(t)&&t.parent){t=r.getReferencedValueDeclaration(t);if(t){t=i[Pe.getOriginalNodeId(t)];if(t){t=Pe.setParent(Pe.setTextRange(T.cloneNode(t),t),t.parent);return Pe.setSourceMapRange(t,e),Pe.setCommentRange(t,e),t}}}}return e}(e);return e}(t)};var N,A,F,P,w,I,O,M,L,R,B,j,J=1,z=0,U=0;return Pe.chainBundle(a,function(e){if(e.isDeclarationFile||0==(512&e.transformFlags))return e;e=Pe.visitEachChild(e,V,a);return Pe.addEmitHelpers(e,a.readEmitHelpers()),e});function V(e){var t=e.transformFlags;return y?function(e){switch(e.kind){case 235:return function(e){return y?(ae(),e=Pe.visitEachChild(e,V,a),se(),e):Pe.visitEachChild(e,V,a)}(e);case 236:return function(e){return y?(ae(),e=Pe.visitEachChild(e,V,a),se(),e):Pe.visitEachChild(e,V,a)}(e);case 244:return function(e){y&&te({kind:2,isScript:!0,breakLabel:-1});e=Pe.visitEachChild(e,V,a),y&&ce();return e}(e);case 245:return function(e){y&&te({kind:4,isScript:!0,labelText:Pe.idText(e.label),breakLabel:-1});e=Pe.visitEachChild(e,V,a),y&&ue();return e}(e);default:return u(e)}}(e):m?u(e):Pe.isFunctionLikeDeclaration(e)&&e.asteriskToken?function(e){switch(e.kind){case 251:return _(e);case 208:return d(e);default:return Pe.Debug.failBadSyntaxKind(e)}}(e):512&t?Pe.visitEachChild(e,V,a):e}function u(e){switch(e.kind){case 251:return _(e);case 208:return d(e);case 167:case 168:return t=e,r=m,n=y,y=m=!1,t=Pe.visitEachChild(t,V,a),m=r,y=n,t;case 232:return function(e){{if(!(262144&e.transformFlags)){if(1048576&Pe.getEmitFlags(e))return e;for(var t=0,r=e.declarationList.declarations;t<r.length;t++){var n=r[t];l(n.name)}var i=Pe.getInitializedVariables(e.declarationList);return 0!==i.length?Pe.setSourceMapRange(T.createExpressionStatement(T.inlineExpressions(Pe.map(i,G))),e):void 0}H(e.declarationList)}}(e);case 237:return function(e){y&&ae();var t=e.initializer;if(t&&Pe.isVariableDeclarationList(t)){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];l(i.name)}t=Pe.getInitializedVariables(t);e=T.updateForStatement(e,0<t.length?T.inlineExpressions(Pe.map(t,G)):void 0,Pe.visitNode(e.condition,V,Pe.isExpression),Pe.visitNode(e.incrementor,V,Pe.isExpression),Pe.visitNode(e.statement,V,Pe.isStatement,T.liftToBlock))}else e=Pe.visitEachChild(e,V,a);y&&se();return e}(e);case 238:return function(e){y&&ae();var t=e.initializer;if(Pe.isVariableDeclarationList(t)){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];l(i.name)}e=T.updateForInStatement(e,t.declarations[0].name,Pe.visitNode(e.expression,V,Pe.isExpression),Pe.visitNode(e.statement,V,Pe.isStatement,T.liftToBlock))}else e=Pe.visitEachChild(e,V,a);y&&se();return e}(e);case 241:return function(e){if(y){var t=fe(e.label&&Pe.idText(e.label));if(0<t)return he(t,e)}return Pe.visitEachChild(e,V,a)}(e);case 240:return function(e){if(y){var t=ge(e.label&&Pe.idText(e.label));if(0<t)return he(t,e)}return Pe.visitEachChild(e,V,a)}(e);case 242:return t=e,function(e,t){return Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression(e?[ye(2),e]:[ye(2)])),t)}(Pe.visitNode(t.expression,V,Pe.isExpression),t);default:return 262144&e.transformFlags?function(e){switch(e.kind){case 216:return function(e){var t=Pe.getExpressionAssociativity(e);switch(t){case 0:return function(e){if(X(e.right))return Pe.isLogicalOperator(e.operatorToken.kind)?function(e){var t=$(),r=Z();xe(r,Pe.visitNode(e.left,V,Pe.isExpression),e.left),(55===e.operatorToken.kind?Te:Se)(t,r,e.left);return xe(r,Pe.visitNode(e.right,V,Pe.isExpression),e.right),ee(t),r}(e):27===e.operatorToken.kind?f(e):T.updateBinaryExpression(e,Y(Pe.visitNode(e.left,V,Pe.isExpression)),e.operatorToken,Pe.visitNode(e.right,V,Pe.isExpression));return Pe.visitEachChild(e,V,a)}(e);case 1:return function(e){var t=e.left,r=e.right;if(X(r)){var n=void 0;switch(t.kind){case 201:n=T.updatePropertyAccessExpression(t,Y(Pe.visitNode(t.expression,V,Pe.isLeftHandSideExpression)),t.name);break;case 202:n=T.updateElementAccessExpression(t,Y(Pe.visitNode(t.expression,V,Pe.isLeftHandSideExpression)),Y(Pe.visitNode(t.argumentExpression,V,Pe.isExpression)));break;default:n=Pe.visitNode(t,V,Pe.isExpression)}var i=e.operatorToken.kind;return Pe.isCompoundAssignment(i)?Pe.setTextRange(T.createAssignment(n,Pe.setTextRange(T.createBinaryExpression(Y(n),Pe.getNonAssignmentOperatorForCompoundAssignment(i),Pe.visitNode(r,V,Pe.isExpression)),e)),e):T.updateBinaryExpression(e,n,e.operatorToken,Pe.visitNode(r,V,Pe.isExpression))}return Pe.visitEachChild(e,V,a)}(e);default:return Pe.Debug.assertNever(t)}}(e);case 337:return function(e){for(var t=[],r=0,n=e.elements;r<n.length;r++){var i=n[r];Pe.isBinaryExpression(i)&&27===i.operatorToken.kind?t.push(f(i)):(X(i)&&0<t.length&&(Ce(1,[T.createExpressionStatement(T.inlineExpressions(t))]),t=[]),t.push(Pe.visitNode(i,V,Pe.isExpression)))}return T.inlineExpressions(t)}(e);case 217:return function(e){if(X(e.whenTrue)||X(e.whenFalse)){var t=$(),r=$(),n=Z();return Te(t,Pe.visitNode(e.condition,V,Pe.isExpression),e.condition),xe(n,Pe.visitNode(e.whenTrue,V,Pe.isExpression),e.whenTrue),De(r),ee(t),xe(n,Pe.visitNode(e.whenFalse,V,Pe.isExpression),e.whenFalse),ee(r),n}return Pe.visitEachChild(e,V,a)}(e);case 219:return function(e){var t=$(),r=Pe.visitNode(e.expression,V,Pe.isExpression);e.asteriskToken?Ce(7,[0==(8388608&Pe.getEmitFlags(e.expression))?Pe.setTextRange(C().createValuesHelper(r),e):r],e):Ce(6,[r],e);return ee(t),function(e){return Pe.setTextRange(T.createCallExpression(T.createPropertyAccessExpression(P,"sent"),void 0,[]),e)}(e)}(e);case 199:return function(e){return g(e.elements,void 0,void 0,e.multiLine)}(e);case 200:return function(r){var e=r.properties,n=r.multiLine,t=Q(e),i=Z();xe(i,T.createObjectLiteralExpression(Pe.visitNodes(e,V,Pe.isObjectLiteralElementLike,0,t),n));t=Pe.reduceLeft(e,function(e,t){X(t)&&0<e.length&&(be(T.createExpressionStatement(T.inlineExpressions(e))),e=[]);t=Pe.createExpressionForObjectLiteralElementLike(T,r,t,i),t=Pe.visitNode(t,V,Pe.isExpression);t&&(n&&Pe.startOnNewLine(t),e.push(t));return e},[],t);return t.push(n?Pe.startOnNewLine(Pe.setParent(Pe.setTextRange(T.cloneNode(i),i),i.parent)):i),T.inlineExpressions(t)}(e);case 202:return function(e){if(X(e.argumentExpression))return T.updateElementAccessExpression(e,Y(Pe.visitNode(e.expression,V,Pe.isLeftHandSideExpression)),Pe.visitNode(e.argumentExpression,V,Pe.isExpression));return Pe.visitEachChild(e,V,a)}(e);case 203:return function(e){if(Pe.isImportCall(e)||!Pe.forEach(e.arguments,X))return Pe.visitEachChild(e,V,a);var t=T.createCallBinding(e.expression,l,s,!0),r=t.target,t=t.thisArg;return Pe.setOriginalNode(Pe.setTextRange(T.createFunctionApplyCall(Y(Pe.visitNode(r,V,Pe.isLeftHandSideExpression)),t,g(e.arguments)),e),e)}(e);case 204:return function(e){if(Pe.forEach(e.arguments,X)){var t=T.createCallBinding(T.createPropertyAccessExpression(e.expression,"bind"),l),r=t.target,t=t.thisArg;return Pe.setOriginalNode(Pe.setTextRange(T.createNewExpression(T.createFunctionApplyCall(Y(Pe.visitNode(r,V,Pe.isExpression)),t,g(e.arguments,T.createVoidZero())),void 0,[]),e),e)}return Pe.visitEachChild(e,V,a)}(e);default:return Pe.visitEachChild(e,V,a)}}(e):1049088&e.transformFlags?Pe.visitEachChild(e,V,a):e}var t,r,n}function _(e){var t,r;if(e.asteriskToken?e=Pe.setOriginalNode(Pe.setTextRange(T.createFunctionDeclaration(void 0,e.modifiers,void 0,e.name,void 0,Pe.visitParameterList(e.parameters,V,a),void 0,p(e.body)),e),e):(t=m,r=y,y=m=!1,e=Pe.visitEachChild(e,V,a),m=t,y=r),!m)return e;o(e)}function d(e){var t,r;return e.asteriskToken?e=Pe.setOriginalNode(Pe.setTextRange(T.createFunctionExpression(void 0,void 0,e.name,void 0,Pe.visitParameterList(e.parameters,V,a),void 0,p(e.body)),e),e):(t=m,r=y,y=m=!1,e=Pe.visitEachChild(e,V,a),m=t,y=r),e}function p(e){var t=[],r=m,n=y,i=h,a=v,o=b,s=x,c=D,u=S,l=J,_=N,d=A,p=F,f=P;y=!(m=!0),J=1,F=A=N=S=D=x=b=v=h=void 0,P=T.createTempVariable(void 0),E();var g=T.copyPrologue(e.statements,t,!1,V);K(e.statements,g);g=function(){U=z=0,w=void 0,O=I=!1,M=void 0,L=void 0,R=void 0,B=void 0,j=void 0;var e=function(){if(N){for(var e=0;e<N.length;e++)!function(e){if(Ne(e),function(e){if(h)for(;z<b.length&&v[z]<=e;z++){var t=h[z],r=b[z];switch(t.kind){case 0:0===r?(L=L||[],(R=R||[]).push(B),B=t):1===r&&(B=R.pop());break;case 1:0===r?(j=j||[]).push(t):1===r&&j.pop()}}}(e),!I){O=I=!1;var t=N[e];if(0!==t){if(10===t)return I=!0,Ae(T.createReturnStatement(T.createArrayLiteralExpression([ye(7)]))),0;var r=A[e];if(1===t)return Ae(r[0]),0;var n=F[e];switch(t){case 2:return function(e,t,r){Ae(Pe.setTextRange(T.createExpressionStatement(T.createAssignment(e,t)),r))}(r[0],r[1],n),0;case 3:return function(e,t){I=!0,Ae(Pe.setEmitFlags(Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression([ye(3),me(e)])),t),384))}(r[0],n),0;case 4:return function(e,t,r){Ae(Pe.setEmitFlags(T.createIfStatement(t,Pe.setEmitFlags(Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression([ye(3),me(e)])),r),384)),1))}(r[0],r[1],n),0;case 5:return function(e,t,r){Ae(Pe.setEmitFlags(T.createIfStatement(T.createLogicalNot(t),Pe.setEmitFlags(Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression([ye(3),me(e)])),r),384)),1))}(r[0],r[1],n),0;case 6:return function(e,t){I=!0,Ae(Pe.setEmitFlags(Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression(e?[ye(4),e]:[ye(4)])),t),384))}(r[0],n),0;case 7:return function(e,t){I=!0,Ae(Pe.setEmitFlags(Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression([ye(5),e])),t),384))}(r[0],n),0;case 8:return Fe(r[0],n),0;case 9:(function(e,t){O=I=!0,Ae(Pe.setTextRange(T.createThrowStatement(e),t))})(r[0],n)}}}}(e);Ee(N.length)}else Ee(0);if(M){var t=T.createPropertyAccessExpression(P,"label"),t=T.createSwitchStatement(t,T.createCaseBlock(M));return[Pe.startOnNewLine(t)]}if(L)return L;return[]}();return C().createGeneratorHelper(Pe.setEmitFlags(T.createFunctionExpression(void 0,void 0,void 0,void 0,[T.createParameterDeclaration(void 0,void 0,void 0,P)],void 0,T.createBlock(e,0<e.length)),524288))}();return Pe.insertStatementsAfterStandardPrologue(t,k()),t.push(T.createReturnStatement(g)),m=r,y=n,h=i,v=a,b=o,x=s,D=c,S=u,J=l,N=_,A=d,F=p,P=f,Pe.setTextRange(T.createBlock(t,e.multiLine),e)}function f(e){var t=[];return r(e.left),r(e.right),T.inlineExpressions(t);function r(e){Pe.isBinaryExpression(e)&&27===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&0<t.length&&(Ce(1,[T.createExpressionStatement(T.inlineExpressions(t))]),t=[]),t.push(Pe.visitNode(e,V,Pe.isExpression)))}}function g(e,n,t,i){var a,r,o=Q(e);0<o&&(a=Z(),r=Pe.visitNodes(e,V,Pe.isExpression,0,o),xe(a,T.createArrayLiteralExpression(n?__spreadArrays([n],r):r)),n=void 0);o=Pe.reduceLeft(e,function(e,t){{var r;X(t)&&0<e.length&&(r=void 0!==a,xe(a=a||Z(),r?T.createArrayConcatCall(a,[T.createArrayLiteralExpression(e,i)]):T.createArrayLiteralExpression(n?__spreadArrays([n],e):e,i)),n=void 0,e=[])}return e.push(Pe.visitNode(t,V,Pe.isExpression)),e},[],o);return a?T.createArrayConcatCall(a,[T.createArrayLiteralExpression(o,i)]):Pe.setTextRange(T.createArrayLiteralExpression(n?__spreadArrays([n],o):o,i),t)}function K(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)W(e[n])}function q(e){Pe.isBlock(e)?K(e.statements):W(e)}function W(e){var t=y;y=y||X(e),function(e){switch(e.kind){case 230:return function(e){X(e)?K(e.statements):be(Pe.visitNode(e,V,Pe.isStatement))}(e);case 233:return function(e){be(Pe.visitNode(e,V,Pe.isStatement))}(e);case 234:return function(e){{var t,r;X(e)&&(X(e.thenStatement)||X(e.elseStatement))?(t=$(),r=e.elseStatement?$():void 0,Te(e.elseStatement?r:t,Pe.visitNode(e.expression,V,Pe.isExpression),e.expression),q(e.thenStatement),e.elseStatement&&(De(t),ee(r),q(e.elseStatement)),ee(t)):be(Pe.visitNode(e,V,Pe.isStatement))}}(e);case 235:return function(e){{var t,r;X(e)?(t=$(),r=$(),oe(t),ee(r),q(e.statement),ee(t),Se(r,Pe.visitNode(e.expression,V,Pe.isExpression)),se()):be(Pe.visitNode(e,V,Pe.isStatement))}}(e);case 236:return function(e){{var t,r;X(e)?(t=$(),r=oe(t),ee(t),Te(r,Pe.visitNode(e.expression,V,Pe.isExpression)),q(e.statement),De(t),se()):be(Pe.visitNode(e,V,Pe.isStatement))}}(e);case 237:return function(e){{var t,r,n,i;X(e)?(t=$(),r=$(),n=oe(r),e.initializer&&(i=e.initializer,Pe.isVariableDeclarationList(i)?H(i):be(Pe.setTextRange(T.createExpressionStatement(Pe.visitNode(i,V,Pe.isExpression)),i))),ee(t),e.condition&&Te(n,Pe.visitNode(e.condition,V,Pe.isExpression)),q(e.statement),ee(r),e.incrementor&&be(Pe.setTextRange(T.createExpressionStatement(Pe.visitNode(e.incrementor,V,Pe.isExpression)),e.incrementor)),De(t),se()):be(Pe.visitNode(e,V,Pe.isStatement))}}(e);case 238:return function(e){if(X(e)){var t=Z(),r=Z(),n=T.createLoopVariable(),i=e.initializer;l(n),xe(t,T.createArrayLiteralExpression()),be(T.createForInStatement(r,Pe.visitNode(e.expression,V,Pe.isExpression),T.createExpressionStatement(T.createCallExpression(T.createPropertyAccessExpression(t,"push"),void 0,[r])))),xe(n,T.createNumericLiteral(0));var a=$(),o=$(),r=oe(o);ee(a),Te(r,T.createLessThan(n,T.createPropertyAccessExpression(t,"length")));r=void 0;if(Pe.isVariableDeclarationList(i)){for(var s=0,c=i.declarations;s<c.length;s++){var u=c[s];l(u.name)}r=T.cloneNode(i.declarations[0].name)}else r=Pe.visitNode(i,V,Pe.isExpression),Pe.Debug.assert(Pe.isLeftHandSideExpression(r));xe(r,T.createElementAccessExpression(t,n)),q(e.statement),ee(o),be(T.createExpressionStatement(T.createPostfixIncrement(n))),De(a),se()}else be(Pe.visitNode(e,V,Pe.isStatement))}(e);case 240:return function(e){var t=ge(e.label?Pe.idText(e.label):void 0);0<t?De(t,e):be(e)}(e);case 241:return function(e){var t=fe(e.label?Pe.idText(e.label):void 0);0<t?De(t,e):be(e)}(e);case 242:return function(t){!function(e){Ce(8,[e],t)}(Pe.visitNode(t.expression,V,Pe.isExpression))}(e);case 243:return function(e){X(e)?(function(e){var t=$(),r=$();ee(t),te({kind:1,expression:e,startLabel:t,endLabel:r})}(Y(Pe.visitNode(e.expression,V,Pe.isExpression))),q(e.statement),Pe.Debug.assert(1===ie()),ee(re().endLabel)):be(Pe.visitNode(e,V,Pe.isStatement))}(e);case 244:return function(e){if(X(e.caseBlock)){for(var t=e.caseBlock,r=t.clauses.length,n=function(){var e=$();return te({kind:2,isScript:!1,breakLabel:e}),e}(),i=Y(Pe.visitNode(e.expression,V,Pe.isExpression)),a=[],o=-1,s=0;s<r;s++){var c=t.clauses[s];a.push($()),285===c.kind&&-1===o&&(o=s)}for(var u=0,l=[];u<r;){for(var _=0,s=u;s<r;s++)if(284===(c=t.clauses[s]).kind){if(X(c.expression)&&0<l.length)break;l.push(T.createCaseClause(Pe.visitNode(c.expression,V,Pe.isExpression),[he(a[s],c.expression)]))}else _++;l.length&&(be(T.createSwitchStatement(i,T.createCaseBlock(l))),u+=l.length,l=[]),0<_&&(u+=_,_=0)}De(0<=o?a[o]:n);for(s=0;s<r;s++)ee(a[s]),K(t.clauses[s].statements);ce()}else be(Pe.visitNode(e,V,Pe.isStatement))}(e);case 245:return function(e){X(e)?(function(e){var t=$();te({kind:4,isScript:!1,labelText:e,breakLabel:t})}(Pe.idText(e.label)),q(e.statement),ue()):be(Pe.visitNode(e,V,Pe.isStatement))}(e);case 246:return function(t){var e;!function(e){Ce(9,[e],t)}(Pe.visitNode(null!==(e=t.expression)&&void 0!==e?e:T.createVoidZero(),V,Pe.isExpression))}(e);case 247:return function(e){X(e)?(function(){var e=$(),t=$();ee(e),te({kind:0,state:0,startLabel:e,endLabel:t}),ve()}(),q(e.tryBlock),e.catchClause&&(function(e){var t;Pe.Debug.assert(0===ie()),Pe.isGeneratedIdentifier(e.name)?(t=e.name,l(e.name)):(r=Pe.idText(e.name),t=Z(r),n||(n=new Pe.Map,i=[],a.enableSubstitution(78)),n.set(r,!0),i[Pe.getOriginalNodeId(e)]=t);var r=ne();Pe.Debug.assert(r.state<1),De(r.endLabel),ee(e=$()),r.state=1,r.catchVariable=t,r.catchLabel=e,xe(t,T.createCallExpression(T.createPropertyAccessExpression(P,"sent"),void 0,[])),ve()}(e.catchClause.variableDeclaration),q(e.catchClause.block)),e.finallyBlock&&(function(){Pe.Debug.assert(0===ie());var e=ne();Pe.Debug.assert(e.state<2),De(e.endLabel);var t=$();ee(t),e.state=2,e.finallyLabel=t}(),q(e.finallyBlock)),function(){Pe.Debug.assert(0===ie());var e=re();e.state<2?De(e.endLabel):Ce(10),ee(e.endLabel),ve(),e.state=3}()):be(Pe.visitEachChild(e,V,a))}(e);default:be(Pe.visitNode(e,V,Pe.isStatement))}}(e),y=t}function H(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],i=T.cloneNode(n.name);Pe.setCommentRange(i,n.name),l(i)}for(var a=Pe.getInitializedVariables(e),o=a.length,s=0,c=[];s<o;){for(var u=s;u<o;u++){if(X((n=a[u]).initializer)&&0<c.length)break;c.push(G(n))}c.length&&(be(T.createExpressionStatement(T.inlineExpressions(c))),s+=c.length,c=[])}}function G(e){return Pe.setSourceMapRange(T.createAssignment(Pe.setSourceMapRange(T.cloneNode(e.name),e.name),Pe.visitNode(e.initializer,V,Pe.isExpression)),e)}function X(e){return!!e&&0!=(262144&e.transformFlags)}function Q(e){for(var t=e.length,r=0;r<t;r++)if(X(e[r]))return r;return-1}function Y(e){if(Pe.isGeneratedIdentifier(e)||4096&Pe.getEmitFlags(e))return e;var t=T.createTempVariable(l);return xe(t,e,e),t}function Z(e){e=e?T.createUniqueName(e):T.createTempVariable(void 0);return l(e),e}function $(){var e=J;return J++,(D=D||[])[e]=-1,e}function ee(e){Pe.Debug.assert(void 0!==D,"No labels were defined."),D[e]=N?N.length:0}function te(e){h||(h=[],b=[],v=[],x=[]);var t=b.length;return b[t]=0,v[t]=N?N.length:0,h[t]=e,x.push(e),t}function re(){var e=ne();if(void 0===e)return Pe.Debug.fail("beginBlock was never called.");var t=b.length;return b[t]=1,v[t]=N?N.length:0,h[t]=e,x.pop(),e}function ne(){return Pe.lastOrUndefined(x)}function ie(){var e=ne();return e&&e.kind}function ae(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function oe(e){var t=$();return te({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function se(){Pe.Debug.assert(3===ie());var e=re(),t=e.breakLabel;e.isScript||ee(t)}function ce(){Pe.Debug.assert(2===ie());var e=re(),t=e.breakLabel;e.isScript||ee(t)}function ue(){Pe.Debug.assert(4===ie());var e=re();e.isScript||ee(e.breakLabel)}function le(e){return 2===e.kind||3===e.kind}function _e(e){return 4===e.kind}function de(e){return 3===e.kind}function pe(e,t){for(var r=t;0<=r;r--){var n=x[r];if(!_e(n))break;if(n.labelText===e)return 1}}function fe(e){if(x)if(e)for(var t=x.length-1;0<=t;t--){if(_e(r=x[t])&&r.labelText===e)return r.breakLabel;if(le(r)&&pe(e,t-1))return r.breakLabel}else for(var r,t=x.length-1;0<=t;t--)if(le(r=x[t]))return r.breakLabel;return 0}function ge(e){if(x)if(e){for(var t=x.length-1;0<=t;t--)if(de(r=x[t])&&pe(e,t-1))return r.continueLabel}else for(var r,t=x.length-1;0<=t;t--)if(de(r=x[t]))return r.continueLabel;return 0}function me(e){if(void 0!==e&&0<e){void 0===S&&(S=[]);var t=T.createNumericLiteral(-1);return void 0===S[e]?S[e]=[t]:S[e].push(t),t}return T.createOmittedExpression()}function ye(e){var t=T.createNumericLiteral(e);return Pe.addSyntheticTrailingComment(t,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),t}function he(e,t){return Pe.Debug.assertLessThan(0,e,"Invalid label"),Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression([ye(3),me(e)])),t)}function ve(){Ce(0)}function be(e){e?Ce(1,[e]):ve()}function xe(e,t,r){Ce(2,[e,t],r)}function De(e,t){Ce(3,[e],t)}function Se(e,t,r){Ce(4,[e,t],r)}function Te(e,t,r){Ce(5,[e,t],r)}function Ce(e,t,r){void 0===N&&(N=[],A=[],F=[]),void 0===D&&ee($());var n=N.length;N[n]=e,A[n]=t,F[n]=r}function Ee(e){!function(e){if(!O)return!0;if(!D||!S)return!1;for(var t=0;t<D.length;t++)if(D[t]===e&&S[t])return!0;return!1}(e)||(Ne(e),Fe(j=void 0,void 0)),L&&M&&ke(!1),function(){if(void 0!==S&&void 0!==w)for(var e=0;e<w.length;e++){var t=w[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],i=S[i];if(void 0!==i)for(var a=0,o=i;a<o.length;a++)o[a].text=String(e)}}}()}function ke(e){if(M=M||[],L){if(j)for(var t=j.length-1;0<=t;t--){var r=j[t];L=[T.createWithStatement(r.expression,T.createBlock(L))]}var n,i,a,o;B&&(n=B.startLabel,i=B.catchLabel,a=B.finallyLabel,o=B.endLabel,L.unshift(T.createExpressionStatement(T.createCallExpression(T.createPropertyAccessExpression(T.createPropertyAccessExpression(P,"trys"),"push"),void 0,[T.createArrayLiteralExpression([me(n),me(i),me(a),me(o)])]))),B=void 0),e&&L.push(T.createExpressionStatement(T.createAssignment(T.createPropertyAccessExpression(P,"label"),T.createNumericLiteral(U+1))))}M.push(T.createCaseClause(T.createNumericLiteral(U),L||[])),L=void 0}function Ne(e){if(D)for(var t=0;t<D.length;t++)D[t]===e&&(L&&(ke(!I),O=I=!1,U++),void 0===w&&(w=[]),void 0===w[U]?w[U]=[t]:w[U].push(t))}function Ae(e){e&&(L?L.push(e):L=[e])}function Fe(e,t){O=I=!0,Ae(Pe.setEmitFlags(Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression(e?[ye(2),e]:[ye(2)])),t),384))}}}(ts=ts||{}),function(H){H.transformModule=function(d){var p=d.factory,s=d.getEmitHelperFactory,i=d.startLexicalEnvironment,a=d.endLexicalEnvironment,n=d.hoistVariableDeclaration,f=d.getCompilerOptions(),g=d.getEmitResolver(),m=d.getEmitHost(),c=H.getEmitScriptTarget(f),u=H.getEmitModuleKind(f),r=d.onSubstituteNode,o=d.onEmitNode;d.onSubstituteNode=function(e,t){if((t=r(e,t)).id&&l[t.id])return t;{if(1===e)return function(e){switch(e.kind){case 78:return q(e);case 216:return function(e){if(H.isAssignmentOperator(e.operatorToken.kind)&&H.isIdentifier(e.left)&&!H.isGeneratedIdentifier(e.left)&&!H.isLocalName(e.left)&&!H.isDeclarationNameOfEnumOrNamespace(e.left)){var t=W(e.left);if(t){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];l[H.getNodeId(r)]=!0,r=V(a,r,e)}return r}}return e}(e);case 215:case 214:return function(e){if((45===e.operator||46===e.operator)&&H.isIdentifier(e.operand)&&!H.isGeneratedIdentifier(e.operand)&&!H.isLocalName(e.operand)&&!H.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=W(e.operand);if(t){for(var r=215===e.kind?H.setTextRange(p.createBinaryExpression(e.operand,p.createToken(45===e.operator?63:64),p.createNumericLiteral(1)),e):e,n=0,i=t;n<i.length;n++){var a=i[n];l[H.getNodeId(r)]=!0,r=V(a,r)}return r}}return e}(e)}return e}(t);if(H.isShorthandPropertyAssignment(t))return function(e){var t=e.name,r=q(t);if(r===t)return e;if(e.objectAssignmentInitializer){var n=p.createAssignment(r,e.objectAssignmentInitializer);return H.setTextRange(p.createPropertyAssignment(t,n),e)}return H.setTextRange(p.createPropertyAssignment(t,r),e)}(t)}return t},d.onEmitNode=function(e,t,r){297===t.kind?(y=t,h=v[H.getOriginalNodeId(y)],l=[],o(e,t,r),l=h=y=void 0):o(e,t,r)},d.enableSubstitution(78),d.enableSubstitution(216),d.enableSubstitution(214),d.enableSubstitution(215),d.enableSubstitution(289),d.enableEmitNotification(297);var y,h,l,_,v=[],b=[];return H.chainBundle(d,function(e){if(e.isDeclarationFile||!(H.isEffectiveExternalModule(e,f)||2097152&e.transformFlags||H.isJsonSourceFile(e)&&H.hasJsonModuleEmitEnabled(f)&&H.outFile(f)))return e;y=e,h=H.collectExternalModuleInfo(d,e,g,f),v[H.getOriginalNodeId(e)]=h;e=function(e){switch(e){case H.ModuleKind.AMD:return D;case H.ModuleKind.UMD:return S;default:return t}}(u)(e);return h=y=void 0,_=!1,e});function x(){return!(h.exportEquals||!H.isExternalModule(y))}function t(e){i();var t=[],r=H.getStrictOptionValue(f,"alwaysStrict")||!f.noImplicitUseStrict&&H.isExternalModule(y),r=p.copyPrologue(e.statements,t,r&&!H.isJsonSourceFile(e),N);if(x()&&H.append(t,U()),H.length(h.exportedNames))for(var n=0;n<h.exportedNames.length;n+=50)H.append(t,p.createExpressionStatement(H.reduceLeft(h.exportedNames.slice(n,n+50),function(e,t){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(H.idText(t))),e)},p.createVoidZero())));H.append(t,H.visitNode(h.externalHelpersImportDeclaration,N,H.isStatement)),H.addRange(t,H.visitNodes(e.statements,N,H.isStatement,r)),k(t,!1),H.insertStatementsAfterStandardPrologue(t,a());e=p.updateSourceFile(e,H.setTextRange(p.createNodeArray(t),e.statements));return H.addEmitHelpers(e,d.readEmitHelpers()),e}function D(e){var t=p.createIdentifier("define"),r=H.tryGetModuleNameFromFile(p,e,m,f),n=H.isJsonSourceFile(e)&&e,i=T(e,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,i=i.importAliasNames,e=p.updateSourceFile(e,H.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(t,void 0,__spreadArrays(r?[r]:[],[p.createArrayLiteralExpression(n?H.emptyArray:__spreadArrays([p.createStringLiteral("require"),p.createStringLiteral("exports")],a,o)),n?n.statements.length?n.statements[0].expression:p.createObjectLiteralExpression():p.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArrays([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],i),void 0,E(e))])))]),e.statements));return H.addEmitHelpers(e,d.readEmitHelpers()),e}function S(e){var t=T(e,!1),r=t.aliasedModuleNames,n=t.unaliasedModuleNames,i=t.importAliasNames,t=H.tryGetModuleNameFromFile(p,e,m,f),n=p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,H.setTextRange(p.createBlock([p.createIfStatement(p.createLogicalAnd(p.createTypeCheck(p.createIdentifier("module"),"object"),p.createTypeCheck(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),"object")),p.createBlock([p.createVariableStatement(void 0,[p.createVariableDeclaration("v",void 0,void 0,p.createCallExpression(p.createIdentifier("factory"),void 0,[p.createIdentifier("require"),p.createIdentifier("exports")]))]),H.setEmitFlags(p.createIfStatement(p.createStrictInequality(p.createIdentifier("v"),p.createIdentifier("undefined")),p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),p.createIdentifier("v")))),1)]),p.createIfStatement(p.createLogicalAnd(p.createTypeCheck(p.createIdentifier("define"),"function"),p.createPropertyAccessExpression(p.createIdentifier("define"),"amd")),p.createBlock([p.createExpressionStatement(p.createCallExpression(p.createIdentifier("define"),void 0,__spreadArrays(t?[t]:[],[p.createArrayLiteralExpression(__spreadArrays([p.createStringLiteral("require"),p.createStringLiteral("exports")],r,n)),p.createIdentifier("factory")])))])))],!0),void 0)),e=p.updateSourceFile(e,H.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(n,void 0,[p.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArrays([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],i),void 0,E(e))]))]),e.statements));return H.addEmitHelpers(e,d.readEmitHelpers()),e}function T(e,t){for(var r=[],n=[],i=[],a=0,o=e.amdDependencies;a<o.length;a++){var s=o[a];s.name?(r.push(p.createStringLiteral(s.path)),i.push(p.createParameterDeclaration(void 0,void 0,void 0,s.name))):n.push(p.createStringLiteral(s.path))}for(var c=0,u=h.externalImports;c<u.length;c++){var l=u[c],_=H.getExternalModuleNameLiteral(p,l,y,m,g,f),l=H.getLocalNameForExternalImport(p,l,y);_&&(t&&l?(H.setEmitFlags(l,4),r.push(_),i.push(p.createParameterDeclaration(void 0,void 0,void 0,l))):n.push(_))}return{aliasedModuleNames:r,unaliasedModuleNames:n,importAliasNames:i}}function C(e){if(!H.isImportEqualsDeclaration(e)&&!H.isExportDeclaration(e)&&H.getExternalModuleNameLiteral(p,e,y,m,g,f)){var t=H.getLocalNameForExternalImport(p,e,y),e=w(e,t);if(e!==t)return p.createExpressionStatement(p.createAssignment(t,e))}}function E(e){i();var t=[],r=p.copyPrologue(e.statements,t,!f.noImplicitUseStrict,N);x()&&H.append(t,U()),H.length(h.exportedNames)&&H.append(t,p.createExpressionStatement(H.reduceLeft(h.exportedNames,function(e,t){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(H.idText(t))),e)},p.createVoidZero()))),H.append(t,H.visitNode(h.externalHelpersImportDeclaration,N,H.isStatement)),u===H.ModuleKind.AMD&&H.addRange(t,H.mapDefined(h.externalImports,C)),H.addRange(t,H.visitNodes(e.statements,N,H.isStatement,r)),k(t,!0),H.insertStatementsAfterStandardPrologue(t,a());t=p.createBlock(t,!0);return _&&H.addEmitHelper(t,G),t}function k(e,t){var r,n;!h.exportEquals||(r=H.visitNode(h.exportEquals.expression,A))&&(t?(n=p.createReturnStatement(r),H.setTextRange(n,h.exportEquals),H.setEmitFlags(n,1920)):(n=p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),r)),H.setTextRange(n,h.exportEquals),H.setEmitFlags(n,1536)),e.push(n))}function N(e){switch(e.kind){case 261:return function(e){var t,r=H.getNamespaceDeclarationNode(e);if(u!==H.ModuleKind.AMD){if(!e.importClause)return H.setOriginalNode(H.setTextRange(p.createExpressionStatement(I(e)),e),e);var n=[];r&&!H.isDefaultImport(e)?n.push(p.createVariableDeclaration(p.cloneNode(r.name),void 0,void 0,w(e,I(e)))):(n.push(p.createVariableDeclaration(p.getGeneratedNameForNode(e),void 0,void 0,w(e,I(e)))),r&&H.isDefaultImport(e)&&n.push(p.createVariableDeclaration(p.cloneNode(r.name),void 0,void 0,p.getGeneratedNameForNode(e)))),t=H.append(t,H.setOriginalNode(H.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList(n,2<=c?2:0)),e),e))}else r&&H.isDefaultImport(e)&&(t=H.append(t,p.createVariableStatement(void 0,p.createVariableDeclarationList([H.setOriginalNode(H.setTextRange(p.createVariableDeclaration(p.cloneNode(r.name),void 0,void 0,p.getGeneratedNameForNode(e)),e),e)],2<=c?2:0))));M(e)?(r=H.getOriginalNodeId(e),b[r]=L(b[r],e)):t=L(t,e);return H.singleOrMany(t)}(e);case 260:return function(e){var t;H.Debug.assert(H.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),u!==H.ModuleKind.AMD?t=H.hasSyntacticModifier(e,1)?H.append(t,H.setOriginalNode(H.setTextRange(p.createExpressionStatement(V(e.name,I(e))),e),e)):H.append(t,H.setOriginalNode(H.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.cloneNode(e.name),void 0,void 0,I(e))],2<=c?2:0)),e),e)):H.hasSyntacticModifier(e,1)&&(t=H.append(t,H.setOriginalNode(H.setTextRange(p.createExpressionStatement(V(p.getExportName(e),p.getLocalName(e))),e),e)));{var r;M(e)?(r=H.getOriginalNodeId(e),b[r]=R(b[r],e)):t=R(t,e)}return H.singleOrMany(t)}(e);case 267:return function(e){if(!e.moduleSpecifier)return;var t=p.getGeneratedNameForNode(e);{if(e.exportClause&&H.isNamedExports(e.exportClause)){var r=[];u!==H.ModuleKind.AMD&&r.push(H.setOriginalNode(H.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(t,void 0,void 0,I(e))])),e),e));for(var n=0,i=e.exportClause.elements;n<i.length;n++){var a,o=i[n];0===c?r.push(H.setOriginalNode(H.setTextRange(p.createExpressionStatement(s().createCreateBindingHelper(t,p.createStringLiteralFromNode(o.propertyName||o.name),o.propertyName?p.createStringLiteralFromNode(o.name):void 0)),o),o)):(a=!(!f.esModuleInterop||67108864&H.getEmitFlags(e)||"default"!==H.idText(o.propertyName||o.name)),a=p.createPropertyAccessExpression(a?s().createImportDefaultHelper(t):t,o.propertyName||o.name),r.push(H.setOriginalNode(H.setTextRange(p.createExpressionStatement(V(p.getExportName(o),a,void 0,!0)),o),o)))}return H.singleOrMany(r)}return e.exportClause?((r=[]).push(H.setOriginalNode(H.setTextRange(p.createExpressionStatement(V(p.cloneNode(e.exportClause.name),function(e,t){if(!f.esModuleInterop||67108864&H.getEmitFlags(e))return t;if(H.getExportNeedsImportStarHelper(e))return s().createImportStarHelper(t);return t}(e,u!==H.ModuleKind.AMD?I(e):H.isExportNamespaceAsDefaultDeclaration(e)?t:p.createIdentifier(H.idText(e.exportClause.name))))),e),e)),H.singleOrMany(r)):H.setOriginalNode(H.setTextRange(p.createExpressionStatement(s().createExportStarHelper(u!==H.ModuleKind.AMD?I(e):t)),e),e)}}(e);case 266:return function(e){if(e.isExportEquals)return;var t,r=e.original;r&&M(r)?(r=H.getOriginalNodeId(e),b[r]=z(b[r],p.createIdentifier("default"),H.visitNode(e.expression,A),e,!0)):t=z(t,p.createIdentifier("default"),H.visitNode(e.expression,A),e,!0);return H.singleOrMany(t)}(e);case 232:return function(e){var t,r,n;if(H.hasSyntacticModifier(e,1)){for(var i=void 0,a=!1,o=0,s=e.declarationList.declarations;o<s.length;o++){var c,u,l=s[o];H.isIdentifier(l.name)&&H.isLocalName(l.name)?(i=i||H.visitNodes(e.modifiers,K,H.isModifier),r=H.append(r,l)):l.initializer&&(!H.isBindingPattern(l.name)&&(H.isArrowFunction(l.initializer)||H.isFunctionExpression(l.initializer)||H.isClassExpression(l.initializer))?(c=p.createAssignment(H.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),l.name),l.name),p.createIdentifier(H.getTextOfIdentifierOrLiteral(l.name))),u=p.createVariableDeclaration(l.name,l.exclamationToken,l.type,H.visitNode(l.initializer,A)),r=H.append(r,u),n=H.append(n,c),a=!0):n=H.append(n,function(e){return H.isBindingPattern(e.name)?H.flattenDestructuringAssignment(H.visitNode(e,A),void 0,d,0,!1,O):p.createAssignment(H.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),e.name),e.name),e.initializer?H.visitNode(e.initializer,A):p.createVoidZero())}(l)))}r&&(t=H.append(t,p.updateVariableStatement(e,i,p.updateVariableDeclarationList(e.declarationList,r)))),n&&(_=H.setOriginalNode(H.setTextRange(p.createExpressionStatement(p.inlineExpressions(n)),e),e),a&&H.removeAllComments(_),t=H.append(t,_))}else t=H.append(t,H.visitEachChild(e,A,d));{var _;M(e)?(_=H.getOriginalNodeId(e),b[_]=B(b[_],e)):t=B(t,e)}return H.singleOrMany(t)}(e);case 251:return function(e){var t;t=H.hasSyntacticModifier(e,1)?H.append(t,H.setOriginalNode(H.setTextRange(p.createFunctionDeclaration(void 0,H.visitNodes(e.modifiers,K,H.isModifier),e.asteriskToken,p.getDeclarationName(e,!0,!0),void 0,H.visitNodes(e.parameters,A),void 0,H.visitEachChild(e.body,A,d)),e),e)):H.append(t,H.visitEachChild(e,A,d));{var r;M(e)?(r=H.getOriginalNodeId(e),b[r]=j(b[r],e)):t=j(t,e)}return H.singleOrMany(t)}(e);case 252:return function(e){var t;t=H.hasSyntacticModifier(e,1)?H.append(t,H.setOriginalNode(H.setTextRange(p.createClassDeclaration(void 0,H.visitNodes(e.modifiers,K,H.isModifier),p.getDeclarationName(e,!0,!0),void 0,H.visitNodes(e.heritageClauses,A),H.visitNodes(e.members,A)),e),e)):H.append(t,H.visitEachChild(e,A,d));{var r;M(e)?(r=H.getOriginalNodeId(e),b[r]=j(b[r],e)):t=j(t,e)}return H.singleOrMany(t)}(e);case 338:return function(e){{var t;M(e)&&232===e.original.kind&&(t=H.getOriginalNodeId(e),b[t]=B(b[t],e.original))}return e}(e);case 339:return function(e){var t=H.getOriginalNodeId(e),r=b[t];if(r)return delete b[t],H.append(r,e);return e}(e);default:return H.visitEachChild(e,A,d)}}function A(e){return 2097152&e.transformFlags||1024&e.transformFlags?H.isImportCall(e)?function(e){var t=H.visitNode(H.firstOrUndefined(e.arguments),A),r=!!(4096&e.transformFlags);switch(f.module){case H.ModuleKind.AMD:return F(t,r);case H.ModuleKind.UMD:return function(e,t){{if(_=!0,H.isSimpleCopiableExpression(e)){var r=H.isGeneratedIdentifier(e)?e:H.isStringLiteral(e)?p.createStringLiteralFromNode(e):H.setEmitFlags(H.setTextRange(p.cloneNode(e),e),1536);return p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,P(e,t),void 0,F(r,t))}r=p.createTempVariable(n);return p.createComma(p.createAssignment(r,e),p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,P(r,t),void 0,F(r,t)))}}(null!=t?t:p.createVoidZero(),r);case H.ModuleKind.CommonJS:default:return P(t,r)}}(e):H.isDestructuringAssignment(e)?function(e){if(function e(t){if(H.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++){var i=n[r];switch(i.kind){case 288:if(e(i.initializer))return!0;break;case 289:if(e(i.name))return!0;break;case 290:if(e(i.expression))return!0;break;case 165:case 167:case 168:return!1;default:H.Debug.assertNever(i,"Unhandled object member kind")}}else if(H.isArrayLiteralExpression(t))for(var a=0,o=t.elements;a<o.length;a++){var i=o[a];if(H.isSpreadElement(i)){if(e(i.expression))return!0}else if(e(i))return!0}else if(H.isIdentifier(t))return H.length(W(t))>(H.isExportName(t)?1:0);return!1}(e.left))return H.flattenDestructuringAssignment(e,A,d,0,!1,O);return H.visitEachChild(e,A,d)}(e):H.visitEachChild(e,A,d):e}function F(e,t){var r=p.createUniqueName("resolve"),n=p.createUniqueName("reject"),i=[p.createParameterDeclaration(void 0,void 0,void 0,r),p.createParameterDeclaration(void 0,void 0,void 0,n)],n=p.createBlock([p.createExpressionStatement(p.createCallExpression(p.createIdentifier("require"),void 0,[p.createArrayLiteralExpression([e||p.createOmittedExpression()]),r,n]))]);2<=c?a=p.createArrowFunction(void 0,void 0,i,void 0,void 0,n):(a=p.createFunctionExpression(void 0,void 0,void 0,void 0,i,void 0,n),t&&H.setEmitFlags(a,8));var a=p.createNewExpression(p.createIdentifier("Promise"),void 0,[a]);return f.esModuleInterop?p.createCallExpression(p.createPropertyAccessExpression(a,p.createIdentifier("then")),void 0,[s().createImportStarCallbackHelper()]):a}function P(e,t){var r,n=p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Promise"),"resolve"),void 0,[]),e=p.createCallExpression(p.createIdentifier("require"),void 0,e?[e]:[]);return f.esModuleInterop&&(e=s().createImportStarHelper(e)),2<=c?r=p.createArrowFunction(void 0,void 0,[],void 0,void 0,e):(r=p.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,p.createBlock([p.createReturnStatement(e)])),t&&H.setEmitFlags(r,8)),p.createCallExpression(p.createPropertyAccessExpression(n,"then"),void 0,[r])}function w(e,t){return!f.esModuleInterop||67108864&H.getEmitFlags(e)?t:H.getImportNeedsImportStarHelper(e)?s().createImportStarHelper(t):H.getImportNeedsImportDefaultHelper(e)?s().createImportDefaultHelper(t):t}function I(e){var t=H.getExternalModuleNameLiteral(p,e,y,m,g,f),e=[];return t&&e.push(t),p.createCallExpression(p.createIdentifier("require"),void 0,e)}function O(e,t,r){var n=W(e);if(n){for(var i=H.isExportName(e)?t:p.createAssignment(e,t),a=0,o=n;a<o.length;a++){var s=o[a];H.setEmitFlags(i,4),i=V(s,i,r)}return i}return p.createAssignment(e,t)}function M(e){return 0!=(4194304&H.getEmitFlags(e))}function L(e,t){if(h.exportEquals)return e;t=t.importClause;if(!t)return e;t.name&&(e=J(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 263:e=J(e,r);break;case 264:for(var n=0,i=r.elements;n<i.length;n++)e=J(e,i[n],!0)}return e}function R(e,t){return h.exportEquals?e:J(e,t)}function B(e,t){if(h.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=function e(t,r){if(h.exportEquals)return t;if(H.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];H.isOmittedExpression(a)||(t=e(t,a))}else H.isGeneratedIdentifier(r.name)||(t=J(t,r));return t}(e,n[r]);return e}function j(e,t){return h.exportEquals||(H.hasSyntacticModifier(t,1)&&(e=z(e,H.hasSyntacticModifier(t,512)?p.createIdentifier("default"):p.getDeclarationName(t),p.getLocalName(t),t)),t.name&&(e=J(e,t))),e}function J(e,t,r){var n=p.getDeclarationName(t),t=h.exportSpecifiers.get(H.idText(n));if(t)for(var i=0,a=t;i<a.length;i++){var o=a[i];e=z(e,o.name,n,o.name,void 0,r)}return e}function z(e,t,r,n,i,a){return e=H.append(e,function(e,t,r,n,i){r=H.setTextRange(p.createExpressionStatement(V(e,t,void 0,i)),r);H.startOnNewLine(r),n||H.setEmitFlags(r,1536);return r}(t,r,n,i,a))}function U(){var e=0===c?p.createExpressionStatement(V(p.createIdentifier("__esModule"),p.createTrue())):p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"defineProperty"),void 0,[p.createIdentifier("exports"),p.createStringLiteral("__esModule"),p.createObjectLiteralExpression([p.createPropertyAssignment("value",p.createTrue())])]));return H.setEmitFlags(e,1048576),e}function V(e,t,r,n){return H.setTextRange(n&&0!==c?p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"defineProperty"),void 0,[p.createIdentifier("exports"),p.createStringLiteralFromNode(e),p.createObjectLiteralExpression([p.createPropertyAssignment("enumerable",p.createTrue()),p.createPropertyAssignment("get",p.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,p.createBlock([p.createReturnStatement(t)])))])]):p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(e)),t),r)}function K(e){switch(e.kind){case 92:case 87:return}return e}function q(e){if(4096&H.getEmitFlags(e)){var t=H.getExternalHelpersModuleName(y);return t?p.createPropertyAccessExpression(t,e):e}if((!H.isGeneratedIdentifier(e)||64&e.autoGenerateFlags)&&!H.isLocalName(e)){var r=g.getReferencedExportContainer(e,H.isExportName(e));if(r&&297===r.kind)return H.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(e)),e);t=g.getReferencedImportDeclaration(e);if(t){if(H.isImportClause(t))return H.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(t.parent),p.createIdentifier("default")),e);if(H.isImportSpecifier(t)){r=t.propertyName||t.name;return H.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(t.parent.parent.parent),p.cloneNode(r)),e)}}}return e}function W(e){if(!H.isGeneratedIdentifier(e)){e=g.getReferencedImportDeclaration(e)||g.getReferencedValueDeclaration(e);if(e)return h&&h.exportedBindings[H.getOriginalNodeId(e)]}}};var G={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(ts=ts||{}),function(G){G.transformSystemModule=function(h){var v=h.factory,o=h.startLexicalEnvironment,s=h.endLexicalEnvironment,b=h.hoistVariableDeclaration,u=h.getCompilerOptions(),l=h.getEmitResolver(),_=h.getEmitHost(),r=h.onSubstituteNode,i=h.onEmitNode;h.onSubstituteNode=function(e,t){if(function(e){return p&&e.id&&p[e.id]}(t=r(e,t)))return t;{if(1===e)return function(e){switch(e.kind){case 78:return function(e){if(4096&G.getEmitFlags(e)){var t=G.getExternalHelpersModuleName(y);return t?v.createPropertyAccessExpression(t,e):e}if(!G.isGeneratedIdentifier(e)&&!G.isLocalName(e)){t=l.getReferencedImportDeclaration(e);if(t){if(G.isImportClause(t))return G.setTextRange(v.createPropertyAccessExpression(v.getGeneratedNameForNode(t.parent),v.createIdentifier("default")),e);if(G.isImportSpecifier(t))return G.setTextRange(v.createPropertyAccessExpression(v.getGeneratedNameForNode(t.parent.parent.parent),v.cloneNode(t.propertyName||t.name)),e)}}return e}(e);case 216:return function(e){if(G.isAssignmentOperator(e.operatorToken.kind)&&G.isIdentifier(e.left)&&!G.isGeneratedIdentifier(e.left)&&!G.isLocalName(e.left)&&!G.isDeclarationNameOfEnumOrNamespace(e.left)){var t=W(e.left);if(t){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];r=J(a,H(r))}return r}}return e}(e);case 214:case 215:return function(e){if((45===e.operator||46===e.operator)&&G.isIdentifier(e.operand)&&!G.isGeneratedIdentifier(e.operand)&&!G.isLocalName(e.operand)&&!G.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=W(e.operand);if(t){for(var r=215===e.kind?G.setTextRange(v.createPrefixUnaryExpression(e.operator,e.operand),e):e,n=0,i=t;n<i.length;n++){var a=i[n];r=J(a,H(r))}return 215===e.kind&&(r=45===e.operator?v.createSubtract(H(r),v.createNumericLiteral(1)):v.createAdd(H(r),v.createNumericLiteral(1))),r}}return e}(e);case 226:return function(e){if(G.isImportMeta(e))return v.createPropertyAccessExpression(c,v.createIdentifier("meta"));return e}(e)}return e}(t);if(4===e)return function(e){if(289===e.kind)return function(e){var t=e.name;if(!G.isGeneratedIdentifier(t)&&!G.isLocalName(t)){var r=l.getReferencedImportDeclaration(t);if(r){if(G.isImportClause(r))return G.setTextRange(v.createPropertyAssignment(v.cloneNode(t),v.createPropertyAccessExpression(v.getGeneratedNameForNode(r.parent),v.createIdentifier("default"))),e);if(G.isImportSpecifier(r))return G.setTextRange(v.createPropertyAssignment(v.cloneNode(t),v.createPropertyAccessExpression(v.getGeneratedNameForNode(r.parent.parent.parent),v.cloneNode(r.propertyName||r.name))),e)}}return e}(e);return e}(t)}return t},h.onEmitNode=function(e,t,r){{var n;297===t.kind?(n=G.getOriginalNodeId(t),y=t,d=f[n],x=g[n],p=m[n],c=C[n],p&&delete m[n],i(e,t,r),p=c=x=d=y=void 0):i(e,t,r)}},h.enableSubstitution(78),h.enableSubstitution(289),h.enableSubstitution(216),h.enableSubstitution(214),h.enableSubstitution(215),h.enableSubstitution(226),h.enableEmitNotification(297);var y,d,x,c,D,S,p,f=[],T=[],g=[],m=[],C=[];return G.chainBundle(h,function(e){if(e.isDeclarationFile||!(G.isEffectiveExternalModule(e,u)||2097152&e.transformFlags))return e;var t=G.getOriginalNodeId(e);S=y=e,d=f[t]=G.collectExternalModuleInfo(h,e,l,u),x=v.createUniqueName("exports"),g[t]=x,c=C[t]=v.createUniqueName("context");var r=function(e){for(var t=new G.Map,r=[],n=0,i=e;n<i.length;n++){var a,o,s=i[n],c=G.getExternalModuleNameLiteral(v,s,y,_,l,u);c&&(a=c.text,void 0!==(o=t.get(a))?r[o].externalImports.push(s):(t.set(a,r.length),r.push({name:c,externalImports:[s]})))}return r}(d.externalImports),n=function(e,t){var r=[];o();var n=G.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&G.isExternalModule(y),i=v.copyPrologue(e.statements,r,n,k);r.push(v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration("__moduleName",void 0,void 0,v.createLogicalAnd(c,v.createPropertyAccessExpression(c,"id")))]))),G.visitNode(d.externalHelpersImportDeclaration,k,G.isStatement);n=G.visitNodes(e.statements,k,G.isStatement,i);G.addRange(r,D),G.insertStatementsAfterStandardPrologue(r,s());i=function(e){if(!d.hasExportStarsToExportValues)return;if(!d.exportedNames&&0===d.exportSpecifiers.size){for(var t=!1,r=0,n=d.externalImports;r<n.length;r++){var i=n[r];if(267===i.kind&&i.exportClause){t=!0;break}}if(!t){var a=E(void 0);return e.push(a),a.name}}var o=[];if(d.exportedNames)for(var s=0,c=d.exportedNames;s<c.length;s++){var u=c[s];"default"!==u.escapedText&&o.push(v.createPropertyAssignment(v.createStringLiteralFromNode(u),v.createTrue()))}a=v.createUniqueName("exportedNames");e.push(v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration(a,void 0,void 0,v.createObjectLiteralExpression(o,!0))])));a=E(a);return e.push(a),a.name}(r),e=524288&e.transformFlags?v.createModifiersFromModifierFlags(256):void 0,n=v.createObjectLiteralExpression([v.createPropertyAssignment("setters",function(e,t){for(var r=[],n=0,i=t;n<i.length;n++){for(var a=i[n],o=G.forEach(a.externalImports,function(e){return G.getLocalNameForExternalImport(v,e,y)}),s=o?v.getGeneratedNameForNode(o):v.createUniqueName(""),c=[],u=0,l=a.externalImports;u<l.length;u++){var _=l[u],d=G.getLocalNameForExternalImport(v,_,y);switch(_.kind){case 261:if(!_.importClause)break;case 260:G.Debug.assert(void 0!==d),c.push(v.createExpressionStatement(v.createAssignment(d,s)));break;case 267:if(G.Debug.assert(void 0!==d),_.exportClause)if(G.isNamedExports(_.exportClause)){for(var p=[],f=0,g=_.exportClause.elements;f<g.length;f++){var m=g[f];p.push(v.createPropertyAssignment(v.createStringLiteral(G.idText(m.name)),v.createElementAccessExpression(s,v.createStringLiteral(G.idText(m.propertyName||m.name)))))}c.push(v.createExpressionStatement(v.createCallExpression(x,void 0,[v.createObjectLiteralExpression(p,!0)])))}else c.push(v.createExpressionStatement(v.createCallExpression(x,void 0,[v.createStringLiteral(G.idText(_.exportClause.name)),s])));else c.push(v.createExpressionStatement(v.createCallExpression(e,void 0,[s])))}}r.push(v.createFunctionExpression(void 0,void 0,void 0,void 0,[v.createParameterDeclaration(void 0,void 0,void 0,s)],void 0,v.createBlock(c,!0)))}return v.createArrayLiteralExpression(r,!0)}(i,t)),v.createPropertyAssignment("execute",v.createFunctionExpression(e,void 0,void 0,void 0,[],void 0,v.createBlock(n,!0)))],!0);return r.push(v.createReturnStatement(n)),v.createBlock(r,!0)}(e,r),i=v.createFunctionExpression(void 0,void 0,void 0,void 0,[v.createParameterDeclaration(void 0,void 0,void 0,x),v.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,n),a=G.tryGetModuleNameFromFile(v,e,_,u),r=v.createArrayLiteralExpression(G.map(r,function(e){return e.name})),e=G.setEmitFlags(v.updateSourceFile(e,G.setTextRange(v.createNodeArray([v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(v.createIdentifier("System"),"register"),void 0,a?[a,r,i]:[r,i]))]),e.statements)),1024);G.outFile(u)||G.moveEmitHelpers(e,n,function(e){return!e.scoped});p&&(m[t]=p,p=void 0);return S=D=c=x=d=y=void 0,e});function E(e){var t=v.createUniqueName("exportStar"),r=v.createIdentifier("m"),n=v.createIdentifier("n"),i=v.createIdentifier("exports"),a=v.createStrictInequality(n,v.createStringLiteral("default"));return e&&(a=v.createLogicalAnd(a,v.createLogicalNot(v.createCallExpression(v.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[n])))),v.createFunctionDeclaration(void 0,void 0,void 0,t,void 0,[v.createParameterDeclaration(void 0,void 0,void 0,r)],void 0,v.createBlock([v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration(i,void 0,void 0,v.createObjectLiteralExpression([]))])),v.createForInStatement(v.createVariableDeclarationList([v.createVariableDeclaration(n)]),r,v.createBlock([G.setEmitFlags(v.createIfStatement(a,v.createExpressionStatement(v.createAssignment(v.createElementAccessExpression(i,n),v.createElementAccessExpression(r,n)))),1)])),v.createExpressionStatement(v.createCallExpression(x,void 0,[i]))],!0))}function k(e){switch(e.kind){case 261:return function(e){var t;e.importClause&&b(G.getLocalNameForExternalImport(v,e,y));{var r;w(e)?(r=G.getOriginalNodeId(e),T[r]=I(T[r],e)):t=I(t,e)}return G.singleOrMany(t)}(e);case 260:return function(e){var t;{var r;G.Debug.assert(G.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),b(G.getLocalNameForExternalImport(v,e,y)),w(e)?(r=G.getOriginalNodeId(e),T[r]=O(T[r],e)):t=O(t,e)}return G.singleOrMany(t)}(e);case 267:return t=e,void G.Debug.assertIsDefined(t);case 266:return function(e){if(e.isExportEquals)return;var t=G.visitNode(e.expression,V,G.isExpression),r=e.original;{if(!r||!w(r))return j(v.createIdentifier("default"),t,!0);e=G.getOriginalNodeId(e);T[e]=B(T[e],v.createIdentifier("default"),t,!0)}}(e);default:return z(e)}var t}function N(e){if(G.isBindingPattern(e.name))for(var t=0,r=e.name.elements;t<r.length;t++){var n=r[t];G.isOmittedExpression(n)||N(n)}else b(v.cloneNode(e.name))}function A(e){return 0==(2097152&G.getEmitFlags(e))&&(297===S.kind||0==(3&G.getOriginalNode(e).flags))}function F(e,t){t=t?n:a;return G.isBindingPattern(e.name)?G.flattenDestructuringAssignment(e,V,h,0,!1,t):e.initializer?t(e.name,G.visitNode(e.initializer,V,G.isExpression)):e.name}function n(e,t,r){return P(e,t,r,!0)}function a(e,t,r){return P(e,t,r,!1)}function P(e,t,r,n){return b(v.cloneNode(e)),n?J(e,H(G.setTextRange(v.createAssignment(e,t),r))):H(G.setTextRange(v.createAssignment(e,t),r))}function w(e){return 0!=(4194304&G.getEmitFlags(e))}function I(e,t){if(d.exportEquals)return e;t=t.importClause;if(!t)return e;t.name&&(e=R(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 263:e=R(e,r);break;case 264:for(var n=0,i=r.elements;n<i.length;n++)e=R(e,i[n])}return e}function O(e,t){return d.exportEquals?e:R(e,t)}function M(e,t,r){if(d.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=function e(t,r,n){if(d.exportEquals)return t;if(G.isBindingPattern(r.name))for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];G.isOmittedExpression(o)||(t=e(t,o,n))}else{var s;G.isGeneratedIdentifier(r.name)||(s=void 0,n&&(t=B(t,r.name,v.getLocalName(r)),s=G.idText(r.name)),t=R(t,r,s))}return t}(e,a,r))}return e}function L(e,t){return d.exportEquals||(G.hasSyntacticModifier(t,1)&&(e=B(e,r=G.hasSyntacticModifier(t,512)?v.createStringLiteral("default"):t.name,v.getLocalName(t)),r=G.getTextOfIdentifierOrLiteral(r)),t.name&&(e=R(e,t,r))),e;var r}function R(e,t,r){if(d.exportEquals)return e;var n=v.getDeclarationName(t),t=d.exportSpecifiers.get(G.idText(n));if(t)for(var i=0,a=t;i<a.length;i++){var o=a[i];o.name.escapedText!==r&&(e=B(e,o.name,n))}return e}function B(e,t,r,n){return e=G.append(e,j(t,r,n))}function j(e,t,r){t=v.createExpressionStatement(J(e,t));return G.startOnNewLine(t),r||G.setEmitFlags(t,1536),t}function J(e,t){e=G.isIdentifier(e)?v.createStringLiteralFromNode(e):e;return G.setEmitFlags(t,1536|G.getEmitFlags(t)),G.setCommentRange(v.createCallExpression(x,void 0,[e,t]),t)}function z(e){switch(e.kind){case 232:return function(e){if(!A(e.declarationList))return G.visitNode(e,V,G.isStatement);for(var t,r,n,i=G.hasSyntacticModifier(e,1),a=w(e),o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?t=G.append(t,F(c,i&&!a)):N(c)}return t&&(r=G.append(r,G.setTextRange(v.createExpressionStatement(v.inlineExpressions(t)),e))),a?(n=G.getOriginalNodeId(e),T[n]=M(T[n],e,i)):r=M(r,e,!1),G.singleOrMany(r)}(e);case 251:return m=e,D=G.hasSyntacticModifier(m,1)?G.append(D,v.updateFunctionDeclaration(m,m.decorators,G.visitNodes(m.modifiers,q,G.isModifier),m.asteriskToken,v.getDeclarationName(m,!0,!0),void 0,G.visitNodes(m.parameters,V,G.isParameterDeclaration),void 0,G.visitNode(m.body,V,G.isBlock))):G.append(D,G.visitEachChild(m,V,h)),void(w(m)?(y=G.getOriginalNodeId(m),T[y]=L(T[y],m)):D=L(D,m));case 252:return p=e,g=v.getLocalName(p),b(g),f=G.append(f,G.setTextRange(v.createExpressionStatement(v.createAssignment(g,G.setTextRange(v.createClassExpression(G.visitNodes(p.decorators,V,G.isDecorator),void 0,p.name,void 0,G.visitNodes(p.heritageClauses,V,G.isHeritageClause),G.visitNodes(p.members,V,G.isClassElement)),p))),p)),w(p)?(g=G.getOriginalNodeId(p),T[g]=L(T[g],p)):f=L(f,p),G.singleOrMany(f);case 237:return g=S,S=p=e,p=v.updateForStatement(p,p.initializer&&U(p.initializer),G.visitNode(p.condition,V,G.isExpression),G.visitNode(p.incrementor,V,G.isExpression),G.visitNode(p.statement,z,G.isStatement)),S=g,p;case 238:return d=S,S=_=e,_=v.updateForInStatement(_,U(_.initializer),G.visitNode(_.expression,V,G.isExpression),G.visitNode(_.statement,z,G.isStatement,v.liftToBlock)),S=d,_;case 239:return d=S,S=_=e,_=v.updateForOfStatement(_,_.awaitModifier,U(_.initializer),G.visitNode(_.expression,V,G.isExpression),G.visitNode(_.statement,z,G.isStatement,v.liftToBlock)),S=d,_;case 235:return l=e,v.updateDoStatement(l,G.visitNode(l.statement,z,G.isStatement,v.liftToBlock),G.visitNode(l.expression,V,G.isExpression));case 236:return l=e,v.updateWhileStatement(l,G.visitNode(l.expression,V,G.isExpression),G.visitNode(l.statement,z,G.isStatement,v.liftToBlock));case 245:return u=e,v.updateLabeledStatement(u,u.label,G.visitNode(u.statement,z,G.isStatement,v.liftToBlock));case 243:return u=e,v.updateWithStatement(u,G.visitNode(u.expression,V,G.isExpression),G.visitNode(u.statement,z,G.isStatement,v.liftToBlock));case 244:return c=e,v.updateSwitchStatement(c,G.visitNode(c.expression,V,G.isExpression),G.visitNode(c.caseBlock,z,G.isCaseBlock));case 258:return c=S,S=s=e,s=v.updateCaseBlock(s,G.visitNodes(s.clauses,z,G.isCaseOrDefaultClause)),S=c,s;case 284:return s=e,v.updateCaseClause(s,G.visitNode(s.expression,V,G.isExpression),G.visitNodes(s.statements,z,G.isStatement));case 285:return o=e,G.visitEachChild(o,z,h);case 247:return o=e,G.visitEachChild(o,z,h);case 287:return a=S,S=i=e,i=v.updateCatchClause(i,i.variableDeclaration,G.visitNode(i.block,z,G.isBlock)),S=a,i;case 230:return a=S,S=i=e,i=G.visitEachChild(i,z,h),S=a,i;case 338:return w(t=e)&&232===t.original.kind&&(r=G.getOriginalNodeId(t),n=G.hasSyntacticModifier(t.original,1),T[r]=M(T[r],t.original,n)),t;case 339:return r=e,n=G.getOriginalNodeId(r),(t=T[n])?(delete T[n],G.append(t,r)):(n=G.getOriginalNode(r),G.isModuleOrEnumDeclaration(n)?G.append(R(t,n),r):r);default:return V(e)}var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y}function U(e){if(a=e,G.isVariableDeclarationList(a)&&A(a)){for(var t=void 0,r=0,n=e.declarations;r<n.length;r++){var i=n[r],t=G.append(t,F(i,!1));i.initializer||N(i)}return t?v.inlineExpressions(t):v.createOmittedExpression()}return G.visitEachChild(e,z,h);var a}function V(e){return G.isDestructuringAssignment(e)?function(e){if(K(e.left))return G.flattenDestructuringAssignment(e,V,h,0,!0);return G.visitEachChild(e,V,h)}(e):G.isImportCall(e)?(t=e,v.createCallExpression(v.createPropertyAccessExpression(c,v.createIdentifier("import")),void 0,G.some(t.arguments)?[G.visitNode(t.arguments[0],V)]:[])):1024&e.transformFlags||2097152&e.transformFlags?G.visitEachChild(e,V,h):e;var t}function K(e){if(G.isAssignmentExpression(e,!0))return K(e.left);if(G.isSpreadElement(e))return K(e.expression);if(G.isObjectLiteralExpression(e))return G.some(e.properties,K);if(G.isArrayLiteralExpression(e))return G.some(e.elements,K);if(G.isShorthandPropertyAssignment(e))return K(e.name);if(G.isPropertyAssignment(e))return K(e.initializer);if(G.isIdentifier(e)){e=l.getReferencedExportContainer(e);return void 0!==e&&297===e.kind}return!1}function q(e){switch(e.kind){case 92:case 87:return}return e}function W(e){var t,r;return G.isGeneratedIdentifier(e)||(r=l.getReferencedImportDeclaration(e)||l.getReferencedValueDeclaration(e))&&((e=l.getReferencedExportContainer(e,!1))&&297===e.kind&&(t=G.append(t,v.getDeclarationName(r))),t=G.addRange(t,d&&d.exportedBindings[G.getOriginalNodeId(r)])),t}function H(e){return void 0===p&&(p=[]),p[G.getNodeId(e)]=!0,e}}}(ts=ts||{}),function(l){l.transformECMAScriptModule=function(i){var n,a=i.factory,o=i.getEmitHelperFactory,s=i.getCompilerOptions(),c=i.onEmitNode,r=i.onSubstituteNode;return i.onEmitNode=function(e,t,r){l.isSourceFile(t)?((l.isExternalModule(t)||s.isolatedModules)&&s.importHelpers&&(n=new l.Map),c(e,t,r),n=void 0):c(e,t,r)},i.onSubstituteNode=function(e,t){if(t=r(e,t),n&&l.isIdentifier(t)&&4096&l.getEmitFlags(t))return function(e){var t=l.idText(e),e=n.get(t);e||n.set(t,e=a.createUniqueName(t,48));return e}(t);return t},i.enableEmitNotification(297),i.enableSubstitution(78),l.chainBundle(i,function(e){if(e.isDeclarationFile)return e;if(l.isExternalModule(e)||s.isolatedModules){var t=function(e){var t=l.createExternalHelpersImportDeclarationIfNeeded(a,o(),e,s);{if(t){var r=[],n=a.copyPrologue(e.statements,r);return l.append(r,t),l.addRange(r,l.visitNodes(e.statements,u,l.isStatement,n)),a.updateSourceFile(e,l.setTextRange(a.createNodeArray(r),e.statements))}return l.visitEachChild(e,u,i)}}(e);return!l.isExternalModule(e)||l.some(t.statements,l.isExternalModuleIndicator)?t:a.updateSourceFile(t,l.setTextRange(a.createNodeArray(__spreadArrays(t.statements,[l.createEmptyExports(a)])),t.statements))}return e});function u(e){switch(e.kind){case 260:return;case 266:return(t=e).isExportEquals?void 0:t;case 267:return function(e){if(void 0!==s.module&&s.module>l.ModuleKind.ES2015)return e;if(!e.exportClause||!l.isNamespaceExport(e.exportClause)||!e.moduleSpecifier)return e;var t=e.exportClause.name,r=a.getGeneratedNameForNode(t),n=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamespaceImport(r)),e.moduleSpecifier);l.setOriginalNode(n,e.exportClause);t=l.isExportNamespaceAsDefaultDeclaration(e)?a.createExportDefault(r):a.createExportDeclaration(void 0,void 0,!1,a.createNamedExports([a.createExportSpecifier(r,t)]));return l.setOriginalNode(t,e),[n,t]}(e)}var t;return e}}}(ts=ts||{}),function(n){function e(r){return n.isVariableDeclaration(r)||n.isPropertyDeclaration(r)||n.isPropertySignature(r)||n.isPropertyAccessExpression(r)||n.isBindingElement(r)||n.isConstructorDeclaration(r)?e:n.isSetAccessor(r)||n.isGetAccessor(r)?function(e){e=168===r.kind?n.hasSyntacticModifier(r,32)?e.errorModuleName?n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:n.hasSyntacticModifier(r,32)?e.errorModuleName?2===e.accessibility?n.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:n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r.name,typeName:r.name}}:n.isConstructSignatureDeclaration(r)||n.isCallSignatureDeclaration(r)||n.isMethodDeclaration(r)||n.isMethodSignature(r)||n.isFunctionDeclaration(r)||n.isIndexSignatureDeclaration(r)?function(e){var t;switch(r.kind){case 170:t=e.errorModuleName?n.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 169:t=e.errorModuleName?n.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:t=e.errorModuleName?n.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 165:case 164:t=n.hasSyntacticModifier(r,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:252===r.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:e.errorModuleName?n.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 251:t=e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return n.Debug.fail("This is unknown kind for signature: "+r.kind)}return{diagnosticMessage:t,errorNode:r.name||r}}:n.isParameter(r)?n.isParameterPropertyDeclaration(r,r.parent)&&n.hasSyntacticModifier(r.parent,8)?e:function(e){e=function(e){switch(r.parent.kind){case 166:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 170:case 175:return e.errorModuleName?n.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 169:return e.errorModuleName?n.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:return e.errorModuleName?n.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 165:case 164:return n.hasSyntacticModifier(r.parent,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:252===r.parent.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 251:case 174:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 168:case 167:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return n.Debug.fail("Unknown parent for parameter: "+n.SyntaxKind[r.parent.kind])}}(e);return void 0!==e?{diagnosticMessage:e,errorNode:r,typeName:r.name}:void 0}:n.isTypeParameterDeclaration(r)?function(){var e;switch(r.parent.kind){case 252:e=n.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 253:e=n.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 190:e=n.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 175:case 170:e=n.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:e=n.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:case 164:e=n.hasSyntacticModifier(r.parent,32)?n.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:252===r.parent.parent.kind?n.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 251:e=n.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 254:e=n.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return n.Debug.fail("This is unknown parent for type parameter: "+r.parent.kind)}return{diagnosticMessage:e,errorNode:r,typeName:r.name}}:n.isExpressionWithTypeArguments(r)?function(){var e;e=n.isClassDeclaration(r.parent.parent)?n.isHeritageClause(r.parent)&&116===r.parent.token?n.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:r.parent.parent.name?n.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:n.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:n.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r,typeName:n.getNameOfDeclaration(r.parent.parent)}}:n.isImportEqualsDeclaration(r)?function(){return{diagnosticMessage:n.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:r,typeName:r.name}}:n.isTypeAliasDeclaration(r)?function(){return{diagnosticMessage:n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:r.type,typeName:r.name}}:n.Debug.assertNever(r,"Attempted to set a declaration diagnostic context for unhandled node kind: "+n.SyntaxKind[r.kind]);function e(e){e=e,e=249===r.kind||198===r.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:163===r.kind||201===r.kind||162===r.kind||160===r.kind&&n.hasSyntacticModifier(r.parent,8)?n.hasSyntacticModifier(r,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:252===r.parent.kind||160===r.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0;return void 0!==e?{diagnosticMessage:e,errorNode:r,typeName:r.name}:void 0}}n.canProduceDiagnostics=function(e){return n.isVariableDeclaration(e)||n.isPropertyDeclaration(e)||n.isPropertySignature(e)||n.isBindingElement(e)||n.isSetAccessor(e)||n.isGetAccessor(e)||n.isConstructSignatureDeclaration(e)||n.isCallSignatureDeclaration(e)||n.isMethodDeclaration(e)||n.isMethodSignature(e)||n.isFunctionDeclaration(e)||n.isParameter(e)||n.isTypeParameterDeclaration(e)||n.isExpressionWithTypeArguments(e)||n.isImportEqualsDeclaration(e)||n.isTypeAliasDeclaration(e)||n.isConstructorDeclaration(e)||n.isIndexSignatureDeclaration(e)||n.isPropertyAccessExpression(e)},n.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return n.isSetAccessor(t)||n.isGetAccessor(t)?function(e){e=function(e){return n.hasSyntacticModifier(t,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:252===t.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(e);return void 0!==e?{diagnosticMessage:e,errorNode:t,typeName:t.name}:void 0}:n.isMethodSignature(t)||n.isMethodDeclaration(t)?function(e){e=function(e){return n.hasSyntacticModifier(t,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:252===t.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(e);return void 0!==e?{diagnosticMessage:e,errorNode:t,typeName:t.name}:void 0}:e(t)},n.createGetSymbolAccessibilityDiagnosticForNode=e}(ts=ts||{}),function(oe){function a(e,t){e=t.text.substring(e.pos,e.end);return oe.stringContains(e,"@internal")}function t(e,t){var r=oe.getParseTreeNode(e);if(r&&160===r.kind){var n=r.parent.parameters.indexOf(r),i=0<n?r.parent.parameters[n-1]:void 0,n=t.text,e=i?oe.concatenate(oe.getTrailingCommentRanges(n,oe.skipTrivia(n,i.end+1,!1,!0)),oe.getLeadingCommentRanges(n,e.pos)):oe.getTrailingCommentRanges(n,oe.skipTrivia(n,e.pos,!1,!0));return e&&e.length&&a(oe.last(e),t)}r=r&&oe.getLeadingCommentRangesOfNode(r,t);return!!oe.forEach(r,function(e){return a(e,t)})}oe.getDeclarationDiagnostics=function(e,t,r){var n=e.getCompilerOptions();return oe.transformNodes(t,e,oe.factory,n,r?[r]:oe.filter(e.getSourceFiles(),oe.isSourceFileNotJson),[i],!1).diagnostics},oe.isInternalDeclaration=t;var se=531469;function i(_){function l(){return oe.Debug.fail("Diagnostic emitted without context")}var b,d,p,x,f,g,m,y,h,v,D,S=l,T=!0,C=!1,E=!1,k=!1,N=!1,A=_.factory,F=_.getEmitHost(),P={trackSymbol:function(e,t,r){if(262144&e.flags)return;n(w.isSymbolAccessible(e,t,r,!0)),M(w.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){m&&_.addDiagnostic(oe.createDiagnosticForNode(m,oe.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,oe.declarationNameToString(m),"this"))},reportInaccessibleUniqueSymbolError:function(){m&&_.addDiagnostic(oe.createDiagnosticForNode(m,oe.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,oe.declarationNameToString(m),"unique symbol"))},reportCyclicStructureError:function(){m&&_.addDiagnostic(oe.createDiagnosticForNode(m,oe.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,oe.declarationNameToString(m)))},reportPrivateInBaseOfClassExpression:function(e){m&&_.addDiagnostic(oe.createDiagnosticForNode(m,oe.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},reportLikelyUnsafeImportRequiredError:function(e){m&&_.addDiagnostic(oe.createDiagnosticForNode(m,oe.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,oe.declarationNameToString(m),e))},reportTruncationError:function(){m&&_.addDiagnostic(oe.createDiagnosticForNode(m,oe.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:F,trackReferencedAmbientModule:function(e,t){t=w.getTypeReferenceDirectivesForSymbol(t,67108863);if(oe.length(t))return M(t);e=oe.getSourceFileOfNode(e);h.set(oe.getOriginalNodeId(e),e)},trackExternalModuleSymbolOfImportTypeNode:function(e){C||(g=g||[]).push(e)},reportNonlocalAugmentation:function(t,e,r){for(var n=oe.find(e.declarations,function(e){return oe.getSourceFileOfNode(e)===t}),r=oe.filter(r.declarations,function(e){return oe.getSourceFileOfNode(e)!==t}),i=0,a=r;i<a.length;i++){var o=a[i];_.addDiagnostic(oe.addRelatedInfo(oe.createDiagnosticForNode(o,oe.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),oe.createDiagnosticForNode(n,oe.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}},w=_.getEmitResolver(),I=_.getCompilerOptions(),e=I.noResolve,O=I.stripInternal;return function(a){if(297===a.kind&&a.isDeclarationFile)return a;if(298===a.kind){C=!0,h=new oe.Map,v=new oe.Map;var r=!1,e=A.createBundle(oe.map(a.sourceFiles,function(e){if(!e.isDeclarationFile){if(r=r||e.hasNoDefaultLib,b=y=e,p=void 0,f=!1,x=new oe.Map,S=l,N=k=!1,R(e,h),B(e,v),oe.isExternalOrCommonJsModule(e)||oe.isJsonSourceFile(e)){T=E=!1;var t=oe.isSourceFileJS(e)?A.createNodeArray(L(e,!0)):oe.visitNodes(e.statements,Z);return A.updateSourceFile(e,[A.createModuleDeclaration([],[A.createModifier(133)],A.createStringLiteral(oe.getResolvedExternalModuleName(_.getEmitHost(),e)),A.createModuleBlock(oe.setTextRange(A.createNodeArray(Q(t)),e.statements)))],!0,[],[],!1,[])}T=!0;t=oe.isSourceFileJS(e)?A.createNodeArray(L(e)):oe.visitNodes(e.statements,Z);return A.updateSourceFile(e,Q(t),!0,[],[],!1,[])}}),oe.mapDefined(a.prepends,function(e){if(300!==e.kind)return e;e=oe.createUnparsedSourceFile(e,"dts",O);return r=r||!!e.hasNoDefaultLib,R(e,h),M(e.typeReferenceDirectives),B(e,v),e}));e.syntheticFileReferences=[],e.syntheticTypeReferences=s(),e.syntheticLibReferences=o(),e.hasNoDefaultLib=r;var t=oe.getDirectoryPath(oe.normalizeSlashes(oe.getOutputPathsFor(a,F,!0).declarationFilePath)),n=u(e.syntheticFileReferences,t);return h.forEach(n),e}T=!0,y=b=a,S=l,f=E=C=N=k=!1,p=void 0,x=new oe.Map,d=void 0,h=R(y,new oe.Map),v=B(y,new oe.Map);var i,t=[],n=oe.getDirectoryPath(oe.normalizeSlashes(oe.getOutputPathsFor(a,F,!0).declarationFilePath)),e=u(t,n);oe.isSourceFileJS(y)?(i=A.createNodeArray(L(a)),h.forEach(e),D=oe.filter(i,oe.isAnyImportSyntax)):(n=oe.visitNodes(a.statements,Z),i=oe.setTextRange(A.createNodeArray(Q(n)),a.statements),h.forEach(e),D=oe.filter(i,oe.isAnyImportSyntax),oe.isExternalModule(a)&&(!E||k&&!N)&&(i=oe.setTextRange(A.createNodeArray(__spreadArrays(i,[oe.createEmptyExports(A)])),i)));t=A.updateSourceFile(a,i,!0,t,s(),a.hasNoDefaultLib,o());return t.exportedModulesFromDeclarationEmit=g,t;function o(){return oe.map(oe.arrayFrom(v.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function s(){return d?oe.mapDefined(oe.arrayFrom(d.keys()),c):[]}function c(e){if(D)for(var t=0,r=D;t<r.length;t++){var n=r[t];if(oe.isImportEqualsDeclaration(n)&&oe.isExternalModuleReference(n.moduleReference)){var i=n.moduleReference.expression;if(oe.isStringLiteralLike(i)&&i.text===e)return}else if(oe.isImportDeclaration(n)&&oe.isStringLiteral(n.moduleSpecifier)&&n.moduleSpecifier.text===e)return}return{fileName:e,pos:-1,end:-1}}function u(n,i){return function(e){if(e.isDeclarationFile)r=e.fileName;else{if(C&&oe.contains(a.sourceFiles,e))return;var t=oe.getOutputPathsFor(e,F,!0),r=t.declarationFilePath||t.jsFilePath||e.fileName}r&&(e=oe.moduleSpecifiers.getModuleSpecifier(__assign(__assign({},I),{baseUrl:I.baseUrl&&oe.toPath(I.baseUrl,F.getCurrentDirectory(),F.getCanonicalFileName)}),y,oe.toPath(i,F.getCurrentDirectory(),F.getCanonicalFileName),oe.toPath(r,F.getCurrentDirectory(),F.getCanonicalFileName),F,void 0),oe.pathIsRelative(e)?(r=oe.getRelativePathToDirectoryOrUrl(i,r,F.getCurrentDirectory(),F.getCanonicalFileName,!1),oe.startsWith(r,"./")&&oe.hasExtension(r)&&(r=r.substring(2)),oe.startsWith(r,"node_modules/")||oe.pathContainsNodeModules(r)||n.push({pos:-1,end:-1,fileName:r})):M([e]))}}};function M(e){if(e){d=d||new oe.Set;for(var t=0,r=e;t<r.length;t++){var n=r[t];d.add(n)}}}function n(e){if(0===e.accessibility){if(e&&e.aliasesToMakeVisible)if(p)for(var t=0,r=e.aliasesToMakeVisible;t<r.length;t++){var n=r[t];oe.pushIfUnique(p,n)}else p=e.aliasesToMakeVisible}else{var i=S(e);i&&(i.typeName?_.addDiagnostic(oe.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,oe.getTextOfNode(i.typeName),e.errorSymbolName,e.errorModuleName)):_.addDiagnostic(oe.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,e.errorSymbolName,e.errorModuleName)))}}function L(t,e){var r=S;S=function(e){return{diagnosticMessage:e.errorModuleName?oe.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:oe.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:e.errorNode||t}};e=w.getDeclarationStatementsForSourceFile(t,se,P,e);return S=r,e}function R(t,r){return e||!oe.isUnparsedSource(t)&&oe.isSourceFileJS(t)||oe.forEach(t.referencedFiles,function(e){e=F.getSourceFileFromReference(t,e);e&&r.set(oe.getOriginalNodeId(e),e)}),r}function B(e,t){return oe.forEach(e.libReferenceDirectives,function(e){F.getLibFileFromReference(e)&&t.set(oe.toFileNameLowerCase(e.fileName),!0)}),t}function i(e,t,r){var n;f||(n=S,S=oe.createGetSymbolAccessibilityDiagnosticForNode(e));var i,a,e=A.updateParameterDeclaration(e,void 0,(i=e,t=t,oe.factory.createModifiersFromModifierFlags(s(i,t,a))),e.dotDotDotToken,function t(e){return 78===e.kind?e:197===e.kind?A.updateArrayBindingPattern(e,oe.visitNodes(e.elements,r)):A.updateObjectBindingPattern(e,oe.visitNodes(e.elements,r));function r(e){return 222===e.kind?e:A.updateBindingElement(e,e.dotDotDotToken,e.propertyName,t(e.name),o(e)?e.initializer:void 0)}}(e.name),w.isOptionalParameter(e)?e.questionToken||A.createToken(57):void 0,J(e,r||e.type,!0),j(e));return f||(S=n),e}function o(e){return function(e){switch(e.kind){case 163:case 162:return!oe.hasEffectiveModifier(e,8);case 160:case 249:return 1}return}(e)&&w.isLiteralConstDeclaration(oe.getParseTreeNode(e))}function j(e){if(o(e))return w.createLiteralConstValue(oe.getParseTreeNode(e),P)}function J(e,t,r){if((r||!oe.hasEffectiveModifier(e,8))&&!o(e)){var n,r=160===e.kind&&(w.isRequiredInitializedParameter(e)||w.isOptionalUninitializedParameterProperty(e));return t&&!r?oe.visitNode(t,Y):oe.getParseTreeNode(e)?168===e.kind?A.createKeywordTypeNode(128):(m=e.name,f||(n=S,S=oe.createGetSymbolAccessibilityDiagnosticForNode(e)),249===e.kind||198===e.kind?i(w.createTypeOfDeclaration(e,b,se,P)):160===e.kind||163===e.kind||162===e.kind?e.initializer?i(w.createTypeOfDeclaration(e,b,se,P,r)||w.createTypeOfExpression(e.initializer,b,se,P)):i(w.createTypeOfDeclaration(e,b,se,P,r)):i(w.createReturnTypeOfSignatureDeclaration(e,b,se,P))):t?oe.visitNode(t,Y):A.createKeywordTypeNode(128)}function i(e){return m=void 0,f||(S=n),e||A.createKeywordTypeNode(128)}}function z(e){switch((e=oe.getParseTreeNode(e)).kind){case 251:case 256:case 253:case 252:case 254:case 255:return!w.isDeclarationVisible(e);case 249:return!U(e);case 260:case 261:case 267:case 266:return}}function U(e){return!oe.isOmittedExpression(e)&&(oe.isBindingPattern(e.name)?oe.some(e.name.elements,U):w.isDeclarationVisible(e))}function V(e,t,r){if(!oe.hasEffectiveModifier(e,8)){e=oe.map(t,function(e){return i(e,r)});if(e)return A.createNodeArray(e,t.hasTrailingComma)}}function K(e,t){var r,n;return t||(n=oe.getThisParameter(e))&&(r=[i(n)]),oe.isSetAccessorDeclaration(e)&&(n=void 0,t||(t=oe.getSetAccessorValueParameter(e))&&(n=i(t,void 0,ie(e,w.getAllAccessorDeclarations(e)))),n=n||A.createParameterDeclaration(void 0,void 0,void 0,"value"),r=oe.append(r,n)),A.createNodeArray(r||oe.emptyArray)}function q(e,t){return oe.hasEffectiveModifier(e,8)?void 0:oe.visitNodes(t,Y)}function W(e){return oe.isSourceFile(e)||oe.isTypeAliasDeclaration(e)||oe.isModuleDeclaration(e)||oe.isClassDeclaration(e)||oe.isInterfaceDeclaration(e)||oe.isFunctionLike(e)||oe.isIndexSignatureDeclaration(e)||oe.isMappedTypeNode(e)}function H(e,t){n(w.isEntityNameVisible(e,t)),M(w.getTypeReferenceDirectivesForEntityName(e))}function G(e,t){return oe.hasJSDocNodes(e)&&oe.hasJSDocNodes(t)&&(e.jsDoc=t.jsDoc),oe.setCommentRange(e,oe.getCommentRange(t))}function X(e,t){if(t){if(E=E||256!==e.kind&&195!==e.kind,oe.isStringLiteralLike(t))if(C){var r=oe.getExternalModuleNameFromDeclaration(_.getEmitHost(),w,e);if(r)return A.createStringLiteral(r)}else{r=w.getSymbolOfExternalModuleSpecifier(t);r&&(g=g||[]).push(r)}return t}}function Q(e){for(;oe.length(p);){var t=p.shift();if(!oe.isLateVisibilityPaintedStatement(t))return oe.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(oe.SyntaxKind?oe.SyntaxKind[t.kind]:t.kind));var r=T;T=t.parent&&oe.isSourceFile(t.parent)&&!(oe.isExternalModule(t.parent)&&C);var n=a(t);T=r,x.set(oe.getOriginalNodeId(t),n)}return oe.visitNodes(e,function(e){if(oe.isLateVisibilityPaintedStatement(e)){var t=oe.getOriginalNodeId(e);if(x.has(t)){var r=x.get(t);return x.delete(t),r&&((oe.isArray(r)?oe.some(r,oe.needsScopeMarker):oe.needsScopeMarker(r))&&(k=!0),oe.isSourceFile(e.parent)&&(oe.isArray(r)?oe.some(r,oe.isExternalModuleIndicator):oe.isExternalModuleIndicator(r))&&(E=!0)),r}}return e})}function Y(n){if(!te(n)){if(oe.isDeclaration(n)){if(z(n))return;if(oe.hasDynamicName(n)&&!w.isLateBound(oe.getParseTreeNode(n)))return}if(!(oe.isFunctionLike(n)&&w.isImplementationOfOverload(n)||oe.isSemicolonClassElement(n))){var i;W(n)&&(i=b,b=n);var a=S,o=oe.canProduceDiagnostics(n),s=f,c=(177===n.kind||190===n.kind)&&254!==n.parent.kind;if((oe.isMethodDeclaration(n)||oe.isMethodSignature(n))&&oe.hasEffectiveModifier(n,8))return n.symbol&&n.symbol.declarations&&n.symbol.declarations[0]!==n?void 0:l(A.createPropertyDeclaration(void 0,ne(n),n.name,void 0,void 0,void 0));if(o&&!f&&(S=oe.createGetSymbolAccessibilityDiagnosticForNode(n)),oe.isTypeQueryNode(n)&&H(n.exprName,b),c&&(f=!0),function(e){switch(e.kind){case 170:case 166:case 165:case 167:case 168:case 163:case 162:case 164:case 169:case 171:case 249:case 159:case 223:case 173:case 184:case 174:case 175:case 195:return!0}return!1}(n))switch(n.kind){case 223:(oe.isEntityName(n.expression)||oe.isEntityNameExpression(n.expression))&&H(n.expression,b);var e=oe.visitEachChild(n,Y,_);return l(A.updateExpressionWithTypeArguments(e,e.expression,e.typeArguments));case 173:H(n.typeName,b);e=oe.visitEachChild(n,Y,_);return l(A.updateTypeReferenceNode(e,e.typeName,e.typeArguments));case 170:return l(A.updateConstructSignature(n,q(n,n.typeParameters),V(n,n.parameters),J(n,n.type)));case 166:return l(A.createConstructorDeclaration(void 0,ne(n),V(n,n.parameters,0),void 0));case 165:return oe.isPrivateIdentifier(n.name)?l(void 0):l(A.createMethodDeclaration(void 0,ne(n),void 0,n.name,n.questionToken,q(n,n.typeParameters),V(n,n.parameters),J(n,n.type),void 0));case 167:if(oe.isPrivateIdentifier(n.name))return l(void 0);var t=ie(n,w.getAllAccessorDeclarations(n));return l(A.updateGetAccessorDeclaration(n,void 0,ne(n),n.name,K(n,oe.hasEffectiveModifier(n,8)),J(n,t),void 0));case 168:return oe.isPrivateIdentifier(n.name)?l(void 0):l(A.updateSetAccessorDeclaration(n,void 0,ne(n),n.name,K(n,oe.hasEffectiveModifier(n,8)),void 0));case 163:return oe.isPrivateIdentifier(n.name)?l(void 0):l(A.updatePropertyDeclaration(n,void 0,ne(n),n.name,n.questionToken,J(n,n.type),j(n)));case 162:return oe.isPrivateIdentifier(n.name)?l(void 0):l(A.updatePropertySignature(n,ne(n),n.name,n.questionToken,J(n,n.type)));case 164:return oe.isPrivateIdentifier(n.name)?l(void 0):l(A.updateMethodSignature(n,ne(n),n.name,n.questionToken,q(n,n.typeParameters),V(n,n.parameters),J(n,n.type)));case 169:return l(A.updateCallSignature(n,q(n,n.typeParameters),V(n,n.parameters),J(n,n.type)));case 171:return l(A.updateIndexSignature(n,void 0,ne(n),V(n,n.parameters),oe.visitNode(n.type,Y)||A.createKeywordTypeNode(128)));case 249:return oe.isBindingPattern(n.name)?ee(n.name):(f=c=!0,l(A.updateVariableDeclaration(n,n.name,void 0,J(n,n.type),j(n))));case 159:return 165===(u=n).parent.kind&&oe.hasEffectiveModifier(u.parent,8)&&(n.default||n.constraint)?l(A.updateTypeParameterDeclaration(n,n.name,void 0,void 0)):l(oe.visitEachChild(n,Y,_));case 184:var r=oe.visitNode(n.checkType,Y),e=oe.visitNode(n.extendsType,Y),t=b;b=n.trueType;var u=oe.visitNode(n.trueType,Y);b=t;t=oe.visitNode(n.falseType,Y);return l(A.updateConditionalTypeNode(n,r,e,u,t));case 174:return l(A.updateFunctionTypeNode(n,oe.visitNodes(n.typeParameters,Y),V(n,n.parameters),oe.visitNode(n.type,Y)));case 175:return l(A.updateConstructorTypeNode(n,oe.visitNodes(n.typeParameters,Y),V(n,n.parameters),oe.visitNode(n.type,Y)));case 195:return oe.isLiteralImportTypeNode(n)?l(A.updateImportTypeNode(n,A.updateLiteralTypeNode(n.argument,X(n,n.argument.literal)),n.qualifier,oe.visitNodes(n.typeArguments,Y,oe.isTypeNode),n.isTypeOf)):l(n);default:oe.Debug.assertNever(n,"Attempted to process unhandled node kind: "+oe.SyntaxKind[n.kind])}return oe.isTupleTypeNode(n)&&oe.getLineAndCharacterOfPosition(y,n.pos).line===oe.getLineAndCharacterOfPosition(y,n.end).line&&oe.setEmitFlags(n,1),l(oe.visitEachChild(n,Y,_))}}function l(e){var t,r;return e&&o&&oe.hasDynamicName(n)&&(t=n,f||(r=S,S=oe.createGetSymbolAccessibilityDiagnosticForNodeName(t)),m=t.name,oe.Debug.assert(w.isLateBound(oe.getParseTreeNode(t))),H(t.name.expression,b),f||(S=r),m=void 0),W(n)&&(b=i),o&&!f&&(S=a),c&&(f=s),e===n?e:e&&oe.setOriginalNode(G(e,n),n)}}function Z(e){if(function(e){switch(e.kind){case 251:case 256:case 260:case 253:case 252:case 254:case 255:case 232:case 261:case 267:case 266:return!0}return!1}(e)&&!te(e)){switch(e.kind){case 267:return oe.isSourceFile(e.parent)&&(E=!0),N=!0,A.updateExportDeclaration(e,void 0,e.modifiers,e.isTypeOnly,e.exportClause,X(e,e.moduleSpecifier));case 266:if(oe.isSourceFile(e.parent)&&(E=!0),N=!0,78===e.expression.kind)return e;var t=A.createUniqueName("_default",16);S=function(){return{diagnosticMessage:oe.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}};var r=A.createVariableDeclaration(t,void 0,w.createTypeOfExpression(e.expression,e,se,P),void 0);return[A.createVariableStatement(T?[A.createModifier(133)]:[],A.createVariableDeclarationList([r],2)),A.updateExportAssignment(e,e.decorators,e.modifiers,t)]}var n=a(e);return x.set(oe.getOriginalNodeId(e),n),e}}function $(e){if(oe.isImportEqualsDeclaration(e)||oe.hasEffectiveModifier(e,512)||!oe.canHaveModifiers(e))return e;var t=A.createModifiersFromModifierFlags(11262&oe.getEffectiveModifierFlags(e));return A.updateModifiers(e,t)}function a(t){if(!te(t)){switch(t.kind){case 260:return function(e){if(w.isDeclarationVisible(e)){if(272===e.moduleReference.kind){var t=oe.getExternalModuleImportEqualsDeclarationExpression(e);return A.updateImportEqualsDeclaration(e,void 0,e.modifiers,e.name,A.updateExternalModuleReference(e.moduleReference,X(e,t)))}t=S;return S=oe.createGetSymbolAccessibilityDiagnosticForNode(e),H(e.moduleReference,b),S=t,e}}(t);case 261:return function(e){if(!e.importClause)return A.updateImportDeclaration(e,void 0,e.modifiers,e.importClause,X(e,e.moduleSpecifier));var t=e.importClause&&e.importClause.name&&w.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&A.updateImportDeclaration(e,void 0,e.modifiers,A.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,void 0),X(e,e.moduleSpecifier));if(263!==e.importClause.namedBindings.kind)return(r=oe.mapDefined(e.importClause.namedBindings.elements,function(e){return w.isDeclarationVisible(e)?e:void 0}))&&r.length||t?A.updateImportDeclaration(e,void 0,e.modifiers,A.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r&&r.length?A.updateNamedImports(e.importClause.namedBindings,r):void 0),X(e,e.moduleSpecifier)):w.isImportRequiredByAugmentation(e)?A.updateImportDeclaration(e,void 0,e.modifiers,void 0,X(e,e.moduleSpecifier)):void 0;var r=w.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||r?A.updateImportDeclaration(e,void 0,e.modifiers,A.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),X(e,e.moduleSpecifier)):void 0}(t)}if(!(oe.isDeclaration(t)&&z(t)||oe.isFunctionLike(t)&&w.isImplementationOfOverload(t))){var r;W(t)&&(r=b,b=t);var n=oe.canProduceDiagnostics(t),i=S;n&&(S=oe.createGetSymbolAccessibilityDiagnosticForNode(t));var a=T;switch(t.kind){case 254:return v(A.updateTypeAliasDeclaration(t,void 0,ne(t),t.name,oe.visitNodes(t.typeParameters,Y,oe.isTypeParameterDeclaration),oe.visitNode(t.type,Y,oe.isTypeNode)));case 253:return v(A.updateInterfaceDeclaration(t,void 0,ne(t),t.name,q(t,t.typeParameters),ae(t.heritageClauses),oe.visitNodes(t.members,Y)));case 251:var e=v(A.updateFunctionDeclaration(t,void 0,ne(t),void 0,t.name,q(t,t.typeParameters),V(t,t.parameters),J(t,t.type),void 0));if(e&&w.isExpandoFunctionDeclaration(t)){var o=w.getPropertiesOfContainerFunction(t),s=oe.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.name||A.createIdentifier("_default"),A.createModuleBlock([]),16);oe.setParent(s,b),s.locals=oe.createSymbolTable(o),s.symbol=o[0].parent;var c=[],u=oe.mapDefined(o,function(e){if(oe.isPropertyAccessExpression(e.valueDeclaration)){S=oe.createGetSymbolAccessibilityDiagnosticForNode(e.valueDeclaration);var t=w.createTypeOfDeclaration(e.valueDeclaration,s,se,P);S=i;var r=oe.unescapeLeadingUnderscores(e.escapedName),n=oe.isStringANonContextualKeyword(r),e=n?A.getGeneratedNameForNode(e.valueDeclaration):A.createIdentifier(r);n&&c.push([e,r]);t=A.createVariableDeclaration(e,void 0,t,void 0);return A.createVariableStatement(n?void 0:[A.createToken(92)],A.createVariableDeclarationList([t]))}});c.length?u.push(A.createExportDeclaration(void 0,void 0,!1,A.createNamedExports(oe.map(c,function(e){var t=e[0],e=e[1];return A.createExportSpecifier(t,e)})))):u=oe.mapDefined(u,function(e){return A.updateModifiers(e,0)});var l=A.createModuleDeclaration(void 0,ne(t),t.name,A.createModuleBlock(u),16);if(!oe.hasEffectiveModifier(e,512))return[e,l];var _=A.createModifiersFromModifierFlags(-514&oe.getEffectiveModifierFlags(e)|2),o=A.updateFunctionDeclaration(e,void 0,_,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),u=A.updateModuleDeclaration(l,void 0,_,l.name,l.body),l=A.createExportAssignment(void 0,void 0,!1,l.name);return oe.isSourceFile(t.parent)&&(E=!0),N=!0,[o,u,l]}return e;case 256:T=!1;var d=t.body;if(d&&257===d.kind){var l=k,p=N;k=N=!1;var f=Q(oe.visitNodes(d.statements,Z));8388608&t.flags&&(k=!1),oe.isGlobalScopeAugmentation(t)||(e=f,oe.some(e,re))||N||(f=k?A.createNodeArray(__spreadArrays(f,[oe.createEmptyExports(A)])):oe.visitNodes(f,$));f=A.updateModuleBlock(d,f);T=a,k=l,N=p;p=ne(t);return v(A.updateModuleDeclaration(t,void 0,p,oe.isExternalModuleAugmentation(t)?X(t,t.name):t.name,f))}T=a;p=ne(t);T=!1,oe.visitNode(d,Z);d=oe.getOriginalNodeId(d),f=x.get(d);return x.delete(d),v(A.updateModuleDeclaration(t,void 0,p,t.name,f));case 252:_=A.createNodeArray(ne(t)),d=q(t,t.typeParameters),p=oe.getFirstConstructorWithBody(t),f=void 0;p&&(g=S,f=oe.compact(oe.flatMap(p.parameters,function(o){if(oe.hasSyntacticModifier(o,92)&&!te(o))return S=oe.createGetSymbolAccessibilityDiagnosticForNode(o),78===o.name.kind?G(A.createPropertyDeclaration(void 0,ne(o),o.name,o.questionToken,J(o,o.type),j(o)),o):function e(t){var r;for(var n=0,i=t.elements;n<i.length;n++){var a=i[n];oe.isOmittedExpression(a)||(oe.isBindingPattern(a.name)&&(r=oe.concatenate(r,e(a.name))),(r=r||[]).push(A.createPropertyDeclaration(void 0,ne(o),a.name,void 0,J(a,void 0),void 0)))}return r}(o.name)})),S=g);var g=oe.some(t.members,function(e){return!!e.name&&oe.isPrivateIdentifier(e.name)})?[A.createPropertyDeclaration(void 0,void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,g=oe.concatenate(oe.concatenate(g,f),oe.visitNodes(t.members,Y)),f=A.createNodeArray(g),m=oe.getEffectiveBaseTypeNode(t);if(m&&!oe.isEntityNameExpression(m.expression)&&103!==m.expression.kind){var g=t.name?oe.unescapeLeadingUnderscores(t.name.escapedText):"default",y=A.createUniqueName(g+"_base",16);S=function(){return{diagnosticMessage:oe.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:m,typeName:t.name}};var h=A.createVariableDeclaration(y,void 0,w.createTypeOfExpression(m.expression,t,se,P),void 0),g=A.createVariableStatement(T?[A.createModifier(133)]:[],A.createVariableDeclarationList([h],2)),h=A.createNodeArray(oe.map(t.heritageClauses,function(e){if(93!==e.token)return A.updateHeritageClause(e,oe.visitNodes(A.createNodeArray(oe.filter(e.types,function(e){return oe.isEntityNameExpression(e.expression)||103===e.expression.kind})),Y));var t=S;S=oe.createGetSymbolAccessibilityDiagnosticForNode(e.types[0]);e=A.updateHeritageClause(e,oe.map(e.types,function(e){return A.updateExpressionWithTypeArguments(e,y,oe.visitNodes(e.typeArguments,Y))}));return S=t,e}));return[g,v(A.updateClassDeclaration(t,void 0,_,t.name,d,h,f))]}h=ae(t.heritageClauses);return v(A.updateClassDeclaration(t,void 0,_,t.name,d,h,f));case 232:return v(function(e){if(!oe.forEach(e.declarationList.declarations,U))return;var t=oe.visitNodes(e.declarationList.declarations,Y);return oe.length(t)?A.updateVariableStatement(e,A.createNodeArray(ne(e)),A.updateVariableDeclarationList(e.declarationList,t)):void 0}(t));case 255:return v(A.updateEnumDeclaration(t,void 0,A.createNodeArray(ne(t)),t.name,A.createNodeArray(oe.mapDefined(t.members,function(e){if(!te(e)){var t=w.getConstantValue(e);return G(A.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?A.createStringLiteral(t):A.createNumericLiteral(t):void 0),e)}}))))}return oe.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+oe.SyntaxKind[t.kind])}}function v(e){return W(t)&&(b=r),n&&(S=i),256===t.kind&&(T=a),e===t?e:e&&oe.setOriginalNode(G(e,t),t)}}function ee(e){return oe.flatten(oe.mapDefined(e.elements,function(e){if(222===e.kind)return;if(e.name&&U(e))return oe.isBindingPattern(e.name)?ee(e.name):A.createVariableDeclaration(e.name,void 0,J(e,void 0),void 0)}))}function te(e){return O&&e&&t(e,y)}function re(e){return oe.isExportAssignment(e)||oe.isExportDeclaration(e)}function ne(e){var t=oe.getEffectiveModifierFlags(e),r=function(e){var t=11003,r=T&&253!==e.kind?2:0,n=297===e.parent.kind;(!n||C&&n&&oe.isExternalModule(e.parent))&&(t^=2,r=0);return s(e,t,r)}(e);return t===r?e.modifiers:A.createModifiersFromModifierFlags(r)}function ie(e,t){var r=c(e);return r||e===t.firstAccessor||(r=c(t.firstAccessor),S=oe.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)),!r&&t.secondAccessor&&e!==t.secondAccessor&&(r=c(t.secondAccessor),S=oe.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)),r}function ae(e){return A.createNodeArray(oe.filter(oe.map(e,function(t){return A.updateHeritageClause(t,oe.visitNodes(A.createNodeArray(oe.filter(t.types,function(e){return oe.isEntityNameExpression(e.expression)||93===t.token&&103===e.expression.kind})),Y))}),function(e){return e.types&&!!e.types.length}))}}function s(e,t,r){void 0===t&&(t=11259),void 0===r&&(r=0);r=oe.getEffectiveModifierFlags(e)&t|r;return 512&r&&!(1&r)&&(r^=1),512&r&&2&r&&(r^=2),r}function c(e){if(e)return 167===e.kind?e.type:0<e.parameters.length?e.parameters[0].type:void 0}oe.transformDeclarations=i}(ts=ts||{}),function(M){var e;function t(n,i){return function(e){var t,r=n(e);return"function"==typeof r?i(e,r):(t=r,function(e){return M.isBundle(e)?t.transformBundle(e):t.transformSourceFile(e)})}}function a(e){return t(e,M.chainBundle)}function n(e){return t(e,function(e,t){return t})}function L(e,t){return t}function R(e,t,r){r(e,t)}(e={})[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed",(e={})[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications",M.noTransformers={scriptTransformers:M.emptyArray,declarationTransformers:M.emptyArray},M.getTransformers=function(e,t,r){return{scriptTransformers:function(e,t,r){if(r)return M.emptyArray;var n=M.getEmitScriptTarget(e),i=M.getEmitModuleKind(e),r=[];M.addRange(r,t&&M.map(t.before,a)),r.push(M.transformTypeScript),r.push(M.transformClassFields),M.getJSXTransformEnabled(e)&&r.push(M.transformJsx);n<99&&r.push(M.transformESNext);n<7&&r.push(M.transformES2020);n<6&&r.push(M.transformES2019);n<5&&r.push(M.transformES2018);n<4&&r.push(M.transformES2017);n<3&&r.push(M.transformES2016);n<2&&(r.push(M.transformES2015),r.push(M.transformGenerators));r.push(function(e){switch(e){case M.ModuleKind.ESNext:case M.ModuleKind.ES2020:case M.ModuleKind.ES2015:return M.transformECMAScriptModule;case M.ModuleKind.System:return M.transformSystemModule;default:return M.transformModule}}(i)),n<1&&r.push(M.transformES5);return M.addRange(r,t&&M.map(t.after,a)),r}(e,t,r),declarationTransformers:(r=t,(t=[]).push(M.transformDeclarations),M.addRange(t,r&&M.map(r.afterDeclarations,n)),t)}},M.noEmitSubstitution=L,M.noEmitNotification=R,M.transformNodes=function(e,t,r,n,i,a,o){for(var s,c,u,l,_=new Array(341),d=0,p=[],f=[],g=[],m=[],y=0,h=!1,v=L,b=R,x=0,D=[],S={factory:r,getCompilerOptions:function(){return n},getEmitResolver:function(){return e},getEmitHost:function(){return t},getEmitHelperFactory:M.memoize(function(){return M.createEmitHelperFactory(S)}),startLexicalEnvironment:function(){M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),M.Debug.assert(!h,"Lexical environment is suspended."),p[y]=s,f[y]=c,g[y]=u,m[y]=d,y++,s=void 0,c=void 0,u=void 0,d=0},suspendLexicalEnvironment:function(){M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),M.Debug.assert(!h,"Lexical environment is already suspended."),h=!0},resumeLexicalEnvironment:function(){M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),M.Debug.assert(h,"Lexical environment is not suspended."),h=!1},endLexicalEnvironment:function(){var e;{var t;M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),M.Debug.assert(!h,"Lexical environment is suspended."),(s||c||u)&&(c&&(e=__spreadArrays(c)),s&&(t=r.createVariableStatement(void 0,r.createVariableDeclarationList(s)),M.setEmitFlags(t,1048576),e?e.push(t):e=[t]),u&&(e=e?__spreadArrays(e,u):__spreadArrays(u)))}s=p[--y],c=f[y],u=g[y],d=m[y],0===y&&(p=[],f=[],g=[],m=[]);return e},setLexicalEnvironmentFlags:function(e,t){d=t?d|e:d&~e},getLexicalEnvironmentFlags:function(){return d},hoistVariableDeclaration:function(e){M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed.");e=M.setEmitFlags(r.createVariableDeclaration(e),64);s?s.push(e):s=[e];1&d&&(d|=2)},hoistFunctionDeclaration:function(e){M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),M.setEmitFlags(e,1048576),c?c.push(e):c=[e]},addInitializationStatement:function(e){M.Debug.assert(0<x,"Cannot modify the lexical environment during initialization."),M.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),M.setEmitFlags(e,1048576),u?u.push(e):u=[e]},requestEmitHelper:function e(t){M.Debug.assert(0<x,"Cannot modify the transformation context during initialization.");M.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed.");M.Debug.assert(!t.scoped,"Cannot request a scoped emit helper.");if(t.dependencies)for(var r=0,n=t.dependencies;r<n.length;r++){var i=n[r];e(i)}l=M.append(l,t)},readEmitHelpers:function(){M.Debug.assert(0<x,"Cannot modify the transformation context during initialization."),M.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed.");var e=l;return l=void 0,e},enableSubstitution:function(e){M.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed."),_[e]|=1},enableEmitNotification:function(e){M.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed."),_[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return v},set onSubstituteNode(e){M.Debug.assert(x<1,"Cannot modify transformation hooks after initialization has completed."),M.Debug.assert(void 0!==e,"Value must not be 'undefined'"),v=e},get onEmitNode(){return b},set onEmitNode(e){M.Debug.assert(x<1,"Cannot modify transformation hooks after initialization has completed."),M.Debug.assert(void 0!==e,"Value must not be 'undefined'"),b=e},addDiagnostic:function(e){D.push(e)}},T=0,C=i;T<C.length;T++){var E=C[T];M.disposeEmitNodes(M.getSourceFileOfNode(M.getParseTreeNode(E)))}M.performance.mark("beforeTransform");for(var k=a.map(function(e){return e(S)}),N=function(e){for(var t=0,r=k;t<r.length;t++)e=(0,r[t])(e);return e},x=1,A=[],F=0,P=i;F<P.length;F++){E=P[F];M.tracing.push("emit","transformNodes",297===E.kind?{path:E.path}:{kind:E.kind,pos:E.pos,end:E.end}),A.push((o?N:w)(E)),M.tracing.pop()}return x=2,M.performance.mark("afterTransform"),M.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:A,substituteNode:function(e,t){return M.Debug.assert(x<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&v(e,t)||t},emitNodeWithNotification:function(e,t,r){M.Debug.assert(x<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?b(e,t,r):r(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(x<3){for(var e=0,t=i;e<t.length;e++){var r=t[e];M.disposeEmitNodes(M.getSourceFileOfNode(M.getParseTreeNode(r)))}l=b=v=f=c=p=s=void 0,x=3}},diagnostics:D};function w(e){return!e||M.isSourceFile(e)&&e.isDeclarationFile?e:N(e)}function I(e){return 0!=(1&_[e.kind])&&0==(4&M.getEmitFlags(e))}function O(e){return 0!=(2&_[e.kind])||0!=(2&M.getEmitFlags(e))}},M.nullTransformationContext={get factory(){return M.factory},enableEmitNotification:M.noop,enableSubstitution:M.noop,endLexicalEnvironment:M.returnUndefined,getCompilerOptions:function(){return{}},getEmitHost:M.notImplemented,getEmitResolver:M.notImplemented,getEmitHelperFactory:M.notImplemented,setLexicalEnvironmentFlags:M.noop,getLexicalEnvironmentFlags:function(){return 0},hoistFunctionDeclaration:M.noop,hoistVariableDeclaration:M.noop,addInitializationStatement:M.noop,isEmitNotificationEnabled:M.notImplemented,isSubstitutionEnabled:M.notImplemented,onEmitNode:M.noop,onSubstituteNode:M.notImplemented,readEmitHelpers:M.notImplemented,requestEmitHelper:M.noop,resumeLexicalEnvironment:M.noop,startLexicalEnvironment:M.noop,suspendLexicalEnvironment:M.noop,addDiagnostic:M.noop}}(ts=ts||{}),function(Ir){var e,Or=((e=[])[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e),Mr={pos:-1,end:-1};function n(e,t,r,n,i,a){void 0===n&&(n=!1);var o=Ir.isArray(r)?r:Ir.getSourceFilesToEmit(e,r,n),s=e.getCompilerOptions();if(Ir.outFile(s)){r=e.getPrependNodes();if(o.length||r.length){r=Ir.factory.createBundle(o,r);if(l=t(p(r,e,n),r))return l}}else{if(!i)for(var c=0,u=o;c<u.length;c++){var l,_=u[c];if(l=t(p(_,e,n),_))return l}if(a){s=d(s);if(s)return t({buildInfoPath:s},void 0)}}}function d(e){var t=e.configFilePath;if(Ir.isIncrementalCompilation(e)){if(e.tsBuildInfoFile)return e.tsBuildInfoFile;var r=Ir.outFile(e);if(r)n=Ir.removeFileExtension(r);else{if(!t)return;var t=Ir.removeFileExtension(t),n=e.outDir?e.rootDir?Ir.resolvePath(e.outDir,Ir.getRelativePathFromDirectory(e.rootDir,t,!0)):Ir.combinePaths(e.outDir,Ir.getBaseFileName(t)):t}return n+".tsbuildinfo"}}function T(e,t){var r=Ir.outFile(e),n=e.emitDeclarationOnly?void 0:r,i=n&&s(n,e),r=t||Ir.getEmitDeclarations(e)?Ir.removeFileExtension(r)+".d.ts":void 0;return{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:r,declarationMapPath:r&&Ir.getAreDeclarationMapsEnabled(e)?r+".map":void 0,buildInfoPath:d(e)}}function p(e,t,r){var n=t.getCompilerOptions();if(298===e.kind)return T(n,r);var i=Ir.getOwnEmitOutputFilePath(e.fileName,t,c(e,n)),a=Ir.isJsonSourceFile(e),o=a&&0===Ir.comparePaths(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),o=n.emitDeclarationOnly||o?void 0:i,i=!o||Ir.isJsonSourceFile(e)?void 0:s(o,n),t=r||Ir.getEmitDeclarations(n)&&!a?Ir.getDeclarationEmitOutputFilePath(e.fileName,t):void 0;return{jsFilePath:o,sourceMapFilePath:i,declarationFilePath:t,declarationMapPath:t&&Ir.getAreDeclarationMapsEnabled(n)?t+".map":void 0,buildInfoPath:void 0}}function s(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function c(e,t){if(Ir.isJsonSourceFile(e))return".json";if(1===t.jsx)if(Ir.isSourceFileJS(e)){if(Ir.fileExtensionIs(e.fileName,".jsx"))return".jsx"}else if(1===e.languageVariant)return".jsx";return".js"}function a(e,t,r,n){return n?Ir.resolvePath(n,Ir.getRelativePathFromDirectory((t=t).options.rootDir||Ir.getDirectoryPath(Ir.Debug.checkDefined(t.options.configFilePath)),e,r)):e}function u(e,t,r){return Ir.Debug.assert(!Ir.fileExtensionIs(e,".d.ts")&&!Ir.fileExtensionIs(e,".json")),Ir.changeExtension(a(e,t,r,t.options.declarationDir||t.options.outDir),".d.ts")}function l(e,t,r){if(!t.options.emitDeclarationOnly){var n=Ir.fileExtensionIs(e,".json"),i=Ir.changeExtension(a(e,t,r,t.options.outDir),n?".json":Ir.fileExtensionIs(e,".tsx")&&1===t.options.jsx?".jsx":".js");return n&&0===Ir.comparePaths(e,i,Ir.Debug.checkDefined(t.options.configFilePath),r)?void 0:i}}function o(){var t;return{addOutput:function(e){e&&(t=t||[]).push(e)},getOutputs:function(){return t||Ir.emptyArray}}}function _(e,t){var r=T(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,e=r.declarationMapPath,r=r.buildInfoPath;t(n),t(i),t(a),t(e),t(r)}function f(e,t,r,n){var i;Ir.fileExtensionIs(t,".d.ts")||(n(i=l(t,e,r)),Ir.fileExtensionIs(t,".json")||(i&&e.options.sourceMap&&n(i+".map"),Ir.getEmitDeclarations(e.options)&&(n(r=u(t,e,r)),e.options.declarationMap&&n(r+".map"))))}function C(c,l,u,e,_,t,d){var p,f,g=e.scriptTransformers,m=e.declarationTransformers,y=l.getCompilerOptions(),h=y.sourceMap||y.inlineSourceMap||Ir.getAreDeclarationMapsEnabled(y)?[]:void 0,v=y.listEmittedFiles?[]:void 0,b=Ir.createDiagnosticCollection(),x=Ir.getNewLineCharacter(y,function(){return l.getNewLine()}),D=Ir.createTextWriter(x),r=Ir.performance.createTimer("printTime","beforePrint","afterPrint"),e=r.enter,r=r.exit,S=!1;return e(),n(l,function(e,t){var r,n=e.jsFilePath,i=e.sourceMapFilePath,a=e.declarationFilePath,o=e.declarationMapPath,e=e.buildInfoPath;e&&t&&Ir.isBundle(t)&&(r=Ir.getDirectoryPath(Ir.getNormalizedAbsolutePath(e,l.getCurrentDirectory())),p={commonSourceDirectory:s(l.getCommonSourceDirectory()),sourceFiles:t.sourceFiles.map(function(e){return s(Ir.getNormalizedAbsolutePath(e.fileName,l.getCurrentDirectory()))})});Ir.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:n}),function(e,t,r,n){if(e&&!_&&t){if(t&&l.isEmitBlocked(t)||y.noEmit)return S=!0;e=Ir.transformNodes(c,l,Ir.factory,y,[e],g,!1),n=N({removeComments:y.removeComments,newLine:y.newLine,noEmitHelpers:y.noEmitHelpers,module:y.module,target:y.target,sourceMap:y.sourceMap,inlineSourceMap:y.inlineSourceMap,inlineSources:y.inlineSources,extendedDiagnostics:y.extendedDiagnostics,writeBundleFileInfo:!!p,relativeToBuildInfo:n},{hasGlobalName:c.hasGlobalName,onEmitNode:e.emitNodeWithNotification,isEmitNotificationEnabled:e.isEmitNotificationEnabled,substituteNode:e.substituteNode}),Ir.Debug.assert(1===e.transformed.length,"Should only see one output from the transform"),C(t,r,e.transformed[0],n,y),e.dispose(),p&&(p.js=n.bundleFileInfo)}}(t,n,i,s),Ir.tracing.pop(),Ir.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:a}),function(e,t,r,n){if(e){if(!t)return(_||y.emitDeclarationOnly)&&(S=!0);var i=Ir.isSourceFile(e)?[e]:e.sourceFiles,i=d?i:Ir.filter(i,Ir.isSourceFileNotJson),e=Ir.outFile(y)?[Ir.factory.createBundle(i,Ir.isSourceFile(e)?void 0:e.prepends)]:i;if(_&&!Ir.getEmitDeclarations(y)&&i.forEach(T),i=Ir.transformNodes(c,l,Ir.factory,y,e,m,!1),Ir.length(i.diagnostics))for(var a=0,o=i.diagnostics;a<o.length;a++){var s=o[a];b.add(s)}e=N({removeComments:y.removeComments,newLine:y.newLine,noEmitHelpers:!0,module:y.module,target:y.target,sourceMap:y.sourceMap,inlineSourceMap:y.inlineSourceMap,extendedDiagnostics:y.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!p,recordInternalSection:!!p,relativeToBuildInfo:n},{hasGlobalName:c.hasGlobalName,onEmitNode:i.emitNodeWithNotification,isEmitNotificationEnabled:i.isEmitNotificationEnabled,substituteNode:i.substituteNode}),n=!!i.diagnostics&&!!i.diagnostics.length||!!l.isEmitBlocked(t)||!!y.noEmit,S=S||n,n&&!d||(Ir.Debug.assert(1===i.transformed.length,"Should only see one output from the decl transform"),C(t,r,i.transformed[0],e,{sourceMap:y.declarationMap,sourceRoot:y.sourceRoot,mapRoot:y.mapRoot,extendedDiagnostics:y.extendedDiagnostics}),d&&297===i.transformed[0].kind&&(r=i.transformed[0],f=r.exportedModulesFromDeclarationEmit)),i.dispose(),p&&(p.dts=e.bundleFileInfo)}}(t,a,o,s),Ir.tracing.pop(),Ir.tracing.push("emit","emitBuildInfo",{buildInfoPath:e}),function(e,t){if(t&&!u&&!S){var r=l.getProgramBuildInfo();if(l.isEmitBlocked(t))return S=!0;var n=Ir.version;Ir.writeFile(l,b,t,E({bundle:e,program:r,version:n}),!1)}}(p,e),Ir.tracing.pop(),!S&&v&&(_||(n&&v.push(n),i&&v.push(i),e&&v.push(e)),a&&v.push(a),o&&v.push(o));function s(e){return Ir.ensurePathIsNonModuleName(Ir.getRelativePathFromDirectory(r,e,l.getCanonicalFileName))}},Ir.getSourceFilesToEmit(l,u,d),d,t,!u),r(),{emitSkipped:S,diagnostics:b.getDiagnostics(),emittedFiles:v,sourceMaps:h,exportedModulesFromDeclarationEmit:f};function T(e){Ir.isExportAssignment(e)?78===e.expression.kind&&c.collectLinkedAliases(e.expression,!0):Ir.isExportSpecifier(e)?c.collectLinkedAliases(e.propertyName||e.name,!0):Ir.forEachChild(e,T)}function C(e,t,r,n,i){var a,o,s=298===r.kind?r:void 0,c=297===r.kind?r:void 0,u=s?s.sourceFiles:[c];a=r,!(r=i).sourceMap&&!r.inlineSourceMap||297===a.kind&&Ir.fileExtensionIs(a.fileName,".json")||(o=Ir.createSourceMapGenerator(l,Ir.getBaseFileName(Ir.normalizeSlashes(e)),function(e){e=Ir.normalizeSlashes(e.sourceRoot||"");return e&&Ir.ensureTrailingDirectorySeparator(e)}(i),function(e,t,r){if(e.sourceRoot)return l.getCommonSourceDirectory();if(e.mapRoot){e=Ir.normalizeSlashes(e.mapRoot);return r&&(e=Ir.getDirectoryPath(Ir.getSourceFilePathInNewDir(r.fileName,l,e))),0===Ir.getRootLength(e)&&(e=Ir.combinePaths(l.getCommonSourceDirectory(),e)),e}return Ir.getDirectoryPath(Ir.normalizePath(t))}(i,e,c),i)),s?n.writeBundle(s,D,o):n.writeFile(c,D,o),o?(h&&h.push({inputSourceFileNames:o.getSources(),sourceMap:o.toJSON()}),(c=function(e,t,r,n,i){if(e.inlineSourceMap){t=t.toString();return"data:application/json;base64,"+Ir.base64encode(Ir.sys,t)}n=Ir.getBaseFileName(Ir.normalizeSlashes(Ir.Debug.checkDefined(n)));if(e.mapRoot){e=Ir.normalizeSlashes(e.mapRoot);return i&&(e=Ir.getDirectoryPath(Ir.getSourceFilePathInNewDir(i.fileName,l,e))),0===Ir.getRootLength(e)?(e=Ir.combinePaths(l.getCommonSourceDirectory(),e),encodeURI(Ir.getRelativePathToDirectoryOrUrl(Ir.getDirectoryPath(Ir.normalizePath(r)),Ir.combinePaths(e,n),l.getCurrentDirectory(),l.getCanonicalFileName,!0))):encodeURI(Ir.combinePaths(e,n))}return encodeURI(n)}(i,o,e,t,c))&&(D.isAtStartOfLine()||D.rawWrite(x),D.writeComment("//# sourceMappingURL="+c)),t&&(o=o.toString(),Ir.writeFile(l,b,t,o,!1,u))):D.writeLine(),Ir.writeFile(l,b,e,D.getText(),!!y.emitBOM,u),D.clear()}}function E(e){return JSON.stringify(e,void 0,2)}function k(e){return JSON.parse(e)}function N(f,e){void 0===f&&(f={}),void 0===e&&(e={});var pe,n,r,o,t,i,a,s,y,fe,c,g,u,l,_,d,p,ge,me,m=e.hasGlobalName,h=e.onEmitNode,v=void 0===h?Ir.noEmitNotification:h,b=e.isEmitNotificationEnabled,h=e.substituteNode,ye=void 0===h?Ir.noEmitSubstitution:h,x=e.onBeforeEmitNodeArray,D=e.onAfterEmitNodeArray,S=e.onBeforeEmitToken,T=e.onAfterEmitToken,e=!!f.extendedDiagnostics,C=Ir.getNewLineCharacter(f),E=Ir.getEmitModuleKind(f),k=new Ir.Map,he=f.preserveSourceNewlines,ve=function(e){fe.write(e)},be=f.writeBundleFileInfo?{sections:[]}:void 0,N=be?Ir.Debug.checkDefined(f.relativeToBuildInfo):void 0,A=f.recordInternalSection,F=0,P="text",w=!0,I=-1,O=-1,M=-1,L=-1,R=-1,B=!1,j=!!f.removeComments,e=Ir.performance.createTimerIf(e,"commentTime","beforeComment","afterComment"),J=e.enter,z=e.exit;return re(),{printNode:function(e,t,r){switch(e){case 0:Ir.Debug.assert(Ir.isSourceFile(t),"Expected a SourceFile node.");break;case 2:Ir.Debug.assert(Ir.isIdentifier(t),"Expected an Identifier node.");break;case 1:Ir.Debug.assert(Ir.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 297:return V(t);case 298:return U(t);case 299:return function(e){return function(e,t){var r=fe;te(t,void 0),$(4,e,void 0),re(),fe=r}(e,Y()),Z()}(t)}return K(e,t,r,Y()),Z()},printList:function(e,t,r){return q(e,t,r,Y()),Z()},printFile:V,printBundle:U,writeNode:K,writeList:q,writeFile:Q,writeBundle:X,bundleFileInfo:be};function U(e){return X(e,Y(),void 0),Z()}function V(e){return Q(e,Y(),void 0),Z()}function K(e,t,r,n){var i=fe;te(n,void 0),$(e,t,r),re(),fe=i}function q(e,t,r,n){var i=fe;te(n,void 0),r&&ee(r),gt(Mr,t,e),re(),fe=i}function xe(){return fe.getTextPosWithWriteLine?fe.getTextPosWithWriteLine():fe.getTextPos()}function De(e,t,r){var n=Ir.lastOrUndefined(be.sections);n&&n.kind===r?n.end=t:be.sections.push({pos:e,end:t,kind:r})}function W(e){if(A&&be&&pe&&(Ir.isDeclaration(e)||Ir.isVariableStatement(e))&&Ir.isInternalDeclaration(e,pe)&&"internal"!==P){e=P;return G(fe.getTextPos()),F=xe(),P="internal",e}}function H(e){e&&(G(fe.getTextPos()),F=xe(),P=e)}function G(e){return F<e&&(De(F,e,P),1)}function X(e,t,r){g=!1;var n=fe;te(t,r),rt(e),tt(e),ce(e),function(e){Ze(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(var t=0,r=e.prepends;t<r.length;t++){var n=r[t];if(Ir.isUnparsedSource(n)&&n.syntheticReferences)for(var i=0,a=n.syntheticReferences;i<a.length;i++)Se(a[i]),Nt()}}(e);for(var i=0,a=e.prepends;i<a.length;i++){var o=a[i];Nt();var s,c=fe.getTextPos(),u=be&&be.sections;u&&(be.sections=[]),$(4,o,void 0),be&&(s=be.sections,be.sections=u,o.oldFileOfCurrentEmit?(u=be.sections).push.apply(u,s):(s.forEach(function(e){return Ir.Debug.assert(Ir.isBundleFileTextLike(e))}),be.sections.push({pos:c,end:fe.getTextPos(),kind:"prepend",data:N(o.fileName),texts:s})))}F=xe();for(var l=0,_=e.sourceFiles;l<_.length;l++){var d=_[l];$(0,d,d)}be&&e.sourceFiles.length&&G(fe.getTextPos())&&((r=function(e){for(var t,r=new Ir.Set,n=0;n<e.sourceFiles.length;n++){for(var i=e.sourceFiles[n],a=void 0,o=0,s=0,c=i.statements;s<c.length;s++){var u=c[s];if(!Ir.isPrologueDirective(u))break;r.has(u.expression.text)||(r.add(u.expression.text),(a=a||[]).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),o=o<u.end?u.end:o)}a&&(t=t||[]).push({file:n,text:i.text.substring(0,o),directives:a})}return t}(e))&&(be.sources||(be.sources={}),be.sources.prologues=r),(e=function(e){var t;if(E===Ir.ModuleKind.None||f.noEmitHelpers)return;for(var r=new Ir.Map,n=0,i=e.sourceFiles;n<i.length;n++){var a=i[n],o=void 0!==Ir.getExternalHelpersModuleName(a),a=ue(a);if(a)for(var s=0,c=a;s<c.length;s++){var u=c[s];u.scoped||o||r.get(u.name)||(r.set(u.name,!0),(t=t||[]).push(u.name))}}return t}(e))&&(be.sources||(be.sources={}),be.sources.helpers=e)),re(),fe=n}function Q(e,t,r){g=!0;var n=fe;te(t,r),rt(e),tt(e),$(0,e,e),re(),fe=n}function Y(){return c=c||Ir.createTextWriter(C)}function Z(){var e=c.getText();return c.clear(),e}function $(e,t,r){r&&ee(r),Ee(e,t)}function ee(e){p=d=void 0,(pe=e)&&Pr(e)}function te(e,t){e&&f.omitTrailingSemicolon&&(e=Ir.getTrailingSemicolonDeferringWriter(e)),u=t,w=!(fe=e)||!u}function re(){n=[],r=[],o=new Ir.Set,t=[],a=[],te(me=ge=p=d=pe=void(i=0),void 0)}function ne(){return d=d||Ir.getLineStarts(pe)}function Se(e){if(void 0!==e){var t=W(e),e=Ee(4,e);return H(t),e}}function ie(e){return void 0!==e&&Ee(2,e)}function Te(e){if(void 0!==e)return Ee(1,e)}function Ce(e){return Ee(Ir.isStringLiteral(e)?6:4,e)}function Ee(e,t){var r=ge,n=me,i=he;ge=t,me=void 0,he&&134217728&Ir.getEmitFlags(t)&&(he=!1),ke(0,e,t)(e,t),Ir.Debug.assert(ge===t);e=me;return ge=r,me=n,he=i,e||t}function ke(e,t,r){switch(e){case 0:if(v!==Ir.noEmitNotification&&(!b||b(r)))return oe;case 1:if(ye!==Ir.noEmitSubstitution&&(me=ye(t,r))!==r)return se;case 2:if(!j&&297!==r.kind)return ur;case 3:if(!w&&297!==r.kind&&!Ir.isInJsonFile(r))return kr;case 4:return Ne;default:return Ir.Debug.assertNever(e)}}function ae(e,t,r){return ke(e+1,t,r)}function oe(e,t){Ir.Debug.assert(ge===t);var r=ae(0,e,t);v(e,t,r),Ir.Debug.assert(ge===t)}function Ne(e,t){if(Ir.Debug.assert(ge===t||me===t),0===e)return function(e){Nt();var t=e.statements;if(pr,0===t.length||!Ir.isPrologueDirective(t[0])||Ir.nodeIsSynthesized(t[0]))return void pr(e,t,$e);$e(e)}(Ir.cast(t,Ir.isSourceFile));if(2===e)return Pe(Ir.cast(t,Ir.isIdentifier));if(6===e)return Ae(Ir.cast(t,Ir.isStringLiteral),!0);if(3===e)return Se((r=Ir.cast(t,Ir.isTypeParameterDeclaration)).name),Et(),Dt("in"),Et(),void Se(r.constraint);var r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,h,v,b,x,D,S,T,C,E,k,N,A,F,P,w,I,O,M,L,R,B,j,J,z,U,V,K,q,W,H,G,X,Q,Y,Z,$,ee,te,re,ne,ie,ae,oe,se,ce,ue,le,_e,de;if(5===e)return Ir.Debug.assertNode(t,Ir.isEmptyStatement),Oe(!0);if(4===e){if(Ir.isKeyword(t.kind))return wt(t,Dt);switch(t.kind){case 15:case 16:case 17:return Ae(t,!1);case 299:case 293:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Nt(),Se(n)}}(t);case 292:return Fe(t);case 294:case 295:return H=t,G=xe(),Fe(H),void(be&&De(G,fe.getTextPos(),294===H.kind?"text":"internal"));case 296:return G=t,H=xe(),Fe(G),void(be&&((G=Ir.clone(G.section)).pos=H,G.end=fe.getTextPos(),be.sections.push(G)));case 78:return Pe(t);case 79:return void((W=t).symbol?vt:ve)(Gt(W,!1),W.symbol);case 157:return function(e){(78===e.kind?Te:Se)(e)}((W=t).left),bt("."),void Se(W.right);case 158:return q=t,bt("["),Te(q.expression),void bt("]");case 159:return function(e){Se(e.name),e.constraint&&(Et(),Dt("extends"),Et(),Se(e.constraint));e.default&&(Et(),St("="),Et(),Se(e.default))}(t);case 160:return function(e){lt(e,e.decorators),it(e,e.modifiers),Se(e.dotDotDotToken),nt(e.name,Tt),Se(e.questionToken),(e.parent&&308===e.parent.kind&&!e.name?Se:at)(e.type);ot(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)}(t);case 161:return q=t,bt("@"),void Te(q.expression);case 162:return lt(K=t,K.decorators),it(K,K.modifiers),nt(K.name,kt),Se(K.questionToken),at(K.type),void xt();case 163:return lt(K=t,K.decorators),it(K,K.modifiers),Se(K.name),Se(K.questionToken),Se(K.exclamationToken),at(K.type),ot(K.initializer,(K.type||K.questionToken||K.name).end,K),void xt();case 164:return Qt(V=t),lt(V,V.decorators),it(V,V.modifiers),Se(V.name),Se(V.questionToken),dt(V,V.typeParameters),pt(V,V.parameters),at(V.type),xt(),void Yt(V);case 165:return lt(V=t,V.decorators),it(V,V.modifiers),Se(V.asteriskToken),Se(V.name),Se(V.questionToken),void je(V,Je);case 166:return it(U=t,U.modifiers),Dt("constructor"),void je(U,Je);case 167:case 168:return lt(U=t,U.decorators),it(U,U.modifiers),Dt(167===U.kind?"get":"set"),Et(),Se(U.name),void je(U,Je);case 169:return Qt(z=t),lt(z,z.decorators),it(z,z.modifiers),dt(z,z.typeParameters),pt(z,z.parameters),at(z.type),xt(),void Yt(z);case 170:return Qt(z=t),lt(z,z.decorators),it(z,z.modifiers),Dt("new"),Et(),dt(z,z.typeParameters),pt(z,z.parameters),at(z.type),xt(),void Yt(z);case 171:return lt(J=t,J.decorators),it(J,J.modifiers),function(e){gt(J,e,8848)}(J.parameters),at(J.type),void xt();case 194:return Se((j=t).type),void Se(j.literal);case 172:return function(e){e.assertsModifier&&(Se(e.assertsModifier),Et());Se(e.parameterName),e.type&&(Et(),Dt("is"),Et(),Se(e.type))}(t);case 173:return Se((j=t).typeName),void _t(j,j.typeArguments);case 174:return Qt(B=t),dt(B,B.typeParameters),ft(B,B.parameters),Et(),bt("=>"),Et(),Se(B.type),void Yt(B);case 308:return B=t,Dt("function"),pt(B,B.parameters),bt(":"),void Se(B.type);case 175:return Qt(R=t),Dt("new"),Et(),dt(R,R.typeParameters),pt(R,R.parameters),Et(),bt("=>"),Et(),Se(R.type),void Yt(R);case 176:return R=t,Dt("typeof"),Et(),void Se(R.exprName);case 177:return function(e){bt("{");var t=1&Ir.getEmitFlags(e)?768:32897;gt(e,e.members,524288|t),bt("}")}(t);case 178:return Se(t.elementType),bt("["),void bt("]");case 179:return function(e){Re(22,e.pos,bt,e);var t=1&Ir.getEmitFlags(e)?528:657;gt(e,e.elements,524288|t),Re(23,e.elements.end,bt,e)}(t);case 180:return Se(t.type),void bt("?");case 182:return void gt(L=t,L.types,516);case 183:return void gt(L=t,L.types,520);case 184:return Se((M=t).checkType),Et(),Dt("extends"),Et(),Se(M.extendsType),Et(),bt("?"),Et(),Se(M.trueType),Et(),bt(":"),Et(),void Se(M.falseType);case 185:return M=t,Dt("infer"),Et(),void Se(M.typeParameter);case 186:return O=t,bt("("),Se(O.type),void bt(")");case 223:return Te((O=t).expression),void _t(O,O.typeArguments);case 187:return void Dt("this");case 188:return It((I=t).operator,Dt),Et(),void Se(I.type);case 189:return Se((I=t).objectType),bt("["),Se(I.indexType),void bt("]");case 190:return function(e){var t=Ir.getEmitFlags(e);bt("{"),1&t?Et():(Nt(),At());e.readonlyToken&&(Se(e.readonlyToken),142!==e.readonlyToken.kind&&Dt("readonly"),Et());bt("["),Ee(3,e.typeParameter),e.nameType&&(Et(),Dt("as"),Et(),Se(e.nameType));bt("]"),e.questionToken&&(Se(e.questionToken),57!==e.questionToken.kind&&bt("?"));bt(":"),Et(),Se(e.type),xt(),1&t?Et():(Nt(),Ft());bt("}")}(t);case 191:return void Te(t.literal);case 193:return Se((w=t).head),void gt(w,w.templateSpans,262144);case 195:return function(e){e.isTypeOf&&(Dt("typeof"),Et());Dt("import"),bt("("),Se(e.argument),bt(")"),e.qualifier&&(bt("."),Se(e.qualifier));_t(e,e.typeArguments)}(t);case 303:return void bt("*");case 304:return void bt("?");case 305:return w=t,bt("?"),void Se(w.type);case 306:return P=t,bt("!"),void Se(P.type);case 307:return Se(t.type),void bt("=");case 181:case 309:return P=t,bt("..."),void Se(P.type);case 192:return Se((F=t).dotDotDotToken),Se(F.name),Se(F.questionToken),Re(58,F.name.end,bt,F),Et(),void Se(F.type);case 196:return F=t,bt("{"),gt(F,F.elements,525136),void bt("}");case 197:return A=t,bt("["),gt(A,A.elements,524880),void bt("]");case 198:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),bt(":"),Et());Se(e.name),ot(e.initializer,e.name.end,e)}(t);case 228:return Te((A=t).expression),void Se(A.literal);case 229:return void xt();case 230:return void Ie(N=t,!N.multiLine&&Wt(N));case 232:return it(N=t,N.modifiers),Se(N.declarationList),void xt();case 231:return Oe(!1);case 233:return Te((k=t).expression),void(Ir.isJsonSourceFile(pe)&&!Ir.nodeIsSynthesized(k.expression)||xt());case 234:return k=Re(98,(E=t).pos,Dt,E),Et(),Re(20,k,bt,E),Te(E.expression),Re(21,E.expression.end,bt,E),ut(E,E.thenStatement),void(E.elseStatement&&(Ot(E,E.thenStatement,E.elseStatement),Re(90,E.thenStatement.end,Dt,E),234===E.elseStatement.kind?(Et(),Se(E.elseStatement)):ut(E,E.elseStatement)));case 235:return function(e){Re(89,e.pos,Dt,e),ut(e,e.statement),Ir.isBlock(e.statement)&&!he?Et():Ot(e,e.statement,e.expression);Me(e,e.statement.end),xt()}(t);case 236:return Me(E=t,E.pos),void ut(E,E.statement);case 237:return function(e){var t=Re(96,e.pos,Dt,e);Et();t=Re(20,t,bt,e);Le(e.initializer),t=Re(26,e.initializer?e.initializer.end:t,bt,e),ct(e.condition),t=Re(26,e.condition?e.condition.end:t,bt,e),ct(e.incrementor),Re(21,e.incrementor?e.incrementor.end:t,bt,e),ut(e,e.statement)}(t);case 238:return C=Re(96,(T=t).pos,Dt,T),Et(),Re(20,C,bt,T),Le(T.initializer),Et(),Re(100,T.initializer.end,Dt,T),Et(),Te(T.expression),Re(21,T.expression.end,bt,T),void ut(T,T.statement);case 239:return T=Re(96,(C=t).pos,Dt,C),Et(),function(e){e&&(Se(e),Et())}(C.awaitModifier),Re(20,T,bt,C),Le(C.initializer),Et(),Re(156,C.initializer.end,Dt,C),Et(),Te(C.expression),Re(21,C.expression.end,bt,C),void ut(C,C.statement);case 240:return Re(85,(S=t).pos,Dt,S),st(S.label),void xt();case 241:return Re(80,(S=t).pos,Dt,S),st(S.label),void xt();case 242:return Re(104,(D=t).pos,Dt,D),ct(D.expression),void xt();case 243:return D=Re(115,(x=t).pos,Dt,x),Et(),Re(20,D,bt,x),Te(x.expression),Re(21,x.expression.end,bt,x),void ut(x,x.statement);case 244:return x=Re(106,(b=t).pos,Dt,b),Et(),Re(20,x,bt,b),Te(b.expression),Re(21,b.expression.end,bt,b),Et(),void Se(b.caseBlock);case 245:return Se((b=t).label),Re(58,b.label.end,bt,b),Et(),void Se(b.statement);case 246:return Re(108,(v=t).pos,Dt,v),ct(v.expression),void xt();case 247:return function(e){Re(110,e.pos,Dt,e),Et(),Se(e.tryBlock),e.catchClause&&(Ot(e,e.tryBlock,e.catchClause),Se(e.catchClause));e.finallyBlock&&(Ot(e,e.catchClause||e.tryBlock,e.finallyBlock),Re(95,(e.catchClause||e.tryBlock).end,Dt,e),Et(),Se(e.finallyBlock))}(t);case 248:return Pt(86,t.pos,Dt),void xt();case 249:return Se((v=t).name),Se(v.exclamationToken),at(v.type),void ot(v.initializer,(v.type||v.name).end,v);case 250:return h=t,Dt(Ir.isLet(h)?"let":Ir.isVarConst(h)?"const":"var"),Et(),void gt(h,h.declarations,528);case 251:return void Be(t);case 252:return void Ue(t);case 253:return lt(h=t,h.decorators),it(h,h.modifiers),Dt("interface"),Et(),Se(h.name),dt(h,h.typeParameters),gt(h,h.heritageClauses,512),Et(),bt("{"),gt(h,h.members,129),void bt("}");case 254:return lt(y=t,y.decorators),it(y,y.modifiers),Dt("type"),Et(),Se(y.name),dt(y,y.typeParameters),Et(),bt("="),Et(),Se(y.type),void xt();case 255:return it(y=t,y.modifiers),Dt("enum"),Et(),Se(y.name),Et(),bt("{"),gt(y,y.members,145),void bt("}");case 256:return function(e){it(e,e.modifiers),1024&~e.flags&&(Dt(16&e.flags?"namespace":"module"),Et());Se(e.name);var t=e.body;if(!t)return xt();for(;256===t.kind;)bt("."),Se(t.name),t=t.body;Et(),Se(t)}(t);case 257:return Qt(m=t),Ir.forEach(m.statements,$t),Ie(m,Wt(m)),void Yt(m);case 258:return Re(18,(g=t).pos,bt,g),gt(g,g.clauses,129),void Re(19,g.clauses.end,bt,g,!0);case 259:return g=Re(92,(m=t).pos,Dt,m),Et(),g=Re(126,g,Dt,m),Et(),g=Re(140,g,Dt,m),Et(),Se(m.name),void xt();case 260:return it(f=t,f.modifiers),Re(99,f.modifiers?f.modifiers.end:f.pos,Dt,f),Et(),Se(f.name),Et(),Re(62,f.name.end,bt,f),Et(),function(e){(78===e.kind?Te:Se)(e)}(f.moduleReference),void xt();case 261:return function(e){it(e,e.modifiers),Re(99,e.modifiers?e.modifiers.end:e.pos,Dt,e),Et(),e.importClause&&(Se(e.importClause),Et(),Re(153,e.importClause.end,Dt,e),Et());Te(e.moduleSpecifier),xt()}(t);case 262:return function(e){e.isTypeOnly&&(Re(149,e.pos,Dt,e),Et());Se(e.name),e.name&&e.namedBindings&&(Re(27,e.name.end,bt,e),Et());Se(e.namedBindings)}(t);case 263:return f=Re(41,(p=t).pos,bt,p),Et(),Re(126,f,Dt,p),Et(),void Se(p.name);case 269:return p=Re(41,(d=t).pos,bt,d),Et(),Re(126,p,Dt,d),Et(),void Se(d.name);case 264:return void Ve(t);case 265:return void Ke(t);case 266:return function(e){var t=Re(92,e.pos,Dt,e);Et(),e.isExportEquals?Re(62,t,St,e):Re(87,t,Dt,e);Et(),Te(e.expression),xt()}(t);case 267:return function(e){var t=Re(92,e.pos,Dt,e);Et(),e.isTypeOnly&&(t=Re(149,t,Dt,e),Et());e.exportClause?Se(e.exportClause):t=Re(41,t,bt,e);e.moduleSpecifier&&(Et(),Re(153,e.exportClause?e.exportClause.end:t,Dt,e),Et(),Te(e.moduleSpecifier));xt()}(t);case 268:return void Ve(t);case 270:return void Ke(t);case 271:return;case 272:return d=t,Dt("require"),bt("("),Te(d.expression),void bt(")");case 11:return _=t,void fe.writeLiteral(_.text);case 275:case 278:return function(e){{var t;bt("<"),Ir.isJsxOpeningElement(e)&&(t=Ut(e.tagName,e),qe(e.tagName),_t(e,e.typeArguments),e.attributes.properties&&0<e.attributes.properties.length&&Et(),Se(e.attributes),Vt(e.attributes,e),Rt(t))}bt(">")}(t);case 276:case 279:return function(e){bt("</"),Ir.isJsxClosingElement(e)&&qe(e.tagName);bt(">")}(t);case 280:return Se((_=t).name),void function(e,t,r,n){r&&(t(e),n(r))}("=",bt,_.initializer,Ce);case 281:return void gt(l=t,l.properties,262656);case 282:return l=t,bt("{..."),Te(l.expression),void bt("}");case 283:return void((u=t).expression&&(bt("{"),Se(u.dotDotDotToken),Te(u.expression),bt("}")));case 284:return Re(81,(c=t).pos,Dt,c),Et(),Te(c.expression),void We(c,c.statements,c.expression.end);case 285:return c=Re(87,(u=t).pos,Dt,u),void We(u,u.statements,c);case 286:return s=t,Et(),It(s.token,Dt),Et(),void gt(s,s.types,528);case 287:return function(e){var t=Re(82,e.pos,Dt,e);Et(),e.variableDeclaration&&(Re(20,t,bt,e),Se(e.variableDeclaration),Re(21,e.variableDeclaration.end,bt,e),Et());Se(e.block)}(t);case 288:return function(e){Se(e.name),bt(":"),Et();e=e.initializer;0==(512&Ir.getEmitFlags(e))&&xr(Ir.getCommentRange(e).pos);Te(e)}(t);case 289:return Se((s=t).name),void(s.objectAssignmentInitializer&&(Et(),bt("="),Et(),Te(s.objectAssignmentInitializer)));case 290:return void((o=t).expression&&(Re(25,o.pos,bt,o),Te(o.expression)));case 291:return Se((o=t).name),void ot(o.initializer,o.name.end,o);case 326:case 333:return function(e){Xe(e.tagName),Ye(e.typeExpression),Et(),e.isBracketed&&bt("[");Se(e.name),e.isBracketed&&bt("]");Qe(e.comment)}(t);case 327:case 329:case 328:case 325:return Xe((a=t).tagName),Ye(a.typeExpression),void Qe(a.comment);case 316:case 315:return Xe((a=t).tagName),Et(),bt("{"),Se(a.class),bt("}"),void Qe(a.comment);case 330:return Xe((i=t).tagName),Ye(i.constraint),Et(),gt(i,i.typeParameters,528),void Qe(i.comment);case 331:return function(e){Xe(e.tagName),e.typeExpression&&(301===e.typeExpression.kind?Ye(e.typeExpression):(Et(),bt("{"),ve("Object"),e.typeExpression.isArrayType&&(bt("["),bt("]")),bt("}")));e.fullName&&(Et(),Se(e.fullName));Qe(e.comment),e.typeExpression&&312===e.typeExpression.kind&&He(e.typeExpression)}(t);case 324:return function(e){Xe(e.tagName),e.name&&(Et(),Se(e.name));Qe(e.comment),Ge(e.typeExpression)}(t);case 313:return Ge(t);case 312:return He(t);case 319:case 314:return Xe((i=t).tagName),void Qe(i.comment);case 332:return Xe((n=t).tagName),Se(n.name),void Qe(n.comment);case 302:return n=t,Et(),bt("{"),Se(n.name),void bt("}");case 311:return function(e){if(ve("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r<n.length;r++){var i=n[r];Nt(),Et(),bt("*"),Et(),ve(i)}e.tags&&(1!==e.tags.length||329!==e.tags[0].kind||e.comment?gt(e,e.tags,33):(Et(),Se(e.tags[0])));Et(),ve("*/")}(t)}if(Ir.isExpression(t))e=1,ye!==Ir.noEmitSubstitution&&(me=t=ye(e,t));else if(Ir.isToken(t))return wt(t,bt)}if(1===e)switch(t.kind){case 8:case 9:return void Ae(t,!1);case 10:case 13:case 14:return Ae(t,!1);case 78:return Pe(t);case 94:case 103:case 105:case 109:case 107:case 99:return void wt(t,Dt);case 199:return _e=(le=t).elements,de=le.multiLine?65536:0,void mt(le,_e,8914|de);case 200:return function(e){Ir.forEach(e.properties,er);var t=65536&Ir.getEmitFlags(e);t&&At();var r=e.multiLine?65536:0,n=1<=pe.languageVersion&&!Ir.isJsonSourceFile(pe)?64:0;gt(e,e.properties,526226|n|r),t&&Ft()}(t);case 201:return function(e){var t=Ir.cast(Te(e.expression),Ir.isExpression),r=e.questionDotToken||Ir.setTextRangePosEnd(Ir.factory.createToken(24),e.expression.end,e.name.pos),n=qt(e,e.expression,r),i=qt(e,r,e.name);Lt(n,!1),28===r.kind||!function(e){{if(e=Ir.skipPartiallyEmittedExpressions(e),Ir.isNumericLiteral(e)){var t=Xt(e,!0,!1);return!e.numericLiteralFlags&&!Ir.stringContains(t,Ir.tokenToString(24))}if(Ir.isAccessExpression(e)){e=Ir.getConstantValue(e);return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}}(t)||fe.hasTrailingComment()||fe.hasTrailingWhitespace()||bt(".");e.questionDotToken?Se(r):Re(r.kind,e.expression.end,bt,e);Lt(i,!1),Se(e.name),Rt(n,i)}(t);case 202:return Te((ue=t).expression),Se(ue.questionDotToken),Re(22,ue.expression.end,bt,ue),Te(ue.argumentExpression),void Re(23,ue.argumentExpression.end,bt,ue);case 203:return Te((ue=t).expression),Se(ue.questionDotToken),_t(ue,ue.typeArguments),void mt(ue,ue.arguments,2576);case 204:return Re(102,(ce=t).pos,Dt,ce),Et(),Te(ce.expression),_t(ce,ce.typeArguments),void mt(ce,ce.arguments,18960);case 205:return Te((se=t).tag),_t(se,se.typeArguments),Et(),void Te(se.template);case 206:return oe=t,bt("<"),Se(oe.type),bt(">"),void Te(oe.expression);case 207:return se=Re(20,(ce=t).pos,bt,ce),oe=Ut(ce.expression,ce),Te(ce.expression),Vt(ce.expression,ce),Rt(oe),void Re(21,ce.expression?ce.expression.end:se,bt,ce);case 208:return tr((ae=t).name),void Be(ae);case 209:return lt(ae=t,ae.decorators),it(ae,ae.modifiers),void je(ae,we);case 210:return Re(88,(ie=t).pos,Dt,ie),Et(),void Te(ie.expression);case 211:return Re(111,(ne=t).pos,Dt,ne),Et(),void Te(ne.expression);case 212:return Re(113,(re=t).pos,Dt,re),Et(),void Te(re.expression);case 213:return Re(130,(te=t).pos,Dt,te),Et(),void Te(te.expression);case 214:return function(e){It(e.operator,St),function(e){var t=e.operand;return 214===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Et();Te(e.operand)}(t);case 215:return Te((ee=t).operand),void It(ee.operator,St);case 216:return function(e){var i=[e],a=[0],o=0;for(;0<=o;)switch(e=i[o],a[o]){case 0:s(e.left);break;case 1:var t=27!==e.operatorToken.kind,r=qt(e,e.left,e.operatorToken),n=qt(e,e.operatorToken,e.right);Lt(r,t),vr(e.operatorToken.pos),wt(e.operatorToken,100===e.operatorToken.kind?Dt:St),xr(e.operatorToken.end,!0),Lt(n,!0),s(e.right);break;case 2:r=qt(e,e.left,e.operatorToken),n=qt(e,e.operatorToken,e.right);Rt(r,n),o--;break;default:return Ir.Debug.fail("Invalid state "+a[o]+" for emitBinaryExpressionWorker")}function s(e){a[o]++;var t=ge,r=me;me=void 0;var n=ke(0,1,ge=e);n===Ne&&Ir.isBinaryExpression(e)?(a[++o]=0,i[o]=e):n(1,e),Ir.Debug.assert(ge===e),ge=t,me=r}}(t);case 217:return ne=qt(ie=t,ie.condition,ie.questionToken),re=qt(ie,ie.questionToken,ie.whenTrue),te=qt(ie,ie.whenTrue,ie.colonToken),ee=qt(ie,ie.colonToken,ie.whenFalse),Te(ie.condition),Lt(ne,!0),Se(ie.questionToken),Lt(re,!0),Te(ie.whenTrue),Rt(ne,re),Lt(te,!0),Se(ie.colonToken),Lt(ee,!0),Te(ie.whenFalse),void Rt(te,ee);case 218:return Se(($=t).head),void gt($,$.templateSpans,262144);case 219:return Re(124,($=t).pos,Dt,$),Se($.asteriskToken),void ct($.expression);case 220:return Re(25,(Z=t).pos,bt,Z),void Te(Z.expression);case 221:return tr((Z=t).name),void Ue(Z);case 222:return;case 224:return Te((Y=t).expression),void(Y.type&&(Et(),Dt("as"),Et(),Se(Y.type)));case 225:return Te(t.expression),void St("!");case 226:return Pt((Y=t).keywordToken,Y.pos,bt),bt("."),void Se(Y.name);case 273:return Se((Q=t).openingElement),gt(Q,Q.children,262144),void Se(Q.closingElement);case 274:return Q=t,bt("<"),qe(Q.tagName),_t(Q,Q.typeArguments),Et(),Se(Q.attributes),void bt("/>");case 277:return Se((X=t).openingFragment),gt(X,X.children,262144),void Se(X.closingFragment);case 336:return void Te(t.expression);case 337:return void mt(X=t,X.elements,528)}}function se(e,t){Ir.Debug.assert(ge===t||me===t),ae(1,e,t)(e,me),Ir.Debug.assert(ge===t||me===t)}function ce(e){var t=!1,r=298===e.kind?e:void 0;if(!r||E!==Ir.ModuleKind.None){for(var n=r?r.prepends.length:0,i=r?r.sourceFiles.length+n:1,a=0;a<i;a++){var o=r?a<n?r.prepends[a]:r.sourceFiles[a-n]:e,s=Ir.isSourceFile(o)?o:Ir.isUnparsedSource(o)?void 0:pe,c=f.noEmitHelpers||!!s&&Ir.hasRecordedExternalHelpers(s),u=(Ir.isSourceFile(o)||Ir.isUnparsedSource(o))&&!g,o=Ir.isUnparsedSource(o)?o.helpers:ue(o);if(o)for(var l=0,_=o;l<_.length;l++){var d=_[l];if(d.scoped){if(r)continue}else{if(c)continue;if(u){if(k.get(d.name))continue;k.set(d.name,!0)}}var p=xe();"string"==typeof d.text?Mt(d.text):Mt(d.text(cr)),be&&be.sections.push({pos:p,end:fe.getTextPos(),kind:"emitHelpers",data:d.name}),t=!0}}return t}}function ue(e){e=Ir.getEmitHelpers(e);return e&&Ir.stableSort(e,Ir.compareEmitHelpers)}function Ae(e,t){t=Xt(e,f.neverAsciiEscape,t);!f.sourceMap&&!f.inlineSourceMap||10!==e.kind&&!Ir.isTemplateLiteralKind(e.kind)?(e=t,fe.writeStringLiteral(e)):(t=t,fe.writeLiteral(t))}function Fe(e){fe.rawWrite(e.parent.text.substring(e.pos,e.end))}function Pe(e){(e.symbol?vt:ve)(Gt(e,!1),e.symbol),gt(e,e.typeArguments,53776)}function we(e){dt(e,e.typeParameters),ft(e,e.parameters),at(e.type),Et(),Se(e.equalsGreaterThanToken)}function Ie(e,t){Re(18,e.pos,bt,e);t=t||1&Ir.getEmitFlags(e)?768:129;gt(e,e.statements,t),Re(19,e.statements.end,bt,e,!!(1&t))}function Oe(e){e?bt(";"):xt()}function Me(e,t){t=Re(114,t,Dt,e);Et(),Re(20,t,bt,e),Te(e.expression),Re(21,e.expression.end,bt,e)}function Le(e){void 0!==e&&(250===e.kind?Se:Te)(e)}function Re(e,t,r,n,i){var a=Ir.getParseTreeNode(n),o=a&&a.kind===n.kind,a=t;return o&&pe&&(t=Ir.skipTrivia(pe.text,t)),o&&n.pos!==a&&((i=i&&pe&&!Ir.positionsAreOnSameLine(a,t,pe))&&At(),vr(a),i&&Ft()),t=It(e,r,t),o&&n.end!==t&&xr(t,!0),t}function Be(e){lt(e,e.decorators),it(e,e.modifiers),Dt("function"),Se(e.asteriskToken),Et(),ie(e.name),je(e,Je)}function le(e,t){_e(t)}function je(e,t){var r,n=e.body;n?Ir.isBlock(n)?((r=65536&Ir.getEmitFlags(e))&&At(),Qt(e),Ir.forEach(e.parameters,$t),$t(e.body),t(e),v?v(4,n,le):_e(n),Yt(e),r&&Ft()):(t(e),Et(),Te(n)):(t(e),xt())}function Je(e){dt(e,e.typeParameters),pt(e,e.parameters),at(e.type)}function _e(e){Et(),bt("{"),At();var t=function(e){if(1&Ir.getEmitFlags(e))return 1;if(!e.multiLine&&(Ir.nodeIsSynthesized(e)||Ir.rangeIsOnSingleLine(e,pe))&&!Bt(e,e.statements,2)&&!Jt(e,e.statements,2)){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];if(0<jt(t,i,2))return;t=i}return 1}}(e)?de:ze;pr(e,e.statements,t),Ft(),Pt(19,e.statements.end,bt,e)}function de(e){ze(e,!0)}function ze(e,t){var r=et(e.statements),n=fe.getTextPos();ce(e),0===r&&n===fe.getTextPos()&&t?(Ft(),gt(e,e.statements,768),At()):gt(e,e.statements,1,r)}function Ue(e){Ir.forEach(e.members,er),lt(e,e.decorators),it(e,e.modifiers),Dt("class"),e.name&&(Et(),ie(e.name));var t=65536&Ir.getEmitFlags(e);t&&At(),dt(e,e.typeParameters),gt(e,e.heritageClauses,0),Et(),bt("{"),gt(e,e.members,129),bt("}"),t&&Ft()}function Ve(e){bt("{"),gt(e,e.elements,525136),bt("}")}function Ke(e){e.propertyName&&(Se(e.propertyName),Et(),Re(126,e.propertyName.end,Dt,e),Et()),Se(e.name)}function qe(e){(78===e.kind?Te:Se)(e)}function We(e,t,r){var n=163969;1===t.length&&(Ir.nodeIsSynthesized(e)||Ir.nodeIsSynthesized(t[0])||Ir.rangeStartPositionsAreOnSameLine(e,t[0],pe))?(Pt(58,r,bt,e),Et(),n&=-130):Re(58,r,bt,e),gt(e,t,n)}function He(e){gt(e,Ir.factory.createNodeArray(e.jsDocPropertyTags),33)}function Ge(e){e.typeParameters&&gt(e,Ir.factory.createNodeArray(e.typeParameters),33),e.parameters&&gt(e,Ir.factory.createNodeArray(e.parameters),33),e.type&&(Nt(),Et(),bt("*"),Et(),Se(e.type))}function Xe(e){bt("@"),Se(e)}function Qe(e){e&&(Et(),ve(e))}function Ye(e){e&&(Et(),bt("{"),Se(e.type),bt("}"))}function Ze(e,t,r,n){if(e&&(l=fe.getTextPos(),Ct('/// <reference no-default-lib="true"/>'),be&&be.sections.push({pos:l,end:fe.getTextPos(),kind:"no-default-lib"}),Nt()),pe&&pe.moduleName&&(Ct('/// <amd-module name="'+pe.moduleName+'" />'),Nt()),pe&&pe.amdDependencies)for(var i=0,a=pe.amdDependencies;i<a.length;i++){var o=a[i];o.name?Ct('/// <amd-dependency name="'+o.name+'" path="'+o.path+'" />'):Ct('/// <amd-dependency path="'+o.path+'" />'),Nt()}for(var s=0,c=t;s<c.length;s++){var u=c[s],l=fe.getTextPos();Ct('/// <reference path="'+u.fileName+'" />'),be&&be.sections.push({pos:l,end:fe.getTextPos(),kind:"reference",data:u.fileName}),Nt()}for(var _=0,d=r;_<d.length;_++){u=d[_],l=fe.getTextPos();Ct('/// <reference types="'+u.fileName+'" />'),be&&be.sections.push({pos:l,end:fe.getTextPos(),kind:"type",data:u.fileName}),Nt()}for(var p=0,f=n;p<f.length;p++){u=f[p],l=fe.getTextPos();Ct('/// <reference lib="'+u.fileName+'" />'),be&&be.sections.push({pos:l,end:fe.getTextPos(),kind:"lib",data:u.fileName}),Nt()}}function $e(e){var t=e.statements;Qt(e),Ir.forEach(e.statements,$t),ce(e);var r,n=Ir.findIndex(t,function(e){return!Ir.isPrologueDirective(e)});(r=e).isDeclarationFile&&Ze(r.hasNoDefaultLib,r.referencedFiles,r.typeReferenceDirectives,r.libReferenceDirectives),gt(e,t,1,-1===n?t.length:n),Yt(e)}function et(e,t,r,n){for(var i=!!t,a=0;a<e.length;a++){var o,s=e[a];if(!Ir.isPrologueDirective(s))return a;r&&r.has(s.expression.text)||(i&&(i=!1,ee(t)),Nt(),o=fe.getTextPos(),Se(s),n&&be&&be.sections.push({pos:o,end:fe.getTextPos(),kind:"prologue",data:s.expression.text}),r&&r.add(s.expression.text))}return e.length}function tt(e){if(Ir.isSourceFile(e))et(e.statements,e);else{for(var t=new Ir.Set,r=0,n=e.prepends;r<n.length;r++)!function(e,t){for(var r=0,n=e;r<n.length;r++){var i,a=n[r];t.has(a.data)||(Nt(),i=fe.getTextPos(),Se(a),be&&be.sections.push({pos:i,end:fe.getTextPos(),kind:"prologue",data:a.data}),t&&t.add(a.data))}}(n[r].prologues,t);for(var i=0,a=e.sourceFiles;i<a.length;i++){var o=a[i];et(o.statements,o,t,!0)}ee(void 0)}}function rt(e){if(Ir.isSourceFile(e)||Ir.isUnparsedSource(e)){var t=Ir.getShebang(e.text);return t?(Ct(t),Nt(),1):void 0}for(var r=0,n=e.prepends;r<n.length;r++){var i=n[r];if(Ir.Debug.assertNode(i,Ir.isUnparsedSource),rt(i))return 1}for(var a=0,o=e.sourceFiles;a<o.length;a++)if(rt(o[a]))return 1}function nt(e,t){var r;e&&(r=ve,ve=t,Se(e),ve=r)}function it(e,t){t&&t.length&&(gt(e,t,262656),Et())}function at(e){e&&(bt(":"),Et(),Se(e))}function ot(e,t,r){e&&(Et(),Re(62,t,St,r),Et(),Te(e))}function st(e){e&&(Et(),Se(e))}function ct(e){e&&(Et(),Te(e))}function ut(e,t){Ir.isBlock(t)||1&Ir.getEmitFlags(e)?(Et(),Se(t)):(Nt(),At(),Ir.isEmptyStatement(t)?Ee(5,t):Se(t),Ft())}function lt(e,t){gt(e,t,2146305)}function _t(e,t){gt(e,t,53776)}function dt(e,t){if(Ir.isFunctionLike(e)&&e.typeArguments)return _t(e,e.typeArguments),0;gt(e,t,53776)}function pt(e,t){gt(e,t,2576)}function ft(e,t){var r,n;r=e,n=t,!(n=Ir.singleOrUndefined(n))||n.pos!==r.pos||!Ir.isArrowFunction(r)||r.type||Ir.some(r.decorators)||Ir.some(r.modifiers)||Ir.some(r.typeParameters)||Ir.some(n.decorators)||Ir.some(n.modifiers)||n.dotDotDotToken||n.questionToken||n.type||n.initializer||!Ir.isIdentifier(n.name)?pt(e,t):gt(e,t,528)}function gt(e,t,r,n,i){ht(Se,e,t,r,n,i)}function mt(e,t,r,n,i){ht(Te,e,t,r,n,i)}function yt(e){switch(60&e){case 0:break;case 16:bt(",");break;case 4:Et(),bt("|");break;case 32:Et(),bt("*"),Et();break;case 8:Et(),bt("&")}}function ht(e,t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=r?r.length-i:0);var o=void 0===r;if(!(o&&16384&n)){var s=void 0===r||i>=r.length||0===a;if(s&&32768&n)return x&&x(r),void(D&&D(r));if(15360&n&&(bt(Or[15360&n][0]),s&&!o&&xr(r.pos,!0)),x&&x(r),s)!(1&n)||he&&Ir.rangeIsOnSingleLine(t,pe)?256&n&&!(524288&n)&&Et():Nt();else{var c=0==(262144&n),u=c,l=Bt(t,r,n);l?(Nt(l),u=!1):256&n&&Et(),128&n&&At();for(var _=void 0,d=void 0,p=!1,f=0;f<a;f++){var g,m=r[i+f];32&n?(Nt(),yt(n)):_&&(60&n&&_.end!==t.end&&vr(_.end),yt(n),H(d),0<(g=jt(_,m,n))?(0==(131&n)&&(At(),p=!0),Nt(g),u=!1):_&&512&n&&Et()),d=W(m),u?xr(Ir.getCommentRange(m).pos):u=c,y=m.pos,e(m),p&&(Ft(),p=!1),_=m}l=64&n&&r.hasTrailingComma;16&n&&l&&bt(","),_&&60&n&&_.end!==t.end&&!(1024&Ir.getEmitFlags(_))&&vr(_.end),128&n&&Ft(),H(d);l=Jt(t,r,n);l?Nt(l):2097408&n&&Et()}D&&D(r),15360&n&&(s&&!o&&vr(r.end),bt(Or[15360&n][1]))}}function vt(e,t){fe.writeSymbol(e,t)}function bt(e){fe.writePunctuation(e)}function xt(){fe.writeTrailingSemicolon(";")}function Dt(e){fe.writeKeyword(e)}function St(e){fe.writeOperator(e)}function Tt(e){fe.writeParameter(e)}function Ct(e){fe.writeComment(e)}function Et(){fe.writeSpace(" ")}function kt(e){fe.writeProperty(e)}function Nt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)fe.writeLine(0<t)}function At(){fe.increaseIndent()}function Ft(){fe.decreaseIndent()}function Pt(e,t,r,n){return w?It(e,r,t):function(e,t,r,n,i){if(w||e&&Ir.isInJsonFile(e))return i(t,r,n);var a=e&&e.emitNode,o=a&&a.flags||0,e=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t],a=e&&e.source||l;n=Nr(a,e?e.pos:n),0==(128&o)&&0<=n&&Fr(a,n);n=i(t,r,n),e&&(n=e.end);0==(256&o)&&0<=n&&Fr(a,n);return n}(n,e,r,t,It)}function wt(e,t){S&&S(e),t(Ir.tokenToString(e.kind)),T&&T(e)}function It(e,t,r){e=Ir.tokenToString(e);return t(e),r<0?r:r+e.length}function Ot(e,t,r){1&Ir.getEmitFlags(e)?Et():he?(r=qt(e,t,r))?Nt(r):Et():Nt()}function Mt(e){for(var e=e.split(/\r\n?|\n/g),t=Ir.guessIndentation(e),r=0,n=e;r<n.length;r++){var i=n[r],i=t?i.slice(t):i;i.length&&(Nt(),ve(i))}}function Lt(e,t){e?(At(),Nt(e)):t&&Et()}function Rt(e,t){e&&Ft(),t&&Ft()}function Bt(t,e,r){if(2&r||he){if(65536&r)return 1;var n=e[0];if(void 0===n)return Ir.rangeIsOnSingleLine(t,pe)?0:1;if(n.pos===y)return 0;if(11===n.kind)return 0;if(!(Ir.positionIsSynthesized(t.pos)||Ir.nodeIsSynthesized(n)||n.parent&&Ir.getOriginalNode(n.parent)!==Ir.getOriginalNode(t)))return he?zt(function(e){return Ir.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(n.pos,t.pos,pe,e)}):Ir.rangeStartPositionsAreOnSameLine(t,n,pe)?0:1;if(Kt(n,r))return 1}return 1&r?1:0}function jt(t,r,e){if(2&e||he){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(!Ir.nodeIsSynthesized(t)&&!Ir.nodeIsSynthesized(r)&&t.parent===r.parent)return he?zt(function(e){return Ir.getLinesBetweenRangeEndAndRangeStart(t,r,pe,e)}):Ir.rangeEndIsOnSameLineAsRangeStart(t,r,pe)?0:1;if(Kt(t,e)||Kt(r,e))return 1}else if(Ir.getStartsOnNewLine(r))return 1;return 1&e?1:0}function Jt(t,e,r){if(2&r||he){if(65536&r)return 1;var n=Ir.lastOrUndefined(e);if(void 0===n)return Ir.rangeIsOnSingleLine(t,pe)?0:1;if(!(Ir.positionIsSynthesized(t.pos)||Ir.nodeIsSynthesized(n)||n.parent&&n.parent!==t)){if(he){var i=(Ir.isNodeArray(e)&&!Ir.positionIsSynthesized(e.end)?e:n).end;return zt(function(e){return Ir.getLinesBetweenPositionAndNextNonWhitespaceCharacter(i,t.end,pe,e)})}return Ir.rangeEndPositionsAreOnSameLine(t,n,pe)?0:1}if(Kt(n,r))return 1}return 1&r&&!(131072&r)?1:0}function zt(e){Ir.Debug.assert(!!he);var t=e(!0);return 0===t?e(!1):t}function Ut(e,t){e=he&&Bt(t,[e],0);return e&&Lt(e,!1),!!e}function Vt(e,t){e=he&&Jt(t,[e],0);e&&Nt(e)}function Kt(e,t){if(Ir.nodeIsSynthesized(e)){e=Ir.getStartsOnNewLine(e);return void 0===e?0!=(65536&t):e}return 0!=(65536&t)}function qt(e,t,r){return 131072&Ir.getEmitFlags(e)?0:(e=Ht(e),t=Ht(t),r=Ht(r),Ir.getStartsOnNewLine(r)?1:Ir.nodeIsSynthesized(e)||Ir.nodeIsSynthesized(t)||Ir.nodeIsSynthesized(r)?0:he?zt(function(e){return Ir.getLinesBetweenRangeEndAndRangeStart(t,r,pe,e)}):Ir.rangeEndIsOnSameLineAsRangeStart(t,r,pe)?0:1)}function Wt(e){return 0===e.statements.length&&Ir.rangeEndIsOnSameLineAsRangeStart(e,e,pe)}function Ht(e){for(;207===e.kind&&Ir.nodeIsSynthesized(e);)e=e.expression;return e}function Gt(e,t){return Ir.isGeneratedIdentifier(e)?rr(e):(Ir.isIdentifier(e)||Ir.isPrivateIdentifier(e))&&(Ir.nodeIsSynthesized(e)||!e.parent||!pe||e.parent&&pe&&Ir.getSourceFileOfNode(e)!==Ir.getOriginalNode(pe))?Ir.idText(e):10===e.kind&&e.textSourceNode?Gt(e.textSourceNode,t):!Ir.isLiteralExpression(e)||!Ir.nodeIsSynthesized(e)&&e.parent?Ir.getSourceTextOfNodeFromSourceFile(pe,e,t):e.text}function Xt(e,t,r){if(10===e.kind&&e.textSourceNode){var n=e.textSourceNode;if(Ir.isIdentifier(n)||Ir.isNumericLiteral(n)){var i=Ir.isNumericLiteral(n)?n.text:Gt(n);return r?'"'+Ir.escapeJsxAttributeString(i)+'"':t||16777216&Ir.getEmitFlags(e)?'"'+Ir.escapeString(i)+'"':'"'+Ir.escapeNonAsciiString(i)+'"'}return Xt(n,t,r)}r=(t?1:0)|(r?2:0)|(f.terminateUnterminatedLiterals?4:0);return Ir.getLiteralText(e,pe,r)}function Qt(e){e&&524288&Ir.getEmitFlags(e)||(t.push(i),i=0,a.push(s))}function Yt(e){e&&524288&Ir.getEmitFlags(e)||(i=t.pop(),s=a.pop())}function Zt(e){s&&s!==Ir.lastOrUndefined(a)||(s=new Ir.Set),s.add(e)}function $t(e){if(e)switch(e.kind){case 230:Ir.forEach(e.statements,$t);break;case 245:case 243:case 235:case 236:$t(e.statement);break;case 234:$t(e.thenStatement),$t(e.elseStatement);break;case 237:case 239:case 238:$t(e.initializer),$t(e.statement);break;case 244:$t(e.caseBlock);break;case 258:Ir.forEach(e.clauses,$t);break;case 284:case 285:Ir.forEach(e.statements,$t);break;case 247:$t(e.tryBlock),$t(e.catchClause),$t(e.finallyBlock);break;case 287:$t(e.variableDeclaration),$t(e.block);break;case 232:$t(e.declarationList);break;case 250:Ir.forEach(e.declarations,$t);break;case 249:case 160:case 198:case 252:tr(e.name);break;case 251:tr(e.name),524288&Ir.getEmitFlags(e)&&(Ir.forEach(e.parameters,$t),$t(e.body));break;case 196:case 197:Ir.forEach(e.elements,$t);break;case 261:$t(e.importClause);break;case 262:tr(e.name),$t(e.namedBindings);break;case 263:case 269:tr(e.name);break;case 264:Ir.forEach(e.elements,$t);break;case 265:tr(e.propertyName||e.name)}}function er(e){if(e)switch(e.kind){case 288:case 289:case 163:case 165:case 167:case 168:tr(e.name)}}function tr(e){e&&(Ir.isGeneratedIdentifier(e)?rr(e):Ir.isBindingPattern(e)&&$t(e))}function rr(e){if(4==(7&e.autoGenerateFlags))return nr(function(e){var t=e.autoGenerateId,r=e,n=r.original;for(;n&&(r=n,!(Ir.isIdentifier(r)&&4&r.autoGenerateFlags&&r.autoGenerateId!==t));)n=r.original;return r}(e),e.autoGenerateFlags);var t=e.autoGenerateId;return r[t]||(r[t]=function(e){switch(7&e.autoGenerateFlags){case 1:return or(0,!!(8&e.autoGenerateFlags));case 2:return or(268435456,!!(8&e.autoGenerateFlags));case 3:return sr(Ir.idText(e),32&e.autoGenerateFlags?ar:ir,!!(16&e.autoGenerateFlags),!!(8&e.autoGenerateFlags))}return Ir.Debug.fail("Unsupported GeneratedIdentifierKind.")}(e))}function nr(e,t){var r=Ir.getNodeId(e);return n[r]||(n[r]=function(e,t){switch(e.kind){case 78:return sr(Gt(e),ir,!!(16&t),!!(8&t));case 256:case 255:return function(e){var t=Gt(e.name);return function(e,t){for(var r=t;Ir.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var n=r.locals.get(Ir.escapeLeadingUnderscores(e));if(n&&3257279&n.flags)return!1}return!0}(t,e)?t:sr(t)}(e);case 261:case 267:return function(e){e=Ir.getExternalModuleName(e);return sr(Ir.isStringLiteral(e)?Ir.makeIdentifierFromModuleName(e.text):"module")}(e);case 251:case 252:case 266:return sr("default");case 221:return sr("class");case 165:case 167:case 168:return function(e){if(Ir.isIdentifier(e.name))return nr(e.name);return or(0)}(e);case 158:return or(0,!0);default:return or(0)}}(e,t))}function ir(e){return ar(e)&&!o.has(e)&&!(s&&s.has(e))}function ar(e){return!pe||Ir.isFileLevelUniqueName(pe,e,m)}function or(e,t){if(e&&!(i&e)&&ir(r=268435456===e?"_i":"_n"))return i|=e,t&&Zt(r),r;for(;;){var r,n=268435455&i;if(i++,8!=n&&13!=n)if(ir(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Zt(r),r}}function sr(e,t,r,n){if(void 0===t&&(t=ir),r&&t(e))return n?Zt(e):o.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?Zt(a):o.add(a),a;i++}}function cr(e){return sr(e,ar,!0)}function ur(e,t){Ir.Debug.assert(ge===t||me===t),J(),B=!1;var r=Ir.getEmitFlags(t),n=Ir.getCommentRange(t),i=n.pos,a=n.end,o=335!==t.kind,s=i<0||0!=(512&r)||11===t.kind,c=a<0||0!=(1024&r)||11===t.kind,u=M,l=L,n=R;(0<i||0<a)&&i!==a&&(s||fr(i,o),(!s||0<=i&&0!=(512&r))&&(M=i),(!c||0<=a&&0!=(1024&r))&&(L=a,250===t.kind&&(R=a))),Ir.forEach(Ir.getSyntheticLeadingComments(t),lr),z();s=ae(2,e,t);2048&r?(j=!0,s(e,t),j=!1):s(e,t),J(),Ir.forEach(Ir.getSyntheticTrailingComments(t),_r),(0<i||0<a)&&i!==a&&(M=u,L=l,R=n,!c&&o&&Tr(a,br)),z(),Ir.Debug.assert(ge===t||me===t)}function lr(e){!e.hasLeadingNewline&&2!==e.kind||fe.writeLine(),dr(e),e.hasTrailingNewLine||2===e.kind?fe.writeLine():fe.writeSpace(" ")}function _r(e){fe.isAtStartOfLine()||fe.writeSpace(" "),dr(e),e.hasTrailingNewLine&&fe.writeLine()}function dr(e){var t,t=3===(t=e).kind?"/*"+t.text+"*/":"//"+t.text,e=3===e.kind?Ir.computeLineStarts(t):void 0;Ir.writeCommentRange(t,e,fe,0,t.length,C)}function pr(e,t,r){J();var n=t.pos,i=t.end,a=Ir.getEmitFlags(e),i=j||i<0||0!=(1024&a);n<0||0!=(512&a)||(n=t,(n=Ir.emitDetachedComments(pe.text,ne(),fe,Cr,n,C,j))&&(p?p.push(n):p=[n])),z(),2048&a&&!j?(j=!0,r(e),j=!1):r(e),J(),i||(fr(t.end,!0),B&&!fe.isAtStartOfLine()&&fe.writeLine()),z()}function fr(e,t){B=!1,t?0===e&&null!=pe&&pe.isDeclarationFile?Sr(e,mr):Sr(e,hr):0===e&&Sr(e,gr)}function gr(e,t,r,n,i){Er(e,t)&&hr(e,t,r,n,i)}function mr(e,t,r,n,i){Er(e,t)||hr(e,t,r,n,i)}function yr(e,t){return!f.onlyPrintJsDocStyle||(Ir.isJSDocLikeText(e,t)||Ir.isPinnedComment(e,t))}function hr(e,t,r,n,i){yr(pe.text,e)&&(B||(Ir.emitNewLineBeforeLeadingCommentOfPosition(ne(),fe,i,e),B=!0),Ar(e),Ir.writeCommentRange(pe.text,ne(),fe,e,t,C),Ar(t),n?fe.writeLine():3===r&&fe.writeSpace(" "))}function vr(e){j||-1===e||fr(e,!0)}function br(e,t,r,n){yr(pe.text,e)&&(fe.isAtStartOfLine()||fe.writeSpace(" "),Ar(e),Ir.writeCommentRange(pe.text,ne(),fe,e,t,C),Ar(t),n&&fe.writeLine())}function xr(e,t){j||(J(),Tr(e,t?br:Dr),z())}function Dr(e,t,r,n){Ar(e),Ir.writeCommentRange(pe.text,ne(),fe,e,t,C),Ar(t),n?fe.writeLine():fe.writeSpace(" ")}function Sr(e,t){var r,n;!pe||-1!==M&&e===M||(n=e,void 0!==p&&Ir.last(p).nodePos===n?(r=t,n=Ir.last(p).detachedCommentEndPos,p.length-1?p.pop():p=void 0,Ir.forEachLeadingCommentRange(pe.text,n,r,n)):Ir.forEachLeadingCommentRange(pe.text,e,t,e))}function Tr(e,t){pe&&(-1===L||e!==L&&e!==R)&&Ir.forEachTrailingCommentRange(pe.text,e,t)}function Cr(e,t,r,n,i,a){yr(pe.text,n)&&(Ar(n),Ir.writeCommentRange(e,t,r,n,i,a),Ar(i))}function Er(e,t){return Ir.isRecognizedTripleSlashComment(pe.text,e,t)}function kr(e,t){Ir.Debug.assert(ge===t||me===t);var r,n,i,a,o=ae(3,e,t);Ir.isUnparsedSource(t)||Ir.isUnparsedPrepend(t)?o(e,t):Ir.isUnparsedNode(t)?((i=(void 0===(a=t.parent).parsedSourceMap&&void 0!==a.sourceMapText&&(a.parsedSourceMap=Ir.tryParseRawSourceMap(a.sourceMapText)||!1),a.parsedSourceMap||void 0))&&u&&u.appendSourceMap(fe.getLine(),fe.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end)),o(e,t)):(r=(n=Ir.getSourceMapRange(t)).pos,a=n.end,n=void 0===(i=n.source)?l:i,i=Ir.getEmitFlags(t),335!==t.kind&&0==(16&i)&&0<=r&&Fr(n,Nr(n,r)),64&i?(w=!0,o(e,t),w=!1):o(e,t),335!==t.kind&&0==(32&i)&&0<=a&&Fr(n,a)),Ir.Debug.assert(ge===t||me===t)}function Nr(e,t){return e.skipTrivia?e.skipTrivia(t):Ir.skipTrivia(e.text,t)}function Ar(e){var t;w||Ir.positionIsSynthesized(e)||wr(l)||(e=(t=Ir.getLineAndCharacterOfPosition(l,e)).line,t=t.character,u.addMapping(fe.getLine(),fe.getColumn(),I,e,t,void 0))}function Fr(e,t){var r,n;e!==l?(r=l,n=I,Pr(e),Ar(t),l=r,I=n):Ar(t)}function Pr(e){w||((l=e)!==_?wr(e)||(I=u.addSource(e.fileName),f.inlineSources&&u.setSourceContent(I,e.text),_=e,O=I):I=O)}function wr(e){return Ir.fileExtensionIs(e.fileName,".json")}}Ir.isBuildInfoFile=function(e){return Ir.fileExtensionIs(e,".tsbuildinfo")},Ir.forEachEmittedFile=n,Ir.getTsBuildInfoEmitOutputFilePath=d,Ir.getOutputPathsForBundle=T,Ir.getOutputPathsFor=p,Ir.getOutputExtension=c,Ir.getOutputDeclarationFileName=u,Ir.getAllProjectOutputs=function(e,t){var r=(n=o()).addOutput,n=n.getOutputs;if(Ir.outFile(e.options))_(e,r);else{for(var i=0,a=e.fileNames;i<a.length;i++)f(e,a[i],t,r);r(d(e.options))}return n()},Ir.getOutputFileNames=function(e,t,r){t=Ir.normalizePath(t),Ir.Debug.assert(Ir.contains(e.fileNames,t),"Expected fileName to be present in command line");var n=(i=o()).addOutput,i=i.getOutputs;return Ir.outFile(e.options)?_(e,n):f(e,t,r,n),i()},Ir.getFirstProjectOutput=function(e,t){if(Ir.outFile(e.options)){var r=T(e.options,!1).jsFilePath;return Ir.Debug.checkDefined(r,"project "+e.options.configFilePath+" expected to have at least one output")}for(var n=0,i=e.fileNames;n<i.length;n++){var a=i[n];if(!Ir.fileExtensionIs(a,".d.ts")){if(r=l(a,e,t))return r;if(!Ir.fileExtensionIs(a,".json")&&Ir.getEmitDeclarations(e.options))return u(a,e,t)}}var o=d(e.options);return o||Ir.Debug.fail("project "+e.options.configFilePath+" expected to have at least one output")},Ir.emitFiles=C,Ir.getBuildInfoText=E,Ir.getBuildInfo=k,Ir.notImplementedResolver={hasGlobalName:Ir.notImplemented,getReferencedExportContainer:Ir.notImplemented,getReferencedImportDeclaration:Ir.notImplemented,getReferencedDeclarationWithCollidingName:Ir.notImplemented,isDeclarationWithCollidingName:Ir.notImplemented,isValueAliasDeclaration:Ir.notImplemented,isReferencedAliasDeclaration:Ir.notImplemented,isTopLevelValueImportEqualsWithEntityName:Ir.notImplemented,getNodeCheckFlags:Ir.notImplemented,isDeclarationVisible:Ir.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:Ir.notImplemented,isImplementationOfOverload:Ir.notImplemented,isRequiredInitializedParameter:Ir.notImplemented,isOptionalUninitializedParameterProperty:Ir.notImplemented,isExpandoFunctionDeclaration:Ir.notImplemented,getPropertiesOfContainerFunction:Ir.notImplemented,createTypeOfDeclaration:Ir.notImplemented,createReturnTypeOfSignatureDeclaration:Ir.notImplemented,createTypeOfExpression:Ir.notImplemented,createLiteralConstValue:Ir.notImplemented,isSymbolAccessible:Ir.notImplemented,isEntityNameVisible:Ir.notImplemented,getConstantValue:Ir.notImplemented,getReferencedValueDeclaration:Ir.notImplemented,getTypeReferenceSerializationKind:Ir.notImplemented,isOptionalParameter:Ir.notImplemented,moduleExportsSomeValue:Ir.notImplemented,isArgumentsLocalBinding:Ir.notImplemented,getExternalModuleFileFromDeclaration:Ir.notImplemented,getTypeReferenceDirectivesForEntityName:Ir.notImplemented,getTypeReferenceDirectivesForSymbol:Ir.notImplemented,isLiteralConstDeclaration:Ir.notImplemented,getJsxFactoryEntity:Ir.notImplemented,getJsxFragmentFactoryEntity:Ir.notImplemented,getAllAccessorDeclarations:Ir.notImplemented,getSymbolOfExternalModuleSpecifier:Ir.notImplemented,isBindingCapturedByNode:Ir.notImplemented,getDeclarationStatementsForSourceFile:Ir.notImplemented,isImportRequiredByAugmentation:Ir.notImplemented},Ir.emitUsingBuildInfo=function(e,t,r,n){var s=(S=T(e.options,!1)).buildInfoPath,c=S.jsFilePath,u=S.sourceMapFilePath,l=S.declarationFilePath,_=S.declarationMapPath,i=t.readFile(Ir.Debug.checkDefined(s));if(!i)return s;var d=t.readFile(Ir.Debug.checkDefined(c));if(!d)return c;var p=u&&t.readFile(u);if(u&&!p||e.options.inlineSourceMap)return u||"inline sourcemap decoding";var f=l&&t.readFile(l);if(l&&!f)return l;var g=_&&t.readFile(_);if(_&&!g||e.options.inlineSourceMap)return _||"inline sourcemap decoding";var m=k(i);if(!m.bundle||!m.bundle.js||f&&!m.bundle.dts)return s;var a,o,y,h=Ir.getDirectoryPath(Ir.getNormalizedAbsolutePath(s,t.getCurrentDirectory())),v=Ir.createInputFiles(d,f,u,p,_,g,c,l,s,m,!0),b=[],x=Ir.createPrependNodes(e.projectReferences,r,function(e){return t.readFile(e)}),D=(S=m.bundle,a=h,o=t,i=Ir.Debug.checkDefined(S.js),y=(null===(r=i.sources)||void 0===r?void 0:r.prologues)&&Ir.arrayToMap(i.sources.prologues,function(e){return e.file}),S.sourceFiles.map(function(e,t){var r=null==y?void 0:y.get(t),n=null==r?void 0:r.directives.map(function(e){var t=Ir.setTextRange(Ir.factory.createStringLiteral(e.expression.text),e.expression),e=Ir.setTextRange(Ir.factory.createExpressionStatement(t),e);return Ir.setParent(t,e),e}),t=Ir.factory.createToken(1),n=Ir.factory.createSourceFile(null!=n?n:[],t,0);return n.fileName=Ir.getRelativePathFromDirectory(o.getCurrentDirectory(),Ir.getNormalizedAbsolutePath(e,a),!o.useCaseSensitiveFileNames()),n.text=null!==(e=null==r?void 0:r.text)&&void 0!==e?e:"",Ir.setTextRangePosWidth(n,0,null!==(r=null==r?void 0:r.text.length)&&void 0!==r?r:0),Ir.setEachParent(n.statements,n),Ir.setTextRangePosWidth(t,n.end,0),Ir.setParent(t,n),n})),S={getPrependNodes:Ir.memoize(function(){return __spreadArrays(x,[v])}),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return Ir.getNormalizedAbsolutePath(m.bundle.commonSourceDirectory,h)},getCompilerOptions:function(){return e.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:Ir.returnUndefined,getSourceFileByPath:Ir.returnUndefined,getSourceFiles:function(){return D},getLibFileFromReference:Ir.notImplemented,isSourceFileFromExternalLibrary:Ir.returnFalse,getResolvedProjectReferenceToRedirect:Ir.returnUndefined,getProjectReferenceRedirect:Ir.returnUndefined,isSourceOfProjectReferenceRedirect:Ir.returnFalse,writeFile:function(e,t,r){switch(e){case c:if(d===t)return;break;case u:if(p===t)return;break;case s:var n=k(t);n.program=m.program;var i=m.bundle,a=i.js,o=i.dts,i=i.sourceFiles;return n.bundle.js.sources=a.sources,o&&(n.bundle.dts.sources=o.sources),n.bundle.sourceFiles=i,void b.push({name:e,text:E(n),writeByteOrderMark:r});case l:if(f===t)return;break;case _:if(g===t)return;break;default:Ir.Debug.fail("Unexpected path: "+e)}b.push({name:e,text:t,writeByteOrderMark:r})},isEmitBlocked:Ir.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:Ir.returnUndefined,getSourceFileFromReference:Ir.returnUndefined,redirectTargetsMap:Ir.createMultiMap()};return C(Ir.notImplementedResolver,S,void 0,Ir.getTransformers(e.options,n)),b},(e={})[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit",Ir.createPrinter=N,(e={})[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(ts=ts||{}),function(h){var n,e;function o(e,t,r,n,i){return e.watchFile(t,r,n,i)}function i(e,t,r,n,i,a){return o(e,t,function(e,t){return r(e,t,a)},n,i)}function a(e,t,r,n,i){return e.watchDirectory(t,r,0!=(1&n),i)}function f(e,t){switch(e){case n.None:return t;case n.TriggerOnly:return g;case n.Verbose:return t===a?s:r}}function r(e,t,r,n,i,a,o,s,c,u,l,_){u(l+":: Added:: "+m(t,n,i,o,s,_));var d=g(e,t,r,n,i,a,o,s,c,u,l,_);return{close:function(){u(l+":: Close:: "+m(t,n,i,o,s,_)),d.close()}}}function s(e,r,t,n,i,a,o,s,c,u,l,_){var d=l+":: Added:: "+m(r,n,i,o,s,_);u(d);var p=h.timestamp(),f=g(e,r,t,n,i,a,o,s,c,u,l,_),p=h.timestamp()-p;return u("Elapsed:: "+p+"ms "+d),{close:function(){var e=l+":: Close:: "+m(r,n,i,o,s,_);u(e);var t=h.timestamp();f.close();t=h.timestamp()-t;u("Elapsed:: "+t+"ms "+e)}}}function g(e,i,a,o,s,c,u,l,t,_,d,p){return t(e,i,function(e,t){var r=d+":: Triggered with "+e+" "+(void 0!==t?t:"")+":: "+m(i,o,s,u,l,p);_(r);var n=h.timestamp();a(e,t,c);n=h.timestamp()-n;_("Elapsed:: "+n+"ms "+r)},o,s)}function m(e,t,r,n,i,a){return"WatchInfo: "+e+" "+t+" "+JSON.stringify(r)+" "+(a?a(n,i):void 0===i?n:n+" "+i)}function t(e){e.watcher.close()}h.createCachedDirectoryStructureHost=function(s,c,u){if(s.getDirectories&&s.readDirectory){var a=new h.Map,r=h.createGetCanonicalFileName(u);return{useCaseSensitiveFileNames:u,fileExists:function(e){var t=i(l(e));return t&&p(t.files,_(e))||s.fileExists(e)},readFile:function(e,t){return s.readFile(e,t)},directoryExists:s.directoryExists&&function(e){var t=l(e);return a.has(h.ensureTrailingDirectorySeparator(t))||s.directoryExists(e)},getDirectories:function(e){var t=l(e),t=d(e,t);if(t)return t.directories.slice();return s.getDirectories(e)},readDirectory:function(e,t,r,n,i){var a=l(e),o=d(e,a);if(o)return h.matchFiles(e,t,r,n,u,c,i,function(e){var t=l(e);return t!==a?d(e,t)||h.emptyFileSystemEntries:o},g);return s.readDirectory(e,t,r,n,i)},createDirectory:s.createDirectory&&function(e){var t=i(l(e)),r=_(e);t&&f(t.directories,r,!0);s.createDirectory(e)},writeFile:s.writeFile&&function(e,t,r){var n=i(l(e));n&&m(n,_(e),!0);return s.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(o(t))return void y();var r=i(t);if(!r)return;if(!s.directoryExists)return void y();e=_(e),t={fileExists:s.fileExists(t),directoryExists:s.directoryExists(t)};t.directoryExists||p(r.directories,e)?y():m(r,e,t.fileExists);return t},addOrDeleteFile:function(e,t,r){if(r===h.FileWatcherEventKind.Changed)return;t=i(t);t&&m(t,_(e),r===h.FileWatcherEventKind.Created)},clearCache:y,realpath:s.realpath&&g}}function l(e){return h.toPath(e,c,r)}function o(e){return a.get(h.ensureTrailingDirectorySeparator(e))}function i(e){return o(h.getDirectoryPath(e))}function _(e){return h.getBaseFileName(h.normalizePath(e))}function d(e,t){var r,n,i=o(t=h.ensureTrailingDirectorySeparator(t));if(i)return i;try{return r=e,n=t,r={files:h.map(s.readDirectory(r,void 0,void 0,["*.*"]),_)||[],directories:s.getDirectories(r)||[]},a.set(h.ensureTrailingDirectorySeparator(n),r),r}catch(e){return void h.Debug.assert(!a.has(h.ensureTrailingDirectorySeparator(t)))}}function n(e,t){return r(e)===r(t)}function p(e,t){return h.some(e,function(e){return n(e,t)})}function f(e,t,r){return p(e,t)?!r&&h.filterMutate(e,function(e){return!n(e,t)}):r&&e.push(t)}function g(e){return s.realpath?s.realpath(e):e}function m(e,t,r){f(e.files,t,r)}function y(){a.clear()}},(e=h.ConfigFileProgramReloadLevel||(h.ConfigFileProgramReloadLevel={}))[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",h.updateMissingFilePathsWatch=function(e,t,r){e=e.getMissingFilePaths(),e=h.arrayToMap(e,h.identity,h.returnTrue),h.mutateMap(t,e,{createNewValue:r,onDeleteValue:h.closeFileWatcher})},h.updateWatchingWildcardDirectories=function(n,e,r){function i(e,t){return{watcher:r(e,t),flags:t}}h.mutateMap(n,e,{createNewValue:i,onDeleteValue:t,onExistingValue:function(e,t,r){if(e.flags===t)return;e.watcher.close(),n.set(r,i(r,t))}})},h.isIgnoredFileFromWildCardWatching=function(e){var t=e.watchedDirPath,r=e.fileOrDirectory,n=e.fileOrDirectoryPath,i=e.configFileName,a=e.options,o=e.configFileSpecs,s=e.program,c=e.extraFileExtensions,u=e.currentDirectory,l=e.useCaseSensitiveFileNames,_=e.writeLog;if(!(e=h.removeIgnoredPath(n)))return _("Project: "+i+" Detected ignored path: "+r),!0;if((n=e)===t)return!1;if(h.hasExtension(n)&&!h.isSupportedSourceFileName(r,a,c))return _("Project: "+i+" Detected file add/remove of non supported extension: "+r),!0;if(h.isExcludedFile(r,o,h.getNormalizedAbsolutePath(h.getDirectoryPath(i),u),l,u))return _("Project: "+i+" Detected excluded file: "+r),!0;if(!s)return!1;if(a.outFile||a.outDir)return!1;if(h.fileExtensionIs(n,".d.ts")){if(a.declarationDir)return!1}else if(!h.fileExtensionIsOneOf(n,h.supportedJSExtensions))return!1;var n=h.removeFileExtension(n),d=s.getState?s.getProgramOrUndefined():s;return!(!p(n+".ts")&&!p(n+".tsx"))&&(_("Project: "+i+" Detected output file: "+r),!0);function p(e){return d?d.getSourceFileByPath(e):s.getState().fileInfos.has(e)}},h.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},(e=n=h.WatchLogLevel||(h.WatchLogLevel={}))[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",h.getWatchFactory=function(e,t,r){return function(e,c,u,l,s){var _=f(e,l),d=e===n.None?i:_,p=f(e,s);e===n.Verbose&&h.sysLog===h.noop&&h.setSysLog(function(e){return c(e)});return{watchFile:function(e,t,r,n,i,a,o){return _(e,t,r,n,i,void 0,a,o,l,c,"FileWatcher",u)},watchFilePath:function(e,t,r,n,i,a,o,s){return d(e,t,r,n,i,a,o,s,l,c,"FileWatcher",u)},watchDirectory:function(e,t,r,n,i,a,o){return p(e,t,r,n,i,void 0,a,o,s,c,"DirectoryWatcher",u)}}}(e,t,r,o,a)},h.getFallbackOptions=function(e){return{watchFile:void 0!==(e=null==e?void 0:e.fallbackPolling)?e:h.WatchFileKind.PriorityPollingInterval}},h.closeFileWatcherOf=t}(ts=ts||{}),function(jt){function Jt(e,t){t=jt.getDirectoryPath(t),e=jt.isRootedDiskPath(e)?e:jt.combinePaths(t,e);return jt.normalizePath(e)}function zt(e,i,a){var o;return jt.forEach(e,function(e){var t=jt.getNormalizedPathComponents(e,i);if(t.pop(),o){for(var r=Math.min(o.length,t.length),n=0;n<r;n++)if(a(o[n])!==a(t[n])){if(0===n)return!0;o.length=n;break}t.length<o.length&&(o.length=t.length)}else o=t})?"":o?jt.getPathFromPathComponents(o):i}function Ut(e,t){return r(e,t)}function r(o,i,s){void 0===s&&(s=jt.sys);var c,a=new jt.Map,e=jt.createGetCanonicalFileName(s.useCaseSensitiveFileNames),u=jt.maybeBind(s,s.createHash)||jt.generateDjb2Hash;function t(){return jt.getDirectoryPath(jt.normalizePath(s.getExecutingFilePath()))}var r=jt.getNewLineCharacter(o,function(){return s.newLine}),n=s.realpath&&function(e){return s.realpath(e)},l={getSourceFile:function(e,t,r){var n;try{jt.performance.mark("beforeIORead"),n=l.readFile(e),jt.performance.mark("afterIORead"),jt.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?jt.createSourceFile(e,n,t,i):void 0},getDefaultLibLocation:t,getDefaultLibFileName:function(e){return jt.combinePaths(t(),jt.getDefaultLibFileName(e))},writeFile:function(e,t,r,n){try{jt.performance.mark("beforeIOWrite"),jt.writeFileEnsuringDirectories(e,t,r,function(e,t,r){if(!jt.isWatchSet(o)||!s.getModifiedTime)return void s.writeFile(e,t,r);c=c||new jt.Map;var n=u(t),i=s.getModifiedTime(e);if(i){var a=c.get(e);if(a&&a.byteOrderMark===r&&a.hash===n&&a.mtime.getTime()===i.getTime())return}s.writeFile(e,t,r);t=s.getModifiedTime(e)||jt.missingFileModifiedTime;c.set(e,{hash:n,byteOrderMark:r,mtime:t})},function(e){return(l.createDirectory||s.createDirectory)(e)},function(e){return e=e,!!a.has(e)||!!(l.directoryExists||s.directoryExists)(e)&&(a.set(e,!0),!0)}),jt.performance.mark("afterIOWrite"),jt.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:jt.memoize(function(){return s.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return s.useCaseSensitiveFileNames},getCanonicalFileName:e,getNewLine:function(){return r},fileExists:function(e){return s.fileExists(e)},readFile:function(e){return s.readFile(e)},trace:function(e){return s.write(e+r)},directoryExists:function(e){return s.directoryExists(e)},getEnvironmentVariable:function(e){return s.getEnvironmentVariable?s.getEnvironmentVariable(e):""},getDirectories:function(e){return s.getDirectories(e)},realpath:n,readDirectory:function(e,t,r,n,i){return s.readDirectory(e,t,r,n,i)},createDirectory:function(e){return s.createDirectory(e)},createHash:jt.maybeBind(s,s.createHash)};return l}function a(e,t){var r=jt.diagnosticCategoryName(e)+" TS"+e.code+": "+m(e.messageText,t.getNewLine())+t.getNewLine();if(e.file){var n=jt.getLineAndCharacterOfPosition(e.file,e.start),i=n.line,n=n.character,e=e.file.fileName;return jt.convertToRelativePath(e,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)})+"("+(i+1)+","+(n+1)+"): "+r}return r}var d,e;jt.findConfigFile=function(e,t,r){return void 0===r&&(r="tsconfig.json"),jt.forEachAncestorDirectory(e,function(e){e=jt.combinePaths(e,r);return t(e)?e:void 0})},jt.resolveTripleslashReference=Jt,jt.computeCommonSourceDirectoryOfFilenames=zt,jt.createCompilerHost=Ut,jt.createCompilerHostWorker=r,jt.changeCompilerHostLikeToUseCache=function(s,c,o){var n=s.readFile,i=s.fileExists,a=s.directoryExists,r=s.createDirectory,u=s.writeFile,l=new jt.Map,_=new jt.Map,d=new jt.Map,p=new jt.Map,f=function(e,t){t=n.call(s,t);return l.set(e,void 0!==t&&t),t};s.readFile=function(e){var t=c(e),r=l.get(t);return void 0!==r?!1!==r?r:void 0:jt.fileExtensionIs(e,".json")||jt.isBuildInfoFile(e)?f(t,e):n.call(s,e)};var g=o?function(e,t,r,n){var i=c(e),a=p.get(i);if(a)return a;n=o(e,t,r,n);return n&&(jt.isDeclarationFileName(e)||jt.fileExtensionIs(e,".json"))&&p.set(i,n),n}:void 0;return s.fileExists=function(e){var t=c(e),r=_.get(t);if(void 0!==r)return r;e=i.call(s,e);return _.set(t,!!e),e},u&&(s.writeFile=function(e,t,r,n,i){var a=c(e);_.delete(a);var o=l.get(a);void 0!==o&&o!==t?(l.delete(a),p.delete(a)):!g||(o=p.get(a))&&o.text!==t&&p.delete(a),u.call(s,e,t,r,n,i)}),a&&r&&(s.directoryExists=function(e){var t=c(e),r=d.get(t);if(void 0!==r)return r;e=a.call(s,e);return d.set(t,!!e),e},s.createDirectory=function(e){var t=c(e);d.delete(t),r.call(s,e)}),{originalReadFile:n,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:r,originalWriteFile:u,getSourceFileWithCache:g,readFileWithCache:function(e){var t=c(e),r=l.get(t);return void 0!==r?!1!==r?r:void 0:f(t,e)}}},jt.getPreEmitDiagnostics=function(e,t,r){var n=jt.addRange(n,e.getConfigFileParsingDiagnostics());return n=jt.addRange(n,e.getOptionsDiagnostics(r)),n=jt.addRange(n,e.getSyntacticDiagnostics(t,r)),n=jt.addRange(n,e.getGlobalDiagnostics(r)),n=jt.addRange(n,e.getSemanticDiagnostics(t,r)),jt.getEmitDeclarations(e.getCompilerOptions())&&(n=jt.addRange(n,e.getDeclarationDiagnostics(t,r))),jt.sortAndDeduplicateDiagnostics(n||jt.emptyArray)},jt.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=a(i[n],t);return r},jt.formatDiagnostic=a,(e=d=jt.ForegroundColorEscapeSequences||(jt.ForegroundColorEscapeSequences={})).Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m";var h="[7m",v=" ",b="[0m",x="...";function p(e){switch(e){case jt.DiagnosticCategory.Error:return d.Red;case jt.DiagnosticCategory.Warning:return d.Yellow;case jt.DiagnosticCategory.Suggestion:return jt.Debug.fail("Should never get an Info diagnostic on the command line.");case jt.DiagnosticCategory.Message:return d.Blue}}function D(e,t){return t+e+b}function f(e,t,r,n,i,a){var o=jt.getLineAndCharacterOfPosition(e,t),s=o.line,c=o.character,r=jt.getLineAndCharacterOfPosition(e,t+r),u=r.line,l=r.character,_=jt.getLineAndCharacterOfPosition(e,e.text.length).line,d=4<=u-s,p=(u+1+"").length;d&&(p=Math.max(x.length,p));for(var f="",g=s;g<=u;g++){f+=a.getNewLine(),d&&s+1<g&&g<u-1&&(f+=n+D(jt.padLeft(x,p),h)+v+a.getNewLine(),g=u-1);var m=jt.getPositionOfLineAndCharacter(e,g,0),y=g<_?jt.getPositionOfLineAndCharacter(e,g+1,0):e.text.length,m=e.text.slice(m,y);m=(m=m.replace(/\s+$/g,"")).replace("\t"," "),f+=n+D(jt.padLeft(g+1+"",p),h)+v,f+=m+a.getNewLine(),f+=n+D(jt.padLeft("",p),h)+v,f+=i,g===s?(y=g===u?l:void 0,f+=m.slice(0,c).replace(/\S/g," "),f+=m.slice(c,y).replace(/./g,"~")):f+=(g===u?m.slice(0,l):m).replace(/./g,"~"),f+=b}return f}function g(e,t,r,n){void 0===n&&(n=D);var i=jt.getLineAndCharacterOfPosition(e,t),a=i.line,t=i.character,i="";return i+=n(r?jt.convertToRelativePath(e.fileName,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)}):e.fileName,d.Cyan),i+=":",i+=n(""+(a+1),d.Yellow),i+=":",i+=n(""+(t+1),d.Yellow)}function m(e,t,r){if(void 0===r&&(r=0),jt.isString(e))return e;if(void 0===e)return"";var n="";if(r){n+=t;for(var i=0;i<r;i++)n+="  "}if(n+=e.messageText,r++,e.next)for(var a=0,o=e.next;a<o.length;a++)n+=m(o[a],t,r);return n}function Vt(e,t,r,n){if(0===e.length)return[];for(var i=[],a=new jt.Map,o=0,s=e;o<s.length;o++){var c=s[o],u=void 0;a.has(c)?u=a.get(c):a.set(c,u=n(c,t,r)),i.push(u)}return i}function Kt(e,t,i,a){var o;return function r(e,t,n){if(a){var e=a(e,n);if(e)return e}return jt.forEach(t,function(e,t){if(!e||null==o||!o.has(e.sourceFile.path)){var t=i(e,n,t);return t||!e?t:((o=o||new jt.Set).add(e.sourceFile.path),r(e.commandLine.projectReferences,e.references,e))}})}(e,t,void 0)}function qt(e,t,r,n){var i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(t,n),t||jt.outFile(i)?jt.emitSkippedWithNoDiagnostics:e.emitBuildInfo(r,n);if(i.noEmitOnError){var a,o=__spreadArrays(e.getOptionsDiagnostics(n),e.getSyntacticDiagnostics(t,n),e.getGlobalDiagnostics(n),e.getSemanticDiagnostics(t,n));if(0===o.length&&jt.getEmitDeclarations(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,n)),o.length)return t||jt.outFile(i)||((a=e.emitBuildInfo(r,n)).diagnostics&&(o=__spreadArrays(o,a.diagnostics)),a=a.emittedFiles),{diagnostics:o,sourceMaps:void 0,emittedFiles:a,emitSkipped:!0}}}function Wt(e,t){return jt.filter(e,function(e){return!e.skippedOn||!t[e.skippedOn]})}function Ht(t,a){return void 0===a&&(a=t),{fileExists:function(e){return a.fileExists(e)},readDirectory:function(e,t,r,n,i){return jt.Debug.assertIsDefined(a.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),a.readDirectory(e,t,r,n,i)},readFile:function(e){return a.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||jt.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function Gt(e,t,r){if(!e)return jt.emptyArray;for(var n,i=0;i<e.length;i++){var a,o,s,c=e[i],u=t(c,i);c.prepend&&u&&u.options&&jt.outFile(u.options)&&(a=(s=jt.getOutputPathsForBundle(u.options,!0)).jsFilePath,o=s.sourceMapFilePath,c=s.declarationFilePath,u=s.declarationMapPath,s=s.buildInfoPath,s=jt.createInputFiles(r,a,o,c,u,s),(n=n||[]).push(s))}return n||jt.emptyArray}function Xt(e,t){e=t||e;return jt.resolveConfigFileProjectName(e.path)}function Qt(e,t){switch(t.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||n();case".js":return n();case".json":return e.resolveJsonModule?void 0:jt.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function r(){return e.jsx?void 0:jt.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function n(){return jt.getAllowJSCompilerOption(e)||!jt.getStrictOptionValue(e,"noImplicitAny")?void 0:jt.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function Yt(e){for(var t=e.imports,e=e.moduleAugmentations,r=t.map(function(e){return e.text}),n=0,i=e;n<i.length;n++){var a=i[n];10===a.kind&&r.push(a.text)}return r}jt.formatColorAndReset=D,jt.formatLocation=g,jt.formatDiagnosticsWithColorAndContext=function(e,t){for(var r="",n=0,i=e;n<i.length;n++){var a=i[n];if(a.file&&(r+=g(u=a.file,l=a.start,t),r+=" - "),r+=D(jt.diagnosticCategoryName(a),p(a.category)),r+=D(" TS"+a.code+": ",d.Grey),r+=m(a.messageText,t.getNewLine()),a.file&&(r+=t.getNewLine(),r+=f(a.file,a.start,a.length,"",p(a.category),t),a.relatedInformation)){r+=t.getNewLine();for(var o=0,s=a.relatedInformation;o<s.length;o++){var c=s[o],u=c.file,l=c.start,_=c.length,c=c.messageText;u&&(r+=t.getNewLine(),r+="  "+g(u,l,t),r+=f(u,l,_,"    ",d.Cyan,t)),r+=t.getNewLine(),r+="    "+m(c,t.getNewLine())}}r+=t.getNewLine()}return r},jt.flattenDiagnosticMessageText=m,jt.loadWithLocalCache=Vt,jt.forEachResolvedProjectReference=function(e,r){return Kt(void 0,e,function(e,t){return e&&r(e,t)})},jt.inferredTypesContainingFile="__inferred type names__.ts",jt.isProgramUptoDate=function(n,e,t,r,i,a,o,s){return!(!n||null!=o&&o())&&(!!jt.arrayIsEqualTo(n.getRootFileNames(),e)&&(!!jt.arrayIsEqualTo(n.getProjectReferences(),s,function(e,t,r){return!!jt.projectReferenceIsEqualTo(e,t)&&function r(n,e){if(n)return!!jt.contains(c,n)||!!u(n.sourceFile)&&((c=c||[]).push(n),!jt.forEach(n.references,function(e,t){return!r(e,n.commandLine.projectReferences[t])}));return!i(Xt(e))}(n.getResolvedProjectReferences()[r],e)})&&(!n.getSourceFiles().some(function(e){return!u(e)||a(e.path)})&&(!n.getMissingFilePaths().some(i)&&(s=n.getCompilerOptions(),!!jt.compareDataObjects(s,t)&&(!s.configFile||!t.configFile||s.configFile.text===t.configFile.text))))));var c;function u(e){return e.version===r(e.resolvedPath,e.fileName)}},jt.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?__spreadArrays(e.options.configFile.parseDiagnostics,e.errors):e.errors},jt.createProgram=function(e,t,r,n,i){var f,g,A,a,o,s,c,u,F,P=(r=jt.isArray(e)?{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}:e).rootNames,w=r.options,l=r.configFileParsingDiagnostics,I=r.projectReferences,O=r.oldProgram,M=new jt.Map,_={},d={},L=new jt.Map,R=jt.createDiagnosticCollection(),m="number"==typeof w.maxNodeModuleJsDepth?w.maxNodeModuleJsDepth:0,y=0,h=new jt.Map,B=new jt.Map,n=["program","createProgram"];jt.tracing.begin.apply(jt.tracing,n),jt.performance.mark("beforeProgram");var p,v,b,x,D,S,j=r.host||Ut(w),T=Ht(j),C=w.noLib,E=jt.memoize(function(){return j.getDefaultLibFileName(w)}),k=j.getDefaultLibLocation?j.getDefaultLibLocation():jt.getDirectoryPath(E()),N=jt.createDiagnosticCollection(),J=j.getCurrentDirectory(),z=jt.getSupportedExtensions(w),U=jt.getSuppoertedExtensionsWithJsonIfResolveJsonModule(w,z),V=new jt.Map,K=j.hasInvalidatedResolution||jt.returnFalse;x=j.resolveModuleNames?function(e,t,r,n){return j.resolveModuleNames(jt.Debug.checkEachDefined(e),t,r,n,w).map(function(e){if(!e||void 0!==e.extension)return e;var t=jt.clone(e);return t.extension=jt.extensionFromPath(e.resolvedFileName),t})}:(v=jt.createModuleResolutionCache(J,function(e){return j.getCanonicalFileName(e)},w),b=function(e,t,r){return jt.resolveModuleName(e,t,w,j,v,r).resolvedModule},function(e,t,r,n){return Vt(jt.Debug.checkEachDefined(e),t,n,b)}),S=j.resolveTypeReferenceDirectives?function(e,t,r){return j.resolveTypeReferenceDirectives(jt.Debug.checkEachDefined(e),t,r,w)}:(D=function(e,t,r){return jt.resolveTypeReferenceDirective(e,t,w,j,r).resolvedTypeReferenceDirective},function(e,t,r){return Vt(jt.Debug.checkEachDefined(e),t,r,D)});var q,W,H,G,X,Q=new jt.Map,Y=new jt.Map,Z=jt.createMultiMap(),$=new jt.Map,ee=j.useCaseSensitiveFileNames()?new jt.Map:void 0,te=!(null===(i=j.useSourceOfProjectReferenceRedirect)||void 0===i||!i.call(j)||w.disableSourceOfProjectReferenceRedirect),r=(e=function(u){var n,e,r=u.compilerHost.fileExists,t=u.compilerHost.directoryExists,i=u.compilerHost.getDirectories,a=u.compilerHost.realpath;if(!u.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:jt.noop,fileExists:o};u.compilerHost.fileExists=o,t&&(e=u.compilerHost.directoryExists=function(e){return t.call(u.compilerHost,e)?(function(e){if(u.getResolvedProjectReferences()&&a&&jt.stringContains(e,jt.nodeModulesPathPart)){var t=u.getSymlinkCache(),r=jt.ensureTrailingDirectorySeparator(u.toPath(e));if(null===(i=t.getSymlinkedDirectories())||void 0===i||!i.has(r)){var n,i=jt.normalizePath(a.call(u.compilerHost,e));if(i===e||(n=jt.ensureTrailingDirectorySeparator(u.toPath(i)))===r)return t.setSymlinkedDirectory(r,!1);t.setSymlinkedDirectory(r,{real:jt.ensureTrailingDirectorySeparator(i),realPath:n})}}}(e),!0):!!u.getResolvedProjectReferences()&&(n||(n=new jt.Set,u.forEachResolvedProjectReference(function(e){var t=jt.outFile(e.commandLine.options);t?n.add(jt.getDirectoryPath(u.toPath(t))):(e=e.commandLine.options.declarationDir||e.commandLine.options.outDir)&&n.add(u.toPath(e))})),s(e,!1))});i&&(u.compilerHost.getDirectories=function(e){return!u.getResolvedProjectReferences()||t&&t.call(u.compilerHost,e)?i.call(u.compilerHost,e):[]});a&&(u.compilerHost.realpath=function(e){var t;return(null===(t=u.getSymlinkCache().getSymlinkedFiles())||void 0===t?void 0:t.get(u.toPath(e)))||a.call(u.compilerHost,e)});return{onProgramCreateComplete:function(){u.compilerHost.fileExists=r,u.compilerHost.directoryExists=t,u.compilerHost.getDirectories=i},fileExists:o,directoryExists:e};function o(e){return!!r.call(u.compilerHost,e)||!!u.getResolvedProjectReferences()&&(!!jt.isDeclarationFileName(e)&&s(e,!0))}function s(i,a){var e,o=a?function(e){return e=e,void 0!==(e=u.getSourceOfProjectReferenceRedirect(e))?!jt.isString(e)||r.call(u.compilerHost,e):void 0}:function(e){return e=e,t=u.toPath(e),r=""+t+jt.directorySeparator,jt.forEachKey(n,function(e){return t===e||jt.startsWith(e,r)||jt.startsWith(t,e+"/")});var t,r},t=o(i);if(void 0!==t)return t;var s=u.getSymlinkCache(),t=s.getSymlinkedDirectories();if(!t)return!1;var c=u.toPath(i);return!!jt.stringContains(c,jt.nodeModulesPathPart)&&(!(!a||null===(e=s.getSymlinkedFiles())||void 0===e||!e.has(c))||(jt.firstDefinedIterator(t.entries(),function(e){var t=e[0],r=e[1];if(r&&jt.startsWith(c,t)){var n=o(c.replace(t,r.realPath));return a&&n&&(e=jt.getNormalizedAbsolutePath(i,u.compilerHost.getCurrentDirectory()),s.setSymlinkedFile(c,""+r.real+e.replace(new RegExp(t,"i"),""))),n}})||!1))}}({compilerHost:j,getSymlinkCache:Bt,useSourceOfProjectReferenceRedirect:te,toPath:ke,getResolvedProjectReferences:Pe,getSourceOfProjectReferenceRedirect:pt,forEachResolvedProjectReference:dt})).onProgramCreateComplete,i=e.fileExists,e=e.directoryExists;jt.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!O});var re,ne=function(e,t){if(!e)return!1;var r=e.getCompilerOptions();return!!jt.sourceFileAffectingCompilerOptions.some(function(e){return!jt.isJsonEqual(jt.getCompilerOptionValue(r,e),jt.getCompilerOptionValue(t,e))})}(O,w);if(jt.tracing.pop(),jt.tracing.push("program","tryReuseStructureFromOldProgram",{}),re=function(){if(!O)return 0;var e=O.getCompilerOptions();if(jt.changesAffectModuleResolution(e,w))return 0;var t=O.getRootFileNames();if(!jt.arrayIsEqualTo(t,P))return 0;if(!jt.arrayIsEqualTo(w.types,e.types))return 0;if(Kt(O.getProjectReferences(),O.getResolvedProjectReferences(),function(e,t,r){r=Tt((t?t.commandLine.projectReferences:I)[r]);return e?!r||r.sourceFile!==e.sourceFile:void 0!==r},function(e,t){t=t?gt(t.sourceFile.path).commandLine.projectReferences:I;return!jt.arrayIsEqualTo(e,t,jt.projectReferenceIsEqualTo)}))return 0;I&&(W=I.map(Tt));var r=[],n=[];if(re=2,O.getMissingFilePaths().some(function(e){return j.fileExists(e)}))return 0;var e=O.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}({});for(var i=new jt.Map,a=0,o=e;a<o.length;a++){var s=o[a];if(!(C=j.getSourceFileByPath?j.getSourceFileByPath(s.fileName,s.resolvedPath,w.target,void 0,ne):j.getSourceFile(s.fileName,w.target,void 0,ne)))return 0;jt.Debug.assert(!C.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var c=void 0;if(s.redirectInfo){if(C!==s.redirectInfo.unredirected)return 0;c=!1,C=s}else if(O.redirectTargetsMap.has(s.path)){if(C!==s)return 0;c=!1}else c=C!==s;C.path=s.path,C.originalFileName=s.originalFileName,C.resolvedPath=s.resolvedPath,C.fileName=s.fileName;var u=O.sourceFileToPackageName.get(s.path);if(void 0!==u){var l=i.get(u),_=c?1:0;if(void 0!==l&&1==_||1===l)return 0;i.set(u,_)}if(c){if(!jt.arrayIsEqualTo(s.libReferenceDirectives,C.libReferenceDirectives,Ze))return 0;s.hasNoDefaultLib!==C.hasNoDefaultLib&&(re=1),jt.arrayIsEqualTo(s.referencedFiles,C.referencedFiles,Ze)||(re=1),tt(C),jt.arrayIsEqualTo(s.imports,C.imports,$e)||(re=1),jt.arrayIsEqualTo(s.moduleAugmentations,C.moduleAugmentations,$e)||(re=1),(3145728&s.flags)!=(3145728&C.flags)&&(re=1),jt.arrayIsEqualTo(s.typeReferenceDirectives,C.typeReferenceDirectives,Ze)||(re=1),n.push({oldFile:s,newFile:C})}else K(s.path)&&(re=1,n.push({oldFile:s,newFile:C}));r.push(C)}if(2!==re)return re;for(var d=n.map(function(e){return e.oldFile}),p=0,f=e;p<f.length;p++){var g=f[p];if(!jt.contains(d,g))for(var m=0,y=g.ambientModuleNames;m<y.length;m++){var h=y[m];M.set(h,g.fileName)}}for(var v=0,b=n;v<b.length;v++){var x=b[v],s=x.oldFile,D=Yt(C=x.newFile),x=Ae(D,C);jt.hasChangesInResolutions(D,x,s.resolvedModules,jt.moduleResolutionIsEqualTo)?(re=1,C.resolvedModules=jt.zipToMap(D,x)):C.resolvedModules=s.resolvedModules;D=jt.map(C.typeReferenceDirectives,function(e){return jt.toFileNameLowerCase(e.fileName)}),x=Se(D,C);jt.hasChangesInResolutions(D,x,s.resolvedTypeReferenceDirectiveNames,jt.typeDirectiveIsEqualTo)?(re=1,C.resolvedTypeReferenceDirectiveNames=jt.zipToMap(D,x)):C.resolvedTypeReferenceDirectiveNames=s.resolvedTypeReferenceDirectiveNames}if(2!==re)return re;if(null!==(e=j.hasChangedAutomaticTypeDirectiveNames)&&void 0!==e&&e.call(j))return 1;q=O.getMissingFilePaths(),F=O.getRefFileMap(),jt.Debug.assert(r.length===O.getSourceFiles().length);for(var S=0,T=r;S<T.length;S++){var C=T[S];$.set(C.path,C)}O.getFilesByNameMap().forEach(function(e,t){e?e.path!==t?$.set(t,$.get(e.path)):O.isSourceFileFromExternalLibrary(e)&&B.set(e.path,!0):$.set(t,e)}),A=r,R=O.getFileProcessingDiagnostics();for(var E=0,k=n;E<k.length;E++){var N=k[E];R.reattachFileDiagnostics(N.newFile)}return L=O.getResolvedTypeReferenceDirectives(),Y=O.sourceFileToPackageName,Z=O.redirectTargetsMap,2}(),jt.tracing.pop(),2!==re){if(f=[],g=[],I&&(W=W||I.map(Tt),P.length))for(var ie=0,ae=W;ie<ae.length;ie++){var oe=ae[ie];if(oe){var se=jt.outFile(oe.commandLine.options);if(te){if(se||jt.getEmitModuleKind(oe.commandLine.options)===jt.ModuleKind.None)for(var ce=0,ue=oe.commandLine.fileNames;ce<ue.length;ce++)nt(de=ue[ce],!1,!1,void 0)}else if(se)nt(jt.changeExtension(se,".d.ts"),!1,!1,void 0);else if(jt.getEmitModuleKind(oe.commandLine.options)===jt.ModuleKind.None)for(var le=0,_e=oe.commandLine.fileNames;le<_e.length;le++){var de=_e[le];jt.fileExtensionIs(de,".d.ts")||jt.fileExtensionIs(de,".json")||nt(jt.getOutputDeclarationFileName(de,oe.commandLine,!j.useCaseSensitiveFileNames()),!1,!1,void 0)}}}jt.tracing.push("program","processRootFiles",{count:P.length}),jt.forEach(P,function(e){return Ye(e,!1,!1)}),jt.tracing.pop();var pe=P.length?jt.getAutomaticTypeDirectiveNames(w,j):jt.emptyArray;if(pe.length){jt.tracing.push("program","processTypeReferences",{count:pe.length});for(var fe=w.configFilePath?jt.getDirectoryPath(w.configFilePath):j.getCurrentDirectory(),ge=Se(pe,jt.combinePaths(fe,jt.inferredTypesContainingFile)),me=0;me<pe.length;me++)ht(pe[me],ge[me]);jt.tracing.pop()}P.length&&!C&&(fe=E(),!w.lib&&fe?Ye(fe,!0,!1):jt.forEach(w.lib,function(e){Ye(jt.combinePaths(k,e),!0,!1)})),q=jt.arrayFrom(jt.mapDefinedIterator($.entries(),function(e){var t=e[0];return void 0===e[1]?t:void 0})),A=jt.stableSort(f,function(e,t){return jt.compareValues(Ee(e),Ee(t))}).concat(g),g=f=void 0}if(jt.Debug.assert(!!q),O&&j.onReleaseOldSourceFile){for(var ye=0,he=O.getSourceFiles();ye<he.length;ye++){var ve=he[ye],be=Be(ve.resolvedPath);(ne||!be||ve.resolvedPath===ve.path&&be.resolvedPath!==ve.path)&&j.onReleaseOldSourceFile(ve,O.getCompilerOptions(),!!Be(ve.path))}O.forEachResolvedProjectReference(function(e){gt(e.sourceFile.path)||j.onReleaseOldSourceFile(e.sourceFile,O.getCompilerOptions(),!1)})}O=void 0;var xe={getRootFileNames:function(){return P},getSourceFile:Re,getSourceFileByPath:Be,getSourceFiles:function(){return A},getMissingFilePaths:function(){return q},getRefFileMap:function(){return F},getFilesByNameMap:function(){return $},getCompilerOptions:function(){return w},getSyntacticDiagnostics:function(e,t){return je(e,ze,t)},getOptionsDiagnostics:function(){return jt.sortAndDeduplicateDiagnostics(jt.concatenate(R.getGlobalDiagnostics(),jt.concatenate(N.getGlobalDiagnostics(),function(){if(!w.configFile)return jt.emptyArray;var t=N.getDiagnostics(w.configFile.fileName);return dt(function(e){t=jt.concatenate(t,N.getDiagnostics(e.sourceFile.fileName))}),t}())))},getGlobalDiagnostics:function(){return P.length?jt.sortAndDeduplicateDiagnostics(Oe().getGlobalDiagnostics().slice()):jt.emptyArray},getSemanticDiagnostics:function(e,t){return je(e,Ve,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null===(t=_.perFile)||void 0===t?void 0:t.get(e.path):_.allDiagnostics},getSuggestionDiagnostics:function(e,t){return Ue(function(){return Oe().getSuggestionDiagnostics(e,t)})},getDeclarationDiagnostics:function(e,t){var r=xe.getCompilerOptions();return!e||jt.outFile(r)?He(e,t):je(e,Qe,t)},getBindAndCheckDiagnostics:Ke,getProgramDiagnostics:Je,getTypeChecker:Me,getClassifiableNames:function(){if(!u){Me(),u=new jt.Set;for(var e=0,t=A;e<t.length;e++){var r=t[e];null!==(r=r.classifiableNames)&&void 0!==r&&r.forEach(function(e){return u.add(e)})}}return u},getDiagnosticsProducingTypeChecker:Oe,getCommonSourceDirectory:Ne,emit:function(e,t,r,n,i,a){var o=["emit","emit",{path:null==e?void 0:e.path}];jt.tracing.begin.apply(jt.tracing,o);var s=Ue(function(){return function(e,t,r,n,i,a,o){if(!o){e=qt(e,t,r,n);if(e)return e}n=Oe().getEmitResolver(jt.outFile(w)?void 0:t,n);jt.performance.mark("beforeEmit");o=jt.emitFiles(n,Fe(r),t,jt.getTransformers(w,a,i),i,!1,o);return jt.performance.mark("afterEmit"),jt.performance.measure("Emit","beforeEmit","afterEmit"),o}(xe,e,t,r,n,i,a)});return jt.tracing.end.apply(jt.tracing,o),s},getCurrentDirectory:function(){return J},getNodeCount:function(){return Oe().getNodeCount()},getIdentifierCount:function(){return Oe().getIdentifierCount()},getSymbolCount:function(){return Oe().getSymbolCount()},getTypeCatalog:function(){return Oe().getTypeCatalog()},getTypeCount:function(){return Oe().getTypeCount()},getInstantiationCount:function(){return Oe().getInstantiationCount()},getRelationCacheSizes:function(){return Oe().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return L},isSourceFileFromExternalLibrary:Ie,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!w.noLib)return!1;var r=j.useCaseSensitiveFileNames()?jt.equateStringsCaseSensitive:jt.equateStringsCaseInsensitive;return w.lib?jt.some(w.lib,function(e){return r(t.fileName,jt.combinePaths(k,e))}):r(t.fileName,E())},dropDiagnosticsProducingTypeChecker:function(){s=void 0},getSourceFileFromReference:function(e,t){return rt(Jt(t.fileName,e.fileName),function(e){return $.get(ke(e))||void 0})},getLibFileFromReference:function(e){e=jt.toFileNameLowerCase(e.fileName),e=jt.libMap.get(e);if(e)return Re(jt.combinePaths(k,e))},sourceFileToPackageName:Y,redirectTargetsMap:Z,isEmittedFile:function(e){if(w.noEmit)return!1;var t=ke(e);if(Be(t))return!1;e=jt.outFile(w);if(e)return Rt(t,e)||Rt(t,jt.removeFileExtension(e)+".d.ts");if(w.declarationDir&&jt.containsPath(w.declarationDir,t,J,!j.useCaseSensitiveFileNames()))return!0;if(w.outDir)return jt.containsPath(w.outDir,t,J,!j.useCaseSensitiveFileNames());if(jt.fileExtensionIsOneOf(t,jt.supportedJSExtensions)||jt.fileExtensionIs(t,".d.ts")){t=jt.removeFileExtension(t);return!!Be(t+".ts")||!!Be(t+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return l||jt.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){return v&&jt.resolveModuleNameFromCache(e,t,v)},getProjectReferences:function(){return I},getResolvedProjectReferences:Pe,getProjectReferenceRedirect:ct,getResolvedProjectReferenceToRedirect:_t,getResolvedProjectReferenceByPath:gt,forEachResolvedProjectReference:dt,isSourceOfProjectReferenceRedirect:ft,emitBuildInfo:function(e){jt.Debug.assert(!jt.outFile(w));var t=["emit","emitBuildInfo"];jt.tracing.begin.apply(jt.tracing,t),jt.performance.mark("beforeEmit");e=jt.emitFiles(jt.notImplementedResolver,Fe(e),void 0,jt.noTransformers,!1,!0);return jt.performance.mark("afterEmit"),jt.performance.measure("Emit","beforeEmit","afterEmit"),jt.tracing.end.apply(jt.tracing,t),e},fileExists:i,directoryExists:e,getSymlinkCache:Bt,realpath:null===(e=j.realpath)||void 0===e?void 0:e.bind(j),useCaseSensitiveFileNames:function(){return j.useCaseSensitiveFileNames()},structureIsReused:re};return r(),function(){w.strictPropertyInitialization&&!jt.getStrictOptionValue(w,"strictNullChecks")&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),w.isolatedModules&&(w.out&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),w.outFile&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),w.inlineSourceMap&&(w.sourceMap&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),w.mapRoot&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),w.composite&&(!1===w.declaration&&Ft(jt.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===w.incremental&&Ft(jt.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var e=jt.outFile(w);if(w.tsBuildInfoFile?jt.isIncrementalCompilation(w)||Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!w.incremental||e||w.configFilePath||N.add(jt.createCompilerDiagnostic(jt.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),function(){var o=w.suppressOutputPathCheck?void 0:jt.getTsBuildInfoEmitOutputFilePath(w);Kt(I,W,function(e,t,r){var n,i=(t?t.commandLine.projectReferences:I)[r],a=t&&t.sourceFile;e?((n=e.commandLine.options).composite&&!n.noEmit||(t?t.commandLine.fileNames:P).length&&(n.composite||wt(a,r,jt.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),n.noEmit&&wt(a,r,jt.Diagnostics.Referenced_project_0_may_not_disable_emit,i.path)),i.prepend&&((e=jt.outFile(n))?j.fileExists(e)||wt(a,r,jt.Diagnostics.Output_file_0_from_project_1_does_not_exist,e,i.path):wt(a,r,jt.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)),!t&&o&&o===jt.getTsBuildInfoEmitOutputFilePath(n)&&(wt(a,r,jt.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,o,i.path),V.set(ke(o),!0))):wt(a,r,jt.Diagnostics.File_0_not_found,i.path)})}(),w.composite)for(var t=new jt.Set(P.map(ke)),r=0,n=A;r<n.length;r++){var i=n[r];jt.sourceFileMayBeEmitted(i,xe)&&!t.has(i.path)&&Et(i,t,jt.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,i.fileName,w.configFilePath||"")}if(w.paths)for(var a in w.paths)if(jt.hasProperty(w.paths,a))if(jt.hasZeroOrOneAsteriskCharacter(a)||Nt(!0,a,jt.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a),jt.isArray(w.paths[a])){var o=w.paths[a].length;0===o&&Nt(!1,a,jt.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(var s=0;s<o;s++){var c=w.paths[a][s],u=typeof c;"string"==u?(jt.hasZeroOrOneAsteriskCharacter(c)||kt(a,s,jt.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,c,a),w.baseUrl||jt.pathIsRelative(c)||jt.pathIsAbsolute(c)||kt(a,s,jt.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):kt(a,s,jt.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,c,a,u)}}else Nt(!1,a,jt.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,a);w.sourceMap||w.inlineSourceMap||(w.inlineSources&&Ft(jt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),w.sourceRoot&&Ft(jt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),w.out&&w.outFile&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!w.mapRoot||w.sourceMap||w.declarationMap||Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),w.declarationDir&&(jt.getEmitDeclarations(w)||Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",w.out?"out":"outFile")),w.declarationMap&&!jt.getEmitDeclarations(w)&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),w.lib&&w.noLib&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),w.noImplicitUseStrict&&jt.getStrictOptionValue(w,"alwaysStrict")&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var l,_,d,p=w.target||0,f=jt.find(A,function(e){return jt.isExternalModule(e)&&!e.isDeclarationFile});function g(e,t){var r,n;e&&(n=ke(e),$.has(n)&&(r=void 0,w.configFilePath||(r=jt.chainDiagnosticMessages(void 0,jt.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=jt.chainDiagnosticMessages(r,jt.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Lt(e,jt.createCompilerDiagnosticFromMessageChain(r))),n=j.useCaseSensitiveFileNames()?n:jt.toFileNameLowerCase(n),t.has(n)?Lt(e,jt.createCompilerDiagnostic(jt.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(n))}w.isolatedModules?(w.module===jt.ModuleKind.None&&p<2&&Ft(jt.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),(l=jt.find(A,function(e){return!jt.isExternalModule(e)&&!jt.isSourceFileJS(e)&&!e.isDeclarationFile&&6!==e.scriptKind}))&&(_=jt.getErrorSpanForNode(l,l),N.add(jt.createFileDiagnostic(l,_.start,_.length,jt.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,jt.getBaseFileName(l.fileName))))):f&&p<2&&w.module===jt.ModuleKind.None&&(_=jt.getErrorSpanForNode(f,f.externalModuleIndicator),N.add(jt.createFileDiagnostic(f,_.start,_.length,jt.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))),e&&!w.emitDeclarationOnly&&(w.module&&w.module!==jt.ModuleKind.AMD&&w.module!==jt.ModuleKind.System?Ft(jt.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,w.out?"out":"outFile","module"):void 0===w.module&&f&&(_=jt.getErrorSpanForNode(f,f.externalModuleIndicator),N.add(jt.createFileDiagnostic(f,_.start,_.length,jt.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,w.out?"out":"outFile")))),w.resolveJsonModule&&(jt.getEmitModuleResolutionKind(w)!==jt.ModuleResolutionKind.NodeJs?Ft(jt.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):jt.hasJsonModuleEmitEnabled(w)||Ft(jt.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),(w.outDir||w.sourceRoot||w.mapRoot)&&(_=Ne(),w.outDir&&""===_&&A.some(function(e){return 1<jt.getRootLength(e.fileName)})&&Ft(jt.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")),w.useDefineForClassFields&&0===p&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),w.checkJs&&!jt.getAllowJSCompilerOption(w)&&N.add(jt.createCompilerDiagnostic(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),w.emitDeclarationOnly&&(jt.getEmitDeclarations(w)||Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),w.noEmit&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),w.emitDecoratorMetadata&&!w.experimentalDecorators&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),w.jsxFactory?(w.reactNamespace&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==w.jsx&&5!==w.jsx||Ft(jt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",jt.inverseJsxOptionMap.get(""+w.jsx)),jt.parseIsolatedEntityName(w.jsxFactory,p)||Pt("jsxFactory",jt.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,w.jsxFactory)):w.reactNamespace&&!jt.isIdentifierText(w.reactNamespace,p)&&Pt("reactNamespace",jt.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,w.reactNamespace),w.jsxFragmentFactory&&(w.jsxFactory||Ft(jt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==w.jsx&&5!==w.jsx||Ft(jt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",jt.inverseJsxOptionMap.get(""+w.jsx)),jt.parseIsolatedEntityName(w.jsxFragmentFactory,p)||Pt("jsxFragmentFactory",jt.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,w.jsxFragmentFactory)),w.reactNamespace&&(4!==w.jsx&&5!==w.jsx||Ft(jt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",jt.inverseJsxOptionMap.get(""+w.jsx))),w.jsxImportSource&&2===w.jsx&&Ft(jt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",jt.inverseJsxOptionMap.get(""+w.jsx)),w.noEmit||w.suppressOutputPathCheck||(p=Fe(),d=new jt.Set,jt.forEachEmittedFile(p,function(e){w.emitDeclarationOnly||g(e.jsFilePath,d),g(e.declarationFilePath,d)}))}(),jt.performance.mark("afterProgram"),jt.performance.measure("Program","beforeProgram","afterProgram"),jt.tracing.end.apply(jt.tracing,n),xe;function De(e,t,r){if(!e.length)return jt.emptyArray;var n=jt.getNormalizedAbsolutePath(t.originalFileName,J),t=Te(t);jt.tracing.push("program","resolveModuleNamesWorker",{containingFileName:n}),jt.performance.mark("beforeResolveModule");t=x(e,n,r,t);return jt.performance.mark("afterResolveModule"),jt.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),jt.tracing.pop(),t}function Se(e,t){if(!e.length)return[];var r=jt.isString(t)?t:jt.getNormalizedAbsolutePath(t.originalFileName,J),t=jt.isString(t)?void 0:Te(t);jt.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:r}),jt.performance.mark("beforeResolveTypeReference");t=S(e,r,t);return jt.performance.mark("afterResolveTypeReference"),jt.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),jt.tracing.pop(),t}function Te(e){var t=_t(e.originalFileName);if(t||!jt.fileExtensionIs(e.originalFileName,".d.ts"))return t;var r=Ce(e.originalFileName,e.path);if(r)return r;if(j.realpath&&w.preserveSymlinks&&jt.stringContains(e.originalFileName,jt.nodeModulesPathPart)){t=j.realpath(e.originalFileName),r=ke(t);return r===e.path?void 0:Ce(t,r)}}function Ce(e,r){e=pt(e);return jt.isString(e)?_t(e):e?dt(function(e){var t=jt.outFile(e.commandLine.options);if(t)return ke(t)===r?e:void 0}):void 0}function Ee(e){if(jt.containsPath(k,e.fileName,!1)){e=jt.getBaseFileName(e.fileName);if("lib.d.ts"===e||"lib.es6.d.ts"===e)return 0;e=jt.removeSuffix(jt.removePrefix(e,"lib."),".d.ts"),e=jt.libs.indexOf(e);if(-1!==e)return e+1}return jt.libs.length+2}function ke(e){return jt.toPath(e,J,xt)}function Ne(){var e;return void 0===o&&(e=jt.filter(A,function(e){return jt.sourceFileMayBeEmitted(e,xe)}),w.rootDir&&St(e,w.rootDir)?o=jt.getNormalizedAbsolutePath(w.rootDir,J):w.composite&&w.configFilePath?St(e,o=jt.getDirectoryPath(jt.normalizeSlashes(w.configFilePath))):(e=e,o=zt(jt.mapDefined(e,function(e){return e.isDeclarationFile?void 0:e.fileName}),J,xt)),o&&o[o.length-1]!==jt.directorySeparator&&(o+=jt.directorySeparator)),o}function Ae(e,t){if(0===re&&!t.ambientModuleNames.length)return De(e,t,void 0);var r,n,i,a=O&&O.getSourceFile(t.fileName);if(a!==t&&t.resolvedModules){for(var o=[],s=0,c=e;s<c.length;s++){var u=c[s],l=t.resolvedModules.get(u);o.push(l)}return o}for(var _={},d=0;d<e.length;d++){u=e[d];if(t===a&&!K(a.path)){var p=jt.getResolvedModule(a,u);if(p){jt.isTraceEnabled(w,j)&&jt.trace(j,jt.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,u,jt.getNormalizedAbsolutePath(t.originalFileName,J)),(n=n||new Array(e.length))[d]=p,(i=i||[]).push(u);continue}}p=!1;jt.contains(t.ambientModuleNames,u)?(p=!0,jt.isTraceEnabled(w,j)&&jt.trace(j,jt.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,jt.getNormalizedAbsolutePath(t.originalFileName,J))):p=function(e){var t=jt.getResolvedModule(a,e),r=t&&O.getSourceFile(t.resolvedFileName);if(t&&r)return!1;r=M.get(e);if(!r)return!1;jt.isTraceEnabled(w,j)&&jt.trace(j,jt.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,r);return!0}(u),p?(n=n||new Array(e.length))[d]=_:(r=r||[]).push(u)}var f=r&&r.length?De(r,t,i):jt.emptyArray;if(!n)return jt.Debug.assert(f.length===e.length),f;for(var g=0,d=0;d<n.length;d++)n[d]?n[d]===_&&(n[d]=void 0):(n[d]=f[g],g++);return jt.Debug.assert(g===f.length),n}function Fe(e){return{getPrependNodes:we,getCanonicalFileName:xt,getCommonSourceDirectory:xe.getCommonSourceDirectory,getCompilerOptions:xe.getCompilerOptions,getCurrentDirectory:function(){return J},getNewLine:function(){return j.getNewLine()},getSourceFile:xe.getSourceFile,getSourceFileByPath:xe.getSourceFileByPath,getSourceFiles:xe.getSourceFiles,getLibFileFromReference:xe.getLibFileFromReference,isSourceFileFromExternalLibrary:Ie,getResolvedProjectReferenceToRedirect:_t,getProjectReferenceRedirect:ct,isSourceOfProjectReferenceRedirect:ft,getSymlinkCache:Bt,writeFile:e||function(e,t,r,n,i){return j.writeFile(e,t,r,n,i)},isEmitBlocked:Le,readFile:function(e){return j.readFile(e)},fileExists:function(e){var t=ke(e);return!!Be(t)||!jt.contains(q,t)&&j.fileExists(e)},useCaseSensitiveFileNames:function(){return j.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return xe.getProgramBuildInfo&&xe.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return xe.getSourceFileFromReference(e,t)},redirectTargetsMap:Z}}function Pe(){return W}function we(){return Gt(I,function(e,t){return null===(t=W[t])||void 0===t?void 0:t.commandLine},function(e){var t=ke(e),e=Be(t);return e?e.text:$.has(t)?void 0:j.readFile(t)})}function Ie(e){return!!B.get(e.path)}function Oe(){return s=s||jt.createTypeChecker(xe,!0)}function Me(){return c=c||jt.createTypeChecker(xe,!1)}function Le(e){return V.has(ke(e))}function Re(e){return Be(ke(e))}function Be(e){return $.get(e)||void 0}function je(e,t,r){return e?t(e,r):jt.sortAndDeduplicateDiagnostics(jt.flatMap(xe.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),t(e,r)}))}function Je(e){return jt.skipTypeChecking(e,w,xe)?jt.emptyArray:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=jt.flatten(r);return null!==(t=e.commentDirectives)&&void 0!==t&&t.length?We(e,e.commentDirectives,i).diagnostics:i}(e,R.getDiagnostics(e.fileName),N.getDiagnostics(e.fileName))}function ze(e){return jt.isSourceFileJS(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(c=e,Ue(function(){var a=[];return e(c,c),jt.forEachChildRecursively(c,e,function(e,t){t.decorators!==e||w.experimentalDecorators||a.push(s(t,jt.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning));switch(t.kind){case 252:case 221:case 165:case 166:case 167:case 168:case 208:case 251:case 209:if(e===t.typeParameters)return a.push(o(e,jt.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 232:if(e===t.modifiers)return function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];switch(i.kind){case 84:if(t)continue;case 122:case 120:case 121:case 142:case 133:case 125:a.push(s(i,jt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,jt.tokenToString(i.kind)))}}}(t.modifiers,232===t.kind),"skip";break;case 163:if(e!==t.modifiers)break;for(var r=0,n=e;r<n.length;r++){var i=n[r];123!==i.kind&&a.push(s(i,jt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,jt.tokenToString(i.kind)))}return"skip";case 160:if(e===t.modifiers)return a.push(o(e,jt.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 203:case 204:case 223:case 274:case 275:case 205:if(e===t.typeArguments)return a.push(o(e,jt.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}),a;function e(e,t){switch(t.kind){case 160:case 163:case 165:if(t.questionToken===e)return a.push(s(e,jt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 164:case 166:case 167:case 168:case 208:case 251:case 209:case 249:if(t.type===e)return a.push(s(e,jt.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 262:if(e.isTypeOnly)return a.push(s(t,jt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 267:if(e.isTypeOnly)return a.push(s(e,jt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 260:return a.push(s(e,jt.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 266:if(e.isExportEquals)return a.push(s(e,jt.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 286:if(116===e.token)return a.push(s(e,jt.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 253:var r=jt.tokenToString(117);return jt.Debug.assertIsDefined(r),a.push(s(e,jt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 256:var n=16&e.flags?jt.tokenToString(140):jt.tokenToString(139);return jt.Debug.assertIsDefined(n),a.push(s(e,jt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,n)),"skip";case 254:return a.push(s(e,jt.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 255:n=jt.Debug.checkDefined(jt.tokenToString(91));return a.push(s(e,jt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,n)),"skip";case 225:return a.push(s(e,jt.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 224:return a.push(s(e.type,jt.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 206:jt.Debug.fail()}}function o(e,t,r,n,i){var a=e.pos;return jt.createFileDiagnostic(c,a,e.end-a,t,r,n,i)}function s(e,t,r,n,i){return jt.createDiagnosticForNodeInSourceFile(c,e,t,r,n,i)}}))),jt.concatenate(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics;var c}function Ue(e){try{return e()}catch(e){throw e instanceof jt.OperationCanceledException&&(s=c=void 0),e}}function Ve(e,t){return jt.concatenate(Wt(Ke(e,t),w),Je(e))}function Ke(e,t){return Xe(e,t,_,qe)}function qe(i,a){return Ue(function(){if(jt.skipTypeChecking(i,w,xe))return jt.emptyArray;var e=Oe();jt.Debug.assert(!!i.bindDiagnostics);var t=jt.isCheckJsEnabledForFile(i,w),r=!(!!i.checkJsDirective&&!1===i.checkJsDirective.enabled)&&(3===i.scriptKind||4===i.scriptKind||5===i.scriptKind||t||7===i.scriptKind),n=r?i.bindDiagnostics:jt.emptyArray,e=r?e.getDiagnostics(i,a):jt.emptyArray;return function(e,t){for(var r,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=jt.flatten(n);if(!t||null===(r=e.commentDirectives)||void 0===r||!r.length)return a;for(var a=We(e,e.commentDirectives,a),o=a.diagnostics,a=a.directives,s=0,c=a.getUnusedExpectations();s<c.length;s++){var u=c[s];o.push(jt.createDiagnosticForRange(e,u.range,jt.Diagnostics.Unused_ts_expect_error_directive))}return o}(i,r,n,e,t?i.jsDocDiagnostics:void 0)})}function We(e,t,r){var n=jt.createCommentDirectivesMap(e,t);return{diagnostics:r.filter(function(e){return-1===function(e,t){var r=e.file,e=e.start;if(!r)return-1;var n=jt.getLineStarts(r),i=jt.computeLineAndCharacterOfPosition(n,e).line-1;for(;0<=i;){if(t.markUsed(i))return i;var a=r.text.slice(n[i],n[i+1]).trim();if(""!==a&&!/^(\s*)\/\/(.*)$/.test(a))return-1;i--}return-1}(e,n)}),directives:n}}function He(e,t){return Xe(e,t,d,Ge)}function Ge(t,r){return Ue(function(){var e=Oe().getEmitResolver(t,r);return jt.getDeclarationDiagnostics(Fe(jt.noop),e,t)||jt.emptyArray})}function Xe(e,t,r,n){var i=e?null===(i=r.perFile)||void 0===i?void 0:i.get(e.path):r.allDiagnostics;if(i)return i;t=n(e,t);return e?(r.perFile||(r.perFile=new jt.Map)).set(e.path,t):r.allDiagnostics=t,t}function Qe(e,t){return e.isDeclarationFile?[]:He(e,t)}function Ye(e,t,r){nt(jt.normalizePath(e),t,r,void 0)}function Ze(e,t){return e.fileName===t.fileName}function $e(e,t){return 78===e.kind?78===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function et(e,t){var r=jt.factory.createStringLiteral(e),e=jt.factory.createImportDeclaration(void 0,void 0,void 0,r);return jt.addEmitFlags(e,67108864),jt.setParent(r,e),jt.setParent(e,t),r.flags&=-9,e.flags&=-9,r}function tt(s){if(!s.imports){var c,u,l,e,a=jt.isSourceFileJS(s),_=jt.isExternalModule(s);!w.isolatedModules&&!_||s.isDeclarationFile||(w.importHelpers&&(c=[et(jt.externalHelpersModuleNameText,s)]),(e=jt.getJSXRuntimeImport(jt.getJSXImplicitImportBase(w,s),w))&&(c=c||[]).push(et(e,s)));for(var t=0,r=s.statements;t<r.length;t++)!function e(t,r){if(jt.isAnyImportOrReExport(t)){var n=jt.getExternalModuleName(t);!(n&&jt.isStringLiteral(n)&&n.text)||r&&jt.isExternalModuleNameRelative(n.text)||(c=jt.append(c,n))}else if(jt.isModuleDeclaration(t)&&jt.isAmbientModule(t)&&(r||jt.hasSyntacticModifier(t,2)||s.isDeclarationFile)){var n=jt.getTextOfIdentifierOrLiteral(t.name);if(_||r&&!jt.isExternalModuleNameRelative(n))(u=u||[]).push(t.name);else if(!r){s.isDeclarationFile&&(l=l||[]).push(n);var t=t.body;if(t)for(var i=0,a=t.statements;i<a.length;i++){var o=a[i];e(o,!0)}}}}(r[t],!1);(1048576&s.flags||a)&&function(e){for(var t=/import|require/g;null!==t.exec(e.text);){var r=function(e,t){function r(e){if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e}var n=e;for(;;){var i=a&&jt.hasJSDocNodes(n)&&jt.forEach(n.jsDoc,r)||jt.forEachChild(n,r);if(!i)return n;n=i}}(e,t.lastIndex);a&&jt.isRequireCall(r,!0)||jt.isImportCall(r)&&1===r.arguments.length&&jt.isStringLiteralLike(r.arguments[0])?c=jt.append(c,r.arguments[0]):jt.isLiteralImportTypeNode(r)&&(c=jt.append(c,r.argument.literal))}}(s),s.imports=c||jt.emptyArray,s.moduleAugmentations=u||jt.emptyArray,s.ambientModuleNames=l||jt.emptyArray}}function rt(t,r,e,n){if(jt.hasExtension(t)){var i=j.getCanonicalFileName(t);if(w.allowNonTsExtensions||jt.forEach(U,function(e){return jt.fileExtensionIs(i,e)})){var a=r(t);return e&&(a?n&&i===j.getCanonicalFileName(n.fileName)&&e(jt.Diagnostics.A_file_cannot_have_a_reference_to_itself):(n=ct(t))?e(jt.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,n,t):e(jt.Diagnostics.File_0_not_found,t)),a}e&&(jt.hasJSFileExtension(i)?e(jt.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):e(jt.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+z.join("', '")+"'"))}else{a=w.allowNonTsExtensions&&r(t);if(a)return a;if(!e||!w.allowNonTsExtensions){a=jt.forEach(z,function(e){return r(t+e)});return e&&!a&&e(jt.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+z.join("', '")+"'"),a}e(jt.Diagnostics.File_0_not_found,t)}}function nt(e,t,r,n,i){rt(e,function(e){return at(e,ke(e),t,r,i,n)},function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return R.add(bt.apply(void 0,__spreadArrays([i,e],t)))},i&&i.file)}function it(e,t,r){var n=r?void 0:F&&F.get(t.path),n=n&&jt.find(n,function(e){return e.referencedFileName===t.fileName});R.add(n?Ct(n,jt.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,t.fileName,e):bt(r,jt.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,t.fileName))}function at(e,t,r,n,i,a){jt.tracing.push("program","findSourceFile",{fileName:e,isDefaultLib:r||void 0,refKind:i?jt.RefFileKind[i.kind]:void 0});a=function(t,e,r,n,i,a){if(te){var o,s=pt(t);if(!s&&j.realpath&&w.preserveSymlinks&&jt.isDeclarationFileName(t)&&jt.stringContains(t,jt.nodeModulesPathPart)&&((o=j.realpath(t))!==t&&(s=pt(o))),s){var c=jt.isString(s)?at(s,ke(s),r,n,i,a):void 0;return c&&st(c,e,void 0),c}}var u,s=t;if($.has(e)){var l=$.get(e);return ot(t,l||void 0,i),l&&w.forceConsistentCasingInFileNames&&(ke(p=l.fileName)!==ke(t)&&(t=ct(t)||t),c=jt.getNormalizedAbsolutePathWithoutRoot(p,J),p=jt.getNormalizedAbsolutePathWithoutRoot(t,J),c!==p&&it(t,l,i)),l&&B.get(l.path)&&0===y?(B.set(l.path,!1),w.noResolve||(mt(l,r),yt(l)),w.noLib||vt(l),h.set(l.path,!1),Dt(l)):l&&h.get(l.path)&&y<m&&(h.set(l.path,!1),Dt(l)),l||void 0}if(i&&!te){var _=ut(t);if(_){if(jt.outFile(_.commandLine.options))return;var d=lt(_,t);u=ke(t=d)}}var p=j.getSourceFile(t,w.target,function(e){return R.add(bt(i,jt.Diagnostics.Cannot_read_file_0_Colon_1,t,e))},ne);if(a){l=jt.packageIdToString(a),_=Q.get(l);if(_){d=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},B.set(n,0<y),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(_,p,t,e,ke(t),s);return Z.add(_.path,t),st(d,e,u),Y.set(e,a.name),g.push(d),d}p&&(Q.set(l,p),Y.set(e,a.name))}st(p,e,u),p&&(B.set(e,0<y),p.fileName=t,p.path=e,p.resolvedPath=ke(t),p.originalFileName=s,ot(t,p,i),j.useCaseSensitiveFileNames()&&(s=jt.toFileNameLowerCase(e),(e=ee.get(s))?it(t,e,i):ee.set(s,p)),C=C||p.hasNoDefaultLib&&!n,w.noResolve||(mt(p,r),yt(p)),w.noLib||vt(p),Dt(p),(r?f:g).push(p));return p}(e,t,r,n,i,a);return jt.tracing.pop(),a}function ot(e,t,r){r&&t&&(F=F||jt.createMultiMap()).add(t.path,{referencedFileName:e,kind:r.kind,index:r.index,file:r.file.path})}function st(e,t,r){r?($.set(r,e),$.set(t,e||!1)):$.set(t,e)}function ct(e){var t=ut(e);return t&&lt(t,e)}function ut(e){if(W&&W.length&&!jt.fileExtensionIs(e,".d.ts")&&!jt.fileExtensionIs(e,".json"))return _t(e)}function lt(e,t){var r=jt.outFile(e.commandLine.options);return r?jt.changeExtension(r,".d.ts"):jt.getOutputDeclarationFileName(t,e.commandLine,!j.useCaseSensitiveFileNames())}function _t(e){void 0===G&&(G=new jt.Map,dt(function(t){ke(w.configFilePath)!==t.sourceFile.path&&t.commandLine.fileNames.forEach(function(e){return G.set(ke(e),t.sourceFile.path)})}));e=G.get(ke(e));return e&&gt(e)}function dt(e){return jt.forEachResolvedProjectReference(W,e)}function pt(e){if(jt.isDeclarationFileName(e))return void 0===X&&(X=new jt.Map,dt(function(r){var e=jt.outFile(r.commandLine.options);e?(e=jt.changeExtension(e,".d.ts"),X.set(ke(e),!0)):jt.forEach(r.commandLine.fileNames,function(e){var t;jt.fileExtensionIs(e,".d.ts")||jt.fileExtensionIs(e,".json")||(t=jt.getOutputDeclarationFileName(e,r.commandLine,j.useCaseSensitiveFileNames()),X.set(ke(t),e))})})),X.get(ke(e))}function ft(e){return te&&!!_t(e)}function gt(e){if(H)return H.get(e)||void 0}function mt(r,n){jt.forEach(r.referencedFiles,function(e,t){nt(Jt(e.fileName,r.fileName),n,!1,void 0,{kind:jt.RefFileKind.ReferenceFile,index:t,file:r,pos:e.pos,end:e.end})})}function yt(e){var t=jt.map(e.typeReferenceDirectives,function(e){return jt.toFileNameLowerCase(e.fileName)});if(t)for(var r=Se(t,e),n=0;n<t.length;n++){var i=e.typeReferenceDirectives[n],a=r[n],o=jt.toFileNameLowerCase(i.fileName);jt.setResolvedTypeReferenceDirective(e,o,a),ht(o,a,{kind:jt.RefFileKind.TypeReferenceDirective,index:n,file:e,pos:i.pos,end:i.end})}}function ht(e,t,r){var n,i,a,o;jt.tracing.push("program","processTypeReferenceDirective",{directive:e,hasResolved:!0,refKind:null==r?void 0:r.kind,refPath:null==r?void 0:r.file.path}),n=e,i=t,a=r,(e=L.get(n))&&e.primary||(t=!0,i?(i.isExternalLibraryImport&&y++,!i.primary&&e?(i.resolvedFileName!==e.resolvedFileName&&(r=j.readFile(i.resolvedFileName),o=Re(e.resolvedFileName),r!==o.text&&(r=(r=a?void 0:F&&F.get(o.path))&&jt.find(r,function(e){return e.referencedFileName===o.fileName}),R.add(r?Ct(r,jt.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,n,i.resolvedFileName,e.resolvedFileName):bt(a,jt.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,n,i.resolvedFileName,e.resolvedFileName)))),t=!1):nt(i.resolvedFileName,!1,!1,i.packageId,a),i.isExternalLibraryImport&&y--):R.add(bt(a,jt.Diagnostics.Cannot_find_type_definition_file_for_0,n)),t&&L.set(n,i)),jt.tracing.pop()}function vt(i){jt.forEach(i.libReferenceDirectives,function(e){var t,r=jt.toFileNameLowerCase(e.fileName),n=jt.libMap.get(r);n?Ye(jt.combinePaths(k,n),!0,!0):(t=jt.removeSuffix(jt.removePrefix(r,"lib."),".d.ts"),t=(n=jt.getSpellingSuggestion(t,jt.libs,jt.identity))?jt.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:jt.Diagnostics.Cannot_find_lib_definition_for_0,R.add(jt.createFileDiagnostic(i,e.pos,e.end-e.pos,t,r,n)))})}function bt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return e?jt.createFileDiagnostic.apply(void 0,__spreadArrays([e.file,e.pos,e.end-e.pos,t],r)):jt.createCompilerDiagnostic.apply(void 0,__spreadArrays([t],r))}function xt(e){return j.getCanonicalFileName(e)}function Dt(e){if(tt(e),e.imports.length||e.moduleAugmentations.length){var t=Yt(e),r=Ae(t,e);jt.Debug.assert(r.length===t.length);for(var n=0;n<t.length;n++){var i,a,o,s,c=r[n];jt.setResolvedModule(e,t[n],c),c&&(i=c.isExternalLibraryImport,s=!jt.resolutionExtensionIsTSOrJson(c.extension),o=i&&s,a=c.resolvedFileName,i&&y++,o=o&&m<y,s=a&&!Qt(w,c)&&!w.noResolve&&n<e.imports.length&&!o&&!(s&&!jt.getAllowJSCompilerOption(w))&&(jt.isInJSFile(e.imports[n])||!(4194304&e.imports[n].flags)),o?h.set(e.path,!0):s&&(o=ke(a),s=jt.skipTrivia(e.text,e.imports[n].pos),at(a,o,!1,!1,{kind:jt.RefFileKind.Import,index:n,file:e,pos:s,end:e.imports[n].end},c.packageId)),i&&y--)}}else e.resolvedModules=void 0}function St(e,t){for(var r,n=!0,i=j.getCanonicalFileName(jt.getNormalizedAbsolutePath(t,J)),a=0,o=e;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==j.getCanonicalFileName(jt.getNormalizedAbsolutePath(s.fileName,J)).indexOf(i)&&(Et(s,r=r||new jt.Set(P.map(ke)),jt.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,s.fileName,t),n=!1)}return n}function Tt(e){H=H||new jt.Map;var t,r=Xt(e),n=ke(r),e=H.get(n);if(void 0!==e)return e||void 0;if(j.getParsedCommandLine){if(!(t=j.getParsedCommandLine(r)))return st(void 0,n,void 0),void H.set(n,!1);i=jt.Debug.checkDefined(t.options.configFile),jt.Debug.assert(!i.path||i.path===n),st(i,n,void 0)}else{e=jt.getNormalizedAbsolutePath(jt.getDirectoryPath(r),j.getCurrentDirectory());if(st(i=j.getSourceFile(r,100),n,void 0),void 0===i)return void H.set(n,!1);t=jt.parseJsonSourceFileConfigFileContent(i,T,e,void 0,r)}i.fileName=r,i.path=n,i.resolvedPath=n,i.originalFileName=r;var i={commandLine:t,sourceFile:i};return H.set(n,i),t.projectReferences&&(i.references=t.projectReferences.map(Tt)),i}function Ct(e,t){for(var r,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a,o,s=jt.Debug.checkDefined(Be(e.file)),c=e.kind,u=e.index;switch(c){case jt.RefFileKind.Import:a=jt.skipTrivia(s.text,s.imports[u].pos),o=s.imports[u].end;break;case jt.RefFileKind.ReferenceFile:a=(r=s.referencedFiles[u]).pos,o=r.end;break;case jt.RefFileKind.TypeReferenceDirective:a=(r=s.typeReferenceDirectives[u]).pos,o=r.end;break;default:return jt.Debug.assertNever(c)}return jt.createFileDiagnostic.apply(void 0,__spreadArrays([s,a,o-a,t],n))}function Et(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];e=null==F?void 0:F.get(e.path),e=jt.forEach(e,function(e){return t.has(e.file)?e:void 0})||jt.elementAt(e,0);N.add(e?Ct.apply(void 0,__spreadArrays([e,r],n)):jt.createCompilerDiagnostic.apply(void 0,__spreadArrays([r],n)))}function kt(e,t,r,n,i,a){for(var o=!0,s=0,c=At();s<c.length;s++){var u=c[s];if(jt.isObjectLiteralExpression(u.initializer))for(var l=0,_=jt.getPropertyAssignment(u.initializer,e);l<_.length;l++){var d=_[l].initializer;jt.isArrayLiteralExpression(d)&&d.elements.length>t&&(N.add(jt.createDiagnosticForNodeInSourceFile(w.configFile,d.elements[t],r,n,i,a)),o=!1)}}o&&N.add(jt.createCompilerDiagnostic(r,n,i,a))}function Nt(e,t,r,n){for(var i=!0,a=0,o=At();a<o.length;a++){var s=o[a];jt.isObjectLiteralExpression(s.initializer)&&Mt(s.initializer,e,t,void 0,r,n)&&(i=!1)}i&&N.add(jt.createCompilerDiagnostic(r,n))}function At(){return function(e){var t=Ot();if(t)return jt.getPropertyAssignment(t,e)}("paths")||jt.emptyArray}function Ft(e,t,r,n){It(!0,t,r,e,t,r,n)}function Pt(e,t,r){It(!1,e,void 0,t,r)}function wt(e,t,r,n,i){var a=jt.firstDefined(jt.getTsConfigPropArray(e||w.configFile,"references"),function(e){return jt.isArrayLiteralExpression(e.initializer)?e.initializer:void 0});a&&a.elements.length>t?N.add(jt.createDiagnosticForNodeInSourceFile(e||w.configFile,a.elements[t],r,n,i)):N.add(jt.createCompilerDiagnostic(r,n,i))}function It(e,t,r,n,i,a,o){var s=Ot();s&&Mt(s,e,t,r,n,i,a,o)||N.add(jt.createCompilerDiagnostic(n,i,a,o))}function Ot(){if(void 0===p){p=null;var e=jt.getTsConfigObjectLiteralExpression(w.configFile);if(e)for(var t=0,r=jt.getPropertyAssignment(e,"compilerOptions");t<r.length;t++){var n=r[t];if(jt.isObjectLiteralExpression(n.initializer)){p=n.initializer;break}}}return p}function Mt(e,t,r,n,i,a,o,s){for(var n=jt.getPropertyAssignment(e,r,n),c=0,u=n;c<u.length;c++){var l=u[c];N.add(jt.createDiagnosticForNodeInSourceFile(w.configFile,t?l.name:l.initializer,i,a,o,s))}return n.length}function Lt(e,t){V.set(ke(e),!0),N.add(t)}function Rt(e,t){return 0===jt.comparePaths(e,t,J,!j.useCaseSensitiveFileNames())}function Bt(){return j.getSymlinkCache?j.getSymlinkCache():a=a||jt.discoverProbableSymlinks(A,xt,j.getCurrentDirectory())}},jt.emitSkippedWithNoDiagnostics={diagnostics:jt.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},jt.handleNoEmitOptions=qt,jt.filterSemanticDiagnotics=Wt,jt.parseConfigHostFromCompilerHostLike=Ht,jt.createPrependNodes=Gt,jt.resolveProjectReferencePath=Xt,jt.getResolutionDiagnostic=Qt}(ts=ts||{}),function(b){function d(e,t,r,n,i,a){var o=[],r=e.emit(t,function(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})},n,r,i,a),i=r.emitSkipped,a=r.diagnostics,r=r.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:i,diagnostics:a,exportedModulesFromDeclarationEmit:r}}var e;function x(e){if(e.declarations&&e.declarations[0]){e=b.getSourceFileOfNode(e.declarations[0]);return e&&e.resolvedPath}}function D(e,t,r,n){return b.toPath(e.getProjectReferenceRedirect(t)||t,r,n)}function f(t,i,r){var n;if(i.imports&&0<i.imports.length)for(var e=t.getTypeChecker(),a=0,o=i.imports;a<o.length;a++){var s=o[a],s=(s=s,(s=e.getSymbolAtLocation(s))&&x(s));s&&v(s)}var c=b.getDirectoryPath(i.resolvedPath);if(i.referencedFiles&&0<i.referencedFiles.length)for(var u=0,l=i.referencedFiles;u<l.length;u++){var _=l[u];v(D(t,_.fileName,c,r))}if(i.resolvedTypeReferenceDirectiveNames&&i.resolvedTypeReferenceDirectiveNames.forEach(function(e){e&&(e=e.resolvedFileName,v(D(t,e,c,r)))}),i.moduleAugmentations.length)for(var e=t.getTypeChecker(),d=0,p=i.moduleAugmentations;d<p.length;d++){var f=p[d];b.isStringLiteral(f)&&((f=e.getSymbolAtLocation(f))&&h(f))}for(var g=0,m=t.getTypeChecker().getAmbientModules();g<m.length;g++){var y=m[g];1<y.declarations.length&&h(y)}return n;function h(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],n=b.getSourceFileOfNode(n);n&&n!==i&&v(n.resolvedPath)}}function v(e){(n=n||new b.Set).add(e)}}function g(e,t){return t&&!t.referencedMap==!e}function c(r,e){e.forEach(function(e,t){return n(r,e,t)})}function n(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function p(e,t,r,n,i,a,o){if(b.Debug.assert(!!r),b.Debug.assert(!o||!!e.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),e.hasCalledUpdateShapeSignature.has(r.resolvedPath)||n.has(r.resolvedPath))return!1;var s=e.fileInfos.get(r.resolvedPath);if(!s)return b.Debug.fail();var c,u,l,_,s=s.signature;return r.isDeclarationFile?(c=r.version,o&&c!==s&&(e=e.referencedMap?e.referencedMap.get(r.resolvedPath):void 0,o.set(r.resolvedPath,e||!1))):(u=d(t,r,!0,i,void 0,!0),(l=u.outputFiles&&t.getCompilerOptions().declarationMap?1<u.outputFiles.length?u.outputFiles[1]:void 0:0<u.outputFiles.length?u.outputFiles[0]:void 0)?(b.Debug.assert(b.fileExtensionIs(l.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+b.getAnyExtensionFromPath(l.name)+" for "+l.name+":: All output files: "+JSON.stringify(u.outputFiles.map(function(e){return e.name}))}),c=(a||b.generateDjb2Hash)(l.text),o&&c!==s&&(t=r,a=u.exportedModulesFromDeclarationEmit,o=o,a?(a.forEach(function(e){(e=x(e))&&(_=_||new b.Set).add(e)}),o.set(t.resolvedPath,_||!1)):o.set(t.resolvedPath,!1))):c=s),n.set(r.resolvedPath,c),!s||c!==s}function u(e,t){return e.allFileNames||(t=t.getSourceFiles(),e.allFileNames=t===b.emptyArray?b.emptyArray:t.map(function(e){return e.fileName})),e.allFileNames}function m(e,r){return b.arrayFrom(b.mapDefinedIterator(e.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function y(e){return t=e,b.some(t.moduleAugmentations,function(e){return b.isGlobalScopeAugmentation(e.parent)})||!b.isExternalModule(e)&&!function(e){for(var t=0,r=e.statements;t<r.length;t++){var n=r[t];if(!b.isModuleWithStringLiteralName(n))return}return 1}(e);var t}function h(e,t,r){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;var n;r&&s(r);for(var i=0,a=t.getSourceFiles();i<a.length;i++){var o=a[i];o!==r&&s(o)}return e.allFilesExcludingDefaultLibraryFile=n||b.emptyArray,e.allFilesExcludingDefaultLibraryFile;function s(e){t.isSourceFileDefaultLibrary(e)||(n=n||[]).push(e)}}b.getFileEmitOutput=d,(e=b.BuilderState||(b.BuilderState={})).canReuseOldState=g,e.create=function(e,t,r){var n=new b.Map,i=e.getCompilerOptions().module!==b.ModuleKind.None?new b.Map:void 0,a=i?new b.Map:void 0,o=new b.Set,s=g(i,r);e.getTypeChecker();for(var c=0,u=e.getSourceFiles();c<u.length;c++){var l,_=u[c],d=b.Debug.checkDefined(_.version,"Program intended to be used with Builder should have source files with versions set"),p=s?r.fileInfos.get(_.resolvedPath):void 0;i&&((l=f(e,_,t))&&i.set(_.resolvedPath,l),!s||(l=r.exportedModulesMap.get(_.resolvedPath))&&a.set(_.resolvedPath,l)),n.set(_.resolvedPath,{version:d,signature:p&&p.signature,affectsGlobalScope:y(_)})}return{fileInfos:n,referencedMap:i,exportedModulesMap:a,hasCalledUpdateShapeSignature:o}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.clone=function(e){return{fileInfos:new b.Map(e.fileInfos),referencedMap:e.referencedMap&&new b.Map(e.referencedMap),exportedModulesMap:e.exportedModulesMap&&new b.Map(e.exportedModulesMap),hasCalledUpdateShapeSignature:new b.Set(e.hasCalledUpdateShapeSignature)}},e.getFilesAffectedBy=function(e,t,r,n,i,a,o){var s=a||new b.Map;return(r=t.getSourceFileByPath(r))?p(e,t,r,s,n,i,o)?(o=(e.referencedMap?function(e,t,r,n,i,a,o){if(y(r))return h(e,t,r);var s=t.getCompilerOptions();if(s&&(s.isolatedModules||b.outFile(s)))return[r];var c=new b.Map;c.set(r.resolvedPath,r);var u=m(e,r.resolvedPath);for(;0<u.length;){var l,_=u.pop();c.has(_)||(l=t.getSourceFileByPath(_),c.set(_,l),l&&p(e,t,l,n,i,a,o)&&u.push.apply(u,m(e,l.resolvedPath)))}return b.arrayFrom(b.mapDefinedIterator(c.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();if(n&&b.outFile(n))return[r];return h(e,t,r)})(e,t,r,s,n,i,o),a||c(e,s),o):[r]:b.emptyArray},e.updateSignaturesFromCache=c,e.updateSignatureOfFile=n,e.updateShapeSignature=p,e.updateExportedFilesMapFromCache=function(r,e){e&&(b.Debug.assert(!!r.exportedModulesMap),e.forEach(function(e,t){e?r.exportedModulesMap.set(t,e):r.exportedModulesMap.delete(t)}))},e.getAllDependencies=function(e,r,t){var n=r.getCompilerOptions();if(b.outFile(n))return u(e,r);if(!e.referencedMap||y(t))return u(e,r);for(var i=new b.Set,a=[t.resolvedPath];a.length;){var o=a.pop();if(!i.has(o)){i.add(o);o=e.referencedMap.get(o);if(o)for(var s=o.keys(),c=s.next();!c.done;c=s.next())a.push(c.value)}}return b.arrayFrom(b.mapDefinedIterator(i.keys(),function(e){var t;return null!==(t=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==t?t:e}))},e.getReferencedByPaths=m,e.getAllFilesExcludingDefaultLibraryFile=h}(ts=ts||{}),function(T){var b,e;function o(a,o,s){var c=T.BuilderState.create(a,o,s),e=(c.program=a).getCompilerOptions();c.compilerOptions=e,T.outFile(e)||(c.semanticDiagnosticsPerFile=new T.Map),c.changedFilesSet=new T.Set;var t,u=T.BuilderState.canReuseOldState(c.referencedMap,s),r=u?s.compilerOptions:void 0,l=u&&s.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!T.compilerOptionsAffectSemanticDiagnostics(e,r);u&&(s.currentChangedFilePath||(t=s.currentAffectedFilesSignatures,T.Debug.assert(!(s.affectedFiles||t&&t.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")),t=s.changedFilesSet,l&&T.Debug.assert(!t||!T.forEachKey(t,function(e){return s.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),null!=t&&t.forEach(function(e){return c.changedFilesSet.add(e)}),!T.outFile(e)&&s.affectedFilesPendingEmit&&(c.affectedFilesPendingEmit=s.affectedFilesPendingEmit.slice(),c.affectedFilesPendingEmitKind=s.affectedFilesPendingEmitKind&&new T.Map(s.affectedFilesPendingEmitKind),c.affectedFilesPendingEmitIndex=s.affectedFilesPendingEmitIndex,c.seenAffectedFiles=new T.Set));var _=c.referencedMap,d=u?s.referencedMap:void 0,p=l&&!e.skipLibCheck==!r.skipLibCheck,f=p&&!e.skipDefaultLibCheck==!r.skipDefaultLibCheck;return c.fileInfos.forEach(function(e,t){var r,n,i;!u||!(r=s.fileInfos.get(t))||r.version!==e.version||(e=n=_&&_.get(t),i=d&&d.get(t),e!==i&&(void 0===e||void 0===i||e.size!==i.size||T.forEachKey(e,function(e){return!i.has(e)})))||n&&T.forEachKey(n,function(e){return!c.fileInfos.has(e)&&s.fileInfos.has(e)})?c.changedFilesSet.add(t):l&&((n=a.getSourceFileByPath(t)).isDeclarationFile&&!p||n.hasNoDefaultLib&&!f||(n=s.semanticDiagnosticsPerFile.get(t))&&(c.semanticDiagnosticsPerFile.set(t,s.hasReusableDiagnostic?function(e,r,t){if(!e.length)return T.emptyArray;var n=T.getDirectoryPath(T.getNormalizedAbsolutePath(T.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return e.map(function(e){var t=g(e,r,i);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;e=e.relatedInformation;return t.relatedInformation=e?e.length?e.map(function(e){return g(e,r,i)}):[]:void 0,t});function i(e){return T.toPath(e,n,t)}}(n,a,o):n),c.semanticDiagnosticsFromOldState||(c.semanticDiagnosticsFromOldState=new T.Set),c.semanticDiagnosticsFromOldState.add(t)))}),u&&T.forEachEntry(s.fileInfos,function(e,t){return e.affectsGlobalScope&&!c.fileInfos.has(t)})?T.BuilderState.getAllFilesExcludingDefaultLibraryFile(c,a,void 0).forEach(function(e){return c.changedFilesSet.add(e.resolvedPath)}):r&&!T.outFile(e)&&T.compilerOptionsAffectEmit(e,r)&&(a.getSourceFiles().forEach(function(e){return k(c,e.resolvedPath,1)}),T.Debug.assert(!c.seenAffectedFiles||!c.seenAffectedFiles.size),c.seenAffectedFiles=c.seenAffectedFiles||new T.Set),c.buildInfoEmitPending=!!c.changedFilesSet.size,c}function g(e,t,r){var n=e.file;return __assign(__assign({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function x(e,t){T.Debug.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function l(e,t,r){for(;;){var n=e.affectedFiles;if(n){for(var i=e.seenAffectedFiles,a=e.affectedFilesIndex;a<n.length;){var o=n[a];if(!i.has(o.resolvedPath))return e.affectedFilesIndex=a,function(t,e,r,n){var i,a;_(t,e.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles?t.cleanedDiagnosticsOfLibFiles||(t.cleanedDiagnosticsOfLibFiles=!0,i=T.Debug.checkDefined(t.program),a=i.getCompilerOptions(),T.forEach(i.getSourceFiles(),function(e){return i.isSourceFileDefaultLibrary(e)&&!T.skipTypeChecking(e,a,i)&&_(t,e.resolvedPath)})):t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(r,n,i){if(r.exportedModulesMap&&r.changedFilesSet.has(n.resolvedPath)&&d(r,n.resolvedPath)){if(r.compilerOptions.isolatedModules){var e=new T.Map;e.set(n.resolvedPath,!0);for(var t=T.BuilderState.getReferencedByPaths(r,n.resolvedPath);0<t.length;){var a=t.pop();e.has(a)||(e.set(a,!0),i(r,a)&&d(r,a)&&(a=T.Debug.checkDefined(r.program).getSourceFileByPath(a),t.push.apply(t,T.BuilderState.getReferencedByPaths(r,a.resolvedPath))))}}T.Debug.assert(!!r.currentAffectedFilesExportedModulesMap);var o=new T.Set;T.forEachEntry(r.currentAffectedFilesExportedModulesMap,function(e,t){return e&&e.has(n.resolvedPath)&&p(r,t,o,i)})||T.forEachEntry(r.exportedModulesMap,function(e,t){return!r.currentAffectedFilesExportedModulesMap.has(t)&&e.has(n.resolvedPath)&&p(r,t,o,i)})}}(t,e,function(e,t){return function(e,t,r,n){{var i,a;_(e,t),e.changedFilesSet.has(t)||(i=T.Debug.checkDefined(e.program),(a=i.getSourceFileByPath(t))&&(T.BuilderState.updateShapeSignature(e,i,a,T.Debug.checkDefined(e.currentAffectedFilesSignatures),r,n,e.currentAffectedFilesExportedModulesMap),T.getEmitDeclarations(e.compilerOptions)&&k(e,t,0)))}return!1}(e,t,r,n)})}(e,o,t,r),o;a++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,T.BuilderState.updateSignaturesFromCache(e,e.currentAffectedFilesSignatures),e.currentAffectedFilesSignatures.clear(),T.BuilderState.updateExportedFilesMapFromCache(e,e.currentAffectedFilesExportedModulesMap),e.affectedFiles=void 0}var s=e.changedFilesSet.keys().next();if(s.done)return;var c=T.Debug.checkDefined(e.program),u=c.getCompilerOptions();if(T.outFile(u))return T.Debug.assert(!e.semanticDiagnosticsPerFile),c;e.currentAffectedFilesSignatures||(e.currentAffectedFilesSignatures=new T.Map),e.exportedModulesMap&&(e.currentAffectedFilesExportedModulesMap||(e.currentAffectedFilesExportedModulesMap=new T.Map)),e.affectedFiles=T.BuilderState.getFilesAffectedBy(e,c,s.value,t,r,e.currentAffectedFilesSignatures,e.currentAffectedFilesExportedModulesMap),e.currentChangedFilePath=s.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new T.Set)}}function _(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function d(e,t){return T.Debug.checkDefined(e.currentAffectedFilesSignatures).get(t)!==T.Debug.checkDefined(e.fileInfos.get(t)).signature}function p(r,n,i,a){return T.forEachEntry(r.referencedMap,function(e,t){return e.has(n)&&function r(n,i,a,o){if(!T.tryAddToSet(a,i))return!1;if(o(n,i))return!0;T.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);if(T.forEachEntry(n.currentAffectedFilesExportedModulesMap,function(e,t){return e&&e.has(i)&&r(n,t,a,o)}))return!0;if(T.forEachEntry(n.exportedModulesMap,function(e,t){return!n.currentAffectedFilesExportedModulesMap.has(t)&&e.has(i)&&r(n,t,a,o)}))return!0;return!!T.forEachEntry(n.referencedMap,function(e,t){return e.has(i)&&!a.has(t)&&o(n,t)})}(r,t,i,a)})}function c(e,t,r,n,i){i?e.buildInfoEmitPending=!1:t===e.program?(e.changedFilesSet.clear(),e.programEmitComplete=!0):(e.seenAffectedFiles.add(t.resolvedPath),void 0!==r&&(e.seenEmittedFiles||(e.seenEmittedFiles=new T.Map)).set(t.resolvedPath,r),n?(e.affectedFilesPendingEmitIndex++,e.buildInfoEmitPending=!0):e.affectedFilesIndex++)}function f(e,t,r){return c(e,r),{result:t,affected:r}}function D(e,t,r,n,i,a){return c(e,r,n,i,a),{result:t,affected:r}}function S(e,t,r){return T.concatenate(function(e,t,r){var n=t.resolvedPath;if(e.semanticDiagnosticsPerFile){var i=e.semanticDiagnosticsPerFile.get(n);if(i)return T.filterSemanticDiagnotics(i,e.compilerOptions)}r=T.Debug.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(n,r);return T.filterSemanticDiagnotics(r,e.compilerOptions)}(e,t,r),T.Debug.checkDefined(e.program).getProgramDiagnostics(t))}function C(n,t){if(!T.outFile(n.compilerOptions)){var r=T.Debug.checkDefined(n.program).getCurrentDirectory(),i=T.getDirectoryPath(T.getNormalizedAbsolutePath(T.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),r)),a={};n.fileInfos.forEach(function(e,t){var r=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(t);a[S(t)]=void 0===r?e:{version:e.version,signature:r,affectsGlobalScope:e.affectsGlobalScope}});var e={fileInfos:a,options:function(e,t){var r,n={},i=T.getOptionsNameMap().optionsNameMap;for(r in e)T.hasProperty(e,r)&&(n[r]=function(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}(i.get(r.toLowerCase()),e[r],t));n.configFilePath&&(n.configFilePath=t(n.configFilePath));return n}(n.compilerOptions,function(e){return S(T.getNormalizedAbsolutePath(e,r))})};if(n.referencedMap){for(var o={},s=0,c=T.arrayFrom(n.referencedMap.keys()).sort(T.compareStringsCaseSensitive);s<c.length;s++)o[S(d=c[s])]=T.arrayFrom(n.referencedMap.get(d).keys(),S).sort(T.compareStringsCaseSensitive);e.referencedMap=o}if(n.exportedModulesMap){for(var u={},l=0,_=T.arrayFrom(n.exportedModulesMap.keys()).sort(T.compareStringsCaseSensitive);l<_.length;l++){var d=_[l],p=n.currentAffectedFilesExportedModulesMap&&n.currentAffectedFilesExportedModulesMap.get(d);void 0===p?u[S(d)]=T.arrayFrom(n.exportedModulesMap.get(d).keys(),S).sort(T.compareStringsCaseSensitive):p&&(u[S(d)]=T.arrayFrom(p.keys(),S).sort(T.compareStringsCaseSensitive))}e.exportedModulesMap=u}if(n.semanticDiagnosticsPerFile){for(var f=[],g=0,m=T.arrayFrom(n.semanticDiagnosticsPerFile.keys()).sort(T.compareStringsCaseSensitive);g<m.length;g++){var d=m[g],y=n.semanticDiagnosticsPerFile.get(d);f.push(y.length?[S(d),n.hasReusableDiagnostic?y:function(e,r){return T.Debug.assert(!!e.length),e.map(function(e){var t=E(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;e=e.relatedInformation;return t.relatedInformation=e?e.length?e.map(function(e){return E(e,r)}):[]:void 0,t})}(y,S)]:S(d))}e.semanticDiagnosticsPerFile=f}if(n.affectedFilesPendingEmit){for(var h=[],v=new T.Set,b=0,x=n.affectedFilesPendingEmit.slice(n.affectedFilesPendingEmitIndex).sort(T.compareStringsCaseSensitive);b<x.length;b++){var D=x[b];T.tryAddToSet(v,D)&&h.push([S(D),n.affectedFilesPendingEmitKind.get(D)])}e.affectedFilesPendingEmit=h}return e}function S(e){return T.ensurePathIsNonModuleName(T.getRelativePathFromDirectory(i,e,t))}}function E(e,t){var r=e.file;return __assign(__assign({},e),{file:r?t(r.resolvedPath):void 0})}function k(e,t,r){e.affectedFilesPendingEmit||(e.affectedFilesPendingEmit=[]),e.affectedFilesPendingEmitKind||(e.affectedFilesPendingEmitKind=new T.Map);var n=e.affectedFilesPendingEmitKind.get(t);e.affectedFilesPendingEmit.push(t),e.affectedFilesPendingEmitKind.set(t,n||r),void 0===e.affectedFilesPendingEmitIndex&&(e.affectedFilesPendingEmitIndex=0)}function u(e,t){if(e){var r,n=new T.Map;for(r in e)T.hasProperty(e,r)&&n.set(t(r),new T.Set(e[r].map(t)));return n}}function N(e,t){return{getState:T.notImplemented,backupState:T.noop,restoreState:T.noop,getProgram:a,getProgramOrUndefined:function(){return e.program},releaseProgram:function(){return e.program=void 0},getCompilerOptions:function(){return e.compilerOptions},getSourceFile:function(e){return a().getSourceFile(e)},getSourceFiles:function(){return a().getSourceFiles()},getOptionsDiagnostics:function(e){return a().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return a().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,t){return a().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return a().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return a().getSemanticDiagnostics(e,t)},emit:function(e,t,r,n,i){return a().emit(e,t,r,n,i)},emitBuildInfo:function(e,t){return a().emitBuildInfo(e,t)},getAllDependencies:T.notImplemented,getCurrentDirectory:function(){return a().getCurrentDirectory()},close:T.noop};function a(){return T.Debug.checkDefined(e.program)}}(e=T.BuilderFileEmit||(T.BuilderFileEmit={}))[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full",(e=b=T.BuilderProgramKind||(T.BuilderProgramKind={}))[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",T.getBuilderCreationParameters=function(e,t,r,n,i,a){var o,s,c;return void 0===e?(T.Debug.assert(void 0===t),o=r,c=n,T.Debug.assert(!!c),s=c.getProgram()):T.isArray(e)?(c=n,s=T.createProgram({rootNames:e,options:t,host:r,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:a}),o=r):(s=e,o=t,c=r,i=n),{host:o,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||T.emptyArray}},T.createBuilderProgram=function(g,e){var t=e.newProgram,m=e.host,r=e.oldProgram,n=e.configFileParsingDiagnostics;if((e=r&&r.getState())&&t===e.program&&n===t.getConfigFileParsingDiagnostics())return e=t=void 0,r;var i,a=T.createGetCanonicalFileName(m.useCaseSensitiveFileNames()),u=T.maybeBind(m,m.createHash),y=o(t,a,e);t.getProgramBuildInfo=function(){return C(y,a)},e=r=t=void 0;var h=N(y,n);return h.getState=function(){return y},h.backupState=function(){var e,t;T.Debug.assert(void 0===i),e=y,(t=T.BuilderState.clone(e)).semanticDiagnosticsPerFile=e.semanticDiagnosticsPerFile&&new T.Map(e.semanticDiagnosticsPerFile),t.changedFilesSet=new T.Set(e.changedFilesSet),t.affectedFiles=e.affectedFiles,t.affectedFilesIndex=e.affectedFilesIndex,t.currentChangedFilePath=e.currentChangedFilePath,t.currentAffectedFilesSignatures=e.currentAffectedFilesSignatures&&new T.Map(e.currentAffectedFilesSignatures),t.currentAffectedFilesExportedModulesMap=e.currentAffectedFilesExportedModulesMap&&new T.Map(e.currentAffectedFilesExportedModulesMap),t.seenAffectedFiles=e.seenAffectedFiles&&new T.Set(e.seenAffectedFiles),t.cleanedDiagnosticsOfLibFiles=e.cleanedDiagnosticsOfLibFiles,t.semanticDiagnosticsFromOldState=e.semanticDiagnosticsFromOldState&&new T.Set(e.semanticDiagnosticsFromOldState),t.program=e.program,t.compilerOptions=e.compilerOptions,t.affectedFilesPendingEmit=e.affectedFilesPendingEmit&&e.affectedFilesPendingEmit.slice(),t.affectedFilesPendingEmitKind=e.affectedFilesPendingEmitKind&&new T.Map(e.affectedFilesPendingEmitKind),t.affectedFilesPendingEmitIndex=e.affectedFilesPendingEmitIndex,t.seenEmittedFiles=e.seenEmittedFiles&&new T.Map(e.seenEmittedFiles),t.programEmitComplete=e.programEmitComplete,i=t},h.restoreState=function(){y=T.Debug.checkDefined(i),i=void 0},h.getAllDependencies=function(e){return T.BuilderState.getAllDependencies(y,T.Debug.checkDefined(y.program),e)},h.getSemanticDiagnostics=function(e,t){x(y,e);var r,n=T.Debug.checkDefined(y.program).getCompilerOptions();if(T.outFile(n))return T.Debug.assert(!y.semanticDiagnosticsPerFile),T.Debug.checkDefined(y.program).getSemanticDiagnostics(e,t);if(e)return S(y,e,t);for(;s(t););for(var i=0,a=T.Debug.checkDefined(y.program).getSourceFiles();i<a.length;i++){var o=a[i];r=T.addRange(r,S(y,o,t))}return r||T.emptyArray},h.emit=function(e,t,r,n,i){var a,o,s,c=!1;g===b.EmitAndSemanticDiagnosticsBuilderProgram||e||T.outFile(y.compilerOptions)||y.compilerOptions.noEmit||!y.compilerOptions.noEmitOnError||(c=!0,a=y.affectedFilesPendingEmit&&y.affectedFilesPendingEmit.slice(),o=y.affectedFilesPendingEmitKind&&new T.Map(y.affectedFilesPendingEmitKind),s=y.affectedFilesPendingEmitIndex);g===b.EmitAndSemanticDiagnosticsBuilderProgram&&x(y,e);var u=T.handleNoEmitOptions(h,e,t,r);if(u)return u;c&&(y.affectedFilesPendingEmit=a,y.affectedFilesPendingEmitKind=o,y.affectedFilesPendingEmitIndex=s);if(e||g!==b.EmitAndSemanticDiagnosticsBuilderProgram)return T.Debug.checkDefined(y.program).emit(e,t||T.maybeBind(m,m.writeFile),r,n,i);var l=[],_=!1,d=void 0,p=[],f=void 0;for(;f=v(t,r,n,i);)_=_||f.result.emitSkipped,d=T.addRange(d,f.result.diagnostics),p=T.addRange(p,f.result.emittedFiles),l=T.addRange(l,f.result.sourceMaps);return{emitSkipped:_,diagnostics:d||T.emptyArray,emittedFiles:p,sourceMaps:l}},h.releaseProgram=function(){var e;e=y,T.BuilderState.releaseCache(e),e.program=void 0,i=void 0},g===b.SemanticDiagnosticsBuilderProgram?h.getSemanticDiagnosticsOfNextAffectedFile=s:g===b.EmitAndSemanticDiagnosticsBuilderProgram?(h.getSemanticDiagnosticsOfNextAffectedFile=s,h.emitNextAffectedFile=v,h.emitBuildInfo=function(e,t){if(y.buildInfoEmitPending){t=T.Debug.checkDefined(y.program).emitBuildInfo(e||T.maybeBind(m,m.writeFile),t);return y.buildInfoEmitPending=!1,t}return T.emitSkippedWithNoDiagnostics}):T.notImplemented(),h;function v(e,t,r,n){var i=l(y,t,u),a=1,o=!1;if(!i)if(T.outFile(y.compilerOptions)){var s=T.Debug.checkDefined(y.program);if(y.programEmitComplete)return;i=s}else{var c=function(e){var t=e.affectedFilesPendingEmit;if(t){for(var r=e.seenEmittedFiles||(e.seenEmittedFiles=new T.Map),n=e.affectedFilesPendingEmitIndex;n<t.length;n++){var i=T.Debug.checkDefined(e.program).getSourceFileByPath(t[n]);if(i){var a=r.get(i.resolvedPath),o=T.Debug.checkDefined(T.Debug.checkDefined(e.affectedFilesPendingEmitKind).get(i.resolvedPath));if(void 0===a||a<o)return e.affectedFilesPendingEmitIndex=n,{affectedFile:i,emitKind:o}}}e.affectedFilesPendingEmit=void 0,e.affectedFilesPendingEmitKind=void 0,e.affectedFilesPendingEmitIndex=void 0}}(y);if(!c){if(!y.buildInfoEmitPending)return;s=T.Debug.checkDefined(y.program);return D(y,s.emitBuildInfo(e||T.maybeBind(m,m.writeFile),t),s,1,!1,!0)}i=c.affectedFile,a=c.emitKind,o=!0}return D(y,T.Debug.checkDefined(y.program).emit(i===y.program?void 0:i,e||T.maybeBind(m,m.writeFile),t,r||0===a,n),i,a,o)}function s(e,t){for(;;){var r=l(y,e,u);if(!r)return;if(r===y.program)return f(y,y.program.getSemanticDiagnostics(void 0,e),r);if((g===b.EmitAndSemanticDiagnosticsBuilderProgram||y.compilerOptions.noEmit||y.compilerOptions.noEmitOnError)&&k(y,r.resolvedPath,1),!t||!t(r))return f(y,S(y,r,e),r);c(y,r)}}},T.createBuildProgramUsingProgramBuildInfo=function(e,t,r){var n,i=T.getDirectoryPath(T.getNormalizedAbsolutePath(t,r.getCurrentDirectory())),a=T.createGetCanonicalFileName(r.useCaseSensitiveFileNames()),o=new T.Map;for(n in e.fileInfos)T.hasProperty(e.fileInfos,n)&&o.set(c(n),e.fileInfos[n]);var s={fileInfos:o,compilerOptions:T.convertToOptionsWithAbsolutePaths(e.options,function(e){return T.getNormalizedAbsolutePath(e,i)}),referencedMap:u(e.referencedMap,c),exportedModulesMap:u(e.exportedModulesMap,c),semanticDiagnosticsPerFile:e.semanticDiagnosticsPerFile&&T.arrayToMap(e.semanticDiagnosticsPerFile,function(e){return c(T.isString(e)?e:e[0])},function(e){return T.isString(e)?T.emptyArray:e[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:T.map(e.affectedFilesPendingEmit,function(e){return c(e[0])}),affectedFilesPendingEmitKind:e.affectedFilesPendingEmit&&T.arrayToMap(e.affectedFilesPendingEmit,function(e){return c(e[0])},function(e){return e[1]}),affectedFilesPendingEmitIndex:e.affectedFilesPendingEmit&&0};return{getState:function(){return s},backupState:T.noop,restoreState:T.noop,getProgram:T.notImplemented,getProgramOrUndefined:T.returnUndefined,releaseProgram:T.noop,getCompilerOptions:function(){return s.compilerOptions},getSourceFile:T.notImplemented,getSourceFiles:T.notImplemented,getOptionsDiagnostics:T.notImplemented,getGlobalDiagnostics:T.notImplemented,getConfigFileParsingDiagnostics:T.notImplemented,getSyntacticDiagnostics:T.notImplemented,getDeclarationDiagnostics:T.notImplemented,getSemanticDiagnostics:T.notImplemented,emit:T.notImplemented,getAllDependencies:T.notImplemented,getCurrentDirectory:T.notImplemented,emitNextAffectedFile:T.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:T.notImplemented,emitBuildInfo:T.notImplemented,close:T.noop};function c(e){return T.toPath(e,i,a)}},T.createRedirectedBuilderProgram=N}(ts=ts||{}),function(o){o.createSemanticDiagnosticsBuilderProgram=function(e,t,r,n,i,a){return o.createBuilderProgram(o.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,o.getBuilderCreationParameters(e,t,r,n,i,a))},o.createEmitAndSemanticDiagnosticsBuilderProgram=function(e,t,r,n,i,a){return o.createBuilderProgram(o.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,o.getBuilderCreationParameters(e,t,r,n,i,a))},o.createAbstractBuilder=function(e,t,r,n,i,a){return i=o.getBuilderCreationParameters(e,t,r,n,i,a),a=i.newProgram,i=i.configFileParsingDiagnostics,o.createRedirectedBuilderProgram({program:a,compilerOptions:a.getCompilerOptions()},i)}}(ts=ts||{}),function($){function ee(t){return $.endsWith(t,"/node_modules/.staging")?$.removeSuffix(t,"/.staging"):$.some($.ignoredPaths,function(e){return $.stringContains(t,e)})?void 0:t}function te(e){var t=$.getRootLength(e);if(e.length===t)return!1;var r=e.indexOf($.directorySeparator,t);if(-1===r)return!1;var n=e.substring(t,r+1),i=1<t||47!==e.charCodeAt(0);if(i&&0!==e.search(/[a-zA-Z]:/)&&0===n.search(/[a-zA-z]\$\//)){if(-1===(r=e.indexOf($.directorySeparator,r+1)))return!1;n=e.substring(t+n.length,r+1)}if(i&&0!==n.search(/users\//i))return!0;for(var a=r+1,o=2;0<o;o--)if(0===(a=e.indexOf($.directorySeparator,a)+1))return!1;return!0}$.removeIgnoredPath=ee,$.canWatchDirectory=te,$.createResolutionCache=function(N,e,i){var A,u,t,F=$.createMultiMap(),l=[],P=$.createMultiMap(),_=!1,r=[],n=[],a=[],o=$.memoize(function(){return N.getCurrentDirectory()}),s=N.getCachedDirectoryStructureHost(),c=new $.Map,d=$.createCacheWithRedirects(),p=$.createCacheWithRedirects(),f=$.createModuleResolutionCacheWithMaps(d,p,o(),N.getCanonicalFileName),g=new $.Map,m=$.createCacheWithRedirects(),y=[".ts",".tsx",".js",".jsx",".json"],h=new $.Map,v=new $.Map,b=e&&$.removeTrailingDirectorySeparator($.getNormalizedAbsolutePath(e,o())),x=b&&N.toPath(b),D=void 0!==x?x.split($.directorySeparator).length:0,S=new $.Map;return{startRecordingFilesWithChangedResolutions:function(){A=[]},finishRecordingFilesWithChangedResolutions:function(){var e=A;return A=void 0,e},startCachingPerDirectoryResolution:k,finishCachingPerDirectoryResolution:function(){t=void 0,k(),v.forEach(function(e,t){0===e.refCount&&(v.delete(t),e.watcher.close())}),_=!1},resolveModuleNames:function(e,t,r,n){return O({names:e,containingFile:t,redirectedReference:n,cache:c,perDirectoryCacheWithRedirects:d,loader:I,getResolutionWithResolvedFileName:T,shouldRetryResolution:function(e){return!e.resolvedModule||!$.resolutionExtensionIsTSOrJson(e.resolvedModule.extension)},reusedNames:r,logChanges:i})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){t=c.get(N.toPath(t));return t&&t.get(e)},resolveTypeReferenceDirectives:function(e,t,r){return O({names:e,containingFile:t,redirectedReference:r,cache:g,perDirectoryCacheWithRedirects:m,loader:$.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:C,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(e){if(!$.fileExtensionIs(e,".json"))return;var t=N.getCurrentProgram();if(!t)return;e=t.getResolvedProjectReferenceByPath(e);if(!e)return;e.commandLine.fileNames.forEach(function(e){return q(N.toPath(e))})},removeResolutionsOfFile:q,hasChangedAutomaticTypeDirectiveNames:function(){return _},invalidateResolutionOfFile:function(e){q(e);var t=_;W(P.get(e),$.returnTrue)&&_&&!t&&N.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:G,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){$.Debug.assert(t===e||void 0===t),t=e},createHasInvalidatedResolution:function(e){if(G(),e)return u=void 0,$.returnTrue;var t=u;return u=void 0,function(e){return!!t&&t.has(e)||w(e)}},updateTypeRootsWatch:function(){var e=N.getCompilationSettings();if(e.types)return void Q();e=$.getEffectiveTypeRoots(e,{directoryExists:Z,getCurrentDirectory:o});e?$.mutateMap(S,$.arrayToMap(e,function(e){return N.toPath(e)}),{createNewValue:Y,onDeleteValue:$.closeFileWatcher}):Q()},closeTypeRootsWatch:Q,clear:function(){$.clearMap(v,$.closeFileWatcherOf),h.clear(),F.clear(),Q(),c.clear(),g.clear(),P.clear(),l.length=0,r.length=0,n.length=0,a.length=0,k(),_=!1}};function T(e){return e.resolvedModule}function C(e){return e.resolvedTypeReferenceDirective}function E(e,t){return!(void 0===e||t.length<=e.length)&&($.startsWith(t,e)&&t[e.length]===$.directorySeparator)}function w(e){if(!t)return!1;e=t.get(e);return!!e&&!!e.length}function k(){d.clear(),p.clear(),m.clear(),F.forEach(J),F.clear()}function I(e,t,r,n,i){t=$.resolveModuleName(e,t,r,n,f,i);if(!N.getGlobalCache)return t;var i=N.getGlobalCache();if(!(void 0===i||$.isExternalModuleNameRelative(e)||t.resolvedModule&&$.extensionIsTS(t.resolvedModule.extension))){n=$.loadModuleFromGlobalCache($.Debug.checkDefined(N.globalCacheResolutionModuleName)(e),N.projectName,r,n,i),i=n.resolvedModule,n=n.failedLookupLocations;if(i)return t.resolvedModule=i,(i=t.failedLookupLocations).push.apply(i,n),t}return t}function O(e){var t=e.names,r=e.containingFile,n=e.redirectedReference,i=e.cache,a=e.perDirectoryCacheWithRedirects,o=e.loader,s=e.getResolutionWithResolvedFileName,c=e.shouldRetryResolution,u=e.reusedNames,l=e.logChanges,_=N.toPath(r),d=i.get(_)||i.set(_,new $.Map).get(_),i=$.getDirectoryPath(_),a=a.getOrCreateMapOfCacheRedirects(n),p=a.get(i);p||(p=new $.Map,a.set(i,p));for(var f,g,m,y=[],h=N.getCompilationSettings(),v=l&&w(_),i=N.getCurrentProgram(),i=i&&i.getResolvedProjectReferenceToRedirect(r),b=i?!n||n.sourceFile.path!==i.sourceFile.path:!!n,x=new $.Map,D=0,S=t;D<S.length;D++){var T,C,E=S[D],k=d.get(E);(!x.has(E)&&b||!k||k.isInvalidated||v&&!$.isExternalModuleNameRelative(E)&&c(k))&&(T=k,(C=p.get(E))?k=C:(k=o(E,r,h,(null===(g=N.getCompilerHost)||void 0===g?void 0:g.call(N))||N,n),p.set(E,k)),d.set(E,k),f=E,m=_,C=s,(g=k).refCount?(g.refCount++,$.Debug.assertDefined(g.files)):(g.refCount=1,$.Debug.assert(0===$.length(g.files)),$.isExternalModuleNameRelative(f)?j(g):F.add(f,g),(C=C(g))&&C.resolvedFileName&&P.add(N.toPath(C.resolvedFileName),g)),(g.files||(g.files=[])).push(m),T&&U(T,_,s),l&&A&&!function(e,t){if(e===t)return!0;if(!e||!t)return!1;e=s(e),t=s(t);return e===t||!(!e||!t)&&e.resolvedFileName===t.resolvedFileName}(T,k)&&(A.push(_),l=!1)),$.Debug.assert(void 0!==k&&!k.isInvalidated),x.set(E,!0),y.push(s(k))}return d.forEach(function(e,t){x.has(t)||$.contains(u,t)||(U(e,_,s),d.delete(t))}),y}function M(e){return $.endsWith(e,"/node_modules/@types")}function L(e,t){if(E(x,t)){e=$.isRootedDiskPath(e)?$.normalizePath(e):$.getNormalizedAbsolutePath(e,o());var r=t.split($.directorySeparator),n=e.split($.directorySeparator);return $.Debug.assert(n.length===r.length,"FailedLookup: "+e+" failedLookupLocationPath: "+t),r.length>D+1?{dir:n.slice(0,D+1).join($.directorySeparator),dirPath:r.slice(0,D+1).join($.directorySeparator)}:{dir:b,dirPath:x,nonRecursive:!1}}return R($.getDirectoryPath($.getNormalizedAbsolutePath(e,o())),$.getDirectoryPath(t))}function R(e,t){for(;$.pathContainsNodeModules(t);)e=$.getDirectoryPath(e),t=$.getDirectoryPath(t);if($.isNodeModulesDirectory(t))return te($.getDirectoryPath(t))?{dir:e,dirPath:t}:void 0;var r,n,i=!0;if(void 0!==x)for(;!E(t,x);){var a=$.getDirectoryPath(t);if(a===t)break;i=!1,r=t,n=e,t=a,e=$.getDirectoryPath(e)}return te(t)?{dir:n||e,dirPath:r||t,nonRecursive:i}:void 0}function B(e){return $.fileExtensionIsOneOf(e,y)}function j(e){$.Debug.assert(!!e.refCount);var t=e.failedLookupLocations;if(t.length){l.push(e);for(var r=!1,n=0,i=t;n<i.length;n++){var a,o,s=i[n],c=N.toPath(s),u=L(s,c);u&&(a=u.dir,o=u.dirPath,s=u.nonRecursive,B(c)||(u=h.get(c)||0,h.set(c,u+1)),o===x?($.Debug.assert(!s),r=!0):z(a,o,s))}r&&z(b,x,!0)}}function J(e,t){var r=N.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(j)}function z(e,t,r){var n,i=v.get(t);i?($.Debug.assert(!!r==!!i.nonRecursive),i.refCount++):v.set(t,{watcher:(e=e,n=t,t=r,N.watchDirectoryOfFailedLookupLocation(e,function(e){var t=N.toPath(e);s&&s.addOrDeleteFileOrDirectory(e,t),H(t,n===t)},t?0:1)),refCount:1,nonRecursive:r})}function U(e,t,r){if($.unorderedRemoveItem($.Debug.assertDefined(e.files),t),e.refCount--,!e.refCount){r=r(e);if(r&&r.resolvedFileName&&P.remove(N.toPath(r.resolvedFileName),e),$.unorderedRemoveItem(l,e)){for(var n=!1,i=0,a=e.failedLookupLocations;i<a.length;i++){var o=a[i],s=N.toPath(o),c=L(o,s);c&&(o=c.dirPath,(c=h.get(s))&&(1===c?h.delete(s):($.Debug.assert(1<c),h.set(s,c-1))),o===x?n=!0:V(o))}n&&V(x)}}}function V(e){v.get(e).refCount--}function K(e,t,r){var n=e.get(t);n&&(n.forEach(function(e){return U(e,t,r)}),e.delete(t))}function q(e){K(c,e,T),K(g,e,C)}function W(e,t){if(!e)return!1;for(var r=!1,n=0,i=e;n<i.length;n++){var a=i[n];if(!a.isInvalidated&&t(a)){a.isInvalidated=r=!0;for(var o=0,s=$.Debug.assertDefined(a.files);o<s.length;o++){var c=s[o];(u=u||new $.Set).add(c),_=_||$.endsWith(c,$.inferredTypesContainingFile)}}}return r}function H(e,t){if(t)a.push(e);else{t=ee(e);if(!t)return;if(e=t,N.fileIsOpen(e))return;t=$.getDirectoryPath(e);if(M(e)||$.isNodeModulesDirectory(e)||M(t)||$.isNodeModulesDirectory(t))r.push(e),n.push(e);else{if(!B(e)&&!h.has(e))return;if($.isEmittedFileOfProgram(N.getCurrentProgram(),e))return;r.push(e)}}N.scheduleInvalidateResolutionsOfFailedLookupLocations()}function G(){if(!r.length&&!n.length&&!a.length)return!1;var e=W(l,X);return r.length=0,n.length=0,a.length=0,e}function X(e){return e.failedLookupLocations.some(function(e){var t=N.toPath(e);return $.contains(r,t)||n.some(function(e){return $.startsWith(t,e)})||a.some(function(e){return E(e,t)})})}function Q(){$.clearMap(S,$.closeFileWatcher)}function Y(n,i){return N.watchTypeRootsDirectory(i,function(e){var t=N.toPath(e);s&&s.addOrDeleteFileOrDirectory(e,t),_=!0,N.onChangedAutomaticTypeDirectiveNames();var r,e=(r=i,E(x,e=n)?x:(e=R(r,e))&&v.has(e.dirPath)?e.dirPath:void 0);e&&H(t,e===t)},1)}function Z(e){e=$.getDirectoryPath($.getDirectoryPath(e)),e=N.toPath(e);return e===x||te(e)}}}(ts=ts||{}),function(m){var e,t;function y(e,t,r){var n=e.importModuleSpecifierPreference,i=e.importModuleSpecifierEnding;return{relativePreference:"relative"===n?0:"non-relative"===n?1:2,ending:function(){switch(i){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(e){e=e.imports;return m.firstDefined(e,function(e){e=e.text;return m.pathIsRelative(e)?m.hasJSFileExtension(e):void 0})||!1}(r)?2:m.getEmitModuleResolutionKind(t)!==m.ModuleResolutionKind.NodeJs?1:0}}()}}function o(t,e,r,n,i){var a=h(e,n),e=b(e,r,n);return m.firstDefined(e,function(e){return x(e,a,n,t)})||v(r,a,t,n,i)}function h(e,t){return{getCanonicalFileName:m.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),sourceDirectory:m.getDirectoryPath(e)}}function v(e,t,r,n,i){var a=t.getCanonicalFileName,o=t.sourceDirectory,s=i.ending,c=i.relativePreference,u=r.baseUrl,t=r.paths,i=r.rootDirs,o=i&&function(e,t,r,n,i,a){t=p(t,e,n);if(void 0===t)return;e=p(r,e,n),t=void 0!==e?m.ensurePathIsNonModuleName(m.getRelativePathFromDirectory(e,t,n)):t;return m.getEmitModuleResolutionKind(a)===m.ModuleResolutionKind.NodeJs?g(t,i,a):m.removeFileExtension(t)}(i,e,o,a,s,r)||g(m.ensurePathIsNonModuleName(m.getRelativePathFromDirectory(o,e,a)),s,r);if(!u&&!t||0===c)return o;a=D(e,m.getPathsBasePath(r,n)||u,a);if(!a)return o;r=g(a,s,r),t=t&&f(m.removeFileExtension(a),r,t),t=void 0===t&&void 0!==u?r:t;return t?1===c?t:(2!==c&&m.Debug.assertNever(c),S(t)||l(o)<l(t)?o:t):o}function l(e){for(var t=0,r=m.startsWith(e,"./")?2:0;r<e.length;r++)47===e.charCodeAt(r)&&t++;return t}function r(e){e=e.match(/\//g);return e?e.length:0}function _(e,t){return m.compareBooleans(t.isRedirect,e.isRedirect)||m.compareValues(r(e.path),r(t.path))}function d(e,t,i,r,a){var o=m.hostGetCanonicalFileName(i),n=i.getCurrentDirectory(),s=i.isSourceOfProjectReferenceRedirect(t)?i.getProjectReferenceRedirect(t):void 0,c=i.redirectTargetsMap.get(m.toPath(t,n,o))||m.emptyArray,u=__spreadArrays(s?[s]:m.emptyArray,[t],c).map(function(e){return m.getNormalizedAbsolutePath(e,n)});if(!r){var l=m.forEach(u,function(e){return a(e,s===e)});if(l)return l}var l=(i.getSymlinkCache?i.getSymlinkCache():m.discoverProbableSymlinks(i.getSourceFiles(),o,n)).getSymlinkedDirectories(),_=!i.useCaseSensitiveFileNames||i.useCaseSensitiveFileNames();return l&&m.forEachEntry(l,function(r,n){if(!1!==r&&!m.startsWithDirectory(e,r.realPath,o))return m.forEach(u,function(e){if(m.containsPath(r.real,e,!_)){var t=m.getRelativePathFromDirectory(r.real,e,o),t=m.resolvePath(n,t);if(!i.fileExists||i.fileExists(t)){e=a(t,e===s);if(e)return e}}})})||(r?m.forEach(u,function(e){return a(e,e===s)}):void 0)}function b(e,t,r){var n=r.getCurrentDirectory(),i=m.hostGetCanonicalFileName(r),o=new m.Map;d(e,t,r,!0,function(e,t){var r=m.pathContainsNodeModules(e);o.set(e,{path:i(e),isRedirect:t,isInNodeModules:r}),0});for(var s,c=[],a=m.getDirectoryPath(m.toPath(e,n,i));0!==o.size;){var u=function(e){var i,a=m.ensureTrailingDirectorySeparator(e);o.forEach(function(e,t){var r=e.path,n=e.isRedirect,e=e.isInNodeModules;m.startsWith(r,a)&&((i=i||[]).push({path:t,isRedirect:n,isInNodeModules:e}),o.delete(t))}),i&&(1<i.length&&i.sort(_),c.push.apply(c,i));var t=m.getDirectoryPath(e);if(t===e)return s=e,"break";s=e=t}(a),a=s;if("break"===u)break}return o.size&&(1<(n=m.arrayFrom(o.values())).length&&n.sort(_),c.push.apply(c,n)),c}function f(e,t,r){for(var n in r)for(var i=0,a=r[n];i<a.length;i++){var o=a[i],s=m.removeFileExtension(m.normalizePath(o)),c=s.indexOf("*");if(-1!==c){o=s.substr(0,c),c=s.substr(c+1);if(t.length>=o.length+c.length&&m.startsWith(t,o)&&m.endsWith(t,c)||!c&&t===m.removeTrailingDirectorySeparator(o)){c=t.substr(o.length,t.length-c.length);return n.replace("*",c)}}else if(s===t||s===e)return n}}function x(e,t,a,o,r){var s=e.path,e=e.isRedirect,c=t.getCanonicalFileName,t=t.sourceDirectory;if(a.fileExists&&a.readFile){var n=function(e){var t=0,r=0,n=0,i=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}({});var a=0,o=0,s=0;for(;0<=o;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf(m.nodeModulesPathPart,a)===a&&(t=a,r=o,s=1);break;case 1:case 2:s=1===s&&"@"===e.charAt(a+1)?2:(n=o,3);break;case 3:s=e.indexOf(m.nodeModulesPathPart,a)===a?1:3}return i=a,1<s?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:n,fileNameIndex:i}:void 0}(s);if(n){var i=s,u=!1;if(!r)for(var l=n.packageRootIndex,_=void 0;;){var d=function(e){var t=s.substring(0,e),r=m.combinePaths(t,"package.json"),n=s;if(a.fileExists(r)){var i=JSON.parse(a.readFile(r)),e=i.typesVersions?m.getPackageJsonTypesVersionsPaths(i.typesVersions):void 0;e&&(r=s.slice(t.length+1),void 0!==(e=f(m.removeFileExtension(r),g(r,0,o),e.paths))&&(n=m.combinePaths(t,e)));i=i.typings||i.types||i.main;if(m.isString(i)){i=m.toPath(i,t,c);if(m.removeFileExtension(i)===m.removeFileExtension(c(n)))return{packageRootPath:t,moduleFileToTry:n}}}return{moduleFileToTry:n}}(l),p=d.moduleFileToTry,d=d.packageRootPath;if(d){i=d,u=!0;break}if(_=_||p,-1===(l=s.indexOf(m.directorySeparator,l+1))){i=function(e){e=m.removeFileExtension(e);return"/index"!==c(e.substring(n.fileNameIndex))||function(e,t){if(!e.fileExists)return;for(var r=m.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),n=0,i=r;n<i.length;n++){var a=i[n],a=t+a;if(e.fileExists(a))return a}}(a,e.substring(0,n.fileNameIndex))?e:e.substring(0,n.fileNameIndex)}(_);break}}if(!e||u){r=a.getGlobalTypingsCacheLocation&&a.getGlobalTypingsCacheLocation(),e=c(i.substring(0,n.topLevelNodeModulesIndex));if(m.startsWith(t,e)||r&&m.startsWith(c(r),e)){r=i.substring(n.topLevelPackageNameIndex+1),e=m.getPackageNameFromTypesPackageName(r);return m.getEmitModuleResolutionKind(o)!==m.ModuleResolutionKind.NodeJs&&e===r?void 0:e}}}}}function p(t,e,r){return m.firstDefined(e,function(e){e=D(t,e,r);return S(e)?void 0:e})}function g(e,t,r){if(m.fileExtensionIs(e,".json"))return e;var n=m.removeFileExtension(e);switch(t){case 0:return m.removeSuffix(n,"/index");case 1:return n;case 2:return n+function(e,t){var r=m.extensionFromPath(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return r;case".tsbuildinfo":return m.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+e);default:return m.Debug.assertNever(r)}}(e,r);default:return m.Debug.assertNever(t)}}function D(e,t,r){r=m.getRelativePathToDirectoryOrUrl(t,e,t,r,!1);return m.isRootedDiskPath(r)?void 0:r}function S(e){return m.startsWith(e,"..")}e=m.moduleSpecifiers||(m.moduleSpecifiers={}),(t={})[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Auto=2]="Auto",(t={})[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",e.updateModuleSpecifier=function(e,t,r,n,i){if((e=o(e,t,r,n,(n=e,e=i,{relativePreference:m.isExternalModuleNameRelative(e)?0:1,ending:m.hasJSFileExtension(e)?2:m.getEmitModuleResolutionKind(n)!==m.ModuleResolutionKind.NodeJs||m.endsWith(e,"index")?1:0})))!==i)return e},e.getModuleSpecifier=function(e,t,r,n,i,a){return void 0===a&&(a={}),o(e,r,n,i,y(a,e,t))},e.getNodeModulesPackageName=function(t,e,r,n){var i=h(e,n),r=b(e,r,n);return m.firstDefined(r,function(e){return x(e,i,n,t,!0)})},e.getModuleSpecifiers=function(e,t,r,n,i){var a=function(e){e=m.find(e.declarations,function(e){return m.isNonGlobalAmbientModule(e)&&(!m.isExternalModuleAugmentation(e)||!m.isExternalModuleNameRelative(m.getTextOfIdentifierOrLiteral(e.name)))});if(e)return e.name.text}(e);if(a)return[a];for(var o,s,c=h(r.path,n),e=m.getSourceFileOfNode(e.valueDeclaration||m.getNonAugmentationDeclaration(e)),e=b(r.path,e.originalFileName,n),u=y(i,t,r),l=m.some(e,function(e){return e.isInNodeModules}),_=0,d=e;_<d.length;_++){var p=d[_],f=x(p,c,n,t),g=m.append(g,f);if(f&&p.isRedirect)return g;f||p.isRedirect||(f=v(p.path,c,t,n,u),m.pathIsBareSpecifier(f)?o=m.append(o,f):l&&!p.isInNodeModules||(s=m.append(s,f)))}return null!=o&&o.length?o:null!=g&&g.length?g:m.Debug.checkDefined(s)},e.countPathComponents=l,e.forEachFileNameOfModule=d}(ts=ts||{}),function(d){var i=d.sys?{getCurrentDirectory:function(){return d.sys.getCurrentDirectory()},getNewLine:function(){return d.sys.newLine},getCanonicalFileName:d.createGetCanonicalFileName(d.sys.useCaseSensitiveFileNames)}:void 0;function u(t,e){var r=t===d.sys?i:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:d.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!e)return function(e){return t.write(d.formatDiagnostic(e,r))};var n=new Array(1);return function(e){n[0]=e,t.write(d.formatDiagnosticsWithColorAndContext(n,r)+r.getNewLine()),n[0]=void 0}}function a(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&d.contains(d.screenStartingMessageCodes,t.code)&&(e.clearScreen(),1)}function o(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function r(i,e){return e?function(e,t,r){a(i,e,r);r="["+d.formatColorAndReset(o(i),d.ForegroundColorEscapeSequences.Grey)+"] ";r+=""+d.flattenDiagnosticMessageText(e.messageText,i.newLine)+(t+t),i.write(r)}:function(e,t,r){var n="";a(i,e,r)||(n+=t),n+=o(i)+" - ",n+=""+d.flattenDiagnosticMessageText(e.messageText,i.newLine)+(e=e,t=t,d.contains(d.screenStartingMessageCodes,e.code)?t+t:t),i.write(n)}}function p(e){return d.countWhere(e,function(e){return e.category===d.DiagnosticCategory.Error})}function s(e){return 1===e?d.Diagnostics.Found_1_error_Watching_for_file_changes:d.Diagnostics.Found_0_errors_Watching_for_file_changes}function c(e,t){if(0===e)return"";e=d.createCompilerDiagnostic(1===e?d.Diagnostics.Found_1_error:d.Diagnostics.Found_0_errors,e);return""+t+d.flattenDiagnosticMessageText(e.messageText,t)+t+t}function f(e,t){(e.getCompilerOptions().listFiles||e.getCompilerOptions().listFilesOnly)&&d.forEach(e.getSourceFiles(),function(e){t(e.fileName)})}function l(e,t,r,n,i,a,o,s){var c=!!e.getCompilerOptions().listFilesOnly,u=e.getConfigFileParsingDiagnostics().slice(),l=u.length;d.addRange(u,e.getSyntacticDiagnostics(void 0,a)),u.length===l&&(d.addRange(u,e.getOptionsDiagnostics(a)),c||(d.addRange(u,e.getGlobalDiagnostics(a)),u.length===l&&d.addRange(u,e.getSemanticDiagnostics(void 0,a))));a=c?{emitSkipped:!0,diagnostics:d.emptyArray}:e.emit(void 0,i,a,o,s),o=a.emittedFiles,s=a.diagnostics;d.addRange(u,s);var _,u=d.sortAndDeduplicateDiagnostics(u);return u.forEach(t),r&&(_=e.getCurrentDirectory(),d.forEach(o,function(e){e=d.getNormalizedAbsolutePath(e,_);r("TSFILE: "+e)}),f(e,r)),n&&n(p(u)),{emitResult:a,diagnostics:u}}function _(e,t,r,n,i,a,o,s){o=l(e,t,r,n,i,a,o,s),s=o.emitResult,o=o.diagnostics;return s.emitSkipped&&0<o.length?d.ExitStatus.DiagnosticsPresent_OutputsSkipped:0<o.length?d.ExitStatus.DiagnosticsPresent_OutputsGenerated:d.ExitStatus.Success}function g(e,t){return void 0===e&&(e=d.sys),{onWatchStatusChange:t||r(e),watchFile:d.maybeBind(e,e.watchFile)||d.returnNoopFileWatcher,watchDirectory:d.maybeBind(e,e.watchDirectory)||d.returnNoopFileWatcher,setTimeout:d.maybeBind(e,e.setTimeout)||d.noop,clearTimeout:d.maybeBind(e,e.clearTimeout)||d.noop}}function m(a,e){var t=d.memoize(function(){return d.getDirectoryPath(d.normalizePath(a.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return a.useCaseSensitiveFileNames},getNewLine:function(){return a.newLine},getCurrentDirectory:d.memoize(function(){return a.getCurrentDirectory()}),getDefaultLibLocation:t,getDefaultLibFileName:function(e){return d.combinePaths(t(),d.getDefaultLibFileName(e))},fileExists:function(e){return a.fileExists(e)},readFile:function(e,t){return a.readFile(e,t)},directoryExists:function(e){return a.directoryExists(e)},getDirectories:function(e){return a.getDirectories(e)},readDirectory:function(e,t,r,n,i){return a.readDirectory(e,t,r,n,i)},realpath:d.maybeBind(a,a.realpath),getEnvironmentVariable:d.maybeBind(a,a.getEnvironmentVariable),trace:function(e){return a.write(e+a.newLine)},createDirectory:function(e){return a.createDirectory(e)},writeFile:function(e,t,r){return a.writeFile(e,t,r)},createHash:d.maybeBind(a,a.createHash),createProgram:e||d.createEmitAndSemanticDiagnosticsBuilderProgram}}function y(n,e,i,t){void 0===n&&(n=d.sys);function a(e){return n.write(e+n.newLine)}var o=m(n,e);return d.copyProperties(o,g(n,t)),o.afterProgramCreate=function(e){var t=e.getCompilerOptions(),r=d.getNewLineCharacter(t,function(){return n.newLine});l(e,i,a,function(e){return o.onWatchStatusChange(d.createCompilerDiagnostic(s(e),e),r,t,e)})},o}function h(e,t,r){t(r),e.exit(d.ExitStatus.DiagnosticsPresent_OutputsSkipped)}d.createDiagnosticReporter=u,d.screenStartingMessageCodes=[d.Diagnostics.Starting_compilation_in_watch_mode.code,d.Diagnostics.File_change_detected_Starting_incremental_compilation.code],d.getLocaleTimeString=o,d.createWatchStatusReporter=r,d.parseConfigFileWithSystem=function(e,t,r,n,i){var a=n;return a.onUnRecoverableConfigFileDiagnostic=function(e){return h(n,i,e)},r=d.getParsedCommandLineOfConfigFile(e,t,a,void 0,r),a.onUnRecoverableConfigFileDiagnostic=void 0,r},d.getErrorCountForSummary=p,d.getWatchErrorSummaryDiagnosticMessage=s,d.getErrorSummaryText=c,d.listFiles=f,d.emitFilesAndReportErrors=l,d.emitFilesAndReportErrorsAndGetExitStatus=_,d.noopFileWatcher={close:d.noop},d.returnNoopFileWatcher=function(){return d.noopFileWatcher},d.createWatchHost=g,d.WatchType={ConfigFile:"Config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots"},d.createWatchFactory=function(t,e){var r=t.trace?e.extendedDiagnostics?d.WatchLogLevel.Verbose:e.diagnostics?d.WatchLogLevel.TriggerOnly:d.WatchLogLevel.None:d.WatchLogLevel.None,e=r!==d.WatchLogLevel.None?function(e){return t.trace(e)}:d.noop;return(r=d.getWatchFactory(r,e)).writeLog=e,r},d.createCompilerHostFromProgramHost=function(i,a,e){void 0===e&&(e=i);var t=i.useCaseSensitiveFileNames(),r=d.memoize(function(){return i.getNewLine()});return{getSourceFile:function(e,t,r){var n;try{d.performance.mark("beforeIORead"),n=i.readFile(e,a().charset),d.performance.mark("afterIORead"),d.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?d.createSourceFile(e,n,t):void 0},getDefaultLibLocation:d.maybeBind(i,i.getDefaultLibLocation),getDefaultLibFileName:function(e){return i.getDefaultLibFileName(e)},writeFile:function(e,t,r,n){try{d.performance.mark("beforeIOWrite"),d.writeFileEnsuringDirectories(e,t,r,function(e,t,r){return i.writeFile(e,t,r)},function(e){return i.createDirectory(e)},function(e){return i.directoryExists(e)}),d.performance.mark("afterIOWrite"),d.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:d.memoize(function(){return i.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return t},getCanonicalFileName:d.createGetCanonicalFileName(t),getNewLine:function(){return d.getNewLineCharacter(a(),r)},fileExists:function(e){return i.fileExists(e)},readFile:function(e){return i.readFile(e)},trace:d.maybeBind(i,i.trace),directoryExists:d.maybeBind(e,e.directoryExists),getDirectories:d.maybeBind(e,e.getDirectories),realpath:d.maybeBind(i,i.realpath),getEnvironmentVariable:d.maybeBind(i,i.getEnvironmentVariable)||function(){return""},createHash:d.maybeBind(i,i.createHash),readDirectory:d.maybeBind(i,i.readDirectory)}},d.setGetSourceFileAsHashVersioned=function(n,e){var i=n.getSourceFile,a=d.maybeBind(e,e.createHash)||d.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.call.apply(i,__spreadArrays([n],e));return r&&(r.version=a(r.text)),r}},d.createProgramHost=m,d.createWatchCompilerHostOfConfigFile=function(e){var t=e.configFileName,r=e.optionsToExtend,n=e.watchOptionsToExtend,i=e.extraFileExtensions,a=e.system,o=e.createProgram,s=e.reportDiagnostic,e=e.reportWatchStatus,c=s||u(a);return(e=y(a,o,c,e)).onUnRecoverableConfigFileDiagnostic=function(e){return h(a,c,e)},e.configFileName=t,e.optionsToExtend=r,e.watchOptionsToExtend=n,e.extraFileExtensions=i,e},d.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var t=e.rootFiles,r=e.options,n=e.watchOptions,i=e.projectReferences,a=e.system,o=e.createProgram,s=e.reportDiagnostic,e=e.reportWatchStatus;return(e=y(a,o,s||u(a),e)).rootFiles=t,e.options=r,e.watchOptions=n,e.projectReferences=i,e},d.performIncrementalCompilation=function(e){var t=e.system||d.sys,r=e.host||(e.host=d.createIncrementalCompilerHost(e.options,t)),n=d.createIncrementalProgram(e),i=_(n,e.reportDiagnostic||u(t),function(e){return r.trace&&r.trace(e)},e.reportErrorSummary||e.options.pretty?function(e){return t.write(c(e,t.newLine))}:void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(n),i}}(ts=ts||{}),function(de){function pe(e,t){if(!de.outFile(e)){var r=de.getTsBuildInfoEmitOutputFilePath(e);if(r){e=t.readFile(r);if(e){e=de.getBuildInfo(e);if(e.version===de.version&&e.program)return de.createBuildProgramUsingProgramBuildInfo(e.program,r,t)}}}}function o(e,t){void 0===t&&(t=de.sys);var r=de.createCompilerHostWorker(e,void 0,t);return r.createHash=de.maybeBind(t,t.createHash),de.setGetSourceFileAsHashVersioned(r,t),de.changeCompilerHostLikeToUseCache(r,function(e){return de.toPath(e,r.getCurrentDirectory(),r.getCanonicalFileName)}),r}de.readBuilderProgram=pe,de.createIncrementalCompilerHost=o,de.createIncrementalProgram=function(e){var t=e.rootNames,r=e.options,n=e.configFileParsingDiagnostics,i=e.projectReferences,a=e.host,e=e.createProgram,a=a||o(r);return(e=e||de.createEmitAndSemanticDiagnosticsBuilderProgram)(t,r,a,pe(r,a),n,i)},de.createWatchCompilerHost=function(e,t,r,n,i,a,o,s){return de.isArray(e)?de.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:e,options:t,watchOptions:s,projectReferences:o,system:r,createProgram:n,reportDiagnostic:i,reportWatchStatus:a}):de.createWatchCompilerHostOfConfigFile({configFileName:e,optionsToExtend:t,watchOptionsToExtend:o,extraFileExtensions:s,system:r,createProgram:n,reportDiagnostic:i,reportWatchStatus:a})},de.createWatchProgram=function(o){var n,a,e,t,r,s,i,c,u=new de.Map,l=!1,_=o.useCaseSensitiveFileNames(),d=o.getCurrentDirectory(),p=o.configFileName,f=void 0===(F=o.optionsToExtend)?{}:F,g=o.watchOptionsToExtend,m=o.extraFileExtensions,y=o.createProgram,h=o.rootFiles,v=o.options,b=o.watchOptions,x=o.projectReferences,D=!1,S=!1,T=void 0===p?void 0:de.createCachedDirectoryStructureHost(o,d,_),C=T||o,E=de.parseConfigHostFromCompilerHostLike(o,C),k=K();p&&o.configFileParsingResult&&(ae(o.configFileParsingResult),k=K()),Y(de.Diagnostics.Starting_compilation_in_watch_mode),p&&!o.configFileParsingResult&&(k=de.getNewLineCharacter(f,function(){return o.getNewLine()}),de.Debug.assert(!h),ie(),k=K());var N,A=de.createWatchFactory(o,v),F=A.watchFile,P=A.watchFilePath,w=A.watchDirectory,I=A.writeLog,O=de.createGetCanonicalFileName(_);I("Current directory: "+d+" CaseSensitiveFileNames: "+_),p&&(N=F(o,p,function(){de.Debug.assert(!!p),n=de.ConfigFileProgramReloadLevel.Full,te()},de.PollingInterval.High,b,de.WatchType.ConfigFile));var M=de.createCompilerHostFromProgramHost(o,function(){return v},C);de.setGetSourceFileAsHashVersioned(M,o);var L=M.getSourceFile;M.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return G.apply(void 0,__spreadArrays([e,q(e)],t))},M.getSourceFileByPath=G,M.getNewLine=function(){return k},M.fileExists=H,M.onReleaseOldSourceFile=function(e,t,r){var n=u.get(e.resolvedPath);void 0!==n&&(W(n)?(s=s||[]).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),u.delete(e.resolvedPath),r||R.removeResolutionsOfFile(e.path)))},M.toPath=q,M.getCompilationSettings=function(){return v},M.useSourceOfProjectReferenceRedirect=de.maybeBind(o,o.useSourceOfProjectReferenceRedirect),M.watchDirectoryOfFailedLookupLocation=function(e,t,r){return w(o,e,t,r,b,de.WatchType.FailedLookupLocations)},M.watchTypeRootsDirectory=function(e,t,r){return w(o,e,t,r,b,de.WatchType.TypeRoots)},M.getCachedDirectoryStructureHost=function(){return T},M.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!o.setTimeout||!o.clearTimeout)return R.invalidateResolutionsOfFailedLookupLocations();var e=$();I("Scheduling invalidateFailedLookup"+(e?", Cancelled earlier one":"")),r=o.setTimeout(ee,250)},M.onInvalidatedResolution=te,M.onChangedAutomaticTypeDirectiveNames=te,M.fileIsOpen=de.returnFalse,M.getCurrentProgram=U,M.writeLog=I;var R=de.createResolutionCache(M,p?de.getDirectoryPath(de.getNormalizedAbsolutePath(p,d)):d,!1);M.resolveModuleNames=o.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.resolveModuleNames.apply(o,e)}:function(e,t,r,n){return R.resolveModuleNames(e,t,r,n)},M.resolveTypeReferenceDirectives=o.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.resolveTypeReferenceDirectives.apply(o,e)}:function(e,t,r){return R.resolveTypeReferenceDirectives(e,t,r)};var B=!!o.resolveModuleNames||!!o.resolveTypeReferenceDirectives,j=pe(v,M);return V(),le(),p?{getCurrentProgram:z,getProgram:ne,close:J}:{getCurrentProgram:z,getProgram:ne,updateRootFileNames:function(e){de.Debug.assert(!p,"Cannot update root file names with config file watch mode"),h=e,te()},close:J};function J(){$(),R.clear(),de.clearMap(u,function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),N&&(N.close(),N=void 0),e&&(de.clearMap(e,de.closeFileWatcherOf),e=void 0),a&&(de.clearMap(a,de.closeFileWatcher),a=void 0)}function z(){return j}function U(){return j&&j.getProgramOrUndefined()}function V(){I("Synchronizing program"),$();var e=j;l&&(k=K(),e&&de.changesAffectModuleResolution(e.getCompilerOptions(),v)&&R.clear());var t=R.createHasInvalidatedResolution(B);return de.isProgramUptoDate(U(),h,v,Q,H,t,Z,x)?S&&(j=y(void 0,void 0,M,j,c,x),S=!1):function(e){I("CreatingProgramWith::"),I("  roots: "+JSON.stringify(h)),I("  options: "+JSON.stringify(v));var t=l||!U();if(S=l=!1,R.startCachingPerDirectoryResolution(),M.hasInvalidatedResolution=e,M.hasChangedAutomaticTypeDirectiveNames=Z,j=y(h,v,M,j,c,x),R.finishCachingPerDirectoryResolution(),de.updateMissingFilePathsWatch(j.getProgram(),a=a||new de.Map,ce),t&&R.updateTypeRootsWatch(),s){for(var r=0,n=s;r<n.length;r++){var i=n[r];a.has(i)||u.delete(i)}s=void 0}}(t),o.afterProgramCreate&&e!==j&&o.afterProgramCreate(j),j}function K(){return de.getNewLineCharacter(v||f,function(){return o.getNewLine()})}function q(e){return de.toPath(e,d,O)}function W(e){return"boolean"==typeof e}function H(e){var t=q(e);return!W(u.get(t))&&C.fileExists(e)}function G(e,t,r,n,i){var a=u.get(t);if(!W(a)){if(void 0===a||i||"boolean"==typeof a.version){n=L(e,r,n);return a?n?(a.sourceFile=n,a.version=n.version,a.fileWatcher||(a.fileWatcher=P(o,e,oe,de.PollingInterval.Low,b,t,de.WatchType.SourceFile))):(a.fileWatcher&&a.fileWatcher.close(),u.set(t,!1)):n?(e=P(o,e,oe,de.PollingInterval.Low,b,t,de.WatchType.SourceFile),u.set(t,{sourceFile:n,version:n.version,fileWatcher:e})):u.set(t,!1),n}return a.sourceFile}}function X(e){var t=u.get(e);void 0!==t&&(W(t)?u.set(e,{version:!1}):t.version=!1)}function Q(e){e=u.get(e);return e&&e.version?e.version:void 0}function Y(e){o.onWatchStatusChange&&o.onWatchStatusChange(de.createCompilerDiagnostic(e),k,v||f)}function Z(){return R.hasChangedAutomaticTypeDirectiveNames()}function $(){return!!r&&(o.clearTimeout(r),!(r=void 0))}function ee(){r=void 0,R.invalidateResolutionsOfFailedLookupLocations()&&te()}function te(){o.setTimeout&&o.clearTimeout&&(t&&o.clearTimeout(t),I("Scheduling update"),t=o.setTimeout(re,250))}function re(){t=void 0,Y(de.Diagnostics.File_change_detected_Starting_incremental_compilation),ne()}function ne(){switch(n){case de.ConfigFileProgramReloadLevel.Partial:de.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){I("Reloading new file names and options");var e=de.getFileNamesFromConfigSpecs(i,de.getNormalizedAbsolutePath(de.getDirectoryPath(p),d),v,E,m);de.updateErrorForNoInputFiles(e,de.getNormalizedAbsolutePath(p,d),i,c,D)&&(S=!0),h=e.fileNames,V()}();break;case de.ConfigFileProgramReloadLevel.Full:de.perfLogger.logStartUpdateProgram("FullConfigReload"),I("Reloading config file: "+p),n=de.ConfigFileProgramReloadLevel.None,T&&T.clearCache(),ie(),l=!0,V(),le();break;default:de.perfLogger.logStartUpdateProgram("SynchronizeProgram"),V()}return de.perfLogger.logStopUpdateProgram("Done"),j}function ie(){ae(de.getParsedCommandLineOfConfigFile(p,f,E,void 0,g,m))}function ae(e){h=e.fileNames,v=e.options,b=e.watchOptions,i=e.configFileSpecs,x=e.projectReferences,c=de.getConfigFileParsingDiagnostics(e).slice(),D=de.canJsonReportNoInputFiles(e.raw),S=!0}function oe(e,t,r){se(e,r,t),t===de.FileWatcherEventKind.Deleted&&u.has(r)&&R.invalidateResolutionOfFile(r),R.removeResolutionsFromProjectReferenceRedirects(r),X(r),te()}function se(e,t,r){T&&T.addOrDeleteFile(e,t,r)}function ce(e){return P(o,e,ue,de.PollingInterval.Medium,b,e,de.WatchType.MissingFile)}function ue(e,t,r){se(e,r,t),t===de.FileWatcherEventKind.Created&&a.has(r)&&(a.get(r).close(),a.delete(r),X(r),te())}function le(){i?de.updateWatchingWildcardDirectories(e=e||new de.Map,new de.Map(de.getEntries(i.wildcardDirectories)),_e):e&&de.clearMap(e,de.closeFileWatcherOf)}function _e(r,e){return w(o,r,function(e){de.Debug.assert(!!p);var t=q(e);T&&T.addOrDeleteFileOrDirectory(e,t),X(t),de.isIgnoredFileFromWildCardWatching({watchedDirPath:q(r),fileOrDirectory:e,fileOrDirectoryPath:t,configFileName:p,configFileSpecs:i,extraFileExtensions:m,options:v,program:j,currentDirectory:d,useCaseSensitiveFileNames:_,writeLog:I})||n!==de.ConfigFileProgramReloadLevel.Full&&(n=de.ConfigFileProgramReloadLevel.Partial,te())},e,b,de.WatchType.WildcardDirectory)}}}(ts=ts||{}),function(t){var e;(e=t.UpToDateStatusType||(t.UpToDateStatusType={}))[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly",t.resolveConfigFileProjectName=function(e){return t.fileExtensionIs(e,".json")?e:t.combinePaths(e,"tsconfig.json")}}(ts=ts||{}),function(F){var T,C,E,e,P=new Date(-864e13),w=new Date(864e13);function t(e,t){return r=t,n=function(){return new F.Map},(e=(t=e).get(r))||(i=n(),t.set(r,i)),e||i;var r,n,i}function I(e,t){return e<t?t:e}function O(e){return F.fileExtensionIs(e,".d.ts")}function p(e){return!!e&&!!e.buildOrder}function c(e){return p(e)?e.buildOrder:e}function i(r,n){return function(e){var t=n?"["+F.formatColorAndReset(F.getLocaleTimeString(r),F.ForegroundColorEscapeSequences.Grey)+"] ":F.getLocaleTimeString(r)+" - ";t+=""+F.flattenDiagnosticMessageText(e.messageText,r.newLine)+(r.newLine+r.newLine),r.write(t)}}function a(r,e,t,n){e=F.createProgramHost(r,e);return e.getModifiedTime=r.getModifiedTime?function(e){return r.getModifiedTime(e)}:F.returnUndefined,e.setModifiedTime=r.setModifiedTime?function(e,t){return r.setModifiedTime(e,t)}:F.noop,e.deleteFile=r.deleteFile?function(e){return r.deleteFile(e)}:F.noop,e.reportDiagnostic=t||F.createDiagnosticReporter(r),e.reportSolutionBuilderStatus=n||i(r),e.now=F.maybeBind(r,r.now),e}function o(e,t,r,n,i){var a,o,s=t,c=t,u=s.getCurrentDirectory(),l=F.createGetCanonicalFileName(s.useCaseSensitiveFileNames()),_=(a=n,o={},F.commonOptionsWithBuild.forEach(function(e){F.hasProperty(a,e.name)&&(o[e.name]=a[e.name])}),o),d=F.createCompilerHostFromProgramHost(s,function(){return h.projectCompilerOptions});F.setGetSourceFileAsHashVersioned(d,s),d.getParsedCommandLine=function(e){return L(h,e,M(h,e))},d.resolveModuleNames=F.maybeBind(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=F.maybeBind(s,s.resolveTypeReferenceDirectives);var p,f=d.resolveModuleNames?void 0:F.createModuleResolutionCache(u,l);d.resolveModuleNames||(p=function(e,t,r){return F.resolveModuleName(e,t,h.projectCompilerOptions,d,f,r).resolvedModule},d.resolveModuleNames=function(e,t,r,n){return F.loadWithLocalCache(F.Debug.checkEachDefined(e),t,n,p)});var g=F.createWatchFactory(c,n),m=g.watchFile,y=g.watchFilePath,t=g.watchDirectory,g=g.writeLog,h={host:s,hostWithWatch:c,currentDirectory:u,getCanonicalFileName:l,parseConfigFileHost:F.parseConfigHostFromCompilerHostLike(s),writeFileName:s.trace?function(e){return s.trace(e)}:void 0,options:n,baseCompilerOptions:_,rootNames:r,baseWatchOptions:i,resolvedConfigFilePaths:new F.Map,configFileCache:new F.Map,projectStatus:new F.Map,buildInfoChecked:new F.Map,extendedConfigCache:new F.Map,builderPrograms:new F.Map,diagnostics:new F.Map,projectPendingBuild:new F.Map,projectErrorsReported:new F.Map,compilerHost:d,moduleResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return s.readFile(e)},projectCompilerOptions:_,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,currentInvalidatedProject:void 0,watch:e,allWatchedWildcardDirectories:new F.Map,allWatchedInputFiles:new F.Map,allWatchedConfigFiles:new F.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:m,watchFilePath:y,watchDirectory:t,writeLog:g};return h}function k(e,t){return F.toPath(t,e.currentDirectory,e.getCanonicalFileName)}function M(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;e=k(e,t);return r.set(t,e),e}function l(e){return e.options}function L(e,t,r){var n,i=e.configFileCache,a=i.get(r);if(a)return l(a)?a:void 0;var o,s=e.parseConfigFileHost,c=e.baseCompilerOptions,u=e.baseWatchOptions,a=e.extendedConfigCache,e=e.host;return e.getParsedCommandLine?(o=e.getParsedCommandLine(t))||(n=F.createCompilerDiagnostic(F.Diagnostics.File_0_not_found,t)):(s.onUnRecoverableConfigFileDiagnostic=function(e){return n=e},o=F.getParsedCommandLineOfConfigFile(t,c,s,a,u),s.onUnRecoverableConfigFileDiagnostic=F.noop),i.set(r,o||n),o}function N(e,t){return F.resolveConfigFileProjectName(F.resolvePath(e.currentDirectory,t))}function s(u,e){for(var l,_,d=new F.Map,p=new F.Map,f=[],t=0,r=e;t<r.length;t++)!function e(t,r){var n=M(u,t);if(p.has(n))return;if(d.has(n))return void(r||(_=_||[]).push(F.createCompilerDiagnostic(F.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,f.join("\r\n"))));d.set(n,!0);f.push(t);var i=L(u,t,n);if(i&&i.projectReferences)for(var a=0,o=i.projectReferences;a<o.length;a++){var s=o[a],c=N(u,s.path);e(c,r||s.circular)}f.pop();p.set(n,!0);(l=l||[]).push(t)}(r[t]);return _?{buildOrder:l||F.emptyArray,circularDiagnostics:_}:l||F.emptyArray}function u(e){return e.buildOrder||function(t){var e=s(t,t.rootNames.map(function(e){return N(t,e)}));t.resolvedConfigFilePaths.clear();var r=new F.Map(c(e).map(function(e){return[M(t,e),!0]})),n={onDeleteValue:F.noop};F.mutateMapSkippingNewValues(t.configFileCache,r,n),F.mutateMapSkippingNewValues(t.projectStatus,r,n),F.mutateMapSkippingNewValues(t.buildInfoChecked,r,n),F.mutateMapSkippingNewValues(t.builderPrograms,r,n),F.mutateMapSkippingNewValues(t.diagnostics,r,n),F.mutateMapSkippingNewValues(t.projectPendingBuild,r,n),F.mutateMapSkippingNewValues(t.projectErrorsReported,r,n),t.watch&&(F.mutateMapSkippingNewValues(t.allWatchedConfigFiles,r,{onDeleteValue:F.closeFileWatcher}),F.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,r,{onDeleteValue:function(e){return e.forEach(F.closeFileWatcherOf)}}),F.mutateMapSkippingNewValues(t.allWatchedInputFiles,r,{onDeleteValue:function(e){return e.forEach(F.closeFileWatcher)}}));return t.buildOrder=e}(e)}function d(t,e,r){var n=e&&N(t,e),e=u(t);if(p(e))return e;if(n){var i=M(t,n);if(-1===F.findIndex(e,function(e){return M(t,e)===i}))return}e=n?s(t,[n]):e;return F.Debug.assert(!p(e)),F.Debug.assert(!r||void 0!==n),F.Debug.assert(!r||e[e.length-1]===n),r?e.slice(0,e.length-1):e}function n(t){t.cache&&_(t);var r=t.compilerHost,e=t.host,n=t.readFileWithCache,i=r.getSourceFile,a=F.changeCompilerHostLikeToUseCache(e,function(e){return k(t,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.call.apply(i,__spreadArrays([r],e))}),o=a.originalReadFile,s=a.originalFileExists,c=a.originalDirectoryExists,u=a.originalCreateDirectory,l=a.originalWriteFile,e=a.getSourceFileWithCache,a=a.readFileWithCache;t.readFileWithCache=a,r.getSourceFile=e,t.cache={originalReadFile:o,originalFileExists:s,originalDirectoryExists:c,originalCreateDirectory:u,originalWriteFile:l,originalReadFileWithCache:n,originalGetSourceFile:i}}function _(e){var t,r,n,i,a;e.cache&&(t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),a&&(a.directoryToModuleNameMap.clear(),a.moduleNameToDirectoryMap.clear()),e.cache=void 0)}function A(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function R(e,t,r){var n=e.projectPendingBuild,e=n.get(t);(void 0===e||e<r)&&n.set(t,r)}function f(t,e){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&Y(t,F.Diagnostics.Starting_compilation_in_watch_mode),n(t),c(u(t)).forEach(function(e){return t.projectPendingBuild.set(M(t,e),F.ConfigFileProgramReloadLevel.None)}),e&&e.throwIfCancellationRequested())}function B(e,t){return e.projectPendingBuild.delete(t),e.currentInvalidatedProject=void 0,e.diagnostics.has(t)?F.ExitStatus.DiagnosticsPresent_OutputsSkipped:F.ExitStatus.Success}function j(t,d,s,p,c,f,u){var g,m,l,y=t===C.Build?E.CreateProgram:E.EmitBundle;return t===C.Build?{kind:t,project:s,projectPath:p,buildOrder:u,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return d.currentDirectory},getBuilderProgram:function(){return o(F.identity)},getProgram:function(){return o(function(e){return e.getProgramOrUndefined()})},getSourceFile:function(t){return o(function(e){return e.getSourceFile(t)})},getSourceFiles:function(){return n(function(e){return e.getSourceFiles()})},getOptionsDiagnostics:function(t){return n(function(e){return e.getOptionsDiagnostics(t)})},getGlobalDiagnostics:function(t){return n(function(e){return e.getGlobalDiagnostics(t)})},getConfigFileParsingDiagnostics:function(){return n(function(e){return e.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(t,r){return n(function(e){return e.getSyntacticDiagnostics(t,r)})},getAllDependencies:function(t){return n(function(e){return e.getAllDependencies(t)})},getSemanticDiagnostics:function(t,r){return n(function(e){return e.getSemanticDiagnostics(t,r)})},getSemanticDiagnosticsOfNextAffectedFile:function(t,r){return o(function(e){return e.getSemanticDiagnosticsOfNextAffectedFile&&e.getSemanticDiagnosticsOfNextAffectedFile(t,r)})},emit:function(t,r,n,i,a){return t||i?o(function(e){return e.emit(t,r,n,i,a)}):(S(E.SemanticDiagnostics,n),y===E.EmitBuildInfo?b(r,n):y===E.Emit?v(r,n,a):void 0)},done:e}:{kind:t,project:s,projectPath:p,buildOrder:u,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return d.currentDirectory},emit:function(e,t){return y!==E.EmitBundle?l:D(e,t)},done:e};function e(e,t,r){return S(E.Done,e,t,r),B(d,p)}function o(e){return S(E.CreateProgram),g&&e(g)}function n(e){return o(e)||F.emptyArray}function _(){if(F.Debug.assert(void 0===g),d.options.dry)return Q(d,F.Diagnostics.A_non_dry_build_would_build_project_0,s),m=T.Success,void(y=E.QueueReferencingProjects);if(d.options.verbose&&Q(d,F.Diagnostics.Building_project_0,s),0===f.fileNames.length)return $(d,p,F.getConfigFileParsingDiagnostics(f)),m=T.None,void(y=E.QueueReferencingProjects);var e,t,r,n,i=d.host,a=d.compilerHost;d.projectCompilerOptions=f.options,t=s,r=f,(e=d).moduleResolutionCache&&(n=e.moduleResolutionCache,t=k(e,t),0===n.directoryToModuleNameMap.redirectsMap.size?(F.Debug.assert(0===n.moduleNameToDirectoryMap.redirectsMap.size),n.directoryToModuleNameMap.redirectsMap.set(t,n.directoryToModuleNameMap.ownMap),n.moduleNameToDirectoryMap.redirectsMap.set(t,n.moduleNameToDirectoryMap.ownMap)):(F.Debug.assert(0<n.moduleNameToDirectoryMap.redirectsMap.size),t={sourceFile:r.options.configFile,commandLine:r},n.directoryToModuleNameMap.setOwnMap(n.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(t)),n.moduleNameToDirectoryMap.setOwnMap(n.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(t))),n.directoryToModuleNameMap.setOwnOptions(r.options),n.moduleNameToDirectoryMap.setOwnOptions(r.options)),g=i.createProgram(f.fileNames,f.options,a,function(e,t,r){var n=e.options,i=e.builderPrograms,e=e.compilerHost;if(n.force)return;t=i.get(t);return t||F.readBuilderProgram(r.options,e)}(d,p,f),F.getConfigFileParsingDiagnostics(f),f.projectReferences),d.watch&&d.builderPrograms.set(p,g),y++}function h(e,t,r){e.length?(r=U(d,p,g,f,e,t,r),m=r.buildResult,y=r.step):y++}function v(i,e,t){var r;F.Debug.assertIsDefined(g),F.Debug.assert(y===E.Emit),g.backupState();var n=[],e=F.emitFilesAndReportErrors(g,function(e){return(r=r||[]).push(e)},void 0,void 0,function(e,t,r){return n.push({name:e,text:t,writeByteOrderMark:r})},e,!1,t).emitResult;if(r)return g.restoreState(),t=U(d,p,g,f,r,T.DeclarationEmitErrors,"Declaration file"),m=t.buildResult,y=t.step,{emitSkipped:!0,diagnostics:e.diagnostics};var a=d.host,o=d.compilerHost,s=T.DeclarationOutputUnchanged,c=P,u=!1,l=F.createDiagnosticCollection(),_=new F.Map;return n.forEach(function(e){var t,r=e.name,n=e.text,e=e.writeByteOrderMark;!u&&O(r)&&(a.fileExists(r)&&d.readFileWithCache(r)===n?t=a.getModifiedTime(r):(s&=~T.DeclarationOutputUnchanged,u=!0)),_.set(k(d,r),r),F.writeFile(i?{writeFile:i}:o,l,r,n,e),void 0!==t&&(c=I(t,c))}),x(l,_,c,u,n.length?n[0].name:F.getFirstProjectOutput(f,!a.useCaseSensitiveFileNames()),s),e}function b(e,t){F.Debug.assertIsDefined(g),F.Debug.assert(y===E.EmitBuildInfo);t=g.emitBuildInfo(e,t);return t.diagnostics.length&&(Z(d,t.diagnostics),d.diagnostics.set(p,__spreadArrays(d.diagnostics.get(p),t.diagnostics)),m=T.EmitErrors&m),t.emittedFiles&&d.writeFileName&&t.emittedFiles.forEach(function(e){return J(d,f,e)}),z(d,g,f),y=E.QueueReferencingProjects,t}function x(e,t,r,n,i,a){var o=e.getDiagnostics();if(o.length)return e=U(d,p,g,f,o,T.EmitErrors,"Emit"),m=e.buildResult,y=e.step,o;d.writeFileName&&t.forEach(function(e){return J(d,f,e)});t=q(d,f,r,F.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,t);return d.diagnostics.delete(p),d.projectStatus.set(p,{type:F.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:n?w:t,oldestOutputFileName:i}),z(d,g,f),y=E.QueueReferencingProjects,m=a,o}function D(n,e){if(F.Debug.assert(t===C.UpdateBundle),d.options.dry)return Q(d,F.Diagnostics.A_non_dry_build_would_update_output_of_project_0,s),m=T.Success,void(y=E.QueueReferencingProjects);d.options.verbose&&Q(d,F.Diagnostics.Updating_output_of_project_0,s);var i=d.compilerHost;d.projectCompilerOptions=f.options;e=F.emitUsingBuildInfo(f,i,function(e){e=N(d,e.path);return L(d,e,M(d,e))},e);if(F.isString(e))return Q(d,F.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,X(d,e)),y=E.BuildInvalidatedProjectOfBundle,l=j(C.Build,d,s,p,c,f,u);F.Debug.assert(!!e.length);var a=F.createDiagnosticCollection(),o=new F.Map;return e.forEach(function(e){var t=e.name,r=e.text,e=e.writeByteOrderMark;o.set(k(d,t),t),F.writeFile(n?{writeFile:n}:i,a,t,r,e)}),{emitSkipped:!1,diagnostics:x(a,o,P,!1,e[0].name,T.DeclarationOutputUnchanged)}}function S(e,t,r,n){for(;y<=e&&y<E.Done;){var i=y;switch(y){case E.CreateProgram:_();break;case E.SyntaxDiagnostics:a=t,F.Debug.assertIsDefined(g),h(__spreadArrays(g.getConfigFileParsingDiagnostics(),g.getOptionsDiagnostics(a),g.getGlobalDiagnostics(a),g.getSyntacticDiagnostics(void 0,a)),T.SyntaxErrors,"Syntactic");break;case E.SemanticDiagnostics:a=t,h(F.Debug.checkDefined(g).getSemanticDiagnostics(void 0,a),T.TypeErrors,"Semantic");break;case E.Emit:v(r,t,n);break;case E.EmitBuildInfo:b(r,t);break;case E.EmitBundle:D(r,n);break;case E.BuildInvalidatedProjectOfBundle:F.Debug.checkDefined(l).done(t),y=E.Done;break;case E.QueueReferencingProjects:!function(e,t,r,n,i,a,o){if(!(o&T.AnyErrors)&&i.options.composite)for(var s=n+1;s<a.length;s++){var c=a[s],u=M(e,c);if(!e.projectPendingBuild.has(u)){c=L(e,c,u);if(c&&c.projectReferences)for(var l=0,_=c.projectReferences;l<_.length;l++){var d=_[l],p=N(e,d.path);if(M(e,p)===r){var f=e.projectStatus.get(u);if(f)switch(f.type){case F.UpToDateStatusType.UpToDate:if(o&T.DeclarationOutputUnchanged){d.prepend?e.projectStatus.set(u,{type:F.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:f.oldestOutputFileName,newerProjectName:t}):f.type=F.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case F.UpToDateStatusType.UpToDateWithUpstreamTypes:case F.UpToDateStatusType.OutOfDateWithPrepend:o&T.DeclarationOutputUnchanged||e.projectStatus.set(u,{type:F.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:f.type===F.UpToDateStatusType.OutOfDateWithPrepend?f.outOfDateOutputFileName:f.oldestOutputFileName,newerProjectName:t});break;case F.UpToDateStatusType.UpstreamBlocked:M(e,N(e,f.upstreamProjectName))===r&&A(e,u)}R(e,u,F.ConfigFileProgramReloadLevel.None);break}}}}}(d,s,p,c,f,u,F.Debug.checkDefined(m)),y++;break;case E.Done:default:F.assertType(y)}F.Debug.assert(i<y)}var a}}function g(e,t,r){if(e.projectPendingBuild.size&&!p(t)){if(e.currentInvalidatedProject)return F.arrayIsEqualTo(e.currentInvalidatedProject.buildOrder,t)?e.currentInvalidatedProject:void 0;for(var n,i=e.options,a=e.projectPendingBuild,o=0;o<t.length;o++){var s=t[o],c=M(e,s),u=e.projectPendingBuild.get(c);if(void 0!==u){r&&(r=!1,re(e,t));var l,_=L(e,s,c);if(_){u===F.ConfigFileProgramReloadLevel.Full?(S(e,s,c,_),W(e,s,c,_),H(e,s,c,_)):u===F.ConfigFileProgramReloadLevel.Partial&&(l=F.getFileNamesFromConfigSpecs(_.configFileSpecs,F.getDirectoryPath(s),_.options,e.parseConfigFileHost),F.updateErrorForNoInputFiles(l,s,_.configFileSpecs,_.errors,F.canJsonReportNoInputFiles(_.raw)),_.fileNames=l.fileNames,H(e,s,c,_));var d=K(e,_,c);if(n=s,u=d,(l=e).options.verbose&&function(e,t,r){switch(r.type){case F.UpToDateStatusType.OutOfDateWithSelf:return Q(e,F.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,X(e,t),X(e,r.outOfDateOutputFileName),X(e,r.newerInputFileName)),0;case F.UpToDateStatusType.OutOfDateWithUpstream:return Q(e,F.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,X(e,t),X(e,r.outOfDateOutputFileName),X(e,r.newerProjectName)),0;case F.UpToDateStatusType.OutputMissing:return Q(e,F.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,X(e,t),X(e,r.missingOutputFileName)),0;case F.UpToDateStatusType.UpToDate:if(void 0!==r.newestInputFileTime)return Q(e,F.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,X(e,t),X(e,r.newestInputFileName||""),X(e,r.oldestOutputFileName||"")),0;break;case F.UpToDateStatusType.OutOfDateWithPrepend:return Q(e,F.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,X(e,t),X(e,r.newerProjectName)),0;case F.UpToDateStatusType.UpToDateWithUpstreamTypes:return Q(e,F.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,X(e,t)),0;case F.UpToDateStatusType.UpstreamOutOfDate:return Q(e,F.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,X(e,t),X(e,r.upstreamProjectName)),0;case F.UpToDateStatusType.UpstreamBlocked:return Q(e,r.upstreamProjectBlocked?F.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:F.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,X(e,t),X(e,r.upstreamProjectName)),0;case F.UpToDateStatusType.Unbuildable:return Q(e,F.Diagnostics.Failed_to_parse_file_0_Colon_1,X(e,t),r.reason),0;case F.UpToDateStatusType.TsVersionOutputOfDate:return Q(e,F.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,X(e,t),r.version,F.version),0;case F.UpToDateStatusType.ContainerOnly:case F.UpToDateStatusType.ComputingUpstream:break;default:F.assertType(r)}}(l,n,u),!i.force){if(d.type===F.UpToDateStatusType.UpToDate){$(e,c,F.getConfigFileParsingDiagnostics(_)),a.delete(c),i.dry&&Q(e,F.Diagnostics.Project_0_is_up_to_date,s);continue}if(d.type===F.UpToDateStatusType.UpToDateWithUpstreamTypes)return $(e,c,F.getConfigFileParsingDiagnostics(_)),function(e,t,r,n,i){var a=!0;return{kind:C.UpdateOutputFileStamps,project:t,projectPath:r,buildOrder:i,getCompilerOptions:function(){return n.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){m(e,n,r),a=!1},done:function(){return a&&m(e,n,r),B(e,r)}}}(e,s,c,_,t)}if(d.type!==F.UpToDateStatusType.UpstreamBlocked){if(d.type!==F.UpToDateStatusType.ContainerOnly)return j((l=d,n=_,u=(u=e).options,l.type!==F.UpToDateStatusType.OutOfDateWithPrepend||u.force||(0===n.fileNames.length||F.getConfigFileParsingDiagnostics(n).length||!F.isIncrementalCompilation(n.options))?C.Build:C.UpdateBundle),e,s,c,o,_,t);$(e,c,F.getConfigFileParsingDiagnostics(_)),a.delete(c)}else $(e,c,F.getConfigFileParsingDiagnostics(_)),a.delete(c),i.verbose&&Q(e,d.upstreamProjectBlocked?F.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:F.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,s,d.upstreamProjectName)}else ee(e,c),a.delete(c)}}}}function J(e,t,r){e=e.writeFileName;e&&t.options.listEmittedFiles&&e("TSFILE: "+r)}function z(e,t,r){t?(t&&e.writeFileName&&F.listFiles(t,e.writeFileName),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function U(e,t,r,n,i,a,o){var s=!(a&T.SyntaxErrors)&&r&&!F.outFile(r.getCompilerOptions());return $(e,t,i),e.projectStatus.set(t,{type:F.UpToDateStatusType.Unbuildable,reason:o+" errors"}),s?{buildResult:a,step:E.EmitBuildInfo}:(z(e,r,n),{buildResult:a,step:E.QueueReferencingProjects})}function V(e,t,r,n){if(r<(e.host.getModifiedTime(t)||F.missingFileModifiedTime))return{type:F.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:n,newerInputFileName:t}}function K(e,t,r){if(void 0===t)return{type:F.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var n=e.projectStatus.get(r);if(void 0!==n)return n;t=function(t,e,r){for(var n=void 0,i=P,a=t.host,o=0,s=e.fileNames;o<s.length;o++){var c=s[o];if(!a.fileExists(c))return{type:F.UpToDateStatusType.Unbuildable,reason:c+" does not exist"};var u=a.getModifiedTime(c)||F.missingFileModifiedTime;i<u&&(n=c,i=u)}if(!e.fileNames.length&&!F.canJsonReportNoInputFiles(e.raw))return{type:F.UpToDateStatusType.ContainerOnly};for(var l,_=F.getAllProjectOutputs(e,!a.useCaseSensitiveFileNames()),d="(none)",p=w,f="(none)",g=P,m=P,y=!1,h=0,v=_;h<v.length;h++){var b=v[h];if(!a.fileExists(b)){l=b;break}var x=a.getModifiedTime(b)||F.missingFileModifiedTime;if(x<p&&(p=x,d=b),x<i){y=!0;break}g<x&&(g=x,f=b),O(b)&&(m=I(m,a.getModifiedTime(b)||F.missingFileModifiedTime))}var D,S=!1,T=!1;if(e.projectReferences){t.projectStatus.set(r,{type:F.UpToDateStatusType.ComputingUpstream});for(var C=0,E=e.projectReferences;C<E.length;C++){var k=E[C],T=T||!!k.prepend,N=F.resolveProjectReferencePath(k),A=M(t,N),A=K(t,L(t,N,A),A);if(A.type!==F.UpToDateStatusType.ComputingUpstream&&A.type!==F.UpToDateStatusType.ContainerOnly){if(A.type===F.UpToDateStatusType.Unbuildable||A.type===F.UpToDateStatusType.UpstreamBlocked)return{type:F.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:k.path,upstreamProjectBlocked:A.type===F.UpToDateStatusType.UpstreamBlocked};if(A.type!==F.UpToDateStatusType.UpToDate)return{type:F.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:k.path};if(!(l||A.newestInputFileTime&&A.newestInputFileTime<=p)){if(!(A.newestDeclarationFileContentChangedTime&&A.newestDeclarationFileContentChangedTime<=p))return F.Debug.assert(void 0!==d,"Should have an oldest output filename here"),{type:F.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:d,newerProjectName:k.path};S=!0,D=k.path}}}}if(void 0!==l)return{type:F.UpToDateStatusType.OutputMissing,missingOutputFileName:l};if(y)return{type:F.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:d,newerInputFileName:n};if(_=V(t,e.options.configFilePath,p,d))return _;if(_=F.forEach(e.options.configFile.extendedSourceFiles||F.emptyArray,function(e){return V(t,e,p,d)}))return _;if(!t.buildInfoChecked.has(r)){t.buildInfoChecked.set(r,!0);e=F.getTsBuildInfoEmitOutputFilePath(e.options);if(e){e=t.readFileWithCache(e),e=e&&F.getBuildInfo(e);if(e&&(e.bundle||e.program)&&e.version!==F.version)return{type:F.UpToDateStatusType.TsVersionOutputOfDate,version:e.version}}}return T&&S?{type:F.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:d,newerProjectName:D}:{type:S?F.UpToDateStatusType.UpToDateWithUpstreamTypes:F.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:m,newestInputFileTime:i,newestOutputFileTime:g,newestInputFileName:n,newestOutputFileName:f,oldestOutputFileName:d}}(e,t,r);return e.projectStatus.set(r,t),t}function q(e,t,r,n,i){var a=e.host,o=F.getAllProjectOutputs(t,!a.useCaseSensitiveFileNames());if(!i||o.length!==i.size)for(var s=!!e.options.verbose,c=a.now?a.now():new Date,u=0,l=o;u<l.length;u++){var _=l[u];i&&i.has(k(e,_))||(s&&(s=!1,Q(e,n,t.options.configFilePath)),O(_)&&(r=I(r,a.getModifiedTime(_)||F.missingFileModifiedTime)),a.setModifiedTime(_,c))}return r}function m(e,t,r){if(e.options.dry)return Q(e,F.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath),0;var n=q(e,t,P,F.Diagnostics.Updating_output_timestamps_of_project_0);e.projectStatus.set(r,{type:F.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:n,oldestOutputFileName:F.getFirstProjectOutput(t,!e.host.useCaseSensitiveFileNames())})}function y(t,e,r,n){var i=d(t,e,n);if(!i)return F.ExitStatus.InvalidProject_OutputsSkipped;f(t,r);for(var a=!0,o=0;;){var s=g(t,i,a);if(!s)break;a=!1,s.done(r),t.diagnostics.has(s.projectPath)||o++}return _(t),te(t,i),function(e,t){if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=c(t);r<n.length;r++){var i=n[r],a=M(e,i),o=L(e,i,a);S(e,i,a,o),o&&(W(e,i,a,o),H(e,i,a,o))}}}(t,i),p(i)?F.ExitStatus.ProjectReferenceCycle_OutputsSkipped:i.some(function(e){return t.diagnostics.has(M(t,e))})?o?F.ExitStatus.DiagnosticsPresent_OutputsGenerated:F.ExitStatus.DiagnosticsPresent_OutputsSkipped:F.ExitStatus.Success}function h(e,t,r){t=d(e,t,r);if(!t)return F.ExitStatus.InvalidProject_OutputsSkipped;if(p(t))return Z(e,t.circularDiagnostics),F.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var r=e.options,n=e.host,i=r.dry?[]:void 0,a=0,o=t;a<o.length;a++){var s=o[a],c=M(e,s),s=L(e,s,c);if(void 0!==s)for(var u=0,l=F.getAllProjectOutputs(s,!n.useCaseSensitiveFileNames());u<l.length;u++){var _=l[u];n.fileExists(_)&&(i?i.push(_):(n.deleteFile(_),v(e,c,F.ConfigFileProgramReloadLevel.None)))}else ee(e,c)}return i&&Q(e,F.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,i.map(function(e){return"\r\n * "+e}).join("")),F.ExitStatus.Success}function v(e,t,r){e.host.getParsedCommandLine&&r===F.ConfigFileProgramReloadLevel.Partial&&(r=F.ConfigFileProgramReloadLevel.Full),r===F.ConfigFileProgramReloadLevel.Full&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,A(e,t),R(e,t,r),n(e)}function b(e,t,r){e.reportFileChangeDetected=!0,v(e,t,r),x(e)}function x(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(D,250,e))}function D(e){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Y(e,F.Diagnostics.File_change_detected_Starting_incremental_compilation));var t=u(e),r=g(e,t,!1);r&&(r.done(),e.projectPendingBuild.size)?e.watch&&!e.timerToBuildInvalidatedProject&&x(e):(_(e),te(e,t))}function S(e,t,r,n){e.watch&&!e.allWatchedConfigFiles.has(r)&&e.allWatchedConfigFiles.set(r,e.watchFile(e.hostWithWatch,t,function(){b(e,r,F.ConfigFileProgramReloadLevel.Full)},F.PollingInterval.High,null==n?void 0:n.watchOptions,F.WatchType.ConfigFile,t))}function W(r,n,i,a){r.watch&&F.updateWatchingWildcardDirectories(t(r.allWatchedWildcardDirectories,i),new F.Map(F.getEntries(a.configFileSpecs.wildcardDirectories)),function(t,e){return r.watchDirectory(r.hostWithWatch,t,function(e){F.isIgnoredFileFromWildCardWatching({watchedDirPath:k(r,t),fileOrDirectory:e,fileOrDirectoryPath:k(r,e),configFileName:n,configFileSpecs:a.configFileSpecs,currentDirectory:r.currentDirectory,options:a.options,program:r.builderPrograms.get(i),useCaseSensitiveFileNames:r.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return r.writeLog(e)}})||b(r,i,F.ConfigFileProgramReloadLevel.Partial)},e,null==a?void 0:a.watchOptions,F.WatchType.WildcardDirectory,n)})}function H(r,n,i,a){r.watch&&F.mutateMap(t(r.allWatchedInputFiles,i),F.arrayToMap(a.fileNames,function(e){return k(r,e)}),{createNewValue:function(e,t){return r.watchFilePath(r.hostWithWatch,t,function(){return b(r,i,F.ConfigFileProgramReloadLevel.None)},F.PollingInterval.Low,null==a?void 0:a.watchOptions,e,F.WatchType.SourceFile,n)},onDeleteValue:F.closeFileWatcher})}function G(e,t,r,n,i){var a=o(e,t,r,n,i);return{build:function(e,t){return y(a,e,t)},clean:function(e){return h(a,e)},buildReferences:function(e,t){return y(a,e,t,!0)},cleanReferences:function(e){return h(a,e,!0)},getNextInvalidatedProject:function(e){return f(a,e),g(a,u(a),!1)},getBuildOrder:function(){return u(a)},getUpToDateStatusOfProject:function(e){var t=N(a,e),e=M(a,t);return K(a,L(a,t,e),e)},invalidateProject:function(e,t){return v(a,e,t||F.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return D(a)},getAllParsedConfigs:function(){return F.arrayFrom(F.mapDefinedIterator(a.configFileCache.values(),function(e){return l(e)?e:void 0}))},close:function(){return e=a,F.clearMap(e.allWatchedConfigFiles,F.closeFileWatcher),F.clearMap(e.allWatchedWildcardDirectories,function(e){return F.clearMap(e,F.closeFileWatcherOf)}),void F.clearMap(e.allWatchedInputFiles,function(e){return F.clearMap(e,F.closeFileWatcher)});var e}}}function X(t,e){return F.convertToRelativePath(e,t.currentDirectory,function(e){return t.getCanonicalFileName(e)})}function Q(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e.host.reportSolutionBuilderStatus(F.createCompilerDiagnostic.apply(void 0,__spreadArrays([t],r)))}function Y(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e.hostWithWatch.onWatchStatusChange&&e.hostWithWatch.onWatchStatusChange(F.createCompilerDiagnostic.apply(void 0,__spreadArrays([t],r)),e.host.getNewLine(),e.baseCompilerOptions)}function Z(e,t){var r=e.host;t.forEach(function(e){return r.reportDiagnostic(e)})}function $(e,t,r){Z(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ee(e,t){$(e,t,[e.configFileCache.get(t)])}function te(t,e){var r,n,i;t.needsSummary&&(t.needsSummary=!1,r=t.watch||!!t.host.reportErrorSummary,n=t.diagnostics,i=0,p(e)?(re(t,e.buildOrder),Z(t,e.circularDiagnostics),r&&(i+=F.getErrorCountForSummary(e.circularDiagnostics))):(e.forEach(function(e){e=M(t,e);t.projectErrorsReported.has(e)||Z(t,n.get(e)||F.emptyArray)}),r&&n.forEach(function(e){return i+=F.getErrorCountForSummary(e)})),t.watch?Y(t,F.getWatchErrorSummaryDiagnosticMessage(i),i):t.host.reportErrorSummary&&t.host.reportErrorSummary(i))}function re(t,e){t.options.verbose&&Q(t,F.Diagnostics.Projects_in_this_build_Colon_0,e.map(function(e){return"\r\n    * "+X(t,e)}).join(""))}(e=T=T||{})[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors",F.isCircularBuildOrder=p,F.getBuildOrderFromAnyBuildOrder=c,F.createBuilderStatusReporter=i,F.createSolutionBuilderHost=function(e,t,r,n,i){return void 0===e&&(e=F.sys),(n=a(e,t,r,n)).reportErrorSummary=i,n},F.createSolutionBuilderWithWatchHost=function(e,t,r,n,i){return void 0===e&&(e=F.sys),n=a(e,t,r,n),i=F.createWatchHost(e,i),F.copyProperties(n,i),n},F.createSolutionBuilder=function(e,t,r){return G(!1,e,t,r)},F.createSolutionBuilderWithWatch=function(e,t,r,n){return G(!0,e,t,r,n)},(e=C=F.InvalidatedProjectKind||(F.InvalidatedProjectKind={}))[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",(e=E=E||{})[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"}(ts=ts||{}),function(t){var e,r;(e=t.server||(t.server={})).ActionSet="action::set",e.ActionInvalidate="action::invalidate",e.ActionPackageInstalled="action::packageInstalled",e.EventTypesRegistry="event::typesRegistry",e.EventBeginInstallTypes="event::beginInstallTypes",e.EventEndInstallTypes="event::endInstallTypes",e.EventInitializationFailed="event::initializationFailed",(r=e.Arguments||(e.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",r.LogFile="--logFile",r.EnableTelemetry="--enableTelemetry",r.TypingSafeListLocation="--typingSafeListLocation",r.TypesMapLocation="--typesMapLocation",r.NpmLocation="--npmLocation",r.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",e.hasArgument=function(e){return 0<=t.sys.args.indexOf(e)},e.findArgument=function(e){return 0<=(e=t.sys.args.indexOf(e))&&e<t.sys.args.length-1?t.sys.args[e+1]:void 0},e.nowString=function(){var e=new Date;return t.padLeft(e.getHours().toString(),2,"0")+":"+t.padLeft(e.getMinutes().toString(),2,"0")+":"+t.padLeft(e.getSeconds().toString(),2,"0")+"."+t.padLeft(e.getMilliseconds().toString(),3,"0")}}(ts=ts||{}),function(T){!function(t){function D(e,t){return new T.Version(T.getProperty(t,"ts"+T.versionMajorMinor)||T.getProperty(t,"latest")).compareTo(e.version)<=0}function S(e){return t.nodeCoreModules.has(e)?"node":e}var e;t.isTypingUpToDate=D,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=new T.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=S,t.loadSafeList=function(t,e){return e=T.readConfigFile(e,function(e){return t.readFile(e)}),new T.Map(T.getEntries(e.config))},t.loadTypesMap=function(t,e){if((e=T.readConfigFile(e,function(e){return t.readFile(e)})).config)return new T.Map(T.getEntries(e.config.simpleMap))},t.discoverTypings=function(c,u,e,t,r,n,i,a,o){if(!i||!i.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var l=new T.Map;e=T.mapDefined(e,function(e){e=T.normalizePath(e);if(T.hasJSFileExtension(e))return e});var s=[];i.include&&v(i.include,"Explicitly included types");var _=i.exclude||[],d=new T.Set(e.map(T.getDirectoryPath));d.add(t),d.forEach(function(e){b(T.combinePaths(e,"package.json"),s),b(T.combinePaths(e,"bower.json"),s),x(T.combinePaths(e,"bower_components"),s),x(T.combinePaths(e,"node_modules"),s)}),i.disableFilenameBasedTypeAcquisition||(i=e,(e=T.mapDefined(i,function(e){if(T.hasJSFileExtension(e)){e=T.removeFileExtension(T.getBaseFileName(e.toLowerCase())),e=T.removeMinAndVersionNumbers(e);return r.get(e)}})).length&&v(e,"Inferred typings from file names"),T.some(i,function(e){return T.fileExtensionIs(e,".jsx")})&&(u&&u("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))),a&&v(T.deduplicate(a.map(S),T.equateStringsCaseSensitive,T.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),n.forEach(function(e,t){var r=o.get(t);l.has(t)&&void 0===l.get(t)&&void 0!==r&&D(e,r)&&l.set(t,e.typingLocation)});for(var p=0,f=_;p<f.length;p++){var g=f[p];l.delete(g)&&u&&u("Typing for "+g+" is in exclude list, will be ignored.")}var m=[],y=[];return l.forEach(function(e,t){void 0!==e?y.push(e):m.push(t)}),_={cachedTypingPaths:y,newTypingNames:m,filesToWatch:s},u&&u("Result: "+JSON.stringify(_)),_;function h(e){l.has(e)||l.set(e,void 0)}function v(e,t){u&&u(t+": "+JSON.stringify(e)),T.forEach(e,h)}function b(e,t){c.fileExists(e)&&(t.push(e),t=T.readConfigFile(e,function(e){return c.readFile(e)}).config,v(T.flatMap([t.dependencies,t.devDependencies,t.optionalDependencies,t.peerDependencies],T.getOwnKeys),"Typing names in '"+e+"' dependencies"))}function x(e,t){if(t.push(e),c.directoryExists(e)){t=c.readDirectory(e,[".json"],void 0,void 0,2);u&&u("Searching for typing names in "+e+"; all files: "+JSON.stringify(t));for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n],o=T.normalizePath(a),s=T.getBaseFileName(o);"package.json"!==s&&"bower.json"!==s||(a=T.readConfigFile(o,function(e){return c.readFile(e)}).config,"package.json"===s&&a._requiredBy&&0===T.filter(a._requiredBy,function(e){return"#"===e[0]||"/"===e}).length||a.name&&((s=a.types||a.typings)?(o=T.getNormalizedAbsolutePath(s,T.getDirectoryPath(o)),u&&u("    Package '"+a.name+"' provides its own types."),l.set(a.name,o)):r.push(a.name)))}v(r,"    Found package names")}}},(e=t.NameValidationResult||(t.NameValidationResult={}))[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters";var a=214;function r(e,t,r,n){var i=n?"Scope":"Package";switch(t){case 1:return"'"+e+"':: "+i+" name '"+r+"' cannot be empty";case 2:return"'"+e+"':: "+i+" name '"+r+"' should be less than "+a+" characters";case 3:return"'"+e+"':: "+i+" name '"+r+"' cannot start with '.'";case 4:return"'"+e+"':: "+i+" name '"+r+"' cannot start with '_'";case 5:return"'"+e+"':: "+i+" name '"+r+"' contains non URI safe characters";case 0:return T.Debug.fail();default:throw T.Debug.assertNever(t)}}t.validatePackageName=function(e){return function e(t,r){if(!t)return 1;if(t.length>a)return 2;if(46===t.charCodeAt(0))return 3;if(95===t.charCodeAt(0))return 4;if(r){var n=/^@([^/]+)\/([^/]+)$/.exec(t);if(n){r=e(n[1],!1);if(0!==r)return{name:n[1],isScopeName:!0,result:r};var r=e(n[2],!1);return 0!==r?{name:n[2],isScopeName:!1,result:r}:0}}if(encodeURIComponent(t)!==t)return 5;return 0}(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?r(t,e.result,e.name,e.isScopeName):r(t,e,t,!1)}}(T.JsTyping||(T.JsTyping={}))}(ts=ts||{}),function(e){var t,r,n,i;function a(e){this.text=e}function o(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:r.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:n.Ignore,trimTrailingWhitespace:!0}}i=e.ScriptSnapshot||(e.ScriptSnapshot={}),a.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},a.prototype.getLength=function(){return this.text.length},a.prototype.getChangeRange=function(){},t=a,i.fromString=function(e){return new t(e)},(i=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[i.Dependencies=1]="Dependencies",i[i.DevDependencies=2]="DevDependencies",i[i.PeerDependencies=4]="PeerDependencies",i[i.OptionalDependencies=8]="OptionalDependencies",i[i.All=15]="All",(i=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[i.Off=0]="Off",i[i.On=1]="On",i[i.Auto=2]="Auto",(i=e.LanguageServiceMode||(e.LanguageServiceMode={}))[i.Semantic=0]="Semantic",i[i.PartialSemantic=1]="PartialSemantic",i[i.Syntactic=2]="Syntactic",e.emptyOptions={},(i=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",i.TwentyTwenty="2020",(i=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",i.definition="definition",i.reference="reference",i.writtenReference="writtenReference",(i=r=e.IndentStyle||(e.IndentStyle={}))[i.None=0]="None",i[i.Block=1]="Block",i[i.Smart=2]="Smart",(i=n=e.SemicolonPreference||(e.SemicolonPreference={})).Ignore="ignore",i.Insert="insert",i.Remove="remove",e.getDefaultFormatCodeSettings=o,e.testFormatSettings=o("\n"),(i=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[i.aliasName=0]="aliasName",i[i.className=1]="className",i[i.enumName=2]="enumName",i[i.fieldName=3]="fieldName",i[i.interfaceName=4]="interfaceName",i[i.keyword=5]="keyword",i[i.lineBreak=6]="lineBreak",i[i.numericLiteral=7]="numericLiteral",i[i.stringLiteral=8]="stringLiteral",i[i.localName=9]="localName",i[i.methodName=10]="methodName",i[i.moduleName=11]="moduleName",i[i.operator=12]="operator",i[i.parameterName=13]="parameterName",i[i.propertyName=14]="propertyName",i[i.punctuation=15]="punctuation",i[i.space=16]="space",i[i.text=17]="text",i[i.typeParameterName=18]="typeParameterName",i[i.enumMemberName=19]="enumMemberName",i[i.functionName=20]="functionName",i[i.regularExpressionLiteral=21]="regularExpressionLiteral",(i=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",i.Region="region",i.Code="code",i.Imports="imports",(i=e.OutputFileType||(e.OutputFileType={}))[i.JavaScript=0]="JavaScript",i[i.SourceMap=1]="SourceMap",i[i.Declaration=2]="Declaration",(i=e.EndOfLineState||(e.EndOfLineState={}))[i.None=0]="None",i[i.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",i[i.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",i[i.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",i[i.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",i[i.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",i[i.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(i=e.TokenClass||(e.TokenClass={}))[i.Punctuation=0]="Punctuation",i[i.Keyword=1]="Keyword",i[i.Operator=2]="Operator",i[i.Comment=3]="Comment",i[i.Whitespace=4]="Whitespace",i[i.Identifier=5]="Identifier",i[i.NumberLiteral=6]="NumberLiteral",i[i.BigIntLiteral=7]="BigIntLiteral",i[i.StringLiteral=8]="StringLiteral",i[i.RegExpLiteral=9]="RegExpLiteral",(i=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",i.warning="warning",i.keyword="keyword",i.scriptElement="script",i.moduleElement="module",i.classElement="class",i.localClassElement="local class",i.interfaceElement="interface",i.typeElement="type",i.enumElement="enum",i.enumMemberElement="enum member",i.variableElement="var",i.localVariableElement="local var",i.functionElement="function",i.localFunctionElement="local function",i.memberFunctionElement="method",i.memberGetAccessorElement="getter",i.memberSetAccessorElement="setter",i.memberVariableElement="property",i.constructorImplementationElement="constructor",i.callSignatureElement="call",i.indexSignatureElement="index",i.constructSignatureElement="construct",i.parameterElement="parameter",i.typeParameterElement="type parameter",i.primitiveType="primitive type",i.label="label",i.alias="alias",i.constElement="const",i.letElement="let",i.directory="directory",i.externalModuleName="external module name",i.jsxAttribute="JSX attribute",i.string="string",(i=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",i.publicMemberModifier="public",i.privateMemberModifier="private",i.protectedMemberModifier="protected",i.exportedModifier="export",i.ambientModifier="declare",i.staticModifier="static",i.abstractModifier="abstract",i.optionalModifier="optional",i.deprecatedModifier="deprecated",i.dtsModifier=".d.ts",i.tsModifier=".ts",i.tsxModifier=".tsx",i.jsModifier=".js",i.jsxModifier=".jsx",i.jsonModifier=".json",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(e=e.ClassificationType||(e.ClassificationType={}))[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(ts=ts||{}),function(g){function r(e){switch(e.kind){case 249:return g.isInJSFile(e)&&g.getJSDocEnumTag(e)?7:1;case 160:case 198:case 163:case 162:case 288:case 289:case 165:case 164:case 166:case 167:case 168:case 251:case 208:case 209:case 287:case 280:return 1;case 159:case 253:case 254:case 177:return 2;case 331:return void 0===e.name?3:2;case 291:case 252:return 3;case 256:return g.isAmbientModule(e)||1===g.getModuleInstanceState(e)?5:4;case 255:case 264:case 265:case 260:case 261:case 266:case 267:return 7;case 297:return 5}return 7}function n(e){for(;157===e.parent.kind;)e=e.parent;return g.isInternalModuleImportEqualsDeclaration(e.parent)&&e.parent.moduleReference===e}function i(e){return e.expression}function a(e){return e.tag}function o(e){return e.tagName}function s(e,t,r,n,i){e=(n?u:c)(e);return i&&(e=g.skipOuterExpressions(e)),!!e&&!!e.parent&&t(e.parent)&&r(e.parent)===e}function c(e){return _(e)?e.parent:e}function u(e){return _(e)||d(e)?e.parent:e}function t(e){var t;return g.isIdentifier(e)&&(null===(t=g.tryCast(e.parent,g.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===e}function l(e){var t;return g.isIdentifier(e)&&(null===(t=g.tryCast(e.parent,g.isLabeledStatement))||void 0===t?void 0:t.label)===e}function _(e){var t;return(null===(t=g.tryCast(e.parent,g.isPropertyAccessExpression))||void 0===t?void 0:t.name)===e}function d(e){var t;return(null===(t=g.tryCast(e.parent,g.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===e}g.scanner=g.createScanner(99,!0),(e=g.SemanticMeaning||(g.SemanticMeaning={}))[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",g.getMeaningFromDeclaration=r,g.getMeaningFromLocation=function(e){return 297===(e=F(e)).kind?1:266===e.parent.kind||272===e.parent.kind||265===e.parent.kind||262===e.parent.kind||g.isImportEqualsDeclaration(e.parent)&&e===e.parent.name?7:n(e)?function(e){e=157===e.kind?e:g.isQualifiedName(e.parent)&&e.parent.right===e?e.parent:void 0;return e&&260===e.parent.kind?7:4}(e):g.isDeclarationName(e)?r(e.parent):g.isEntityName(e)&&g.isJSDocNameReference(e.parent)?7:function(e){g.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent);switch(e.kind){case 107:return!g.isExpressionNode(e);case 187:return!0}switch(e.parent.kind){case 173:return!0;case 195:return!e.parent.isTypeOf;case 223:return!g.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)}return!1}(e)?2:function(e){var t=e,r=!0;if(157===t.parent.kind){for(;t.parent&&157===t.parent.kind;)t=t.parent;r=t.right===e}return 173===t.parent.kind&&!r}(t=e)||function(e){var t=e,r=!0;if(201===t.parent.kind){for(;t.parent&&201===t.parent.kind;)t=t.parent;r=t.name===e}if(r||223!==t.parent.kind||286!==t.parent.parent.kind)return!1;r=t.parent.parent.parent;return 252===r.kind&&116===t.parent.parent.token||253===r.kind&&93===t.parent.parent.token}(t)?4:g.isTypeParameterDeclaration(e.parent)?(g.Debug.assert(g.isJSDocTemplateTag(e.parent.parent)),2):g.isLiteralTypeNode(e.parent)?3:1;var t},g.isInRightSideOfInternalImportEqualsDeclaration=n,g.isCallExpressionTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isCallExpression,i,t,r)},g.isNewExpressionTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isNewExpression,i,t,r)},g.isCallOrNewExpressionTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isCallOrNewExpression,i,t,r)},g.isTaggedTemplateTag=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isTaggedTemplateExpression,a,t,r)},g.isDecoratorTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isDecorator,i,t,r)},g.isJsxOpeningLikeElementTagName=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isJsxOpeningLikeElement,o,t,r)},g.climbPastPropertyAccess=c,g.climbPastPropertyOrElementAccess=u,g.getTargetLabel=function(e,t){for(;e;){if(245===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},g.hasPropertyAccessExpressionWithName=function(e,t){return!!g.isPropertyAccessExpression(e.expression)&&e.expression.name.text===t},g.isJumpStatementTarget=t,g.isLabelOfLabeledStatement=l,g.isLabelName=function(e){return l(e)||t(e)},g.isTagName=function(e){var t;return(null===(t=g.tryCast(e.parent,g.isJSDocTag))||void 0===t?void 0:t.tagName)===e},g.isRightSideOfQualifiedName=function(e){var t;return(null===(t=g.tryCast(e.parent,g.isQualifiedName))||void 0===t?void 0:t.right)===e},g.isRightSideOfPropertyAccess=_,g.isArgumentExpressionOfElementAccess=d,g.isNameOfModuleDeclaration=function(e){var t;return(null===(t=g.tryCast(e.parent,g.isModuleDeclaration))||void 0===t?void 0:t.name)===e},g.isNameOfFunctionDeclaration=function(e){var t;return g.isIdentifier(e)&&(null===(t=g.tryCast(e.parent,g.isFunctionLike))||void 0===t?void 0:t.name)===e},g.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(e){switch(e.parent.kind){case 163:case 162:case 288:case 291:case 165:case 164:case 167:case 168:case 256:return g.getNameOfDeclaration(e.parent)===e;case 202:return e.parent.argumentExpression===e;case 158:return!0;case 191:return 189===e.parent.parent.kind;default:return!1}},g.isExpressionOfExternalModuleImportEqualsDeclaration=function(e){return g.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&g.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e},g.getContainerNode=function(e){for(g.isJSDocTypeAlias(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 297:case 165:case 164:case 251:case 208:case 167:case 168:case 252:case 253:case 255:case 256:return e}}},g.getNodeKind=function e(t){switch(t.kind){case 297:return g.isExternalModule(t)?"module":"script";case 256:return"module";case 252:case 221:return"class";case 253:return"interface";case 254:case 324:case 331:return"type";case 255:return"enum";case 249:return o(t);case 198:return o(g.getRootDeclaration(t));case 209:case 251:case 208:return"function";case 167:return"getter";case 168:return"setter";case 165:case 164:return"method";case 288:var r=t.initializer;return g.isFunctionLike(r)?"method":"property";case 163:case 162:case 289:case 290:return"property";case 171:return"index";case 170:return"construct";case 169:return"call";case 166:return"constructor";case 159:return"type parameter";case 291:return"enum member";case 160:return g.hasSyntacticModifier(t,92)?"property":"parameter";case 260:case 265:case 270:case 263:case 269:return"alias";case 216:var n=g.getAssignmentDeclarationKind(t),i=t.right;switch(n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=e(i);return""===a?"const":a;case 3:return g.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return g.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return g.assertType(n),""}case 78:return g.isImportClause(t.parent)?"alias":"";case 266:return""===(r=e(t.expression))?"const":r;default:return""}function o(e){return g.isVarConst(e)?"const":g.isLet(e)?"let":"var"}},g.isThis=function(e){switch(e.kind){case 107:return!0;case 78:return g.identifierIsThisKeyword(e)&&160===e.parent.kind;default:return!1}};var e,p=/^\/\/\/\s*</;function f(e,t){return y(e.pos,e.end,t)}function m(e,t){return e.pos<t&&t<e.end}function y(e,t,r){return e<=r.pos&&t>=r.end}function h(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function v(e,t,r){e=e.getChildren(r);if(e.length){r=g.last(e);if(r.kind===t)return!0;if(26===r.kind&&1!==e.length)return e[e.length-2].kind===t}return!1}function b(e,t,r){return!!x(e,t,r)}function x(e,t,r){return g.find(e.getChildren(r),function(e){return e.kind===t})}function D(t){var e=g.find(t.parent.getChildren(),function(e){return g.isSyntaxList(e)&&f(e,t)});return g.Debug.assert(!e||g.contains(e.getChildren(),t)),e}function S(e){return 87===e.kind}function T(e){return 83===e.kind}function C(e){return 97===e.kind}function E(e,t){if(!t)switch(e.kind){case 252:case 221:return function(e){if(g.isNamedDeclaration(e))return e.name;if(g.isClassDeclaration(e)){var t=g.find(e.modifiers,S);if(t)return t}if(g.isClassExpression(e)){e=g.find(e.getChildren(),T);if(e)return e}}(e);case 251:case 208:return function(e){if(g.isNamedDeclaration(e))return e.name;if(g.isFunctionDeclaration(e)){var t=g.find(e.modifiers,S);if(t)return t}if(g.isFunctionExpression(e)){e=g.find(e.getChildren(),C);if(e)return e}}(e)}if(g.isNamedDeclaration(e))return e.name}function k(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(g.isNamedImports(e.importClause.namedBindings)){var r=g.singleOrUndefined(e.importClause.namedBindings.elements);return r?r.name:void 0}if(g.isNamespaceImport(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function N(e,t){if(e.exportClause){if(g.isNamedExports(e.exportClause))return g.singleOrUndefined(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(g.isNamespaceExport(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function A(e,t){var r,n=e.parent;if((g.isModifier(e)&&(t||87!==e.kind)?g.contains(n.modifiers,e):83===e.kind?g.isClassDeclaration(n)||g.isClassExpression(e):97===e.kind?g.isFunctionDeclaration(n)||g.isFunctionExpression(e):117===e.kind?g.isInterfaceDeclaration(n):91===e.kind?g.isEnumDeclaration(n):149===e.kind?g.isTypeAliasDeclaration(n):140===e.kind||139===e.kind?g.isModuleDeclaration(n):99===e.kind?g.isImportEqualsDeclaration(n):134===e.kind?g.isGetAccessorDeclaration(n):146===e.kind&&g.isSetAccessorDeclaration(n))&&(r=E(n,t)))return r;if((112===e.kind||84===e.kind||118===e.kind)&&g.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(g.isIdentifier(i.name))return i.name}if(149===e.kind){if(g.isImportClause(n)&&n.isTypeOnly)if(r=k(n.parent,t))return r;if(g.isExportDeclaration(n)&&n.isTypeOnly)if(r=N(n,t))return r}if(126===e.kind){if(g.isImportSpecifier(n)&&n.propertyName||g.isExportSpecifier(n)&&n.propertyName||g.isNamespaceImport(n)||g.isNamespaceExport(n))return n.name;if(g.isExportDeclaration(n)&&n.exportClause&&g.isNamespaceExport(n.exportClause))return n.exportClause.name}if(99===e.kind&&g.isImportDeclaration(n)&&(r=k(n,t)))return r;if(92===e.kind){if(g.isExportDeclaration(n))if(r=N(n,t))return r;if(g.isExportAssignment(n))return g.skipOuterExpressions(n.expression)}if(143===e.kind&&g.isExternalModuleReference(n))return n.expression;if(153===e.kind&&(g.isImportDeclaration(n)||g.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((93===e.kind||116===e.kind)&&g.isHeritageClause(n)&&n.token===e.kind&&(r=function(e){if(1===e.types.length)return e.types[0].expression}(n)))return r;if(93===e.kind){if(g.isTypeParameterDeclaration(n)&&n.constraint&&g.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(g.isConditionalTypeNode(n)&&g.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(135===e.kind&&g.isInferTypeNode(n))return n.typeParameter.name;if(100===e.kind&&g.isTypeParameterDeclaration(n)&&g.isMappedTypeNode(n.parent))return n.name;if(138===e.kind&&g.isTypeOperatorNode(n)&&138===n.operator&&g.isTypeReferenceNode(n.type))return n.type.typeName;if(142===e.kind&&g.isTypeOperatorNode(n)&&142===n.operator&&g.isArrayTypeNode(n.type)&&g.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!t){if((102===e.kind&&g.isNewExpression(n)||113===e.kind&&g.isVoidExpression(n)||111===e.kind&&g.isTypeOfExpression(n)||130===e.kind&&g.isAwaitExpression(n)||124===e.kind&&g.isYieldExpression(n)||88===e.kind&&g.isDeleteExpression(n))&&n.expression)return g.skipOuterExpressions(n.expression);if((100===e.kind||101===e.kind)&&g.isBinaryExpression(n)&&n.operatorToken===e)return g.skipOuterExpressions(n.right);if(126===e.kind&&g.isAsExpression(n)&&g.isTypeReferenceNode(n.type))return n.type.typeName;if(100===e.kind&&g.isForInStatement(n)||156===e.kind&&g.isForOfStatement(n))return g.skipOuterExpressions(n.expression)}return e}function F(e){return A(e,!1)}function P(e,t,r){return I(e,t,!1,r,!1)}function w(e,t){return I(e,t,!0,void 0,!1)}function I(e,t,r,n,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if(t<(r?c.getFullStart():c.getStart(e,!0)))break;var u=c.getEnd();if(t<u||t===u&&(1===c.kind||i)){a=c;continue e}if(n&&u===t){c=M(t,e,c);if(c&&n(c))return c}}return a}}function O(n,e,i){return function r(e){if(g.isToken(e)&&e.pos===n.end)return e;return g.firstDefined(e.getChildren(i),function(e){var t=e.pos<=n.pos&&e.end>n.end||e.pos===n.end;return t&&q(e,i)?r(e):void 0})}(e)}function M(o,s,c,u){var e=function e(t){if(L(t)&&1!==t.kind)return t;var r=t.getChildren(s);var n=g.binarySearchKey(r,o,function(e,t){return t},function(e,t){return o<r[e].end?!r[e-1]||o>=r[e-1].end?0:1:-1});if(0<=n&&r[n]){var i=r[n];if(o<i.end){var a=i.getStart(s,!u),a=o<=a||!q(i,s)||j(i);if(a){var n=B(r,n,s);return n&&R(n,s)}return e(i)}}g.Debug.assert(void 0!==c||297===t.kind||1===t.kind||g.isJSDocCommentContainingNode(t));var t=B(r,r.length,s);return t&&R(t,s)}(c||s);return g.Debug.assert(!(e&&j(e))),e}function L(e){return g.isToken(e)&&!j(e)}function R(e,t){if(L(e))return e;var r=e.getChildren(t);if(0===r.length)return e;r=B(r,r.length,t);return r&&R(r,t)}function B(e,t,r){for(var n=t-1;0<=n;n--)if(j(e[n]))g.Debug.assert(0<n,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(e[n],r))return e[n]}function j(e){return g.isJsxText(e)&&e.containsOnlyTriviaWhiteSpaces}function J(e,t,r){for(var n=e.kind,i=0;;){var a=M(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function U(e,t,r){r=r.getTypeAtLocation(e);return g.isOptionalChain(e.parent)&&(r=z(r,g.isOptionalChainRoot(e.parent),!0)),(g.isNewExpression(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=t})}function V(e,t){for(var r=e,n=0,i=0;r;){switch(r.kind){case 29:if((r=M(r.getFullStart(),t))&&28===r.kind&&(r=M(r.getFullStart(),t)),!r||!g.isIdentifier(r))return;if(!n)return g.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};n--;break;case 49:n=3;break;case 48:n=2;break;case 31:n++;break;case 19:if(!(r=J(r,18,t)))return;break;case 21:if(!(r=J(r,20,t)))return;break;case 23:if(!(r=J(r,22,t)))return;break;case 27:i++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 138:case 24:case 51:case 57:case 58:break;default:if(g.isTypeNode(r))break;return}r=M(r.getFullStart(),t)}}function K(e,t,r){return g.formatting.getRangeOfEnclosingComment(e,t,void 0,r)}function q(e,t){return 1===e.kind?e.jsDoc:0!==e.getWidth(t)}function W(e,t,r){t=K(e,t,void 0);return!!t&&r===p.test(e.text.substring(t.pos,t.end))}function H(e,t,r){return g.createTextSpanFromBounds(e.getStart(t),(r||e).getEnd())}function G(e){if(!e.isUnterminated)return g.createTextSpanFromBounds(e.getStart()+1,e.getEnd()-1)}function X(e,t){return{span:e,newText:t}}function Q(e){return 149===e.kind}function Y(t,e){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return e.getCurrentDirectory()},readFile:g.maybeBind(e,e.readFile),useCaseSensitiveFileNames:g.maybeBind(e,e.useCaseSensitiveFileNames),getSymlinkCache:g.maybeBind(e,e.getSymlinkCache)||t.getSymlinkCache,getGlobalTypingsCacheLocation:g.maybeBind(e,e.getGlobalTypingsCacheLocation),getSourceFiles:function(){return t.getSourceFiles()},redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)}}}function Z(e,t){return __assign(__assign({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function $(e,t,r,n,i){return g.factory.createImportDeclaration(void 0,void 0,e||t?g.factory.createImportClause(!!i,e,t&&t.length?g.factory.createNamedImports(t):void 0):void 0,"string"==typeof r?ee(r,n):r)}function ee(e,t){return g.factory.createStringLiteral(e,0===t)}function te(e,t){return g.isStringDoubleQuoted(e,t)?1:0}function re(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;t=e.imports&&g.find(e.imports,function(e){return g.isStringLiteral(e)&&!g.nodeIsSynthesized(e.parent)});return t?te(t,e):1}function ne(e){return"default"!==e.escapedName?e.escapedName:g.firstDefined(e.declarations,function(e){e=g.getNameOfDeclaration(e);return e&&78===e.kind?e.escapedText:void 0})}function ie(e,n,i,a){var t=new g.Map;return function r(e){if(!(96&e.flags&&g.addToSeen(t,g.getSymbolId(e))))return;return g.firstDefined(e.declarations,function(e){return g.firstDefined(g.getAllSuperTypeNodes(e),function(e){var t=i.getTypeAtLocation(e),e=t&&t.symbol&&i.getPropertyOfType(t,n);return t&&e&&(g.firstDefined(i.getRootSymbols(e),a)||r(t.symbol))})})}(e)}function ae(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function oe(e){return e.declarations&&0<e.declarations.length&&160===e.declarations[0].kind}g.getLineStartPositionForPosition=function(e,t){return g.getLineStarts(t)[t.getLineAndCharacterOfPosition(e).line]},g.rangeContainsRange=f,g.rangeContainsRangeExclusive=function(e,t){return m(e,t.pos)&&m(e,t.end)},g.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},g.rangeContainsPositionExclusive=m,g.startEndContainsRange=y,g.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},g.rangeOverlapsWithStartEnd=function(e,t,r){return h(e.pos,e.end,t,r)},g.nodeOverlapsWithStartEnd=function(e,t,r,n){return h(e.getStart(t),e.end,r,n)},g.startEndOverlapsWithStartEnd=h,g.positionBelongsToNode=function(e,t,r){return g.Debug.assert(e.pos<=t),t<e.end||!function e(t,r){if(void 0===t||g.nodeIsMissing(t))return!1;switch(t.kind){case 252:case 253:case 255:case 200:case 196:case 177:case 230:case 257:case 258:case 264:case 268:return v(t,19,r);case 287:return e(t.block,r);case 204:if(!t.arguments)return!0;case 203:case 207:case 186:return v(t,21,r);case 174:case 175:return e(t.type,r);case 166:case 167:case 168:case 251:case 208:case 165:case 164:case 170:case 169:case 209:return t.body?e(t.body,r):t.type?e(t.type,r):b(t,21,r);case 256:return!!t.body&&e(t.body,r);case 234:return t.elseStatement?e(t.elseStatement,r):e(t.thenStatement,r);case 233:return e(t.expression,r)||b(t,26,r);case 199:case 197:case 202:case 158:case 179:return v(t,23,r);case 171:return t.type?e(t.type,r):b(t,23,r);case 284:case 285:return!1;case 237:case 238:case 239:case 236:return e(t.statement,r);case 235:return b(t,114,r)?v(t,21,r):e(t.statement,r);case 176:return e(t.exprName,r);case 211:case 210:case 212:case 219:case 220:var n=t;return e(n.expression,r);case 205:return e(t.template,r);case 218:var n=g.lastOrUndefined(t.templateSpans);return e(n,r);case 228:return g.nodeIsPresent(t.literal);case 267:case 261:return g.nodeIsPresent(t.moduleSpecifier);case 214:return e(t.operand,r);case 216:return e(t.right,r);case 217:return e(t.whenFalse,r);default:return!0}}(e,r)},g.findListItemInfo=function(e){var t=D(e);if(t){var r=t.getChildren();return{listItemIndex:g.indexOfNode(r,e),list:t}}},g.hasChildOfKind=b,g.findChildOfKind=x,g.findContainingList=D,g.getAdjustedReferenceLocation=F,g.getAdjustedRenameLocation=function(e){return A(e,!0)},g.getTouchingPropertyName=function(e,t){return P(e,t,function(e){return g.isPropertyNameLiteral(e)||g.isKeyword(e.kind)||g.isPrivateIdentifier(e)})},g.getTouchingToken=P,g.getTokenAtPosition=w,g.findTokenOnLeftOfPosition=function(e,t){var r=w(e,t);return g.isToken(r)&&t>r.getStart(e)&&t<r.getEnd()?r:M(t,e)},g.findNextToken=O,g.findPrecedingToken=M,g.isInString=function(e,t,r){if(void 0===r&&(r=M(t,e)),r&&g.isStringTextContainingNode(r)){var n=r.getStart(e),e=r.getEnd();if(n<t&&t<e)return!0;if(t===e)return!!r.isUnterminated}return!1},g.isInsideJsxElementOrAttribute=function(e,t){return!!(t=w(e,t))&&(11===t.kind||(29===t.kind&&11===t.parent.kind||(29===t.kind&&283===t.parent.kind||(!(!t||19!==t.kind||283!==t.parent.kind)||29===t.kind&&276===t.parent.kind))))},g.isInTemplateString=function(e,t){var r=w(e,t);return g.isTemplateLiteralKind(r.kind)&&t>r.getStart(e)},g.isInJSXText=function(e,t){return t=w(e,t),!!g.isJsxText(t)||(!(18!==t.kind||!g.isJsxExpression(t.parent)||!g.isJsxElement(t.parent.parent))||!(29!==t.kind||!g.isJsxOpeningLikeElement(t.parent)||!g.isJsxElement(t.parent.parent)))},g.isInsideJsxElement=function(t,r){return function(e){for(;e;)if(274<=e.kind&&e.kind<=283||11===e.kind||29===e.kind||31===e.kind||78===e.kind||19===e.kind||18===e.kind||43===e.kind)e=e.parent;else{if(273!==e.kind)return!1;if(r>e.getStart(t))return!0;e=e.parent}return!1}(w(t,r))},g.findPrecedingMatchingToken=J,g.removeOptionality=z,g.isPossiblyTypeArgumentPosition=function e(t,r,n){t=V(t,r);return void 0!==t&&(g.isPartOfTypeNode(t.called)||0!==U(t.called,t.nTypeArguments,n).length||e(t.called,r,n))},g.getPossibleGenericSignatures=U,g.getPossibleTypeArgumentsInfo=V,g.isInComment=K,g.hasDocComment=function(e,t){return t=w(e,t),!!g.findAncestor(t,g.isJSDoc)},g.getNodeModifiers=function(e){var t=g.isDeclaration(e)?g.getCombinedNodeFlagsAlwaysIncludeJSDoc(e):0,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"),8192&t&&r.push("deprecated"),8388608&e.flags&&r.push("declare"),266===e.kind&&r.push("export"),0<r.length?r.join(","):""},g.getTypeArgumentOrTypeParameterList=function(e){return 173===e.kind||203===e.kind?e.typeArguments:g.isFunctionLike(e)||252===e.kind||253===e.kind?e.typeParameters:void 0},g.isComment=function(e){return 2===e||3===e},g.isStringOrRegularExpressionOrTemplateLiteral=function(e){return!(10!==e&&13!==e&&!g.isTemplateLiteralKind(e))},g.isPunctuation=function(e){return 18<=e&&e<=77},g.isInsideTemplateLiteral=function(e,t,r){return g.isTemplateLiteralKind(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end},g.isAccessibilityModifier=function(e){switch(e){case 122:case 120:case 121:return!0}return!1},g.cloneCompilerOptions=function(e){var t=g.clone(e);return g.setConfigFileInOptions(t,e&&e.configFile),t},g.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(199===t.kind||200===t.kind){if(216===t.parent.kind&&t.parent.left===t&&62===t.parent.operatorToken.kind)return!0;if(239===t.parent.kind&&t.parent.initializer===t)return!0;if(e((288===t.parent.kind?t.parent:t).parent))return!0}return!1},g.isInReferenceComment=function(e,t){return W(e,t,!0)},g.isInNonReferenceComment=function(e,t){return W(e,t,!1)},g.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return G(e);default:return H(e)}},g.createTextSpanFromNode=H,g.createTextSpanFromStringLiteralLikeContent=G,g.createTextRangeFromNode=function(e,t){return g.createRange(e.getStart(t),e.end)},g.createTextSpanFromRange=function(e){return g.createTextSpanFromBounds(e.pos,e.end)},g.createTextRangeFromSpan=function(e){return g.createRange(e.start,e.start+e.length)},g.createTextChangeFromStartLength=function(e,t,r){return X(g.createTextSpan(e,t),r)},g.createTextChange=X,g.typeKeywords=[128,127,155,131,94,138,141,103,144,145,142,147,148,109,113,150,151,152],g.isTypeKeyword=function(e){return g.contains(g.typeKeywords,e)},g.isTypeKeywordToken=Q,g.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},g.nodeSeenTracker=function(){var t=[];return function(e){e=g.getNodeId(e);return!t[e]&&(t[e]=!0)}},g.getSnapshotText=function(e){return e.getText(0,e.getLength())},g.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},g.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},g.getNameFromPropertyName=function(e){return 158===e.kind?g.isStringOrNumericLiteralLike(e.expression)?e.expression.text:void 0:g.isPrivateIdentifier(e)?g.idText(e):g.getTextOfIdentifierOrLiteral(e)},g.programContainsModules=function(t){return t.getSourceFiles().some(function(e){return!(e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e)||!e.externalModuleIndicator&&!e.commonJsModuleIndicator)})},g.programContainsEs6Modules=function(t){return t.getSourceFiles().some(function(e){return!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator})},g.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||2<=e.target||!!e.noEmit},g.createModuleSpecifierResolutionHost=Y,g.getModuleSpecifierResolverHost=Z,g.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?$(e,t,r,n):void 0},g.makeImport=$,g.makeStringLiteral=ee,(e=g.QuotePreference||(g.QuotePreference={}))[e.Single=0]="Single",e[e.Double=1]="Double",g.quotePreferenceFromString=te,g.getQuotePreference=re,g.getQuoteFromPreference=function(e){switch(e){case 0:return"'";case 1:return'"';default:return g.Debug.assertNever(e)}},g.symbolNameNoDefault=function(e){return void 0===(e=ne(e))?void 0:g.unescapeLeadingUnderscores(e)},g.symbolEscapedNameNoDefault=ne,g.isObjectBindingElementWithoutPropertyName=function(e){return g.isBindingElement(e)&&g.isObjectBindingPattern(e.parent)&&g.isIdentifier(e.name)&&!e.propertyName},g.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},g.getPropertySymbolsFromBaseTypes=ie,g.isMemberSymbolInBaseType=function(e,t){return ie(e.parent,e.name,t,function(e){return!0})||!1},g.getParentNodeInSpan=function(e,t,r){var n,i,a;if(e)for(;e.parent;){if(g.isSourceFile(e.parent)||(n=r,i=e.parent,a=t,!(g.textSpanContainsPosition(n,i.getStart(a))&&i.getEnd()<=g.textSpanEnd(n))))return e;e=e.parent}},g.findModifier=function(e,t){return e.modifiers&&g.find(e.modifiers,function(e){return e.kind===t})},g.insertImports=function(e,t,r,n){var i=232===(g.isArray(r)?r[0]:r).kind?g.isRequireVariableStatement:g.isAnyImportSyntax,a=g.filter(t.statements,i),i=g.isArray(r)?g.stableSort(r,g.OrganizeImports.compareImportsOrRequireStatements):[r];if(a.length)if(a&&g.OrganizeImports.importsAreSorted(a))for(var o=0,s=i;o<s.length;o++){var c,u=s[o],l=g.OrganizeImports.getImportDeclarationInsertionIndex(a,u);0===l?(c=a[0]===t.statements[0]?{leadingTriviaOption:g.textChanges.LeadingTriviaOption.Exclude}:{},e.insertNodeBefore(t,a[0],u,!1,c)):(l=a[l-1],e.insertNodeAfter(t,l,u))}else{r=g.lastOrUndefined(a);r?e.insertNodesAfter(t,r,i):e.insertNodesAtTopOfFile(t,i,n)}else e.insertNodesAtTopOfFile(t,i,n)},g.getTypeKeywordOfTypeOnlyImport=function(e,t){return g.Debug.assert(e.isTypeOnly),g.cast(e.getChildAt(0,t),Q)},g.textSpansEqual=ae,g.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&ae(e.textSpan,t.textSpan)},g.forEachUnique=function(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},g.isTextWhiteSpaceLike=function(e,t,r){for(var n=t;n<r;n++)if(!g.isWhiteSpaceLike(e.charCodeAt(n)))return!1;return!0},g.isFirstDeclarationOfSymbolParameter=oe;var se=function(){var r,t,n,i,a=10*g.defaultMaximumTruncationLength;c();function e(e){return s(e,g.SymbolDisplayPartKind.text)}return{displayParts:function(){var e=r.length&&r[r.length-1].text;return a<i&&e&&"..."!==e&&(g.isWhiteSpaceLike(e.charCodeAt(e.length-1))||r.push(ue(" ",g.SymbolDisplayPartKind.space)),r.push(ue("...",g.SymbolDisplayPartKind.punctuation))),r},writeKeyword:function(e){return s(e,g.SymbolDisplayPartKind.keyword)},writeOperator:function(e){return s(e,g.SymbolDisplayPartKind.operator)},writePunctuation:function(e){return s(e,g.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(e){return s(e,g.SymbolDisplayPartKind.punctuation)},writeSpace:function(e){return s(e,g.SymbolDisplayPartKind.space)},writeStringLiteral:function(e){return s(e,g.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(e){return s(e,g.SymbolDisplayPartKind.parameterName)},writeProperty:function(e){return s(e,g.SymbolDisplayPartKind.propertyName)},writeLiteral:function(e){return s(e,g.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){if(a<i)return;o(),i+=e.length,r.push(ce(e,t))},writeLine:function(){if(a<i)return;i+=1,r.push(de()),t=!0},write:e,writeComment:e,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:g.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:c,trackSymbol:g.noop,reportInaccessibleThisError:g.noop,reportInaccessibleUniqueSymbolError:g.noop,reportPrivateInBaseOfClassExpression:g.noop};function o(){var e;a<i||t&&((e=g.getIndentString(n))&&(i+=e.length,r.push(ue(e,g.SymbolDisplayPartKind.space))),t=!1)}function s(e,t){a<i||(o(),i+=e.length,r.push(ue(e,t)))}function c(){r=[],t=!0,i=n=0}}();function ce(e,t){return ue(e,function(e){var t=e.flags;{if(3&t)return oe(e)?g.SymbolDisplayPartKind.parameterName:g.SymbolDisplayPartKind.localName;if(4&t)return g.SymbolDisplayPartKind.propertyName;if(32768&t)return g.SymbolDisplayPartKind.propertyName;if(65536&t)return g.SymbolDisplayPartKind.propertyName;if(8&t)return g.SymbolDisplayPartKind.enumMemberName;if(16&t)return g.SymbolDisplayPartKind.functionName;if(32&t)return g.SymbolDisplayPartKind.className;if(64&t)return g.SymbolDisplayPartKind.interfaceName;if(384&t)return g.SymbolDisplayPartKind.enumName;if(1536&t)return g.SymbolDisplayPartKind.moduleName;if(8192&t)return g.SymbolDisplayPartKind.methodName;if(262144&t)return g.SymbolDisplayPartKind.typeParameterName;if(524288&t)return g.SymbolDisplayPartKind.aliasName;if(2097152&t)return g.SymbolDisplayPartKind.aliasName}return g.SymbolDisplayPartKind.text}(t))}function ue(e,t){return{text:e,kind:g.SymbolDisplayPartKind[t]}}function le(e){return ue(g.tokenToString(e),g.SymbolDisplayPartKind.keyword)}function _e(e){return ue(e,g.SymbolDisplayPartKind.text)}function de(){return ue("\n",g.SymbolDisplayPartKind.lineBreak)}function pe(e){try{return e(se),se.displayParts()}finally{se.clear()}}function fe(e){return 0!=(33554432&e.flags)}function ge(e,t){void 0===t&&(t=!0);e=e&&ye(e);return e&&!t&&he(e),e}function me(e,t,r){var n=r(e);return n?g.setOriginalNode(n,e):n=ye(e,r),n&&!t&&he(n),n}function ye(e,t){var r=t?g.visitEachChild(e,function(e){return me(e,!0,t)},g.nullTransformationContext):g.visitEachChild(e,ge,g.nullTransformationContext);if(r!==e)return r.parent=void 0,r;r=g.isStringLiteral(e)?g.setOriginalNode(g.factory.createStringLiteralFromNode(e),e):g.isNumericLiteral(e)?g.setOriginalNode(g.factory.createNumericLiteral(e.text,e.numericLiteralFlags),e):g.factory.cloneNode(e);return g.setTextRange(r,e)}function he(e){ve(e),be(e)}function ve(e){xe(e,512,De)}function be(e){xe(e,1024,g.getLastChild)}function xe(e,t,r){g.addEmitFlags(e,t);e=r(e);e&&xe(e,t,r)}function De(e){return e.forEachChild(function(e){return e})}function Se(e,t,r,n,i){g.forEachLeadingCommentRange(r.text,e.pos,Ee(t,r,n,i,g.addSyntheticLeadingComment))}function Te(e,t,r,n,i){g.forEachTrailingCommentRange(r.text,e.end,Ee(t,r,n,i,g.addSyntheticTrailingComment))}function Ce(e,t,r,n,i){g.forEachTrailingCommentRange(r.text,e.pos,Ee(t,r,n,i,g.addSyntheticLeadingComment))}function Ee(i,a,o,s,c){return function(e,t,r,n){3===r?(e+=2,t-=2):e+=2,c(i,o||r,a.text.slice(e,t),void 0!==s?s:n)}}function ke(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ne(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ae(e){return 169===e||170===e||171===e||162===e||164===e}function Fe(e){return 251===e||166===e||165===e||167===e||168===e}function Pe(e){return 256===e}function we(e){return 232===e||233===e||235===e||240===e||241===e||242===e||246===e||248===e||163===e||254===e||261===e||260===e||267===e||259===e||266===e}function Ie(e,t){return Me(e,e.fileExists,t)}function Oe(e){try{return e()}catch(e){return}}function Me(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Oe(function(){return t&&t.apply(e,r)})}function Le(e,t){if(t.readFile){var r=function(e){try{return JSON.parse(e)}catch(e){return}}(t.readFile(e)||""),n={};if(r)for(var i=0,a=["dependencies","devDependencies","optionalDependencies","peerDependencies"];i<a.length;i++){var o=a[i],s=r[o];if(s){var c,u=new g.Map;for(c in s)u.set(c,s[c]);n[o]=u}}var l=[[1,n.dependencies],[2,n.devDependencies],[8,n.optionalDependencies],[4,n.peerDependencies]];return __assign(__assign({},n),{parseable:!!r,fileName:e,get:_,has:function(e,t){return!!_(e,t)}})}function _(e,t){void 0===t&&(t=15);for(var r=0,n=l;r<n.length;r++){var i=n[r],a=i[0],i=i[1];if(i&&t&a){i=i.get(e);if(void 0!==i)return i}}}}function Re(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Be(e){var t=e.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(g.isInJSFile(e)||!g.findAncestor(e,g.isGlobalScopeAugmentation))}g.symbolPart=ce,g.displayPart=ue,g.spacePart=function(){return ue(" ",g.SymbolDisplayPartKind.space)},g.keywordPart=le,g.punctuationPart=function(e){return ue(g.tokenToString(e),g.SymbolDisplayPartKind.punctuation)},g.operatorPart=function(e){return ue(g.tokenToString(e),g.SymbolDisplayPartKind.operator)},g.textOrKeywordPart=function(e){var t=g.stringToToken(e);return void 0===t?_e(e):le(t)},g.textPart=_e,g.getNewLineOrDefaultFromHost=function(e,t){return(null==t?void 0:t.newLineCharacter)||(null===(t=e.getNewLine)||void 0===t?void 0:t.call(e))||"\r\n"},g.lineBreakPart=de,g.mapToDisplayParts=pe,g.typeToDisplayParts=function(t,r,n,i){return void 0===i&&(i=0),pe(function(e){t.writeType(r,n,17408|i,e)})},g.symbolToDisplayParts=function(t,r,n,i,a){return void 0===a&&(a=0),pe(function(e){t.writeSymbol(r,n,i,8|a,e)})},g.signatureToDisplayParts=function(t,r,n,i){return void 0===i&&(i=0),i|=25632,pe(function(e){t.writeSignature(r,n,i,void 0,e)})},g.isImportOrExportSpecifierName=function(e){return!!e.parent&&g.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e},g.getScriptKind=function(e,t){return g.ensureScriptKind(e,t.getScriptKind&&t.getScriptKind(e))},g.getSymbolTarget=function(e,t){for(var r=e;0!=(2097152&r.flags)||fe(r)&&r.target;)r=fe(r)&&r.target?r.target:g.skipAlias(r,t);return r},g.getUniqueSymbolId=function(e,t){return g.getSymbolId(g.skipAlias(e,t))},g.getFirstNonSpaceCharacterPosition=function(e,t){for(;g.isWhiteSpaceLike(e.charCodeAt(t));)t+=1;return t},g.getPrecedingNonSpaceCharacterPosition=function(e,t){for(;-1<t&&g.isWhiteSpaceSingleLine(e.charCodeAt(t));)--t;return t+1},g.getSynthesizedDeepClone=ge,g.getSynthesizedDeepCloneWithReplacements=me,g.getSynthesizedDeepClones=function(e,t){return void 0===t&&(t=!0),e&&g.factory.createNodeArray(e.map(function(e){return ge(e,t)}),e.hasTrailingComma)},g.getSynthesizedDeepClonesWithReplacements=function(e,t,r){return g.factory.createNodeArray(e.map(function(e){return me(e,t,r)}),e.hasTrailingComma)},g.suppressLeadingAndTrailingTrivia=he,g.suppressLeadingTrivia=ve,g.suppressTrailingTrivia=be,g.copyComments=function(e,t){var r=e.getSourceFile();(!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,r.text)?Ce:Se)(e,t,r),Te(e,t,r)},g.getUniqueName=function(e,t){for(var r=e,n=1;!g.isFileLevelUniqueName(t,r);n++)r=e+"_"+n;return r},g.getRenameLocation=function(e,t,r,n){for(var i=0,a=-1,o=0,s=e;o<s.length;o++){var c=s[o],u=c.fileName,c=c.textChanges;g.Debug.assert(u===t);for(var l=0,_=c;l<_.length;l++){var d=_[l],p=d.span,f=d.newText,d=function(e,t){if(g.startsWith(e,t))return 0;var r=e.indexOf(" "+t);-1===r&&(r=e.indexOf("."+t));-1===r&&(r=e.indexOf('"'+t));return-1===r?-1:r+1}(f,r);if(-1!==d&&(a=p.start+i+d,!n))return a;i+=f.length-p.length}}return g.Debug.assert(n),g.Debug.assert(0<=a),a},g.copyLeadingComments=Se,g.copyTrailingComments=Te,g.copyTrailingAsLeadingComments=Ce,g.needsParentheses=function(e){return g.isBinaryExpression(e)&&27===e.operatorToken.kind||g.isObjectLiteralExpression(e)},g.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 204:return t.getContextualType(r);case 216:var n=r.left,i=r.operatorToken,a=r.right;return ke(i.kind)?t.getTypeAtLocation(e===a?n:a):t.getContextualType(e);case 284:return r.expression===e?Ne(r,t):void 0;default:return t.getContextualType(e)}},g.quote=function(e,t,r){return t=re(e,t),r=JSON.stringify(r),0===t?"'"+g.stripQuotes(r).replace("'","\\'").replace('\\"','"')+"'":r},g.isEqualityOperatorKind=ke,g.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 218:case 205:return!0;default:return!1}},g.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},g.getSwitchedType=Ne,g.ANONYMOUS="anonymous function",g.getTypeNodeIfAccessible=function(e,t,r,n){function i(){o=!1}var a=r.getTypeChecker(),o=!0,n=a.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){o=o&&0===a.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:i,reportPrivateInBaseOfClassExpression:i,reportInaccessibleUniqueSymbolError:i,moduleResolverHost:Z(r,n)});return o?n:void 0},g.syntaxRequiresTrailingCommaOrSemicolonOrASI=Ae,g.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Fe,g.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Pe,g.syntaxRequiresTrailingSemicolonOrASI=we,g.syntaxMayBeASICandidate=g.or(Ae,Fe,Pe,we),g.positionIsASICandidate=function(t,e,r){return!!(e=g.findAncestor(e,function(e){return e.end!==t?"quit":g.syntaxMayBeASICandidate(e.kind)}))&&function(e,t){var r=e.getLastToken(t);if(r&&26===r.kind)return!1;if(Ae(e.kind)){if(r&&27===r.kind)return!1}else if(Pe(e.kind)){if((n=g.last(e.getChildren(t)))&&g.isModuleBlock(n))return!1}else if(Fe(e.kind)){if((n=g.last(e.getChildren(t)))&&g.isFunctionBlock(n))return!1}else if(!we(e.kind))return!1;if(235===e.kind)return!0;var n=O(e,g.findAncestor(e,function(e){return!e.parent}),t);return!n||19===n.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(n.getStart(t)).line}(e,r)},g.probablyUsesSemicolons=function(n){var i=0,a=0;return g.forEachChild(n,function e(t){var r;return we(t.kind)&&((r=t.getLastToken(n))&&26===r.kind?i++:a++),5<=i+a||g.forEachChild(t,e)}),0===i&&a<=1||.2<i/a},g.tryGetDirectories=function(e,t){return Me(e,e.getDirectories,t)||[]},g.tryReadDirectory=function(e,t,r,n,i){return Me(e,e.readDirectory,t,r,n,i)||g.emptyArray},g.tryFileExists=Ie,g.tryDirectoryExists=function(e,t){return Oe(function(){return g.directoryProbablyExists(t,e)})||!1},g.tryAndIgnoreErrors=Oe,g.tryIOAndConsumeErrors=Me,g.findPackageJsons=function(e,t,r){var n=[];return g.forEachAncestorDirectory(e,function(e){if(e===r)return!0;e=g.combinePaths(e,"package.json");Ie(t,e)&&n.push(e)}),n},g.findPackageJson=function(e,t){var r;return g.forEachAncestorDirectory(e,function(e){return"node_modules"===e||(!!(r=g.findConfigFile(e,function(e){return Ie(t,e)},"package.json"))||void 0)}),r},g.getPackageJsonsVisibleToFile=function(e,t){if(!t.fileExists)return[];var r=[];return g.forEachAncestorDirectory(g.getDirectoryPath(e),function(e){e=g.combinePaths(e,"package.json");!t.fileExists(e)||(e=Le(e,t))&&r.push(e)}),r},g.createPackageJsonInfo=Le,g.consumesNodeCoreModules=function(e){return g.some(e.imports,function(e){e=e.text;return g.JsTyping.nodeCoreModules.has(e)})},g.isInsideNodeModules=function(e){return g.contains(g.getPathComponents(e),"node_modules")},g.isDiagnosticWithLocation=Re,g.findDiagnosticForNode=function(e,t){var r=H(e);if(0<=(r=g.binarySearchKey(t,r,g.identity,g.compareTextSpans))){r=t[r];return g.Debug.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),g.cast(r,Re)}},g.getDiagnosticsWithinSpan=function(e,t){var r,n=g.binarySearchKey(t,e.start,function(e){return e.start},g.compareValues);for(n<0&&(n=~n);(null===(r=t[n-1])||void 0===r?void 0:r.start)===e.start;)n--;for(var i=[],a=g.textSpanEnd(e);;){var o=g.tryCast(t[n],Re);if(!o||o.start>a)break;g.textSpanContainsTextSpan(e,o)&&i.push(o),n++}return i},g.getRefactorContextSpan=function(e){var t=e.startPosition,e=e.endPosition;return g.createTextSpanFromBounds(t,void 0===e?t:e)},g.mapOneOrMany=function(e,t,r){return void 0===r&&(r=g.identity),e?g.isArray(e)?r(g.map(e,t)):t(e,0):void 0},g.firstOrOnly=function(e){return g.isArray(e)?g.first(e):e},g.getNameForExportedSymbol=function(e,t){return"export="===e.escapedName||"default"===e.escapedName?g.firstDefined(e.declarations,function(e){return g.isExportAssignment(e)&&g.isIdentifier(e.expression)?e.expression.text:void 0})||g.codefix.moduleSymbolToValidIdentifier((r=e,g.Debug.checkDefined(r.parent,"Symbol parent was undefined. Flags: "+g.Debug.formatSymbolFlags(r.flags)+". Declarations: "+(null===(r=r.declarations)||void 0===r?void 0:r.map(function(e){var t=g.Debug.formatSyntaxKind(e.kind),r=g.isInJSFile(e),e=e.expression;return(r?"[JS]":"")+t+(e?" (expression: "+g.Debug.formatSyntaxKind(e.kind)+")":"")}).join(", "))+".")),t):e.name;var r},g.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},g.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},g.isGlobalDeclaration=function(e){return!Be(e)},g.isNonGlobalDeclaration=Be}(ts=ts||{}),function(h){h.createClassifier=function(){var y=h.createScanner(99,!1);function n(e,t,r){var n=0,i=0,a=[],o=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return h.Debug.assertNever(e)}}(t),t=o.prefix,o=o.pushTemplate;e=t+e;var s=t.length;o&&a.push(15),y.setText(e);var c,u,l,_,d,p=0,f=[],g=0;do{n=y.scan(),h.isTrivia(n)||(function(){switch(n){case 43:case 67:v[i]||13!==y.reScanSlashToken()||(n=13);break;case 29:78===i&&g++;break;case 31:0<g&&g--;break;case 128:case 147:case 144:case 131:case 148:0<g&&!r&&(n=78);break;case 15:a.push(n);break;case 18:0<a.length&&a.push(n);break;case 19:var e;0<a.length&&(15===(e=h.lastOrUndefined(a))?17===(n=y.reScanTemplateToken(!1))?a.pop():h.Debug.assertEqual(n,16,"Should have been a template middle."):(h.Debug.assertEqual(e,18,"Should have been an open brace"),a.pop()));break;default:if(!h.isKeyword(n))break;(24===i||h.isKeyword(i)&&h.isKeyword(n)&&!function(e,t){if(!h.isAccessibilityModifier(e))return!0;switch(t){case 134:case 146:case 132:case 123:return!0;default:return!1}}(i,n))&&(n=78)}}(),i=n);var m=y.getTextPos();c=y.getTokenPos(),u=m,l=s,_=function(e){{if(h.isKeyword(e))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}(e)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(e))return 5;if(18<=e&&e<=77)return 10}switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 78:default:return h.isTemplateLiteralKind(e)?6:2}}(n),d=f,!void(8!==_&&(0===c&&0<l&&(c+=l),0<(u-=c)&&d.push(c-l,u,_))),m>=e.length&&(void 0!==(m=function(e,t,r){switch(t){case 10:if(!e.isUnterminated())return;for(var n=e.getTokenText(),i=n.length-1,a=0;92===n.charCodeAt(i-a);)a++;return 0==(1&a)?void 0:34===n.charCodeAt(0)?3:2;case 3:return e.isUnterminated()?1:void 0;default:if(h.isTemplateLiteralKind(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return h.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}(y,n,h.lastOrUndefined(a)))&&(p=m))}while(1!==n);return{endOfLineState:p,spans:f}}return{getClassificationsForLine:function(e,t,r){return function(e,t){for(var r=[],n=e.spans,i=0,a=0;a<n.length;a+=3){var o,s=n[a],c=n[a+1],u=n[a+2];0<=i&&(0<(o=s-i)&&r.push({length:o,classification:h.TokenClass.Whitespace})),r.push({length:c,classification:function(e){switch(e){case 1:return h.TokenClass.Comment;case 3:return h.TokenClass.Keyword;case 4:return h.TokenClass.NumberLiteral;case 25:return h.TokenClass.BigIntLiteral;case 5:return h.TokenClass.Operator;case 6:return h.TokenClass.StringLiteral;case 8:return h.TokenClass.Whitespace;case 10:return h.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return h.TokenClass.Identifier;default:return}}(u)}),i=s+c}t=t.length-i;0<t&&r.push({length:t,classification:h.TokenClass.Whitespace});return{entries:r,finalLexState:e.endOfLineState}}(n(e,t,r),e)},getEncodedLexicalClassifications:n}};var v=h.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],function(e){return e},function(){return!0});function m(e,t){switch(t){case 256:case 252:case 253:case 251:case 221:case 208:case 209:e.throwIfCancellationRequested()}}function a(a,o,s,c,u){var l=[];return s.forEachChild(function e(t){var r,n,i;t&&h.textSpanIntersectsWith(u,t.pos,t.getFullWidth())&&(m(o,t.kind),!h.isIdentifier(t)||h.nodeIsMissing(t)||!c.has(t.escapedText)||(i=(n=a.getSymbolAtLocation(t))&&function e(t,r,n){var i=t.getFlags();if(0!=(2885600&i))return 32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&_(t)?14:void 0:2097152&i?e(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}(n,h.getMeaningFromLocation(t),a))&&(r=t.getStart(s),n=t.getEnd(),i=i,n-=r,h.Debug.assert(0<n,"Classification had non-positive length of "+n),l.push(r),l.push(n),l.push(i)),t.forEachChild(e))}),{spans:l,endOfLineState:0}}function _(e){return h.some(e.declarations,function(e){return h.isModuleDeclaration(e)&&1===h.getModuleInstanceState(e)})}function o(e){h.Debug.assert(e.spans.length%3==0);for(var t=e.spans,r=[],n=0;n<t.length;n+=3)r.push({textSpan:h.createTextSpan(t[n],t[n+1]),classificationType:function(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}(t[n+2])});return r}function n(i,u,e){var a=e.start,o=e.length,s=h.createScanner(99,!1,u.languageVariant,u.text),c=h.createScanner(99,!1,u.languageVariant,u.text),n=[];return g(u),{spans:n,endOfLineState:0};function l(e,t,r){n.push(e),n.push(t),n.push(r)}function _(e){for(s.setTextPos(e.pos);;){var t=s.getTextPos();if(!h.couldStartTrivia(u.text,t))return t;var r=s.scan(),n=s.getTextPos(),i=n-t;if(!h.isTrivia(r))return t;switch(r){case 4:case 5:continue;case 2:case 3:!function(e,t,r,n){if(3===t){var i=h.parseIsolatedJSDocComment(u.text,r,n);if(i&&i.jsDoc)return h.setParent(i.jsDoc,e),function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];switch(i.pos!==t&&d(t,i.pos-t),l(i.pos,1,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 326:!function(e){e.isNameFirst&&(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(d(t,e.typeExpression.pos-t),g(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}(i);break;case 330:!function(){for(var e=0,t=i.getChildren();e<t.length;e++)g(t[e])}(),t=i.end;break;case 329:case 327:g(i.typeExpression),t=i.end}}t!==e.end&&d(t,e.end-t)}(i.jsDoc),0}else if(2===t&&function(e,t){var r=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,n=u.text.substr(e,t),n=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(n);if(!n)return!1;if(!(n[3]&&n[3]in h.commentPragmas))return!1;var i=e;d(i,n[1].length),l(i+=n[1].length,n[2].length,10),l(i+=n[2].length,n[3].length,21),i+=n[3].length;var a=n[4],o=i;for(;;){var s=r.exec(a);if(!s)break;var c=i+s.index;o<c&&(d(o,c-o),o=c),l(o,s[1].length,22),o+=s[1].length,s[2].length&&(d(o,s[2].length),o+=s[2].length),l(o,s[3].length,5),o+=s[3].length,s[4].length&&(d(o,s[4].length),o+=s[4].length),l(o,s[5].length,24),o+=s[5].length}(i+=n[4].length)>o&&d(o,i-o);n[5]&&(l(i,n[5].length,10),i+=n[5].length);t=e+t;i<t&&d(i,t-i);return!0}(r,n))return;d(r,n)}(e,r,t,i),s.setTextPos(n);continue;case 7:var a=u.text,o=a.charCodeAt(t);if(60===o||62===o){l(t,i,1);continue}h.Debug.assert(124===o||61===o),function(e,t,r){var n;for(n=t;n<r&&!h.isLineBreak(e.charCodeAt(n));n++);for(l(t,n-t,1),c.setTextPos(n);c.getTextPos()<r;)!function(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos();(t=f(t))&&l(e,r-e,t)}()}(a,t,n);break;case 6:break;default:h.Debug.assertNever(r)}}}function d(e,t){l(e,t,1)}function p(e){if(h.isJSDoc(e))return 1;if(h.nodeIsMissing(e))return 1;var t=function(e){switch(e.parent&&e.parent.kind){case 275:if(e.parent.tagName===e)return 19;break;case 276:if(e.parent.tagName===e)return 20;break;case 274:if(e.parent.tagName===e)return 21;break;case 280:if(e.parent.name===e)return 22}return}(e);if(h.isToken(e)||11===e.kind||void 0!==t){var r=11===e.kind?e.pos:_(e),n=e.end-r;return h.Debug.assert(0<=n),0<n&&((e=t||f(e.kind,e))&&l(r,n,e)),1}}function f(e,t){if(h.isKeyword(e))return 3;if((29===e||31===e)&&t&&h.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(h.isPunctuation(e)){if(t){var r=t.parent;if(62===e&&(249===r.kind||163===r.kind||160===r.kind||280===r.kind))return 5;if(216===r.kind||214===r.kind||215===r.kind||217===r.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 25;if(10===e)return t&&280===t.parent.kind?24:6;if(13===e)return 6;if(h.isTemplateLiteralKind(e))return 6;if(11===e)return 23;if(78===e){if(t)switch(t.parent.kind){case 252:return t.parent.name===t?11:void 0;case 159:return t.parent.name===t?15:void 0;case 253:return t.parent.name===t?13:void 0;case 255:return t.parent.name===t?12:void 0;case 256:return t.parent.name===t?14:void 0;case 160:return t.parent.name===t?h.isThisIdentifier(t)?3:17:void 0}return 2}}function g(e){if(e&&h.decodedTextSpanIntersectsWith(a,o,e.pos,e.getFullWidth())){m(i,e.kind);for(var t=0,r=e.getChildren(u);t<r.length;t++){var n=r[t];p(n)||g(n)}}}}h.getSemanticClassifications=function(e,t,r,n,i){return o(a(e,t,r,n,i))},h.getEncodedSemanticClassifications=a,h.getSyntacticClassifications=function(e,t,r){return o(n(e,t,r))},h.getEncodedSyntacticClassifications=n}(ts=ts||{}),function(v){var e;!function(e){var t;function s(e,t,r,n){return{spans:function(e,n,t,r){var i=[];e&&n&&function(u,l,_,d,p){var f=u.getTypeChecker(),g=!1;!function e(t){switch(t.kind){case 256:case 252:case 253:case 251:case 221:case 208:case 209:p.throwIfCancellationRequested()}var r,n,i,a,o,s,c;t&&v.textSpanIntersectsWith(_,t.pos,t.getFullWidth())&&0!==t.getFullWidth()&&(r=g,(v.isJsxElement(t)||v.isJsxSelfClosingElement(t))&&(g=!0),v.isJsxExpression(t)&&(g=!1),!v.isIdentifier(t)||g||function(e){return(e=e.parent)&&(v.isImportClause(e)||v.isImportSpecifier(e)||v.isNamespaceImport(e))}(t)||(n=f.getSymbolAtLocation(t))&&(2097152&n.flags&&(n=f.getAliasedSymbol(n)),void 0!==(i=function(e,t){var r=e.getFlags();if(32&r)return 0;if(384&r)return 1;if(524288&r)return 5;if(64&r){if(2&t)return 2}else if(262144&r)return 4;return(e=e.valueDeclaration||e.declarations&&e.declarations[0])&&v.isBindingElement(e)&&(e=m(e)),e&&h.get(e.kind)}(n,v.getMeaningFromLocation(t)))&&(a=0,t.parent&&(v.isBindingElement(t.parent)||h.get(t.parent.kind)===i)&&t.parent.name===t&&(a=1),6===i&&y(t)&&(i=9),i=function(e,t,r){if(7===r||9===r||6===r){var n=e.getTypeAtLocation(t);if(n){if(e=function(e){return e(n)||n.isUnion()&&n.types.some(e)},6!==r&&e(function(e){return 0<e.getConstructSignatures().length}))return 0;if(e(function(e){return 0<e.getCallSignatures().length})&&!e(function(e){return 0<e.getProperties().length})||function(e){for(;y(e);)e=e.parent;return v.isCallExpression(e.parent)&&e.parent.expression===e}(t))return 9===r?11:10}}return r}(f,t,i),(o=n.valueDeclaration)?(s=v.getCombinedModifierFlags(o),c=v.getCombinedNodeFlags(o),32&s&&(a|=2),256&s&&(a|=4),0!==i&&2!==i&&(64&s||2&c||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return v.isBindingElement(e)&&(e=m(e)),v.isVariableDeclaration(e)?(!v.isSourceFile(e.parent.parent.parent)||v.isCatchClause(e.parent))&&e.getSourceFile()===t:v.isFunctionDeclaration(e)&&(!v.isSourceFile(e.parent)&&e.getSourceFile()===t)}(o,l)||(a|=32),u.isSourceFileDefaultLibrary(o.getSourceFile())&&(a|=16)):n.declarations&&n.declarations.some(function(e){return u.isSourceFileDefaultLibrary(e.getSourceFile())})&&(a|=16),d(t,i,a))),v.forEachChild(t,e),g=r)}(l)}(e,n,t,function(e,t,r){i.push(e.getStart(n),e.getWidth(n),(t+1<<8)+r)},r);return i}(e,r,n,t),endOfLineState:0}}function m(e){for(;;){if(!v.isBindingElement(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function y(e){return v.isQualifiedName(e.parent)&&e.parent.right===e||v.isPropertyAccessExpression(e.parent)&&e.parent.name===e}(t=e.TokenEncodingConsts||(e.TokenEncodingConsts={}))[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",(t=e.TokenType||(e.TokenType={}))[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",(t=e.TokenModifier||(e.TokenModifier={}))[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",e.getSemanticClassifications=function(e,t,r,n){n=s(e,t,r,n),v.Debug.assert(n.spans.length%3==0);for(var i=n.spans,a=[],o=0;o<i.length;o+=3)a.push({textSpan:v.createTextSpan(i[o],i[o+1]),classificationType:i[o+2]});return a},e.getEncodedSemanticClassifications=s;var h=new v.Map([[249,7],[160,6],[163,9],[256,3],[255,1],[291,8],[252,0],[165,11],[251,10],[208,10],[164,11],[167,9],[168,9],[162,9],[253,2],[254,5],[159,4],[288,9],[289,9]])}((e=v.classifier||(v.classifier={})).v2020||(e.v2020={}))}(ts=ts||{}),function(N){var f;!function(e){function u(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){var t=e.name,r=e.kind,n=e.span;return{name:t,kind:r,kindModifiers:c(e.extension),sortText:f.SortText.LocationPriority,replacementSpan:n}})}}function c(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return N.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return N.Debug.assertNever(e)}}function l(e,t,r,n,i,a){var o,s,c,u,l,_=b(t.parent);switch(_.kind){case 191:var d=b(_.parent);switch(d.kind){case 173:var p=d,f=N.findAncestor(_,function(e){return e.parent===p});return f?{kind:2,types:D(n.getTypeArgumentConstraint(f)),isNewIdentifier:!1}:void 0;case 189:var f=d.indexType,g=d.objectType;return N.rangeContainsPosition(f,r)?x(n.getTypeFromTypeNode(g)):void 0;case 195:return{kind:0,paths:S(e,t,i,a,n)};case 182:if(!N.isTypeReferenceNode(d.parent))return;var m=(g=d,l=_,N.mapDefined(g.types,function(e){return e!==l&&N.isLiteralTypeNode(e)&&N.isStringLiteral(e.literal)?e.literal.text:void 0}));return{kind:2,types:D(n.getTypeArgumentConstraint(d)).filter(function(e){return!N.contains(m,e.value)}),isNewIdentifier:!1};default:return}case 288:return N.isObjectLiteralExpression(_.parent)&&_.name===t?x(n.getContextualType(_.parent)):v();case 202:var y=_.expression,h=_.argumentExpression;return t===N.skipParentheses(h)?x(n.getTypeAtLocation(y)):void 0;case 203:case 204:if(!N.isRequireCall(_,!1)&&!N.isImportCall(_)){var y=N.SignatureHelp.getArgumentInfoForCompletions(t,r,e);return y?(o=y,s=n,c=!1,u=new N.Map,y=[],s.getResolvedSignature(o.invocation,y,o.argumentCount),{kind:2,types:N.flatMap(y,function(e){if(N.signatureHasRestParameter(e)||!(o.argumentCount>e.parameters.length)){e=s.getParameterType(e,o.argumentIndex);return c=c||!!(4&e.flags),D(e,u)}}),isNewIdentifier:c}):v()}case 261:case 267:case 272:return{kind:0,paths:S(e,t,i,a,n)};default:return v()}function v(){return{kind:2,types:D(N.getContextualTypeFromParent(t,n)),isNewIdentifier:!1}}}function b(e){switch(e.kind){case 186:return N.walkUpParenthesizedTypes(e);case 207:return N.walkUpParenthesizedExpressions(e);default:return e}}function x(e){return e&&{kind:1,symbols:N.filter(e.getApparentProperties(),function(e){return!(e.valueDeclaration&&N.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration))}),hasIndexSignature:N.hasIndexSignature(e)}}function D(e,t){return void 0===t&&(t=new N.Map),e?(e=N.skipConstraint(e)).isUnion()?N.flatMap(e.types,function(e){return D(e,t)}):!e.isStringLiteral()||1024&e.flags||!N.addToSeen(t,e.value)?N.emptyArray:[e]:N.emptyArray}function h(e,t,r){return{name:e,kind:t,extension:r}}function v(e){return h(e,"directory",void 0)}function _(e,t,r){var n,i,a=(n=e,i=t,e=Math.max(n.lastIndexOf(N.directorySeparator),n.lastIndexOf("\\")),t=-1!==e?e+1:0,0==(e=n.length-t)||N.isIdentifierText(n.substr(t,e),99)?void 0:N.createTextSpan(i+t,e));return r.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:a}})}function S(e,t,r,n,i){return _(t.text,t.getStart(e)+1,(a=e,e=t,t=r,r=n,n=i,i=N.normalizeSlashes(e.text),e=a.path,a=N.getDirectoryPath(e),function(e){if(e&&2<=e.length&&46===e.charCodeAt(0)){var t=3<=e.length&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(t);return 47===t||92===t}return!1}(i)||!t.baseUrl&&(N.isRootedDiskPath(i)||N.isUrl(i))?function(e,t,r,n,i){var a=m(r);return r.rootDirs?function(e,t,r,n,i,a,o){var s=i.project||a.getCurrentDirectory(),i=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),i=function(e,t,r,n){e=e.map(function(e){return N.normalizePath(N.isRootedDiskPath(e)?e:N.combinePaths(t,e))});var i=N.firstDefined(e,function(e){return N.containsPath(e,r,t,n)?r.substr(e.length):void 0});return N.deduplicate(__spreadArrays(e.map(function(e){return N.combinePaths(e,i)}),[r]),N.equateStringsCaseSensitive,N.compareStringsCaseSensitive)}(e,s,r,i);return N.flatMap(i,function(e){return y(t,e,n,a,o)})}(r.rootDirs,e,t,a,r,n,i):y(e,t,a,n,i)}(i,a,t,r,e):function(t,e,r,n,i){var a=r.baseUrl,o=r.paths,s=[],c=m(r);{var u;a&&(u=r.project||n.getCurrentDirectory(),a=N.normalizePath(N.combinePaths(u,a)),y(t,a,c,n,void 0,s),o&&T(s,t,a,c.extensions,o,n))}for(var o=C(t),l=0,_=function(t,e,r){r=r.getAmbientModules().map(function(e){return N.stripQuotes(e.name)}).filter(function(e){return N.startsWith(e,t)});if(void 0===e)return r;var n=N.ensureTrailingDirectorySeparator(e);return r.map(function(e){return N.removePrefix(e,n)})}(t,o,i);l<_.length;l++){var d=_[l];s.push(h(d,"external module name",void 0))}if(E(n,r,e,o,c,s),N.getEmitModuleResolutionKind(r)===N.ModuleResolutionKind.NodeJs){var p=!1;if(void 0===o)for(var f=0,g=function(e,t){if(!e.readFile||!e.fileExists)return N.emptyArray;for(var r=[],n=0,i=N.findPackageJsons(t,e);n<i.length;n++)for(var a=i[n],o=N.readJson(a,e),s=0,c=k;s<c.length;s++){var u=c[s],l=o[u];if(l)for(var _ in l)l.hasOwnProperty(_)&&!N.startsWith(_,"@types/")&&r.push(_)}return r}(n,e);f<g.length;f++)!function(t){s.some(function(e){return e.name===t})||(p=!0,s.push(h(t,"external module name",void 0)))}(g[f]);p||N.forEachAncestorDirectory(e,function(e){e=N.combinePaths(e,"node_modules");N.tryDirectoryExists(n,e)&&y(t,e,c,n,void 0,s)})}return s}(i,a,t,r,n)));var a}function m(e,t){return void 0===t&&(t=!1),{extensions:(r=e,e=N.getSupportedExtensions(r),r.resolveJsonModule&&N.getEmitModuleResolutionKind(r)===N.ModuleResolutionKind.NodeJs?e.concat(".json"):e),includeExtensions:t};var r}function y(e,t,r,n,i,a){var o=r.extensions,s=r.includeExtensions;void 0===a&&(a=[]),void 0===e&&(e=""),e=N.normalizeSlashes(e),N.hasTrailingDirectorySeparator(e)||(e=N.getDirectoryPath(e)),""===e&&(e="."+N.directorySeparator),e=N.ensureTrailingDirectorySeparator(e);var c=N.resolvePath(t,e),r=N.hasTrailingDirectorySeparator(c)?c:N.getDirectoryPath(c),u=!(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames());if(!N.tryDirectoryExists(n,r))return a;e=N.tryReadDirectory(n,r,o,void 0,["./*"]);if(e){for(var l=new N.Map,_=0,d=e;_<d.length;_++){var p,f=d[_],f=N.normalizePath(f);i&&0===N.comparePaths(f,i,t,u)||(p=s||N.fileExtensionIs(f,".json")?N.getBaseFileName(f):N.removeFileExtension(N.getBaseFileName(f)),l.set(p,N.tryGetExtensionFromPath(f)))}l.forEach(function(e,t){a.push(h(t,"script",e))})}e=N.tryGetDirectories(n,r);if(e)for(var g=0,m=e;g<m.length;g++){var y=m[g],y=N.getBaseFileName(N.normalizePath(y));"@types"!==y&&a.push(v(y))}e=N.findPackageJson(r,n);return!e||"object"==typeof(e=N.readJson(e,n).typesVersions)&&(e=(e=N.getPackageJsonTypesVersionsPaths(e))&&e.paths,c=c.slice(N.ensureTrailingDirectorySeparator(r).length),e&&T(a,c,r,o,e,n)),a}function T(n,e,t,r,i,a){for(var o in i)if(N.hasProperty(i,o)){var s=i[o];if(s)for(var c=0,u=function(e,t,r,n,i,a){if(!N.endsWith(e,"*"))return N.stringContains(e,"*")?N.emptyArray:s(e);var e=e.slice(0,e.length-1),o=N.tryRemovePrefix(r,e);return void 0===o?s(e):N.flatMap(t,function(e){return function(e,t,r,n,i){if(!i.readDirectory)return;var a=N.hasZeroOrOneAsteriskCharacter(r)?N.tryParsePattern(r):void 0;if(!a)return;var o=N.resolvePath(a.prefix),s=N.hasTrailingDirectorySeparator(a.prefix)?o:N.getDirectoryPath(o),r=N.hasTrailingDirectorySeparator(a.prefix)?"":N.getBaseFileName(o),o=p(e),e=o?N.hasTrailingDirectorySeparator(e)?e:N.getDirectoryPath(e):void 0,s=o?N.combinePaths(s,r+e):s,c=N.normalizePath(a.suffix),u=N.normalizePath(N.combinePaths(t,s)),l=o?u:N.ensureTrailingDirectorySeparator(u)+r,r=c?"**/*":"./*",r=N.mapDefined(N.tryReadDirectory(i,u,n,void 0,[r]),function(e){var t=N.tryGetExtensionFromPath(e),e=_(e);return void 0===e?void 0:h(N.removeFileExtension(e),"script",t)}),i=N.mapDefined(N.tryGetDirectories(i,u).map(function(e){return N.combinePaths(u,e)}),function(e){e=_(e);return void 0===e?void 0:v(e)});return __spreadArrays(r,i);function _(e){var t,r,e=(t=N.normalizePath(e),r=l,e=c,N.startsWith(t,r)&&N.endsWith(t,e)?t.slice(r.length,t.length-e.length):void 0);return void 0===e?void 0:(e=e)[0]===N.directorySeparator?e.slice(1):e}}(o,n,e,i,a)});function s(e){return N.startsWith(e,r)?[v(e)]:N.emptyArray}}(o,s,e,t,r,a);c<u.length;c++){var l=u[c];!function(t,e,r){n.some(function(e){return e.name===t})||n.push(h(t,e,r))}(l.name,l.kind,l.extension)}}}function C(e){return p(e)?N.hasTrailingDirectorySeparator(e)?e:N.getDirectoryPath(e):void 0}function E(a,o,e,s,c,u){void 0===u&&(u=[]);for(var l=new N.Map,t=0,r=N.tryAndIgnoreErrors(function(){return N.getEffectiveTypeRoots(o,a)})||N.emptyArray;t<r.length;t++)d(r[t]);for(var n=0,i=N.findPackageJsons(e,a);n<i.length;n++){var _=i[n];d(N.combinePaths(N.getDirectoryPath(_),"node_modules/@types"))}return u;function d(e){if(N.tryDirectoryExists(a,e))for(var t=0,r=N.tryGetDirectories(a,e);t<r.length;t++){var n=r[t],i=N.unmangleScopedPackageName(n);o.types&&!N.contains(o.types,i)||(void 0===s?l.has(i)||(u.push(h(i,"external module name",void 0)),l.set(i,!0)):(n=N.combinePaths(e,n),void 0!==(i=N.tryRemoveDirectoryPrefix(s,i,N.hostGetCanonicalFileName(a)))&&y(i,n,c,a,void 0,u)))}}}e.getStringLiteralCompletions=function(e,t,r,n,i,a,o,s){var c;if(N.isInReferenceComment(e,t))return(c=function(e,t,r,n){var i=N.getTokenAtPosition(e,t),a=N.getLeadingCommentRanges(e.text,i.pos),o=a&&N.find(a,function(e){return t>=e.pos&&t<=e.end});if(!o)return;var s=e.text.slice(o.pos,t),c=d.exec(s);if(!c)return;i=c[1],a=c[2],s=c[3],c=N.getDirectoryPath(e.path),r="path"===a?y(s,c,m(r,!0),n,e.path):"types"===a?E(n,r,c,C(s),m(r)):N.Debug.fail();return _(s,o.pos+i.length,r)}(e,t,i,a))&&u(c);if(N.isInString(e,t,r)&&r&&N.isStringLiteralLike(r))return function(e,t,r,n,i,a){if(void 0===e)return;var o=N.createTextSpanFromStringLiteralLikeContent(t);switch(e.kind){case 0:return u(e.paths);case 1:var s=[];return f.getCompletionEntriesFromSymbols(e.symbols,s,t,r,r,n,99,i,4,a),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:o,entries:s};case 2:s=e.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:f.SortText.LocationPriority,replacementSpan:N.getReplacementSpanForContextToken(t)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:o,entries:s};default:return N.Debug.assertNever(e)}}(c=l(e,r,t,n,i,a),r,e,n,o,s)},e.getStringLiteralCompletionDetails=function(e,t,r,n,i,a,o,s){if(n&&N.isStringLiteralLike(n)){o=l(t,n,r,i,a,o);return o&&function(t,e,r,n,i,a){switch(r.kind){case 0:return(o=N.find(r.paths,function(e){return e.name===t}))&&f.createCompletionDetails(t,c(o.extension),o.kind,[N.textPart(t)]);case 1:var o;return(o=N.find(r.symbols,function(e){return e.name===t}))&&f.createCompletionDetailsForSymbol(o,i,n,e,a);case 2:return N.find(r.types,function(e){return e.value===t})?f.createCompletionDetails(t,"","type",[N.textPart(t)]):void 0;default:return N.Debug.assertNever(r)}}(e,n,o,t,i,s)}},(e={})[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types";var d=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,k=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function p(e){return N.stringContains(e,N.directorySeparator)}}((f=N.Completions||(N.Completions={})).StringCompletions||(f.StringCompletions={}))}(ts=ts||{}),function(ce){!function(h){var $,t,e;function v(e){return!!(e&&4&e.kind)}function _(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function A(e){return 78===(null==e?void 0:e.kind)?ce.createTextSpanFromNode(e):void 0}function F(e,t){return ce.isSourceFileJS(e)&&!ce.isCheckJsEnabledForFile(e,t)}function P(e,t,r){return"object"==typeof r?ce.pseudoBigIntToString(r)+"n":ce.isString(r)?ce.quote(e,t,r):JSON.stringify(r)}function T(e,t,r,n,i,a,o,s,c,u,l,_,d){var p,f=ce.getReplacementSpanForContextToken(r),g=c&&!!(16&c.kind),r=c&&!!(2&c.kind)||s;if(c&&1&c.kind)p=s?"this"+(g?"?.":"")+"["+y(i,d,o)+"]":"this"+(g?"?.":".")+o;else if((r||g)&&l){p=r?s?"["+y(i,d,o)+"]":"["+o+"]":o,(g||l.questionDotToken)&&(p="?."+p);r=ce.findChildOfKind(l,24,i)||ce.findChildOfKind(l,28,i);if(!r)return;var m=(ce.startsWith(o,l.name.text)?l.name:r).end,f=ce.createTextSpanFromBounds(r.getStart(i),m)}if(_&&(void 0===p&&(p=o),p="{"+p+"}","boolean"!=typeof _&&(f=ce.createTextSpanFromNode(_,i))),c&&8&c.kind&&l&&(void 0===p&&(p=o),m="",(_=ce.findPrecedingToken(l.pos,i))&&ce.positionIsASICandidate(_.end,_.parent,i)&&(m=";"),m+="(await "+l.expression.getText()+")",p=s?""+m+p:m+(g?"?.":".")+p,f=ce.createTextSpanFromBounds(l.getStart(i),l.end)),void 0===p||d.includeCompletionsWithInsertText)return{name:o,kind:ce.SymbolDisplay.getSymbolKind(a,e,n),kindModifiers:ce.SymbolDisplay.getSymbolModifiers(e),sortText:t,source:b(c),hasAction:c&&v(c)||void 0,isRecommended:(a=a,(e=e)===(u=u)||!!(1048576&e.flags)&&a.getExportSymbolOfSymbol(e)===u||void 0),insertText:p,replacementSpan:f,isPackageJsonImport:v(c=c)&&!!c.isFromPackageJson||void 0}}function y(e,t,r){return/^\d+$/.test(r)?r:ce.quote(e,t,r)}function b(e){return v(e)?ce.stripQuotes(e.moduleSymbol.name):1===(null==e?void 0:e.kind)?t.ThisProperty:void 0}function w(e,t,r,n,i,a,o,s,c,u,l,_,d,p,f,g){for(var m=ce.timestamp(),y=new ce.Map,h=0,v=e;h<v.length;h++){var b,x=v[h],D=f?f[ce.getSymbolId(x)]:void 0,S=C(x,o,D,c,!!_);S&&(b=S.name,S=S.needsConvertPropertyAccess,y.get(b)||(S=T(x,g&&g[ce.getSymbolId(x)]||$.LocationPriority,r,n,i,a,b,S,D,p,l,d,u))&&(x=!(D||void 0===x.parent&&!ce.some(x.declarations,function(e){return e.getSourceFile()===n.getSourceFile()})),y.set(b,x),t.push(S)))}return s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(ce.timestamp()-m)),{has:function(e){return y.has(e)},add:function(e){return y.set(e,!0)}}}function x(e,t,r,n,i,a,o){var s=e.getCompilerOptions(),c=g(e,t,r,F(r,s),n,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,a);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};var n=c.symbols,a=c.literals,u=c.location,l=c.completionKind,_=c.symbolToOriginInfoMap,d=c.previousToken,p=c.isJsxInitializer,f=c.isTypeOnlyLocation,a=ce.find(a,function(e){return P(r,o,e)===i.name});return void 0!==a?{type:"literal",literal:a}:ce.firstDefined(n,function(e){var t=_[ce.getSymbolId(e)],r=C(e,s.target,t,l,c.isJsxIdentifierExpected);return r&&r.name===i.name&&b(t)===i.source?{type:"symbol",symbol:e,location:u,symbolToOriginInfoMap:_,previousToken:d,isJsxInitializer:p,isTypeOnlyLocation:f}:void 0})||{type:"none"}}function D(e,t,r){return u(e,"",t,[ce.displayPart(e,r)])}function S(t,e,r,n,i,a,o){var s=e.runWithCancellationToken(i,function(e){return ce.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,t,r,n,n,7)}),c=s.displayParts,e=s.documentation,i=s.symbolKind,s=s.tags;return u(t.name,ce.SymbolDisplay.getSymbolModifiers(t),i,c,e,s,a,o)}function u(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function ee(e,t,r){var n=r.getAccessibleSymbolChain(e,t,67108863,!1);return n?ce.first(n):e.parent&&(e.parent.declarations.some(function(e){return 297===e.kind})?e:ee(e.parent,t,r))}function g(u,l,y,_,d,g,h,p){var v=u.getTypeChecker(),e=ce.timestamp(),t=ce.getTokenAtPosition(y,d);l("getCompletionData: Get current token: "+(ce.timestamp()-e)),e=ce.timestamp();var r=ce.isInComment(y,d,t);l("getCompletionData: Is inside comment: "+(ce.timestamp()-e));var m=!1,f=!1;if(r){if(ce.hasDocComment(y,d)){if(64===y.text.charCodeAt(d-1))return{kind:1};var n=ce.getLineStartPositionForPosition(d,y);if(!/[^\*|\s(/)]/.test(y.text.substring(n,d)))return{kind:2}}n=function(e,t){e=ce.findAncestor(e,ce.isJSDoc);return e&&e.tags&&(ce.rangeContainsPosition(e,t)?ce.findLast(e.tags,function(e){return e.pos<t}):void 0)}(t,d);if(n){if(n.tagName.pos<=d&&d<=n.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 326:case 333:case 327:case 329:case 331:return!0;default:return!1}}(n)&&n.typeExpression&&301===n.typeExpression.kind&&((t=ce.getTokenAtPosition(y,d))&&(ce.isDeclarationName(t)||333===t.parent.kind&&t.parent.name===t)||(m=Z(n.typeExpression))),!m&&ce.isJSDocParameterTag(n)&&(ce.nodeIsMissing(n.name)||n.name.pos<=d&&d<=n.name.end))return{kind:3,tag:n}}if(!m)return void l("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}e=ce.timestamp();var b=ce.findPrecedingToken(d,y,void 0);l("getCompletionData: Get previous token 1: "+(ce.timestamp()-e));var x=b;x&&d<=x.end&&(ce.isIdentifierOrPrivateIdentifier(x)||ce.isKeyword(x.kind))&&(R=ce.timestamp(),x=ce.findPrecedingToken(x.getFullStart(),y,void 0),l("getCompletionData: Get previous token 2: "+(ce.timestamp()-R)));var i,a,o,D=t,S=!1,T=!1,s=!1,c=!1,C=!1,E=!1,k=ce.getTouchingPropertyName(y,d);if(x){if(a=x,o=ce.timestamp(),a=function(e){return(ce.isRegularExpressionLiteral(e)||ce.isStringTextContainingNode(e))&&(ce.rangeContainsPositionExclusive(ce.createTextRangeFromSpan(ce.createTextSpanFromNode(e)),d)||d===e.end&&(!!e.isUnterminated||ce.isRegularExpressionLiteral(e)))}(a)||function(e){var t=e.parent,r=t.kind;switch(e.kind){case 27:return 249===r||function(e){return 250===e.parent.kind&&!ce.isPossiblyTypeArgumentPosition(e,y,v)}(e)||232===r||255===r||G(r)||253===r||197===r||254===r||ce.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 24:return 197===r;case 58:return 198===r;case 22:return 197===r;case 20:return 287===r||G(r);case 18:return 255===r;case 29:return 252===r||221===r||253===r||254===r||ce.isFunctionLikeKind(r);case 123:return 163===r&&!ce.isClassLike(t.parent);case 25:return 160===r||!!t.parent&&197===t.parent.kind;case 122:case 120:case 121:return 160===r&&!ce.isConstructorDeclaration(t.parent);case 126:return 265===r||270===r||263===r;case 134:case 146:return!oe(e);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 149:return!0;case 41:return ce.isFunctionLike(e.parent)&&!ce.isMethodDeclaration(e.parent)}if(re(ne(e))&&oe(e))return!1;if(H(e)&&(!ce.isIdentifier(e)||ce.isParameterPropertyModifier(ne(e))||Z(e)))return!1;switch(ne(e)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return ce.isPropertyDeclaration(e.parent)}return ce.isDeclarationName(e)&&!ce.isJsxAttribute(e.parent)&&!(ce.isClassLike(e.parent)&&(e!==b||d>b.end))}(a)||function(e){if(8!==e.kind)return!1;e=e.getFullText();return"."===e.charAt(e.length-1)}(a)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(275===e.parent.kind)return 275!==k.parent.kind;if(276===e.parent.kind||274===e.parent.kind)return!!e.parent.parent&&273===e.parent.parent.kind}return!1}(a),l("getCompletionsAtPosition: isCompletionListBlocker: "+(ce.timestamp()-o)),a)return void l("Returning an empty list because completion was requested in an invalid position.");var N=x.parent;if(24===x.kind||28===x.kind)switch(S=24===x.kind,T=28===x.kind,N.kind){case 201:if(D=(i=N).expression,(ce.isCallExpression(D)||ce.isFunctionLike(D))&&D.end===x.pos&&D.getChildCount(y)&&21!==ce.last(D.getChildren(y)).kind)return;break;case 157:D=N.left;break;case 256:D=N.name;break;case 195:case 226:D=N;break;default:return}else if(1===y.languageVariant){if(N&&201===N.kind&&(N=(x=N).parent),t.parent===k)switch(t.kind){case 31:273!==t.parent.kind&&275!==t.parent.kind||(k=t);break;case 43:274===t.parent.kind&&(k=t)}switch(N.kind){case 276:43===x.kind&&(c=!0,k=x);break;case 216:if(!se(N))break;case 274:case 273:case 275:E=!0,29===x.kind&&(s=!0,k=x);break;case 283:19===b.kind&&31===t.kind&&(E=!0);break;case 280:if(N.initializer===b&&b.end<d){E=!0;break}switch(b.kind){case 62:C=!0;break;case 78:E=!0,N!==b.parent&&!N.initializer&&ce.findChildOfKind(N,62,y)&&(C=b)}}}}var e=ce.timestamp(),A=5,F=!1,P=0,w=[],I=[],O=[],M=p.getImportSuggestionsCache&&p.getImportSuggestionsCache(),L=q();if(S||T)!function(){A=2;var e,t,r,n=ce.isLiteralImportTypeNode(D),i=m||n&&!D.isTypeOf||ce.isPartOfTypeNode(D.parent)||ce.isPossiblyTypeArgumentPosition(x,y,v),a=ce.isInRightSideOfInternalImportEqualsDeclaration(D);if(ce.isEntityName(D)||n||ce.isPropertyAccessExpression(D)){var o=ce.isModuleDeclaration(D.parent);o&&(F=!0);var s=v.getSymbolAtLocation(D);if(s&&1920&(s=ce.skipAlias(s,v)).flags){var c=v.getExportsOfModule(s);ce.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var u=function(e){return v.isValidPropertyAccess(n?D:D.parent,e.name)},l=function(e){return W(e)},_=o?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===D.parent})}:a?function(e){return l(e)||u(e)}:i?l:u,d=0,p=c;d<p.length;d++){var f=p[d];_(f)&&w.push(f)}return!i&&s.declarations&&s.declarations.some(function(e){return 297!==e.kind&&256!==e.kind&&255!==e.kind})&&(e=v.getTypeOfSymbolAtLocation(s,D).getNonOptionalType(),t=!1,e.isNullableType()&&((r=S&&!T&&!1!==g.includeAutomaticOptionalChainCompletions)||T)&&(e=e.getNonNullableType(),r&&(t=!0)),U(e,!!(32768&D.flags),t))}}if(ce.isMetaProperty(D)&&(102===D.keywordToken||99===D.keywordToken)&&x===D.getChildAt(1)){s=102===D.keywordToken?"target":"meta";return w.push(v.createSymbol(4,ce.escapeLeadingUnderscores(s)))}i||(e=v.getTypeAtLocation(D).getNonOptionalType(),t=!1,e.isNullableType()&&((r=S&&!T&&!1!==g.includeAutomaticOptionalChainCompletions)||T)&&(e=e.getNonNullableType(),r&&(t=!0)),U(e,!!(32768&D.flags),t))}();else if(s){var R=v.getJsxIntrinsicTagNamesAt(k);ce.Debug.assertEachIsDefined(R,"getJsxIntrinsicTagNames() should all be defined"),K(),w=R.concat(w),A=3,P=0}else if(c){var B=x.parent.parent.openingElement.tagName,B=v.getSymbolAtLocation(B);B&&(w=[B]),A=3,P=0}else if(!K())return;l("getCompletionData: Semantic work: "+(ce.timestamp()-e));var j,J,z,B=b&&function(e,t,r,n){var i=e.parent;switch(e.kind){case 78:return ce.getContextualTypeFromParent(e,n);case 62:switch(i.kind){case 249:return n.getContextualType(i.initializer);case 216:return n.getTypeAtLocation(i.left);case 280:return n.getContextualTypeForJsxAttribute(i);default:return}case 102:return n.getContextualType(i);case 81:return ce.getSwitchedType(ce.cast(i,ce.isCaseClause),n);case 18:return ce.isJsxExpression(i)&&273!==i.parent.kind?n.getContextualTypeForJsxAttribute(i.parent):void 0;default:var a=ce.SignatureHelp.getArgumentInfoForCompletions(e,t,r);return a?n.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(27===e.kind?1:0)):ce.isEqualityOperatorKind(e.kind)&&ce.isBinaryExpression(i)&&ce.isEqualityOperatorKind(i.operatorToken.kind)?n.getTypeAtLocation(i.left):n.getContextualType(e)}}(b,d,y,v),e=ce.mapDefined(B&&(B.isUnion()?B.types:[B]),function(e){return e.isLiteral()?e.value:void 0}),J=b&&B&&(j=b,J=B,z=v,ce.firstDefined(J&&(J.isUnion()?J.types:[J]),function(e){e=e&&e.symbol;return e&&424&e.flags&&!ce.isAbstractConstructorSymbol(e)?ee(e,j,z):void 0}));return{kind:0,symbols:w,completionKind:A,isInSnippetScope:f,propertyAccessToConvert:i,isNewIdentifierLocation:F,location:k,keywordFilters:P,literals:e,symbolToOriginInfoMap:I,recommendedCompletion:J,previousToken:b,isJsxInitializer:C,insideJsDocTagTypeExpression:m,symbolToSortTextMap:O,isTypeOnlyLocation:L,isJsxIdentifierExpected:E};function U(t,e,r){F=!!t.getStringIndexType(),T&&ce.some(t.getCallSignatures())&&(F=!0);var n=195===D.kind?D:D.parent;if(_)w.push.apply(w,ce.filter(ae(t,v),function(e){return v.isValidPropertyAccessForCompletions(n,t,e)}));else for(var i=0,a=t.getApparentProperties();i<a.length;i++){var o=a[i];v.isValidPropertyAccessForCompletions(n,t,o)&&V(o,!1,r)}if(e&&g.includeCompletionsWithInsertText){var s=v.getPromisedTypeOfPromise(t);if(s)for(var c=0,u=s.getApparentProperties();c<u.length;c++){o=u[c];v.isValidPropertyAccessForCompletions(n,s,o)&&V(o,!0,r)}}}function V(e,t,r){var n,i=ce.firstDefined(e.declarations,function(e){return ce.tryCast(ce.getNameOfDeclaration(e),ce.isComputedPropertyName)});function a(e){var t;(t=e).valueDeclaration&&32&ce.getEffectiveModifierFlags(t.valueDeclaration)&&ce.isClassLike(t.valueDeclaration.parent)&&(O[ce.getSymbolId(e)]=$.LocalDeclarationPriority)}function o(e){g.includeCompletionsWithInsertText&&(t&&!I[ce.getSymbolId(e)]?I[ce.getSymbolId(e)]={kind:s(8)}:r&&(I[ce.getSymbolId(e)]={kind:16}))}function s(e){return r?16|e:e}i?(n=(i=(n=function e(t){return ce.isIdentifier(t)?t:ce.isPropertyAccessExpression(t)?e(t.expression):void 0}(i.expression))&&v.getSymbolAtLocation(n))&&ee(i,x,v))&&!I[ce.getSymbolId(n)]?(w.push(n),i=n.parent,I[ce.getSymbolId(n)]=i&&ce.isExternalModuleSymbol(i)?{kind:s(6),moduleSymbol:i,isDefaultExport:!1}:{kind:s(2)}):g.includeCompletionsWithInsertText&&(o(e),a(e),w.push(e)):(o(e),a(e),w.push(e))}function K(){return 1===(function(){var e,t,r=function(e){if(e){var t=e.parent;switch(e.kind){case 18:case 27:if(ce.isObjectLiteralExpression(t)||ce.isObjectBindingPattern(t))return t;break;case 41:return ce.isMethodDeclaration(t)?ce.tryCast(t.parent,ce.isObjectLiteralExpression):void 0;case 78:return"async"===e.text&&ce.isShorthandPropertyAssignment(e.parent)?e.parent.parent:void 0}}return}(x);if(!r)return 0;if(A=0,200===r.kind){var n=function(e,t){var r=t.getContextualType(e);if(r)return r;if(ce.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind)return t.getTypeAtLocation(e.parent);return}(r,v);if(void 0===n)return 2;var i=v.getContextualType(r,4);F=ce.hasIndexSignature(i||n),e=ie(n,i,r,v),t=r.properties}else{ce.Debug.assert(196===r.kind),F=!1;n=ce.getRootDeclaration(r.parent);if(!ce.isVariableLike(n))return ce.Debug.fail("Root declaration is not variable-like.");i=ce.hasInitializer(n)||ce.hasType(n)||239===n.parent.parent.kind;if(i||160!==n.kind||(ce.isExpression(n.parent)?i=!!v.getContextualType(n.parent):165!==n.parent.kind&&168!==n.parent.kind||(i=ce.isExpression(n.parent.parent)&&!!v.getContextualType(n.parent.parent))),i){var a=v.getTypeAtLocation(r);if(!a)return 2;var o=ce.getContainingClass(r);e=v.getPropertiesOfType(a).filter(function(e){return!(24&ce.getDeclarationModifierFlagsFromSymbol(e))||o&&ce.contains(a.symbol.declarations,o)}),t=r.elements}}e&&0<e.length&&(w=function(e,t){if(0===t.length)return e;for(var r=new ce.Set,n=new ce.Set,i=0,a=t;i<a.length;i++){var o,s=a[i];288!==s.kind&&289!==s.kind&&198!==s.kind&&165!==s.kind&&167!==s.kind&&168!==s.kind&&290!==s.kind||Z(s)||(o=void 0,ce.isSpreadAssignment(s)?X(s,r):ce.isBindingElement(s)&&s.propertyName?78===s.propertyName.kind&&(o=s.propertyName.escapedText):(s=ce.getNameOfDeclaration(s),o=s&&ce.isPropertyNameLiteral(s)?ce.getEscapedTextOfIdentifierOrLiteral(s):void 0),void 0!==o&&n.add(o))}e=e.filter(function(e){return!n.has(e.escapedName)});return Y(r,e),e}(e,ce.Debug.checkDefined(t)));return Q(),1}()||function(){var e=!x||18!==x.kind&&27!==x.kind?void 0:ce.tryCast(x.parent,ce.isNamedImportsOrExports);if(!e)return 0;var t=(264===e.kind?e.parent:e).parent.moduleSpecifier;if(!t)return 264===e.kind?2:0;t=v.getSymbolAtLocation(t);if(!t)return 2;A=3,F=!1;var t=v.getExportsAndPropertiesOfModule(t),r=new ce.Set(e.elements.filter(function(e){return!Z(e)}).map(function(e){return(e.propertyName||e.name).escapedText}));return w=t.filter(function(e){return"default"!==e.escapedName&&!r.has(e.escapedName)}),1}()||function(){var e=!x||18!==x.kind&&27!==x.kind?void 0:ce.tryCast(x.parent,ce.isNamedExports);if(!e)return 0;var n=ce.findAncestor(e,ce.or(ce.isSourceFile,ce.isModuleDeclaration));return F=!(A=5),null===(e=n.locals)||void 0===e||e.forEach(function(e,t){var r;w.push(e),null!==(r=null===(r=n.symbol)||void 0===r?void 0:r.exports)&&void 0!==r&&r.has(t)&&(O[ce.getSymbolId(e)]=$.OptionalMember)}),1}()||(function(e){if(e){var t=e.parent;switch(e.kind){case 20:case 27:return ce.isConstructorDeclaration(e.parent)?e.parent:void 0;default:if(H(e))return t.parent}}return}(x)?(A=5,F=!0,P=4,1):0)||function(){var t=function(e,t,r,n){switch(r.kind){case 334:return ce.tryCast(r.parent,ce.isObjectTypeDeclaration);case 1:var i=ce.tryCast(ce.lastOrUndefined(ce.cast(r.parent,ce.isSourceFile).statements),ce.isObjectTypeDeclaration);if(i&&!ce.findChildOfKind(i,19,e))return i;break;case 78:if(ce.isPropertyDeclaration(r.parent)&&r.parent.initializer===r)return;if(oe(r))return ce.findAncestor(r,ce.isObjectTypeDeclaration)}if(!t)return;switch(t.kind){case 62:return;case 26:case 19:return oe(r)&&r.parent.name===r?r.parent.parent:ce.tryCast(r,ce.isObjectTypeDeclaration);case 18:case 27:return ce.tryCast(t.parent,ce.isObjectTypeDeclaration);default:if(!oe(t))return ce.getLineAndCharacterOfPosition(e,t.getEnd()).line!==ce.getLineAndCharacterOfPosition(e,n).line&&ce.isObjectTypeDeclaration(r)?r:void 0;var a=ce.isClassLike(t.parent.parent)?re:te;return a(t.kind)||41===t.kind||ce.isIdentifier(t)&&a(ce.stringToToken(t.text))?t.parent.parent:void 0}}(y,x,k,d);if(!t)return 0;if(A=3,F=!0,P=41===x.kind?0:ce.isClassLike(t)?2:3,!ce.isClassLike(t))return 1;var e=(26===x.kind?x.parent:x).parent,r=ce.isClassElement(e)?ce.getEffectiveModifierFlags(e):0;if(78===x.kind&&!Z(x))switch(x.getText()){case"private":r|=8;break;case"static":r|=32}8&r||(e=ce.flatMap(ce.getAllSuperTypeNodes(t),function(e){e=v.getTypeAtLocation(e);return 32&r?(null==e?void 0:e.symbol)&&v.getPropertiesOfType(v.getTypeOfSymbolAtLocation(e.symbol,t)):e&&v.getPropertiesOfType(e)}),w=function(e,t,r){for(var n=new ce.Set,i=0,a=t;i<a.length;i++){var o=a[i];163!==o.kind&&165!==o.kind&&167!==o.kind&&168!==o.kind||Z(o)||ce.hasEffectiveModifier(o,8)||ce.hasEffectiveModifier(o,32)!==!!(32&r)||(o=ce.getPropertyNameForPropertyNameNode(o.name))&&n.add(o)}return e.filter(function(e){return!(n.has(e.escapedName)||!e.declarations||8&ce.getDeclarationModifierFlagsFromSymbol(e)||e.valueDeclaration&&ce.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration))})}(e,t.members,r));return 1}()||function(){var e=function(e){if(e){var t=e.parent;switch(e.kind){case 31:case 30:case 43:case 78:case 201:case 281:case 280:case 282:if(t&&(274===t.kind||275===t.kind)){if(31===e.kind){var r=ce.findPrecedingToken(e.pos,y,void 0);if(!t.typeArguments||r&&43===r.kind)break}return t}if(280===t.kind)return t.parent.parent;break;case 10:if(t&&(280===t.kind||282===t.kind))return t.parent.parent;break;case 19:if(t&&283===t.kind&&t.parent&&280===t.parent.kind)return t.parent.parent.parent;if(t&&282===t.kind)return t.parent.parent}}return}(x),t=e&&v.getContextualType(e.attributes);if(!t)return 0;var r=e&&v.getContextualType(e.attributes,4);return w=function(e,t){for(var r=new ce.Set,n=new ce.Set,i=0,a=t;i<a.length;i++){var o=a[i];Z(o)||(280===o.kind?r.add(o.name.escapedText):ce.isJsxSpreadAttribute(o)&&X(o,n))}e=e.filter(function(e){return!r.has(e.escapedName)});return Y(n,e),e}(ie(t,r,e.attributes,v),e.attributes.properties),Q(),F=!(A=3),1}()||(function(){P=function(e){if(e){var t,e=ce.findAncestor(e.parent,function(e){return ce.isClassLike(e)?"quit":!(!ce.isFunctionLikeDeclaration(e)||t!==e.body)||(t=e,!1)});return e&&e}}(x)?5:1,A=1,F=function(e){if(e){var t=e.parent.kind;switch(ne(e)){case 27:return 203===t||166===t||204===t||199===t||216===t||174===t;case 20:return 203===t||166===t||204===t||207===t||186===t;case 22:return 199===t||171===t||158===t;case 139:case 140:return!0;case 24:return 256===t;case 18:return 252===t;case 62:return 249===t||216===t;case 15:return 218===t;case 16:return 228===t;case 122:case 120:case 121:return 163===t}}return!1}(x),b!==x&&ce.Debug.assert(!!b,"Expected 'contextToken' to be defined when different from 'previousToken'.");var e=b!==x?b.getStart():d,t=function(e,t,r){var n=e;for(;n&&!ce.positionBelongsToNode(n,t,r);)n=n.parent;return n}(x,e,y)||y;f=function(e){switch(e.kind){case 297:case 218:case 283:case 230:return!0;default:return ce.isStatement(e)}}(t);e=2887656|(L?0:111551);w=v.getSymbolsInScope(t,e),ce.Debug.assertEachIsDefined(w,"getSymbolsInScope() should all be defined");for(var r=0,n=w;r<n.length;r++){var i=n[r];v.isArgumentsSymbol(i)||ce.some(i.declarations,function(e){return e.getSourceFile()===y})||(O[ce.getSymbolId(i)]=$.GlobalsOrKeywords)}if(g.includeCompletionsWithInsertText&&297!==t.kind){var a=v.tryGetThisTypeAt(t,!1);if(a&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;n=r.resolveName("global",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;n=r.resolveName("globalThis",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;return!1}(a,y,v))for(var o=0,s=ae(a,v);o<s.length;o++){i=s[o];I[ce.getSymbolId(i)]={kind:1},w.push(i),O[ce.getSymbolId(i)]=$.SuggestedClassMembers}}{var c;g.includeCompletionsForModuleExports&&(y.externalModuleIndicator||y.commonJsModuleIndicator||ce.compilerOptionsIndicateEs6Modules(u.getCompilerOptions())||ce.programContainsModules(u))&&(c=b&&ce.isIdentifier(b)?b.text.toLowerCase():"",a=function(a,e){var t=M&&M.get(y.fileName,v,h&&e.getProjectVersion?e.getProjectVersion():void 0);if(t)return l("getSymbolsFromOtherSourceFileExports: Using cached list"),t;t=ce.timestamp();l("getSymbolsFromOtherSourceFileExports: Recomputing list"+(h?" for details entry":""));var _=new ce.Map,d=new ce.Map,p=new ce.Map,f=new ce.Map,o=[],g=new ce.Map;return ce.codefix.forEachExternalModuleToImportFrom(u,e,y,!h,!0,function(e,t,r,n){if(!h||!h.source||ce.stripQuotes(e.name)===h.source){var i=r.getTypeChecker(),a=i.resolveExternalModuleSymbol(e);if(ce.addToSeen(_,ce.getSymbolId(a))){a!==e&&ce.every(a.declarations,ce.isNonGlobalDeclaration)&&m(a,e,n,!0);for(var o=0,s=i.getExportsAndPropertiesOfModule(e);o<s.length;o++){var c,u=s[o],l=ce.getSymbolId(u).toString();ce.addToSeen(d,l)&&(ce.some(u.declarations,function(e){return ce.isExportSpecifier(e)&&!!e.propertyName&&ce.isIdentifierANonContextualKeyword(e.name)})||((c=i.getMergedSymbol(u.parent)!==a)||ce.some(u.declarations,function(e){return ce.isExportSpecifier(e)&&!e.propertyName&&!!e.parent.parent.moduleSpecifier})?(c=c?u:function(e,t,r){var n=t;for(;2097152&n.flags&&(n=e.getImmediateAliasedSymbol(n));)if(r(n))return n}(v,u,function(e){return ce.some(e.declarations,function(e){return ce.isExportSpecifier(e)||!!e.localSymbol})}))&&(c=ce.getSymbolId(c).toString(),g.has(c)||p.has(c)?ce.addToSeen(p,l):(f.set(c,{alias:u,moduleSymbol:e,isFromPackageJson:n}),p.set(l,!0))):(f.delete(l),m(u,e,n,!1))))}}}}),f.forEach(function(e){return m(e.alias,e.moduleSymbol,e.isFromPackageJson,!1)}),l("getSymbolsFromOtherSourceFileExports: "+(ce.timestamp()-t)),o;function m(e,t,r,n){var i="default"===e.escapedName;i&&(e=ce.getLocalSymbolForExportDefault(e)||e),v.isUndefinedSymbol(e)||(ce.addToSeen(g,ce.getSymbolId(e)),r={kind:4,moduleSymbol:t,isDefaultExport:i,isFromPackageJson:r},o.push({symbol:e,symbolName:ce.getNameForExportedSymbol(e,a),origin:r,skipFilter:n}))}}(u.getCompilerOptions().target,p),!h&&M&&M.set(y.fileName,a,p.getProjectVersion&&p.getProjectVersion()),a.forEach(function(e){var t=e.symbol,r=e.symbolName,n=e.skipFilter,e=e.origin;if(h){if(h.source&&ce.stripQuotes(e.moduleSymbol.name)!==h.source)return}else if(!n&&!function(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}(r.toLowerCase(),c))return;r=ce.getSymbolId(t);w.push(t),I[r]=e,O[r]=$.AutoImportSuggestions}))}!function(e){var t=q();t&&(P=x&&ce.isAssertionExpression(x.parent)?6:7),ce.filterMutate(e,function(e){if(!ce.isSourceFile(k)){if(ce.isExportAssignment(k.parent))return!0;if(e=ce.skipAlias(e,v),ce.isInRightSideOfInternalImportEqualsDeclaration(k))return!!(1920&e.flags);if(t)return W(e)}return!!(111551&ce.getCombinedLocalAndExportSymbolFlags(e))})}(w)}(),1))}function q(){return m||!((e=x)&&111===e.kind&&(176===e.parent.kind||ce.isTypeOfExpression(e.parent)))&&(ce.isPossiblyTypeArgumentPosition(x,y,v)||ce.isPartOfTypeNode(k)||function(e){if(e){var t=e.parent.kind;switch(e.kind){case 58:return 163===t||162===t||160===t||249===t||ce.isFunctionLikeKind(t);case 62:return 254===t;case 126:return 224===t;case 29:return 173===t||206===t;case 93:return 159===t}}return!1}(x));var e}function W(e,t){void 0===t&&(t=new ce.Map);e=ce.skipAlias(e.exportSymbol||e,v);return!!(788968&e.flags)||!!(1536&e.flags)&&ce.addToSeen(t,ce.getSymbolId(e))&&v.getExportsOfModule(e).some(function(e){return W(e,t)})}function H(e){return e.parent&&ce.isParameter(e.parent)&&ce.isConstructorDeclaration(e.parent.parent)&&(ce.isParameterPropertyModifier(e.kind)||ce.isDeclarationName(e))}function G(e){return ce.isFunctionLikeKind(e)&&166!==e}function X(e,t){var r=e.expression,e=v.getSymbolAtLocation(r),r=e&&v.getTypeOfSymbolAtLocation(e,r),r=r&&r.properties;r&&r.forEach(function(e){t.add(e.name)})}function Q(){w.forEach(function(e){16777216&e.flags&&(O[ce.getSymbolId(e)]=O[ce.getSymbolId(e)]||$.OptionalMember)})}function Y(e,t){if(0!==e.size)for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.name)&&(O[ce.getSymbolId(i)]=$.MemberDeclaredBySpreadAssignment)}}function Z(e){return e.getStart(y)<=d&&d<=e.getEnd()}}function C(e,t,r,n,i){var a=v(r)?ce.getNameForExportedSymbol(e,t):e.name;if(!(void 0===a||1536&e.flags&&ce.isSingleOrDoubleQuote(a.charCodeAt(0))||ce.isKnownSymbol(e))){var o={name:a,needsConvertPropertyAccess:!1};if(ce.isIdentifierText(a,t,i?1:0)||e.valueDeclaration&&ce.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration))return o;switch(n){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:ce.Debug.assertNever(n)}}}(e=$=h.SortText||(h.SortText={})).LocalDeclarationPriority="0",e.LocationPriority="1",e.OptionalMember="2",e.MemberDeclaredBySpreadAssignment="3",e.SuggestedClassMembers="4",e.GlobalsOrKeywords="5",e.AutoImportSuggestions="6",e.JavascriptIdentifiers="7",(t=h.CompletionSource||(h.CompletionSource={})).ThisProperty="ThisProperty/",(e={})[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",(e={})[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.Last=7]="Last",(e={})[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail",h.createImportSuggestionsForFileCache=function(){var i,a,o;return{isEmpty:function(){return!i},clear:function(){a=o=i=void 0},set:function(e,t,r){i=t,o=e,r&&(a=r)},get:function(e,n,t){if(e===o)return t?a===t?i:void 0:(ce.forEach(i,function(e){var t,r;null!==(t=e.symbol.declarations)&&void 0!==t&&t.length&&(e.symbol=n.getMergedSymbol(e.origin.isDefaultExport&&null!==(r=e.symbol.declarations[0].localSymbol)&&void 0!==r?r:e.symbol.declarations[0].symbol)),null!==(r=e.origin.moduleSymbol.declarations)&&void 0!==r&&r.length&&(e.origin.moduleSymbol=n.getMergedSymbol(e.origin.moduleSymbol.declarations[0].symbol))}),i)}}},h.getCompletionsAtPosition=function(e,t,r,n,i,a,o){var s=t.getTypeChecker(),c=t.getCompilerOptions(),u=ce.findPrecedingToken(i,n);if(!o||ce.isInString(n,i,u)||function(e,t,r,n){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&ce.isStringLiteralOrTemplate(r)&&n===r.getStart(e)+1;case"#":return!!r&&ce.isPrivateIdentifier(r)&&!!ce.getContainingClass(r);case"<":return!!r&&29===r.kind&&(!ce.isBinaryExpression(r.parent)||se(r.parent));case"/":return!!r&&(ce.isStringLiteralLike(r)?!!ce.tryGetImportFromModuleSpecifier(r):43===r.kind&&ce.isJsxClosingElement(r.parent));default:return ce.Debug.assertNever(t)}}(n,o,u,i)){o=h.StringCompletions.getStringLiteralCompletions(n,i,u,s,c,e,r,a);if(o)return o;if(u&&ce.isBreakOrContinueStatement(u.parent)&&(80===u.kind||85===u.kind||78===u.kind))return function(e){e=function(e){var t=[],r=new ce.Map,n=e;for(;n&&!ce.isFunctionLike(n);){var i;ce.isLabeledStatement(n)&&(i=n.label.text,r.has(i)||(r.set(i,!0),t.push({name:i,kindModifiers:"",kind:"label",sortText:$.LocationPriority}))),n=n.parent}return t}(e);if(e.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}(u.parent);var l=g(t,r,n,F(n,c),i,a,void 0,e);if(l)switch(l.kind){case 0:return function(e,t,r,n,i,a){var o=i.symbols,s=i.completionKind,c=i.isInSnippetScope,u=i.isNewIdentifierLocation,l=i.location,_=i.propertyAccessToConvert,d=i.keywordFilters,p=i.literals,f=i.symbolToOriginInfoMap,g=i.recommendedCompletion,m=i.isJsxInitializer,y=i.insideJsDocTagTypeExpression,h=i.symbolToSortTextMap;if(l&&l.parent&&ce.isJsxClosingElement(l.parent)){var v=l.parent.parent.openingElement.tagName,b=!!ce.findChildOfKind(l.parent,31,e),b={name:v.getFullText(e)+(b?"":">"),kind:"class",kindModifiers:void 0,sortText:$.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:A(l),entries:[b]}}var x=[];if(F(e,r)){b=w(o,x,void 0,l,e,t,r.target,n,s,a,_,i.isJsxIdentifierExpected,m,g,f,h);!function(r,n,i,a){ce.getNameTable(e).forEach(function(e,t){e!==r&&(t=ce.unescapeLeadingUnderscores(t),!n.has(t)&&ce.isIdentifierText(t,i)&&(n.add(t),a.push({name:t,kind:"warning",kindModifiers:"",sortText:$.JavascriptIdentifiers,isFromUncheckedFile:!0})))})}(l.pos,b,r.target,x)}else{if(!(u||o&&0!==o.length||0!==d))return;w(o,x,void 0,l,e,t,r.target,n,s,a,_,i.isJsxIdentifierExpected,m,g,f,h)}if(0!==d)for(var D=new ce.Set(x.map(function(e){return e.name})),S=0,T=function(e,t){if(!t)return O(e);t=e+7+1;return I[t]||(I[t]=O(e).filter(function(e){return!function(e){switch(e){case 125:case 128:case 155:case 131:case 133:case 91:case 154:case 116:case 135:case 117:case 137:case 138:case 139:case 140:case 141:case 144:case 145:case 120:case 121:case 122:case 142:case 147:case 148:case 149:case 151:case 152:return!0;default:return!1}}(ce.stringToToken(e.name))}))}(d,!y&&ce.isSourceFileJS(e));S<T.length;S++){var C=T[S];D.has(C.name)||x.push(C)}for(var E=0,k=p;E<k.length;E++){var N=k[E];x.push(function(e,t,r){return{name:P(e,t,r),kind:"string",kindModifiers:"",sortText:$.LocationPriority}}(e,a,N))}return{isGlobalCompletion:c,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(s),isNewIdentifierLocation:u,optionalReplacementSpan:A(l),entries:x}}(n,s,c,r,l,a);case 1:return _(ce.JsDoc.getJSDocTagNameCompletions());case 2:return _(ce.JsDoc.getJSDocTagCompletions());case 3:return _(ce.JsDoc.getJSDocParameterNameCompletions(l.tag));default:return ce.Debug.assertNever(l)}}},h.getCompletionEntriesFromSymbols=w,h.getCompletionEntryDetails=function(e,t,r,n,i,a,o,s,c){var u=e.getTypeChecker(),l=e.getCompilerOptions(),_=i.name,d=ce.findPrecedingToken(n,r);if(ce.isInString(r,n,d))return h.StringCompletions.getStringLiteralCompletionDetails(_,r,n,d,u,l,a,c);var p=x(e,t,r,n,i,a,s);switch(p.type){case"request":var f=p.request;switch(f.kind){case 1:return ce.JsDoc.getJSDocTagNameCompletionDetails(_);case 2:return ce.JsDoc.getJSDocTagCompletionDetails(_);case 3:return ce.JsDoc.getJSDocParameterNameCompletionDetails(_);default:return ce.Debug.assertNever(f)}case"symbol":var g=p.symbol,m=p.location,y=function(e,t,r,n,i,a,o,s,c,u,l){e=e[ce.getSymbolId(t)];if(!e||!v(e))return{codeActions:void 0,sourceDisplay:void 0};e=e.moduleSymbol,n=n.getMergedSymbol(ce.skipAlias(t.exportSymbol||t,n)),s=ce.codefix.getImportCompletionAction(n,e,o,ce.getNameForExportedSymbol(t,a.target),i,r,u,c&&ce.isIdentifier(c)?c.getStart(o):s,l),l=s.moduleSpecifier,s=s.codeAction;return{sourceDisplay:[ce.textPart(l)],codeActions:[s]}}(p.symbolToOriginInfoMap,g,e,u,a,l,r,n,p.previousToken,o,s);return S(g,u,r,m,c,y.codeActions,y.sourceDisplay);case"literal":y=p.literal;return D(P(r,s,y),"string","string"==typeof y?ce.SymbolDisplayPartKind.stringLiteral:ce.SymbolDisplayPartKind.numericLiteral);case"none":return E().some(function(e){return e.name===_})?D(_,"keyword",ce.SymbolDisplayPartKind.keyword):void 0;default:ce.Debug.assertNever(p)}},h.createCompletionDetailsForSymbol=S,h.createCompletionDetails=u,h.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){return"symbol"===(o=x(e,t,r,n,i,a,o)).type?o.symbol:void 0},(e={})[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",(e=h.CompletionKind||(h.CompletionKind={}))[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";var I=[],E=ce.memoize(function(){for(var e=[],t=80;t<=156;t++)e.push({name:ce.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:$.GlobalsOrKeywords});return e});function O(r){return I[r]||(I[r]=E().filter(function(e){var t=ce.stringToToken(e.name);switch(r){case 0:return!1;case 1:return n(t)||133===t||139===t||149===t||140===t||ce.isTypeKeyword(t)&&150!==t;case 5:return n(t);case 2:return re(t);case 3:return te(t);case 4:return ce.isParameterPropertyModifier(t);case 6:return ce.isTypeKeyword(t)||84===t;case 7:return ce.isTypeKeyword(t);default:return ce.Debug.assertNever(r)}}))}function te(e){return 142===e}function re(e){switch(e){case 125:case 132:case 134:case 146:case 129:case 133:return!0;default:return ce.isClassMemberModifier(e)}}function n(e){return 129===e||130===e||126===e||!ce.isContextualKeyword(e)&&!re(e)}function ne(e){return ce.isIdentifier(e)?e.originalKeywordKind||0:e.kind}function ie(e,t,r,n){var i=t&&t!==e,t=!i||3&t.flags?e:n.getUnionType([e,t]),t=t.isUnion()?n.getAllPossiblePropertiesOfTypes(t.types.filter(function(e){return!(131068&e.flags||n.isArrayLikeType(e)||ce.typeHasCallOrConstructSignatures(e,n)||n.isTypeInvalidDueToUnionDiscriminant(e,r))})):t.getApparentProperties();return i?t.filter(function(e){return ce.some(e.declarations,function(e){return e.parent!==r})}):t}function ae(e,t){return e.isUnion()?ce.Debug.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):ce.Debug.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function oe(e){return e.parent&&ce.isClassOrTypeElement(e.parent)&&ce.isObjectTypeDeclaration(e.parent.parent)}function se(e){e=e.left;return ce.nodeIsMissing(e)}}(ce.Completions||(ce.Completions={}))}(ts=ts||{}),function(u){function l(e,t){return{fileName:t.fileName,textSpan:u.createTextSpanFromNode(e,t),kind:"none"}}function n(e){return u.isThrowStatement(e)?[e]:u.isTryStatement(e)?u.concatenate(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):u.isFunctionLike(e)?void 0:t(e,n)}function i(e){return u.isBreakOrContinueStatement(e)?[e]:u.isFunctionLike(e)?void 0:t(e,i)}function t(e,t){var r=[];return e.forEachChild(function(e){e=t(e);void 0!==e&&r.push.apply(r,u.toArray(e))}),r}function a(e,t){t=r(t);return t&&t===e}function r(n){return u.findAncestor(n,function(e){switch(e.kind){case 244:if(240===n.kind)return!1;case 237:case 238:case 239:case 236:case 235:return!n.label||(t=e,r=n.label.escapedText,!!u.findAncestor(t.parent,function(e){return u.isLabeledStatement(e)?e.label.escapedText===r:"quit"}));default:return u.isFunctionLike(e)&&"quit"}var t,r})}function _(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return t&&u.contains(r,t.kind)&&(e.push(t),1)}function s(t){var r=[];if(_(r,t.getFirstToken(),96,114,89)&&235===t.kind)for(var e=t.getChildren(),n=e.length-1;0<=n&&!_(r,e[n],114);n--);return u.forEach(i(t.statement),function(e){a(t,e)&&_(r,e.getFirstToken(),80,85)}),r}function c(e){var t=r(e);if(t)switch(t.kind){case 237:case 238:case 239:case 235:case 236:return s(t);case 244:return d(t)}}function d(t){var r=[];return _(r,t.getFirstToken(),106),u.forEach(t.caseBlock.clauses,function(e){_(r,e.getFirstToken(),81,87),u.forEach(i(e),function(e){a(t,e)&&_(r,e.getFirstToken(),80)})}),r}function p(e,t){var r=[];return _(r,e.getFirstToken(),110),e.catchClause&&_(r,e.catchClause.getFirstToken(),82),e.finallyBlock&&_(r,u.findChildOfKind(e,95,t),95),r}function f(e,t){e=function(e){for(var t=e;t.parent;){var r=t.parent;if(u.isFunctionBlock(r)||297===r.kind)return r;if(u.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(e);if(e){var r=[];return u.forEach(n(e),function(e){r.push(u.findChildOfKind(e,108,t))}),u.isFunctionBlock(e)&&u.forEachReturnStatement(e,function(e){r.push(u.findChildOfKind(e,104,t))}),r}}function g(e,t){e=u.getContainingFunction(e);if(e){var r=[];return u.forEachReturnStatement(u.cast(e.body,u.isBlock),function(e){r.push(u.findChildOfKind(e,104,t))}),u.forEach(n(e.body),function(e){r.push(u.findChildOfKind(e,108,t))}),r}}function m(e){e=u.getContainingFunction(e);if(e){var t=[];return e.modifiers&&e.modifiers.forEach(function(e){_(t,e,129)}),u.forEachChild(e,function(e){y(e,function(e){u.isAwaitExpression(e)&&_(t,e.getFirstToken(),130)})}),t}}function y(e,t){t(e),u.isFunctionLike(e)||u.isClassLike(e)||u.isInterfaceDeclaration(e)||u.isModuleDeclaration(e)||u.isTypeAliasDeclaration(e)||u.isTypeNode(e)||u.forEachChild(e,function(e){return y(e,t)})}(u.DocumentHighlights||(u.DocumentHighlights={})).getDocumentHighlights=function(e,t,r,n,i){var a=u.getTouchingPropertyName(r,n);if(a.parent&&(u.isJsxOpeningElement(a.parent)&&a.parent.tagName===a||u.isJsxClosingElement(a.parent))){var o=a.parent.parent,o=[o.openingElement,o.closingElement].map(function(e){return l(e.tagName,r)});return[{fileName:r.fileName,highlightSpans:o}]}return function(e,t,n,r,i){var a=new u.Set(i.map(function(e){return e.fileName})),r=u.FindAllReferences.getReferenceEntriesForNode(e,t,n,i,r,void 0,a);if(!r)return;r=u.arrayToMultiMap(r.map(u.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return u.arrayFrom(r.entries(),function(e){var t,r=e[0],e=e[1];return a.has(r)||(u.Debug.assert(n.redirectTargetsMap.has(r)),t=n.getSourceFile(r),r=u.find(i,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===t}).fileName,u.Debug.assert(a.has(r))),{fileName:r,highlightSpans:e}})}(n,a,e,t,i)||function(e,t){e=function(e,n){switch(e.kind){case 98:case 90:return u.isIfStatement(e.parent)?function(e,t){for(var r=function(e,t){var r=[];for(;u.isIfStatement(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var n=e.getChildren(t);_(r,n[0],98);for(var i=n.length-1;0<=i&&!_(r,n[i],90);i--);if(!e.elseStatement||!u.isIfStatement(e.elseStatement))break;e=e.elseStatement}return r}(e,t),n=[],i=0;i<r.length;i++){if(90===r[i].kind&&i<r.length-1){for(var a=r[i],o=r[i+1],s=!0,c=o.getStart(t)-1;c>=a.end;c--)if(!u.isWhiteSpaceSingleLine(t.text.charCodeAt(c))){s=!1;break}if(s){n.push({fileName:t.fileName,textSpan:u.createTextSpanFromBounds(a.getStart(),o.end),kind:"reference"}),i++;continue}}n.push(l(r[i],t))}return n}(e.parent,n):void 0;case 104:return i(e.parent,u.isReturnStatement,g);case 108:return i(e.parent,u.isThrowStatement,f);case 110:case 82:case 95:return i((82===e.kind?e.parent:e).parent,u.isTryStatement,p);case 106:return i(e.parent,u.isSwitchStatement,d);case 81:case 87:return u.isDefaultClause(e.parent)||u.isCaseClause(e.parent)?i(e.parent.parent.parent,u.isSwitchStatement,d):void 0;case 80:case 85:return i(e.parent,u.isBreakOrContinueStatement,c);case 96:case 114:case 89:return i(e.parent,function(e){return u.isIterationStatement(e,!0)},s);case 132:return t(u.isConstructorDeclaration,[132]);case 134:case 146:return t(u.isAccessor,[134,146]);case 130:return i(e.parent,u.isAwaitExpression,m);case 129:return a(m(e));case 124:return a(function(e){e=u.getContainingFunction(e);if(!e)return;var t=[];return u.forEachChild(e,function(e){y(e,function(e){u.isYieldExpression(e)&&_(t,e.getFirstToken(),124)})}),t}(e));default:return u.isModifierKind(e.kind)&&(u.isDeclaration(e.parent)||u.isVariableStatement(e.parent))?a(function(t,e){return u.mapDefined(function(e,t){var r=e.parent;switch(r.kind){case 257:case 297:case 230:case 284:case 285:return 128&t&&u.isClassDeclaration(e)?__spreadArrays(e.members,[e]):r.statements;case 166:case 165:case 251:return __spreadArrays(r.parameters,u.isClassLike(r.parent)?r.parent.members:[]);case 252:case 221:case 253:case 177:var n=r.members;if(92&t){var i=u.find(r.members,u.isConstructorDeclaration);if(i)return __spreadArrays(n,i.parameters)}else if(128&t)return __spreadArrays(n,[r]);return n;case 200:return;default:u.Debug.assertNever(r,"Invalid container kind.")}}(e,u.modifierToFlag(t)),function(e){return u.findModifier(e,t)})}(e.kind,e.parent)):void 0}function t(t,r){return i(e.parent,t,function(e){return u.mapDefined(e.symbol.declarations,function(e){return t(e)?u.find(e.getChildren(n),function(e){return u.contains(r,e.kind)}):void 0})})}function i(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map(function(e){return l(e,n)})}}(e,t);return e&&[{fileName:t.fileName,highlightSpans:e}]}(a,r)}}(ts=ts||{}),function(p){function r(e,a,_){void 0===a&&(a="");var d=new p.Map,o=p.createGetCanonicalFileName(!!e);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(e,t,r,n,i,a,o,s){var c,u=p.getOrUpdate(d,n,function(){return new p.Map}),l=u.get(t),r=6===s?100:r.target||1;return!l&&_&&(c=_.getDocument(n,t))&&(p.Debug.assert(o),l={sourceFile:c,languageServiceRefCount:0},u.set(t,l)),l?(l.sourceFile.version!==a&&(l.sourceFile=p.updateLanguageServiceSourceFile(l.sourceFile,i,a,i.getChangeRange(l.sourceFile.scriptSnapshot)),_&&_.setDocument(n,t,l.sourceFile)),o&&l.languageServiceRefCount++):(c=p.createLanguageServiceSourceFile(e,i,r,a,!1,s),_&&_.setDocument(n,t,c),l={sourceFile:c,languageServiceRefCount:1},u.set(t,l)),p.Debug.assert(0!==l.languageServiceRefCount),l.sourceFile}function r(e,t){var r=p.Debug.checkDefined(d.get(t)),t=r.get(e);t.languageServiceRefCount--,p.Debug.assert(0<=t.languageServiceRefCount),0===t.languageServiceRefCount&&r.delete(e)}return{acquireDocument:function(e,t,r,n,i){return s(e,p.toPath(e,a,o),t,l(t),r,n,i)},acquireDocumentWithKey:s,updateDocument:function(e,t,r,n,i){return c(e,p.toPath(e,a,o),t,l(t),r,n,i)},updateDocumentWithKey:c,releaseDocument:function(e,t){return r(p.toPath(e,a,o),l(t))},releaseDocumentWithKey:r,getLanguageServiceRefCounts:function(r){return p.arrayFrom(d.entries(),function(e){var t=e[0],e=e[1].get(r);return[t,e&&e.languageServiceRefCount]})},reportStats:function(){var e=p.arrayFrom(d.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=d.get(e),r=[];return t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:l}}function l(t){return p.sourceFileAffectingCompilerOptions.map(function(e){return p.getCompilerOptionValue(t,e)}).join("|")}p.createDocumentRegistry=function(e,t){return r(e,t)},p.createDocumentRegistryInternal=r}(ts=ts||{}),function(C){var e,t;function E(e,t){return C.forEach((297===e.kind?e:e.body).statements,function(e){return t(e)||n(e)&&C.forEach(e.body&&e.body.statements,t)})}function g(e,r){if(e.externalModuleIndicator||void 0!==e.imports)for(var t=0,n=e.imports;t<n.length;t++){var i=n[t];r(C.importFromModuleSpecifier(i),i)}else E(e,function(e){switch(e.kind){case 267:case 261:(t=e).moduleSpecifier&&C.isStringLiteral(t.moduleSpecifier)&&r(t,t.moduleSpecifier);break;case 260:var t;A(t=e)&&r(t,t.moduleReference.expression)}})}function r(e,t,r){e=e.parent;if(e){e=r.getMergedSymbol(e);return C.isExternalModuleSymbol(e)?{exportingModuleSymbol:e,exportKind:t}:void 0}}function k(e,t){return t.getMergedSymbol(N(e).symbol)}function N(e){if(203===e.kind)return e.getSourceFile();e=e.parent;return 297===e.kind?e:(C.Debug.assert(257===e.kind),C.cast(e.parent,n))}function n(e){return 256===e.kind&&10===e.name.kind}function A(e){return 272===e.moduleReference.kind&&10===e.moduleReference.expression.kind}(e=C.FindAllReferences||(C.FindAllReferences={})).createImportTracker=function(b,x,D,S){var T=function(e,n,t){for(var i=new C.Map,r=0,a=e;r<a.length;r++){var o=a[r];t&&t.throwIfCancellationRequested(),g(o,function(e,t){var r=n.getSymbolAtLocation(t);r&&(t=C.getSymbolId(r).toString(),(r=i.get(t))||i.set(t,r=[]),r.push(e))})}return i}(b,D,S);return function(e,t,r){var n,i,a,o,s,c,u,l,_,d,p,f,g,o=(n=b,i=x,a=T,s=D,c=S,u=(o=t).exportingModuleSymbol,l=o.exportKind,_=C.nodeSeenTracker(),d=C.nodeSeenTracker(),p=[],f=!!u.globalExports,g=f?void 0:[],function e(t){var t=v(t);if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(_(i))switch(c&&c.throwIfCancellationRequested(),i.kind){case 203:if(!f){var a=i.parent;if(2===l&&249===a.kind){var o=a.name;if(78===o.kind){p.push(o);break}}}break;case 78:break;case 260:m(i,i.name,C.hasSyntacticModifier(i,1),!1);break;case 261:p.push(i);var o=i.importClause&&i.importClause.namedBindings;o&&263===o.kind?m(i,o.name,!1,!0):!f&&C.isDefaultImport(i)&&y(N(i));break;case 267:i.exportClause?269===i.exportClause.kind?h(N(i)):p.push(i):e(k(i,s));break;case 195:p.push(i);break;default:C.Debug.failBadSyntaxKind(i,"Unexpected import kind.")}}}(u),{directImports:p,indirectUsers:function(){if(f)return n;for(var e=0,t=u.declarations;e<t.length;e++){var r=t[e];C.isExternalModuleAugmentation(r)&&i.has(r.getSourceFile().fileName)&&y(r)}return g.map(C.getSourceFileOfNode)}()});function m(e,t,r,n){var i,a;2===l?n||p.push(e):f||(e=N(e),C.Debug.assert(297===e.kind||256===e.kind),(r||(r=e,t=t,a=(i=s).getSymbolAtLocation(t),!!E(r,function(e){if(C.isExportDeclaration(e)){var t=e.exportClause;return!e.moduleSpecifier&&t&&C.isNamedExports(t)&&t.elements.some(function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a})}}))?h:y)(e))}function y(e){C.Debug.assert(!f);var t=d(e);return t&&g.push(e),t}function h(e){if(y(e)){e=s.getMergedSymbol(e.symbol);C.Debug.assert(!!(1536&e.flags));e=v(e);if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];C.isImportTypeNode(n)||h(N(n))}}}function v(e){return a.get(C.getSymbolId(e).toString())}return __assign({indirectUsers:o.indirectUsers},function(e,o,n,s,c){var r=[],u=[];function l(e,t){r.push([e,t])}if(e)for(var t=0,i=e;t<i.length;t++)!function(e){if(260===e.kind)return A(e)&&a(e.name);if(78===e.kind)return a(e),0;if(195===e.kind)return e.qualifier?(t=C.getFirstIdentifier(e.qualifier)).escapedText===C.symbolName(o)&&u.push(t):2===n&&u.push(e.argument.literal);if(10===e.moduleSpecifier.kind){if(267===e.kind)return e.exportClause&&C.isNamedExports(e.exportClause)&&_(e.exportClause);var t=e.importClause||{name:void 0,namedBindings:void 0},e=t.name,r=t.namedBindings;if(r)switch(r.kind){case 263:a(r.name);break;case 264:0!==n&&1!==n||_(r);break;default:C.Debug.assertNever(r)}!e||1!==n&&2!==n||c&&e.escapedText!==C.symbolEscapedNameNoDefault(o)||(t=s.getSymbolAtLocation(e),l(e,t))}}(i[t]);return{importSearches:r,singleReferences:u};function a(e){2!==n||c&&!d(e.escapedText)||l(e,s.getSymbolAtLocation(e))}function _(e){if(e)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t],i=n.name,a=n.propertyName;d((a||i).escapedText)&&(a?(u.push(a),c&&i.escapedText!==o.escapedName||l(i,s.getSymbolAtLocation(i))):l(i,270===n.kind&&n.propertyName?s.getExportSpecifierLocalTargetSymbol(n):s.getSymbolAtLocation(i)))}}function d(e){return e===o.escapedName||0!==n&&"default"===e}}(o.directImports,e,t.exportKind,D,r))}},(t=e.ExportKind||(e.ExportKind={}))[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",(t=e.ImportExport||(e.ImportExport={}))[t.Import=0]="Import",t[t.Export=1]="Export",e.findModuleReferences=function(e,t,r){for(var n=[],i=e.getTypeChecker(),a=0,o=t;a<o.length;a++){var s=o[a],c=r.valueDeclaration;if(297===c.kind){for(var u=0,l=s.referencedFiles;u<l.length;u++){var _=l[u];e.getSourceFileFromReference(s,_)===c&&n.push({kind:"reference",referencingFile:s,ref:_})}for(var d=0,p=s.typeReferenceDirectives;d<p.length;d++){var _=p[d],f=e.getResolvedTypeReferenceDirectives().get(_.fileName);void 0!==f&&f.resolvedFileName===c.fileName&&n.push({kind:"reference",referencingFile:s,ref:_})}}g(s,function(e,t){i.getSymbolAtLocation(t)===r&&n.push({kind:"import",literal:t})})}return n},e.getImportOrExportSymbol=function(s,c,u,l){return l?e():e()||function(){if(!function(e){var t=e.parent;switch(t.kind){case 260:return t.name===e&&A(t);case 265:return!t.propertyName;case 262:case 263:return C.Debug.assert(t.name===e),1;case 198:return C.isInJSFile(e)&&C.isRequireVariableDeclaration(t,!0);default:return}}(s))return;var e=u.getImmediateAliasedSymbol(c);if(!e)return;"export="===(e=function(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(C.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(i);if(C.isPropertyAccessExpression(i)&&C.isModuleExportsAccessExpression(i.expression)&&!C.isPrivateIdentifier(i.name))return t.getExportSpecifierLocalTargetSymbol(i.name);if(C.isShorthandPropertyAssignment(i)&&C.isBinaryExpression(i.parent.parent)&&2===C.getAssignmentDeclarationKind(i.parent.parent))return t.getExportSpecifierLocalTargetSymbol(i.name)}return e}(e,u)).escapedName&&(e=function(e,t){if(2097152&e.flags)return C.Debug.checkDefined(t.getImmediateAliasedSymbol(e));e=e.valueDeclaration;{if(C.isExportAssignment(e))return C.Debug.checkDefined(e.expression.symbol);if(C.isBinaryExpression(e))return C.Debug.checkDefined(e.right.symbol);if(C.isSourceFile(e))return C.Debug.checkDefined(e.symbol)}return C.Debug.fail()}(e,u));var t=C.symbolEscapedNameNoDefault(e);if(void 0===t||"default"===t||t===c.escapedName)return{kind:0,symbol:e}}();function e(){var t=s.parent,e=t.parent;if(c.exportSymbol)return 201===t.kind?c.declarations.some(function(e){return e===t})&&C.isBinaryExpression(e)?o(e,!1):void 0:_(c.exportSymbol,d(t));var r,n,i,r=(r=t,n=s,(i=C.isVariableDeclaration(r)?r:C.isBindingElement(r)?C.walkUpBindingElementsAndPatterns(r):void 0)?r.name===n&&!C.isCatchClause(i.parent)&&C.isVariableStatement(i.parent.parent)?i.parent.parent:void 0:r);return r&&C.hasSyntacticModifier(r,1)?C.isImportEqualsDeclaration(r)&&r.moduleReference===s?l?void 0:{kind:0,symbol:u.getSymbolAtLocation(r.name)}:_(c,d(r)):C.isNamespaceExport(t)?_(c,0):C.isExportAssignment(t)?a(t):C.isExportAssignment(e)?a(e):C.isBinaryExpression(t)?o(t,!0):C.isBinaryExpression(e)?o(e,!0):C.isJSDocTypedefTag(t)?_(c,0):void 0;function a(e){var t=C.Debug.checkDefined(e.symbol.parent,"Expected export symbol to have a parent"),e=e.isExportEquals?2:1;return{kind:1,symbol:c,exportInfo:{exportingModuleSymbol:t,exportKind:e}}}function o(e,t){var r;switch(C.getAssignmentDeclarationKind(e)){case 1:r=0;break;case 2:r=2;break;default:return}e=t?u.getSymbolAtLocation(C.getNameOfAccessExpression(C.cast(e.left,C.isAccessExpression))):c;return e&&_(e,r)}}function _(e,t){t=r(e,t,u);return t&&{kind:1,symbol:e,exportInfo:t}}function d(e){return C.hasSyntacticModifier(e,512)?1:0}},e.getExportInfo=r}(ts=ts||{}),function(O){var M,e,c;function L(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:function(e){if(O.isDeclaration(e))return _(e);if(!e.parent)return;if(!O.isDeclaration(e.parent)&&!O.isExportAssignment(e.parent)){if(O.isInJSFile(e)){var t=O.isBinaryExpression(e.parent)?e.parent:O.isAccessExpression(e.parent)&&O.isBinaryExpression(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==O.getAssignmentDeclarationKind(t))return _(t)}if(O.isJsxOpeningElement(e.parent)||O.isJsxClosingElement(e.parent))return e.parent.parent;if(O.isJsxSelfClosingElement(e.parent)||O.isLabeledStatement(e.parent)||O.isBreakOrContinueStatement(e.parent))return e.parent;if(O.isStringLiteralLike(e)){t=O.tryGetImportFromModuleSpecifier(e);if(t){var r=O.findAncestor(t,function(e){return O.isDeclaration(e)||O.isStatement(e)||O.isJSDocTag(e)});return O.isDeclaration(r)?_(r):r}}r=O.findAncestor(e,O.isComputedPropertyName);return r?_(r.parent):void 0}if(e.parent.name===e||O.isConstructorDeclaration(e.parent)||O.isExportAssignment(e.parent)||(O.isImportOrExportSpecifier(e.parent)||O.isBindingElement(e.parent))&&e.parent.propertyName===e||87===e.kind&&O.hasSyntacticModifier(e.parent,513))return _(e.parent);return}(e)}}function n(e){return e&&void 0===e.kind}function _(e){if(e)switch(e.kind){case 249:return O.isVariableDeclarationList(e.parent)&&1===e.parent.declarations.length?O.isVariableStatement(e.parent.parent)?e.parent.parent:O.isForInOrOfStatement(e.parent.parent)?_(e.parent.parent):e.parent:e;case 198:return _(e.parent.parent);case 265:return e.parent.parent.parent;case 270:case 263:return e.parent.parent;case 262:case 269:return e.parent;case 216:return O.isExpressionStatement(e.parent)?e.parent:e;case 239:case 238:return{start:e.initializer,end:e.expression};case 288:case 289:return O.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)?_(O.findAncestor(e.parent,function(e){return O.isBinaryExpression(e)||O.isForInOrOfStatement(e)})):e;default:return e}}function d(e,t,r){if(r){t=n(r)?m(r.start,t,r.end):m(r,t);return t.start!==e.start||t.length!==e.length?{contextSpan:t}:void 0}}function l(e,t,r,n,i){if(297!==n.kind){var a=e.getTypeChecker();if(289===n.parent.kind){var o=[];return c.getReferenceEntriesForShorthandPropertyAssignment(n,a,function(e){return o.push(L(e))}),o}if(105===n.kind||O.isSuperProperty(n.parent)){a=a.getSymbolAtLocation(n);return a.valueDeclaration&&[L(a.valueDeclaration)]}return s(i,n,e,r,t,{implementations:!0,use:1})}}function s(e,t,r,n,i,a,o){return void 0===a&&(a={}),void 0===o&&(o=new O.Set(n.map(function(e){return e.fileName}))),u(c.getReferencedSymbolsForNode(e,t,r,n,i,a,o))}function u(e){return e&&O.flatMap(e,function(e){return e.references})}function p(e,t,r){var n=c.getIntersectingMeaningFromDeclarations(r,e),r=e.declarations&&O.firstOrUndefined(e.declarations)||r,n=O.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r.getSourceFile(),r,r,n);return{displayParts:n.displayParts,kind:n.symbolKind}}function f(e){var t=g(e);if(0===e.kind)return __assign(__assign({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,e=e.node;return __assign(__assign({},t),{isWriteAccess:i(e),isDefinition:87===(e=e).kind||!!O.getDeclarationFromName(e)||O.isLiteralComputedPropertyDeclarationName(e)||132===e.kind&&O.isConstructorDeclaration(e.parent),isInString:2===r||void 0})}function g(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=m(e.node,t);return __assign({textSpan:r,fileName:t.fileName},d(r,t,e.context))}function m(e,t,r){var n=e.getStart(t),t=(r||e).getEnd();return O.isStringLiteralLike(e)&&(O.Debug.assert(void 0===r),n+=1,--t),O.createTextSpanFromBounds(n,t)}function R(e){return 0===e.kind?e.textSpan:m(e.node,e.node.getSourceFile())}function i(e){var t=O.getDeclarationFromName(e);return!!t&&function(e){if(8388608&e.flags)return!0;switch(e.kind){case 216:case 198:case 252:case 221:case 87:case 255:case 291:case 270:case 262:case 260:case 265:case 253:case 324:case 331:case 280:case 256:case 259:case 263:case 269:case 160:case 289:case 254:case 159:return!0;case 288:return!O.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent);case 251:case 208:case 166:case 165:case 167:case 168:return!!e.body;case 249:case 163:return!!e.initializer||O.isCatchClause(e.parent);case 164:case 162:case 333:case 326:return!1;default:return O.Debug.failBadSyntaxKind(e)}}(t)||87===e.kind||O.isWriteAccess(e)}M=O.FindAllReferences||(O.FindAllReferences={}),(e=M.DefinitionKind||(M.DefinitionKind={}))[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",(e=M.EntryKind||(M.EntryKind={}))[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",M.nodeEntry=L,M.isContextWithStartAndEndNode=n,M.getContextNode=_,M.toContextSpan=d,(e=M.FindReferencesUse||(M.FindReferencesUse={}))[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",M.findReferencedSymbols=function(e,t,r,n,i){var s=O.getTouchingPropertyName(n,i),r=c.getReferencedSymbolsForNode(i,s,e,r,t,{use:1}),a=e.getTypeChecker();return r&&r.length?O.mapDefined(r,function(e){var o=e.definition,e=e.references;return o&&{definition:a.runWithCancellationToken(t,function(e){return c=o,u=e,l=s,t=function(){switch(c.type){case 0:var e=p(o=c.symbol,u,l),t=e.displayParts,r=e.kind,n=t.map(function(e){return e.text}).join(""),e=o.declarations&&O.firstOrUndefined(o.declarations);return{node:e?O.getNameOfDeclaration(e)||e:l,name:n,kind:r,displayParts:t,context:_(e)};case 1:var i=c.node;return{node:i,name:i.text,kind:"label",displayParts:[O.displayPart(i.text,O.SymbolDisplayPartKind.text)]};case 2:var i=c.node,a=O.tokenToString(i.kind);return{node:i,name:a,kind:"keyword",displayParts:[{text:a,kind:"keyword"}]};case 3:var o,a=c.node,s=(o=u.getSymbolAtLocation(a))&&O.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(u,o,a.getSourceFile(),O.getContainerNode(a),a).displayParts||[O.textPart("this")];return{node:a,name:"this",kind:"var",displayParts:s};case 4:s=c.node;return{node:s,name:s.text,kind:"var",displayParts:[O.displayPart(O.getTextOfNode(s),O.SymbolDisplayPartKind.stringLiteral)]};default:return O.Debug.assertNever(c)}}(),r=t.node,n=t.name,i=t.kind,a=t.displayParts,e=t.context,t=r.getSourceFile(),r=m(O.isComputedPropertyName(r)?r.expression:r,t),__assign({containerKind:"",containerName:"",fileName:t.fileName,kind:i,name:n,textSpan:r,displayParts:a},d(r,t,e));var c,u,l,t,r,n,i,a}),references:e.map(f)}}):void 0},M.getImplementationsAtPosition=function(e,t,r,n,i){var a,n=O.getTouchingPropertyName(n,i),i=l(e,t,r,n,i);if(201===n.parent.kind||198===n.parent.kind||202===n.parent.kind||105===n.kind)a=i&&__spreadArrays(i);else for(var o=i&&__spreadArrays(i),s=new O.Map;o&&o.length;){var c=o.shift();O.addToSeen(s,O.getNodeId(c.node))&&(a=O.append(a,c),(c=l(e,t,r,c.node,c.node.pos))&&o.push.apply(o,c))}var u=e.getTypeChecker();return O.map(a,function(e){return function(e,t){var r=g(e);{if(0===e.kind)return __assign(__assign({},r),{kind:"",displayParts:[]});e=e.node;return __assign(__assign({},r),function(e,t){var r=t.getSymbolAtLocation(O.isDeclaration(e)&&e.name?e.name:e);return r?p(r,t,e):200===e.kind?{kind:"interface",displayParts:[O.punctuationPart(20),O.textPart("object literal"),O.punctuationPart(21)]}:221===e.kind?{kind:"local class",displayParts:[O.punctuationPart(20),O.textPart("anonymous local class"),O.punctuationPart(21)]}:{kind:O.getNodeKind(e),displayParts:[]}}(e,t))}}(e,u)})},M.findReferenceOrRenameEntries=function(t,e,r,n,i,a,o){return O.map(u(c.getReferencedSymbolsForNode(i,n,t,r,e,a)),function(e){return o(e,n,t.getTypeChecker())})},M.getReferenceEntriesForNode=s,M.toRenameLocation=function(e,t,r,n){return __assign(__assign({},g(e)),n&&function(e,t,r){if(0!==e.kind&&O.isIdentifier(t)){var n=e.node,i=e.kind,a=n.parent,o=t.text,s=O.isShorthandPropertyAssignment(a);if(s||O.isObjectBindingElementWithoutPropertyName(a)&&a.name===n&&void 0===a.dotDotDotToken){var c={prefixText:o+": "},n={suffixText:": "+o};if(3===i)return c;if(4===i)return n;if(s){s=a.parent;return O.isObjectLiteralExpression(s)&&O.isBinaryExpression(s.parent)&&O.isModuleExportsAccessExpression(s.parent.left)?c:n}return c}if(O.isImportSpecifier(a)&&!a.propertyName){c=O.isExportSpecifier(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return O.contains(c.declarations,a)?{prefixText:o+" as "}:O.emptyOptions}if(O.isExportSpecifier(a)&&!a.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:o+" as "}:{suffixText:" as "+o}}return O.emptyOptions}(e,t,r))},M.toReferenceEntry=f,M.toHighlightSpan=function(e){var t=g(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=i(e.node),e=__assign({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:e}},M.getTextSpanOfEntry=R,function(e){function g(e,t,r){if(e.parent&&O.isNamespaceExportDeclaration(e.parent)){t=r.getAliasedSymbol(t),r=r.getMergedSymbol(t);if(t!==r)return r}}function l(e,t,r,n,i,a){var o=1536&e.flags&&e.declarations&&O.find(e.declarations,O.isSourceFile);if(o){var s=e.exports.get("export="),c=d(t,e,!!s,r,a);if(!s||!a.has(o.fileName))return c;o=t.getTypeChecker();return _(t,c,f(e=O.skipAlias(s,o),void 0,r,a,o,n,i))}}function _(i){for(var a,e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var r=0,n=e;r<n.length;r++){var o=n[r];if(o&&o.length)if(a)for(var s=0,c=o;s<c.length;s++)!function(e){if(!e.definition||0!==e.definition.type)return a.push(e);var t=e.definition.symbol,r=O.findIndex(a,function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===t});if(-1===r)return a.push(e);var n=a[r];a[r]={definition:n.definition,references:n.references.concat(e.references).sort(function(e,t){var r=u(i,e),n=u(i,t);if(r!==n)return O.compareValues(r,n);e=R(e),t=R(t);return e.start!==t.start?O.compareValues(e.start,t.start):O.compareValues(e.length,t.length)})}}(c[s]);else a=o}return a}function u(e,t){t=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function d(e,t,r,n,i){O.Debug.assert(!!t.valueDeclaration);var a=O.mapDefined(M.findModuleReferences(e,n,t),function(e){if("import"!==e.kind)return{kind:0,fileName:e.referencingFile.fileName,textSpan:O.createTextSpanFromRange(e.ref)};var t=e.literal.parent;if(O.isLiteralTypeNode(t)){t=O.cast(t.parent,O.isImportTypeNode);if(r&&!t.qualifier)return}return L(e.literal)});if(t.declarations)for(var o=0,s=t.declarations;o<s.length;o++)switch((l=s[o]).kind){case 297:break;case 256:i.has(l.getSourceFile().fileName)&&a.push(L(l.name));break;default:O.Debug.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}n=t.exports.get("export=");if(n)for(var c=0,u=n.declarations;c<u.length;c++){var l,_=(l=u[c]).getSourceFile();i.has(_.fileName)&&(_=O.isBinaryExpression(l)&&O.isPropertyAccessExpression(l.left)?l.left.expression:O.isExportAssignment(l)?O.Debug.checkDefined(O.findChildOfKind(l,92,_)):O.getNameOfDeclaration(l)||l,a.push(L(_)))}return a.length?[{definition:{type:0,symbol:t},references:a}]:O.emptyArray}function p(e){return 142===e.kind&&O.isTypeOperatorNode(e.parent)&&142===e.parent.operator}function f(e,t,r,n,i,a,o){var s,c,u,l,_=t&&function(t,r,n,e){var i=r.parent;if(O.isExportSpecifier(i)&&e)return E(r,t,i,n);return O.firstDefined(t.declarations,function(e){if(!e.parent){if(33554432&t.flags)return;O.Debug.fail("Unexpected symbol at "+O.Debug.formatSyntaxKind(r.kind)+": "+O.Debug.formatSymbol(t))}return O.isTypeLiteralNode(e.parent)&&O.isUnionTypeNode(e.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(e.parent.parent),t.name):void 0})}(e,t,i,!I(o))||e,d=t?P(t,_):7,p=[],a=new y(r,n,t?function(e){switch(e.kind){case 132:return 1;case 78:if(O.isClassLike(e.parent))return O.Debug.assert(e.parent.name===e),2;default:return 0}}(t):0,i,a,d,o,p),d=I(o)?O.find(_.declarations,O.isExportSpecifier):void 0;return d?C(d.name,_,d,a.createSearch(t,e,void 0),a,!0,!0):t&&87===t.kind?(k(t,_,a),h(t,_,{exportingModuleSymbol:O.Debug.checkDefined(_.parent,"Expected export symbol to have a parent"),exportKind:1},a)):(c=a.createSearch(t,_,void 0,{allSearchSymbols:t?(s=_,e=t,t=i,i=2===o.use,c=!!o.providePrefixAndSuffixTextForRename,u=!!o.implementations,l=[],A(s,e,t,i,!(i&&c),function(e,t,r){r&&F(s)!==F(r)&&(r=void 0),l.push(r||t||e)},function(){return!u}),l):[_]}),m(_,a,c)),p}function m(e,t,r){e=function(e){var t=e.declarations,r=e.flags,n=e.parent,i=e.valueDeclaration;if(i&&(208===i.kind||221===i.kind))return i;if(!t)return;if(8196&r){r=O.find(t,function(e){return O.hasEffectiveModifier(e,8)||O.isPrivateIdentifierPropertyDeclaration(e)});return r?O.getAncestor(r,252):void 0}if(t.some(O.isObjectBindingElementWithoutPropertyName))return;var a,e=n&&!(262144&e.flags);if(e&&(!O.isExternalModuleSymbol(n)||n.globalExports))return;for(var o=0,s=t;o<s.length;o++){var c=s[o],c=O.getContainerNode(c);if(a&&a!==c)return;if(!c||297===c.kind&&!O.isExternalOrCommonJsModule(c))return;a=c}return e?a.getSourceFile():a}(e);if(e)o(e,e.getSourceFile(),r,t,!(O.isSourceFile(e)&&!O.contains(t.sourceFiles,e)));else for(var n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];t.cancellationToken.throwIfCancellationRequested(),b(a,r,t)}}var t;e.getReferencedSymbolsForNode=function(e,t,r,n,i,a,o){if(void 0===a&&(a={}),void 0===o&&(o=new O.Set(n.map(function(e){return e.fileName}))),1===a.use?t=O.getAdjustedReferenceLocation(t):2===a.use&&(t=O.getAdjustedRenameLocation(t)),O.isSourceFile(t)){var s=O.GoToDefinition.getReferenceAtPosition(t,e,r),c=s&&r.getTypeChecker().getMergedSymbol(s.file.symbol);return c&&d(r,c,!1,n,o)}if(!a.implementations){var u=function(e,t,r){if(O.isTypeKeyword(e.kind))return(113!==e.kind||!O.isVoidExpression(e.parent))&&(142!==e.kind||p(e))?function(e,t,r,n){e=O.flatMap(e,function(e){return r.throwIfCancellationRequested(),O.mapDefined(x(e,O.tokenToString(t),e),function(e){if(e.kind===t&&(!n||n(e)))return L(e)})});return e.length?[{definition:{type:2,node:e[0].node},references:e}]:void 0}(t,e.kind,r,142===e.kind?p:void 0):void 0;{if(O.isJumpStatementTarget(e)){var n=O.getTargetLabel(e.parent,e.text);return n&&D(n.parent,n)}if(O.isLabelOfLabeledStatement(e))return D(e.parent,e)}if(O.isThis(e))return function(e,t,r){var n=O.getThisContainer(e,!1),i=32;switch(n.kind){case 165:case 164:if(O.isObjectLiteralMethod(n))break;case 163:case 162:case 166:case 167:case 168:i&=O.getSyntacticModifierFlags(n),n=n.parent;break;case 297:if(O.isExternalModule(n)||N(e))return;case 251:case 208:break;default:return}t=O.flatMap(297===n.kind?t:[n.getSourceFile()],function(e){return r.throwIfCancellationRequested(),x(e,"this",O.isSourceFile(n)?e:n).filter(function(e){if(!O.isThis(e))return!1;var t=O.getThisContainer(e,!1);switch(n.kind){case 208:case 251:return n.symbol===t.symbol;case 165:case 164:return O.isObjectLiteralMethod(n)&&n.symbol===t.symbol;case 221:case 252:return t.parent&&n.symbol===t.parent.symbol&&(32&O.getSyntacticModifierFlags(t))===i;case 297:return 297===t.kind&&!O.isExternalModule(t)&&!N(e)}})}).map(function(e){return L(e)});return[{definition:{type:3,node:O.firstDefined(t,function(e){return O.isParameter(e.node.parent)?e.node:void 0})||e},references:t}]}(e,t,r);return 105!==e.kind?void 0:function(e){var r=O.getSuperContainer(e,!1);if(!r)return;var n=32;switch(r.kind){case 163:case 162:case 165:case 164:case 166:case 167:case 168:n&=O.getSyntacticModifierFlags(r),r=r.parent;break;default:return}e=r.getSourceFile(),e=O.mapDefined(x(e,"super",r),function(e){if(105===e.kind){var t=O.getSuperContainer(e,!1);return t&&(32&O.getSyntacticModifierFlags(t))===n&&t.parent.symbol===r.symbol?L(e):void 0}});return[{definition:{type:0,symbol:r.symbol},references:e}]}(e)}(t,n,i);if(u)return u}return e=r.getTypeChecker(),(s=e.getSymbolAtLocation(t))?"export="===s.escapedName?d(r,s.parent,!1,n,o):!(c=l(s,r,n,i,a,o))||33554432&s.flags?(u=(u=g(t,s,e))&&l(u,r,n,i,a,o),_(r,c,f(s,t,n,o,e,i,a),u)):c:!a.implementations&&O.isStringLiteral(t)?function(t,e,r){e=O.flatMap(e,function(e){return r.throwIfCancellationRequested(),O.mapDefined(x(e,t.text),function(e){return O.isStringLiteral(e)&&e.text===t.text?L(e,2):void 0})});return[{definition:{type:4,node:t},references:e}]}(t,n,i):void 0},(t={})[t.None=0]="None",t[t.Constructor=1]="Constructor",t[t.Class=2]="Class";var y=(r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=M.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)},r.prototype.createSearch=function(e,t,r,n){void 0===n&&(n={});var i=n.text,i=void 0===i?O.stripQuotes(O.symbolName(O.getLocalSymbolForExportDefault(t)||function(e){if(33555968&e.flags){e=e.declarations&&O.find(e.declarations,function(e){return!O.isSourceFile(e)&&!O.isModuleDeclaration(e)});return e&&e.symbol}}(t)||t)):i,n=n.allSearchSymbols,a=void 0===n?[t]:n;return{symbol:t,comingFrom:r,text:i,escapedText:O.escapeLeadingUnderscores(i),parents:this.options.implementations&&e?function(e,t,r){e=O.isRightSideOfPropertyAccess(e)?e.parent:void 0,e=e&&r.getTypeAtLocation(e.expression),e=O.mapDefined(e&&(e.isUnionOrIntersection()?e.types:e.symbol===t.parent?void 0:[e]),function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0});return 0===e.length?void 0:e}(e,t,this.checker):void 0,allSearchSymbols:a,includes:function(e){return O.contains(a,e)}}},r.prototype.referenceAdder=function(e){var t=O.getSymbolId(e),r=this.symbolIdToReferences[t];return r||(r=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:r})),function(e,t){return r.push(L(e,t))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(e,t){for(var e=O.getNodeId(e),r=this.sourceFileToSeenSymbols[e]||(this.sourceFileToSeenSymbols[e]=new O.Set),n=!1,i=0,a=t;i<a.length;i++)var o=a[i],n=O.tryAddToSet(r,O.getSymbolId(o))||n;return n},r);function r(e,t,r,n,i,a,o,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=r,this.checker=n,this.cancellationToken=i,this.searchMeaning=a,this.options=o,this.result=s,this.inheritsFromCache=new O.Map,this.markSeenContainingTypeReference=O.nodeSeenTracker(),this.markSeenReExportRHS=O.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}function h(e,t,r,n){var i,a,o=n.getImportSearches(t,r),s=o.importSearches,c=o.singleReferences,o=o.indirectUsers;if(c.length)for(var u=n.referenceAdder(t),l=0,_=c;l<_.length;l++){var d=_[l];!T(i=d,a=n)||2===a.options.use&&(!O.isIdentifier(i)||O.isImportOrExportSpecifier(i.parent)&&"default"===i.escapedText)||u(d)}for(var p=0,f=s;p<f.length;p++){var g=f[p],m=g[0],g=g[1];S(m.getSourceFile(),n.createSearch(m,g,1),n)}if(o.length){var y=void 0;switch(r.exportKind){case 0:y=n.createSearch(e,t,1);break;case 1:y=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(y)for(var h=0,v=o;h<v.length;h++)b(v[h],y,n)}}function v(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();S(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function b(e,t,r){void 0!==O.getNameTable(e).get(t.escapedText)&&S(e,t,r)}function i(e,t,r,n,i){void 0===i&&(i=r);var a=O.isParameterPropertyDeclaration(e.parent,e.parent.parent)?O.first(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(a)for(var o=0,s=x(r,a.name,i);o<s.length;o++){var c=s[o];if(O.isIdentifier(c)&&c!==e&&c.escapedText===e.escapedText){var u=t.getSymbolAtLocation(c);if(u===a||t.getShorthandAssignmentValueSymbol(c.parent)===a||O.isExportSpecifier(c.parent)&&E(c,u,c.parent,t)===a){c=n(c);if(c)return c}}}}function x(t,e,r){return void 0===r&&(r=t),s(t,e,r).map(function(e){return O.getTouchingPropertyName(t,e)})}function s(e,t,r){void 0===r&&(r=e);var n=[];if(!t||!t.length)return n;for(var i=e.text,a=i.length,o=t.length,s=i.indexOf(t,r.pos);0<=s&&!(s>r.end);){var c=s+o;0!==s&&O.isIdentifierPart(i.charCodeAt(s-1),99)||c!==a&&O.isIdentifierPart(i.charCodeAt(c),99)||n.push(s),s=i.indexOf(t,s+o+1)}return n}function D(e,t){var r=e.getSourceFile(),n=t.text,e=O.mapDefined(x(r,n,e),function(e){return e===t||O.isJumpStatementTarget(e)&&O.getTargetLabel(e,n)===t?L(e):void 0});return[{definition:{type:1,node:t},references:e}]}function S(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),o(e,e,t,r,n),0}function o(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=s(t,r.text,e);a<o.length;a++)!function(e,t,r,n,i){var a=O.getTouchingPropertyName(e,t);if(!function(e,t){switch(e.kind){case 79:case 78:return e.text.length===t.length;case 14:case 10:var r=e;return(O.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||O.isNameOfModuleDeclaration(e)||O.isExpressionOfExternalModuleImportEqualsDeclaration(e)||O.isCallExpression(e.parent)&&O.isBindableObjectDefinePropertyCall(e.parent)&&e.parent.arguments[1]===e)&&r.text.length===t.length;case 8:return O.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)&&e.text.length===t.length;case 87:return"default".length===t.length;default:return}}(a,r.text))return!n.options.implementations&&(n.options.findInStrings&&O.isInString(e,t)||n.options.findInComments&&O.isInNonReferenceComment(e,t))&&n.addStringOrCommentReference(e.fileName,O.createTextSpan(t,r.text.length));if(T(a,n)){var o=n.checker.getSymbolAtLocation(a);if(o&&(t=a.parent,!O.isImportSpecifier(t)||t.propertyName!==a)){if(O.isExportSpecifier(t))return O.Debug.assert(78===a.kind),C(a,o,t,r,n,i),0;var s=function(i,a,e,r){var n=r.checker;return A(a,e,n,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,function(e,t,r,n){return r&&F(a)!==F(r)&&(r=void 0),i.includes(r||t||e)?{symbol:!t||6&O.getCheckFlags(e)?e:t,kind:n}:void 0},function(t){return!i.parents||i.parents.some(function(e){return function t(e,r,n,i){if(e===r)return!0;var a=O.getSymbolId(e)+","+O.getSymbolId(r);var o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var e=!!e.declarations&&e.declarations.some(function(e){return O.getAllSuperTypeNodes(e).some(function(e){var e=i.getTypeAtLocation(e);return!!e&&!!e.symbol&&t(e.symbol,r,n,i)})});n.set(a,e);return e}(t.parent,e,r.inheritsFromCache,n)})})}(r,o,a,n);if(!s)return function(e,t,r){var n=e.flags,i=e.valueDeclaration,e=r.checker.getShorthandAssignmentValueSymbol(i),i=i&&O.getNameOfDeclaration(i);33554432&n||!i||!t.includes(e)||k(i,e,r)}(o,r,n),0;switch(n.specialSearchKind){case 0:i&&k(a,s,n);break;case 1:!function(e,t,r,n){function i(){return n.referenceAdder(r.symbol)}O.isNewExpressionTarget(e)&&k(e,r.symbol,n),O.isClassLike(e.parent)?(O.Debug.assert(87===e.kind||e.parent.name===e),function(e,t,r){var n=c(e);if(n&&n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i],s=O.findChildOfKind(o,132,t);O.Debug.assert(166===o.kind&&!!s),r(s)}e.exports&&e.exports.forEach(function(e){e=e.valueDeclaration;!e||165!==e.kind||(e=e.body)&&w(e,107,function(e){O.isNewExpressionTarget(e)&&r(e)})})}(r.symbol,t,i())):(e=function(e){return O.tryGetClassExtendingExpressionWithTypeArguments(O.climbPastPropertyAccess(e).parent)}(e))&&(function(e,t){if((e=c(e.symbol))&&e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];O.Debug.assert(166===i.kind);i=i.body;i&&w(i,105,function(e){O.isCallExpressionTarget(e)&&t(e)})}}(e,i()),function(e,t){var r;!function(e){return!!c(e.symbol)}(e)&&(r=e.symbol,e=t.createSearch(void 0,r,void 0),m(r,t,e))}(e,n))}(a,e,r,n);break;case 2:!function(e,t,r){k(e,t.symbol,r);var n=e.parent;if(2!==r.options.use&&O.isClassLike(n)){O.Debug.assert(n.name===e);for(var i=r.referenceAdder(t.symbol),a=0,o=n.members;a<o.length;a++){var s=o[a];O.isMethodOrAccessor(s)&&O.hasSyntacticModifier(s,32)&&s.body&&s.body.forEachChild(function e(t){107===t.kind?i(t):O.isFunctionLike(t)||O.isClassLike(t)||t.forEachChild(e)})}}}(a,r,n);break;default:O.Debug.assertNever(n.specialSearchKind)}!function(e,t,r,n){(t=M.getImportOrExportSymbol(e,t,n.checker,1===r.comingFrom))&&(r=t.symbol,0===t.kind?I(n.options)||v(r,n):h(e,r,t.exportInfo,n))}(a,o,r,n)}}}(t,o[a],r,n,i)}function T(e,t){return O.getMeaningFromLocation(e)&t.searchMeaning}function C(e,t,r,n,i,a,o){O.Debug.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var s=r.parent,c=r.propertyName,u=r.name,s=s.parent,l=E(e,t,r,i.checker);function _(){a&&k(e,l,i)}(o||n.includes(l))&&(c?e===c?(s.moduleSpecifier||_(),a&&2!==i.options.use&&i.markSeenReExportRHS(u)&&k(u,O.Debug.checkDefined(r.symbol),i)):i.markSeenReExportRHS(e)&&_():2===i.options.use&&"default"===u.escapedText||_(),I(i.options)&&!o||(u=87===e.originalKeywordKind||87===r.name.originalKeywordKind?1:0,o=O.Debug.checkDefined(r.symbol),(u=M.getExportInfo(o,u,i.checker))&&h(e,o,u,i)),1===n.comingFrom||!s.moduleSpecifier||c||I(i.options)||(r=i.checker.getExportSpecifierLocalTargetSymbol(r))&&v(r,i))}function E(e,t,r,n){return i=e,o=(a=r).parent,e=a.propertyName,a=a.name,O.Debug.assert(e===i||a===i),(e?e===i:!o.parent.moduleSpecifier)&&n.getExportSpecifierLocalTargetSymbol(r)||t;var i,a,o}function k(e,t,r){var n="kind"in t?t:{kind:void 0,symbol:t},t=n.kind,n=n.symbol,n=r.referenceAdder(n);r.options.implementations?function(e,t,r){if(O.isDeclarationName(e)&&function(e){return 8388608&e.flags?!(O.isInterfaceDeclaration(e)||O.isTypeAliasDeclaration(e)):O.isVariableLike(e)?O.hasInitializer(e):O.isFunctionLikeDeclaration(e)?!!e.body:O.isClassLike(e)||O.isModuleOrEnumDeclaration(e)}(e.parent))return t(e);if(78===e.kind){289===e.parent.kind&&a(e,r.checker,t);var n=function e(t){return O.isIdentifier(t)||O.isPropertyAccessExpression(t)?e(t.parent):O.isExpressionWithTypeArguments(t)?O.tryCast(t.parent.parent,O.isClassLike):void 0}(e);if(n)return t(n);n=O.findAncestor(e,function(e){return!O.isQualifiedName(e.parent)&&!O.isTypeNode(e.parent)&&!O.isTypeElement(e.parent)}),e=n.parent,O.hasType(e)&&e.type===n&&r.markSeenContainingTypeReference(e)&&(O.hasInitializer(e)?i(e.initializer):O.isFunctionLike(e)&&e.body?230===(r=e.body).kind?O.forEachReturnStatement(r,function(e){e.expression&&i(e.expression)}):i(r):O.isAssertionExpression(e)&&i(e.expression))}function i(e){!function e(t){switch(t.kind){case 207:return e(t.expression);case 209:case 208:case 200:case 221:case 199:return!0;default:return!1}}(e)||t(e)}}(e,n,r):n(e,t)}function c(e){return e.members&&e.members.get("__constructor")}function N(e){return 78===e.kind&&160===e.parent.kind&&e.parent.name===e}function A(e,t,i,r,n,a,o){var s=O.getContainingObjectLiteralElement(t);if(s){var c=i.getShorthandAssignmentValueSymbol(t.parent);if(c&&r)return a(c,void 0,void 0,3);var u=i.getContextualType(s.parent),s=u&&O.firstDefined(O.getPropertySymbolsFromContextualType(s,i,u,!0),function(e){return p(e,4)});if(s)return s;u=(u=t,s=i,O.isArrayLiteralOrObjectLiteralDestructuringPattern(u.parent.parent)?s.getPropertySymbolOfDestructuringAssignment(u):void 0),u=u&&a(u,void 0,void 0,4);if(u)return u;c=c&&a(c,void 0,void 0,3);if(c)return c}c=g(t,e,i);if(c){var l=a(c,void 0,void 0,1);if(l)return l}l=p(e);if(l)return l;if(e.valueDeclaration&&O.isParameterPropertyDeclaration(e.valueDeclaration,e.valueDeclaration.parent)){var _=i.getSymbolsOfParameterPropertyDeclaration(O.cast(e.valueDeclaration,O.isParameter),e.name);return O.Debug.assert(2===_.length&&!!(1&_[0].flags)&&!!(4&_[1].flags)),p(1&e.flags?_[1]:_[0])}_=O.getDeclarationOfKind(e,270);if(!r||_&&!_.propertyName){_=_&&i.getExportSpecifierLocalTargetSymbol(_);if(_){_=a(_,void 0,void 0,1);if(_)return _}}if(r)return O.Debug.assert(r),n?(d=f(e,i))&&p(d,4):void 0;var d=void 0;return(d=n?O.isObjectBindingElementWithoutPropertyName(t.parent)?O.getPropertySymbolFromBindingElement(i,t.parent):void 0:f(e,i))&&p(d,4);function p(r,n){return O.firstDefined(i.getRootSymbols(r),function(t){return a(r,t,void 0,n)||(t.parent&&96&t.parent.flags&&o(t)?O.getPropertySymbolsFromBaseTypes(t.parent,t.name,i,function(e){return a(r,t,e,n)}):void 0)})}function f(e,t){e=O.getDeclarationOfKind(e,198);if(e&&O.isObjectBindingElementWithoutPropertyName(e))return O.getPropertySymbolFromBindingElement(t,e)}}function F(e){return!!e.valueDeclaration&&!!(32&O.getEffectiveModifierFlags(e.valueDeclaration))}function P(e,t){var r=O.getMeaningFromLocation(e),n=t.declarations;if(n){var i;do{i=r;for(var a=0,o=n;a<o.length;a++){var s=o[a],s=O.getMeaningFromDeclaration(s);s&r&&(r|=s)}}while(r!==i)}return r}function a(e,t,r){e=t.getSymbolAtLocation(e),e=t.getShorthandAssignmentValueSymbol(e.valueDeclaration);if(e)for(var n=0,i=e.getDeclarations();n<i.length;n++){var a=i[n];1&O.getMeaningFromDeclaration(a)&&r(a)}}function w(e,t,r){O.forEachChild(e,function(e){e.kind===t&&r(e),w(e,t,r)})}function I(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,r,n,i,a,o,s){for(var i=(r=M.createImportTracker(e,new O.Set(e.map(function(e){return e.fileName})),t,r)(n,{exportKind:o?1:0,exportingModuleSymbol:i},!1)).importSearches,r=r.indirectUsers,c=0,u=i;c<u.length;c++)s(u[c][0]);for(var l=0,_=r;l<_.length;l++)for(var d=0,p=x(_[l],o?"default":a);d<p.length;d++){var f=p[d];O.isIdentifier(f)&&!O.isImportOrExportSpecifier(f.parent)&&t.getSymbolAtLocation(f)===n&&s(f)}},e.isSymbolReferencedInFile=function(e,t,r,n){return void 0===n&&(n=r),i(e,t,r,function(){return!0},n)||!1},e.eachSymbolReferenceInFile=i,e.eachSignatureCall=function(e,t,r,n){if(e.name&&O.isIdentifier(e.name))for(var i=O.Debug.checkDefined(r.getSymbolAtLocation(e.name)),a=0,o=t;a<o.length;a++)for(var s=0,c=x(o[a],i.name);s<c.length;s++){var u,l,_=c[s];O.isIdentifier(_)&&_!==e.name&&_.escapedText===e.name.escapedText&&(l=(u=O.climbPastPropertyAccess(_)).parent,!O.isCallExpression(l)||l.expression!==u||(_=r.getSymbolAtLocation(_))&&r.getRootSymbols(_).some(function(e){return e===i})&&n(l))}},e.getIntersectingMeaningFromDeclarations=P,e.getReferenceEntriesForShorthandPropertyAssignment=a}(c=M.Core||(M.Core={}))}(ts=ts||{}),function(u){var e;function s(e){return(u.isFunctionExpression(e)||u.isArrowFunction(e)||u.isClassExpression(e))&&u.isVariableDeclaration(e.parent)&&e===e.parent.initializer&&u.isIdentifier(e.parent.name)&&!!(2&u.getCombinedNodeFlags(e.parent))}function o(e){return u.isSourceFile(e)||u.isModuleDeclaration(e)||u.isFunctionDeclaration(e)||u.isFunctionExpression(e)||u.isClassDeclaration(e)||u.isClassExpression(e)||u.isMethodDeclaration(e)||u.isMethodSignature(e)||u.isGetAccessorDeclaration(e)||u.isSetAccessorDeclaration(e)}function l(e){return u.isSourceFile(e)||u.isModuleDeclaration(e)&&u.isIdentifier(e.name)||u.isFunctionDeclaration(e)||u.isClassDeclaration(e)||u.isMethodDeclaration(e)||u.isMethodSignature(e)||u.isGetAccessorDeclaration(e)||u.isSetAccessorDeclaration(e)||(t=e,(u.isFunctionExpression(t)||u.isClassExpression(t))&&u.isNamedDeclaration(t))||s(e);var t}function n(e){return u.isSourceFile(e)?e:u.isNamedDeclaration(e)?e.name:s(e)?e.parent.name:u.Debug.checkDefined(e.modifiers&&u.find(e.modifiers,c))}function c(e){return 87===e.kind}function _(e,t){t=n(t);return t&&e.getSymbolAtLocation(t)}function d(e,t){if(t.body)return t;if(u.isConstructorDeclaration(t))return u.getFirstConstructorWithBody(t.parent);if(u.isFunctionDeclaration(t)||u.isMethodDeclaration(t)){e=_(e,t);return e&&e.valueDeclaration&&u.isFunctionLikeDeclaration(e.valueDeclaration)&&e.valueDeclaration.body?e.valueDeclaration:void 0}return t}function i(e,t){var r,n=_(e,t);if(n&&n.declarations){var t=u.indicesOf(n.declarations),i=u.map(n.declarations,function(e){return{file:e.getSourceFile().fileName,pos:e.pos}});t.sort(function(e,t){return u.compareStringsCaseSensitive(i[e].file,i[t].file)||i[e].pos-i[t].pos});for(var a=void 0,o=0,s=u.map(t,function(e){return n.declarations[e]});o<s.length;o++){var c=s[o];l(c)&&(a&&a.parent===c.parent&&a.end===c.pos||(r=u.append(r,c)),a=c)}}return r}function p(e,t){var r;return u.isFunctionLikeDeclaration(t)?null!==(r=null!==(r=d(e,t))&&void 0!==r?r:i(e,t))&&void 0!==r?r:t:null!==(e=i(e,t))&&void 0!==e?e:t}function f(e,t){for(var r,n=e.getTypeChecker(),i=!1;;){if(l(t))return p(n,t);if(o(t))return(r=u.findAncestor(t,l))&&p(n,r);if(u.isDeclarationName(t))return l(t.parent)?p(n,t.parent):o(t.parent)?(r=u.findAncestor(t.parent,l))&&p(n,r):u.isVariableDeclaration(t.parent)&&t.parent.initializer&&s(t.parent.initializer)?t.parent.initializer:void 0;if(u.isConstructorDeclaration(t))return l(t.parent)?t.parent:void 0;if(u.isVariableDeclaration(t)&&t.initializer&&s(t.initializer))return t.initializer;if(!i){var a=n.getSymbolAtLocation(t);if(a&&(2097152&a.flags&&(a=n.getAliasedSymbol(a)),a.valueDeclaration)){i=!0,t=a.valueDeclaration;continue}}return}}function a(e,t){var r=t.getSourceFile(),n=function(e,t){if(u.isSourceFile(t))return{text:t.fileName,pos:0,end:0};if((u.isFunctionDeclaration(t)||u.isClassDeclaration(t))&&!u.isNamedDeclaration(t)){var r=t.modifiers&&u.find(t.modifiers,c);if(r)return{text:"default",pos:r.getStart(),end:r.getEnd()}}var n,i=s(t)?t.parent.name:u.Debug.checkDefined(u.getNameOfDeclaration(t),"Expected call hierarchy item to have a name"),a=u.isIdentifier(i)?u.idText(i):u.isStringOrNumericLiteralLike(i)?i.text:u.isComputedPropertyName(i)&&u.isStringOrNumericLiteralLike(i.expression)?i.expression.text:void 0;return void 0!==a||(e=(r=e.getTypeChecker()).getSymbolAtLocation(i))&&(a=r.symbolToString(e,t)),void 0===a&&(n=u.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),a=u.usingSingleLineStringWriter(function(e){return n.writeNode(4,t,t.getSourceFile(),e)})),{text:a,pos:i.getStart(),end:i.getEnd()}}(e,t),i=function(e){var t;if(s(e))return u.isModuleBlock(e.parent.parent.parent.parent)&&u.isIdentifier(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 167:case 168:case 165:return 200===e.parent.kind?null===(t=u.getAssignedName(e.parent))||void 0===t?void 0:t.getText():null===(t=u.getNameOfDeclaration(e.parent))||void 0===t?void 0:t.getText();case 251:case 252:case 256:if(u.isModuleBlock(e.parent)&&u.isIdentifier(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),a=u.getNodeKind(t),o=u.getNodeModifiers(t),e=u.createTextSpanFromBounds(u.skipTrivia(r.text,t.getFullStart(),!1,!0),t.getEnd()),t=u.createTextSpanFromBounds(n.pos,n.end);return{file:r.fileName,kind:a,kindModifiers:o,name:n.text,containerName:i,span:e,selectionSpan:t}}function g(e){return void 0!==e}function m(e){if(1===e.kind){var t=e.node;if(u.isCallOrNewExpressionTarget(t,!0,!0)||u.isTaggedTemplateTag(t,!0,!0)||u.isDecoratorTarget(t,!0,!0)||u.isJsxOpeningLikeElementTagName(t,!0,!0)||u.isRightSideOfPropertyAccess(t)||u.isArgumentExpressionOfElementAccess(t)){e=t.getSourceFile();return{declaration:u.findAncestor(t,l)||e,range:u.createTextRangeFromNode(t,e)}}}}function y(e){return u.getNodeId(e.declaration)}function h(s,c){function a(e){var t=u.isTaggedTemplateExpression(e)?e.tag:u.isJsxOpeningLikeElement(e)?e.tagName:u.isAccessExpression(e)?e:e.expression,r=f(s,t);if(r){var n=u.createTextRangeFromNode(t,e.getSourceFile());if(u.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i];c.push({declaration:o,range:n})}else c.push({declaration:r,range:n})}}return function e(t){if(t&&!(8388608&t.flags))if(l(t)){if(u.isClassLike(t))for(var r=0,n=t.members;r<n.length;r++){var i=n[r];i.name&&u.isComputedPropertyName(i.name)&&e(i.name.expression)}}else{switch(t.kind){case 78:case 260:case 261:case 267:case 253:case 254:return;case 206:case 224:return void e(t.expression);case 249:case 160:return e(t.name),void e(t.initializer);case 203:case 204:return a(t),e(t.expression),void u.forEach(t.arguments,e);case 205:return a(t),e(t.tag),void e(t.template);case 275:case 274:return a(t),e(t.tagName),void e(t.attributes);case 161:return a(t),void e(t.expression);case 201:case 202:a(t),u.forEachChild(t,e)}u.isPartOfTypeNode(t)||u.forEachChild(t,e)}}}function r(e,t){var r,n,i,a,o=[],s=h(e,o);switch(t.kind){case 297:i=t,a=s,u.forEach(i.statements,a);break;case 256:r=t,n=s,!u.hasSyntacticModifier(r,2)&&r.body&&u.isModuleBlock(r.body)&&u.forEach(r.body.statements,n);break;case 251:case 208:case 209:case 165:case 167:case 168:r=e.getTypeChecker(),n=s,(r=d(r,r=t))&&(u.forEach(r.parameters,n),n(r.body));break;case 252:case 221:!function(e,t){u.forEach(e.decorators,t);var r=u.getClassExtendsHeritageElement(e);r&&t(r.expression);for(var n=0,i=e.members;n<i.length;n++){var a=i[n];u.forEach(a.decorators,t),u.isPropertyDeclaration(a)?t(a.initializer):u.isConstructorDeclaration(a)&&a.body&&(u.forEach(a.parameters,t),t(a.body))}}(t,s);break;default:u.Debug.assertNever(t)}return o}(e=u.CallHierarchy||(u.CallHierarchy={})).resolveCallHierarchyDeclaration=f,e.createCallHierarchyItem=a,e.getIncomingCalls=function(t,e,r){return u.isSourceFile(e)||u.isModuleDeclaration(e)?[]:(e=n(e),(e=u.filter(u.FindAllReferences.findReferenceOrRenameEntries(t,r,t.getSourceFiles(),e,0,{use:1},m),g))?u.group(e,y,function(e){return{from:a(t,(e=e)[0].declaration),fromSpans:u.map(e,function(e){return u.createTextSpanFromRange(e.range)})}}):[])},e.getOutgoingCalls=function(t,e){return 8388608&e.flags||u.isMethodSignature(e)?[]:u.group(r(t,e),y,function(e){return{to:a(t,(e=e)[0].declaration),fromSpans:u.map(e,function(e){return u.createTextSpanFromRange(e.range)})}})}}(ts=ts||{}),function(x){function n(e,n,i,a){var o=i(e);return function(e){var t=a&&a.tryGetSourcePosition({fileName:e,pos:0}),r=function(e){if(i(e)===o)return n;e=x.tryRemoveDirectoryPrefix(e,o,i);return void 0===e?void 0:n+"/"+e}(t?t.fileName:e);return t?void 0===r?void 0:function(e,t,r,n){n=x.getRelativePathFromFile(e,t,n);return D(x.getDirectoryPath(r),n)}(t.fileName,r,e,i):r}}function D(e,t){return x.ensurePathIsNonModuleName((e=e,t=t,x.normalizePath(x.combinePaths(e,t))))}function S(e,r,n){if(e){if(e.resolvedModule){var t=a(e.resolvedModule.resolvedFileName);if(t)return t}t=x.forEach(e.failedLookupLocations,function(e){var t=r(e);return t&&x.find(n,function(e){return e.fileName===t})?i(e):void 0})||x.forEach(e.failedLookupLocations,i);return t||e.resolvedModule&&{newFileName:e.resolvedModule.resolvedFileName,updated:!1}}function i(e){return x.endsWith(e,"/package.json")?void 0:a(e)}function a(e){e=r(e);return e&&{newFileName:e,updated:!0}}}function T(e,t){return x.createRange(e.getStart(t)+1,e.end-1)}function C(e,t){if(x.isObjectLiteralExpression(e))for(var r=0,n=e.properties;r<n.length;r++){var i=n[r];x.isPropertyAssignment(i)&&x.isStringLiteral(i.name)&&t(i,i.name.text)}}x.getEditsForFileRename=function(p,f,g,m,e,t,r){var y=x.hostUsesCaseSensitiveFileNames(m),h=x.createGetCanonicalFileName(y),v=n(f,g,h,r),b=n(g,f,h,r);return x.textChanges.ChangeTracker.with({host:m,formatContext:e,preferences:t},function(e){function n(e){for(var t=!1,r=0,n=x.isArrayLiteralExpression(e.initializer)?e.initializer.elements:[e.initializer];r<n.length;r++)t=i(n[r])||t;return t}function i(e){if(!x.isStringLiteral(e))return!1;var t=D(_,e.text),t=r(t);return void 0!==t&&(o.replaceRangeWithText(d,T(e,d),a(t)),!0)}function a(e){return x.getRelativePathFromDirectory(_,e,!l)}var t,o,r,s,c,u,l,_,d;t=p,o=e,r=v,s=f,c=g,u=m.getCurrentDirectory(),l=y,(d=t.getCompilerOptions().configFile)&&(_=x.getDirectoryPath(d.fileName),(t=x.getTsConfigObjectLiteralExpression(d))&&C(t,function(e,t){switch(t){case"files":case"include":case"exclude":var r;!n(e)&&"include"===t&&x.isArrayLiteralExpression(e.initializer)&&(r=x.mapDefined(e.initializer.elements,function(e){return x.isStringLiteral(e)?e.text:void 0}),r=x.getFileMatcherPatterns(_,[],r,l,u),x.getRegexFromPattern(x.Debug.checkDefined(r.includeFilePattern),l).test(s)&&!x.getRegexFromPattern(x.Debug.checkDefined(r.includeFilePattern),l).test(c)&&o.insertNodeAfter(d,x.last(e.initializer.elements),x.factory.createStringLiteral(a(c))));break;case"compilerOptions":C(e.initializer,function(e,t){var r=x.getOptionFromName(t);r&&(r.isFilePath||"list"===r.type&&r.element.isFilePath)?n(e):"paths"===t&&C(e.initializer,function(e){if(x.isArrayLiteralExpression(e.initializer))for(var t=0,r=e.initializer.elements;t<r.length;t++)i(r[t])})})}})),function(c,u,l,_,d,p){for(var f=c.getSourceFiles(),e=function(r){var e=l(r.fileName),n=null!=e?e:r.fileName,t=x.getDirectoryPath(n),i=_(r.fileName),a=i||r.fileName,o=x.getDirectoryPath(a),s=void 0!==e||void 0!==i;!function(e,t,r,n){for(var i=0,a=e.referencedFiles||x.emptyArray;i<a.length;i++){var o=a[i];void 0!==(u=r(o.fileName))&&u!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,u)}for(var s=0,c=e.imports;s<c.length;s++){var u,l=c[s];void 0!==(u=n(l))&&u!==l.text&&t.replaceRangeWithText(e,T(l,e),u)}}(r,u,function(e){if(x.pathIsRelative(e)){e=D(o,e),e=l(e);return void 0===e?void 0:x.ensurePathIsNonModuleName(x.getRelativePathFromDirectory(t,e,p))}},function(e){var t=c.getTypeChecker().getSymbolAtLocation(e);if(!t||!t.declarations.some(function(e){return x.isAmbientModule(e)})){t=void 0!==i?S(x.resolveModuleName(e.text,a,c.getCompilerOptions(),d),l,f):function(e,t,r,n,i,a){{if(e){var o=x.find(e.declarations,x.isSourceFile).fileName,e=a(o);return void 0===e?{newFileName:o,updated:!1}:{newFileName:e,updated:!0}}return S(i.resolveModuleNames?i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName):n.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName),a,n.getSourceFiles())}}(t,e,r,c,d,l);return void 0!==t&&(t.updated||s&&x.pathIsRelative(e.text))?x.moduleSpecifiers.updateModuleSpecifier(c.getCompilerOptions(),p(n),t.newFileName,x.createModuleSpecifierResolutionHost(c,d),e.text):void 0}})},t=0,r=f;t<r.length;t++){var n=r[t];e(n)}}(p,e,v,b,m,h)})},x.getPathUpdater=n}(ts=ts||{}),function(d){var e;function i(e,t,r){var n,i=p(t,r,e);if(i)return[(n=i.fileName,{fileName:i.file.fileName,textSpan:d.createTextSpanFromBounds(0,0),kind:"script",name:n,containerName:void 0,containerKind:void 0})];var a=d.getTouchingPropertyName(t,r);if(a!==t){var r=a.parent,o=e.getTypeChecker();if(d.isJumpStatementTarget(a)){var s=d.getTargetLabel(a.parent,a.text);return s?[m(o,s,"label",a.text,void 0)]:void 0}t=function(e,t){var r=t.getSymbolAtLocation(e);for(;r;)if(2097152&r.flags&&function(e,t){if(78!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 262:case 260:return!0;case 265:return 264===t.parent.kind;case 198:case 249:return d.isInJSFile(t)&&d.isRequireVariableDeclaration(t,!0);default:return!1}}(e,r.declarations[0])){var n=t.getAliasedSymbol(r);if(!n.declarations)break;r=n}else{if(!function(e){e=d.tryCast(e.valueDeclaration,d.isShorthandPropertyAssignment),e=d.tryCast(null==e?void 0:e.parent.parent,d.isAssignmentExpression);return!!e&&2===d.getAssignmentDeclarationKind(e)}(r))break;n=t.resolveName(r.name,r.valueDeclaration,111551,!1);if(!d.some(null==n?void 0:n.declarations))break;r=n}return r}(a,o);if(!t)return function(e,t){if(!d.isPropertyAccessExpression(e.parent)||e.parent.name!==e)return;e=t.getTypeAtLocation(e.parent.expression);return d.mapDefined(e.isUnionOrIntersection()?e.types:[e],function(e){e=t.getIndexInfoOfType(e,0);return e&&e.declaration&&y(t,e.declaration)})}(a,o);var c=function(e,t){t=function(e){var t=d.findAncestor(e,function(e){return!d.isRightSideOfPropertyAccess(e)}),e=null==t?void 0:t.parent;return e&&d.isCallLikeExpression(e)&&d.getInvokedExpression(e)===t?e:void 0}(t),t=t&&e.getResolvedSignature(t);return d.tryCast(t&&t.declaration,function(e){return d.isFunctionLike(e)&&!d.isFunctionTypeNode(e)})}(o,a);if(c&&(!d.isJsxOpeningLikeElement(a.parent)||!function(e){switch(e.kind){case 166:case 175:case 170:return!0;default:return!1}}(c))){e=y(o,c);if(o.getRootSymbols(t).some(function(e){return(t=e)===(e=c).symbol||t===e.symbol.parent||d.isAssignmentExpression(e.parent)||!d.isCallLikeExpression(e.parent)&&t===e.parent.symbol;var t}))return[e];s=f(o,t,a,c)||d.emptyArray;return 105===a.kind?__spreadArrays([e],s):__spreadArrays(s,[e])}if(289===a.parent.kind){var u=o.getShorthandAssignmentValueSymbol(t.valueDeclaration);return u?u.declarations.map(function(e){return g(e,o,u,a)}):[]}if(d.isPropertyName(a)&&d.isBindingElement(r)&&d.isObjectBindingPattern(r.parent)&&a===(r.propertyName||r.name)){var l=d.getNameFromPropertyName(a),_=o.getTypeAtLocation(r.parent);return void 0===l?d.emptyArray:d.flatMap(_.isUnion()?_.types:[_],function(e){e=e.getProperty(l);return e&&f(o,e,a)})}r=d.getContainingObjectLiteralElement(a);if(r){_=r&&o.getContextualType(r.parent);if(_)return d.flatMap(d.getPropertySymbolsFromContextualType(r,o,_,!1),function(e){return f(o,e,a)})}return f(o,t,a)}}function p(e,t,r){var n=o(e.referencedFiles,t);if(n)return(a=r.getSourceFileFromReference(e,n))&&{fileName:n.fileName,file:a};var i=o(e.typeReferenceDirectives,t);if(i){n=r.getResolvedTypeReferenceDirectives().get(i.fileName);return(a=n&&r.getSourceFile(n.resolvedFileName))&&{fileName:i.fileName,file:a}}var a,t=o(e.libReferenceDirectives,t);return t?(a=r.getLibFileFromReference(t))&&{fileName:t.fileName,file:a}:void 0}function a(e,t,r){return d.flatMap(!e.isUnion()||32&e.flags?[e]:e.types,function(e){return e.symbol&&f(t,e.symbol,r)})}function f(r,n,i,t){var e=d.filter(n.declarations,function(e){return e!==t&&(!d.isAssignmentDeclaration(e)||e===n.valueDeclaration)})||void 0;return function(){if(32&n.flags&&!(19&n.flags)&&(d.isNewExpressionTarget(i)||132===i.kind))return a((d.find(e,d.isClassLike)||d.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(d.isCallOrNewExpressionTarget(i)||d.isNameOfFunctionDeclaration(i)?a(e,!1):void 0)||d.map(e,function(e){return g(e,r,n,i)});function a(e,t){if(e){e=e.filter(t?d.isConstructorDeclaration:d.isFunctionLike),t=e.filter(function(e){return!!e.body});return e.length?0!==t.length?t.map(function(e){return g(e,r,n,i)}):[g(d.last(e),r,n,i)]:void 0}}}function g(e,t,r,n){var i=t.symbolToString(r),a=d.SymbolDisplay.getSymbolKind(t,r,n),n=r.parent?t.symbolToString(r.parent,n):"";return m(t,e,a,i,n)}function m(e,t,r,n,i){var a=d.getNameOfDeclaration(t)||t,o=a.getSourceFile(),a=d.createTextSpanFromNode(a,o);return __assign(__assign({fileName:o.fileName,textSpan:a,kind:r,name:n,containerKind:void 0,containerName:i},d.FindAllReferences.toContextSpan(a,o,d.FindAllReferences.getContextNode(t))),{isLocal:!e.isDeclarationVisible(t)})}function y(e,t){return g(t,e,t.symbol,t)}function o(e,t){return d.find(e,function(e){return d.textRangeContainsPositionInclusive(e,t)})}(e=d.GoToDefinition||(d.GoToDefinition={})).getDefinitionAtPosition=i,e.getReferenceAtPosition=p,e.getTypeDefinitionAtPosition=function(e,t,r){var n=d.getTouchingPropertyName(t,r);if(n!==t){r=e.getSymbolAtLocation(n);if(r){t=e.getTypeOfSymbolAtLocation(r,n),r=function(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&d.isVariableDeclaration(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){t=t.getCallSignatures();if(1===t.length)return r.getReturnTypeOfSignature(d.first(t))}return}(r,t,e),r=r&&a(r,e,n);return r&&0!==r.length?r:a(t,e,n)}}},e.getDefinitionAndBoundSpan=function(e,t,r){var n=i(e,t,r);if(n&&0!==n.length){e=o(t.referencedFiles,r)||o(t.typeReferenceDirectives,r)||o(t.libReferenceDirectives,r);if(e)return{definitions:n,textSpan:d.createTextSpanFromRange(e)};r=d.getTouchingPropertyName(t,r);return{definitions:n,textSpan:d.createTextSpan(r.getStart(),r.getWidth())}}},e.findReferenceInPosition=o}(ts=ts||{}),function(l){var e,t,r,n;function i(e){return{name:e,kind:"",kindModifiers:"",displayParts:[l.textPart(e)],documentation:l.emptyArray,tags:void 0,codeActions:void 0}}function _(e){switch(e.kind){case 251:case 208:case 165:case 166:case 164:case 209:return{commentOwner:e,parameters:e.parameters};case 288:return _(e.initializer);case 252:case 253:case 162:case 255:case 291:case 254:return{commentOwner:e};case 232:var t=e.declarationList.declarations;return{commentOwner:e,parameters:1===t.length&&t[0].initializer?function(e){for(;207===e.kind;)e=e.expression;switch(e.kind){case 208:case 209:return e.parameters;case 221:var t=l.find(e.members,l.isConstructorDeclaration);return t?t.parameters:l.emptyArray}return l.emptyArray}(t[0].initializer):void 0};case 297:return"quit";case 256:return 256===e.parent.kind?void 0:{commentOwner:e};case 233:return _(e.expression);case 216:var r=e;return 0===l.getAssignmentDeclarationKind(r)?"quit":{commentOwner:e,parameters:l.isFunctionLike(r.right)?r.right.parameters:l.emptyArray};case 163:r=e.initializer;if(r&&(l.isFunctionExpression(r)||l.isArrowFunction(r)))return{commentOwner:e,parameters:r.parameters}}}e=l.JsDoc||(l.JsDoc={}),n=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],e.getJsDocCommentsFromDeclarations=function(e){var i=[];return l.forEachUnique(e,function(e){for(var t=0,r=function(e){switch(e.kind){case 326:case 333:return[e];case 324:case 331:return[e,e.parent];default:return l.getJSDocCommentsAndTags(e)}}(e);t<r.length;t++){var n=r[t].comment;void 0!==n&&l.pushIfUnique(i,n)}}),l.intersperse(l.map(i,l.textPart),l.lineBreakPart())},e.getJsDocTagsFromDeclarations=function(e){var i=[];return l.forEachUnique(e,function(e){for(var t=0,r=l.getJSDocTags(e);t<r.length;t++){var n=r[t];i.push({name:n.tagName.text,text:function(e){var t=e.comment;switch(e.kind){case 316:case 315:return n(e.class);case 330:return function(e){return i(e.map(function(e){return e.getText()}).join(", "))}(e.typeParameters);case 329:return n(e.typeExpression);case 331:case 324:case 333:case 326:case 332:var r=e.name;return r?n(r):t;default:return t}function n(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}(n)})}}),i},e.getJSDocTagNameCompletions=function(){return t=t||l.map(n,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:l.Completions.SortText.LocationPriority}})},e.getJSDocTagNameCompletionDetails=i,e.getJSDocTagCompletions=function(){return r=r||l.map(n,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:l.Completions.SortText.LocationPriority}})},e.getJSDocTagCompletionDetails=i,e.getJSDocParameterNameCompletions=function(r){if(!l.isIdentifier(r.name))return l.emptyArray;var n=r.name.text,i=r.parent,e=i.parent;return l.isFunctionLike(e)?l.mapDefined(e.parameters,function(e){if(l.isIdentifier(e.name)){var t=e.name.text;if(!i.tags.some(function(e){return e!==r&&l.isJSDocParameterTag(e)&&l.isIdentifier(e.name)&&e.name.escapedText===t})&&(void 0===n||l.startsWith(t,n)))return{name:t,kind:"parameter",kindModifiers:"",sortText:l.Completions.SortText.LocationPriority}}}):[]},e.getJSDocParameterNameCompletionDetails=function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[l.textPart(e)],documentation:l.emptyArray,tags:void 0,codeActions:void 0}},e.getDocCommentTemplateAtPosition=function(e,t,r){var n=l.getTokenAtPosition(t,r);if(!(u=l.findAncestor(n,l.isJSDoc))||void 0===u.comment&&!l.length(u.tags)){var i=n.getStart(t);if(u||!(i<r)){u=(a=n,l.forEachAncestor(a,_));if(u){var n=u.commentOwner,a=u.parameters;if(!(n.getStart(t)<r)){if(!a||0===a.length)return{newText:"/** */",caretOffset:3};var o,s,c,u=function(e,t){for(var r=e.text,e=l.getLineStartPositionForPosition(t,e),n=e;n<=t&&l.isWhiteSpaceSingleLine(r.charCodeAt(n));n++);return r.slice(e,n)}(t,r),n="/**"+e+u+" * ";return{newText:n+e+(a=a,o=l.hasJSFileExtension(t.fileName),s=u,c=e,a.map(function(e,t){var r=e.name,e=e.dotDotDotToken,t=78===r.kind?r.text:"param"+t;return s+" * @param "+(o?e?"{...any} ":"{any} ":"")+t+c}).join(""))+u+" */"+(i===r?e+u:""),caretOffset:n.length}}}}}}}(ts=ts||{}),function(_){function d(e,t){return p(e,t)||_.isPropertyAccessExpression(e)&&(t.push(e.name.text),!0)&&d(e.expression,t)}function p(e,t){return _.isPropertyNameLiteral(e)&&(t.push(_.getTextOfIdentifierOrLiteral(e)),!0)}function f(e,t){return _.compareValues(e.matchKind,t.matchKind)||_.compareStringsCaseSensitiveUI(e.name,t.name)}function g(e){var t=e.declaration,r=_.getContainerNode(t),n=r&&_.getNameOfDeclaration(r);return{name:e.name,kind:_.getNodeKind(t),kindModifiers:_.getNodeModifiers(t),matchKind:_.PatternMatchKind[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:_.createTextSpanFromNode(t),containerName:n?n.text:"",containerKind:n?_.getNodeKind(r):""}}(_.NavigateTo||(_.NavigateTo={})).getNavigateToItems=function(e,n,t,r,i,a){var o=_.createPatternMatcher(r);if(!o)return _.emptyArray;for(var s=[],c=function(r){if(t.throwIfCancellationRequested(),a&&r.isDeclarationFile)return"continue";r.getNamedDeclarations().forEach(function(e,t){!function(e,t,r,n,i,a){var o=e.getMatchForLastSegmentOfPattern(t);if(o)for(var s=0,c=r;s<c.length;s++){var u,l=c[s];!function(e,t){switch(e.kind){case 262:case 265:case 260:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}(l,n)||(e.patternContainsDots?(u=e.getFullMatch(function(e){var t=[],r=_.getNameOfDeclaration(e);if(r&&158===r.kind&&!d(r.expression,t))return _.emptyArray;t.shift();var n=_.getContainerNode(e);for(;n;){if(!function(e,t){e=_.getNameOfDeclaration(e);return!!e&&(p(e,t)||158===e.kind&&d(e.expression,t))}(n,t))return _.emptyArray;n=_.getContainerNode(n)}return t.reverse()}(l),t))&&a.push({name:t,fileName:i,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:l}):a.push({name:t,fileName:i,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:l}))}}(o,t,e,n,r.fileName,s)})},u=0,l=e;u<l.length;u++)c(l[u]);return s.sort(f),(void 0===i?s:s.slice(0,i)).map(g)}}(ts=ts||{}),function(J){!function(e){var S,n,i,T,r=/\s+/g,a=150,o=[],s=[],t=[];function c(){o=[],i=S=n=void 0,t=[]}function u(e){return j(e.getText(n))}function l(e){return e.node.kind}function _(e,t){e.children?e.children.push(t):e.children=[t]}function d(e){J.Debug.assert(!o.length);var t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i=t;for(var r=0,n=e.statements;r<n.length;r++)w(n[r]);return F(),J.Debug.assert(!i&&!o.length),t}function C(e,t){_(i,p(e,t))}function p(e,t){return{node:e,name:t||(J.isDeclaration(e)||J.isExpression(e)?J.getNameOfDeclaration(e):void 0),additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function E(e){(T=T||new J.Map).set(e,!0)}function k(e){for(var t=0;t<e;t++)F()}function N(e,t){for(var r=[];!J.isPropertyNameLiteral(t);){var n=J.getNameOrArgument(t),i=J.getElementOrPropertyAccessName(t);t=t.expression,"prototype"===i||J.isPrivateIdentifier(n)||r.push(n)}r.push(t);for(var a=r.length-1;0<a;a--)A(e,n=r[a]);return[r.length-1,r[0]]}function A(e,t){t=p(e,t);_(i,t),o.push(i),s.push(T),T=void 0,i=t}function F(){i.children&&(f(i.children,i),h(i.children)),i=o.pop(),T=s.pop()}function P(e,t,r){A(e,r),w(t),F()}function w(e){var t;if(S.throwIfCancellationRequested(),e&&!J.isToken(e))switch(e.kind){case 166:var r=e;P(r,r.body);for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n];J.isParameterPropertyDeclaration(a,r)&&C(a)}break;case 165:case 167:case 168:case 164:J.hasDynamicName(e)||P(e,e.body);break;case 163:case 162:J.hasDynamicName(e)||C(e);break;case 262:var o=e;o.name&&C(o.name);o=o.namedBindings;if(o)if(263===o.kind)C(o);else for(var s=0,c=o.elements;s<c.length;s++)C(c[s]);break;case 289:P(e,e.name);break;case 290:var u=e.expression;J.isIdentifier(u)?C(e,u):C(e);break;case 198:case 288:case 249:o=e.name,u=e.initializer;J.isBindingPattern(o)?w(o):u&&function(e){switch(e.kind){case 209:case 208:case 221:return!0;default:return!1}}(u)?(A(e),J.forEachChild(u,w),F()):P(e,u);break;case 251:var l=e.name;l&&J.isIdentifier(l)&&E(l.text),P(e,e.body);break;case 209:case 208:P(e,e.body);break;case 255:A(e);for(var _=0,d=e.members;_<d.length;_++){var p=d[_];(t=p).name&&158!==t.name.kind&&C(p)}F();break;case 252:case 221:case 253:A(e);for(var f=0,g=e.members;f<g.length;f++)w(p=g[f]);F();break;case 256:P(e,function e(t){return t.body&&J.isModuleDeclaration(t.body)?e(t.body):t}(e).body);break;case 266:l=e.expression,l=J.isObjectLiteralExpression(l)||J.isCallExpression(l)?l:J.isArrowFunction(l)||J.isFunctionExpression(l)?l.body:void 0;l?(A(e),w(l),F()):C(e);break;case 270:case 260:case 171:case 169:case 170:case 254:C(e);break;case 203:case 216:var m=J.getAssignmentDeclarationKind(e);switch(m){case 1:case 2:return void P(e,e.right);case 6:case 3:var y=(D=e).left,h=3===m?y.expression:y,v=0,b=void 0;return b=J.isIdentifier(h.expression)?(E(h.expression.text),h.expression):(v=(x=N(D,h.expression))[0],x[1]),6===m?J.isObjectLiteralExpression(D.right)&&0<D.right.properties.length&&(A(D,b),J.forEachChild(D.right,w),F()):J.isFunctionExpression(D.right)||J.isArrowFunction(D.right)?P(e,D.right,b):(A(D,b),P(e,D.right,y.name),F()),void k(v);case 7:case 9:var b=7===m?e.arguments[0]:e.arguments[0].expression,x=e.arguments[1],b=N(e,b),v=b[0];return A(e,b[1]),A(e,J.setTextRange(J.factory.createIdentifier(x.text),x)),w(e.arguments[2]),F(),F(),void k(v);case 5:var D,v=(y=(D=e).left).expression;if(J.isIdentifier(v)&&"prototype"!==J.getElementOrPropertyAccessName(y)&&T&&T.has(v.text))return void(J.isFunctionExpression(D.right)||J.isArrowFunction(D.right)?P(e,D.right,v):J.isBindableStaticAccessExpression(y)&&(A(D,v),P(D.left,D.right,J.getNameOrArgument(y)),F()));break;case 4:case 0:case 8:break;default:J.Debug.assertNever(m)}default:J.hasJSDocNodes(e)&&J.forEach(e.jsDoc,function(e){J.forEach(e.tags,function(e){J.isJSDocTypeAlias(e)&&C(e)})}),J.forEachChild(e,w)}}function f(e,s){var c=new J.Map;J.filterMutate(e,function(e,t){var r=e.name||J.getNameOfDeclaration(e.node),n=r&&u(r);if(!n)return!0;r=c.get(n);if(!r)return c.set(n,e),!0;if(r instanceof Array){for(var i,a=0,o=r;a<o.length;a++)if(m(i=o[a],e,t,s))return!1;return r.push(e),!0}return!m(i=r,e,t,s)&&(c.set(n,[i,e]),!0)})}e.getNavigationBarItems=function(e,t){S=t,n=e;try{return J.map((r=d(e),o=[],function e(t){if(a(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++){var i=n[r];e(i)}}(r),o),I)}finally{c()}function a(e){if(e.children)return 1;switch(l(e)){case 252:case 221:case 255:case 253:case 256:case 297:case 254:case 331:case 324:return 1;case 209:case 251:case 208:return function(e){if(!e.node.body)return;switch(l(e.parent)){case 257:case 297:case 165:case 166:return 1;default:return}}(e);default:return}}var r,o},e.getNavigationTree=function(e,t){S=t,n=e;try{return D(d(e))}finally{c()}};var g=((e={})[5]=!0,e[3]=!0,e[7]=!0,e[9]=!0,e[0]=!1,e[1]=!1,e[2]=!1,e[8]=!1,e[6]=!0,e[4]=!1,e);function m(e,t,r,n){return function(e,t,r,n){function i(e){return J.isFunctionExpression(e)||J.isFunctionDeclaration(e)||J.isVariableDeclaration(e)}var a=J.isBinaryExpression(t.node)||J.isCallExpression(t.node)?J.getAssignmentDeclarationKind(t.node):0,o=J.isBinaryExpression(e.node)||J.isCallExpression(e.node)?J.getAssignmentDeclarationKind(e.node):0;if(g[a]&&g[o]||i(e.node)&&g[a]||i(t.node)&&g[o]||J.isClassDeclaration(e.node)&&g[a]||J.isClassDeclaration(t.node)&&g[o]||J.isClassDeclaration(e.node)&&i(t.node)||J.isClassDeclaration(t.node)&&i(e.node)){var s=e.additionalNodes&&J.lastOrUndefined(e.additionalNodes)||e.node;!J.isClassDeclaration(e.node)&&!J.isClassDeclaration(t.node)||i(e.node)||i(t.node)?(void 0!==(o=i(e.node)?e.node:i(t.node)?t.node:void 0)?((c=p(J.setTextRange(J.factory.createConstructorDeclaration(void 0,void 0,[],void 0),o))).indent=e.indent+1,c.children=(e.node===o?e:t).children,e.children=e.node===o?J.concatenate([c],t.children||[t]):J.concatenate(e.children||[e],[c])):(e.children||t.children)&&(e.children=J.concatenate(e.children||[e],t.children||[t]),e.children&&(f(e.children,e),h(e.children))),s=e.node=J.setTextRange(J.factory.createClassDeclaration(void 0,void 0,e.name||J.factory.createIdentifier("__class__"),void 0,void 0,[]),e.node)):(e.children=J.concatenate(e.children,t.children),e.children&&f(e.children,e));var c=t.node;return n.children[r-1].node.end===s.end?J.setTextRange(s,{pos:s.pos,end:c.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(J.setTextRange(J.factory.createClassDeclaration(void 0,void 0,e.name||J.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node))),1}return 0!==a}(e,t,r,n)||function(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&(!y(e,r)||!y(t,r)))return!1;switch(e.kind){case 163:case 165:case 167:case 168:return J.hasSyntacticModifier(e,32)===J.hasSyntacticModifier(t,32);case 256:return function e(t,r){return t.body.kind===r.body.kind&&(256!==t.body.kind||e(t.body,r.body))}(e,t);default:return!0}}(e.node,t.node,n)&&(n=t,(t=e).additionalNodes=t.additionalNodes||[],t.additionalNodes.push(n.node),n.additionalNodes&&(e=t.additionalNodes).push.apply(e,n.additionalNodes),t.children=J.concatenate(t.children,n.children),t.children&&(f(t.children,t),h(t.children)),1)}function y(e,t){e=(J.isModuleBlock(e.parent)?e.parent:e).parent;return e===t.node||J.contains(t.additionalNodes,e)}function h(e){e.sort(v)}function v(e,t){return J.compareStringsCaseSensitiveUI(b(e.node),b(t.node))||J.compareValues(l(e),l(t))}function b(e){if(256===e.kind)return M(e);var t=J.getNameOfDeclaration(e);if(t&&J.isPropertyName(t)){t=J.getPropertyNameForPropertyNameNode(t);return t&&J.unescapeLeadingUnderscores(t)}switch(e.kind){case 208:case 209:case 221:return B(e);default:return}}function x(e,t){if(256===e.kind)return j(M(e));if(t){t=J.isIdentifier(t)?t.text:J.isElementAccessExpression(t)?"["+u(t.argumentExpression)+"]":u(t);if(0<t.length)return j(t)}switch(e.kind){case 297:var r=e;return J.isExternalModule(r)?'"'+J.escapeString(J.getBaseFileName(J.removeFileExtension(J.normalizePath(r.fileName))))+'"':"<global>";case 266:return J.isExportAssignment(e)&&e.isExportEquals?"export=":"default";case 209:case 251:case 208:case 252:case 221:return 512&J.getSyntacticModifierFlags(e)?"default":B(e);case 166:return"constructor";case 170:return"new()";case 169:return"()";case 171:return"[]";default:return"<unknown>"}}function D(e){return{text:x(e.node,e.name),kind:J.getNodeKind(e.node),kindModifiers:R(e.node),spans:O(e),nameSpan:e.name&&L(e.name),childItems:J.map(e.children,D)}}function I(e){return{text:x(e.node,e.name),kind:J.getNodeKind(e.node),kindModifiers:R(e.node),spans:O(e),childItems:J.map(e.children,function(e){return{text:x(e.node,e.name),kind:J.getNodeKind(e.node),kindModifiers:J.getNodeModifiers(e.node),spans:O(e),childItems:t,indent:0,bolded:!1,grayed:!1}})||t,indent:e.indent,bolded:!1,grayed:!1}}function O(e){var t=[L(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(L(i))}return t}function M(e){if(J.isAmbientModule(e))return J.getTextOfNode(e.name);for(var t=[J.getTextOfIdentifierOrLiteral(e.name)];e.body&&256===e.body.kind;)e=e.body,t.push(J.getTextOfIdentifierOrLiteral(e.name));return t.join(".")}function L(e){return 297===e.kind?J.createTextSpanFromRange(e):J.createTextSpanFromNode(e,n)}function R(e){return e.parent&&249===e.parent.kind&&(e=e.parent),J.getNodeModifiers(e)}function B(e){var t=e.parent;if(e.name&&0<J.getFullWidth(e.name))return j(J.declarationNameToString(e.name));if(J.isVariableDeclaration(t))return j(J.declarationNameToString(t.name));if(J.isBinaryExpression(t)&&62===t.operatorToken.kind)return u(t.left).replace(r,"");if(J.isPropertyAssignment(t))return u(t.name);if(512&J.getSyntacticModifierFlags(e))return"default";if(J.isClassLike(e))return"<class>";if(J.isCallExpression(t)){e=function e(t){{if(J.isIdentifier(t))return t.text;if(J.isPropertyAccessExpression(t)){var r=e(t.expression),t=t.name.text;return void 0===r?t:r+"."+t}}}(t.expression);if(void 0!==e)return(e=j(e)).length>a?e+" callback":e+"("+j(J.mapDefined(t.arguments,function(e){return J.isStringLiteralLike(e)?e.getText(n):void 0}).join(", "))+") callback"}return"<function>"}function j(e){return(e=e.length>a?e.substring(0,a)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(J.NavigationBar||(J.NavigationBar={}))}(ts=ts||{}),function(b){var e;function _(e){return void 0!==e&&b.isStringLiteralLike(e)?e.text:void 0}function d(e){if(0===e.length)return e;var t=function(e){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},n={defaultImports:[],namespaceImports:[],namedImports:[]},i=0,a=e;i<a.length;i++){var o,s,c,u=a[i];void 0!==u.importClause?(o=u.importClause.isTypeOnly?r:n,c=u.importClause,s=c.name,c=c.namedBindings,s&&o.defaultImports.push(u),c&&(b.isNamespaceImport(c)?o.namespaceImports:o.namedImports).push(u)):t=t||u}return{importWithoutClause:t,typeOnlyImports:r,regularImports:n}}(e),e=t.importWithoutClause,r=t.typeOnlyImports,t=t.regularImports,n=[];e&&n.push(e);for(var i=0,a=[t,r];i<a.length;i++){var o=a[i],s=o===r,c=o.defaultImports,u=o.namespaceImports,l=o.namedImports;if(s||1!==c.length||1!==u.length||0!==l.length){for(var _=0,d=b.stableSort(u,function(e,t){return S(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});_<d.length;_++){var p=d[_];n.push(x(p,void 0,p.importClause.namedBindings))}if(0!==c.length||0!==l.length){var f=void 0,g=[];if(1===c.length)f=c[0].importClause.name;else for(var m=0,y=c;m<y.length;m++){v=y[m];g.push(b.factory.createImportSpecifier(b.factory.createIdentifier("default"),v.importClause.name))}g.push.apply(g,b.flatMap(l,function(e){return e.importClause.namedBindings.elements}));var h=D(g),o=(0<c.length?c:l)[0],h=0===h.length?f?void 0:b.factory.createNamedImports(b.emptyArray):0===l.length?b.factory.createNamedImports(h):b.factory.updateNamedImports(l[0].importClause.namedBindings,h);s&&f&&h?(n.push(x(o,f,void 0)),n.push(x(null!==(l=l[0])&&void 0!==l?l:o,void 0,h))):n.push(x(o,f,h))}}else{var v=c[0];n.push(x(v,v.importClause.name,u[0].importClause.namedBindings))}}return n}function p(e){if(0===e.length)return e;var t=function(e){for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:(o.isTypeOnly?n:r).push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(e),r=t.exportWithoutClause,e=t.namedExports,t=t.typeOnlyExports,n=[];r&&n.push(r);for(var i=0,a=[e,t];i<a.length;i++){var o,s=a[i];0!==s.length&&((o=[]).push.apply(o,b.flatMap(s,function(e){return e.exportClause&&b.isNamedExports(e.exportClause)?e.exportClause.elements:b.emptyArray})),o=D(o),s=s[0],n.push(b.factory.updateExportDeclaration(s,s.decorators,s.modifiers,s.isTypeOnly,s.exportClause&&(b.isNamedExports(s.exportClause)?b.factory.updateNamedExports(s.exportClause,o):b.factory.updateNamespaceExport(s.exportClause,s.exportClause.name)),s.moduleSpecifier)))}return n}function x(e,t,r){return b.factory.updateImportDeclaration(e,e.decorators,e.modifiers,b.factory.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier)}function D(e){return b.stableSort(e,r)}function r(e,t){return S(e.propertyName||e.name,t.propertyName||t.name)||S(e.name,t.name)}function f(e,t){e=void 0===e?void 0:_(e),t=void 0===t?void 0:_(t);return b.compareBooleans(void 0===e,void 0===t)||b.compareBooleans(b.isExternalModuleNameRelative(e),b.isExternalModuleNameRelative(t))||b.compareStringsCaseInsensitive(e,t)}function S(e,t){return b.compareStringsCaseInsensitive(e.text,t.text)}function n(e){var t;switch(e.kind){case 260:return null===(t=b.tryCast(e.moduleReference,b.isExternalModuleReference))||void 0===t?void 0:t.expression;case 261:return e.moduleSpecifier;case 232:return e.declarationList.declarations[0].initializer.arguments[0]}}function g(e,t){return f(n(e),n(t))||(e=e,t=t,b.compareValues(i(e),i(t)))}function i(e){var t;switch(e.kind){case 261:return e.importClause?e.importClause.isTypeOnly?1:263===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 260:return 5;case 232:return 6}}(e=b.OrganizeImports||(b.OrganizeImports={})).organizeImports=function(i,a,o,t,e){function r(e){return b.stableSort(d(function(e,t,r){for(var n=r.getTypeChecker(),i=n.getJsxNamespace(t),a=!!(2&t.transformFlags),o=[],s=0,c=e;s<c.length;s++){var u,l,_=c[s],d=_.importClause,p=_.moduleSpecifier;d?(u=d.name,l=d.namedBindings,u&&!f(u)&&(u=void 0),l&&(b.isNamespaceImport(l)?f(l.name)||(l=void 0):(d=l.elements.filter(function(e){return f(e.name)})).length<l.elements.length&&(l=d.length?b.factory.updateNamedImports(l,d):void 0)),u||l?o.push(x(_,u,l)):function(e,t){var r=b.isStringLiteral(t)&&t.text;return b.isString(r)&&b.some(e.moduleAugmentations,function(e){return b.isStringLiteral(e)&&e.text===r})}(t,p)&&(t.isDeclarationFile?o.push(b.factory.createImportDeclaration(_.decorators,_.modifiers,void 0,p)):o.push(_))):o.push(_)}return o;function f(e){return a&&e.text===i||b.FindAllReferences.Core.isSymbolReferencedInFile(e,n,t)}}(e,i,t)),g)}var s=b.textChanges.ChangeTracker.fromContext({host:o,formatContext:a,preferences:e});l(i.statements.filter(b.isImportDeclaration),r),l(i.statements.filter(b.isExportDeclaration),p);for(var n=0,c=i.statements.filter(b.isAmbientModule);n<c.length;n++){var u=c[n];u.body&&(l(u.body.statements.filter(b.isImportDeclaration),r),l(u.body.statements.filter(b.isExportDeclaration),p))}return s.getChanges();function l(e,t){if(0!==b.length(e)){b.suppressLeadingTrivia(e[0]);var r=b.group(e,function(e){return _(e.moduleSpecifier)}),r=b.stableSort(r,function(e,t){return f(e[0].moduleSpecifier,t[0].moduleSpecifier)}),r=b.flatMap(r,function(e){return _(e[0].moduleSpecifier)?t(e):e});0===r.length?s.delete(i,e[0]):s.replaceNodeWithNodes(i,e[0],r,{leadingTriviaOption:b.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:b.textChanges.TrailingTriviaOption.Include,suffix:b.getNewLineOrDefaultFromHost(o,a.options)});for(var n=1;n<e.length;n++)s.deleteNode(i,e[n])}}},e.coalesceImports=d,e.coalesceExports=p,e.compareImportOrExportSpecifiers=r,e.compareModuleSpecifiers=f,e.importsAreSorted=function(e){return b.arrayIsSorted(e,g)},e.importSpecifiersAreSorted=function(e){return b.arrayIsSorted(e,r)},e.getImportDeclarationInsertionIndex=function(e,t){return(t=b.binarySearch(e,t,b.identity,g))<0?~t:t},e.getImportSpecifierInsertionIndex=function(e,t){return(t=b.binarySearch(e,t,b.identity,r))<0?~t:t},e.compareImportsOrRequireStatements=g}(ts=ts||{}),function(y){!function(){(y.OutliningElementsCollector||(y.OutliningElementsCollector={})).collectElements=function(e,t){var r=[];return function(r,n,i){for(var a=40,e=0,t=__spreadArrays(r.statements,[r.endOfFileToken]),o=t.length;e<o;){for(;e<o&&!y.isAnyImportSyntax(t[e]);)u(t[e]),e++;if(e===o)break;for(var s=e;e<o&&y.isAnyImportSyntax(t[e]);)l(t[e],r,n,i),e++;var c=e-1;c!==s&&i.push(m(y.findChildOfKind(t[s],99,r).getStart(r),t[c].getEnd(),"imports"))}function u(e){var t;0!==a&&(n.throwIfCancellationRequested(),(y.isDeclaration(e)||y.isVariableStatement(e)||1===e.kind)&&l(e,r,n,i),y.isFunctionLike(e)&&y.isBinaryExpression(e.parent)&&y.isPropertyAccessExpression(e.parent.left)&&l(e.parent.left,r,n,i),(t=function(a,o){switch(a.kind){case 230:if(y.isFunctionLike(a.parent))return function(e,t,r){var n=function(e,t,r){if(y.isNodeArrayMultiLine(e.parameters,r)){e=y.findChildOfKind(e,20,r);if(e)return e}return y.findChildOfKind(t,18,r)}(e,t,r),t=y.findChildOfKind(t,19,r);return n&&t&&_(n,t,e,r,209!==e.kind)}(a.parent,a,o);switch(a.parent.kind){case 235:case 238:case 239:case 237:case 234:case 236:case 243:case 287:return r(a.parent);case 247:var e=a.parent;if(e.tryBlock===a)return r(a.parent);if(e.finallyBlock===a){e=y.findChildOfKind(e,95,o);if(e)return r(e)}default:return d(y.createTextSpanFromNode(a,o),"code")}case 257:return r(a.parent);case 252:case 221:case 253:case 255:case 258:case 177:case 196:return r(a);case 179:return r(a,!1,!y.isTupleTypeNode(a.parent),22);case 284:case 285:return function(e){return e.length?d(y.createTextSpanFromRange(e),"code"):void 0}(a.statements);case 200:return t(a);case 199:return t(a,22);case 273:return function(e){var t=y.createTextSpanFromBounds(e.openingElement.getStart(o),e.closingElement.getEnd()),e=e.openingElement.tagName.getText(o);return d(t,"code",t,!1,"<"+e+">...</"+e+">")}(a);case 277:return function(e){e=y.createTextSpanFromBounds(e.openingFragment.getStart(o),e.closingFragment.getEnd());return d(e,"code",e,!1,"<>...</>")}(a);case 274:case 275:return function(e){return 0!==e.properties.length?m(e.getStart(o),e.getEnd(),"code"):void 0}(a.attributes);case 218:case 14:return function(e){return 14!==e.kind||0!==e.text.length?m(e.getStart(o),e.getEnd(),"code"):void 0}(a);case 197:return r(a,!1,!y.isBindingElement(a.parent),22);case 209:return function(e){if(y.isBlock(e.body)||y.positionsAreOnSameLine(e.body.getFullStart(),e.body.getEnd(),o))return;return d(y.createTextSpanFromBounds(e.body.getFullStart(),e.body.getEnd()),"code",y.createTextSpanFromNode(e))}(a);case 203:return function(e){if(!e.arguments.length)return;var t=y.findChildOfKind(e,20,o),r=y.findChildOfKind(e,21,o);return t&&r&&!y.positionsAreOnSameLine(t.pos,r.pos,o)?_(t,r,e,o,!1,!0):void 0}(a)}function t(e,t){return void 0===t&&(t=18),r(e,!1,!y.isArrayLiteralExpression(e.parent)&&!y.isCallExpression(e.parent),t)}function r(e,t,r,n,i){void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=18),void 0===i&&(i=18===n?19:23);n=y.findChildOfKind(a,n,o),i=y.findChildOfKind(a,i,o);return n&&i&&_(n,i,e,o,t,r)}}(e,r))&&i.push(t),a--,y.isCallExpression(e)?(a++,u(e.expression),a--,e.arguments.forEach(u),null!==(t=e.typeArguments)&&void 0!==t&&t.forEach(u)):y.isIfStatement(e)&&e.elseStatement&&y.isIfStatement(e.elseStatement)?(u(e.expression),u(e.thenStatement),a++,u(e.elseStatement),a--):e.forEachChild(u),a++)}}(e,t,r),function(e,t){for(var r=[],n=e.getLineStarts(),i=0,a=n;i<a.length;i++){var o,s=a[i],c=e.getLineEndOfPosition(s),u=g(e.text.substring(s,c));u&&!y.isInComment(e,s)&&(u[1]?(o=r.pop())&&(o.textSpan.length=c-o.textSpan.start,o.hintSpan.length=c-o.textSpan.start,t.push(o)):(c=y.createTextSpanFromBounds(e.text.indexOf("//",s),c),r.push(d(c,"region",c,!1,u[2]||"#region"))))}}(e,r),r.sort(function(e,t){return e.textSpan.start-t.textSpan.start})};var t=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function g(e){return t.exec(e)}function l(e,t,r,n){e=y.getLeadingCommentRangesOfNode(e,t);if(e){for(var i=-1,a=-1,o=0,s=t.getFullText(),c=0,u=e;c<u.length;c++){var l=u[c],_=l.kind,d=l.pos,p=l.end;switch(r.throwIfCancellationRequested(),_){case 2:if(g(s.slice(d,p))){f(),o=0;break}0===o&&(i=d),a=p,o++;break;case 3:f(),n.push(m(d,p,"comment")),o=0;break;default:y.Debug.assertNever(_)}}f()}function f(){1<o&&n.push(m(i,a,"comment"))}}function m(e,t,r){return d(y.createTextSpanFromBounds(e,t),r)}function _(e,t,r,n,i,a){return void 0===i&&(i=!1),void 0===a&&(a=!0),d(y.createTextSpanFromBounds(a?e.getFullStart():e.getStart(n),t.getEnd()),"code",y.createTextSpanFromNode(r,n),i)}function d(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}()}(ts=ts||{}),function(d){var s,e;function c(e,t){return{kind:e,isCaseSensitive:t}}function u(e,t){var r=t.get(e);return r||t.set(e,r=i(e)),r}function l(e,t,r){var n=function(n,e){for(var t=n.length-e.length,r=0;r<=t;r++){var i=function(r){if(S(e,function(e,t){return h(n.charCodeAt(t+r))===e}))return{value:r}}(r);if("object"==typeof i)return i.value}return-1}(e,t.textLowerCase);if(0===n)return c(t.text.length===e.length?s.exact:s.prefix,d.startsWith(e,t.text));if(t.isLowerCase){if(-1!==n){for(var i=0,a=u(e,r);i<a.length;i++){var o=a[i];if(f(e,o,t.text,!0))return c(s.substring,f(e,o,t.text,!1))}return t.text.length<e.length&&m(e.charCodeAt(n))?c(s.substring,!1):void 0}}else{if(0<e.indexOf(t.text))return c(s.substring,!0);if(0<t.characterSpans.length){r=u(e,r),r=!!g(e,r,t,!1)||!g(e,r,t,!0)&&void 0;if(void 0!==r)return c(s.camelCase,r)}}}function _(e,t,r){if(S(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=l(e,t.totalTextChunk,r);if(n)return n}for(var i=0,a=t.subWordTextChunks;i<a.length;i++)var o=p(o,l(e,a[i],r));return o}function p(e,t){return d.min(e,t,r)}function r(e,t){return void 0===e?1:void 0===t?-1:d.compareValues(e.kind,t.kind)||d.compareBooleans(!e.isCaseSensitive,!t.isCaseSensitive)}function f(r,n,i,a,o){return void 0===o&&(o={start:0,length:i.length}),o.length<=n.length&&D(0,o.length,function(e){return t=i.charCodeAt(o.start+e),e=r.charCodeAt(n.start+e),a?h(t)===h(e):t===e;var t})}function g(e,t,r,n){for(var i,a=r.characterSpans,o=0,s=0;;){if(s===a.length)return 1;if(o===t.length)return;for(var c=t[o],u=!1;s<a.length;s++){var l=a[s];if(u&&(!m(r.text.charCodeAt(a[s-1].start))||!m(r.text.charCodeAt(a[s].start))))break;if(!f(e,c,r.text,n,l))break;u=!0,i=void 0===i||i,c=d.createTextSpan(c.start+l.length,c.length-l.length)}u||void 0===i||(i=!1),o++}}function m(e){if(65<=e&&e<=90)return!0;if(e<127||!d.isUnicodeIdentifierStart(e,99))return!1;e=String.fromCharCode(e);return e===e.toUpperCase()}function y(e){if(97<=e&&e<=122)return!0;if(e<127||!d.isUnicodeIdentifierStart(e,99))return!1;e=String.fromCharCode(e);return e===e.toLowerCase()}function h(e){return 65<=e&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function v(e){return 48<=e&&e<=57}function a(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:n(e)}}function n(e){return t(e,!1)}function i(e){return t(e,!0)}function t(e,t){for(var r,n,i,a=[],o=0,s=1;s<e.length;s++){var c=v(e.charCodeAt(s-1)),u=v(e.charCodeAt(s)),l=(n=t,l=s,i=void 0,i=m((r=e).charCodeAt(l-1)),m(r.charCodeAt(l))&&(!n||!i)),_=t&&(n=e,(_=s)!==(i=o)&&_+1<n.length&&m(n.charCodeAt(_))&&y(n.charCodeAt(_+1))&&S(n,m,i,_));(b(e.charCodeAt(s-1))||b(e.charCodeAt(s))||c!==u||l||_)&&(x(e,o,s)||a.push(d.createTextSpan(o,s-o)),o=s)}return x(e,o,e.length)||a.push(d.createTextSpan(o,e.length-o)),a}function b(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 x(e,t,r){return S(e,function(e){return b(e)&&95!==e},t,r)}function D(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function S(t,r,e,n){return void 0===e&&(e=0),void 0===n&&(n=t.length),D(e,n,function(e){return r(t.charCodeAt(e),e)})}(e=s=d.PatternMatchKind||(d.PatternMatchKind={}))[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",d.createPatternMatcher=function(e){var r=new d.Map,n=e.trim().split(".").map(function(e){return{totalTextChunk:a(e=e.trim()),subWordTextChunks:function(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)!function(e){return m(e)||y(e)||v(e)||95===e||36===e}(e.charCodeAt(i))?0<n&&(t.push(a(e.substr(r,n))),n=0):(0===n&&(r=i),n++);0<n&&t.push(a(e.substr(r,n)));return t}(e)}});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(e,t){return function(e,t,r,n){var i;if(!_(t,d.last(r),n))return;if(r.length-1>e.length)return;for(var a=r.length-2,o=e.length-1;0<=a;--a,--o)i=p(i,_(e[o],r[a],n));return i}(e,t,n,r)},getMatchForLastSegmentOfPattern:function(e){return _(e,d.last(n),r)},patternContainsDots:1<n.length}},d.breakIntoCharacterSpans=n,d.breakIntoWordSpans=i}(ts=ts||{}),function(D){D.preProcessFile=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var n,i,a,o={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],c=0,u=!1;function l(){return i=a,18===(a=D.scanner.scan())?c++:19===a&&c--,a}function _(){var e=D.scanner.getTokenValue(),t=D.scanner.getTokenPos();return{fileName:e,pos:t,end:t+e.length}}function d(){s.push(_()),p()}function p(){0===c&&(u=!0)}function f(){var e=D.scanner.getToken();return 133===e&&(139===l()&&10===l()&&(n=n||[]).push({ref:_(),depth:c}),1)}function g(e,t){void 0===t&&(t=!1);e=e?l():D.scanner.getToken();return 143===e&&(20===(e=l())&&(10===(e=l())||t&&14===e)&&d(),1)}if(t&&function(){for(D.scanner.setText(e),l();1!==D.scanner.getToken();)f()||function(){if(24!==i){var e=D.scanner.getToken();if(99===e){if(20===(e=l())){if(10===(e=l())||14===e)return d(),1}else{if(10===e)return d(),1;if(149===e&&D.scanner.lookAhead(function(){var e=D.scanner.scan();return 153!==e&&(41===e||18===e||78===e||D.isKeyword(e))})&&(e=l()),78===e||D.isKeyword(e))if(153===(e=l())){if(10===(e=l()))return d(),1}else if(62===e){if(g(!0))return 1}else{if(27!==e)return 1;e=l()}if(18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&153===(e=l())&&10===(e=l())&&d()}else 41===e&&126===(e=l())&&(78!==(e=l())&&!D.isKeyword(e)||153!==(e=l())||10!==(e=l())||d())}return 1}}}()||function(){if(92===(e=D.scanner.getToken())){if(p(),149===(e=l())&&D.scanner.lookAhead(function(){var e=D.scanner.scan();return 41===e||18===e})&&(e=l()),18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&153===(e=l())&&10===(e=l())&&d()}else if(41===e)153===(e=l())&&10===(e=l())&&d();else if(99===e){var e=l();if(149===e&&D.scanner.lookAhead(function(){var e=D.scanner.scan();return 78===e||D.isKeyword(e)})&&(e=l()),(78===e||D.isKeyword(e))&&(e=l(),62===e&&g(!0)))return 1}return 1}}()||r&&(g(!1,!0)||function(){var e=D.scanner.getToken();if(78===e&&"define"===D.scanner.getTokenValue()){if(20!==(e=l()))return 1;if(10===(e=l())||14===e){if(27!==(e=l()))return 1;e=l()}if(22!==e)return 1;for(e=l();23!==e&&1!==e;)10!==e&&14!==e||d(),e=l();return 1}}())||l();D.scanner.setText(void 0)}(),D.processCommentPragmas(o,e),D.processPragmasIntoFields(o,D.noop),u){if(n)for(var m=0,y=n;m<y.length;m++){var h=y[m];s.push(h.ref)}return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:void 0}}var v=void 0;if(n)for(var b=0,x=n;b<x.length;b++)0===(h=x[b]).depth?(v=v||[]).push(h.ref.fileName):s.push(h.ref);return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:v}}}(ts=ts||{}),function(s){function c(e,t,r,n,i,a){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:function(e,t){var r=e.getStart(t),t=e.getWidth(t);s.isStringLiteralLike(e)&&(r+=1,t-=2);return s.createTextSpan(r,t)}(i,a)}}function u(e){return{canRename:!1,localizedErrorMessage:s.getLocaleSpecificMessage(e)}}(s.Rename||(s.Rename={})).getRenameInfo=function(t,e,r,n){if(function(e){switch(e.kind){case 78:case 79:case 10:case 14:case 107:return!0;case 8:return s.isLiteralNameOfPropertyDeclarationOrIndexAccess(e);default:return!1}}(r=s.getAdjustedRenameLocation(s.getTouchingPropertyName(e,r)))){n=function(e,t,r,n,i){var a=t.getSymbolAtLocation(e);if(!a){if(s.isLabelName(e)){var o=s.getTextOfNode(e);return c(o,o,"label","",e,r)}return}o=a.declarations;if(!o||0===o.length)return;if(o.some(n))return u(s.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(s.isIdentifier(e)&&87===e.originalKeywordKind&&a.parent&&1536&a.parent.flags)return;if(s.isStringLiteralLike(e)&&s.tryGetImportFromModuleSpecifier(e))return i&&i.allowRenameOfImportPath?function(e,t,r){if(!s.isExternalModuleNameRelative(e.text))return u(s.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var n=s.find(r.declarations,s.isSourceFile);if(!n)return;var i=s.endsWith(e.text,"/index")||s.endsWith(e.text,"/index.js")?void 0:s.tryRemoveSuffix(s.removeFileExtension(n.fileName),"/index"),r=void 0===i?n.fileName:i,n=void 0===i?"module":"directory",i=e.text.lastIndexOf("/")+1,i=s.createTextSpan(e.getStart(t)+1+i,e.text.length-i);return{canRename:!0,fileToRename:r,kind:n,displayName:r,fullDisplayName:r,kindModifiers:"",triggerSpan:i}}(e,r,a):void 0;o=s.SymbolDisplay.getSymbolKind(t,a,e),n=s.isImportOrExportSpecifierName(e)||s.isStringOrNumericLiteralLike(e)&&158===e.parent.kind?s.stripQuotes(s.getTextOfIdentifierOrLiteral(e)):void 0,i=n||t.symbolToString(a),t=n||t.getFullyQualifiedName(a);return c(i,t,o,s.SymbolDisplay.getSymbolModifiers(a),e,r)}(r,t.getTypeChecker(),e,function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())},n);if(n)return n}return u(s.Diagnostics.You_cannot_rename_this_element)}}(ts=ts||{}),function(m){!function(){(m.SmartSelectionRange||(m.SmartSelectionRange={})).getSmartSelectionRange=function(r,e){var t,n={textSpan:m.createTextSpanFromBounds(e.getFullStart(),e.getEnd())},i=e;e:for(;;){var a=function(t){if(m.isSourceFile(t))return p(t.getChildAt(0).getChildren(),d);if(m.isMappedTypeNode(t)){var e=t.getChildren(),r=e[0],n=e.slice(1),i=m.Debug.checkDefined(n.pop());m.Debug.assertEqual(r.kind,18),m.Debug.assertEqual(i.kind,19);e=p(n,function(e){return e===t.readonlyToken||142===e.kind||e===t.questionToken||57===e.kind}),e=p(e,function(e){e=e.kind;return 22===e||159===e||23===e});return[r,g(f(e,function(e){return 58===e.kind})),i]}if(m.isPropertySignature(t))return f(n=p(t.getChildren(),function(e){return e===t.name||m.contains(t.modifiers,e)}),function(e){return 58===e.kind});if(m.isParameter(t)){var a=p(t.getChildren(),function(e){return e===t.dotDotDotToken||e===t.name});return f(p(a,function(e){return e===a[0]||e===t.questionToken}),function(e){return 62===e.kind})}if(m.isBindingElement(t))return f(t.getChildren(),function(e){return 62===e.kind});return t.getChildren()}(i);if(!a.length)break;for(var o=0;o<a.length;o++){var s=a[o-1],c=a[o],u=a[o+1];if(m.getTokenPosOfNode(c,e,!0)>r)break e;if(function(e,t,r){if(m.Debug.assert(r.pos<=t),t<r.end)return!0;return r.getEnd()===t&&m.getTouchingPropertyName(e,t).pos<r.end}(e,r,c)){if(m.isBlock(c)||m.isTemplateSpan(c)||m.isTemplateHead(c)||m.isTemplateTail(c)||s&&m.isTemplateHead(s)||m.isVariableDeclarationList(c)&&m.isVariableStatement(i)||m.isSyntaxList(c)&&m.isVariableDeclarationList(i)||m.isVariableDeclaration(c)&&m.isSyntaxList(i)&&1===a.length||m.isJSDocTypeExpression(c)||m.isJSDocSignature(c)||m.isJSDocTypeLiteral(c)){i=c;break}m.isTemplateSpan(i)&&u&&m.isTemplateMiddleOrTemplateTail(u)&&_(c.getFullStart()-"${".length,u.getStart()+"}".length);var l=m.isSyntaxList(c)&&function(e){e=e&&e.kind;return 18===e||22===e||20===e||275===e}(s)&&function(e){e=e&&e.kind;return 19===e||23===e||21===e||276===e}(u)&&!m.positionsAreOnSameLine(s.getStart(),u.getStart(),e),s=l?s.getEnd():c.getStart(),u=l?u.getStart():function(e,t){switch(t.kind){case 326:case 324:case 333:case 331:case 328:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}(e,c);m.hasJSDocNodes(c)&&null!==(t=c.jsDoc)&&void 0!==t&&t.length&&_(m.first(c.jsDoc).getStart(),u),_(s,u),(m.isStringLiteral(c)||m.isTemplateLiteral(c))&&_(s+1,u-1),i=c;break}if(o===a.length-1)break e}}return n;function _(e,t){e!==t&&(t=m.createTextSpanFromBounds(e,t),n&&(m.textSpansEqual(t,n.textSpan)||!m.textSpanIntersectsWithPosition(t,r))||(n=__assign({textSpan:t},n&&{parent:n})))}};var d=m.or(m.isImportDeclaration,m.isImportEqualsDeclaration);function p(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(g(r)),r=void 0),n.push(o))}return r&&n.push(g(r)),n}function f(e,t,r){if(void 0===r&&(r=!0),e.length<2)return e;var n=m.findIndex(e,t);if(-1===n)return e;var i=e.slice(0,n),a=e[n],t=m.last(e),r=r&&26===t.kind,e=e.slice(n+1,r?e.length-1:void 0),e=m.compact([i.length?g(i):void 0,a,e.length?g(e):void 0]);return r?e.concat(t):e}function g(e){return m.Debug.assertGreaterThanOrEqual(e.length,1),m.setTextRangePosEnd(m.parseNodeFactory.createSyntaxList(e),e[0].pos,m.last(e).end)}}()}(ts=ts||{}),function(k){!function(e){var t;function _(e,t,r){for(var n=e.getFullStart(),i=e.parent;i;){var a=k.findPrecedingToken(n,t,i,!0);if(a)return k.rangeContainsRange(r,a);i=i.parent}return k.Debug.fail("Could not find preceding token")}function p(e,t){var r=function(e,t){{if(29===e.kind||20===e.kind)return{list:function(e,t,r){r=e.getChildren(r),t=r.indexOf(t);return k.Debug.assert(0<=t&&r.length>t+1),r[t+1]}(e.parent,e,t),argumentIndex:0};t=k.findContainingList(e);return t&&{list:t,argumentIndex:function(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}(t,e)}}}(e,t);if(r){var n=r.list,e=r.argumentIndex,r=function(e){var t=e.getChildren(),e=k.countWhere(t,function(e){return 27!==e.kind});0<t.length&&27===k.last(t).kind&&e++;return e}(n);return 0!==e&&k.Debug.assertLessThan(e,r),{list:n,argumentIndex:e,argumentCount:r,argumentsSpan:(r=t,n=(t=n).getFullStart(),t=k.skipTrivia(r.text,t.getEnd(),!1),k.createTextSpan(n,t-n))}}}function d(e,t,r){var n=e.parent;if(k.isCallOrNewExpression(n)){var i=n,a=p(e,r);if(a){var o=a.list,s=a.argumentIndex,c=a.argumentCount,u=a.argumentsSpan;return{isTypeParameterList:!!n.typeArguments&&n.typeArguments.pos===o.pos,invocation:{kind:0,node:i},argumentsSpan:u,argumentIndex:s,argumentCount:c}}}else if(k.isNoSubstitutionTemplateLiteral(e)&&k.isTaggedTemplateExpression(n)){if(k.isInsideTemplateLiteral(e,t,r))return g(n,0,r)}else{if(k.isTemplateHead(e)&&205===n.parent.kind){var l=n.parent;return k.Debug.assert(218===n.kind),g(l,s=k.isInsideTemplateLiteral(e,t,r)?0:1,r)}if(k.isTemplateSpan(n)&&k.isTaggedTemplateExpression(n.parent.parent)){c=n,l=n.parent.parent;if(!k.isTemplateTail(e)||k.isInsideTemplateLiteral(e,t,r))return g(l,s=function(e,t,r,n){if(k.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),k.isTemplateLiteralToken(t))return k.isInsideTemplateLiteral(t,r,n)?0:e+2;return e+1}(c.parent.templateSpans.indexOf(c),e,t,r),r)}else{if(k.isJsxOpeningLikeElement(n)){var _=n.attributes.pos,d=k.skipTrivia(r.text,n.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:k.createTextSpan(_,d-_),argumentIndex:0,argumentCount:1}}d=k.getPossibleTypeArgumentsInfo(e,r);if(d){_=d.called,d=d.nTypeArguments;return{isTypeParameterList:!0,invocation:i={kind:1,called:_},argumentsSpan:u=k.createTextSpanFromBounds(_.getStart(r),e.end),argumentIndex:d,argumentCount:d+1}}}}}function f(e){return k.isBinaryExpression(e.left)?f(e.left)+1:2}function g(e,t,r){var n=k.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&k.Debug.assertLessThan(t,n),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:function(e,t){var r=e.template,n=r.getStart(),e=r.getEnd();218===r.kind&&0===k.last(r.templateSpans).literal.getFullWidth()&&(e=k.skipTrivia(t.text,e,!1));return k.createTextSpan(n,e-n)}(e,r),argumentIndex:t,argumentCount:n}}function D(e){return 0===e.kind?k.getInvokedExpression(e.node):e.called}function S(e){return 0!==e.kind&&1===e.kind?e.called:e.node}(t={})[t.Call=0]="Call",t[t.TypeArgs=1]="TypeArgs",t[t.Contextual=2]="Contextual",e.getSignatureHelpItems=function(e,c,t,r,n){var i=e.getTypeChecker(),a=k.findTokenOnLeftOfPosition(c,t);if(a){var o=!!r&&"characterTyped"===r.kind;if(!o||!k.isInString(c,t,a)&&!k.isInComment(c,t)){var r=!!r&&"invoked"===r.kind,u=function(e,i,a,o,t){for(var r=function(e){k.Debug.assert(k.rangeContainsRange(e.parent,e),"Not a subspan",function(){return"Child: "+k.Debug.formatSyntaxKind(e.kind)+", parent: "+k.Debug.formatSyntaxKind(e.parent.kind)});var t,r,n,n=(r=i,function(e,t,r){var n=function(e,t,r){if(20!==e.kind&&27!==e.kind)return;var n=e.parent;switch(n.kind){case 207:case 165:case 208:case 209:var i=p(e,t);if(!i)return;var a=i.argumentIndex,o=i.argumentCount,s=i.argumentsSpan,i=k.isMethodDeclaration(n)?r.getContextualTypeForObjectLiteralElement(n):r.getContextualType(n);return i&&{contextualType:i,argumentIndex:a,argumentCount:o,argumentsSpan:s};case 216:a=function e(t){return k.isBinaryExpression(t.parent)?e(t.parent):t}(n),o=r.getContextualType(a),s=20===e.kind?0:f(n)-1,a=f(a);return o&&{contextualType:o,argumentIndex:s,argumentCount:a,argumentsSpan:k.createTextSpanFromNode(n)};default:return}}(e,t,r);if(!n)return;var i=n.contextualType,a=n.argumentIndex,t=n.argumentCount,r=n.argumentsSpan,n=i.getNonNullableType(),i=n.getCallSignatures();return 1!==i.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:k.first(i),node:e,symbol:function(e){return"__type"===e.name&&k.firstDefined(e.declarations,function(e){return k.isFunctionTypeNode(e)?e.parent.symbol:void 0})||e}(n.symbol)},argumentsSpan:r,argumentIndex:a,argumentCount:t}}(t=e,n=a,o)||d(t,r,n));if(n)return{value:n}},n=e;!k.isSourceFile(n)&&(t||!k.isBlock(n));n=n.parent){var s=r(n);if("object"==typeof s)return s.value}return}(a,t,c,i,r);if(u){n.throwIfCancellationRequested();var l=function(e,t,r,n,i){var a=e.invocation,o=e.argumentCount;switch(a.kind){case 0:if(i&&!function(e,t,r){if(!k.isCallOrNewExpression(t))return!1;var n=t.getChildren(r);switch(e.kind){case 20:return k.contains(n,e);case 27:var i=k.findContainingList(e);return!!i&&k.contains(n,i);case 29:return _(e,r,t.expression);default:return!1}}(n,a.node,r))return;var s=[],c=t.getResolvedSignatureForSignatureHelp(a.node,s,o);return 0===s.length?void 0:{kind:0,candidates:s,resolvedSignature:c};case 1:c=a.called;if(i&&!_(n,r,k.isIdentifier(c)?c.parent:c))return;if(0!==(s=k.getPossibleGenericSignatures(c,o,t)).length)return{kind:0,candidates:s,resolvedSignature:k.first(s)};c=t.getSymbolAtLocation(c);return c&&{kind:1,symbol:c};case 2:return{kind:0,candidates:[a.signature],resolvedSignature:a.signature};default:return k.Debug.assertNever(a)}}(u,i,c,a,o);return n.throwIfCancellationRequested(),l?i.runWithCancellationToken(n,function(e){return 0===l.kind?m(l.candidates,l.resolvedSignature,u,c,e):(t=l.symbol,n=c,i=e,a=(r=u).argumentCount,o=r.argumentsSpan,s=r.invocation,e=r.argumentIndex,(r=i.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t))?{items:[function(e,t,r,n,i){var a=k.symbolToDisplayParts(r,e),o=k.createPrinter({removeComments:!0}),s=t.map(function(e){return E(e,r,n,i,o)}),t=e.getDocumentationComment(r),e=e.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:__spreadArrays(a,[k.punctuationPart(29)]),suffixDisplayParts:[k.punctuationPart(31)],separatorDisplayParts:C,parameters:s,documentation:t,tags:e}}(t,r,i,S(s),n)],applicableSpan:o,selectedItemIndex:0,argumentIndex:e,argumentCount:a}:void 0);var t,r,n,i,a,o,s}):k.isSourceFileJS(c)?function(n,e,i){if(2===n.invocation.kind)return;var t=D(n.invocation),a=k.isPropertyAccessExpression(t)?t.name.text:void 0,o=e.getTypeChecker();return void 0===a?void 0:k.firstDefined(e.getSourceFiles(),function(r){return k.firstDefined(r.getNamedDeclarations().get(a),function(e){var e=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),t=e&&e.getCallSignatures();if(t&&t.length)return o.runWithCancellationToken(i,function(e){return m(t,t[0],n,r,e,!0)})})})}(u,e,n):void 0}}}},(t={})[t.Candidate=0]="Candidate",t[t.Type=1]="Type",e.getArgumentInfoForCompletions=function(e,t,r){return!(r=d(e,t,r))||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var T=70246400;function m(e,t,r,n,i,a){var o=r.isTypeParameterList,s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,r=r.argumentIndex,l=S(u),_=2===u.kind?u.symbol:i.getSymbolAtLocation(D(u))||a&&(null===(_=t.declaration)||void 0===_?void 0:_.symbol),d=_?k.symbolToDisplayParts(i,_,a?n:void 0,void 0):k.emptyArray,p=k.map(e,function(e){return function(u,l,e,_,d,t){t=(e?function(e,r,n,i){var t=(e.target||e).typeParameters,a=k.createPrinter({removeComments:!0}),o=(t||k.emptyArray).map(function(e){return E(e,r,n,i,a)}),s=e.thisParameter?[r.symbolToParameterDeclaration(e.thisParameter,n,T)]:[];return r.getExpandedParameters(e).map(function(e){var t=k.factory.createNodeArray(__spreadArrays(s,k.map(e,function(e){return r.symbolToParameterDeclaration(e,n,T)}))),e=k.mapToDisplayParts(function(e){a.writeList(2576,t,i,e)});return{isVariadic:!1,parameters:o,prefix:[k.punctuationPart(29)],suffix:__spreadArrays([k.punctuationPart(31)],e)}})}:function(r,s,c,u){var t=s.hasEffectiveRestParameter(r),l=k.createPrinter({removeComments:!0}),n=k.mapToDisplayParts(function(e){var t;r.typeParameters&&r.typeParameters.length&&(t=k.factory.createNodeArray(r.typeParameters.map(function(e){return s.typeParameterToDeclaration(e,c,T)})),l.writeList(53776,t,u,e))}),i=s.getExpandedParameters(r);return i.map(function(e){return{isVariadic:t&&(1===i.length||!!(32768&e[e.length-1].checkFlags)),parameters:e.map(function(e){return r=e,n=s,i=c,a=u,o=l,t=k.mapToDisplayParts(function(e){var t=n.symbolToParameterDeclaration(r,i,T);o.writeNode(4,t,a,e)}),e=n.isOptionalParameter(r.valueDeclaration),{name:r.name,documentation:r.getDocumentationComment(n),displayParts:t,isOptional:e};var r,n,i,a,o,t}),prefix:__spreadArrays(n,[k.punctuationPart(20)]),suffix:[k.punctuationPart(21)]}})})(u,_,d,t);return k.map(t,function(e){var r,n,i,t=e.isVariadic,a=e.parameters,o=e.prefix,s=e.suffix,c=__spreadArrays(l,o),e=__spreadArrays(s,(r=u,n=d,i=_,k.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var t=i.getTypePredicateOfSignature(r);t?i.writeTypePredicate(t,n,void 0,e):i.writeType(i.getReturnTypeOfSignature(r),n,void 0,e)}))),o=u.getDocumentationComment(_),s=u.getJsDocTags();return{isVariadic:t,prefixDisplayParts:c,suffixDisplayParts:e,separatorDisplayParts:C,parameters:a,documentation:o,tags:s}})}(e,d,o,i,l,n)});0!==r&&k.Debug.assertLessThan(r,s);for(var f=0,g=0,m=0;m<p.length;m++){var y=p[m];if(e[m]===t&&(f=g,1<y.length))for(var h=0,v=0,b=y;v<b.length;v++){var x=b[v];if(x.isVariadic||x.parameters.length>=s){f=g+h;break}h++}g+=y.length}return k.Debug.assert(-1!==f),{items:k.flatMapToMutable(p,k.identity),applicableSpan:c,selectedItemIndex:f,argumentIndex:r,argumentCount:s}}var C=[k.punctuationPart(27),k.spacePart()];function E(r,n,i,a,o){var e=k.mapToDisplayParts(function(e){var t=n.typeParameterToDeclaration(r,i,T);o.writeNode(4,t,a,e)});return{name:r.symbol.name,documentation:r.symbol.getDocumentationComment(n),displayParts:e,isOptional:!1}}}(k.SignatureHelp||(k.SignatureHelp={}))}(ts=ts||{}),function(d){var _=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function p(e,t,r){t=d.tryParseRawSourceMap(t);if(t&&t.sources&&t.file&&t.mappings&&(!t.sourcesContent||!t.sourcesContent.some(d.isString)))return d.createDocumentPositionMapper(e,t,r)}d.getSourceMapper=function(a){var o=d.createGetCanonicalFileName(a.useCaseSensitiveFileNames()),n=a.getCurrentDirectory(),i=new d.Map,s=new d.Map;return{tryGetSourcePosition:function e(t){if(!d.isDeclarationFileName(t.fileName))return;var r=l(t.fileName);if(!r)return;var r=u(t.fileName).getSourcePosition(t);return r&&r!==t?e(r)||r:void 0},tryGetGeneratedPosition:function(e){if(d.isDeclarationFileName(e.fileName))return;var t=l(e.fileName);if(!t)return;var r=a.getProgram();if(r.isSourceOfProjectReferenceRedirect(t.fileName))return;t=r.getCompilerOptions(),t=d.outFile(t),r=t?d.removeFileExtension(t)+".d.ts":d.getDeclarationEmitOutputFilePathWorker(e.fileName,r.getCompilerOptions(),n,r.getCommonSourceDirectory(),o);if(void 0===r)return;r=u(r,e.fileName).getGeneratedPosition(e);return r===e?void 0:r},toLineColumnOffset:function(e,t){return _(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),s.clear()}};function c(e){return d.toPath(e,n,o)}function u(e,t){var r,n=c(e),i=s.get(n);return i||(a.getDocumentPositionMapper?r=a.getDocumentPositionMapper(e,t):a.readFile&&(r=(t=_(e))&&d.getDocumentPositionMapper({getSourceFileLike:_,getCanonicalFileName:o,log:function(e){return a.log(e)}},e,d.getLineInfo(t.text,d.getLineStarts(t)),function(e){return!a.fileExists||a.fileExists(e)?a.readFile(e):void 0})),s.set(n,r||d.identitySourceMapConsumer),r||d.identitySourceMapConsumer)}function l(e){var t=a.getProgram();if(t){e=c(e),t=t.getSourceFileByPath(e);return t&&t.resolvedPath===e?t:void 0}}function t(e){var t=c(e),e=i.get(t);if(void 0!==e)return e||void 0;if(a.readFile&&(!a.fileExists||a.fileExists(t))){var r,e=a.readFile(t),r=!!e&&{text:e,lineMap:r,getLineAndCharacterOfPosition:function(e){return d.computeLineAndCharacterOfPosition(d.getLineStarts(this),e)}};return i.set(t,r),r||void 0}i.set(t,!1)}function _(e){return a.getSourceFileLike?a.getSourceFileLike(e):l(e)||t(e)}},d.getDocumentPositionMapper=function(e,t,r,n){var i=d.tryGetSourceMappingURL(r);if(i){r=_.exec(i);if(r){if(r[1]){var a=r[1];return p(e,d.base64decode(d.sys,a),t)}i=void 0}}a=[],i&&a.push(i),a.push(t+".map");for(var o=i&&d.getNormalizedAbsolutePath(i,d.getDirectoryPath(t)),s=0,c=a;s<c.length;s++){var u=c[s],l=d.getNormalizedAbsolutePath(u,d.getDirectoryPath(t)),u=n(l,o);if(d.isString(u))return p(e,u,l);if(void 0!==u)return u||void 0}}}(ts=ts||{}),function(_){var d=new _.Map;function p(e,t,r){var n;n=e,t=t,!_.isAsyncFunction(n)&&n.body&&_.isBlock(n.body)&&function(e){return!!_.forEachReturnStatement(e,i)}(n.body)&&function(e,t){e=t.getTypeAtLocation(e),e=t.getSignaturesOfType(e,0),e=e.length?t.getReturnTypeOfSignature(e[0]):void 0;return!!e&&!!t.getPromisedTypeOfPromise(e)}(n,t)&&!d.has(a(e))&&r.push(_.createDiagnosticForNode(!e.name&&_.isVariableDeclaration(e.parent)&&_.isIdentifier(e.parent.name)?e.parent.name:e,_.Diagnostics.This_may_be_converted_to_an_async_function))}function i(e){return _.isReturnStatement(e)&&!!e.expression&&t(e.expression)}function t(e){if(!r(e)||!e.arguments.every(n))return!1;for(var t=e.expression;r(t)||_.isPropertyAccessExpression(t);){if(_.isCallExpression(t)&&!t.arguments.every(n))return!1;t=t.expression}return!0}function r(e){return _.isCallExpression(e)&&(_.hasPropertyAccessExpressionWithName(e,"then")&&(!(2<(t=e).arguments.length)&&(t.arguments.length<2||_.some(t.arguments,function(e){return 103===e.kind||_.isIdentifier(e)&&"undefined"===e.text})))||_.hasPropertyAccessExpressionWithName(e,"catch"));var t}function n(e){switch(e.kind){case 251:case 208:case 209:d.set(a(e),!0);case 103:case 78:return!0;default:return!1}}function a(e){return e.pos.toString()+":"+e.end.toString()}function f(e,t){var r,n;if(208!==e.kind)return 251===e.kind&&(null!==(n=e.symbol.members)&&void 0!==n&&n.size);if(_.isVariableDeclaration(e.parent)&&null!==(r=e.symbol.members)&&void 0!==r&&r.size)return 1;var t=t.getSymbolOfExpando(e,!1);return t&&(null!==(e=t.exports)&&void 0!==e&&e.size||null!==(t=t.members)&&void 0!==t&&t.size)}_.computeSuggestionDiagnostics=function(n,e,t){e.getSemanticDiagnostics(n,t);var r,i=[],a=e.getTypeChecker();n.commonJsModuleIndicator&&(_.programContainsEs6Modules(e)||_.compilerOptionsIndicateEs6Modules(e.getCompilerOptions()))&&n.statements.some(function(e){switch(e.kind){case 232:return e.declarationList.declarations.some(function(e){return!!e.initializer&&_.isRequireCall(function e(t){return _.isPropertyAccessExpression(t)?e(t.expression):t}(e.initializer),!0)});case 233:var t=e.expression;if(!_.isBinaryExpression(t))return _.isRequireCall(t,!0);t=_.getAssignmentDeclarationKind(t);return 1===t||2===t;default:return!1}})&&i.push(_.createDiagnosticForNode((r=n.commonJsModuleIndicator,_.isBinaryExpression(r)?r.left:r),_.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var o=_.isSourceFileJS(n);if(d.clear(),function e(t){{var r;o?f(t,a)&&i.push(_.createDiagnosticForNode(_.isVariableDeclaration(t.parent)?t.parent.name:t,_.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration)):(_.isVariableStatement(t)&&t.parent===n&&2&t.declarationList.flags&&1===t.declarationList.declarations.length&&((r=t.declarationList.declarations[0].initializer)&&_.isRequireCall(r,!0)&&i.push(_.createDiagnosticForNode(r,_.Diagnostics.require_call_may_be_converted_to_an_import))),_.codefix.parameterShouldGetTypeFromJSDoc(t)&&i.push(_.createDiagnosticForNode(t.name||t,_.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)))}_.isFunctionLikeDeclaration(t)&&p(t,a,i);t.forEachChild(e)}(n),_.getAllowSyntheticDefaultImports(e.getCompilerOptions()))for(var s=0,c=n.imports;s<c.length;s++){var u=c[s],l=function(e){switch(e.kind){case 261:var t=e.importClause,r=e.moduleSpecifier;return t&&!t.name&&t.namedBindings&&263===t.namedBindings.kind&&_.isStringLiteral(r)?t.namedBindings.name:void 0;case 260:return e.name;default:return}}(_.importFromModuleSpecifier(u));l&&((u=(u=_.getResolvedModule(n,u.text))&&e.getSourceFile(u.resolvedFileName))&&u.externalModuleIndicator&&_.isExportAssignment(u.externalModuleIndicator)&&u.externalModuleIndicator.isExportEquals&&i.push(_.createDiagnosticForNode(l,_.Diagnostics.Import_may_be_converted_to_a_default_import)))}return _.addRange(i,n.bindSuggestionDiagnostics),_.addRange(i,e.getSuggestionDiagnostics(n,t)),i.sort(function(e,t){return e.start-t.start})},_.isReturnStatementWithFixablePromiseHandler=i,_.isFixablePromiseHandler=t}(ts=ts||{}),function(U){var e,V;function K(e,t,r){e=q(e,t,r);if(""!==e)return e;r=U.getCombinedLocalAndExportSymbolFlags(t);return 32&r?U.getDeclarationOfKind(t,221)?"local class":"class":384&r?"enum":524288&r?"type":64&r?"interface":262144&r?"type parameter":8&r?"enum member":2097152&r?"alias":1536&r?"module":e}function q(e,t,r){var n=e.getRootSymbols(t);if(1===n.length&&8192&U.first(n).flags&&0!==e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(107===r.kind&&U.isExpression(r))return"parameter";n=U.getCombinedLocalAndExportSymbolFlags(t);if(3&n)return U.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&U.isVarConst(t.valueDeclaration)?"const":U.forEach(t.declarations,U.isLet)?"let":i(t)?"local var":"var";if(16&n)return i(t)?"local function":"function";if(32768&n)return"getter";if(65536&n)return"setter";if(8192&n)return"method";if(16384&n)return"constructor";if(4&n){if(33554432&n&&6&t.checkFlags){n=U.forEach(e.getRootSymbols(t),function(e){e=e.getFlags();if(98311&e)return"property";U.Debug.assert(!!(8208&e))});return n?n:e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property"}switch(r.parent&&r.parent.kind){case 275:case 273:case 274:return 78===r.kind?"property":"JSX attribute";case 280:return"JSX attribute";default:return"property"}}return""}function i(e){return!e.parent&&U.forEach(e.declarations,function(e){if(208===e.kind)return!0;if(249!==e.kind&&251!==e.kind)return!1;for(var t=e.parent;!U.isFunctionBlock(t);t=t.parent)if(297===t.kind||257===t.kind)return!1;return!0})}e=U.SymbolDisplay||(U.SymbolDisplay={}),V=70246400,e.getSymbolKind=K,e.getSymbolModifiers=function(e){var t=e&&e.declarations&&0<e.declarations.length?U.getNodeModifiers(e.declarations[0]):"",e=e&&16777216&e.flags?"optional":"";return t&&e?t+","+e:t||e},e.getSymbolDisplayPartsDocumentationAndSymbolKind=function e(i,r,n,a,t,o,s){void 0===o&&(o=U.getMeaningFromLocation(t));var c,u,l,_,d,p,f=[],g=[],m=[],y=U.getCombinedLocalAndExportSymbolFlags(r),h=1&o?q(i,r,t):"",v=!1,b=107===t.kind&&U.isInExpressionContext(t),x=!1;if(107===t.kind&&!b)return{displayParts:[U.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==h||32&y||2097152&y){"getter"!==h&&"setter"!==h||(h="property");var D=void 0,S=b?i.getTypeAtLocation(t):i.getTypeOfSymbolAtLocation(r.exportSymbol||r,t);!t.parent||201!==t.parent.kind||((C=t.parent.name)===t||C&&0===C.getFullWidth())&&(t=t.parent);var T,C=void 0;if(U.isCallOrNewExpression(t)?C=t:(U.isCallExpressionTarget(t)||U.isNewExpressionTarget(t)||t.parent&&(U.isJsxOpeningLikeElement(t.parent)||U.isTaggedTemplateExpression(t.parent))&&U.isFunctionLike(r.valueDeclaration))&&(C=t.parent),C){D=i.getResolvedSignature(C);var E=204===C.kind||U.isCallExpression(C)&&105===C.expression.kind,k=E?S.getConstructSignatures():S.getCallSignatures();if(U.contains(k,D.target)||U.contains(k,D)||(D=k.length?k[0]:void 0),D){switch(E&&32&y?(h="constructor",B(S.symbol,h)):2097152&y?(j(h="alias"),f.push(U.spacePart()),E&&(f.push(U.keywordPart(102)),f.push(U.spacePart())),R(r)):B(r,h),h){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":f.push(U.punctuationPart(58)),f.push(U.spacePart()),16&U.getObjectFlags(S)||!S.symbol||(U.addRange(f,U.symbolToDisplayParts(i,S.symbol,a,void 0,5)),f.push(U.lineBreakPart())),E&&(f.push(U.keywordPart(102)),f.push(U.spacePart())),J(D,k,262144);break;default:J(D,k)}v=!0,x=1<k.length}}else(U.isNameOfFunctionDeclaration(t)&&!(98304&y)||132===t.kind&&166===t.parent.kind)&&(T=t.parent,r.declarations&&U.find(r.declarations,function(e){return e===(132===t.kind?T.parent:T)})&&(k=166===T.kind?S.getNonNullableType().getConstructSignatures():S.getNonNullableType().getCallSignatures(),D=i.isImplementationOfOverload(T)?k[0]:i.getSignatureFromDeclaration(T),166===T.kind?(h="constructor",B(S.symbol,h)):B(169!==T.kind||2048&S.symbol.flags||4096&S.symbol.flags?r:S.symbol,h),J(D,k),v=!0,x=1<k.length))}if(32&y&&!v&&!b&&(M(),U.getDeclarationOfKind(r,221)?j("local class"):f.push(U.keywordPart(83)),f.push(U.spacePart()),R(r),z(r,n)),64&y&&2&o&&(O(),f.push(U.keywordPart(117)),f.push(U.spacePart()),R(r),z(r,n)),524288&y&&2&o&&(O(),f.push(U.keywordPart(149)),f.push(U.spacePart()),R(r),z(r,n),f.push(U.spacePart()),f.push(U.operatorPart(62)),f.push(U.spacePart()),U.addRange(f,U.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(r),a,8388608))),384&y&&(O(),U.some(r.declarations,function(e){return U.isEnumDeclaration(e)&&U.isEnumConst(e)})&&(f.push(U.keywordPart(84)),f.push(U.spacePart())),f.push(U.keywordPart(91)),f.push(U.spacePart()),R(r)),1536&y&&!b&&(O(),u=(A=U.getDeclarationOfKind(r,256))&&A.name&&78===A.name.kind,f.push(U.keywordPart(u?140:139)),f.push(U.spacePart()),R(r)),262144&y&&2&o)if(O(),f.push(U.punctuationPart(20)),f.push(U.textPart("type parameter")),f.push(U.punctuationPart(21)),f.push(U.spacePart()),R(r),r.parent)L(),R(r.parent,a),z(r.parent,a);else{var N=U.getDeclarationOfKind(r,159);if(void 0===N)return U.Debug.fail();(A=N.parent)&&(U.isFunctionLikeKind(A.kind)?(L(),D=i.getSignatureFromDeclaration(A),170===A.kind?(f.push(U.keywordPart(102)),f.push(U.spacePart())):169!==A.kind&&A.name&&R(A.symbol),U.addRange(f,U.signatureToDisplayParts(i,D,n,32))):254===A.kind&&(L(),f.push(U.keywordPart(149)),f.push(U.spacePart()),R(A.symbol),z(A.symbol,n)))}if(8&y&&(B(r,h="enum member"),291!==(A=r.declarations[0]).kind||void 0!==(l=i.getConstantValue(A))&&(f.push(U.spacePart()),f.push(U.operatorPart(62)),f.push(U.spacePart()),f.push(U.displayPart(U.getTextOfConstantValue(l),"number"==typeof l?U.SymbolDisplayPartKind.numericLiteral:U.SymbolDisplayPartKind.stringLiteral)))),2097152&r.flags){switch(O(),v||(u=i.getAliasedSymbol(r))!==r&&u.declarations&&0<u.declarations.length&&(N=u.declarations[0],(l=U.getNameOfDeclaration(N))&&(d=U.isModuleWithStringLiteralName(N)&&U.hasSyntacticModifier(N,2),_="default"!==r.name&&!d,d=e(i,u,U.getSourceFileOfNode(N),N,l,o,_?r:u),f.push.apply(f,d.displayParts),f.push(U.lineBreakPart()),_=d.documentation,d=d.tags)),r.declarations[0].kind){case 259:f.push(U.keywordPart(92)),f.push(U.spacePart()),f.push(U.keywordPart(140));break;case 266:f.push(U.keywordPart(92)),f.push(U.spacePart()),f.push(U.keywordPart(r.declarations[0].isExportEquals?62:87));break;case 270:f.push(U.keywordPart(92));break;default:f.push(U.keywordPart(99))}f.push(U.spacePart()),R(r),U.forEach(r.declarations,function(e){if(260===e.kind)return U.isExternalModuleImportEqualsDeclaration(e)?(f.push(U.spacePart()),f.push(U.operatorPart(62)),f.push(U.spacePart()),f.push(U.keywordPart(143)),f.push(U.punctuationPart(20)),f.push(U.displayPart(U.getTextOfNode(U.getExternalModuleImportEqualsDeclarationExpression(e)),U.SymbolDisplayPartKind.stringLiteral)),f.push(U.punctuationPart(21))):(e=i.getSymbolAtLocation(e.moduleReference))&&(f.push(U.spacePart()),f.push(U.operatorPart(62)),f.push(U.spacePart()),R(e,a)),!0})}if(v||(""!==h?S&&(b?(O(),f.push(U.keywordPart(107))):B(r,h),"property"===h||"JSX attribute"===h||3&y||"local var"===h||b?(f.push(U.punctuationPart(58)),f.push(U.spacePart()),S.symbol&&262144&S.symbol.flags?(p=U.mapToDisplayParts(function(e){var t=i.typeParameterToDeclaration(S,a,V);I().writeNode(4,t,U.getSourceFileOfNode(U.getParseTreeNode(a)),e)}),U.addRange(f,p)):U.addRange(f,U.typeToDisplayParts(i,S,a)),r.target&&r.target.tupleLabelDeclaration&&(p=r.target.tupleLabelDeclaration,U.Debug.assertNode(p.name,U.isIdentifier),f.push(U.spacePart()),f.push(U.punctuationPart(20)),f.push(U.textPart(U.idText(p.name))),f.push(U.punctuationPart(21)))):(16&y||8192&y||16384&y||131072&y||98304&y||"method"===h)&&(k=S.getNonNullableType().getCallSignatures()).length&&(J(k[0],k),x=1<k.length)):h=K(i,r,t)),0!==g.length||x||(g=r.getContextualDocumentationComment(a,i)),0===g.length&&4&y&&r.parent&&U.forEach(r.parent.declarations,function(e){return 297===e.kind}))for(var A,F=0,P=r.declarations;F<P.length;F++)if((A=P[F]).parent&&216===A.parent.kind){var w=i.getSymbolAtLocation(A.parent.right);if(w&&(g=w.getDocumentationComment(i),m=w.getJsDocTags(),0<g.length))break}return 0!==m.length||x||(m=r.getJsDocTags()),0===g.length&&_&&(g=_),0===m.length&&d&&(m=d),{displayParts:f,documentation:g,symbolKind:h,tags:0===m.length?void 0:m};function I(){return c=c||U.createPrinter({removeComments:!0})}function O(){f.length&&f.push(U.lineBreakPart()),M()}function M(){s&&(j("alias"),f.push(U.spacePart()))}function L(){f.push(U.spacePart()),f.push(U.keywordPart(100)),f.push(U.spacePart())}function R(e,t){s&&e===r&&(e=s),t=U.symbolToDisplayParts(i,e,t||n,void 0,7),U.addRange(f,t),16777216&r.flags&&f.push(U.punctuationPart(57))}function B(e,t){O(),t&&(j(t),e&&!U.some(e.declarations,function(e){return U.isArrowFunction(e)||(U.isFunctionExpression(e)||U.isClassExpression(e))&&!e.name})&&(f.push(U.spacePart()),R(e)))}function j(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void f.push(U.textOrKeywordPart(e));default:return f.push(U.punctuationPart(20)),f.push(U.textOrKeywordPart(e)),void f.push(U.punctuationPart(21))}}function J(e,t,r){void 0===r&&(r=0),U.addRange(f,U.signatureToDisplayParts(i,e,a,32|r)),1<t.length&&(f.push(U.spacePart()),f.push(U.punctuationPart(20)),f.push(U.operatorPart(39)),f.push(U.displayPart((t.length-1).toString(),U.SymbolDisplayPartKind.numericLiteral)),f.push(U.spacePart()),f.push(U.textPart(2===t.length?"overload":"overloads")),f.push(U.punctuationPart(21))),g=e.getDocumentationComment(i),m=e.getJsDocTags(),1<t.length&&0===g.length&&0===m.length&&(g=t[0].getDocumentationComment(i),m=t[0].getJsDocTags())}function z(r,n){var e=U.mapToDisplayParts(function(e){var t=i.symbolToTypeParameterDeclarations(r,n,V);I().writeList(53776,t,U.getSourceFileOfNode(U.getParseTreeNode(n)),e)});U.addRange(f,e)}}}(ts=ts||{}),function(f){function a(e,t){var r,n=[],i=t.compilerOptions?g(t.compilerOptions,n):{},a=f.getDefaultCompilerOptions();for(r in a)f.hasProperty(a,r)&&void 0===i[r]&&(i[r]=a[r]);for(var o=0,s=f.transpileOptionValueCompilerOptions;o<s.length;o++){var c=s[o];i[c.name]=c.transpileOptionValue}i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;var u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=f.createSourceFile(u,e,i.target);t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new f.Map(f.getEntries(t.renamedDependencies)));var _,d,p=f.getNewLineCharacter(i),e={getSourceFile:function(e){return e===f.normalizePath(u)?l:void 0},writeFile:function(e,t){f.fileExtensionIs(e,".map")?(f.Debug.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",e),d=t):(f.Debug.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return p},fileExists:function(e){return e===u},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},e=f.createProgram([u],i,e);return t.reportDiagnostics&&(f.addRange(n,e.getSyntacticDiagnostics(l)),f.addRange(n,e.getOptionsDiagnostics())),e.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===_?f.Debug.fail("Output generation failed"):{outputText:_,diagnostics:n,sourceMapText:d}}var i;function g(r,n){i=i||f.filter(f.optionDeclarations,function(e){return"object"==typeof e.type&&!f.forEachEntry(e.type,function(e){return"number"!=typeof e})}),r=f.cloneCompilerOptions(r);for(var e=0,t=i;e<t.length;e++)!function(e){var t;f.hasProperty(r,e.name)&&(t=r[e.name],f.isString(t)?r[e.name]=f.parseCustomTypeOption(e,t,n):f.forEachEntry(e.type,function(e){return e===t})||n.push(f.createCompilerDiagnosticForInvalidCustomType(e)))}(t[e]);return r}f.transpileModule=a,f.transpile=function(e,t,r,n,i){return i=a(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!n,moduleName:i}),f.addRange(n,i.diagnostics),i.outputText},f.fixupCompilerOptions=g}(ts=ts||{}),function(a){!function(e){(t=e.FormattingRequestKind||(e.FormattingRequestKind={}))[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var t=(r.prototype.updateContext=function(e,t,r,n,i){this.currentTokenSpan=a.Debug.checkDefined(e),this.currentTokenParent=a.Debug.checkDefined(t),this.nextTokenSpan=a.Debug.checkDefined(r),this.nextTokenParent=a.Debug.checkDefined(n),this.contextNode=a.Debug.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},r.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},r.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},r.prototype.TokensAreOnSameLine=function(){var e,t;return void 0===this.tokensAreOnSameLine&&(e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line,this.tokensAreOnSameLine=e===t),this.tokensAreOnSameLine},r.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},r.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},r.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},r.prototype.BlockIsOnOneLine=function(e){var t=a.findChildOfKind(e,18,this.sourceFile),e=a.findChildOfKind(e,19,this.sourceFile);return!(!t||!e)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line},r);function r(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}e.FormattingContext=t}(a.formatting||(a.formatting={}))}(ts=ts||{}),function(g){var m,e,y,h;m=g.formatting||(g.formatting={}),y=g.createScanner(99,!1,0),h=g.createScanner(99,!1,1),(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",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue",m.getFormattingScanner=function(e,t,r,i,n){var a=1===t?h:y;a.setText(e),a.setTextPos(r);var o,s,c,u,l=!0,n=n({advance:function(){_=void 0,a.getStartPos()!==r?l=!!s&&4===g.last(s).kind:a.scan();o=void 0,s=void 0;var e=a.getStartPos();for(;e<i;){var t=a.getToken();if(!g.isTrivia(t))break;a.scan();t={pos:e,end:a.getStartPos(),kind:t};e=a.getStartPos(),o=g.append(o,t)}c=a.getStartPos()},readTokenInfo:function(e){g.Debug.assert(d());var t=function(e){switch(e.kind){case 33:case 70:case 71:case 49:case 48:return!0}return!1}(e)?1:13===e.kind?2:function(e){return 16===e.kind||17===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 280:case 275:case 276:case 274:return g.isKeyword(e.kind)||78===e.kind}return!1}(e)?4:function(e){if(g.isJsxText(e)){e=g.findAncestor(e.parent,function(e){return g.isJsxElement(e)});return e?!g.isParenthesizedExpression(e.parent):!1}return!1}(e)?5:function(e){return e.parent&&g.isJsxAttribute(e.parent)&&e.parent.initializer===e}(e)?6:0;if(_&&t===u)return f(_,e);a.getStartPos()!==c&&(g.Debug.assert(void 0!==_),a.setTextPos(c),a.scan());var r=function(e,t){var r=a.getToken();switch(u=0,t){case 1:if(31!==r)break;u=1;var n=a.reScanGreaterToken();return g.Debug.assert(e.kind===n),n;case 2:if(function(e){return 43===e||67===e}(r)){u=2;n=a.reScanSlashToken();return g.Debug.assert(e.kind===n),n}break;case 3:if(19===r)return u=3,a.reScanTemplateToken(!1);break;case 4:return u=4,a.scanJsxIdentifier();case 5:return u=5,a.reScanJsxToken();case 6:return u=6,a.reScanJsxAttributeValue();case 0:break;default:g.Debug.assertNever(t)}return r}(e,t),t=m.createTextRangeWithKind(a.getStartPos(),a.getTextPos(),r);s=s&&void 0;for(;a.getStartPos()<i&&(r=a.scan(),g.isTrivia(r));){var n=m.createTextRangeWithKind(a.getStartPos(),a.getTextPos(),r);if((s=s||[]).push(n),4===r){a.scan();break}}return f(_={leadingTrivia:o,trailingTrivia:s,token:t},e)},readEOFTokenRange:function(){return g.Debug.assert(p()),m.createTextRangeWithKind(a.getStartPos(),a.getTextPos(),1)},isOnToken:d,isOnEOF:p,getCurrentLeadingTrivia:function(){return o},lastTrailingTriviaWasNewLine:function(){return l},skipToEndOf:function(e){a.setTextPos(e.end),c=a.getStartPos(),u=void 0,_=void 0,l=!1,o=void 0,s=void 0},skipToStartOf:function(e){a.setTextPos(e.pos),c=a.getStartPos(),u=void 0,_=void 0,l=!1,o=void 0,s=void 0}}),_=void 0;return a.setText(void 0),n;function d(){var e=_?_.token.kind:a.getToken();return(_?_.token.pos:a.getStartPos())<i&&1!==e&&!g.isTrivia(e)}function p(){return 1===(_?_.token.kind:a.getToken())}function f(e,t){return g.isToken(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}}(ts=ts||{}),function(e){var t;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(e=t.RuleAction||(t.RuleAction={}))[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",(t=t.RuleFlags||(t.RuleFlags={}))[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines"}(ts=ts||{}),function(p){var f;function g(e,t,r,n,i,a){return void 0===a&&(a=0),{leftTokenRange:o(t),rightTokenRange:o(r),rule:{debugName:e,context:n,action:i,flags:a}}}function m(e){return{tokens:e,isSpecific:!0}}function o(e){return"number"==typeof e?m([e]):p.isArray(e)?m(e):e}function y(e,t,r){void 0===r&&(r=[]);for(var n=[],i=e;i<=t;i++)p.contains(r,i)||n.push(i);return m(n)}function h(t,r){return function(e){return e.options&&e.options[t]===r}}function v(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!!e.options[t]}}function b(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!e.options[t]}}function x(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]}}function D(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]||e.TokensAreOnSameLine()}}function S(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!!e.options[t]}}function T(e){return 237===e.contextNode.kind}function C(e){return!T(e)}function E(e){switch(e.contextNode.kind){case 216:return 27!==e.contextNode.operatorToken.kind;case 217:case 184:case 224:case 270:case 265:case 172:case 182:case 183:return!0;case 198:case 254:case 260:case 249:case 160:case 291:case 163:case 162:return 62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 238:case 159:return 100===e.currentTokenSpan.kind||100===e.nextTokenSpan.kind||62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 239:return 156===e.currentTokenSpan.kind||156===e.nextTokenSpan.kind}return!1}function k(e){return!E(e)}function N(e){return!A(e)}function A(e){e=e.contextNode.kind;return 163===e||162===e||160===e||249===e||p.isFunctionLikeKind(e)}function F(e){return 217===e.contextNode.kind||184===e.contextNode.kind}function P(e){return e.TokensAreOnSameLine()||M(e)}function w(e){return 196===e.contextNode.kind||190===e.contextNode.kind||t(e=e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function I(e){return M(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function O(e){return t(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function t(e){return r(e.contextNode)}function M(e){return r(e.nextTokenParent)}function r(e){if(n(e))return!0;switch(e.kind){case 230:case 258:case 200:case 257:return!0}return!1}function L(e){switch(e.contextNode.kind){case 251:case 165:case 164:case 167:case 168:case 169:case 208:case 166:case 209:case 253:return!0}return!1}function R(e){return!L(e)}function B(e){return 251===e.contextNode.kind||208===e.contextNode.kind}function j(e){return n(e.contextNode)}function n(e){switch(e.kind){case 252:case 221:case 253:case 255:case 177:case 256:case 267:case 268:case 261:case 264:return!0}return!1}function J(e){switch(e.currentTokenParent.kind){case 252:case 256:case 255:case 287:case 257:case 244:return!0;case 230:var t=e.currentTokenParent.parent;if(!t||209!==t.kind&&208!==t.kind)return!0}return!1}function z(e){switch(e.contextNode.kind){case 234:case 244:case 237:case 238:case 239:case 236:case 247:case 235:case 243:case 287:return!0;default:return!1}}function U(e){return 200===e.contextNode.kind}function V(e){return 203===e.contextNode.kind||204===e.contextNode.kind}function K(e){return 27!==e.currentTokenSpan.kind}function q(e){return 23!==e.nextTokenSpan.kind}function W(e){return 21!==e.nextTokenSpan.kind}function H(e){return 209===e.contextNode.kind}function G(e){return 195===e.contextNode.kind}function X(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function Q(e){return 11!==e.contextNode.kind}function Y(e){return 273!==e.contextNode.kind&&277!==e.contextNode.kind}function Z(e){return 283===e.contextNode.kind||282===e.contextNode.kind}function $(e){return 280===e.nextTokenParent.kind}function ee(e){return 280===e.contextNode.kind}function te(e){return 274===e.contextNode.kind}function re(e){return!L(e)&&!M(e)}function ne(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&i(e.currentTokenParent)&&!i(e.nextTokenParent)}function i(e){for(;p.isExpressionNode(e);)e=e.parent;return 161===e.kind}function ie(e){return 250===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function ae(e){return 2!==e.formattingRequestKind}function oe(e){return 256===e.contextNode.kind}function se(e){return 177===e.contextNode.kind}function ce(e){return 170===e.contextNode.kind}function a(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 173:case 206:case 254:case 252:case 221:case 253:case 251:case 208:case 209:case 165:case 164:case 169:case 170:case 203:case 204:case 223:return!0;default:return!1}}function ue(e){return a(e.currentTokenSpan,e.currentTokenParent)||a(e.nextTokenSpan,e.nextTokenParent)}function le(e){return 206===e.contextNode.kind}function _e(e){return 113===e.currentTokenSpan.kind&&212===e.currentTokenParent.kind}function de(e){return 219===e.contextNode.kind&&void 0!==e.contextNode.expression}function pe(e){return 225===e.contextNode.kind}function fe(e){return!function(e){switch(e.contextNode.kind){case 234:case 237:case 238:case 239:case 235:case 236:return!0;default:return!1}}(e)}function ge(e){var t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(p.isTrivia(t)){var n=e.nextTokenParent===e.currentTokenParent?p.findNextToken(e.currentTokenParent,p.findAncestor(e.currentTokenParent,function(e){return!e.parent}),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!n)return!0;t=n.kind,r=n.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(r).line?19===t||1===t:229!==t&&26!==t&&(253===e.contextNode.kind||254===e.contextNode.kind?!p.isPropertySignature(e.currentTokenParent)||!!e.currentTokenParent.type||20!==t:p.isPropertyDeclaration(e.currentTokenParent)?!e.currentTokenParent.initializer:237!==e.currentTokenParent.kind&&231!==e.currentTokenParent.kind&&229!==e.currentTokenParent.kind&&22!==t&&20!==t&&39!==t&&40!==t&&43!==t&&13!==t&&27!==t&&218!==t&&15!==t&&14!==t&&24!==t)}function me(e){return p.positionIsASICandidate(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}(f=p.formatting||(p.formatting={})).getAllRules=function(){for(var r=[],e=0;e<=156;e++)1!==e&&r.push(e);function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:r.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var n={tokens:r,isSpecific:!1},i=m(__spreadArrays(r,[3])),a=m(__spreadArrays(r,[1])),o=y(80,156),s=y(29,77),c=[100,101,156,126,137],u=__spreadArrays([78],p.typeKeywords),l=i,_=m([78,3,83,92,99]),d=m([21,3,89,110,95,90]),u=[g("IgnoreBeforeComment",n,[2,3],f.anyContext,1),g("IgnoreAfterLineComment",2,n,f.anyContext,1),g("NotSpaceBeforeColon",n,58,[X,k,N],16),g("SpaceAfterColon",58,n,[X,k],4),g("NoSpaceBeforeQuestionMark",n,57,[X,k,N],16),g("SpaceAfterQuestionMarkInConditionalOperator",57,n,[X,F],4),g("NoSpaceAfterQuestionMark",57,n,[X],16),g("NoSpaceBeforeDot",n,[24,28],[X],16),g("NoSpaceAfterDot",[24,28],n,[X],16),g("NoSpaceBetweenImportParenInImportType",99,20,[X,G],16),g("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,78,20,22,18,107,102],[X,k],16),g("NoSpaceAfterUnaryPreincrementOperator",45,[78,20,107,102],[X],16),g("NoSpaceAfterUnaryPredecrementOperator",46,[78,20,107,102],[X],16),g("NoSpaceBeforeUnaryPostincrementOperator",[78,21,23,102],45,[X,fe],16),g("NoSpaceBeforeUnaryPostdecrementOperator",[78,21,23,102],46,[X,fe],16),g("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[X,E],4),g("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[X,E],4),g("SpaceAfterAddWhenFollowedByPreincrement",39,45,[X,E],4),g("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[X,E],4),g("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[X,E],4),g("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[X,E],4),g("NoSpaceAfterCloseBrace",19,[27,26],[X],16),g("NewLineBeforeCloseBraceInBlockContext",i,19,[O],8),g("SpaceAfterCloseBrace",19,t(21),[X,J],4),g("SpaceBetweenCloseBraceAndElse",19,90,[X],4),g("SpaceBetweenCloseBraceAndWhile",19,114,[X],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[X,U],16),g("SpaceAfterConditionalClosingParen",21,22,[z],4),g("NoSpaceBetweenFunctionKeywordAndStar",97,41,[B],16),g("SpaceAfterStarInGeneratorDeclaration",41,78,[B],4),g("SpaceAfterFunctionInFuncDecl",97,n,[L],4),g("NewLineAfterOpenBraceInBlockContext",18,n,[O],8),g("SpaceAfterGetSetInMember",[134,146],78,[L],4),g("NoSpaceBetweenYieldKeywordAndStar",124,41,[X,de],16),g("SpaceBetweenYieldOrYieldStarAndOperand",[124,41],n,[X,de],4),g("NoSpaceBetweenReturnAndSemicolon",104,26,[X],16),g("SpaceAfterCertainKeywords",[112,108,102,88,104,111,130],n,[X],4),g("SpaceAfterLetConstInVariableDeclaration",[118,84],n,[X,ie],4),g("NoSpaceBeforeOpenParenInFuncCall",n,20,[X,V,K],16),g("SpaceBeforeBinaryKeywordOperator",n,c,[X,E],4),g("SpaceAfterBinaryKeywordOperator",c,n,[X,E],4),g("SpaceAfterVoidOperator",113,n,[X,_e],4),g("SpaceBetweenAsyncAndOpenParen",129,20,[H,X],4),g("SpaceBetweenAsyncAndFunctionKeyword",129,[97,78],[X],4),g("NoSpaceBetweenTagAndTemplateString",[78,21],[14,15],[X],16),g("SpaceBeforeJsxAttribute",n,78,[$,X],4),g("SpaceBeforeSlashInJsxOpeningElement",n,43,[te,X],4),g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[te,X],16),g("NoSpaceBeforeEqualInJsxAttribute",n,62,[ee,X],16),g("NoSpaceAfterEqualInJsxAttribute",62,n,[ee,X],16),g("NoSpaceAfterModuleImport",[139,143],20,[X],16),g("SpaceAfterCertainTypeScriptKeywords",[125,83,133,87,91,92,93,134,116,99,117,139,140,120,122,121,142,146,123,149,153,138,135],n,[X],4),g("SpaceBeforeCertainTypeScriptKeywords",n,[93,116,153],[X],4),g("SpaceAfterModuleName",10,18,[oe],4),g("SpaceBeforeArrow",n,38,[X],4),g("SpaceAfterArrow",38,n,[X],4),g("NoSpaceAfterEllipsis",25,78,[X],16),g("NoSpaceAfterOptionalParameters",57,[21,27],[X,k],16),g("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[X,se],16),g("NoSpaceBeforeOpenAngularBracket",u,29,[X,ue],16),g("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[X,ue],16),g("NoSpaceAfterOpenAngularBracket",29,n,[X,ue],16),g("NoSpaceBeforeCloseAngularBracket",n,31,[X,ue],16),g("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[X,ue,R],16),g("SpaceBeforeAt",[21,78],59,[X],4),g("NoSpaceAfterAt",59,n,[X],16),g("SpaceAfterDecorator",n,[125,78,92,87,83,123,122,120,121,134,146,22,41],[ne],4),g("NoSpaceBeforeNonNullAssertionOperator",n,53,[X,pe],16),g("NoSpaceAfterNewKeywordOnConstructorSignature",102,20,[X,ce],16),g("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[X],4)],a=[g("SpaceAfterConstructor",132,20,[v("insertSpaceAfterConstructor"),X],4),g("NoSpaceAfterConstructor",132,20,[x("insertSpaceAfterConstructor"),X],16),g("SpaceAfterComma",27,n,[v("insertSpaceAfterCommaDelimiter"),X,Y,q,W],4),g("NoSpaceAfterComma",27,n,[x("insertSpaceAfterCommaDelimiter"),X,Y],16),g("SpaceAfterAnonymousFunctionKeyword",[97,41],20,[v("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),L],4),g("NoSpaceAfterAnonymousFunctionKeyword",[97,41],20,[x("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),L],16),g("SpaceAfterKeywordInControl",o,20,[v("insertSpaceAfterKeywordsInControlFlowStatements"),z],4),g("NoSpaceAfterKeywordInControl",o,20,[x("insertSpaceAfterKeywordsInControlFlowStatements"),z],16),g("SpaceAfterOpenParen",20,n,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),X],4),g("SpaceBeforeCloseParen",n,21,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),X],4),g("SpaceBetweenOpenParens",20,20,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),X],4),g("NoSpaceBetweenParens",20,21,[X],16),g("NoSpaceAfterOpenParen",20,n,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),X],16),g("NoSpaceBeforeCloseParen",n,21,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),X],16),g("SpaceAfterOpenBracket",22,n,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),X],4),g("SpaceBeforeCloseBracket",n,23,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),X],4),g("NoSpaceBetweenBrackets",22,23,[X],16),g("NoSpaceAfterOpenBracket",22,n,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),X],16),g("NoSpaceBeforeCloseBracket",n,23,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),X],16),g("SpaceAfterOpenBrace",18,n,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],4),g("SpaceBeforeCloseBrace",n,19,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[X,U],16),g("NoSpaceAfterOpenBrace",18,n,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),X],16),g("NoSpaceBeforeCloseBrace",n,19,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),X],16),g("SpaceBetweenEmptyBraceBrackets",18,19,[v("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[b("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),X],16),g("SpaceAfterTemplateHeadAndMiddle",[15,16],n,[v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],4,1),g("SpaceBeforeTemplateMiddleAndTail",n,[16,17],[v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),X],4),g("NoSpaceAfterTemplateHeadAndMiddle",[15,16],n,[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],16,1),g("NoSpaceBeforeTemplateMiddleAndTail",n,[16,17],[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),X],16),g("SpaceAfterOpenBraceInJsxExpression",18,n,[v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),X,Z],4),g("SpaceBeforeCloseBraceInJsxExpression",n,19,[v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),X,Z],4),g("NoSpaceAfterOpenBraceInJsxExpression",18,n,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),X,Z],16),g("NoSpaceBeforeCloseBraceInJsxExpression",n,19,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),X,Z],16),g("SpaceAfterSemicolonInFor",26,n,[v("insertSpaceAfterSemicolonInForStatements"),X,T],4),g("NoSpaceAfterSemicolonInFor",26,n,[x("insertSpaceAfterSemicolonInForStatements"),X,T],16),g("SpaceBeforeBinaryOperator",n,s,[v("insertSpaceBeforeAndAfterBinaryOperators"),X,E],4),g("SpaceAfterBinaryOperator",s,n,[v("insertSpaceBeforeAndAfterBinaryOperators"),X,E],4),g("NoSpaceBeforeBinaryOperator",n,s,[x("insertSpaceBeforeAndAfterBinaryOperators"),X,E],16),g("NoSpaceAfterBinaryOperator",s,n,[x("insertSpaceBeforeAndAfterBinaryOperators"),X,E],16),g("SpaceBeforeOpenParenInFuncDecl",n,20,[v("insertSpaceBeforeFunctionParenthesis"),X,L],4),g("NoSpaceBeforeOpenParenInFuncDecl",n,20,[x("insertSpaceBeforeFunctionParenthesis"),X,L],16),g("NewLineBeforeOpenBraceInControl",d,18,[v("placeOpenBraceOnNewLineForControlBlocks"),z,I],8,1),g("NewLineBeforeOpenBraceInFunction",l,18,[v("placeOpenBraceOnNewLineForFunctions"),L,I],8,1),g("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,18,[v("placeOpenBraceOnNewLineForFunctions"),j,I],8,1),g("SpaceAfterTypeAssertion",31,n,[v("insertSpaceAfterTypeAssertion"),X,le],4),g("NoSpaceAfterTypeAssertion",31,n,[x("insertSpaceAfterTypeAssertion"),X,le],16),g("SpaceBeforeTypeAnnotation",n,[57,58],[v("insertSpaceBeforeTypeAnnotation"),X,A],4),g("NoSpaceBeforeTypeAnnotation",n,[57,58],[x("insertSpaceBeforeTypeAnnotation"),X,A],16),g("NoOptionalSemicolon",26,a,[h("semicolons",p.SemicolonPreference.Remove),ge],32),g("OptionalSemicolon",n,a,[h("semicolons",p.SemicolonPreference.Insert),me],64)],n=[g("NoSpaceBeforeSemicolon",n,26,[X],16),g("SpaceBeforeOpenBraceInControl",d,18,[D("placeOpenBraceOnNewLineForControlBlocks"),z,ae,P],4,1),g("SpaceBeforeOpenBraceInFunction",l,18,[D("placeOpenBraceOnNewLineForFunctions"),L,M,ae,P],4,1),g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,18,[D("placeOpenBraceOnNewLineForFunctions"),j,ae,P],4,1),g("NoSpaceBeforeComma",n,27,[X],16),g("NoSpaceBeforeOpenBracket",t(129,81),22,[X],16),g("NoSpaceAfterCloseBracket",23,n,[X,re],16),g("SpaceAfterSemicolon",26,n,[X],4),g("SpaceBetweenForAndAwaitKeyword",96,130,[X],4),g("SpaceBetweenStatements",[21,89,90,81],n,[X,Y,C],4),g("SpaceAfterTryCatchFinally",[110,82,95],18,[X],4)];return __spreadArrays(u,a,n)}}(ts=ts||{}),function(b){!function(f){var r;function g(e,t){return b.Debug.assert(e<=156&&t<=156,"Must compute formatting context from tokens"),e*v+t}f.getFormatContext=function(e,t){return{options:e,getRules:function(){void 0===r&&(r=function(e){var c=function(e){for(var t=new Array(v*v),r=new Array(t.length),n=0,i=e;n<i.length;n++)for(var a=i[n],o=a.leftTokenRange.isSpecific&&a.rightTokenRange.isSpecific,s=0,c=a.leftTokenRange.tokens;s<c.length;s++)for(var u=c[s],l=0,_=a.rightTokenRange.tokens;l<_.length;l++){var d=_[l],d=g(u,d),p=t[d];void 0===p&&(p=t[d]=[]),function(e,t,r,n){var i=3&e.action?t?m.StopRulesSpecific:m.StopRulesAny:e.context!==f.anyContext?t?m.ContextRulesSpecific:m.ContextRulesAny:t?m.NoContextRulesSpecific:m.NoContextRulesAny,t=r[n]||0;p.splice(function(e,t){for(var r=0,n=0;n<=t;n+=y)r+=e&h,e>>=y;return r}(t,i),0,e),r[n]=function(e,t){var r=1+(e>>t&h);return b.Debug.assert((r&h)==r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(h<<t)|r<<t}(t,i)}(a.rule,o,r,d)}return t}(e);return function(t){var e=c[g(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(e){for(var r=[],n=0,i=0,a=e;i<a.length;i++){var o=a[i],s=~function(e){var t=0;1&e&&(t|=28);2&e&&(t|=96);28&e&&(t|=28);96&e&&(t|=96);return t}(n);o.action&s&&b.every(o.context,function(e){return e(t)})&&(r.push(o),n|=o.action)}if(r.length)return r}}}(f.getAllRules()));return r}(),host:t}};var m,e,y=5,h=31,v=157;(e=m=m||{})[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=+y]="StopRulesAny",e[e.ContextRulesSpecific=2*y]="ContextRulesSpecific",e[e.ContextRulesAny=3*y]="ContextRulesAny",e[e.NoContextRulesSpecific=4*y]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*y]="NoContextRulesAny"}(b.formatting||(b.formatting={}))}(ts=ts||{}),function(L){var R,e,a,o,s;function i(e,t,r){r=L.findPrecedingToken(e,r);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!function(e,t){switch(e.kind){case 252:case 253:return L.rangeContainsRange(e.members,t);case 256:var r=e.body;return!!r&&257===r.kind&&L.rangeContainsRange(r.statements,t);case 297:case 230:case 257:return L.rangeContainsRange(e.statements,t);case 287:return L.rangeContainsRange(e.block.statements,t)}return!1}(t.parent,t);)t=t.parent;return t}function u(n,i){return function e(t){var r=L.forEachChild(t,function(e){return L.startEndContainsRange(e.getStart(i),e.end,n)&&e});if(r){var r=e(r);if(r)return r}return t}(i)}function n(e,t,r,n){return e?l({pos:L.getLineStartPositionForPosition(e.getStart(t),t),end:e.end},t,r,n):[]}function l(t,r,n,i){var e,a,o,s,c=u(t,r);return R.getFormattingScanner(r.text,r.languageVariant,(a=t,o=r,(s=(e=c).getStart(o))===a.pos&&e.end===a.end?s:!(o=L.findPrecedingToken(a.pos,o))||o.end>=a.pos?e.pos:o.end),t.end,function(e){return _(t,c,R.SmartIndenter.getIndentationForNode(c,t,r,n.options),function(e,t,r){for(var n,i=-1;e;){var a=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&a!==i)break;if(R.SmartIndenter.shouldIndentChildNode(t,e,n,r))return t.indentSize;i=a,e=(n=e).parent}return 0}(c,n.options,r),e,n,i,function(e,t){if(!e.length)return i;var r=e.filter(function(e){return L.rangeOverlapsWithStartEnd(t,e.start,e.start+e.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return i;var n=0;return function(e){for(;;){if(n>=r.length)return!1;var t=r[n];if(e.end<=t.start)return!1;if(L.startEndOverlapsWithStartEnd(e.pos,e.end,t.start,t.start+t.length))return!0;n++}};function i(){return!1}}(r.parseDiagnostics,t),r)})}function _(h,t,e,r,v,n,i,b,x){var D,c,u,S,a,o,T=n.options,l=n.getRules,_=n.host,d=new R.FormattingContext(x,i,T),C=-1,p=[];return v.advance(),v.isOnToken()&&(i=n=x.getLineAndCharacterOfPosition(t.getStart(x)).line,t.decorators&&(i=x.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(t,x)).line),function p(g,e,t,r,n,i){if(!L.rangeOverlapsWithStartEnd(h,g.getStart(x),g.getEnd()))return;var a=N(g,t,n,i);var f=e;L.forEachChild(g,function(e){m(e,-1,g,a,t,r,!1)},function(e){s(e,g,t,a)});for(;v.isOnToken();){var o=v.readTokenInfo(g);if(o.token.end>g.end)break;11!==g.kind?y(o,g,a,g):v.advance()}g.parent||!v.isOnEOF()||(i=v.readEOFTokenRange()).end<=g.end&&D&&w(i,x.getLineAndCharacterOfPosition(i.pos).line,g,D,u,c,e,a);function m(t,e,r,n,i,a,o,s){var c=t.getStart(x),u=x.getLineAndCharacterOfPosition(c).line,l=u;t.decorators&&(l=x.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(t,x)).line);var _=-1;if(o&&L.rangeContainsRange(h,r)&&-1!==(_=E(c,t.end,i,h,e))&&(e=_),!L.rangeOverlapsWithStartEnd(h,t.pos,t.end))return t.end<h.pos&&v.skipToEndOf(t),e;if(0===t.getFullWidth())return e;for(;v.isOnToken();){var d=v.readTokenInfo(g);if(d.token.end>c){d.token.pos>c&&v.skipToStartOf(t);break}y(d,g,n,g)}if(!v.isOnToken())return e;if(L.isToken(t)){var d=v.readTokenInfo(t);if(11!==t.kind)return L.Debug.assert(d.token.end===t.end,"Token end is child end"),y(d,g,n,t),e}var a=161===t.kind?u:a,_=k(t,u,_,g,n,a);return p(t,f,u,l,_.indentation,_.delta),11!==t.kind||(a={pos:t.getStart(),end:t.getEnd()}).pos!==a.end&&(u=r.getChildren(x),l=L.findIndex(u,function(e){return e.pos===t.pos}),(l=u[l-1])&&x.getLineAndCharacterOfPosition(a.end).line!==x.getLineAndCharacterOfPosition(l.end).line&&(l=x.getLineAndCharacterOfPosition(a.pos).line===x.getLineAndCharacterOfPosition(l.end).line,O(a,_.indentation,l,!1,!0))),f=g,s&&199===r.kind&&-1===e&&(e=_.indentation),e}function s(e,t,r,n){L.Debug.assert(L.isNodeArray(e));var i=B(t,e),a=n,o=r;if(0!==i)for(;v.isOnToken();){var s,c,u=v.readTokenInfo(t);if(u.token.end>e.pos)break;u.token.kind===i?(o=x.getLineAndCharacterOfPosition(u.token.pos).line,y(u,t,n,t),s=void 0,s=-1!==C?C:(c=L.getLineStartPositionForPosition(u.token.pos,x),R.SmartIndenter.findFirstNonWhitespaceColumn(c,u.token.pos,x,T)),a=N(t,r,s,T.indentSize)):y(u,t,n,t)}for(var l=-1,_=0;_<e.length;_++){var d=e[_];l=m(d,l,g,a,o,o,!0,0===_)}var p,f=j(i);0!==f&&v.isOnToken()&&(27===(u=v.readTokenInfo(t)).token.kind&&L.isCallLikeExpression(t)&&(p=x.getLineAndCharacterOfPosition(u.token.pos).line,o!==p&&(v.advance(),u=v.isOnToken()?v.readTokenInfo(t):void 0)),u&&u.token.kind===f&&L.rangeContainsRange(t,u.token)&&y(u,t,a,t,!0))}function y(e,t,r,n,i){L.Debug.assert(L.rangeContainsRange(t,e.token));var a=v.lastTrailingTriviaWasNewLine(),o=!1;e.leadingTrivia&&F(e.leadingTrivia,t,f,r);var s,c,u,l=0,_=L.rangeContainsRange(h,e.token),d=x.getLineAndCharacterOfPosition(e.token.pos);_&&(s=b(e.token),c=D,l=P(e.token,d,t,f,r),s||(o=0===l?(c=c&&x.getLineAndCharacterOfPosition(c.end).line,a&&d.line!==c):1===l)),e.trailingTrivia&&F(e.trailingTrivia,t,f,r),o&&(_=_&&!b(e.token)?r.getIndentationForToken(d.line,e.token.kind,n,!!i):-1,i=!0,e.leadingTrivia&&(u=r.getIndentationForComment(e.token.kind,_,n),i=A(e.leadingTrivia,u,i,function(e){return I(e.pos,u,!1),0})),-1!==_&&i&&(I(e.token.pos,_,1===l),S=d.line,C=_)),v.advance(),f=t}}(t,t,n,i,e,r)),v.isOnToken()||(r=v.getCurrentLeadingTrivia())&&(A(r,e,!1,function(e){return P(e,x.getLineAndCharacterOfPosition(e.pos),t,t,void 0)}),!1!==T.trimTrailingWhitespace&&(a=D?D.end:h.pos,o=x.getLineAndCharacterOfPosition(a).line,a=x.getLineAndCharacterOfPosition(h.end).line,f(o,a+1,D))),p;function E(e,t,r,n,i){if(L.rangeOverlapsWithStartEnd(n,e,t)||L.rangeContainsStartEnd(n,e,t)){if(-1!==i)return i}else{t=x.getLineAndCharacterOfPosition(e).line,i=L.getLineStartPositionForPosition(e,x),i=R.SmartIndenter.findFirstNonWhitespaceColumn(i,e,x,T);if(t!==r||e===i){e=R.SmartIndenter.getBaseIndentation(T);return i<e?e:i}}return-1}function k(e,t,r,n,i,a){var o=R.SmartIndenter.shouldIndentChildNode(T,e)?T.indentSize:0;return a===t?{indentation:t===S?C:i.getIndentation(),delta:Math.min(T.indentSize,i.getDelta(e)+o)}:-1===r?20===e.kind&&t===S?{indentation:C,delta:i.getDelta(e)}:R.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(n,e,t,x)||R.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(n,e,t,x)?{indentation:i.getIndentation(),delta:o}:{indentation:i.getIndentation()+i.getDelta(e),delta:o}:{indentation:r,delta:o}}function N(i,a,o,r){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return o+s(r)}return-1!==t?t:o},getIndentationForToken:function(e,t,r,n){return!n&&function(e,t,r){switch(t){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(r.kind){case 275:case 276:case 274:return!1}break;case 22:case 23:if(190!==r.kind)return!1}return a!==e&&!(i.decorators&&t===function(e){if(e.modifiers&&e.modifiers.length)return e.modifiers[0].kind;switch(e.kind){case 252:return 83;case 253:return 117;case 251:return 97;case 255:return 255;case 167:return 134;case 168:return 146;case 165:if(e.asteriskToken)return 41;case 163:case 160:var t=L.getNameOfDeclaration(e);if(t)return t.kind}}(i))}(e,t,r)?o+s(r):o},getIndentation:function(){return o},getDelta:s,recomputeIndentation:function(e,t){R.SmartIndenter.shouldIndentChildNode(T,t,i,x)&&(o+=e?T.indentSize:-T.indentSize,r=R.SmartIndenter.shouldIndentChildNode(T,i)?T.indentSize:0)}};function s(e){return R.SmartIndenter.nodeWillIndentChild(T,i,e,x,!0)?r:0}}function A(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i],s=L.rangeContainsRange(h,o);switch(o.kind){case 3:s&&O(o,t,!r),r=!1;break;case 2:r&&s&&n(o),r=!1;break;case 4:r=!0}}return r}function F(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];L.isComment(o.kind)&&L.rangeContainsRange(h,o)&&P(o,x.getLineAndCharacterOfPosition(o.pos),t,r,n)}}function P(e,t,r,n,i){var a=0;return b(e)||(D?a=w(e,t.line,r,D,u,c,n,i):f(x.getLineAndCharacterOfPosition(h.pos).line,t.line)),D=e,c=r,u=t.line,a}function w(t,r,n,i,a,e,o,s){d.updateContext(i,e,t,n,o);var e=l(d),c=!1!==d.options.trimTrailingWhitespace,u=0;return e?L.forEachRight(e,function(e){switch(u=function(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 16:if(t.end!==n.pos)return y(t.end,n.pos-t.end),a?2:0;break;case 32:y(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&r!==i)return 0;if(1!=i-r)return M(t.end,n.pos-t.end,L.getNewLineOrDefaultFromHost(_,T)),a?0:1;break;case 4:if(1!==e.flags&&r!==i)return 0;if(1!=n.pos-t.end||32!==x.text.charCodeAt(t.end))return M(t.end,n.pos-t.end," "),a?2:0;break;case 64:!function(e,t){t&&p.push(L.createTextChangeFromStartLength(e,0,t))}(t.end,";")}return 0}(e,i,a,t,r)){case 2:n.getStart(x)===t.pos&&s.recomputeIndentation(!1,o);break;case 1:n.getStart(x)===t.pos&&s.recomputeIndentation(!0,o);break;default:L.Debug.assert(0===u)}c=c&&!(16&e.action)&&1!==e.flags}):c=c&&1!==t.kind,r!==a&&c&&f(a,r,i),u}function I(e,t,r){var n,i=J(t,T);r?M(e,0,i):(n=x.getLineAndCharacterOfPosition(e),t===function(e,t){for(var r=0,n=0;n<t;n++)9===x.text.charCodeAt(e+n)?r+=T.tabSize-r%T.tabSize:r++;return r}(r=L.getStartPositionOfLine(n.line,x),n.character)&&(e=r,(t=i)===x.text.substr(e,t.length))||M(r,n.character,i))}function O(e,t,r,n,i){void 0===n&&(n=!0);var a=x.getLineAndCharacterOfPosition(e.pos).line,o=x.getLineAndCharacterOfPosition(e.end).line;if(a!==o){for(var s=[],c=e.pos,u=a;u<o;u++){var l=L.getEndLinePosition(u,x);s.push({pos:c,end:l}),c=L.getStartPositionOfLine(u+1,x)}if(n&&s.push({pos:c,end:e.end}),0!==s.length){var n=L.getStartPositionOfLine(a,x),_=R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(n,s[0].pos,x,T),n=0;r&&(n=1,a++);for(var d=t-_.column,p=n;p<s.length;p++,a++){var f=L.getStartPositionOfLine(a,x),g=0===p?_:R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(s[p].pos,s[p].end,x,T);if(i){if(L.isLineBreak(x.text.charCodeAt(L.getStartPositionOfLine(a,x))))continue;d=t-g.column}var m=g.column+d;0<m?(m=J(m,T),M(f,g.character,m)):y(f,g.character)}}}else r||I(e.pos,t,!1)}function f(e,t,r){for(var n=e;n<t;n++){var i,a=L.getStartPositionOfLine(n,x),o=L.getEndLinePosition(n,x);r&&(L.isComment(r.kind)||L.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o||-1!==(i=function(e,t){var r=t;for(;e<=r&&L.isWhiteSpaceSingleLine(x.text.charCodeAt(r));)r--;return r===t?-1:r+1}(a,o))&&(L.Debug.assert(i===a||!L.isWhiteSpaceSingleLine(x.text.charCodeAt(i-1))),y(i,o+1-i))}}function y(e,t){t&&p.push(L.createTextChangeFromStartLength(e,t,""))}function M(e,t,r){(t||r)&&p.push(L.createTextChangeFromStartLength(e,t,r))}}function B(e,t){switch(e.kind){case 166:case 251:case 208:case 165:case 164:case 209:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 203:case 204:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 173:if(e.typeArguments===t)return 29;break;case 177:return 18}return 0}function j(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function J(e,t){if((!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},o=s=void 0),t.convertTabsToSpaces){var r=void 0,n=Math.floor(e/t.indentSize),i=e%t.indentSize;return void 0===(s=s||[])[n]?(r=L.repeatString(" ",t.indentSize*n),s[n]=r):r=s[n],i?r+L.repeatString(" ",i):r}r=Math.floor(e/t.tabSize),e-=r*t.tabSize,t=void 0;return void 0===(o=o||[])[r]?o[r]=t=L.repeatString("\t",r):t=o[r],e?t+L.repeatString(" ",e):t}(R=L.formatting||(L.formatting={})).createTextRangeWithKind=function(e,t,r){return t={pos:e,end:t,kind:r},L.Debug.isDebugging&&Object.defineProperty(t,"__debugKind",{get:function(){return L.Debug.formatSyntaxKind(r)}}),t},(e={})[e.Unknown=-1]="Unknown",R.formatOnEnter=function(e,t,r){if(0===(e=t.getLineAndCharacterOfPosition(e).line))return[];for(var n=L.getEndLinePosition(e,t);L.isWhiteSpaceSingleLine(t.text.charCodeAt(n));)n--;return L.isLineBreak(t.text.charCodeAt(n))&&n--,l({pos:L.getStartPositionOfLine(e-1,t),end:n+1},t,r,2)},R.formatOnSemicolon=function(e,t,r){return n(c(i(e,26,t)),t,r,3)},R.formatOnOpeningCurly=function(e,t,r){var n=i(e,18,t);return n?(n=c(n.parent),l({pos:L.getLineStartPositionForPosition(n.getStart(t),t),end:e},t,r,4)):[]},R.formatOnClosingCurly=function(e,t,r){return n(c(i(e,19,t)),t,r,5)},R.formatDocument=function(e,t){return l({pos:0,end:e.text.length},e,t,0)},R.formatSelection=function(e,t,r,n){return l({pos:L.getLineStartPositionForPosition(e,r),end:t},r,n,1)},R.formatNodeGivenIndentation=function(t,r,e,n,i,a){var o={pos:0,end:r.text.length};return R.getFormattingScanner(r.text,e,o.pos,o.end,function(e){return _(o,t,n,i,e,a,1,function(e){return!1},r)})},(e={})[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved",R.getRangeOfEnclosingComment=function(t,r,e,n){void 0===n&&(n=L.getTokenAtPosition(t,r));var i=L.findAncestor(n,L.isJSDoc);if(i&&(n=i.parent),!(n.getStart(t)<=r&&r<n.getEnd())){e=(e=null===e?void 0:void 0===e?L.findPrecedingToken(r,t):e)&&L.getTrailingCommentRanges(t.text,e.end),n=L.getLeadingCommentRangesOfNode(n,t),n=L.concatenate(e,n);return n&&L.find(n,function(e){return L.rangeContainsPositionExclusive(e,r)||r===e.end&&(2===e.kind||r===t.getFullWidth())})}},R.getIndentationString=J}(ts=ts||{}),function(y){var u,e,t;function h(e){return e.baseIndentSize||0}function l(e,t,r,n,i,a,o){for(var s,c,u,l,_=e.parent;_;){var d,p=!0;r&&(p=(d=e.getStart(i))<r.pos||d>r.end);var f=function(e,t,r){t=x(t,r),e=t?t.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(e)}(_,e,i),g=f.line===t.line||b(_,e,t.line,i);if(p){var m=D(e,i,o,!g);if(-1!==m)return m+n;if(s=e,c=_,u=t,l=g,d=i,p=o,-1!==(m=!y.isDeclaration(s)&&!y.isStatementButNotDeclaration(s)||297!==c.kind&&l?-1:S(u,d,p)))return m+n}T(o,_,e,i,a)&&!g&&(n+=o.indentSize);g=v(_,e,t.line,i),_=(e=_).parent;t=g?i.getLineAndCharacterOfPosition(e.getStart(i)):f}return n+h(o)}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function v(e,t,r,n){if(!y.isCallExpression(e)||!y.contains(e.arguments,t))return!1;e=e.expression.getEnd();return y.getLineAndCharacterOfPosition(n,e).line===r}function b(e,t,r,n){if(234!==e.kind||e.elseStatement!==t)return!1;e=y.findChildOfKind(e,90,n);return y.Debug.assert(void 0!==e),_(e,n).line===r}function x(e,t){return e.parent&&d(e.getStart(t),e.getEnd(),e.parent,t)}function d(t,r,n,i){switch(n.kind){case 173:return e(n.typeArguments);case 200:return e(n.properties);case 199:return e(n.elements);case 177:return e(n.members);case 251:case 208:case 209:case 165:case 164:case 169:case 166:case 175:case 170:return e(n.typeParameters)||e(n.parameters);case 252:case 221:case 253:case 254:case 330:return e(n.typeParameters);case 204:case 203:return e(n.typeArguments)||e(n.arguments);case 250:return e(n.declarations);case 264:case 268:return e(n.elements);case 196:case 197:return e(n.elements)}function e(e){return e&&y.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,e,i),t,r)?e:void 0}}function p(e,t,r){return e?S(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function D(e,t,r,n){if(e.parent&&250===e.parent.kind)return-1;var i=x(e,t);if(i){e=i.indexOf(e);if(-1!==e){e=f(i,e,t,r);if(-1!==e)return e}return p(i,t,r)+(n?r.indentSize:0)}return-1}function f(e,t,r,n){y.Debug.assert(0<=t&&t<e.length);for(var i=_(e[t],r),a=t-1;0<=a;a--)if(27!==e[a].kind){if(r.getLineAndCharacterOfPosition(e[a].end).line!==i.line)return S(i,r,n);i=_(e[a],r)}return-1}function S(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return m(n,n+e.character,t,r)}function g(e,t,r,n){for(var i=0,a=0,o=e;o<t;o++){var s=r.text.charCodeAt(o);if(!y.isWhiteSpaceSingleLine(s))break;9===s?a+=n.tabSize+a%n.tabSize:a++,i++}return{column:a,character:i}}function m(e,t,r,n){return g(e,t,r,n).column}function a(e,t,r,n,i){var a=r?r.kind:0;switch(t.kind){case 233:case 252:case 221:case 253:case 255:case 254:case 199:case 230:case 257:case 200:case 177:case 190:case 179:case 258:case 285:case 284:case 207:case 201:case 203:case 204:case 232:case 266:case 242:case 217:case 197:case 196:case 275:case 278:case 274:case 283:case 164:case 169:case 170:case 160:case 174:case 175:case 186:case 205:case 213:case 268:case 264:case 270:case 265:case 163:return!0;case 249:case 288:case 216:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&n&&200===a)return o(n,r);if(216!==t.kind)return!0;break;case 235:case 236:case 238:case 239:case 237:case 234:case 251:case 208:case 165:case 166:case 167:case 168:return 230!==a;case 209:return n&&207===a?o(n,r):230!==a;case 267:return 268!==a;case 261:return 262!==a||!!r.namedBindings&&264!==r.namedBindings.kind;case 273:return 276!==a;case 277:return 279!==a;case 183:case 182:if(177===a||179===a)return!1}return i}function T(e,t,r,n,i){return void 0===i&&(i=!1),a(e,t,r,n,!1)&&!(i&&r&&function(e,t){switch(e){case 242:case 246:case 240:case 241:return 230!==t.kind;default:return}}(r.kind,t))}function o(e,t){var r=y.skipTrivia(e.text,t.pos);return e.getLineAndCharacterOfPosition(r).line===e.getLineAndCharacterOfPosition(t.end).line}u=y.formatting||(y.formatting={}),e=u.SmartIndenter||(u.SmartIndenter={}),(t={})[t.Unknown=-1]="Unknown",e.getIndentation=function(e,t,r,n){if(void 0===n&&(n=!1),e>t.text.length)return h(r);if(r.indentStyle===y.IndentStyle.None)return 0;var i,a=y.findPrecedingToken(e,t,void 0,!0);if((i=u.getRangeOfEnclosingComment(t,e,a||null))&&3===i.kind)return function(e,t,r,n){var i=y.getLineAndCharacterOfPosition(e,t).line-1,n=y.getLineAndCharacterOfPosition(e,n.pos).line;if(y.Debug.assert(0<=n),i<=n)return m(y.getStartPositionOfLine(n,e),t,e,r);i=y.getStartPositionOfLine(i,e),t=g(i,t,e,r),r=t.column,t=t.character;return 0!==r&&42===e.text.charCodeAt(i+t)?r-1:r}(t,e,r,i);if(!a)return h(r);if(y.isStringOrRegularExpressionOrTemplateLiteral(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;var o,s=t.getLineAndCharacterOfPosition(e).line;if(r.indentStyle===y.IndentStyle.Block)return function(e,t,r){var n=t;for(;0<n;){var i=e.text.charCodeAt(n);if(!y.isWhiteSpaceLike(i))break;n--}return m(y.getLineStartPositionForPosition(n,e),n,e,r)}(t,e,r);if(27===a.kind&&216!==a.parent.kind){var c=function(e,t,r){e=y.findListItemInfo(e);return e&&0<e.listItemIndex?f(e.list.getChildren(),e.listItemIndex-1,t,r):-1}(a,t,r);if(-1!==c)return c}return(c=(o=e,i=a.parent,c=t,i&&d(o,o,i,c)))&&!y.rangeContainsRange(c,a)?p(c,t,r)+r.indentSize:function(e,t,r,n,i,a){var o,s=r;for(;s;){if(y.positionBelongsToNode(s,t,e)&&T(a,s,o,e,!0)){var c=_(s,e),u=function(e,t,r,n){t=y.findNextToken(e,t,n);if(!t)return 0;{if(18===t.kind)return 1;if(19===t.kind){n=_(t,n).line;return r===n?2:0}}return 0}(r,s,n,e),u=0!==u?i&&2===u?a.indentSize:0:n!==c.line?a.indentSize:0;return l(s,c,void 0,u,e,!0,a)}u=D(s,e,a,!0);if(-1!==u)return u;s=(o=s).parent}return h(a)}(t,e,a,s,n,r)},e.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return l(e,i,t,0,r,!1,n)},e.getBaseIndentation=h,(t={})[t.Unknown=0]="Unknown",t[t.OpenBrace=1]="OpenBrace",t[t.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=v,e.childStartsOnTheSameLineWithElseInIfStatement=b,e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,r,n){if(y.isCallOrNewExpression(e)){if(!e.arguments)return!1;var i=y.find(e.arguments,function(e){return e.pos===t.pos});if(!i)return!1;i=e.arguments.indexOf(i);if(0===i)return!1;i=e.arguments[i-1];if(r===y.getLineAndCharacterOfPosition(n,i.getEnd()).line)return!0}return!1},e.getContainingList=x,e.findFirstNonWhitespaceCharacterAndColumn=g,e.findFirstNonWhitespaceColumn=m,e.nodeWillIndentChild=a,e.shouldIndentChildNode=T}(ts=ts||{}),function(F){!function(e){function a(e){e=e.__pos;return F.Debug.assert("number"==typeof e),e}function s(e,t){F.Debug.assert("number"==typeof t),e.__pos=t}function o(e){e=e.__end;return F.Debug.assert("number"==typeof e),e}function c(e,t){F.Debug.assert("number"==typeof t),e.__end=t}var u,l;function d(e,t){return F.skipTrivia(e,t,!1,!0)}(t=u=e.LeadingTriviaOption||(e.LeadingTriviaOption={}))[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",(t=l=e.TrailingTriviaOption||(e.TrailingTriviaOption={}))[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include";var _,p={leadingTriviaOption:u.Exclude,trailingTriviaOption:l.Exclude};function f(e,t,r,n){return{pos:g(e,t,n),end:m(e,r,n)}}function g(e,t,r){var n=r.leadingTriviaOption;if(n===u.Exclude)return t.getStart(e);if(n===u.StartLine)return F.getLineStartPositionForPosition(t.getStart(e),e);if(n===u.JSDoc){var i=F.getJSDocCommentRanges(t,e.text);if(null!=i&&i.length)return F.getLineStartPositionForPosition(i[0].pos,e)}r=t.getFullStart(),i=t.getStart(e);if(r===i)return i;t=F.getLineStartPositionForPosition(r,e);if(F.getLineStartPositionForPosition(i,e)===t)return n===u.IncludeAll?r:i;r=0<r?1:0,r=F.getStartPositionOfLine(F.getLineOfLocalPosition(e,t)+r,e),r=d(e.text,r);return F.getStartPositionOfLine(F.getLineOfLocalPosition(e,r),e)}function m(e,t,r){t=t.end,r=r.trailingTriviaOption;if(r===l.Exclude)return t;if(r===l.ExcludeWhitespace){var n=F.concatenate(F.getTrailingCommentRanges(e.text,t),F.getLeadingCommentRanges(e.text,t)),n=null===(n=null==n?void 0:n[n.length-1])||void 0===n?void 0:n.end;return n?n:t}n=F.skipTrivia(e.text,t,!0);return n===t||r!==l.Include&&!F.isLineBreak(e.text.charCodeAt(n-1))?t:n}function y(e,t){return t&&e.parent&&(27===t.kind||26===t.kind&&200===e.parent.kind)}(t=_=_||{})[t.Remove=0]="Remove",t[t.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",t[t.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",t[t.Text=3]="Text",e.isThisTypeAnnotatable=function(e){return F.isFunctionExpression(e)||F.isFunctionDeclaration(e)};var h,v,t=(r.fromContext=function(e){return new r(F.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),e.formatContext)},r.with=function(e,t){e=r.fromContext(e);return t(e),e.getChanges()},r.prototype.pushRaw=function(e,t){F.Debug.assertEqual(e.fileName,t.fileName);for(var r=0,n=t.textChanges;r<n.length;r++){var i=n[r];this.changes.push({kind:_.Text,sourceFile:e,text:i.newText,range:F.createTextRangeFromSpan(i.span)})}},r.prototype.deleteRange=function(e,t){this.changes.push({kind:_.Remove,sourceFile:e,range:t})},r.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},r.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:u.IncludeAll}),this.deleteRange(e,f(e,t,t,r))},r.prototype.deleteModifier=function(e,t){this.deleteRange(e,{pos:t.getStart(e),end:F.skipTrivia(e.text,t.end,!0)})},r.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:u.IncludeAll});t=g(e,t,n),n=m(e,r,n);this.deleteRange(e,{pos:t,end:n})},r.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:u.IncludeAll});t=g(e,t,n),n=void 0===r?e.text.length:g(e,r,n);this.deleteRange(e,{pos:t,end:n})},r.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},r.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=p),this.replaceRange(e,f(e,t,t,n),r,n)},r.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=p),this.replaceRange(e,f(e,t,r,i),n,i)},r.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},r.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=p),this.replaceRangeWithNodes(e,f(e,t,t,n),r,n)},r.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,f(e,t,t,p),r)},r.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=p),this.replaceRangeWithNodes(e,f(e,t,r,i),n,i)},r.prototype.nextCommaToken=function(e,t){e=F.findNextToken(t,t.parent,e);return e&&27===e.kind?e:void 0},r.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},r.prototype.insertNodeAt=function(e,t,r,n){void 0===n&&(n={}),this.replaceRange(e,F.createRange(t),r,n)},r.prototype.insertNodesAt=function(e,t,r,n){void 0===n&&(n={}),this.replaceRangeWithNodes(e,F.createRange(t),r,n)},r.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},r.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},r.prototype.insertAtTopOfFile=function(e,t,r){var n=function(e){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];if(!F.isPrologueDirective(i))break;t=i}var a=0,o=e.text;if(t)return a=t.end,f(),a;var s=F.getShebang(o);void 0!==s&&(a=s.length,f());var c,u,s=F.getLeadingCommentRanges(o,a);if(!s)return a;for(var l=0,_=s;l<_.length;l++){var d=_[l];if(3===d.kind){if(F.isPinnedComment(o,d.pos)){c={range:d,pinnedOrTripleSlash:!0};continue}}else if(F.isRecognizedTripleSlashComment(o,d.pos,d.end)){c={range:d,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;var p=e.getLineAndCharacterOfPosition(d.pos).line;if(e.getLineAndCharacterOfPosition(c.range.end).line+2<=p)break}if(e.statements.length){void 0===u&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);p=e.getLineAndCharacterOfPosition(d.end).line;if(u<p+2)break}c={range:d,pinnedOrTripleSlash:!1}}c&&(a=c.range.end,f());return a;function f(){var e;a<o.length&&(e=o.charCodeAt(a),F.isLineBreak(e)&&++a<o.length&&13===e&&10===o.charCodeAt(a)&&a++)}}(e),r={prefix:0===n?void 0:this.newLineCharacter,suffix:(F.isLineBreak(e.text.charCodeAt(n))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};F.isArray(t)?this.insertNodesAt(e,n,t,r):this.insertNodeAt(e,n,t,r)},r.prototype.insertFirstParameter=function(e,t,r){var n=F.firstOrUndefined(t);n?this.insertNodeBefore(e,n,r):this.insertNodeAt(e,t.pos,r)},r.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,g(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},r.prototype.insertModifierBefore=function(e,t,r){r=r.getStart(e);this.insertNodeAt(e,r,F.factory.createToken(t),{suffix:" "})},r.prototype.insertLastModifierBefore=function(e,t,r){var n;r.modifiers?(n=r.modifiers.end,this.insertNodeAt(e,n,F.factory.createToken(t),{prefix:" "})):this.insertModifierBefore(e,t,r)},r.prototype.insertCommentBeforeLine=function(e,t,r,n){var i=F.getStartPositionOfLine(t,e),a=F.getFirstNonSpaceCharacterPosition(e.text,i),t=E(e,a),r=F.getTouchingToken(e,t?a:r),a=e.text.slice(i,a),a=(t?"":this.newLineCharacter)+"//"+n+this.newLineCharacter+a;this.insertText(e,r.getStart(e),a)},r.prototype.insertJsdocCommentBefore=function(e,t,r){var n=t.getStart(e);if(t.jsDoc)for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];this.deleteRange(e,{pos:F.getLineStartPositionForPosition(o.getStart(e),e),end:m(e,o,{})})}t=F.getPrecedingNonSpaceCharacterPosition(e.text,n-1),t=e.text.slice(t,n);this.insertNodeAt(e,n,r,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+t})},r.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:_.Text,sourceFile:e,range:t,text:r})},r.prototype.insertText=function(e,t,r){this.replaceRangeWithText(e,F.createRange(t),r)},r.prototype.tryInsertTypeAnnotation=function(e,t,r){var n,i;if(F.isFunctionLike(t)){if(!(i=F.findChildOfKind(t,21,e))){if(!F.isArrowFunction(t))return!1;i=F.first(t.parameters)}}else i=null!==(n=249===t.kind?t.exclamationToken:t.questionToken)&&void 0!==n?n:t.name;return this.insertNodeAt(e,i.end,r,{prefix:": "}),!0},r.prototype.tryInsertThisTypeAnnotation=function(e,t,r){var n=F.findChildOfKind(t,20,e).getStart(e)+1,t=t.parameters.length?", ":"";this.insertNodeAt(e,n,r,{prefix:"this: ",suffix:t})},r.prototype.insertTypeParameters=function(e,t,r){t=(F.findChildOfKind(t,20,e)||F.first(t.parameters)).getStart(e);this.insertNodesAt(e,t,r,{prefix:"<",suffix:">",joiner:", "})},r.prototype.getOptionsForInsertNodeBefore=function(e,t,r){return F.isStatement(e)||F.isClassElement(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:F.isVariableDeclaration(e)?{suffix:", "}:F.isParameter(e)?F.isParameter(t)?{suffix:", "}:{}:F.isStringLiteral(e)&&F.isImportDeclaration(e.parent)||F.isNamedImports(e)?{suffix:", "}:F.isImportSpecifier(e)?{suffix:","+(r?this.newLineCharacter:" ")}:F.Debug.failBadSyntaxKind(e)},r.prototype.insertNodeAtConstructorStart=function(e,t,r){var n=F.firstOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeBefore(e,n,r):this.replaceConstructorBody(e,t,__spreadArrays([r],t.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(e,t,r){var n=F.lastOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,__spreadArrays(t.body.statements,[r]))},r.prototype.replaceConstructorBody=function(e,t,r){this.replaceNode(e,t.body,F.factory.createBlock(r,!0))},r.prototype.insertNodeAtEndOfScope=function(e,t,r){var n=g(e,t.getLastToken(),{});this.insertNodeAt(e,n,r,{prefix:F.isLineBreak(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},r.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},r.prototype.insertNodeAtStartWorker=function(e,t,r){var n=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,n))},r.prototype.guessIndentationFromExistingMembers=function(e,t){for(var r,n=t,i=0,a=x(t);i<a.length;i++){var o=a[i];if(F.rangeStartPositionsAreOnSameLine(n,o,e))return;var s=o.getStart(e),s=F.formatting.SmartIndenter.findFirstNonWhitespaceColumn(F.getLineStartPositionForPosition(s,e),s,e,this.formatContext.options);if(void 0===r)r=s;else if(s!==r)return;n=o}return r},r.prototype.computeIndentationForNewMember=function(e,t){t=t.getStart(e);return F.formatting.SmartIndenter.findFirstNonWhitespaceColumn(F.getLineStartPositionForPosition(t,e),t,e,this.formatContext.options)+(null!==(e=this.formatContext.options.indentSize)&&void 0!==e?e:4)},r.prototype.getInsertNodeAtStartInsertOptions=function(e,t,r){var n=0===x(t).length,i=F.addToSeen(this.classesWithNodesInsertedAtStart,F.getNodeId(t),{node:t,sourceFile:e}),a=F.isObjectLiteralExpression(t)&&(!F.isJsonSourceFile(e)||!n);return{indentation:r,prefix:(F.isObjectLiteralExpression(t)&&F.isJsonSourceFile(e)&&n&&!i?",":"")+this.newLineCharacter,suffix:a?",":""}},r.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},r.prototype.insertNodesAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,F.first(r));this.insertNodesAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAfterWorker=function(e,t,r){var n;return n=t,r=r,!((F.isPropertySignature(n)||F.isPropertyDeclaration(n))&&F.isClassOrTypeElement(r)&&158===r.name.kind||F.isStatementButNotDeclaration(n)&&F.isStatementButNotDeclaration(r))||59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,F.createRange(t.end),F.factory.createToken(26)),m(e,t,{})},r.prototype.getInsertNodeAfterOptions=function(e,t){var r=this.getInsertNodeAfterOptionsWorker(t);return __assign(__assign({},r),{prefix:t.end===e.end&&F.isStatement(t)?r.prefix?"\n"+r.prefix:"\n":r.prefix})},r.prototype.getInsertNodeAfterOptionsWorker=function(e){switch(e.kind){case 252:case 256:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 249:case 10:case 78:return{prefix:", "};case 288:return{suffix:","+this.newLineCharacter};case 92:return{prefix:" "};case 160:return{};default:return F.Debug.assert(F.isStatement(e)||F.isClassOrTypeElement(e)),{suffix:this.newLineCharacter}}},r.prototype.insertName=function(e,t,r){var n,i;F.Debug.assert(!t.name),209===t.kind?(n=F.findChildOfKind(t,38,e),(i=F.findChildOfKind(t,20,e))?(this.insertNodesAt(e,i.getStart(e),[F.factory.createToken(97),F.factory.createIdentifier(r)],{joiner:" "}),N(this,e,n)):(this.insertText(e,F.first(t.parameters).getStart(e),"function "+r+"("),this.replaceRange(e,n,F.factory.createToken(21))),230!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[F.factory.createToken(18),F.factory.createToken(104)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[F.factory.createToken(26),F.factory.createToken(19)],{joiner:" "}))):(t=F.findChildOfKind(t,208===t.kind?97:83,e).end,this.insertNodeAt(e,t,F.factory.createIdentifier(r),{prefix:" "}))},r.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},r.prototype.insertNodeInListAfter=function(e,t,r,n){if(void 0===n&&(n=F.formatting.SmartIndenter.getContainingList(t,e)),n){var i=F.indexOfNode(n,t);if(!(i<0)){var a=t.getEnd();if(i!==n.length-1){var o=F.getTokenAtPosition(e,t.end);o&&y(t,o)&&(c=F.getLineAndCharacterOfPosition(e,d(e.text,n[i+1].getFullStart())),u=l=void 0,(s=F.getLineAndCharacterOfPosition(e,o.end)).line===c.line?(u=o.end,l=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(c.character-s.character)):u=F.getStartPositionOfLine(c.line,e),s=""+F.tokenToString(o.kind)+e.text.substring(o.end,n[i+1].getStart(e)),this.replaceRange(e,F.createRange(u,n[i+1].getStart(e)),r,{prefix:l,suffix:s}))}else{var s,c=t.getStart(e),o=F.getLineStartPositionForPosition(c,e),u=void 0,l=!1;if(1===n.length?u=27:(u=y(t,s=F.findPrecedingToken(t.pos,e))?s.kind:27,l=F.getLineStartPositionForPosition(n[i-1].getStart(e),e)!==o),function(e,t){for(var r=t;r<e.length;){var n=e.charCodeAt(r);if(!F.isWhiteSpaceSingleLine(n))return 47===n;r++}}(e.text,t.end)&&(l=!0),l){this.replaceRange(e,F.createRange(a),F.factory.createToken(u));for(var c=F.formatting.SmartIndenter.findFirstNonWhitespaceColumn(o,c,e,this.formatContext.options),_=F.skipTrivia(e.text,a,!0,!1);_!==a&&F.isLineBreak(e.text.charCodeAt(_-1));)_--;this.replaceRange(e,F.createRange(_),r,{indentation:c,prefix:this.newLineCharacter})}else this.replaceRange(e,F.createRange(a),r,{prefix:F.tokenToString(u)+" "})}}}else F.Debug.fail("node is not a list element")},r.prototype.parenthesizeExpression=function(e,t){this.replaceRange(e,F.rangeOfNode(t),F.factory.createParenthesizedExpression(t))},r.prototype.finishClassesWithNodesInsertedAtStart=function(){var a=this;this.classesWithNodesInsertedAtStart.forEach(function(e){var t,r,n=e.node,i=e.sourceFile,r=(r=n,t=i,e=F.findChildOfKind(r,18,t),t=F.findChildOfKind(r,19,t),[null==e?void 0:e.end,null==t?void 0:t.end]),e=r[0],t=r[1];void 0!==e&&void 0!==t&&(r=0===x(n).length,n=F.positionsAreOnSameLine(e,t,i),r&&n&&e!==t-1&&a.deleteRange(i,F.createRange(e,t-1)),n&&a.insertText(i,t-1,a.newLineCharacter))})},r.prototype.finishDeleteDeclarations=function(){for(var n=this,i=new F.Set,e=this,t=0,r=this.deletedNodes;t<r.length;t++){var a=r[t];!function(t,r){e.deletedNodes.some(function(e){return e.sourceFile===t&&F.rangeContainsRangeExclusive(e.node,r)})||(F.isArray(r)?e.deleteRange(t,F.rangeOfTypeParameters(r)):v.deleteDeclaration(e,i,t,r))}(a.sourceFile,a.node)}i.forEach(function(e){var t=e.getSourceFile(),r=F.formatting.SmartIndenter.getContainingList(e,t);e!==F.last(r)||-1!==(e=F.findLastIndex(r,function(e){return!i.has(e)},r.length-2))&&n.deleteRange(t,{pos:r[e].end,end:b(t,r[e+1])})})},r.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=h.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,i=i.statements;t.push(h.newFileChanges(a,o,i,this.newLineCharacter,this.formatContext))}return t},r.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},r);function r(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new F.Map,this.deletedNodes=[]}function b(e,t){return F.skipTrivia(e.text,g(e,t,{leadingTriviaOption:u.IncludeAll}),!1,!0)}function x(e){return F.isObjectLiteralExpression(e)?e.properties:e.members}function D(t,e,r,n,i){r=r.map(function(e){return 4===e?"":S(e,t,n).text}).join(n),e=F.createSourceFile("any file name",r,99,!0,e);return T(r,F.formatting.formatDocument(e,i))+n}function S(e,t,r){var n,i,a,n=(n=r,i=0,a=F.createTextWriter(n),{onEmitNode:function(e,t,r){t&&s(t,i),r(e,t),t&&c(t,i)},onBeforeEmitNodeArray:function(e){e&&s(e,i)},onAfterEmitNodeArray:function(e){e&&c(e,i)},onBeforeEmitToken:function(e){e&&s(e,i)},onAfterEmitToken:function(e){e&&c(e,i)},write:function(e){a.write(e),o(e,!1)},writeComment:function(e){a.writeComment(e)},writeKeyword:function(e){a.writeKeyword(e),o(e,!1)},writeOperator:function(e){a.writeOperator(e),o(e,!1)},writePunctuation:function(e){a.writePunctuation(e),o(e,!1)},writeTrailingSemicolon:function(e){a.writeTrailingSemicolon(e),o(e,!1)},writeParameter:function(e){a.writeParameter(e),o(e,!1)},writeProperty:function(e){a.writeProperty(e),o(e,!1)},writeSpace:function(e){a.writeSpace(e),o(e,!1)},writeStringLiteral:function(e){a.writeStringLiteral(e),o(e,!1)},writeSymbol:function(e,t){a.writeSymbol(e,t),o(e,!1)},writeLine:function(e){a.writeLine(e)},increaseIndent:function(){a.increaseIndent()},decreaseIndent:function(){a.decreaseIndent()},getText:function(){return a.getText()},rawWrite:function(e){a.rawWrite(e),o(e,!1)},writeLiteral:function(e){a.writeLiteral(e),o(e,!0)},getTextPos:function(){return a.getTextPos()},getLine:function(){return a.getLine()},getColumn:function(){return a.getColumn()},getIndent:function(){return a.getIndent()},isAtStartOfLine:function(){return a.isAtStartOfLine()},hasTrailingComment:function(){return a.hasTrailingComment()},hasTrailingWhitespace:function(){return a.hasTrailingWhitespace()},clear:function(){a.clear(),i=0}});function o(e,t){if(t||(t=e,F.skipTrivia(t,0)!==t.length)){i=a.getTextPos();for(var r=0;F.isWhiteSpaceLike(e.charCodeAt(e.length-r-1));)r++;i-=r}}r="\n"===r?1:0;return F.createPrinter({newLine:r,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},n).writeNode(4,e,t,n),{text:n.getText(),node:C(e)}}function T(e,t){for(var r=t.length-1;0<=r;r--){var n=t[r],i=n.span,n=n.newText;e=""+e.substring(0,i.start)+n+e.substring(F.textSpanEnd(i))}return e}function C(e){var t=F.visitEachChild(e,C,F.nullTransformationContext,n,C),t=F.nodeIsSynthesized(t)?t:Object.create(t);return F.setTextRangePosEnd(t,a(e),o(e)),t}function n(e,t,r,n,i){i=F.visitNodes(e,t,r,n,i);if(!i)return i;i=i===e?F.factory.createNodeArray(i.slice(0)):i;return F.setTextRangePosEnd(i,a(e),o(e)),i}function E(e,t){return!(F.isInComment(e,t)||F.isInString(e,t)||F.isInTemplateString(e,t)||F.isInJSXText(e,t))}function k(e,t,r){var n;r.parent.name?(n=F.Debug.checkDefined(F.getTokenAtPosition(t,r.pos-1)),e.deleteRange(t,{pos:n.getStart(t),end:r.end})):N(e,t,F.getAncestor(r,261))}function N(e,t,r,n){void 0===n&&(n={leadingTriviaOption:u.IncludeAll});var i=g(t,r,n),n=m(t,r,n);e.deleteRange(t,{pos:i,end:n})}function A(e,t,r,n){var i=F.Debug.checkDefined(F.formatting.SmartIndenter.getContainingList(n,r)),a=F.indexOfNode(i,n);F.Debug.assert(-1!==a),1!==i.length?(F.Debug.assert(!t.has(n),"Deleting a node twice"),t.add(n),e.deleteRange(r,{pos:b(r,n),end:a===i.length-1?m(r,n,{}):b(r,i[a+1])})):N(e,r,n)}e.ChangeTracker=t,e.getNewFileText=function(e,t,r,n){return h.newFileChangesWorker(void 0,t,e,r,n)},(t=h=h||{}).getTextChangesFromChanges=function(e,i,a,o){return F.mapDefined(F.group(e,function(e){return e.sourceFile.path}),function(e){for(var r=e[0].sourceFile,t=F.stableSort(e,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),n=0;n<t.length-1;n++)!function(e){F.Debug.assert(t[e].range.end<=t[e+1].range.pos,"Changes overlap",function(){return JSON.stringify(t[e].range)+" and "+JSON.stringify(t[e+1].range)})}(n);e=F.mapDefined(t,function(e){var t=F.createTextSpanFromRange(e.range),e=function(e,t,r,n,i){if(e.kind===_.Remove)return"";if(e.kind===_.Text)return e.text;function a(e){return function(e,t,r,n,i,a,o){var s=n.indentation,c=n.prefix,u=n.delta,l=S(e,t,i),n=l.node,l=l.text;o&&o(n,l);o=function(e,t){var r=e.options,e=!r.semicolons||r.semicolons===F.SemicolonPreference.Ignore,t=r.semicolons===F.SemicolonPreference.Remove||e&&!F.probablyUsesSemicolons(t);return __assign(__assign({},r),{semicolons:t?F.SemicolonPreference.Remove:F.SemicolonPreference.Ignore})}(a,t),r=void 0!==s?s:F.formatting.SmartIndenter.getIndentation(r,t,o,c===i||F.getLineStartPositionForPosition(r,t)===r);void 0===u&&(u=F.formatting.SmartIndenter.shouldIndentChildNode(o,e)&&o.indentSize||0);e={text:l,getLineAndCharacterOfPosition:function(e){return F.getLineAndCharacterOfPosition(this,e)}},o=F.formatting.formatNodeGivenIndentation(n,e,t.languageVariant,r,u,__assign(__assign({},a),{options:o}));return T(l,o)}(e,t,c,s,r,n,i)}var o=e.options,s=void 0===o?{}:o,c=e.range.pos,e=e.kind===_.ReplaceWithMultipleNodes?e.nodes.map(function(e){return F.removeSuffix(a(e),r)}).join(e.options.joiner||r):a(e.node),e=s.preserveLeadingWhitespace||void 0!==s.indentation||F.getLineStartPositionForPosition(c,t)===c?e:e.replace(/^\s+/,"");return(s.prefix||"")+e+(!s.suffix||F.endsWith(e,s.suffix)?"":s.suffix)}(e,r,i,a,o);if(t.length!==e.length||!F.stringContainsAt(r.text,e,t.start))return F.createTextChange(t,e)});return 0<e.length?{fileName:r.fileName,textChanges:e}:void 0})},t.newFileChanges=function(e,t,r,n,i){return i=D(e,F.getScriptKindFromFileName(t),r,n,i),{fileName:t,textChanges:[F.createTextChange(F.createTextSpan(0,0),i)],isNewFile:!0}},t.newFileChangesWorker=D,t.getNonformattedText=S,e.applyChanges=T,e.isValidLocationToAddComment=E,(v||(v={})).deleteDeclaration=function(e,t,r,n){switch(n.kind){case 160:var i=n.parent;F.isArrowFunction(i)&&1===i.parameters.length&&!F.findChildOfKind(i,20,r)?e.replaceNodeWithText(r,n,"()"):A(e,t,r,n);break;case 261:case 260:N(e,r,n,{leadingTriviaOption:r.imports.length&&n===F.first(r.imports).parent||n===F.find(r.statements,F.isAnyImportSyntax)?u.Exclude:F.hasJSDocNodes(n)?u.JSDoc:u.StartLine});break;case 198:var a=n.parent;197===a.kind&&n!==F.last(a.elements)?N(e,r,n):A(e,t,r,n);break;case 249:!function(e,t,r,n){var i=n.parent;if(287===i.kind)return e.deleteNodeRange(r,F.findChildOfKind(i,20,r),F.findChildOfKind(i,21,r));if(1!==i.declarations.length)return A(e,t,r,n),0;var a=i.parent;switch(a.kind){case 239:case 238:e.replaceNode(r,n,F.factory.createObjectLiteralExpression());break;case 237:N(e,r,i);break;case 232:N(e,r,a,{leadingTriviaOption:F.hasJSDocNodes(a)?u.JSDoc:u.StartLine});break;default:F.Debug.assertNever(a)}}(e,t,r,n);break;case 159:A(e,t,r,n);break;case 265:var o=n.parent;1===o.elements.length?k(e,r,o):A(e,t,r,n);break;case 263:k(e,r,n);break;case 26:N(e,r,n,{trailingTriviaOption:l.Exclude});break;case 97:N(e,r,n,{leadingTriviaOption:u.Exclude});break;case 252:case 251:N(e,r,n,{leadingTriviaOption:F.hasJSDocNodes(n)?u.JSDoc:u.StartLine});break;default:F.isImportClause(n.parent)&&n.parent.name===n?(s=e,c=r,(i=n.parent).namedBindings?(a=i.name.getStart(c),(o=F.getTokenAtPosition(c,i.name.end))&&27===o.kind?(o=F.skipTrivia(c.text,o.end,!1,!0),s.deleteRange(c,{pos:a,end:o})):N(s,c,i.name)):N(s,c,i.parent)):F.isCallExpression(n.parent)&&F.contains(n.parent.arguments,n)?A(e,t,r,n):N(e,r,n)}var s,c},e.deleteNode=N}(F.textChanges||(F.textChanges={}))}(ts=ts||{}),function(c){var e,s,u;function o(e){return c.isArray(e)?c.formatStringFromArgs(c.getLocaleSpecificMessage(e[0]),e.slice(1)):c.getLocaleSpecificMessage(e)}function l(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function t(e,t){return{changes:e,commands:t}}function a(e,t,r){for(var n=0,i=_(e);n<i.length;n++){var a=i[n];c.contains(t,a.code)&&r(a)}}function _(e){var t=e.program,r=e.sourceFile,e=e.cancellationToken;return __spreadArrays(t.getSemanticDiagnostics(r,e),t.getSyntacticDiagnostics(r,e),c.computeSuggestionDiagnostics(r,t,e))}e=c.codefix||(c.codefix={}),s=c.createMultiMap(),u=new c.Map,e.createCodeFixActionWithoutFixAll=function(e,t,r){return l(e,o(r),t,void 0,void 0)},e.createCodeFixAction=function(e,t,r,n,i,a){return l(e,o(r),t,n,o(i),a)},e.registerCodeFix=function(e){for(var t=0,r=e.errorCodes;t<r.length;t++){var n=r[t];s.add(String(n),e)}if(e.fixIds)for(var i=0,a=e.fixIds;i<a.length;i++){var o=a[i];c.Debug.assert(!u.has(o)),u.set(o,e)}},e.getSupportedErrorCodes=function(){return c.arrayFrom(s.keys())},e.getFixes=function(t){var r=_(t),e=s.get(String(t.errorCode));return c.flatMap(e,function(e){return c.map(e.getCodeActions(t),function(e,t){for(var r=e.errorCodes,n=0,i=0,a=t;i<a.length;i++){var o=a[i];if(c.contains(r,o.code)&&n++,1<n)break}var s=n<2;return function(e){var t=e.fixId,r=e.fixAllDescription,e=__rest(e,["fixId","fixAllDescription"]);return s?e:__assign(__assign({},e),{fixId:t,fixAllDescription:r})}}(e,r))})},e.getAllFixes=function(e){return u.get(c.cast(e.fixId,c.isString)).getAllCodeActions(e)},e.createCombinedCodeActions=t,e.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},e.codeFixAll=function(e,r,n){var i=[];return t(c.textChanges.ChangeTracker.with(e,function(t){return a(e,r,function(e){return n(t,e,i)})}),0===i.length?void 0:i)},e.eachDiagnostic=a}(ts=ts||{}),function(e){var t,n;t=e.refactor||(e.refactor={}),n=new e.Map,t.registerRefactor=function(e,t){n.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(n.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,r){return(t=n.get(t))&&t.getEditsForAction(e,r)}}(ts=ts||{}),function(i){var r,n,t;function a(e,t,r){var n=i.getTokenAtPosition(t,r),r=i.Debug.checkDefined(i.findAncestor(n,function(e){return i.isAsExpression(e)||i.isTypeAssertionExpression(e)}),"Expected to find an assertion expression"),n=i.isAsExpression(r)?i.factory.createAsExpression(r.expression,i.factory.createKeywordTypeNode(152)):i.factory.createTypeAssertion(i.factory.createKeywordTypeNode(152),r.expression);e.replaceNode(t,r.expression,n)}r=i.codefix||(i.codefix={}),n="addConvertToUnknownForNonOverlappingTypes",t=[i.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,i.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,n,i.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return a(e,t.file,t.start)})}})}(ts=ts||{}),function(n){var t;(t=n.codefix||(n.codefix={})).registerCodeFix({errorCodes:[n.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){var r=e.sourceFile,e=n.textChanges.ChangeTracker.with(e,function(e){var t=n.factory.createExportDeclaration(void 0,void 0,!1,n.factory.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(r,r,t)});return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",e,n.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(ts=ts||{}),function(c){var a,i,e;function u(t,r,e,n){e=e(function(e){return function(e,t,r,n){if(n&&n.has(c.getNodeId(r)))return;null!=n&&n.add(c.getNodeId(r));n=c.factory.updateModifiers(c.getSynthesizedDeepClone(r,!0),c.factory.createNodeArray(c.factory.createModifiersFromModifierFlags(256|c.getSyntacticModifierFlags(r))));e.replaceNode(t,r,n)}(e,t.sourceFile,r,n)});return a.createCodeFixAction(i,e,c.Diagnostics.Add_async_modifier_to_containing_function,i,c.Diagnostics.Add_all_missing_async_modifiers)}function l(t,r){if(r){var e=c.getTokenAtPosition(t,r.start);return c.findAncestor(e,function(e){return e.getStart(t)<r.start||e.getEnd()>c.textSpanEnd(r)?"quit":(c.isArrowFunction(e)||c.isMethodDeclaration(e)||c.isFunctionExpression(e)||c.isFunctionDeclaration(e))&&c.textSpansEqual(r,c.createTextSpanFromNode(e,t))})}}a=c.codefix||(c.codefix={}),i="addMissingAsync",e=[c.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,c.Diagnostics.Type_0_is_not_assignable_to_type_1.code,c.Diagnostics.Type_0_is_not_comparable_to_type_1.code],a.registerCodeFix({fixIds:[i],errorCodes:e,getCodeActions:function(t){var i,a,e=t.sourceFile,r=t.errorCode,n=t.cancellationToken,o=t.program,s=t.span,r=c.find(o.getDiagnosticsProducingTypeChecker().getDiagnostics(e,n),(i=s,a=r,function(e){var t=e.start,r=e.length,n=e.relatedInformation,e=e.code;return c.isNumber(t)&&c.isNumber(r)&&c.textSpansEqual({start:t,length:r},i)&&e===a&&!!n&&c.some(n,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})})),r=l(e,r&&r.relatedInformation&&c.find(r.relatedInformation,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}));if(r)return[u(t,r,function(e){return c.textChanges.ChangeTracker.with(t,e)})]},getAllCodeActions:function(r){var n=r.sourceFile,i=new c.Set;return a.codeFixAll(r,e,function(t,e){e=e.relatedInformation&&c.find(e.relatedInformation,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),e=l(n,e);if(e)return u(r,e,function(e){return e(t),[]},i)})}})}(ts=ts||{}),function(d){var l,o,_,p,f;function g(e,r,n,i,t,a){var o=e.sourceFile,s=e.program,e=e.cancellationToken,c=function(e,s,i,c,u){e=function(e,t){if(d.isPropertyAccessExpression(e.parent)&&d.isIdentifier(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(d.isIdentifier(e))return{identifiers:[e],isCompleteFix:!0};if(d.isBinaryExpression(e)){for(var r=void 0,n=!0,i=0,a=[e.left,e.right];i<a.length;i++){var o=a[i],s=t.getTypeAtLocation(o);t.getPromisedTypeOfPromise(s)&&(d.isIdentifier(o)?(r=r||[]).push(o):n=!1)}return r&&{identifiers:r,isCompleteFix:n}}}(e,u);if(!e)return;for(var l,_=e.isCompleteFix,t=function(a){var e=u.getSymbolAtLocation(a);if(!e)return"continue";var t=d.tryCast(e.valueDeclaration,d.isVariableDeclaration),r=t&&d.tryCast(t.name,d.isIdentifier),n=d.getAncestor(t,232);if(!t||!n||t.type||!t.initializer||n.getSourceFile()!==s||d.hasSyntacticModifier(n,1)||!r||!h(t.initializer))return _=!1,"continue";var o=c.getSemanticDiagnostics(s,i);if(d.FindAllReferences.Core.eachSymbolReferenceInFile(r,u,s,function(e){return a!==e&&(t=e,r=o,n=s,e=u,i=d.isPropertyAccessExpression(t.parent)?t.parent.name:d.isBinaryExpression(t.parent)?t.parent:t,!((r=d.find(r,function(e){return e.start===i.getStart(n)&&e.start+e.length===i.getEnd()}))&&d.contains(f,r.code)||1&e.getTypeAtLocation(i).flags));var t,r,n,i}))return _=!1,"continue";(l=l||[]).push({expression:t.initializer,declarationSymbol:e})},r=0,n=e.identifiers;r<n.length;r++){var a=n[r];t(a)}return l&&{initializers:l,needsSecondPassForFixAll:!_}}(r,o,e,s,i);if(c){t=t(function(t){d.forEach(c.initializers,function(e){e=e.expression;return u(t,n,o,i,e,a)}),a&&c.needsSecondPassForFixAll&&u(t,n,o,i,r,a)});return l.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",t,1===c.initializers.length?[d.Diagnostics.Add_await_to_initializer_for_0,c.initializers[0].declarationSymbol.name]:d.Diagnostics.Add_await_to_initializers)}}function m(t,r,n,i,e,a){e=e(function(e){return u(e,n,t.sourceFile,i,r,a)});return l.createCodeFixAction(o,e,d.Diagnostics.Add_await,o,d.Diagnostics.Fix_all_expressions_possibly_missing_await)}function y(t,e,r,n,i){var a,o,s=d.getTokenAtPosition(t,r.start),c=d.findAncestor(s,function(e){return e.getStart(t)<r.start||e.getEnd()>d.textSpanEnd(r)?"quit":d.isExpression(e)&&d.textSpansEqual(r,d.createTextSpanFromNode(e,t))});return c&&(s=t,a=e,o=r,n=n,n=i.getDiagnosticsProducingTypeChecker().getDiagnostics(s,n),d.some(n,function(e){var t=e.start,r=e.length,n=e.relatedInformation,e=e.code;return d.isNumber(t)&&d.isNumber(r)&&d.textSpansEqual({start:t,length:r},o)&&e===a&&!!n&&d.some(n,function(e){return e.code===d.Diagnostics.Did_you_forget_to_use_await.code})}))&&h(c)?c:void 0}function h(e){return 32768&e.kind||d.findAncestor(e,function(e){return e.parent&&d.isArrowFunction(e.parent)&&e.parent.body===e||d.isBlock(e)&&(251===e.parent.kind||208===e.parent.kind||209===e.parent.kind||165===e.parent.kind)})}function u(e,t,r,n,i,a){if(d.isBinaryExpression(i))for(var o=0,s=[i.left,i.right];o<s.length;o++){var c=s[o];if(a&&d.isIdentifier(c))if((l=n.getSymbolAtLocation(c))&&a.has(d.getSymbolId(l)))continue;var u=n.getTypeAtLocation(c),u=n.getPromisedTypeOfPromise(u)?d.factory.createAwaitExpression(c):c;e.replaceNode(r,c,u)}else if(t===_&&d.isPropertyAccessExpression(i.parent)){if(a&&d.isIdentifier(i.parent.expression))if((l=n.getSymbolAtLocation(i.parent.expression))&&a.has(d.getSymbolId(l)))return;e.replaceNode(r,i.parent.expression,d.factory.createParenthesizedExpression(d.factory.createAwaitExpression(i.parent.expression))),v(e,i.parent.expression,r)}else if(d.contains(p,t)&&d.isCallOrNewExpression(i.parent)){if(a&&d.isIdentifier(i))if((l=n.getSymbolAtLocation(i))&&a.has(d.getSymbolId(l)))return;e.replaceNode(r,i,d.factory.createParenthesizedExpression(d.factory.createAwaitExpression(i))),v(e,i,r)}else{var l;if(a&&d.isVariableDeclaration(i.parent)&&d.isIdentifier(i.parent.name))if((l=n.getSymbolAtLocation(i.parent.name))&&!d.tryAddToSet(a,d.getSymbolId(l)))return;e.replaceNode(r,i,d.factory.createAwaitExpression(i))}}function v(e,t,r){var n=d.findPrecedingToken(t.pos,r);n&&d.positionIsASICandidate(n.end,n.parent,r)&&e.insertText(r,t.getStart(r),";")}l=d.codefix||(d.codefix={}),o="addMissingAwait",_=d.Diagnostics.Property_0_does_not_exist_on_type_1.code,p=[d.Diagnostics.This_expression_is_not_callable.code,d.Diagnostics.This_expression_is_not_constructable.code],f=__spreadArrays([d.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,d.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,d.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,d.Diagnostics.Type_0_is_not_an_array_type.code,d.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,d.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,d.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_],p),l.registerCodeFix({fixIds:[o],errorCodes:f,getCodeActions:function(t){var e=t.sourceFile,r=t.errorCode,n=y(e,r,t.span,t.cancellationToken,t.program);if(n){var i=t.program.getTypeChecker(),e=function(e){return d.textChanges.ChangeTracker.with(t,e)};return d.compact([g(t,n,r,i,e),m(t,n,r,i,e)])}},getAllCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.cancellationToken,c=i.program.getTypeChecker(),u=new d.Set;return l.codeFixAll(i,f,function(t,e){var r=y(a,e.code,e,s,o);if(r){var n=function(e){return e(t),[]};return g(i,r,e.code,c,n,u)||m(i,r,e.code,c,n,u)}})}})}(ts=ts||{}),function(s){var i,r,e;function a(e,t,r,n,i){var a=s.getTokenAtPosition(t,r),r=s.findAncestor(a,function(e){return s.isForInOrOfStatement(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 78:case 199:case 200:case 288:case 289:return!0;default:return!1}}(e)&&"quit"});if(r)return c(e,r,t,i);r=a.parent;if(s.isBinaryExpression(r)&&62===r.operatorToken.kind&&s.isExpressionStatement(r.parent))return c(e,a,t,i);if(s.isArrayLiteralExpression(r)){var o=n.getTypeChecker();return s.every(r.elements,function(e){return function(e,t){e=s.isIdentifier(e)?e:s.isAssignmentExpression(e,!0)&&s.isIdentifier(e.left)?e.left:void 0;return!!e&&!t.getSymbolAtLocation(e)}(e,o)})?c(e,r,t,i):void 0}a=s.findAncestor(a,function(e){return!!s.isExpressionStatement(e.parent)||!function(e){switch(e.kind){case 78:case 216:case 27:return!0;default:return!1}}(e)&&"quit"});if(a&&function t(e,r){if(!s.isBinaryExpression(e))return!1;if(27===e.operatorToken.kind)return s.every([e.left,e.right],function(e){return t(e,r)});return 62===e.operatorToken.kind&&s.isIdentifier(e.left)&&!r.getSymbolAtLocation(e.left)}(a,n.getTypeChecker()))return c(e,a,t,i)}function c(e,t,r,n){n&&!s.tryAddToSet(n,t)||e.insertModifierBefore(r,84,t)}i=s.codefix||(s.codefix={}),r="addMissingConst",e=[s.Diagnostics.Cannot_find_name_0.code,s.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],i.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=s.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start,t.program)});if(0<e.length)return[i.createCodeFixAction(r,e,s.Diagnostics.Add_const_to_unresolved_variable,r,s.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var n=new s.Set;return i.codeFixAll(r,e,function(e,t){return a(e,t.file,t.start,r.program,n)})}})}(ts=ts||{}),function(i){var n,r,t;function a(e,t,r,n){r=i.getTokenAtPosition(t,r);i.isIdentifier(r)&&(163!==(r=r.parent).kind||n&&!i.tryAddToSet(n,r)||e.insertModifierBefore(t,133,r))}n=i.codefix||(i.codefix={}),r="addMissingDeclareProperty",t=[i.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start)});if(0<e.length)return[n.createCodeFixAction(r,e,i.Diagnostics.Prefix_with_declare,r,i.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(e){var r=new i.Set;return n.codeFixAll(e,t,function(e,t){return a(e,t.file,t.start,r)})}})}(ts=ts||{}),function(i){var r,n,t;function a(e,t,r){var n=i.getTokenAtPosition(t,r),r=i.findAncestor(n,i.isDecorator);i.Debug.assert(!!r,"Expected position to be owned by a decorator.");n=i.factory.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,n)}r=i.codefix||(i.codefix={}),n="addMissingInvocationForDecorator",t=[i.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,i.Diagnostics.Call_decorator_expression,n,i.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return a(e,t.file,t.start)})}})}(ts=ts||{}),function(a){var r,n,t;function i(e,t,r){var n=a.getTokenAtPosition(t,r);if(!a.isIdentifier(n))return a.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+a.Debug.formatSyntaxKind(n.kind));var i=n.parent;if(!a.isParameter(i))return a.Debug.fail("Tried to add a parameter name to a non-parameter: "+a.Debug.formatSyntaxKind(n.kind));r=i.parent.parameters.indexOf(i);a.Debug.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),a.Debug.assert(-1<r,"Parameter not found in parent parameter list.");i=a.factory.createParameterDeclaration(void 0,i.modifiers,i.dotDotDotToken,"arg"+r,i.questionToken,a.factory.createTypeReferenceNode(n,void 0),i.initializer);e.replaceNode(t,n,i)}r=a.codefix||(a.codefix={}),n="addNameToNamelessParameter",t=[a.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=a.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,a.Diagnostics.Add_parameter_name,n,a.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t.start)})}})}(ts=ts||{}),function(u){var n,i,t;function a(e,t){t=u.getTokenAtPosition(e,t);return u.tryCast((u.isParameter(t.parent)?t.parent:t).parent,r)}function r(e){return t=e,(u.isFunctionLikeDeclaration(t)||249===t.kind||162===t.kind||163===t.kind)&&o(e);var t}function o(e){return u.isFunctionLikeDeclaration(e)?e.parameters.some(o)||!e.type&&!!u.getJSDocReturnType(e):!e.type&&!!u.getJSDocType(e)}function s(e,t,r){if(u.isFunctionLikeDeclaration(r)&&(u.getJSDocReturnType(r)||r.parameters.some(function(e){return!!u.getJSDocType(e)}))){r.typeParameters||(n=u.getJSDocTypeParameterDeclarations(r)).length&&e.insertTypeParameters(t,r,n);var n=u.isArrowFunction(r)&&!u.findChildOfKind(r,20,t);n&&e.insertNodeBefore(t,u.first(r.parameters),u.factory.createToken(20));for(var i=0,a=r.parameters;i<a.length;i++){var o,s=a[i];s.type||(o=u.getJSDocType(s))&&e.tryInsertTypeAnnotation(t,s,l(o))}n&&e.insertNodeAfter(t,u.last(r.parameters),u.factory.createToken(21)),r.type||(c=u.getJSDocReturnType(r))&&e.tryInsertTypeAnnotation(t,r,l(c))}else{var c=u.Debug.checkDefined(u.getJSDocType(r),"A JSDocType for this declaration should exist");u.Debug.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,l(c))}}function l(e){switch(e.kind){case 303:case 304:return u.factory.createTypeReferenceNode("any",u.emptyArray);case 307:return n=e,u.factory.createUnionTypeNode([u.visitNode(n.type,l),u.factory.createTypeReferenceNode("undefined",u.emptyArray)]);case 306:return l(e.type);case 305:return r=e,u.factory.createUnionTypeNode([u.visitNode(r.type,l),u.factory.createTypeReferenceNode("null",u.emptyArray)]);case 309:return r=e,u.factory.createArrayTypeNode(u.visitNode(r.type,l));case 308:return t=e,u.factory.createFunctionTypeNode(u.emptyArray,t.parameters.map(c),null!==(t=t.type)&&void 0!==t?t:u.factory.createKeywordTypeNode(128));case 173:return function(e){var t=e.typeName,r=e.typeArguments;if(u.isIdentifier(e.typeName)){if(u.isJSDocIndexSignature(e))return function(e){var t=u.factory.createParameterDeclaration(void 0,void 0,void 0,144===e.typeArguments[0].kind?"n":"s",void 0,u.factory.createTypeReferenceNode(144===e.typeArguments[0].kind?"number":"string",[]),void 0),e=u.factory.createTypeLiteralNode([u.factory.createIndexSignature(void 0,void 0,[t],e.typeArguments[1])]);return u.setEmitFlags(e,1),e}(e);var n=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":n=n.toLowerCase();break;case"array":case"date":case"promise":n=n[0].toUpperCase()+n.slice(1)}t=u.factory.createIdentifier(n),r="Array"!==n&&"Promise"!==n||e.typeArguments?u.visitNodes(e.typeArguments,l):u.factory.createNodeArray([u.factory.createTypeReferenceNode("any",u.emptyArray)])}return u.factory.createTypeReferenceNode(t,r)}(e);default:t=u.visitEachChild(e,l,u.nullTransformationContext);return u.setEmitFlags(t,1),t}var t,r,n}function c(e){var t=e.parent.parameters.indexOf(e),r=309===e.type.kind&&t===e.parent.parameters.length-1,t=e.name||(r?"rest":"arg"+t),r=r?u.factory.createToken(25):e.dotDotDotToken;return u.factory.createParameterDeclaration(e.decorators,e.modifiers,r,t,e.questionToken,u.visitNode(e.type,l),e.initializer)}n=u.codefix||(u.codefix={}),i="annotateWithTypeFromJSDoc",t=[u.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code],n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var r=a(t.sourceFile,t.span.start);if(r){var e=u.textChanges.ChangeTracker.with(t,function(e){return s(e,t.sourceFile,r)});return[n.createCodeFixAction(i,e,u.Diagnostics.Annotate_with_type_from_JSDoc,i,u.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[i],getAllCodeActions:function(e){return n.codeFixAll(e,t,function(e,t){var r=a(t.file,t.start);r&&s(e,t.file,r)})}}),n.parameterShouldGetTypeFromJSDoc=r}(ts=ts||{}),function(_){var n,r,e;function i(u,l,e,t){var r,n=t.getSymbolAtLocation(_.getTokenAtPosition(l,e));function i(e){var n=[];return e.members&&e.members.forEach(function(e,t){"constructor"!==t?(t=i(e,void 0))&&n.push.apply(n,t):u.delete(l,e.valueDeclaration.parent)}),e.exports&&e.exports.forEach(function(e){var t,r;"prototype"===e.name?(t=e.declarations[0],1===e.declarations.length&&_.isPropertyAccessExpression(t)&&_.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&_.isObjectLiteralExpression(t.parent.right)&&(r=i(t.parent.right.symbol,void 0))&&n.push.apply(n,r)):(r=i(e,[_.factory.createToken(123)]))&&n.push.apply(n,r)}),n;function i(e,s){var t=[];if(!(8192&e.flags||4096&e.flags))return t;var r,n=e.valueDeclaration,c=n.parent,i=c.right;if(a=n,r=i,!(_.isPropertyAccessExpression(a)?p(a)||_.isFunctionLike(r):_.every(a.properties,function(e){return!(!_.isMethodDeclaration(e)&&!_.isGetOrSetAccessorDeclaration(e))||(!!(_.isPropertyAssignment(e)&&_.isFunctionExpression(e.initializer)&&e.name)||!!p(e))})))return t;var a=c.parent&&233===c.parent.kind?c.parent:c;if(u.delete(l,a),!i)return t.push(_.factory.createPropertyDeclaration([],s,e.name,void 0,void 0,void 0)),t;if(_.isPropertyAccessExpression(n)&&(_.isFunctionExpression(i)||_.isArrowFunction(i)))return o(t,i,n.name);if(_.isObjectLiteralExpression(i))return _.flatMap(i.properties,function(e){return _.isMethodDeclaration(e)||_.isGetOrSetAccessorDeclaration(e)?t.concat(e):_.isPropertyAssignment(e)&&_.isFunctionExpression(e.initializer)?o(t,e.initializer,e.name):p(e)?t:[]});if(_.isSourceFileJS(l))return t;if(!_.isPropertyAccessExpression(n))return t;i=_.factory.createPropertyDeclaration(void 0,s,n.name,void 0,void 0,i);return _.copyLeadingComments(c.parent,i,l),t.push(i),t;function o(e,t,r){return _.isFunctionExpression(t)?(n=e,i=t,a=r,o=_.concatenate(s,d(i,129)),i=_.factory.createMethodDeclaration(void 0,o,void 0,a,void 0,void 0,i.parameters,void 0,i.body),_.copyLeadingComments(c,i,l),n.concat(i)):function(e,t,r){var n=t.body;i=230===n.kind?n:_.factory.createBlock([_.factory.createReturnStatement(n)]);var n=_.concatenate(s,d(t,129)),i=_.factory.createMethodDeclaration(void 0,n,void 0,r,void 0,void 0,t.parameters,void 0,i);return _.copyLeadingComments(c,i,l),e.concat(i)}(e,t,r);var n,i,a,o}}}n&&19&n.flags&&(r=n.valueDeclaration,_.isFunctionDeclaration(r)?u.replaceNode(l,r,function(e){var t=i(n);e.body&&t.unshift(_.factory.createConstructorDeclaration(void 0,void 0,e.parameters,e.body));var r=d(e,92);return _.factory.createClassDeclaration(void 0,r,e.name,void 0,void 0,t)}(r)):!_.isVariableDeclaration(r)||(t=function(e){var t=e.initializer;if(!t||!_.isFunctionExpression(t)||!_.isIdentifier(e.name))return;var r=i(e.symbol);t.body&&r.unshift(_.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));t=d(e.parent.parent,92);return _.factory.createClassDeclaration(void 0,t,e.name,void 0,void 0,r)}(r))&&(e=r.parent.parent,_.isVariableDeclarationList(r.parent)&&1<r.parent.declarations.length?(u.delete(l,r),u.insertNodeAfter(l,e,t)):u.replaceNode(l,e,t)))}function d(e,t){return _.filter(e.modifiers,function(e){return e.kind===t})}function p(e){return e.name&&!(!_.isIdentifier(e.name)||"constructor"!==e.name.text)}n=_.codefix||(_.codefix={}),r="convertFunctionToEs6Class",e=[_.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=_.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.program.getTypeChecker())});return[n.createCodeFixAction(r,e,_.Diagnostics.Convert_function_to_an_ES2015_class,r,_.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){return i(e,t.file,t.start,r.program.getTypeChecker())})}})}(ts=ts||{}),function(v){var n,e,r,t,i;function a(i,a,e,t,r){var n=v.getTokenAtPosition(a,e),o=v.isIdentifier(n)&&v.isVariableDeclaration(n.parent)&&n.parent.initializer&&v.isFunctionLikeDeclaration(n.parent.initializer)?n.parent.initializer:v.tryCast(v.getContainingFunction(v.getTokenAtPosition(a,e)),v.isFunctionLikeDeclaration);if(o){var c,u,l,_,d,s,p,f=new v.Map,g=v.isInJSFile(o),n=function(e,r){if(!e.body)return new v.Set;var n=new v.Set;return v.forEachChild(e.body,function e(t){b(t,r,"then")?(n.add(v.getNodeId(t)),v.forEach(t.arguments,e)):b(t,r,"catch")?(n.add(v.getNodeId(t)),v.forEachChild(t,e)):x(t,r)?n.add(v.getNodeId(t)):v.forEachChild(t,e)}),n}(o,t),e=(e=o,c=t,u=f,l=r.sourceFile,_=new v.Map,d=v.createMultiMap(),v.forEachChild(e,function e(t){var r,n,i,a,o,s;v.isIdentifier(t)?(i=(r=c.getSymbolAtLocation(t))&&(n=l,(o=r).valueDeclaration&&o.valueDeclaration.getSourceFile()===n),r&&i&&(o=C(c.getTypeAtLocation(t),c),n=v.getSymbolId(r).toString(),!o||v.isParameter(t.parent)||v.isFunctionLikeDeclaration(t.parent)||u.has(n)?t.parent&&(v.isParameter(t.parent)||v.isVariableDeclaration(t.parent)||v.isBindingElement(t.parent))&&(s=t.text,(i=d.get(s))&&i.some(function(e){return e!==r})?(a=D(t,d),_.set(n,a.identifier),u.set(n,a)):(a=v.getSynthesizedDeepClone(t),u.set(n,N(a))),d.add(s,r)):(s=D(o=(s=v.firstOrUndefined(o.parameters))&&v.isParameter(s.valueDeclaration)&&v.tryCast(s.valueDeclaration.name,v.isIdentifier)||v.factory.createUniqueName("result",16),d),u.set(n,s),d.add(o.text,r)))):v.forEachChild(t,e)}),v.getSynthesizedDeepCloneWithReplacements(e,!0,function(e){var t,r;if(v.isBindingElement(e)&&v.isIdentifier(e.name)&&v.isObjectBindingPattern(e.parent)){if((r=(t=c.getSymbolAtLocation(e.name))&&_.get(String(v.getSymbolId(t))))&&r.text!==(e.name||e.propertyName).getText())return v.factory.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,r,e.initializer)}else if(v.isIdentifier(e))if(r=(t=c.getSymbolAtLocation(e))&&_.get(String(v.getSymbolId(t))))return v.factory.createIdentifier(r.text)})),s=e.body&&v.isBlock(e.body)?(s=e.body,p=[],v.forEachReturnStatement(s,function(e){v.isReturnStatementWithFixablePromiseHandler(e)&&p.push(e)}),p):v.emptyArray,m={checker:t,synthNamesMap:f,setOfExpressionsToReturn:n,isInJSFile:g};if(s.length){i.insertLastModifierBefore(a,129,o);for(var y=0,h=s;y<h.length;y++)!function(n){v.forEachChild(n,function e(t){var r;v.isCallExpression(t)?(r=S(t,m),i.replaceNodeWithNodes(a,n,r)):v.isFunctionLike(t)||v.forEachChild(t,e)})}(h[y])}}}function b(e,t,r){if(v.isCallExpression(e)){e=v.hasPropertyAccessExpressionWithName(e,r)&&t.getTypeAtLocation(e);return e&&t.getPromisedTypeOfPromise(e)}}function x(e,t){return v.isExpression(e)&&t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function D(e,t){t=(t.get(e.text)||v.emptyArray).length;return N(0===t?e:v.factory.createIdentifier(e.text+"_"+t))}function m(){return i=!1,v.emptyArray}function S(e,t,r){if(b(e,t.checker,"then"))return 0===e.arguments.length?m():function(e,t,r){var n=e.arguments,i=n[0],a=n[1],o=l(i,t),s=u(i,r,o,e,t);if(a){n=l(a,t),i=v.factory.createBlock(S(e.expression,t,o).concat(s)),r=u(a,r,n,e,t),n=n?A(n)?n.identifier.text:n.bindingPattern:"e",n=v.factory.createVariableDeclaration(n),r=v.factory.createCatchClause(n,v.factory.createBlock(r));return[v.factory.createTryStatement(i,r,void 0)]}return S(e.expression,t,o).concat(s)}(e,t,r);if(b(e,t.checker,"catch"))return 0===e.arguments.length?m():function(e,r,n){var t,i=e.arguments[0],a=l(i,r);n&&!F(e,r)&&(A(n)?(t=n,r.synthNamesMap.forEach(function(e,t){e.identifier.text===n.identifier.text&&(e=n,e=N(v.factory.createUniqueName(e.identifier.text,16)),r.synthNamesMap.set(t,e))})):t=N(v.factory.createUniqueName("result",16),n.types),t.hasBeenDeclared=!0);var o=v.factory.createBlock(S(e.expression,r,t)),i=u(i,t,a,e,r),a=a?A(a)?a.identifier.text:a.bindingPattern:"e",a=v.factory.createVariableDeclaration(a),i=v.factory.createCatchClause(a,v.factory.createBlock(i));{var s;t&&!F(e,r)&&(c=v.getSynthesizedDeepClone(t.identifier),s=t.types,s=r.checker.getUnionType(s,2),s=r.isInJSFile?void 0:r.checker.typeToTypeNode(s,void 0,void 0),s=[v.factory.createVariableDeclaration(c,void 0,s)],s=v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList(s,1)))}var i=v.factory.createTryStatement(o,i,void 0),c=n&&c&&1===n.kind&&v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(v.getSynthesizedDeepClone(n.bindingPattern),void 0,void 0,c)],2));return v.compact([s,i,c])}(e,t,r);if(v.isPropertyAccessExpression(e))return S(e.expression,t,r);var n=t.checker.getTypeAtLocation(e);return n&&t.checker.getPromisedTypeOfPromise(n)?(v.Debug.assertNode(e.original.parent,v.isPropertyAccessExpression),function(e,t,r){if(F(e,t))return[v.factory.createReturnStatement(v.getSynthesizedDeepClone(e))];return y(r,v.factory.createAwaitExpression(e),void 0)}(e,t,r)):m()}function y(e,t,r){return!e||o(e)?[v.factory.createExpressionStatement(t)]:A(e)&&e.hasBeenDeclared?[v.factory.createExpressionStatement(v.factory.createAssignment(v.getSynthesizedDeepClone(e.identifier),t))]:[v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(v.getSynthesizedDeepClone(k(e)),void 0,r,t)],2))]}function h(e,t){if(t&&e){var r=v.factory.createUniqueName("result",16);return __spreadArrays(y(N(r),e,t),[v.factory.createReturnStatement(r)])}return[v.factory.createReturnStatement(e)]}function u(e,t,r,n,i){var a;switch(e.kind){case 103:break;case 78:if(!r)break;var o=v.factory.createCallExpression(v.getSynthesizedDeepClone(e),void 0,A(r)?[r.identifier]:[]);if(F(n,i))return h(o,null===(s=n.typeArguments)||void 0===s?void 0:s[0]);var s=i.checker.getTypeAtLocation(e),s=i.checker.getSignaturesOfType(s,0);if(!s.length)return m();var s=s[0].getReturnType(),o=y(t,v.factory.createAwaitExpression(o),null===(o=n.typeArguments)||void 0===o?void 0:o[0]);return t&&t.types.push(s),o;case 208:case 209:var s=e.body,c=null===(o=C(i.checker.getTypeAtLocation(e),i.checker))||void 0===o?void 0:o.getReturnType();if(v.isBlock(s)){for(var u=[],l=!1,_=0,d=s.statements;_<d.length;_++){var p=d[_];v.isReturnStatement(p)?(l=!0,v.isReturnStatementWithFixablePromiseHandler(p)?u=u.concat(E(i,[p],t)):(f=c&&p.expression?T(i.checker,c,p.expression):p.expression,u.push.apply(u,h(f,null===(a=n.typeArguments)||void 0===a?void 0:a[0])))):u.push(p)}return F(n,i)?u.map(function(e){return v.getSynthesizedDeepClone(e)}):function(e,t,r,n){for(var i=[],a=0,o=e;a<o.length;a++){var s,c=o[a];v.isReturnStatement(c)?c.expression&&(s=x(c.expression,r.checker)?v.factory.createAwaitExpression(c.expression):c.expression,void 0===t?i.push(v.factory.createExpressionStatement(s)):i.push(v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(k(t),void 0,void 0,s)],2)))):i.push(v.getSynthesizedDeepClone(c))}n||void 0===t||i.push(v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(k(t),void 0,void 0,v.factory.createIdentifier("undefined"))],2)));return i}(u,t,i,l)}o=E(i,v.isFixablePromiseHandler(s)?[v.factory.createReturnStatement(s)]:v.emptyArray,t);if(0<o.length)return o;if(c){var f=T(i.checker,c,s);if(F(n,i))return h(f,null===(g=n.typeArguments)||void 0===g?void 0:g[0]);var g=y(t,f,void 0);return t&&t.types.push(c),g}return m();default:return m()}return v.emptyArray}function T(e,t,r){r=v.getSynthesizedDeepClone(r);return e.getPromisedTypeOfPromise(t)?v.factory.createAwaitExpression(r):r}function C(e,t){e=t.getSignaturesOfType(e,0);return v.lastOrUndefined(e)}function E(n,e,i){for(var a=[],t=0,r=e;t<r.length;t++){var o=r[t];v.forEachChild(o,function e(t){var r;v.isCallExpression(t)?(r=S(t,n,i),(a=a.concat(r)).length):v.isFunctionLike(t)||v.forEachChild(t,e)})}return a}function l(e,r){var t,n=[];if(v.isFunctionLikeDeclaration(e)?0<e.parameters.length&&(t=function t(e){if(v.isIdentifier(e))return i(e);var r=v.flatMap(e.elements,function(e){return v.isOmittedExpression(e)?[]:[t(e.name)]});return s(e,r)}(e.parameters[0].name)):v.isIdentifier(e)&&(t=i(e)),t&&!("identifier"in t&&"undefined"===t.identifier.text))return t;function i(e){var t,t=(t=e).original||t,t=(t=t).symbol||r.checker.getSymbolAtLocation(t);return t&&r.synthNamesMap.get(v.getSymbolId(t).toString())||N(e,n)}}function o(e){return!e||(A(e)?!e.identifier.text:v.every(e.elements,o))}function k(e){return A(e)?e.identifier:e.bindingPattern}function N(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function s(e,t,r){return void 0===t&&(t=v.emptyArray),void 0===r&&(r=[]),{kind:1,bindingPattern:e,elements:t,types:r}}function A(e){return 0===e.kind}function F(e,t){return e.original&&t.setOfExpressionsToReturn.has(v.getNodeId(e.original))}n=v.codefix||(v.codefix={}),r="convertToAsyncFunction",t=[v.Diagnostics.This_may_be_converted_to_an_async_function.code],i=!0,n.registerCodeFix({errorCodes:t,getCodeActions:function(t){i=!0;var e=v.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t)});return i?[n.createCodeFixAction(r,e,v.Diagnostics.Convert_to_async_function,r,v.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,t,function(e,t){return a(e,t.file,t.start,r.program.getTypeChecker(),r)})}}),(e={})[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(ts=ts||{}),function(m){var _;function y(n,i){n.forEachChild(function e(t){var r;m.isPropertyAccessExpression(t)&&m.isExportsOrModuleExportsOrAlias(n,t.expression)&&m.isIdentifier(t.name)&&(r=t.parent,i(t,m.isBinaryExpression(r)&&r.left===t&&62===r.operatorToken.kind)),t.forEachChild(e)})}function h(n,e,t,i,a,o,s){var r,c=e.declarationList,u=!1,l=m.map(c.declarations,function(e){var t=e.name,r=e.initializer;if(r){if(m.isExportsOrModuleExportsOrAlias(n,r))return u=!0,k([]);if(m.isRequireCall(r,!0))return u=!0,function(e,t,r,n,i,a){switch(e.kind){case 196:var o=m.mapAllOrFail(e.elements,function(e){return e.dotDotDotToken||e.initializer||e.propertyName&&!m.isIdentifier(e.propertyName)||!m.isIdentifier(e.name)?void 0:p(e.propertyName&&e.propertyName.text,e.name.text)});if(o)return k([m.makeImport(void 0,o,t,a)]);case 197:o=D(_.moduleSpecifierToValidIdentifier(t.text,i),n);return k([m.makeImport(m.factory.createIdentifier(o),void 0,t,a),C(void 0,m.getSynthesizedDeepClone(e),m.factory.createIdentifier(o))]);case 78:return function(e,t,r,n,i){for(var a,o=r.getSymbolAtLocation(e),s=new m.Map,c=!1,u=0,l=n.original.get(e.text);u<l.length;u++){var _,d,p,f=l[u];r.getSymbolAtLocation(f)===o&&f!==e&&(_=f.parent,m.isPropertyAccessExpression(_)?(d=_.expression,p=_.name.text,m.Debug.assert(d===f,"Didn't expect expression === use"),void 0===(f=s.get(p))&&(f=D(p,n),s.set(p,f)),(null!=a?a:a=new m.Map).set(_,m.factory.createIdentifier(f))):c=!0)}var g=0===s.size?void 0:m.arrayFrom(m.mapIterator(s.entries(),function(e){var t=e[0],e=e[1];return m.factory.createImportSpecifier(t===e?void 0:m.factory.createIdentifier(t),m.factory.createIdentifier(e))}));g||(c=!0);return k([m.makeImport(c?m.getSynthesizedDeepClone(e):void 0,g,t,i)],a)}(e,t,r,n,a);default:return m.Debug.assertNever(e,"Convert to ES6 module got invalid name kind "+e.kind)}}(t,r.arguments[0],i,a,o,s);if(m.isPropertyAccessExpression(r)&&m.isRequireCall(r.expression,!0))return u=!0,function(e,t,r,n,i){switch(e.kind){case 196:case 197:var a=D(t,n);return k([d(a,t,r,i),C(void 0,e,m.factory.createIdentifier(a))]);case 78:return k([d(e.text,t,r,i)]);default:return m.Debug.assertNever(e,"Convert to ES6 module got invalid syntax form "+e.kind)}}(t,r.name.text,r.expression.arguments[0],a,s)}return k([m.factory.createVariableStatement(void 0,m.factory.createVariableDeclarationList([e],c.flags))])});if(u)return t.replaceNodeWithNodes(n,e,m.flatMap(l,function(e){return e.newImports})),m.forEach(l,function(e){e.useSitesToUnqualify&&m.copyEntries(e.useSitesToUnqualify,null!=r?r:r=new m.Map)}),r}function v(e){return E(void 0,e)}function b(e){return E([m.factory.createExportSpecifier(void 0,"default")],e)}function x(t,r){return r&&m.some(m.arrayFrom(r.keys()),function(e){return m.rangeContainsRange(t,e)})?m.isArray(t)?m.getSynthesizedDeepClonesWithReplacements(t,!0,e):m.getSynthesizedDeepCloneWithReplacements(t,!0,e):t;function e(e){if(201===e.kind){var t=r.get(e);return r.delete(e),t}}}function D(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function S(e){var t=e.parent;switch(t.kind){case 201:return t.name!==e;case 198:case 265:return t.propertyName!==e;default:return 1}}function T(e,t,r,n){return m.factory.createFunctionDeclaration(m.getSynthesizedDeepClones(r.decorators),m.concatenate(t,m.getSynthesizedDeepClones(r.modifiers)),m.getSynthesizedDeepClone(r.asteriskToken),e,m.getSynthesizedDeepClones(r.typeParameters),m.getSynthesizedDeepClones(r.parameters),m.getSynthesizedDeepClone(r.type),m.factory.converters.convertToFunctionBlock(x(r.body,n)))}function d(e,t,r,n){return"default"===t?m.makeImport(m.factory.createIdentifier(e),void 0,r,n):m.makeImport(void 0,[p(t,e)],r,n)}function p(e,t){return m.factory.createImportSpecifier(void 0!==e&&e!==t?m.factory.createIdentifier(e):void 0,m.factory.createIdentifier(t))}function C(e,t,r){return m.factory.createVariableStatement(e,m.factory.createVariableDeclarationList([m.factory.createVariableDeclaration(t,void 0,void 0,r)],2))}function E(e,t){return m.factory.createExportDeclaration(void 0,void 0,!1,e&&m.factory.createNamedExports(e),void 0===t?void 0:m.factory.createStringLiteral(t))}function k(e,t){return{newImports:e,useSitesToUnqualify:t}}(_=m.codefix||(m.codefix={})).registerCodeFix({errorCodes:[m.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(e){var i=e.sourceFile,a=e.program,o=e.preferences,e=m.textChanges.ChangeTracker.with(e,function(e){if(function(r,e,n,t,i){var a={original:function(e){var t=m.createMultiMap();return function t(e,r){m.isIdentifier(e)&&S(e)&&r(e);e.forEachChild(function(e){return t(e,r)})}(e,function(e){return t.add(e.text,e)}),t}(r),additional:new m.Set},o=function(e,n,i){var a=new m.Map;return y(e,function(e){var t=e.name,r=t.text,t=t.originalKeywordKind;!a.has(r)&&(void 0!==t&&m.isNonContextualKeyword(t)||n.resolveName(r,e,111551,!0))&&a.set(r,D("_"+r,i))}),a}(r,e,a);!function(r,n,i){y(r,function(e,t){t||(t=e.name.text,i.replaceNode(r,e,m.factory.createIdentifier(n.get(t)||t)))})}(r,o,n);for(var s,c=!1,u=0,l=m.filter(r.statements,m.isVariableStatement);u<l.length;u++){var _=l[u],d=h(r,_,n,e,a,t,i);d&&m.copyEntries(d,null!=s?s:s=new m.Map)}for(var p=0,f=m.filter(r.statements,function(e){return!m.isVariableStatement(e)});p<f.length;p++){var _=f[p],g=function(e,t,r,n,i,a,o,s,c){switch(t.kind){case 232:return h(e,t,n,r,i,a,c),!1;case 233:var u=t.expression;switch(u.kind){case 203:return m.isRequireCall(u,!0)&&n.replaceNode(e,t,m.makeImport(void 0,void 0,u.arguments[0],c)),!1;case 216:return 62===u.operatorToken.kind&&function(e,t,r,n,i,a){var o=r.left,s=r.right;if(!m.isPropertyAccessExpression(o))return!1;if(m.isExportsOrModuleExportsOrAlias(e,o)){if(!m.isExportsOrModuleExportsOrAlias(e,s)){t=m.isObjectLiteralExpression(s)?function(e,t){e=m.mapAllOrFail(e.properties,function(e){switch(e.kind){case 167:case 168:case 289:case 290:return;case 288:return m.isIdentifier(e.name)?function(e,t,r){var n=[m.factory.createToken(92)];switch(t.kind){case 208:var i=t.name;if(i&&i.text!==e)return a();case 209:return T(e,n,t,r);case 221:return function(e,t,r,n){return m.factory.createClassDeclaration(m.getSynthesizedDeepClones(r.decorators),m.concatenate(t,m.getSynthesizedDeepClones(r.modifiers)),e,m.getSynthesizedDeepClones(r.typeParameters),m.getSynthesizedDeepClones(r.heritageClauses),x(r.members,n))}(e,n,t,r);default:return a()}function a(){return C(n,m.factory.createIdentifier(e),x(t,r))}}(e.name.text,e.initializer,t):void 0;case 165:return m.isIdentifier(e.name)?T(e.name.text,[m.factory.createToken(92)],e,t):void 0;default:m.Debug.assertNever(e,"Convert to ES6 got invalid prop kind "+e.kind)}});return e&&[e,!1]}(s,a):m.isRequireCall(s,!0)?function(e,t){var r=e.text,e=t.getSymbolAtLocation(e),e=e?e.exports:m.emptyMap;return e.has("export=")?[[b(r)],!0]:e.has("default")?1<e.size?[[v(r),b(r)],!0]:[[b(r)],!0]:[[v(r)],!1]}(s.arguments[0],t):void 0;return t?(n.replaceNodeWithNodes(e,r.parent,t[0]),t[1]):(n.replaceRangeWithText(e,m.createRange(o.getStart(e),s.pos),"export default"),!0)}n.delete(e,r.parent)}else m.isExportsOrModuleExportsOrAlias(e,o.expression)&&function(e,t,r,n){var i=t.left.name.text;void 0!==(n=n.get(i))?(i=[C(void 0,n,t.right),E([m.factory.createExportSpecifier(n,i)])],r.replaceNodeWithNodes(e,t.parent,i)):function(e,t,r){var n=e.left,i=e.right,a=e.parent,e=n.name.text;!(m.isFunctionExpression(i)||m.isArrowFunction(i)||m.isClassExpression(i))||i.name&&i.name.text!==e?r.replaceNodeRangeWithNodes(t,n.expression,m.findChildOfKind(n,24,t),[m.factory.createToken(92),m.factory.createToken(84)],{joiner:" ",suffix:" "}):(r.replaceRange(t,{pos:n.getStart(t),end:i.getStart(t)},m.factory.createToken(92),{suffix:" "}),i.name||r.insertName(t,i,e),(a=m.findChildOfKind(a,26,t))&&r.delete(t,a))}(t,e,r)}(e,r,n,i);return!1}(e,r,u,n,o,s)}default:return!1}}(r,_,e,n,a,t,o,s,i);c=c||g}return null!=s&&s.forEach(function(e,t){n.replaceNode(r,t,e)}),c}(i,a.getTypeChecker(),e,a.getCompilerOptions().target,m.getQuotePreference(i,o)))for(var t=0,r=a.getSourceFiles();t<r.length;t++){var n=r[t];!function(e,t,r,n){for(var i=0,a=e.imports;i<a.length;i++){var o=a[i],s=m.getResolvedModule(e,o.text);if(s&&s.resolvedFileName===t.fileName){var c=m.importFromModuleSpecifier(o);switch(c.kind){case 260:r.replaceNode(e,c,m.makeImport(c.name,void 0,o,n));break;case 203:m.isRequireCall(c,!1)&&r.replaceNode(e,c,m.factory.createPropertyAccessExpression(m.getSynthesizedDeepClone(c),"default"))}}}}(n,i,e,m.getQuotePreference(n,o))}});return[_.createCodeFixActionWithoutFixAll("convertToEs6Module",e,m.Diagnostics.Convert_to_ES6_module)]}})}(ts=ts||{}),function(i){var a,o,t;function s(e,t){t=i.findAncestor(i.getTokenAtPosition(e,t),i.isQualifiedName);return i.Debug.assert(!!t,"Expected position to be owned by a qualified name."),i.isIdentifier(t.left)?t:void 0}function c(e,t,r){var n=r.right.text,n=i.factory.createIndexedAccessTypeNode(i.factory.createTypeReferenceNode(r.left,void 0),i.factory.createLiteralTypeNode(i.factory.createStringLiteral(n)));e.replaceNode(t,r,n)}a=i.codefix||(i.codefix={}),o="correctQualifiedNameToIndexedAccessType",t=[i.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],a.registerCodeFix({errorCodes:t,getCodeActions:function(t){var r=s(t.sourceFile,t.span.start);if(r){var e=i.textChanges.ChangeTracker.with(t,function(e){return c(e,t.sourceFile,r)}),n=r.left.text+'["'+r.right.text+'"]';return[a.createCodeFixAction(o,e,[i.Diagnostics.Rewrite_as_the_indexed_access_type_0,n],o,i.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[o],getAllCodeActions:function(e){return a.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&c(e,t.file,r)})}})}(ts=ts||{}),function(o){var i,s,r;function a(e,t){return o.tryCast(o.getTokenAtPosition(t,e.start).parent,o.isExportSpecifier)}function c(e,t,r){var n,i,a;t&&(n=(a=t.parent).parent,(i=function(t,e){var r=t.parent;if(1===r.elements.length)return r.elements;var n=o.getDiagnosticsWithinSpan(o.createTextSpanFromNode(r),e.program.getSemanticDiagnostics(e.sourceFile,e.cancellationToken));return o.filter(r.elements,function(e){return e===t||(null===(e=o.findDiagnosticForNode(e,n))||void 0===e?void 0:e.code)===s[0]})}(t,r)).length===a.elements.length?e.insertModifierBefore(r.sourceFile,149,a):(t=o.factory.updateExportDeclaration(n,n.decorators,n.modifiers,!1,o.factory.updateNamedExports(a,o.filter(a.elements,function(e){return!o.contains(i,e)})),n.moduleSpecifier),a=o.factory.createExportDeclaration(void 0,void 0,!0,o.factory.createNamedExports(i),n.moduleSpecifier),e.replaceNode(r.sourceFile,n,t,{leadingTriviaOption:o.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:o.textChanges.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,n,a)))}i=o.codefix||(o.codefix={}),s=[o.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],r="convertToTypeOnlyExport",i.registerCodeFix({errorCodes:s,getCodeActions:function(t){var e=o.textChanges.ChangeTracker.with(t,function(e){return c(e,a(t.span,t.sourceFile),t)});if(e.length)return[i.createCodeFixAction(r,e,o.Diagnostics.Convert_to_type_only_export,r,o.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[r],getAllCodeActions:function(r){var n=new o.Map;return i.codeFixAll(r,s,function(e,t){t=a(t,r.sourceFile);t&&o.addToSeen(n,o.getNodeId(t.parent.parent))&&c(e,t,r)})}})}(ts=ts||{}),function(i){var n,e,r;function a(e,t){return i.tryCast(i.getTokenAtPosition(t,e.start).parent,i.isImportDeclaration)}function o(e,t,r){var n;null!=t&&t.importClause&&(n=t.importClause,e.insertText(r.sourceFile,t.getStart()+"import".length," type"),n.name&&n.namedBindings&&(e.deleteNodeRangeExcludingEnd(r.sourceFile,n.name,t.importClause.namedBindings),e.insertNodeBefore(r.sourceFile,t,i.factory.updateImportDeclaration(t,void 0,void 0,i.factory.createImportClause(!0,n.name,void 0),t.moduleSpecifier))))}n=i.codefix||(i.codefix={}),e=[i.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error.code],r="convertToTypeOnlyImport",n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){o(e,a(t.span,t.sourceFile),t)});if(e.length)return[n.createCodeFixAction(r,e,i.Diagnostics.Convert_to_type_only_import,r,i.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){o(e,a(t,r.sourceFile),r)})}})}(ts=ts||{}),function(o){var a,s,t;function c(e,t){var r=o.getTokenAtPosition(e,t);if(o.isIdentifier(r)){t=o.cast(r.parent.parent,o.isPropertySignature),e=r.getText(e);return{container:o.cast(t.parent,o.isTypeLiteralNode),typeNode:t.type,constraint:e,name:"K"===e?"P":"K"}}}function u(e,t,r){var n=r.container,i=r.typeNode,a=r.constraint,r=r.name;e.replaceNode(t,n,o.factory.createMappedTypeNode(void 0,o.factory.createTypeParameterDeclaration(r,o.factory.createTypeReferenceNode(a)),void 0,void 0,i))}a=o.codefix||(o.codefix={}),s="convertLiteralTypeToMappedType",t=[o.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],a.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=c(t,r.start);if(n){var i=n.name,r=n.constraint,e=o.textChanges.ChangeTracker.with(e,function(e){return u(e,t,n)});return[a.createCodeFixAction(s,e,[o.Diagnostics.Convert_0_to_1_in_0,r,i],s,o.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[s],getAllCodeActions:function(e){return a.codeFixAll(e,t,function(e,t){var r=c(t.file,t.start);r&&u(e,t.file,r)})}})}(ts=ts||{}),function(p){var f,e,a;function c(e,t){return p.Debug.checkDefined(p.getContainingClass(p.getTokenAtPosition(e,t)),"There should be a containing class")}function g(e){return!(e.valueDeclaration&&8&p.getEffectiveModifierFlags(e.valueDeclaration))}function u(r,e,n,i,a,t){var o=r.program.getTypeChecker(),s=function(e,t){e=p.getEffectiveBaseTypeNode(e);if(!e)return p.createSymbolTable();e=t.getTypeAtLocation(e),e=t.getPropertiesOfType(e);return p.createSymbolTable(e.filter(g))}(i,o),c=o.getTypeAtLocation(e),u=o.getPropertiesOfType(c).filter(p.and(g,function(e){return!s.has(e.escapedName)})),e=o.getTypeAtLocation(i),l=p.find(i.members,function(e){return p.isConstructorDeclaration(e)});e.getNumberIndexType()||_(c,1),e.getStringIndexType()||_(c,0);c=f.createImportAdder(n,r.program,t,r.host);function _(e,t){e=o.getIndexInfoOfType(e,t);e&&d(n,i,o.indexInfoToIndexSignatureDeclaration(e,t,i,void 0,f.getNoopSymbolTrackerWithResolver(r)))}function d(e,t,r){l?a.insertNodeAfter(e,l,r):a.insertNodeAtClassStart(e,t,r)}f.createMissingMemberNodes(i,u,n,r,t,c,function(e){return d(n,i,e)}),c.writeFixes(a)}f=p.codefix||(p.codefix={}),e=[p.Diagnostics.Class_0_incorrectly_implements_interface_1.code,p.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],a="fixClassIncorrectlyImplementsInterface",f.registerCodeFix({errorCodes:e,getCodeActions:function(r){var n=r.sourceFile,e=r.span,i=c(n,e.start);return p.mapDefined(p.getEffectiveImplementsTypeNodes(i),function(t){var e=p.textChanges.ChangeTracker.with(r,function(e){return u(r,t,n,i,e,r.preferences)});return 0===e.length?void 0:f.createCodeFixAction(a,e,[p.Diagnostics.Implement_interface_0,t.getText(n)],a,p.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[a],getAllCodeActions:function(o){var s=new p.Map;return f.codeFixAll(o,e,function(e,t){var r=c(t.file,t.start);if(p.addToSeen(s,p.getNodeId(r)))for(var n=0,i=p.getEffectiveImplementsTypeNodes(r);n<i.length;n++){var a=i[n];u(o,a,t.file,r,e,o.preferences)}})}})}(ts=ts||{}),function(A){!function(o){o.importFixName="import";var e,s="fixMissingImport",n=[A.Diagnostics.Cannot_find_name_0.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,A.Diagnostics.Cannot_find_namespace_0.code,A.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,A.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function i(c,a,o,u,s){var l=a.getCompilerOptions(),_=[],d=[],p=new A.Map,f=new A.Map;return{addImportFromDiagnostic:function(e,t){e=b(t,e.code,e.start,o);if(!e||!e.fixes.length)return;g(e)},addImportFromExportedSymbol:function(e,t){var r=A.Debug.checkDefined(e.parent),n=A.getNameForExportedSymbol(e,A.getEmitScriptTarget(l)),i=a.getTypeChecker(),e=i.getMergedSymbol(A.skipAlias(e,i)),i=y(c,e,r,n,s,a,o),e=!!t&&2===l.importsNotUsedAsValues,t=h(c,a);g({fixes:[m(c,i,r,n,a,void 0,e,t,s,u)],symbolName:n})},writeFixes:function(i){for(var n=A.getQuotePreference(c,u),e=0,t=_;e<t.length;e++){var r=t[e];D(i,c,r)}for(var a,o=0,s=d;o<s.length;o++){r=s[o];S(i,c,r,n)}p.forEach(function(e){var t=e.importClauseOrBindingPattern,r=e.defaultImport,n=e.namedImports,e=e.canUseTypeOnlyImport;x(i,c,t,r,n,e)}),f.forEach(function(e,t){var r=e.useRequire,e=__rest(e,["useRequire"]),r=r?C:T;a=A.combine(a,r(t,n,e))}),a&&A.insertImports(i,c,a,!0)}};function g(e){var t=e.fixes,r=e.symbolName,n=A.first(t);switch(n.kind){case 0:_.push(n);break;case 1:d.push(n);break;case 2:var i=n.importClauseOrBindingPattern,a=n.importKind,o=n.canUseTypeOnlyImport,s=String(A.getNodeId(i));(c=p.get(s))||p.set(s,c={importClauseOrBindingPattern:i,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:o}),0===a?A.pushIfUnique(c.namedImports,r):(A.Debug.assert(void 0===c.defaultImport||c.defaultImport===r,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport=r);break;case 3:var c,s=n.moduleSpecifier,a=n.importKind,i=n.useRequire,o=n.typeOnly;switch((c=f.get(s))?c.typeOnly=c.typeOnly&&o:f.set(s,c={namedImports:[],namespaceLikeImport:void 0,typeOnly:o,useRequire:i}),a){case 1:A.Debug.assert(void 0===c.defaultImport||c.defaultImport===r,"(Add new) Default import should be missing or match symbolName"),c.defaultImport=r;break;case 0:A.pushIfUnique(c.namedImports||(c.namedImports=[]),r);break;case 3:case 2:A.Debug.assert(void 0===c.namespaceLikeImport||c.namespaceLikeImport.name===r,"Namespacelike import shoudl be missing or match symbolName"),c.namespaceLikeImport={importKind:a,name:r}}break;default:A.Debug.assertNever(n,"fix wasn't never - got kind "+n.kind)}}}function m(e,t,r,n,i,a,o,s,c,u){return A.Debug.assert(t.some(function(e){return e.moduleSymbol===r}),"Some exportInfo should match the specified moduleSymbol"),A.first(_(t,n,a,o,s,i,e,c,u))}function y(s,c,u,l,e,t,r){var _=[],d=t.getCompilerOptions();return E(t,e,s,!1,r,function(e,t,r){var n=r.getTypeChecker();if(!t||e===u||!A.startsWith(s.fileName,A.getDirectoryPath(t.fileName))){t=f(s,e,n,d);!t||t.name!==l&&k(e,d.target)!==l||A.skipAlias(t.symbol,n)!==c||_.push({moduleSymbol:e,importKind:t.kind,exportedSymbolIsTypeOnly:p(t.symbol,n)});for(var i=0,a=n.getExportsAndPropertiesOfModule(e);i<a.length;i++){var o=a[i];o.name===l&&A.skipAlias(o,n)===c&&_.push({moduleSymbol:e,importKind:0,exportedSymbolIsTypeOnly:p(o,n)})}}}),_}function p(e,t){return!(111551&A.skipAlias(e,t).flags)}function _(e,t,r,n,i,a,o,s,c){var u,l,_,d,p,f,g=a.getTypeChecker(),m=A.flatMap(e,function(e){return r=g,t=o,n=(e=e).moduleSymbol,i=e.importKind,e.exportedSymbolIsTypeOnly&&A.isSourceFileJS(t)?A.emptyArray:A.mapDefined(t.imports,function(e){var t=A.importFromModuleSpecifier(e);return A.isRequireVariableDeclaration(t.parent,!0)?r.resolveExternalModuleName(e)===n?{declaration:t.parent,importKind:i}:void 0:(261===t.kind||260===t.kind)&&r.getSymbolAtLocation(e)===n?{declaration:t,importKind:i}:void 0});var r,t,n,i}),y=void 0===r?void 0:(f=m,u=t,l=r,_=g,A.firstDefined(f,function(e){var t=e.declaration,e=function(e){var t;switch(e.kind){case 249:return null===(t=A.tryCast(e.name,A.isIdentifier))||void 0===t?void 0:t.text;case 260:return e.name.text;case 261:return null===(t=A.tryCast(null===(t=e.importClause)||void 0===t?void 0:t.namedBindings,A.isNamespaceImport))||void 0===t?void 0:t.name.text;default:return A.Debug.assertNever(e)}}(t);if(e){t=function(e,t){switch(e.kind){case 249:return t.resolveExternalModuleName(e.initializer.arguments[0]);case 260:return t.getAliasedSymbol(e.symbol);case 261:var r=A.tryCast(null===(r=e.importClause)||void 0===r?void 0:r.namedBindings,A.isNamespaceImport);return r&&t.getAliasedSymbol(r.symbol);default:return A.Debug.assertNever(e)}}(t,_);if(t&&t.exports.has(A.escapeLeadingUnderscores(u)))return{kind:0,namespacePrefix:e,position:l}}})),d=(d=m,p=void 0!==r&&(t=o,f=r,A.isValidTypeOnlyAliasUseSite(A.getTokenAtPosition(t,f))),A.firstDefined(d,function(e){var t=e.declaration,r=e.importKind;if(260!==t.kind){if(249===t.kind)return 0!==r&&1!==r||196!==t.name.kind?void 0:{kind:2,importClauseOrBindingPattern:t.name,importKind:r,moduleSpecifier:t.initializer.arguments[0].text,canUseTypeOnlyImport:!1};var n=t.importClause;if(n){var i=n.name,e=n.namedBindings;return 1===r&&!i||0===r&&(!e||264===e.kind)?{kind:2,importClauseOrBindingPattern:n,importKind:r,moduleSpecifier:t.moduleSpecifier.getText(),canUseTypeOnlyImport:p}:void 0}}})),c=d?[d]:function(e,t,r,n,i,a,o,s,c){t=A.firstDefined(t,function(e){return r=a,n=o,e=(t=e).declaration,t=t.importKind,(e=261===e.kind?e.moduleSpecifier:249===e.kind?e.initializer.arguments[0]:272===e.moduleReference.kind?e.moduleReference.expression:void 0)&&A.isStringLiteral(e)?{kind:3,moduleSpecifier:e.text,importKind:t,typeOnly:r,useRequire:n}:void 0;var t,r,n});return t?[t]:v(r,n,i,a,o,e,s,c)}(e,m,a,o,r,n,i,s,c);return __spreadArrays(y?[y]:A.emptyArray,c)}function h(e,t){if(!A.isSourceFileJS(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;var r=t.getCompilerOptions();if(r.configFile)return A.getEmitModuleKind(r)<A.ModuleKind.ES2015;for(var n=0,i=t.getSourceFiles();n<i.length;n++){var a=i[n];if(a!==e&&A.isSourceFileJS(a)&&!t.isSourceFileFromExternalLibrary(a)){if(a.commonJsModuleIndicator&&!a.externalModuleIndicator)return!0;if(a.externalModuleIndicator&&!a.commonJsModuleIndicator)return!1}}return!0}function v(i,a,o,s,c,e,u,l){var _=A.isSourceFileJS(a),d=i.getCompilerOptions(),p=N(a,i,u).allowsImportingSpecifier,e=A.flatMap(e,function(e){var t=e.moduleSymbol,r=e.importKind,n=e.exportedSymbolIsTypeOnly;return A.moduleSpecifiers.getModuleSpecifiers(t,d,a,A.createModuleSpecifierResolutionHost(i,u),l).map(function(e){return n&&_?{kind:1,moduleSpecifier:e,position:A.Debug.checkDefined(o,"position should be defined")}:{kind:3,moduleSpecifier:e,importKind:r,useRequire:c,typeOnly:s}})});return A.sort(e,function(e,t){var r=p(e.moduleSpecifier),n=p(t.moduleSpecifier);return r&&!n?-1:n&&!r?1:e.moduleSpecifier.length-t.moduleSpecifier.length})}function b(e,t,r,n){r=A.getTokenAtPosition(e.sourceFile,r),n=t===A.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(e,t){var r=e.sourceFile,n=e.program,i=e.host,a=e.preferences,o=n.getTypeChecker(),s=function(e,t){var r=A.isIdentifier(e)?t.getSymbolAtLocation(e):void 0;if(A.isUMDExportSymbol(r))return r;r=e.parent;return A.isJsxOpeningLikeElement(r)&&r.tagName===e||A.isJsxOpeningFragment(r)?A.tryCast(t.resolveName(t.getJsxNamespace(r),A.isJsxOpeningLikeElement(r)?e:r,111551,!1),A.isUMDExportSymbol):void 0}(t,o);if(!s)return;e=o.getAliasedSymbol(s),o=s.name,s=[{moduleSymbol:e,importKind:function(e,t){if(A.getAllowSyntheticDefaultImports(t))return 1;var r=A.getEmitModuleKind(t);switch(r){case A.ModuleKind.AMD:case A.ModuleKind.CommonJS:case A.ModuleKind.UMD:return A.isInJSFile(e)?A.isExternalModule(e)?2:3:3;case A.ModuleKind.System:case A.ModuleKind.ES2015:case A.ModuleKind.ES2020:case A.ModuleKind.ESNext:case A.ModuleKind.None:return 2;default:return A.Debug.assertNever(r,"Unexpected moduleKind "+r)}}(r,n.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],e=h(r,n);return{fixes:_(s,o,A.isIdentifier(t)?t.getStart(r):void 0,!1,e,n,r,i,a),symbolName:o}}(e,r):A.isIdentifier(r)?function(e,t,r){var n=e.sourceFile,i=e.program,a=e.cancellationToken,o=e.host,s=e.preferences,e=i.getTypeChecker(),c=function(e,t,r){var n=r.parent;if((A.isJsxOpeningLikeElement(n)||A.isJsxClosingElement(n))&&n.tagName===r){e=t.getJsxNamespace(e);if(A.isIntrinsicJsxName(r.text)||!t.resolveName(e,n,111551,!0))return e}return r.text}(n,e,t);A.Debug.assert("default"!==c,"'default' isn't a legal identifier and couldn't occur here");var u=2===i.getCompilerOptions().importsNotUsedAsValues&&A.isValidTypeOnlyAliasUseSite(t),l=h(n,i),r=function(a,o,s,c,e,t,r){var i=A.createMultiMap();function u(e,t,r,n){i.add(A.getUniqueSymbolId(t,n).toString(),{moduleSymbol:e,importKind:r,exportedSymbolIsTypeOnly:p(t,n)})}return E(e,r,c,!0,t,function(e,t,r){var n=r.getTypeChecker();s.throwIfCancellationRequested();var i=r.getCompilerOptions(),r=f(c,e,n,i);r&&(r.name===a||k(e,i.target)===a)&&g(r.symbolForMeaning,o)&&u(e,r.symbol,r.kind,n);r=n.tryGetMemberInModuleExportsAndProperties(a,e);r&&g(r,o)&&u(e,r,0,n)}),i}(c,A.getMeaningFromLocation(t),a,n,i,r,o);return{fixes:A.arrayFrom(A.flatMapIterator(r.entries(),function(e){e[0];return _(e[1],c,t.getStart(n),u,l,i,n,o,s)})),symbolName:c}}(e,r,n):void 0;return n&&__assign(__assign({},n),{fixes:A.sort(n.fixes,function(e,t){return e.kind-t.kind})})}function f(e,t,r,n){var i=function(e,t,r,n){var i=r.tryGetMemberInModuleExports("default",t);if(i)return{symbol:i,kind:1};r=r.resolveExternalModuleSymbol(t);return r===t?void 0:{symbol:r,kind:function(e,t){var r=A.getAllowSyntheticDefaultImports(t);if(A.getEmitModuleKind(t)>=A.ModuleKind.ES2015)return r?1:2;if(A.isInJSFile(e))return A.isExternalModule(e)?1:3;for(var n=0,i=e.statements;n<i.length;n++){var a=i[n];if(A.isImportEqualsDeclaration(a))return 3}return r?1:3}(e,n)}}(e,t,r,n);if(i){e=i.symbol,i=i.kind,n=function e(t,r,n,i){var a=A.getLocalSymbolForExportDefault(t);if(a)return{symbolForMeaning:a,name:a.name};a=c(t);if(void 0!==a)return{symbolForMeaning:t,name:a};if(2097152&t.flags){var a=n.getImmediateAliasedSymbol(t);if(a&&a.parent)return e(a,a.parent,n,i)}if("default"!==t.escapedName&&"export="!==t.escapedName)return{symbolForMeaning:t,name:t.getName()};return{symbolForMeaning:t,name:k(r,i.target)}}(e,t,r,n);return n&&__assign({symbol:e,kind:i},n)}}function c(e){return e.declarations&&A.firstDefined(e.declarations,function(e){if(A.isExportAssignment(e)){if(A.isIdentifier(e.expression))return e.expression.text}else if(A.isExportSpecifier(e))return A.Debug.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text})}function d(e,t,r,n,i){var a,e=A.textChanges.ChangeTracker.with(e,function(e){a=function(e,t,r,n,i){switch(n.kind){case 0:return D(e,t,n),[A.Diagnostics.Change_0_to_1,r,n.namespacePrefix+"."+r];case 1:return S(e,t,n,i),[A.Diagnostics.Change_0_to_1,r,u(n.moduleSpecifier,i)+r];case 2:var a=n.importClauseOrBindingPattern,o=n.importKind,s=n.canUseTypeOnlyImport,c=n.moduleSpecifier;x(e,t,a,1===o?r:void 0,0===o?[r]:A.emptyArray,s);a=A.stripQuotes(c);return[1===o?A.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:A.Diagnostics.Add_0_to_existing_import_declaration_from_1,r,a];case 3:o=n.importKind,c=n.moduleSpecifier,s=n.typeOnly,a=n.useRequire?C:T,s=1===o?{defaultImport:r,typeOnly:s}:0===o?{namedImports:[r],typeOnly:s}:{namespaceLikeImport:{importKind:o,name:r},typeOnly:s};return A.insertImports(e,t,a(c,i,s),!0),[1===o?A.Diagnostics.Import_default_0_from_module_1:A.Diagnostics.Import_0_from_module_1,r,c];default:return A.Debug.assertNever(n,"Unexpected fix kind "+n.kind)}}(e,t,r,n,i)});return o.createCodeFixAction(o.importFixName,e,a,s,A.Diagnostics.Add_all_missing_imports)}function x(n,i,e,t,r,a){if(196!==e.kind){var o=!a&&e.isTypeOnly;if(t&&(A.Debug.assert(!e.name,"Cannot add a default import to an import clause that already has one"),n.insertNodeAt(i,e.getStart(i),A.factory.createIdentifier(t),{suffix:", "})),r.length){var s=e.namedBindings&&A.cast(e.namedBindings,A.isNamedImports).elements,a=A.stableSort(r.map(function(e){return A.factory.createImportSpecifier(void 0,A.factory.createIdentifier(e))}),A.OrganizeImports.compareImportOrExportSpecifiers);if(null!=s&&s.length&&A.OrganizeImports.importSpecifiersAreSorted(s))for(var c=0,u=a;c<u.length;c++){var l=u[c],_=A.OrganizeImports.getImportSpecifierInsertionIndex(s,l),_=e.namedBindings.elements[_-1];_?n.insertNodeInListAfter(i,_,l):n.insertNodeBefore(i,s[0],l,!A.positionsAreOnSameLine(s[0].getStart(),e.parent.getStart(),i))}else if(null!=s&&s.length)for(var d=0,p=a;d<p.length;d++){l=p[d];n.insertNodeInListAfter(i,A.last(s),l,s)}else a.length&&(a=A.factory.createNamedImports(a),e.namedBindings?n.replaceNode(i,e.namedBindings,a):n.insertNodeAfter(i,A.Debug.checkDefined(e.name,"Import clause must have either named imports or a default import"),a))}o&&n.delete(i,A.getTypeKeywordOfTypeOnlyImport(e,i))}else{t&&m(e,t,"default");for(var f=0,g=r;f<g.length;f++)m(e,g[f],void 0)}function m(e,t,r){t=A.factory.createBindingElement(void 0,r,t);e.elements.length?n.insertNodeInListAfter(i,A.last(e.elements),t):n.replaceNode(i,e,A.factory.createObjectBindingPattern([t]))}}function D(e,t,r){var n=r.namespacePrefix,r=r.position;e.insertText(t,r,n+".")}function S(e,t,r,n){var i=r.moduleSpecifier,r=r.position;e.insertText(t,r,u(i,n))}function u(e,t){t=A.getQuoteFromPreference(t);return"import("+t+e+t+")."}function T(e,t,r){var n,i=A.makeStringLiteral(e,t);(void 0!==r.defaultImport||null!==(n=r.namedImports)&&void 0!==n&&n.length)&&(a=A.combine(a,A.makeImport(void 0===r.defaultImport?void 0:A.factory.createIdentifier(r.defaultImport),null===(n=r.namedImports)||void 0===n?void 0:n.map(function(e){return A.factory.createImportSpecifier(void 0,A.factory.createIdentifier(e))}),e,t,r.typeOnly)));var a,t=r.namespaceLikeImport,r=r.typeOnly;return t&&(i=3===t.importKind?A.factory.createImportEqualsDeclaration(void 0,void 0,A.factory.createIdentifier(t.name),A.factory.createExternalModuleReference(i)):A.factory.createImportDeclaration(void 0,void 0,A.factory.createImportClause(r,void 0,A.factory.createNamespaceImport(A.factory.createIdentifier(t.name))),i),a=A.combine(a,i)),A.Debug.checkDefined(a)}function C(e,t,r){var n,i,e=A.makeStringLiteral(e,t);return(r.defaultImport||null!==(t=r.namedImports)&&void 0!==t&&t.length)&&(i=(null===(i=r.namedImports)||void 0===i?void 0:i.map(function(e){return A.factory.createBindingElement(void 0,void 0,e)}))||[],r.defaultImport&&i.unshift(A.factory.createBindingElement(void 0,"default",r.defaultImport)),i=a(A.factory.createObjectBindingPattern(i),e),n=A.combine(n,i)),r.namespaceLikeImport&&(i=a(r.namespaceLikeImport.name,e),n=A.combine(n,i)),A.Debug.checkDefined(n)}function a(e,t){return A.factory.createVariableStatement(void 0,A.factory.createVariableDeclarationList([A.factory.createVariableDeclaration("string"==typeof e?A.factory.createIdentifier(e):e,void 0,void 0,A.factory.createCallExpression(A.factory.createIdentifier("require"),void 0,[t]))],2))}function g(e,t){e=e.declarations;return A.some(e,function(e){return!!(A.getMeaningFromDeclaration(e)&t)})}function E(r,e,t,n,i,a){l(r,e,t,n,function(e,t){return a(e,t,r,!1)});var o,s=i&&(null===(o=e.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(e));s&&(o=A.timestamp(),l(s,e,t,n,function(e,t){return a(e,t,s,!0)}),null!==(n=e.log)&&void 0!==n&&n.call(e,"forEachExternalModuleToImportFrom autoImportProvider: "+(A.timestamp()-o)))}function l(u,e,l,t,_){var d=0,p=A.createModuleSpecifierResolutionHost(u,e),f=t&&N(l,u,e,p);!function(e,t,r){for(var n=0,i=e.getAmbientModules();n<i.length;n++){var a=i[n];r(a,void 0)}for(var o=0,s=t;o<s.length;o++){var c=s[o];A.isExternalOrCommonJsModule(c)&&r(e.getMergedSymbol(c.symbol),c)}}(u.getTypeChecker(),u.getSourceFiles(),function(e,t){var r,n,i,a,o,s,c;void 0===t?!f||f.allowsImportingAmbientModule(e)?_(e,t):f&&d++:t&&t!==l&&(r=u,n=l,i=t,a=p,s=A.hostGetCanonicalFileName(a),c=null===(o=a.getGlobalTypingsCacheLocation)||void 0===o?void 0:o.call(a),!!A.moduleSpecifiers.forEachFileNameOfModule(n.fileName,i.fileName,a,!1,function(e){var t=r.getSourceFile(e);return(t===i||!t)&&function(e,t,r,n){t=A.forEachAncestorDirectory(t,function(e){return"node_modules"===A.getBaseFileName(e)?e:void 0}),t=t&&A.getDirectoryPath(r(t));return void 0===t||A.startsWith(r(e),t)||!!n&&A.startsWith(r(n),t)}(n.fileName,e,s,c)}))&&(!f||f.allowsImportingSourceFile(t)?_(e,t):f&&d++)}),null!==(t=e.log)&&void 0!==t&&t.call(e,"forEachExternalModuleToImportFrom: filtered out "+d+" modules by package.json contents")}function k(e,t){return r(A.removeFileExtension(A.stripQuotes(e.name)),t)}function r(e,t){var r=A.getBaseFileName(A.removeSuffix(e,"/index")),n="",i=!0,e=r.charCodeAt(0);A.isIdentifierStart(e,t)?n+=String.fromCharCode(e):i=!1;for(var a=1;a<r.length;a++){var o=r.charCodeAt(a),s=A.isIdentifierPart(o,t);s&&(o=String.fromCharCode(o),i||(o=o.toUpperCase()),n+=o),i=s}return A.isStringANonContextualKeyword(n)?"_"+n:n||"_"}function N(t,e,r,n){void 0===n&&(n=A.createModuleSpecifierResolutionHost(e,r));var i,a=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(t.fileName)||A.getPackageJsonsVisibleToFile(t.fileName,r)).filter(function(e){return e.parseable});return{allowsImportingAmbientModule:function(e){if(!a.length)return!0;var t=c(e.valueDeclaration.getSourceFile().fileName);if(void 0===t)return!0;e=A.stripQuotes(e.getName());if(s(e))return!0;return o(t)||o(e)},allowsImportingSourceFile:function(e){if(!a.length)return!0;e=c(e.fileName);return!e||o(e)},allowsImportingSpecifier:function(e){if(!a.length||s(e))return!0;if(A.pathIsRelative(e)||A.isRootedDiskPath(e))return!0;return o(e)},moduleSpecifierResolutionHost:n};function o(e){for(var t=u(e),r=0,n=a;r<n.length;r++){var i=n[r];if(i.has(t)||i.has(A.getTypesPackageName(t)))return!0}return!1}function s(e){return!!(A.isSourceFileJS(t)&&A.JsTyping.nodeCoreModules.has(e)&&(void 0===i&&(i=A.consumesNodeCoreModules(t)),i))}function c(e){if(A.stringContains(e,"node_modules")){e=A.moduleSpecifiers.getNodeModulesPackageName(r.getCompilationSettings(),t.path,e,n);if(e)return A.pathIsRelative(e)||A.isRootedDiskPath(e)?void 0:u(e)}}function u(e){e=A.getPathComponents(A.getPackageNameFromTypesPackageName(e)).slice(1);return A.startsWith(e[0],"@")?e[0]+"/"+e[1]:e[0]}}o.registerCodeFix({errorCodes:n,getCodeActions:function(t){var e=t.errorCode,r=t.preferences,n=t.sourceFile,i=t.span,e=b(t,e,i.start,!0);if(e){var i=e.fixes,a=e.symbolName,o=A.getQuotePreference(n,r);return i.map(function(e){return d(t,n,a,e,o)})}},fixIds:[s],getAllCodeActions:function(t){var r=i(t.sourceFile,t.program,!0,t.preferences,t.host);return o.eachDiagnostic(t,n,function(e){return r.addImportFromDiagnostic(e,t)}),o.createCombinedCodeActions(A.textChanges.ChangeTracker.with(t,r.writeFixes))}}),o.createImportAdder=function(e,t,r,n){return i(e,t,!1,r,n)},(e={})[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",(e={})[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",o.getImportCompletionAction=function(e,t,r,n,i,a,o,s,c){var u=a.getCompilerOptions(),l=y(r,e,t,n,i,a,!0),_=h(r,a),e=2===u.importsNotUsedAsValues&&!A.isSourceFileJS(r)&&A.isValidTypeOnlyAliasUseSite(A.getTokenAtPosition(r,s)),u=A.first(v(a,r,s,e,_,l,i,c)).moduleSpecifier,_=m(r,l,t,n,a,s,e,_,i,c);return{moduleSpecifier:u,codeAction:(_=d({host:i,formatContext:o,preferences:c},r,n,_,A.getQuotePreference(r,c)),r=_.description,c=_.changes,_=_.commands,{description:r,changes:c,commands:_})}},o.forEachExternalModuleToImportFrom=E,o.moduleSymbolToValidIdentifier=k,o.moduleSpecifierToValidIdentifier=r}(A.codefix||(A.codefix={}))}(ts=ts||{}),function(s){var a,o,e;function c(e,t,r,n){var i=s.getTokenAtPosition(t,r);s.Debug.assert(107===i.kind);var a=s.getThisContainer(i,!1);if((s.isFunctionDeclaration(a)||s.isFunctionExpression(a))&&!s.isSourceFile(s.getThisContainer(a,!1))){var o=s.Debug.assertDefined(s.findChildOfKind(a,97,t)),r=a.name,i=s.Debug.assertDefined(a.body);return s.isFunctionExpression(a)?r&&s.FindAllReferences.Core.isSymbolReferencedInFile(r,n,t,i)?void 0:(e.delete(t,o),r&&e.delete(t,r),e.insertText(t,i.pos," =>"),[s.Diagnostics.Convert_function_expression_0_to_arrow_function,r?r.text:s.ANONYMOUS]):(e.replaceNode(t,o,s.factory.createToken(84)),e.insertText(t,r.end," = "),e.insertText(t,i.pos," =>"),[s.Diagnostics.Convert_function_declaration_0_to_arrow_function,r.text])}}a=s.codefix||(s.codefix={}),o="fixImplicitThis",e=[s.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],a.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t,r=e.sourceFile,n=e.program,i=e.span,e=s.textChanges.ChangeTracker.with(e,function(e){t=c(e,r,i.start,n.getTypeChecker())});return t?[a.createCodeFixAction(o,e,t,o,s.Diagnostics.Fix_all_implicit_this_errors)]:s.emptyArray},fixIds:[o],getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){c(e,t.file,t.start,r.program.getTypeChecker())})}})}(ts=ts||{}),function(s){var i,a,e;i=s.codefix||(s.codefix={}),a="fixIncorrectNamedTupleSyntax",e=[s.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,s.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],i.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=function(e,t){t=s.getTokenAtPosition(e,t);return s.findAncestor(t,function(e){return 192===e.kind})}(t,r.start),e=s.textChanges.ChangeTracker.with(e,function(e){return function(e,t,r){if(!r)return;var n=r.type,i=!1,a=!1;for(;180===n.kind||181===n.kind||186===n.kind;)180===n.kind?i=!0:181===n.kind&&(a=!0),n=n.type;var o=s.factory.updateNamedTupleMember(r,r.dotDotDotToken||(a?s.factory.createToken(25):void 0),r.name,r.questionToken||(i?s.factory.createToken(57):void 0),n);if(o===r)return;e.replaceNode(t,r,o)}(e,t,n)});return[i.createCodeFixAction(a,e,s.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,a,s.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[a]})}(ts=ts||{}),function(u){var o,s,e;function c(e,t,r,n){var i=u.getTokenAtPosition(e,t),t=i.parent;if(n!==u.Diagnostics.No_overload_matches_this_call.code&&n!==u.Diagnostics.Type_0_is_not_assignable_to_type_1.code||u.isJsxAttribute(t)){var a,o,s,c,n=r.program.getTypeChecker();return u.isPropertyAccessExpression(t)&&t.name===i?(u.Debug.assert(u.isIdentifierOrPrivateIdentifier(i),"Expected an identifier for spelling (property access)"),a=n.getTypeAtLocation(t.expression),32&t.flags&&(a=n.getNonNullableType(a)),o=n.getSuggestedSymbolForNonexistentProperty(i,a)):u.isQualifiedName(t)&&t.right===i?(a=n.getSymbolAtLocation(t.left))&&1536&a.flags&&(o=n.getSuggestedSymbolForNonexistentModule(t.right,a)):u.isImportSpecifier(t)&&t.name===i?(u.Debug.assertNode(i,u.isIdentifier,"Expected an identifier for spelling (import)"),(r=function(e,t,r){if(!r||!u.isStringLiteralLike(r.moduleSpecifier))return;r=u.getResolvedModule(e,r.moduleSpecifier.text);return r?t.program.getSourceFile(r.resolvedFileName):void 0}(e,r,u.findAncestor(i,u.isImportDeclaration)))&&r.symbol&&(o=n.getSuggestedSymbolForNonexistentModule(i,r.symbol))):o=u.isJsxAttribute(t)&&t.name===i?(u.Debug.assertNode(i,u.isIdentifier,"Expected an identifier for JSX attribute"),s=u.findAncestor(i,u.isJsxOpeningLikeElement),c=n.getContextualTypeForArgumentAtIndex(s,0),n.getSuggestedSymbolForNonexistentJSXAttribute(i,c)):(s=u.getMeaningFromLocation(i),c=u.getTextOfNode(i),u.Debug.assert(void 0!==c,"name should be defined"),n.getSuggestedSymbolForNonexistentSymbol(i,c,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(s))),void 0===o?void 0:{node:i,suggestedSymbol:o}}}function l(e,t,r,n,i){var a=u.symbolName(n);!u.isIdentifierText(a,i)&&u.isPropertyAccessExpression(r.parent)?(n=n.valueDeclaration,u.isNamedDeclaration(n)&&u.isPrivateIdentifier(n.name)?e.replaceNode(t,r,u.factory.createIdentifier(a)):e.replaceNode(t,r.parent,u.factory.createElementAccessExpression(r.parent.expression,u.factory.createStringLiteral(a)))):e.replaceNode(t,r,u.factory.createIdentifier(a))}o=u.codefix||(u.codefix={}),s="fixSpelling",e=[u.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,u.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,u.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,u.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,u.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,u.Diagnostics.No_overload_matches_this_call.code,u.Diagnostics.Type_0_is_not_assignable_to_type_1.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.errorCode,r=c(t,e.span.start,e,r);if(r){var n=r.node,i=r.suggestedSymbol,a=e.host.getCompilationSettings().target,e=u.textChanges.ChangeTracker.with(e,function(e){return l(e,t,n,i,a)});return[o.createCodeFixAction("spelling",e,[u.Diagnostics.Change_spelling_to_0,u.symbolName(i)],s,u.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[s],getAllCodeActions:function(n){return o.codeFixAll(n,e,function(e,t){var r=c(t.file,t.start,n,t.code),t=n.host.getCompilationSettings().target;r&&l(e,n.sourceFile,r.node,r.suggestedSymbol,t)})}})}(ts=ts||{}),function(g){var m,y,e,h,v,b,x,t;function s(e,t,r){t=e.createSymbol(4,t.escapedText);t.type=e.getTypeAtLocation(r);t=g.createSymbolTable([t]);return e.createAnonymousType(void 0,t,[],[],void 0,void 0)}function c(e,t,r,n){if(t.body&&g.isBlock(t.body)&&1===g.length(t.body.statements)){var i=g.first(t.body.statements);if(g.isExpressionStatement(i)&&u(e,t,e.getTypeAtLocation(i.expression),r,n))return{declaration:t,kind:y.MissingReturnStatement,expression:i.expression,statement:i,commentSource:i.expression};if(g.isLabeledStatement(i)&&g.isExpressionStatement(i.statement)){var a=g.factory.createObjectLiteralExpression([g.factory.createPropertyAssignment(i.label,i.statement.expression)]);if(u(e,t,s(e,i.label,i.statement.expression),r,n))return g.isArrowFunction(t)?{declaration:t,kind:y.MissingParentheses,expression:a,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:y.MissingReturnStatement,expression:a,statement:i,commentSource:i.statement.expression}}else if(g.isBlock(i)&&1===g.length(i.statements)){var o=g.first(i.statements);if(g.isLabeledStatement(o)&&g.isExpressionStatement(o.statement)){a=g.factory.createObjectLiteralExpression([g.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(e,t,s(e,o.label,o.statement.expression),r,n))return{declaration:t,kind:y.MissingReturnStatement,expression:a,statement:i,commentSource:o}}}}}function u(e,t,r,n,i){return i&&(r=(i=e.getSignatureFromDeclaration(t))?(g.hasSyntacticModifier(t,256)&&(r=e.createPromiseType(r)),i=e.createSignature(t,i.typeParameters,i.thisParameter,i.parameters,r,void 0,i.minArgumentCount,i.flags),e.createAnonymousType(void 0,g.createSymbolTable(),[i],[],void 0,void 0)):e.getAnyType()),e.isTypeAssignableTo(r,n)}function D(e,t,r,n){var i=g.getTokenAtPosition(t,r);if(i.parent){var a=g.findAncestor(i.parent,g.isFunctionLikeDeclaration);switch(n){case g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return a&&a.body&&a.type&&g.rangeContainsRange(a.type,i)?c(e,a,e.getTypeFromTypeNode(a.type),!1):void 0;case g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!a||!g.isCallExpression(a.parent)||!a.body)return;var o=a.parent.arguments.indexOf(a),o=e.getContextualTypeForArgumentAtIndex(a.parent,o);return o?c(e,a,o,!0):void 0;case g.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!g.isDeclarationName(i)||!g.isVariableLike(i.parent)&&!g.isJsxAttribute(i.parent))return;o=function(e){switch(e.kind){case 249:case 160:case 198:case 163:case 288:return e.initializer;case 280:return e.initializer&&(g.isJsxExpression(e.initializer)?e.initializer.expression:void 0);case 289:case 162:case 291:case 333:case 326:return}}(i.parent);return o&&g.isFunctionLikeDeclaration(o)&&o.body?c(e,o,e.getTypeAtLocation(i.parent),!0):void 0}}}function S(e,t,r,n){g.suppressLeadingAndTrailingTrivia(r);var i=g.probablyUsesSemicolons(t);e.replaceNode(t,n,g.factory.createReturnStatement(r),{leadingTriviaOption:g.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function T(e,t,r,n,i,a){n=a||g.needsParentheses(n)?g.factory.createParenthesizedExpression(n):n;g.suppressLeadingAndTrailingTrivia(i),g.copyComments(i,n),e.replaceNode(t,r.body,n)}function C(e,t,r,n){e.replaceNode(t,r.body,g.factory.createParenthesizedExpression(n))}m=g.codefix||(g.codefix={}),h="returnValueCorrect",v="fixAddReturnStatement",b="fixRemoveBracesFromArrowFunctionBody",x="fixWrapTheBlockWithParen",t=[g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,g.Diagnostics.Type_0_is_not_assignable_to_type_1.code,g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],(e=y=y||{})[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses",m.registerCodeFix({errorCodes:t,fixIds:[v,b,x],getCodeActions:function(e){var t,r,n,i,a,o,s,c,u,l,_=e.program,d=e.sourceFile,p=e.span.start,f=e.errorCode,p=D(_.getTypeChecker(),d,p,f);if(p)return p.kind===y.MissingReturnStatement?g.append([(c=e,u=p.expression,l=p.statement,f=g.textChanges.ChangeTracker.with(c,function(e){return S(e,c.sourceFile,u,l)}),m.createCodeFixAction(h,f,g.Diagnostics.Add_a_return_statement,v,g.Diagnostics.Add_all_missing_return_statement))],g.isArrowFunction(p.declaration)?(i=e,a=p.declaration,o=p.expression,s=p.commentSource,f=g.textChanges.ChangeTracker.with(i,function(e){return T(e,i.sourceFile,a,o,s,!1)}),m.createCodeFixAction(h,f,g.Diagnostics.Remove_braces_from_arrow_function_body,b,g.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)):void 0):[(t=e,r=p.declaration,n=p.expression,p=g.textChanges.ChangeTracker.with(t,function(e){return C(e,t.sourceFile,r,n)}),m.createCodeFixAction(h,p,g.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,x,g.Diagnostics.Wrap_all_object_literal_with_parentheses))]},getAllCodeActions:function(n){return m.codeFixAll(n,t,function(e,t){var r=D(n.program.getTypeChecker(),t.file,t.start,t.code);if(r)switch(n.fixId){case v:S(e,t.file,r.expression,r.statement);break;case b:if(!g.isArrowFunction(r.declaration))return;T(e,t.file,r.declaration,r.expression,r.commentSource,!1);break;case x:if(!g.isArrowFunction(r.declaration))return;C(e,t.file,r.declaration,r.expression);break;default:g.Debug.fail(JSON.stringify(n.fixId))}})}})}(ts=ts||{}),function(d){var p,e,l,t,_;function o(e,t,r,n){var i=d.getTokenAtPosition(e,t);if(d.isIdentifier(i)||d.isPrivateIdentifier(i)){var a=i.parent;if(d.isPropertyAccessExpression(a)){var o=d.skipConstraint(r.getTypeAtLocation(a.expression)),s=o.symbol;if(s&&s.declarations){e=d.find(s.declarations,d.isClassLike);if(e||!d.isPrivateIdentifier(i)){t=e||d.find(s.declarations,d.isInterfaceDeclaration);if(t&&!n.isSourceFileFromExternalLibrary(t.getSourceFile())){e=(o.target||o)!==r.getDeclaredTypeOfSymbol(s);if(e&&(d.isPrivateIdentifier(i)||d.isInterfaceDeclaration(t)))return;o=t.getSourceFile(),r=(e?32:0)|(d.startsWithUnderscore(i.text)?8:0),e=d.isSourceFileJS(o);return{kind:1,token:i,call:d.tryCast(a.parent,d.isCallExpression),modifierFlags:r,parentDeclaration:t,declSourceFile:o,isJSFile:e}}s=d.find(s.declarations,d.isEnumDeclaration);return!s||d.isPrivateIdentifier(i)||n.isSourceFileFromExternalLibrary(s.getSourceFile())?void 0:{kind:0,token:i,parentDeclaration:s}}}}}}function f(e,t,r,n,i){var a,o=n.text;i?221!==r.kind&&(a=r.name.getText(),a=s(d.factory.createIdentifier(a),o),e.insertNodeAfter(t,r,a)):d.isPrivateIdentifier(n)?(a=d.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),(n=c(r))?e.insertNodeAfter(t,n,a):e.insertNodeAtClassStart(t,r,a)):(r=d.getFirstConstructorWithBody(r))&&(o=s(d.factory.createThis(),o),e.insertNodeAtConstructorEnd(t,r,o))}function s(e,t){return d.factory.createExpressionStatement(d.factory.createAssignment(d.factory.createPropertyAccessExpression(e,t),d.factory.createIdentifier("undefined")))}function g(e,t,r){var n;return(216===r.parent.parent.kind?(n=r.parent.parent,n=r.parent===n.left?n.right:n.left,n=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(n))),e.typeToTypeNode(n,t,void 0)):(r=e.getContextualType(r.parent))?e.typeToTypeNode(r,void 0,void 0):void 0)||d.factory.createKeywordTypeNode(128)}function m(e,t,r,n,i,a){n=d.factory.createPropertyDeclaration(void 0,a?d.factory.createNodeArray(d.factory.createModifiersFromModifierFlags(a)):void 0,n,void 0,i,void 0),i=c(r);i?e.insertNodeAfter(t,i,n):e.insertNodeAtClassStart(t,r,n)}function c(e){for(var t,r=0,n=e.members;r<n.length;r++){var i=n[r];if(!d.isPropertyDeclaration(i))break;t=i}return t}function y(e,t,r,n,i,a,o,s){var c=p.createImportAdder(o,e.program,e.preferences,e.host),s=p.createMethodFromCallExpression(e,c,r,n,i,a,s),r=d.findAncestor(r,function(e){return d.isMethodDeclaration(e)||d.isConstructorDeclaration(e)});r&&r.parent===a?t.insertNodeAfter(o,r,s):t.insertNodeAtClassStart(o,a,s),c.writeFixes(t)}function h(e,t,r,n){var i=d.some(n.members,function(e){e=t.getTypeAtLocation(e);return!!(e&&402653316&e.flags)}),r=d.factory.createEnumMember(r,i?d.factory.createStringLiteral(r.text):void 0);e.replaceNode(n.getSourceFile(),n,d.factory.updateEnumDeclaration(n,n.decorators,n.modifiers,n.name,d.concatenate(n.members,d.singleElementArray(r))),{leadingTriviaOption:d.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:d.textChanges.TrailingTriviaOption.Exclude})}p=d.codefix||(d.codefix={}),l="addMissingMember",t=[d.Diagnostics.Property_0_does_not_exist_on_type_1.code,d.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,d.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,d.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,d.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],_="addMissingMember",p.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=o(t.sourceFile,t.span.start,t.program.getTypeChecker(),t.program);if(e){if(0!==e.kind)return d.concatenate(function(r,e){var n=e.parentDeclaration,i=e.declSourceFile,t=e.modifierFlags,a=e.token,o=e.call,s=e.isJSFile;if(void 0===o)return;if(d.isPrivateIdentifier(a))return;var c=a.text,e=function(t){return d.textChanges.ChangeTracker.with(r,function(e){return y(r,e,o,c,t,n,i,s)})},a=[p.createCodeFixAction(l,e(32&t),[32&t?d.Diagnostics.Declare_static_method_0:d.Diagnostics.Declare_method_0,c],_,d.Diagnostics.Add_all_missing_members)];8&t&&a.unshift(p.createCodeFixActionWithoutFixAll(l,e(8),[d.Diagnostics.Declare_private_method_0,c]));return a}(t,e),(r=t,(n=e).isJSFile?d.singleElementArray(function(e,t){var r=t.parentDeclaration,n=t.declSourceFile,i=t.modifierFlags,a=t.token;if(d.isInterfaceDeclaration(r))return;t=d.textChanges.ChangeTracker.with(e,function(e){return f(e,n,r,a,!!(32&i))});if(0===t.length)return;e=32&i?d.Diagnostics.Initialize_static_property_0:d.isPrivateIdentifier(a)?d.Diagnostics.Declare_a_private_field_named_0:d.Diagnostics.Initialize_property_0_in_the_constructor;return p.createCodeFixAction(l,t,[e,a.text],_,d.Diagnostics.Add_all_missing_members)}(r,n)):function(e,t){function r(t){return d.textChanges.ChangeTracker.with(e,function(e){return m(e,i,n,s,u,t)})}var n=t.parentDeclaration,i=t.declSourceFile,a=t.modifierFlags,o=t.token,s=o.text,c=32&a,u=g(e.program.getTypeChecker(),n,o),t=[p.createCodeFixAction(l,r(32&a),[c?d.Diagnostics.Declare_static_property_0:d.Diagnostics.Declare_property_0,s],_,d.Diagnostics.Add_all_missing_members)];if(c||d.isPrivateIdentifier(o))return t;8&a&&t.unshift(p.createCodeFixActionWithoutFixAll(l,r(8),[d.Diagnostics.Declare_private_property_0,s]));return t.push(function(e,t,r,n,i){var a=d.factory.createKeywordTypeNode(147),a=d.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,a,void 0),o=d.factory.createIndexSignature(void 0,void 0,[a],i),e=d.textChanges.ChangeTracker.with(e,function(e){return e.insertNodeAtClassStart(t,r,o)});return p.createCodeFixActionWithoutFixAll(l,e,[d.Diagnostics.Add_index_signature_for_property_0,n])}(e,i,n,o.text,u)),t}(r,n)));var r,n,i=e.token,a=e.parentDeclaration,e=d.textChanges.ChangeTracker.with(t,function(e){return h(e,t.program.getTypeChecker(),i,a)});return[p.createCodeFixAction(l,e,[d.Diagnostics.Add_missing_enum_member_0,i.text],_,d.Diagnostics.Add_all_missing_members)]}},fixIds:[_],getAllCodeActions:function(u){var l=u.program,i=l.getTypeChecker(),a=new d.Map,_=new d.Map;return p.createCombinedCodeActions(d.textChanges.ChangeTracker.with(u,function(c){p.eachDiagnostic(u,t,function(e){var t,r,n=o(e.file,e.start,i,u.program);n&&d.addToSeen(a,d.getNodeId(n.parentDeclaration)+"#"+n.token.text)&&(0===n.kind?(e=n.token,r=n.parentDeclaration,h(c,i,e,r)):(r=n.parentDeclaration,t=n.token,(r=d.getOrUpdate(_,r,function(){return[]})).some(function(e){return e.token.text===t.text})||r.push(n)))}),_.forEach(function(e,t){for(var s=p.getAllSupers(t,i),r=0,n=e;r<n.length;r++)!function(t){var e,r,n,i,a,o;s.some(function(e){e=_.get(e);return!!e&&e.some(function(e){return e.token.text===t.token.text})})||(e=t.parentDeclaration,r=t.declSourceFile,n=t.modifierFlags,i=t.token,a=t.call,o=t.isJSFile,a&&!d.isPrivateIdentifier(i)?y(u,c,a,i.text,32&n,e,r,o):o&&!d.isInterfaceDeclaration(e)?f(c,r,e,i,!!(32&n)):(o=g(l.getTypeChecker(),e,i),m(c,r,e,i.text,o,32&n)))}(n[r])})}))}}),(e={})[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(ts=ts||{}),function(i){var n,a,e;function o(e,t,r){var n=i.cast(function(e,t){var r=i.getTokenAtPosition(e,t.start),n=i.textSpanEnd(t);for(;r.end<n;)r=r.parent;return r}(t,r),i.isCallExpression),r=i.factory.createNewExpression(n.expression,n.typeArguments,n.arguments);e.replaceNode(t,n,r)}n=i.codefix||(i.codefix={}),a="addMissingNewOperator",e=[i.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,e=i.textChanges.ChangeTracker.with(e,function(e){return o(e,t,r)});return[n.createCodeFixAction(a,e,i.Diagnostics.Add_missing_new_operator_to_call,a,i.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[a],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){return o(e,r.sourceFile,t)})}})}(ts=ts||{}),function(a){var o,s,n,e;function c(e,t){return{type:"install package",file:e,packageName:t}}function u(e,t){t=a.cast(a.getTokenAtPosition(e,t),a.isStringLiteral).text,t=a.parsePackageName(t).packageName;return a.isExternalModuleNameRelative(t)?void 0:t}function l(e,t,r){return r===n?a.JsTyping.nodeCoreModules.has(e)?"@types/node":void 0:t.isKnownTypesPackageName(e)?a.getTypesPackageName(e):void 0}o=a.codefix||(a.codefix={}),s="installTypesPackage",n=a.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,e=[n,a.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.host,r=e.sourceFile,n=u(r,e.span.start);if(void 0!==n){e=l(n,t,e.errorCode);return void 0===e?[]:[o.createCodeFixAction("fixCannotFindModule",[],[a.Diagnostics.Install_0,e],s,a.Diagnostics.Install_all_missing_types_packages,c(r.fileName,e))]}},fixIds:[s],getAllCodeActions:function(i){return o.codeFixAll(i,e,function(e,t,r){var n=u(t.file,t.start);void 0!==n&&(i.fixId===s?(n=l(n,i.host,t.code))&&r.push(c(t.file.fileName,n)):a.Debug.fail("Bad fixId: "+i.fixId))})}})}(ts=ts||{}),function(s){var c,e,i;function a(e,t){t=s.getTokenAtPosition(e,t);return s.cast(t.parent,s.isClassLike)}function o(t,r,e,n,i){var a=s.getEffectiveBaseTypeNode(t),o=e.program.getTypeChecker(),a=o.getTypeAtLocation(a),o=o.getPropertiesOfType(a).filter(u),a=c.createImportAdder(r,e.program,i,e.host);c.createMissingMemberNodes(t,o,r,e,i,a,function(e){return n.insertNodeAtClassStart(r,t,e)}),a.writeFixes(n)}function u(e){e=s.getSyntacticModifierFlags(s.first(e.getDeclarations()));return!(8&e||!(128&e))}c=s.codefix||(s.codefix={}),e=[s.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,s.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],i="fixClassDoesntImplementInheritedAbstractMember",c.registerCodeFix({errorCodes:e,getCodeActions:function(t){var r=t.sourceFile,n=t.span,e=s.textChanges.ChangeTracker.with(t,function(e){return o(a(r,n.start),r,t,e,t.preferences)});return 0===e.length?void 0:[c.createCodeFixAction(i,e,s.Diagnostics.Implement_inherited_abstract_class,i,s.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[i],getAllCodeActions:function(r){var n=new s.Map;return c.codeFixAll(r,e,function(e,t){t=a(t.file,t.start);s.addToSeen(n,s.getNodeId(t))&&o(t,r.sourceFile,r,e,r.preferences)})}})}(ts=ts||{}),function(a){var o,s,t;function c(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function u(e,t){var r=a.getTokenAtPosition(e,t);if(107===r.kind){e=a.getContainingFunction(r),t=n(e.body);return t&&!t.expression.arguments.some(function(e){return a.isPropertyAccessExpression(e)&&e.expression===r})?{constructor:e,superCall:t}:void 0}}function n(e){return a.isExpressionStatement(e)&&a.isSuperCall(e.expression)?e:a.isFunctionLike(e)?void 0:a.forEachChild(e,n)}o=a.codefix||(a.codefix={}),s="classSuperMustPrecedeThisAccess",t=[a.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],o.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,r=u(t,r.start);if(r){var n=r.constructor,i=r.superCall,e=a.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n,i)});return[o.createCodeFixAction(s,e,a.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,s,a.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[s],getAllCodeActions:function(e){var n=e.sourceFile,i=new a.Map;return o.codeFixAll(e,t,function(e,t){var r=u(t.file,t.start);r&&(t=r.constructor,r=r.superCall,a.addToSeen(i,a.getNodeId(t.parent))&&c(e,n,t,r))})}})}(ts=ts||{}),function(i){var a,o,e;function s(e,t){t=i.getTokenAtPosition(e,t);return i.Debug.assert(i.isConstructorDeclaration(t.parent),"token should be at the constructor declaration"),t.parent}function c(e,t,r){var n=i.factory.createExpressionStatement(i.factory.createCallExpression(i.factory.createSuper(),void 0,i.emptyArray));e.insertNodeAtConstructorStart(t,r,n)}a=i.codefix||(i.codefix={}),o="constructorForDerivedNeedSuperCall",e=[i.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code],a.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=s(t,r.start),e=i.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n)});return[a.createCodeFixAction(o,e,i.Diagnostics.Add_missing_super_call,o,i.Diagnostics.Add_all_missing_super_calls)]},fixIds:[o],getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){return c(e,r.sourceFile,s(t.file,t.start))})}})}(ts=ts||{}),function(r){var n,i,e;function a(e,t){n.setJsonCompilerOptionValue(e,t,"experimentalDecorators",r.factory.createTrue())}n=r.codefix||(r.codefix={}),i="enableExperimentalDecorators",e=[r.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.program.getCompilerOptions().configFile;if(void 0!==t){e=r.textChanges.ChangeTracker.with(e,function(e){return a(e,t)});return[n.createCodeFixActionWithoutFixAll(i,e,r.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[i],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e){var t=r.program.getCompilerOptions().configFile;void 0!==t&&a(e,t)})}})}(ts=ts||{}),function(r){var n,i,e;function a(e,t){n.setJsonCompilerOptionValue(e,t,"jsx",r.factory.createStringLiteral("react"))}n=r.codefix||(r.codefix={}),i="fixEnableJsxFlag",e=[r.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.program.getCompilerOptions().configFile;if(void 0!==t){e=r.textChanges.ChangeTracker.with(e,function(e){return a(e,t)});return[n.createCodeFixActionWithoutFixAll(i,e,r.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[i],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e){var t=r.program.getCompilerOptions().configFile;void 0!==t&&a(e,t)})}})}(ts=ts||{}),function(o){var s;(s=o.codefix||(o.codefix={})).registerCodeFix({errorCodes:[o.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){var t=e.program.getCompilerOptions(),r=t.configFile;if(void 0!==r){var n=[],i=o.getEmitModuleKind(t);i>=o.ModuleKind.ES2015&&i<o.ModuleKind.ESNext&&(a=o.textChanges.ChangeTracker.with(e,function(e){s.setJsonCompilerOptionValue(e,r,"module",o.factory.createStringLiteral("esnext"))}),n.push(s.createCodeFixActionWithoutFixAll("fixModuleOption",a,[o.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"])));var a,t=o.getEmitScriptTarget(t);return(t<4||99<t)&&(a=o.textChanges.ChangeTracker.with(e,function(e){var t;o.getTsConfigObjectLiteralExpression(r)&&(t=[["target",o.factory.createStringLiteral("es2017")]],i===o.ModuleKind.CommonJS&&t.push(["module",o.factory.createStringLiteral("commonjs")]),s.setJsonCompilerOptionValues(e,r,t))}),n.push(s.createCodeFixActionWithoutFixAll("fixTargetOption",a,[o.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),n.length?n:void 0}}})}(ts=ts||{}),function(n){var i,a,t;function o(e,t,r){e.replaceNode(t,r,n.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function s(e,t){return n.cast(n.getTokenAtPosition(e,t).parent,n.isShorthandPropertyAssignment)}i=n.codefix||(n.codefix={}),a="fixPropertyAssignment",t=[n.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],i.registerCodeFix({errorCodes:t,fixIds:[a],getCodeActions:function(t){var r=s(t.sourceFile,t.span.start),e=n.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,r)});return[i.createCodeFixAction(a,e,[n.Diagnostics.Change_0_to_1,"=",":"],a,[n.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return i.codeFixAll(e,t,function(e,t){return o(e,t.file,s(t.file,t.start))})}})}(ts=ts||{}),function(o){var a,s,t;function c(e,t){e=o.getTokenAtPosition(e,t),t=o.getContainingClass(e).heritageClauses,e=t[0].getFirstToken();return 93===e.kind?{extendsToken:e,heritageClauses:t}:void 0}function u(e,t,r,n){if(e.replaceNode(t,r,o.factory.createToken(116)),2===n.length&&93===n[0].token&&116===n[1].token){r=n[1].getFirstToken(),n=r.getFullStart();e.replaceRange(t,{pos:n,end:n},o.factory.createToken(27));for(var i=t.text,a=r.end;a<i.length&&o.isWhiteSpaceSingleLine(i.charCodeAt(a));)a++;e.deleteRange(t,{pos:r.getStart(),end:a})}}a=o.codefix||(o.codefix={}),s="extendsInterfaceBecomesImplements",t=[o.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code],a.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=c(t,e.span.start);if(r){var n=r.extendsToken,i=r.heritageClauses,e=o.textChanges.ChangeTracker.with(e,function(e){return u(e,t,n,i)});return[a.createCodeFixAction(s,e,o.Diagnostics.Change_extends_to_implements,s,o.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[s],getAllCodeActions:function(e){return a.codeFixAll(e,t,function(e,t){var r=c(t.file,t.start);r&&u(e,t.file,r.extendsToken,r.heritageClauses)})}})}(ts=ts||{}),function(i){var n,a,o,e;function s(e,t,r){t=i.getTokenAtPosition(e,t);if(i.isIdentifier(t))return{node:t,className:r===o?i.getContainingClass(t).name.text:void 0}}function c(e,t,r){var n=r.node,r=r.className;i.suppressLeadingAndTrailingTrivia(n),e.replaceNode(t,n,i.factory.createPropertyAccessExpression(r?i.factory.createIdentifier(r):i.factory.createThis(),n))}n=i.codefix||(i.codefix={}),a="forgottenThisPropertyAccess",o=i.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e=[i.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,i.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,o],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=s(t,e.span.start,e.errorCode);if(r){e=i.textChanges.ChangeTracker.with(e,function(e){return c(e,t,r)});return[n.createCodeFixAction(a,e,[i.Diagnostics.Add_0_to_unresolved_variable,r.className||"this"],a,i.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[a],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){t=s(t.file,t.start,t.code);t&&c(e,r.sourceFile,t)})}})}(ts=ts||{}),function(l){!function(a){var o="fixInvalidJsxCharacters_expression",s="fixInvalidJsxCharacters_htmlEntity",e=[l.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,l.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];a.registerCodeFix({errorCodes:e,fixIds:[o,s],getCodeActions:function(e){var t=e.sourceFile,r=e.preferences,n=e.span,i=l.textChanges.ChangeTracker.with(e,function(e){return u(e,r,t,n.start,!1)}),e=l.textChanges.ChangeTracker.with(e,function(e){return u(e,r,t,n.start,!0)});return[a.createCodeFixAction(o,i,l.Diagnostics.Wrap_invalid_character_in_an_expression_container,o,l.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),a.createCodeFixAction(s,e,l.Diagnostics.Convert_invalid_character_to_its_html_entity_code,s,l.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){return u(e,r.preferences,t.file,t.start,r.fixId===s)})}});var c={">":"&gt;","}":"&rbrace;"};function u(e,t,r,n,i){var a,o=r.getText()[n];a=o,l.hasProperty(c,a)&&(o=i?c[o]:"{"+l.quote(r,t,o)+"}",e.replaceRangeWithText(r,{pos:n,end:n+1},o))}}(l.codefix||(l.codefix={}))}(ts=ts||{}),function(p){var _,d,f,c,g,t;function m(e,t,r){e.replaceNode(t,r.parent,p.factory.createKeywordTypeNode(152))}function y(e,t){return _.createCodeFixAction(d,e,t,c,p.Diagnostics.Delete_all_unused_declarations)}function h(e,t,r){e.delete(t,p.Debug.checkDefined(p.cast(r.parent,p.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function v(e){return 99===e.kind?p.tryCast(e.parent,p.isImportDeclaration):void 0}function b(e,t){return p.isVariableDeclarationList(t.parent)&&p.first(t.parent.getChildren(e))===t}function x(e,t,r){e.delete(t,232===r.parent.kind?r.parent:r)}function D(t,r,e){p.forEach(e.elements,function(e){return t.delete(r,e)})}function S(t,e,r,n){e!==p.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===n.kind&&(n=p.cast(n.parent,p.isInferTypeNode).typeParameter.name),p.isIdentifier(n)&&function(e){switch(e.parent.kind){case 160:case 159:return!0;case 249:switch(e.parent.parent.parent.kind){case 239:case 238:return!0}}return!1}(n)&&(t.replaceNode(r,n,p.factory.createIdentifier("_"+n.text)),p.isParameter(n.parent)&&p.getJSDocParameterTags(n.parent).forEach(function(e){p.isIdentifier(e.name)&&t.replaceNode(r,e.name,p.factory.createIdentifier("_"+e.name.text))})))}function T(e,t,r,n,i,a){var o,s,c,u,l,_,d;o=r,s=e,c=n,u=i,l=a,a=(i=t).parent,p.isParameter(a)?function(t,r,e,a,o,n){void 0===n&&(n=!1),function(e,t,r,n){var i=r.parent;switch(i.kind){case 165:var a=e.getSymbolAtLocation(i.name);if(p.isMemberSymbolInBaseType(a,e))return!1;case 166:return!0;case 251:return!i.name||!function(e,t,r){return!!p.FindAllReferences.Core.eachSymbolReferenceInFile(r,e,t,function(e){return p.isIdentifier(e)&&p.isCallExpression(e.parent)&&0<=e.parent.arguments.indexOf(e)})}(e,t,i.name)||C(i,r,n);case 208:case 209:return C(i,r,n);case 168:return!1;default:return p.Debug.failBadSyntaxKind(i)}}(a,r,e,n)&&(e.modifiers&&0<e.modifiers.length&&(!p.isIdentifier(e.name)||p.FindAllReferences.Core.isSymbolReferencedInFile(e.name,a,r))?e.modifiers.forEach(function(e){return t.deleteModifier(r,e)}):(t.delete(r,e),function(r,n,i){p.FindAllReferences.Core.eachSignatureCall(i.parent,o,a,function(e){var t=i.parent.parameters.indexOf(i);e.arguments.length>t&&r.delete(n,e.arguments[t])})}(t,r,e)))}(o,s,a,c,u,l):o.delete(s,p.isImportClause(a)?i:p.isComputedPropertyName(a)?a.parent:a),p.isIdentifier(t)&&(_=r,d=e,t=t,n=n,p.FindAllReferences.Core.eachSymbolReferenceInFile(t,n,d,function(e){p.isPropertyAccessExpression(e.parent)&&e.parent.name===e&&(e=e.parent),p.isBinaryExpression(e.parent)&&p.isExpressionStatement(e.parent.parent)&&e.parent.left===e&&_.delete(d,e.parent.parent)}))}function C(e,t,r){e=e.parameters,t=e.indexOf(t);return p.Debug.assert(-1!==t,"The parameter should already be in the list"),r?e.slice(t+1).every(function(e){return p.isIdentifier(e.name)&&!e.symbol.isReferenced}):t===e.length-1}_=p.codefix||(p.codefix={}),d="unusedIdentifier",f="unusedIdentifier_prefix",c="unusedIdentifier_delete",g="unusedIdentifier_infer",t=[p.Diagnostics._0_is_declared_but_its_value_is_never_read.code,p.Diagnostics._0_is_declared_but_never_used.code,p.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,p.Diagnostics.All_imports_in_import_declaration_are_unused.code,p.Diagnostics.All_destructured_elements_are_unused.code,p.Diagnostics.All_variables_are_unused.code,p.Diagnostics.All_type_parameters_are_unused.code],_.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.errorCode,r=e.sourceFile,n=e.program,i=n.getTypeChecker(),a=n.getSourceFiles(),o=p.getTokenAtPosition(r,e.span.start);if(p.isJSDocTemplateTag(o))return[y(p.textChanges.ChangeTracker.with(e,function(e){return e.delete(r,o)}),p.Diagnostics.Remove_template_tag)];if(29===o.kind)return[y(u=p.textChanges.ChangeTracker.with(e,function(e){return h(e,r,o)}),p.Diagnostics.Remove_type_parameters)];var s=v(o);if(s)return[y(u=p.textChanges.ChangeTracker.with(e,function(e){return e.delete(r,s)}),[p.Diagnostics.Remove_import_from_0,p.showModuleSpecifier(s)])];if(p.isObjectBindingPattern(o.parent)){if(p.isParameter(o.parent.parent)){var c=o.parent.elements,c=[1<c.length?p.Diagnostics.Remove_unused_declarations_for_Colon_0:p.Diagnostics.Remove_unused_declaration_for_Colon_0,p.map(c,function(e){return e.getText(r)}).join(", ")];return[y(p.textChanges.ChangeTracker.with(e,function(e){return D(e,r,o.parent)}),c)]}return[y(p.textChanges.ChangeTracker.with(e,function(e){return e.delete(r,o.parent.parent)}),p.Diagnostics.Remove_unused_destructuring_declaration)]}if(b(r,o))return[y(p.textChanges.ChangeTracker.with(e,function(e){return x(e,r,o.parent)}),p.Diagnostics.Remove_variable_statement)];var u,l,c=[];135===o.kind?(u=p.textChanges.ChangeTracker.with(e,function(e){return m(e,r,o)}),l=p.cast(o.parent,p.isInferTypeNode).typeParameter.name.text,c.push(_.createCodeFixAction(d,u,[p.Diagnostics.Replace_infer_0_with_unknown,l],g,p.Diagnostics.Replace_all_unused_infer_with_unknown))):(u=p.textChanges.ChangeTracker.with(e,function(e){return T(r,o,e,i,a,!1)})).length&&(l=p.isComputedPropertyName(o.parent)?o.parent:o,c.push(y(u,[p.Diagnostics.Remove_unused_declaration_for_Colon_0,l.getText(r)])));e=p.textChanges.ChangeTracker.with(e,function(e){return S(e,t,r,o)});return e.length&&c.push(_.createCodeFixAction(d,e,[p.Diagnostics.Prefix_0_with_an_underscore,o.getText(r)],f,p.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),c},fixIds:[f,c,g],getAllCodeActions:function(i){var a=i.sourceFile,e=i.program,o=e.getTypeChecker(),s=e.getSourceFiles();return _.codeFixAll(i,t,function(e,t){var r=p.getTokenAtPosition(a,t.start);switch(i.fixId){case f:S(e,t.code,a,r);break;case c:if(135===r.kind)break;var n=v(r);n?e.delete(a,n):p.isJSDocTemplateTag(r)?e.delete(a,r):29===r.kind?h(e,a,r):p.isObjectBindingPattern(r.parent)?p.isParameter(r.parent.parent)?D(e,a,r.parent):e.delete(a,r.parent.parent):b(a,r)?x(e,a,r.parent):T(a,r,e,o,s,!0);break;case g:135===r.kind&&m(e,a,r);break;default:p.Debug.fail(JSON.stringify(i.fixId))}})}})}(ts=ts||{}),function(u){var r,n,t;function i(e,t,r,n,i){var a=u.getTokenAtPosition(t,r),o=u.findAncestor(a,u.isStatement);o.getStart(t)!==a.getStart(t)&&(i=JSON.stringify({statementKind:u.Debug.formatSyntaxKind(o.kind),tokenKind:u.Debug.formatSyntaxKind(a.kind),errorCode:i,start:r,length:n}),u.Debug.fail("Token and statement should start at the same point. "+i));var s,c=(u.isBlock(o.parent)?o.parent:o).parent;if(!u.isBlock(o.parent)||o===u.first(o.parent.statements))switch(c.kind){case 234:if(c.elseStatement){if(u.isBlock(o.parent))break;return void e.replaceNode(t,o,u.factory.createBlock(u.emptyArray))}case 236:case 237:return void e.delete(t,c)}u.isBlock(o.parent)?(s=r+n,n=u.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!t(a))break;r=a}return r}(u.sliceAfter(o.parent.statements,o),function(e){return e.pos<s}),"Some statement should be last"),e.deleteNodeRange(t,o,n)):e.delete(t,o)}r=u.codefix||(u.codefix={}),n="fixUnreachableCode",t=[u.Diagnostics.Unreachable_code_detected.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=u.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.span.length,t.errorCode)});return[r.createCodeFixAction(n,e,u.Diagnostics.Remove_unreachable_code,n,u.Diagnostics.Remove_all_unreachable_code)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t.start,t.length,t.code)})}})}(ts=ts||{}),function(a){var r,n,t;function i(e,t,r){var n=a.getTokenAtPosition(t,r),i=a.cast(n.parent,a.isLabeledStatement),r=n.getStart(t),n=i.statement.getStart(t),i=a.positionsAreOnSameLine(r,n,t)?n:a.skipTrivia(t.text,a.findChildOfKind(i,58,t).end,!0);e.deleteRange(t,{pos:r,end:i})}r=a.codefix||(a.codefix={}),n="fixUnusedLabel",t=[a.Diagnostics.Unused_label.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=a.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,a.Diagnostics.Remove_unused_label,n,a.Diagnostics.Remove_all_unused_labels)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t.start)})}})}(ts=ts||{}),function(u){var l,n,_,r;function d(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function p(e,t,r){t=u.findAncestor(u.getTokenAtPosition(e,t),i),t=t&&t.type;return t&&{typeNode:t,type:r.getTypeFromTypeNode(t)}}function i(e){switch(e.kind){case 224:case 169:case 170:case 251:case 167:case 171:case 190:case 165:case 164:case 160:case 163:case 162:case 168:case 254:case 206:case 249:return!0;default:return!1}}l=u.codefix||(u.codefix={}),n="fixJSDocTypes_plain",_="fixJSDocTypes_nullable",r=[u.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code],l.registerCodeFix({errorCodes:r,getCodeActions:function(i){var a=i.sourceFile,o=i.program.getTypeChecker(),e=p(a,i.span.start,o);if(e){var s=e.typeNode,t=e.type,c=s.getText(a),e=[r(t,n,u.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 305===s.kind&&e.push(r(o.getNullableType(t,32768),_,u.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),e}function r(t,e,r){var n=u.textChanges.ChangeTracker.with(i,function(e){return d(e,a,s,t,o)});return l.createCodeFixAction("jdocTypes",n,[u.Diagnostics.Change_0_to_1,c,o.typeToString(t)],e,r)}},fixIds:[n,_],getAllCodeActions:function(e){var n=e.fixId,t=e.program,i=e.sourceFile,a=t.getTypeChecker();return l.codeFixAll(e,r,function(e,t){var r=p(t.file,t.start,a);r&&(t=r.typeNode,r=r.type,r=305===t.kind&&n===_?a.getNullableType(r,32768):r,d(e,i,t,r,a))})}})}(ts=ts||{}),function(n){var i,a,t;function o(e,t,r){e.replaceNodeWithText(t,r,r.text+"()")}function s(e,t){t=n.getTokenAtPosition(e,t);if(n.isPropertyAccessExpression(t.parent)){for(var r=t.parent;n.isPropertyAccessExpression(r.parent);)r=r.parent;return r.name}if(n.isIdentifier(t))return t}i=n.codefix||(n.codefix={}),a="fixMissingCallParentheses",t=[n.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead.code],i.registerCodeFix({errorCodes:t,fixIds:[a],getCodeActions:function(t){var r=s(t.sourceFile,t.span.start);if(r){var e=n.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,r)});return[i.createCodeFixAction(a,e,n.Diagnostics.Add_missing_call_parentheses,a,n.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return i.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&o(e,t.file,r)})}})}(ts=ts||{}),function(a){var i,o,e;function s(e,t){var r,t=a.getTokenAtPosition(e,t),n=a.getContainingFunction(t);if(n){switch(n.kind){case 165:r=n.name;break;case 251:case 208:r=a.findChildOfKind(n,97,e);break;case 209:r=a.findChildOfKind(n,20,e)||a.first(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(t=n).type||(a.isVariableDeclaration(t.parent)&&t.parent.type&&a.isFunctionTypeNode(t.parent.type)?t.parent.type.type:void 0)}}}function c(e,t,r){var n=r.insertBefore,i=r.returnType;i&&((r=a.getEntityNameFromTypeNode(i))&&78===r.kind&&"Promise"===r.text||e.replaceNode(t,i,a.factory.createTypeReferenceNode("Promise",a.factory.createNodeArray([i])))),e.insertModifierBefore(t,129,n)}i=a.codefix||(a.codefix={}),o="fixAwaitInSyncFunction",e=[a.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,a.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code],i.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=s(t,r.start);if(n){e=a.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n)});return[i.createCodeFixAction(o,e,a.Diagnostics.Add_async_modifier_to_containing_function,o,a.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[o],getAllCodeActions:function(r){var n=new a.Map;return i.codeFixAll(r,e,function(e,t){t=s(t.file,t.start);t&&a.addToSeen(n,a.getNodeId(t.insertBefore))&&c(e,r.sourceFile,t)})}})}(ts=ts||{}),function(c){var u,e,t;function o(e,t,r,n,i){var a,o;if(n===c.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=(a=t)+r;else if(n===c.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var s=i.program.getTypeChecker(),r=c.getTokenAtPosition(e,t).parent;c.Debug.assert(c.isAccessor(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");t=r.parent;c.Debug.assert(c.isClassLike(t),"erroneous accessors should only be inside classes");t=c.singleOrUndefined(u.getAllSupers(t,s));if(!t)return[];r=c.unescapeLeadingUnderscores(c.getTextOfPropertyName(r.name)),r=s.getPropertyOfType(s.getTypeAtLocation(t),r);if(!r||!r.valueDeclaration)return[];a=r.valueDeclaration.pos,o=r.valueDeclaration.end,e=c.getSourceFileOfNode(r.valueDeclaration)}else c.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+n);return u.generateAccessorFromProperty(e,i.program,a,o,i,c.Diagnostics.Generate_get_and_set_accessors.message)}u=c.codefix||(c.codefix={}),e=[c.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,c.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],t="fixPropertyOverrideAccessor",u.registerCodeFix({errorCodes:e,getCodeActions:function(e){e=o(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(e)return[u.createCodeFixAction(t,e,c.Diagnostics.Generate_get_and_set_accessors,t,c.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[t],getAllCodeActions:function(a){return u.codeFixAll(a,e,function(e,t){t=o(t.file,t.start,t.length,t.code,a);if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];e.pushRaw(a.sourceFile,i)}})}})}(ts=ts||{}),function(D){var S,l,t;function _(e,t,r,n,i,a,o,s,c){if(D.isParameterPropertyModifier(r.kind)||78===r.kind||25===r.kind||107===r.kind){var u=r.parent,l=S.createImportAdder(t,i,c,s);switch(n=function(e){switch(e){case D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case D.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case D.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return D.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case D.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return D.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case D.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Member_0_implicitly_has_an_1_type.code}return e}(n)){case D.Diagnostics.Member_0_implicitly_has_an_1_type.code:case D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(D.isVariableDeclaration(u)&&o(u)||D.isPropertyDeclaration(u)||D.isPropertySignature(u))return T(e,l,t,u,i,s,a),l.writeFixes(e),u;if(D.isPropertyAccessExpression(u)){var _=A(u.name,i,a),_=D.getTypeNodeIfAccessible(_,u,i,s);return _&&(d=D.factory.createJSDocTypeTag(void 0,D.factory.createJSDocTypeExpression(_),""),N(e,t,D.cast(u.parent.parent,D.isExpressionStatement),[d])),l.writeFixes(e),u}return;case D.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var d=i.getTypeChecker().getSymbolAtLocation(r);return d&&d.valueDeclaration&&D.isVariableDeclaration(d.valueDeclaration)&&o(d.valueDeclaration)?(T(e,l,t,d.valueDeclaration,i,s,a),l.writeFixes(e),d.valueDeclaration):void 0}var p,f,g,m,y,h,v,b,x=D.getContainingFunction(r);if(void 0!==x){switch(n){case D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(D.isSetAccessorDeclaration(x)){C(e,l,t,x,i,s,a),p=x;break}case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:o(x)&&(function(e,t,r,n,i,a,o,s){if(D.isIdentifier(n.name))if(n=function(e,t,r,n){t=F(e,t,r,n);return t&&P(r,t,n).parameters(e)||e.parameters.map(function(e){return{declaration:e,type:D.isIdentifier(e.name)?A(e.name,r,n):r.getTypeChecker().getAnyType()}})}(i,r,a,s),D.Debug.assert(i.parameters.length===n.length,"Parameter count and inference count should match"),D.isInJSFile(i))k(e,r,n,a,o);else{s=D.isArrowFunction(i)&&!D.findChildOfKind(i,20,r);s&&e.insertNodeBefore(r,D.first(i.parameters),D.factory.createToken(20));for(var c=0,u=n;c<u.length;c++){var l=u[c],_=l.declaration,l=l.type;!_||_.type||_.initializer||E(e,t,r,_,l,a,o)}s&&e.insertNodeAfter(r,D.last(i.parameters),D.factory.createToken(21))}}(e,l,t,b=D.cast(u,D.isParameter),x,i,s,a),p=b);break;case D.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case D.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:D.isGetAccessorDeclaration(x)&&D.isIdentifier(x.name)&&(E(e,l,t,x,A(x.name,i,a),i,s),p=x);break;case D.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:D.isSetAccessorDeclaration(x)&&(C(e,l,t,x,i,s,a),p=x);break;case D.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:D.textChanges.isThisTypeAnnotatable(x)&&o(x)&&(f=e,h=s,(b=F(m=x,g=t,y=i,v=a))&&b.length&&(v=P(y,b,v).thisParameter(),(h=D.getTypeNodeIfAccessible(v,m,y,h))&&(D.isInJSFile(m)?N(f,g,m,[D.factory.createJSDocThisTag(void 0,D.factory.createJSDocTypeExpression(h))]):f.tryInsertThisTypeAnnotation(g,m,h))),p=x);break;default:return D.Debug.fail(String(n))}return l.writeFixes(e),p}}}function T(e,t,r,n,i,a,o){D.isIdentifier(n.name)&&E(e,t,r,n,A(n.name,i,o),i,a)}function C(e,t,r,n,i,a,o){var s,c=D.firstOrUndefined(n.parameters);c&&D.isIdentifier(n.name)&&D.isIdentifier(c.name)&&((s=A(n.name,i,o))===i.getTypeChecker().getAnyType()&&(s=A(c.name,i,o)),D.isInJSFile(n)?k(e,r,[{declaration:c,type:s}],i,a):E(e,t,r,c,s,i,a))}function E(e,t,r,n,i,a,o){var s=D.getTypeNodeIfAccessible(i,n,a,o);s&&(D.isInJSFile(r)&&162!==n.kind?(i=D.isVariableDeclaration(n)?D.tryCast(n.parent.parent,D.isVariableStatement):n)&&(o=D.factory.createJSDocTypeExpression(s),N(e,r,i,[D.isGetAccessorDeclaration(n)?D.factory.createJSDocReturnTag(void 0,o,""):D.factory.createJSDocTypeTag(void 0,o,"")])):function(e,t,r,n,i,a){a=S.tryGetAutoImportableReferenceFromTypeNode(e,a);if(a&&n.tryInsertTypeAnnotation(r,t,a.typeNode))return D.forEach(a.symbols,function(e){return i.addImportFromExportedSymbol(e,!0)}),!0;return!1}(s,n,r,e,t,D.getEmitScriptTarget(a.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,n,s))}function k(e,t,r,n,i){var a=r.length&&r[0].declaration.parent;a&&N(e,t,a,D.mapDefined(r,function(e){var t=e.declaration;if(!t.initializer&&!D.getJSDocType(t)&&D.isIdentifier(t.name)){var r=e.type&&D.getTypeNodeIfAccessible(e.type,t,n,i),t=D.factory.cloneNode(t.name);return D.setEmitFlags(t,3584),r&&D.factory.createJSDocParameterTag(void 0,t,!!e.isOptional,D.factory.createJSDocTypeExpression(r),!1,"")}}))}function N(e,t,r,n){var i,a=D.mapDefined(r.jsDoc,function(e){return e.comment}),o=D.flatMapToMutable(r.jsDoc,function(e){return e.tags}),n=n.filter(function(r){return!o||!o.some(function(e,t){e=function(e,t){if(e.kind!==t.kind)return;switch(e.kind){case 326:var r=e,n=t;return D.isIdentifier(r.name)&&D.isIdentifier(n.name)&&r.name.escapedText===n.name.escapedText?D.factory.createJSDocParameterTag(void 0,n.name,!1,n.typeExpression,n.isNameFirst,r.comment):void 0;case 327:return D.factory.createJSDocReturnTag(void 0,t.typeExpression,e.comment)}}(e,r);return e&&(o[t]=e),!!e})}),n=D.factory.createJSDocComment(a.join("\n"),D.factory.createNodeArray(__spreadArrays(o||D.emptyArray,n))),i=209===r.kind?(163!==(i=r).parent.kind?i.parent:i).parent:r;i.jsDoc=r.jsDoc,i.jsDocCache=r.jsDocCache,e.insertJsdocCommentBefore(t,i,n)}function x(e,t,r){return D.mapDefined(D.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),function(e){return 0!==e.kind?D.tryCast(e.node,D.isIdentifier):void 0})}function A(e,t,r){return P(t,x(e,t,r),r).single()}function F(e,t,r,n){switch(e.kind){case 166:a=D.findChildOfKind(e,132,t);break;case 209:case 208:var i=e.parent,a=(D.isVariableDeclaration(i)&&D.isIdentifier(i.name)?i:e).name;break;case 251:case 165:a=e.name}if(a)return x(a,r,n)}function P(d,i,p){var g=d.getTypeChecker(),a={string:function(){return g.getStringType()},number:function(){return g.getNumberType()},Array:function(e){return g.createArrayType(e)},Promise:function(e){return g.createPromiseType(e)}},o=[g.getStringType(),g.getNumberType(),g.createArrayType(g.getAnyType()),g.createPromiseType(g.getAnyType())];return{single:function(){return m(f(i))},parameters:function(l){if(0===i.length||!l.parameters)return;for(var e=c(),t=0,r=i;t<r.length;t++){var n=r[t];p.throwIfCancellationRequested(),u(n,e)}var _=__spreadArrays(e.constructs||[],e.calls||[]);return l.parameters.map(function(e,t){for(var r=[],n=D.isRestParameter(e),i=!1,a=0,o=_;a<o.length;a++){var s=o[a];if(s.argumentTypes.length<=t)i=D.isInJSFile(l),r.push(g.getUndefinedType());else if(n)for(var c=t;c<s.argumentTypes.length;c++)r.push(g.getBaseTypeOfLiteralType(s.argumentTypes[c]));else r.push(g.getBaseTypeOfLiteralType(s.argumentTypes[t]))}D.isIdentifier(e.name)&&(u=f(x(e.name,d,p)),r.push.apply(r,n?D.mapDefined(u,g.getElementTypeOfArrayType):u));var u=m(r);return{type:n?g.createArrayType(u):u,isOptional:i&&!n,declaration:e}})},thisParameter:function(){for(var e=c(),t=0,r=i;t<r.length;t++){var n=r[t];p.throwIfCancellationRequested(),u(n,e)}return m(e.candidateThisTypes||D.emptyArray)}};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(e){for(var t=c(),r=0,n=e;r<n.length;r++){var i=n[r];p.throwIfCancellationRequested(),u(i,t)}return _(t)}function u(e,t){for(;D.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;switch(e.parent.kind){case 233:s=e,v(t,D.isCallExpression(s)?g.getVoidType():g.getAnyType());break;case 215:t.isNumber=!0;break;case 214:!function(e,t){switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}}(e.parent,t);break;case 216:!function(e,t,r){switch(t.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 64:case 66:case 65:case 67:case 68:case 72:case 73:case 77:case 69:case 71:case 70:case 40:case 29:case 32:case 31:case 33:var n=g.getTypeAtLocation(t.left===e?t.right:t.left);1056&n.flags?v(r,n):r.isNumber=!0;break;case 63:case 39:n=g.getTypeAtLocation(t.left===e?t.right:t.left);1056&n.flags?v(r,n):296&n.flags?r.isNumber=!0:402653316&n.flags?r.isString=!0:1&n.flags||(r.isNumberOrString=!0);break;case 62:case 34:case 36:case 37:case 35:v(r,g.getTypeAtLocation(t.left===e?t.right:t.left));break;case 100:e===t.left&&(r.isString=!0);break;case 56:case 60:e!==t.left||249!==e.parent.parent.kind&&!D.isAssignmentExpression(e.parent.parent,!0)||v(r,g.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 284:case 285:o=e.parent,v(t,g.getTypeAtLocation(o.parent.parent.expression));break;case 203:case 204:e.parent.expression===e?function(e,t){var r={argumentTypes:[],return_:c()};if(e.arguments)for(var n=0,i=e.arguments;n<i.length;n++){var a=i[n];r.argumentTypes.push(g.getTypeAtLocation(a))}u(e,r.return_),(203===e.kind?t.calls||(t.calls=[]):t.constructs||(t.constructs=[])).push(r)}(e.parent,t):l(e,t);break;case 201:!function(e,t){var r=D.escapeLeadingUnderscores(e.name.text);t.properties||(t.properties=new D.Map);var n=t.properties.get(r)||c();u(e,n),t.properties.set(r,n)}(e.parent,t);break;case 202:i=e.parent,s=t,!void((a=e)===i.argumentExpression?s.isNumberOrString=!0:(o=g.getTypeAtLocation(i.argumentExpression),a=c(),u(i,a),296&o.flags?s.numberIndex=a:s.stringIndex=a));break;case 288:case 289:n=e.parent,a=t,n=(D.isVariableDeclaration(n.parent.parent)?n.parent:n).parent,!void b(a,g.getTypeAtLocation(n));break;case 163:r=e.parent,b(t,g.getTypeAtLocation(r.parent));break;case 249:n=e.parent,r=n.name,n=n.initializer;if(e===r){n&&v(t,g.getTypeAtLocation(n));break}default:return l(e,t),0}var r,n,i,a,o,s}function l(e,t){D.isExpressionNode(e)&&v(t,g.getContextualType(e))}function s(e){return m(_(e))}function m(e){if(!e.length)return g.getAnyType();var t=g.getUnionType([g.getStringType(),g.getNumberType()]),r=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)for(var a=i[n],o=0,s=t;o<s.length;o++){var c=s[o],u=c.high,c=c.low;u(a)&&(D.Debug.assert(!c(a),"Priority can't have both low and high"),r.push(c))}return e.filter(function(t){return r.every(function(e){return!e(t)})})}(e,[{high:function(e){return e===g.getStringType()||e===g.getNumberType()},low:function(e){return e===t}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(e){return!(114689&e.flags||16&D.getObjectFlags(e))},low:function(e){return!!(16&D.getObjectFlags(e))}}]),e=r.filter(function(e){return 16&D.getObjectFlags(e)});return e.length&&(r=r.filter(function(e){return!(16&D.getObjectFlags(e))})).push(function(n){if(1===n.length)return n[0];for(var e=[],t=[],r=[],i=[],a=!1,o=!1,s=D.createMultiMap(),c=0,u=n;c<u.length;c++){for(var l=u[c],_=0,d=g.getPropertiesOfType(l);_<d.length;_++){var p=d[_];s.add(p.name,g.getTypeOfSymbolAtLocation(p,p.valueDeclaration))}e.push.apply(e,g.getSignaturesOfType(l,0)),t.push.apply(t,g.getSignaturesOfType(l,1)),l.stringIndexInfo&&(r.push(l.stringIndexInfo.type),a=a||l.stringIndexInfo.isReadonly),l.numberIndexInfo&&(i.push(l.numberIndexInfo.type),o=o||l.numberIndexInfo.isReadonly)}var f=D.mapEntries(s,function(e,t){var r=t.length<n.length?16777216:0,r=g.createSymbol(4|r,e);return r.type=g.getUnionType(t),[e,r]});return g.createAnonymousType(n[0].symbol,f,e,t,r.length?g.createIndexInfo(g.getUnionType(r),a):void 0,i.length?g.createIndexInfo(g.getUnionType(i),o):void 0)}(e)),g.getWidenedType(g.getUnionType(r.map(g.getBaseTypeOfLiteralType),2))}function _(e){var t,r,n=[];return e.isNumber&&n.push(g.getNumberType()),e.isString&&n.push(g.getStringType()),e.isNumberOrString&&n.push(g.getUnionType([g.getStringType(),g.getNumberType()])),e.numberIndex&&n.push(g.createArrayType(s(e.numberIndex))),(null!==(t=e.properties)&&void 0!==t&&t.size||null!==(r=e.calls)&&void 0!==r&&r.length||null!==(r=e.constructs)&&void 0!==r&&r.length||e.stringIndex)&&n.push(function(e){var n=new D.Map;e.properties&&e.properties.forEach(function(e,t){var r=g.createSymbol(4,t);r.type=s(e),n.set(t,r)});var t=e.calls?[h(e.calls)]:[],r=e.constructs?[h(e.constructs)]:[],e=e.stringIndex&&g.createIndexInfo(s(e.stringIndex),!1);return g.createAnonymousType(void 0,n,t,r,e,void 0)}(e)),n.push.apply(n,(e.candidateTypes||[]).map(function(e){return g.getBaseTypeOfLiteralType(e)})),n.push.apply(n,function(t){if(!t.properties||!t.properties.size)return[];var e=o.filter(function(e){return n=e,!!(e=t).properties&&!D.forEachEntry(e.properties,function(e,t){var r=g.getTypeOfPropertyOfType(n,t);return!r||(e.calls?!g.getSignaturesOfType(r,0).length||!g.isTypeAssignableTo(r,(t=e.calls,g.createAnonymousType(void 0,D.createSymbolTable(),[h(t)],D.emptyArray,void 0,void 0))):!g.isTypeAssignableTo(r,s(e)))});var n});if(0<e.length&&e.length<3)return e.map(function(e){return function(e,t){if(!(4&D.getObjectFlags(e)&&t.properties))return e;var r=e.target,n=D.singleOrUndefined(r.typeParameters);if(!n)return e;var i=[];return t.properties.forEach(function(e,t){t=g.getTypeOfPropertyOfType(r,t);D.Debug.assert(!!t,"generic should have all the properties of its reference."),i.push.apply(i,y(t,s(e),n))}),a[e.symbol.escapedName](m(i))}(e,t)});return[]}(e)),n}function y(e,t,r){if(e===r)return[t];if(3145728&e.flags)return D.flatMap(e.types,function(e){return y(e,t,r)});if(4&D.getObjectFlags(e)&&4&D.getObjectFlags(t)){var n=g.getTypeArguments(e),i=g.getTypeArguments(t),a=[];if(n&&i)for(var o=0;o<n.length;o++)i[o]&&a.push.apply(a,y(n[o],i[o],r));return a}var s=g.getSignaturesOfType(e,0),e=g.getSignaturesOfType(t,0);return 1===s.length&&1===e.length?function(e,t,r){for(var n=[],i=0;i<e.parameters.length;i++){var a=e.parameters[i],o=t.parameters[i],s=e.declaration&&D.isRestParameter(e.declaration.parameters[i]);if(!o)break;a=g.getTypeOfSymbolAtLocation(a,a.valueDeclaration),s=s&&g.getElementTypeOfArrayType(a);s&&(a=s);o=o.type||g.getTypeOfSymbolAtLocation(o,o.valueDeclaration);n.push.apply(n,y(a,o,r))}var c=g.getReturnTypeOfSignature(e),u=g.getReturnTypeOfSignature(t);return n.push.apply(n,y(c,u,r)),n}(s[0],e[0],r):[]}function h(r){for(var n=[],e=Math.max.apply(Math,r.map(function(e){return e.argumentTypes.length})),t=0;t<e;t++)!function(t){var e=g.createSymbol(1,D.escapeLeadingUnderscores("arg"+t));e.type=m(r.map(function(e){return e.argumentTypes[t]||g.getUndefinedType()})),r.some(function(e){return void 0===e.argumentTypes[t]})&&(e.flags|=16777216),n.push(e)}(t);var i=s(function r(e){for(var n=new D.Map,t=0,i=e;t<i.length;t++){var a=i[t];a.properties&&a.properties.forEach(function(e,t){n.has(t)||n.set(t,[]),n.get(t).push(e)})}var o=new D.Map;return n.forEach(function(e,t){o.set(t,r(e))}),{isNumber:e.some(function(e){return e.isNumber}),isString:e.some(function(e){return e.isString}),isNumberOrString:e.some(function(e){return e.isNumberOrString}),candidateTypes:D.flatMap(e,function(e){return e.candidateTypes}),properties:o,calls:D.flatMap(e,function(e){return e.calls}),constructs:D.flatMap(e,function(e){return e.constructs}),numberIndex:D.forEach(e,function(e){return e.numberIndex}),stringIndex:D.forEach(e,function(e){return e.stringIndex}),candidateThisTypes:D.flatMap(e,function(e){return e.candidateThisTypes}),inferredTypes:void 0}}(r.map(function(e){return e.return_})));return g.createSignature(void 0,void 0,void 0,n,i,void 0,e,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}S=D.codefix||(D.codefix={}),l="inferFromUsage",t=[D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,D.Diagnostics.Variable_0_implicitly_has_an_1_type.code,D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,D.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,D.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,D.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,D.Diagnostics.Member_0_implicitly_has_an_1_type.code,D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,D.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,D.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],S.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t,r=e.sourceFile,n=e.program,i=e.span.start,a=e.errorCode,o=e.cancellationToken,s=e.host,c=e.preferences,u=D.getTokenAtPosition(r,i),i=D.textChanges.ChangeTracker.with(e,function(e){t=_(e,r,u,a,n,o,D.returnTrue,s,c)}),e=t&&D.getNameOfDeclaration(t);return e&&0!==i.length?[S.createCodeFixAction(l,i,[function(e,t){switch(e){case D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case D.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.isSetAccessorDeclaration(D.getContainingFunction(t))?D.Diagnostics.Infer_type_of_0_from_usage:D.Diagnostics.Infer_parameter_types_from_usage;case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Infer_parameter_types_from_usage;case D.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return D.Diagnostics.Infer_this_type_of_0_from_usage;default:return D.Diagnostics.Infer_type_of_0_from_usage}}(a,u),e.getText(r)],l,D.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[l],getAllCodeActions:function(e){var r=e.sourceFile,n=e.program,i=e.cancellationToken,a=e.host,o=e.preferences,s=D.nodeSeenTracker();return S.codeFixAll(e,t,function(e,t){_(e,r,D.getTokenAtPosition(t.file,t.start),t.code,n,i,s,a,o)})}}),S.addJSDocTags=N}(ts=ts||{}),function(s){var c,u,e;function l(e,t,r){if(!s.isInJSFile(e)){var n=s.getTokenAtPosition(e,r),e=s.findAncestor(n,s.isFunctionLikeDeclaration),r=null==e?void 0:e.type;if(r){n=t.getTypeFromTypeNode(r),e=t.getAwaitedType(n)||t.getVoidType(),t=t.typeToTypeNode(e,r,void 0);return t?{returnTypeNode:r,returnType:n,promisedTypeNode:t,promisedType:e}:void 0}}}function _(e,t,r,n){e.replaceNode(t,r,s.factory.createTypeReferenceNode("Promise",[n]))}c=s.codefix||(s.codefix={}),u="fixReturnTypeInAsyncFunction",e=[s.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],c.registerCodeFix({errorCodes:e,fixIds:[u],getCodeActions:function(e){var t=e.sourceFile,r=e.program,n=e.span,i=r.getTypeChecker(),r=l(t,r.getTypeChecker(),n.start);if(r){var a=r.returnTypeNode,n=r.returnType,o=r.promisedTypeNode,r=r.promisedType,e=s.textChanges.ChangeTracker.with(e,function(e){return _(e,t,a,o)});return[c.createCodeFixAction(u,e,[s.Diagnostics.Replace_0_with_Promise_1,i.typeToString(n),i.typeToString(r)],u,s.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(n){return c.codeFixAll(n,e,function(e,t){var r=l(t.file,n.program.getTypeChecker(),t.start);r&&_(e,t.file,r.returnTypeNode,r.promisedTypeNode)})}})}(ts=ts||{}),function(o){var s,c,u,t;function l(e,t,r,n){var i=o.getLineAndCharacterOfPosition(t,r).line;n&&!o.tryAddToSet(n,i)||e.insertCommentBeforeLine(t,i,r," @ts-ignore")}s=o.codefix||(o.codefix={}),u=c="disableJsDiagnostics",t=o.mapDefined(Object.keys(o.Diagnostics),function(e){e=o.Diagnostics[e];return e.category===o.DiagnosticCategory.Error?e.code:void 0}),s.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.program,n=e.span,i=e.host,a=e.formatContext;if(o.isInJSFile(t)&&o.isCheckJsEnabledForFile(t,r.getCompilerOptions())){a=t.checkJsDirective?"":o.getNewLineOrDefaultFromHost(i,a.options),a=[s.createCodeFixActionWithoutFixAll(c,[s.createFileTextChanges(t.fileName,[o.createTextChange(t.checkJsDirective?o.createTextSpanFromBounds(t.checkJsDirective.pos,t.checkJsDirective.end):o.createTextSpan(0,0),"// @ts-nocheck"+a)])],o.Diagnostics.Disable_checking_for_this_file)];return o.textChanges.isValidLocationToAddComment(t,n.start)&&a.unshift(s.createCodeFixAction(c,o.textChanges.ChangeTracker.with(e,function(e){return l(e,t,n.start)}),o.Diagnostics.Ignore_this_error_message,u,o.Diagnostics.Add_ts_ignore_to_all_error_messages)),a}},fixIds:[u],getAllCodeActions:function(e){var r=new o.Set;return s.codeFixAll(e,t,function(e,t){o.textChanges.isValidLocationToAddComment(t.file,t.start)&&l(e,t.file,t.start,r)})}})}(ts=ts||{}),function(A){var e;function F(e){return{trackSymbol:A.noop,moduleResolverHost:A.getModuleSpecifierResolverHost(e.program,e.host)}}function m(e,t,r,n,i,a,o){o=e.typeToTypeNode(r,n,a,o);if(o&&A.isImportTypeNode(o)){i=I(o,i);if(i)return O(t,i.symbols),i.typeNode}return o}function P(e,t,r,n,i){for(var a=[],o=0;o<e;o++){var s=A.factory.createParameterDeclaration(void 0,void 0,void 0,t&&t[o]||"arg"+o,void 0!==n&&n<=o?A.factory.createToken(57):void 0,i?void 0:r&&r[o]||A.factory.createKeywordTypeNode(128),void 0);a.push(s)}return a}function w(e){return A.factory.createBlock([A.factory.createThrowStatement(A.factory.createNewExpression(A.factory.createIdentifier("Error"),void 0,[A.factory.createStringLiteral("Method not implemented.",0===e)]))],!0)}function i(e,t,r){var n=A.getTsConfigObjectLiteralExpression(t);if(n){var i=d(n,"compilerOptions");if(void 0!==i){var a=i.initializer;if(A.isObjectLiteralExpression(a))for(var o=0,s=r;o<s.length;o++){var c=s[o],u=c[0],l=c[1],c=d(a,u);void 0===c?e.insertNodeAtObjectStart(t,a,_(u,l)):e.replaceNode(t,c.initializer,l)}}else e.insertNodeAtObjectStart(t,n,_("compilerOptions",A.factory.createObjectLiteralExpression(r.map(function(e){return _(e[0],e[1])}),!0)))}}function _(e,t){return A.factory.createPropertyAssignment(A.factory.createStringLiteral(e),t)}function d(e,t){return A.find(e.properties,function(e){return A.isPropertyAssignment(e)&&!!e.name&&A.isStringLiteral(e.name)&&e.name.text===t})}function I(e,i){var a,e=A.visitNode(e,function e(t){if(A.isLiteralImportTypeNode(t)&&t.qualifier){var r=A.getFirstIdentifier(t.qualifier),n=A.getNameForExportedSymbol(r.symbol,i),n=n!==r.text?o(t.qualifier,A.factory.createIdentifier(n)):t.qualifier;a=A.append(a,r.symbol);var r=null===(r=t.typeArguments)||void 0===r?void 0:r.map(e);return A.factory.createTypeReferenceNode(n,r)}return A.visitEachChild(t,e,A.nullTransformationContext)});if(a&&e)return{typeNode:e,symbols:a}}function o(e,t){return 78===e.kind?t:A.factory.createQualifiedName(o(e.left,t),e.right)}function O(t,e){e.forEach(function(e){return t.addImportFromExportedSymbol(e,!0)})}(e=A.codefix||(A.codefix={})).createMissingMemberNodes=function(e,t,r,n,i,a,o){for(var s=e.symbol.members,c=0,u=t;c<u.length;c++){var l=u[c];s.has(l.escapedName)||function(e,a,t,o,r,s,c){var n=e.getDeclarations();if(n&&n.length){var i=o.program.getTypeChecker(),u=A.getEmitScriptTarget(o.program.getCompilerOptions()),l=n[0],_=A.getSynthesizedDeepClone(A.getNameOfDeclaration(l),!1),d=function(e){{if(4&e)return A.factory.createToken(122);if(16&e)return A.factory.createToken(121)}return}(A.getEffectiveModifierFlags(l)),p=d?A.factory.createNodeArray([d]):void 0,f=i.getWidenedType(i.getTypeOfSymbolAtLocation(e,a)),g=!!(16777216&e.flags),m=!!(8388608&a.flags),y=A.getQuotePreference(t,r);switch(l.kind){case 162:case 163:var h=0===y?268435456:void 0,h=i.typeToTypeNode(f,a,h,F(o));s&&(v=I(h,u))&&(h=v.typeNode,O(s,v.symbols)),c(A.factory.createPropertyDeclaration(void 0,p,_,g?A.factory.createToken(57):void 0,h,void 0));break;case 167:case 168:var v,b=i.typeToTypeNode(f,a,void 0,F(o)),x=A.getAllAccessorDeclarations(n,l),x=x.secondAccessor?[x.firstAccessor,x.secondAccessor]:[x.firstAccessor];s&&(v=I(b,u))&&(b=v.typeNode,O(s,v.symbols));for(var D=0,S=x;D<S.length;D++){var T=S[D];A.isGetAccessorDeclaration(T)?c(A.factory.createGetAccessorDeclaration(void 0,p,_,A.emptyArray,b,m?void 0:w(y))):(A.Debug.assertNode(T,A.isSetAccessorDeclaration,"The counterpart to a getter should be a setter"),T=A.getSetAccessorValueParameter(T),T=T&&A.isIdentifier(T.name)?A.idText(T.name):void 0,c(A.factory.createSetAccessorDeclaration(void 0,p,_,P(1,[T],[b],1,!1),m?void 0:w(y))))}break;case 164:case 165:x=i.getSignaturesOfType(f,0);if(!A.some(x))break;if(1===n.length){A.Debug.assert(1===x.length,"One declaration implies one signature");var C=x[0];N(y,C,p,_,m?void 0:w(y));break}for(var E=0,k=x;E<k.length;E++){var C=k[E];N(y,C,A.getSynthesizedDeepClones(p,!1),A.getSynthesizedDeepClone(_,!1))}m||(n.length>x.length?(C=i.getSignatureFromDeclaration(n[n.length-1]),N(y,C,p,_,w(y))):(A.Debug.assert(n.length===x.length,"Declarations and signatures should match count"),c(function(e,t,r,n,i){for(var a=e[0],o=e[0].minArgumentCount,s=!1,c=0,u=e;c<u.length;c++){var l=u[c];o=Math.min(l.minArgumentCount,o),A.signatureHasRestParameter(l)&&(s=!0),l.parameters.length>=a.parameters.length&&(!A.signatureHasRestParameter(l)||A.signatureHasRestParameter(a))&&(a=l)}var _=a.parameters.length-(A.signatureHasRestParameter(a)?1:0),d=a.parameters.map(function(e){return e.name}),p=P(_,d,void 0,o,!1);s&&(e=A.factory.createArrayTypeNode(A.factory.createKeywordTypeNode(128)),e=A.factory.createParameterDeclaration(void 0,void 0,A.factory.createToken(25),d[_]||"rest",o<=_?A.factory.createToken(57):void 0,e,void 0),p.push(e));return function(e,t,r,n,i,a,o){return A.factory.createMethodDeclaration(void 0,e,void 0,t,r?A.factory.createToken(57):void 0,n,i,a,w(o))}(n,t,r,void 0,p,void 0,i)}(x,_,g,p,y))))}}function N(e,t,r,n,i){i=function(e,t,r,n,i,a,o,s,c){var u=e.program,l=u.getTypeChecker(),_=A.getEmitScriptTarget(u.getCompilerOptions()),t=1073742081|(0===t?268435456:0),r=l.signatureToSignatureDeclaration(r,165,n,t,F(e));if(!r)return;n=r.typeParameters,t=r.parameters,e=r.type;{var d;c&&(n&&(d=A.sameMap(n,function(e){var t,r=e.constraint,n=e.default;return r&&(t=I(r,_))&&(r=t.typeNode,O(c,t.symbols)),n&&(t=I(n,_))&&(n=t.typeNode,O(c,t.symbols)),A.factory.updateTypeParameterDeclaration(e,e.name,r,n)}),n!==d&&(n=A.setTextRange(A.factory.createNodeArray(d,n.hasTrailingComma),n))),d=A.sameMap(t,function(e){var t=I(e.type,_),r=e.type;return t&&(r=t.typeNode,O(c,t.symbols)),A.factory.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,r,e.initializer)}),t!==d&&(t=A.setTextRange(A.factory.createNodeArray(d,t.hasTrailingComma),t)),!e||(d=I(e,_))&&(e=d.typeNode,O(c,d.symbols)))}return A.factory.updateMethodDeclaration(r,void 0,i,r.asteriskToken,a,o?A.factory.createToken(57):void 0,n,t,e,s)}(o,e,t,a,r,n,g,i,s);i&&c(i)}}(l,e,r,n,i,a,o)}},e.getNoopSymbolTrackerWithResolver=F,e.createMethodFromCallExpression=function(e,t,r,n,i,a,o){var s=!A.isInterfaceDeclaration(a),c=r.typeArguments,u=r.arguments,l=r.parent,_=A.getEmitScriptTarget(e.program.getCompilerOptions()),d=e.program.getTypeChecker(),p=F(e),f=A.map(u,function(e){return m(d,t,d.getBaseTypeOfLiteralType(d.getTypeAtLocation(e)),a,_,void 0,p)}),g=A.map(u,function(e){return A.isIdentifier(e)?e.text:A.isPropertyAccessExpression(e)&&A.isIdentifier(e.name)?e.name.text:void 0}),r=d.getContextualType(r),r=o||!r?void 0:d.typeToTypeNode(r,a,void 0,p),e=A.getQuotePreference(e.sourceFile,e.preferences);return A.factory.createMethodDeclaration(void 0,i?A.factory.createNodeArray(A.factory.createModifiersFromModifierFlags(i)):void 0,A.isYieldExpression(l)?A.factory.createToken(41):void 0,n,void 0,o?void 0:A.map(c,function(e,t){return A.factory.createTypeParameterDeclaration(84+c.length-1<=90?String.fromCharCode(84+t):"T"+t)}),P(u.length,g,f,void 0,o),r,s?w(e):void 0)},e.typeToAutoImportableTypeNode=m,e.setJsonCompilerOptionValues=i,e.setJsonCompilerOptionValue=function(e,t,r,n){i(e,t,[[r,n]])},e.createJsonPropertyAssignment=_,e.findJsonProperty=d,e.tryGetAutoImportableReferenceFromTypeNode=I,e.importSymbols=O}(ts=ts||{}),function(C){var e;function o(e){return C.isParameterPropertyDeclaration(e,e.parent)||C.isPropertyDeclaration(e)||C.isPropertyAssignment(e)}function s(e,t){return C.isIdentifier(t)?C.factory.createIdentifier(e):C.factory.createStringLiteral(e)}function E(e,t,r){r=t?r.name:C.factory.createThis();return C.isIdentifier(e)?C.factory.createPropertyAccessExpression(r,e):C.factory.createElementAccessExpression(r,C.factory.createStringLiteralFromNode(e))}function k(e){return e?C.factory.createNodeArray(C.factory.createModifiersFromModifierFlags(e)):void 0}function N(e,t,r,n,i){void 0===i&&(i=!0);var a=C.getTokenAtPosition(e,r),i=r===n&&i,a=C.findAncestor(a.parent,o);if(!a||!C.nodeOverlapsWithStartEnd(a.name,e,r,n)&&!i)return{error:C.getLocaleSpecificMessage(C.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(r=a.name,!C.isIdentifier(r)&&!C.isStringLiteral(r))return{error:C.getLocaleSpecificMessage(C.Diagnostics.Name_is_not_valid)};if(124!=(124|C.getEffectiveModifierFlags(a)))return{error:C.getLocaleSpecificMessage(C.Diagnostics.Can_only_convert_property_with_modifier)};n=a.name.text,i=C.startsWithUnderscore(n),r=s(i?n:C.getUniqueName("_"+n,e),a.name),n=s(i?C.getUniqueName(n.substring(1),e):n,a.name);return{info:{isStatic:C.hasStaticModifier(a),isReadonly:C.hasEffectiveReadonlyModifier(a),type:function(e,t){var r=C.getTypeAnnotationNode(e);if(C.isPropertyDeclaration(e)&&r&&e.questionToken){e=t.getTypeChecker(),t=e.getTypeFromTypeNode(r);if(!e.isTypeAssignableTo(e.getUndefinedType(),t)){t=C.isUnionTypeNode(r)?r.types:[r];return C.factory.createUnionTypeNode(__spreadArrays(t,[C.factory.createKeywordTypeNode(150)]))}}return r}(a,t),container:(160===a.kind?a.parent:a).parent,originalName:a.name.text,declaration:a,fieldName:r,accessorName:n,renameAccessor:i}}}function A(e,t,r,n,i){C.isParameterPropertyDeclaration(n,n.parent)?e.insertNodeAtClassStart(t,i,r):C.isPropertyAssignment(n)?e.insertNodeAfterComma(t,n,r):e.insertNodeAfter(t,n,r)}(e=C.codefix||(C.codefix={})).generateAccessorFromProperty=function(e,t,r,n,i,a){var o;if((o=N(e,t,r,n))&&o.info){var s,c,u=C.textChanges.ChangeTracker.fromContext(i),l=o.info,_=l.isStatic,d=l.isReadonly,p=l.fieldName,f=l.accessorName,g=l.originalName,t=l.type,r=l.container,n=l.declaration;C.suppressLeadingAndTrailingTrivia(p),C.suppressLeadingAndTrailingTrivia(f),C.suppressLeadingAndTrailingTrivia(n),C.suppressLeadingAndTrailingTrivia(r),C.isClassLike(r)&&(h=C.getEffectiveModifierFlags(n),y=C.isSourceFileJS(e)?v=k(h):(v=k(function(e){e&=-65,16&(e&=-9)||(e|=4);return e}(h)),k((m=h,m&=-5,m&=-17,m|=8)))),i=u,o=e,l=n,h=t,s=p,c=y,C.isPropertyDeclaration(l)?function(e,t,r,n){n=C.factory.updatePropertyDeclaration(r,r.decorators,c,s,r.questionToken||r.exclamationToken,n,r.initializer),e.replaceNode(t,r,n)}(i,o,l,h):C.isPropertyAssignment(l)?function(e,t,r,n){n=C.factory.updatePropertyAssignment(r,n,r.initializer),e.replacePropertyAssignment(t,r,n)}(i,o,l,s):i.replaceNode(o,l,C.factory.updateParameterDeclaration(l,l.decorators,c,l.dotDotDotToken,C.cast(s,C.isIdentifier),l.questionToken,l.type,l.initializer));var m,y,h,v,b,x,D,S,T,l=(m=p,y=f,h=t,i=v,o=_,l=r,C.factory.createGetAccessorDeclaration(void 0,i,y,void 0,h,C.factory.createBlock([C.factory.createReturnStatement(E(m,o,l))],!0)));return C.suppressLeadingAndTrailingTrivia(l),A(u,e,l,n,r),d?(d=C.getFirstConstructorWithBody(r))&&(b=u,x=e,D=d,S=p.text,T=g,D.body&&D.body.forEachChild(function e(t){C.isElementAccessExpression(t)&&107===t.expression.kind&&C.isStringLiteral(t.argumentExpression)&&t.argumentExpression.text===T&&C.isWriteAccess(t)&&b.replaceNode(x,t.argumentExpression,C.factory.createStringLiteral(S)),C.isPropertyAccessExpression(t)&&107===t.expression.kind&&t.name.text===T&&C.isWriteAccess(t)&&b.replaceNode(x,t.name,C.factory.createIdentifier(S)),C.isFunctionLike(t)||C.isClassLike(t)||t.forEachChild(e)})):(D=p,p=f,f=t,t=v,v=_,_=r,_=C.factory.createSetAccessorDeclaration(void 0,t,p,[C.factory.createParameterDeclaration(void 0,void 0,void 0,C.factory.createIdentifier("value"),void 0,f)],C.factory.createBlock([C.factory.createExpressionStatement(C.factory.createAssignment(E(D,v,_),C.factory.createIdentifier("value")))],!0)),C.suppressLeadingAndTrailingTrivia(_),A(u,e,_,n,r)),u.getChanges()}},e.getAccessorConvertiblePropertyAtPosition=N,e.getAllSupers=function(e,t){for(var r=[];e;){var n=C.getClassExtendsHeritageElement(e),n=n&&t.getSymbolAtLocation(n.expression);if(!n)break;n=2097152&n.flags?t.getAliasedSymbol(n):n,n=C.find(n.declarations,C.isClassLike);if(!n)break;r.push(n),e=n}return r}}(ts=ts||{}),function(l){var _,d;function p(e,t,r,n){e=l.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(t,r,n)});return _.createCodeFixActionWithoutFixAll(d,e,[l.Diagnostics.Replace_import_with_0,e[0].textChanges[0].newText])}function n(e,t){var r=e.program.getTypeChecker().getTypeAtLocation(t);if(!r.symbol||!r.symbol.originatingImport)return[];var n,i,a,o,s,c=[],u=r.symbol.originatingImport;return l.isImportCall(u)||l.addRange(c,(n=e,i=u,a=l.getSourceFileOfNode(i),o=l.getNamespaceDeclarationNode(i),r=n.program.getCompilerOptions(),(u=[]).push(p(n,a,i,l.makeImport(o.name,void 0,i.moduleSpecifier,l.getQuotePreference(a,n.preferences)))),l.getEmitModuleKind(r)===l.ModuleKind.CommonJS&&u.push(p(n,a,i,l.factory.createImportEqualsDeclaration(void 0,void 0,o.name,l.factory.createExternalModuleReference(i.moduleSpecifier)))),u)),!l.isExpression(t)||l.isNamedDeclaration(t.parent)&&t.parent.name===t||(s=e.sourceFile,e=l.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(s,t,l.factory.createPropertyAccessExpression(t,"default"),{})}),c.push(_.createCodeFixActionWithoutFixAll(d,e,l.Diagnostics.Use_synthetic_default_member))),c}_=l.codefix||(l.codefix={}),d="invalidImportSyntax",_.registerCodeFix({errorCodes:[l.Diagnostics.This_expression_is_not_callable.code,l.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(e){var t=e.sourceFile,r=l.Diagnostics.This_expression_is_not_callable.code===e.errorCode?203:204,t=l.findAncestor(l.getTokenAtPosition(t,e.span.start),function(e){return e.kind===r});if(!t)return[];t=t.expression;return n(e,t)}}),_.registerCodeFix({errorCodes:[l.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,l.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,l.Diagnostics.Type_0_is_not_assignable_to_type_1.code,l.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,l.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,l.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,l.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,l.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,l.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,l.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,l.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,l.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var e=t.sourceFile,e=l.findAncestor(l.getTokenAtPosition(e,t.span.start),function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});return e?n(t,e):[]}})}(ts=ts||{}),function(s){var c,u,l,_,d,e;function p(e,t){t=s.getTokenAtPosition(e,t);return s.isIdentifier(t)?s.cast(t.parent,s.isPropertyDeclaration):void 0}function f(e,t,r){var n=s.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,s.factory.createToken(53),r.type,r.initializer);e.replaceNode(t,r,n)}function g(e,t,r){var n=s.factory.createKeywordTypeNode(150),r=r.type,n=s.isUnionTypeNode(r)?r.types.concat(n):[r,n];e.replaceNode(t,r,s.factory.createUnionTypeNode(n))}function m(e,t,r,n){n=s.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,n);e.replaceNode(t,r,n)}function y(e,t){return function t(r,e){{if(512&e.flags)return e===r.getFalseType()||e===r.getFalseType(!0)?s.factory.createFalse():s.factory.createTrue();if(e.isStringLiteral())return s.factory.createStringLiteral(e.value);if(e.isNumberLiteral())return s.factory.createNumericLiteral(e.value);if(2048&e.flags)return s.factory.createBigIntLiteral(e.value);if(e.isUnion())return s.firstDefined(e.types,function(e){return t(r,e)});if(e.isClass()){var n=s.getClassLikeDeclarationOfSymbol(e.symbol);if(!n||s.hasSyntacticModifier(n,128))return;var n=s.getFirstConstructorWithBody(n);return n&&n.parameters.length?void 0:s.factory.createNewExpression(s.factory.createIdentifier(e.symbol.name),void 0,void 0)}if(r.isArrayLikeType(e))return s.factory.createArrayLiteralExpression()}return}(e,e.getTypeFromTypeNode(t.type))}c=s.codefix||(s.codefix={}),u="strictClassInitialization",l="addMissingPropertyDefiniteAssignmentAssertions",_="addMissingPropertyUndefinedType",d="addMissingPropertyInitializer",e=[s.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],c.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=p(e.sourceFile,e.span.start);if(t){var r,n,i,a,o,o=[(i=e,a=t,o=s.textChanges.ChangeTracker.with(i,function(e){return g(e,i.sourceFile,a)}),c.createCodeFixAction(u,o,[s.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],_,s.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)),(r=e,n=t,o=s.textChanges.ChangeTracker.with(r,function(e){return f(e,r.sourceFile,n)}),c.createCodeFixAction(u,o,[s.Diagnostics.Add_definite_assignment_assertion_to_property_0,n.getText()],l,s.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties))];return s.append(o,function(t,r){var n=y(t.program.getTypeChecker(),r);if(!n)return;var e=s.textChanges.ChangeTracker.with(t,function(e){return m(e,t.sourceFile,r,n)});return c.createCodeFixAction(u,e,[s.Diagnostics.Add_initializer_to_property_0,r.name.getText()],d,s.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(e,t)),o}},fixIds:[l,_,d],getAllCodeActions:function(i){return c.codeFixAll(i,e,function(e,t){var r=p(t.file,t.start);if(r)switch(i.fixId){case l:f(e,t.file,r);break;case _:g(e,t.file,r);break;case d:var n=y(i.program.getTypeChecker(),r);if(!n)return;m(e,t.file,r,n);break;default:s.Debug.fail(JSON.stringify(i.fixId))}})}})}(ts=ts||{}),function(s){var n,i,e;function a(e,t,r){var n=r.allowSyntheticDefaults,i=r.defaultImportName,a=r.namedImports,o=r.statement,r=r.required;e.replaceNode(t,o,i&&!n?s.factory.createImportEqualsDeclaration(void 0,void 0,i,s.factory.createExternalModuleReference(r)):s.factory.createImportDeclaration(void 0,void 0,s.factory.createImportClause(!1,i,a),r))}function o(e,t,r){var n=s.getTokenAtPosition(e,r).parent;if(!s.isRequireCall(n,!0))throw s.Debug.failBadSyntaxKind(n);var i=s.cast(n.parent,s.isVariableDeclaration),e=s.tryCast(i.name,s.isIdentifier),r=s.isObjectBindingPattern(i.name)?function(e){for(var t=[],r=0,n=e.elements;r<n.length;r++){var i=n[r];if(!s.isIdentifier(i.name)||i.initializer)return;t.push(s.factory.createImportSpecifier(s.tryCast(i.propertyName,s.isIdentifier),i.name))}if(t.length)return s.factory.createNamedImports(t)}(i.name):void 0;if(e||r)return{allowSyntheticDefaults:s.getAllowSyntheticDefaultImports(t.getCompilerOptions()),defaultImportName:e,namedImports:r,statement:s.cast(i.parent.parent,s.isVariableStatement),required:s.first(n.arguments)}}n=s.codefix||(s.codefix={}),i="requireInTs",e=[s.Diagnostics.require_call_may_be_converted_to_an_import.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var r=o(t.sourceFile,t.program,t.span.start);if(r){var e=s.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,r)});return[n.createCodeFixAction(i,e,s.Diagnostics.Convert_require_to_import,i,s.Diagnostics.Convert_all_require_to_import)]}},fixIds:[i],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){t=o(t.file,r.program,t.start);t&&a(e,r.sourceFile,t)})}})}(ts=ts||{}),function(i){var a,o,e;function s(e,t){e=i.getTokenAtPosition(e,t);if(i.isIdentifier(e)){t=e.parent;if(i.isImportEqualsDeclaration(t)&&i.isExternalModuleReference(t.moduleReference))return{importNode:t,name:e,moduleSpecifier:t.moduleReference.expression};if(i.isNamespaceImport(t)){t=t.parent.parent;return{importNode:t,name:e,moduleSpecifier:t.moduleSpecifier}}}}function c(e,t,r,n){e.replaceNode(t,r.importNode,i.makeImport(r.name,void 0,r.moduleSpecifier,i.getQuotePreference(t,n)))}a=i.codefix||(i.codefix={}),o="useDefaultImport",e=[i.Diagnostics.Import_may_be_converted_to_a_default_import.code],a.registerCodeFix({errorCodes:e,getCodeActions:function(t){var r=t.sourceFile,e=t.span.start,n=s(r,e);if(n){e=i.textChanges.ChangeTracker.with(t,function(e){return c(e,r,n,t.preferences)});return[a.createCodeFixAction(o,e,i.Diagnostics.Convert_to_default_import,o,i.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[o],getAllCodeActions:function(n){return a.codeFixAll(n,e,function(e,t){var r=s(t.file,t.start);r&&c(e,t.file,r,n.preferences)})}})}(ts=ts||{}),function(i){var r,n,t;function a(e,t,r){var n=i.tryCast(i.getTokenAtPosition(t,r.start),i.isNumericLiteral);n&&(r=n.getText(t)+"n",e.replaceNode(t,n,i.factory.createBigIntLiteral(r)))}r=i.codefix||(i.codefix={}),n="useBigintLiteral",t=[i.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span)});if(0<e.length)return[r.createCodeFixAction(n,e,i.Diagnostics.Convert_to_a_bigint_numeric_literal,n,i.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return a(e,t.file,t)})}})}(ts=ts||{}),function(i){var a,o,e;function s(e,t){t=i.getTokenAtPosition(e,t);return i.Debug.assert(99===t.kind,"This token should be an ImportKeyword"),i.Debug.assert(195===t.parent.kind,"Token parent should be an ImportType"),t.parent}function c(e,t,r){var n=i.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,n)}a=i.codefix||(i.codefix={}),o="fixAddModuleReferTypeMissingTypeof",e=[i.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],a.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=s(t,r.start),e=i.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n)});return[a.createCodeFixAction(o,e,i.Diagnostics.Add_missing_typeof,o,i.Diagnostics.Add_missing_typeof)]},fixIds:[o],getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){return c(e,r.sourceFile,s(t.file,t.start))})}})}(ts=ts||{}),function(i){var a,o,e;function s(e,t){t=i.getTokenAtPosition(e,t).parent.parent;if((i.isBinaryExpression(t)||(t=t.parent,i.isBinaryExpression(t)))&&i.nodeIsMissing(t.operatorToken))return t}function c(e,t,r){var n=function(e){var t=[],r=e;for(;;){if(!i.isBinaryExpression(r)||!i.nodeIsMissing(r.operatorToken)||27!==r.operatorToken.kind)return;if(t.push(r.left),i.isJsxChild(r.right))return t.push(r.right),t;if(!i.isBinaryExpression(r.right))return;r=r.right}}(r);n&&e.replaceNode(t,r,i.factory.createJsxFragment(i.factory.createJsxOpeningFragment(),n,i.factory.createJsxJsxClosingFragment()))}a=i.codefix||(i.codefix={}),o="wrapJsxInFragment",e=[i.Diagnostics.JSX_expressions_must_have_one_parent_element.code],a.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.program.getCompilerOptions().jsx;if(2===t||3===t){var r=e.sourceFile,t=e.span,n=s(r,t.start);if(n){e=i.textChanges.ChangeTracker.with(e,function(e){return c(e,r,n)});return[a.createCodeFixAction(o,e,i.Diagnostics.Wrap_in_JSX_fragment,o,i.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[o],getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){t=s(r.sourceFile,t.start);t&&c(e,r.sourceFile,t)})}})}(ts=ts||{}),function(o){var i,a,t;function s(e,t){t=o.getTokenAtPosition(e,t),t=o.cast(t.parent.parent,o.isIndexSignatureDeclaration);if(!o.isClassDeclaration(t.parent))return{indexSignature:t,container:o.isInterfaceDeclaration(t.parent)?t.parent:o.cast(t.parent.parent,o.isTypeAliasDeclaration)}}function c(e,t,r){var n=r.indexSignature,i=r.container,a=(o.isInterfaceDeclaration(i)?i:i.type).members.filter(function(e){return!o.isIndexSignatureDeclaration(e)}),r=o.first(n.parameters),r=o.factory.createTypeParameterDeclaration(o.cast(r.name,o.isIdentifier),r.type),n=o.factory.createMappedTypeNode(o.hasEffectiveReadonlyModifier(n)?o.factory.createModifier(142):void 0,r,void 0,n.questionToken,n.type),a=o.factory.createIntersectionTypeNode(__spreadArrays(o.getAllSuperTypeNodes(i),[n],a.length?[o.factory.createTypeLiteralNode(a)]:o.emptyArray));e.replaceNode(t,i,(i=i,a=a,o.factory.createTypeAliasDeclaration(i.decorators,i.modifiers,i.name,i.typeParameters,a)))}i=o.codefix||(o.codefix={}),a="fixConvertToMappedObjectType",t=[o.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code],i.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=s(t,r.start);if(n){r=o.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n)}),e=o.idText(n.container.name);return[i.createCodeFixAction(a,r,[o.Diagnostics.Convert_0_to_mapped_object_type,e],a,[o.Diagnostics.Convert_0_to_mapped_object_type,e])]}},fixIds:[a],getAllCodeActions:function(e){return i.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&c(e,t.file,r)})}})}(ts=ts||{}),function(n){var i,a,e;i=n.codefix||(n.codefix={}),a="removeAccidentalCallParentheses",e=[n.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],i.registerCodeFix({errorCodes:e,getCodeActions:function(t){var r=n.findAncestor(n.getTokenAtPosition(t.sourceFile,t.span.start),n.isCallExpression);if(r){var e=n.textChanges.ChangeTracker.with(t,function(e){e.deleteRange(t.sourceFile,{pos:r.expression.end,end:r.end})});return[i.createCodeFixActionWithoutFixAll(a,e,n.Diagnostics.Remove_parentheses)]}},fixIds:[a]})}(ts=ts||{}),function(a){var r,n,t;function i(e,t,r){var n=a.tryCast(a.getTokenAtPosition(t,r.start),function(e){return 130===e.kind}),i=n&&a.tryCast(n.parent,a.isAwaitExpression);i&&(r=i,a.isParenthesizedExpression(i.parent)&&(n=a.getLeftmostExpression(i.expression,!1),!a.isIdentifier(n)||(n=a.findPrecedingToken(i.parent.pos,t))&&102!==n.kind&&(r=i.parent)),e.replaceNode(t,r,i.expression))}r=a.codefix||(a.codefix={}),n="removeUnnecessaryAwait",t=[a.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=a.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span)});if(0<e.length)return[r.createCodeFixAction(n,e,a.Diagnostics.Remove_unnecessary_await,n,a.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t)})}})}(ts=ts||{}),function(i){var n,e,r;function a(e,t){return i.findAncestor(i.getTokenAtPosition(e,t.start),i.isImportDeclaration)}function o(e,t,r){var n;t&&(n=i.Debug.checkDefined(t.importClause),e.replaceNode(r.sourceFile,t,i.factory.updateImportDeclaration(t,t.decorators,t.modifiers,i.factory.updateImportClause(n,n.isTypeOnly,n.name,void 0),t.moduleSpecifier)),e.insertNodeAfter(r.sourceFile,t,i.factory.createImportDeclaration(void 0,void 0,i.factory.updateImportClause(n,n.isTypeOnly,void 0,n.namedBindings),t.moduleSpecifier)))}n=i.codefix||(i.codefix={}),e=[i.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport",n.registerCodeFix({errorCodes:e,fixIds:[r],getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return o(e,a(t.sourceFile,t.span),t)});if(e.length)return[n.createCodeFixAction(r,e,i.Diagnostics.Split_into_two_separate_import_declarations,r,i.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){o(e,a(r.sourceFile,t),r)})}})}(ts=ts||{}),function(a){var o,s,e;o=a.codefix||(a.codefix={}),s="fixConvertConstToLet",e=[a.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=e.program,i=function(e,t,r){t=a.getTokenAtPosition(e,t),t=r.getTypeChecker().getSymbolAtLocation(t);if(t)return t.valueDeclaration.parent.parent}(t,r.start,n),e=a.textChanges.ChangeTracker.with(e,function(e){return function(e,t,r){if(!r)return;r=r.getStart();e.replaceRangeWithText(t,{pos:r,end:r+5},"let")}(e,t,i)});return[o.createCodeFixAction(s,e,a.Diagnostics.Convert_const_to_let,s,a.Diagnostics.Convert_const_to_let)]},fixIds:[s]})}(ts=ts||{}),function(i){var n,a,e;function o(e,t){t=i.getTokenAtPosition(e,t);return 26===t.kind&&t.parent&&(i.isObjectLiteralExpression(t.parent)||i.isArrayLiteralExpression(t.parent))?{node:t}:void 0}function s(e,t,r){var n=r.node,r=i.factory.createToken(27);e.replaceNode(t,n,r)}n=i.codefix||(i.codefix={}),a="fixExpectedComma",e=[i.Diagnostics._0_expected.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=o(t,e.span.start,e.errorCode);if(r){e=i.textChanges.ChangeTracker.with(e,function(e){return s(e,t,r)});return[n.createCodeFixAction(a,e,[i.Diagnostics.Change_0_to_1,";",","],a,[i.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[a],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){t=o(t.file,t.start,t.code);t&&s(e,r.sourceFile,t)})}})}(ts=ts||{}),function(s){var n,r,e;function i(e,t,r,n,i){var a,o=s.getTokenAtPosition(t,r.start);s.isIdentifier(o)&&s.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length&&((n=null==(r=(a=n.getTypeChecker()).getSymbolAtLocation(o))?void 0:r.valueDeclaration)&&s.isParameter(n)&&s.isNewExpression(n.parent.parent)&&(null!=i&&i.has(n)||(null!=i&&i.add(n),r=function(e){{if(!s.isInJSFile(e))return e.typeArguments;if(s.isParenthesizedExpression(e.parent)){e=null===(e=s.getJSDocTypeTag(e.parent))||void 0===e?void 0:e.typeExpression.type;if(e&&s.isTypeReferenceNode(e)&&s.isIdentifier(e.typeName)&&"Promise"===s.idText(e.typeName))return e.typeArguments}}}(n.parent.parent),s.some(r)?(i=r[0],(r=!s.isUnionTypeNode(i)&&!s.isParenthesizedTypeNode(i)&&s.isParenthesizedTypeNode(s.factory.createUnionTypeNode([i,s.factory.createKeywordTypeNode(113)]).types[0]))&&e.insertText(t,i.pos,"("),e.insertText(t,i.end,r?") | void":" | void")):(o=(o=null==(o=a.getResolvedSignature(o.parent))?void 0:o.parameters[0])&&a.getTypeOfSymbolAtLocation(o,n.parent.parent),s.isInJSFile(n)?(!o||3&o.flags)&&(e.insertText(t,n.parent.parent.end,")"),e.insertText(t,s.skipTrivia(t.text,n.parent.parent.pos),"/** @type {Promise<void>} */(")):(!o||2&o.flags)&&e.insertText(t,n.parent.parent.expression.end,"<void>")))))}n=s.codefix||(s.codefix={}),r="addVoidToPromise",e=[s.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],n.registerCodeFix({errorCodes:e,fixIds:[r],getCodeActions:function(t){var e=s.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span,t.program)});if(0<e.length)return[n.createCodeFixAction("addVoidToPromise",e,s.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,s.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){return i(e,t.file,t,r.program,new s.Set)})}})}(ts=ts||{}),function(u){var e,r,n,i;function o(e,t){void 0===t&&(t=!0);var r=e.file,n=u.getRefactorContextSpan(e),e=u.getTokenAtPosition(r,n.start),i=e.parent&&1&u.getSyntacticModifierFlags(e.parent)&&t?e.parent:u.getParentNodeInSpan(e,r,n);if(!(i&&(u.isSourceFile(i.parent)||u.isModuleBlock(i.parent)&&u.isAmbientModule(i.parent.parent))))return{error:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_find_export_statement)};var a=(u.isSourceFile(i.parent)?i:i.parent).parent.symbol,n=u.getSyntacticModifierFlags(i),o=!!(512&n);if(!(1&n)||!o&&a.exports.has("default"))return{error:u.getLocaleSpecificMessage(u.Diagnostics.This_file_already_has_a_default_export)};switch(i.kind){case 251:case 252:case 253:case 255:case 254:case 256:var s=i;return s.name&&u.isIdentifier(s.name)?{info:{exportNode:s,exportName:s.name,wasDefault:o,exportingModuleSymbol:a}}:void 0;case 232:var c=i;if(!(2&c.declarationList.flags)||1!==c.declarationList.declarations.length)return;s=u.first(c.declarationList.declarations);return s.initializer?(u.Debug.assert(!o,"Can't have a default flag here"),u.isIdentifier(s.name)?{info:{exportNode:c,exportName:s.name,wasDefault:o,exportingModuleSymbol:a}}:void 0):void 0;default:return}}function l(e,t){return u.factory.createImportSpecifier(e===t?void 0:u.factory.createIdentifier(e),u.factory.createIdentifier(t))}e=u.refactor||(u.refactor={}),r="Convert export",n="Convert default export to named export",i="Convert named export to default export",e.registerRefactor(r,{getAvailableActions:function(e){var t=o(e,"invoked"===e.triggerReason);if(!t)return u.emptyArray;if(void 0!==t.error)return e.preferences.provideRefactorNotApplicableReason?[{name:r,description:u.Diagnostics.Convert_default_export_to_named_export.message,actions:[{name:n,description:u.Diagnostics.Convert_default_export_to_named_export.message,notApplicableReason:t.error}]},{name:r,description:u.Diagnostics.Convert_named_export_to_default_export.message,actions:[{name:i,description:u.Diagnostics.Convert_named_export_to_default_export.message,notApplicableReason:t.error}]}]:u.emptyArray;e=(t.info.wasDefault?u.Diagnostics.Convert_default_export_to_named_export:u.Diagnostics.Convert_named_export_to_default_export).message,t=t.info.wasDefault?n:i;return[{name:r,description:e,actions:[{name:t,description:e}]}]},getEditsForAction:function(a,e){return u.Debug.assert(e===n||e===i,"Unexpected action name"),{edits:u.textChanges.ChangeTracker.with(a,function(e){var t,r,n,i;return t=a.file,r=a.program,n=u.Debug.checkDefined(null===(i=o(a))||void 0===i?void 0:i.info,"context must have info"),i=e,e=a.cancellationToken,function(e,t,r,n){var i=t.wasDefault,a=t.exportNode,o=t.exportName;if(i)r.delete(e,u.Debug.checkDefined(u.findModifier(a,87),"Should find a default keyword in modifier list"));else{var s=u.Debug.checkDefined(u.findModifier(a,92),"Should find an export keyword in modifier list");switch(a.kind){case 251:case 252:case 253:r.insertNodeAfter(e,s,u.factory.createToken(87));break;case 232:var c=u.first(a.declarationList.declarations);if(!u.FindAllReferences.Core.isSymbolReferencedInFile(o,n,e)&&!c.type){r.replaceNode(e,a,u.factory.createExportDefault(u.Debug.checkDefined(c.initializer,"Initializer was previously known to be present")));break}case 255:case 254:case 256:r.deleteModifier(e,s),r.insertNodeAfter(e,a,u.factory.createExportDefault(u.factory.createIdentifier(o.text)));break;default:u.Debug.assertNever(a,"Unexpected exportNode kind "+a.kind)}}}(t,n,i,r.getTypeChecker()),void function(e,t,r,n){var i=t.wasDefault,a=t.exportName,o=t.exportingModuleSymbol,s=e.getTypeChecker(),t=u.Debug.checkDefined(s.getSymbolAtLocation(a),"Export name should resolve to a symbol");u.FindAllReferences.Core.eachExportReference(e.getSourceFiles(),s,n,t,o,a.text,i,function(e){var t=e.getSourceFile();i?function(e,t,r,n){var i=t.parent;switch(i.kind){case 201:r.replaceNode(e,t,u.factory.createIdentifier(n));break;case 265:case 270:var a=i;r.replaceNode(e,a,l(n,a.name.text));break;case 262:var o=i;u.Debug.assert(o.name===t,"Import clause name should match provided ref");var s,a=l(n,t.text),c=o.namedBindings;c?263===c.kind?(r.deleteRange(e,{pos:t.getStart(e),end:c.getStart(e)}),s=u.isStringLiteral(o.parent.moduleSpecifier)?u.quotePreferenceFromString(o.parent.moduleSpecifier,e):1,s=u.makeImport(void 0,[l(n,t.text)],o.parent.moduleSpecifier,s),r.insertNodeAfter(e,o.parent,s)):(r.delete(e,t),r.insertNodeAtEndOfList(e,c.elements,a)):r.replaceNode(e,t,u.factory.createNamedImports([a]));break;default:u.Debug.failBadSyntaxKind(i)}}(t,e,r,a.text):function(e,t,r){var n=t.parent;switch(n.kind){case 201:r.replaceNode(e,t,u.factory.createIdentifier("default"));break;case 265:var i=u.factory.createIdentifier(n.name.text);1===n.parent.elements.length?r.replaceNode(e,n.parent,i):(r.delete(e,n),r.insertNodeBefore(e,n.parent,i));break;case 270:r.replaceNode(e,n,function(e,t){return u.factory.createExportSpecifier(e===t?void 0:u.factory.createIdentifier(e),u.factory.createIdentifier(t))}("default",n.name.text));break;default:u.Debug.assertNever(n,"Unexpected parent kind "+n.kind)}}(t,e,r)})}(r,n,i,e)}),renameFilename:void 0,renameLocation:void 0}}})}(ts=ts||{}),function(m){var e,r,n,i;function o(e,t){void 0===t&&(t=!0);var r=e.file,n=m.getRefactorContextSpan(e),e=m.getTokenAtPosition(r,n.start),r=t?m.findAncestor(e,m.isImportDeclaration):m.getParentNodeInSpan(e,r,n);if(!r||!m.isImportDeclaration(r))return{error:"Selection is not an import declaration."};if(!(r.getEnd()<n.start+n.length)){r=r.importClause;return r?r.namedBindings?{info:r.namedBindings}:{error:m.getLocaleSpecificMessage(m.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:m.getLocaleSpecificMessage(m.Diagnostics.Could_not_find_import_clause)}}}function y(e,t,r){return m.factory.createImportDeclaration(void 0,void 0,m.factory.createImportClause(!1,t,r&&r.length?m.factory.createNamedImports(r):void 0),e.moduleSpecifier)}e=m.refactor||(m.refactor={}),r="Convert import",n="Convert namespace import to named imports",i="Convert named imports to namespace import",e.registerRefactor(r,{getAvailableActions:function(e){var t=o(e,"invoked"===e.triggerReason);if(!t)return m.emptyArray;if(void 0!==t.error)return e.preferences.provideRefactorNotApplicableReason?[{name:r,description:m.Diagnostics.Convert_namespace_import_to_named_imports.message,actions:[{name:n,description:m.Diagnostics.Convert_namespace_import_to_named_imports.message,notApplicableReason:t.error}]},{name:r,description:m.Diagnostics.Convert_named_imports_to_namespace_import.message,actions:[{name:i,description:m.Diagnostics.Convert_named_imports_to_namespace_import.message,notApplicableReason:t.error}]}]:m.emptyArray;e=(263===t.info.kind?m.Diagnostics.Convert_namespace_import_to_named_imports:m.Diagnostics.Convert_named_imports_to_namespace_import).message,t=263===t.info.kind?n:i;return[{name:r,description:e,actions:[{name:t,description:e}]}]},getEditsForAction:function(a,e){return m.Debug.assert(e===n||e===i,"Unexpected action name"),{edits:m.textChanges.ChangeTracker.with(a,function(e){var t,r,n,i;return t=a.file,r=a.program,n=e,e=m.Debug.checkDefined(null===(i=o(a))||void 0===i?void 0:i.info,"Context must provide an import to convert"),i=r.getTypeChecker(),void(263===e.kind?function(e,n,t,r,i){var a=!1,o=[],s=new m.Map;m.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,n,e,function(e){var t,r;m.isPropertyAccessExpression(e.parent)?(r=(t=m.cast(e.parent,m.isPropertyAccessExpression)).name.text,n.resolveName(r,e,67108863,!0)&&s.set(r,!0),m.Debug.assert(t.expression===e,"Parent expression should match id"),o.push(t)):a=!0});for(var c=new m.Map,u=0,l=o;u<l.length;u++){var _=l[u],d=_.name.text,p=c.get(d);void 0===p&&c.set(d,p=s.has(d)?m.getUniqueName(d,e):d),t.replaceNode(e,_,m.factory.createIdentifier(p))}var f=[];c.forEach(function(e,t){f.push(m.factory.createImportSpecifier(e===t?void 0:m.factory.createIdentifier(t),m.factory.createIdentifier(e)))});var g=r.parent.parent;a&&!i?t.insertNodeAfter(e,g,y(g,void 0,f)):t.replaceNode(e,g,y(g,a?m.factory.createIdentifier(r.name.text):void 0,f))}(t,i,n,e,m.getAllowSyntheticDefaultImports(r.getCompilerOptions())):function(i,t,a,e){for(var r=e.parent.parent,n=r.moduleSpecifier,o=n&&m.isStringLiteral(n)?m.codefix.moduleSpecifierToValidIdentifier(n.text,99):"module",s=e.elements.some(function(e){return m.FindAllReferences.Core.eachSymbolReferenceInFile(e.name,t,i,function(e){return!!t.resolveName(o,e,67108863,!0)})||!1})?m.getUniqueName(o,i):o,c=[],u=0,l=e.elements;u<l.length;u++)!function(r){var n=(r.propertyName||r.name).text;m.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,t,i,function(e){var t=m.factory.createPropertyAccessExpression(m.factory.createIdentifier(s),n);m.isShorthandPropertyAssignment(e.parent)?a.replaceNode(i,e.parent,m.factory.createPropertyAssignment(e.text,t)):m.isExportSpecifier(e.parent)&&!e.parent.propertyName?c.some(function(e){return e.name===r.name})||c.push(m.factory.createImportSpecifier(r.propertyName&&m.factory.createIdentifier(r.propertyName.text),m.factory.createIdentifier(r.name.text))):a.replaceNode(i,e,t)})}(l[u]);a.replaceNode(i,e,m.factory.createNamespaceImport(m.factory.createIdentifier(s))),c.length&&a.insertNodeAfter(i,e.parent.parent,y(r,void 0,c))}(t,i,n,e))}),renameFilename:void 0,renameLocation:void 0}}})}(ts=ts||{}),function(u){var e,r,n;function a(e){return u.isBinaryExpression(e)||u.isConditionalExpression(e)}function o(e){return a(e)||(e=e,u.isExpressionStatement(e)||u.isReturnStatement(e)||u.isVariableStatement(e))}function i(e,t){void 0===t&&(t=!0);var r=e.file,n=e.program,i=u.getRefactorContextSpan(e),e=0===i.length;if(!e||t){t=u.getTokenAtPosition(r,i.start),i=u.findTokenOnLeftOfPosition(r,i.start+i.length),i=u.createTextSpanFromBounds(t.pos,(i&&i.end>=t.pos?i:t).getEnd()),i=e?function(e){for(;e.parent;){if(o(e)&&!o(e.parent))return e;e=e.parent}return}(t):function(e,t){for(;e.parent;){if(o(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(t,i),i=i&&o(i)?function(e){if(a(e))return e;if(u.isVariableStatement(e)){var t=u.getSingleVariableOfVariableStatement(e),t=null==t?void 0:t.initializer;return t&&a(t)?t:void 0}return e.expression&&a(e.expression)?e.expression:void 0}(i):void 0;if(!i)return{error:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_find_convertible_access_expression)};n=n.getTypeChecker();return u.isConditionalExpression(i)?function(e,t){var r=e.condition,n=_(e.whenTrue);if(!n||t.isNullableType(t.getTypeAtLocation(n)))return{error:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_find_convertible_access_expression)};{if((u.isPropertyAccessExpression(r)||u.isIdentifier(r))&&c(r,n.expression))return{info:{finalExpression:n,occurrences:[r],expression:e}};if(u.isBinaryExpression(r)){r=s(n.expression,r);return r?{info:{finalExpression:n,occurrences:r,expression:e}}:{error:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_find_matching_access_expressions)}}}}(i,n):function(e){if(55!==e.operatorToken.kind)return{error:u.getLocaleSpecificMessage(u.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=_(e.right);if(!t)return{error:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_find_convertible_access_expression)};var r=s(t.expression,e.left);return r?{info:{finalExpression:t,occurrences:r,expression:e}}:{error:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_find_matching_access_expressions)}}(i)}}function s(e,t){for(var r=[];u.isBinaryExpression(t)&&55===t.operatorToken.kind;){var n=c(u.skipParentheses(e),u.skipParentheses(t.right));if(!n)break;r.push(n),e=n,t=t.left}var i=c(e,t);return i&&r.push(i),0<r.length?r:void 0}function c(e,t){if(u.isIdentifier(t)||u.isPropertyAccessExpression(t)||u.isElementAccessExpression(t))return function(e,t){for(;(u.isCallExpression(e)||u.isPropertyAccessExpression(e)||u.isElementAccessExpression(e))&&l(e)!==l(t);)e=e.expression;for(;u.isPropertyAccessExpression(e)&&u.isPropertyAccessExpression(t)||u.isElementAccessExpression(e)&&u.isElementAccessExpression(t);){if(l(e)!==l(t))return!1;e=e.expression,t=t.expression}return u.isIdentifier(e)&&u.isIdentifier(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function l(e){return u.isIdentifier(e)||u.isStringOrNumericLiteralLike(e)?e.getText():u.isPropertyAccessExpression(e)?l(e.name):u.isElementAccessExpression(e)?l(e.argumentExpression):void 0}function _(e){return e=u.skipParentheses(e),u.isBinaryExpression(e)?_(e.left):(u.isPropertyAccessExpression(e)||u.isElementAccessExpression(e)||u.isCallExpression(e))&&!u.isOptionalChain(e)?e:void 0}(e=u.refactor||(u.refactor={})).convertToOptionalChainExpression||(e.convertToOptionalChainExpression={}),r="Convert to optional chain expression",n=u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_optional_chain_expression),e.registerRefactor(r,{getAvailableActions:function(e){var t=i(e,"invoked"===e.triggerReason);if(!t)return u.emptyArray;if(!t.error)return[{name:r,description:n,actions:[{name:r,description:n}]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:r,description:n,actions:[{name:r,description:n,notApplicableReason:t.error}]}];return u.emptyArray},getEditsForAction:function(s,e){var c=i(s);return c&&c.info?{edits:u.textChanges.ChangeTracker.with(s,function(e){return t=s.file,r=s.program.getTypeChecker(),n=e,i=u.Debug.checkDefined(c.info,"context must have info"),a=i.finalExpression,o=i.occurrences,e=i.expression,i=o[o.length-1],void((o=function e(t,r,n){if(u.isPropertyAccessExpression(r)||u.isElementAccessExpression(r)||u.isCallExpression(r)){var i=e(t,r.expression,n),t=0<n.length?n[n.length-1]:void 0,t=(null==t?void 0:t.getText())===r.expression.getText();if(t&&n.pop(),u.isCallExpression(r))return t?u.factory.createCallChain(i,u.factory.createToken(28),r.typeArguments,r.arguments):u.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(u.isPropertyAccessExpression(r))return t?u.factory.createPropertyAccessChain(i,u.factory.createToken(28),r.name):u.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(u.isElementAccessExpression(r))return t?u.factory.createElementAccessChain(i,u.factory.createToken(28),r.argumentExpression):u.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}(r,a,o))&&(u.isPropertyAccessExpression(o)||u.isElementAccessExpression(o)||u.isCallExpression(o))&&(u.isBinaryExpression(e)?n.replaceNodeRange(t,i,a,o):u.isConditionalExpression(e)&&n.replaceNode(t,e,u.factory.createBinaryExpression(o,u.factory.createToken(60),e.whenFalse))));var t,r,n,i,a,o}),renameFilename:void 0,renameLocation:void 0}:void 0}})}(ts=ts||{}),function(_){var e,n,i;function s(e){switch(e.kind){case 164:case 165:case 169:case 166:case 170:case 251:return!0}return!1}function d(t,e,r){var n=_.getTokenAtPosition(t,e),e=_.findAncestor(n,s);if(e){var i=r.getTypeChecker(),n=e.symbol;if(n){r=n.declarations;if(!(_.length(r)<=1)&&_.every(r,function(e){return _.getSourceFileOfNode(e)===t})&&s(r[0])){var a=r[0].kind;if(_.every(r,function(e){return e.kind===a})){e=r;if(!_.some(e,function(e){return!!e.typeParameters||_.some(e.parameters,function(e){return!!e.decorators||!!e.modifiers||!_.isIdentifier(e.name)})})){n=_.mapDefined(e,function(e){return i.getSignatureFromDeclaration(e)});if(_.length(n)===_.length(r)){var o=i.getReturnTypeOfSignature(n[0]);if(_.every(n,function(e){return i.getReturnTypeOfSignature(e)===o}))return e}}}}}}}(e=_.refactor||(_.refactor={})).addOrRemoveBracesToArrowFunction||(e.addOrRemoveBracesToArrowFunction={}),n="Convert overload list to single signature",i=_.Diagnostics.Convert_overload_list_to_single_signature.message,e.registerRefactor(n,{getEditsForAction:function(e){var t=e.file,r=e.startPosition,n=e.program,i=d(t,r,n);if(!i)return;var a=n.getTypeChecker(),o=i[i.length-1],s=o;switch(o.kind){case 164:s=_.factory.updateMethodSignature(o,o.modifiers,o.name,o.questionToken,o.typeParameters,c(i),o.type);break;case 165:s=_.factory.updateMethodDeclaration(o,o.decorators,o.modifiers,o.asteriskToken,o.name,o.questionToken,o.typeParameters,c(i),o.type,o.body);break;case 169:s=_.factory.updateCallSignature(o,o.typeParameters,c(i),o.type);break;case 166:s=_.factory.updateConstructorDeclaration(o,o.decorators,o.modifiers,c(i),o.body);break;case 170:s=_.factory.updateConstructSignature(o,o.typeParameters,c(i),o.type);break;case 251:s=_.factory.updateFunctionDeclaration(o,o.decorators,o.modifiers,o.asteriskToken,o.name,o.typeParameters,c(i),o.type,o.body);break;default:return _.Debug.failBadSyntaxKind(o,"Unhandled signature kind in overload list conversion refactoring")}if(s===o)return;e=_.textChanges.ChangeTracker.with(e,function(e){e.replaceNodeRange(t,i[0],i[i.length-1],s)});return{renameFilename:void 0,renameLocation:void 0,edits:e};function c(e){var t=e[e.length-1];return _.isFunctionLikeDeclaration(t)&&t.body&&(e=e.slice(0,e.length-1)),_.factory.createNodeArray([_.factory.createParameterDeclaration(void 0,void 0,_.factory.createToken(25),"args",void 0,_.factory.createUnionTypeNode(_.map(e,u)))])}function u(e){e=_.map(e.parameters,l);return _.setEmitFlags(_.factory.createTupleTypeNode(e),_.some(e,function(e){return!!_.length(_.getSyntheticLeadingComments(e))})?0:1)}function l(e){_.Debug.assert(_.isIdentifier(e.name));var t=_.setTextRange(_.factory.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||_.factory.createKeywordTypeNode(128)),e),e=e.symbol&&e.symbol.getDocumentationComment(a);return!e||(e=_.displayPartsToString(e)).length&&_.setSyntheticLeadingComments(t,[{text:"*\n"+e.split("\n").map(function(e){return" * "+e}).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}]),t}},getAvailableActions:function(e){var t=e.file,r=e.startPosition,e=e.program;return d(t,r,e)?[{name:n,description:i,actions:[{name:n,description:i}]}]:_.emptyArray}})}(ts=ts||{}),function(M){var e,t,L,R,h;function r(e){var t=v(e.file,M.getRefactorContextSpan(e),"invoked"===e.triggerReason),r=t.targetRange;if(void 0===r)return t.errors&&0!==t.errors.length&&e.preferences.provideRefactorNotApplicableReason?[{name:h,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),actions:[{description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),name:"function_extract_error",notApplicableReason:y(t.errors)}]},{name:h,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),actions:[{description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),name:"constant_extract_error",notApplicableReason:y(t.errors)}]}]:M.emptyArray;var s,c,r=(r=(t=b(t=r,r=e)).scopes,t=t.readsAndWrites,s=t.functionErrorsPerScope,c=t.constantErrorsPerScope,r.map(function(e,t){var r,n,i=(a=e,M.isFunctionLikeDeclaration(a)?"inner function":M.isClassLike(a)?"method":"function"),a=(r=e,M.isClassLike(r)?"readonly field":"constant"),o=M.isFunctionLikeDeclaration(e)?function(e){switch(e.kind){case 166:return"constructor";case 208:case 251:return e.name?"function '"+e.name.text+"'":M.ANONYMOUS;case 209:return"arrow function";case 165:return"method '"+e.name.getText()+"'";case 167:return"'get "+e.name.getText()+"'";case 168:return"'set "+e.name.getText()+"'";default:throw M.Debug.assertNever(e,"Unexpected scope kind "+e.kind)}}(e):M.isClassLike(e)?252===(r=e).kind?r.name?"class '"+r.name.text+"'":"anonymous class declaration":r.name?"class expression '"+r.name.text+"'":"anonymous class expression":257===(o=e).kind?"namespace '"+o.parent.name.getText()+"'":o.externalModuleIndicator?0:1,o=1===o?(n=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[i,"global"]),M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[a,"global"])):0===o?(n=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[i,"module"]),M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[a,"module"])):(n=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1),[i,o]),M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1),[a,o]));return 0!==t||M.isClassLike(e)||(o=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_enclosing_scope),[a])),{functionExtraction:{description:n,errors:s[t]},constantExtraction:{description:o,errors:c[t]}}}));if(void 0===r)return M.emptyArray;for(var n,i,a=[],o=new M.Map,u=[],l=new M.Map,_=0,d=0,p=r;d<p.length;d++){var f=p[d],g=f.functionExtraction,m=f.constantExtraction,f=g.description;0===g.errors.length?o.has(f)||(o.set(f,!0),a.push({description:f,name:"function_scope_"+_})):n=n||{description:f,name:"function_scope_"+_,notApplicableReason:y(g.errors)},0===m.errors.length?(g=m.description,l.has(g)||(l.set(g,!0),u.push({description:g,name:"constant_scope_"+_}))):i=i||{description:f,name:"constant_scope_"+_,notApplicableReason:y(m.errors)},_++}r=[];return a.length?r.push({name:h,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&n&&r.push({name:h,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),actions:[n]}),u.length?r.push({name:h,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),actions:u}):e.preferences.provideRefactorNotApplicableReason&&i&&r.push({name:h,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),actions:[i]}),r.length?r:M.emptyArray;function y(e){e=e[0].messageText;return"string"!=typeof e&&(e=e.messageText),e}}function n(e,t){var r,n,i,a=v(e.file,M.getRefactorContextSpan(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){var s=+o[1];return M.Debug.assert(isFinite(s),"Expected to parse a finite number from the function scope index"),_=s,r=b(c=a,u=e),n=r.scopes,l=r.readsAndWrites,i=l.target,o=l.usagesPerScope,r=l.functionErrorsPerScope,l=l.exposedVariableDeclarations,M.Debug.assert(!r[_].length,"The extraction went missing? How?"),u.cancellationToken.throwIfCancellationRequested(),function(e,n,t,r,i,a){var o,s,c=t.usages,u=t.typeParameterUsages,l=t.substitutions,_=a.program.getTypeChecker(),d=M.getEmitScriptTarget(a.program.getCompilerOptions()),p=M.codefix.createImportAdder(a.file,a.program,a.preferences,a.host),f=n.getSourceFile(),g=M.getUniqueName(M.isClassLike(n)?"newMethod":"newFunction",f),m=M.isInJSFile(n),t=M.factory.createIdentifier(g),y=[],h=[];c.forEach(function(e,t){m||(r=_.getTypeOfSymbolAtLocation(e.symbol,e.node),r=_.getBaseTypeOfLiteralType(r),r=M.codefix.typeToAutoImportableTypeNode(_,p,r,n,d,1));var r=M.factory.createParameterDeclaration(void 0,void 0,void 0,t,void 0,r);y.push(r),2===e.usage&&(s=s||[]).push(e),h.push(M.factory.createIdentifier(t))});f=M.arrayFrom(u.values()).map(function(e){return{type:e,declaration:function(e){var t,e=e.symbol;if(e&&e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];(void 0===t||i.pos<t.pos)&&(t=i)}return t}(e)}}).sort(I),c=0===f.length?void 0:f.map(function(e){return e.declaration}),u=void 0!==c?c.map(function(e){return M.factory.createTypeReferenceNode(e.name,void 0)}):void 0;M.isExpression(e)&&!m&&(v=_.getContextualType(e),o=_.typeToTypeNode(v,n,1));var f=function(e,i,a,o,t){var s,c=void 0!==a||0<i.length;if(M.isBlock(e)&&!c&&0===o.size)return{body:M.factory.createBlock(e.statements,!0),returnValueProperty:void 0};var u=!1,r=M.factory.createNodeArray(M.isBlock(e)?e.statements.slice(0):[M.isStatement(e)?e:M.factory.createReturnStatement(e)]);{if(c||o.size){var n=M.visitNodes(r,function e(t){{if(!u&&M.isReturnStatement(t)&&c){var r=O(i,a);return t.expression&&(s=s||"__return",r.unshift(M.factory.createPropertyAssignment(s,M.visitNode(t.expression,e)))),1===r.length?M.factory.createReturnStatement(r[0].name):M.factory.createReturnStatement(M.factory.createObjectLiteralExpression(r))}var n=u;u=u||M.isFunctionLikeDeclaration(t)||M.isClassLike(t);var r=o.get(M.getNodeId(t).toString()),t=r?M.getSynthesizedDeepClone(r):M.visitEachChild(t,e,M.nullTransformationContext);return u=n,t}}).slice();return c&&!t&&M.isStatement(e)&&(1===(e=O(i,a)).length?n.push(M.factory.createReturnStatement(e[0].name)):n.push(M.factory.createReturnStatement(M.factory.createObjectLiteralExpression(e)))),{body:M.factory.createBlock(n,!0),returnValueProperty:s}}return{body:M.factory.createBlock(r,!0),returnValueProperty:void 0}}}(e,r,s,l,!!(i.facts&R.HasReturn)),v=f.body,l=f.returnValueProperty;M.suppressLeadingAndTrailingTrivia(v),t=M.isClassLike(n)?(f=m?[]:[M.factory.createModifier(120)],i.facts&R.InStaticRegion&&f.push(M.factory.createModifier(123)),i.facts&R.IsAsyncFunction&&f.push(M.factory.createModifier(129)),M.factory.createMethodDeclaration(void 0,f.length?f:void 0,i.facts&R.IsGenerator?M.factory.createToken(41):void 0,t,void 0,c,y,o,v)):M.factory.createFunctionDeclaration(void 0,i.facts&R.IsAsyncFunction?[M.factory.createToken(129)]:void 0,i.facts&R.IsGenerator?M.factory.createToken(41):void 0,t,c,y,o,v);c=M.textChanges.ChangeTracker.fromContext(a),v=function(t,e){return M.find(function(e){if(M.isFunctionLikeDeclaration(e)){var t=e.body;if(M.isBlock(t))return t.statements}else{if(M.isModuleBlock(e)||M.isSourceFile(e))return e.statements;if(M.isClassLike(e))return e.members;M.assertType(e)}return M.emptyArray}(e),function(e){return e.pos>=t&&M.isFunctionLikeDeclaration(e)&&!M.isConstructorDeclaration(e)})}((B(i.range)?M.last(i.range):i.range).end,n);v?c.insertNodeBefore(a.file,v,t,!0):c.insertNodeAtEndOfScope(a.file,n,t);p.writeFixes(c);var b=[],t=function(e,t,r){r=M.factory.createIdentifier(r);{if(M.isClassLike(e)){e=t.facts&R.InStaticRegion?M.factory.createIdentifier(e.name.text):M.factory.createThis();return M.factory.createPropertyAccessExpression(e,r)}return r}}(n,i,g),u=M.factory.createCallExpression(t,u,h);i.facts&R.IsGenerator&&(u=M.factory.createYieldExpression(M.factory.createToken(41),u));i.facts&R.IsAsyncFunction&&(u=M.factory.createAwaitExpression(u));j(e)&&(u=M.factory.createJsxExpression(void 0,u));if(r.length&&!s)if(M.Debug.assert(!l,"Expected no returnValueProperty"),M.Debug.assert(!(i.facts&R.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===r.length){var x=r[0];b.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(M.getSynthesizedDeepClone(x.name),void 0,M.getSynthesizedDeepClone(x.type),u)],x.parent.flags)))}else{for(var D=[],S=[],T=r[0].parent.flags,C=!1,E=0,k=r;E<k.length;E++){x=k[E];D.push(M.factory.createBindingElement(void 0,void 0,M.getSynthesizedDeepClone(x.name)));var N=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(x)),n,1);S.push(M.factory.createPropertySignature(void 0,x.symbol.name,void 0,N)),C=C||void 0!==x.type,T&=x.parent.flags}e=C?M.factory.createTypeLiteralNode(S):void 0;e&&M.setEmitFlags(e,1),b.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(M.factory.createObjectBindingPattern(D),void 0,e,u)],T)))}else if(r.length||s){if(r.length)for(var A=0,F=r;A<F.length;A++){var P=(x=F[A]).parent.flags;2&P&&(P=-3&P|1),b.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(x.symbol.name,void 0,w(x.type))],P)))}l&&b.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(l,void 0,w(o))],1)));r=O(r,s);l&&r.unshift(M.factory.createShorthandPropertyAssignment(l)),1===r.length?(M.Debug.assert(!l,"Shouldn't have returnValueProperty here"),b.push(M.factory.createExpressionStatement(M.factory.createAssignment(r[0].name,u))),i.facts&R.HasReturn&&b.push(M.factory.createReturnStatement())):(b.push(M.factory.createExpressionStatement(M.factory.createAssignment(M.factory.createObjectLiteralExpression(r),u))),l&&b.push(M.factory.createReturnStatement(M.factory.createIdentifier(l))))}else i.facts&R.HasReturn?b.push(M.factory.createReturnStatement(u)):B(i.range)?b.push(M.factory.createExpressionStatement(u)):b.push(u);B(i.range)?c.replaceNodeRangeWithNodes(a.file,M.first(i.range),M.last(i.range),b):c.replaceNodeWithNodes(a.file,i.range,b);c=c.getChanges(),i=(B(i.range)?M.first(i.range):i.range).getSourceFile().fileName,g=M.getRenameLocation(c,i,g,!1);return{renameFilename:i,renameLocation:g,edits:c};function w(e){if(void 0!==e){for(var e=M.getSynthesizedDeepClone(e),t=e;M.isParenthesizedTypeNode(t);)t=t.type;return M.isUnionTypeNode(t)&&M.find(t.types,function(e){return 150===e.kind})?e:M.factory.createUnionTypeNode([e,M.factory.createKeywordTypeNode(150)])}}}(i,n[_],o[_],l,c,u)}var c,u,l,_=/^constant_scope_(\d+)$/.exec(t);if(_){var s=+_[1];return M.Debug.assert(isFinite(s),"Expected to parse a finite number from the constant scope index"),l=s,t=b(c=a,u=e),_=t.scopes,s=t.readsAndWrites,a=s.target,e=s.usagesPerScope,t=s.constantErrorsPerScope,s=s.exposedVariableDeclarations,M.Debug.assert(!t[l].length,"The extraction went missing? How?"),M.Debug.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),u.cancellationToken.throwIfCancellationRequested(),function(l,_,e,t,r){var n=e.substitutions,d=r.program.getTypeChecker(),i=_.getSourceFile(),a=M.getUniqueName(M.isClassLike(_)?"newProperty":"newLocal",i),o=M.isInJSFile(_),e=o||!d.isContextSensitive(l)?void 0:d.typeToTypeNode(d.getContextualType(l),_,1),i=function(e,n){return n.size?function e(t){var r=n.get(M.getNodeId(t).toString());return r?M.getSynthesizedDeepClone(r):M.visitEachChild(t,e,M.nullTransformationContext)}(e):e}(l,n);n=function(e,t){if(void 0===e)return{variableType:e,initializer:t};if(!M.isFunctionExpression(t)&&!M.isArrowFunction(t)||t.typeParameters)return{variableType:e,initializer:t};var r=d.getTypeAtLocation(l),n=M.singleOrUndefined(d.getSignaturesOfType(r,0));if(!n)return{variableType:e,initializer:t};if(n.getTypeParameters())return{variableType:e,initializer:t};for(var i=[],a=!1,o=0,s=t.parameters;o<s.length;o++){var c,u=s[o];u.type?i.push(u):((c=d.getTypeAtLocation(u))===d.getAnyType()&&(a=!0),i.push(M.factory.updateParameterDeclaration(u,u.decorators,u.modifiers,u.dotDotDotToken,u.name,u.questionToken,u.type||d.typeToTypeNode(c,_,1),u.initializer)))}if(a)return{variableType:e,initializer:t};e=void 0,t=M.isArrowFunction(t)?M.factory.updateArrowFunction(t,l.modifiers,t.typeParameters,i,t.type||d.typeToTypeNode(n.getReturnType(),_,1),t.equalsGreaterThanToken,t.body):(n&&n.thisParameter&&((!(r=M.firstOrUndefined(i))||M.isIdentifier(r.name)&&"this"!==r.name.escapedText)&&(r=d.getTypeOfSymbolAtLocation(n.thisParameter,l),i.splice(0,0,M.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,d.typeToTypeNode(r,_,1))))),M.factory.updateFunctionExpression(t,l.modifiers,t.asteriskToken,t.name,t.typeParameters,i,t.type||d.typeToTypeNode(n.getReturnType(),_,1),t.body));return{variableType:e,initializer:t}}(e,i),e=n.variableType,i=n.initializer,M.suppressLeadingAndTrailingTrivia(i);n=M.textChanges.ChangeTracker.fromContext(r);{var s,c;M.isClassLike(_)?(M.Debug.assert(!o,"Cannot extract to a JS class"),(c=[]).push(M.factory.createModifier(120)),t&R.InStaticRegion&&c.push(M.factory.createModifier(123)),c.push(M.factory.createModifier(142)),o=M.factory.createPropertyDeclaration(void 0,c,a,void 0,e,i),u=M.factory.createPropertyAccessExpression(t&R.InStaticRegion?M.factory.createIdentifier(_.name.getText()):M.factory.createThis(),M.factory.createIdentifier(a)),j(l)&&(u=M.factory.createJsxExpression(void 0,u)),c=function(e,t){var r,n=t.members;M.Debug.assert(0<n.length,"Found no members");for(var i=!0,a=0,o=n;a<o.length;a++){var s=o[a];if(s.pos>e)return r||n[0];if(i&&!M.isPropertyDeclaration(s)){if(void 0!==r)return s;i=!1}r=s}return void 0===r?M.Debug.fail():r}(l.pos,_),n.insertNodeBefore(r.file,c,o,!0),n.replaceNode(r.file,l,u)):(e=M.factory.createVariableDeclaration(a,void 0,e,i),(i=function(e,t){var r;for(;void 0!==e&&e!==t;){if(M.isVariableDeclaration(e)&&e.initializer===r&&M.isVariableDeclarationList(e.parent)&&1<e.parent.declarations.length)return e;e=(r=e).parent}}(l,_))?(n.insertNodeBefore(r.file,i,e),u=M.factory.createIdentifier(a),n.replaceNode(r.file,l,u)):233===l.parent.kind&&_===M.findAncestor(l,p)?(s=M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([e],2)),n.replaceNode(r.file,l.parent,s)):(s=M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([e],2)),0===(c=function(e,t){var r;M.Debug.assert(!M.isClassLike(t));for(var n=e;n!==t;n=n.parent)p(n)&&(r=n);for(n=(r||e).parent;;n=n.parent){if(y(n)){for(var i=void 0,a=0,o=n.statements;a<o.length;a++){var s=o[a];if(s.pos>e.pos)break;i=s}return!i&&M.isCaseClause(n)?(M.Debug.assert(M.isSwitchStatement(n.parent.parent),"Grandparent isn't a switch statement"),n.parent.parent):M.Debug.checkDefined(i,"prevStatement failed to get set")}M.Debug.assert(n!==t,"Didn't encounter a block-like before encountering scope")}}(l,_)).pos?n.insertNodeAtTopOfFile(r.file,s,!1):n.insertNodeBefore(r.file,c,s,!1),233===l.parent.kind?n.delete(r.file,l.parent):(u=M.factory.createIdentifier(a),j(l)&&(u=M.factory.createJsxExpression(void 0,u)),n.replaceNode(r.file,l,u))))}var u=n.getChanges(),n=l.getSourceFile().fileName,a=M.getRenameLocation(u,n,a,!0);return{renameFilename:n,renameLocation:a,edits:u}}(M.isExpression(a)?a:a.statements[0].expression,_[l],e[l],c.facts,u)}M.Debug.fail("Unrecognized action name")}function i(e){return{message:e,code:0,category:M.DiagnosticCategory.Message,key:e}}function v(e,c,t){void 0===t&&(t=!0);var r=c.length;if(0===r&&!t)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractEmpty)]};var n=0===r&&t,i=M.getTokenAtPosition(e,c.start),a=n?(t=i,M.findAncestor(t,function(e){return e.parent&&m(e)&&!M.isBinaryExpression(e.parent)})):M.getParentNodeInSpan(i,e,c),i=M.findTokenOnLeftOfPosition(e,M.textSpanEnd(c)),o=n?a:M.getParentNodeInSpan(i,e,c),u=[],l=R.None;if(!a||!o)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};if(a.parent!==o.parent)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};if(a!==o){if(!y(a.parent))return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};for(var s=[],_=0,d=a.parent.statements;_<d.length;_++){var p=d[_];if(p===a||s.length){var f=g(p);if(f)return{errors:f};s.push(p)}if(p===o)break}return s.length?{targetRange:{range:s,facts:l,declarations:u}}:{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]}}if(M.isJSDoc(a))return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractJSDoc)]};if(M.isReturnStatement(a)&&!a.expression)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};e=function(e){if(M.isReturnStatement(e)){if(e.expression)return e.expression}else if(M.isVariableStatement(e)){for(var t=0,r=void 0,n=0,i=e.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&(t++,r=a.initializer)}if(1===t)return r}else if(M.isVariableDeclaration(e)&&e.initializer)return e.initializer;return e}(a),r=function(e){if(M.isIdentifier(M.isExpressionStatement(e)?e.expression:e))return[M.createDiagnosticForNode(e,L.cannotExtractIdentifier)];return}(e)||g(e);return r?{errors:r}:{targetRange:{range:function(e){{if(M.isStatement(e))return[e];if(M.isExpressionNode(e))return M.isExpressionStatement(e.parent)?[e.parent]:e}return}(e),facts:l,declarations:u}};function g(r){if((e={})[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return",M.Debug.assert(r.pos<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),M.Debug.assert(!M.positionIsSynthesized(r.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(M.isStatement(r)||M.isExpressionNode(r)&&m(r)))return[M.createDiagnosticForNode(r,L.statementOrExpressionExpected)];if(8388608&r.flags)return[M.createDiagnosticForNode(r,L.cannotExtractAmbientBlock)];var a,e=M.getContainingClass(r);e&&function(e){for(var t=r;t!==e;){if(163===t.kind){M.hasSyntacticModifier(t,32)&&(l|=R.InStaticRegion);break}if(160===t.kind){166===M.getContainingFunction(t).kind&&(l|=R.InStaticRegion);break}165===t.kind&&M.hasSyntacticModifier(t,32)&&(l|=R.InStaticRegion),t=t.parent}}(e);var o,s=4;return function e(t){if(a)return!0;if(M.isDeclaration(t)){var r=249===t.kind?t.parent.parent:t;if(M.hasSyntacticModifier(r,1))return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractExportedEntity)),!0;u.push(t.symbol)}switch(t.kind){case 261:return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractImport)),!0;case 266:return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractExportedEntity)),!0;case 105:if(203===t.parent.kind){var n=M.getContainingClass(t);if(n.pos<c.start||n.end>=c.start+c.length)return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractSuper)),!0}else l|=R.UsesThis;break;case 209:M.forEachChild(t,function e(t){if(M.isThis(t))l|=R.UsesThis;else{if(M.isClassLike(t)||M.isFunctionLike(t)&&!M.isArrowFunction(t))return!1;M.forEachChild(t,e)}});case 252:case 251:M.isSourceFile(t.parent)&&void 0===t.parent.externalModuleIndicator&&(a=a||[]).push(M.createDiagnosticForNode(t,L.functionWillNotBeVisibleInTheNewScope));case 221:case 208:case 165:case 166:case 167:case 168:return!1}var r=s;switch(t.kind){case 234:case 247:s=0;break;case 230:t.parent&&247===t.parent.kind&&t.parent.finallyBlock===t&&(s=4);break;case 285:case 284:s|=1;break;default:M.isIterationStatement(t,!1)&&(s|=3)}switch(t.kind){case 187:case 107:l|=R.UsesThis;break;case 245:var i=t.label;(o=o||[]).push(i.escapedText),M.forEachChild(t,e),o.pop();break;case 241:case 240:var i=t.label;i?M.contains(o,i.escapedText)||(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(241===t.kind?1:2)||(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 213:l|=R.IsAsyncFunction;break;case 219:l|=R.IsGenerator;break;case 242:4&s?l|=R.HasReturn:(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractRangeContainingConditionalReturnStatement));break;default:M.forEachChild(t,e)}s=r}(r),a}}function p(e){return M.isFunctionLikeDeclaration(e)||M.isSourceFile(e)||M.isModuleBlock(e)||M.isClassLike(e)}function b(e,t){var r=t.file,n=function(e){var t=B(e.range)?M.first(e.range):e.range;if(e.facts&R.UsesThis){var r=M.getContainingClass(t);if(r){e=M.findAncestor(t,M.isFunctionLikeDeclaration);return e?[e,r]:[r]}}for(var n=[];;)if(t=t.parent,160===t.kind&&(t=M.findAncestor(t,function(e){return M.isFunctionLikeDeclaration(e)}).parent),p(t)&&(n.push(t),297===t.kind))return n}(e);return{scopes:n,readsAndWrites:function(m,y,h,v,b,i){var a,e,o=new M.Map,x=[],D=[],S=[],T=[],s=[],c=new M.Map,u=[],t=B(m.range)?1===m.range.length&&M.isExpressionStatement(m.range[0])?m.range[0].expression:void 0:m.range;{var r;void 0===t?(r=m.range,p=M.first(r).getStart(),r=M.last(r).end,e=M.createFileDiagnostic(v,p,r-p,L.expressionExpected)):147456&b.getTypeAtLocation(t).flags&&(e=M.createDiagnosticForNode(t,L.uselessConstantType))}for(var n=0,l=y;n<l.length;n++){var _=l[n];x.push({usages:new M.Map,typeParameterUsages:new M.Map,substitutions:new M.Map}),D.push(new M.Map),S.push(M.isFunctionLikeDeclaration(_)&&251!==_.kind?[M.createDiagnosticForNode(_,L.cannotExtractToOtherFunctionLike)]:[]);var d=[];e&&d.push(e),M.isClassLike(_)&&M.isInJSFile(_)&&d.push(M.createDiagnosticForNode(_,L.cannotExtractToJSClass)),M.isArrowFunction(_)&&!M.isBlock(_.body)&&d.push(M.createDiagnosticForNode(_,L.cannotExtractToExpressionArrowFunction)),T.push(d)}var C=new M.Map,p=B(m.range)?M.factory.createBlock(m.range):m.range,t=B(m.range)?M.first(m.range):m.range,f=function(e){return!!M.findAncestor(e,function(e){return M.isDeclarationWithTypeParameters(e)&&0!==M.getEffectiveTypeParameterDeclarations(e).length})}(t);(function e(t,r){void 0===r&&(r=1);f&&w(b.getTypeAtLocation(t));M.isDeclaration(t)&&t.symbol&&s.push(t);M.isAssignmentExpression(t)?(e(t.left,2),e(t.right)):M.isUnaryExpressionWithWrite(t)?e(t.operand,2):!M.isPropertyAccessExpression(t)&&!M.isElementAccessExpression(t)&&M.isIdentifier(t)?t.parent&&(M.isQualifiedName(t.parent)&&t!==t.parent.left||M.isPropertyAccessExpression(t.parent)&&t!==t.parent.expression||I(t,r,M.isPartOfTypeNode(t))):M.forEachChild(t,e)})(p),f&&!B(m.range)&&w(b.getContextualType(m.range));if(0<o.size){for(var g=new M.Map,E=0,k=t;void 0!==k&&E<y.length;k=k.parent)if(k===y[E]&&(g.forEach(function(e,t){x[E].typeParameterUsages.set(t,e)}),E++),M.isDeclarationWithTypeParameters(k))for(var N=0,A=M.getEffectiveTypeParameterDeclarations(k);N<A.length;N++){var F=A[N],F=b.getTypeAtLocation(F);o.has(F.id.toString())&&g.set(F.id.toString(),F)}M.Debug.assert(E===y.length,"Should have iterated all scopes")}s.length&&(t=M.isBlockScope(y[0],y[0].parent)?y[0]:M.getEnclosingBlockScopeContainer(y[0]),M.forEachChild(t,function e(t){if(t===m.range||B(m.range)&&0<=m.range.indexOf(t))return;var r=M.isIdentifier(t)?O(t):b.getSymbolAtLocation(t);{var n,i;!r||(n=M.find(s,function(e){return e.symbol===r}))&&(M.isVariableDeclaration(n)?(i=n.symbol.id.toString(),c.has(i)||(u.push(n),c.set(i,!0))):a=a||n)}M.forEachChild(t,e)}));for(var P=0;P<y.length;P++)!function(e){var t=x[e];0<e&&(0<t.usages.size||0<t.typeParameterUsages.size)&&(t=B(m.range)?m.range[0]:m.range,T[e].push(M.createDiagnosticForNode(t,L.cannotAccessVariablesFromNestedScopes)));var r,n,i=!1;x[e].usages.forEach(function(e){2===e.usage&&(i=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&M.hasEffectiveModifier(e.symbol.valueDeclaration,64)&&(r=e.symbol.valueDeclaration))}),M.Debug.assert(B(m.range)||0===u.length,"No variable declarations expected if something was extracted"),i&&!B(m.range)?(n=M.createDiagnosticForNode(m.range,L.cannotWriteInExpression),S[e].push(n),T[e].push(n)):r&&0<e?(n=M.createDiagnosticForNode(r,L.cannotExtractReadonlyPropertyInitializerOutsideConstructor),S[e].push(n),T[e].push(n)):a&&(n=M.createDiagnosticForNode(a,L.cannotExtractExportedEntity),S[e].push(n),T[e].push(n))}(P);return{target:p,usagesPerScope:x,functionErrorsPerScope:S,constantErrorsPerScope:T,exposedVariableDeclarations:u};function w(e){for(var t=0,r=b.getSymbolWalker(function(){return i.throwIfCancellationRequested(),!0}).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&o.set(n.id.toString(),n)}}function I(e,t,r){var n=function(e,t,r){var n=O(e);if(!n)return;var i=M.getSymbolId(n).toString(),a=C.get(i);if(a&&t<=a)return i;if(C.set(i,t),a){for(var o=0,s=x;o<s.length;o++){var c=s[o];c.usages.get(e.text)&&c.usages.set(e.text,{usage:t,symbol:n,node:e})}return i}a=n.getDeclarations(),a=a&&M.find(a,function(e){return e.getSourceFile()===v});if(!a)return;if(M.rangeContainsStartEnd(h,a.getStart(),a.end))return;if(m.facts&R.IsGenerator&&2===t){for(var u=M.createDiagnosticForNode(e,L.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),l=0,_=S;l<_.length;l++)_[l].push(u);for(var d=0,p=T;d<p.length;d++)p[d].push(u)}for(var f=0;f<y.length;f++){var g=y[f];b.resolveName(n.name,g,n.flags,!1)!==n&&(D[f].has(i)||((g=function e(t,r,n){if(!t)return;var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r}))return M.factory.createIdentifier(t.name);var i=e(t.parent,r,n);if(void 0===i)return;return n?M.factory.createQualifiedName(i,M.factory.createIdentifier(t.name)):M.factory.createPropertyAccessExpression(i,t.name)}(n.exportSymbol||n,g,r))?D[f].set(i,g):r?262144&n.flags||(u=M.createDiagnosticForNode(e,L.typeWillNotBeVisibleInTheNewScope),S[f].push(u),T[f].push(u)):x[f].usages.set(e.text,{usage:t,symbol:n,node:e})))}return i}(e,t,r);if(n)for(var i=0;i<y.length;i++){var a=D[i].get(n);a&&x[i].substitutions.set(M.getNodeId(e).toString(),a)}}function O(e){return e.parent&&M.isShorthandPropertyAssignment(e.parent)&&e.parent.name===e?b.getShorthandAssignmentValueSymbol(e.parent):b.getSymbolAtLocation(e)}}(e,n,(n=r,B((e=e).range)?{pos:M.first(e.range).getStart(n),end:M.last(e.range).getEnd()}:e.range),r,t.program.getTypeChecker(),t.cancellationToken)}}function I(e,t){var r=e.type,n=e.declaration,e=t.type,t=t.declaration;return M.compareProperties(n,t,"pos",M.compareValues)||M.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",e.symbol?e.symbol.getName():"")||M.compareValues(r.id,e.id)}function O(e,t){e=M.map(e,function(e){return M.factory.createShorthandPropertyAssignment(e.symbol.name)}),t=M.map(t,function(e){return M.factory.createShorthandPropertyAssignment(e.symbol.name)});return void 0===e?t:void 0===t?e:e.concat(t)}function B(e){return M.isArray(e)}function m(e){var t=e.parent;if(291===t.kind)return!1;switch(e.kind){case 10:return 261!==t.kind&&265!==t.kind;case 220:case 196:case 198:return!1;case 78:return 198!==t.kind&&265!==t.kind&&270!==t.kind}return!0}function y(e){switch(e.kind){case 230:case 297:case 257:case 284:return 1;default:return}}function j(e){return(M.isJsxElement(e)||M.isJsxSelfClosingElement(e)||M.isJsxFragment(e))&&M.isJsxElement(e.parent)}e=M.refactor||(M.refactor={}),t=e.extractSymbol||(e.extractSymbol={}),h="Extract Symbol",e.registerRefactor(h,{getAvailableActions:r,getEditsForAction:n}),t.getAvailableActions=r,t.getEditsForAction=n,(e=L=t.Messages||(t.Messages={})).cannotExtractRange=i("Cannot extract range."),e.cannotExtractImport=i("Cannot extract import statement."),e.cannotExtractSuper=i("Cannot extract super call."),e.cannotExtractJSDoc=i("Cannot extract JSDoc."),e.cannotExtractEmpty=i("Cannot extract empty range."),e.expressionExpected=i("expression expected."),e.uselessConstantType=i("No reason to extract constant of type."),e.statementOrExpressionExpected=i("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=i("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=i("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=i("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=i("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=i("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=i("Function will not visible in the new scope."),e.cannotExtractIdentifier=i("Select more than a single identifier."),e.cannotExtractExportedEntity=i("Cannot extract exported declaration"),e.cannotWriteInExpression=i("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=i("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=i("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=i("Cannot access variables from nested scopes"),e.cannotExtractToOtherFunctionLike=i("Cannot extract method to a function-like scope that is not a function"),e.cannotExtractToJSClass=i("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=i("Cannot extract constant to an arrow function without a block"),(e=R=R||{})[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",t.getRangeToExtract=v,(t={})[t.Module=0]="Module",t[t.Global=1]="Global",(t={})[t.Read=1]="Read",t[t.Write=2]="Write"}(ts=ts||{}),function(b){var e,r,x,D,S;function n(e,t){void 0===t&&(t=!0);var r=e.file,n=e.startPosition,i=b.isSourceFileJS(r),a=b.getTokenAtPosition(r,n),o=b.createTextRangeFromSpan(b.getRefactorContextSpan(e)),s=o.pos===o.end&&t,c=b.findAncestor(a,function(e){return e.parent&&b.isTypeNode(e)&&!f(o,e.parent,r)&&(s||b.nodeOverlapsWithStartEnd(a,r,o.pos,o.end))});if(!c||!b.isTypeNode(c))return{error:b.getLocaleSpecificMessage(b.Diagnostics.Selection_is_not_a_valid_type_node)};var u,l,_,d,p,n=e.program.getTypeChecker(),t=b.Debug.checkDefined(b.findAncestor(c,b.isStatement),"Should find a statement"),e=(u=n,_=t,d=r,p=[],function e(t){if(b.isTypeReferenceNode(t)){var r;!b.isIdentifier(t.typeName)||(i=u.resolveName(t.typeName.text,t.typeName,262144,!0))&&(r=b.cast(b.first(i.declarations),b.isTypeParameterDeclaration),f(_,r,d)&&!f(l,r,d)&&b.pushIfUnique(p,r))}else if(b.isInferTypeNode(t)){var n=b.findAncestor(t,function(e){return b.isConditionalTypeNode(e)&&f(e.extendsType,t,d)});if(!n||!f(l,n,d))return!0}else if(b.isTypePredicateNode(t)||b.isThisTypeNode(t)){var n=b.findAncestor(t.parent,b.isFunctionLike);if(n&&n.type&&f(n.type,t,d)&&!f(l,n,d))return!0}else if(b.isTypeQueryNode(t))if(b.isIdentifier(t.exprName)){var i=u.resolveName(t.exprName.text,t.exprName,111551,!1);if(i&&f(_,i.valueDeclaration,d)&&!f(l,i.valueDeclaration,d))return!0}else if(b.isThisIdentifier(t.exprName.left)&&!f(l,t.parent,d))return!0;d&&b.isTupleTypeNode(t)&&b.getLineAndCharacterOfPosition(d,t.pos).line===b.getLineAndCharacterOfPosition(d,t.end).line&&b.setEmitFlags(t,1);return b.forEachChild(t,e)}(l=c)?void 0:p);return e?{info:{isJS:i,selection:c,firstStatement:t,typeParameters:e,typeElements:function e(t,r){if(!r)return;{if(b.isIntersectionTypeNode(r)){for(var n=[],i=new b.Map,a=0,o=r.types;a<o.length;a++){var s=o[a],s=e(t,s);if(!s||!s.every(function(e){return e.name&&b.addToSeen(i,b.getNameFromPropertyName(e.name))}))return;b.addRange(n,s)}return n}if(b.isParenthesizedTypeNode(r))return e(t,r.type);if(b.isTypeLiteralNode(r))return r.members}return}(n,c)}}:{error:b.getLocaleSpecificMessage(b.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function f(e,t,r){return b.rangeContainsStartEnd(e,b.skipTrivia(r.text,t.pos),t.end)}e=b.refactor||(b.refactor={}),r="Extract type",x="Extract to type alias",D="Extract to interface",S="Extract to typedef",e.registerRefactor(r,{getAvailableActions:function(e){var t=n(e,"invoked"===e.triggerReason);return t?void 0===t.error?[{name:r,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_type),actions:t.info.isJS?[{name:S,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_to_typedef)}]:b.append([{name:x,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_to_type_alias)}],t.info.typeElements&&{name:D,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_to_interface)})}]:e.preferences.provideRefactorNotApplicableReason?[{name:r,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_type),actions:[{name:S,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_to_typedef),notApplicableReason:t.error},{name:x,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_to_type_alias),notApplicableReason:t.error},{name:D,description:b.getLocaleSpecificMessage(b.Diagnostics.Extract_to_interface),notApplicableReason:t.error}]}]:b.emptyArray:b.emptyArray},getEditsForAction:function(e,m){var y=e.file,h=b.Debug.checkDefined(null===(t=n(e))||void 0===t?void 0:t.info,"Expected to find a range to extract"),v=b.getUniqueName("NewType",y),t=b.textChanges.ChangeTracker.with(e,function(e){switch(m){case x:return b.Debug.assert(!h.isJS,"Invalid actionName/JS combo"),u=e,l=y,_=v,p=(d=h).firstStatement,f=d.selection,g=d.typeParameters,d=b.factory.createTypeAliasDeclaration(void 0,void 0,_,g.map(function(e){return b.factory.updateTypeParameterDeclaration(e,e.name,e.constraint,void 0)}),f),u.insertNodeBefore(l,p,b.ignoreSourceNewlines(d),!0),void u.replaceNode(l,f,b.factory.createTypeReferenceNode(_,g.map(function(e){return b.factory.createTypeReferenceNode(e.name,void 0)})),{leadingTriviaOption:b.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:b.textChanges.TrailingTriviaOption.ExcludeWhitespace});case S:return b.Debug.assert(h.isJS,"Invalid actionName/JS combo"),t=e,r=y,n=v,a=(i=h).firstStatement,o=i.selection,s=i.typeParameters,i=b.factory.createJSDocTypedefTag(b.factory.createIdentifier("typedef"),b.factory.createJSDocTypeExpression(o),b.factory.createIdentifier(n)),c=[],b.forEach(s,function(e){var t=b.getEffectiveConstraintOfTypeParameter(e),e=b.factory.createTypeParameterDeclaration(e.name),e=b.factory.createJSDocTemplateTag(b.factory.createIdentifier("template"),t&&b.cast(t,b.isJSDocTypeExpression),[e]);c.push(e)}),t.insertNodeBefore(r,a,b.factory.createJSDocComment(void 0,b.factory.createNodeArray(b.concatenate(c,[i]))),!0),void t.replaceNode(r,o,b.factory.createTypeReferenceNode(n,s.map(function(e){return b.factory.createTypeReferenceNode(e.name,void 0)})));case D:return b.Debug.assert(!h.isJS&&!!h.typeElements,"Invalid actionName/JS combo"),g=e,a=y,i=v,r=(t=h).firstStatement,o=t.selection,n=t.typeParameters,s=t.typeElements,t=b.factory.createInterfaceDeclaration(void 0,void 0,i,n,void 0,s),b.setTextRange(t,null===(s=s[0])||void 0===s?void 0:s.parent),g.insertNodeBefore(a,r,b.ignoreSourceNewlines(t),!0),void g.replaceNode(a,o,b.factory.createTypeReferenceNode(i,n.map(function(e){return b.factory.createTypeReferenceNode(e.name,void 0)})),{leadingTriviaOption:b.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:b.textChanges.TrailingTriviaOption.ExcludeWhitespace});default:b.Debug.fail("Unexpected action name")}var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g}),e=y.fileName;return{edits:t,renameFilename:e,renameLocation:b.getRenameLocation(t,e,v,!1)}}})}(ts=ts||{}),function(i){var e,r,n;(e=i.refactor||(i.refactor={})).generateGetAccessorAndSetAccessor||(e.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=i.Diagnostics.Generate_get_and_set_accessors.message,e.registerRefactor(r,{getEditsForAction:function(e,t){if(e.endPosition){var r=i.codefix.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);if(r&&r.info){var n=i.codefix.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(n){t=e.file.fileName,e=r.info.renameAccessor?r.info.accessorName:r.info.fieldName;return{renameFilename:t,renameLocation:(i.isIdentifier(e)?0:-1)+i.getRenameLocation(n,t,e.text,i.isParameter(r.info.declaration)),edits:n}}}}},getAvailableActions:function(e){if(!e.endPosition)return i.emptyArray;var t=i.codefix.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?t.error?e.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[{name:r,description:n,notApplicableReason:t.error}]}]:i.emptyArray:[{name:r,description:n,actions:[{name:r,description:n}]}]:i.emptyArray}})}(ts=ts||{}),function(N){!function(e){var t="Move to a new file";function r(e){e=function(e){var t=e.file,r=N.createTextRangeFromSpan(N.getRefactorContextSpan(e)),n=t.statements,i=N.findIndex(n,function(e){return e.end>r.pos});if(-1!==i){e=n[i];if(N.isNamedDeclaration(e)&&e.name&&N.rangeContainsRange(e.name,r))return{toMove:[n[i]],afterLast:n[i+1]};if(!(r.pos>e.getStart(t))){e=N.findIndex(n,function(e){return e.end>r.end},i);if(-1===e||!(0===e||n[e].getStart(t)<r.end))return{toMove:n.slice(i,-1===e?n.length:e),afterLast:-1===e?void 0:n[e]}}}}(e);if(void 0!==e){var n=[],i=[],a=e.toMove,o=e.afterLast;return N.getRangesWhere(a,s,function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})}),0===n.length?void 0:{all:n,ranges:i}}}function s(e){return!function(e){switch(e.kind){case 261:return!0;case 260:return!N.hasSyntacticModifier(e,1);case 232:return e.declarationList.declarations.every(function(e){return!!e.initializer&&N.isRequireCall(e.initializer,!0)});default:return!1}}(e)&&!N.isPrologueDirective(e)}function d(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,a=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,a)}}function g(e){return 261===e.kind?e.moduleSpecifier:260===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function m(e,t){if(N.isImportDeclaration(e))N.isStringLiteral(e.moduleSpecifier)&&t(e);else if(N.isImportEqualsDeclaration(e))N.isExternalModuleReference(e.moduleReference)&&N.isStringLiteralLike(e.moduleReference.expression)&&t(e);else if(N.isVariableStatement(e))for(var r=0,n=e.declarationList.declarations;r<n.length;r++){var i=n[r];i.initializer&&N.isRequireCall(i.initializer,!0)&&t(i)}}function y(e,t,r,n,i){if(r=N.ensurePathIsNonModuleName(r),n){n=t.map(function(e){return N.factory.createImportSpecifier(void 0,N.factory.createIdentifier(e))});return N.makeImportIfNecessary(e,n,r,i)}N.Debug.assert(!e,"No default import should exist");t=t.map(function(e){return N.factory.createBindingElement(void 0,void 0,e)});return t.length?a(N.factory.createObjectBindingPattern(t),void 0,h(N.factory.createStringLiteral(r))):void 0}function a(e,t,r,n){return void 0===n&&(n=2),N.factory.createVariableStatement(void 0,N.factory.createVariableDeclarationList([N.factory.createVariableDeclaration(e,void 0,t,r)],n))}function h(e){return N.factory.createCallExpression(N.factory.createIdentifier("require"),void 0,[e])}function p(e,t,r,n){switch(t.kind){case 261:!function(e,t,r,n){if(t.importClause){var i=(s=t.importClause).name,a=s.namedBindings,o=!i||n(i),s=!a||(263===a.kind?n(a.name):0!==a.elements.length&&a.elements.every(function(e){return n(e.name)}));if(o&&s)r.delete(e,t);else if(i&&o&&r.delete(e,i),a)if(s)r.replaceNode(e,t.importClause,N.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,i,void 0));else if(264===a.kind)for(var c=0,u=a.elements;c<u.length;c++){var l=u[c];n(l.name)&&r.delete(e,l)}}}(e,t,r,n);break;case 260:n(t.name)&&r.delete(e,t);break;case 249:!function(e,t,r,n){var i=t.name;switch(i.kind){case 78:n(i)&&r.delete(e,i);break;case 197:break;case 196:if(i.elements.every(function(e){return N.isIdentifier(e.name)&&n(e.name)}))r.delete(e,N.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(var a=0,o=i.elements;a<o.length;a++){var s=o[a];N.isIdentifier(s.name)&&n(s.name)&&r.delete(e,s.name)}}}(e,t,r,n);break;default:N.Debug.assertNever(t,"Unexpected import decl kind "+t.kind)}}function v(e){switch(e.kind){case 260:case 265:case 262:case 263:return!0;case 249:return n(e);case 198:return N.isVariableDeclaration(e.parent.parent)&&n(e.parent.parent);default:return!1}}function n(e){return N.isSourceFile(e.parent.parent.parent)&&!!e.initializer&&N.isRequireCall(e.initializer,!0)}function b(e,t,r){switch(e.kind){case 261:var n=e.importClause;if(!n)return;var i=n.name&&r(n.name)?n.name:void 0,n=n.namedBindings&&function(e,t){{if(263===e.kind)return t(e.name)?e:void 0;e=e.elements.filter(function(e){return t(e.name)});return e.length?N.factory.createNamedImports(e):void 0}}(n.namedBindings,r);return i||n?N.factory.createImportDeclaration(void 0,void 0,N.factory.createImportClause(!1,i,n),t):void 0;case 260:return r(e.name)?e:void 0;case 249:n=function(e,t){switch(e.kind){case 78:return t(e)?e:void 0;case 197:return e;case 196:var r=e.elements.filter(function(e){return e.propertyName||!N.isIdentifier(e.name)||t(e.name)});return r.length?N.factory.createObjectBindingPattern(r):void 0}}(e.name,r);return n?a(n,e.type,h(t),e.parent.flags):void 0;default:return N.Debug.assertNever(e,"Unexpected import kind "+e.kind)}}function x(e,n,i){e.forEachChild(function e(t){var r;N.isIdentifier(t)&&!N.isDeclarationName(t)?(r=n.getSymbolAtLocation(t))&&i(r):t.forEachChild(e)})}e.registerRefactor(t,{getAvailableActions:function(e){if(!e.preferences.allowTextChangesInNewFiles||void 0===r(e))return N.emptyArray;e=N.getLocaleSpecificMessage(N.Diagnostics.Move_to_a_new_file);return[{name:t,description:e,actions:[{name:t,description:e}]}]},getEditsForAction:function(l,e){N.Debug.assert(e===t,"Wrong refactor invoked");var _=N.Debug.checkDefined(r(l));return{edits:N.textChanges.ChangeTracker.with(l,function(e){return t=l.file,r=l.program,n=_,i=e,a=l.host,o=l.preferences,s=r.getTypeChecker(),c=function(i,e,r){var a=new D,o=new D,s=new D,t=function(e){if(void 0===e)return;var t=r.getJsxNamespace(e),e=r.resolveName(t,e,1920,!0);return e&&N.some(e.declarations,v)?e:void 0}(N.find(e,function(e){return!!(2&e.transformFlags)}));t&&o.add(t);for(var n=0,c=e;n<c.length;n++)T(g=c[n],function(e){a.add(N.Debug.checkDefined(N.isExpressionStatement(e)?r.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))});for(var u=0,l=e;u<l.length;u++)x(g=l[u],r,function(e){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];v(n)?o.add(e):S(n)&&(n=n,(N.isVariableDeclaration(n)?n.parent.parent:n).parent===i)&&!a.has(e)&&s.add(e)}});for(var _=o.clone(),d=new D,p=0,f=i.statements;p<f.length;p++){var g=f[p];N.contains(e,g)||(t&&2&g.transformFlags&&_.delete(t),x(g,r,function(e){a.has(e)&&d.add(e),_.delete(e)}))}return{movedSymbols:a,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:d,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:_}}(t,n.all,s),u=N.getDirectoryPath(t.fileName),e=N.extensionFromPath(t.fileName),s=function(e,t,r,n){for(var i=e,a=1;;a++){var o=N.combinePaths(r,i+t);if(!n.fileExists(o))return i;i=e+"."+a}}(function(e){return e.forEachEntry(N.symbolNameNoDefault)||"newFile"}(c.movedSymbols),e,u,a),e=s+e,i.createNewFile(t,N.combinePaths(u,e),function(e,t,r,n,i,a,o){var s=i.getTypeChecker(),c=N.takeWhile(e.statements,N.isPrologueDirective);if(!e.externalModuleIndicator&&!e.commonJsModuleIndicator)return d(e,n.ranges,r),__spreadArrays(c,n.all);var u=!!e.externalModuleIndicator,l=N.getQuotePreference(e,o),o=function(e,t,r,n){var i,a=[];return e.forEach(function(e){"default"===e.escapedName?i=N.factory.createIdentifier(N.symbolNameNoDefault(e)):a.push(e.name)}),y(i,a,t,r,n)}(t.oldFileImportsFromNewFile,a,u,l);o&&N.insertImports(r,e,o,!0);(function(t,e,r,n,i){for(var a=0,o=t.statements;a<o.length;a++){var s=o[a];N.contains(e,s)||m(s,function(e){return p(t,e,r,function(e){return n.has(i.getSymbolAtLocation(e))}),0})}})(e,n.all,r,t.unusedImportsFromOldFile,s),d(e,n.ranges,r),function(a,e,o,s,c){for(var u=e.getTypeChecker(),t=function(i){if(i===o)return"continue";for(var e=function(n){m(n,function(e){var t,r;u.getSymbolAtLocation(g(e))===o.symbol&&(p(i,e,a,r=function(e){e=N.isBindingElement(e.parent)?N.getPropertySymbolFromBindingElement(u,e.parent):N.skipAlias(u.getSymbolAtLocation(e),u);return!!e&&s.has(e)}),t=N.combinePaths(N.getDirectoryPath(g(e).text),c),(r=b(e,N.factory.createStringLiteral(t),r))&&a.insertNodeAfter(i,n,r),(r=function(e){switch(e.kind){case 261:return e.importClause&&e.importClause.namedBindings&&263===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 260:return e.name;case 249:return N.tryCast(e.name,N.isIdentifier);default:return N.Debug.assertNever(e,"Unexpected node kind "+e.kind)}}(e))&&function(e,t,r,n,i,a,o,s){var c=N.codefix.moduleSpecifierToValidIdentifier(i,99),u=!1,l=[];if(N.FindAllReferences.Core.eachSymbolReferenceInFile(o,r,t,function(e){N.isPropertyAccessExpression(e.parent)&&(u=u||!!r.resolveName(c,e,67108863,!0),n.has(r.getSymbolAtLocation(e.parent.name))&&l.push(e))}),l.length){for(var _=u?N.getUniqueName(c,t):c,d=0,p=l;d<p.length;d++){var f=p[d];e.replaceNode(t,f,N.factory.createIdentifier(_))}e.insertNodeAfter(t,s,function(e,t,r){var n=N.factory.createIdentifier(t),i=N.factory.createStringLiteral(r);switch(e.kind){case 261:return N.factory.createImportDeclaration(void 0,void 0,N.factory.createImportClause(!1,void 0,N.factory.createNamespaceImport(n)),i);case 260:return N.factory.createImportEqualsDeclaration(void 0,void 0,n,N.factory.createExternalModuleReference(i));case 249:return N.factory.createVariableDeclaration(n,void 0,void 0,h(i));default:return N.Debug.assertNever(e,"Unexpected node kind "+e.kind)}}(s,i,a))}}(a,i,u,s,c,t,r,e))})},t=0,r=i.statements;t<r.length;t++)e(r[t])},r=0,n=e.getSourceFiles();r<n.length;r++){var i=n[r];t(i)}}(r,i,e,t.movedSymbols,a);l=function(u,t,e,l,r,_,n){for(var d,i=[],a=0,o=u.statements;a<o.length;a++)m(o[a],function(e){N.append(i,b(e,g(e),function(e){return t.has(r.getSymbolAtLocation(e))}))});var p=[],f=N.nodeSeenTracker();return e.forEach(function(e){for(var t,r,n,i=0,a=e.declarations;i<a.length;i++){var o,s,c=a[i];S(c)&&(n=c,(o=N.isExpressionStatement(n)?N.tryCast(n.expression.left.name,N.isIdentifier):N.tryCast(n.name,N.isIdentifier))&&(s=function e(t){switch(t.kind){case 249:return t.parent.parent;case 198:return e(N.cast(t.parent.parent,function(e){return N.isVariableDeclaration(e)||N.isBindingElement(e)}));default:return t}}(c),f(s)&&(r=l,C(t=u,n=s,s=_)||(s?N.isExpressionStatement(n)||r.insertExportModifier(t,n):0!==(s=E(n)).length&&r.insertNodesAfter(t,n,s.map(k)))),N.hasSyntacticModifier(c,512)?d=o:p.push(o.text)))}}),N.append(i,y(d,p,N.removeFileExtension(N.getBaseFileName(u.fileName)),_,n)),i}(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,s,u,l),u=function(r,e,n,i){return N.flatMap(e,function(e){if(t=e,N.Debug.assert(N.isSourceFile(t.parent),"Node parent should be a SourceFile"),(f(t)||N.isVariableStatement(t))&&!C(r,e,i)&&T(e,function(e){return n.has(N.Debug.checkDefined(e.symbol))})){t=(t=e,i?[function(e){var t=N.concatenate([N.factory.createModifier(92)],e.modifiers);switch(e.kind){case 251:return N.factory.updateFunctionDeclaration(e,e.decorators,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 252:return N.factory.updateClassDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 232:return N.factory.updateVariableStatement(e,t,e.declarationList);case 256:return N.factory.updateModuleDeclaration(e,e.decorators,t,e.name,e.body);case 255:return N.factory.updateEnumDeclaration(e,e.decorators,t,e.name,e.members);case 254:return N.factory.updateTypeAliasDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.type);case 253:return N.factory.updateInterfaceDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 260:return N.factory.updateImportEqualsDeclaration(e,e.decorators,t,e.name,e.moduleReference);case 233:return N.Debug.fail();default:return N.Debug.assertNever(e,"Unexpected declaration kind "+e.kind)}}(t)]:function(e){return __spreadArrays([e],E(e).map(k))}(t));if(t)return t}var t;return e})}(e,n.all,t.oldFileImportsFromNewFile,u);if(l.length&&u.length)return __spreadArrays(c,l,[4],u);return __spreadArrays(c,l,u)}(t,c,i,n,r,s,o)),void function(e,t,r,n,i){(e=e.getCompilerOptions().configFile)&&(n=N.normalizePath(N.combinePaths(r,"..",n)),n=N.getRelativePathFromFile(e.fileName,n,i),(i=(i=e.statements[0]&&N.tryCast(e.statements[0].expression,N.isObjectLiteralExpression))&&N.find(i.properties,function(e){return N.isPropertyAssignment(e)&&N.isStringLiteral(e.name)&&"files"===e.name.text}))&&N.isArrayLiteralExpression(i.initializer)&&t.insertNodeInListAfter(e,N.last(i.initializer.elements),N.factory.createStringLiteral(n),i.initializer.elements))}(r,i,t.fileName,e,N.hostGetCanonicalFileName(a));var t,r,n,i,a,o,s,c,u}),renameFilename:void 0,renameLocation:void 0}}});var D=(i.prototype.add=function(e){this.map.set(String(N.getSymbolId(e)),e)},i.prototype.has=function(e){return this.map.has(String(N.getSymbolId(e)))},i.prototype.delete=function(e){this.map.delete(String(N.getSymbolId(e)))},i.prototype.forEach=function(e){this.map.forEach(e)},i.prototype.forEachEntry=function(e){return N.forEachEntry(this.map,e)},i.prototype.clone=function(){var e=new i;return N.copyEntries(this.map,e.map),e},i);function i(){this.map=new N.Map}function S(e){return f(e)&&N.isSourceFile(e.parent)||N.isVariableDeclaration(e)&&N.isSourceFile(e.parent.parent.parent)}function f(e){switch(e.kind){case 251:case 252:case 256:case 255:case 254:case 253:case 260:return!0;default:return!1}}function T(e,t){switch(e.kind){case 251:case 252:case 256:case 255:case 254:case 253:case 260:return t(e);case 232:return N.firstDefined(e.declarationList.declarations,function(e){return function t(e,r){switch(e.kind){case 78:return r(N.cast(e.parent,function(e){return N.isVariableDeclaration(e)||N.isBindingElement(e)}));case 197:case 196:return N.firstDefined(e.elements,function(e){return N.isOmittedExpression(e)?void 0:t(e.name,r)});default:return N.Debug.assertNever(e,"Unexpected name kind "+e.kind)}}(e.name,t)});case 233:var r=e.expression;return N.isBinaryExpression(r)&&1===N.getAssignmentDeclarationKind(r)&&t(e)}}function C(t,e,r){return r?!N.isExpressionStatement(e)&&N.hasSyntacticModifier(e,1):E(e).some(function(e){return t.symbol.exports.has(N.escapeLeadingUnderscores(e))})}function E(e){switch(e.kind){case 251:case 252:return[e.name.text];case 232:return N.mapDefined(e.declarationList.declarations,function(e){return N.isIdentifier(e.name)?e.name.text:void 0});case 256:case 255:case 254:case 253:case 260:return N.emptyArray;case 233:return N.Debug.fail("Can't export an ExpressionStatement");default:return N.Debug.assertNever(e,"Unexpected decl kind "+e.kind)}}function k(e){return N.factory.createExpressionStatement(N.factory.createBinaryExpression(N.factory.createPropertyAccessExpression(N.factory.createIdentifier("exports"),N.factory.createIdentifier(e)),62,N.factory.createIdentifier(e)))}}(N.refactor||(N.refactor={}))}(ts=ts||{}),function(c){var e,i,a,u,l,o,s;function _(e,t,r){void 0===r&&(r=!0);e=c.getTokenAtPosition(e,t),t=c.getContainingFunction(e);if(!t)return{error:c.getLocaleSpecificMessage(c.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!c.isArrowFunction(t))return{error:c.getLocaleSpecificMessage(c.Diagnostics.Containing_function_is_not_an_arrow_function)};if(c.rangeContainsRange(t,e)&&(!c.rangeContainsRange(t.body,e)||r)){if(c.isExpression(t.body))return{info:{func:t,addBraces:!0,expression:t.body}};if(1===t.body.statements.length){r=c.first(t.body.statements);if(c.isReturnStatement(r))return{info:{func:t,addBraces:!1,expression:r.expression,returnStatement:r}}}}}(e=c.refactor||(c.refactor={})).addOrRemoveBracesToArrowFunction||(e.addOrRemoveBracesToArrowFunction={}),i="Add or remove braces in an arrow function",a=c.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,u="Add braces to arrow function",l="Remove braces from arrow function",o=c.Diagnostics.Add_braces_to_arrow_function.message,s=c.Diagnostics.Remove_braces_from_arrow_function.message,e.registerRefactor(i,{getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,i=_(r,n);if(!i||!i.info)return;var a,o=i.info,n=o.expression,i=o.returnStatement,s=o.func;t===u?(o=c.factory.createReturnStatement(n),a=c.factory.createBlock([o],!0),c.suppressLeadingAndTrailingTrivia(a),c.copyLeadingComments(n,o,r,3,!0)):t===l&&i?(n=n||c.factory.createVoidZero(),a=c.needsParentheses(n)?c.factory.createParenthesizedExpression(n):n,c.suppressLeadingAndTrailingTrivia(a),c.copyTrailingAsLeadingComments(i,a,r,3,!1),c.copyLeadingComments(i,a,r,3,!1),c.copyTrailingComments(i,a,r,3,!1)):c.Debug.fail("invalid action");e=c.textChanges.ChangeTracker.with(e,function(e){e.replaceNode(r,s.body,a)});return{renameFilename:void 0,renameLocation:void 0,edits:e}},getAvailableActions:function(e){var t=e.file,r=e.startPosition,n=e.triggerReason,n=_(t,r,"invoked"===n);if(!n)return c.emptyArray;if(void 0===n.error)return[{name:i,description:a,actions:[n.info.addBraces?{name:u,description:o}:{name:l,description:s}]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:i,description:a,actions:[{name:u,description:o,notApplicableReason:n.error},{name:l,description:s,notApplicableReason:n.error}]}];return c.emptyArray}})}(ts=ts||{}),function(g){var e,c,n;function m(e){e=e.node;return g.isImportSpecifier(e.parent)||g.isImportClause(e.parent)||g.isImportEqualsDeclaration(e.parent)||g.isNamespaceImport(e.parent)||g.isExportSpecifier(e.parent)||g.isExportAssignment(e.parent)?e:void 0}function y(e){if(g.isDeclaration(e.node.parent))return e.node}function u(e,t,r){e=g.getTouchingToken(e,t),t=g.getContainingFunctionDeclaration(e);if(!function(e){e=g.findAncestor(e,g.isJSDocNode);if(e){e=g.findAncestor(e,function(e){return!g.isJSDocNode(e)});return!!e&&g.isFunctionLikeDeclaration(e)}return!1}(e))return!(t&&function(e,t){if(!function(e,t){return function(e){if(l(e))return e.length-1;return e.length}(e)>=n&&g.every(e,function(e){return function(e,t){if(g.isRestParameter(e)){var r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&!e.decorators&&g.isIdentifier(e.name)}(e,t)})}(e.parameters,t))return!1;switch(e.kind){case 251:return a(e)&&i(e,t);case 165:return i(e,t);case 166:return g.isClassDeclaration(e.parent)?a(e.parent)&&i(e,t):o(e.parent.parent)&&i(e,t);case 208:case 209:return o(e.parent)}return!1}(t,r)&&g.rangeContainsRange(t,e))||t.body&&g.rangeContainsRange(t.body,e)?void 0:t}function i(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function a(e){return!!e.name||!!g.findModifier(e,87)}function o(e){return g.isVariableDeclaration(e)&&g.isVarConst(e)&&g.isIdentifier(e.name)&&!e.type}function l(e){return 0<e.length&&g.isThis(e[0].name)}function _(e){return l(e)&&(e=g.factory.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function d(e){return g.getTextOfIdentifierOrLiteral(e.name)}(e=g.refactor||(g.refactor={})).convertParamsToDestructuredObject||(e.convertParamsToDestructuredObject={}),c="Convert parameters to destructured object",n=2,e.registerRefactor(c,{getEditsForAction:function(e,t){g.Debug.assert(t===c,"Unexpected action name");var r=e.file,n=e.startPosition,i=e.program,t=e.cancellationToken,a=e.host,o=u(r,n,i.getTypeChecker());if(!o||!t)return;var s=function(_,t,r){var d=function(e){switch(e.kind){case 251:return e.name?[e.name]:[g.Debug.checkDefined(g.findModifier(e,87),"Nameless function declaration should be a default export")];case 165:return[e.name];case 166:var t=g.Debug.checkDefined(g.findChildOfKind(e,132,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 221!==e.parent.kind?[t]:[e.parent.parent.name,t];case 209:return[e.parent.name];case 208:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return g.Debug.assertNever(e,"Unexpected function declaration kind "+e.kind)}}(_),p=g.isConstructorDeclaration(_)?function(e){switch(e.parent.kind){case 252:var t=e.parent;return t.name?[t.name]:[g.Debug.checkDefined(g.findModifier(t,87),"Nameless class declaration should be a default export")];case 221:var r=e.parent,t=e.parent.parent,r=r.name;return r?[r,t.name]:[t.name]}}(_):[],n=g.deduplicate(__spreadArrays(d,p),g.equateValues),i=t.getTypeChecker(),e=function(e){for(var t={accessExpressions:[],typeUsages:[]},r={functionCalls:[],declarations:[],classReferences:t,valid:!0},n=g.map(d,f),i=g.map(p,f),a=g.isConstructorDeclaration(_),o=0,s=e;o<s.length;o++){var c,u=s[o];if(1===u.kind){if(g.contains(n,f(u.node))||g.isNewExpressionTarget(u.node)){if(m(u))continue;if(c=y(u)){r.declarations.push(c);continue}var l=function(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 203:case 204:var n=g.tryCast(r,g.isCallOrNewExpression);if(n&&n.expression===t)return n;break;case 201:var i=g.tryCast(r,g.isPropertyAccessExpression);if(i&&i.parent&&i.name===t){var a=g.tryCast(i.parent,g.isCallOrNewExpression);if(a&&a.expression===i)return a}break;case 202:i=g.tryCast(r,g.isElementAccessExpression);if(i&&i.parent&&i.argumentExpression===t){a=g.tryCast(i.parent,g.isCallOrNewExpression);if(a&&a.expression===i)return a}}}return}(u);if(l){r.functionCalls.push(l);continue}}if(a&&g.contains(i,f(u.node))){if(m(u))continue;if(c=y(u)){r.declarations.push(c);continue}l=function(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 201:var n=g.tryCast(r,g.isPropertyAccessExpression);if(n&&n.expression===t)return n;break;case 202:n=g.tryCast(r,g.isElementAccessExpression);if(n&&n.expression===t)return n}}return}(u);if(l){t.accessExpressions.push(l);continue}if(g.isClassDeclaration(_.parent)){u=function(e){e=e.node;if(2===g.getMeaningFromLocation(e)||g.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent))return e;return}(u);if(u){t.typeUsages.push(u);continue}}}r.valid=!1}else r.valid=!1}return r}(g.flatMap(n,function(e){return g.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r)}));g.every(e.declarations,function(e){return g.contains(n,e)})||(e.valid=!1);return e;function f(e){e=i.getSymbolAtLocation(e);return e&&g.getSymbolTarget(e,i)}}(o,i,t);if(s.valid)return{renameFilename:void 0,renameLocation:void 0,edits:g.textChanges.ChangeTracker.with(e,function(e){return function(e,t,r,n,i,a){r=g.map(function(e,i,a){var o=i.getTypeChecker(),t=_(e.parameters),r=g.map(t,function(e){var t=g.factory.createBindingElement(void 0,void 0,d(e),g.isRestParameter(e)&&u(e)?g.factory.createArrayLiteralExpression():e.initializer);g.suppressLeadingAndTrailingTrivia(t),e.initializer&&t.initializer&&g.copyComments(e.initializer,t.initializer);return t}),n=g.factory.createObjectBindingPattern(r),r=function(e){e=g.map(e,c);return g.addEmitFlags(g.factory.createTypeLiteralNode(e),1)}(t);g.every(t,u)&&(s=g.factory.createObjectLiteralExpression());r=g.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,r,s);if(l(e.parameters)){var s=e.parameters[0],e=g.factory.createParameterDeclaration(void 0,void 0,void 0,s.name,void 0,s.type);return g.suppressLeadingAndTrailingTrivia(e.name),g.copyComments(s.name,e.name),s.type&&(g.suppressLeadingAndTrailingTrivia(e.type),g.copyComments(s.type,e.type)),g.factory.createNodeArray([e,r])}return g.factory.createNodeArray([r]);function c(e){var t,r,n=e.type;n||!e.initializer&&!g.isRestParameter(e)||(t=e,r=o.getTypeAtLocation(t),n=g.getTypeNodeIfAccessible(r,t,i,a));n=g.factory.createPropertySignature(void 0,d(e),u(e)?g.factory.createToken(57):e.questionToken,n);return g.suppressLeadingAndTrailingTrivia(n),g.copyComments(e.name,n.name),e.type&&n.type&&g.copyComments(e.type,n.type),n}function u(e){if(g.isRestParameter(e)){var t=o.getTypeAtLocation(e);return!o.isTupleType(t)}return o.isOptionalParameter(e)}}(i,t,r),function(e){return g.getSynthesizedDeepClone(e)});n.replaceNodeRangeWithNodes(e,g.first(i.parameters),g.last(i.parameters),r,{joiner:", ",indentation:0,leadingTriviaOption:g.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Include});for(var a=g.sortAndDeduplicate(a.functionCalls,function(e,t){return g.compareValues(e.pos,t.pos)}),o=0,s=a;o<s.length;o++){var c,u=s[o];u.arguments&&u.arguments.length&&(c=g.getSynthesizedDeepClone(function(e,t){var r=_(e.parameters),n=g.isRestParameter(g.last(r)),e=n?t.slice(0,r.length-1):t,e=g.map(e,function(e,t){t=function(e,t){if(g.isIdentifier(t)&&g.getTextOfIdentifierOrLiteral(t)===e)return g.factory.createShorthandPropertyAssignment(e);return g.factory.createPropertyAssignment(e,t)}(d(r[t]),e);return g.suppressLeadingAndTrailingTrivia(t.name),g.isPropertyAssignment(t)&&g.suppressLeadingAndTrailingTrivia(t.initializer),g.copyComments(e,t),t});n&&t.length>=r.length&&(t=t.slice(r.length-1),t=g.factory.createPropertyAssignment(d(g.last(r)),g.factory.createArrayLiteralExpression(t)),e.push(t));return g.factory.createObjectLiteralExpression(e,!1)}(i,u.arguments),!0),n.replaceNodeRange(g.getSourceFileOfNode(u),g.first(u.arguments),g.last(u.arguments),c,{leadingTriviaOption:g.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Include}))}}(r,i,a,e,o,s)})};return{edits:[]}},getAvailableActions:function(e){var t=e.file,r=e.startPosition;if(g.isSourceFileJS(t))return g.emptyArray;if(!u(t,r,e.program.getTypeChecker()))return g.emptyArray;e=g.getLocaleSpecificMessage(g.Diagnostics.Convert_parameters_to_destructured_object);return[{name:c,description:e,actions:[{name:c,description:e}]}]}})}(ts=ts||{}),function(m){var e;!function(){var r="Convert to template string",i=m.getLocaleSpecificMessage(m.Diagnostics.Convert_to_template_string);function a(e,t){e=m.getTokenAtPosition(e,t),t=s(e);return!n(t)&&m.isParenthesizedExpression(t.parent)&&m.isBinaryExpression(t.parent.parent)?t.parent.parent:e}function s(e){return m.findAncestor(e.parent,function(e){switch(e.kind){case 201:case 202:return!1;case 216:return!(m.isBinaryExpression(e.parent)&&62!==e.parent.operatorToken.kind);default:return"quit"}})||e}function n(e){var t=c(e),e=t.containsString,t=t.areOperatorsValid;return e&&t}function c(e){if(m.isBinaryExpression(e)){var t=c(e.left),r=t.nodes,n=t.operators,i=t.containsString,t=t.areOperatorsValid;if(!i&&!m.isStringLiteral(e.right))return{nodes:[e],operators:[],containsString:!1,areOperatorsValid:!0};i=39===e.operatorToken.kind,i=t&&i;return r.push(e.right),n.push(e.operatorToken),{nodes:r,operators:n,containsString:!0,areOperatorsValid:i}}return{nodes:[e],operators:[],containsString:m.isStringLiteral(e),areOperatorsValid:!0}}e.registerRefactor(r,{getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,n=a(r,n);return t!==i?m.Debug.fail("invalid action"):{edits:function(e,t){var r=s(t),n=e.file,i=function(e,t){var r=e.nodes,n=e.operators,i=p(n,t),a=f(r,t,i),o=g(0,r),e=o[0],n=o[1],t=o[2];if(e===r.length){o=m.factory.createNoSubstitutionTemplateLiteral(n);return a(t,o),o}var s=[],n=m.factory.createTemplateHead(n);a(t,n);for(var c=e;c<r.length;c++){var u=function(e){m.isParenthesizedExpression(e)&&(function(e){var t=e.getSourceFile();m.copyTrailingComments(e,e.expression,t,3,!1),m.copyTrailingAsLeadingComments(e.expression,e.expression,t,3,!1)}(e),e=e.expression);return e}(r[c]);i(c,u);var l=g(c+1,r),_=l[0],d=l[1],l=l[2],d=(c=_-1)===r.length-1?m.factory.createTemplateTail(d):m.factory.createTemplateMiddle(d);a(l,d),s.push(m.factory.createTemplateSpan(u,d))}return m.factory.createTemplateExpression(n,s)}(c(r),n),a=m.getTrailingCommentRanges(n.text,r.end);{if(a){var t=a[a.length-1],o={pos:a[0].pos,end:t.end};return m.textChanges.ChangeTracker.with(e,function(e){e.deleteRange(n,o),e.replaceNode(n,r,i)})}return m.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,r,i)})}}(e,n)}},getAvailableActions:function(e){var t=e.file,e=e.startPosition,t=s(a(t,e)),e={name:r,description:i,actions:[]};if(m.isBinaryExpression(t)&&n(t))return e.actions.push({name:r,description:i}),[e];return m.emptyArray}});var p=function(r,n){return function(e,t){e<r.length&&m.copyTrailingComments(r[e],t,n,3,!1)}},f=function(n,i,a){return function(e,t){for(;0<e.length;){var r=e.shift();m.copyTrailingComments(n[r],t,i,3,!1),a(r,t)}}};function g(e,t){for(var r="",n=[];e<t.length&&m.isStringLiteral(t[e]);)r+=t[e].text,n.push(e),e++;return[e,r,n]}}((e=m.refactor||(m.refactor={})).convertStringOrTemplateLiteral||(e.convertStringOrTemplateLiteral={}))}(ts=ts||{}),function(u){var e,n,i,c,l,_,a,o,s;function d(e){var r=!1;return e.forEachChild(function e(t){u.isThis(t)?r=!0:u.isClassLike(t)||u.isFunctionDeclaration(t)||u.isFunctionExpression(t)||u.forEachChild(t,e)}),r}function p(e,t,r){var n=u.getTokenAtPosition(e,t),t=function(e){if(!function(e){return u.isVariableDeclaration(e)||u.isVariableDeclarationList(e)&&1===e.declarations.length}(e))return;e=(u.isVariableDeclaration(e)?e:e.declarations[0]).initializer;return e&&u.isArrowFunction(e)?e:void 0}(n.parent);if(t&&!d(t.body))return{selectedVariableDeclaration:!0,func:t};t=u.getContainingFunction(n),r=r.getTypeChecker();return!t||!u.isFunctionExpression(t)&&!u.isArrowFunction(t)||u.rangeContainsRange(t.body,n)||d(t.body)||u.isFunctionExpression(t)&&t.name&&u.FindAllReferences.Core.isSymbolReferencedInFile(t.name,r,e)?void 0:{selectedVariableDeclaration:!1,func:t}}function f(e){return u.isExpression(e)?u.factory.createBlock([u.factory.createReturnStatement(e)],!0):e}(e=u.refactor||(u.refactor={})).convertArrowFunctionOrFunctionExpression||(e.convertArrowFunctionOrFunctionExpression={}),n="Convert arrow function or function expression",i=u.getLocaleSpecificMessage(u.Diagnostics.Convert_arrow_function_or_function_expression),c="Convert to anonymous function",l="Convert to named function",_="Convert to arrow function",a=u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_anonymous_function),o=u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_named_function),s=u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_arrow_function),e.registerRefactor(n,{getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,i=e.program,i=p(r,n,i);if(!i)return;var a=i.func,o=[];switch(t){case c:o.push.apply(o,function(e,t){var r=e.file,n=f(t.body),i=u.factory.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,n);return u.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(r,t,i)})}(e,a));break;case l:var s=function(e){var t=e.parent;if(!u.isVariableDeclaration(t)||!u.isVariableDeclarationInVariableStatement(t))return;var r=t.parent,e=r.parent;return u.isVariableDeclarationList(r)&&u.isVariableStatement(e)&&u.isIdentifier(t.name)?{variableDeclaration:t,variableDeclarationList:r,statement:e,name:t.name}:void 0}(a);if(!s)return;o.push.apply(o,function(e,t,r){var n=e.file,i=f(t.body),a=r.variableDeclaration,o=r.variableDeclarationList,s=r.statement,r=r.name;u.suppressLeadingTrivia(s);var c=u.factory.createFunctionDeclaration(t.decorators,s.modifiers,t.asteriskToken,r,t.typeParameters,t.parameters,t.type,i);return 1===o.declarations.length?u.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,s,c)}):u.textChanges.ChangeTracker.with(e,function(e){e.delete(n,a),e.insertNodeAfter(n,s,c)})}(e,a,s));break;case _:if(!u.isFunctionExpression(a))return;o.push.apply(o,function(e,t){var r,n=e.file,i=t.body.statements[0];!function(e,t){return 1===e.statements.length&&u.isReturnStatement(t)&&!!t.expression}(t.body,i)?r=t.body:(r=i.expression,u.suppressLeadingAndTrailingTrivia(r),u.copyComments(i,r));var a=u.factory.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,u.factory.createToken(38),r);return u.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,t,a)})}(e,a));break;default:return u.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:o}},getAvailableActions:function(e){var t=e.file,r=e.startPosition,e=e.program,t=p(t,r,e);if(!t)return u.emptyArray;r=t.selectedVariableDeclaration,e=t.func,t=[];(r||u.isArrowFunction(e)&&u.isVariableDeclaration(e.parent))&&t.push({name:l,description:o});!r&&u.isArrowFunction(e)&&t.push({name:c,description:a});u.isFunctionExpression(e)&&t.push({name:_,description:s});return[{name:n,description:i,actions:t}]}})}(ts=ts||{}),function(k){function s(e,t,r,n){r=k.isNodeKind(e)?new i(e,t,r):78===e?new p(78,t,r):79===e?new m(79,t,r):new l(e,t,r);return r.parent=n,r.flags=25358336&n.flags,r}k.servicesVersion="0.8";var i=(e.prototype.assertHasRealPosition=function(e){k.Debug.assert(!k.positionIsSynthesized(this.pos)&&!k.positionIsSynthesized(this.end),e||"Node must have a real position for this operation")},e.prototype.getSourceFile=function(){return k.getSourceFileOfNode(this)},e.prototype.getStart=function(e,t){return this.assertHasRealPosition(),k.getTokenPosOfNode(this,e,t)},e.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},e.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},e.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},e.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},e.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},e.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},e.prototype.getText=function(e){return this.assertHasRealPosition(),(e=e||this.getSourceFile()).text.substring(this.getStart(e),this.getEnd())},e.prototype.getChildCount=function(e){return this.getChildren(e).length},e.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},e.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._children=function(t,e){if(!k.isNodeKind(t.kind))return k.emptyArray;var r=[];if(k.isJSDocCommentContainingNode(t))return t.forEachChild(function(e){r.push(e)}),r;k.scanner.setText((e||t.getSourceFile()).text);var n=t.pos,e=function(e){c(r,n,e.pos,t),r.push(e),n=e.end};return k.forEach(t.jsDoc,e),n=t.pos,t.forEachChild(e,function(e){c(r,n,e.pos,t),r.push(a(e,t)),n=e.end}),c(r,n,t.end,t),k.scanner.setText(void 0),r}(this,e))},e.prototype.getFirstToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e);if(t.length){t=k.find(t,function(e){return e.kind<301||333<e.kind});return t.kind<157?t:t.getFirstToken(e)}},e.prototype.getLastToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e),t=k.lastOrUndefined(t);if(t)return t.kind<157?t:t.getLastToken(e)},e.prototype.forEachChild=function(e,t){return k.forEachChild(this,e,t)},e);function e(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}function c(e,t,r,n){for(k.scanner.setTextPos(t);t<r;){var i=k.scanner.scan(),a=k.scanner.getTextPos();if(a<=r&&(78===i&&k.Debug.fail("Did not expect "+k.Debug.formatSyntaxKind(n.kind)+" to have an Identifier in its trivia"),e.push(s(i,t,a,n))),t=a,1===i)break}}function a(e,t){var r=s(334,e.pos,e.end,t);r._children=[];for(var n=e.pos,i=0,a=e;i<a.length;i++){var o=a[i];c(r._children,n,o.pos,t),r._children.push(o),n=o.end}return c(r._children,n,e.end,t),r}var t=(r.prototype.getSourceFile=function(){return k.getSourceFileOfNode(this)},r.prototype.getStart=function(e,t){return k.getTokenPosOfNode(this,e,t)},r.prototype.getFullStart=function(){return this.pos},r.prototype.getEnd=function(){return this.end},r.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return(e=e||this.getSourceFile()).text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(){return 0},r.prototype.getChildAt=function(){},r.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||k.emptyArray},r.prototype.getFirstToken=function(){},r.prototype.getLastToken=function(){},r.prototype.forEachChild=function(){},r);function r(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}var n=(o.prototype.getFlags=function(){return this.flags},Object.defineProperty(o.prototype,"name",{get:function(){return k.symbolName(this)},enumerable:!1,configurable:!0}),o.prototype.getEscapedName=function(){return this.escapedName},o.prototype.getName=function(){return this.name},o.prototype.getDeclarations=function(){return this.declarations},o.prototype.getDocumentationComment=function(e){var t;return this.documentationComment||(this.documentationComment=k.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration?(t=this.target.tupleLabelDeclaration,this.documentationComment=S([t],e)):this.documentationComment=S(this.declarations,e)),this.documentationComment},o.prototype.getContextualDocumentationComment=function(e,t){switch(null==e?void 0:e.kind){case 167:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=k.emptyArray,this.contextualGetAccessorDocumentationComment=S(k.filter(this.declarations,k.isGetAccessor),t)),this.contextualGetAccessorDocumentationComment;case 168:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=k.emptyArray,this.contextualSetAccessorDocumentationComment=S(k.filter(this.declarations,k.isSetAccessor),t)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(t)}},o.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=k.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},o);function o(e,t){this.flags=e,this.escapedName=t}var u,l=(__extends(_,u=t),_);function _(e,t,r){r=u.call(this,t,r)||this;return r.kind=e,r}var d,p=(__extends(f,d=t),Object.defineProperty(f.prototype,"text",{get:function(){return k.idText(this)},enumerable:!1,configurable:!0}),f);function f(e,t,r){r=d.call(this,t,r)||this;return r.kind=78,r}p.prototype.kind=78;var g,m=(__extends(y,g=t),Object.defineProperty(y.prototype,"text",{get:function(){return k.idText(this)},enumerable:!1,configurable:!0}),y);function y(e,t,r){return g.call(this,t,r)||this}m.prototype.kind=79;var h=(v.prototype.getFlags=function(){return this.flags},v.prototype.getSymbol=function(){return this.symbol},v.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},v.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},v.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},v.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},v.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},v.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},v.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},v.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},v.prototype.isNullableType=function(){return this.checker.isNullableType(this)},v.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},v.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},v.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},v.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},v.prototype.isUnion=function(){return!!(1048576&this.flags)},v.prototype.isIntersection=function(){return!!(2097152&this.flags)},v.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},v.prototype.isLiteral=function(){return!!(384&this.flags)},v.prototype.isStringLiteral=function(){return!!(128&this.flags)},v.prototype.isNumberLiteral=function(){return!!(256&this.flags)},v.prototype.isTypeParameter=function(){return!!(262144&this.flags)},v.prototype.isClassOrInterface=function(){return!!(3&k.getObjectFlags(this))},v.prototype.isClass=function(){return!!(1&k.getObjectFlags(this))},Object.defineProperty(v.prototype,"typeArguments",{get:function(){if(4&k.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),v);function v(e,t){this.checker=e,this.flags=t}var b=(x.prototype.getDeclaration=function(){return this.declaration},x.prototype.getTypeParameters=function(){return this.typeParameters},x.prototype.getParameters=function(){return this.parameters},x.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},x.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=S(k.singleElementArray(this.declaration),this.checker))},x.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?k.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},x);function x(e,t){this.checker=e,this.flags=t}function D(e){return k.getJSDocTags(e).some(function(e){return"inheritDoc"===e.tagName.text})}function S(e,n){if(!e)return k.emptyArray;var i=k.JsDoc.getJsDocCommentsFromDeclarations(e);return 0!==i.length&&!e.some(D)||k.forEachUnique(e,function(e){var t,r,e=(t=(e=e).symbol.name,r=n,k.firstDefined(e.parent?k.getAllSuperTypeNodes(e.parent):k.emptyArray,function(e){e=r.getTypeAtLocation(e),e=e&&r.getPropertyOfType(e,t),e=e&&e.getDocumentationComment(r);return e&&e.length?e:void 0}));e&&(i=0===i.length?e.slice():e.concat(k.lineBreakPart(),i))}),i}var T,C=(__extends(E,T=i),E.prototype.update=function(e,t){return k.updateSourceFile(this,e,t)},E.prototype.getLineAndCharacterOfPosition=function(e){return k.getLineAndCharacterOfPosition(this,e)},E.prototype.getLineStarts=function(){return k.getLineStarts(this)},E.prototype.getPositionOfLineAndCharacter=function(e,t,r){return k.computePositionOfLineAndCharacter(k.getLineStarts(this),e,t,this.text,r)},E.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,e=this.getLineStarts();r+1>=e.length&&(t=this.getEnd()),t=t||e[r+1]-1;r=this.getFullText();return"\n"===r[t]&&"\r"===r[t-1]?t-1:t},E.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},E.prototype.computeNamedDeclarations=function(){var r=k.createMultiMap();return this.forEachChild(function e(t){switch(t.kind){case 251:case 208:case 165:case 164:var r,n=t,i=c(n);i&&(r=s(i),(i=k.lastOrUndefined(r))&&n.parent===i.parent&&n.symbol===i.symbol?n.body&&!i.body&&(r[r.length-1]=n):r.push(n)),k.forEachChild(t,e);break;case 252:case 221:case 253:case 254:case 255:case 256:case 260:case 270:case 265:case 262:case 263:case 167:case 168:case 177:o(t),k.forEachChild(t,e);break;case 160:if(!k.hasSyntacticModifier(t,92))break;case 249:case 198:var n=t;if(k.isBindingPattern(n.name)){k.forEachChild(n.name,e);break}n.initializer&&e(n.initializer);case 291:case 163:case 162:o(t);break;case 267:var a=t;a.exportClause&&(k.isNamedExports(a.exportClause)?k.forEach(a.exportClause.elements,e):e(a.exportClause.name));break;case 261:var a=t.importClause;a&&(a.name&&o(a.name),a.namedBindings&&(263===a.namedBindings.kind?o(a.namedBindings):k.forEach(a.namedBindings.elements,e)));break;case 216:0!==k.getAssignmentDeclarationKind(t)&&o(t);default:k.forEachChild(t,e)}}),r;function o(e){var t=c(e);t&&r.add(t,e)}function s(e){var t=r.get(e);return t||r.set(e,t=[]),t}function c(e){e=k.getNonAssignedNameOfDeclaration(e);return e&&(k.isComputedPropertyName(e)&&k.isPropertyAccessExpression(e.expression)?e.expression.name.text:k.isPropertyName(e)?k.getNameFromPropertyName(e):void 0)}},E);function E(e,t,r){r=T.call(this,e,t,r)||this;return r.kind=297,r}var N=(A.prototype.getLineAndCharacterOfPosition=function(e){return k.getLineAndCharacterOfPosition(this,e)},A);function A(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}function F(e){var t=!0;for(r in e)if(k.hasProperty(e,r)&&!P(r)){t=!1;break}if(t)return e;var r,n={};for(r in e)k.hasProperty(e,r)&&(n[P(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]);return n}function P(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function w(){return{target:1,jsx:1}}k.toEditorSettings=F,k.displayPartsToString=function(e){return e?k.map(e,function(e){return e.text}).join(""):""},k.getDefaultCompilerOptions=w,k.getSupportedCodeFixes=function(){return k.codefix.getSupportedErrorCodes()};var I=(O.prototype.compilationSettings=function(){return this._compilationSettings},O.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},O.prototype.createEntry=function(e,t){var r=this.host.getScriptSnapshot(e),e=r?{hostFileName:e,version:this.host.getScriptVersion(e),scriptSnapshot:r,scriptKind:k.getScriptKind(e,this.host)}:e;return this.fileNameToEntry.set(t,e),e},O.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},O.prototype.getHostFileInformation=function(e){e=this.fileNameToEntry.get(e);return k.isString(e)?void 0:e},O.prototype.getOrCreateEntryByPath=function(e,t){t=this.getEntryByPath(t)||this.createEntry(e,t);return k.isString(t)?void 0:t},O.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach(function(e){k.isString(e)?t.push(e):t.push(e.hostFileName)}),t},O.prototype.getScriptSnapshot=function(e){e=this.getHostFileInformation(e);return e&&e.scriptSnapshot},O);function O(e,t){this.host=e,this.currentDirectory=e.getCurrentDirectory(),this.fileNameToEntry=new k.Map;for(var r=0,n=e.getScriptFileNames();r<n.length;r++){var i=n[r];this.createEntry(i,k.toPath(i,this.currentDirectory,t))}this._compilationSettings=e.getCompilationSettings()||w()}var M=(L.prototype.getCurrentSourceFile=function(e){var t=this.host.getScriptSnapshot(e);if(!t)throw new Error("Could not find file: '"+e+"'.");var r,n=k.getScriptKind(e,this.host),i=this.host.getScriptVersion(e);return this.currentFileName!==e?r=B(e,t,99,i,!0,n):this.currentFileVersion!==i&&(n=t.getChangeRange(this.currentFileScriptSnapshot),r=j(this.currentSourceFile,t,i,n)),r&&(this.currentFileVersion=i,this.currentFileName=e,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},L);function L(e){this.host=e}function R(e,t,r){e.version=r,e.scriptSnapshot=t}function B(e,t,r,n,i,a){a=k.createSourceFile(e,k.getSnapshotText(t),r,i,a);return R(a,t,n),a}function j(e,t,r,n,i){if(n&&r!==e.version){var a,o=void 0,s=0!==n.span.start?e.text.substr(0,n.span.start):"",c=k.textSpanEnd(n.span)!==e.text.length?e.text.substr(k.textSpanEnd(n.span)):"";o=0===n.newLength?s&&c?s+c:s||c:(a=t.getText(n.span.start,n.span.start+n.newLength),s&&c?s+a+c:s?s+a:a+c);i=k.updateSourceFile(e,o,n,i);return R(i,t,r),i.nameTable=void 0,e!==i&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),i}return B(e.fileName,t,e.languageVersion,r,!0,e.scriptKind)}k.createLanguageServiceSourceFile=B,k.updateLanguageServiceSourceFile=j;var J=(z.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},z.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new k.OperationCanceledException},z);function z(e){this.cancellationToken=e}function U(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}U.prototype.isCancellationRequested=function(){var e=k.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},U.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new k.OperationCanceledException},t=U,k.ThrottledCancellationToken=t;var V=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],K=__spreadArrays(V,["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function q(e){e=function(e){switch(e.kind){case 10:case 14:case 8:if(158===e.parent.kind)return k.isObjectLiteralElement(e.parent.parent)?e.parent.parent:void 0;case 78:return!k.isObjectLiteralElement(e.parent)||200!==e.parent.parent.kind&&281!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return e&&(k.isObjectLiteralExpression(e.parent)||k.isJsxAttributes(e.parent))?e:void 0}function W(t,r,e,n){var i=k.getNameFromPropertyName(t.name);if(!i)return k.emptyArray;if(!e.isUnion())return(a=e.getProperty(i))?[a]:k.emptyArray;var a,o=k.mapDefined(e.types,function(e){return k.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(e,t.parent)?void 0:e.getProperty(i)});if(n&&(0===o.length||o.length===e.types.length)&&(a=e.getProperty(i)))return[a];return 0===o.length?k.mapDefined(e.types,function(e){return e.getProperty(i)}):o}k.createLanguageService=function(u,l,e){var _;void 0===l&&(l=k.createDocumentRegistry(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames(),u.getCurrentDirectory())),_=void 0===e?k.LanguageServiceMode.Semantic:"boolean"==typeof e?e?k.LanguageServiceMode.Syntactic:k.LanguageServiceMode.Semantic:e;var d,p,S=new M(u),f=0,g=new J(u.getCancellationToken&&u.getCancellationToken()),m=u.getCurrentDirectory();function y(e){u.log&&u.log(e)}!k.localizedDiagnosticMessages&&u.getLocalizedDiagnosticMessages&&k.setLocalizedDiagnosticMessages(u.getLocalizedDiagnosticMessages());var h=k.hostUsesCaseSensitiveFileNames(u),v=k.createGetCanonicalFileName(h),b=k.getSourceMapper({useCaseSensitiveFileNames:function(){return h},getCurrentDirectory:function(){return m},getProgram:a,fileExists:k.maybeBind(u,u.fileExists),readFile:k.maybeBind(u,u.readFile),getDocumentPositionMapper:k.maybeBind(u,u.getDocumentPositionMapper),getSourceFileLike:k.maybeBind(u,u.getSourceFileLike),log:y});function x(e){var t=d.getSourceFile(e);if(t)return t;e=new Error("Could not find source file: '"+e+"'.");throw e.ProgramFiles=d.getSourceFiles().map(function(e){return e.fileName}),e}function D(){if(k.Debug.assert(_!==k.LanguageServiceMode.Syntactic),u.getProjectVersion){var e=u.getProjectVersion();if(e){if(p===e&&(null===(n=u.hasChangedAutomaticTypeDirectiveNames)||void 0===n||!n.call(u)))return;p=e}}var t=u.getTypeRootsVersion?u.getTypeRootsVersion():0;f!==t&&(y("TypeRoots version has changed; provide new program"),d=void 0,f=t);var o,s,c=new I(u,v),r=c.getRootFileNames(),n=u.hasInvalidatedResolution||k.returnFalse,e=k.maybeBind(u,u.hasChangedAutomaticTypeDirectiveNames),t=c.getProjectReferences();function i(e){var t=k.toPath(e,m,v),t=c&&c.getEntryByPath(t);return t?!k.isString(t):!!u.fileExists&&u.fileExists(e)}function a(e,t,r,n,i){k.Debug.assert(void 0!==c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var a=c&&c.getOrCreateEntryByPath(e,t);if(a){if(!i){i=d&&d.getSourceFileByPath(t);if(i)return k.Debug.assertEqual(a.scriptKind,i.scriptKind,"Registered script kind should match new script kind."),l.updateDocumentWithKey(e,t,o,s,a.scriptSnapshot,a.version,a.scriptKind)}return l.acquireDocumentWithKey(e,t,o,s,a.scriptSnapshot,a.version,a.scriptKind)}}k.isProgramUptoDate(d,r,c.compilationSettings(),function(e,t){return u.getScriptVersion(t)},i,n,e,t)||(o=c.compilationSettings(),n={getSourceFile:function(e,t,r,n){return a(e,k.toPath(e,m,v),0,0,n)},getSourceFileByPath:a,getCancellationToken:function(){return g},getCanonicalFileName:v,useCaseSensitiveFileNames:function(){return h},getNewLine:function(){return k.getNewLineCharacter(o,function(){return k.getNewLineOrDefaultFromHost(u)})},getDefaultLibFileName:function(e){return u.getDefaultLibFileName(e)},writeFile:k.noop,getCurrentDirectory:function(){return m},fileExists:i,readFile:function(e){var t=k.toPath(e,m,v),t=c&&c.getEntryByPath(t);if(t)return k.isString(t)?void 0:k.getSnapshotText(t.scriptSnapshot);return u.readFile&&u.readFile(e)},getSymlinkCache:k.maybeBind(u,u.getSymlinkCache),realpath:k.maybeBind(u,u.realpath),directoryExists:function(e){return k.directoryProbablyExists(e,u)},getDirectories:function(e){return u.getDirectories?u.getDirectories(e):[]},readDirectory:function(e,t,r,n,i){return k.Debug.checkDefined(u.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),u.readDirectory(e,t,r,n,i)},onReleaseOldSourceFile:function(e,t){t=l.getKeyForCompilationSettings(t);l.releaseDocumentWithKey(e.resolvedPath,t)},hasInvalidatedResolution:n,hasChangedAutomaticTypeDirectiveNames:e,trace:k.maybeBind(u,u.trace),resolveModuleNames:k.maybeBind(u,u.resolveModuleNames),resolveTypeReferenceDirectives:k.maybeBind(u,u.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:k.maybeBind(u,u.useSourceOfProjectReferenceRedirect)},null!==(e=u.setCompilerHost)&&void 0!==e&&e.call(u,n),s=l.getKeyForCompilationSettings(o),t={rootNames:r,options:o,host:n,oldProgram:d,projectReferences:t},d=k.createProgram(t),c=void 0,b.clearCache(),d.getTypeChecker())}function a(){if(_!==k.LanguageServiceMode.Syntactic)return D(),d;k.Debug.assert(void 0===d)}function r(e,t,r){var n=k.normalizePath(e);k.Debug.assert(r.some(function(e){return k.normalizePath(e)===n})),D();r=k.mapDefined(r,function(e){return d.getSourceFile(e)}),e=x(e);return k.DocumentHighlights.getDocumentHighlights(d,g,e,t,r)}function s(e,t,r,n){D();var i=r&&2===r.use?d.getSourceFiles().filter(function(e){return!d.isSourceFileDefaultLibrary(e)}):d.getSourceFiles();return k.FindAllReferences.findReferenceOrRenameEntries(d,g,i,e,t,r,n)}function n(e){e=k.getScriptKind(e,u);return 3===e||4===e}var i=new k.Map(k.getEntries(((e={})[18]=19,e[20]=21,e[22]=23,e[31]=29,e)));function o(e){var t;return k.Debug.assertEqual(e.type,"install package"),u.installPackage?u.installPackage({fileName:(t=e.file,k.toPath(t,m,v)),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`")}function T(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function c(e,t,r){for(var n=S.getCurrentSourceFile(e),i=[],a=T(n,t),o=a.lineStarts,s=a.firstLine,c=a.lastLine,u=r||!1,l=Number.MAX_VALUE,_=new k.Map,d=new RegExp(/\S/),p=k.isInsideJsxElement(n,o[s]),f=p?"{/*":"//",g=s;g<=c;g++){var m=n.text.substring(o[g],n.getLineEndOfPosition(o[g])),y=d.exec(m);y&&(l=Math.min(l,y.index),_.set(g.toString(),y.index),m.substr(y.index,f.length)!==f&&(u=void 0===r||r))}for(var h,g=s;g<=c;g++)s!==c&&o[g]===t.end||void 0!==(h=_.get(g.toString()))&&(p?i.push.apply(i,C(e,{pos:o[g]+l,end:n.getLineEndOfPosition(o[g])},u,p)):u?i.push({newText:f,span:{length:0,start:o[g]+l}}):n.text.substr(o[g]+h,f.length)===f&&i.push({newText:"",span:{length:f.length,start:o[g]+h}}));return i}function C(e,t,r,n){for(var i=S.getCurrentSourceFile(e),a=[],o=i.text,s=!1,c=r||!1,u=[],l=t.pos,_=void 0!==n?n:k.isInsideJsxElement(i,l),d=_?"{/*":"/*",p=_?"*/}":"*/",f=_?"\\{\\/\\*":"\\/\\*",g=_?"\\*\\/\\}":"\\*\\/";l<=t.end;){var m=o.substr(l,d.length)===d?d.length:0,y=k.isInComment(i,l+m);l=y?(_&&(y.pos--,y.end++),u.push(y.pos),3===y.kind&&u.push(y.end),s=!0,y.end+1):(y=o.substring(l,t.end).search("("+f+")|("+g+")"),c=void 0!==r?r:c||!k.isTextWhiteSpaceLike(o,l,-1===y?t.end:l+y),-1===y?t.end+1:l+y+p.length)}if(c||!s){2!==(null===(n=k.isInComment(i,t.pos))||void 0===n?void 0:n.kind)&&k.insertSorted(u,t.pos,k.compareValues),k.insertSorted(u,t.end,k.compareValues);n=u[0];o.substr(n,d.length)!==d&&a.push({newText:d,span:{length:0,start:n}});for(var h=1;h<u.length-1;h++)o.substr(u[h]-p.length,p.length)!==p&&a.push({newText:p,span:{length:0,start:u[h]}}),o.substr(u[h],d.length)!==d&&a.push({newText:d,span:{length:0,start:u[h]}});a.length%2!=0&&a.push({newText:p,span:{length:0,start:u[u.length-1]}})}else for(var v=0,b=u;v<b.length;v++){var x=b[v],D=0<x-p.length?x-p.length:0,m=o.substr(D,p.length)===p?p.length:0;a.push({newText:"",span:{length:d.length,start:x-m}})}return a}function E(e,t,r,n,i){t="number"==typeof t?[t,void 0]:[t.pos,t.end];return{file:e,startPosition:t[0],endPosition:t[1],program:a(),host:u,formatContext:k.formatting.getFormatContext(n,u),cancellationToken:g,preferences:r,triggerReason:i}}i.forEach(function(e,t){return i.set(e.toString(),Number(t))});var t={dispose:function(){var t;d&&(t=l.getKeyForCompilationSettings(d.getCompilerOptions()),k.forEach(d.getSourceFiles(),function(e){return l.releaseDocumentWithKey(e.resolvedPath,t)}),d=void 0),u=void 0},cleanupSemanticCache:function(){d=void 0},getSyntacticDiagnostics:function(e){return D(),d.getSyntacticDiagnostics(x(e),g).slice()},getSemanticDiagnostics:function(e){D();var t=x(e),e=d.getSemanticDiagnostics(t,g);return k.getEmitDeclarations(d.getCompilerOptions())?(t=d.getDeclarationDiagnostics(t,g),__spreadArrays(e,t)):e.slice()},getSuggestionDiagnostics:function(e){return D(),k.computeSuggestionDiagnostics(x(e),d,g)},getCompilerOptionsDiagnostics:function(){return D(),__spreadArrays(d.getOptionsDiagnostics(g),d.getGlobalDiagnostics(g))},getSyntacticClassifications:function(e,t){return k.getSyntacticClassifications(g,S.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,r){return n(e)?(D(),"2020"===(r||"original")?k.classifier.v2020.getSemanticClassifications(d,g,x(e),t):k.getSemanticClassifications(d.getTypeChecker(),g,x(e),d.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(e,t){return k.getEncodedSyntacticClassifications(g,S.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,r){return n(e)?(D(),"original"===(r||"original")?k.getEncodedSemanticClassifications(d.getTypeChecker(),g,x(e),d.getClassifiableNames(),t):k.classifier.v2020.getEncodedSemanticClassifications(d,g,x(e),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(e,t,r){void 0===r&&(r=k.emptyOptions);var n=__assign(__assign({},k.identity(r)),{includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions});return D(),k.Completions.getCompletionsAtPosition(u,d,y,x(e),t,n,r.triggerCharacter)},getCompletionEntryDetails:function(e,t,r,n,i,a){return void 0===a&&(a=k.emptyOptions),D(),k.Completions.getCompletionEntryDetails(d,y,x(e),t,{name:r,source:i},u,n&&k.formatting.getFormatContext(n,u),a,g)},getCompletionEntrySymbol:function(e,t,r,n,i){return void 0===i&&(i=k.emptyOptions),D(),k.Completions.getCompletionEntrySymbol(d,y,x(e),t,{name:r,source:n},u,i)},getSignatureHelpItems:function(e,t,r){return r=(void 0===r?k.emptyOptions:r).triggerReason,D(),e=x(e),k.SignatureHelp.getSignatureHelpItems(d,e,t,r,g)},getQuickInfoAtPosition:function(e,t){D();var r=x(e),n=k.getTouchingPropertyName(r,t);if(n!==r){var i=d.getTypeChecker(),a=function(e){if(k.isNewExpression(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;return e}(n),o=function(e,t){var r=q(e);if(r){var n=t.getContextualType(r.parent),n=n&&W(r,t,n,!1);if(n&&1===n.length)return k.first(n)}return t.getSymbolAtLocation(e)}(a,i);if(!o||i.isUnknownSymbol(o)){var s=function(e,t,r){switch(t.kind){case 78:return!k.isLabelName(t)&&!k.isTagName(t);case 201:case 157:return!k.isInComment(e,r);case 107:case 187:case 105:return!0;default:return!1}}(r,a,t)?i.getTypeAtLocation(a):void 0;return s&&{kind:"",kindModifiers:"",textSpan:k.createTextSpanFromNode(a,r),displayParts:i.runWithCancellationToken(g,function(e){return k.typeToDisplayParts(e,s,k.getContainerNode(a))}),documentation:s.symbol?s.symbol.getDocumentationComment(i):void 0,tags:s.symbol?s.symbol.getJsDocTags():void 0}}e=i.runWithCancellationToken(g,function(e){return k.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,o,r,k.getContainerNode(a),a)}),n=e.symbolKind,t=e.displayParts,i=e.documentation,e=e.tags;return{kind:n,kindModifiers:k.SymbolDisplay.getSymbolModifiers(o),textSpan:k.createTextSpanFromNode(a,r),displayParts:t,documentation:i,tags:e}}},getDefinitionAtPosition:function(e,t){return D(),k.GoToDefinition.getDefinitionAtPosition(d,x(e),t)},getDefinitionAndBoundSpan:function(e,t){return D(),k.GoToDefinition.getDefinitionAndBoundSpan(d,x(e),t)},getImplementationAtPosition:function(e,t){return D(),k.FindAllReferences.getImplementationsAtPosition(d,g,d.getSourceFiles(),x(e),t)},getTypeDefinitionAtPosition:function(e,t){return D(),k.GoToDefinition.getTypeDefinitionAtPosition(d.getTypeChecker(),x(e),t)},getReferencesAtPosition:function(e,t){return D(),s(k.getTouchingPropertyName(x(e),t),t,{use:1},k.FindAllReferences.toReferenceEntry)},findReferences:function(e,t){return D(),k.FindAllReferences.findReferencedSymbols(d,g,d.getSourceFiles(),x(e),t)},getOccurrencesAtPosition:function(e,t){return k.flatMap(r(e,t,[e]),function(t){return t.highlightSpans.map(function(e){return __assign(__assign({fileName:t.fileName,textSpan:e.textSpan,isWriteAccess:"writtenReference"===e.kind,isDefinition:!1},e.isInString&&{isInString:!0}),e.contextSpan&&{contextSpan:e.contextSpan})})})},getDocumentHighlights:r,getNameOrDottedNameSpan:function(e,t,r){if(e=S.getCurrentSourceFile(e),(t=k.getTouchingPropertyName(e,t))!==e){switch(t.kind){case 201:case 157:case 10:case 94:case 109:case 103:case 105:case 107:case 187:case 78:break;default:return}for(var n=t;;)if(k.isRightSideOfPropertyAccess(n)||k.isRightSideOfQualifiedName(n))n=n.parent;else{if(!k.isNameOfModuleDeclaration(n))break;if(256!==n.parent.parent.kind||n.parent.parent.body!==n.parent)break;n=n.parent.parent.name}return k.createTextSpanFromBounds(n.getStart(),t.getEnd())}},getBreakpointStatementAtPosition:function(e,t){return e=S.getCurrentSourceFile(e),k.BreakpointResolver.spanInSourceFileAtLocation(e,t)},getNavigateToItems:function(e,t,r,n){return void 0===n&&(n=!1),D(),r=r?[x(r)]:d.getSourceFiles(),k.NavigateTo.getNavigateToItems(r,d.getTypeChecker(),g,e,t,n)},getRenameInfo:function(e,t,r){return D(),k.Rename.getRenameInfo(d,x(e),t,r)},getSmartSelectionRange:function(e,t){return k.SmartSelectionRange.getSmartSelectionRange(t,S.getCurrentSourceFile(e))},findRenameLocations:function(e,t,r,n,i){D();var a=x(e),o=k.getAdjustedRenameLocation(k.getTouchingPropertyName(a,t));if(k.isIdentifier(o)&&(k.isJsxOpeningElement(o.parent)||k.isJsxClosingElement(o.parent))&&k.isIntrinsicJsxName(o.escapedText)){e=o.parent.parent;return[e.openingElement,e.closingElement].map(function(e){var t=k.createTextSpanFromNode(e.tagName,a);return __assign({fileName:a.fileName,textSpan:t},k.FindAllReferences.toContextSpan(t,a,e.parent))})}return s(o,t,{findInStrings:r,findInComments:n,providePrefixAndSuffixTextForRename:i,use:2},function(e,t,r){return k.FindAllReferences.toRenameLocation(e,t,r,i||!1)})},getNavigationBarItems:function(e){return k.NavigationBar.getNavigationBarItems(S.getCurrentSourceFile(e),g)},getNavigationTree:function(e){return k.NavigationBar.getNavigationTree(S.getCurrentSourceFile(e),g)},getOutliningSpans:function(e){return e=S.getCurrentSourceFile(e),k.OutliningElementsCollector.collectElements(e,g)},getTodoComments:function(e,t){D();var r=x(e);g.throwIfCancellationRequested();var n,i,a=r.text,o=[];if(0<t.length&&(i=r.fileName,!k.stringContains(i,"/node_modules/")))for(var s,c=(e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",i="(?:"+k.map(t,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(e+"("+i+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim"));s=c.exec(a);){g.throwIfCancellationRequested();k.Debug.assert(s.length===t.length+3);var u=s[1],l=s.index+u.length;if(k.isInComment(r,l)){for(var _=void 0,d=0;d<t.length;d++)s[d+3]&&(_=t[d]);if(void 0===_)return k.Debug.fail();97<=(n=a.charCodeAt(l+_.text.length))&&n<=122||65<=n&&n<=90||48<=n&&n<=57||(u=s[2],o.push({descriptor:_,message:u,position:l}))}}return o},getBraceMatchingAtPosition:function(e,t){var r=S.getCurrentSourceFile(e),e=k.getTouchingToken(r,t);return(t=(t=e.getStart(r)===t?i.get(e.kind.toString()):void 0)&&k.findChildOfKind(e.parent,t,r))?[k.createTextSpanFromNode(e,r),k.createTextSpanFromNode(t,r)].sort(function(e,t){return e.start-t.start}):k.emptyArray},getIndentationAtPosition:function(e,t,r){var n=k.timestamp(),r=F(r),e=S.getCurrentSourceFile(e);return y("getIndentationAtPosition: getCurrentSourceFile: "+(k.timestamp()-n)),n=k.timestamp(),r=k.formatting.SmartIndenter.getIndentation(t,e,r),y("getIndentationAtPosition: computeIndentation  : "+(k.timestamp()-n)),r},getFormattingEditsForRange:function(e,t,r,n){return e=S.getCurrentSourceFile(e),k.formatting.formatSelection(t,r,e,k.formatting.getFormatContext(F(n),u))},getFormattingEditsForDocument:function(e,t){return k.formatting.formatDocument(S.getCurrentSourceFile(e),k.formatting.getFormatContext(F(t),u))},getFormattingEditsAfterKeystroke:function(e,t,r,n){var i=S.getCurrentSourceFile(e),a=k.formatting.getFormatContext(F(n),u);if(!k.isInComment(i,t))switch(r){case"{":return k.formatting.formatOnOpeningCurly(t,i,a);case"}":return k.formatting.formatOnClosingCurly(t,i,a);case";":return k.formatting.formatOnSemicolon(t,i,a);case"\n":return k.formatting.formatOnEnter(t,i,a)}return[]},getDocCommentTemplateAtPosition:function(e,t){return k.JsDoc.getDocCommentTemplateAtPosition(k.getNewLineOrDefaultFromHost(u),S.getCurrentSourceFile(e),t)},isValidBraceCompletionAtPosition:function(e,t,r){if(60===r)return!1;var n=S.getCurrentSourceFile(e);if(k.isInString(n,t))return!1;if(k.isInsideJsxElementOrAttribute(n,t))return 123===r;if(k.isInTemplateString(n,t))return!1;switch(r){case 39:case 34:case 96:return!k.isInComment(n,t)}return!0},getJsxClosingTagAtPosition:function(e,t){if(e=S.getCurrentSourceFile(e),t=k.findPrecedingToken(t,e)){t=31===t.kind&&k.isJsxOpeningElement(t.parent)?t.parent.parent:k.isJsxText(t)?t.parent:void 0;return t&&function e(t){var r=t.openingElement,n=t.closingElement,t=t.parent;return!k.tagNamesAreEquivalent(r.tagName,n.tagName)||k.isJsxElement(t)&&k.tagNamesAreEquivalent(r.tagName,t.openingElement.tagName)&&e(t)}(t)?{newText:"</"+t.openingElement.tagName.getText(e)+">"}:void 0}},getSpanOfEnclosingComment:function(e,t,r){return e=S.getCurrentSourceFile(e),!(t=k.formatting.getRangeOfEnclosingComment(e,t))||r&&3!==t.kind?void 0:k.createTextSpanFromRange(t)},getCodeFixesAtPosition:function(e,t,r,n,i,a){void 0===a&&(a=k.emptyOptions),D();var o=x(e),s=k.createTextSpanFromBounds(t,r),c=k.formatting.getFormatContext(i,u);return k.flatMap(k.deduplicate(n,k.equateValues,k.compareValues),function(e){return g.throwIfCancellationRequested(),k.codefix.getFixes({errorCode:e,sourceFile:o,span:s,program:d,host:u,cancellationToken:g,formatContext:c,preferences:a})})},getCombinedCodeFix:function(e,t,r,n){return void 0===n&&(n=k.emptyOptions),D(),k.Debug.assert("file"===e.type),e=x(e.fileName),r=k.formatting.getFormatContext(r,u),k.codefix.getAllFixes({fixId:t,sourceFile:e,program:d,host:u,cancellationToken:g,formatContext:r,preferences:n})},applyCodeActionCommand:function(e,t){return e="string"==typeof e?t:e,k.isArray(e)?Promise.all(e.map(o)):o(e)},organizeImports:function(e,t,r){return void 0===r&&(r=k.emptyOptions),D(),k.Debug.assert("file"===e.type),e=x(e.fileName),t=k.formatting.getFormatContext(t,u),k.OrganizeImports.organizeImports(e,t,u,d,r)},getEditsForFileRename:function(e,t,r,n){return void 0===n&&(n=k.emptyOptions),k.getEditsForFileRename(a(),e,t,u,k.formatting.getFormatContext(r,u),n,b)},getEmitOutput:function(e,t,r){D();var n=x(e),e=u.getCustomTransformers&&u.getCustomTransformers();return k.getFileEmitOutput(d,n,!!t,g,e,r)},getNonBoundSourceFile:function(e){return S.getCurrentSourceFile(e)},getProgram:a,getAutoImportProvider:function(){var e;return null===(e=u.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(u)},getApplicableRefactors:function(e,t,r,n){return void 0===r&&(r=k.emptyOptions),D(),e=x(e),k.refactor.getApplicableRefactors(E(e,t,r,k.emptyOptions,n))},getEditsForRefactor:function(e,t,r,n,i,a){return void 0===a&&(a=k.emptyOptions),D(),e=x(e),k.refactor.getEditsForRefactor(E(e,r,a,t),n,i)},toLineColumnOffset:b.toLineColumnOffset,getSourceMapper:function(){return b},clearSourceMapperCache:function(){return b.clearCache()},prepareCallHierarchy:function(e,t){return D(),(t=k.CallHierarchy.resolveCallHierarchyDeclaration(d,k.getTouchingPropertyName(x(e),t)))&&k.mapOneOrMany(t,function(e){return k.CallHierarchy.createCallHierarchyItem(d,e)})},provideCallHierarchyIncomingCalls:function(e,t){return D(),e=x(e),(t=k.firstOrOnly(k.CallHierarchy.resolveCallHierarchyDeclaration(d,0===t?e:k.getTouchingPropertyName(e,t))))?k.CallHierarchy.getIncomingCalls(d,t,g):[]},provideCallHierarchyOutgoingCalls:function(e,t){return D(),e=x(e),(t=k.firstOrOnly(k.CallHierarchy.resolveCallHierarchyDeclaration(d,0===t?e:k.getTouchingPropertyName(e,t))))?k.CallHierarchy.getOutgoingCalls(d,t):[]},toggleLineComment:c,toggleMultilineComment:C,commentSelection:function(e,t){var r=T(S.getCurrentSourceFile(e),t);return(r.firstLine===r.lastLine&&t.pos!==t.end?C:c)(e,t,!0)},uncommentSelection:function(e,t){var r=S.getCurrentSourceFile(e),n=[],i=t.pos,a=t.end;i===a&&(a+=k.isInsideJsxElement(r,i)?2:1);for(var o=i;o<=a;o++){var s=k.isInComment(r,o);if(s){switch(s.kind){case 2:n.push.apply(n,c(e,{end:s.end,pos:s.pos+1},!1));break;case 3:n.push.apply(n,C(e,{end:s.end,pos:s.pos+1},!1))}o=s.end+1}}return n}};switch(_){case k.LanguageServiceMode.Semantic:break;case k.LanguageServiceMode.PartialSemantic:V.forEach(function(e){return t[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case k.LanguageServiceMode.Syntactic:K.forEach(function(e){return t[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}});break;default:k.Debug.assertNever(_)}return t},k.getNameTable=function(e){var t,s;return e.nameTable||(s=(t=e).nameTable=new k.Map,t.forEachChild(function e(t){var r,n;if(k.isIdentifier(t)&&!k.isTagName(t)&&t.escapedText||k.isStringOrNumericLiteralLike(t)&&(n=t,k.isDeclarationName(n)||272===n.parent.kind||function(e){return e&&e.parent&&202===e.parent.kind&&e.parent.argumentExpression===e}(n)||k.isLiteralComputedPropertyDeclarationName(n))?(r=k.getEscapedTextOfIdentifierOrLiteral(t),s.set(r,void 0===s.get(r)?t.pos:-1)):k.isPrivateIdentifier(t)&&(r=t.escapedText,s.set(r,void 0===s.get(r)?t.pos:-1)),k.forEachChild(t,e),k.hasJSDocNodes(t))for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];k.forEachChild(o,e)}})),e.nameTable},k.getContainingObjectLiteralElement=q,k.getPropertySymbolsFromContextualType=W,k.getDefaultLibFilePath=function(e){if("undefined"!=typeof __dirname)return __dirname+k.directorySeparator+k.getDefaultLibFileName(e);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},k.setObjectAllocator({getNodeConstructor:function(){return i},getTokenConstructor:function(){return l},getIdentifierConstructor:function(){return p},getPrivateIdentifierConstructor:function(){return m},getSourceFileConstructor:function(){return C},getSymbolConstructor:function(){return n},getTypeConstructor:function(){return h},getSignatureConstructor:function(){return b},getSourceMapSourceConstructor:function(){return N}})}(ts=ts||{}),function(C){(C.BreakpointResolver||(C.BreakpointResolver={})).spanInSourceFileAtLocation=function(h,e){if(!h.isDeclarationFile){var t=C.getTokenAtPosition(h,e),r=h.getLineAndCharacterOfPosition(e).line;if(h.getLineAndCharacterOfPosition(t.getStart(h)).line>r){e=C.findPrecedingToken(t.pos,h);if(!e||h.getLineAndCharacterOfPosition(e.getEnd()).line!==r)return;t=e}if(!(8388608&t.flags))return T(t)}function v(e,t){var r=e.decorators?C.skipTrivia(h.text,e.decorators.end):e.getStart(h);return C.createTextSpanFromBounds(r,(t||e).getEnd())}function b(e,t){return v(e,C.findNextToken(t,t.parent,h))}function x(e,t){return e&&r===h.getLineAndCharacterOfPosition(e.getStart(h)).line?T(e):T(t)}function D(e){return T(C.findPrecedingToken(e.pos,h))}function S(e){return T(C.findNextToken(e,e.parent,h))}function T(e){if(e){var t=e.parent;switch(e.kind){case 232:return _(e.declarationList.declarations[0]);case 249:case 163:case 162:return _(e);case 160:return function e(t){{if(C.isBindingPattern(t.name))return m(t.name);if(d(t))return v(t);var r=t.parent,t=r.parameters.indexOf(t);return C.Debug.assert(-1!==t),0!==t?e(r.parameters[t-1]):T(r.body)}}(e);case 251:case 165:case 164:case 167:case 168:case 166:case 208:case 209:return function(e){if(!e.body)return;if(p(e))return v(e);return T(e.body)}(e);case 230:if(C.isFunctionBlock(e))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(p(e.parent))return x(e.parent,t);return T(t)}(e);case 257:return f(e);case 287:return f(e.block);case 233:return v(e.expression);case 242:return v(e.getChildAt(0),e.expression);case 236:return b(e,e.expression);case 235:return T(e.statement);case 248:return v(e.getChildAt(0));case 234:return b(e,e.expression);case 245:return T(e.statement);case 241:case 240:return v(e.getChildAt(0),e.label);case 237:return function(e){if(e.initializer)return g(e);if(e.condition)return v(e.condition);if(e.incrementor)return v(e.incrementor)}(e);case 238:return b(e,e.expression);case 239:return g(e);case 244:return b(e,e.expression);case 284:case 285:return T(e.statements[0]);case 247:return f(e.tryBlock);case 246:case 266:return v(e,e.expression);case 260:return v(e,e.moduleReference);case 261:case 267:return v(e,e.moduleSpecifier);case 256:if(1!==C.getModuleInstanceState(e))return;case 252:case 255:case 291:case 198:return v(e);case 243:return T(e.statement);case 161:return n=t.decorators,C.createTextSpanFromBounds(C.skipTrivia(h.text,n.pos),n.end);case 196:case 197:return m(e);case 253:case 254:return;case 26:case 1:return x(C.findPrecedingToken(e.pos,h));case 27:return D(e);case 18:return function(e){switch(e.parent.kind){case 255:var t=e.parent;return x(C.findPrecedingToken(e.pos,h,e.parent),t.members.length?t.members[0]:t.getLastToken(h));case 252:t=e.parent;return x(C.findPrecedingToken(e.pos,h,e.parent),t.members.length?t.members[0]:t.getLastToken(h));case 258:return x(e.parent.parent,e.parent.clauses[0])}return T(e.parent)}(e);case 19:return function(e){switch(e.parent.kind){case 257:if(1!==C.getModuleInstanceState(e.parent.parent))return;case 255:case 252:return v(e);case 230:if(C.isFunctionBlock(e.parent))return v(e);case 287:return T(C.lastOrUndefined(e.parent.statements));case 258:var t=e.parent,t=C.lastOrUndefined(t.clauses);return t?T(C.lastOrUndefined(t.statements)):void 0;case 196:var r=e.parent;return T(C.lastOrUndefined(r.elements)||r);default:if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){r=e.parent;return v(C.lastOrUndefined(r.properties)||r)}return T(e.parent)}}(e);case 23:return function(e){{if(197===e.parent.kind){var t=e.parent;return v(C.lastOrUndefined(t.elements)||t)}if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){t=e.parent;return v(C.lastOrUndefined(t.elements)||t)}return T(e.parent)}}(e);case 20:return 235!==(u=e).parent.kind&&203!==u.parent.kind&&204!==u.parent.kind?207!==u.parent.kind?T(u.parent):S(u):D(u);case 21:return function(e){switch(e.parent.kind){case 208:case 251:case 209:case 165:case 164:case 167:case 168:case 166:case 236:case 235:case 237:case 239:case 203:case 204:case 207:return D(e);default:return T(e.parent)}}(e);case 58:return function(e){if(C.isFunctionLike(e.parent)||288===e.parent.kind||160===e.parent.kind)return D(e);return T(e.parent)}(e);case 31:case 29:return 206!==(c=e).parent.kind?T(c.parent):S(c);case 114:return 235!==(s=e).parent.kind?T(s.parent):b(s,s.parent.expression);case 90:case 82:case 95:return S(e);case 156:return 239!==(o=e).parent.kind?T(o.parent):S(o);default:if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(e))return y(e);if((78===e.kind||220===e.kind||288===e.kind||289===e.kind)&&C.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return v(e);if(216===e.kind){var r=e.left,n=e.operatorToken;if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return y(r);if(62===n.kind&&C.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return v(e);if(27===n.kind)return T(r)}if(C.isExpressionNode(e))switch(t.kind){case 235:return D(e);case 161:return T(e.parent);case 237:case 239:return v(e);case 216:if(27===e.parent.operatorToken.kind)return v(e);break;case 209:if(e.parent.body===e)return v(e)}switch(e.parent.kind){case 288:if(e.parent.name===e&&!C.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent))return T(e.parent.initializer);break;case 206:if(e.parent.type===e)return S(e.parent.type);break;case 249:case 160:var i=e.parent,a=i.initializer,i=i.type;if(a===e||i===e||C.isAssignmentOperator(e.kind))return D(e);break;case 216:r=e.parent.left;if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(r)&&e!==r)return D(e);break;default:if(C.isFunctionLike(e.parent)&&e.parent.type===e)return D(e)}return T(e.parent)}}var o,s,c,u,n;function l(e){return C.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]===e?v(C.findPrecedingToken(e.pos,h,e.parent),e):v(e)}function _(e){if(238===e.parent.parent.kind)return T(e.parent.parent);var t=e.parent;return C.isBindingPattern(e.name)?m(e.name):e.initializer||C.hasSyntacticModifier(e,1)||239===t.parent.kind?l(e):C.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]!==e?T(C.findPrecedingToken(e.pos,h,e.parent)):void 0}function d(e){return e.initializer||void 0!==e.dotDotDotToken||C.hasSyntacticModifier(e,12)}function p(e){return C.hasSyntacticModifier(e,1)||252===e.parent.kind&&166!==e.kind}function f(e){switch(e.parent.kind){case 256:if(1!==C.getModuleInstanceState(e.parent))return;case 236:case 234:case 238:return x(e.parent,e.statements[0]);case 237:case 239:return x(C.findPrecedingToken(e.pos,h,e.parent),e.statements[0])}return T(e.statements[0])}function g(e){if(250!==e.initializer.kind)return T(e.initializer);e=e.initializer;return 0<e.declarations.length?T(e.declarations[0]):void 0}function m(e){var t=C.forEach(e.elements,function(e){return 222!==e.kind?e:void 0});return t?T(t):(198===e.parent.kind?v:l)(e.parent)}function y(e){C.Debug.assert(197!==e.kind&&196!==e.kind);var t=199===e.kind?e.elements:e.properties,t=C.forEach(t,function(e){return 222!==e.kind?e:void 0});return t?T(t):v(216===e.parent.kind?e.parent:e)}}}}(ts=ts||{}),function(i){i.transform=function(e,t,r){var n=[];return r=i.fixupCompilerOptions(r,n),e=i.isArray(e)?e:[e],(t=i.transformNodes(void 0,void 0,i.factory,r,e,t,!0)).diagnostics=i.concatenate(t.diagnostics,n),t}}(ts=ts||{});var ts,debugObjectHost=function(){return this}();!function(o){function s(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var t=(e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){e=this.scriptSnapshotShim.getChangeRange(e.scriptSnapshotShim);if(null===e)return null;e=JSON.parse(e);return o.createTextChangeRange(o.createTextSpan(e.span.start,e.span.length),e.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e);function e(e){this.scriptSnapshotShim=e}var r=(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");e=JSON.parse(e);return e.allowNonTsExtensions=!0,e},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){e=this.shimHost.getScriptSnapshot(e);return e&&new t(e)},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 e=this.shimHost.getCancellationToken();return new o.ThrottledCancellationToken(e)},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(e,t,r,n,i){n=o.getFileMatcherPatterns(e,r,n,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(n.basePaths),n.excludePattern,n.includeFilePattern,n.includeDirectoryPattern,i))},n.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n);function n(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,t){var r=JSON.parse(n.shimHost.getModuleResolutionsForFile(t));return o.map(e,function(e){e=o.getProperty(r,e);return e?{resolvedFileName:e,extension:o.extensionFromPath(e),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,t){var r=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(t));return o.map(e,function(e){return o.getProperty(r,e)})})}o.LanguageServiceShimHostAdapter=r;var i=(a.prototype.readDirectory=function(e,t,r,n,i){n=o.getFileMatcherPatterns(e,r,n,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(n.basePaths),n.excludePattern,n.includeFilePattern,n.includeDirectoryPattern,i))},a.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},a.prototype.readFile=function(e){return this.shimHost.readFile(e)},a.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},a);function a(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}function c(e,t,r,n){return u(e,t,!0,r,n)}function u(t,r,e,n,i){try{var a=function(e,t,r,n){n&&(e.log(t),i=o.timestamp());var i,r=r();return n&&(n=o.timestamp(),e.log(t+" completed in "+(n-i)+" msec"),o.isString(r)&&(128<(i=r).length&&(i=i.substring(0,128)+"..."),e.log("  result.length="+i.length+", result='"+JSON.stringify(i)+"'"))),r}(t,r,n,i);return e?JSON.stringify({result:a}):a}catch(e){return e instanceof o.OperationCanceledException?JSON.stringify({canceled:!0}):(s(t,e),e.description=r,JSON.stringify({error:e}))}}o.CoreServicesShimHostAdapter=i;var l=(_.prototype.dispose=function(e){this.factory.unregisterShim(this)},_);function _(e){(this.factory=e).registerShim(this)}function d(e,r){return e.map(function(e){return t=e,e=r,{message:o.flattenDiagnosticMessageText(t.messageText,e),start:t.start,length:t.length,category:o.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated};var t})}o.realizeDiagnostics=d;var p,f=(__extends(g,p=l),g.prototype.forwardJSONCall=function(e,t){return c(this.logger,e,t,this.logPerformance)},g.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,p.prototype.dispose.call(this,e)},g.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},g.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},g.prototype.realizeDiagnostics=function(e){return d(e,o.getNewLineOrDefaultFromHost(this.host))},g.prototype.getSyntacticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+t+", "+r+")",function(){return n.languageService.getSyntacticClassifications(e,o.createTextSpan(t,r))})},g.prototype.getSemanticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+t+", "+r+")",function(){return n.languageService.getSemanticClassifications(e,o.createTextSpan(t,r))})},g.prototype.getEncodedSyntacticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+t+", "+r+")",function(){return m(n.languageService.getEncodedSyntacticClassifications(e,o.createTextSpan(t,r)))})},g.prototype.getEncodedSemanticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+t+", "+r+")",function(){return m(n.languageService.getEncodedSemanticClassifications(e,o.createTextSpan(t,r)))})},g.prototype.getSyntacticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+t+"')",function(){var e=r.languageService.getSyntacticDiagnostics(t);return r.realizeDiagnostics(e)})},g.prototype.getSemanticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSemanticDiagnostics('"+t+"')",function(){var e=r.languageService.getSemanticDiagnostics(t);return r.realizeDiagnostics(e)})},g.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},g.prototype.getCompilerOptionsDiagnostics=function(){var t=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var e=t.languageService.getCompilerOptionsDiagnostics();return t.realizeDiagnostics(e)})},g.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},g.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},g.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},g.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},g.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},g.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},g.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},g.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},g.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t,r)})},g.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",function(){return r.languageService.getSmartSelectionRange(e,t)})},g.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,r,n,i)})},g.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},g.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},g.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},g.prototype.getIndentationAtPosition=function(t,r,n){var i=this;return this.forwardJSONCall("getIndentationAtPosition('"+t+"', "+r+")",function(){var e=JSON.parse(n);return i.languageService.getIndentationAtPosition(t,r,e)})},g.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},g.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},g.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},g.prototype.getDocumentHighlights=function(r,n,i){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+r+"', "+n+")",function(){var e=a.languageService.getDocumentHighlights(r,n,JSON.parse(i)),t=o.toFileNameLowerCase(o.normalizeSlashes(r));return o.filter(e,function(e){return o.toFileNameLowerCase(o.normalizeSlashes(e.fileName))===t})})},g.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},g.prototype.getCompletionEntryDetails=function(t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+t+"', "+r+", '"+n+"')",function(){var e=void 0===i?void 0:JSON.parse(i);return s.languageService.getCompletionEntryDetails(t,r,n,e,a,o)})},g.prototype.getFormattingEditsForRange=function(t,r,n,i){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+t+"', "+r+", "+n+")",function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsForRange(t,r,n,e)})},g.prototype.getFormattingEditsForDocument=function(t,r){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+t+"')",function(){var e=JSON.parse(r);return n.languageService.getFormattingEditsForDocument(t,e)})},g.prototype.getFormattingEditsAfterKeystroke=function(t,r,n,i){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+t+"', "+r+", '"+n+"')",function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsAfterKeystroke(t,r,n,e)})},g.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},g.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},g.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},g.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},g.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},g.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},g.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",function(){return r.languageService.prepareCallHierarchy(e,t)})},g.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)})},g.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)})},g.prototype.getEmitOutput=function(r){var n=this;return this.forwardJSONCall("getEmitOutput('"+r+"')",function(){var e=n.languageService.getEmitOutput(r),t=e.diagnostics,e=__rest(e,["diagnostics"]);return __assign(__assign({},e),{diagnostics:n.realizeDiagnostics(t)})})},g.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},g.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.toggleLineComment(e,t)})},g.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.toggleMultilineComment(e,t)})},g.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.commentSelection(e,t)})},g.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.uncommentSelection(e,t)})},g);function g(e,t,r){e=p.call(this,e)||this;return e.host=t,e.languageService=r,e.logPerformance=!1,e.logger=e.host,e}function m(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var y,h=(__extends(v,y=l),v.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),c(this.logger,"getEncodedLexicalClassifications",function(){return m(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},v.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var r=this.classifier.getClassificationsForLine(e,t,r),n="",i=0,a=r.entries;i<a.length;i++){var o=a[i];n+=o.length+"\n",n+=o.classification+"\n"}return n+=r.finalLexState},v);function v(e,t){e=y.call(this,e)||this;return e.logger=t,e.logPerformance=!1,e.classifier=o.createClassifier(),e}var b,x=(__extends(D,b=l),D.prototype.forwardJSONCall=function(e,t){return c(this.logger,e,t,this.logPerformance)},D.prototype.resolveModuleName=function(r,n,i){var a=this;return this.forwardJSONCall("resolveModuleName('"+r+"')",function(){var e=JSON.parse(i),t=o.resolveModuleName(n,o.normalizeSlashes(r),e,a.host),e=t.resolvedModule?t.resolvedModule.resolvedFileName:void 0;return t.resolvedModule&&".ts"!==t.resolvedModule.extension&&".tsx"!==t.resolvedModule.extension&&".d.ts"!==t.resolvedModule.extension&&(e=void 0),{resolvedFileName:e,failedLookupLocations:t.failedLookupLocations}})},D.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",function(){var e=JSON.parse(n),e=o.resolveTypeReferenceDirective(r,o.normalizeSlashes(t),e,i.host);return{resolvedFileName:e.resolvedTypeReferenceDirective?e.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!e.resolvedTypeReferenceDirective||e.resolvedTypeReferenceDirective.primary,failedLookupLocations:e.failedLookupLocations}})},D.prototype.getPreProcessedFileInfo=function(e,t){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=o.preProcessFile(o.getSnapshotText(t),!0,!0);return{referencedFiles:r.convertFileReferences(e.referencedFiles),importedFiles:r.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:r.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:r.convertFileReferences(e.libReferenceDirectives)}})},D.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",function(){var e=JSON.parse(t);return o.getAutomaticTypeDirectiveNames(e,r.host)})},D.prototype.convertFileReferences=function(e){if(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];t.push({path:o.normalizeSlashes(i.fileName),position:i.pos,length:i.end-i.pos})}return t}},D.prototype.getTSConfigFileInfo=function(r,n){var i=this;return this.forwardJSONCall("getTSConfigFileInfo('"+r+"')",function(){var e=o.parseJsonText(r,o.getSnapshotText(n)),t=o.normalizeSlashes(r),t=o.parseJsonSourceFileConfigFileContent(e,i.host,o.getDirectoryPath(t),{},t);return{options:t.options,typeAcquisition:t.typeAcquisition,files:t.fileNames,raw:t.raw,errors:d(__spreadArrays(e.parseDiagnostics,t.errors),"\r\n")}})},D.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return o.getDefaultCompilerOptions()})},D.prototype.discoverTypings=function(t){var r=this,n=o.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var e=JSON.parse(t);return void 0===r.safeList&&(r.safeList=o.JsTyping.loadSafeList(r.host,o.toPath(e.safeListPath,e.safeListPath,n))),o.JsTyping.discoverTypings(r.host,function(e){return r.logger.log(e)},e.fileNames,o.toPath(e.projectRootPath,e.projectRootPath,n),r.safeList,e.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,e.typesRegistry)})},D);function D(e,t,r){e=b.call(this,e)||this;return e.logger=t,e.host=r,e.logPerformance=!1,e}function S(){this._shims=[]}S.prototype.getServicesVersion=function(){return o.servicesVersion},S.prototype.createLanguageServiceShim=function(t){try{void 0===this.documentRegistry&&(this.documentRegistry=o.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var e=new r(t),e=o.createLanguageService(e,this.documentRegistry,!1);return new f(this,t,e)}catch(e){throw s(t,e),e}},S.prototype.createClassifierShim=function(t){try{return new h(this,t)}catch(e){throw s(t,e),e}},S.prototype.createCoreServicesShim=function(t){try{var e=new i(t);return new x(this,t,e)}catch(e){throw s(t,e),e}},S.prototype.close=function(){o.clear(this._shims),this.documentRegistry=void 0},S.prototype.registerShim=function(e){this._shims.push(e)},S.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},l=S,o.TypeScriptServicesFactory=l}(ts=ts||{}),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),"undefined"!=typeof process&&!process.browser||(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=ts.TypeScriptServicesFactory,globalThis.toolsVersion=ts.versionMajorMinor),"undefined"!=typeof module&&module.exports&&(module.exports=ts),function(s){var e={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};s.createNodeArray=s.Debug.deprecate(s.factory.createNodeArray,e),s.createNumericLiteral=s.Debug.deprecate(s.factory.createNumericLiteral,e),s.createBigIntLiteral=s.Debug.deprecate(s.factory.createBigIntLiteral,e),s.createStringLiteral=s.Debug.deprecate(s.factory.createStringLiteral,e),s.createStringLiteralFromNode=s.Debug.deprecate(s.factory.createStringLiteralFromNode,e),s.createRegularExpressionLiteral=s.Debug.deprecate(s.factory.createRegularExpressionLiteral,e),s.createLoopVariable=s.Debug.deprecate(s.factory.createLoopVariable,e),s.createUniqueName=s.Debug.deprecate(s.factory.createUniqueName,e),s.createPrivateIdentifier=s.Debug.deprecate(s.factory.createPrivateIdentifier,e),s.createSuper=s.Debug.deprecate(s.factory.createSuper,e),s.createThis=s.Debug.deprecate(s.factory.createThis,e),s.createNull=s.Debug.deprecate(s.factory.createNull,e),s.createTrue=s.Debug.deprecate(s.factory.createTrue,e),s.createFalse=s.Debug.deprecate(s.factory.createFalse,e),s.createModifier=s.Debug.deprecate(s.factory.createModifier,e),s.createModifiersFromModifierFlags=s.Debug.deprecate(s.factory.createModifiersFromModifierFlags,e),s.createQualifiedName=s.Debug.deprecate(s.factory.createQualifiedName,e),s.updateQualifiedName=s.Debug.deprecate(s.factory.updateQualifiedName,e),s.createComputedPropertyName=s.Debug.deprecate(s.factory.createComputedPropertyName,e),s.updateComputedPropertyName=s.Debug.deprecate(s.factory.updateComputedPropertyName,e),s.createTypeParameterDeclaration=s.Debug.deprecate(s.factory.createTypeParameterDeclaration,e),s.updateTypeParameterDeclaration=s.Debug.deprecate(s.factory.updateTypeParameterDeclaration,e),s.createParameter=s.Debug.deprecate(s.factory.createParameterDeclaration,e),s.updateParameter=s.Debug.deprecate(s.factory.updateParameterDeclaration,e),s.createDecorator=s.Debug.deprecate(s.factory.createDecorator,e),s.updateDecorator=s.Debug.deprecate(s.factory.updateDecorator,e),s.createProperty=s.Debug.deprecate(s.factory.createPropertyDeclaration,e),s.updateProperty=s.Debug.deprecate(s.factory.updatePropertyDeclaration,e),s.createMethod=s.Debug.deprecate(s.factory.createMethodDeclaration,e),s.updateMethod=s.Debug.deprecate(s.factory.updateMethodDeclaration,e),s.createConstructor=s.Debug.deprecate(s.factory.createConstructorDeclaration,e),s.updateConstructor=s.Debug.deprecate(s.factory.updateConstructorDeclaration,e),s.createGetAccessor=s.Debug.deprecate(s.factory.createGetAccessorDeclaration,e),s.updateGetAccessor=s.Debug.deprecate(s.factory.updateGetAccessorDeclaration,e),s.createSetAccessor=s.Debug.deprecate(s.factory.createSetAccessorDeclaration,e),s.updateSetAccessor=s.Debug.deprecate(s.factory.updateSetAccessorDeclaration,e),s.createCallSignature=s.Debug.deprecate(s.factory.createCallSignature,e),s.updateCallSignature=s.Debug.deprecate(s.factory.updateCallSignature,e),s.createConstructSignature=s.Debug.deprecate(s.factory.createConstructSignature,e),s.updateConstructSignature=s.Debug.deprecate(s.factory.updateConstructSignature,e),s.updateIndexSignature=s.Debug.deprecate(s.factory.updateIndexSignature,e),s.createKeywordTypeNode=s.Debug.deprecate(s.factory.createKeywordTypeNode,e),s.createTypePredicateNodeWithModifier=s.Debug.deprecate(s.factory.createTypePredicateNode,e),s.updateTypePredicateNodeWithModifier=s.Debug.deprecate(s.factory.updateTypePredicateNode,e),s.createTypeReferenceNode=s.Debug.deprecate(s.factory.createTypeReferenceNode,e),s.updateTypeReferenceNode=s.Debug.deprecate(s.factory.updateTypeReferenceNode,e),s.createFunctionTypeNode=s.Debug.deprecate(s.factory.createFunctionTypeNode,e),s.updateFunctionTypeNode=s.Debug.deprecate(s.factory.updateFunctionTypeNode,e),s.createConstructorTypeNode=s.Debug.deprecate(s.factory.createConstructorTypeNode,e),s.updateConstructorTypeNode=s.Debug.deprecate(s.factory.updateConstructorTypeNode,e),s.createTypeQueryNode=s.Debug.deprecate(s.factory.createTypeQueryNode,e),s.updateTypeQueryNode=s.Debug.deprecate(s.factory.updateTypeQueryNode,e),s.createTypeLiteralNode=s.Debug.deprecate(s.factory.createTypeLiteralNode,e),s.updateTypeLiteralNode=s.Debug.deprecate(s.factory.updateTypeLiteralNode,e),s.createArrayTypeNode=s.Debug.deprecate(s.factory.createArrayTypeNode,e),s.updateArrayTypeNode=s.Debug.deprecate(s.factory.updateArrayTypeNode,e),s.createTupleTypeNode=s.Debug.deprecate(s.factory.createTupleTypeNode,e),s.updateTupleTypeNode=s.Debug.deprecate(s.factory.updateTupleTypeNode,e),s.createOptionalTypeNode=s.Debug.deprecate(s.factory.createOptionalTypeNode,e),s.updateOptionalTypeNode=s.Debug.deprecate(s.factory.updateOptionalTypeNode,e),s.createRestTypeNode=s.Debug.deprecate(s.factory.createRestTypeNode,e),s.updateRestTypeNode=s.Debug.deprecate(s.factory.updateRestTypeNode,e),s.createUnionTypeNode=s.Debug.deprecate(s.factory.createUnionTypeNode,e),s.updateUnionTypeNode=s.Debug.deprecate(s.factory.updateUnionTypeNode,e),s.createIntersectionTypeNode=s.Debug.deprecate(s.factory.createIntersectionTypeNode,e),s.updateIntersectionTypeNode=s.Debug.deprecate(s.factory.updateIntersectionTypeNode,e),s.createConditionalTypeNode=s.Debug.deprecate(s.factory.createConditionalTypeNode,e),s.updateConditionalTypeNode=s.Debug.deprecate(s.factory.updateConditionalTypeNode,e),s.createInferTypeNode=s.Debug.deprecate(s.factory.createInferTypeNode,e),s.updateInferTypeNode=s.Debug.deprecate(s.factory.updateInferTypeNode,e),s.createImportTypeNode=s.Debug.deprecate(s.factory.createImportTypeNode,e),s.updateImportTypeNode=s.Debug.deprecate(s.factory.updateImportTypeNode,e),s.createParenthesizedType=s.Debug.deprecate(s.factory.createParenthesizedType,e),s.updateParenthesizedType=s.Debug.deprecate(s.factory.updateParenthesizedType,e),s.createThisTypeNode=s.Debug.deprecate(s.factory.createThisTypeNode,e),s.updateTypeOperatorNode=s.Debug.deprecate(s.factory.updateTypeOperatorNode,e),s.createIndexedAccessTypeNode=s.Debug.deprecate(s.factory.createIndexedAccessTypeNode,e),s.updateIndexedAccessTypeNode=s.Debug.deprecate(s.factory.updateIndexedAccessTypeNode,e),s.createMappedTypeNode=s.Debug.deprecate(s.factory.createMappedTypeNode,e),s.updateMappedTypeNode=s.Debug.deprecate(s.factory.updateMappedTypeNode,e),s.createLiteralTypeNode=s.Debug.deprecate(s.factory.createLiteralTypeNode,e),s.updateLiteralTypeNode=s.Debug.deprecate(s.factory.updateLiteralTypeNode,e),s.createObjectBindingPattern=s.Debug.deprecate(s.factory.createObjectBindingPattern,e),s.updateObjectBindingPattern=s.Debug.deprecate(s.factory.updateObjectBindingPattern,e),s.createArrayBindingPattern=s.Debug.deprecate(s.factory.createArrayBindingPattern,e),s.updateArrayBindingPattern=s.Debug.deprecate(s.factory.updateArrayBindingPattern,e),s.createBindingElement=s.Debug.deprecate(s.factory.createBindingElement,e),s.updateBindingElement=s.Debug.deprecate(s.factory.updateBindingElement,e),s.createArrayLiteral=s.Debug.deprecate(s.factory.createArrayLiteralExpression,e),s.updateArrayLiteral=s.Debug.deprecate(s.factory.updateArrayLiteralExpression,e),s.createObjectLiteral=s.Debug.deprecate(s.factory.createObjectLiteralExpression,e),s.updateObjectLiteral=s.Debug.deprecate(s.factory.updateObjectLiteralExpression,e),s.createPropertyAccess=s.Debug.deprecate(s.factory.createPropertyAccessExpression,e),s.updatePropertyAccess=s.Debug.deprecate(s.factory.updatePropertyAccessExpression,e),s.createPropertyAccessChain=s.Debug.deprecate(s.factory.createPropertyAccessChain,e),s.updatePropertyAccessChain=s.Debug.deprecate(s.factory.updatePropertyAccessChain,e),s.createElementAccess=s.Debug.deprecate(s.factory.createElementAccessExpression,e),s.updateElementAccess=s.Debug.deprecate(s.factory.updateElementAccessExpression,e),s.createElementAccessChain=s.Debug.deprecate(s.factory.createElementAccessChain,e),s.updateElementAccessChain=s.Debug.deprecate(s.factory.updateElementAccessChain,e),s.createCall=s.Debug.deprecate(s.factory.createCallExpression,e),s.updateCall=s.Debug.deprecate(s.factory.updateCallExpression,e),s.createCallChain=s.Debug.deprecate(s.factory.createCallChain,e),s.updateCallChain=s.Debug.deprecate(s.factory.updateCallChain,e),s.createNew=s.Debug.deprecate(s.factory.createNewExpression,e),s.updateNew=s.Debug.deprecate(s.factory.updateNewExpression,e),s.createTypeAssertion=s.Debug.deprecate(s.factory.createTypeAssertion,e),s.updateTypeAssertion=s.Debug.deprecate(s.factory.updateTypeAssertion,e),s.createParen=s.Debug.deprecate(s.factory.createParenthesizedExpression,e),s.updateParen=s.Debug.deprecate(s.factory.updateParenthesizedExpression,e),s.createFunctionExpression=s.Debug.deprecate(s.factory.createFunctionExpression,e),s.updateFunctionExpression=s.Debug.deprecate(s.factory.updateFunctionExpression,e),s.createDelete=s.Debug.deprecate(s.factory.createDeleteExpression,e),s.updateDelete=s.Debug.deprecate(s.factory.updateDeleteExpression,e),s.createTypeOf=s.Debug.deprecate(s.factory.createTypeOfExpression,e),s.updateTypeOf=s.Debug.deprecate(s.factory.updateTypeOfExpression,e),s.createVoid=s.Debug.deprecate(s.factory.createVoidExpression,e),s.updateVoid=s.Debug.deprecate(s.factory.updateVoidExpression,e),s.createAwait=s.Debug.deprecate(s.factory.createAwaitExpression,e),s.updateAwait=s.Debug.deprecate(s.factory.updateAwaitExpression,e),s.createPrefix=s.Debug.deprecate(s.factory.createPrefixUnaryExpression,e),s.updatePrefix=s.Debug.deprecate(s.factory.updatePrefixUnaryExpression,e),s.createPostfix=s.Debug.deprecate(s.factory.createPostfixUnaryExpression,e),s.updatePostfix=s.Debug.deprecate(s.factory.updatePostfixUnaryExpression,e),s.createBinary=s.Debug.deprecate(s.factory.createBinaryExpression,e),s.updateConditional=s.Debug.deprecate(s.factory.updateConditionalExpression,e),s.createTemplateExpression=s.Debug.deprecate(s.factory.createTemplateExpression,e),s.updateTemplateExpression=s.Debug.deprecate(s.factory.updateTemplateExpression,e),s.createTemplateHead=s.Debug.deprecate(s.factory.createTemplateHead,e),s.createTemplateMiddle=s.Debug.deprecate(s.factory.createTemplateMiddle,e),s.createTemplateTail=s.Debug.deprecate(s.factory.createTemplateTail,e),s.createNoSubstitutionTemplateLiteral=s.Debug.deprecate(s.factory.createNoSubstitutionTemplateLiteral,e),s.updateYield=s.Debug.deprecate(s.factory.updateYieldExpression,e),s.createSpread=s.Debug.deprecate(s.factory.createSpreadElement,e),s.updateSpread=s.Debug.deprecate(s.factory.updateSpreadElement,e),s.createOmittedExpression=s.Debug.deprecate(s.factory.createOmittedExpression,e),s.createAsExpression=s.Debug.deprecate(s.factory.createAsExpression,e),s.updateAsExpression=s.Debug.deprecate(s.factory.updateAsExpression,e),s.createNonNullExpression=s.Debug.deprecate(s.factory.createNonNullExpression,e),s.updateNonNullExpression=s.Debug.deprecate(s.factory.updateNonNullExpression,e),s.createNonNullChain=s.Debug.deprecate(s.factory.createNonNullChain,e),s.updateNonNullChain=s.Debug.deprecate(s.factory.updateNonNullChain,e),s.createMetaProperty=s.Debug.deprecate(s.factory.createMetaProperty,e),s.updateMetaProperty=s.Debug.deprecate(s.factory.updateMetaProperty,e),s.createTemplateSpan=s.Debug.deprecate(s.factory.createTemplateSpan,e),s.updateTemplateSpan=s.Debug.deprecate(s.factory.updateTemplateSpan,e),s.createSemicolonClassElement=s.Debug.deprecate(s.factory.createSemicolonClassElement,e),s.createBlock=s.Debug.deprecate(s.factory.createBlock,e),s.updateBlock=s.Debug.deprecate(s.factory.updateBlock,e),s.createVariableStatement=s.Debug.deprecate(s.factory.createVariableStatement,e),s.updateVariableStatement=s.Debug.deprecate(s.factory.updateVariableStatement,e),s.createEmptyStatement=s.Debug.deprecate(s.factory.createEmptyStatement,e),s.createExpressionStatement=s.Debug.deprecate(s.factory.createExpressionStatement,e),s.updateExpressionStatement=s.Debug.deprecate(s.factory.updateExpressionStatement,e),s.createStatement=s.Debug.deprecate(s.factory.createExpressionStatement,e),s.updateStatement=s.Debug.deprecate(s.factory.updateExpressionStatement,e),s.createIf=s.Debug.deprecate(s.factory.createIfStatement,e),s.updateIf=s.Debug.deprecate(s.factory.updateIfStatement,e),s.createDo=s.Debug.deprecate(s.factory.createDoStatement,e),s.updateDo=s.Debug.deprecate(s.factory.updateDoStatement,e),s.createWhile=s.Debug.deprecate(s.factory.createWhileStatement,e),s.updateWhile=s.Debug.deprecate(s.factory.updateWhileStatement,e),s.createFor=s.Debug.deprecate(s.factory.createForStatement,e),s.updateFor=s.Debug.deprecate(s.factory.updateForStatement,e),s.createForIn=s.Debug.deprecate(s.factory.createForInStatement,e),s.updateForIn=s.Debug.deprecate(s.factory.updateForInStatement,e),s.createForOf=s.Debug.deprecate(s.factory.createForOfStatement,e),s.updateForOf=s.Debug.deprecate(s.factory.updateForOfStatement,e),s.createContinue=s.Debug.deprecate(s.factory.createContinueStatement,e),s.updateContinue=s.Debug.deprecate(s.factory.updateContinueStatement,e),s.createBreak=s.Debug.deprecate(s.factory.createBreakStatement,e),s.updateBreak=s.Debug.deprecate(s.factory.updateBreakStatement,e),s.createReturn=s.Debug.deprecate(s.factory.createReturnStatement,e),s.updateReturn=s.Debug.deprecate(s.factory.updateReturnStatement,e),s.createWith=s.Debug.deprecate(s.factory.createWithStatement,e),s.updateWith=s.Debug.deprecate(s.factory.updateWithStatement,e),s.createSwitch=s.Debug.deprecate(s.factory.createSwitchStatement,e),s.updateSwitch=s.Debug.deprecate(s.factory.updateSwitchStatement,e),s.createLabel=s.Debug.deprecate(s.factory.createLabeledStatement,e),s.updateLabel=s.Debug.deprecate(s.factory.updateLabeledStatement,e),s.createThrow=s.Debug.deprecate(s.factory.createThrowStatement,e),s.updateThrow=s.Debug.deprecate(s.factory.updateThrowStatement,e),s.createTry=s.Debug.deprecate(s.factory.createTryStatement,e),s.updateTry=s.Debug.deprecate(s.factory.updateTryStatement,e),s.createDebuggerStatement=s.Debug.deprecate(s.factory.createDebuggerStatement,e),s.createVariableDeclarationList=s.Debug.deprecate(s.factory.createVariableDeclarationList,e),s.updateVariableDeclarationList=s.Debug.deprecate(s.factory.updateVariableDeclarationList,e),s.createFunctionDeclaration=s.Debug.deprecate(s.factory.createFunctionDeclaration,e),s.updateFunctionDeclaration=s.Debug.deprecate(s.factory.updateFunctionDeclaration,e),s.createClassDeclaration=s.Debug.deprecate(s.factory.createClassDeclaration,e),s.updateClassDeclaration=s.Debug.deprecate(s.factory.updateClassDeclaration,e),s.createInterfaceDeclaration=s.Debug.deprecate(s.factory.createInterfaceDeclaration,e),s.updateInterfaceDeclaration=s.Debug.deprecate(s.factory.updateInterfaceDeclaration,e),s.createTypeAliasDeclaration=s.Debug.deprecate(s.factory.createTypeAliasDeclaration,e),s.updateTypeAliasDeclaration=s.Debug.deprecate(s.factory.updateTypeAliasDeclaration,e),s.createEnumDeclaration=s.Debug.deprecate(s.factory.createEnumDeclaration,e),s.updateEnumDeclaration=s.Debug.deprecate(s.factory.updateEnumDeclaration,e),s.createModuleDeclaration=s.Debug.deprecate(s.factory.createModuleDeclaration,e),s.updateModuleDeclaration=s.Debug.deprecate(s.factory.updateModuleDeclaration,e),s.createModuleBlock=s.Debug.deprecate(s.factory.createModuleBlock,e),s.updateModuleBlock=s.Debug.deprecate(s.factory.updateModuleBlock,e),s.createCaseBlock=s.Debug.deprecate(s.factory.createCaseBlock,e),s.updateCaseBlock=s.Debug.deprecate(s.factory.updateCaseBlock,e),s.createNamespaceExportDeclaration=s.Debug.deprecate(s.factory.createNamespaceExportDeclaration,e),s.updateNamespaceExportDeclaration=s.Debug.deprecate(s.factory.updateNamespaceExportDeclaration,e),s.createImportEqualsDeclaration=s.Debug.deprecate(s.factory.createImportEqualsDeclaration,e),s.updateImportEqualsDeclaration=s.Debug.deprecate(s.factory.updateImportEqualsDeclaration,e),s.createImportDeclaration=s.Debug.deprecate(s.factory.createImportDeclaration,e),s.updateImportDeclaration=s.Debug.deprecate(s.factory.updateImportDeclaration,e),s.createNamespaceImport=s.Debug.deprecate(s.factory.createNamespaceImport,e),s.updateNamespaceImport=s.Debug.deprecate(s.factory.updateNamespaceImport,e),s.createNamedImports=s.Debug.deprecate(s.factory.createNamedImports,e),s.updateNamedImports=s.Debug.deprecate(s.factory.updateNamedImports,e),s.createImportSpecifier=s.Debug.deprecate(s.factory.createImportSpecifier,e),s.updateImportSpecifier=s.Debug.deprecate(s.factory.updateImportSpecifier,e),s.createExportAssignment=s.Debug.deprecate(s.factory.createExportAssignment,e),s.updateExportAssignment=s.Debug.deprecate(s.factory.updateExportAssignment,e),s.createNamedExports=s.Debug.deprecate(s.factory.createNamedExports,e),s.updateNamedExports=s.Debug.deprecate(s.factory.updateNamedExports,e),s.createExportSpecifier=s.Debug.deprecate(s.factory.createExportSpecifier,e),s.updateExportSpecifier=s.Debug.deprecate(s.factory.updateExportSpecifier,e),s.createExternalModuleReference=s.Debug.deprecate(s.factory.createExternalModuleReference,e),s.updateExternalModuleReference=s.Debug.deprecate(s.factory.updateExternalModuleReference,e),s.createJSDocTypeExpression=s.Debug.deprecate(s.factory.createJSDocTypeExpression,e),s.createJSDocTypeTag=s.Debug.deprecate(s.factory.createJSDocTypeTag,e),s.createJSDocReturnTag=s.Debug.deprecate(s.factory.createJSDocReturnTag,e),s.createJSDocThisTag=s.Debug.deprecate(s.factory.createJSDocThisTag,e),s.createJSDocComment=s.Debug.deprecate(s.factory.createJSDocComment,e),s.createJSDocParameterTag=s.Debug.deprecate(s.factory.createJSDocParameterTag,e),s.createJSDocClassTag=s.Debug.deprecate(s.factory.createJSDocClassTag,e),s.createJSDocAugmentsTag=s.Debug.deprecate(s.factory.createJSDocAugmentsTag,e),s.createJSDocEnumTag=s.Debug.deprecate(s.factory.createJSDocEnumTag,e),s.createJSDocTemplateTag=s.Debug.deprecate(s.factory.createJSDocTemplateTag,e),s.createJSDocTypedefTag=s.Debug.deprecate(s.factory.createJSDocTypedefTag,e),s.createJSDocCallbackTag=s.Debug.deprecate(s.factory.createJSDocCallbackTag,e),s.createJSDocSignature=s.Debug.deprecate(s.factory.createJSDocSignature,e),s.createJSDocPropertyTag=s.Debug.deprecate(s.factory.createJSDocPropertyTag,e),s.createJSDocTypeLiteral=s.Debug.deprecate(s.factory.createJSDocTypeLiteral,e),s.createJSDocImplementsTag=s.Debug.deprecate(s.factory.createJSDocImplementsTag,e),s.createJSDocAuthorTag=s.Debug.deprecate(s.factory.createJSDocAuthorTag,e),s.createJSDocPublicTag=s.Debug.deprecate(s.factory.createJSDocPublicTag,e),s.createJSDocPrivateTag=s.Debug.deprecate(s.factory.createJSDocPrivateTag,e),s.createJSDocProtectedTag=s.Debug.deprecate(s.factory.createJSDocProtectedTag,e),s.createJSDocReadonlyTag=s.Debug.deprecate(s.factory.createJSDocReadonlyTag,e),s.createJSDocTag=s.Debug.deprecate(s.factory.createJSDocUnknownTag,e),s.createJsxElement=s.Debug.deprecate(s.factory.createJsxElement,e),s.updateJsxElement=s.Debug.deprecate(s.factory.updateJsxElement,e),s.createJsxSelfClosingElement=s.Debug.deprecate(s.factory.createJsxSelfClosingElement,e),s.updateJsxSelfClosingElement=s.Debug.deprecate(s.factory.updateJsxSelfClosingElement,e),s.createJsxOpeningElement=s.Debug.deprecate(s.factory.createJsxOpeningElement,e),s.updateJsxOpeningElement=s.Debug.deprecate(s.factory.updateJsxOpeningElement,e),s.createJsxClosingElement=s.Debug.deprecate(s.factory.createJsxClosingElement,e),s.updateJsxClosingElement=s.Debug.deprecate(s.factory.updateJsxClosingElement,e),s.createJsxFragment=s.Debug.deprecate(s.factory.createJsxFragment,e),s.createJsxText=s.Debug.deprecate(s.factory.createJsxText,e),s.updateJsxText=s.Debug.deprecate(s.factory.updateJsxText,e),s.createJsxOpeningFragment=s.Debug.deprecate(s.factory.createJsxOpeningFragment,e),s.createJsxJsxClosingFragment=s.Debug.deprecate(s.factory.createJsxJsxClosingFragment,e),s.updateJsxFragment=s.Debug.deprecate(s.factory.updateJsxFragment,e),s.createJsxAttribute=s.Debug.deprecate(s.factory.createJsxAttribute,e),s.updateJsxAttribute=s.Debug.deprecate(s.factory.updateJsxAttribute,e),s.createJsxAttributes=s.Debug.deprecate(s.factory.createJsxAttributes,e),s.updateJsxAttributes=s.Debug.deprecate(s.factory.updateJsxAttributes,e),s.createJsxSpreadAttribute=s.Debug.deprecate(s.factory.createJsxSpreadAttribute,e),s.updateJsxSpreadAttribute=s.Debug.deprecate(s.factory.updateJsxSpreadAttribute,e),s.createJsxExpression=s.Debug.deprecate(s.factory.createJsxExpression,e),s.updateJsxExpression=s.Debug.deprecate(s.factory.updateJsxExpression,e),s.createCaseClause=s.Debug.deprecate(s.factory.createCaseClause,e),s.updateCaseClause=s.Debug.deprecate(s.factory.updateCaseClause,e),s.createDefaultClause=s.Debug.deprecate(s.factory.createDefaultClause,e),s.updateDefaultClause=s.Debug.deprecate(s.factory.updateDefaultClause,e),s.createHeritageClause=s.Debug.deprecate(s.factory.createHeritageClause,e),s.updateHeritageClause=s.Debug.deprecate(s.factory.updateHeritageClause,e),s.createCatchClause=s.Debug.deprecate(s.factory.createCatchClause,e),s.updateCatchClause=s.Debug.deprecate(s.factory.updateCatchClause,e),s.createPropertyAssignment=s.Debug.deprecate(s.factory.createPropertyAssignment,e),s.updatePropertyAssignment=s.Debug.deprecate(s.factory.updatePropertyAssignment,e),s.createShorthandPropertyAssignment=s.Debug.deprecate(s.factory.createShorthandPropertyAssignment,e),s.updateShorthandPropertyAssignment=s.Debug.deprecate(s.factory.updateShorthandPropertyAssignment,e),s.createSpreadAssignment=s.Debug.deprecate(s.factory.createSpreadAssignment,e),s.updateSpreadAssignment=s.Debug.deprecate(s.factory.updateSpreadAssignment,e),s.createEnumMember=s.Debug.deprecate(s.factory.createEnumMember,e),s.updateEnumMember=s.Debug.deprecate(s.factory.updateEnumMember,e),s.updateSourceFileNode=s.Debug.deprecate(s.factory.updateSourceFile,e),s.createNotEmittedStatement=s.Debug.deprecate(s.factory.createNotEmittedStatement,e),s.createPartiallyEmittedExpression=s.Debug.deprecate(s.factory.createPartiallyEmittedExpression,e),s.updatePartiallyEmittedExpression=s.Debug.deprecate(s.factory.updatePartiallyEmittedExpression,e),s.createCommaList=s.Debug.deprecate(s.factory.createCommaListExpression,e),s.updateCommaList=s.Debug.deprecate(s.factory.updateCommaListExpression,e),s.createBundle=s.Debug.deprecate(s.factory.createBundle,e),s.updateBundle=s.Debug.deprecate(s.factory.updateBundle,e),s.createImmediatelyInvokedFunctionExpression=s.Debug.deprecate(s.factory.createImmediatelyInvokedFunctionExpression,e),s.createImmediatelyInvokedArrowFunction=s.Debug.deprecate(s.factory.createImmediatelyInvokedArrowFunction,e),s.createVoidZero=s.Debug.deprecate(s.factory.createVoidZero,e),s.createExportDefault=s.Debug.deprecate(s.factory.createExportDefault,e),s.createExternalModuleExport=s.Debug.deprecate(s.factory.createExternalModuleExport,e),s.createNamespaceExport=s.Debug.deprecate(s.factory.createNamespaceExport,e),s.updateNamespaceExport=s.Debug.deprecate(s.factory.updateNamespaceExport,e),s.createToken=s.Debug.deprecate(function(e){return s.factory.createToken(e)},e),s.createIdentifier=s.Debug.deprecate(function(e){return s.factory.createIdentifier(e,void 0,void 0)},e),s.createTempVariable=s.Debug.deprecate(function(e){return s.factory.createTempVariable(e,void 0)},e),s.getGeneratedNameForNode=s.Debug.deprecate(function(e){return s.factory.getGeneratedNameForNode(e,void 0)},e),s.createOptimisticUniqueName=s.Debug.deprecate(function(e){return s.factory.createUniqueName(e,16)},e),s.createFileLevelUniqueName=s.Debug.deprecate(function(e){return s.factory.createUniqueName(e,48)},e),s.createIndexSignature=s.Debug.deprecate(function(e,t,r,n){return s.factory.createIndexSignature(e,t,r,n)},e),s.createTypePredicateNode=s.Debug.deprecate(function(e,t){return s.factory.createTypePredicateNode(void 0,e,t)},e),s.updateTypePredicateNode=s.Debug.deprecate(function(e,t,r){return s.factory.updateTypePredicateNode(e,void 0,t,r)},e),s.createLiteral=s.Debug.deprecate(function(e){return"number"==typeof e?s.factory.createNumericLiteral(e):"object"==typeof e&&"base10Value"in e?s.factory.createBigIntLiteral(e):"boolean"==typeof e?e?s.factory.createTrue():s.factory.createFalse():"string"==typeof e?s.factory.createStringLiteral(e,void 0):s.factory.createStringLiteralFromNode(e)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),s.createMethodSignature=s.Debug.deprecate(function(e,t,r,n,i){return s.factory.createMethodSignature(void 0,n,i,e,t,r)},e),s.updateMethodSignature=s.Debug.deprecate(function(e,t,r,n,i,a){return s.factory.updateMethodSignature(e,e.modifiers,i,a,t,r,n)},e),s.createTypeOperatorNode=s.Debug.deprecate(function(e,t){e=t?e:(t=e,138);return s.factory.createTypeOperatorNode(e,t)},e),s.createTaggedTemplate=s.Debug.deprecate(function(e,t,r){var n;return r?n=t:r=t,s.factory.createTaggedTemplateExpression(e,n,r)},e),s.updateTaggedTemplate=s.Debug.deprecate(function(e,t,r,n){var i;return n?i=r:n=r,s.factory.updateTaggedTemplateExpression(e,t,i,n)},e),s.updateBinary=s.Debug.deprecate(function(e,t,r,n){return void 0===n&&(n=e.operatorToken),"number"==typeof n&&(n=n===e.operatorToken.kind?e.operatorToken:s.factory.createToken(n)),s.factory.updateBinaryExpression(e,t,n,r)},e),s.createConditional=s.Debug.deprecate(function(e,t,r,n,i){return 5===arguments.length?s.factory.createConditionalExpression(e,t,r,n,i):3===arguments.length?s.factory.createConditionalExpression(e,s.factory.createToken(57),t,s.factory.createToken(58),r):s.Debug.fail("Argument count mismatch")},e),s.createYield=s.Debug.deprecate(function(e,t){var r;return t?r=e:t=e,s.factory.createYieldExpression(r,t)},e),s.createClassExpression=s.Debug.deprecate(function(e,t,r,n,i){return s.factory.createClassExpression(void 0,e,t,r,n,i)},e),s.updateClassExpression=s.Debug.deprecate(function(e,t,r,n,i,a){return s.factory.updateClassExpression(e,void 0,t,r,n,i,a)},e),s.createPropertySignature=s.Debug.deprecate(function(e,t,r,n,i){n=s.factory.createPropertySignature(e,t,r,n);return n.initializer=i,n},e),s.updatePropertySignature=s.Debug.deprecate(function(e,t,r,n,i,a){i=s.factory.updatePropertySignature(e,t,r,n,i);return e.initializer!==a&&(i===e&&(i=s.factory.cloneNode(e)),i.initializer=a),i},e),s.createExpressionWithTypeArguments=s.Debug.deprecate(function(e,t){return s.factory.createExpressionWithTypeArguments(t,e)},e),s.updateExpressionWithTypeArguments=s.Debug.deprecate(function(e,t,r){return s.factory.updateExpressionWithTypeArguments(e,r,t)},e),s.createArrowFunction=s.Debug.deprecate(function(e,t,r,n,i,a){return 6===arguments.length?s.factory.createArrowFunction(e,t,r,n,i,a):5===arguments.length?s.factory.createArrowFunction(e,t,r,n,void 0,i):s.Debug.fail("Argument count mismatch")},e),s.updateArrowFunction=s.Debug.deprecate(function(e,t,r,n,i,a,o){return 7===arguments.length?s.factory.updateArrowFunction(e,t,r,n,i,a,o):6===arguments.length?s.factory.updateArrowFunction(e,t,r,n,i,e.equalsGreaterThanToken,a):s.Debug.fail("Argument count mismatch")},e),s.createVariableDeclaration=s.Debug.deprecate(function(e,t,r,n){return 4===arguments.length?s.factory.createVariableDeclaration(e,t,r,n):1<=arguments.length&&arguments.length<=3?s.factory.createVariableDeclaration(e,void 0,t,r):s.Debug.fail("Argument count mismatch")},e),s.updateVariableDeclaration=s.Debug.deprecate(function(e,t,r,n,i){return 5===arguments.length?s.factory.updateVariableDeclaration(e,t,r,n,i):4===arguments.length?s.factory.updateVariableDeclaration(e,t,e.exclamationToken,r,n):s.Debug.fail("Argument count mismatch")},e),s.createImportClause=s.Debug.deprecate(function(e,t,r){return void 0===r&&(r=!1),s.factory.createImportClause(r,e,t)},e),s.updateImportClause=s.Debug.deprecate(function(e,t,r,n){return s.factory.updateImportClause(e,n,t,r)},e),s.createExportDeclaration=s.Debug.deprecate(function(e,t,r,n,i){return void 0===i&&(i=!1),s.factory.createExportDeclaration(e,t,i,r,n)},e),s.updateExportDeclaration=s.Debug.deprecate(function(e,t,r,n,i,a){return s.factory.updateExportDeclaration(e,t,r,a,n,i)},e),s.createJSDocParamTag=s.Debug.deprecate(function(e,t,r,n){return s.factory.createJSDocParameterTag(void 0,e,t,r,!1,n)},e),s.createComma=s.Debug.deprecate(function(e,t){return s.factory.createComma(e,t)},e),s.createLessThan=s.Debug.deprecate(function(e,t){return s.factory.createLessThan(e,t)},e),s.createAssignment=s.Debug.deprecate(function(e,t){return s.factory.createAssignment(e,t)},e),s.createStrictEquality=s.Debug.deprecate(function(e,t){return s.factory.createStrictEquality(e,t)},e),s.createStrictInequality=s.Debug.deprecate(function(e,t){return s.factory.createStrictInequality(e,t)},e),s.createAdd=s.Debug.deprecate(function(e,t){return s.factory.createAdd(e,t)},e),s.createSubtract=s.Debug.deprecate(function(e,t){return s.factory.createSubtract(e,t)},e),s.createLogicalAnd=s.Debug.deprecate(function(e,t){return s.factory.createLogicalAnd(e,t)},e),s.createLogicalOr=s.Debug.deprecate(function(e,t){return s.factory.createLogicalOr(e,t)},e),s.createPostfixIncrement=s.Debug.deprecate(function(e){return s.factory.createPostfixIncrement(e)},e),s.createLogicalNot=s.Debug.deprecate(function(e){return s.factory.createLogicalNot(e)},e),s.createNode=s.Debug.deprecate(function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=0),s.setTextRangePosEnd(297===e?s.parseBaseNodeFactory.createBaseSourceFileNode(e):78===e?s.parseBaseNodeFactory.createBaseIdentifierNode(e):79===e?s.parseBaseNodeFactory.createBasePrivateIdentifierNode(e):s.isNodeKind(e)?s.parseBaseNodeFactory.createBaseNode(e):s.parseBaseNodeFactory.createBaseTokenNode(e),t,r)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),s.getMutableClone=s.Debug.deprecate(function(e){var t=s.factory.cloneNode(e);return s.setTextRange(t,e),s.setParent(t,e.parent),t},{since:"4.0",warnAfter:"4.1",message:"Use `factory.cloneNode` instead and use `setCommentRange` or `setSourceMapRange` and avoid setting `parent`."}),s.isTypeAssertion=s.Debug.deprecate(function(e){return 206===e.kind},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(ts=ts||{});