"use strict";var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},__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){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");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 l(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 u(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!!l(this._mapData,e)},n.prototype.clear=function(){u(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!!l(this._mapData,e)},n.prototype.clear=function(){u(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(n){var i,e,t;function r(e,t,r){r=null!==(t=i[t]())&&void 0!==t?t:null===n.ShimCollections||void 0===n.ShimCollections?void 0:n.ShimCollections[r](n.getIterator);if(r)return r;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(e," implementation."))}n.versionMajorMinor="4.7",n.version="4.7.2",(e=n.Comparison||(n.Comparison={}))[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e=i=i||{},t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0,e.tryGetNativeMap=function(){var e=null==t?void 0:t.Map;return void 0!==e&&"entries"in e.prototype&&1===new e([[0,0]]).size?e:void 0},e.tryGetNativeSet=function(){var e=null==t?void 0:t.Set;return void 0!==e&&"entries"in e.prototype&&1===new e([0]).size?e:void 0},n.Map=r("Map","tryGetNativeMap","createMapShim"),n.Set=r("Set","tryGetNativeSet","createSetShim")}(ts=ts||{}),function(u){function c(e,t,r){if(void 0===r&&(r=w),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function l(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 l(t)?l(e)?__spreadArray(__spreadArray([],e,!0),t,!0):t:e}function t(e,t){return t}function _(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 d(e,t,r){return!c(e,t,r)&&(e.push(t),!0)}function p(r,e,n){e.sort(function(e,t){return n(r[e],r[t])||O(e,t)})}function n(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 i(e,t,r,n,i){return g(e,r(t),r,n,i)}function g(e,t,r,n,i){if(!l(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 m(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}u.getIterator=function(e){if(e){if(k(e))return f(e);if(e instanceof u.Map)return e.entries();if(e instanceof u.Set)return e.values();throw new Error("Iteration not supported.")}},u.emptyArray=[],u.emptyMap=new u.Map,u.emptySet=new u.Set,u.length=function(e){return e?e.length:0},u.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},u.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}},u.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}},u.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;r=t(r.value);if(void 0!==r)return r}},u.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},u.zipWith=function(e,t,r){var n=[];u.Debug.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n},u.zipToIterator=function(e,t){u.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}}}},u.zipToMap=function(e,t){u.Debug.assert(e.length===t.length);for(var r=new u.Map,n=0;n<e.length;++n)r.set(e[n],t[n]);return r},u.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},u.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},u.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},u.findLast=function(e,t){for(var r=e.length-1;0<=r;r--){var n=e[r];if(t(n,r))return n}},u.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},u.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},u.findMap=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}return u.Debug.fail()},u.contains=c,u.arraysEqual=function(e,r,n){return void 0===n&&(n=w),e.length===r.length&&e.every(function(e,t){return n(e,r[t])})},u.indexOfAnyCharCode=function(e,t,r){for(var n=r||0;n<e.length;n++)if(c(t,e.charCodeAt(n)))return n;return-1},u.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},u.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},u.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},u.clear=function(e){e.length=0},u.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},u.mapIterator=function(t,r){return{next:function(){var e=t.next();return e.done?e:{value:r(e.value),done:!1}}}},u.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},u.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},u.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||u.emptyArray},u.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},u.flatMapIterator=function(t,r){var e=t.next();if(e.done)return u.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?u.emptyIterator:k(e)?f(e):e}},u.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},u.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},u.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},u.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}}}}},u.mapDefinedEntries=function(e,r){if(e){var n=new u.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}},u.mapDefinedValues=function(e,t){if(e){var r=new u.Set;return e.forEach(function(e){e=t(e);void 0!==e&&r.add(e)}),r}},u.getOrUpdate=function(e,t,r){return e.has(t)?e.get(t):(r=r(),e.set(t,r),r)},u.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},u.emptyIterator={next:function(){return{value:void 0,done:!0}}},u.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}}}},u.spanMap=function(e,t,r){var n;if(e){n=[];for(var i,a=e.length,o=void 0,s=void 0,c=0,l=0;c<a;){for(;l<a;){s=t(e[l],l);if(0===l)o=s;else if(s!==o)break;l++}c<l&&((i=r(e.slice(c,l),o,c,l))&&n.push(i),c=l),o=s,l++}}return n},u.mapEntries=function(e,r){if(e){var n=new u.Map;return e.forEach(function(e,t){t=r(t,e),e=t[0],t=t[1];n.set(e,t)}),n}},u.some=l,u.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)},u.concatenate=r,u.indicesOf=_,u.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(t,e,r){var n=_(t);p(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++)d(r,i[n],t);return r}(e,t)},u.createSortedArray=function(){return[]},u.insertSorted=function(e,t,r,n){0!==e.length?(r=i(e,t,N,r))<0?e.splice(~r,0,t):n&&e.splice(r,0,t):e.push(t)},u.sortAndDeduplicate=function(e,t,r){return function(e,t){if(0===e.length)return u.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 u.Debug.fail("Array is unsorted.")}n.push(r=a)}return n}(n(e,t),r||t||L)},u.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},u.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=w),!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},u.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},u.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&&u.Debug.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(o<i&&u.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},u.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},u.append=a,u.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]},u.addRange=s,u.pushIfUnique=d,u.appendIfUnique=function(e,t,r){return e?(d(e,t,r),e):[t]},u.sort=n,u.arrayIterator=f,u.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:{value:e[--t],done:!1}}}},u.stableSort=function(t,e){var r=_(t);return p(t,r,e),r.map(function(e){return t[e]})},u.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},u.elementAt=function(e,t){if(e&&(t=o(e,t))<e.length)return e[t]},u.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},u.first=function(e){return u.Debug.assert(0!==e.length),e[0]},u.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},u.last=function(e){return u.Debug.assert(0!==e.length),e[e.length-1]},u.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},u.singleOrMany=function(e){return e&&1===e.length?e[0]:e},u.replaceElement=function(e,t,r){return(e=e.slice(0))[t]=r,e},u.binarySearch=i,u.binarySearchKey=g,u.reduceLeft=m;var y=Object.prototype.hasOwnProperty;function h(e,t){return y.call(e,t)}function v(e){var t,r=[];for(t in e)y.call(e,t)&&r.push(t);return r}u.hasProperty=h,u.getProperty=function(e,t){return y.call(e,t)?e[t]:void 0},u.getOwnKeys=v,u.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)d(t,n[r])}while(e=Object.getPrototypeOf(e));return t},u.getOwnValues=function(e){var t,r=[];for(t in e)y.call(e,t)&&r.push(e[t]);return r};var b=Object.entries||function(e){for(var t=v(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r};function x(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function D(e,t,r){void 0===r&&(r=N);for(var n=S(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function S(){var e=new u.Map;return e.add=T,e.remove=C,e}function T(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function C(e,t){var r=this.get(e);r&&(X(r,t),r.length||this.delete(e))}function k(e){return Array.isArray?Array.isArray(e):e instanceof Array}function E(e){}function N(e){return e}function A(e){return e.toLowerCase()}u.getEntries=function(e){return e?b(e):[]},u.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},u.arrayFrom=x,u.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)h(a,o)&&(e[o]=a[o])}return e},u.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=w),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(y.call(e,n)){if(!y.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(y.call(t,n)&&!y.call(e,n))return!1;return!0},u.arrayToMap=function(e,t,r){void 0===r&&(r=N);for(var n=new u.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},u.arrayToNumericMap=function(e,t,r){void 0===r&&(r=N);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},u.arrayToMultiMap=D,u.group=function(e,t,r){return void 0===r&&(r=N),x(D(e,t).values(),r)},u.clone=function(e){var t,r={};for(t in e)y.call(e,t)&&(r[t]=e[t]);return r},u.extend=function(e,t){var r,n={};for(r in t)y.call(t,r)&&(n[r]=t[r]);for(r in e)y.call(e,r)&&(n[r]=e[r]);return n},u.copyProperties=function(e,t){for(var r in t)y.call(t,r)&&(e[r]=t[r])},u.maybeBind=function(e,t){return t?t.bind(e):void 0},u.createMultiMap=S,u.createUnderscoreEscapedMultiMap=S,u.createSet=function(a,o){var s=new u.Map,i=0;function e(){var t,r=s.values();return{next:function(){for(;;)if(t){if(!(e=t.next()).done)return{value:e.value};t=void 0}else{var e;if((e=r.next()).done)return{value:void 0,done:!0};if(!k(e.value))return{value:e.value};t=f(e.value)}}}}return{has:function(e){var t=a(e);if(!s.has(t))return!1;t=s.get(t);if(!k(t))return o(t,e);for(var r=0,n=t;r<n.length;r++){var i=n[r];if(o(i,e))return!0}return!1},add:function(e){var t,r=a(e);return s.has(r)?k(t=s.get(r))?c(t,e,o)||(t.push(e),i++):o(t=t,e)||(s.set(r,[t,e]),i++):(s.set(r,e),i++),this},delete:function(e){var t=a(e);if(!s.has(t))return!1;var r=s.get(t);if(k(r)){for(var n=0;n<r.length;n++)if(o(r[n],e))return 1===r.length?s.delete(t):2===r.length?s.set(t,r[1-n]):Q(r,n),i--,!0}else if(o(r,e))return s.delete(t),i--,!0;return!1},clear:function(){s.clear(),i=0},get size(){return i},forEach:function(e){for(var t=0,r=x(s.values());t<r.length;t++){var n=r[t];if(k(n))for(var i,a=0,o=n;a<o.length;a++)e(i=o[a],i);else e(i=n,i)}},keys:e,values:e,entries:function(){var t=e();return{next:function(){var e=t.next();return e.done?e:{value:[e.value,e.value]}}}}}},u.isArray=k,u.toArray=function(e){return k(e)?e:[e]},u.isString=function(e){return"string"==typeof e},u.isNumber=function(e){return"number"==typeof e},u.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},u.cast=function(e,t){return void 0!==e&&t(e)?e:u.Debug.fail("Invalid cast. The supplied value ".concat(e," did not pass the test '").concat(u.Debug.getFunctionName(t),"'."))},u.noop=E,u.returnFalse=function(){return!1},u.returnTrue=function(){return!0},u.returnUndefined=function(){},u.identity=N,u.toLowerCase=A;var e,F=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function P(e){return F.test(e)?e.replace(F,A):e}function w(e,t){return e===t}function I(e,t){return e===t?0:void 0===e||void 0!==t&&e<t?-1:1}function O(e,t){return I(e,t)}function M(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 L(e,t){return I(e,t)}u.toFileNameLowerCase=P,u.notImplemented=function(){throw new Error("Not implemented")},u.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},u.memoizeOne=function(n){var i=new u.Map;return function(e){var t="".concat(typeof e,":").concat(e),r=i.get(t);return void 0!==r||i.has(t)||(r=n(e),i.set(t,r)),r}},u.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 m(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}},(e=u.AssertionLevel||(u.AssertionLevel={}))[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",u.equateValues=w,u.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},u.equateStringsCaseSensitive=function(e,t){return e===t},u.compareValues=O,u.compareTextSpans=function(e,t){return O(null==e?void 0:e.start,null==t?void 0:t.start)||O(null==e?void 0:e.length,null==t?void 0:t.length)},u.min=function(e,t,r){return-1===r(e,t)?e:t},u.compareStringsCaseInsensitive=M,u.compareStringsCaseSensitive=L,u.getStringComparer=function(e){return e?M:L};var R,B,j,J,z,K=(j=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return V;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return q;return W}(),function(e){return void 0===e?R=R||j(e):"en-US"===e?B=B||j(e):j(e)});function U(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 V(e){var r=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return U(e,t,r)}}function q(e){return void 0!==e?W():function(e,t){return U(e,t,r)};function r(e,t){return e.localeCompare(t)}}function W(){return function(e,t){return U(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 H(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)===r}function G(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function Q(e,t){e[t]=e[e.length-1],e.pop()}function X(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return Q(e,r),!0;return!1}(e,function(e){return e===t})}function Y(e,t){return 0===e.lastIndexOf(t,0)}function Z(e,t){var r=e.prefix,e=e.suffix;return t.length>=r.length+e.length&&Y(t,r)&&H(t,e)}u.getUILocale=function(){return z},u.setUILocale=function(e){z!==e&&(z=e,J=void 0)},u.compareStringsCaseSensitiveUI=function(e,t){return(J=J||K(z))(e,t)},u.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},u.compareBooleans=function(e,t){return O(e?1:0,t?1:0)},u.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=0,s=t;o<s.length;o++){var c=s[o],l=r(c);void 0!==l&&Math.abs(l.length-e.length)<=i&&l!==e&&(l.length<3&&l.toLowerCase()!==e.toLowerCase()||void 0!==(l=function(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){for(var s=e.charCodeAt(o-1),c=Math.ceil(r<o?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length),u=i[0]=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=l;_++){var d=e[o-1].toLowerCase()===t[_-1].toLowerCase()?n[_-1]+.1:n[_-1]+2,d=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,d);i[_]=d,u=Math.min(u,d)}for(_=l+1;_<=t.length;_++)i[_]=a;if(r<u)return;var p=n;n=i,i=p}var f=n[t.length];return r<f?void 0:f}(e,l,a-.1))&&(u.Debug.assert(l<a),a=l,n=c))}return n},u.endsWith=H,u.removeSuffix=function(e,t){return H(e,t)?e.slice(0,e.length-t.length):e},u.tryRemoveSuffix=function(e,t){return H(e,t)?e.slice(0,e.length-t.length):void 0},u.stringContains=function(e,t){return-1!==e.indexOf(t)},u.removeMinAndVersionNumbers=function(e){for(var t=e.length,r=t-1;0<r;r--){var n=e.charCodeAt(r);if(48<=n&&n<=57)for(;--r,n=e.charCodeAt(r),0<r&&48<=n&&n<=57;);else{if(!(4<r)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},u.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return G(e,r),!0;return!1},u.orderedRemoveItemAt=G,u.unorderedRemoveItemAt=Q,u.unorderedRemoveItem=X,u.createGetCanonicalFileName=function(e){return e?N:P},u.patternText=function(e){var t=e.prefix,e=e.suffix;return"".concat(t,"*").concat(e)},u.matchedText=function(e,t){return u.Debug.assert(Z(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},u.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);Z(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},u.startsWith=Y,u.removePrefix=function(e,t){return Y(e,t)?e.substr(t.length):e},u.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),Y(r(e),r(t))?e.substring(t.length):void 0},u.and=function(t,r){return function(e){return t(e)&&r(e)}},u.or=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n=0,i=a;n<i.length;n++)if(r=i[n].apply(void 0,e))return r;return r}},u.not=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!r.apply(void 0,e)}},u.assertType=function(e){},u.singleElementArray=function(e){return void 0===e?void 0:[e]},u.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||E;for(var o=0,s=0,c=e.length,l=t.length,u=!1;o<c&&s<l;){var _=e[o],d=t[s],p=r(_,d);-1===p?(n(_),o++,u=!0):1===p?(i(d),s++,u=!0):(a(d,_),o++,s++)}for(;o<c;)n(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u},u.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},u.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},u.padLeft=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e},u.padRight=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)},u.takeWhile=function(e,t){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},u.trimString=String.prototype.trim?function(e){return e.trim()}:function(e){return u.trimStringEnd(u.trimStringStart(e))},u.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:function(e){var t=e.length-1;for(;0<=t&&u.isWhiteSpaceLike(e.charCodeAt(t));)t--;return e.slice(0,t+1)},u.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(ts=ts||{}),function(R){var B,e;(e=B=R.LogLevel||(R.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 R.Version(R.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(B.Info,e)}a.currentLogLevel=B.Warning,a.isDebugging=!1,a.getTypeScriptVersion=g,a.shouldLog=r,a.log=m,(t=m=a.log||(a.log={})).error=function(e){n(B.Error,e)},t.warn=function(e){n(B.Warning,e)},t.log=function(e){n(B.Info,e)},t.trace=function(e){n(B.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]=R.noop))}function l(e,t){e=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(e,t||l),e}function u(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),l(t,n||u))}function _(e,t,r){null==e&&l(t,r||_)}function d(e,t,r){for(var n=0,i=e;n<i.length;n++)_(i[n],t,r||d)}function p(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 f(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 R.stableSort(r,function(e,t){return R.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],l=s[1];if(e<c)break;0!==c&&c&e&&(n="".concat(n).concat(n?"|":"").concat(l),i&=~c)}if(0===i)return n}else for(var u=0,_=t;u<_.length;u++){var d=_[u],c=d[0],l=d[1];if(c===e)return l}return e.toString()}function y(e){return f(e,R.SyntaxKind,!1)}function h(e){return f(e,R.NodeFlags,!0)}function v(e){return f(e,R.ModifierFlags,!0)}function b(e){return f(e,R.TransformFlags,!0)}function x(e){return f(e,R.EmitFlags,!0)}function D(e){return f(e,R.SymbolFlags,!0)}function S(e){return f(e,R.TypeFlags,!0)}function T(e){return f(e,R.SignatureFlags,!0)}function C(e){return f(e,R.ObjectFlags,!0)}function k(e){return f(e,R.FlowFlags,!0)}a.getAssertionLevel=function(){return o},a.setAssertionLevel=function(e){if(o<(o=e))for(var t=0,r=R.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=l,a.failBadSyntaxKind=function e(t,r,n){return l("".concat(r||"Unexpected node.","\r\nNode ").concat(y(t.kind)," was unexpected."),n||e)},a.assert=u,a.assertEqual=function e(t,r,n,i,a){t!==r&&(n=n?i?"".concat(n," ").concat(i):n:"",l("Expected ".concat(t," === ").concat(r,". ").concat(n),a||e))},a.assertLessThan=function e(t,r,n,i){r<=t&&l("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},a.assertLessThanOrEqual=function e(t,r,n){r<t&&l("Expected ".concat(t," <= ").concat(r),n||e)},a.assertGreaterThanOrEqual=function e(t,r,n){t<r&&l("Expected ".concat(t," >= ").concat(r),n||e)},a.assertIsDefined=_,a.checkDefined=function e(t,r,n){return _(t,r,n||e),t},a.assertEachIsDefined=d,a.checkEachDefined=function e(t,r,n){return d(t,r,n||e),t},a.assertNever=function e(t,r,n){void 0===r&&(r="Illegal value:");t="object"==typeof t&&R.hasProperty(t,"kind")&&R.hasProperty(t,"pos")?"SyntaxKind: "+y(t.kind):JSON.stringify(t);return l("".concat(r," ").concat(t),n||e)},a.assertEachNode=function e(t,r,n,i){c(1,"assertEachNode")&&u(void 0===r||R.every(t,r),n||"Unexpected node.",function(){return"Node array did not pass test '".concat(p(r),"'.")},i||e)},a.assertNode=function e(t,r,n,i){c(1,"assertNode")&&u(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",function(){return"Node ".concat(y(null==t?void 0:t.kind)," did not pass test '").concat(p(r),"'.")},i||e)},a.assertNotNode=function e(t,r,n,i){c(1,"assertNotNode")&&u(void 0===t||void 0===r||!r(t),n||"Unexpected node.",function(){return"Node ".concat(y(t.kind)," should not have passed test '").concat(p(r),"'.")},i||e)},a.assertOptionalNode=function e(t,r,n,i){c(1,"assertOptionalNode")&&u(void 0===r||void 0===t||r(t),n||"Unexpected node.",function(){return"Node ".concat(y(null==t?void 0:t.kind)," did not pass test '").concat(p(r),"'.")},i||e)},a.assertOptionalToken=function e(t,r,n,i){c(1,"assertOptionalToken")&&u(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",function(){return"Node ".concat(y(null==t?void 0:t.kind)," was not a '").concat(y(r),"' token.")},i||e)},a.assertMissingNode=function e(t,r,n){c(1,"assertMissingNode")&&u(void 0===t,r||"Unexpected node.",function(){return"Node ".concat(y(t.kind)," was unexpected'.")},n||e)},a.type=function(e){},a.getFunctionName=p,a.formatSymbol=function(e){return"{ name: ".concat(R.unescapeLeadingUnderscores(e.escapedName),"; flags: ").concat(D(e.flags),"; declarations: ").concat(R.map(e.declarations,function(e){return y(e.kind)})," }")},a.formatEnum=f,a.formatSyntaxKind=y,a.formatSnippetKind=function(e){return f(e,R.SnippetKind,!1)},a.formatNodeFlags=h,a.formatModifierFlags=v,a.formatTransformFlags=b,a.formatEmitFlags=x,a.formatSymbolFlags=D,a.formatTypeFlags=S,a.formatSignatureFlags=T,a.formatObjectFlags=C,a.formatFlowFlags=k;var E,N,A,F=!1;function P(e){return function(){if(O(),!E)throw new Error("Debugging helpers could not be loaded.");return E}().formatControlFlowGraph(e)}function w(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"".concat(e).concat(t?" (".concat(k(t),")"):"")}},__debugFlowFlags:{get:function(){return f(this.flags,R.FlowFlags,!0)}},__debugToString:{value:function(){return P(this)}}})}function I(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function O(){if(!F){var r,a;Object.defineProperties(R.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return"".concat(e," '").concat(R.symbolName(this),"'").concat(t?" (".concat(D(t),")"):"")}},__debugFlags:{get:function(){return D(this.flags)}}}),Object.defineProperties(R.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var e=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return"".concat(e).concat(this.symbol?" '".concat(R.symbolName(this.symbol),"'"):"").concat(t?" (".concat(C(t),")"):"")}},__debugFlags:{get:function(){return S(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?C(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}}}),Object.defineProperties(R.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return T(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var e,t=0,n=[R.objectAllocator.getNodeConstructor(),R.objectAllocator.getIdentifierConstructor(),R.objectAllocator.getTokenConstructor(),R.objectAllocator.getSourceFileConstructor()];t<n.length;t++){var i=n[t];i.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(i.prototype,{__tsDebuggerDisplay:{value:function(){var e=R.isGeneratedIdentifier(this)?"GeneratedIdentifier":R.isIdentifier(this)?"Identifier '".concat(R.idText(this),"'"):R.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(R.idText(this),"'"):R.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):R.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):R.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):R.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":R.isParameter(this)?"ParameterDeclaration":R.isConstructorDeclaration(this)?"ConstructorDeclaration":R.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":R.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":R.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":R.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":R.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":R.isTypePredicateNode(this)?"TypePredicateNode":R.isTypeReferenceNode(this)?"TypeReferenceNode":R.isFunctionTypeNode(this)?"FunctionTypeNode":R.isConstructorTypeNode(this)?"ConstructorTypeNode":R.isTypeQueryNode(this)?"TypeQueryNode":R.isTypeLiteralNode(this)?"TypeLiteralNode":R.isArrayTypeNode(this)?"ArrayTypeNode":R.isTupleTypeNode(this)?"TupleTypeNode":R.isOptionalTypeNode(this)?"OptionalTypeNode":R.isRestTypeNode(this)?"RestTypeNode":R.isUnionTypeNode(this)?"UnionTypeNode":R.isIntersectionTypeNode(this)?"IntersectionTypeNode":R.isConditionalTypeNode(this)?"ConditionalTypeNode":R.isInferTypeNode(this)?"InferTypeNode":R.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":R.isThisTypeNode(this)?"ThisTypeNode":R.isTypeOperatorNode(this)?"TypeOperatorNode":R.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":R.isMappedTypeNode(this)?"MappedTypeNode":R.isLiteralTypeNode(this)?"LiteralTypeNode":R.isNamedTupleMember(this)?"NamedTupleMember":R.isImportTypeNode(this)?"ImportTypeNode":y(this.kind);return"".concat(e).concat(this.flags?" (".concat(h(this.flags),")"):"")}},__debugKind:{get:function(){return y(this.kind)}},__debugNodeFlags:{get:function(){return h(this.flags)}},__debugModifierFlags:{get:function(){return v(R.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return b(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return R.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return x(R.getEmitFlags(this))}},__debugGetText:{value:function(e){if(R.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=R.getParseTreeNode(this))&&R.getSourceFileOfNode(t))?R.getSourceTextOfNodeFromSourceFile(r,t,e):"",null!=n&&n.set(this,i)),i}}})}try{R.sys&&R.sys.require&&(e=R.getDirectoryPath(R.resolvePath(R.sys.getExecutingFilePath())),(e=R.sys.require(e,"./compiler-debug")).error||(e.module.init(R),E=e.module))}catch(e){}F=!0}}function M(e,t,r,n,i){var a=t?"DeprecationError: ":"DeprecationWarning: ";return a+="'".concat(e,"' "),a+=n?"has been deprecated since v".concat(n):"is deprecated",a+=t?" and can no longer be used.":r?" and will no longer be usable after v".concat(r,"."):".",a+=i?" ".concat(R.formatStringFromArgs(i,[e],0)):""}function L(e,t){void 0===t&&(t={});var r,n,i,a,o,s,c,l="string"==typeof t.typeScriptVersion?new R.Version(t.typeScriptVersion):null!==(f=t.typeScriptVersion)&&void 0!==f?f:g(),u="string"==typeof t.errorAfter?new R.Version(t.errorAfter):t.errorAfter,_="string"==typeof t.warnAfter?new R.Version(t.warnAfter):t.warnAfter,d="string"==typeof t.since?new R.Version(t.since):null!==(s=t.since)&&void 0!==s?s:_,p=t.error||u&&l.compareTo(u)<=0,f=!_||0<=l.compareTo(_);return p?(s=e,l=u,_=d,p=t.message,c=M(s,!0,l,_,p),function(){throw new TypeError(c)}):f?(r=e,n=u,i=d,a=t.message,o=!1,function(){o||(m.warn(M(r,!1,n,i,a)),o=!0)}):R.noop}a.printControlFlowGraph=function(e){return console.log(P(e))},a.formatControlFlowGraph=P,a.attachFlowNodeDebugInfo=function(e){F&&("function"==typeof Object.setPrototypeOf?(N||w(N=Object.create(Object.prototype)),Object.setPrototypeOf(e,N)):w(e))},a.attachNodeArrayDebugInfo=function(e){F&&("function"==typeof Object.setPrototypeOf?(A||I(A=Object.create(Array.prototype)),Object.setPrototypeOf(e,A)):I(e))},a.enableDebugInfo=O,a.deprecate=function(e,t){var r,n,t=L(p(e),t);return r=t,n=e,function(){return r(),n.apply(this,arguments)}}}(R.Debug||(R.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="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return u.some(this.prerelease)&&(e+="-".concat(this.prerelease.join("."))),u.some(this.build)&&(e+="+".concat(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=/\|\|/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*([a-z0-9-+.*]+)$/i;function n(e){for(var t=[],r=0,n=u.trimString(e).split(d);r<n.length;r++)if(a=n[r]){var i=[],a=u.trimString(a),o=g.exec(a);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],i))return}else for(var s=0,c=a.split(p);s<c.length;s++){var l=c[s],l=m.exec(u.trimString(l));if(!l||!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}(l[1],l[2],i))return}t.push(i)}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"".concat(e.operator).concat(e.operand)}}(ts=ts||{}),function(i){function a(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&&a(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser&&"object"==typeof module&&"function"==typeof require)try{var e,t=require("perf_hooks"),n=t.performance,r=t.PerformanceObserver;if(a(n,r)){e=n;t=new i.Version(process.versions.node);return new i.VersionRange("<12.16.3 || 13 <13.13").test(t)&&(e={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__")}}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:r}}}catch(e){}}(),t=null==e?void 0:e.performance;i.tryGetNativePerformanceHooks=function(){return e},i.timestamp=t?function(){return t.now()}:Date.now||function(){return+new Date}}(ts=ts||{}),function(p){!function(i){var r,o;function a(e,t,r){var n=0;return{enter:function(){1==++n&&_(t)},exit:function(){0==--n?(_(r),d(e,t,r)):n<0&&p.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;var s=!(i.nullTimer={enter:p.noop,exit:p.noop}),c=p.timestamp(),l=new p.Map,n=new p.Map,u=new p.Map;function _(e){var t;s&&(t=null!==(t=n.get(e))&&void 0!==t?t:0,n.set(e,t+1),l.set(e,p.timestamp()),null!=o&&o.mark(e))}function d(e,t,r){var n,i,a;s&&(n=null!==(i=void 0!==r?l.get(r):void 0)&&void 0!==i?i:p.timestamp(),i=null!==(a=void 0!==t?l.get(t):void 0)&&void 0!==a?a:c,a=u.get(e)||0,u.set(e,a+(n-i)),null!=o&&o.measure(e,t,r))}i.mark=_,i.measure=d,i.getCount=function(e){return n.get(e)||0},i.getDuration=function(e){return u.get(e)||0},i.forEachMeasure=function(r){u.forEach(function(e,t){return r(t,e)})},i.isEnabled=function(){return s},i.enable=function(e){var t;return void 0===e&&(e=p.sys),s||(s=!0,(r=r||p.tryGetNativePerformanceHooks())&&(c=r.performance.timeOrigin,(r.shouldWriteNativeEvents||null!==(t=null==e?void 0:e.cpuProfilingEnabled)&&void 0!==t&&t.call(e)||null!=e&&e.debugMode)&&(o=r.performance))),!0},i.disable=function(){s&&(l.clear(),n.clear(),u.clear(),o=void 0,s=!1)}}(p.performance||(p.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(C){var e;!function(i){var D,o,a,e,s=0,c=0,l=[],S=[];i.startTracing=function(e,t,r){if(C.Debug.assert(!C.tracing,"Tracing already started"),void 0===D)try{D=require("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}o=e,void(l.length=0)===a&&(a=C.combinePaths(t,"legend.json")),D.existsSync(t)||D.mkdirSync(t,{recursive:!0});var n="build"===o?".".concat(process.pid,"-").concat(++s):"server"===o?".".concat(process.pid):"",e=C.combinePaths(t,"trace".concat(n,".json")),n=C.combinePaths(t,"types".concat(n,".json"));S.push({configFilePath:r,tracePath:e,typesPath:n}),c=D.openSync(e,"w"),C.tracing=i,e={cat:"__metadata",ph:"M",ts:1e3*C.timestamp(),pid:1,tid:1},D.writeSync(c,"[\n"+[__assign({name:"process_name",args:{name:"tsc"}},e),__assign({name:"thread_name",args:{name:"Main"}},e),__assign(__assign({name:"TracingStartedInBrowser"},e),{cat:"disabled-by-default-devtools.timeline"})].map(function(e){return JSON.stringify(e)}).join(",\n"))},i.stopTracing=function(){C.Debug.assert(C.tracing,"Tracing is not in progress"),C.Debug.assert(!!l.length==("server"!==o)),D.writeSync(c,"\n]\n"),D.closeSync(c),C.tracing=void 0,l.length?function(e){var t,r,n,i;C.performance.mark("beginDumpTypes");var a=S[S.length-1].typesPath,o=D.openSync(a,"w"),s=new C.Map;D.writeSync(o,"[");for(var c=e.length,l=0;l<c;l++){var u=e[l],_=u.objectFlags,d=null!==(f=u.aliasSymbol)&&void 0!==f?f:u.symbol,p=void 0;if(16&_|2944&u.flags)try{p=null===(t=u.checker)||void 0===t?void 0:t.typeToString(u)}catch(e){p=void 0}var f={};8388608&u.flags&&(f={indexedAccessObjectType:null===(g=u.objectType)||void 0===g?void 0:g.id,indexedAccessIndexType:null===(r=u.indexType)||void 0===r?void 0:r.id});var g={};4&_&&(g={instantiatedType:null===(r=(m=u).target)||void 0===r?void 0:r.id,typeArguments:null===(r=m.resolvedTypeArguments)||void 0===r?void 0:r.map(function(e){return e.id}),referenceLocation:T(m.node)});var m={};16777216&u.flags&&(m={conditionalCheckType:null===(y=u.checkType)||void 0===y?void 0:y.id,conditionalExtendsType:null===(y=u.extendsType)||void 0===y?void 0:y.id,conditionalTrueType:null!==(y=null===(y=u.resolvedTrueType)||void 0===y?void 0:y.id)&&void 0!==y?y:-1,conditionalFalseType:null!==(y=null===(y=u.resolvedFalseType)||void 0===y?void 0:y.id)&&void 0!==y?y:-1});var y={};33554432&u.flags&&(y={substitutionBaseType:null===(h=u.baseType)||void 0===h?void 0:h.id,substituteType:null===(h=u.substitute)||void 0===h?void 0:h.id});var h={};1024&_&&(h={reverseMappedSourceType:null===(b=u.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(v=u.mappedType)||void 0===v?void 0:v.id,reverseMappedConstraintType:null===(b=u.constraintType)||void 0===b?void 0:b.id});var v={};256&_&&(v={evolvingArrayElementType:u.elementType.id,evolvingArrayFinalType:null===(x=u.finalArrayType)||void 0===x?void 0:x.id});var b=void 0,x=u.checker.getRecursionIdentity(u);x&&((b=s.get(x))||(b=s.size,s.set(x,b)));d=__assign(__assign(__assign(__assign(__assign(__assign(__assign({id:u.id,intrinsicName:u.intrinsicName,symbolName:(null==d?void 0:d.escapedName)&&C.unescapeLeadingUnderscores(d.escapedName),recursionId:b,isTuple:!!(8&_)||void 0,unionTypes:!(1048576&u.flags)||null===(n=u.types)||void 0===n?void 0:n.map(function(e){return e.id}),intersectionTypes:2097152&u.flags?u.types.map(function(e){return e.id}):void 0,aliasTypeArguments:null===(_=u.aliasTypeArguments)||void 0===_?void 0:_.map(function(e){return e.id}),keyofType:!(4194304&u.flags)||null===(i=u.type)||void 0===i?void 0:i.id},f),g),m),y),h),v),{destructuringPattern:T(u.pattern),firstDeclaration:T(null===(d=null==d?void 0:d.declarations)||void 0===d?void 0:d[0]),flags:C.Debug.formatTypeFlags(u.flags).split("|"),display:p});D.writeSync(o,JSON.stringify(d)),l<c-1&&D.writeSync(o,",\n")}D.writeSync(o,"]\n"),D.closeSync(o),C.performance.mark("endDumpTypes"),C.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(l):S[S.length-1].typesPath=void 0},i.recordType=function(e){"server"!==o&&l.push(e)},(e=i.Phase||(i.Phase={})).Parse="parse",e.Program="program",e.Bind="bind",e.Check="check",e.CheckTypes="checkTypes",e.Emit="emit",e.Session="session",i.instant=function(e,t,r){d("I",e,t,r,'"s":"g"')};var u=[];i.push=function(e,t,r,n){void 0===n&&(n=!1),n&&d("B",e,t,r),u.push({phase:e,name:t,args:r,time:1e3*C.timestamp(),separateBeginAndEnd:n})},i.pop=function(){C.Debug.assert(0<u.length),r(u.length-1,1e3*C.timestamp()),u.length--},i.popAll=function(){for(var e=1e3*C.timestamp(),t=u.length-1;0<=t;t--)r(t,e);u.length=0};var _=1e4;function r(e,t){var r=u[e],n=r.phase,i=r.name,a=r.args,e=r.time;r.separateBeginAndEnd?d("E",n,i,a,void 0,t):_-e%_<=t-e&&d("X",n,i,a,'"dur":'.concat(t-e),e)}function d(e,t,r,n,i,a){void 0===a&&(a=1e3*C.timestamp()),"server"===o&&"checkTypes"===t||(C.performance.mark("beginTracing"),D.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(e,'","cat":"').concat(t,'","ts":').concat(a,',"name":"').concat(r,'"')),i&&D.writeSync(c,",".concat(i)),n&&D.writeSync(c,',"args":'.concat(JSON.stringify(n))),D.writeSync(c,"}"),C.performance.mark("endTracing"),C.performance.measure("Tracing","beginTracing","endTracing"))}function T(e){var t=C.getSourceFileOfNode(e);return t?{path:t.path,start:r(C.getLineAndCharacterOfPosition(t,e.pos)),end:r(C.getLineAndCharacterOfPosition(t,e.end))}:void 0;function r(e){return{line:e.line+1,character:e.character+1}}}i.dumpLegend=function(){a&&D.writeFileSync(a,JSON.stringify(S))}}(e=e||{}),C.startTracing=e.startTracing,C.dumpTracingLegend=e.dumpLegend}(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.HashToken=62]="HashToken",t[t.EqualsToken=63]="EqualsToken",t[t.PlusEqualsToken=64]="PlusEqualsToken",t[t.MinusEqualsToken=65]="MinusEqualsToken",t[t.AsteriskEqualsToken=66]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=68]="SlashEqualsToken",t[t.PercentEqualsToken=69]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=73]="AmpersandEqualsToken",t[t.BarEqualsToken=74]="BarEqualsToken",t[t.BarBarEqualsToken=75]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=78]="CaretEqualsToken",t[t.Identifier=79]="Identifier",t[t.PrivateIdentifier=80]="PrivateIdentifier",t[t.BreakKeyword=81]="BreakKeyword",t[t.CaseKeyword=82]="CaseKeyword",t[t.CatchKeyword=83]="CatchKeyword",t[t.ClassKeyword=84]="ClassKeyword",t[t.ConstKeyword=85]="ConstKeyword",t[t.ContinueKeyword=86]="ContinueKeyword",t[t.DebuggerKeyword=87]="DebuggerKeyword",t[t.DefaultKeyword=88]="DefaultKeyword",t[t.DeleteKeyword=89]="DeleteKeyword",t[t.DoKeyword=90]="DoKeyword",t[t.ElseKeyword=91]="ElseKeyword",t[t.EnumKeyword=92]="EnumKeyword",t[t.ExportKeyword=93]="ExportKeyword",t[t.ExtendsKeyword=94]="ExtendsKeyword",t[t.FalseKeyword=95]="FalseKeyword",t[t.FinallyKeyword=96]="FinallyKeyword",t[t.ForKeyword=97]="ForKeyword",t[t.FunctionKeyword=98]="FunctionKeyword",t[t.IfKeyword=99]="IfKeyword",t[t.ImportKeyword=100]="ImportKeyword",t[t.InKeyword=101]="InKeyword",t[t.InstanceOfKeyword=102]="InstanceOfKeyword",t[t.NewKeyword=103]="NewKeyword",t[t.NullKeyword=104]="NullKeyword",t[t.ReturnKeyword=105]="ReturnKeyword",t[t.SuperKeyword=106]="SuperKeyword",t[t.SwitchKeyword=107]="SwitchKeyword",t[t.ThisKeyword=108]="ThisKeyword",t[t.ThrowKeyword=109]="ThrowKeyword",t[t.TrueKeyword=110]="TrueKeyword",t[t.TryKeyword=111]="TryKeyword",t[t.TypeOfKeyword=112]="TypeOfKeyword",t[t.VarKeyword=113]="VarKeyword",t[t.VoidKeyword=114]="VoidKeyword",t[t.WhileKeyword=115]="WhileKeyword",t[t.WithKeyword=116]="WithKeyword",t[t.ImplementsKeyword=117]="ImplementsKeyword",t[t.InterfaceKeyword=118]="InterfaceKeyword",t[t.LetKeyword=119]="LetKeyword",t[t.PackageKeyword=120]="PackageKeyword",t[t.PrivateKeyword=121]="PrivateKeyword",t[t.ProtectedKeyword=122]="ProtectedKeyword",t[t.PublicKeyword=123]="PublicKeyword",t[t.StaticKeyword=124]="StaticKeyword",t[t.YieldKeyword=125]="YieldKeyword",t[t.AbstractKeyword=126]="AbstractKeyword",t[t.AsKeyword=127]="AsKeyword",t[t.AssertsKeyword=128]="AssertsKeyword",t[t.AssertKeyword=129]="AssertKeyword",t[t.AnyKeyword=130]="AnyKeyword",t[t.AsyncKeyword=131]="AsyncKeyword",t[t.AwaitKeyword=132]="AwaitKeyword",t[t.BooleanKeyword=133]="BooleanKeyword",t[t.ConstructorKeyword=134]="ConstructorKeyword",t[t.DeclareKeyword=135]="DeclareKeyword",t[t.GetKeyword=136]="GetKeyword",t[t.InferKeyword=137]="InferKeyword",t[t.IntrinsicKeyword=138]="IntrinsicKeyword",t[t.IsKeyword=139]="IsKeyword",t[t.KeyOfKeyword=140]="KeyOfKeyword",t[t.ModuleKeyword=141]="ModuleKeyword",t[t.NamespaceKeyword=142]="NamespaceKeyword",t[t.NeverKeyword=143]="NeverKeyword",t[t.OutKeyword=144]="OutKeyword",t[t.ReadonlyKeyword=145]="ReadonlyKeyword",t[t.RequireKeyword=146]="RequireKeyword",t[t.NumberKeyword=147]="NumberKeyword",t[t.ObjectKeyword=148]="ObjectKeyword",t[t.SetKeyword=149]="SetKeyword",t[t.StringKeyword=150]="StringKeyword",t[t.SymbolKeyword=151]="SymbolKeyword",t[t.TypeKeyword=152]="TypeKeyword",t[t.UndefinedKeyword=153]="UndefinedKeyword",t[t.UniqueKeyword=154]="UniqueKeyword",t[t.UnknownKeyword=155]="UnknownKeyword",t[t.FromKeyword=156]="FromKeyword",t[t.GlobalKeyword=157]="GlobalKeyword",t[t.BigIntKeyword=158]="BigIntKeyword",t[t.OverrideKeyword=159]="OverrideKeyword",t[t.OfKeyword=160]="OfKeyword",t[t.QualifiedName=161]="QualifiedName",t[t.ComputedPropertyName=162]="ComputedPropertyName",t[t.TypeParameter=163]="TypeParameter",t[t.Parameter=164]="Parameter",t[t.Decorator=165]="Decorator",t[t.PropertySignature=166]="PropertySignature",t[t.PropertyDeclaration=167]="PropertyDeclaration",t[t.MethodSignature=168]="MethodSignature",t[t.MethodDeclaration=169]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=170]="ClassStaticBlockDeclaration",t[t.Constructor=171]="Constructor",t[t.GetAccessor=172]="GetAccessor",t[t.SetAccessor=173]="SetAccessor",t[t.CallSignature=174]="CallSignature",t[t.ConstructSignature=175]="ConstructSignature",t[t.IndexSignature=176]="IndexSignature",t[t.TypePredicate=177]="TypePredicate",t[t.TypeReference=178]="TypeReference",t[t.FunctionType=179]="FunctionType",t[t.ConstructorType=180]="ConstructorType",t[t.TypeQuery=181]="TypeQuery",t[t.TypeLiteral=182]="TypeLiteral",t[t.ArrayType=183]="ArrayType",t[t.TupleType=184]="TupleType",t[t.OptionalType=185]="OptionalType",t[t.RestType=186]="RestType",t[t.UnionType=187]="UnionType",t[t.IntersectionType=188]="IntersectionType",t[t.ConditionalType=189]="ConditionalType",t[t.InferType=190]="InferType",t[t.ParenthesizedType=191]="ParenthesizedType",t[t.ThisType=192]="ThisType",t[t.TypeOperator=193]="TypeOperator",t[t.IndexedAccessType=194]="IndexedAccessType",t[t.MappedType=195]="MappedType",t[t.LiteralType=196]="LiteralType",t[t.NamedTupleMember=197]="NamedTupleMember",t[t.TemplateLiteralType=198]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=199]="TemplateLiteralTypeSpan",t[t.ImportType=200]="ImportType",t[t.ObjectBindingPattern=201]="ObjectBindingPattern",t[t.ArrayBindingPattern=202]="ArrayBindingPattern",t[t.BindingElement=203]="BindingElement",t[t.ArrayLiteralExpression=204]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=205]="ObjectLiteralExpression",t[t.PropertyAccessExpression=206]="PropertyAccessExpression",t[t.ElementAccessExpression=207]="ElementAccessExpression",t[t.CallExpression=208]="CallExpression",t[t.NewExpression=209]="NewExpression",t[t.TaggedTemplateExpression=210]="TaggedTemplateExpression",t[t.TypeAssertionExpression=211]="TypeAssertionExpression",t[t.ParenthesizedExpression=212]="ParenthesizedExpression",t[t.FunctionExpression=213]="FunctionExpression",t[t.ArrowFunction=214]="ArrowFunction",t[t.DeleteExpression=215]="DeleteExpression",t[t.TypeOfExpression=216]="TypeOfExpression",t[t.VoidExpression=217]="VoidExpression",t[t.AwaitExpression=218]="AwaitExpression",t[t.PrefixUnaryExpression=219]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=220]="PostfixUnaryExpression",t[t.BinaryExpression=221]="BinaryExpression",t[t.ConditionalExpression=222]="ConditionalExpression",t[t.TemplateExpression=223]="TemplateExpression",t[t.YieldExpression=224]="YieldExpression",t[t.SpreadElement=225]="SpreadElement",t[t.ClassExpression=226]="ClassExpression",t[t.OmittedExpression=227]="OmittedExpression",t[t.ExpressionWithTypeArguments=228]="ExpressionWithTypeArguments",t[t.AsExpression=229]="AsExpression",t[t.NonNullExpression=230]="NonNullExpression",t[t.MetaProperty=231]="MetaProperty",t[t.SyntheticExpression=232]="SyntheticExpression",t[t.TemplateSpan=233]="TemplateSpan",t[t.SemicolonClassElement=234]="SemicolonClassElement",t[t.Block=235]="Block",t[t.EmptyStatement=236]="EmptyStatement",t[t.VariableStatement=237]="VariableStatement",t[t.ExpressionStatement=238]="ExpressionStatement",t[t.IfStatement=239]="IfStatement",t[t.DoStatement=240]="DoStatement",t[t.WhileStatement=241]="WhileStatement",t[t.ForStatement=242]="ForStatement",t[t.ForInStatement=243]="ForInStatement",t[t.ForOfStatement=244]="ForOfStatement",t[t.ContinueStatement=245]="ContinueStatement",t[t.BreakStatement=246]="BreakStatement",t[t.ReturnStatement=247]="ReturnStatement",t[t.WithStatement=248]="WithStatement",t[t.SwitchStatement=249]="SwitchStatement",t[t.LabeledStatement=250]="LabeledStatement",t[t.ThrowStatement=251]="ThrowStatement",t[t.TryStatement=252]="TryStatement",t[t.DebuggerStatement=253]="DebuggerStatement",t[t.VariableDeclaration=254]="VariableDeclaration",t[t.VariableDeclarationList=255]="VariableDeclarationList",t[t.FunctionDeclaration=256]="FunctionDeclaration",t[t.ClassDeclaration=257]="ClassDeclaration",t[t.InterfaceDeclaration=258]="InterfaceDeclaration",t[t.TypeAliasDeclaration=259]="TypeAliasDeclaration",t[t.EnumDeclaration=260]="EnumDeclaration",t[t.ModuleDeclaration=261]="ModuleDeclaration",t[t.ModuleBlock=262]="ModuleBlock",t[t.CaseBlock=263]="CaseBlock",t[t.NamespaceExportDeclaration=264]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=265]="ImportEqualsDeclaration",t[t.ImportDeclaration=266]="ImportDeclaration",t[t.ImportClause=267]="ImportClause",t[t.NamespaceImport=268]="NamespaceImport",t[t.NamedImports=269]="NamedImports",t[t.ImportSpecifier=270]="ImportSpecifier",t[t.ExportAssignment=271]="ExportAssignment",t[t.ExportDeclaration=272]="ExportDeclaration",t[t.NamedExports=273]="NamedExports",t[t.NamespaceExport=274]="NamespaceExport",t[t.ExportSpecifier=275]="ExportSpecifier",t[t.MissingDeclaration=276]="MissingDeclaration",t[t.ExternalModuleReference=277]="ExternalModuleReference",t[t.JsxElement=278]="JsxElement",t[t.JsxSelfClosingElement=279]="JsxSelfClosingElement",t[t.JsxOpeningElement=280]="JsxOpeningElement",t[t.JsxClosingElement=281]="JsxClosingElement",t[t.JsxFragment=282]="JsxFragment",t[t.JsxOpeningFragment=283]="JsxOpeningFragment",t[t.JsxClosingFragment=284]="JsxClosingFragment",t[t.JsxAttribute=285]="JsxAttribute",t[t.JsxAttributes=286]="JsxAttributes",t[t.JsxSpreadAttribute=287]="JsxSpreadAttribute",t[t.JsxExpression=288]="JsxExpression",t[t.CaseClause=289]="CaseClause",t[t.DefaultClause=290]="DefaultClause",t[t.HeritageClause=291]="HeritageClause",t[t.CatchClause=292]="CatchClause",t[t.AssertClause=293]="AssertClause",t[t.AssertEntry=294]="AssertEntry",t[t.ImportTypeAssertionContainer=295]="ImportTypeAssertionContainer",t[t.PropertyAssignment=296]="PropertyAssignment",t[t.ShorthandPropertyAssignment=297]="ShorthandPropertyAssignment",t[t.SpreadAssignment=298]="SpreadAssignment",t[t.EnumMember=299]="EnumMember",t[t.UnparsedPrologue=300]="UnparsedPrologue",t[t.UnparsedPrepend=301]="UnparsedPrepend",t[t.UnparsedText=302]="UnparsedText",t[t.UnparsedInternalText=303]="UnparsedInternalText",t[t.UnparsedSyntheticReference=304]="UnparsedSyntheticReference",t[t.SourceFile=305]="SourceFile",t[t.Bundle=306]="Bundle",t[t.UnparsedSource=307]="UnparsedSource",t[t.InputFiles=308]="InputFiles",t[t.JSDocTypeExpression=309]="JSDocTypeExpression",t[t.JSDocNameReference=310]="JSDocNameReference",t[t.JSDocMemberName=311]="JSDocMemberName",t[t.JSDocAllType=312]="JSDocAllType",t[t.JSDocUnknownType=313]="JSDocUnknownType",t[t.JSDocNullableType=314]="JSDocNullableType",t[t.JSDocNonNullableType=315]="JSDocNonNullableType",t[t.JSDocOptionalType=316]="JSDocOptionalType",t[t.JSDocFunctionType=317]="JSDocFunctionType",t[t.JSDocVariadicType=318]="JSDocVariadicType",t[t.JSDocNamepathType=319]="JSDocNamepathType",t[t.JSDocComment=320]="JSDocComment",t[t.JSDocText=321]="JSDocText",t[t.JSDocTypeLiteral=322]="JSDocTypeLiteral",t[t.JSDocSignature=323]="JSDocSignature",t[t.JSDocLink=324]="JSDocLink",t[t.JSDocLinkCode=325]="JSDocLinkCode",t[t.JSDocLinkPlain=326]="JSDocLinkPlain",t[t.JSDocTag=327]="JSDocTag",t[t.JSDocAugmentsTag=328]="JSDocAugmentsTag",t[t.JSDocImplementsTag=329]="JSDocImplementsTag",t[t.JSDocAuthorTag=330]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",t[t.JSDocClassTag=332]="JSDocClassTag",t[t.JSDocPublicTag=333]="JSDocPublicTag",t[t.JSDocPrivateTag=334]="JSDocPrivateTag",t[t.JSDocProtectedTag=335]="JSDocProtectedTag",t[t.JSDocReadonlyTag=336]="JSDocReadonlyTag",t[t.JSDocOverrideTag=337]="JSDocOverrideTag",t[t.JSDocCallbackTag=338]="JSDocCallbackTag",t[t.JSDocEnumTag=339]="JSDocEnumTag",t[t.JSDocParameterTag=340]="JSDocParameterTag",t[t.JSDocReturnTag=341]="JSDocReturnTag",t[t.JSDocThisTag=342]="JSDocThisTag",t[t.JSDocTypeTag=343]="JSDocTypeTag",t[t.JSDocTemplateTag=344]="JSDocTemplateTag",t[t.JSDocTypedefTag=345]="JSDocTypedefTag",t[t.JSDocSeeTag=346]="JSDocSeeTag",t[t.JSDocPropertyTag=347]="JSDocPropertyTag",t[t.SyntaxList=348]="SyntaxList",t[t.NotEmittedStatement=349]="NotEmittedStatement",t[t.PartiallyEmittedExpression=350]="PartiallyEmittedExpression",t[t.CommaListExpression=351]="CommaListExpression",t[t.MergeDeclarationMarker=352]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=353]="EndOfDeclarationMarker",t[t.SyntheticReferenceExpression=354]="SyntheticReferenceExpression",t[t.Count=355]="Count",t[t.FirstAssignment=63]="FirstAssignment",t[t.LastAssignment=78]="LastAssignment",t[t.FirstCompoundAssignment=64]="FirstCompoundAssignment",t[t.LastCompoundAssignment=78]="LastCompoundAssignment",t[t.FirstReservedWord=81]="FirstReservedWord",t[t.LastReservedWord=116]="LastReservedWord",t[t.FirstKeyword=81]="FirstKeyword",t[t.LastKeyword=160]="LastKeyword",t[t.FirstFutureReservedWord=117]="FirstFutureReservedWord",t[t.LastFutureReservedWord=125]="LastFutureReservedWord",t[t.FirstTypeNode=177]="FirstTypeNode",t[t.LastTypeNode=200]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=78]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=160]="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=78]="LastBinaryOperator",t[t.FirstStatement=237]="FirstStatement",t[t.LastStatement=253]="LastStatement",t[t.FirstNode=161]="FirstNode",t[t.FirstJSDocNode=309]="FirstJSDocNode",t[t.LastJSDocNode=347]="LastJSDocNode",t[t.FirstJSDocTagNode=327]="FirstJSDocTagNode",t[t.LastJSDocTagNode=347]="LastJSDocTagNode",t[t.FirstContextualKeyword=126]="FirstContextualKeyword",t[t.LastContextualKeyword=160]="LastContextualKeyword",t[t.JSDoc=320]="JSDoc",(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.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=131072]="ThisNodeHasError",t[t.JavaScriptFile=262144]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=1048576]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",t[t.JSDoc=8388608]="JSDoc",t[t.Ambient=16777216]="Ambient",t[t.InWithStatement=33554432]="InWithStatement",t[t.JsonFile=67108864]="JsonFile",t[t.TypeCached=134217728]="TypeCached",t[t.Deprecated=268435456]="Deprecated",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",t[t.ContextFlags=50720768]="ContextFlags",t[t.TypeExcludesFlags=40960]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=6291456]="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.Override=16384]="Override",t[t.In=32768]="In",t[t.Out=65536]="Out",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=28]="AccessibilityModifier",t[t.ParameterPropertyModifier=16476]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=116958]="TypeScriptModifier",t[t.ExportDefault=513]="ExportDefault",t[t.All=125951]="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.FileIncludeKind||(e.FileIncludeKind={}))[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(t=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(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.MemberOverrideStatus||(e.MemberOverrideStatus={}))[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",(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.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",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=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.Unresolved=1048576]="Unresolved",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[t.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=268435456]="InCheckIdentifier",(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.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",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.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=205258751]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",(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.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",(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.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",(t=e.AccessFlags||(e.AccessFlags={}))[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",(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.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.PropagatingFlags=39]="PropagatingFlags",t[t.CallChainFlags=24]="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.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="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[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",(t=e.ModuleDetectionKind||(e.ModuleDetectionKind={}))[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",(t=e.WatchFileKind||(e.WatchFileKind={}))[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(t=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",(t=e.PollingWatchKind||(e.PollingWatchKind={}))[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",(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.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext",(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.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",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.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",(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.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=8192]="ContainsLexicalThis",t[t.ContainsRestOrSpread=16384]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=262144]="ContainsBindingPattern",t[t.ContainsYield=524288]="ContainsYield",t[t.ContainsAwait=1048576]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=4194304]="ContainsDynamicImport",t[t.ContainsClassFields=8388608]="ContainsClassFields",t[t.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",t[t.NodeExcludes=536870912]="NodeExcludes",t[t.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",t[t.FunctionExcludes=591310848]="FunctionExcludes",t[t.ConstructorExcludes=591306752]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=570433536]="PropertyExcludes",t[t.ClassExcludes=536940544]="ClassExcludes",t[t.ModuleExcludes=589443072]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=536870912]="ParameterExcludes",t[t.CatchClauseExcludes=536903680]="CatchClauseExcludes",t[t.BindingPatternExcludes=536887296]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(t=e.SnippetKind||(e.SnippetKind={}))[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",(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[t.Immutable=268435456]="Immutable",t[t.IndirectCall=536870912]="IndirectCall",(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.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.CreateBinding=4194304]="CreateBinding",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=4194304]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="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[t.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(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.TypeResolutionModeRequire="type-require",t.TypeResolutionModeImport="type-import",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.ImportClauseEntries=526226]="ImportClauseEntries",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},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(ts=ts||{}),function(E){function N(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var A,C;function f(e,t){return e.getModifiedTime(t)||E.missingFileModifiedTime}function n(e){var t={};return t[C.Low]=e.Low,t[C.Medium]=e.Medium,t[C.High]=e.High,t}E.generateDjb2Hash=N,E.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(r=A=E.FileWatcherEventKind||(E.FileWatcherEventKind={}))[r.Created=0]="Created",r[r.Changed=1]="Changed",r[r.Deleted=2]="Deleted",(r=C=E.PollingInterval||(E.PollingInterval={}))[r.High=2e3]="High",r[r.Medium=500]="Medium",r[r.Low=250]="Low",E.missingFileModifiedTime=new Date(0),E.getModifiedTime=f;var t={Low:32,Medium:64,High:256},g=n(t);function e(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("".concat(t,"_").concat(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",C),g=e("TSC_WATCH_POLLINGCHUNKSIZE",t)||g,E.unchangedPollThresholds=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",t)||E.unchangedPollThresholds)}function m(e,t,r,n,i){for(var a=r,o=t.length;n&&o;++r===t.length&&(a<r&&(t.length=a),a=r=0),o--){var s,c=t[r];c&&(c.isClosed?t[r]=void 0:(n--,s=l(c,f(e,c.fileName)),c.isClosed?t[r]=void 0:(null!=i&&i(c,r,s),t[r]&&(a<r&&(t[a]=c,t[r]=void 0),a++))))}return r}function k(a){var i=[],o=[],t=e(C.Low),r=e(C.Medium),n=e(C.High);return function(e,t,r){var n={fileName:e,callback:t,unchangedPolls:0,mtime:f(a,e)};return i.push(n),_(n,r),{close:function(){n.isClosed=!0,E.unorderedRemoveItem(i,n)}}};function e(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e){e.pollIndex=l(e,e.pollingInterval,e.pollIndex,g[e.pollingInterval]),e.length?p(e.pollingInterval):(E.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function c(e){l(o,C.Low,0,o.length),s(e),!e.pollScheduled&&o.length&&p(C.Low)}function l(n,i,e,t){return m(a,n,e,t,function(e,t,r){r?(e.unchangedPolls=0,n!==o&&(n[t]=void 0,o.push(e),d(C.Low))):e.unchangedPolls!==E.unchangedPollThresholds[i]?e.unchangedPolls++:n===o?(e.unchangedPolls=1,n[t]=void 0,_(e,C.Low)):i!==C.High&&(e.unchangedPolls++,n[t]=void 0,_(e,i===C.Low?C.Medium:C.High))})}function u(e){switch(e){case C.Low:return t;case C.Medium:return r;case C.High:return n}}function _(e,t){u(t).push(e),d(t)}function d(e){u(e).pollScheduled||p(e)}function p(e){u(e).pollScheduled=a.setTimeout(e===C.Low?c:s,e,u(e))}}function F(s,e){var c=E.createMultiMap(),l=new E.Map,u=E.createGetCanonicalFileName(e);return function(e,t,r,n){var i=u(e);c.add(i,t);var a=E.getDirectoryPath(i)||".",o=l.get(a)||function(a,e,t){t=s(a,1,function(e,t){if(E.isString(t)){var r=E.getNormalizedAbsolutePath(t,a),t=r&&c.get(u(r));if(t)for(var n=0,i=t;n<i.length;n++)(0,i[n])(r,A.Changed)}},!1,C.Medium,t);return t.referenceCount=0,l.set(e,t),t}(E.getDirectoryPath(e)||".",a,n);return o.referenceCount++,{close:function(){1===o.referenceCount?(o.close(),l.delete(a)):o.referenceCount--,c.remove(i,t)}}}}function P(n){var e,i=[],t=0;return function(e,t){var r={fileName:e,callback:t,mtime:f(n,e)};return i.push(r),a(),{close:function(){r.isClosed=!0,E.unorderedRemoveItem(i,r)}}};function r(){e=void 0,t=m(n,i,t,g[C.Low]),a()}function a(){i.length&&!e&&(e=n.setTimeout(r,C.High))}}function w(o,e){var s=new E.Map,c=E.createMultiMap(),l=E.createGetCanonicalFileName(e);return function(e,t,r,n){var i=l(e),a=s.get(i);return a?a.refCount++:s.set(i,{watcher:o(e,function(t,r){return E.forEach(c.get(i),function(e){return e(t,r)})},r,n),refCount:1}),c.add(i,t),{close:function(){var e=E.Debug.checkDefined(s.get(i));c.remove(i,t),e.refCount--,e.refCount||(s.delete(i),E.closeFileWatcherOf(e))}}}}function l(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?A.Created:0===t?A.Deleted:A.Changed}E.unchangedPollThresholds=n(t),E.setCustomPollingValues=e,E.createDynamicPriorityPollingWatchFile=k,E.createSingleFileWatcherPerName=w,E.onWatchedFileStat=l,E.getFileWatcherEventKind=i,E.ignoredPaths=["/node_modules/.","/.git","/.#"];var r,I,a=E.noop;function O(e){return a(e)}function M(e){var o,s=e.watchDirectory,n=e.useCaseSensitiveFileNames,t=e.getCurrentDirectory,c=e.getAccessibleSortedChildDirectories,l=e.directoryExists,u=e.realpath,_=e.setTimeout,d=e.clearTimeout,p=new E.Map,f=E.createMultiMap(),g=new E.Map,m=E.getStringComparer(!n),y=E.createGetCanonicalFileName(n);return function(e,t,r,n){return r?h(e,n,t):s(e,t,r,n)};function h(t,r,e){var n=y(t),i=p.get(n);i?i.refCount++:(i={watcher:s(t,function(e){D(e,r)||(null!=r&&r.synchronousWatchDirectory?(v(n,e),x(t,n,r)):function(e,t,r,n){var i=p.get(t);if(i&&l(e))return function(e,t,r,n){var i=g.get(t);i?i.fileNames.push(r):g.set(t,{dirName:e,options:n,fileNames:[r]}),o&&(d(o),o=void 0),o=_(b,1e3)}(e,t,r,n),0;v(t,r),function e(t){if(!t)return;var r=t.childWatches;t.childWatches=E.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),e(p.get(y(a.dirName)))}}(i)}(t,n,e,r))},!1,r),refCount:1,childWatches:E.emptyArray},p.set(n,i),x(t,n,r));var a=e&&{dirName:t,callback:e};return a&&f.add(n,a),{dirName:t,close:function(){var e=E.Debug.checkDefined(p.get(n));a&&f.remove(n,a),e.refCount--,e.refCount||(p.delete(n),E.closeFileWatcherOf(e),e.childWatches.forEach(E.closeFileWatcher))}}}function v(n,e,i){var a,o;E.isString(e)?a=e:o=e,f.forEach(function(e,t){var r;o&&!0===o.get(t)||(t===n||E.startsWith(n,t)&&n[t.length]===E.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 b(){o=void 0,O("sysLog:: onTimerToUpdateChildWatches:: ".concat(g.size));for(var e=E.timestamp(),n=new E.Map;!o&&g.size;){var t=g.entries().next();E.Debug.assert(!t.done);var r=t.value,i=r[0],a=r[1],t=a.dirName,r=a.options,a=a.fileNames;g.delete(i);r=x(t,i,r);v(i,n,r?void 0:a)}O("sysLog:: invokingWatchers:: Elapsed:: ".concat(E.timestamp()-e,"ms:: ").concat(g.size)),f.forEach(function(e,t){var r=n.get(t);r&&e.forEach(function(e){var t=e.callback,e=e.dirName;E.isArray(r)?r.forEach(t):t(e)})});e=E.timestamp()-e;O("sysLog:: Elapsed:: ".concat(e,"ms:: onTimerToUpdateChildWatches:: ").concat(g.size," ").concat(o))}function x(t,e,r){var n,i=p.get(e);if(!i)return!1;e=E.enumerateInsertsAndDeletes(l(t)?E.mapDefined(c(t),function(e){e=E.getNormalizedAbsolutePath(e,t);return D(e,r)||0!==m(e,E.normalizePath(u(e)))?void 0:e}):E.emptyArray,i.childWatches,function(e,t){return m(e,t.dirName)},function(e){a(h(e,r))},E.closeFileWatcher,a);return i.childWatches=n||E.emptyArray,e;function a(e){(n=n||[]).push(e)}}function D(r,e){return E.some(E.ignoredPaths,function(e){return t=r,e=e,!!E.stringContains(t,e)||!n&&E.stringContains(y(t),e);var t})||S(r,e,n,t)}}function L(r){return function(e,t){return r(t===A.Changed?"change":"rename","")}}function S(e,t,r,n){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(E.matchesExclude(e,null==t?void 0:t.excludeFiles,r,n())||E.matchesExclude(e,null==t?void 0:t.excludeDirectories,r,n()))}function R(r,n,i,a,o){return function(e,t){"rename"===e&&(e=t?E.normalizePath(E.combinePaths(r,t)):r,t&&S(e,i,a,o)||n(e))}}function B(e){var t,r,a,i,o=e.pollingWatchFile,n=e.getModifiedTime,s=e.setTimeout,c=e.clearTimeout,l=e.fsWatch,u=e.fileExists,_=e.useCaseSensitiveFileNames,d=e.getCurrentDirectory,p=e.fsSupportsRecursiveFsWatch,f=e.directoryExists,g=e.getAccessibleSortedChildDirectories,m=e.realpath,y=e.tscWatchFile,h=e.useNonPollingWatchers,v=e.tscWatchDirectory,b=e.defaultWatchFileKind;return{watchFile:function(e,t,r,n){n=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(y){case"PriorityPollingInterval":return{watchFile:E.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:E.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return S(E.WatchFileKind.UseFsEvents,E.PollingWatchKind.PriorityInterval,e);case"UseFsEventsWithFallbackDynamicPolling":return S(E.WatchFileKind.UseFsEvents,E.PollingWatchKind.DynamicPriority,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?S(E.WatchFileKind.UseFsEventsOnParentDirectory,E.PollingWatchKind.PriorityInterval,e):{watchFile:(null==b?void 0:b())||E.WatchFileKind.FixedPollingInterval}}}(n,h);var i=E.Debug.checkDefined(n.watchFile);switch(i){case E.WatchFileKind.FixedPollingInterval:return o(e,t,C.Low,void 0);case E.WatchFileKind.PriorityPollingInterval:return o(e,t,r,void 0);case E.WatchFileKind.DynamicPriorityPolling:return x()(e,t,r,void 0);case E.WatchFileKind.FixedChunkSizePolling:return D()(e,t,void 0,void 0);case E.WatchFileKind.UseFsEvents:return l(e,0,function(t,r,n){return function(e){r(t,"rename"===e?n(t)?A.Created:A.Deleted:A.Changed)}}(e,t,u),!1,r,E.getFallbackOptions(n));case E.WatchFileKind.UseFsEventsOnParentDirectory:return(a=a||F(l,_))(e,t,r,E.getFallbackOptions(n));default:E.Debug.assertNever(i)}},watchDirectory:function(e,t,r,n){if(p)return l(e,1,R(e,t,n,_,d),r,C.Medium,E.getFallbackOptions(n));i=i||M({useCaseSensitiveFileNames:_,getCurrentDirectory:d,directoryExists:f,getAccessibleSortedChildDirectories:g,watchDirectory:T,realpath:m,setTimeout:s,clearTimeout:c});return i(e,t,r,n)}};function x(){return t=t||k({getModifiedTime:n,setTimeout:s})}function D(){return r=r||P({getModifiedTime:n,setTimeout:s})}function S(e,t,r){r=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function T(e,t,r,n){E.Debug.assert(!r);var i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(v){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:E.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:E.WatchDirectoryKind.DynamicPriorityPolling};default:var t=null==e?void 0:e.fallbackPolling;return{watchDirectory:E.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==t?t:void 0}}}(n),a=E.Debug.checkDefined(i.watchDirectory);switch(a){case E.WatchDirectoryKind.FixedPollingInterval:return o(e,function(){return t(e)},C.Medium,void 0);case E.WatchDirectoryKind.DynamicPriorityPolling:return x()(e,function(){return t(e)},C.Medium,void 0);case E.WatchDirectoryKind.FixedChunkSizePolling:return D()(e,function(){return t(e)},void 0,void 0);case E.WatchDirectoryKind.UseFsEvents:return l(e,1,R(e,t,n,_,d),r,C.Medium,E.getFallbackOptions(i));default:E.Debug.assertNever(a)}}}function o(n){var i=n.writeFile;n.writeFile=function(e,t,r){return E.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 j(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}E.sysLog=O,E.setSysLog=function(e){a=e},E.createDirectoryWatcherSupportingRecursive=M,(r=E.FileSystemEntryKind||(E.FileSystemEntryKind={}))[r.File=0]="File",r[r.Directory=1]="Directory",E.createFileWatcherCallback=L,E.createSystemWatchFunctions=B,E.patchWriteFileEnsuringDirectory=o,E.getNodeMajorVersion=j,E.sys=("undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(I=function(){var r,a,l=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,g=require("fs"),o=require("path"),e=require("os");try{r=require("crypto")}catch(e){r=void 0}var s="./profile.cpuprofile",m=!1,n=require("buffer").Buffer,t=4<=j(),y="linux"===process.platform||"darwin"===process.platform,i=e.platform(),u="win32"!==i&&"win64"!==i&&!D(function(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}(__filename)),c=null!==(i=g.realpathSync.native)&&void 0!==i?i:g.realpathSync,h=t&&("win32"===process.platform||"darwin"===process.platform),i=E.memoize(function(){return process.cwd()}),v=(t=B({pollingWatchFile:w(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===A.Deleted;if(0==+e.mtime){if(r)return;a=A.Deleted}else if(r)a=A.Created;else{if(+e.mtime==+t.mtime)return;a=A.Changed}i(n,a)}},u),getModifiedTime:C,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(r,n,i,t,e,a){var o,s,c;y&&(s=r.substr(r.lastIndexOf(E.directorySeparator)),c=s.slice(E.directorySeparator.length));var l=(x(r,n)?_:f)();return{close:function(){l.close(),l=void 0}};function u(e){O("sysLog:: ".concat(r,":: Changing watcher to ").concat(e===_?"Present":"Missing","FileSystemEntryWatcher")),i("rename",""),l&&(l.close(),l=e())}function _(){if(void 0===o&&(o=h?{persistent:!0,recursive:!!t}:{persistent:!0}),m)return O("sysLog:: ".concat(r,":: Defaulting to fsWatchFile")),p();try{var e=g.watch(r,o,y?d:i);return e.on("error",function(){return u(f)}),e}catch(e){return m=m||"ENOSPC"===e.code,O("sysLog:: ".concat(r,":: Changing to fsWatchFile")),p()}}function d(e,t){return"rename"!==e||t&&t!==c&&(-1===t.lastIndexOf(s)||t.lastIndexOf(s)!==t.length-s.length)||x(r,n)?i(e,t):u(f)}function p(){return v(r,L(i),e,a)}function f(){return v(r,function(e,t){t===A.Created&&x(r,n)&&u(_)},e,a)}},useCaseSensitiveFileNames:u,getCurrentDirectory:i,fileExists:D,fsSupportsRecursiveFsWatch:h,directoryExists:S,getAccessibleSortedChildDirectories:function(e){return b(e).directories},realpath:T,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e;return null===(e=I.defaultWatchFileKind)||void 0===e?void 0:e.call(I)}})).watchFile,t=t.watchDirectory,_={args:process.argv.slice(2),newLine:e.EOL,useCaseSensitiveFileNames:u,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(e,t){E.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 E.perfLogger.logStopReadFile(),e},writeFile:function(e,t,r){E.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:v,watchDirectory:t,resolvePath:function(e){return o.resolve(e)},fileExists:D,directoryExists:S,createDirectory:function(e){if(!_.directoryExists(e))try{g.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:i,getDirectories:function(e){return b(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(e,t,r,n,i){return E.matchFiles(e,t,r,n,u,process.cwd(),i,b,T)},getModifiedTime:C,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?k:N,createSHA256Hash:r?k:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=d(e);if(null!=t&&t.isFile())return t.size}catch(e){}return 0},exit:function(e){p(function(){return process.exit(e)})},enableCPUProfiler:function(e,t){if(a)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(){a=n,s=e,t()})}),!0},disableCPUProfiler:p,cpuProfilingEnabled:function(){return!!a||E.contains(process.execArgv,"--cpu-prof")||E.contains(process.execArgv,"--prof")},realpath:T,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||E.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:f,base64decode:function(e){return f(e,"base64").toString("utf8")},base64encode:function(e){return f(e).toString("base64")},require:function(e,t){try{var r=E.resolveJSModule(t,e,_);return{module:require(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return _;function d(e){return g.statSync(e,{throwIfNoEntry:!1})}function p(n){if(a&&"stopping"!==a){var i=a;return a.post("Profiler.stop",function(e,t){var r,t=t.profile;if(!e){try{null!==(r=d(s))&&void 0!==r&&r.isDirectory()&&(s=o.join(s,"".concat((new Date).toISOString().replace(/:/g,"-"),"+P").concat(process.pid,".cpuprofile")))}catch(e){}try{g.mkdirSync(o.dirname(s),{recursive:!0})}catch(e){}g.writeFileSync(s,JSON.stringify(function(e){for(var t=0,r=new E.Map,n=E.normalizeSlashes(__dirname),i="file://".concat(1===E.getRootLength(n)?"":"/").concat(n),a=0,o=e.nodes;a<o.length;a++){var s,c=o[a];c.callFrame.url&&(s=E.normalizeSlashes(c.callFrame.url),E.containsPath(i,s,u)?c.callFrame.url=E.getRelativePathToDirectoryOrUrl(i,s,i,E.createGetCanonicalFileName(u),!0):l.test(s)||(c.callFrame.url=(r.has(s)?r:r.set(s,"external".concat(t,".js"))).get(s),t++))}return e}(t)))}a=void 0,i.disconnect(),n()}),a="stopping",!0}return n(),!1}function f(e,t){return n.from&&n.from!==Int8Array.from?n.from(e,t):new n(e,t)}function b(e){E.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 l=E.combinePaths(e,s);try{if(!(c=d(l)))continue}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 E.emptyFileSystemEntries}}function x(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=d(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function D(e){return x(e,0)}function S(e){return x(e,1)}function T(t){try{return c(t)}catch(e){return t}}function C(e){var t;try{return null===(t=d(e))||void 0===t?void 0:t.mtime}catch(e){return}}function k(e){var t=r.createHash("sha256");return t.update(e),t.digest("hex")}}()),I&&o(I),I),E.setSys=function(e){E.sys=e},E.sys&&E.sys.getEnvironmentVariable&&(e(E.sys),E.Debug.setAssertionLevel(/^development$/i.test(E.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),E.sys&&E.sys.debugMode&&(E.Debug.isDebugging=!0)}(ts=ts||{}),function(_){_.directorySeparator="/",_.altDirectorySeparator="\\";var i="://",r=/\\/g;function t(e){return 47===e||92===e}function a(e){return 0<u(e)}function n(e){return 0!==u(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(e,t){return e.length>t.length&&_.endsWith(e,t)}function c(e){return 0<e.length&&t(e.charCodeAt(e.length-1))}function l(e){return 97<=e&&e<=122||65<=e&&e<=90}function u(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:_.altDirectorySeparator,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(i);if(-1===r)return 0;t=r+i.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 d(e){e=u(e);return e<0?~e:e}function p(e){var t=d(e=v(e));return t===e.length?e:(e=k(e)).slice(0,Math.max(t,e.lastIndexOf(_.directorySeparator)))}function f(e,t,r){if(d(e=v(e))===e.length)return"";e=(e=k(e)).slice(Math.max(d(e),e.lastIndexOf(_.directorySeparator)+1)),r=void 0!==t&&void 0!==r?m(e,t,r):void 0;return r?e.slice(0,e.length-r.length):e}function g(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 m(e,t,r){if(t)return function(e,t,r){if("string"==typeof t)return g(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=g(e,i[n],r);if(a)return a}return""}(k(e),t,r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive);r=f(e),e=r.lastIndexOf(".");return 0<=e?r.substring(e):""}function y(e,t){return void 0===t&&(t=""),e=x(t,e),t=d(r=e),e=r.substring(0,t),(t=r.substring(t).split(_.directorySeparator)).length&&!_.lastOrUndefined(t)&&t.pop(),__spreadArray([e],t,!0);var r}function h(e){return 0===e.length?"":(e[0]&&E(e[0]))+e.slice(1).join(_.directorySeparator)}function v(e){var t=e.indexOf("\\");return-1===t?e:(r.lastIndex=t,e.replace(r,_.directorySeparator))}function b(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 x(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e=e&&v(e);for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=v(a),e=e&&0===d(a)?E(e)+a:a)}return e}function D(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return C(_.some(t)?x.apply(void 0,__spreadArray([e],t,!1)):v(e))}function S(e,t){return b(y(e,t))}function T(e,t){return h(S(e,t))}function C(e){if(e=v(e),!A.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!A.test(e)))return e;t=h(b(y(e)));return t&&c(e)?E(t):t}function k(e){return c(e)?e.substr(0,e.length-1):e}function E(e){return c(e)?e:e+_.directorySeparator}function N(e){return n(e)||o(e)?e:"./"+e}_.isAnyDirectorySeparator=t,_.isUrl=function(e){return u(e)<0},_.isRootedDiskPath=a,_.isDiskPathRoot=function(e){var t=u(e);return 0<t&&t===e.length},_.pathIsAbsolute=n,_.pathIsRelative=o,_.pathIsBareSpecifier=function(e){return!n(e)&&!o(e)},_.hasExtension=function(e){return _.stringContains(f(e),".")},_.fileExtensionIs=s,_.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(s(e,n[r]))return!0;return!1},_.hasTrailingDirectorySeparator=c,_.getRootLength=d,_.getDirectoryPath=p,_.getBaseFileName=f,_.getAnyExtensionFromPath=m,_.getPathComponents=y,_.getPathFromPathComponents=h,_.normalizeSlashes=v,_.reducePathComponents=b,_.combinePaths=x,_.resolvePath=D,_.getNormalizedPathComponents=S,_.getNormalizedAbsolutePath=T,_.normalizePath=C,_.getNormalizedAbsolutePathWithoutRoot=function(e,t){return 0===(t=S(e,t)).length?"":t.slice(1).join(_.directorySeparator)},_.toPath=function(e,t,r){return r(a(e)?C(e):T(e,t))},_.removeTrailingDirectorySeparator=k,_.ensureTrailingDirectorySeparator=E,_.ensurePathIsNonModuleName=N,_.changeAnyExtension=function(e,t,r,n){return(n=void 0!==r&&void 0!==n?m(e,r,n):m(e))?e.slice(0,e.length-n.length)+(_.startsWith(t,".")?t:"."+t):e};var A=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function F(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,d(e)),i=t.substring(0,d(t)),a=_.compareStringsCaseInsensitive(n,i);if(0!==a)return a;n=e.substring(n.length),i=t.substring(i.length);if(!A.test(n)&&!A.test(i))return r(n,i);for(var o=b(y(e)),s=b(y(t)),c=Math.min(o.length,s.length),l=1;l<c;l++){var u=r(o[l],s[l]);if(0!==u)return u}return _.compareValues(o.length,s.length)}function P(e,t,r,n){for(var i=b(y(e)),a=b(y(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),l=[];o<i.length;o++)l.push("..");return __spreadArray(__spreadArray([""],l,!0),t,!0)}function w(e,t,r){_.Debug.assert(0<d(e)==0<d(t),"Paths must either both be absolute or both be relative");var n="function"==typeof r?r:_.identity;return h(P(e,t,"boolean"==typeof r&&r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive,n))}function I(e,t,r,n,i){t=P(D(r,e),D(r,t),_.equateStringsCaseSensitive,n),n=t[0];return i&&a(n)&&(i=n.charAt(0)===_.directorySeparator?"file://":"file:///",t[0]=i+n),h(t)}_.comparePathsCaseSensitive=function(e,t){return F(e,t,_.compareStringsCaseSensitive)},_.comparePathsCaseInsensitive=function(e,t){return F(e,t,_.compareStringsCaseInsensitive)},_.comparePaths=function(e,t,r,n){return"string"==typeof r?(e=x(r,e),t=x(r,t)):"boolean"==typeof r&&(n=r),F(e,t,_.getStringComparer(n))},_.containsPath=function(e,t,r,n){if("string"==typeof r?(e=x(r,e),t=x(r,t)):"boolean"==typeof r&&(n=r),void 0===e||void 0===t)return!1;if(e===t)return!0;var i=b(y(e)),a=b(y(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=P,_.getRelativePathFromDirectory=w,_.convertToRelativePath=function(e,t,r){return a(e)?I(t,e,t,r,!1):e},_.getRelativePathFromFile=function(e,t,r){return N(w(p(e),t,r))},_.getRelativePathToDirectoryOrUrl=I,_.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;r=p(e);if(r===e)return;e=r}},_.isNodeModulesDirectory=function(e){return _.endsWith(e,"/node_modules")}}(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_1_to_match_the_0_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed: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."),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_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_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."),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."),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."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary: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:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: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_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: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."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name: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_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_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: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_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any: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."),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_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."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag: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."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),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."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern: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_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected: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_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: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_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),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."),_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"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import: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_es2022_esnext_system_node16_or_nodenext_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_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: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'."),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."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","Resolution modes are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),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),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),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."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members: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_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body: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}'."),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_a_private_identifier_or_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: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_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_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_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call: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."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported: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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0: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_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: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."),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_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'."),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'."),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."),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."),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."),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}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1: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."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself: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."),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_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."),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."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),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}'."),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."),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_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation: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."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: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."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option: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 './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file: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_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:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),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"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors  Files"),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}'."),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."),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:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),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."),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}'. ========"),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."),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"),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."),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_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types: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_FixedChunkSizePolling_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', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling: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', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize: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', 'FixedChunkSize'."),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"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation: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}'..."),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."),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')"),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}'"),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_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: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?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type: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."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),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."),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}'."),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}"),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_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration: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_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{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'"),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}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{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_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"),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_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES 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"),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"),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_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement: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"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),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."),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."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(ts=ts||{}),function(V){var e;function t(e){return 79<=e}V.tokenIsIdentifierOrKeyword=t,V.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||79<=e},V.textToKeywordObj=((e={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:158,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=134,e.debugger=87,e.declare=135,e.default=88,e.delete=89,e.do=90,e.else=91,e.enum=92,e.export=93,e.extends=94,e.false=95,e.finally=96,e.for=97,e.from=156,e.function=98,e.get=136,e.if=99,e.implements=117,e.import=100,e.in=101,e.infer=137,e.instanceof=102,e.interface=118,e.intrinsic=138,e.is=139,e.keyof=140,e.let=119,e.module=141,e.namespace=142,e.never=143,e.new=103,e.null=104,e.number=147,e.object=148,e.package=120,e.private=121,e.protected=122,e.public=123,e.override=159,e.out=144,e.readonly=145,e.require=146,e.global=157,e.return=105,e.set=149,e.static=124,e.string=150,e.super=106,e.switch=107,e.symbol=151,e.this=108,e.throw=109,e.true=110,e.try=111,e.type=152,e.typeof=112,e.undefined=153,e.unique=154,e.unknown=155,e.var=113,e.void=114,e.while=115,e.with=116,e.yield=125,e.async=131,e.await=132,e.of=160,e);var q=new V.Map(V.getEntries(V.textToKeywordObj)),r=new V.Map(V.getEntries(__assign(__assign({},V.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),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],W=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,H=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function l(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 u(e,t){return l(e,2<=t?s:1===t?a:n)}V.isUnicodeIdentifierStart=u;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: ".concat(t,", lineStarts.length: ").concat(e.length," , line map is correct? ").concat(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 G(e){return Q(e)||X(e)}function Q(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 Y(e){return 48<=e&&e<=57}function Z(e){return Y(e)||65<=e&&e<=70||97<=e&&e<=102}function $(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=G,V.isWhiteSpaceSingleLine=Q,V.isLineBreak=X,V.isOctalDigit=$,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,i){if(V.positionIsSynthesized(t))return t;for(var a=!1;;){var o=e.charCodeAt(t);switch(o){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;a=!!i;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++;a=!1;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++}a=!1;continue;case 60:case 124:case 61:case 62:if(ee(e,t)){t=te(e,t),a=!1;continue}break;case 35:if(0===t&&re(e,t)){t=ne(e,t),a=!1;continue}break;case 42:if(a){t++,a=!1;continue}break;default:if(127<o&&G(o)){t++;continue}}return t}};var h="<<<<<<<".length;function ee(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 te(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&&ee(e,t))break;t++}return t}var v=/^#!.*/;function re(e,t){return V.Debug.assert(0===t),v.test(e)}function ne(e,t){return t+=v.exec(e)[0].length}function b(e,t,r,n,i,a,o){var s,c,l,u,_=!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,_&&(u=!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,l,u,a,p),!e&&p))return p;s=h,c=r,l=y,u=m,_=!0}continue;default:if(127<f&&G(f)){_&&X(f)&&(u=!0),r++;continue}break e}}return _&&(p=i(s,c,l,u,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 ie(e,t){return 65<=e&&e<=90||97<=e&&e<=122||36===e||95===e||127<e&&u(e,t)}function ae(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&&l(e,2<=(t=t)?c:1===t?o:i)}V.isShebangTrivia=re,V.scanShebangTrivia=ne,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=ie,V.isIdentifierPart=ae,V.isIdentifierText=function(e,t,r){var n=oe(e,0);if(!ie(n,t))return!1;for(var i=se(n);i<e.length;i+=se(n))if(!ae(n=oe(e,i),t,r))return!1;return!0},V.createScanner=function(s,c,l,e,i,t,r){void 0===l&&(l=0);var _,d,p,f,g,m,y,h,v=e,u=0;K(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 79===g||116<g},isReservedWord:function(){return 81<=g&&g<=116},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,72):(_+=2,49):61===v.charCodeAt(_+1)?(_+=2,71):(_++,48);if(61===v.charCodeAt(_))return _++,g=33}return g},reScanAsteriskEqualsToken:function(){return V.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),_=f+1,g=63},reScanSlashToken:function(){if(43===g||68===g){for(var e=f+1,t=!1,r=!1;;){if(d<=e){y|=4,b(V.Diagnostics.Unterminated_regular_expression_literal);break}var n=v.charCodeAt(e);if(X(n)){y|=4,b(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&&ae(v.charCodeAt(e),s);)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=k(e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return _=f,g=k(!0)},scanJsxIdentifier:function(){if(79<=g){for(var e=!1;_<d;){var t=v.charCodeAt(_);if(45!==t)if(58!==t||e){t=_;if(m+=w(),_===t)break}else m+=":",_++,e=!0,g=79;else m+="-",_++}return":"===m.slice(-1)&&(m=m.slice(0,-1),_--),I()}return g},scanJsxAttributeValue:J,reScanJsxAttributeValue:function(){return _=f=p,J()},reScanJsxToken:function(e){void 0===e&&(e=!0);return _=f=p,g=j(e)},reScanLessThanToken:function(){return 47!==g?g:(_=f+1,g=29)},reScanHashToken:function(){return 80!==g?g:(_=f+1,g=62)},reScanQuestionToken:function(){return V.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),_=f+1,g=57},reScanInvalidIdentifier:function(){V.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),_=f=p,y=0;var e=oe(v,_),t=R(e,99);if(t)return g=t;return _+=se(e),g},scanJsxToken:j,scanJsDocToken:function(){if(p=f=_,y=0,d<=_)return g=1;var e=oe(v,_);switch(_+=se(e),e){case 9:case 11:case 12:case 32:for(;_<d&&Q(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=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:_--;var t=P();if(0<=t&&ie(t,s))return _+=3,y|=8,m=A()+w(),g=I();t=F();return 0<=t&&ie(t,s)?(_+=6,y|=1024,m=String.fromCharCode(t)+w(),g=I()):(_++,g=0)}{if(ie(e,s)){for(var r=e;_<d&&ae(r=oe(v,_),s)||45===v.charCodeAt(_);)_+=se(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:K,setScriptTarget:function(e){s=e},setLanguageVariant:function(e){l=e},setOnError:function(e){i=e},setTextPos:U,setInJSDocType:function(e){u+=e?1:-1},tryScan:function(e){return z(e,!1)},lookAhead:function(e){return z(e,!0)},scanRange:function(e,t,r){var n=d,i=_,a=p,o=f,s=g,c=m,l=y,u=h;K(v,e,t);r=r();return d=n,_=i,p=a,f=o,g=s,m=c,y=l,h=u,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 b(e,t,r){var n;void 0===t&&(t=_),i&&(n=_,_=t,i(e,r||0),_=n)}function x(){for(var e=_,t=!1,r=!1,n="";;){var i=v.charCodeAt(_);if(95!==i){if(!Y(i))break;r=!(t=!0),_++}else y|=512,t?(r=!(t=!1),n+=v.substring(e,_)):b(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)&&b(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),n+v.substring(e,_)}function D(){var e,t,r=_,n=x();46===v.charCodeAt(_)&&(_++,e=x());var i,a,o=_;if(69!==v.charCodeAt(_)&&101!==v.charCodeAt(_)||(_++,y|=16,43!==v.charCodeAt(_)&&45!==v.charCodeAt(_)||_++,i=_,(a=x())?(t=v.substring(o,i)+a,o=_):b(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 S(r,void 0===e&&!!(16&y)),{type:8,value:""+ +s};m=s;var s=M();return S(r),{type:s,value:m}}function S(e,t){var r,n;ie(oe(v,_),s)&&(r=_,1===(n=w().length)&&"n"===v[r]?b(t?V.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:V.Diagnostics.A_bigint_literal_must_be_an_integer,e,r-e+1):(b(V.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,n),_=r))}function a(e,t){t=o(e,!1,t);return t?parseInt(t,16):-1}function T(e,t){return o(e,!0,t)}function o(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):b(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)&&b(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,b(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,b(V.Diagnostics.Unterminated_string_literal);break}_++}else r+=v.substring(n,_),r+=E(),n=_}return r}function k(e){for(var t,r=96===v.charCodeAt(_),n=++_,i="";;){if(d<=_){i+=v.substring(n,_),y|=4,b(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+=E(e),n=_)}return V.Debug.assert(void 0!==t),m=i,t}function E(e){var t=_;if(d<=++_)return b(V.Diagnostics.Unexpected_end_of_text),"";var r=v.charCodeAt(_);switch(_++,r){case 48:return e&&_<d&&Y(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&&!Z(v.charCodeAt(n))&&123!==v.charCodeAt(n))return _=n,y|=2048,v.substring(t,_);if(_<d&&123===v.charCodeAt(_)){if(_++,e&&!Z(v.charCodeAt(_)))return y|=2048,v.substring(t,_);if(e){var i=_,a=T(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(!Z(v.charCodeAt(_)))return y|=2048,v.substring(t,_);if(!Z(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):(b(V.Diagnostics.Hexadecimal_digit_expected),"")}function A(){var e=T(1,!1),t=e?parseInt(e,16):-1,e=!1;return t<0?(b(V.Diagnostics.Hexadecimal_digit_expected),e=!0):1114111<t&&(b(V.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),e=!0),d<=_?(b(V.Diagnostics.Unexpected_end_of_text),e=!0):125===v.charCodeAt(_)?_++:(b(V.Diagnostics.Unterminated_Unicode_escape_sequence),e=!0),e?"":ce(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<=s&&117===oe(v,_+1)&&123===oe(v,_+2)){var e=_;_+=3;var t=T(1,!1),t=t?parseInt(t,16):-1;return _=e,t}return-1}function w(){for(var e="",t=_;_<d;){var r=oe(v,_);if(ae(r,s))_+=se(r);else{if(92!==r)break;if(0<=(r=P())&&ae(r,s))_+=3,y|=8,e+=A(),t=_;else{if(!(0<=(r=F())&&ae(r,s)))break;y|=1024,e+=v.substring(t,_),e+=ce(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=q.get(m);if(void 0!==e)return g=e}}return g=79}function O(e){for(var t="",r=!1,n=!1;;){var i=v.charCodeAt(_);if(95!==i){if(r=!0,!Y(i)||e<=i-48)break;t+=v[_],_++,n=!1}else y|=512,r?n=!(r=!1):b(n?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),_++}return 95===v.charCodeAt(_-1)&&b(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(){var e;p=_,y=0;for(var t=!1;;){if(d<=(f=_))return g=1;var r=oe(v,_);if(35===r&&0===_&&re(v,_)){if(_=ne(v,_),c)continue;return g=6}switch(r){case 10:case 13:if(y|=1,c){_++;continue}return 13===r&&_+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(c){_++;continue}for(;_<d&&Q(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=k(!1);case 37:return 61===v.charCodeAt(_+1)?(_+=2,g=69):(_++,g=44);case 38:return 38===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,76):(_+=2,55):g=61===v.charCodeAt(_+1)?(_+=2,73):(_++,50);case 40:return _++,g=20;case 41:return _++,g=21;case 42:if(61===v.charCodeAt(_+1))return _+=2,g=66;if(42===v.charCodeAt(_+1))return g=61===v.charCodeAt(_+2)?(_+=3,67):(_+=2,42);if(_++,u&&!t&&1&y){t=!0;continue}return g=41;case 43:return 43===v.charCodeAt(_+1)?(_+=2,g=45):g=61===v.charCodeAt(_+1)?(_+=2,64):(_++,39);case 44:return _++,g=27;case 45:return 45===v.charCodeAt(_+1)?(_+=2,g=46):g=61===v.charCodeAt(_+1)?(_+=2,65):(_++,40);case 46:return Y(v.charCodeAt(_+1))?(m=D().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=B(h,v.slice(f,_),W,f),c)continue;return g=2}if(42!==v.charCodeAt(_+1))return g=61===v.charCodeAt(_+1)?(_+=2,68):(_++,43);_+=2,42===v.charCodeAt(_)&&47!==v.charCodeAt(_+1)&&(y|=2);for(var n=!1,i=f;_<d;){var a=v.charCodeAt(_);if(42===a&&47===v.charCodeAt(_+1)){_+=2,n=!0;break}_++,X(a)&&(i=_,y|=1)}if(h=B(h,v.slice(i,_),H,i),n||b(V.Diagnostics.Asterisk_Slash_expected),c)continue;return n||(y|=4),g=3;case 48:if(_+2<d&&(88===v.charCodeAt(_+1)||120===v.charCodeAt(_+1)))return _+=2,(m=T(1,!0))||(b(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))||(b(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))||(b(V.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,y|=256,g=M();if(_+1<d&&$(v.charCodeAt(_+1)))return m=""+function(){for(var e=_;$(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 e=D(),g=e.type,m=e.value,g;case 58:return _++,g=58;case 59:return _++,g=26;case 60:if(ee(v,_)){if(_=te(v,_,b),c)continue;return g=7}return 60===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,70):(_+=2,47):g=61===v.charCodeAt(_+1)?(_+=2,32):1===l&&47===v.charCodeAt(_+1)&&42!==v.charCodeAt(_+2)?(_+=2,30):(_++,29);case 61:if(ee(v,_)){if(_=te(v,_,b),c)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):(_++,63);case 62:if(ee(v,_)){if(_=te(v,_,b),c)continue;return g=7}return _++,g=31;case 63:return 46!==v.charCodeAt(_+1)||Y(v.charCodeAt(_+2))?g=63===v.charCodeAt(_+1)?61===v.charCodeAt(_+2)?(_+=3,77):(_+=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=78):(_++,g=52);case 123:return _++,g=18;case 124:if(ee(v,_)){if(_=te(v,_,b),c)continue;return g=7}return 124===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,75):(_+=2,56):g=61===v.charCodeAt(_+1)?(_+=2,74):(_++,51);case 125:return _++,g=19;case 126:return _++,g=54;case 64:return _++,g=59;case 92:var o=P();if(0<=o&&ie(o,s))return _+=3,y|=8,m=A()+w(),g=I();o=F();return 0<=o&&ie(o,s)?(_+=6,y|=1024,m=String.fromCharCode(o)+w(),g=I()):(b(V.Diagnostics.Invalid_character),_++,g=0);case 35:return 0!==_&&"!"===v[_+1]?(b(V.Diagnostics.can_only_be_used_at_the_start_of_a_file),_++,g=0):(ie(oe(v,_+1),s)?R(oe(v,++_),s):(m=String.fromCharCode(oe(v,_)),b(V.Diagnostics.Invalid_character,_++,se(r))),g=80);default:o=R(r,s);if(o)return g=o;if(Q(r)){_+=se(r);continue}if(X(r)){y|=1,_+=se(r);continue}o=se(r);return b(V.Diagnostics.Invalid_character,_,o),_+=o,g=0}}}function R(e,t){var r=e;if(ie(r,t)){for(_+=se(r);_<d&&ae(r=oe(v,_),t);)_+=se(r);return m=v.substring(f,_),92===r&&(m+=w()),I()}}function B(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}(V.trimStringStart(t),r);return void 0===r?e:V.append(e,{range:{pos:n,end:_},type:r})}function j(e){if(void 0===e&&(e=!0),p=f=_,d<=_)return g=1;var t=v.charCodeAt(_);if(60===t)return g=47===v.charCodeAt(_+1)?(_+=2,30):(_++,29);if(123===t)return _++,g=18;for(var r=0;_<d&&123!==(t=v.charCodeAt(_));){if(60===t){if(ee(v,_))return _=te(v,_,b),g=7;break}if(62===t&&b(V.Diagnostics.Unexpected_token_Did_you_mean_or_gt,_,1),125===t&&b(V.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,_,1),X(t)&&0===r)r=-1;else{if(!e&&X(t)&&0<r)break;G(t)||(r=_)}_++}return m=v.substring(p,_),-1===r?12:11}function J(){switch(p=_,v.charCodeAt(_)){case 34:case 39:return m=C(!0),g=10;default:return L()}}function z(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 K(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 oe=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 se(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 ce(e){return C(e)}V.utf16EncodeAsString=ce}(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!!$(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 l(e,t){_.isBindingElement(e)&&(e=c(e));var r=t(e);return 254===e.kind&&(e=e.parent),e&&255===e.kind&&(r|=t(e),e=e.parent),e&&237===e.kind&&(r|=t(e)),r}function u(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(ce(t))return h(t);switch(t.kind){case 237:if(t.declarationList&&t.declarationList.declarations[0])return h(t.declarationList.declarations[0]);break;case 238:var r=t.expression;switch(221===r.kind&&63===r.operatorToken.kind&&(r=r.left),r.kind){case 206:return r.name;case 207:var n=r.argumentExpression;if(_.isIdentifier(n))return n}break;case 212:return h(t.expression);case 250:if(ce(t.statement)||ie(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 79:return e;case 347:case 340:var t=e.name;if(161===t.kind)return t.right;break;case 208:case 221: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 345:return v(e);case 339:return y(e);case 271:var n=e.expression;return _.isIdentifier(n)?n:void 0;case 207:n=e;if(_.isBindableStaticElementAccessExpression(n))return n.argumentExpression}return e.name}function D(e){if(void 0!==e)return x(e)||(_.isFunctionExpression(e)||_.isArrowFunction(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 k(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 E(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)&&(206===t||207===t||208===t||230===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 302:case 303:return!0;default:return!1}}function B(e){return 161<=e}function j(e){return 0<=e&&e<=160}function J(e){return 8<=e&&e<=14}function z(e){return 14<=e&&e<=17}function K(e){return(_.isPropertyDeclaration(e)||X(e))&&_.isPrivateIdentifier(e.name)}function U(e){switch(e){case 126:case 131:case 85:case 135:case 88:case 93:case 101:case 123:case 121:case 122:case 145:case 124:case 144:case 159:return!0}return!1}function V(e){return!!(16476&_.modifierToFlag(e))}function q(e){return!!e&&H(e.kind)}function W(e){switch(e){case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return!1}}function H(e){switch(e){case 168:case 174:case 323:case 175:case 176:case 179:case 317:case 180:return!0;default:return W(e)}}function G(e){e=e.kind;return 171===e||167===e||169===e||172===e||173===e||176===e||170===e||234===e}function Q(e){return e&&(257===e.kind||226===e.kind)}function X(e){switch(e.kind){case 169:case 172:case 173:return!0;default:return!1}}function Y(e){e=e.kind;return 175===e||174===e||166===e||168===e||176===e||172===e||173===e}function Z(e){e=e.kind;return 296===e||297===e||298===e||169===e||172===e||173===e}function $(e){if(e){e=e.kind;return 202===e||201===e}return!1}function ee(e){switch(e.kind){case 201:case 205:return!0}return!1}function te(e){switch(e.kind){case 202:case 204:return!0}return!1}function re(e){switch(e){case 206:case 207:case 209:case 208:case 278:case 279:case 282:case 210:case 204:case 212:case 205:case 226:case 213:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 223:case 95:case 104:case 108:case 110:case 106:case 230:case 228:case 231:case 100:return!0;default:return!1}}function ne(e){switch(e){case 219:case 220:case 215:case 216:case 217:case 218:case 211:return!0;default:return re(e)}}function ie(e){return function(e){switch(e){case 222:case 224:case 214:case 221:case 225:case 229:case 227:case 351:case 350:return!0;default:return ne(e)}}(L(e).kind)}function ae(e){return _.isExportAssignment(e)||_.isExportDeclaration(e)}function oe(e){return 256===e||276===e||257===e||258===e||259===e||260===e||261===e||266===e||265===e||272===e||271===e||264===e}function se(e){return 246===e||245===e||253===e||240===e||238===e||236===e||243===e||244===e||242===e||239===e||250===e||247===e||249===e||251===e||252===e||237===e||241===e||248===e||349===e||353===e||352===e}function ce(e){return 163===e.kind?e.parent&&344!==e.parent.kind||_.isInJSFile(e):214===(e=e.kind)||203===e||257===e||226===e||170===e||171===e||260===e||299===e||275===e||256===e||213===e||172===e||267===e||265===e||270===e||258===e||285===e||169===e||168===e||261===e||264===e||268===e||274===e||164===e||296===e||167===e||166===e||173===e||297===e||259===e||163===e||254===e||345===e||338===e||347===e}function le(e){return 327<=e.kind&&e.kind<=347}_.isExternalModuleNameRelative=function(e){return _.pathIsRelative(e)||_.isRootedDiskPath(e)},_.sortAndDeduplicateDiagnostics=function(e){return _.sortAndDeduplicate(e,_.compareDiagnostics)},_.getDefaultLibFileName=function(e){switch(_.getEmitScriptTarget(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},_.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,l=o.span.start,u=d(o.span),o=l+o.newLength,r=Math.min(r,l),n=Math.max(s,s+(u-c)),i=Math.max(o,o+(c-u));return f(p(r,n),i-r)},_.getTypeParameterOwner=function(e){if(e&&163===e.kind)for(var t=e;t;t=t.parent)if(q(t)||Q(t)||258===t.kind)return t},_.isParameterPropertyDeclaration=function(e,t){return _.hasSyntacticModifier(e,16476)&&171===t.kind},_.isEmptyBindingPattern=o,_.isEmptyBindingElement=s,_.walkUpBindingElementsAndPatterns=c,_.getCombinedModifierFlags=function(e){return l(e,_.getEffectiveModifierFlags)},_.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(e){return l(e,_.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},_.getCombinedNodeFlags=function(e){return l(e,function(e){return e.flags})},_.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],_.validateLocaleAndSetLanguage=function(e,o,t){var r,n=e.toLowerCase(),i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(n);function a(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}}i?(r=i[1],i=i[3],_.contains(_.supportedLocaleDirectories,n)&&!a(r,i,t)&&a(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=u,_.getParseTreeNode=function(e,t){if(void 0===e||u(e))return e;for(e=e.original;e;){if(u(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&&K(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 k(e,!1)},_.getJSDocTypeParameterTagsNoCache=function(e){return k(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)},_.getJSDocOverrideTagNoCache=function(e){return w(e,_.isJSDocOverrideTag,!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=E,_.getJSDocTemplateTag=function(e){return w(e,_.isJSDocTemplateTag)},_.getJSDocTypeTag=N,_.getJSDocType=A,_.getJSDocReturnType=function(e){var t=E(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})},_.getTextOfJSDocComment=function(e){return"string"==typeof e?e:null==e?void 0:e.map(function(e){return 321===e.kind?e.text:(r=324===(t=e).kind?"link":325===t.kind?"linkcode":"linkplain",n=t.name?_.entityNameToString(t.name):"",e=t.name&&t.text.startsWith("://")?"":" ","{@".concat(r," ").concat(n).concat(e).concat(t.text,"}"));var t,r,n}).join("")},_.getEffectiveTypeParameterDeclarations=function(e){if(_.isJSDocSignature(e))return _.emptyArray;if(_.isJSDocTypeAlias(e))return _.Debug.assert(320===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)},_.isMemberName=function(e){return 79===e.kind||80===e.kind},_.isGetOrSetAccessorDeclaration=function(e){return 173===e.kind||172===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 221===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 246===e.kind||245===e.kind},_.isNamedExportBindings=function(e){return 274===e.kind||273===e.kind},_.isUnparsedTextLike=R,_.isUnparsedNode=function(e){return R(e)||300===e.kind||304===e.kind},_.isJSDocPropertyLikeTag=function(e){return 347===e.kind||340===e.kind},_.isNode=function(e){return B(e.kind)},_.isNodeKind=B,_.isTokenKind=j,_.isToken=function(e){return j(e.kind)},_.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},_.isLiteralKind=J,_.isLiteralExpression=function(e){return J(e.kind)},_.isTemplateLiteralKind=z,_.isTemplateLiteralToken=function(e){return z(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 270:case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 268:return e.parent.isTypeOnly;case 267:case 265:return e.isTypeOnly;default:return!1}},_.isAssertionKey=function(e){return _.isStringLiteral(e)||_.isIdentifier(e)},_.isStringTextContainingNode=function(e){return 10===e.kind||z(e.kind)},_.isGeneratedIdentifier=function(e){return _.isIdentifier(e)&&0<(7&e.autoGenerateFlags)},_.isPrivateIdentifierClassElementDeclaration=K,_.isPrivateIdentifierPropertyAccessExpression=function(e){return _.isPropertyAccessExpression(e)&&_.isPrivateIdentifier(e.name)},_.isModifierKind=U,_.isParameterPropertyModifier=V,_.isClassMemberModifier=function(e){return V(e)||124===e||159===e},_.isModifier=function(e){return U(e.kind)},_.isEntityName=function(e){return 161===(e=e.kind)||79===e},_.isPropertyName=function(e){return 79===(e=e.kind)||80===e||10===e||8===e||162===e},_.isBindingName=function(e){return 79===(e=e.kind)||201===e||202===e},_.isFunctionLike=q,_.isFunctionLikeOrClassStaticBlockDeclaration=function(e){return!!e&&(H(e.kind)||_.isClassStaticBlockDeclaration(e))},_.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},_.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},_.isFunctionLikeKind=H,_.isFunctionOrModuleBlock=function(e){return _.isSourceFile(e)||_.isModuleBlock(e)||_.isBlock(e)&&q(e.parent)},_.isClassElement=G,_.isClassLike=Q,_.isAccessor=function(e){return e&&(172===e.kind||173===e.kind)},_.isMethodOrAccessor=X,_.isTypeElement=Y,_.isClassOrTypeElement=function(e){return Y(e)||G(e)},_.isObjectLiteralElementLike=Z,_.isTypeNode=function(e){return _.isTypeNodeKind(e.kind)},_.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 179:case 180:return!0}return!1},_.isBindingPattern=$,_.isAssignmentPattern=function(e){return 204===(e=e.kind)||205===e},_.isArrayBindingElement=function(e){return 203===(e=e.kind)||227===e},_.isDeclarationBindingElement=function(e){switch(e.kind){case 254:case 164:case 203:return!0}return!1},_.isBindingOrAssignmentPattern=function(e){return ee(e)||te(e)},_.isObjectBindingOrAssignmentPattern=ee,_.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 203:case 296:case 297:case 298:return!0}return!1},_.isArrayBindingOrAssignmentPattern=te,_.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){return 206===(e=e.kind)||161===e||200===e},_.isPropertyAccessOrQualifiedName=function(e){return 206===(e=e.kind)||161===e},_.isCallLikeExpression=function(e){switch(e.kind){case 280:case 279:case 208:case 209:case 210:case 165:return!0;default:return!1}},_.isCallOrNewExpression=function(e){return 208===e.kind||209===e.kind},_.isTemplateLiteral=function(e){return 223===(e=e.kind)||14===e},_.isLeftHandSideExpression=function(e){return re(L(e).kind)},_.isUnaryExpression=function(e){return ne(L(e).kind)},_.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 220:return!0;case 219:return 45===e.operator||46===e.operator;default:return!1}},_.isExpression=ie,_.isAssertionExpression=function(e){return 211===(e=e.kind)||229===e},_.isNotEmittedOrPartiallyEmittedNode=function(e){return _.isNotEmittedStatement(e)||_.isPartiallyEmittedExpression(e)},_.isIterationStatement=function e(t,r){switch(t.kind){case 242:case 243:case 244:case 240:case 241:return!0;case 250:return r&&e(t.statement,r)}return!1},_.isScopeMarker=ae,_.hasScopeMarker=function(e){return _.some(e,ae)},_.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 243===e.kind||244===e.kind},_.isConciseBody=function(e){return _.isBlock(e)||ie(e)},_.isFunctionBody=function(e){return _.isBlock(e)},_.isForInitializer=function(e){return _.isVariableDeclarationList(e)||ie(e)},_.isModuleBody=function(e){return 262===(e=e.kind)||261===e||79===e},_.isNamespaceBody=function(e){return 262===(e=e.kind)||261===e},_.isJSDocNamespaceBody=function(e){return 79===(e=e.kind)||261===e},_.isNamedImportBindings=function(e){return 269===(e=e.kind)||268===e},_.isModuleOrEnumDeclaration=function(e){return 261===e.kind||260===e.kind},_.isDeclaration=ce,_.isDeclarationStatement=function(e){return oe(e.kind)},_.isStatementButNotDeclaration=function(e){return se(e.kind)},_.isStatement=function(e){var t=e.kind;return se(t)||oe(t)||function(e){if(235!==e.kind)return!1;if(void 0!==e.parent&&(252===e.parent.kind||292===e.parent.kind))return!1;return!_.isFunctionBlock(e)}(e)},_.isStatementOrBlock=function(e){return se(e=e.kind)||oe(e)||235===e},_.isModuleReference=function(e){return 277===(e=e.kind)||161===e||79===e},_.isJsxTagNameExpression=function(e){return 108===(e=e.kind)||79===e||206===e},_.isJsxChild=function(e){return 278===(e=e.kind)||288===e||279===e||11===e||282===e},_.isJsxAttributeLike=function(e){return 285===(e=e.kind)||287===e},_.isStringLiteralOrJsxExpression=function(e){return 10===(e=e.kind)||288===e},_.isJsxOpeningLikeElement=function(e){return 280===(e=e.kind)||279===e},_.isCaseOrDefaultClause=function(e){return 289===(e=e.kind)||290===e},_.isJSDocNode=function(e){return 309<=e.kind&&e.kind<=347},_.isJSDocCommentContainingNode=function(e){return 320===e.kind||319===e.kind||321===e.kind||_e(e)||le(e)||_.isJSDocTypeLiteral(e)||_.isJSDocSignature(e)},_.isJSDocTag=le,_.isSetAccessor=function(e){return 173===e.kind},_.isGetAccessor=function(e){return 172===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 254:case 164:case 203:case 166:case 167:case 296:case 299:return!0;default:return!1}},_.isObjectLiteralElement=function(e){return 285===e.kind||287===e.kind||Z(e)},_.isTypeReferenceType=function(e){return 178===e.kind||228===e.kind};var ue=1073741823;function _e(e){return 324===e.kind||325===e.kind||326===e.kind}_.guessIndentation=function(e){for(var t=ue,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===ue?void 0:t},_.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind},_.isJSDocLinkLike=_e}(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.getDeclarationsOfKind=function(e,t){return S.filter(e.declarations||S.emptyArray,function(e){return e.kind===t})},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:function(){return!1},reportInaccessibleThisError:S.noop,reportInaccessibleUniqueSymbolError:S.noop,reportPrivateInBaseOfClassExpression:S.noop});function n(e){return t+=e}function i(e,t){return a(e,t,S.moduleResolutionOptionDeclarations)}function a(t,r,e){return t!==r&&e.some(function(e){return!ci(An(t,e),An(r,e))})}function o(e){return e.end-e.pos}function s(e){var t=e.name,e=e.subModuleName;return e?"".concat(t,"/").concat(e):t}function c(e){var t;return 1048576&(t=e).flags||(0==(131072&t.flags)&&!S.forEachChild(t,c)||(t.flags|=524288),t.flags|=1048576),0!=(524288&e.flags)}function l(e){for(;e&&305!==e.kind;)e=e.parent;return e}function u(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 _(e){return void 0===e||e.pos===e.end&&0<=e.pos&&1!==e.kind}function d(e){return!_(e)}function p(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,__spreadArray([n,0],t,!1)),e}function f(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 g(e){return G(e)||!!(1048576&D(e))}function m(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function y(e,t,r){return _(e)?e.pos:S.isJSDocNode(e)||11===e.kind?S.skipTrivia((t||l(e)).text,e.pos,!1,!0):r&&S.hasJSDocNodes(e)?y(e.jsDoc[0],t):348===e.kind&&0<e._children.length?y(e._children[0],t,r):S.skipTrivia((t||l(e)).text,e.pos,!1,!1,ve(e))}function h(e,t,r){return void 0===r&&(r=!1),v(e.text,t,r)}function v(e,t,r){if(void 0===r&&(r=!1),_(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.split(/\r\n|\n|\r/).map(function(e){return S.trimStringStart(e.replace(/^\s*\*/,""))}).join("\n")),e}function b(e,t){return void 0===t&&(t=!1),h(l(e),e,t)}function x(e){return e.pos}function D(e){e=e.emitNode;return e&&e.flags||0}function T(e){e=Et(e);return 254===e.kind&&292===e.parent.kind}function C(e){return S.isModuleDeclaration(e)&&(10===e.name.kind||E(e))}function k(e){return S.isModuleDeclaration(e)||S.isIdentifier(e)}function E(e){return!!(1024&e.flags)}function N(e){return C(e)&&A(e)}function A(e){switch(e.parent.kind){case 305:return S.isExternalModule(e.parent);case 262:return C(e.parent.parent)&&S.isSourceFile(e.parent.parent.parent)&&!S.isExternalModule(e.parent.parent.parent)}return!1}function F(e){return null===(e=e.declarations)||void 0===e?void 0:e.find(function(e){return!(N(e)||S.isModuleDeclaration(e)&&E(e))})}function P(e,t){switch(e.kind){case 305:case 263:case 292:case 261:case 242:case 243:case 244:case 171:case 169:case 172:case 173:case 256:case 213:case 214:case 167:case 170:return!0;case 235:return!S.isFunctionLikeOrClassStaticBlockDeclaration(t)}return!1}function w(e){switch(e.kind){case 174:case 175:case 168:case 176:case 179:case 180:case 317:case 257:case 226:case 258:case 259:case 344:case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return S.assertType(e),!1}}function I(e){switch(e.kind){case 266:case 265:return!0;default:return!1}}function O(e){return I(e)||S.isExportDeclaration(e)}function M(e){return S.findAncestor(e.parent,function(e){return P(e,e.parent)})}function L(e){return e&&0!==o(e)?b(e):"(Missing)"}function R(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:case 14:return S.escapeLeadingUnderscores(e.text);case 162:return bt(e.expression)?S.escapeLeadingUnderscores(e.expression.text):void 0;default:return S.Debug.assertNever(e)}}function B(e){switch(e.kind){case 108:return"this";case 80:case 79:return 0===o(e)?S.idText(e):b(e);case 161:return B(e.left)+"."+B(e.right);case 206:return S.isIdentifier(e.name)||S.isPrivateIdentifier(e.name)?B(e.expression)+"."+B(e.name):S.Debug.assertNever(e.name);case 311:return B(e.left)+B(e.right);default:return S.Debug.assertNever(e)}}function j(e,t,r,n,i,a,o){t=U(e,t);return fn(e,t.start,t.length,r,n,i,a,o)}function J(e,t,r){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))}function z(e,t,r,n,i){return J(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function K(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 U(e,t){var r=t;switch(t.kind){case 305:var n=S.skipTrivia(e.text,0,!1);return n===e.text.length?S.createTextSpan(0,0):K(e,n);case 254:case 203:case 257:case 226:case 258:case 261:case 260:case 299:case 256:case 213:case 169:case 172:case 173:case 259:case 167:case 166:case 268:r=t.name;break;case 214:return function(e,t){var r=S.skipTrivia(e.text,t.pos);if(t.body&&235===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,u(n,e)-r+1)}return S.createTextSpanFromBounds(r,t.end)}(e,t);case 289:case 290: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 K(e,t.pos);S.Debug.assert(!S.isJSDoc(r));var a=_(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 V(e){return 6===e.scriptKind}function q(e){return!!(2&S.getCombinedNodeFlags(e))}function W(e){return 208===e.kind&&100===e.expression.kind}function H(e){return S.isImportTypeNode(e)&&S.isLiteralTypeNode(e.argument)&&S.isStringLiteral(e.argument.literal)}function G(e){return 238===e.kind&&10===e.expression.kind}function Q(e){return!!(1048576&D(e))}function X(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.changesAffectingProgramStructure=function(e,t){return a(e,t,S.optionsAffectingProgramStructure)},S.optionsHaveChanges=a,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=o,S.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},S.setResolvedModule=function(e,t,r,n){e.resolvedModules||(e.resolvedModules=S.createModeAwareCache()),e.resolvedModules.set(t,n,r)},S.setResolvedTypeReferenceDirective=function(e,t,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=S.createModeAwareCache()),e.resolvedTypeReferenceDirectiveNames.set(t,void 0,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.packageIdToPackageName=s,S.packageIdToString=function(e){return"".concat(s(e),"@").concat(e.version)},S.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},S.hasChangesInResolutions=function(e,t,r,n,i){S.Debug.assert(e.length===t.length);for(var a=0;a<e.length;a++){var o=t[a],s=e[a],c=S.isString(s)?s:s.fileName.toLowerCase(),s=S.isString(s)?n&&S.getModeForResolutionAtIndex(n,a):S.getModeForFileReference(s,null==n?void 0:n.impliedNodeFormat),s=r&&r.get(c,s);if(s?!o||!i(s,o):o)return!0}return!1},S.containsParseError=c,S.getSourceFileOfNode=l,S.getSourceFileOfModule=function(e){return l(e.valueDeclaration||F(e))},S.isPlainJsFile=function(e,t){return!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t)},S.isStatementWithLocals=function(e){switch(e.kind){case 235:case 263:case 242:case 243:case 244: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=l(e),e=S.getLineAndCharacterOfPosition(t,e.pos);return"".concat(t.fileName,"(").concat(e.line+1,",").concat(e.character+1,")")},S.getEndLinePosition=u,S.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},S.nodeIsMissing=_,S.nodeIsPresent=d,S.insertStatementsAfterStandardPrologue=function(e,t){return p(e,t,G)},S.insertStatementsAfterCustomPrologue=function(e,t){return p(e,t,g)},S.insertStatementAfterStandardPrologue=function(e,t){return f(e,t,G)},S.insertStatementAfterCustomPrologue=function(e,t){return f(e,t,g)},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!!(S.fullTripleSlashReferencePathRegEx.test(r)||S.fullTripleSlashAMDReferencePathRegEx.test(r)||Y.test(r)||Z.test(r))}return!1},S.isPinnedComment=m,S.createCommentDirectivesMap=function(t,e){var r=new S.Map(e.map(function(e){return["".concat(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("".concat(e))&&(n.set("".concat(e),!0),!0)}}},S.getTokenPosOfNode=y,S.getNonDecoratorTokenPosOfNode=function(e,t){return _(e)||!e.decorators?y(e,t):S.skipTrivia((t||l(e)).text,e.decorators.end)},S.getSourceTextOfNodeFromSourceFile=h,S.isExportNamespaceAsDefaultDeclaration=function(e){return!!(S.isExportDeclaration(e)&&e.exportClause&&S.isNamespaceExport(e.exportClause)&&"default"===e.exportClause.name.escapedText)},S.getTextOfNodeFromSourceText=v,S.getTextOfNode=b,S.indexOfNode=function(e,t){return S.binarySearch(e,t,x,S.compareValues)},S.getEmitFlags=D,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,NumberFormat:["formatToParts"]},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"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}},(e=S.GetLiteralTextFlags||(S.GetLiteralTextFlags={}))[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",S.getLiteralText=function(e,t,r){var n;if(t&&function(e,t){if(Nt(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(S.isNumericLiteral(e)&&512&e.numericLiteralFlags)return!!(8&t);return!S.isBigIntLiteral(e)}(e,r))return h(t,e);switch(e.kind){case 10:var i=2&r?Ht:1&r||16777216&D(e)?Jt:Kt;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"';case 14:case 15:case 16:case 17:var i=1&r||16777216&D(e)?Jt:Kt,a=null!==(n=e.rawText)&&void 0!==n?n:i(e.text,96).replace(It,"\\${");switch(e.kind){case 14:return"`"+a+"`";case 15:return"`"+a+"${";case 16:return"}"+a+"${";case 17:return"}"+a+"`"}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 '".concat(e.kind,"' not accounted for."))},S.getTextOfConstantValue=function(e){return S.isString(e)?'"'+Kt(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))||T(e)},S.isCatchClauseVariableDeclarationOrBindingElement=T,S.isAmbientModule=C,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=k,S.isShorthandAmbientModuleSymbol=function(e){return!!(e=e.valueDeclaration)&&261===e.kind&&!e.body},S.isBlockScopedContainerTopLevel=function(e){return 305===e.kind||261===e.kind||S.isFunctionLikeOrClassStaticBlockDeclaration(e)},S.isGlobalScopeAugmentation=E,S.isExternalModuleAugmentation=N,S.isModuleAugmentationExternal=A,S.getNonAugmentationDeclaration=F,S.isEffectiveExternalModule=function(e,t){return S.isExternalModule(e)||t.isolatedModules||((t=Sn(t))===S.ModuleKind.CommonJS||t===S.ModuleKind.Node16||t===S.ModuleKind.NodeNext)&&!!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&&(!!En(t,"alwaysStrict")||(!!S.startsWithUseStrict(e.statements)||!(!S.isExternalModule(e)&&!t.isolatedModules)&&(Sn(t)>=S.ModuleKind.ES2015||!t.noImplicitUseStrict)))},S.isBlockScope=P,S.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 338:case 345:case 323:return!0;default:return S.assertType(e),w(e)}},S.isDeclarationWithTypeParameterChildren=w,S.isAnyImportSyntax=I,S.isAnyImportOrBareOrAccessedRequire=function(e){return I(e)||De(e)},S.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 266:case 265:case 237:case 257:case 256:case 261:case 259:case 258:case 260:return!0;default:return!1}},S.hasPossibleExternalModuleReference=function(e){return O(e)||S.isModuleDeclaration(e)||S.isImportTypeNode(e)||W(e)},S.isAnyImportOrReExport=O,S.getEnclosingBlockScopeContainer=M,S.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=M(e);r;)t(r),r=M(r)},S.declarationNameToString=L,S.getNameFromIndexInfo=function(e){return e.declaration?L(e.declaration.parameters[0].name):void 0},S.isComputedNonLiteralName=function(e){return 162===e.kind&&!bt(e.expression)},S.tryGetTextOfPropertyName=R,S.getTextOfPropertyName=function(e){return S.Debug.checkDefined(R(e))},S.entityNameToString=B,S.createDiagnosticForNode=function(e,t,r,n,i,a){return j(l(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 fn(e,s,t.end-s,r,n,i,a,o)},S.createDiagnosticForNodeInSourceFile=j,S.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=l(e),e=U(n,e);return z(n,e.start,e.length,t,r)},S.createFileDiagnosticFromMessageChain=z,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.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},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=K,S.getErrorSpanForNode=U,S.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},S.isJsonSourceFile=V,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=q,S.isLet=function(e){return!!(1&S.getCombinedNodeFlags(e))},S.isSuperCall=function(e){return 208===e.kind&&106===e.expression.kind},S.isImportCall=W,S.isImportMeta=function(e){return S.isMetaProperty(e)&&100===e.keywordToken&&"meta"===e.name.escapedText},S.isLiteralImportTypeNode=H,S.isPrologueDirective=G,S.isCustomPrologue=Q,S.isHoistedFunction=function(e){return Q(e)&&S.isFunctionDeclaration(e)},S.isHoistedVariableStatement=function(e){return Q(e)&&S.isVariableStatement(e)&&S.every(e.declarationList.declarations,X)},S.getLeadingCommentRangesOfNode=function(e,t){return 11!==e.kind?S.getLeadingCommentRanges(t.text,e.pos):void 0},S.getJSDocCommentRanges=function(e,t){return e=164===e.kind||163===e.kind||213===e.kind||214===e.kind||212===e.kind||254===e.kind||275===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*)(('[^']*')|("[^"]*")).*?\/>/;var Y=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;S.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Z=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function $(e){if(177<=e.kind&&e.kind<=200)return!0;switch(e.kind){case 130:case 155:case 147:case 158:case 150:case 133:case 151:case 148:case 153:case 143:return!0;case 114:return 217!==e.parent.kind;case 228:return S.isHeritageClause(e.parent)&&!Rr(e);case 163:return 195===e.parent.kind||190===e.parent.kind;case 79:(161===e.parent.kind&&e.parent.right===e||206===e.parent.kind&&e.parent.name===e)&&(e=e.parent),S.Debug.assert(79===e.kind||161===e.kind||206===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 161:case 206:case 108:var t=e.parent;if(181===t.kind)return!1;if(200===t.kind)return!t.isTypeOf;if(177<=t.kind&&t.kind<=200)return!0;switch(t.kind){case 228:return S.isHeritageClause(t.parent)&&!Rr(t);case 163:case 344:return e===t.constraint;case 167:case 166:case 164:case 254:return e===t.type;case 256:case 213:case 214:case 171:case 169:case 168:case 172:case 173:return e===t.type;case 174:case 175:case 176:case 211:return e===t.type;case 208:case 209:return S.contains(t.typeArguments,e);case 210:return!1}}return!1}function ee(e){if(e)switch(e.kind){case 203:case 299:case 164:case 296:case 167:case 166:case 297:case 254:return!0}return!1}function te(e){return 255===e.parent.kind&&237===e.parent.parent.kind}function re(e){return!!he(e)&&(S.isBinaryExpression(e)&&1===we(e))}function ne(e,t,r){return e.properties.filter(function(e){if(296!==e.kind)return!1;e=R(e.name);return t===e||!!r&&r===e})}function ie(e){if(e&&e.statements.length){e=e.statements[0].expression;return S.tryCast(e,S.isObjectLiteralExpression)}}function ae(e,t){e=ie(e);return e?ne(e,t):S.emptyArray}function oe(e,t){for(S.Debug.assert(305!==e.kind);;){if(!(e=e.parent))return S.Debug.fail();switch(e.kind){case 162:if(S.isClassLike(e.parent.parent))return e;e=e.parent;break;case 165:164===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent);break;case 214:if(!t)continue;case 256:case 213:case 261:case 170:case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 174:case 175:case 176:case 260:case 305:return e}}}function se(e){var t=e.kind;return(206===t||207===t)&&106===e.expression.kind}function ce(e,t,r){if(S.isNamedDeclaration(e)&&S.isPrivateIdentifier(e.name))return!1;switch(e.kind){case 257:return!0;case 167:return 257===t.kind;case 172:case 173:case 169:return void 0!==e.body&&257===t.kind;case 164:return void 0!==t.body&&(171===t.kind||169===t.kind||173===t.kind)&&257===r.kind}return!1}function le(e,t,r){return void 0!==e.decorators&&ce(e,t,r)}function ue(e,t,r){return le(e,t,r)||_e(e,t)}function _e(t,r){switch(t.kind){case 257:return S.some(t.members,function(e){return ue(e,t,r)});case 169:case 173:case 171:return S.some(t.parameters,function(e){return le(e,t,r)});default:return!1}}function de(e){var t=e.parent;return(280===t.kind||279===t.kind||281===t.kind)&&t.tagName===e}function pe(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 229:case 211:case 230:case 212:case 213:case 226:case 214:case 217:case 215:case 216:case 219:case 220:case 221:case 222:case 225:case 223:case 227:case 278:case 279:case 282:case 224:case 218:case 231:return!0;case 161:for(;161===e.parent.kind;)e=e.parent;return 181===e.parent.kind||S.isJSDocLinkLike(e.parent)||S.isJSDocNameReference(e.parent)||S.isJSDocMemberName(e.parent)||de(e);case 311:for(;S.isJSDocMemberName(e.parent);)e=e.parent;return 181===e.parent.kind||S.isJSDocLinkLike(e.parent)||S.isJSDocNameReference(e.parent)||S.isJSDocMemberName(e.parent)||de(e);case 80:return S.isBinaryExpression(e.parent)&&e.parent.left===e&&101===e.parent.operatorToken.kind;case 79:if(181===e.parent.kind||S.isJSDocLinkLike(e.parent)||S.isJSDocNameReference(e.parent)||S.isJSDocMemberName(e.parent)||de(e))return!0;case 8:case 9:case 10:case 14:case 108:return fe(e);default:return!1}}function fe(e){var t=e.parent;switch(t.kind){case 254:case 164:case 167:case 166:case 299:case 296:case 203:return t.initializer===e;case 238:case 239:case 240:case 241:case 247:case 248:case 249:case 289:case 251:return t.expression===e;case 242:return t.initializer===e&&255!==t.initializer.kind||t.condition===e||t.incrementor===e;case 243:case 244:return t.initializer===e&&255!==t.initializer.kind||t.expression===e;case 211:case 229:case 233:case 162:return e===t.expression;case 165:case 288:case 287:case 298:return!0;case 228:return t.expression===e&&!$(t);case 297:return t.objectAssignmentInitializer===e;default:return pe(t)}}function ge(e){for(;161===e.kind||79===e.kind;)e=e.parent;return 181===e.kind}function me(e){return 265===e.kind&&277===e.moduleReference.kind}function ye(e){return he(e)}function he(e){return!!e&&!!(262144&e.flags)}function ve(e){return!!e&&!!(8388608&e.flags)}function be(e,t){if(208!==e.kind)return!1;var r=e.expression,e=e.arguments;if(79!==r.kind||"require"!==r.escapedText)return!1;if(1!==e.length)return!1;e=e[0];return!t||S.isStringLiteralLike(e)}function xe(e){return Se(e,!1)}function De(e){return Se(e,!0)}function Se(e,t){return 203===e.kind&&(e=e.parent.parent),S.isVariableDeclaration(e)&&!!e.initializer&&be(t?nn(e.initializer):e.initializer,!0)}function Te(e){return S.isBinaryExpression(e)||rn(e)||S.isIdentifier(e)||S.isCallExpression(e)}function Ce(e){return he(e)&&e.initializer&&S.isBinaryExpression(e.initializer)&&(56===e.initializer.operatorToken.kind||60===e.initializer.operatorToken.kind)&&e.name&&Br(e.name)&&Ee(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ke(e,t){if(S.isCallExpression(e)){var r=ct(e.expression);return 213===r.kind||214===r.kind?e:void 0}return 213===e.kind||226===e.kind||214===e.kind||S.isObjectLiteralExpression(e)&&(0===e.properties.length||t)?e:void 0}function Ee(e,t){return Ct(e)&&Ct(t)?kt(e)===kt(t):S.isMemberName(e)&&Oe(t)&&(108===t.expression.kind||S.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Ee(e,je(t)):!(!Oe(e)||!Oe(t))&&(ze(e)===ze(t)&&Ee(e.expression,t.expression))}function Ne(e){for(;Lr(e,!0);)e=e.right;return e}function Ae(e){return S.isIdentifier(e)&&"exports"===e.escapedText}function Fe(e){return S.isIdentifier(e)&&"module"===e.escapedText}function Pe(e){return(S.isPropertyAccessExpression(e)||Me(e))&&Fe(e.expression)&&"exports"===ze(e)}function we(e){var t=function(e){if(S.isCallExpression(e)){if(!Ie(e))return 0;var t=e.arguments[0];return Ae(t)||Pe(t)?8:Le(t)&&"prototype"===ze(t)?9:7}if(63!==e.operatorToken.kind||!rn(e.left)||function(e){return S.isVoidExpression(e)&&S.isNumericLiteral(e.expression)&&"0"===e.expression.text}(Ne(e)))return 0;if(Be(e.left.expression,!0)&&"prototype"===ze(e.left)&&S.isObjectLiteralExpression(Ue(e)))return 6;return Ke(e.left)}(e);return 5===t||he(e)?t:0}function Ie(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)&&bt(e.arguments[1])&&Be(e.arguments[0],!0)}function Oe(e){return S.isPropertyAccessExpression(e)||Me(e)}function Me(e){return S.isElementAccessExpression(e)&&bt(e.argumentExpression)}function Le(e,t){return S.isPropertyAccessExpression(e)&&(!t&&108===e.expression.kind||S.isIdentifier(e.name)&&Be(e.expression,!0))||Re(e,t)}function Re(e,t){return Me(e)&&(!t&&108===e.expression.kind||Br(e.expression)||Le(e.expression,!0))}function Be(e,t){return Br(e)||Le(e,t)}function je(e){return S.isPropertyAccessExpression(e)?e.name:e.argumentExpression}function Je(e){if(S.isPropertyAccessExpression(e))return e.name;var t=ct(e.argumentExpression);return S.isNumericLiteral(t)||S.isStringLiteralLike(t)?t:e}function ze(e){e=Je(e);if(e){if(S.isIdentifier(e))return e.escapedText;if(S.isStringLiteralLike(e)||S.isNumericLiteral(e))return S.escapeLeadingUnderscores(e.text)}}function Ke(e){if(108===e.expression.kind)return 4;if(Pe(e))return 2;if(Be(e.expression,!0)){if(Jr(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"===ze(t))&&Le(e))return 1;if(Be(e,!0)||S.isElementAccessExpression(e)&&St(e))return 5}return 0}function Ue(e){for(;S.isBinaryExpression(e.right);)e=e.right;return e.right}function Ve(e){switch(e.parent.kind){case 266:case 272:return e.parent;case 277:return e.parent.parent;case 208:return W(e.parent)||be(e.parent,!1)?e.parent:void 0;case 196:return S.Debug.assert(S.isStringLiteral(e)),S.tryCast(e.parent.parent,S.isImportTypeNode);default:return}}function qe(e){switch(e.kind){case 266:case 272:return e.moduleSpecifier;case 265:return 277===e.moduleReference.kind?e.moduleReference.expression:void 0;case 200:return H(e)?e.argument.literal:void 0;case 208:return e.arguments[0];case 261:return 10===e.name.kind?e.name:void 0;default:return S.Debug.assertNever(e)}}function We(e){return 345===e.kind||338===e.kind||339===e.kind}function He(e){return S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&0!==we(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 Ge(e){switch(e.kind){case 237:var t=Qe(e);return t&&t.initializer;case 167:case 296:return e.initializer}}function Qe(e){return S.isVariableStatement(e)?S.firstOrUndefined(e.declarationList.declarations):void 0}function Xe(e){return S.isModuleDeclaration(e)&&e.body&&261===e.body.kind?e.body:void 0}function Ye(t,e){if(S.isJSDoc(e)){var r=S.filter(e.tags,function(e){return Ze(t,e)});return e.tags===r?[e]:r}return Ze(t,e)?[e]:void 0}function Ze(e,t){return!(S.isJSDocTypeTag(t)&&t.parent&&S.isJSDoc(t.parent)&&S.isParenthesizedExpression(t.parent.parent)&&t.parent.parent!==e)}function $e(e){var t=e.parent;return 296===t.kind||271===t.kind||167===t.kind||238===t.kind&&206===e.kind||247===t.kind||Xe(t)||S.isBinaryExpression(e)&&63===e.operatorToken.kind?t:t.parent&&(Qe(t.parent)===e||S.isBinaryExpression(t)&&63===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Qe(t.parent.parent)||Ge(t.parent.parent)===e||He(t.parent.parent))?t.parent.parent:void 0}function et(e){e=tt(e);if(e)return S.isPropertySignature(e)&&e.type&&S.isFunctionLike(e.type)?e.type:S.isFunctionLike(e)?e:void 0}function tt(e){var t=rt(e);if(t)return He(t)||(e=t,S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&63===e.expression.operatorToken.kind?Ne(e.expression):void 0)||Ge(t)||Qe(t)||Xe(t)||t}function rt(e){var t=nt(e);if(t){e=t.parent;return e&&e.jsDoc&&t===S.lastOrUndefined(e.jsDoc)?e:void 0}}function nt(e){return S.findAncestor(e.parent,S.isJSDoc)}function it(e){var t=S.isJSDocParameterTag(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&318===t.kind}function at(e){for(var t=e.parent;;){switch(t.kind){case 221:var r=t.operatorToken.kind;return Ir(r)&&t.left===e?63===r||wr(r)?1:2:0;case 219:case 220:r=t.operator;return 45===r||46===r?2:0;case 243:case 244:return t.initializer===e?1:0;case 212:case 204:case 225:case 230:e=t;break;case 298:e=t.parent;break;case 297:if(t.name!==e)return 0;e=t.parent;break;case 296:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ot(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function st(e){return ot(e,212)}function ct(e,t){t=t?17:1;return S.skipOuterExpressions(e,t)}function lt(e){return Br(e)||S.isClassExpression(e)}function ut(e){return lt(_t(e))}function _t(e){return S.isExportAssignment(e)?e.expression:e.right}function dt(e){var t=pt(e);if(t&&he(e)){e=S.getJSDocAugmentsTag(e);if(e)return e.class}return t}function pt(e){e=mt(e.heritageClauses,94);return e&&0<e.types.length?e.types[0]:void 0}function ft(e){if(he(e))return S.getJSDocImplementsTags(e).map(function(e){return e.class});e=mt(e.heritageClauses,117);return null==e?void 0:e.types}function gt(e){e=mt(e.heritageClauses,94);return e?e.types:void 0}function mt(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 yt(e){return 81<=e&&e<=160}function ht(e){return 126<=e&&e<=160}function vt(e){return yt(e)&&!ht(e)}function bt(e){return S.isStringLiteralLike(e)||S.isNumericLiteral(e)}function xt(e){return S.isPrefixUnaryExpression(e)&&(39===e.operator||40===e.operator)&&S.isNumericLiteral(e.operand)}function Dt(e){e=S.getNameOfDeclaration(e);return!!e&&St(e)}function St(e){if(162!==e.kind&&207!==e.kind)return!1;e=S.isElementAccessExpression(e)?ct(e.argumentExpression):e.expression;return!bt(e)&&!xt(e)}function Tt(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return S.escapeLeadingUnderscores(e.text);case 162:var t=e.expression;return bt(t)?S.escapeLeadingUnderscores(t.text):xt(t)?40===t.operator?S.tokenToString(t.operator)+t.operand.text:t.operand.text:void 0;default:return S.Debug.assertNever(e)}}function Ct(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function kt(e){return S.isMemberName(e)?S.idText(e):e.text}function Et(e){for(;203===e.kind;)e=e.parent.parent;return e}function Nt(e){return ai(e.pos)||ai(e.end)}function At(e,t,r){switch(e){case 209:return r?0:1;case 219:case 216:case 217:case 215:case 218:case 222:case 224:return 1;case 221:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Ft(e){return 221===e.kind?e.operatorToken.kind:219===e.kind||220===e.kind?e.operator:e.kind}function Pt(e,t,r){switch(e){case 351:return 0;case 225:return 1;case 224:return 2;case 222:return 4;case 221:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return wt(t)}case 211:case 230:case 219:case 216:case 217:case 215:case 218:return 16;case 220:return 17;case 208:return 18;case 209:return r?19:18;case 210:case 206:case 207:case 231:return 19;case 229:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 204:case 205:case 213:case 214:case 226:case 13:case 14:case 223:case 212:case 227:case 278:case 279:case 282:return 20;default:return-1}}function wt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}S.isPartOfTypeNode=$,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 247:return r(t);case 263:case 235:case 239:case 240:case 241:case 242:case 243:case 244:case 248:case 249:case 289:case 290:case 250:case 252:case 292:return S.forEachChild(t,e)}}(e)},S.forEachYieldExpression=function(e,n){return function e(t){switch(t.kind){case 224:n(t);var r=t.expression;return void(r&&e(r));case 260:case 258:case 261:case 259:return;default:if(S.isFunctionLike(t)){if(t.name&&162===t.name.kind)return void e(t.name.expression)}else $(t)||S.forEachChild(t,e)}}(e)},S.getRestParameterElementType=function(e){return e&&183===e.kind?e.elementType:e&&178===e.kind?S.singleOrUndefined(e.typeArguments):void 0},S.getMembersOfDeclaration=function(e){switch(e.kind){case 258:case 257:case 226:case 182:return e.members;case 205:return e.properties}},S.isVariableLike=ee,S.isVariableLikeOrAccessor=function(e){return ee(e)||S.isAccessor(e)},S.isVariableDeclarationInVariableStatement=te,S.isCommonJsExportedExpression=function(e){return!!he(e)&&(S.isObjectLiteralExpression(e.parent)&&S.isBinaryExpression(e.parent.parent)&&2===we(e.parent.parent)||re(e.parent))},S.isCommonJsExportPropertyAssignment=re,S.isValidESSymbolDeclaration=function(e){return(S.isVariableDeclaration(e)?q(e)&&S.isIdentifier(e.name)&&te(e):S.isPropertyDeclaration(e)?Dr(e)&&xr(e):S.isPropertySignature(e)&&Dr(e))||re(e)},S.introducesArgumentsExoticObject=function(e){switch(e.kind){case 169:case 168:case 171:case 172:case 173:case 256:case 213:return!0}return!1},S.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),250!==e.statement.kind)return e.statement;e=e.statement}},S.isFunctionBlock=function(e){return e&&235===e.kind&&S.isFunctionLike(e.parent)},S.isObjectLiteralMethod=function(e){return e&&169===e.kind&&205===e.parent.kind},S.isObjectLiteralOrClassExpressionMethodOrAccessor=function(e){return!(169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind&&226!==e.parent.kind)},S.isIdentifierTypePredicate=function(e){return e&&1===e.kind},S.isThisTypePredicate=function(e){return e&&0===e.kind},S.getPropertyAssignment=ne,S.getPropertyArrayElementValue=function(e,t,r){return S.firstDefined(ne(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.getTsConfigObjectLiteralExpression=ie,S.getTsConfigPropArrayElementValue=function(e,t,r){return S.firstDefined(ae(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=ae,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.getContainingClassStaticBlock=function(e){return S.findAncestor(e.parent,function(e){return S.isClassLike(e)||S.isFunctionLike(e)?"quit":S.isClassStaticBlockDeclaration(e)})},S.getContainingFunctionOrClassStaticBlock=function(e){return S.findAncestor(e.parent,S.isFunctionLikeOrClassStaticBlockDeclaration)},S.getThisContainer=oe,S.isThisContainerOrFunctionBlock=function(e){switch(e.kind){case 214:case 256:case 213:case 167:return!0;case 235:switch(e.parent.kind){case 171:case 169:case 172:case 173:return!0;default:return!1}default:return!1}},S.isInTopLevelContext=function(e){return S.isIdentifier(e)&&(S.isClassDeclaration(e.parent)||S.isFunctionDeclaration(e.parent))&&e.parent.name===e&&(e=e.parent),e=oe(e,!0),S.isSourceFile(e)},S.getNewTargetContainer=function(e){var t=oe(e,!1);if(t)switch(t.kind){case 171:case 256:case 213:return t}},S.getSuperContainer=function(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 162:e=e.parent;break;case 256:case 213:case 214:if(!t)continue;case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 170:return e;case 165:164===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent)}}},S.getImmediatelyInvokedFunctionExpression=function(e){if(213===e.kind||214===e.kind){for(var t=e,r=e.parent;212===r.kind;)r=(t=r).parent;if(208===r.kind&&r.expression===t)return r}},S.isSuperOrSuperProperty=function(e){return 106===e.kind||se(e)},S.isSuperProperty=se,S.isThisProperty=function(e){var t=e.kind;return(206===t||207===t)&&108===e.expression.kind},S.isThisInitializedDeclaration=function(e){return!!e&&S.isVariableDeclaration(e)&&108===(null===(e=e.initializer)||void 0===e?void 0:e.kind)},S.isThisInitializedObjectBindingExpression=function(e){return!!e&&(S.isShorthandPropertyAssignment(e)||S.isPropertyAssignment(e))&&S.isBinaryExpression(e.parent.parent)&&63===e.parent.parent.operatorToken.kind&&108===e.parent.parent.right.kind},S.getEntityNameFromTypeNode=function(e){switch(e.kind){case 178:return e.typeName;case 228:return Br(e.expression)?e.expression:void 0;case 79:case 161:return e}},S.getInvokedExpression=function(e){switch(e.kind){case 210:return e.tag;case 280:case 279:return e.tagName;default:return e.expression}},S.nodeCanBeDecorated=ce,S.nodeIsDecorated=le,S.nodeOrChildIsDecorated=ue,S.childIsDecorated=_e,S.classOrConstructorParameterIsDecorated=function(e){if(le(e))return!0;var t=cr(e);return!!t&&_e(t,e)},S.isJSXTagName=de,S.isExpressionNode=pe,S.isInExpressionContext=fe,S.isPartOfTypeQuery=ge,S.isNamespaceReexportDeclaration=function(e){return S.isNamespaceExport(e)&&!!e.parent.moduleSpecifier},S.isExternalModuleImportEqualsDeclaration=me,S.getExternalModuleImportEqualsDeclarationExpression=function(e){return S.Debug.assert(me(e)),e.moduleReference.expression},S.getExternalModuleRequireArgument=function(e){return De(e)&&nn(e.initializer).arguments[0]},S.isInternalModuleImportEqualsDeclaration=function(e){return 265===e.kind&&277!==e.moduleReference.kind},S.isSourceFileJS=ye,S.isSourceFileNotJS=function(e){return!he(e)},S.isInJSFile=he,S.isInJsonFile=function(e){return!!e&&!!(67108864&e.flags)},S.isSourceFileNotJson=function(e){return!V(e)},S.isInJSDoc=ve,S.isJSDocIndexSignature=function(e){return S.isTypeReferenceNode(e)&&S.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(150===e.typeArguments[0].kind||147===e.typeArguments[0].kind)},S.isRequireCall=be,S.isVariableDeclarationInitializedToRequire=xe,S.isVariableDeclarationInitializedToBareOrAccessedRequire=De,S.isRequireVariableStatement=function(e){return S.isVariableStatement(e)&&0<e.declarationList.declarations.length&&S.every(e.declarationList.declarations,xe)},S.isSingleOrDoubleQuote=function(e){return 39===e||34===e},S.isStringDoubleQuoted=function(e,t){return 34===h(t,e).charCodeAt(0)},S.isAssignmentDeclaration=Te,S.getEffectiveInitializer=Ce,S.getDeclaredExpandoInitializer=function(e){var t=Ce(e);return t&&ke(t,Jr(e.name))},S.getAssignedExpandoInitializer=function(e){if(e&&e.parent&&S.isBinaryExpression(e.parent)&&63===e.parent.operatorToken.kind){var t=Jr(e.parent.left);return ke(e.parent.right,t)||function(e,t,r){r=S.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&ke(t.right,r);if(r&&Ee(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&S.isCallExpression(e)&&Ie(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&&ke(e.initializer,r)}));if(t)return t}var r},S.getExpandoInitializer=ke,S.isDefaultedExpandoInitializer=function(e){var t=S.isVariableDeclaration(e.parent)?e.parent.name:S.isBinaryExpression(e.parent)&&63===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&ke(e.right,Jr(t))&&Br(t)&&Ee(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(63===t.operatorToken.kind&&S.isIdentifier(t.left))return t.left}else if(S.isVariableDeclaration(e.parent))return e.parent.name},S.isSameEntityName=Ee,S.getRightMostAssignedExpression=Ne,S.isExportsIdentifier=Ae,S.isModuleIdentifier=Fe,S.isModuleExportsAccessExpression=Pe,S.getAssignmentDeclarationKind=we,S.isBindableObjectDefinePropertyCall=Ie,S.isLiteralLikeAccess=Oe,S.isLiteralLikeElementAccess=Me,S.isBindableStaticAccessExpression=Le,S.isBindableStaticElementAccessExpression=Re,S.isBindableStaticNameExpression=Be,S.getNameOrArgument=je,S.getElementOrPropertyAccessArgumentExpressionOrName=Je,S.getElementOrPropertyAccessName=ze,S.getAssignmentDeclarationPropertyAccessKind=Ke,S.getInitializerOfBinaryExpression=Ue,S.isPrototypePropertyAssignment=function(e){return S.isBinaryExpression(e)&&3===we(e)},S.isSpecialPropertyDeclaration=function(e){return he(e)&&e.parent&&238===e.parent.kind&&(!S.isElementAccessExpression(e)||Me(e))&&!!S.getJSDocTypeTag(e.parent)},S.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&Te(r)&&!Te(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},S.isFunctionSymbol=function(e){return!(!e||!e.valueDeclaration)&&(256===(e=e.valueDeclaration).kind||S.isVariableDeclaration(e)&&e.initializer&&S.isFunctionLike(e.initializer))},S.tryGetModuleSpecifierFromDeclaration=function(e){var t;switch(e.kind){case 254:return null===(t=S.findAncestor(e.initializer,function(e){return be(e,!0)}))||void 0===t?void 0:t.arguments[0];case 266:return S.tryCast(e.moduleSpecifier,S.isStringLiteralLike);case 265:return S.tryCast(null===(t=S.tryCast(e.moduleReference,S.isExternalModuleReference))||void 0===t?void 0:t.expression,S.isStringLiteralLike);default:S.Debug.assertNever(e)}},S.importFromModuleSpecifier=function(e){return Ve(e)||S.Debug.failBadSyntaxKind(e.parent)},S.tryGetImportFromModuleSpecifier=Ve,S.getExternalModuleName=qe,S.getNamespaceDeclarationNode=function(e){switch(e.kind){case 266:return e.importClause&&S.tryCast(e.importClause.namedBindings,S.isNamespaceImport);case 265:return e;case 272:return e.exportClause&&S.tryCast(e.exportClause,S.isNamespaceExport);default:return S.Debug.assertNever(e)}},S.isDefaultImport=function(e){return 266===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 164:case 169:case 168:case 297:case 296:case 167:case 166: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=We,S.isTypeAlias=function(e){return We(e)||S.isTypeAliasDeclaration(e)},S.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ge,S.getSingleVariableOfVariableStatement=Qe,S.getJSDocCommentsAndTags=function(e,t){var r;ee(e)&&S.hasInitializer(e)&&S.hasJSDocNodes(e.initializer)&&(r=S.addRange(r,Ye(e,S.last(e.initializer.jsDoc))));for(var n=e;n&&n.parent;){if(S.hasJSDocNodes(n)&&(r=S.addRange(r,Ye(e,S.last(n.jsDoc)))),164===n.kind){r=S.addRange(r,(t?S.getJSDocParameterTagsNoCache:S.getJSDocParameterTags)(n));break}if(163===n.kind){r=S.addRange(r,(t?S.getJSDocTypeParameterTagsNoCache:S.getJSDocTypeParameterTags)(n));break}n=$e(n)}return r||S.emptyArray},S.getNextJSDocCommentLocation=$e,S.getParameterSymbolFromJSDoc=function(e){if(e.symbol)return e.symbol;if(S.isIdentifier(e.name)){var t=e.name.escapedText,e=et(e);if(e){e=S.find(e.parameters,function(e){return 79===e.name.kind&&e.name.escapedText===t});return e&&e.symbol}}},S.getEffectiveContainerForJSDocTemplateTag=function(e){if(S.isJSDoc(e.parent)&&e.parent.tags){var t=S.find(e.parent.tags,We);if(t)return t}return et(e)},S.getHostSignatureFromJSDoc=et,S.getEffectiveJSDocHost=tt,S.getJSDocHost=rt,S.getJSDocRoot=nt,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))&&it(e)},S.isRestParameter=it,S.hasTypeArguments=function(e){return!!e.typeArguments},(e=S.AssignmentKind||(S.AssignmentKind={}))[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",S.getAssignmentTargetKind=at,S.isAssignmentTarget=function(e){return 0!==at(e)},S.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 235:case 237:case 248:case 239:case 249:case 263:case 289:case 290:case 250:case 242:case 243:case 244:case 240:case 241:case 252:case 292: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 ot(e,191)},S.walkUpParenthesizedExpressions=st,S.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&191===e.kind;)e=(t=e).parent;return[t,e]},S.skipParentheses=ct,S.isDeleteTarget=function(e){return(206===e.kind||207===e.kind)&&((e=st(e.parent))&&215===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 79: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!==we(r)&&(r.left.symbol||r.symbol)&&S.getNameOfDeclaration(r)===e?r:void 0;case 80:return S.isDeclaration(t)&&t.name===e?t:void 0;default:return}},S.isLiteralComputedPropertyDeclarationName=function(e){return bt(e)&&162===e.parent.kind&&S.isDeclaration(e.parent.parent)},S.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 167:case 166:case 169:case 168:case 172:case 173:case 299:case 296:case 206:return t.name===e;case 161:return t.right===e;case 203:case 270:return t.propertyName===e;case 275:case 285:case 279:case 280:case 281:return!0}return!1},S.isAliasSymbolDeclaration=function(e){return!!(265===e.kind||264===e.kind||267===e.kind&&e.name||268===e.kind||274===e.kind||270===e.kind||275===e.kind||271===e.kind&&ut(e))||he(e)&&(S.isBinaryExpression(e)&&2===we(e)&&ut(e)||S.isPropertyAccessExpression(e)&&S.isBinaryExpression(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind&&lt(e.parent.right))},S.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 267:case 270:case 268:case 275:case 271:case 265:case 274:return t.parent;case 161:for(;t=t.parent,161===t.parent.kind;);return e(t)}},S.isAliasableExpression=lt,S.exportAssignmentIsAlias=ut,S.getExportAssignmentExpression=_t,S.getPropertyAssignmentAliasLikeExpression=function(e){return 297===e.kind?e.name:296===e.kind?e.initializer:e.parent.right},S.getEffectiveBaseTypeNode=dt,S.getClassExtendsHeritageElement=pt,S.getEffectiveImplementsTypeNodes=ft,S.getAllSuperTypeNodes=function(e){return S.isInterfaceDeclaration(e)?gt(e)||S.emptyArray:S.isClassLike(e)&&S.concatenate(S.singleElementArray(dt(e)),ft(e))||S.emptyArray},S.getInterfaceBaseTypeNodes=gt,S.getHeritageClause=mt,S.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},S.isKeyword=yt,S.isContextualKeyword=ht,S.isNonContextualKeyword=vt,S.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},S.isStringANonContextualKeyword=function(e){return void 0!==(e=S.stringToToken(e))&&vt(e)},S.isStringAKeyword=function(e){return void 0!==(e=S.stringToToken(e))&&yt(e)},S.isIdentifierANonContextualKeyword=function(e){return!!(e=e.originalKeywordKind)&&!ht(e)},S.isTrivia=function(e){return 2<=e&&e<=7},(e=S.FunctionFlags||(S.FunctionFlags={}))[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",S.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 256:case 213:case 169:e.asteriskToken&&(t|=1);case 214:vr(e,256)&&(t|=2)}return e.body||(t|=4),t},S.isAsyncFunction=function(e){switch(e.kind){case 256:case 213:case 214:case 169:return void 0!==e.body&&void 0===e.asteriskToken&&vr(e,256)}return!1},S.isStringOrNumericLiteralLike=bt,S.isSignedNumericLiteral=xt,S.hasDynamicName=Dt,S.isDynamicName=St,S.getPropertyNameForPropertyNameNode=Tt,S.isPropertyNameLiteral=Ct,S.getTextOfIdentifierOrLiteral=kt,S.getEscapedTextOfIdentifierOrLiteral=function(e){return S.isMemberName(e)?e.escapedText:S.escapeLeadingUnderscores(e.text)},S.getPropertyNameForUniqueESSymbol=function(e){return"__@".concat(S.getSymbolId(e),"@").concat(e.escapedName)},S.getSymbolNameForPrivateIdentifier=function(e,t){return"__#".concat(S.getSymbolId(e),"@").concat(t)},S.isKnownSymbol=function(e){return S.startsWith(e.escapedName,"__@")},S.isPrivateIdentifierSymbol=function(e){return S.startsWith(e.escapedName,"__#")},S.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},S.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},S.isParameterDeclaration=function(e){return 164===Et(e).kind},S.getRootDeclaration=Et,S.nodeStartsNewLexicalEnvironment=function(e){return 171===(e=e.kind)||213===e||256===e||214===e||169===e||172===e||173===e||261===e||305===e},S.nodeIsSynthesized=Nt,S.getOriginalSourceFile=function(e){return S.getParseTreeNode(e,S.isSourceFile)||e},(e=S.Associativity||(S.Associativity={}))[e.Left=0]="Left",e[e.Right=1]="Right",S.getExpressionAssociativity=function(e){var t=Ft(e),r=209===e.kind&&void 0!==e.arguments;return At(e.kind,t,r)},S.getOperatorAssociativity=At,S.getExpressionPrecedence=function(e){var t=Ft(e),r=209===e.kind&&void 0!==e.arguments;return Pt(e.kind,t,r)},S.getOperator=Ft,(e=S.OperatorPrecedence||(S.OperatorPrecedence={}))[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",S.getOperatorPrecedence=Pt,S.getBinaryOperatorPrecedence=wt,S.getSemanticJsxChildren=function(e){return S.filter(e,function(e){switch(e.kind){case 288: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,yn)},lookup:function(e){var t;t=e.file?i.get(e.file.fileName):r;if(!t)return;e=S.binarySearch(t,e,S.identity,hn);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}}};var It=/\$\{/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 Ot=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Mt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Lt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Rt=new S.Map(S.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085","\r\n":"\\r\\n"}));function Bt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function jt(e,t,r){if(0!==e.charCodeAt(0))return Rt.get(e)||Bt(e.charCodeAt(0));e=r.charCodeAt(t+e.length);return 48<=e&&e<=57?"\\x00":"\\0"}function Jt(e,t){t=96===t?Lt:39===t?Mt:Ot;return e.replace(t,jt)}S.escapeString=Jt;var zt=/[^\u0000-\u007F]/g;function Kt(e,t){return e=Jt(e,t),zt.test(e)?e.replace(zt,function(e){return Bt(e.charCodeAt(0))}):e}S.escapeNonAsciiString=Kt;var Ut=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Vt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,qt=new S.Map(S.getEntries({'"':"&quot;","'":"&apos;"}));function Wt(e){return 0===e.charCodeAt(0)?"&#0;":qt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ht(e,t){t=39===t?Vt:Ut;return e.replace(t,Wt)}S.escapeJsxAttributeString=Ht,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,"-")||S.stringContains(e,":")};var Gt=["","    "];function Qt(e){for(var t=Gt[1],r=Gt.length;r<=e;r++)Gt.push(Gt[r-1]+t);return Gt[e]}function Xt(){return Gt[1].length}function Yt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Zt(e,t,r){return t.moduleName||er(e,t.fileName,r&&r.fileName)}function $t(e,t){return e.getCanonicalFileName(S.getNormalizedAbsolutePath(t,e.getCurrentDirectory()))}function er(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=ti(S.getRelativePathToDirectoryOrUrl(i,e,i,n,!1));return r?S.ensurePathIsNonModuleName(n):n}function tr(e,t,r,n,i){t=t.declarationDir||t.outDir,i=t?or(e,t,r,n,i):e,e=rr(i);return ti(i)+e}function rr(e){return S.fileExtensionIsOneOf(e,[".mjs",".mts"])?".d.mts":S.fileExtensionIsOneOf(e,[".cjs",".cts"])?".d.cts":S.fileExtensionIsOneOf(e,[".json"])?".json.d.ts":".d.ts"}function nr(e){return e.outFile||e.out}function ir(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&ye(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(V(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function ar(e,t,r){return or(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function or(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 sr(e,t){return S.computeLineOfPosition(e,t)}function cr(e){return S.find(e.members,function(e){return S.isConstructorDeclaration(e)&&d(e.body)})}function lr(e){if(e&&0<e.parameters.length){var t=2===e.parameters.length&&ur(e.parameters[0]);return e.parameters[t?1:0]}}function ur(e){return _r(e.name)}function _r(e){return!!e&&79===e.kind&&dr(e)}function dr(e){return 108===e.originalKeywordKind}function pr(e){if(he(e)||!S.isFunctionDeclaration(e)){var t=e.type;return t||!he(e)?t:S.isJSDocPropertyLikeTag(e)?e.typeExpression&&e.typeExpression.type:S.getJSDocType(e)}}function fr(e,t,r,n){gr(e,t,r.pos,n)}function gr(e,t,r,n){n&&n.length&&r!==n[0].pos&&sr(e,r)!==sr(e,n[0].pos)&&t.writeLine()}function mr(e,t,r,n,i,a,o,s){if(n&&0<n.length){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l<u.length;l++){var _=u[l];c&&(r.writeSpace(" "),c=!1),s(e,t,r,_.pos,_.end,o),_.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function yr(e,t,r){for(var n=0;t<r&&S.isWhiteSpaceSingleLine(e.charCodeAt(t));t++)9===e.charCodeAt(t)?n+=Xt()-n%Xt():n++;return n}function hr(e,t){return!!Sr(e,t)}function vr(e,t){return!!Tr(e,t)}function br(e){return S.isClassElement(e)&&xr(e)||S.isClassStaticBlockDeclaration(e)}function xr(e){return vr(e,32)}function Dr(e){return hr(e,64)}function Sr(e,t){return kr(e)&t}function Tr(e,t){return Er(e)&t}function Cr(e,t,r){return 0<=e.kind&&e.kind<=160?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Ar(e)),!t||4096&e.modifierFlagsCache||!r&&!he(e)||!e.parent||(e.modifierFlagsCache|=4096|Nr(e)),-536875009&e.modifierFlagsCache)}function kr(e){return Cr(e,!0)}function Er(e){return Cr(e,!1)}function Nr(e){var t=0;return e.parent&&!S.isParameter(e)&&(he(e)&&(S.getJSDocPublicTagNoCache(e)&&(t|=4),S.getJSDocPrivateTagNoCache(e)&&(t|=8),S.getJSDocProtectedTagNoCache(e)&&(t|=16),S.getJSDocReadonlyTagNoCache(e)&&(t|=64),S.getJSDocOverrideTagNoCache(e)&&(t|=16384)),S.getJSDocDeprecatedTagNoCache(e)&&(t|=8192)),t}function Ar(e){var t=Fr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Fr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=Pr(n[r].kind);return t}function Pr(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 145:return 64;case 159:return 16384;case 101:return 32768;case 144:return 65536}return 0}function wr(e){return 75===e||76===e||77===e}function Ir(e){return 63<=e&&e<=78}function Or(e){e=Mr(e);return e&&!e.isImplements?e.class:void 0}function Mr(e){return S.isExpressionWithTypeArguments(e)&&S.isHeritageClause(e.parent)&&S.isClassLike(e.parent.parent)?{class:e.parent.parent,isImplements:117===e.parent.token}:void 0}function Lr(e,t){return S.isBinaryExpression(e)&&(t?63===e.operatorToken.kind:Ir(e.operatorToken.kind))&&S.isLeftHandSideExpression(e.left)}function Rr(e){return void 0!==Or(e)}function Br(e){return 79===e.kind||jr(e)}function jr(e){return S.isPropertyAccessExpression(e)&&S.isIdentifier(e.name)&&Br(e.expression)}function Jr(e){return Le(e)&&"prototype"===ze(e)}function zr(e){return S.isPropertyAccessExpression(e.parent)&&e.parent.name===e||S.isElementAccessExpression(e.parent)&&e.parent.argumentExpression===e}S.getIndentString=Qt,S.getIndentSize=Xt,S.isNightly=function(){return S.stringContains(S.version,"-dev")||S.stringContains(S.version,"-insiders")},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 l(e){e&&e.length&&(i&&(e=Qt(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function e(){o=a=n=0,s=!(i=!(r=""))}return e(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(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*Xt():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:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(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=Yt,S.hostGetCanonicalFileName=function(e){return S.createGetCanonicalFileName(Yt(e))},S.getResolvedExternalModuleName=Zt,S.getExternalModuleNameFromDeclaration=function(e,t,r){if((t=t.getExternalModuleFileFromDeclaration(r))&&!t.isDeclarationFile){r=qe(r);if(!r||!S.isStringLiteralLike(r)||S.pathIsRelative(r.text)||-1!==$t(e,t.path).indexOf($t(e,S.ensureTrailingDirectorySeparator(e.getCommonSourceDirectory()))))return Zt(e,t)}},S.getExternalModuleNameFromPath=er,S.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(e=n.outDir?ti(ar(e,t,n.outDir)):ti(e))+r},S.getDeclarationEmitOutputFilePath=function(e,t){return tr(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},S.getDeclarationEmitOutputFilePathWorker=tr,S.getDeclarationEmitExtensionForPath=rr,S.getPossibleOriginalInputExtensionForExtension=function(e){return S.fileExtensionIsOneOf(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:S.fileExtensionIsOneOf(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:S.fileExtensionIsOneOf(e,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]},S.outFile=nr,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(nr(n)){var i=Sn(n),a=n.emitDeclarationOnly||i===S.ModuleKind.AMD||i===S.ModuleKind.System;return S.filter(t.getSourceFiles(),function(e){return(a||!S.isExternalModule(e))&&ir(e,t,r)})}return e=void 0===e?t.getSourceFiles():[e],S.filter(e,function(e){return ir(e,t,r)})},S.sourceFileMayBeEmitted=ir,S.getSourceFilePathInNewDir=ar,S.getSourceFilePathInNewDirWorker=or,S.writeFile=function(e,t,r,n,i,a,o){e.writeFile(r,n,i,function(e){t.add(gn(S.Diagnostics.Could_not_write_file_0_Colon_1,r,e))},a,o)},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=sr,S.getFirstConstructorWithBody=cr,S.getSetAccessorValueParameter=lr,S.getSetAccessorTypeAnnotationNode=function(e){return(e=lr(e))&&e.type},S.getThisParameter=function(e){if(e.parameters.length&&!S.isJSDocSignature(e)){e=e.parameters[0];if(ur(e))return e}},S.parameterIsThisKeyword=ur,S.isThisIdentifier=_r,S.isThisInTypeQuery=function(e){if(!_r(e))return!1;for(;S.isQualifiedName(e.parent)&&e.parent.left===e;)e=e.parent;return 181===e.parent.kind},S.identifierIsThisKeyword=dr,S.getAllAccessorDeclarations=function(e,t){var r,n,i,a;return Dt(t)?172===(r=t).kind?i=t:173===t.kind?a=t:S.Debug.fail("Accessor has wrong kind"):S.forEach(e,function(e){S.isAccessor(e)&&br(e)===br(t)&&Tt(e.name)===Tt(t.name)&&(r?n=n||e:r=e,172!==e.kind||i||(i=e),173!==e.kind||a||(a=e))}),{firstAccessor:r,secondAccessor:n,getAccessor:i,setAccessor:a}},S.getEffectiveTypeAnnotationNode=pr,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||(he(e)?S.getJSDocReturnType(e):void 0)},S.getJSDocTypeParameterDeclarations=function(e){return S.flatMap(S.getJSDocTags(e),function(e){return t=e,!S.isJSDocTemplateTag(t)||320===t.parent.kind&&t.parent.tags.some(We)?void 0:e.typeParameters;var t})},S.getEffectiveSetAccessorTypeAnnotationNode=function(e){return(e=lr(e))&&pr(e)},S.emitNewLineBeforeLeadingComments=fr,S.emitNewLineBeforeLeadingCommentsOfPosition=gr,S.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&sr(e,r)!==sr(e,n)&&t.writeLine()},S.emitComments=mr,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 m(t,e.pos)})):s=S.getLeadingCommentRanges(t,i.pos),s){for(var l=[],u=void 0,_=0,d=s;_<d.length;_++){var p=d[_];if(u)if(sr(e,u.end)+2<=sr(e,p.pos))break;l.push(p),u=p}l.length&&sr(e,S.last(l).end)+2<=sr(e,S.skipTrivia(t,i.pos))&&(fr(e,r,i,s),mr(t,e,r,l,!1,!0,a,n),c={nodePos:i.pos,detachedCommentEndPos:S.last(l).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,l=n,u=o.line;l<i;u++){var _=u+1===s?e.length+1:t[u+1];if(l!==n){void 0===c&&(c=yr(e,t[o.line],n));var d=r.getIndent()*Xt()-c+yr(e,l,_);if(0<d){var p=d%Xt(),f=Qt((d-p)/Xt());for(r.rawWrite(f);p;)r.rawWrite(" "),p--}else r.rawWrite("")}g=e,m=i,y=r,h=a,d=l,f=_,f=Math.min(m,f-1),!void((d=S.trimString(g.substring(d,f)))?(y.writeComment(d),f!==m&&y.writeLine()):y.rawWrite(h)),l=_}else r.writeComment(e.substring(n,i));var g,m,y,h},S.hasEffectiveModifiers=function(e){return 0!==kr(e)},S.hasSyntacticModifiers=function(e){return 0!==Er(e)},S.hasEffectiveModifier=hr,S.hasSyntacticModifier=vr,S.isStatic=br,S.hasStaticModifier=xr,S.hasOverrideModifier=function(e){return hr(e,16384)},S.hasAbstractModifier=function(e){return vr(e,128)},S.hasAmbientModifier=function(e){return vr(e,2)},S.hasEffectiveReadonlyModifier=Dr,S.getSelectedEffectiveModifierFlags=Sr,S.getSelectedSyntacticModifierFlags=Tr,S.getEffectiveModifierFlags=kr,S.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Cr(e,!0,!0)},S.getSyntacticModifierFlags=Er,S.getEffectiveModifierFlagsNoCache=function(e){return Ar(e)|Nr(e)},S.getSyntacticModifierFlagsNoCache=Ar,S.modifiersToFlags=Fr,S.modifierToFlag=Pr,S.createModifiers=function(e){return e?S.factory.createNodeArray(S.factory.createModifiersFromModifierFlags(e)):void 0},S.isLogicalOperator=function(e){return 56===e||55===e||53===e},S.isLogicalOrCoalescingAssignmentOperator=wr,S.isLogicalOrCoalescingAssignmentExpression=function(e){return wr(e.operatorToken.kind)},S.isAssignmentOperator=Ir,S.tryGetClassExtendingExpressionWithTypeArguments=Or,S.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Mr,S.isAssignmentExpression=Lr,S.isLeftHandSideOfAssignment=function(e){return Lr(e.parent)&&e.parent.left===e},S.isDestructuringAssignment=function(e){if(Lr(e,!0)){e=e.left.kind;return 205===e||204===e}return!1},S.isExpressionWithTypeArgumentsInClassExtendsClause=Rr,S.isEntityNameExpression=Br,S.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 161:for(;e=e.left,79!==e.kind;);return e;case 206:for(;e=e.expression,79!==e.kind;);return e}},S.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||231===t.kind||206===t.kind&&e(t.expression)||212===t.kind&&e(t.expression)},S.isPropertyAccessEntityNameExpression=jr,S.tryGetPropertyAccessOrIdentifierToString=function e(t){var r;if(S.isPropertyAccessExpression(t)){if(void 0!==(r=e(t.expression)))return r+"."+B(t.name)}else if(S.isElementAccessExpression(t)){if(void 0!==(r=e(t.expression))&&S.isPropertyName(t.argumentExpression))return r+"."+Tt(t.argumentExpression)}else if(S.isIdentifier(t))return S.unescapeLeadingUnderscores(t.escapedText)},S.isPrototypeAccess=Jr,S.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 161===e.parent.kind&&e.parent.right===e||206===e.parent.kind&&e.parent.name===e},S.isRightSideOfAccessExpression=zr,S.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(e){return S.isQualifiedName(e.parent)&&e.parent.right===e||S.isPropertyAccessExpression(e.parent)&&e.parent.name===e||S.isJSDocMemberName(e.parent)&&e.parent.right===e},S.isEmptyObjectLiteral=function(e){return 205===e.kind&&0===e.properties.length},S.isEmptyArrayLiteral=function(e){return 204===e.kind&&0===e.elements.length},S.getLocalSymbolForExportDefault=function(e){if((t=e)&&0<S.length(t.declarations)&&vr(t.declarations[0],512)&&e.declarations)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(Gn,function(e){return S.fileExtensionIs(t,e)})};var e,Kr,Ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Vr(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+=Ur.charAt(t)+Ur.charAt(r)+Ur.charAt(n)+Ur.charAt(i),s+=3;return a}function qr(e,t){return void 0===t&&(t=e),S.Debug.assert(e<=t||-1===t),{pos:e,end:t}}function Wr(e,t){return qr(t,e.end)}function Hr(e){return e.decorators&&0<e.decorators.length?Wr(e,e.decorators.end):e}function Gr(e,t,r){return Qr(Xr(e,r,!1),t.end,r)}function Qr(e,t,r){return 0===S.getLinesBetweenPositions(r,e,t)}function Xr(e,t,r){return ai(e.pos)?-1:S.skipTrivia(t.text,e.pos,!1,r)}function Yr(e){return void 0!==e.initializer}function Zr(e){return 33554432&e.flags?e.checkFlags:0}function $r(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 212:return $r(t);case 220:case 219:var r=t.operator;return 45===r||46===r?i():0;case 221:var r=t.left,n=t.operatorToken;return r===e&&Ir(n.kind)?63===n.kind?1:i():0;case 206:return t.name!==e?0:$r(t);case 296:n=$r(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 297:return e===t.objectAssignmentInitializer?0:$r(t.parent);case 204:return $r(t);default:return 0}function i(){return t.parent&&238===st(t.parent).kind?1:2}}function en(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 tn(e){return null===(e=e.declarations)||void 0===e?void 0:e.find(S.isClassLike)}function rn(e){return 206===e.kind||207===e.kind}function nn(e){for(;rn(e);)e=e.expression;return e}function an(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 on(e,t){this.flags=t,(S.Debug.isDebugging||S.tracing)&&(this.checker=e)}function sn(e,t){this.flags=t,S.Debug.isDebugging&&(this.checker=e)}function cn(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 ln(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 un(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 _n(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function dn(e,r,n){return void 0===n&&(n=0),e.replace(/{(\d+)}/g,function(e,t){return""+S.Debug.checkDefined(r[+t+n])})}function pn(e){return Kr&&Kr[e.key]||e.message}function fn(e,t,r,n){J(e,t,r);var i=pn(n);return 4<arguments.length&&(i=dn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function gn(e){var t=pn(e);return 1<arguments.length&&(t=dn(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 mn(e){return e.file?e.file.path:void 0}function yn(e,t){return hn(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 yn(e,r.relatedInformation[t])})||0;return e.relatedInformation?-1:1}(e,t)||0}function hn(e,t){return S.compareStringsCaseSensitive(mn(e),mn(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 vn(e){if(2&e.transformFlags)return S.isJsxOpeningLikeElement(e)||S.isJsxFragment(e)?e:S.forEachChild(e,vn)}function bn(e){return e.isDeclarationFile?void 0:vn(e)}function xn(e){return e.impliedNodeFormat===S.ModuleKind.ESNext&&!e.isDeclarationFile||void 0}function Dn(e){return e.target||e.module===S.ModuleKind.Node16&&9||e.module===S.ModuleKind.NodeNext&&99||0}function Sn(e){return"number"==typeof e.module?e.module:2<=Dn(e)?S.ModuleKind.ES2015:S.ModuleKind.CommonJS}function Tn(e){return e.moduleDetection||S.ModuleDetectionKind.Auto}function Cn(e){if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(Sn(e)){case S.ModuleKind.Node16:case S.ModuleKind.NodeNext:return!0}}function kn(e){return!(!e.declaration&&!e.composite)}function En(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Nn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function An(e,t){return t.strictFlag?En(e,t.name):e[t.name]}function Fn(e,t){return void 0!==e&&("node_modules"===t(e)||S.startsWith(e,"@"))}S.convertToBase64=Vr,S.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Vr(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)!==Ur.charCodeAt(64);){var a=Ur.indexOf(t[i]),o=Ur.indexOf(t[i+1]),s=Ur.indexOf(t[i+2]),c=Ur.indexOf(t[i+3]),l=(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(l):0==o&&0!==c?n.push(l,a):n.push(l,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=qr,S.moveRangeEnd=function(e,t){return qr(e.pos,t)},S.moveRangePos=Wr,S.moveRangePastDecorators=Hr,S.moveRangePastModifiers=function(e){return e.modifiers&&0<e.modifiers.length?Wr(e,e.modifiers.end):Hr(e)},S.isCollapsedRange=function(e){return e.pos===e.end},S.createTokenRange=function(e,t){return qr(e,e+S.tokenToString(t).length)},S.rangeIsOnSingleLine=function(e,t){return Gr(e,e,t)},S.rangeStartPositionsAreOnSameLine=function(e,t,r){return Qr(Xr(e,r,!1),Xr(t,r,!1),r)},S.rangeEndPositionsAreOnSameLine=function(e,t,r){return Qr(e.end,t.end,r)},S.rangeStartIsOnSameLineAsRangeEnd=Gr,S.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Qr(e.end,Xr(t,r,!1),r)},S.getLinesBetweenRangeEndAndRangeStart=function(e,t,r,n){return n=Xr(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!Qr(e.pos,e.end,t)},S.positionsAreOnSameLine=Qr,S.getStartPositionOfRange=Xr,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 260:case 261:return t===t.parent.name}return!1},S.getInitializedVariables=function(e){return S.filter(e.declarations,Yr)},S.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},S.closeFileWatcher=function(e){e.close()},S.getCheckFlags=Zr,S.getDeclarationModifierFlagsFromSymbol=function(e,t){if(void 0===t&&(t=!1),e.valueDeclaration){var r=t&&e.declarations&&S.find(e.declarations,function(e){return 173===e.kind})||e.valueDeclaration,r=S.getCombinedModifierFlags(r);return e.parent&&32&e.parent.flags?r:-29&r}if(6&Zr(e)){r=e.checkFlags;return(1024&r?8:256&r?4:16)|(2048&r?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===$r(e)},S.isWriteAccess=function(e){return 0!==$r(e)},(e={})[e.Read=0]="Read",e[e.Write=1]="Write",e[e.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=en,S.mutateMap=function(r,e,t){en(r,e,t);var n=t.createNewValue;e.forEach(function(e,t){r.has(t)||r.set(t,n(t,e))})},S.isAbstractConstructorSymbol=function(e){if(32&e.flags){e=tn(e);return!!e&&vr(e,128)}return!1},S.getClassLikeDeclarationOfSymbol=tn,S.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},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:b(e)},S.getLastChild=function(e){var r;return S.forEachChild(e,function(e){d(e)&&(r=e)},function(e){for(var t=e.length-1;0<=t;t--)if(d(e[t])){r=e[t];break}}),r},S.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!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 177<=e&&e<=200||130===e||155===e||147===e||158===e||148===e||133===e||150===e||151===e||114===e||153===e||143===e||228===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e},S.isAccessExpression=rn,S.getNameOfAccessExpression=function(e){return 206===e.kind?e.name:(S.Debug.assert(207===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 269===e.kind||273===e.kind},S.getLeftmostAccessExpression=nn,S.forEachNameInAccessChainWalkingLeft=function(e,n){if(rn(e.parent)&&zr(e))return function e(t){if(206===t.kind){var r=n(t.name);if(void 0!==r)return r}else if(207===t.kind){if(!S.isIdentifier(t.argumentExpression)&&!S.isStringLiteralLike(t.argumentExpression))return;var r=n(t.argumentExpression);if(void 0!==r)return r}if(rn(t.expression))return e(t.expression);if(S.isIdentifier(t.expression))return n(t.expression);return}(e.parent)},S.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 220:e=e.operand;continue;case 221:e=e.left;continue;case 222:e=e.condition;continue;case 210:e=e.tag;continue;case 208:if(t)return e;case 229:case 207:case 206:case 230:case 350:e=e.expression;continue}return e}},S.objectAllocator={getNodeConstructor:function(){return cn},getTokenConstructor:function(){return ln},getIdentifierConstructor:function(){return un},getPrivateIdentifierConstructor:function(){return cn},getSourceFileConstructor:function(){return cn},getSymbolConstructor:function(){return an},getTypeConstructor:function(){return on},getSignatureConstructor:function(){return sn},getSourceMapSourceConstructor:function(){return _n}},S.setObjectAllocator=function(e){Object.assign(S.objectAllocator,e)},S.formatStringFromArgs=dn,S.setLocalizedDiagnosticMessages=function(e){Kr=e},S.maybeSetLocalizedDiagnosticMessages=function(e){!Kr&&e&&(Kr=e())},S.getLocaleSpecificMessage=pn,S.createDetachedDiagnostic=function(e,t,r,n){J(void 0,t,r);var i=pn(n);return 4<arguments.length&&(i=dn(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 l=c[s];void 0===(a=l).file&&void 0!==a.start&&void 0!==a.length&&"string"==typeof a.fileName&&l.fileName===n?(S.Debug.assertLessThanOrEqual(l.start,i),S.Debug.assertLessThanOrEqual(l.start+l.length,i),o.relatedInformation.push(e(l,r))):o.relatedInformation.push(l)}}return o}(a,t))}return r},S.createFileDiagnostic=fn,S.formatMessage=function(e,t){return t=pn(t),2<arguments.length&&(t=dn(t,arguments,2)),t},S.createCompilerDiagnostic=gn,S.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},S.chainDiagnosticMessages=function(e,t){var r=pn(t);return 2<arguments.length&&(r=dn(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=yn,S.compareDiagnosticsSkipRelatedInformation=hn,S.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},S.getSetExternalModuleIndicator=function(e){switch(Tn(e)){case S.ModuleDetectionKind.Force:return function(e){e.externalModuleIndicator=!e.isDeclarationFile||S.isFileProbablyExternalModule(e)};case S.ModuleDetectionKind.Legacy:return function(e){e.externalModuleIndicator=S.isFileProbablyExternalModule(e)};case S.ModuleDetectionKind.Auto:var t=[S.isFileProbablyExternalModule];4!==e.jsx&&5!==e.jsx||t.push(bn);var r=Sn(e);r!==S.ModuleKind.Node16&&r!==S.ModuleKind.NodeNext||t.push(xn);var n=S.or.apply(void 0,t);return function(e){e.externalModuleIndicator=n(e)}}},S.getEmitScriptTarget=Dn,S.getEmitModuleKind=Sn,S.getEmitModuleResolutionKind=function(e){var t=e.moduleResolution;if(void 0===t)switch(Sn(e)){case S.ModuleKind.CommonJS:t=S.ModuleResolutionKind.NodeJs;break;case S.ModuleKind.Node16:t=S.ModuleResolutionKind.Node16;break;case S.ModuleKind.NodeNext:t=S.ModuleResolutionKind.NodeNext;break;default:t=S.ModuleResolutionKind.Classic}return t},S.getEmitModuleDetectionKind=Tn,S.hasJsonModuleEmitEnabled=function(e){switch(Sn(e)){case S.ModuleKind.CommonJS:case S.ModuleKind.AMD:case S.ModuleKind.ES2015:case S.ModuleKind.ES2020:case S.ModuleKind.ES2022:case S.ModuleKind.ESNext:case S.ModuleKind.Node16:case S.ModuleKind.NodeNext: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!(!kn(e)||!e.declarationMap)},S.getESModuleInterop=Cn,S.getAllowSyntheticDefaultImports=function(e){var t=Sn(e);return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:Cn(e)||t===S.ModuleKind.System},S.getEmitDeclarations=kn,S.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},S.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},S.getStrictOptionValue=En,S.getAllowJSCompilerOption=Nn,S.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?9<=Dn(e):e.useDefineForClassFields},S.compilerOptionsAffectSemanticDiagnostics=function(e,t){return a(t,e,S.semanticDiagnosticsOptionDeclarations)},S.compilerOptionsAffectEmit=function(e,t){return a(t,e,S.affectsEmitOptionDeclarations)},S.getCompilerOptionValue=An,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[t.length-1]: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?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},S.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},S.createSymlinkCache=function(n,i){var a,o,r,s=!1;return{getSymlinkedFiles:function(){return r},getSymlinkedDirectories:function(){return a},getSymlinkedDirectoriesByRealpath:function(){return o},setSymlinkedFile:function(e,t){return(r=r||new S.Map).set(e,t)},setSymlinkedDirectory:function(e,t){var r=S.toPath(e,n,i);fi(r)||(r=S.ensureTrailingDirectorySeparator(r),!1===t||null!=a&&a.has(r)||(o=o||S.createMultiMap()).add(S.ensureTrailingDirectorySeparator(t.realPath),e),(a=a||new S.Map).set(r,t))},setSymlinksFromResolutions:function(e,t){var r,n=this;S.Debug.assert(!s),s=!0;for(var i=0,a=e;i<a.length;i++)null!==(r=a[i].resolvedModules)&&void 0!==r&&r.forEach(function(e){return c(n,e)});null!=t&&t.forEach(function(e){return c(n,e)})},hasProcessedResolutions:function(){return s}};function c(e,t){var r;t&&t.originalPath&&t.resolvedFileName&&(r=t.resolvedFileName,t=t.originalPath,e.setSymlinkedFile(S.toPath(t,n,i),r),t=(r=function(e,t,r,n){var i=S.getPathComponents(S.getNormalizedAbsolutePath(e,r)),a=S.getPathComponents(S.getNormalizedAbsolutePath(t,r)),o=!1;for(;2<=i.length&&2<=a.length&&!Fn(i[i.length-2],n)&&!Fn(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}(r,t,n,i)||S.emptyArray)[0],r=r[1],t&&r&&e.setSymlinkedDirectory(r,{real:t,realPath:S.toPath(t,n,i)}))}},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 Pn=/[^\w\s\/]/g;function wn(e){return"\\"+e}S.regExpEscape=function(e){return e.replace(Pn,wn)};var In=[42,63];S.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var On="(?!(".concat(S.commonPackageFolders.join("|"),")(/|$))"),Mn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(On,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return Un(e,Mn.singleAsteriskRegexFragment)}},Ln={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(On,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return Un(e,Ln.singleAsteriskRegexFragment)}},Rn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Un(e,Rn.singleAsteriskRegexFragment)}},Bn={files:Mn,directories:Ln,exclude:Rn};function jn(e,t,r){t=Jn(e,t,r);if(t&&t.length){t=t.map(function(e){return"(".concat(e,")")}).join("|"),r="exclude"===r?"($|/)":"$";return"^(".concat(t,")").concat(r)}}function Jn(e,t,r){if(void 0!==e&&0!==e.length)return S.flatMap(e,function(e){return e&&Kn(e,t,r,Bn[r])})}function zn(e){return!/[.*?]/.test(e)}function Kn(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){e[0]=S.removeTrailingDirectorySeparator(e[0]),zn(t)&&e.push("**","*");for(var l=0,u=0,_=e;u<_.length;u++){var d,p=_[u];"**"===p?s+=a:("directories"===r&&(s+="(",l++),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(Pn,o))!==p&&(s+=On),s+=d):s+=p.replace(Pn,o)),c=!0}for(;0<l;)s+=")?",l--;return s}}function Un(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Vn(e,t,r,n,i){e=S.normalizePath(e),i=S.normalizePath(i);i=S.combinePaths(i,e);return{includeFilePatterns:S.map(Jn(r,i,"files"),function(e){return"^".concat(e,"$")}),includeFilePattern:jn(r,i,"files"),includeDirectoryPattern:jn(r,i,"directories"),excludePattern:jn(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,In);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,l=t;c<l.length;c++)!function(t){S.every(i,function(e){return!S.containsPath(e,t,r,!n)})&&i.push(t)}(l[c])}return i}(e,r,n)}}function qn(e,t){return new RegExp(e,t?"":"i")}function Wn(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}S.getRegularExpressionForWildcard=jn,S.getRegularExpressionsForWildcards=Jn,S.isImplicitGlob=zn,S.getPatternFromSpec=function(e,t,r){return(t=e&&Kn(e,t,r,Bn[r]))&&"^(".concat(t,")").concat("exclude"===r?"($|/)":"$")},S.getFileMatcherPatterns=Vn,S.getRegexFromPattern=qn,S.matchFiles=function(e,f,t,r,n,i,a,g,m){e=S.normalizePath(e),i=S.normalizePath(i);for(var y=(r=Vn(e,t,r,n,i)).includeFilePatterns&&r.includeFilePatterns.map(function(e){return qn(e,n)}),h=r.includeDirectoryPattern&&qn(r.includeDirectoryPattern,n),v=r.excludePattern&&qn(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 l=c[s];o(l)}if(void 0!==t&&0===--t)return;for(var u=0,_=S.sort(a,S.compareStringsCaseSensitive);u<_.length;u++){var l=_[u],d=S.combinePaths(n,l),p=S.combinePaths(i,l);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||Wn(e)||3},S.getScriptKindFromFileName=Wn,S.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],S.supportedTSExtensionsFlat=S.flatten(S.supportedTSExtensions);var Hn=__spreadArray(__spreadArray([],S.supportedTSExtensions,!0),[[".json"]],!1),Gn=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];S.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],S.supportedJSExtensionsFlat=S.flatten(S.supportedJSExtensions);var Qn=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Xn=__spreadArray(__spreadArray([],Qn,!0),[[".json"]],!1);function Yn(e,t){var r=e&&Nn(e);if(!t||0===t.length)return r?Qn:S.supportedTSExtensions;var e=r?Qn:S.supportedTSExtensions,n=S.flatten(e);return __spreadArray(__spreadArray([],e,!0),S.mapDefined(t,function(e){return 7===e.scriptKind||r&&(1===(t=e.scriptKind)||2===t)&&-1===n.indexOf(e.extension)?[e.extension]:void 0;var t}),!0)}function Zn(e,t){return e&&e.resolveJsonModule?t===Qn?Xn:t===S.supportedTSExtensions?Hn:__spreadArray(__spreadArray([],t,!0),[[".json"]],!1):t}function $n(e){e=e.match(/\//g);return e?e.length:0}S.supportedDeclarationExtensions=[".d.ts",".d.cts",".d.mts"],S.getSupportedExtensions=Yn,S.getSupportedExtensionsWithJsonIfResolveJsonModule=Zn,S.hasJSFileExtension=function(t){return S.some(S.supportedJSExtensionsFlat,function(e){return S.fileExtensionIs(t,e)})},S.hasTSFileExtension=function(t){return S.some(S.supportedTSExtensionsFlat,function(e){return S.fileExtensionIs(t,e)})},S.isSupportedSourceFileName=function(e,t,r){if(!e)return!1;for(var r=Yn(t,r),n=0,i=S.flatten(Zn(t,r));n<i.length;n++){var a=i[n];if(S.fileExtensionIs(e,a))return!0}return!1},S.compareNumberOfDirectorySeparators=function(e,t){return S.compareValues($n(e),$n(t))};var ei=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function ti(e){for(var t=0,r=ei;t<r.length;t++){var n=ri(e,r[t]);if(void 0!==n)return n}return e}function ri(e,t){return S.fileExtensionIs(e,t)?ni(e,t):void 0}function ni(e,t){return e.substring(0,e.length-t.length)}function ii(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function ai(e){return!(0<=e)}function oi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function si(t){return S.find(ei,function(e){return S.fileExtensionIs(t,e)})}function ci(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&S.equalOwnProperties(e,t,ci)}function li(e,t){return e.pos=t,e}function ui(e,t){return e.end=t,e}function _i(e,t,r){return ui(li(e,t),r)}function di(e,t){return e&&t&&(e.parent=t),e}function pi(e){return!S.isOmittedExpression(e)}function fi(t){return S.some(S.ignoredPaths,function(e){return S.stringContains(t,e)})}function gi(e){return 254===e.kind&&292===e.parent.kind}function mi(e){return(+e).toString()===e}S.removeFileExtension=ti,S.tryRemoveExtension=ri,S.removeExtension=ni,S.changeExtension=function(e,t){return S.changeAnyExtension(e,t,ei,!1)},S.tryParsePattern=ii,S.tryParsePatterns=function(e){return S.mapDefined(S.getOwnKeys(e),ii)},S.positionIsSynthesized=ai,S.extensionIsTS=oi,S.resolutionExtensionIsTSOrJson=function(e){return oi(e)||".json"===e},S.extensionFromPath=function(e){var t=si(e);return void 0!==t?t:S.Debug.fail("File ".concat(e," has unknown extension."))},S.isAnySupportedFileExtension=function(e){return void 0!==si(e)},S.tryGetExtensionFromPath=si,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(a===t)return t;S.isString(a)||r.push(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:y(e),end:e.end}},S.rangeOfTypeParameters=function(e,t){return{pos:t.pos-1,end:S.skipTrivia(e.text,t.end)+1}},S.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},S.isJsonEqual=ci,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 l=c>>>4,u=e.charCodeAt(s),u=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=u;u=u>>>16;u&&(o[l+1]|=u)}for(var _="",d=o.length-1,p=!0;p;){for(var f=0,p=!1,l=d;0<=l;l--){var g=f<<16|o[l],m=g/10|0,f=g-10*(o[l]=m);m&&!p&&(d=l,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!!(16777216&e.flags)||ge(e)||function(e){if(79!==e.kind)return!1;e=S.findAncestor(e.parent,function(e){switch(e.kind){case 291:return!0;case 206:case 228:return!1;default:return"quit"}});return 117===(null==e?void 0:e.token)||258===(null==e?void 0:e.parent.kind)}(e)||function(e){for(;79===e.kind||206===e.kind;)e=e.parent;if(162!==e.kind)return!1;if(vr(e.parent,128))return!0;var t=e.parent.parent.kind;return 258===t||182===t}(e)||!(pe(e)||(e=e,S.isIdentifier(e)&&S.isShorthandPropertyAssignment(e.parent)&&e.parent.name===e))},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=li,S.setTextRangeEnd=ui,S.setTextRangePosEnd=_i,S.setTextRangePosWidth=function(e,t,r){return _i(e,t,t+r)},S.setNodeFlags=function(e,t){return e&&(e.flags=t),e},S.setParent=di,S.setEachParent=function(e,t){if(e)for(var r=0,n=e;r<n.length;r++)di(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";di(e,t)}},S.isPackedArrayLiteral=function(e){return S.isArrayLiteralExpression(e)&&S.every(e.elements,pi)},S.expressionResultIsUnused=function(e){for(S.Debug.assertIsDefined(e.parent);;){var t=e.parent;if(S.isParenthesizedExpression(t))e=t;else{if(S.isExpressionStatement(t)||S.isVoidExpression(t)||S.isForStatement(t)&&(t.initializer===e||t.incrementor===e))return!0;if(S.isCommaListExpression(t)){if(e!==S.last(t.elements))return!0;e=t}else{if(!S.isBinaryExpression(t)||27!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}},S.containsIgnoredPath=fi,S.getContainingNodeArray=function(e){if(e.parent){switch(e.kind){case 163:var t=e.parent;return 190===t.kind?void 0:t.typeParameters;case 164:return e.parent.parameters;case 199:case 233:return e.parent.templateSpans;case 165:return e.parent.decorators;case 291:return e.parent.heritageClauses}var r=e.parent;if(S.isJSDocTag(e))return S.isJSDocTypeLiteral(e.parent)?void 0:e.parent.tags;switch(r.kind){case 182:case 258:return S.isTypeElement(e)?r.members:void 0;case 187:case 188:return r.types;case 184:case 204:case 351:case 269:case 273:return r.elements;case 205:case 286:return r.properties;case 208:case 209:return S.isTypeNode(e)?r.typeArguments:r.expression===e?void 0:r.arguments;case 278:case 282:return S.isJsxChild(e)?r.children:void 0;case 280:case 279:return S.isTypeNode(e)?r.typeArguments:void 0;case 235:case 289:case 290:case 262:return r.statements;case 263:return r.clauses;case 257:case 226:return S.isClassElement(e)?r.members:void 0;case 260:return S.isEnumMember(e)?r.members:void 0;case 305:return r.statements}}},S.hasContextSensitiveParameters=function(e){if(!e.typeParameters){if(S.some(e.parameters,function(e){return!pr(e)}))return!0;if(214!==e.kind){e=S.firstOrUndefined(e.parameters);if(!e||!ur(e))return!0}}return!1},S.isInfinityOrNaNString=function(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e},S.isCatchClauseVariableDeclaration=gi,S.isParameterOrCatchClauseVariable=function(e){return!!(e=e.valueDeclaration&&Et(e.valueDeclaration))&&(S.isParameter(e)||gi(e))},S.isFunctionExpressionOrArrowFunction=function(e){return 213===e.kind||214===e.kind},S.escapeSnippetText=function(e){return e.replace(/\$/gm,function(){return"\\$"})},S.isNumericLiteralName=mi,S.createPropertyNameNodeForIdentifierOrLiteral=function(e,t,r,n){return S.isIdentifierText(e,t)?S.factory.createIdentifier(e):!n&&mi(e)&&0<=+e?S.factory.createNumericLiteral(+e):S.factory.createStringLiteral(e,!!r)},S.isThisTypeParameter=function(e){return!!(262144&e.flags&&e.isThisType)},S.getNodeModulePathParts=function(e){var t,r=0,n=0,i=0;(t={})[t.BeforeNodeModules=0]="BeforeNodeModules",t[t.NodeModules=1]="NodeModules",t[t.Scope=2]="Scope",t[t.PackageContent=3]="PackageContent";for(var a=0,o=0,s=0;0<=o;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf(S.nodeModulesPathPart,a)===a&&(r=a,n=o,s=1);break;case 1:case 2:s=1===s&&"@"===e.charAt(a+1)?2:(i=o,3);break;case 3:s=e.indexOf(S.nodeModulesPathPart,a)===a?1:3}return 1<s?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:a}:void 0},S.getParameterTypeNode=function(e){var t;return 340===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type}}(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(v){v.createParenthesizerRules=function(i){var r,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(t){r=r||new v.Map;var e=r.get(t);e||(e=function(e){return o(t,e)},r.set(t,e));return e},getParenthesizeRightSideOfBinaryForOperator:function(t){n=n||new v.Map;var e=n.get(t);e||(e=function(e){return s(t,void 0,e)},n.set(t,e));return e},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(e){return v.isCommaSequence(e)?i.createParenthesizedExpression(e):e},parenthesizeConditionOfConditionalExpression:function(e){var t=v.getOperatorPrecedence(222,57),r=v.skipPartiallyEmittedExpressions(e),r=v.getExpressionPrecedence(r);return 1===v.compareValues(r,t)?e:i.createParenthesizedExpression(e)},parenthesizeBranchOfConditionalExpression:function(e){var t=v.skipPartiallyEmittedExpressions(e);return v.isCommaSequence(t)?i.createParenthesizedExpression(e):e},parenthesizeExpressionOfExportDefault:function(e){var t=v.skipPartiallyEmittedExpressions(e),r=v.isCommaSequence(t);if(!r)switch(v.getLeftmostExpression(t,!1).kind){case 226:case 213:r=!0}return r?i.createParenthesizedExpression(e):e},parenthesizeExpressionOfNew:function(e){var t=v.getLeftmostExpression(e,!0);switch(t.kind){case 208:return i.createParenthesizedExpression(e);case 209:return t.arguments?e:i.createParenthesizedExpression(e)}return c(e)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(e){return v.isLeftHandSideExpression(e)?e:v.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeOperandOfPrefixUnary:function(e){return v.isUnaryExpression(e)?e:v.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeExpressionsOfCommaDelimitedList:function(e){var t=v.sameMap(e,u);return v.setTextRange(i.createNodeArray(t,e.hasTrailingComma),e)},parenthesizeExpressionForDisallowedComma:u,parenthesizeExpressionOfExpressionStatement:function(e){var t=v.skipPartiallyEmittedExpressions(e);if(v.isCallExpression(t)){var r=t.expression,n=v.skipPartiallyEmittedExpressions(r).kind;if(213===n||214===n){r=i.updateCallExpression(t,v.setTextRange(i.createParenthesizedExpression(r),r),t.typeArguments,t.arguments);return i.restoreOuterExpressions(e,r,8)}}t=v.getLeftmostExpression(t,!1).kind;return 205!==t&&213!==t?e:v.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeConciseBodyOfArrowFunction:function(e){return v.isBlock(e)||!v.isCommaSequence(e)&&205!==v.getLeftmostExpression(e,!1).kind?e:v.setTextRange(i.createParenthesizedExpression(e),e)},parenthesizeCheckTypeOfConditionalType:t,parenthesizeExtendsTypeOfConditionalType:function(e){if(189===e.kind)return i.createParenthesizedType(e);return e},parenthesizeConstituentTypesOfUnionType:function(e){return i.createNodeArray(v.sameMap(e,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(e){return i.createNodeArray(v.sameMap(e,d))},parenthesizeConstituentTypeOfIntersectionType:d,parenthesizeOperandOfTypeOperator:p,parenthesizeOperandOfReadonlyTypeOperator:function(e){if(193===e.kind)return i.createParenthesizedType(e);return p(e)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(e){return i.createNodeArray(v.sameMap(e,g))},parenthesizeElementTypeOfTupleType:g,parenthesizeTypeOfOptionalType:function(e){return m(e)?i.createParenthesizedType(e):f(e)},parenthesizeTypeArguments:function(e){if(v.some(e))return i.createNodeArray(v.sameMap(e,h))},parenthesizeLeadingTypeArgument:y};function l(e){if(e=v.skipPartiallyEmittedExpressions(e),v.isLiteralKind(e.kind))return e.kind;if(221!==e.kind||39!==e.operatorToken.kind)return 0;if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;var t=l(e.left),t=v.isLiteralKind(t)&&t===l(e.right)?t:0;return e.cachedLiteralKind=t}function a(e,t,r,n){return 212!==v.skipPartiallyEmittedExpressions(t).kind&&function(e,t,r,n){var i=v.getOperatorPrecedence(221,e),a=v.getOperatorAssociativity(221,e),o=v.skipPartiallyEmittedExpressions(t);if(!r&&214===t.kind&&3<i)return 1;var s=v.getExpressionPrecedence(o);switch(v.compareValues(s,i)){case-1:return r||1!==a||224!==t.kind?1:void 0;case 1:return;case 0:if(r)return 1===a;if(v.isBinaryExpression(o)&&o.operatorToken.kind===e){if(41===(c=e)||51===c||50===c||52===c)return;if(39===e){var c=n?l(n):0;if(v.isLiteralKind(c)&&c===l(o))return}}return 0===v.getExpressionAssociativity(o)}}(e,t,r,n)?i.createParenthesizedExpression(t):t}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(e){var t=v.skipPartiallyEmittedExpressions(e);return v.isLeftHandSideExpression(t)&&(209!==t.kind||t.arguments)?e:v.setTextRange(i.createParenthesizedExpression(e),e)}function u(e){var t=v.skipPartiallyEmittedExpressions(e),t=v.getExpressionPrecedence(t);return v.getOperatorPrecedence(221,27)<t?e:v.setTextRange(i.createParenthesizedExpression(e),e)}function t(e){switch(e.kind){case 179:case 180:case 189:return i.createParenthesizedType(e)}return e}function _(e){switch(e.kind){case 187:case 188:return i.createParenthesizedType(e)}return t(e)}function d(e){switch(e.kind){case 187:case 188:return i.createParenthesizedType(e)}return _(e)}function p(e){return 188===e.kind?i.createParenthesizedType(e):d(e)}function f(e){switch(e.kind){case 190:case 193:case 181:return i.createParenthesizedType(e)}return p(e)}function g(e){return m(e)?i.createParenthesizedType(e):e}function m(e){return v.isJSDocNullableType(e)?e.postfix:v.isNamedTupleMember(e)||v.isFunctionTypeNode(e)||v.isConstructorTypeNode(e)||v.isTypeOperatorNode(e)?m(e.type):v.isConditionalTypeNode(e)?m(e.falseType):v.isUnionTypeNode(e)||v.isIntersectionTypeNode(e)?m(v.last(e.types)):!!v.isInferTypeNode(e)&&(!!e.typeParameter.constraint&&m(e.typeParameter.constraint))}function y(e){return v.isFunctionOrConstructorTypeNode(e)&&e.typeParameters?i.createParenthesizedType(e):e}function h(e,t){return 0===t?y(e):e}},v.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(e){return v.identity},getParenthesizeRightSideOfBinaryForOperator:function(e){return v.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:v.identity,parenthesizeConditionOfConditionalExpression:v.identity,parenthesizeBranchOfConditionalExpression:v.identity,parenthesizeExpressionOfExportDefault:v.identity,parenthesizeExpressionOfNew:function(e){return v.cast(e,v.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(e){return v.cast(e,v.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(e){return v.cast(e,v.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(e){return v.cast(e,v.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(e){return v.cast(e,v.isNodeArray)},parenthesizeExpressionForDisallowedComma:v.identity,parenthesizeExpressionOfExpressionStatement:v.identity,parenthesizeConciseBodyOfArrowFunction:v.identity,parenthesizeCheckTypeOfConditionalType:v.identity,parenthesizeExtendsTypeOfConditionalType:v.identity,parenthesizeConstituentTypesOfUnionType:function(e){return v.cast(e,v.isNodeArray)},parenthesizeConstituentTypeOfUnionType:v.identity,parenthesizeConstituentTypesOfIntersectionType:function(e){return v.cast(e,v.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:v.identity,parenthesizeOperandOfTypeOperator:v.identity,parenthesizeOperandOfReadonlyTypeOperator:v.identity,parenthesizeNonArrayTypeOfPostfixType:v.identity,parenthesizeElementTypesOfTupleType:function(e){return v.cast(e,v.isNodeArray)},parenthesizeElementTypeOfTupleType:v.identity,parenthesizeTypeOfOptionalType:v.identity,parenthesizeTypeArguments:function(e){return e&&v.cast(e,v.isNodeArray)},parenthesizeLeadingTypeArgument:v.identity}}(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 202:case 204:return o(e);case 201:case 205: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(oi){var si,ci=0;function e(e,l){var c=8&e?li:ui,s=oi.memoize(function(){return 1&e?oi.nullParenthesizerRules:oi.createParenthesizerRules(y)}),t=oi.memoize(function(){return 2&e?oi.nullNodeConverters:oi.createNodeConverters(y)}),r=oi.memoizeOne(function(r){return function(e,t){return Dt(e,r,t)}}),n=oi.memoizeOne(function(t){return function(e){return bt(t,e)}}),i=oi.memoizeOne(function(t){return function(e){return xt(e,t)}}),a=oi.memoizeOne(function(e){return function(){return v(e)}}),o=oi.memoizeOne(function(t){return function(e){return Vr(t,e)}}),u=oi.memoizeOne(function(n){return function(e,t){return r=n,t=t,(e=e).type!==t?c(Vr(r,t),e):e;var r}}),_=oi.memoizeOne(function(r){return function(e,t){return Ur(r,e,t)}}),d=oi.memoizeOne(function(n){return function(e,t){return r=n,t=t,(e=e).type!==t?c(Ur(r,t,e.postfix),e):e;var r}}),p=oi.memoizeOne(function(r){return function(e,t){return _n(r,e,t)}}),f=oi.memoizeOne(function(n){return function(e,t,r){return function(e,t,r,n){void 0===r&&(r=Qr(t));return t.tagName!==r||t.comment!==n?c(_n(e,r,n),t):t}(n,e,t,r)}}),g=oi.memoizeOne(function(n){return function(e,t,r){return dn(n,e,t,r)}}),m=oi.memoizeOne(function(i){return function(e,t,r,n){return function(e,t,r,n,i){void 0===r&&(r=Qr(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?c(dn(e,r,n,i),t):t}(i,e,t,r,n)}}),y={get parenthesizer(){return s()},get converters(){return t()},baseFactory:l,flags:e,createNodeArray:h,createNumericLiteral:w,createBigIntLiteral:I,createStringLiteral:M,createStringLiteralFromNode:function(e){var t=O(oi.getTextOfIdentifierOrLiteral(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:L,createLiteralLikeNode:function(e,t){switch(e){case 8:return w(t,0);case 9:return I(t);case 10:return M(t,void 0);case 11:return xn(t,!1);case 12:return xn(t,!0);case 13:return L(t);case 14:return Et(e,t,void 0,0)}},createIdentifier:j,updateIdentifier:function(e,t){return e.typeArguments!==t?c(j(oi.idText(e),t),e):e},createTempVariable:J,createLoopVariable:function(e){var t=2;e&&(t|=8);return B("",t)},createUniqueName:function(e,t){void 0===t&&(t=0);return oi.Debug.assert(!(7&t),"Argument out of range: flags"),oi.Debug.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),B(e,3|t)},getGeneratedNameForNode:z,createPrivateIdentifier:function(e){oi.startsWith(e,"#")||oi.Debug.fail("First character of private identifier must be #: "+e);var t=l.createBasePrivateIdentifierNode(80);return t.escapedText=oi.escapeLeadingUnderscores(e),t.transformFlags|=8388608,t},createToken:U,createSuper:function(){return U(106)},createThis:V,createNull:function(){return U(104)},createTrue:q,createFalse:W,createModifier:H,createModifiersFromModifierFlags:G,createQualifiedName:Q,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?c(Q(t,r),e):e},createComputedPropertyName:X,updateComputedPropertyName:function(e,t){return e.expression!==t?c(X(t),e):e},createTypeParameterDeclaration:Y,updateTypeParameterDeclaration:function(e,t,r,n,i){var a,o;r=void 0===t||oi.isArray(t)?(o=t,a=r,n):(o=void 0,a=t,r);return e.modifiers!==o||e.name!==a||e.constraint!==r||e.default!==i?c(Y(o,a,r,i),e):e},createParameterDeclaration:Z,updateParameterDeclaration:$,createDecorator:ee,updateDecorator:function(e,t){return e.expression!==t?c(ee(t),e):e},createPropertySignature:te,updatePropertySignature:re,createPropertyDeclaration:ne,updatePropertyDeclaration:ie,createMethodSignature:ae,updateMethodSignature:oe,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:ue,updateConstructorDeclaration:_e,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:ge,createCallSignature:me,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?T(me(t,r,n),e):e},createConstructSignature:ye,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?T(ye(t,r,n),e):e},createIndexSignature:he,updateIndexSignature:ve,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?c(le(t,r,n),e):e},createTemplateLiteralTypeSpan:be,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?c(be(t,r),e):e},createKeywordTypeNode:U,createTypePredicateNode:xe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?c(xe(t,r,n),e):e},createTypeReferenceNode:De,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?c(De(t,r),e):e},createFunctionTypeNode:Se,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?T(Se(t,r,n),e):e},createConstructorTypeNode:Te,updateConstructorTypeNode:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 5===e.length?ke.apply(void 0,e):4===e.length?function(e,t,r,n){return ke(e,e.modifiers,t,r,n)}.apply(void 0,e):oi.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ee,updateTypeQueryNode:function(e,t,r){return e.exprName!==t||e.typeArguments!==r?c(Ee(t,r),e):e},createTypeLiteralNode:Ne,updateTypeLiteralNode:function(e,t){return e.members!==t?c(Ne(t),e):e},createArrayTypeNode:Ae,updateArrayTypeNode:function(e,t){return e.elementType!==t?c(Ae(t),e):e},createTupleTypeNode:Fe,updateTupleTypeNode:function(e,t){return e.elements!==t?c(Fe(t),e):e},createNamedTupleMember:Pe,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?c(Pe(t,r,n,i),e):e},createOptionalTypeNode:we,updateOptionalTypeNode:function(e,t){return e.type!==t?c(we(t),e):e},createRestTypeNode:Ie,updateRestTypeNode:function(e,t){return e.type!==t?c(Ie(t),e):e},createUnionTypeNode:function(e){return Oe(187,e,s().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Me(e,t,s().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Oe(188,e,s().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Me(e,t,s().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Le,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?c(Le(t,r,n,i),e):e},createInferTypeNode:Re,updateInferTypeNode:function(e,t){return e.typeParameter!==t?c(Re(t),e):e},createImportTypeNode:je,updateImportTypeNode:function(e,t,r,n,i,a){var o=r&&295===r.kind?r:void 0,r=r&&oi.isEntityName(r)?r:n&&!oi.isArray(n)?n:void 0,n=oi.isArray(n)?n:oi.isArray(i)?i:void 0;return a="boolean"==typeof i?i:"boolean"==typeof a?a:e.isTypeOf,e.argument!==t||e.assertions!==o||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==a?c(je(t,o,r,n,a),e):e},createParenthesizedType:Je,updateParenthesizedType:function(e,t){return e.type!==t?c(Je(t),e):e},createThisTypeNode:function(){var e=v(192);return e.transformFlags=1,e},createTypeOperatorNode:ze,updateTypeOperatorNode:function(e,t){return e.type!==t?c(ze(e.operator,t),e):e},createIndexedAccessTypeNode:Ke,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?c(Ke(t,r),e):e},createMappedTypeNode:Ue,updateMappedTypeNode:function(e,t,r,n,i,a,o){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a||e.members!==o?c(Ue(t,r,n,i,a,o),e):e},createLiteralTypeNode:Ve,updateLiteralTypeNode:function(e,t){return e.literal!==t?c(Ve(t),e):e},createTemplateLiteralType:Be,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?c(Be(t,r),e):e},createObjectBindingPattern:qe,updateObjectBindingPattern:function(e,t){return e.elements!==t?c(qe(t),e):e},createArrayBindingPattern:We,updateArrayBindingPattern:function(e,t){return e.elements!==t?c(We(t),e):e},createBindingElement:He,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?c(He(t,r,n,i),e):e},createArrayLiteralExpression:Qe,updateArrayLiteralExpression:function(e,t){return e.elements!==t?c(Qe(t,e.multiLine),e):e},createObjectLiteralExpression:Xe,updateObjectLiteralExpression:function(e,t){return e.properties!==t?c(Xe(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?function(e,t){return oi.setEmitFlags(Ye(e,t),131072)}:Ye,updatePropertyAccessExpression:function(e,t,r){if(oi.isPropertyAccessChain(e))return $e(e,t,e.questionDotToken,oi.cast(r,oi.isIdentifier));return e.expression!==t||e.name!==r?c(Ye(t,r),e):e},createPropertyAccessChain:4&e?function(e,t,r){return oi.setEmitFlags(Ze(e,t,r),131072)}:Ze,updatePropertyAccessChain:$e,createElementAccessExpression:et,updateElementAccessExpression:function(e,t,r){if(oi.isElementAccessChain(e))return rt(e,t,e.questionDotToken,r);return e.expression!==t||e.argumentExpression!==r?c(et(t,r),e):e},createElementAccessChain:tt,updateElementAccessChain:rt,createCallExpression:nt,updateCallExpression:function(e,t,r,n){if(oi.isCallChain(e))return at(e,t,e.questionDotToken,r,n);return e.expression!==t||e.typeArguments!==r||e.arguments!==n?c(nt(t,r,n),e):e},createCallChain:it,updateCallChain:at,createNewExpression:ot,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?c(ot(t,r,n),e):e},createTaggedTemplateExpression:st,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?c(st(t,r,n),e):e},createTypeAssertion:ct,updateTypeAssertion:lt,createParenthesizedExpression:ut,updateParenthesizedExpression:_t,createFunctionExpression:dt,updateFunctionExpression:pt,createArrowFunction:ft,updateArrowFunction:gt,createDeleteExpression:mt,updateDeleteExpression:function(e,t){return e.expression!==t?c(mt(t),e):e},createTypeOfExpression:yt,updateTypeOfExpression:function(e,t){return e.expression!==t?c(yt(t),e):e},createVoidExpression:ht,updateVoidExpression:function(e,t){return e.expression!==t?c(ht(t),e):e},createAwaitExpression:vt,updateAwaitExpression:function(e,t){return e.expression!==t?c(vt(t),e):e},createPrefixUnaryExpression:bt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?c(bt(e.operator,t),e):e},createPostfixUnaryExpression:xt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?c(xt(t,e.operator),e):e},createBinaryExpression:Dt,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?c(Dt(t,r,n),e):e},createConditionalExpression:Tt,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(Tt(t,r,n,i,a),e):e},createTemplateExpression:Ct,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?c(Ct(t,r),e):e},createTemplateHead:function(e,t,r){return kt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return kt(16,e,t,r)},createTemplateTail:function(e,t,r){return kt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return kt(14,e,t,r)},createTemplateLiteralLikeNode:Et,createYieldExpression:Nt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?c(Nt(t,r),e):e},createSpreadElement:At,updateSpreadElement:function(e,t){return e.expression!==t?c(At(t),e):e},createClassExpression:Ft,updateClassExpression:Pt,createOmittedExpression:function(){return Ge(227)},createExpressionWithTypeArguments:wt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?c(wt(t,r),e):e},createAsExpression:It,updateAsExpression:Ot,createNonNullExpression:Mt,updateNonNullExpression:Lt,createNonNullChain:Rt,updateNonNullChain:Bt,createMetaProperty:jt,updateMetaProperty:function(e,t){return e.name!==t?c(jt(e.keywordToken,t),e):e},createTemplateSpan:Jt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?c(Jt(t,r),e):e},createSemicolonClassElement:function(){var e=v(234);return e.transformFlags|=1024,e},createBlock:zt,updateBlock:function(e,t){return e.statements!==t?c(zt(t,e.multiLine),e):e},createVariableStatement:Kt,updateVariableStatement:Ut,createEmptyStatement:Vt,createExpressionStatement:qt,updateExpressionStatement:function(e,t){return e.expression!==t?c(qt(t),e):e},createIfStatement:Wt,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?c(Wt(t,r,n),e):e},createDoStatement:Ht,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?c(Ht(t,r),e):e},createWhileStatement:Gt,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?c(Gt(t,r),e):e},createForStatement:Qt,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?c(Qt(t,r,n,i),e):e},createForInStatement:Xt,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?c(Xt(t,r,n),e):e},createForOfStatement:Yt,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?c(Yt(t,r,n,i),e):e},createContinueStatement:Zt,updateContinueStatement:function(e,t){return e.label!==t?c(Zt(t),e):e},createBreakStatement:$t,updateBreakStatement:function(e,t){return e.label!==t?c($t(t),e):e},createReturnStatement:er,updateReturnStatement:function(e,t){return e.expression!==t?c(er(t),e):e},createWithStatement:tr,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?c(tr(t,r),e):e},createSwitchStatement:rr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?c(rr(t,r),e):e},createLabeledStatement:nr,updateLabeledStatement:ir,createThrowStatement:ar,updateThrowStatement:function(e,t){return e.expression!==t?c(ar(t),e):e},createTryStatement:or,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?c(or(t,r,n),e):e},createDebuggerStatement:function(){return v(253)},createVariableDeclaration:sr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?c(sr(t,r,n,i),e):e},createVariableDeclarationList:cr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?c(cr(t,e.flags),e):e},createFunctionDeclaration:lr,updateFunctionDeclaration:ur,createClassDeclaration:_r,updateClassDeclaration:dr,createInterfaceDeclaration:pr,updateInterfaceDeclaration:fr,createTypeAliasDeclaration:gr,updateTypeAliasDeclaration:mr,createEnumDeclaration:yr,updateEnumDeclaration:hr,createModuleDeclaration:vr,updateModuleDeclaration:br,createModuleBlock:xr,updateModuleBlock:function(e,t){return e.statements!==t?c(xr(t),e):e},createCaseBlock:Dr,updateCaseBlock:function(e,t){return e.clauses!==t?c(Dr(t),e):e},createNamespaceExportDeclaration:Sr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?c(Sr(t),e):e},createImportEqualsDeclaration:Tr,updateImportEqualsDeclaration:Cr,createImportDeclaration:kr,updateImportDeclaration:Er,createImportClause:Nr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?c(Nr(t,r,n),e):e},createAssertClause:Ar,updateAssertClause:function(e,t,r){return e.elements!==t||e.multiLine!==r?c(Ar(t,r),e):e},createAssertEntry:Fr,updateAssertEntry:function(e,t,r){return e.name!==t||e.value!==r?c(Fr(t,r),e):e},createImportTypeAssertionContainer:Pr,updateImportTypeAssertionContainer:function(e,t,r){return e.assertClause!==t||e.multiLine!==r?c(Pr(t,r),e):e},createNamespaceImport:wr,updateNamespaceImport:function(e,t){return e.name!==t?c(wr(t),e):e},createNamespaceExport:Ir,updateNamespaceExport:function(e,t){return e.name!==t?c(Ir(t),e):e},createNamedImports:Or,updateNamedImports:function(e,t){return e.elements!==t?c(Or(t),e):e},createImportSpecifier:Mr,updateImportSpecifier:function(e,t,r,n){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?c(Mr(t,r,n),e):e},createExportAssignment:Lr,updateExportAssignment:Rr,createExportDeclaration:Br,updateExportDeclaration:jr,createNamedExports:Jr,updateNamedExports:function(e,t){return e.elements!==t?c(Jr(t),e):e},createExportSpecifier:zr,updateExportSpecifier:function(e,t,r,n){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?c(zr(t,r,n),e):e},createMissingDeclaration:function(){return b(276,void 0,void 0)},createExternalModuleReference:Kr,updateExternalModuleReference:function(e,t){return e.expression!==t?c(Kr(t),e):e},get createJSDocAllType(){return a(312)},get createJSDocUnknownType(){return a(313)},get createJSDocNonNullableType(){return _(315)},get updateJSDocNonNullableType(){return d(315)},get createJSDocNullableType(){return _(314)},get updateJSDocNullableType(){return d(314)},get createJSDocOptionalType(){return o(316)},get updateJSDocOptionalType(){return u(316)},get createJSDocVariadicType(){return o(318)},get updateJSDocVariadicType(){return u(318)},get createJSDocNamepathType(){return o(319)},get updateJSDocNamepathType(){return u(319)},createJSDocFunctionType:qr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?c(qr(t,r),e):e},createJSDocTypeLiteral:Wr,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?c(Wr(t,r),e):e},createJSDocTypeExpression:Hr,updateJSDocTypeExpression:function(e,t){return e.type!==t?c(Hr(t),e):e},createJSDocSignature:Gr,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?c(Gr(t,r,n),e):e},createJSDocTemplateTag:Yr,updateJSDocTemplateTag:function(e,t,r,n,i){void 0===t&&(t=Qr(e));return e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?c(Yr(t,r,n,i),e):e},createJSDocTypedefTag:Zr,updateJSDocTypedefTag:function(e,t,r,n,i){void 0===t&&(t=Qr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?c(Zr(t,r,n,i),e):e},createJSDocParameterTag:$r,updateJSDocParameterTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Qr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?c($r(t,r,n,i,a,o),e):e},createJSDocPropertyTag:en,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Qr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?c(en(t,r,n,i,a,o),e):e},createJSDocCallbackTag:tn,updateJSDocCallbackTag:function(e,t,r,n,i){void 0===t&&(t=Qr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?c(tn(t,r,n,i),e):e},createJSDocAugmentsTag:rn,updateJSDocAugmentsTag:function(e,t,r,n){void 0===t&&(t=Qr(e));return e.tagName!==t||e.class!==r||e.comment!==n?c(rn(t,r,n),e):e},createJSDocImplementsTag:nn,updateJSDocImplementsTag:function(e,t,r,n){void 0===t&&(t=Qr(e));return e.tagName!==t||e.class!==r||e.comment!==n?c(nn(t,r,n),e):e},createJSDocSeeTag:an,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?c(an(t,r,n),e):e},createJSDocNameReference:on,updateJSDocNameReference:function(e,t){return e.name!==t?c(on(t),e):e},createJSDocMemberName:sn,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?c(sn(t,r),e):e},createJSDocLink:cn,updateJSDocLink:function(e,t,r){return e.name!==t?c(cn(t,r),e):e},createJSDocLinkCode:ln,updateJSDocLinkCode:function(e,t,r){return e.name!==t?c(ln(t,r),e):e},createJSDocLinkPlain:un,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?c(un(t,r),e):e},get createJSDocTypeTag(){return g(343)},get updateJSDocTypeTag(){return m(343)},get createJSDocReturnTag(){return g(341)},get updateJSDocReturnTag(){return m(341)},get createJSDocThisTag(){return g(342)},get updateJSDocThisTag(){return m(342)},get createJSDocEnumTag(){return g(339)},get updateJSDocEnumTag(){return m(339)},get createJSDocAuthorTag(){return p(330)},get updateJSDocAuthorTag(){return f(330)},get createJSDocClassTag(){return p(332)},get updateJSDocClassTag(){return f(332)},get createJSDocPublicTag(){return p(333)},get updateJSDocPublicTag(){return f(333)},get createJSDocPrivateTag(){return p(334)},get updateJSDocPrivateTag(){return f(334)},get createJSDocProtectedTag(){return p(335)},get updateJSDocProtectedTag(){return f(335)},get createJSDocReadonlyTag(){return p(336)},get updateJSDocReadonlyTag(){return f(336)},get createJSDocOverrideTag(){return p(337)},get updateJSDocOverrideTag(){return f(337)},get createJSDocDeprecatedTag(){return p(331)},get updateJSDocDeprecatedTag(){return f(331)},createJSDocUnknownTag:pn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?c(pn(t,r),e):e},createJSDocText:fn,updateJSDocText:function(e,t){return e.text!==t?c(fn(t),e):e},createJSDocComment:gn,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?c(gn(t,r),e):e},createJsxElement:mn,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?c(mn(t,r,n),e):e},createJsxSelfClosingElement:yn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?c(yn(t,r,n),e):e},createJsxOpeningElement:hn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?c(hn(t,r,n),e):e},createJsxClosingElement:vn,updateJsxClosingElement:function(e,t){return e.tagName!==t?c(vn(t),e):e},createJsxFragment:bn,createJsxText:xn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?c(xn(t,r),e):e},createJsxOpeningFragment:function(){var e=v(283);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=v(284);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?c(bn(t,r,n),e):e},createJsxAttribute:Dn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?c(Dn(t,r),e):e},createJsxAttributes:Sn,updateJsxAttributes:function(e,t){return e.properties!==t?c(Sn(t),e):e},createJsxSpreadAttribute:Tn,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?c(Tn(t),e):e},createJsxExpression:Cn,updateJsxExpression:function(e,t){return e.expression!==t?c(Cn(e.dotDotDotToken,t),e):e},createCaseClause:kn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?c(kn(t,r),e):e},createDefaultClause:En,updateDefaultClause:function(e,t){return e.statements!==t?c(En(t),e):e},createHeritageClause:Nn,updateHeritageClause:function(e,t){return e.types!==t?c(Nn(e.token,t),e):e},createCatchClause:An,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?c(An(t,r),e):e},createPropertyAssignment:Fn,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)}(Fn(t,r),e):e},createShorthandPropertyAssignment:Pn,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)}(Pn(t,r),e):e},createSpreadAssignment:wn,updateSpreadAssignment:function(e,t){return e.expression!==t?c(wn(t),e):e},createEnumMember:In,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?c(In(t,r),e):e},createSourceFile:function(e,t,r){var n=l.createBaseSourceFileNode(305);return n.statements=h(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|=gi(n.statements)|fi(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=e.redirectInfo?Object.create(e.redirectInfo.redirectTarget):l.createBaseSourceFileNode(305);for(s in e)"emitNode"!==s&&!oi.hasProperty(c,s)&&oi.hasProperty(e,s)&&(c[s]=e[s]);return c.flags|=e.flags,c.statements=h(t),c.endOfFileToken=e.endOfFileToken,c.isDeclarationFile=r,c.referencedFiles=n,c.typeReferenceDirectives=i,c.hasNoDefaultLib=a,c.libReferenceDirectives=o,c.transformFlags=gi(c.statements)|fi(c.endOfFileToken),c.impliedNodeFormat=e.impliedNodeFormat,c}(e,t,r,n,i,a,o),e):e},createBundle:On,updateBundle:function(e,t,r){void 0===r&&(r=oi.emptyArray);return e.sourceFiles!==t||e.prepends!==r?c(On(t,r),e):e},createUnparsedSource:function(e,t,r){var n=v(307);return n.prologues=e,n.syntheticReferences=t,n.texts=r,n.fileName="",n.text="",n.referencedFiles=oi.emptyArray,n.libReferenceDirectives=oi.emptyArray,n.getLineAndCharacterOfPosition=function(e){return oi.getLineAndCharacterOfPosition(n,e)},n},createUnparsedPrologue:function(e){return Mn(300,e)},createUnparsedPrepend:function(e,t){e=Mn(301,e);return e.texts=t,e},createUnparsedTextLike:function(e,t){return Mn(t?303:302,e)},createUnparsedSyntheticReference:function(e){var t=v(304);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=v(308);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=v(232);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=v(348);return t._children=e,t},createNotEmittedStatement:function(e){var t=v(349);return t.original=e,oi.setTextRange(t,e),t},createPartiallyEmittedExpression:Ln,updatePartiallyEmittedExpression:Rn,createCommaListExpression:jn,updateCommaListExpression:function(e,t){return e.elements!==t?c(jn(t),e):e},createEndOfDeclarationMarker:function(e){var t=v(353);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=v(352);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:Jn,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?c(Jn(t,r),e):e},cloneNode:zn,get createComma(){return r(27)},get createAssignment(){return r(63)},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 nt(dt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,zt(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return nt(ft(void 0,void 0,t?[t]:[],void 0,void 0,zt(e,!0)),void 0,r?[r]:[])},createVoidZero:Kn,createExportDefault:function(e){return Lr(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Br(void 0,void 0,!1,Jr([zr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?y.createStrictEquality(e,Kn()):y.createStrictEquality(yt(e),M(t))},createMethodCall:Un,createGlobalMethodCall:Vn,createFunctionBindCall:function(e,t,r){return Un(e,"bind",__spreadArray([t],r,!0))},createFunctionCallCall:function(e,t,r){return Un(e,"call",__spreadArray([t],r,!0))},createFunctionApplyCall:function(e,t,r){return Un(e,"apply",[t,r])},createArraySliceCall:function(e,t){return Un(e,"slice",void 0===t?[]:[ii(t)])},createArrayConcatCall:function(e,t){return Un(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Vn("Object","defineProperty",[e,ii(t),r])},createReflectGetCall:function(e,t,r){return Vn("Reflect","get",r?[e,t,r]:[e,t])},createReflectSetCall:function(e,t,r,n){return Vn("Reflect","set",n?[e,t,r,n]:[e,t,r])},createPropertyDescriptor:function(e,t){var r=[];qn(r,"enumerable",ii(e.enumerable)),qn(r,"configurable",ii(e.configurable));var n=qn(r,"writable",ii(e.writable));n=qn(r,"value",e.value)||n;var i=qn(r,"get",e.get);return i=qn(r,"set",e.set)||i,oi.Debug.assert(!(n&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Xe(r,!t)},createCallBinding:function(e,t,r,n){void 0===n&&(n=!1);var i,a,o=oi.skipOuterExpressions(e,15);oi.isSuperProperty(o)?(i=V(),a=o):oi.isSuperKeyword(o)?(i=V(),a=void 0!==r&&r<2?oi.setTextRange(j("_super"),o):o):4096&oi.getEmitFlags(o)?(i=Kn(),a=s().parenthesizeLeftSideOfAccess(o)):oi.isPropertyAccessExpression(o)?Gn(o.expression,n)?(i=J(t),a=Ye(oi.setTextRange(y.createAssignment(i,o.expression),o.expression),o.name),oi.setTextRange(a,o)):(i=o.expression,a=o):oi.isElementAccessExpression(o)?Gn(o.expression,n)?(i=J(t),a=et(oi.setTextRange(y.createAssignment(i,o.expression),o.expression),o.argumentExpression),oi.setTextRange(a,o)):(i=o.expression,a=o):(i=Kn(),a=s().parenthesizeLeftSideOfAccess(e));return{target:a,thisArg:i}},createAssignmentTargetWrapper:function(e,t){return Ye(ut(Xe([fe(void 0,void 0,"value",[Z(void 0,void 0,void 0,e,void 0,void 0,void 0)],zt([qt(t)]))])),"value")},inlineExpressions:function(e){return 10<e.length?jn(e):oi.reduceLeft(e,y.createComma)},getInternalName:function(e,t,r){return Qn(e,t,r,49152)},getLocalName:function(e,t,r){return Qn(e,t,r,16384)},getExportName:Xn,getDeclarationName:function(e,t,r){return Qn(e,t,r)},getNamespaceMemberName:Yn,getExternalModuleOrNamespaceExportName:function(e,t,r,n){if(e&&oi.hasSyntacticModifier(t,1))return Yn(e,Qn(t),r,n);return Xn(t,r,n)},restoreOuterExpressions:function e(t,r,n){void 0===n&&(n=15);if(t&&oi.isOuterExpression(t,n)&&!Hn(t))return Wn(t,e(t.expression,r));return r},restoreEnclosingLabel:function e(t,r,n){if(!r)return t;var t=ir(r,r.label,oi.isLabeledStatement(r.statement)?e(t,r.statement):t);n&&n(r);return t},createUseStrictPrologue:Zn,copyPrologue:function(e,t,r,n){r=$n(e,t,0,r);return ei(e,t,r,n)},copyStandardPrologue:$n,copyCustomPrologue:ei,ensureUseStrict:function(e){return oi.findUseStrictPrologue(e)?e:oi.setTextRange(h(__spreadArray([Zn()],e,!0)),e)},liftToBlock:function(e){return oi.Debug.assert(oi.every(e,oi.isStatementOrBlock),"Cannot lift nodes to a Block."),oi.singleOrUndefined(e)||zt(e)},mergeLexicalEnvironment:function(e,t){if(!oi.some(t))return e;var r=ti(e,oi.isPrologueDirective,0),n=ti(e,oi.isHoistedFunction,r),i=ti(e,oi.isHoistedVariableStatement,n),a=ti(t,oi.isPrologueDirective,0),o=ti(t,oi.isHoistedFunction,a),s=ti(t,oi.isHoistedVariableStatement,o),c=ti(t,oi.isCustomPrologue,s);oi.Debug.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");var l=oi.isNodeArray(e)?e.slice():e;s<c&&l.splice.apply(l,__spreadArray([i,0],t.slice(s,c),!1));o<s&&l.splice.apply(l,__spreadArray([n,0],t.slice(o,s),!1));a<o&&l.splice.apply(l,__spreadArray([r,0],t.slice(a,o),!1));if(0<a)if(0===r)l.splice.apply(l,__spreadArray([0,0],t.slice(0,a),!1));else{for(var u=new oi.Map,_=0;_<r;_++){var d=e[_];u.set(d.expression.text,!0)}for(_=a-1;0<=_;_--){var p=t[_];u.has(p.expression.text)||l.unshift(p)}}if(oi.isNodeArray(e))return oi.setTextRange(h(l,e.hasTrailingComma),e);return e},updateModifiers:function(e,t){var r;r="number"==typeof t?G(t):t;return oi.isParameter(e)?$(e,e.decorators,r,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):oi.isPropertySignature(e)?re(e,r,e.name,e.questionToken,e.type):oi.isPropertyDeclaration(e)?ie(e,e.decorators,r,e.name,null!==(t=e.questionToken)&&void 0!==t?t:e.exclamationToken,e.type,e.initializer):oi.isMethodSignature(e)?oe(e,r,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):oi.isMethodDeclaration(e)?ce(e,e.decorators,r,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):oi.isConstructorDeclaration(e)?_e(e,e.decorators,r,e.parameters,e.body):oi.isGetAccessorDeclaration(e)?pe(e,e.decorators,r,e.name,e.parameters,e.type,e.body):oi.isSetAccessorDeclaration(e)?ge(e,e.decorators,r,e.name,e.parameters,e.body):oi.isIndexSignatureDeclaration(e)?ve(e,e.decorators,r,e.parameters,e.type):oi.isFunctionExpression(e)?pt(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):oi.isArrowFunction(e)?gt(e,r,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):oi.isClassExpression(e)?Pt(e,e.decorators,r,e.name,e.typeParameters,e.heritageClauses,e.members):oi.isVariableStatement(e)?Ut(e,r,e.declarationList):oi.isFunctionDeclaration(e)?ur(e,e.decorators,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):oi.isClassDeclaration(e)?dr(e,e.decorators,r,e.name,e.typeParameters,e.heritageClauses,e.members):oi.isInterfaceDeclaration(e)?fr(e,e.decorators,r,e.name,e.typeParameters,e.heritageClauses,e.members):oi.isTypeAliasDeclaration(e)?mr(e,e.decorators,r,e.name,e.typeParameters,e.type):oi.isEnumDeclaration(e)?hr(e,e.decorators,r,e.name,e.members):oi.isModuleDeclaration(e)?br(e,e.decorators,r,e.name,e.body):oi.isImportEqualsDeclaration(e)?Cr(e,e.decorators,r,e.isTypeOnly,e.name,e.moduleReference):oi.isImportDeclaration(e)?Er(e,e.decorators,r,e.importClause,e.moduleSpecifier,e.assertClause):oi.isExportAssignment(e)?Rr(e,e.decorators,r,e.expression):oi.isExportDeclaration(e)?jr(e,e.decorators,r,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.assertClause):oi.Debug.assertNever(e)}};return y;function h(e,t){if(void 0===e||e===oi.emptyArray)e=[];else if(oi.isNodeArray(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&mi(e),oi.Debug.attachNodeArrayDebugInfo(e),e;var r=e.slice();return r.pos=e.pos,r.end=e.end,r.hasTrailingComma=t,r.transformFlags=e.transformFlags,oi.Debug.attachNodeArrayDebugInfo(r),r}r=e.length,e=1<=r&&r<=4?e.slice():e;return oi.setTextRangePosEnd(e,-1,-1),e.hasTrailingComma=!!t,mi(e),oi.Debug.attachNodeArrayDebugInfo(e),e}function v(e){return l.createBaseNode(e)}function b(e,t,r){e=v(e);return e.decorators=ri(t),e.modifiers=ri(r),e.transformFlags|=gi(e.decorators)|gi(e.modifiers),e.symbol=void 0,e.localSymbol=void 0,e.locals=void 0,e.nextContainer=void 0,e}function x(e,t,r,n){var i=b(e,t,r);if(n=ni(n),i.name=n)switch(i.kind){case 169:case 172:case 173:case 167:case 296:if(oi.isIdentifier(n)){i.transformFlags|=pi(n);break}default:i.transformFlags|=fi(n)}return i}function D(e,t,r,n,i){n=x(e,t,r,n);return n.typeParameters=ri(i),n.transformFlags|=gi(n.typeParameters),i&&(n.transformFlags|=1),n}function S(e,t,r,n,i,a,o){i=D(e,t,r,n,i);return i.parameters=h(a),i.type=o,i.transformFlags|=gi(i.parameters)|fi(i.type),o&&(i.transformFlags|=1),i}function T(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),c(e,t)}function C(e,t,r,n,i,a,o,s){o=S(e,t,r,n,i,a,o);return o.body=s,o.transformFlags|=-16777217&fi(o.body),s||(o.transformFlags|=1),o}function k(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),T(e,t)}function E(e,t,r,n,i,a){i=D(e,t,r,n,i);return i.heritageClauses=ri(a),i.transformFlags|=gi(i.heritageClauses),i}function N(e,t,r,n,i,a,o){a=E(e,t,r,n,i,a);return a.members=h(o),a.transformFlags|=gi(a.members),a}function A(e,t,r,n,i){n=x(e,t,r,n);return n.initializer=i,n.transformFlags|=fi(n.initializer),n}function F(e,t,r,n,i,a){a=A(e,t,r,n,a);return a.type=i,a.transformFlags|=fi(i),i&&(a.transformFlags|=1),a}function P(e,t){e=K(e);return e.text=t,e}function w(e,t){void 0===t&&(t=0);e=P(8,"number"==typeof e?e+"":e);return 384&(e.numericLiteralFlags=t)&&(e.transformFlags|=1024),e}function I(e){e=P(9,"string"==typeof e?e:oi.pseudoBigIntToString(e)+"n");return e.transformFlags|=4,e}function O(e,t){e=P(10,e);return e.singleQuote=t,e}function M(e,t,r){t=O(e,t);return(t.hasExtendedUnicodeEscape=r)&&(t.transformFlags|=1024),t}function L(e){return P(13,e)}function R(e,t){void 0===t&&e&&(t=oi.stringToToken(e)),79===t&&(t=void 0);var r=l.createBaseIdentifierNode(79);return r.originalKeywordKind=t,r.escapedText=oi.escapeLeadingUnderscores(e),r}function B(e,t){e=R(e,void 0);return e.autoGenerateFlags=t,e.autoGenerateId=ci,ci++,e}function j(e,t,r){r=R(e,r);return t&&(r.typeArguments=h(t)),132===r.originalKeywordKind&&(r.transformFlags|=16777216),r}function J(e,t){var r=1;t&&(r|=8);r=B("",r);return e&&e(r),r}function z(e,t){void 0===t&&(t=0),oi.Debug.assert(!(7&t),"Argument out of range: flags");t=B(e&&oi.isIdentifier(e)?oi.idText(e):"",4|t);return t.original=e,t}function K(e){return l.createBaseTokenNode(e)}function U(e){oi.Debug.assert(0<=e&&e<=160,"Invalid token"),oi.Debug.assert(e<=14||17<=e,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),oi.Debug.assert(e<=8||14<=e,"Invalid token. Use 'createLiteralLikeNode' to create literals."),oi.Debug.assert(79!==e,"Invalid token. Use 'createIdentifier' to create identifiers");var t=K(e),r=0;switch(e){case 131:r=384;break;case 123:case 121:case 122:case 145:case 126:case 135:case 85:case 130:case 147:case 158:case 143:case 148:case 101:case 144:case 159:case 150:case 133:case 151:case 114:case 155:case 153:r=1;break;case 106:r=33555456;break;case 124:r=1024;break;case 108:r=8192}return r&&(t.transformFlags|=r),t}function V(){return U(108)}function q(){return U(110)}function W(){return U(95)}function H(e){return U(e)}function G(e){var t=[];return 1&e&&t.push(U(93)),2&e&&t.push(U(135)),512&e&&t.push(U(88)),2048&e&&t.push(U(85)),4&e&&t.push(U(123)),8&e&&t.push(U(121)),16&e&&t.push(U(122)),128&e&&t.push(U(126)),32&e&&t.push(U(124)),16384&e&&t.push(U(159)),64&e&&t.push(U(145)),256&e&&t.push(U(131)),32768&e&&t.push(U(101)),65536&e&&t.push(U(144)),t.length?t:void 0}function Q(e,t){var r=v(161);return r.left=e,r.right=ni(t),r.transformFlags|=fi(r.left)|pi(r.right),r}function X(e){var t=v(162);return t.expression=s().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66560|fi(t.expression),t}function Y(e,t,r,n){var i,t=void 0===e||oi.isArray(e)?(i=e,a=t,r):(i=void 0,a=e,t),a=x(163,void 0,i,a);return a.constraint=t,a.default=n,a.transformFlags=1,a}function Z(e,t,r,n,i,a,o){a=F(164,e,t,n,a,o&&s().parenthesizeExpressionForDisallowedComma(o));return a.dotDotDotToken=r,a.questionToken=i,oi.isThisIdentifier(a.name)?a.transformFlags=1:(a.transformFlags|=fi(a.dotDotDotToken)|fi(a.questionToken),i&&(a.transformFlags|=1),16476&oi.modifiersToFlags(a.modifiers)&&(a.transformFlags|=4096),(o||r)&&(a.transformFlags|=1024)),a}function $(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(Z(t,r,n,i,a,o,s),e):e}function ee(e){var t=v(165);return t.expression=s().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|fi(t.expression),t}function te(e,t,r,n){t=x(166,void 0,e,t);return t.type=n,t.questionToken=r,t.transformFlags=1,t}function re(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?c(te(t,r,n,i),e):e}function ne(e,t,r,n,i,a){a=F(167,e,t,r,i,a);return a.questionToken=n&&oi.isQuestionToken(n)?n:void 0,a.exclamationToken=n&&oi.isExclamationToken(n)?n:void 0,a.transformFlags|=fi(a.questionToken)|fi(a.exclamationToken)|8388608,(oi.isComputedPropertyName(a.name)||oi.hasStaticModifier(a)&&a.initializer)&&(a.transformFlags|=4096),(n||2&oi.modifiersToFlags(a.modifiers))&&(a.transformFlags|=1),a}function ie(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.questionToken!==(void 0!==i&&oi.isQuestionToken(i)?i:void 0)||e.exclamationToken!==(void 0!==i&&oi.isExclamationToken(i)?i:void 0)||e.type!==a||e.initializer!==o?c(ne(t,r,n,i,a,o),e):e}function ae(e,t,r,n,i,a){a=S(168,void 0,e,t,n,i,a);return a.questionToken=r,a.transformFlags=1,a}function oe(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?T(ae(t,r,n,i,a,o),e):e}function se(e,t,r,n,i,a,o,s,c){c=C(169,e,t,n,a,o,s,c);return c.asteriskToken=r,c.questionToken=i,c.transformFlags|=fi(c.asteriskToken)|fi(c.questionToken)|1024,i&&(c.transformFlags|=1),256&oi.modifiersToFlags(c.modifiers)?c.transformFlags|=r?128:256:r&&(c.transformFlags|=2048),c}function ce(e,t,r,n,i,a,o,s,c,l){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!==l?k(se(t,r,n,i,a,o,s,c,l),e):e}function le(e,t,r){t=D(170,e,t,void 0,void 0);return t.body=r,t.transformFlags=8388608|fi(r),t}function ue(e,t,r,n){n=C(171,e,t,void 0,void 0,r,void 0,n);return n.transformFlags|=1024,n}function _e(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?k(ue(t,r,n,i),e):e}function de(e,t,r,n,i,a){return C(172,e,t,r,void 0,n,i,a)}function pe(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?k(de(t,r,n,i,a,o),e):e}function fe(e,t,r,n,i){return C(173,e,t,r,void 0,n,void 0,i)}function ge(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?k(fe(t,r,n,i,a),e):e}function me(e,t,r){r=S(174,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function ye(e,t,r){r=S(175,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function he(e,t,r,n){n=S(176,e,t,void 0,void 0,r,n);return n.transformFlags=1,n}function ve(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?T(he(t,r,n,i),e):e}function be(e,t){var r=v(199);return r.type=e,r.literal=t,r.transformFlags=1,r}function xe(e,t,r){var n=v(177);return n.assertsModifier=e,n.parameterName=ni(t),n.type=r,n.transformFlags=1,n}function De(e,t){var r=v(178);return r.typeName=ni(e),r.typeArguments=t&&s().parenthesizeTypeArguments(h(t)),r.transformFlags=1,r}function Se(e,t,r){r=S(179,void 0,void 0,void 0,e,t,r);return r.transformFlags=1,r}function Te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 4===e.length?Ce.apply(void 0,e):3===e.length?function(e,t,r){return Ce(void 0,e,t,r)}.apply(void 0,e):oi.Debug.fail("Incorrect number of arguments specified.")}function Ce(e,t,r,n){n=S(180,void 0,e,void 0,t,r,n);return n.transformFlags=1,n}function ke(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?T(Te(t,r,n,i),e):e}function Ee(e,t){var r=v(181);return r.exprName=e,r.typeArguments=t&&s().parenthesizeTypeArguments(t),r.transformFlags=1,r}function Ne(e){var t=v(182);return t.members=h(e),t.transformFlags=1,t}function Ae(e){var t=v(183);return t.elementType=s().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Fe(e){var t=v(184);return t.elements=h(s().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Pe(e,t,r,n){var i=v(197);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function we(e){var t=v(185);return t.type=s().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Ie(e){var t=v(186);return t.type=e,t.transformFlags=1,t}function Oe(e,t,r){e=v(e);return e.types=y.createNodeArray(r(t)),e.transformFlags=1,e}function Me(e,t,r){return e.types!==t?c(Oe(e.kind,t,r),e):e}function Le(e,t,r,n){var i=v(189);return i.checkType=s().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=s().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Re(e){var t=v(190);return t.typeParameter=e,t.transformFlags=1,t}function Be(e,t){var r=v(198);return r.head=e,r.templateSpans=h(t),r.transformFlags=1,r}function je(e,t,r,n,i){var a=t&&295===t.kind?t:void 0,t=t&&oi.isEntityName(t)?t:r&&!oi.isArray(r)?r:void 0,r=oi.isArray(r)?r:oi.isArray(n)?n:void 0;i="boolean"==typeof n?n:"boolean"==typeof i&&i;n=v(200);return n.argument=e,n.assertions=a,n.qualifier=t,n.typeArguments=r&&s().parenthesizeTypeArguments(r),n.isTypeOf=i,n.transformFlags=1,n}function Je(e){var t=v(191);return t.type=e,t.transformFlags=1,t}function ze(e,t){var r=v(193);return r.operator=e,r.type=145===e?s().parenthesizeOperandOfReadonlyTypeOperator(t):s().parenthesizeOperandOfTypeOperator(t),r.transformFlags=1,r}function Ke(e,t){var r=v(194);return r.objectType=s().parenthesizeNonArrayTypeOfPostfixType(e),r.indexType=t,r.transformFlags=1,r}function Ue(e,t,r,n,i,a){var o=v(195);return o.readonlyToken=e,o.typeParameter=t,o.nameType=r,o.questionToken=n,o.type=i,o.members=a&&h(a),o.transformFlags=1,o}function Ve(e){var t=v(196);return t.literal=e,t.transformFlags=1,t}function qe(e){var t=v(201);return t.elements=h(e),t.transformFlags|=263168|gi(t.elements),16384&t.transformFlags&&(t.transformFlags|=32896),t}function We(e){var t=v(202);return t.elements=h(e),t.transformFlags|=263168|gi(t.elements),t}function He(e,t,r,n){n=A(203,void 0,void 0,r,n&&s().parenthesizeExpressionForDisallowedComma(n));return n.propertyName=ni(t),n.dotDotDotToken=e,n.transformFlags|=1024|fi(n.dotDotDotToken),n.propertyName&&(n.transformFlags|=(oi.isIdentifier(n.propertyName)?pi:fi)(n.propertyName)),e&&(n.transformFlags|=16384),n}function Ge(e){return v(e)}function Qe(e,t){var r=Ge(204),n=e&&oi.lastOrUndefined(e),n=h(e,!(!n||!oi.isOmittedExpression(n))||void 0);return r.elements=s().parenthesizeExpressionsOfCommaDelimitedList(n),r.multiLine=t,r.transformFlags|=gi(r.elements),r}function Xe(e,t){var r=Ge(205);return r.properties=h(e),r.multiLine=t,r.transformFlags|=gi(r.properties),r}function Ye(e,t){var r=Ge(206);return r.expression=s().parenthesizeLeftSideOfAccess(e),r.name=ni(t),r.transformFlags=fi(r.expression)|(oi.isIdentifier(r.name)?pi:fi)(r.name),oi.isSuperKeyword(e)&&(r.transformFlags|=384),r}function Ze(e,t,r){var n=Ge(206);return n.flags|=32,n.expression=s().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.name=ni(r),n.transformFlags|=32|fi(n.expression)|fi(n.questionDotToken)|(oi.isIdentifier(n.name)?pi:fi)(n.name),n}function $e(e,t,r,n){return oi.Debug.assert(!!(32&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==n?c(Ze(t,r,n),e):e}function et(e,t){var r=Ge(207);return r.expression=s().parenthesizeLeftSideOfAccess(e),r.argumentExpression=ii(t),r.transformFlags|=fi(r.expression)|fi(r.argumentExpression),oi.isSuperKeyword(e)&&(r.transformFlags|=384),r}function tt(e,t,r){var n=Ge(207);return n.flags|=32,n.expression=s().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=ii(r),n.transformFlags|=fi(n.expression)|fi(n.questionDotToken)|fi(n.argumentExpression)|32,n}function rt(e,t,r,n){return oi.Debug.assert(!!(32&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==n?c(tt(t,r,n),e):e}function nt(e,t,r){var n=Ge(208);return n.expression=s().parenthesizeLeftSideOfAccess(e),n.typeArguments=ri(t),n.arguments=s().parenthesizeExpressionsOfCommaDelimitedList(h(r)),n.transformFlags|=fi(n.expression)|gi(n.typeArguments)|gi(n.arguments),n.typeArguments&&(n.transformFlags|=1),oi.isImportKeyword(n.expression)?n.transformFlags|=4194304:oi.isSuperProperty(n.expression)&&(n.transformFlags|=8192),n}function it(e,t,r,n){var i=Ge(208);return i.flags|=32,i.expression=s().parenthesizeLeftSideOfAccess(e),i.questionDotToken=t,i.typeArguments=ri(r),i.arguments=s().parenthesizeExpressionsOfCommaDelimitedList(h(n)),i.transformFlags|=fi(i.expression)|fi(i.questionDotToken)|gi(i.typeArguments)|gi(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),oi.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function at(e,t,r,n,i){return oi.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(it(t,r,n,i),e):e}function ot(e,t,r){var n=Ge(209);return n.expression=s().parenthesizeExpressionOfNew(e),n.typeArguments=ri(t),n.arguments=r?s().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=fi(n.expression)|gi(n.typeArguments)|gi(n.arguments)|32,n.typeArguments&&(n.transformFlags|=1),n}function st(e,t,r){var n=Ge(210);return n.tag=s().parenthesizeLeftSideOfAccess(e),n.typeArguments=ri(t),n.template=r,n.transformFlags|=fi(n.tag)|gi(n.typeArguments)|fi(n.template)|1024,n.typeArguments&&(n.transformFlags|=1),oi.hasInvalidEscape(n.template)&&(n.transformFlags|=128),n}function ct(e,t){var r=Ge(211);return r.expression=s().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=fi(r.expression)|fi(r.type)|1,r}function lt(e,t,r){return e.type!==t||e.expression!==r?c(ct(t,r),e):e}function ut(e){var t=Ge(212);return t.expression=e,t.transformFlags=fi(t.expression),t}function _t(e,t){return e.expression!==t?c(ut(t),e):e}function dt(e,t,r,n,i,a,o){o=C(213,void 0,e,r,n,i,a,o);return o.asteriskToken=t,o.transformFlags|=fi(o.asteriskToken),o.typeParameters&&(o.transformFlags|=1),256&oi.modifiersToFlags(o.modifiers)?o.asteriskToken?o.transformFlags|=128:o.transformFlags|=256:o.asteriskToken&&(o.transformFlags|=2048),o}function pt(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?k(dt(t,r,n,i,a,o,s),e):e}function ft(e,t,r,n,i,a){a=C(214,void 0,e,void 0,t,r,n,s().parenthesizeConciseBodyOfArrowFunction(a));return a.equalsGreaterThanToken=null!=i?i:U(38),a.transformFlags|=1024|fi(a.equalsGreaterThanToken),256&oi.modifiersToFlags(a.modifiers)&&(a.transformFlags|=8448),a}function gt(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?k(ft(t,r,n,i,a,o),e):e}function mt(e){var t=Ge(215);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=fi(t.expression),t}function yt(e){var t=Ge(216);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=fi(t.expression),t}function ht(e){var t=Ge(217);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=fi(t.expression),t}function vt(e){var t=Ge(218);return t.expression=s().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=1048960|fi(t.expression),t}function bt(e,t){var r=Ge(219);return r.operator=e,r.operand=s().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=fi(r.operand),45!==e&&46!==e||!oi.isIdentifier(r.operand)||oi.isGeneratedIdentifier(r.operand)||oi.isLocalName(r.operand)||(r.transformFlags|=67108864),r}function xt(e,t){var r=Ge(220);return r.operator=t,r.operand=s().parenthesizeOperandOfPostfixUnary(e),r.transformFlags|=fi(r.operand),!oi.isIdentifier(r.operand)||oi.isGeneratedIdentifier(r.operand)||oi.isLocalName(r.operand)||(r.transformFlags|=67108864),r}function Dt(e,t,r){var n=Ge(221),t="number"==typeof(i=t)?U(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|=fi(n.left)|fi(n.operatorToken)|fi(n.right),60===i?n.transformFlags|=32:63===i?oi.isObjectLiteralExpression(n.left)?n.transformFlags|=5248|St(n.left):oi.isArrayLiteralExpression(n.left)&&(n.transformFlags|=5120|St(n.left)):42===i||67===i?n.transformFlags|=512:oi.isLogicalOrCoalescingAssignmentOperator(i)&&(n.transformFlags|=16),n}function St(e){if(32768&e.transformFlags)return 32768;if(128&e.transformFlags)for(var t=0,r=oi.getElementsOfBindingOrAssignmentPattern(e);t<r.length;t++){var n=r[t],n=oi.getTargetOfBindingOrAssignmentElement(n);if(n&&oi.isAssignmentPattern(n)){if(32768&n.transformFlags)return 32768;if(128&n.transformFlags){n=St(n);if(n)return n}}}return 0}function Tt(e,t,r,n,i){var a=Ge(222);return a.condition=s().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:U(57),a.whenTrue=s().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:U(58),a.whenFalse=s().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=fi(a.condition)|fi(a.questionToken)|fi(a.whenTrue)|fi(a.colonToken)|fi(a.whenFalse),a}function Ct(e,t){var r=Ge(223);return r.head=e,r.templateSpans=h(t),r.transformFlags|=fi(r.head)|gi(r.templateSpans)|1024,r}function kt(e,t,r,n){void 0===n&&(n=0),oi.Debug.assert(!(-2049&n),"Unsupported template flags.");var i=void 0;if(void 0!==r&&r!==t&&"object"==typeof(i=function(e,t){si=si||oi.createScanner(99,!1,0);switch(e){case 14:si.setText("`"+t+"`");break;case 15:si.setText("`"+t+"${");break;case 16:si.setText("}"+t+"${");break;case 17:si.setText("}"+t+"`")}var r,e=si.scan();19===e&&(e=si.reScanTemplateToken(!1));if(si.isUnterminated())return si.setText(void 0),di;switch(e){case 14:case 15:case 16:case 17:r=si.getTokenValue()}return void 0!==r&&1===si.scan()?(si.setText(void 0),r):(si.setText(void 0),di)}(e,r)))return oi.Debug.fail("Invalid raw text");if(void 0===t){if(void 0===i)return oi.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&oi.Debug.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Et(e,t,r,n)}function Et(e,t,r,n){e=K(e);return e.text=t,e.rawText=r,e.templateFlags=2048&n,e.transformFlags|=1024,e.templateFlags&&(e.transformFlags|=128),e}function Nt(e,t){oi.Debug.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");var r=Ge(224);return r.expression=t&&s().parenthesizeExpressionForDisallowedComma(t),r.asteriskToken=e,r.transformFlags|=fi(r.expression)|fi(r.asteriskToken)|525440,r}function At(e){var t=Ge(225);return t.expression=s().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=17408|fi(t.expression),t}function Ft(e,t,r,n,i,a){a=N(226,e,t,r,n,i,a);return a.transformFlags|=1024,a}function Pt(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(Ft(t,r,n,i,a,o),e):e}function wt(e,t){var r=v(228);return r.expression=s().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&s().parenthesizeTypeArguments(t),r.transformFlags|=fi(r.expression)|gi(r.typeArguments)|1024,r}function It(e,t){var r=Ge(229);return r.expression=e,r.type=t,r.transformFlags|=fi(r.expression)|fi(r.type)|1,r}function Ot(e,t,r){return e.expression!==t||e.type!==r?c(It(t,r),e):e}function Mt(e){var t=Ge(230);return t.expression=s().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|fi(t.expression),t}function Lt(e,t){return oi.isNonNullChain(e)?Bt(e,t):e.expression!==t?c(Mt(t),e):e}function Rt(e){var t=Ge(230);return t.flags|=32,t.expression=s().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|fi(t.expression),t}function Bt(e,t){return oi.Debug.assert(!!(32&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?c(Rt(t),e):e}function jt(e,t){var r=Ge(231);switch(r.keywordToken=e,r.name=t,r.transformFlags|=fi(r.name),e){case 103:r.transformFlags|=1024;break;case 100:r.transformFlags|=4;break;default:return oi.Debug.assertNever(e)}return r}function Jt(e,t){var r=v(233);return r.expression=e,r.literal=t,r.transformFlags|=fi(r.expression)|fi(r.literal)|1024,r}function zt(e,t){var r=v(235);return r.statements=h(e),r.multiLine=t,r.transformFlags|=gi(r.statements),r}function Kt(e,t){e=b(237,void 0,e);return e.declarationList=oi.isArray(t)?cr(t):t,e.transformFlags|=fi(e.declarationList),2&oi.modifiersToFlags(e.modifiers)&&(e.transformFlags=1),e}function Ut(e,t,r){return e.modifiers!==t||e.declarationList!==r?c(Kt(t,r),e):e}function Vt(){return v(236)}function qt(e){var t=v(238);return t.expression=s().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=fi(t.expression),t}function Wt(e,t,r){var n=v(239);return n.expression=e,n.thenStatement=ai(t),n.elseStatement=ai(r),n.transformFlags|=fi(n.expression)|fi(n.thenStatement)|fi(n.elseStatement),n}function Ht(e,t){var r=v(240);return r.statement=ai(e),r.expression=t,r.transformFlags|=fi(r.statement)|fi(r.expression),r}function Gt(e,t){var r=v(241);return r.expression=e,r.statement=ai(t),r.transformFlags|=fi(r.expression)|fi(r.statement),r}function Qt(e,t,r,n){var i=v(242);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=ai(n),i.transformFlags|=fi(i.initializer)|fi(i.condition)|fi(i.incrementor)|fi(i.statement),i}function Xt(e,t,r){var n=v(243);return n.initializer=e,n.expression=t,n.statement=ai(r),n.transformFlags|=fi(n.initializer)|fi(n.expression)|fi(n.statement),n}function Yt(e,t,r,n){var i=v(244);return i.awaitModifier=e,i.initializer=t,i.expression=s().parenthesizeExpressionForDisallowedComma(r),i.statement=ai(n),i.transformFlags|=fi(i.awaitModifier)|fi(i.initializer)|fi(i.expression)|fi(i.statement)|1024,e&&(i.transformFlags|=128),i}function Zt(e){var t=v(245);return t.label=ni(e),t.transformFlags|=2097152|fi(t.label),t}function $t(e){var t=v(246);return t.label=ni(e),t.transformFlags|=2097152|fi(t.label),t}function er(e){var t=v(247);return t.expression=e,t.transformFlags|=2097280|fi(t.expression),t}function tr(e,t){var r=v(248);return r.expression=e,r.statement=ai(t),r.transformFlags|=fi(r.expression)|fi(r.statement),r}function rr(e,t){var r=v(249);return r.expression=s().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=fi(r.expression)|fi(r.caseBlock),r}function nr(e,t){var r=v(250);return r.label=ni(e),r.statement=ai(t),r.transformFlags|=fi(r.label)|fi(r.statement),r}function ir(e,t,r){return e.label!==t||e.statement!==r?c(nr(t,r),e):e}function ar(e){var t=v(251);return t.expression=e,t.transformFlags|=fi(t.expression),t}function or(e,t,r){var n=v(252);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=fi(n.tryBlock)|fi(n.catchClause)|fi(n.finallyBlock),n}function sr(e,t,r,n){n=F(254,void 0,void 0,e,r,n&&s().parenthesizeExpressionForDisallowedComma(n));return n.exclamationToken=t,n.transformFlags|=fi(n.exclamationToken),t&&(n.transformFlags|=1),n}function cr(e,t){void 0===t&&(t=0);var r=v(255);return r.flags|=3&t,r.declarations=h(e),r.transformFlags|=2097152|gi(r.declarations),3&t&&(r.transformFlags|=132096),r}function lr(e,t,r,n,i,a,o,s){s=C(256,e,t,n,i,a,o,s);return s.asteriskToken=r,!s.body||2&oi.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=2097152|fi(s.asteriskToken),256&oi.modifiersToFlags(s.modifiers)?s.asteriskToken?s.transformFlags|=128:s.transformFlags|=256:s.asteriskToken&&(s.transformFlags|=2048)),s}function ur(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?k(lr(t,r,n,i,a,o,s,c),e):e}function _r(e,t,r,n,i,a){a=N(257,e,t,r,n,i,a);return 2&oi.modifiersToFlags(a.modifiers)?a.transformFlags=1:(a.transformFlags|=1024,4096&a.transformFlags&&(a.transformFlags|=1)),a}function dr(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(_r(t,r,n,i,a,o),e):e}function pr(e,t,r,n,i,a){i=E(258,e,t,r,n,i);return i.members=h(a),i.transformFlags=1,i}function fr(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(pr(t,r,n,i,a,o),e):e}function gr(e,t,r,n,i){n=D(259,e,t,r,n);return n.type=i,n.transformFlags=1,n}function mr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?c(gr(t,r,n,i,a),e):e}function yr(e,t,r,n){r=x(260,e,t,r);return r.members=h(n),r.transformFlags|=1|gi(r.members),r.transformFlags&=-16777217,r}function hr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?c(yr(t,r,n,i),e):e}function vr(e,t,r,n,i){void 0===i&&(i=0);t=b(261,e,t);return t.flags|=1044&i,t.name=r,t.body=n,2&oi.modifiersToFlags(t.modifiers)?t.transformFlags=1:t.transformFlags|=fi(t.name)|fi(t.body)|1,t.transformFlags&=-16777217,t}function br(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?c(vr(t,r,n,i,e.flags),e):e}function xr(e){var t=v(262);return t.statements=h(e),t.transformFlags|=gi(t.statements),t}function Dr(e){var t=v(263);return t.clauses=h(e),t.transformFlags|=gi(t.clauses),t}function Sr(e){e=x(264,void 0,void 0,e);return e.transformFlags=1,e}function Tr(e,t,r,n,i){n=x(265,e,t,n);return n.isTypeOnly=r,n.moduleReference=i,n.transformFlags|=fi(n.moduleReference),oi.isExternalModuleReference(n.moduleReference)||(n.transformFlags|=1),n.transformFlags&=-16777217,n}function Cr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.name!==i||e.moduleReference!==a?c(Tr(t,r,n,i,a),e):e}function kr(e,t,r,n,i){t=b(266,e,t);return t.importClause=r,t.moduleSpecifier=n,t.assertClause=i,t.transformFlags|=fi(t.importClause)|fi(t.moduleSpecifier),t.transformFlags&=-16777217,t}function Er(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i||e.assertClause!==a?c(kr(t,r,n,i,a),e):e}function Nr(e,t,r){var n=v(267);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=fi(n.name)|fi(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-16777217,n}function Ar(e,t){var r=v(293);return r.elements=h(e),r.multiLine=t,r.transformFlags|=4,r}function Fr(e,t){var r=v(294);return r.name=e,r.value=t,r.transformFlags|=4,r}function Pr(e,t){var r=v(295);return r.assertClause=e,r.multiLine=t,r}function wr(e){var t=v(268);return t.name=e,t.transformFlags|=fi(t.name),t.transformFlags&=-16777217,t}function Ir(e){var t=v(274);return t.name=e,t.transformFlags|=4|fi(t.name),t.transformFlags&=-16777217,t}function Or(e){var t=v(269);return t.elements=h(e),t.transformFlags|=gi(t.elements),t.transformFlags&=-16777217,t}function Mr(e,t,r){var n=v(270);return n.isTypeOnly=e,n.propertyName=t,n.name=r,n.transformFlags|=fi(n.propertyName)|fi(n.name),n.transformFlags&=-16777217,n}function Lr(e,t,r,n){t=b(271,e,t);return t.isExportEquals=r,t.expression=r?s().parenthesizeRightSideOfBinary(63,void 0,n):s().parenthesizeExpressionOfExportDefault(n),t.transformFlags|=fi(t.expression),t.transformFlags&=-16777217,t}function Rr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?c(Lr(t,r,e.isExportEquals,n),e):e}function Br(e,t,r,n,i,a){t=b(272,e,t);return t.isTypeOnly=r,t.exportClause=n,t.moduleSpecifier=i,t.assertClause=a,t.transformFlags|=fi(t.exportClause)|fi(t.moduleSpecifier),t.transformFlags&=-16777217,t}function jr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a||e.assertClause!==o?c(Br(t,r,n,i,a,o),e):e}function Jr(e){var t=v(273);return t.elements=h(e),t.transformFlags|=gi(t.elements),t.transformFlags&=-16777217,t}function zr(e,t,r){var n=v(275);return n.isTypeOnly=e,n.propertyName=ni(t),n.name=ni(r),n.transformFlags|=fi(n.propertyName)|fi(n.name),n.transformFlags&=-16777217,n}function Kr(e){var t=v(277);return t.expression=e,t.transformFlags|=fi(t.expression),t.transformFlags&=-16777217,t}function Ur(e,t,r){void 0===r&&(r=!1);t=Vr(e,r?t&&s().parenthesizeNonArrayTypeOfPostfixType(t):t);return t.postfix=r,t}function Vr(e,t){e=v(e);return e.type=t,e}function qr(e,t){return S(317,void 0,void 0,void 0,void 0,e,t)}function Wr(e,t){void 0===t&&(t=!1);var r=v(322);return r.jsDocPropertyTags=ri(e),r.isArrayType=t,r}function Hr(e){var t=v(309);return t.type=e,t}function Gr(e,t,r){var n=v(323);return n.typeParameters=ri(e),n.parameters=h(t),n.type=r,n}function Qr(e){var t=_i(e.kind);return e.tagName.escapedText===oi.escapeLeadingUnderscores(t)?e.tagName:j(t)}function Xr(e,t,r){e=v(e);return e.tagName=t,e.comment=r,e}function Yr(e,t,r,n){n=Xr(344,null!=e?e:j("template"),n);return n.constraint=t,n.typeParameters=h(r),n}function Zr(e,t,r,n){n=Xr(345,null!=e?e:j("typedef"),n);return n.typeExpression=t,n.fullName=r,n.name=oi.getJSDocTypeAliasName(r),n}function $r(e,t,r,n,i,a){a=Xr(340,null!=e?e:j("param"),a);return a.typeExpression=n,a.name=t,a.isNameFirst=!!i,a.isBracketed=r,a}function en(e,t,r,n,i,a){a=Xr(347,null!=e?e:j("prop"),a);return a.typeExpression=n,a.name=t,a.isNameFirst=!!i,a.isBracketed=r,a}function tn(e,t,r,n){n=Xr(338,null!=e?e:j("callback"),n);return n.typeExpression=t,n.fullName=r,n.name=oi.getJSDocTypeAliasName(r),n}function rn(e,t,r){r=Xr(328,null!=e?e:j("augments"),r);return r.class=t,r}function nn(e,t,r){r=Xr(329,null!=e?e:j("implements"),r);return r.class=t,r}function an(e,t,r){r=Xr(346,null!=e?e:j("see"),r);return r.name=t,r}function on(e){var t=v(310);return t.name=e,t}function sn(e,t){var r=v(311);return r.left=e,r.right=t,r.transformFlags|=fi(r.left)|fi(r.right),r}function cn(e,t){var r=v(324);return r.name=e,r.text=t,r}function ln(e,t){var r=v(325);return r.name=e,r.text=t,r}function un(e,t){var r=v(326);return r.name=e,r.text=t,r}function _n(e,t,r){return Xr(e,null!=t?t:j(_i(e)),r)}function dn(e,t,r,n){n=Xr(e,null!=t?t:j(_i(e)),n);return n.typeExpression=r,n}function pn(e,t){return Xr(327,e,t)}function fn(e){var t=v(321);return t.text=e,t}function gn(e,t){var r=v(320);return r.comment=e,r.tags=ri(t),r}function mn(e,t,r){var n=v(278);return n.openingElement=e,n.children=h(t),n.closingElement=r,n.transformFlags|=fi(n.openingElement)|gi(n.children)|fi(n.closingElement)|2,n}function yn(e,t,r){var n=v(279);return n.tagName=e,n.typeArguments=ri(t),n.attributes=r,n.transformFlags|=fi(n.tagName)|gi(n.typeArguments)|fi(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function hn(e,t,r){var n=v(280);return n.tagName=e,n.typeArguments=ri(t),n.attributes=r,n.transformFlags|=fi(n.tagName)|gi(n.typeArguments)|fi(n.attributes)|2,t&&(n.transformFlags|=1),n}function vn(e){var t=v(281);return t.tagName=e,t.transformFlags|=2|fi(t.tagName),t}function bn(e,t,r){var n=v(282);return n.openingFragment=e,n.children=h(t),n.closingFragment=r,n.transformFlags|=fi(n.openingFragment)|gi(n.children)|fi(n.closingFragment)|2,n}function xn(e,t){var r=v(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function Dn(e,t){var r=v(285);return r.name=e,r.initializer=t,r.transformFlags|=fi(r.name)|fi(r.initializer)|2,r}function Sn(e){var t=v(286);return t.properties=h(e),t.transformFlags|=2|gi(t.properties),t}function Tn(e){var t=v(287);return t.expression=e,t.transformFlags|=2|fi(t.expression),t}function Cn(e,t){var r=v(288);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=fi(r.dotDotDotToken)|fi(r.expression)|2,r}function kn(e,t){var r=v(289);return r.expression=s().parenthesizeExpressionForDisallowedComma(e),r.statements=h(t),r.transformFlags|=fi(r.expression)|gi(r.statements),r}function En(e){var t=v(290);return t.statements=h(e),t.transformFlags=gi(t.statements),t}function Nn(e,t){var r=v(291);switch(r.token=e,r.types=h(t),r.transformFlags|=gi(r.types),e){case 94:r.transformFlags|=1024;break;case 117:r.transformFlags|=1;break;default:return oi.Debug.assertNever(e)}return r}function An(e,t){var r=v(292);return("string"==typeof e||e&&!oi.isVariableDeclaration(e))&&(e=sr(e,void 0,void 0,void 0)),r.variableDeclaration=e,r.block=t,r.transformFlags|=fi(r.variableDeclaration)|fi(r.block),e||(r.transformFlags|=64),r}function Fn(e,t){e=x(296,void 0,void 0,e);return e.initializer=s().parenthesizeExpressionForDisallowedComma(t),e.transformFlags|=fi(e.name)|fi(e.initializer),e}function Pn(e,t){e=x(297,void 0,void 0,e);return e.objectAssignmentInitializer=t&&s().parenthesizeExpressionForDisallowedComma(t),e.transformFlags|=1024|fi(e.objectAssignmentInitializer),e}function wn(e){var t=v(298);return t.expression=s().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=32896|fi(t.expression),t}function In(e,t){var r=v(299);return r.name=ni(e),r.initializer=t&&s().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=fi(r.name)|fi(r.initializer)|1,r}function On(e,t){void 0===t&&(t=oi.emptyArray);var r=v(306);return r.prepends=t,r.sourceFiles=e,r}function Mn(e,t){e=v(e);return e.data=t,e}function Ln(e,t){var r=v(350);return r.expression=e,r.original=t,r.transformFlags|=1|fi(r.expression),oi.setTextRange(r,t),r}function Rn(e,t){return e.expression!==t?c(Ln(t,e.original),e):e}function Bn(e){if(oi.nodeIsSynthesized(e)&&!oi.isParseTreeNode(e)&&!e.original&&!e.emitNode&&!e.id){if(oi.isCommaListExpression(e))return e.elements;if(oi.isBinaryExpression(e)&&oi.isCommaToken(e.operatorToken))return[e.left,e.right]}return e}function jn(e){var t=v(351);return t.elements=h(oi.sameFlatMap(e,Bn)),t.transformFlags|=gi(t.elements),t}function Jn(e,t){var r=v(354);return r.expression=e,r.thisArg=t,r.transformFlags|=fi(r.expression)|fi(r.thisArg),r}function zn(e){if(void 0===e)return e;var t,r=oi.isSourceFile(e)?l.createBaseSourceFileNode(305):oi.isIdentifier(e)?l.createBaseIdentifierNode(79):oi.isPrivateIdentifier(e)?l.createBasePrivateIdentifierNode(80):oi.isNodeKind(e.kind)?l.createBaseNode(e.kind):l.createBaseTokenNode(e.kind);for(t in r.flags|=-9&e.flags,r.transformFlags=e.transformFlags,yi(r,e),e)!r.hasOwnProperty(t)&&e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function Kn(){return ht(w("0"))}function Un(e,t,r){return oi.isCallChain(e)?it(Ze(e,void 0,t),void 0,void 0,r):nt(Ye(e,t),void 0,r)}function Vn(e,t,r){return Un(j(e),t,r)}function qn(e,t,r){return!!r&&(e.push(Fn(t,r)),!0)}function Wn(e,t){switch(e.kind){case 212:return _t(e,t);case 211:return lt(e,e.type,t);case 229:return Ot(e,t,e.type);case 230:return Lt(e,t);case 350:return Rn(e,t)}}function Hn(e){return oi.isParenthesizedExpression(e)&&oi.nodeIsSynthesized(e)&&oi.nodeIsSynthesized(oi.getSourceMapRange(e))&&oi.nodeIsSynthesized(oi.getCommentRange(e))&&!oi.some(oi.getSyntheticLeadingComments(e))&&!oi.some(oi.getSyntheticTrailingComments(e))}function Gn(e,t){var r=oi.skipParentheses(e);switch(r.kind){case 79:return t;case 108:case 8:case 9:case 10:return;case 204:return 0===r.elements.length?void 0:1;case 205:return 0<r.properties.length;default:return 1}}function Qn(e,t,r,n){void 0===n&&(n=0);var i=oi.getNameOfDeclaration(e);if(i&&oi.isIdentifier(i)&&!oi.isGeneratedIdentifier(i)){var a=oi.setParent(oi.setTextRange(zn(i),i),i.parent);return n|=oi.getEmitFlags(i),r||(n|=48),t||(n|=1536),n&&oi.setEmitFlags(a,n),a}return z(e)}function Xn(e,t,r){return Qn(e,t,r,8192)}function Yn(e,t,r,n){e=Ye(e,oi.nodeIsSynthesized(t)?t:zn(t));oi.setTextRange(e,t);t=0;return n||(t|=48),r||(t|=1536),t&&oi.setEmitFlags(e,t),e}function Zn(){return oi.startOnNewLine(qt(M("use strict")))}function $n(e,t,r,n){void 0===r&&(r=0),oi.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=e.length;r<o;){var s=e[r];if(!oi.isPrologueDirective(s))break;i=s,oi.isStringLiteral(i.expression)&&"use strict"===i.expression.text&&(a=!0),t.push(s),r++}return n&&!a&&t.push(Zn()),r}function ei(e,t,r,n,i){void 0===i&&(i=oi.returnTrue);for(var a=e.length;void 0!==r&&r<a;){var o=e[r];if(!(1048576&oi.getEmitFlags(o)&&i(o)))break;oi.append(t,n?oi.visitNode(o,n,oi.isStatement):o),r++}return r}function ti(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function ri(e){return e?h(e):void 0}function ni(e){return"string"==typeof e?j(e):e}function ii(e){return"string"==typeof e?M(e):"number"==typeof e?w(e):"boolean"==typeof e?(e?q:W)():e}function ai(e){return e&&oi.isNotEmittedStatement(e)?oi.setTextRange(yi(Vt(),e),e):e}}function li(e,t){return e!==t&&oi.setTextRange(e,t),e}function ui(e,t){return e!==t&&(yi(e,t),oi.setTextRange(e,t)),e}function _i(e){switch(e){case 343:return"type";case 341:return"returns";case 342:return"this";case 339:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 344:return"template";case 345:return"typedef";case 340:return"param";case 347:return"prop";case 338:return"callback";case 328:return"augments";case 329:return"implements";default:return oi.Debug.fail("Unsupported kind: ".concat(oi.Debug.formatSyntaxKind(e)))}}(a=oi.NodeFactoryFlags||(oi.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",oi.createNodeFactory=e;var di={};function pi(e){return-16777217&fi(e)}function fi(e){if(!e)return 0;var t=e.transformFlags&~r(e.kind);return oi.isNamedDeclaration(e)&&oi.isPropertyName(e.name)?(e=e.name,t|33562624&e.transformFlags):t}function gi(e){return e?e.transformFlags:0}function mi(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=fi(n[r]);e.transformFlags=t}function r(e){if(177<=e&&e<=200)return-2;switch(e){case 208:case 209:case 204:return 536887296;case 261:return 589443072;case 164:return 536870912;case 214:return 557748224;case 213:case 256:return 591310848;case 255:return 537165824;case 257:case 226:return 536940544;case 171:return 591306752;case 167:return 570433536;case 169:case 172:case 173:return 574529536;case 130:case 147:case 158:case 143:case 150:case 148:case 133:case 151:case 114:case 163:case 166:case 168:case 174:case 175:case 176:case 258:case 259:return-2;case 205:return 536973312;case 292:return 536903680;case 201:case 202:return 536887296;case 211:case 229:case 350:case 212:case 106:return 536870912;case 206:case 207:default:return 536870912}}oi.getTransformFlagsSubtreeExclusions=r;var t=oi.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 yi(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,l=e.helpers,e=e.startsOnNewLine;t=t||{};n&&(t.leadingComments=oi.addRange(n.slice(),t.leadingComments));i&&(t.trailingComments=oi.addRange(i.slice(),t.trailingComments));r&&(t.flags=-268435457&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(l)for(var u=0,_=l;u<_.length;u++){var d=_[u];t.helpers=oi.appendIfUnique(t.helpers,d)}void 0!==e&&(t.startsOnNewLine=e);return t}(t,e.emitNode)),e}oi.factory=e(4,a),oi.createUnparsedSourceFile=function(e,t,r){var n,i,a,o,s,c,l,u,_;oi.isString(e)?(a="",d=(o=e).length,s=t,c=r):(oi.Debug.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",s="js"===t?e.javascriptMapPath:e.declarationMapPath,l=function(){return"js"===t?e.javascriptText:e.declarationText},u=function(){return"js"===t?e.javascriptMapText:e.declarationMapText},d=function(){return l().length},e.buildInfo&&e.buildInfo.bundle&&(oi.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=oi.append(t,oi.setTextRange(oi.factory.createUnparsedTextLike(a.data,"internal"===a.kind),a));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=oi.append(r,oi.setTextRange(oi.factory.createUnparsedSyntheticReference(a),a));break;case"prologue":case"emitHelpers":case"prepend":break;default:oi.Debug.assertNever(a)}}var o=oi.factory.createUnparsedSource(oi.emptyArray,r,null!=t?t:oi.emptyArray);return oi.setEachParent(r,o),oi.setEachParent(t,o),o.helpers=oi.map(e.sources&&e.sources.helpers,function(e){return oi.getAllUnscopedEmitHelpers().get(e)}),o}(oi.Debug.checkDefined(i)):function(e,t,r){for(var n,i,a,o,s,c,l,u,_=0,d=e?e.sections:oi.emptyArray;_<d.length;_++){var p=d[_];switch(p.kind){case"prologue":n=oi.append(n,oi.setTextRange(oi.factory.createUnparsedPrologue(p.data),p));break;case"emitHelpers":i=oi.append(i,oi.getAllUnscopedEmitHelpers().get(p.data));break;case"no-default-lib":u=!0;break;case"reference":a=oi.append(a,{pos:-1,end:-1,fileName:p.data});break;case"type":o=oi.append(o,{pos:-1,end:-1,fileName:p.data});break;case"type-import":o=oi.append(o,{pos:-1,end:-1,fileName:p.data,resolutionMode:oi.ModuleKind.ESNext});break;case"type-require":o=oi.append(o,{pos:-1,end:-1,fileName:p.data,resolutionMode:oi.ModuleKind.CommonJS});break;case"lib":s=oi.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=oi.append(f,oi.setTextRange(oi.factory.createUnparsedTextLike(y.data,"internal"===y.kind),y)))}c=oi.addRange(c,f),l=oi.append(l,oi.factory.createUnparsedPrepend(p.data,null!=f?f:oi.emptyArray));break;case"internal":if(t){l=l||[];break}case"text":l=oi.append(l,oi.setTextRange(oi.factory.createUnparsedTextLike(p.data,"internal"===p.kind),p));break;default:oi.Debug.assertNever(p)}}l||(h=oi.factory.createUnparsedTextLike(void 0,!1),oi.setTextRangePosWidth(h,0,"function"==typeof r?r():r),l=[h]);var h=oi.parseNodeFactory.createUnparsedSource(null!=n?n:oi.emptyArray,void 0,l);return oi.setEachParent(n,h),oi.setEachParent(l,h),oi.setEachParent(c,h),h.hasNoDefaultLib=u,h.helpers=i,h.referencedFiles=a||oi.emptyArray,h.typeReferenceDirectives=o,h.libReferenceDirectives=s||oi.emptyArray,h}(i,n,d);return d.fileName=a,d.sourceMapPath=s,d.oldFileOfCurrentEmit=_,l&&u?(Object.defineProperty(d,"text",{get:l}),Object.defineProperty(d,"sourceMapText",{get:u})):(oi.Debug.assert(!_),d.text=null!=o?o:"",d.sourceMapText=c),d},oi.createInputFiles=function(r,e,t,n,i,a,o,s,c,l,u){var _,d,p,f,g=oi.parseNodeFactory.createInputFiles();return oi.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=l,g.oldFileOfCurrentEmit=u):(_=new oi.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 ".concat(e," was missing */\r\n")},g.javascriptPath=e,g.javascriptMapPath=t,g.declarationPath=oi.Debug.checkDefined(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(oi.Debug.checkDefined(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&&oi.getBuildInfo(e)),f||void 0;var e}}})),g},oi.createSourceMapSource=function(e,t,r){return new(i=i||oi.objectAllocator.getSourceMapSourceConstructor())(e,t,r)},oi.setOriginalNode=yi}(ts=ts||{}),function(c){function l(e){var t;if(e.emitNode)c.Debug.assert(!(268435456&e.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(c.isParseTreeNode(e)){if(305===e.kind)return e.emitNode={annotatedNodes:[e]};l(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 l(e).leadingComments=t,e}function o(e){return null===(e=e.emitNode)||void 0===e?void 0:e.trailingComments}function s(e,t){return l(e).trailingComments=t,e}c.getOrCreateEmitNode=l,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=l(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},c.setEmitFlags=function(e,t){return l(e).flags=t,e},c.addEmitFlags=function(e,t){var r=l(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 l(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=l(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 l(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 l(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=l(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 l(e).constantValue=t,e},c.addEmitHelper=function(e,t){var r=l(e);return r.helpers=c.append(r.helpers,t),e},c.addEmitHelpers=function(e,t){if(c.some(t))for(var r=l(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=l(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.getSnippetElement=function(e){return null===(e=e.emitNode)||void 0===e?void 0:e.snippetElement},c.setSnippetElement=function(e,t){return l(e).snippetElement=t,e},c.ignoreSourceNewlines=function(e){return l(e).flags|=134217728,e},c.setTypeNode=function(e,t){return l(e).typeNode=t,e},c.getTypeNode=function(e){return null===(e=e.emitNode)||void 0===e?void 0:e.typeNode}}(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(l){var u=l.factory,n=d.memoize(function(){return d.setEmitFlags(u.createTrue(),268435456)}),i=d.memoize(function(){return d.setEmitFlags(u.createFalse(),268435456)});return{getUnscopedHelperName:_,createDecorateHelper:function(e,t,r,n){l.requestEmitHelper(d.decorateHelper);var i=[];i.push(u.createArrayLiteralExpression(e,!0)),i.push(t),r&&(i.push(r),n&&i.push(n));return u.createCallExpression(_("__decorate"),void 0,i)},createMetadataHelper:function(e,t){return l.requestEmitHelper(d.metadataHelper),u.createCallExpression(_("__metadata"),void 0,[u.createStringLiteral(e),t])},createParamHelper:function(e,t,r){return l.requestEmitHelper(d.paramHelper),d.setTextRange(u.createCallExpression(_("__param"),void 0,[u.createNumericLiteral(t+""),e]),r)},createAssignHelper:function(e){if(2<=d.getEmitScriptTarget(l.getCompilerOptions()))return u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"assign"),void 0,e);return l.requestEmitHelper(d.assignHelper),u.createCallExpression(_("__assign"),void 0,e)},createAwaitHelper:function(e){return l.requestEmitHelper(d.awaitHelper),u.createCallExpression(_("__await"),void 0,[e])},createAsyncGeneratorHelper:function(e,t){return l.requestEmitHelper(d.awaitHelper),l.requestEmitHelper(d.asyncGeneratorHelper),(e.emitNode||(e.emitNode={})).flags|=786432,u.createCallExpression(_("__asyncGenerator"),void 0,[t?u.createThis():u.createVoidZero(),u.createIdentifier("arguments"),e])},createAsyncDelegatorHelper:function(e){return l.requestEmitHelper(d.awaitHelper),l.requestEmitHelper(d.asyncDelegator),u.createCallExpression(_("__asyncDelegator"),void 0,[e])},createAsyncValuesHelper:function(e){return l.requestEmitHelper(d.asyncValues),u.createCallExpression(_("__asyncValues"),void 0,[e])},createRestHelper:function(e,t,r,n){l.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(u.createConditionalExpression(u.createTypeCheck(s,"symbol"),void 0,s,void 0,u.createAdd(s,u.createStringLiteral(""))))):i.push(u.createStringLiteralFromNode(c)))}return u.createCallExpression(_("__rest"),void 0,[e,d.setTextRange(u.createArrayLiteralExpression(i),n)])},createAwaiterHelper:function(e,t,r,n){l.requestEmitHelper(d.awaiterHelper);n=u.createFunctionExpression(void 0,u.createToken(41),void 0,void 0,[],void 0,n);return(n.emitNode||(n.emitNode={})).flags|=786432,u.createCallExpression(_("__awaiter"),void 0,[e?u.createThis():u.createVoidZero(),t?u.createIdentifier("arguments"):u.createVoidZero(),r?d.createExpressionFromEntityName(u,r):u.createVoidZero(),n])},createExtendsHelper:function(e){return l.requestEmitHelper(d.extendsHelper),u.createCallExpression(_("__extends"),void 0,[e,u.createUniqueName("_super",48)])},createTemplateObjectHelper:function(e,t){return l.requestEmitHelper(d.templateObjectHelper),u.createCallExpression(_("__makeTemplateObject"),void 0,[e,t])},createSpreadArrayHelper:function(e,t,r){return l.requestEmitHelper(d.spreadArrayHelper),u.createCallExpression(_("__spreadArray"),void 0,[e,t,(r?n:i)()])},createValuesHelper:function(e){return l.requestEmitHelper(d.valuesHelper),u.createCallExpression(_("__values"),void 0,[e])},createReadHelper:function(e,t){return l.requestEmitHelper(d.readHelper),u.createCallExpression(_("__read"),void 0,void 0!==t?[e,u.createNumericLiteral(t+"")]:[e])},createGeneratorHelper:function(e){return l.requestEmitHelper(d.generatorHelper),u.createCallExpression(_("__generator"),void 0,[u.createThis(),e])},createCreateBindingHelper:function(e,t,r){return l.requestEmitHelper(d.createBindingHelper),u.createCallExpression(_("__createBinding"),void 0,__spreadArray([u.createIdentifier("exports"),e,t],r?[r]:[],!0))},createImportStarHelper:function(e){return l.requestEmitHelper(d.importStarHelper),u.createCallExpression(_("__importStar"),void 0,[e])},createImportStarCallbackHelper:function(){return l.requestEmitHelper(d.importStarHelper),_("__importStar")},createImportDefaultHelper:function(e){return l.requestEmitHelper(d.importDefaultHelper),u.createCallExpression(_("__importDefault"),void 0,[e])},createExportStarHelper:function(e,t){void 0===t&&(t=u.createIdentifier("exports"));return l.requestEmitHelper(d.exportStarHelper),l.requestEmitHelper(d.createBindingHelper),u.createCallExpression(_("__exportStar"),void 0,[e,t])},createClassPrivateFieldGetHelper:function(e,t,r,n){l.requestEmitHelper(d.classPrivateFieldGetHelper),r=n?[e,t,u.createStringLiteral(r),n]:[e,t,u.createStringLiteral(r)];return u.createCallExpression(_("__classPrivateFieldGet"),void 0,r)},createClassPrivateFieldSetHelper:function(e,t,r,n,i){l.requestEmitHelper(d.classPrivateFieldSetHelper),n=i?[e,t,r,u.createStringLiteral(n),i]:[e,t,r,u.createStringLiteral(n)];return u.createCallExpression(_("__classPrivateFieldSet"),void 0,n)},createClassPrivateFieldInHelper:function(e,t){return l.requestEmitHelper(d.classPrivateFieldInHelper),u.createCallExpression(_("__classPrivateFieldIn"),void 0,[e,t])}};function _(e){return d.setEmitFlags(u.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                    if (typeof b !== "function" && b !== null)\n                        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();'},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.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n                    if (ar || !(i in from)) {\n                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n                        ar[i] = from[i];\n                    }\n                }\n                return to.concat(ar || Array.prototype.slice.call(from));\n            };"},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                var desc = Object.getOwnPropertyDescriptor(m, k);\n                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n                  desc = { enumerable: true, get: function() { return m[k]; } };\n                }\n                Object.defineProperty(o, k2, desc);\n            }) : (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                o[k2] = m[k];\n            }));'},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, state, kind, f) {\n                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n            };'},d.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n                if (kind === "m") throw new TypeError("Private method is not writable");\n                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n            };'},d.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n            var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n                if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n                return typeof state === "function" ? receiver === state : state.has(receiver);\n            };'},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.spreadArrayHelper,d.valuesHelper,d.readHelper,d.generatorHelper,d.importStarHelper,d.importDefaultHelper,d.exportStarHelper,d.classPrivateFieldGetHelper,d.classPrivateFieldSetHelper,d.classPrivateFieldInHelper,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")},d.isCallToHelper=function(e,t){return d.isCallExpression(e)&&d.isIdentifier(e.expression)&&0!=(4096&d.getEmitFlags(e.expression))&&e.expression.escapedText===t}}(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.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 131===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 132===e.kind},e.isReadonlyKeyword=function(e){return 145===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 161===e.kind},e.isComputedPropertyName=function(e){return 162===e.kind},e.isTypeParameterDeclaration=function(e){return 163===e.kind},e.isParameter=function(e){return 164===e.kind},e.isDecorator=function(e){return 165===e.kind},e.isPropertySignature=function(e){return 166===e.kind},e.isPropertyDeclaration=function(e){return 167===e.kind},e.isMethodSignature=function(e){return 168===e.kind},e.isMethodDeclaration=function(e){return 169===e.kind},e.isClassStaticBlockDeclaration=function(e){return 170===e.kind},e.isConstructorDeclaration=function(e){return 171===e.kind},e.isGetAccessorDeclaration=function(e){return 172===e.kind},e.isSetAccessorDeclaration=function(e){return 173===e.kind},e.isCallSignatureDeclaration=function(e){return 174===e.kind},e.isConstructSignatureDeclaration=function(e){return 175===e.kind},e.isIndexSignatureDeclaration=function(e){return 176===e.kind},e.isTypePredicateNode=function(e){return 177===e.kind},e.isTypeReferenceNode=function(e){return 178===e.kind},e.isFunctionTypeNode=function(e){return 179===e.kind},e.isConstructorTypeNode=function(e){return 180===e.kind},e.isTypeQueryNode=function(e){return 181===e.kind},e.isTypeLiteralNode=function(e){return 182===e.kind},e.isArrayTypeNode=function(e){return 183===e.kind},e.isTupleTypeNode=function(e){return 184===e.kind},e.isNamedTupleMember=function(e){return 197===e.kind},e.isOptionalTypeNode=function(e){return 185===e.kind},e.isRestTypeNode=function(e){return 186===e.kind},e.isUnionTypeNode=function(e){return 187===e.kind},e.isIntersectionTypeNode=function(e){return 188===e.kind},e.isConditionalTypeNode=function(e){return 189===e.kind},e.isInferTypeNode=function(e){return 190===e.kind},e.isParenthesizedTypeNode=function(e){return 191===e.kind},e.isThisTypeNode=function(e){return 192===e.kind},e.isTypeOperatorNode=function(e){return 193===e.kind},e.isIndexedAccessTypeNode=function(e){return 194===e.kind},e.isMappedTypeNode=function(e){return 195===e.kind},e.isLiteralTypeNode=function(e){return 196===e.kind},e.isImportTypeNode=function(e){return 200===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 199===e.kind},e.isTemplateLiteralTypeNode=function(e){return 198===e.kind},e.isObjectBindingPattern=function(e){return 201===e.kind},e.isArrayBindingPattern=function(e){return 202===e.kind},e.isBindingElement=function(e){return 203===e.kind},e.isArrayLiteralExpression=function(e){return 204===e.kind},e.isObjectLiteralExpression=function(e){return 205===e.kind},e.isPropertyAccessExpression=function(e){return 206===e.kind},e.isElementAccessExpression=function(e){return 207===e.kind},e.isCallExpression=function(e){return 208===e.kind},e.isNewExpression=function(e){return 209===e.kind},e.isTaggedTemplateExpression=function(e){return 210===e.kind},e.isTypeAssertionExpression=function(e){return 211===e.kind},e.isParenthesizedExpression=function(e){return 212===e.kind},e.isFunctionExpression=function(e){return 213===e.kind},e.isArrowFunction=function(e){return 214===e.kind},e.isDeleteExpression=function(e){return 215===e.kind},e.isTypeOfExpression=function(e){return 216===e.kind},e.isVoidExpression=function(e){return 217===e.kind},e.isAwaitExpression=function(e){return 218===e.kind},e.isPrefixUnaryExpression=function(e){return 219===e.kind},e.isPostfixUnaryExpression=function(e){return 220===e.kind},e.isBinaryExpression=function(e){return 221===e.kind},e.isConditionalExpression=function(e){return 222===e.kind},e.isTemplateExpression=function(e){return 223===e.kind},e.isYieldExpression=function(e){return 224===e.kind},e.isSpreadElement=function(e){return 225===e.kind},e.isClassExpression=function(e){return 226===e.kind},e.isOmittedExpression=function(e){return 227===e.kind},e.isExpressionWithTypeArguments=function(e){return 228===e.kind},e.isAsExpression=function(e){return 229===e.kind},e.isNonNullExpression=function(e){return 230===e.kind},e.isMetaProperty=function(e){return 231===e.kind},e.isSyntheticExpression=function(e){return 232===e.kind},e.isPartiallyEmittedExpression=function(e){return 350===e.kind},e.isCommaListExpression=function(e){return 351===e.kind},e.isTemplateSpan=function(e){return 233===e.kind},e.isSemicolonClassElement=function(e){return 234===e.kind},e.isBlock=function(e){return 235===e.kind},e.isVariableStatement=function(e){return 237===e.kind},e.isEmptyStatement=function(e){return 236===e.kind},e.isExpressionStatement=function(e){return 238===e.kind},e.isIfStatement=function(e){return 239===e.kind},e.isDoStatement=function(e){return 240===e.kind},e.isWhileStatement=function(e){return 241===e.kind},e.isForStatement=function(e){return 242===e.kind},e.isForInStatement=function(e){return 243===e.kind},e.isForOfStatement=function(e){return 244===e.kind},e.isContinueStatement=function(e){return 245===e.kind},e.isBreakStatement=function(e){return 246===e.kind},e.isReturnStatement=function(e){return 247===e.kind},e.isWithStatement=function(e){return 248===e.kind},e.isSwitchStatement=function(e){return 249===e.kind},e.isLabeledStatement=function(e){return 250===e.kind},e.isThrowStatement=function(e){return 251===e.kind},e.isTryStatement=function(e){return 252===e.kind},e.isDebuggerStatement=function(e){return 253===e.kind},e.isVariableDeclaration=function(e){return 254===e.kind},e.isVariableDeclarationList=function(e){return 255===e.kind},e.isFunctionDeclaration=function(e){return 256===e.kind},e.isClassDeclaration=function(e){return 257===e.kind},e.isInterfaceDeclaration=function(e){return 258===e.kind},e.isTypeAliasDeclaration=function(e){return 259===e.kind},e.isEnumDeclaration=function(e){return 260===e.kind},e.isModuleDeclaration=function(e){return 261===e.kind},e.isModuleBlock=function(e){return 262===e.kind},e.isCaseBlock=function(e){return 263===e.kind},e.isNamespaceExportDeclaration=function(e){return 264===e.kind},e.isImportEqualsDeclaration=function(e){return 265===e.kind},e.isImportDeclaration=function(e){return 266===e.kind},e.isImportClause=function(e){return 267===e.kind},e.isAssertClause=function(e){return 293===e.kind},e.isAssertEntry=function(e){return 294===e.kind},e.isNamespaceImport=function(e){return 268===e.kind},e.isNamespaceExport=function(e){return 274===e.kind},e.isNamedImports=function(e){return 269===e.kind},e.isImportSpecifier=function(e){return 270===e.kind},e.isExportAssignment=function(e){return 271===e.kind},e.isExportDeclaration=function(e){return 272===e.kind},e.isNamedExports=function(e){return 273===e.kind},e.isExportSpecifier=function(e){return 275===e.kind},e.isMissingDeclaration=function(e){return 276===e.kind},e.isNotEmittedStatement=function(e){return 349===e.kind},e.isSyntheticReference=function(e){return 354===e.kind},e.isMergeDeclarationMarker=function(e){return 352===e.kind},e.isEndOfDeclarationMarker=function(e){return 353===e.kind},e.isExternalModuleReference=function(e){return 277===e.kind},e.isJsxElement=function(e){return 278===e.kind},e.isJsxSelfClosingElement=function(e){return 279===e.kind},e.isJsxOpeningElement=function(e){return 280===e.kind},e.isJsxClosingElement=function(e){return 281===e.kind},e.isJsxFragment=function(e){return 282===e.kind},e.isJsxOpeningFragment=function(e){return 283===e.kind},e.isJsxClosingFragment=function(e){return 284===e.kind},e.isJsxAttribute=function(e){return 285===e.kind},e.isJsxAttributes=function(e){return 286===e.kind},e.isJsxSpreadAttribute=function(e){return 287===e.kind},e.isJsxExpression=function(e){return 288===e.kind},e.isCaseClause=function(e){return 289===e.kind},e.isDefaultClause=function(e){return 290===e.kind},e.isHeritageClause=function(e){return 291===e.kind},e.isCatchClause=function(e){return 292===e.kind},e.isPropertyAssignment=function(e){return 296===e.kind},e.isShorthandPropertyAssignment=function(e){return 297===e.kind},e.isSpreadAssignment=function(e){return 298===e.kind},e.isEnumMember=function(e){return 299===e.kind},e.isUnparsedPrepend=function(e){return 301===e.kind},e.isSourceFile=function(e){return 305===e.kind},e.isBundle=function(e){return 306===e.kind},e.isUnparsedSource=function(e){return 307===e.kind},e.isJSDocTypeExpression=function(e){return 309===e.kind},e.isJSDocNameReference=function(e){return 310===e.kind},e.isJSDocMemberName=function(e){return 311===e.kind},e.isJSDocLink=function(e){return 324===e.kind},e.isJSDocLinkCode=function(e){return 325===e.kind},e.isJSDocLinkPlain=function(e){return 326===e.kind},e.isJSDocAllType=function(e){return 312===e.kind},e.isJSDocUnknownType=function(e){return 313===e.kind},e.isJSDocNullableType=function(e){return 314===e.kind},e.isJSDocNonNullableType=function(e){return 315===e.kind},e.isJSDocOptionalType=function(e){return 316===e.kind},e.isJSDocFunctionType=function(e){return 317===e.kind},e.isJSDocVariadicType=function(e){return 318===e.kind},e.isJSDocNamepathType=function(e){return 319===e.kind},e.isJSDoc=function(e){return 320===e.kind},e.isJSDocTypeLiteral=function(e){return 322===e.kind},e.isJSDocSignature=function(e){return 323===e.kind},e.isJSDocAugmentsTag=function(e){return 328===e.kind},e.isJSDocAuthorTag=function(e){return 330===e.kind},e.isJSDocClassTag=function(e){return 332===e.kind},e.isJSDocCallbackTag=function(e){return 338===e.kind},e.isJSDocPublicTag=function(e){return 333===e.kind},e.isJSDocPrivateTag=function(e){return 334===e.kind},e.isJSDocProtectedTag=function(e){return 335===e.kind},e.isJSDocReadonlyTag=function(e){return 336===e.kind},e.isJSDocOverrideTag=function(e){return 337===e.kind},e.isJSDocDeprecatedTag=function(e){return 331===e.kind},e.isJSDocSeeTag=function(e){return 346===e.kind},e.isJSDocEnumTag=function(e){return 339===e.kind},e.isJSDocParameterTag=function(e){return 340===e.kind},e.isJSDocReturnTag=function(e){return 341===e.kind},e.isJSDocThisTag=function(e){return 342===e.kind},e.isJSDocTypeTag=function(e){return 343===e.kind},e.isJSDocTemplateTag=function(e){return 344===e.kind},e.isJSDocTypedefTag=function(e){return 345===e.kind},e.isJSDocUnknownTag=function(e){return 327===e.kind},e.isJSDocPropertyTag=function(e){return 347===e.kind},e.isJSDocImplementsTag=function(e){return 329===e.kind},e.isSyntaxList=function(e){return 348===e.kind}}(ts=ts||{}),function(f){function u(e,t,r,n){if(f.isComputedPropertyName(r))return f.setTextRange(e.createElementAccessExpression(t,r.expression),n);r=f.setTextRange(f.isMemberName(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){return f.isParenthesizedExpression(e)&&f.isInJSFile(e)&&!!f.getJSDocTypeTag(e)}function n(e,t){switch(void 0===t&&(t=15),e.kind){case 212:return 16&t&&r(e)?!1:0!=(1&t);case 211:case 229:return 0!=(2&t);case 230:return 0!=(4&t);case 350:return 0!=(8&t)}return!1}function t(e,t){for(void 0===t&&(t=15);n(e,t);)e=e.expression;return e}function h(e){return f.setStartsOnNewLine(e,!0)}function l(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=l(t);if(a)return a;var a=f.getEmitModuleKind(r),o=(n||f.getESModuleInterop(r)&&i)&&a!==f.ModuleKind.System&&(a<f.ModuleKind.ES2015||t.impliedNodeFormat===f.ModuleKind.CommonJS);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 a(e){if(f.isDeclarationBindingElement(e))return e.name;if(!f.isObjectLiteralElementLike(e))return f.isAssignmentExpression(e,!0)?a(e.left):f.isSpreadElement(e)?a(e.expression):e;switch(e.kind){case 296:return a(e.initializer);case 297:return e.name;case 298:return a(e.expression)}}function o(e){switch(e.kind){case 203:if(e.propertyName){var t=e.propertyName;return f.isPrivateIdentifier(t)?f.Debug.failBadSyntaxKind(t):f.isComputedPropertyName(t)&&c(t.expression)?t.expression:t}break;case 296:if(e.name){t=e.name;return f.isPrivateIdentifier(t)?f.Debug.failBadSyntaxKind(t):f.isComputedPropertyName(t)&&c(t.expression)?t.expression:t}break;case 298:return e.name&&f.isPrivateIdentifier(e.name)?f.Debug.failBadSyntaxKind(e.name):e.name}var r=a(e);if(r&&f.isPropertyName(r))return r}function c(e){e=e.kind;return 10===e||8===e}function d(e){return 60===(t=e)||(55===(n=r=t)||56===n||(50===(r=n=r)||51===r||52===r||(34===(n=r=n)||36===n||35===n||37===n||(29===(r=n=r)||32===r||31===r||33===r||102===r||101===r||(47===(n=r=n)||48===n||49===n||(39===(r=n=r)||40===r||(42===(n=n)||(41===(n=n)||43===n||44===n))))))))||f.isAssignmentOperator(t)||27===e;var t,r,n}var v,e;function b(e,t,r,n,i,a,o){var s=0<t?i[t-1]:void 0;return f.Debug.assertEqual(r[t],b),i[t]=e.onEnter(n[t],s,o),r[t]=k(e,b),t}function x(e,t,r,n,i,a,o){f.Debug.assertEqual(r[t],x),f.Debug.assertIsDefined(e.onLeft),r[t]=k(e,x);e=e.onLeft(n[t].left,i[t],n[t]);return e?(N(t,n,e),E(t,r,n,i,e)):t}function D(e,t,r,n,i,a,o){return f.Debug.assertEqual(r[t],D),f.Debug.assertIsDefined(e.onOperator),r[t]=k(e,D),e.onOperator(n[t].operatorToken,i[t],n[t]),t}function S(e,t,r,n,i,a,o){f.Debug.assertEqual(r[t],S),f.Debug.assertIsDefined(e.onRight),r[t]=k(e,S);e=e.onRight(n[t].right,i[t],n[t]);return e?(N(t,n,e),E(t,r,n,i,e)):t}function T(e,t,r,n,i,a,o){f.Debug.assertEqual(r[t],T),r[t]=k(e,T);n=e.onExit(n[t],i[t]);return 0<t?(t--,e.foldState&&(r=r[t]===T?"right":"left",i[t]=e.foldState(i[t],n,r))):a.value=n,t}function C(e,t,r,n,i,a,o){return f.Debug.assertEqual(r[t],C),t}function k(e,t){switch(t){case b:if(e.onLeft)return x;case x:if(e.onOperator)return D;case D:if(e.onRight)return S;case S:return T;case T:case C:return C;default:f.Debug.fail("Invalid state")}}function E(e,t,r,n,i){return t[++e]=b,r[e]=i,n[e]=void 0,e}function N(e,t,r){if(f.Debug.shouldAssert(2))for(;0<=e;)f.Debug.assert(t[e]!==r,"Circular traversal detected."),e--}f.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},f.createMemberAccessForPropertyName=u,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 l=c[s];h(l),o.push(l)}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,l,u=[(s=e,c=n,l=a,(r=r)?m(s,r,l):s.createPropertyAccessExpression(g(c,l),"Fragment")),e.createNull()];if(i&&0<i.length)if(1<i.length)for(var _=0,d=i;_<d.length;_++){var p=d[_];h(p),u.push(p)}else u.push(i[0]);return f.setTextRange(e.createCallExpression(y(e,t,n,a),void 0,u),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(__spreadArray([r],t.statements,!0)),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 172:case 173: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 296:return s=e,c=r,l=n,f.setOriginalNode(f.setTextRange(s.createAssignment(u(s,l,c.name,c.name),c.initializer),c),c);case 297:return i=e,a=r,o=n,f.setOriginalNode(f.setTextRange(i.createAssignment(u(i,o,a.name,a.name),i.cloneNode(a.name)),a),a);case 169:return o=e,i=r,a=n,f.setOriginalNode(f.setTextRange(o.createAssignment(u(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,l},f.expandPreOrPostfixIncrementOrDecrementExpression=function(e,t,r,n,i){var a=t.operator;return f.Debug.assert(45===a||46===a,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression"),n=e.createTempVariable(n),r=e.createAssignment(n,r),f.setTextRange(r,t.operand),a=f.isPrefixUnaryExpression(t)?e.createPrefixUnaryExpression(a,n):e.createPostfixUnaryExpression(n,a),f.setTextRange(a,t),i&&(a=e.createAssignment(i,a),f.setTextRange(a,t)),r=e.createComma(r,a),f.setTextRange(r,t),f.isPostfixUnaryExpression(t)&&(r=e.createComma(r,n),f.setTextRange(r,t)),r},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 221===e.kind&&27===e.operatorToken.kind||351===e.kind},f.isJSDocTypeAssertion=r,f.getJSDocTypeAssertionType=function(e){return e=f.getJSDocType(e),f.Debug.assertIsDefined(e),e},f.isOuterExpression=n,f.skipOuterExpressions=t,f.skipAssertions=function(e){return t(e,6)},f.startOnNewLine=h,f.getExternalHelpersModuleName=l,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||n.impliedNodeFormat===f.ModuleKind.ESNext){c=f.getEmitHelpers(n);if(c){for(var l=[],u=0,_=c;u<_.length;u++){var d=_[u];d.scoped||(d=d.importName)&&f.pushIfUnique(l,d)}f.some(l)&&(l.sort(f.compareStringsCaseSensitive),s=t.createNamedImports(f.map(l,function(e){return f.isFileLevelUniqueName(n,e)?t.createImportSpecifier(!1,void 0,t.createIdentifier(e)):t.createImportSpecifier(!1,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),void 0);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)?266===t.kind&&t.importClause||272===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(o&&f.isStringLiteral(o))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):void 0}(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=a,f.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 164:case 203:return e.dotDotDotToken;case 225:case 298:return e}},f.getPropertyNameOfBindingOrAssignmentElement=function(e){var t=o(e);return f.Debug.assert(!!t||f.isSpreadAssignment(e),"Invalid property name for binding element."),t},f.tryGetPropertyNameOfBindingOrAssignmentElement=o,f.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 201:case 202:case 204:return e.elements;case 205: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 164===(e=e.kind)||166===e||167===e||168===e||169===e||171===e||172===e||173===e||176===e||213===e||214===e||226===e||237===e||256===e||257===e||258===e||259===e||260===e||261===e||265===e||266===e||271===e||272===e},f.isTypeNodeOrTypeParameterDeclaration=f.or(f.isTypeNode,f.isTypeParameterDeclaration),f.isQuestionOrExclamationToken=f.or(f.isQuestionToken,f.isExclamationToken),f.isIdentifierOrThisTypeNode=f.or(f.isIdentifier,f.isThisTypeNode),f.isReadonlyKeywordOrPlusOrMinusToken=f.or(f.isReadonlyKeyword,f.isPlusToken,f.isMinusToken),f.isQuestionOrPlusOrMinusToken=f.or(f.isQuestionToken,f.isPlusToken,f.isMinusToken),f.isModuleName=f.or(f.isIdentifier,f.isStringLiteral),f.isLiteralTypeLikeExpression=function(e){var t=e.kind;return 104===t||110===t||95===t||f.isLiteralExpression(e)||f.isPrefixUnaryExpression(e)},f.isBinaryOperatorToken=function(e){return d(e.kind)},(e=v=v||{}).enter=b,e.left=x,e.operator=D,e.right=S,e.exit=T,e.done=C,e.nextState=k;var A=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};f.createBinaryExpressionTrampoline=function(e,t,r,n,i,a){var s=new A(e,t,r,n,i,a);return function(e,t){var r={value:void 0},n=[v.enter],i=[e],a=[void 0],o=0;for(;n[o]!==v.done;)o=n[o](s,o,n,i,a,r,t);return f.Debug.assertEqual(o,0),r.value}}}(ts=ts||{}),function(r){r.setTextRange=function(e,t){return t?r.setTextRangePosEnd(e,t.pos,t.end):e}}(ts=ts||{}),function(Ii){var t,r,n,i,a,y,Oi,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 Mi(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function c(e){return Ii.forEach(e.statements,l)||(4194304&(e=e).flags?u(e):void 0)}function l(e){return t=e,r=93,Ii.some(t.modifiers,function(e){return e.kind===r})||Ii.isImportEqualsDeclaration(e)&&Ii.isExternalModuleReference(e.moduleReference)||Ii.isImportDeclaration(e)||Ii.isExportAssignment(e)||Ii.isExportDeclaration(e)?e:void 0;var t,r}function u(e){return t=e,Ii.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText?e:h(e,u);var t}function h(e,t,r){if(e&&!(e.kind<=160))switch(e.kind){case 161:return o(t,e.left)||o(t,e.right);case 163:return s(t,r,e.modifiers)||o(t,e.name)||o(t,e.constraint)||o(t,e.default)||o(t,e.expression);case 297: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 298:return o(t,e.expression);case 164: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 167: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 166: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 296:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.questionToken)||o(t,e.initializer);case 254: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 203: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 179:case 180:case 174:case 175:case 176: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 169:case 168:case 171:case 172:case 173:case 213:case 256:case 214: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 170:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.body);case 178:return o(t,e.typeName)||s(t,r,e.typeArguments);case 177:return o(t,e.assertsModifier)||o(t,e.parameterName)||o(t,e.type);case 181:return o(t,e.exprName)||s(t,r,e.typeArguments);case 182:return s(t,r,e.members);case 183:return o(t,e.elementType);case 184:return s(t,r,e.elements);case 187:case 188:return s(t,r,e.types);case 189:return o(t,e.checkType)||o(t,e.extendsType)||o(t,e.trueType)||o(t,e.falseType);case 190:return o(t,e.typeParameter);case 200:return o(t,e.argument)||o(t,e.assertions)||o(t,e.qualifier)||s(t,r,e.typeArguments);case 295:return o(t,e.assertClause);case 191:case 193:return o(t,e.type);case 194:return o(t,e.objectType)||o(t,e.indexType);case 195:return o(t,e.readonlyToken)||o(t,e.typeParameter)||o(t,e.nameType)||o(t,e.questionToken)||o(t,e.type)||s(t,r,e.members);case 196:return o(t,e.literal);case 197:return o(t,e.dotDotDotToken)||o(t,e.name)||o(t,e.questionToken)||o(t,e.type);case 201:case 202:case 204:return s(t,r,e.elements);case 205:return s(t,r,e.properties);case 206:return o(t,e.expression)||o(t,e.questionDotToken)||o(t,e.name);case 207:return o(t,e.expression)||o(t,e.questionDotToken)||o(t,e.argumentExpression);case 208:case 209:return o(t,e.expression)||o(t,e.questionDotToken)||s(t,r,e.typeArguments)||s(t,r,e.arguments);case 210:return o(t,e.tag)||o(t,e.questionDotToken)||s(t,r,e.typeArguments)||o(t,e.template);case 211:return o(t,e.type)||o(t,e.expression);case 212:case 215:case 216:case 217:return o(t,e.expression);case 219:return o(t,e.operand);case 224:return o(t,e.asteriskToken)||o(t,e.expression);case 218:return o(t,e.expression);case 220:return o(t,e.operand);case 221:return o(t,e.left)||o(t,e.operatorToken)||o(t,e.right);case 229:return o(t,e.expression)||o(t,e.type);case 230:return o(t,e.expression);case 231:return o(t,e.name);case 222:return o(t,e.condition)||o(t,e.questionToken)||o(t,e.whenTrue)||o(t,e.colonToken)||o(t,e.whenFalse);case 225:return o(t,e.expression);case 235:case 262:return s(t,r,e.statements);case 305:return s(t,r,e.statements)||o(t,e.endOfFileToken);case 237:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.declarationList);case 255:return s(t,r,e.declarations);case 238:return o(t,e.expression);case 239:return o(t,e.expression)||o(t,e.thenStatement)||o(t,e.elseStatement);case 240:return o(t,e.statement)||o(t,e.expression);case 241:return o(t,e.expression)||o(t,e.statement);case 242:return o(t,e.initializer)||o(t,e.condition)||o(t,e.incrementor)||o(t,e.statement);case 243:return o(t,e.initializer)||o(t,e.expression)||o(t,e.statement);case 244:return o(t,e.awaitModifier)||o(t,e.initializer)||o(t,e.expression)||o(t,e.statement);case 245:case 246:return o(t,e.label);case 247:return o(t,e.expression);case 248:return o(t,e.expression)||o(t,e.statement);case 249:return o(t,e.expression)||o(t,e.caseBlock);case 263:return s(t,r,e.clauses);case 289:return o(t,e.expression)||s(t,r,e.statements);case 290:return s(t,r,e.statements);case 250:return o(t,e.label)||o(t,e.statement);case 251:return o(t,e.expression);case 252:return o(t,e.tryBlock)||o(t,e.catchClause)||o(t,e.finallyBlock);case 292:return o(t,e.variableDeclaration)||o(t,e.block);case 165:return o(t,e.expression);case 257:case 226:case 258: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 259: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 260:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||s(t,r,e.members);case 299:return o(t,e.name)||o(t,e.initializer);case 261:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.body);case 265:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.name)||o(t,e.moduleReference);case 266:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.importClause)||o(t,e.moduleSpecifier)||o(t,e.assertClause);case 267:return o(t,e.name)||o(t,e.namedBindings);case 293:return s(t,r,e.elements);case 294:return o(t,e.name)||o(t,e.value);case 264:case 268:case 274:return o(t,e.name);case 269:case 273:return s(t,r,e.elements);case 272:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.exportClause)||o(t,e.moduleSpecifier)||o(t,e.assertClause);case 270:case 275:return o(t,e.propertyName)||o(t,e.name);case 271:return s(t,r,e.decorators)||s(t,r,e.modifiers)||o(t,e.expression);case 223:return o(t,e.head)||s(t,r,e.templateSpans);case 233:return o(t,e.expression)||o(t,e.literal);case 198:return o(t,e.head)||s(t,r,e.templateSpans);case 199:return o(t,e.type)||o(t,e.literal);case 162:return o(t,e.expression);case 291:return s(t,r,e.types);case 228:return o(t,e.expression)||s(t,r,e.typeArguments);case 277:return o(t,e.expression);case 276:return s(t,r,e.decorators);case 351:return s(t,r,e.elements);case 278:return o(t,e.openingElement)||s(t,r,e.children)||o(t,e.closingElement);case 282:return o(t,e.openingFragment)||s(t,r,e.children)||o(t,e.closingFragment);case 279:case 280:return o(t,e.tagName)||s(t,r,e.typeArguments)||o(t,e.attributes);case 286:return s(t,r,e.properties);case 285:return o(t,e.name)||o(t,e.initializer);case 287:return o(t,e.expression);case 288:return o(t,e.dotDotDotToken)||o(t,e.expression);case 281:return o(t,e.tagName);case 185:case 186:case 309:case 315:case 314:case 316:case 318:return o(t,e.type);case 317:return s(t,r,e.parameters)||o(t,e.type);case 320:return("string"==typeof e.comment?void 0:s(t,r,e.comment))||s(t,r,e.tags);case 346:return o(t,e.tagName)||o(t,e.name)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 310:return o(t,e.name);case 311:return o(t,e.left)||o(t,e.right);case 340:case 347:return o(t,e.tagName)||(e.isNameFirst?o(t,e.name)||o(t,e.typeExpression)||("string"==typeof e.comment?void 0:s(t,r,e.comment)):o(t,e.typeExpression)||o(t,e.name)||("string"==typeof e.comment?void 0:s(t,r,e.comment)));case 330:return o(t,e.tagName)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 329:case 328:return o(t,e.tagName)||o(t,e.class)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 344:return o(t,e.tagName)||o(t,e.constraint)||s(t,r,e.typeParameters)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 345:return o(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?o(t,e.typeExpression)||o(t,e.fullName)||("string"==typeof e.comment?void 0:s(t,r,e.comment)):o(t,e.fullName)||o(t,e.typeExpression)||("string"==typeof e.comment?void 0:s(t,r,e.comment)));case 338:return o(t,e.tagName)||o(t,e.fullName)||o(t,e.typeExpression)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 341:case 343:case 342:case 339:return o(t,e.tagName)||o(t,e.typeExpression)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 323:return Ii.forEach(e.typeParameters,t)||Ii.forEach(e.parameters,t)||o(t,e.type);case 324:case 325:case 326:return o(t,e.name);case 322:return Ii.forEach(e.jsDocPropertyTags,t);case 327:case 332:case 333:case 334:case 335:case 336:case 331:return o(t,e.tagName)||("string"==typeof e.comment?void 0:s(t,r,e.comment));case 350:return o(t,e.expression)}}function d(e){var t=[];return h(e,r,r),t;function r(e){t.unshift(e)}}function Li(e){e.externalModuleIndicator=c(e)}function Ri(e){return void 0!==e.externalModuleIndicator}function v(e,t,i,a,o,s){function c(e){var t="";if(s&&_(e)&&(t=a.substring(e.pos,e.end)),e._children&&(e._children=void 0),Ii.setTextRangePosEnd(e,e.pos+i,e.end+i),s&&_(e)&&Ii.Debug.assert(t===o.substring(e.pos,e.end)),h(e,c,l),Ii.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++)c(n[r]);x(e,s)}function l(e){e._children=void 0,Ii.setTextRangePosEnd(e,e.pos+i,e.end+i);for(var t=0,r=e;t<r.length;t++)c(r[t])}(t?l:c)(e)}function _(e){switch(e.kind){case 10:case 8:case 79:return 1}}function b(e,t,r,n,i){Ii.Debug.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),Ii.Debug.assert(e.pos<=r,"Adjusting an element that was entirely after the change range"),Ii.Debug.assert(e.pos<=e.end);t=Math.min(e.pos,n),n=e.end>=r?e.end+i:Math.min(e.end,n);Ii.Debug.assert(t<=n),e.parent&&(Ii.Debug.assertGreaterThanOrEqual(t,e.parent.pos),Ii.Debug.assertLessThanOrEqual(n,e.parent.end)),Ii.setTextRangePosEnd(e,t,n)}function x(e,t){if(t){var r=e.pos,n=function(e){Ii.Debug.assert(e.pos>=r),r=e.end};if(Ii.hasJSDocNodes(e))for(var i=0,a=e.jsDoc;i<a.length;i++)n(a[i]);h(e,n),Ii.Debug.assert(r<=e.end)}}function D(e,t,r,n){var i=e.text;r&&(Ii.Debug.assert(i.length-r.span.length+r.newLength===t.length),(n||Ii.Debug.shouldAssert(3))&&(e=i.substr(0,r.span.start),n=t.substr(0,r.span.start),Ii.Debug.assert(e===n),i=i.substring(Ii.textSpanEnd(r.span),i.length),t=t.substring(Ii.textSpanEnd(Ii.textChangeRangeNewSpan(r)),t.length),Ii.Debug.assert(i===t)))}function S(t){var o=t.statements,s=0;Ii.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&&(h(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 h(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,h(t,n,i))),r=e,Ii.Debug.assert(!c||c.pos===e),c}}}function Bi(e){return Ii.fileExtensionIsOneOf(e,Ii.supportedDeclarationExtensions)}function ji(e,t){for(var r=[],n=0,i=Ii.getLeadingCommentRanges(t,0)||Ii.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=Ii.commentPragmas[i])&&1&n.kind)if(n.args){for(var a={},o=0,s=n.args;o<s.length;o++){var c,l=s[o],u=function(e){if(p.has(e))return p.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return p.set(e,t),t}(l.name).exec(r);if(!u&&!l.optional)return;u&&(c=u[2]||u[3],l.captureSpan?(u=t.pos+u.index+u[1].length+1,a[l.name]={value:c,pos:u,end:u+c.length}):a[l.name]=c)}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+.*)?$/gim,d=void 0;d=_.exec(r);)m(e,t,4,d)}}(r,a,t.substring(a.pos,a.end))}e.pragmas=new Ii.Map;for(var o=0,s=r;o<s.length;o++){var c,l=s[o];e.pragmas.has(l.name)?(c=e.pragmas.get(l.name))instanceof Array?c.push(l.args):e.pragmas.set(l.name,[c,l.args]):e.pragmas.set(l.name,l.args)}}function Ji(c,l){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 a=c.referencedFiles,o=c.typeReferenceDirectives,s=c.libReferenceDirectives;Ii.forEach(Ii.toArray(e),function(e){var t=e.arguments,r=t.types,n=t.lib,i=t.path,t=t["resolution-mode"];e.arguments["no-default-lib"]?c.hasNoDefaultLib=!0:r?(t=function(e,t,r,n){if(e)return"import"===e?Ii.ModuleKind.ESNext:"require"===e?Ii.ModuleKind.CommonJS:void n(t,r-t,Ii.Diagnostics.resolution_mode_should_be_either_require_or_import)}(t,r.pos,r.end,l),o.push(__assign({pos:r.pos,end:r.end,fileName:r.value},t?{resolutionMode:t}:{}))):n?s.push({pos:n.pos,end:n.end,fileName:n.value}):i?a.push({pos:i.pos,end:i.end,fileName:i.value}):l(e.range.pos,e.range.end-e.range.pos,Ii.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":c.amdDependencies=Ii.map(Ii.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 i=n[r];c.moduleName&&l(i.range.pos,i.range.end-i.range.pos,Ii.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),c.moduleName=i.arguments.name}else c.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":Ii.forEach(Ii.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:Ii.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",Ii.parseBaseNodeFactory={createBaseSourceFileNode:function(e){return new(a=a||Ii.objectAllocator.getSourceFileConstructor())(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n=n||Ii.objectAllocator.getIdentifierConstructor())(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(i=i||Ii.objectAllocator.getPrivateIdentifierConstructor())(e,-1,-1)},createBaseTokenNode:function(e){return new(r=r||Ii.objectAllocator.getTokenConstructor())(e,-1,-1)},createBaseNode:function(e){return new(t=t||Ii.objectAllocator.getNodeConstructor())(e,-1,-1)}},Ii.parseNodeFactory=Ii.createNodeFactory(1,Ii.parseBaseNodeFactory),Ii.isJSDocLikeText=Mi,Ii.isFileProbablyExternalModule=c,Ii.forEachChild=h,Ii.forEachChildRecursively=function(e,t,r){for(var n=d(e),i=[];i.length<n.length;)i.push(e);for(;0!==n.length;){var a,o=n.pop(),s=i.pop();if(Ii.isArray(o)){if(r)if(a=r(o,s)){if("skip"===a)continue;return a}for(var c=o.length-1;0<=c;--c)n.push(o[c]),i.push(s)}else{if(a=t(o,s)){if("skip"===a)continue;return a}if(161<=o.kind)for(var l=0,u=d(o);l<u.length;l++){var _=u[l];n.push(_),i.push(o)}}}},Ii.createSourceFile=function(e,t,r,n,i){void 0===n&&(n=!1),null!==Ii.tracing&&void 0!==Ii.tracing&&Ii.tracing.push("parse","createSourceFile",{path:e},!0),Ii.performance.mark("beforeParse"),Ii.perfLogger.logStartParseSourceFile(e);var a,o="object"==typeof r?r:{languageVersion:r},r=o.languageVersion,s=o.setExternalModuleIndicator,c=o.impliedNodeFormat;return a=100===r?y.parseSourceFile(e,t,r,void 0,n,6,Ii.noop):(a=void 0===c?s:function(e){return e.impliedNodeFormat=c,(s||Li)(e)},y.parseSourceFile(e,t,r,void 0,n,i,a)),Ii.perfLogger.logStopParseSourceFile(),Ii.performance.mark("afterParse"),Ii.performance.measure("Parse","beforeParse","afterParse"),null!==Ii.tracing&&void 0!==Ii.tracing&&Ii.tracing.pop(),a},Ii.parseIsolatedEntityName=function(e,t){return y.parseIsolatedEntityName(e,t)},Ii.parseJsonText=function(e,t){return y.parseJsonText(e,t)},Ii.isExternalModule=Ri,Ii.updateSourceFile=function(e,t,r,n){return void 0===n&&(n=!1),(n=Oi.updateSourceFile(e,t,r,n)).flags|=6291456&e.flags,n},Ii.parseIsolatedJSDocComment=function(e,t,r){return(r=y.JSDocParser.parseIsolatedJSDocComment(e,t,r))&&r.jsDoc&&y.fixupParentReferences(r.jsDoc),r},Ii.parseJSDocTypeExpressionForTests=function(e,t,r){return y.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(e){var a,o,s,c,l,K=Ii.createScanner(99,!0),n=20480;function t(e){return y++,e}var U,u,S,_,d,p,f,g,m,V,y,h,v,T,b,r,x,i={createBaseSourceFileNode:function(e){return t(new l(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))}},q=Ii.createNodeFactory(11,i),D=!0,C=!1;function k(e,t,r,n,i){void 0===r&&(r=2),void 0===i&&(i=!1),E(e,t,r,n,6),u=x,_e();var a,r=se();if(1===V)a=je([],r,r),c=Me();else{for(var o=void 0;1!==V;){var s=void 0;switch(V){case 22:s=gn();break;case 110:case 95:case 104:s=Me();break;case 40:s=(be(function(){return 8===_e()&&58!==_e()})?qr:yn)();break;case 8:case 10:if(be(function(){return 58!==_e()})){s=Et();break}default:s=yn()}o&&Ii.isArray(o)?o.push(s):o?o=[o,s]:(o=s,1!==V&&re(Ii.Diagnostics.Unexpected_token))}n=Ii.isArray(o)?Je(q.createArrayLiteralExpression(o),r):Ii.Debug.checkDefined(o),n=q.createExpressionStatement(n);Je(n,r),a=je([n],r),c=Oe(1,Ii.Diagnostics.Unexpected_token)}var c=I(e,2,6,!1,a,c,u,Ii.noop);i&&w(c),c.nodeCount=y,c.identifierCount=T,c.identifiers=h,c.parseDiagnostics=Ii.attachFileToDiagnostics(f,c),g&&(c.jsDocDiagnostics=Ii.attachFileToDiagnostics(g,c));return N(),c}function E(e,t,r,n,i){switch(a=Ii.objectAllocator.getNodeConstructor(),o=Ii.objectAllocator.getTokenConstructor(),s=Ii.objectAllocator.getIdentifierConstructor(),c=Ii.objectAllocator.getPrivateIdentifierConstructor(),l=Ii.objectAllocator.getSourceFileConstructor(),U=Ii.normalizePath(e),S=t,_=r,m=n,d=i,p=Ii.getLanguageVariant(i),f=[],b=0,h=new Ii.Map,v=new Ii.Map,D=!(u=y=T=0),d){case 1:case 2:x=262144;break;case 6:x=67371008;break;default:x=0}C=!1,K.setText(S),K.setOnError(oe),K.setScriptTarget(_),K.setLanguageVariant(p)}function N(){K.clearCommentDirectives(),K.setText(""),K.setOnError(void 0),p=d=m=_=S=void 0,g=f=void(u=0),D=!(r=h=void(b=0))}function A(e,t){return t?F(e):e}e.parseSourceFile=function(e,t,r,n,i,a,o){if(void 0===i&&(i=!1),6!==(a=Ii.ensureScriptKind(e,a)))return E(e,t,r,n,a),o=function(e,t,r,n){var i=Bi(U);i&&(x|=16777216);u=x,_e();var a=pt(0,Mn);Ii.Debug.assert(1===V);var o=F(Me()),n=I(U,e,r,i,a,o,u,n);ji(n,S),Ji(n,function(e,t,r){f.push(Ii.createDetachedDiagnostic(U,e,t,r))}),n.commentDirectives=K.getCommentDirectives(),n.nodeCount=y,n.identifierCount=T,n.identifiers=h,n.parseDiagnostics=Ii.attachFileToDiagnostics(f,n),g&&(n.jsDocDiagnostics=Ii.attachFileToDiagnostics(g,n));t&&w(n);return n}(r,i,a,o||Li),N(),o;n=k(e,t,r,n,i);return Ii.convertToObjectWorker(n,null===(i=n.statements[0])||void 0===i?void 0:i.expression,n.parseDiagnostics,!1,void 0,void 0),n.referencedFiles=Ii.emptyArray,n.typeReferenceDirectives=Ii.emptyArray,n.libReferenceDirectives=Ii.emptyArray,n.amdDependencies=Ii.emptyArray,n.hasNoDefaultLib=!1,n.pragmas=Ii.emptyMap,n},e.parseIsolatedEntityName=function(e,t){return E("",e,t,void 0,1),_e(),e=xt(!0),t=1===V&&!f.length,N(),t?e:void 0},e.parseJsonText=k;var W=!1;function F(t){Ii.Debug.assert(!t.jsDoc);var e=Ii.mapDefined(Ii.getJSDocCommentRanges(t,S),function(e){return Ce.parseJSDocComment(t,e.pos,e.end-e.pos)});return e.length&&(t.jsDoc=e),W&&(W=!1,t.flags|=268435456),t}function P(i){var e=m,t=Oi.createSyntaxCursor(i);m={currentNode:function(e){e=t.currentNode(e);D&&e&&l(e)&&(e.intersectsChange=!0);return e}};var a=[],o=f;f=[];for(var r,n,s=0,c=u(i.statements,0);-1!==c;)!function(){var t=i.statements[s],n=i.statements[c];Ii.addRange(a,i.statements,s,c),s=_(i.statements,c);var e=Ii.findIndex(o,function(e){return e.start>=t.pos}),r=0<=e?Ii.findIndex(o,function(e){return e.start>=n.pos},e):-1;0<=e&&Ii.addRange(f,o,e,0<=r?r:void 0),ve(function(){var e=x;for(x|=32768,K.setTextPos(n.pos),_e();1!==V;){var t=K.getStartPos(),r=ft(0,Mn);if(a.push(r),t===K.getStartPos()&&_e(),0<=s){t=i.statements[s];if(r.end===t.pos)break;r.end>t.pos&&(s=_(i.statements,s+1))}}x=e},2),c=0<=s?u(i.statements,s):-1}();return 0<=s&&(r=i.statements[s],Ii.addRange(a,i.statements,s),0<=(n=Ii.findIndex(o,function(e){return e.start>=r.pos}))&&Ii.addRange(f,o,n)),m=e,q.updateSourceFile(i,Ii.setTextRange(q.createNodeArray(a),i.statements));function l(e){return!(32768&e.flags)&&16777216&e.transformFlags}function u(e,t){for(var r=t;r<e.length;r++)if(l(e[r]))return r;return-1}function _(e,t){for(var r=t;r<e.length;r++)if(!l(e[r]))return r;return-1}}function w(e){Ii.setParentRecursive(e,!0)}function I(t,r,n,i,e,a,o,s){o=q.createSourceFile(e,a,o);return Ii.setTextRangePosWidth(o,0,S.length),c(o),!i&&Ri(o)&&16777216&o.transformFlags&&c(o=P(o)),o;function c(e){e.text=S,e.bindDiagnostics=[],e.bindSuggestionDiagnostics=void 0,e.languageVersion=r,e.fileName=t,e.languageVariant=Ii.getLanguageVariant(n),e.isDeclarationFile=i,e.scriptKind=n,s(e),e.setExternalModuleIndicator=s}}function O(e,t){e?x|=t:x&=~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 j(e,t){var r=e&x;if(r){O(!1,r);e=t();return O(!0,r),e}return t()}function H(e,t){var r=e&~x;if(r){O(!0,r);e=t();return O(!1,r),e}return t()}function J(e){return j(4096,e)}function z(e){return j(65536,e)}function G(e){return H(65536,e)}function Q(e){return H(32768,e)}function X(e){return 0!=(x&e)}function Y(){return X(8192)}function Z(){return X(4096)}function $(){return X(65536)}function ee(){return X(16384)}function te(){return X(32768)}function re(e,t){return ie(K.getTokenPos(),K.getTextPos(),e,t)}function ne(e,t,r,n){var i,a=Ii.lastOrUndefined(f);return a&&e===a.start||(i=Ii.createDetachedDiagnostic(U,e,t,r,n),f.push(i)),C=!0,i}function ie(e,t,r,n){return ne(e,t-e,r,n)}function ae(e,t,r){ie(e.pos,e.end,t,r)}function oe(e,t){ne(K.getTextPos(),t,e)}function se(){return K.getStartPos()}function ce(){return K.hasPrecedingJSDocComment()}function le(){return V=K.scan()}function ue(e){return _e(),e()}function _e(){return Ii.isKeyword(V)&&(K.hasUnicodeEscape()||K.hasExtendedUnicodeEscape())&&ie(K.getTokenPos(),K.getTextPos(),Ii.Diagnostics.Keywords_cannot_contain_escape_characters),le()}function de(){return V=K.scanJsDocToken()}function pe(){return V=K.reScanGreaterToken()}function fe(){return V=K.reScanTemplateHeadOrNoSubstitutionTemplate()}function ge(){return V=K.reScanLessThanToken()}function me(){return V=K.reScanHashToken()}function ye(){return V=K.scanJsxIdentifier()}function he(){return V=K.scanJsxToken()}function ve(e,t){var r=V,n=f.length,i=C,a=x,e=0!==t?K.lookAhead(e):K.tryScan(e);return Ii.Debug.assert(a===x),e&&0===t||(V=r,2!==t&&(f.length=n),C=i),e}function be(e){return ve(e,1)}function xe(e){return ve(e,0)}function De(){return 79===V||116<V}function Se(){return 79===V||(125!==V||!Y())&&((132!==V||!te())&&116<V)}function Te(e,t,r){return void 0===r&&(r=!0),V===e?(r&&_e(),!0):(t?re(t):re(Ii.Diagnostics._0_expected,Ii.tokenToString(e)),!1)}e.fixupParentReferences=w;var Ce,ke=Object.keys(Ii.textToKeywordObj).filter(function(e){return 2<e.length});function Ee(e){var t;if(Ii.isTaggedTemplateExpression(e))ie(Ii.skipTrivia(S,e.template.pos),e.template.end,Ii.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var r=Ii.isIdentifier(e)?Ii.idText(e):void 0;if(r&&Ii.isIdentifierText(r,_)){var n=Ii.skipTrivia(S,e.pos);switch(r){case"const":case"let":case"var":return void ie(n,e.end,Ii.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ne(Ii.Diagnostics.Interface_name_cannot_be_0,Ii.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void ie(n,K.getTextPos(),Ii.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ne(Ii.Diagnostics.Namespace_name_cannot_be_0,Ii.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ne(Ii.Diagnostics.Type_alias_name_cannot_be_0,Ii.Diagnostics.Type_alias_must_be_given_a_name,63)}r=null!==(t=Ii.getSpellingSuggestion(r,ke,function(e){return e}))&&void 0!==t?t:function(e){for(var t=0,r=ke;t<r.length;t++){var n=r[t];if(e.length>n.length+2&&Ii.startsWith(e,n))return"".concat(n," ").concat(e.slice(n.length))}return}(r);r?ie(n,e.end,Ii.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==V&&ie(n,e.end,Ii.Diagnostics.Unexpected_keyword_or_identifier)}else re(Ii.Diagnostics._0_expected,Ii.tokenToString(26))}}function Ne(e,t,r){V===r?re(t):re(e,K.getTokenValue())}function Ae(e){if(V===e)return de(),1;re(Ii.Diagnostics._0_expected,Ii.tokenToString(e))}function Fe(e,t,r,n){var i;V!==t?(i=re(Ii.Diagnostics._0_expected,Ii.tokenToString(t)),r&&i&&Ii.addRelatedInfo(i,Ii.createDetachedDiagnostic(U,n,1,Ii.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ii.tokenToString(e),Ii.tokenToString(t)))):_e()}function Pe(e){return V===e&&(_e(),!0)}function we(e){if(V===e)return Me()}function Ie(e){if(V===e)return t=se(),e=V,de(),Je(q.createToken(e),t);var t}function Oe(e,t,r){return we(e)||ze(e,!1,t||Ii.Diagnostics._0_expected,r||Ii.tokenToString(e))}function Me(){var e=se(),t=V;return _e(),Je(q.createToken(t),e)}function Le(){return 26===V||(19===V||1===V||K.hasPrecedingLineBreak())}function Re(){return!!Le()&&(26===V&&_e(),!0)}function Be(){return Re()||Te(26)}function je(e,t,r,n){n=q.createNodeArray(e,n);return Ii.setTextRangePosEnd(n,t,null!=r?r:K.getStartPos()),n}function Je(e,t,r){return Ii.setTextRangePosEnd(e,t,null!=r?r:K.getStartPos()),x&&(e.flags|=x),C&&(C=!1,e.flags|=131072),e}function ze(e,t,r,n){t?ne(K.getStartPos(),0,r,n):r&&re(r,n);n=se();return Je(79===e?q.createIdentifier("",void 0,void 0):Ii.isTemplateLiteralKind(e)?q.createTemplateLiteralLikeNode(e,"","",void 0):8===e?q.createNumericLiteral("",void 0):10===e?q.createStringLiteral("",void 0):276===e?q.createMissingDeclaration():q.createToken(e),n)}function Ke(e){var t=h.get(e);return void 0===t&&h.set(e,t=e),t}function Ue(e,t,r){if(e){T++;var n=se(),i=V,e=Ke(K.getTokenValue());return le(),Je(q.createIdentifier(e,void 0,i),n)}if(80===V)return re(r||Ii.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ue(!0);if(0===V&&K.tryScan(function(){return 79===K.reScanInvalidIdentifier()}))return Ue(!0);T++;i=1===V,n=K.isReservedWord(),r=K.getTokenText(),n=n?Ii.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Ii.Diagnostics.Identifier_expected;return ze(79,i,t||n,r)}function Ve(e){return Ue(De(),void 0,e)}function qe(e,t){return Ue(Se(),e,t)}function We(e){return Ue(Ii.tokenIsIdentifierOrKeyword(V),e)}function He(){return Ii.tokenIsIdentifierOrKeyword(V)||10===V||8===V}function Ge(e){if(10!==V&&8!==V)return(e&&22===V?function(){var e=se();Te(22);var t=J(wr);return Te(23),Je(q.createComputedPropertyName(t),e)}:80===V?Xe:We)();e=Et();return e.text=Ke(e.text),e}function Qe(){return Ge(!0)}function Xe(){var e,t,r=se(),t=q.createPrivateIdentifier((e=K.getTokenText(),void 0===(t=v.get(e))&&v.set(e,t=e),t));return _e(),Je(t,r)}function Ye(e){return V===e&&xe($e)}function Ze(){return _e(),!K.hasPrecedingLineBreak()&&rt()}function $e(){switch(V){case 85:return 92===_e();case 93:return _e(),88===V?be(nt):152===V?be(tt):et();case 88:return nt();case 124:case 136:case 149:return _e(),rt();default:return Ze()}}function et(){return 41!==V&&127!==V&&18!==V&&rt()}function tt(){return _e(),et()}function rt(){return 22===V||18===V||41===V||25===V||He()}function nt(){return _e(),84===V||98===V||118===V||126===V&&be(Nn)||131===V&&be(An)}function it(e,t){if(gt(e))return 1;switch(e){case 0:case 1:case 3:return(26!==V||!t)&&In();case 2:return 82===V||88===V;case 4:return be(Qt);case 5:return be(ti)||26===V&&!t;case 6:return 22===V||He();case 12:switch(V){case 22:case 41:case 25:case 24:return 1;default:return He()}case 18:return He();case 9:return 22===V||25===V||He();case 24:return Ii.tokenIsIdentifierOrKeyword(V)||10===V;case 7:return 18===V?be(at):t?Se()&&!lt():Fr()&&!lt();case 8:return Kn();case 10:return 27===V||25===V||Kn();case 19:return 101===V||Se();case 15:switch(V){case 27:case 24:return 1}case 11:return 25===V||Pr();case 16:return Bt(!1);case 17:return Bt(!0);case 20:case 21:return 27===V||fr();case 22:return mi();case 23:return Ii.tokenIsIdentifierOrKeyword(V);case 13:return Ii.tokenIsIdentifierOrKeyword(V)||18===V;case 14:return 1}return Ii.Debug.fail("Non-exhaustive case in 'isListElement'.")}function at(){if(Ii.Debug.assert(18===V),19!==_e())return!0;var e=_e();return 27===e||18===e||94===e||117===e}function ot(){return _e(),Se()}function st(){return _e(),Ii.tokenIsIdentifierOrKeyword(V)}function ct(){return _e(),Ii.tokenIsIdentifierOrKeywordOrGreaterThan(V)}function lt(){return(117===V||94===V)&&be(ut)}function ut(){return _e(),Pr()}function _t(){return _e(),fr()}function dt(e){if(1===V)return 1;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===V;case 3:return 19===V||82===V||88===V;case 7:return 18===V||94===V||117===V;case 8:return function(){if(Le())return 1;if(Kr(V))return 1;return 38===V}();case 19:return 31===V||20===V||18===V||94===V||117===V;case 11:return 21===V||26===V;case 15:case 21:case 10:return 23===V;case 17:case 16:case 18:return 21===V||23===V;case 20:return 27!==V;case 22:return 18===V||19===V;case 13:return 31===V||43===V;case 14:return 29===V&&be(Di);default:return}}function pt(e,t){var r=b;b|=1<<e;for(var n=[],i=se();!dt(e);)if(it(e,!1))n.push(ft(e,t));else if(yt(e))break;return b=r,je(n,i)}function ft(e,t){e=gt(e);return e?mt(e):t()}function gt(e){if(m&&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)&&!C){var t=m.currentNode(K.getStartPos());if(!(Ii.nodeIsMissing(t)||t.intersectsChange||Ii.containsParseError(t))){var r=50720768&t.flags;if(r===x&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 171:case 176:case 172:case 173:case 167:case 234:return!0;case 169:var t=e;return!(79===t.name.kind&&134===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 289:case 290:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 256:case 237:case 235:case 239:case 238:case 251:case 247:case 249:case 246:case 245:case 243:case 244:case 242:case 241:case 248:case 236:case 252:case 250:case 240:case 253:case 266:case 265:case 272:case 271:case 261:case 257:case 258:case 260:case 259:return!0}return!1}(e);case 6:return 299===e.kind;case 4:return function(e){if(e)switch(e.kind){case 175:case 168:case 176:case 166:case 174:return!0}return!1}(e);case 8:return function(e){if(254!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(164!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(t,e))return t.jsDocCache&&(t.jsDocCache=void 0),t}}}function mt(e){return K.setTextPos(e.end),_e(),e}function yt(e){if(!function(){switch(e){case 0:return 88===V?re(Ii.Diagnostics._0_expected,Ii.tokenToString(93)):re(Ii.Diagnostics.Declaration_or_statement_expected);case 1:return re(Ii.Diagnostics.Declaration_or_statement_expected);case 2:return re(Ii.Diagnostics.case_or_default_expected);case 3:return re(Ii.Diagnostics.Statement_expected);case 18:case 4:return re(Ii.Diagnostics.Property_or_signature_expected);case 5:return re(Ii.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return re(Ii.Diagnostics.Enum_member_expected);case 7:return re(Ii.Diagnostics.Expression_expected);case 8:return Ii.isKeyword(V)?re(Ii.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,Ii.tokenToString(V)):re(Ii.Diagnostics.Variable_declaration_expected);case 9:return re(Ii.Diagnostics.Property_destructuring_pattern_expected);case 10:return re(Ii.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return re(Ii.Diagnostics.Argument_expression_expected);case 12:return re(Ii.Diagnostics.Property_assignment_expected);case 15:return re(Ii.Diagnostics.Expression_or_comma_expected);case 17:return re(Ii.Diagnostics.Parameter_declaration_expected);case 16:return Ii.isKeyword(V)?re(Ii.Diagnostics._0_is_not_allowed_as_a_parameter_name,Ii.tokenToString(V)):re(Ii.Diagnostics.Parameter_declaration_expected);case 19:return re(Ii.Diagnostics.Type_parameter_declaration_expected);case 20:return re(Ii.Diagnostics.Type_argument_expected);case 21:return re(Ii.Diagnostics.Type_expected);case 22:return re(Ii.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:return re(Ii.Diagnostics.Identifier_expected);default:;}}(),function(){for(var e=0;e<25;e++)if(b&1<<e&&(it(e,!0)||dt(e)))return 1}())return 1;_e()}function ht(e,t,r){var n=b;b|=1<<e;for(var i=[],a=se(),o=-1;;)if(it(e,!1)){var s=K.getStartPos(),c=ft(e,t);if(!c)return void(b=n);if(i.push(c),o=K.getTokenPos(),!Pe(27)){if(o=-1,dt(e))break;Te(27,6===e?Ii.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0),r&&26===V&&!K.hasPrecedingLineBreak()&&_e(),s===K.getStartPos()&&_e()}}else{if(dt(e))break;if(yt(e))break}return b=n,je(i,a,void 0,0<=o)}function vt(){var e=je([],se());return e.isMissingList=!0,e}function bt(e,t,r,n){if(Te(r)){t=ht(e,t);return Te(n),t}return vt()}function xt(e,t){for(var r=se(),n=(e?We:qe)(t),i=se();Pe(24);){if(29===V){n.jsdocDotPos=i;break}i=se(),n=Je(q.createQualifiedName(n,Dt(e,!1)),r)}return n}function Dt(e,t){if(K.hasPrecedingLineBreak()&&Ii.tokenIsIdentifierOrKeyword(V)&&be(En))return ze(79,!0,Ii.Diagnostics.Identifier_expected);if(80!==V)return(e?We:qe)();e=Xe();return t?e:ze(79,!0,Ii.Diagnostics.Identifier_expected)}function St(e){for(var t,r,n=se(),i=[];t=e,r=void 0,r=se(),r=Je(q.createTemplateSpan(J(wr),kt(t)),r),i.push(r),16===r.literal.kind;);return je(i,n)}function Tt(e){var t=se();return Je(q.createTemplateExpression(Nt(e),St(e)),t)}function Ct(){var e=se();return Je(q.createTemplateLiteralType(Nt(!1),function(){var e,t=se(),r=[];for(;e=function(){var e=se();return Je(q.createTemplateLiteralTypeSpan(Nr(),kt(!1)),e)}(),r.push(e),16===e.literal.kind;);return je(r,t)}()),e)}function kt(e){return 19===V?(e=e,V=K.reScanTemplateToken(e),e=At(V),Ii.Debug.assert(16===e.kind||17===e.kind,"Template fragment has wrong token kind"),e):Oe(17,Ii.Diagnostics._0_expected,Ii.tokenToString(19))}function Et(){return At(V)}function Nt(e){e&&fe();e=At(V);return Ii.Debug.assert(15===e.kind,"Template head has wrong token kind"),e}function At(e){var t,r,n=se(),e=Ii.isTemplateLiteralKind(e)?q.createTemplateLiteralLikeNode(e,K.getTokenValue(),(r=14===(t=e)||17===t,(t=K.getTokenText()).substring(1,t.length-(K.isUnterminated()?0:r?1:2))),2048&K.getTokenFlags()):8===e?q.createNumericLiteral(K.getTokenValue(),K.getNumericLiteralFlags()):10===e?q.createStringLiteral(K.getTokenValue(),void 0,K.hasExtendedUnicodeEscape()):Ii.isLiteralKind(e)?q.createLiteralLikeNode(e,K.getTokenValue()):Ii.Debug.fail();return K.hasExtendedUnicodeEscape()&&(e.hasExtendedUnicodeEscape=!0),K.isUnterminated()&&(e.isUnterminated=!0),_e(),Je(e,n)}function Ft(){return xt(!0,Ii.Diagnostics.Type_expected)}function Pt(){if(!K.hasPrecedingLineBreak()&&29===ge())return bt(20,Nr,29,31)}function wt(){var e=se();return Je(q.createTypeReferenceNode(Ft(),Pt()),e)}function It(){var e=se();return _e(),Je(q.createThisTypeNode(),e)}function Ot(){var e,t=se();return 108!==V&&103!==V||(e=We(),Te(58)),Je(q.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Mt(),void 0),t)}function Mt(){K.setInJSDocType(!0);var e=se();if(Pe(141)){var t=q.createJSDocNamepathType(void 0);e:for(;;)switch(V){case 19:case 1:case 27:case 5:break e;default:de()}return K.setInJSDocType(!1),Je(t,e)}var r=Pe(25),t=kr();return K.setInJSDocType(!1),r&&(t=Je(q.createJSDocVariadicType(t),e)),63===V?(_e(),Je(q.createJSDocOptionalType(t),e)):t}function Lt(){var e,t,r=se(),n=si(),i=qe();Pe(94)&&(fr()||!Pr()?e=Nr():t=Wr());var a=Pe(63)?Nr():void 0,a=q.createTypeParameterDeclaration(n,i,e,a);return a.expression=t,Je(a,r)}function Rt(){if(29===V)return bt(19,Lt,29,31)}function Bt(e){return 25===V||Kn()||Ii.isModifierKind(V)||59===V||fr(!e)}function jt(e){return Jt(e)}function Jt(e,t){void 0===t&&(t=!0);var r=se(),n=ce(),i=e?Q(ai):ai();if(108===V){var a=q.createParameterDeclaration(i,void 0,void 0,Ue(!0),void 0,Ar(),void 0);return i&&ae(i[0],Ii.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),A(Je(a,r),n)}var o=D;D=!1;e=si(),a=we(25);if(t||De()||22===V||18===V){n=A(Je(q.createParameterDeclaration(i,e,a,(a=e,e=Un(Ii.Diagnostics.Private_identifiers_cannot_be_used_as_parameters),0===Ii.getFullWidth(e)&&!Ii.some(a)&&Ii.isModifierKind(V)&&_e(),e),we(57),Ar(),Ir()),r),n);return D=o,n}}function zt(e,t){if(function(e,t){{if(38===e)return Te(e),!0;if(Pe(58))return!0;if(t&&38===V)return re(Ii.Diagnostics._0_expected,Ii.tokenToString(58)),_e(),!0}return!1}(e,t))return z(kr)}function Kt(e,t){var r=Y(),n=te();L(!!(1&e)),B(!!(2&e));e=32&e?ht(17,Ot):ht(16,function(){return t?jt(n):Jt(n,!1)});return L(r),B(n),e}function Ut(e){if(!Te(20))return vt();e=Kt(e,!0);return Te(21),e}function Vt(){Pe(27)||Be()}function qt(e){var t=se(),r=ce();175===e&&Te(103);var n=Rt(),i=Ut(4),a=zt(58,!0);return Vt(),A(Je(174===e?q.createCallSignature(n,i,a):q.createConstructSignature(n,i,a),t),r)}function Wt(){return 22===V&&be(Ht)}function Ht(){if(_e(),25===V||23===V)return!0;if(Ii.isModifierKind(V)){if(_e(),Se())return!0}else{if(!Se())return!1;_e()}return 58===V||27===V||57===V&&(_e(),58===V||27===V||23===V)}function Gt(e,t,r,n){var i=bt(16,function(){return Jt(!1)},22,23),a=Ar();return Vt(),A(Je(q.createIndexSignature(r,n,i,a),e),t)}function Qt(){if(20===V||29===V||136===V||149===V)return!0;for(var e=!1;Ii.isModifierKind(V);)e=!0,_e();return 22===V||(He()&&(e=!0,_e()),!!e&&(20===V||29===V||57===V||58===V||27===V||Le()))}function Xt(){if(20===V||29===V)return qt(174);if(103===V&&be(Yt))return qt(175);var e,t,r,n,i,a=se(),o=ce(),s=si();return Ye(136)?ei(a,o,void 0,s,172):Ye(149)?ei(a,o,void 0,s,173):Wt()?Gt(a,o,void 0,s):(e=a,t=o,r=s,a=Qe(),o=we(57),20===V||29===V?(s=Rt(),n=Ut(4),i=zt(58,!0),n=q.createMethodSignature(r,a,o,s,n,i)):(i=Ar(),n=q.createPropertySignature(r,a,o,i),63===V&&(n.initializer=Ir())),Vt(),A(Je(n,e),t))}function Yt(){return _e(),20===V||29===V}function Zt(){return 24===_e()}function $t(){switch(_e()){case 20:case 29:case 24:return!0}return!1}function er(){var e;return Te(18)?(e=pt(4,Xt),Te(19)):e=vt(),e}function tr(){return _e(),39===V||40===V?145===_e():(145===V&&_e(),22===V&&ot()&&101===_e())}function rr(){var e,t=se();Te(18),145!==V&&39!==V&&40!==V||145!==(e=Me()).kind&&Te(145),Te(22);var r,n=function(){var e=se(),t=We();Te(101);var r=Nr();return Je(q.createTypeParameterDeclaration(void 0,t,r,void 0),e)}(),i=Pe(127)?Nr():void 0;Te(23),57!==V&&39!==V&&40!==V||57!==(r=Me()).kind&&Te(57);var a=Ar();Be();var o=pt(4,Xt);return Te(19),Je(q.createMappedTypeNode(e,n,i,r,a,o),t)}function nr(){var e=se();if(Pe(25))return Je(q.createRestTypeNode(Nr()),e);var t=Nr();if(Ii.isJSDocNullableType(t)&&t.pos===t.type.pos){e=q.createOptionalTypeNode(t.type);return Ii.setTextRange(e,t),e.flags=t.flags,e}return t}function ir(){return 58===_e()||57===V&&58===_e()}function ar(){return 25===V?Ii.tokenIsIdentifierOrKeyword(_e())&&ir():Ii.tokenIsIdentifierOrKeyword(V)&&ir()}function or(){if(be(ar)){var e=se(),t=ce(),r=we(25),n=We(),i=we(57);Te(58);var a=nr();return A(Je(q.createNamedTupleMember(r,n,i,a),e),t)}return nr()}function sr(){var e=se(),t=ce(),r=(126===V&&(o=se(),_e(),o=je([Je(q.createToken(126),o)],o)),o),n=Pe(103),i=Rt(),a=Ut(4),o=zt(38,!1),o=n?q.createConstructorTypeNode(r,i,a,o):q.createFunctionTypeNode(i,a,o);return n||(o.modifiers=r),A(Je(o,e),t)}function cr(){var e=Me();return 24===V?void 0:e}function lr(e){var t=se();e&&_e();var r=110===V||95===V||104===V?Me():At(V);return e&&(r=Je(q.createPrefixUnaryExpression(40,r),t)),Je(q.createLiteralTypeNode(r),t)}function ur(){return _e(),100===V}function _r(){u|=2097152;var e=se(),t=Pe(112);Te(100),Te(20);var r,n=Nr();Pe(27)&&(r=function(){var e=se(),t=K.getTokenPos();Te(18);var r=K.hasPrecedingLineBreak();Te(129),Te(58);var n,i=Ti(!0);return Te(19)||(n=Ii.lastOrUndefined(f))&&n.code===Ii.Diagnostics._0_expected.code&&Ii.addRelatedInfo(n,Ii.createDetachedDiagnostic(U,t,1,Ii.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}")),Je(q.createImportTypeAssertionContainer(i,r),e)}()),Te(21);var i=Pe(24)?Ft():void 0,a=Pt();return Je(q.createImportTypeNode(n,r,i,a,t),e)}function dr(){return _e(),8===V||9===V}function pr(){switch(V){case 130:case 155:case 150:case 147:case 158:case 151:case 133:case 153:case 143:case 148:return xe(cr)||wt();case 66:K.reScanAsteriskEqualsToken();case 41:return a=se(),_e(),Je(q.createJSDocAllType(),a);case 60:K.reScanQuestionToken();case 57:return i=se(),_e(),Je(27===V||19===V||21===V||31===V||63===V||51===V?q.createJSDocUnknownType():q.createJSDocNullableType(Nr(),!1),i);case 98:return function(){var e=se(),t=ce();if(be(bi)){_e();var r=Ut(36),n=zt(58,!1);return A(Je(q.createJSDocFunctionType(r,n),e),t)}return Je(q.createTypeReferenceNode(We(),void 0),e)}();case 53:return i=se(),_e(),Je(q.createJSDocNonNullableType(pr(),!1),i);case 14:case 10:case 8:case 9:case 110:case 95:case 104:return lr();case 40:return be(dr)?lr(!0):wt();case 114:return Me();case 108:var e=It();return 139!==V||K.hasPrecedingLineBreak()?e:(n=e,_e(),Je(q.createTypePredicateNode(void 0,n,Nr()),n.pos));case 112:return(be(ur)?_r:function(){var e=se();Te(112);var t=xt(!0),r=K.hasPrecedingLineBreak()?void 0:gi();return Je(q.createTypeQueryNode(t,r),e)})();case 18:return be(tr)?rr():(r=se(),Je(q.createTypeLiteralNode(er()),r));case 22:return t=se(),Je(q.createTupleTypeNode(bt(21,or,22,23)),t);case 20:return function(){var e=se();Te(20);var t=Nr();return Te(21),Je(q.createParenthesizedType(t),e)}();case 100:return _r();case 128:return be(En)?(e=se(),n=Oe(128),r=(108===V?It:qe)(),t=Pe(139)?Nr():void 0,Je(q.createTypePredicateNode(n,r,t),e)):wt();case 15:return Ct();default:return wt()}var t,r,n,i,a}function fr(e){switch(V){case 130:case 155:case 150:case 147:case 158:case 133:case 145:case 151:case 154:case 114:case 153:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 148:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&be(dr);case 20:return!e&&be(gr);default:return Se()}}function gr(){return _e(),21===V||Bt(!1)||fr()}function mr(){for(var e,t=se(),r=pr();!K.hasPrecedingLineBreak();)switch(V){case 53:_e(),r=Je(q.createJSDocNonNullableType(r,!0),t);break;case 57:if(be(_t))return r;_e(),r=Je(q.createJSDocNullableType(r,!0),t);break;case 22:Te(22),r=fr()?(e=Nr(),Te(23),Je(q.createIndexedAccessTypeNode(r,e),t)):(Te(23),Je(q.createArrayTypeNode(r),t));break;default:return r}return r}function yr(){if(Pe(94)){var e=G(Nr);if($()||57!==V)return e}}function hr(){var e,t,r,n=se();return Te(137),Je(q.createInferTypeNode((e=se(),t=qe(),r=xe(yr),Je(q.createTypeParameterDeclaration(void 0,t,r),e))),n)}function vr(){var e,t,r=V;switch(r){case 140:case 154:case 145:return e=r,t=se(),Te(e),Je(q.createTypeOperatorNode(e,vr()),t);case 137:return hr()}return z(mr)}function br(e){if(Tr()){var t=sr();return ae(t,Ii.isFunctionTypeNode(t)?e?Ii.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ii.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?Ii.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ii.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),t}}function xr(e,t,r){var n=se(),i=51===e,a=Pe(e),o=a&&br(i)||t();if(V===e||a){for(var s=[o];Pe(e);)s.push(br(i)||t());o=Je(r(je(s,n)),n)}return o}function Dr(){return xr(50,vr,q.createIntersectionTypeNode)}function Sr(){return _e(),103===V}function Tr(){return 29===V||(20===V&&be(Cr)||(103===V||126===V&&be(Sr)))}function Cr(){if(_e(),21===V||25===V)return!0;if(function(){if(Ii.isModifierKind(V)&&si(),Se()||108===V)return _e(),1;if(22===V||18===V){var e=f.length;return Un(),e===f.length}}()){if(58===V||27===V||57===V||63===V)return!0;if(21===V&&(_e(),38===V))return!0}return!1}function kr(){var e=se(),t=Se()&&xe(Er),r=Nr();return t?Je(q.createTypePredicateNode(void 0,t,r),e):r}function Er(){var e=qe();if(139===V&&!K.hasPrecedingLineBreak())return _e(),e}function Nr(){if(40960&x)return j(40960,Nr);if(Tr())return sr();var e=se(),t=xr(51,Dr,q.createUnionTypeNode);if($()||K.hasPrecedingLineBreak()||!Pe(94))return t;var r=G(Nr);Te(57);var n=z(Nr);Te(58);var i=z(Nr);return Je(q.createConditionalTypeNode(t,r,n,i),e)}function Ar(){return Pe(58)?Nr():void 0}function Fr(){switch(V){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return be($t);default:return Se()}}function Pr(){if(Fr())return!0;switch(V){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return function(){if(Z()&&101===V)return!1;return 0<Ii.getBinaryOperatorPrecedence(V)}()?!0:Se()}}function wr(){var e=ee();e&&R(!1);for(var t,r=se(),n=Or();t=we(27);)n=Vr(n,t,Or(),r);return e&&R(!0),n}function Ir(){return Pe(63)?Or():void 0}function Or(){if(function(){if(125!==V)return!1;if(Y())return!0;return be(Fn)}())return t=se(),_e(),K.hasPrecedingLineBreak()||41!==V&&!Pr()?Je(q.createYieldExpression(void 0,void 0),t):Je(q.createYieldExpression(we(41),Or()),t);var e=(0!==(r=20!==V&&29!==V&&131!==V?38!==V?0:1:be(Lr))?1===r?jr(!0):xe(Rr):void 0)||function(){if(131===V&&1===be(Br)){var e=se(),t=ci(),r=zr(0);return Mr(e,r,t)}return}();if(e)return e;var t=se(),r=zr(0);return 79===r.kind&&38===V?Mr(t,r,void 0):Ii.isLeftHandSideExpression(r)&&Ii.isAssignmentOperator(pe())?Vr(r,Me(),Or(),t):(e=r,r=t,(t=we(57))?Je(q.createConditionalExpression(e,t,j(n,Or),t=Oe(58),Ii.nodeIsPresent(t)?Or():ze(79,!1,Ii.Diagnostics._0_expected,Ii.tokenToString(58))),r):e)}function Mr(e,t,r){Ii.Debug.assert(38===V,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n=q.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);Je(n,t.pos);var i=je([n],n.pos,n.end),t=Oe(38),n=Jr(!!r);return F(Je(q.createArrowFunction(r,void 0,i,void 0,t,n),e))}function Lr(){if(131===V){if(_e(),K.hasPrecedingLineBreak())return 0;if(20!==V&&29!==V)return 0}var e=V,t=_e();if(20!==e)return Ii.Debug.assert(29===e),Se()?1!==p?2:be(function(){var e=_e();if(94===e)switch(_e()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1})?1:0:0;if(21===t)switch(_e()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(Ii.isModifierKind(t)&&131!==t&&be(ot))return be(function(){return 127===_e()})?0:1;if(!Se()&&108!==t)return 0;switch(_e()){case 58:return 1;case 57:return _e(),58===V||27===V||63===V||21===V?1:0;case 27:case 63:case 21:return 2}return 0}function Rr(){var e=K.getTokenPos();if(null==r||!r.has(e)){var t=jr(!1);return t||(r=r||new Ii.Set).add(e),t}}function Br(){if(131===V){if(_e(),K.hasPrecedingLineBreak()||38===V)return 0;var e=zr(0);if(!K.hasPrecedingLineBreak()&&79===e.kind&&38===V)return 1}return 0}function jr(e){var t,r=se(),n=ce(),i=ci(),a=Ii.some(i,Ii.isAsyncModifier)?2:0,o=Rt();if(Te(20)){if(e)t=Kt(a,e);else{var s=Kt(a,e);if(!s)return;t=s}if(!Te(21)&&!e)return}else{if(!e)return;t=vt()}a=zt(58,!1);if(!a||e||!function e(t){switch(t.kind){case 178:return Ii.nodeIsMissing(t.typeName);case 179:case 180:var r=t.parameters,n=t.type;return!!r.isMissingList||e(n);case 191:return e(t.type);default:return!1}}(a)){for(var c=a;191===(null==c?void 0:c.kind);)c=c.type;s=c&&Ii.isJSDocFunctionType(c);if(e||38===V||!s&&18===V){e=V,s=Oe(38),e=38===e||18===e?Jr(Ii.some(i,Ii.isAsyncModifier)):qe();return A(Je(q.createArrowFunction(i,o,t,a,s,e),r),n)}}}function Jr(e){if(18===V)return xn(e?2:0);if(26!==V&&98!==V&&84!==V&&In()&&(18===V||98===V||84===V||59===V||!Pr()))return xn(16|(e?2:0));var t=D;D=!1;e=e?Q(Or):j(32768,Or);return D=t,e}function zr(e){var t=se();return Ur(e,Wr(),t)}function Kr(e){return 101===e||160===e}function Ur(e,t,r){for(;;){pe();var n=Ii.getBinaryOperatorPrecedence(V);if(!(42===V?e<=n:e<n))break;if(101===V&&Z())break;if(127===V){if(K.hasPrecedingLineBreak())break;_e(),i=t,a=Nr(),t=Je(q.createAsExpression(i,a),i.pos)}else t=Vr(t,Me(),zr(n),r)}var i,a;return t}function Vr(e,t,r,n){return Je(q.createBinaryExpression(e,t,r),n)}function qr(){var e=se();return Je(q.createPrefixUnaryExpression(V,ue(Hr)),e)}function Wr(){if(function(){switch(V){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==p)return!1;default:return!0}}()){var e=se(),t=Gr();return 42===V?Ur(Ii.getBinaryOperatorPrecedence(V),t,e):t}var r=V,n=Hr();return 42===V&&(e=Ii.skipTrivia(S,n.pos),t=n.end,211===n.kind?ie(e,t,Ii.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):ie(e,t,Ii.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,Ii.tokenToString(r))),n}function Hr(){switch(V){case 39:case 40:case 54:case 53:return qr();case 89:return t=se(),Je(q.createDeleteExpression(ue(Hr)),t);case 112:return t=se(),Je(q.createTypeOfExpression(ue(Hr)),t);case 114:return e=se(),Je(q.createVoidExpression(ue(Hr)),e);case 29:return function(){var e=se();Te(29);var t=Nr();Te(31);var r=Hr();return Je(q.createTypeAssertion(t,r),e)}();case 132:if(132===V&&(te()||be(Fn)))return e=se(),Je(q.createAwaitExpression(ue(Hr)),e);default:return Gr()}var e,t}function Gr(){if(45===V||46===V){var e=se();return Je(q.createPrefixUnaryExpression(V,ue(Qr)),e)}if(1===p&&29===V&&be(ct))return Yr(!0);var t=Qr();if(Ii.Debug.assert(Ii.isLeftHandSideExpression(t)),45!==V&&46!==V||K.hasPrecedingLineBreak())return t;e=V;return _e(),Je(q.createPostfixUnaryExpression(t,e),t.pos)}function Qr(){var e,t=se();return 100===V?be(Yt)?(u|=2097152,e=Me()):be(Zt)?(_e(),_e(),e=Je(q.createMetaProperty(100,We()),t),u|=4194304):e=Xr():e=(106===V?function(){var e=se(),t=Me();{var r;29===V&&(r=se(),void 0!==xe(_n)&&ie(r,se(),Ii.Diagnostics.super_may_not_use_type_arguments))}return 20!==V&&24!==V&&22!==V?(Oe(24,Ii.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Je(q.createPropertyAccessExpression(t,Dt(!0,!0)),e)):t}:Xr)(),ln(t,e)}function Xr(){return on(se(),dn(),!0)}function Yr(e,t,r){var n,i,a,o,s,c=se(),l=function(e){var t=se();if(Te(29),31===V)return he(),Je(q.createJsxOpeningFragment(),t);var r=en(),n=0==(262144&x)?gi():void 0,i=function(){var e=se();return Je(q.createJsxAttributes(pt(13,rn)),e)}();i=31===V?(he(),q.createJsxOpeningElement(r,n,i)):(Te(43),Te(31,void 0,!1)&&(e?_e:he)(),q.createJsxSelfClosingElement(r,n,i));return Je(i,t)}(e),l=280===l.kind?(s=void 0,278===(null==(n=(o=$r(l))[o.length-1])?void 0:n.kind)&&!zi(n.openingElement.tagName,n.closingElement.tagName)&&zi(l.tagName,n.closingElement.tagName)?(i=n.children.end,a=Je(q.createJsxElement(n.openingElement,n.children,Je(q.createJsxClosingElement(Je(q.createIdentifier(""),i,i)),i,i)),n.openingElement.pos,i),o=je(__spreadArray(__spreadArray([],o.slice(0,o.length-1),!0),[a],!1),o.pos,i),s=n.closingElement):(s=function(e,t){var r=se();Te(30);var n=en();Te(31,void 0,!1)&&(t||!zi(e.tagName,n)?_e:he)();return Je(q.createJsxClosingElement(n),r)}(l,e),zi(l.tagName,s.tagName)||(r&&Ii.isJsxOpeningElement(r)&&zi(s.tagName,r.tagName)?ae(l.tagName,Ii.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,Ii.getTextOfNodeFromSourceText(S,l.tagName)):ae(s.tagName,Ii.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,Ii.getTextOfNodeFromSourceText(S,l.tagName)))),Je(q.createJsxElement(l,o,s),c)):283===l.kind?Je(q.createJsxFragment(l,$r(l),function(e){var t=se();Te(30),Ii.tokenIsIdentifierOrKeyword(V)&&ae(en(),Ii.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);Te(31,void 0,!1)&&(e?_e:he)();return Je(q.createJsxJsxClosingFragment(),t)}(e)),c):(Ii.Debug.assert(279===l.kind),l);if(e&&29===V){var u=void 0===t?l.pos:t,e=xe(function(){return Yr(!0,u)});if(e){t=ze(27,!1);return Ii.setTextRangePosWidth(t,e.pos,0),ie(Ii.skipTrivia(S,u),e.end,Ii.Diagnostics.JSX_expressions_must_have_one_parent_element),Je(q.createBinaryExpression(l,t,e),c)}}return l}function Zr(e,t){switch(t){case 1:return void(Ii.isJsxOpeningFragment(e)?ae(e,Ii.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):(n=e.tagName,ie(Ii.skipTrivia(S,n.pos),n.end,Ii.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,Ii.getTextOfNodeFromSourceText(S,e.tagName))));case 30:case 7:return;case 11:case 12:return r=se(),n=q.createJsxText(K.getTokenValue(),12===V),V=K.scanJsxToken(),Je(n,r);case 18:return tn(!1);case 29:return Yr(!1,void 0,e);default:return Ii.Debug.assertNever(t)}var r,n}function $r(e){var t=[],r=se(),n=b;for(b|=16384;;){var i=Zr(e,V=K.reScanJsxToken());if(!i)break;if(t.push(i),Ii.isJsxOpeningElement(e)&&278===(null==i?void 0:i.kind)&&!zi(i.openingElement.tagName,i.closingElement.tagName)&&zi(e.tagName,i.closingElement.tagName))break}return b=n,je(t,r)}function en(){var e=se();ye();for(var t=(108===V?Me:We)();Pe(24);)t=Je(q.createPropertyAccessExpression(t,Dt(!0,!1)),e);return t}function tn(e){var t,r,n=se();if(Te(18))return 19!==V&&(t=we(25),r=wr()),e?Te(19):Te(19,void 0,!1)&&he(),Je(q.createJsxExpression(t,r),n)}function rn(){if(18===V)return function(){var e=se();Te(18),Te(25);var t=wr();return Te(19),Je(q.createJsxSpreadAttribute(t),e)}();ye();var e=se();return Je(q.createJsxAttribute(We(),63!==V?void 0:10===(V=K.scanJsxAttributeValue())?Et():tn(!0)),e)}function nn(){return _e(),Ii.tokenIsIdentifierOrKeyword(V)||22===V||sn()}function an(e){if(32&e.flags)return!0;if(Ii.isNonNullExpression(e)){for(var t=e.expression;Ii.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;Ii.isNonNullExpression(e);)e.flags|=32,e=e.expression;return!0}}return!1}function on(e,t,r){for(;;){var n=void 0;if(r&&28===V&&be(nn)?(n=Oe(28),Ii.tokenIsIdentifierOrKeyword(V)):Pe(24))a=e,o=t,s=n,c=Dt(!(c=l=c=void 0),!0),l=s||an(o),c=l?q.createPropertyAccessChain(o,s,c):q.createPropertyAccessExpression(o,c),l&&Ii.isPrivateIdentifier(c.name)&&ae(c.name,Ii.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),t=Je(c,a);else if(!n&&ee()||!Pe(22)){if(!sn()){if(!n){if(53===V&&!K.hasPrecedingLineBreak()){_e(),t=Je(q.createNonNullExpression(t),e);continue}var i=xe(_n);if(i){t=Je(q.createExpressionWithTypeArguments(t,i),e);continue}}return t}t=n||228!==t.kind?cn(e,t,n,void 0):cn(e,t.expression,n,t.typeArguments)}else c=e,a=t,i=n,n=void 0,n=23===V?ze(79,!0,Ii.Diagnostics.An_element_access_expression_should_take_an_argument):(n=J(wr),Ii.isStringOrNumericLiteralLike(n)&&(n.text=Ke(n.text)),n),Te(23),t=Je(i||an(a)?q.createElementAccessChain(a,i,n):q.createElementAccessExpression(a,n),c)}var a,o,s,c,l}function sn(){return 14===V||15===V}function cn(e,t,r,n){n=q.createTaggedTemplateExpression(t,n,14===V?(fe(),Et()):Tt(!0));return(r||32&t.flags)&&(n.flags|=32),n.questionDotToken=r,Je(n,e)}function ln(e,t){for(;;){t=on(e,t,!0);var r=void 0,n=we(28);if(n&&(r=xe(_n),sn()))t=cn(e,t,n,r);else{if(!r&&20!==V){n&&(i=ze(79,!1,Ii.Diagnostics.Identifier_expected),t=Je(q.createPropertyAccessChain(t,n,i),e));break}n||228!==t.kind||(r=t.typeArguments,t=t.expression);var i=un();t=Je(n||an(t)?q.createCallChain(t,n,r,i):q.createCallExpression(t,r,i),e)}}return t}function un(){Te(20);var e=ht(11,fn);return Te(21),e}function _n(){if(0==(262144&x)&&29===ge()){_e();var e=ht(20,Nr);if(Te(31))return e&&function(){switch(V){case 20:case 14:case 15:return!0}return!Pr()}()?e:void 0}}function dn(){switch(V){case 8:case 9:case 10:case 14:return Et();case 108:case 106:case 104:case 110:case 95:return Me();case 20:return function(){var e=se(),t=ce();Te(20);var r=J(wr);return Te(21),A(Je(q.createParenthesizedExpression(r),e),t)}();case 22:return gn();case 18:return yn();case 131:if(!be(An))break;return hn();case 84:return _i(se(),ce(),void 0,void 0,226);case 98:return hn();case 103:return function(){var e=se();if(Te(103),Pe(24)){var t=We();return Je(q.createMetaProperty(103,t),e)}var r,n=on(se(),dn(),!1);228===n.kind&&(r=n.typeArguments,n=n.expression);t=20===V?un():void 0;return Je(q.createNewExpression(n,r,t),e)}();case 43:case 68:if(13===(V=K.reScanSlashToken()))return Et();break;case 15:return Tt(!1);case 80:return Xe()}return qe(Ii.Diagnostics.Expression_expected)}function pn(){return 25===V?function(){var e=se();Te(25);var t=Or();return Je(q.createSpreadElement(t),e)}():27===V?Je(q.createOmittedExpression(),se()):Or()}function fn(){return j(n,pn)}function gn(){var e=se(),t=K.getTokenPos(),r=Te(22),n=K.hasPrecedingLineBreak(),i=ht(15,pn);return Fe(22,23,r,t),Je(q.createArrayLiteralExpression(i,n),e)}function mn(){var e=se(),t=ce();if(we(25)){var r=Or();return A(Je(q.createSpreadAssignment(r),e),t)}var n=ai(),i=si();if(Ye(136))return ei(e,t,n,i,172);if(Ye(149))return ei(e,t,n,i,173);var a,o,s=we(41),c=Se(),l=Qe(),u=we(57),r=we(53);return s||20===V||29===V?Yn(e,t,n,i,s,l,u,r):(c&&58!==V?(a=(o=we(63))?J(Or):void 0,(a=q.createShorthandPropertyAssignment(l,a)).equalsToken=o):(Te(58),o=J(Or),a=q.createPropertyAssignment(l,o)),a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=r,A(Je(a,e),t))}function yn(){var e=se(),t=K.getTokenPos(),r=Te(18),n=K.hasPrecedingLineBreak(),i=ht(12,mn,!0);return Fe(18,19,r,t),Je(q.createObjectLiteralExpression(i,n),e)}function hn(){var e=ee();R(!1);var t=se(),r=ce(),n=si();Te(98);var i=we(41),a=i?1:0,o=Ii.some(n,Ii.isAsyncModifier)?2:0,s=a&&o?H(40960,vn):a?H(8192,vn):o?Q(vn):vn(),c=Rt(),l=Ut(a|o),u=zt(58,!1),o=xn(a|o);return R(e),A(Je(q.createFunctionExpression(n,i,s,c,l,u,o),t),r)}function vn(){return De()?Ve():void 0}function bn(e,t){var r=se(),n=ce(),i=K.getTokenPos(),t=Te(18,t);if(t||e){var e=K.hasPrecedingLineBreak(),a=pt(1,Mn);Fe(18,19,t,i);e=A(Je(q.createBlock(a,e),r),n);return 63===V&&(re(Ii.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),_e()),e}a=vt();return A(Je(q.createBlock(a,void 0),r),n)}function xn(e,t){var r=Y();L(!!(1&e));var n=te();B(!!(2&e));var i=D;D=!1;var a=ee();a&&R(!1);t=bn(!!(16&e),t);return a&&R(!0),D=i,L(r),B(n),t}function Dn(){var e=se(),t=ce();Te(97);var r,n,i=we(132);return Te(20),26!==V&&(r=113===V||119===V||85===V?Wn(!0):H(4096,wr)),A(Je((i?Te:Pe)(160)?(n=J(Or),Te(21),q.createForOfStatement(i,r,n,Mn())):Pe(101)?(n=J(wr),Te(21),q.createForInStatement(r,n,Mn())):(Te(26),i=26!==V&&21!==V?J(wr):void 0,Te(26),n=21!==V?J(wr):void 0,Te(21),q.createForStatement(r,i,n,Mn())),e),t)}function Sn(e){var t=se(),r=ce();Te(246===e?81:86);var n=Le()?void 0:qe();return Be(),A(Je(246===e?q.createBreakStatement(n):q.createContinueStatement(n),t),r)}function Tn(){return(82===V?function(){var e=se(),t=ce();Te(82);var r=J(wr);Te(58);var n=pt(3,Mn);return A(Je(q.createCaseClause(r,n),e),t)}:function(){var e=se();Te(88),Te(58);var t=pt(3,Mn);return Je(q.createDefaultClause(t),e)})()}function Cn(){var e=se(),t=ce();Te(107),Te(20);var r=J(wr);Te(21);var n=function(){var e=se();Te(18);var t=pt(2,Tn);return Te(19),Je(q.createCaseBlock(t),e)}();return A(Je(q.createSwitchStatement(r,n),e),t)}function kn(){var e=se(),t=ce();Te(111);var r,n=bn(!1),i=83===V?function(){var e,t=se();Te(83),Pe(20)?(e=qn(),Te(21)):e=void 0;var r=bn(!1);return Je(q.createCatchClause(e,r),t)}():void 0;return i&&96!==V||(Te(96,Ii.Diagnostics.catch_or_finally_expected),r=bn(!1)),A(Je(q.createTryStatement(n,i,r),e),t)}function En(){return _e(),Ii.tokenIsIdentifierOrKeyword(V)&&!K.hasPrecedingLineBreak()}function Nn(){return _e(),84===V&&!K.hasPrecedingLineBreak()}function An(){return _e(),98===V&&!K.hasPrecedingLineBreak()}function Fn(){return _e(),(Ii.tokenIsIdentifierOrKeyword(V)||8===V||9===V||10===V)&&!K.hasPrecedingLineBreak()}function Pn(){for(;;)switch(V){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 152:return _e(),!K.hasPrecedingLineBreak()&&Se();case 141:case 142:return _e(),!K.hasPrecedingLineBreak()&&(Se()||10===V);case 126:case 131:case 135:case 121:case 122:case 123:case 145:if(_e(),K.hasPrecedingLineBreak())return!1;continue;case 157:return _e(),18===V||79===V||93===V;case 100:return _e(),10===V||41===V||18===V||Ii.tokenIsIdentifierOrKeyword(V);case 93:var e=_e();if(152===e&&(e=be(_e)),63===e||41===e||18===e||88===e||127===e)return!0;continue;case 124:_e();continue;default:return!1}}function wn(){return be(Pn)}function In(){switch(V){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return wn()||be($t);case 85:case 93:return wn();case 131:case 135:case 118:case 141:case 142:case 152:case 157:return!0;case 123:case 121:case 122:case 124:case 145:return wn()||!be(En);default:return Pr()}}function On(){return _e(),De()||18===V||22===V}function Mn(){switch(V){case 26:return e=se(),t=ce(),Te(26),A(Je(q.createEmptyStatement(),e),t);case 18:return bn(!1);case 113:return Gn(se(),ce(),void 0,void 0);case 119:if(be(On))return Gn(se(),ce(),void 0,void 0);break;case 98:return Qn(se(),ce(),void 0,void 0);case 84:return ui(se(),ce(),void 0,void 0);case 99:return function(){var e=se(),t=ce();Te(99);var r=K.getTokenPos(),n=Te(20),i=J(wr);return Fe(20,21,n,r),n=Mn(),r=Pe(91)?Mn():void 0,A(Je(q.createIfStatement(i,n,r),e),t)}();case 90:return function(){var e=se(),t=ce();Te(90);var r=Mn();Te(115);var n=K.getTokenPos(),i=Te(20),a=J(wr);return Fe(20,21,i,n),Pe(26),A(Je(q.createDoStatement(r,a),e),t)}();case 115:return function(){var e=se(),t=ce();Te(115);var r=K.getTokenPos(),n=Te(20),i=J(wr);return Fe(20,21,n,r),r=Mn(),A(Je(q.createWhileStatement(i,r),e),t)}();case 97:return Dn();case 86:return Sn(245);case 81:return Sn(246);case 105:return function(){var e=se(),t=ce();Te(105);var r=Le()?void 0:J(wr);return Be(),A(Je(q.createReturnStatement(r),e),t)}();case 116:return function(){var e=se(),t=ce();Te(116);var r=K.getTokenPos(),n=Te(20),i=J(wr);return Fe(20,21,n,r),r=H(33554432,Mn),A(Je(q.createWithStatement(i,r),e),t)}();case 107:return Cn();case 109:return function(){var e=se(),t=ce();Te(109);var r=K.hasPrecedingLineBreak()?void 0:J(wr);return void 0===r&&(T++,r=Je(q.createIdentifier(""),se())),Re()||Ee(r),A(Je(q.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return kn();case 87:return e=se(),t=ce(),Te(87),Be(),A(Je(q.createDebuggerStatement(),e),t);case 59:return Rn();case 131:case 118:case 152:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 145:case 157:if(wn())return Rn()}var e,t,r,n,i,a,o;return n=se(),i=ce(),a=20===V,o=J(wr),Ii.isIdentifier(o)&&Pe(58)?r=q.createLabeledStatement(o,Mn()):(Re()||Ee(o),r=q.createExpressionStatement(o),a&&(i=!1)),A(Je(r,n),i)}function Ln(e){return 135===e.kind}function Rn(){var e=Ii.some(be(function(){return ai(),si()}),Ln);if(e){var t=H(16777216,function(){var e=gt(b);if(e)return mt(e)});if(t)return t}var r=se(),n=ce(),i=ai(),a=si();if(e){for(var o=0,s=a;o<s.length;o++)s[o].flags|=16777216;return H(16777216,function(){return Bn(r,n,i,a)})}return Bn(r,n,i,a)}function Bn(e,t,r,n){switch(V){case 113:case 119:case 85:return Gn(e,t,r,n);case 98:return Qn(e,t,r,n);case 84:return ui(e,t,r,n);case 118:return function(e,t,r,n){Te(118);var i=qe(),a=Rt(),o=di(),s=er();return A(Je(q.createInterfaceDeclaration(r,n,i,a,o,s),e),t)}(e,t,r,n);case 152:return function(e,t,r,n){Te(152);var i=qe(),a=Rt();Te(63);var o=138===V&&xe(cr)||Nr();return Be(),A(Je(q.createTypeAliasDeclaration(r,n,i,a,o),e),t)}(e,t,r,n);case 92:return function(e,t,r,n){Te(92);var i,a=qe();Te(18)?(i=j(40960,function(){return ht(6,yi)}),Te(19)):i=vt();return A(Je(q.createEnumDeclaration(r,n,a,i),e),t)}(e,t,r,n);case 157:case 141:case 142:return function(e,t,r,n){var i=0;{if(157===V)return vi(e,t,r,n);if(Pe(142))i|=16;else if(Te(141),10===V)return vi(e,t,r,n)}return function e(t,r,n,i,a){var o=16&a;var s=qe();var o=Pe(24)?e(se(),!1,void 0,void 0,4|o):hi();var a=q.createModuleDeclaration(n,i,s,o,a);return A(Je(a,t),r)}(e,t,r,n,i)}(e,t,r,n);case 100:return function(e,t,r,n){Te(100);var i,a=K.getStartPos();Se()&&(i=qe());var o,s=!1;156===V||"type"!==(null==i?void 0:i.escapedText)||!Se()&&41!==V&&18!==V||(s=!0,i=Se()?qe():void 0);if(i&&27!==V&&156!==V)return function(e,t,r,n,i,a){Te(63);var o=146===V&&be(bi)?function(){var e=se();Te(146),Te(20);var t=Ci();return Te(21),Je(q.createExternalModuleReference(t),e)}():xt(!1);return Be(),A(Je(q.createImportEqualsDeclaration(r,n,a,i,o),e),t)}(e,t,r,n,i,s);!i&&41!==V&&18!==V||(o=function(e,t,r){var n;e&&!Pe(27)||(n=41===V?function(){var e=se();Te(41),Te(127);var t=qe();return Je(q.createNamespaceImport(t),e)}():ki(269));return Je(q.createImportClause(r,e,n),t)}(i,a,s),Te(156));var c,s=Ci();129!==V||K.hasPrecedingLineBreak()||(c=Ti());return Be(),A(Je(q.createImportDeclaration(r,n,o,s,c),e),t)}(e,t,r,n);case 93:switch(_e(),V){case 88:case 63:return function(e,t,r,n){var i,a=te();B(!0),Pe(63)?i=!0:Te(88);var o=Or();return Be(),B(a),A(Je(q.createExportAssignment(r,n,i,o),e),t)}(e,t,r,n);case 127:return function(e,t,r,n){Te(127),Te(142);var i=qe();Be();i=q.createNamespaceExportDeclaration(i);return i.decorators=r,i.modifiers=n,A(Je(i,e),t)}(e,t,r,n);default:return function(e,t,r,n){var i,a,o,s=te();B(!0);var c=Pe(152),l=se();Pe(41)?(Pe(127)&&(i=function(e){return Je(q.createNamespaceExport(We()),e)}(l)),Te(156),a=Ci()):(i=ki(273),156!==V&&(10!==V||K.hasPrecedingLineBreak())||(Te(156),a=Ci()));a&&129===V&&!K.hasPrecedingLineBreak()&&(o=Ti());return Be(),B(s),A(Je(q.createExportDeclaration(r,n,c,i,a,o),e),t)}(e,t,r,n)}default:if(r||n){var i=ze(276,!0,Ii.Diagnostics.Declaration_expected);return Ii.setTextRangePos(i,e),i.decorators=r,i.modifiers=n,i}return}}function jn(e,t){if(18===V||!Le())return xn(e,t);Be()}function Jn(){var e=se();if(27===V)return Je(q.createOmittedExpression(),e);var t=we(25),r=Un(),n=Ir();return Je(q.createBindingElement(t,void 0,r,n),e)}function zn(){var e,t=se(),r=we(25),n=De(),i=Qe();n&&58!==V?(e=i,i=void 0):(Te(58),e=Un());n=Ir();return Je(q.createBindingElement(r,i,e,n),t)}function Kn(){return 18===V||22===V||80===V||De()}function Un(e){return 22===V?function(){var e=se();Te(22);var t=ht(10,Jn);return Te(23),Je(q.createArrayBindingPattern(t),e)}():18===V?function(){var e=se();Te(18);var t=ht(9,zn);return Te(19),Je(q.createObjectBindingPattern(t),e)}():Ve(e)}function Vn(){return qn(!0)}function qn(e){var t,r=se(),n=ce(),i=Un(Ii.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);e&&79===i.kind&&53===V&&!K.hasPrecedingLineBreak()&&(t=Me());var a=Ar(),e=Kr(V)?void 0:Ir();return A(Je(q.createVariableDeclaration(i,t,a,e),r),n)}function Wn(e){var t,r,n=se(),i=0;switch(V){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:Ii.Debug.fail()}return _e(),160===V&&be(Hn)?t=vt():(r=Z(),M(e),t=ht(8,e?qn:Vn),M(r)),Je(q.createVariableDeclarationList(t,i),n)}function Hn(){return ot()&&21===_e()}function Gn(e,t,r,n){var i=Wn(!1);Be();i=q.createVariableStatement(n,i);return i.decorators=r,A(Je(i,e),t)}function Qn(e,t,r,n){var i=te(),a=Ii.modifiersToFlags(n);Te(98);var o=we(41),s=(512&a?vn:Ve)(),c=o?1:0,l=256&a?2:0,u=Rt();1&a&&B(!0);var _=Ut(c|l),a=zt(58,!1),l=jn(c|l,Ii.Diagnostics.or_expected);return B(i),A(Je(q.createFunctionDeclaration(r,n,o,s,u,_,a,l),e),t)}function Xn(i,a,o,s){return xe(function(){if(134===V?Te(134):10===V&&20===be(_e)&&xe(function(){var e=Et();return"constructor"===e.text?e:void 0})){var e=Rt(),t=Ut(0),r=zt(58,!1),n=jn(0,Ii.Diagnostics.or_expected),n=q.createConstructorDeclaration(o,s,t,n);return n.typeParameters=e,n.type=r,A(Je(n,i),a)}})}function Yn(e,t,r,n,i,a,o,s,c){var l=i?1:0,u=Ii.some(n,Ii.isAsyncModifier)?2:0,_=Rt(),d=Ut(l|u),p=zt(58,!1),c=jn(l|u,c),c=q.createMethodDeclaration(r,n,i,a,o,_,d,p,c);return c.exclamationToken=s,A(Je(c,e),t)}function Zn(e,t,r,n,i,a){var o,s,c,l=a||K.hasPrecedingLineBreak()?void 0:we(53),u=Ar(),_=j(45056,Ir);return o=i,s=u,c=_,59!==V||K.hasPrecedingLineBreak()?20===V?(re(Ii.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),_e()):!s||Le()?Re()||(c?re(Ii.Diagnostics._0_expected,Ii.tokenToString(26)):Ee(o)):c?re(Ii.Diagnostics._0_expected,Ii.tokenToString(26)):re(Ii.Diagnostics.Expected_for_property_initializer):re(Ii.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations),A(Je(q.createPropertyDeclaration(r,n,i,a||l,u,_),e),t)}function $n(e,t,r,n){var i=we(41),a=Qe(),o=we(57);return i||20===V||29===V?Yn(e,t,r,n,i,a,o,void 0,Ii.Diagnostics.or_expected):Zn(e,t,r,n,a,o)}function ei(e,t,r,n,i){var a=Qe(),o=Rt(),s=Ut(0),c=zt(58,!1),l=jn(0),l=172===i?q.createGetAccessorDeclaration(r,n,a,s,c,l):q.createSetAccessorDeclaration(r,n,a,s,l);return l.typeParameters=o,c&&173===l.kind&&(l.type=c),A(Je(l,e),t)}function ti(){var e;if(59===V)return!0;for(;Ii.isModifierKind(V);){if(e=V,Ii.isClassMemberModifier(e))return!0;_e()}if(41===V)return!0;if(He()&&(e=V,_e()),22===V)return!0;if(void 0!==e){if(!Ii.isKeyword(e)||149===e||136===e)return!0;switch(V){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Le()}}return!1}function ri(e,t,r,n){Oe(124);var i=function(){var e=Y(),t=te();L(!1),B(!0);var r=bn(!1);return L(e),B(t),r}();return A(Je(q.createClassStaticBlockDeclaration(r,n,i),e),t)}function ni(){if(te()&&132===V){var e=se(),t=qe(Ii.Diagnostics.Expression_expected);return _e(),ln(e,on(e,t,!0))}return Qr()}function ii(){var e=se();if(Pe(59)){var t=H(16384,ni);return Je(q.createDecorator(t),e)}}function ai(){for(var e,t,r=se();t=ii();)e=Ii.append(e,t);return e&&je(e,r)}function oi(e,t,r){var n=se(),i=V;if(85===V&&e){if(!xe(Ze))return}else{if(t&&124===V&&be(xi))return;if(r&&124===V)return;if(!Ii.isModifierKind(V)||!xe($e))return}return Je(q.createToken(i),n)}function si(e,t){for(var r,n,i=se(),a=!1;n=oi(e,t,a);)124===n.kind&&(a=!0),r=Ii.append(r,n);return r&&je(r,i)}function ci(){var e;return 131===V&&(e=se(),_e(),e=je([Je(q.createToken(131),e)],e)),e}function li(){var e=se();if(26===V)return _e(),Je(q.createSemicolonClassElement(),e);var t=ce(),r=ai(),n=si(!0,!0);if(124===V&&be(xi))return ri(e,t,r,n);if(Ye(136))return ei(e,t,r,n,172);if(Ye(149))return ei(e,t,r,n,173);if(134===V||10===V){var i=Xn(e,t,r,n);if(i)return i}if(Wt())return Gt(e,t,r,n);if(Ii.tokenIsIdentifierOrKeyword(V)||10===V||8===V||41===V||22===V){if(Ii.some(n,Ln)){for(var a=0,o=n;a<o.length;a++)o[a].flags|=16777216;return H(16777216,function(){return $n(e,t,r,n)})}return $n(e,t,r,n)}if(r||n){i=ze(79,!0,Ii.Diagnostics.Declaration_expected);return Zn(e,t,r,n,i,void 0)}return Ii.Debug.fail("Should not have attempted to parse class member declaration.")}function ui(e,t,r,n){return _i(e,t,r,n,257)}function _i(e,t,r,n,i){var a=te();Te(84);var o=!De()||117===V&&be(st)?void 0:Ue(De()),s=Rt();Ii.some(n,Ii.isExportModifier)&&B(!0);var c,l=di();return Te(18)?(c=pt(5,li),Te(19)):c=vt(),B(a),A(Je(257===i?q.createClassDeclaration(r,n,o,s,l,c):q.createClassExpression(r,n,o,s,l,c),e),t)}function di(){if(mi())return pt(22,pi)}function pi(){var e=se(),t=V;Ii.Debug.assert(94===t||117===t),_e();var r=ht(7,fi);return Je(q.createHeritageClause(t,r),e)}function fi(){var e=se(),t=Qr();if(228===t.kind)return t;var r=gi();return Je(q.createExpressionWithTypeArguments(t,r),e)}function gi(){return 29===V?bt(20,Nr,29,31):void 0}function mi(){return 94===V||117===V}function yi(){var e=se(),t=ce(),r=Qe(),n=J(Ir);return A(Je(q.createEnumMember(r,n),e),t)}function hi(){var e,t=se();return Te(18)?(e=pt(1,Mn),Te(19)):e=vt(),Je(q.createModuleBlock(e),t)}function vi(e,t,r,n){var i,a,o=0;return 157===V?(i=qe(),o|=1024):(i=Et()).text=Ke(i.text),18===V?a=hi():Be(),A(Je(q.createModuleDeclaration(r,n,i,a,o),e),t)}function bi(){return 20===_e()}function xi(){return 18===_e()}function Di(){return 43===_e()}function Si(){var e=se(),t=Ii.tokenIsIdentifierOrKeyword(V)?We():At(10);Te(58);var r=Or();return Je(q.createAssertEntry(t,r),e)}function Ti(e){var t=se();e||Te(129);var r=K.getTokenPos();if(Te(18)){var n=K.hasPrecedingLineBreak(),i=ht(24,Si,!0);return Te(19)||(e=Ii.lastOrUndefined(f))&&e.code===Ii.Diagnostics._0_expected.code&&Ii.addRelatedInfo(e,Ii.createDetachedDiagnostic(U,r,1,Ii.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}")),Je(q.createAssertClause(i,n),t)}i=je([],se(),void 0,!1);return Je(q.createAssertClause(i,!1),t)}function Ci(){if(10!==V)return wr();var e=Et();return e.text=Ke(e.text),e}function ki(e){var t=se();return Je(269===e?q.createNamedImports(bt(23,Ni,18,19)):q.createNamedExports(bt(23,Ei,18,19)),t)}function Ei(){var e=ce();return A(Ai(275),e)}function Ni(){return Ai(270)}function Ai(e){var t,r,n,i=se(),a=Ii.isKeyword(V)&&!Se(),o=K.getTokenPos(),s=K.getTextPos(),c=!1,l=!0,u=We();return"type"===u.escapedText&&(127===V?(r=We(),127===V?(n=We(),u=Ii.tokenIsIdentifierOrKeyword(V)?(c=!0,t=r,_()):(t=u,n),l=!1):u=Ii.tokenIsIdentifierOrKeyword(V)?(t=u,l=!1,_()):(c=!0,r)):Ii.tokenIsIdentifierOrKeyword(V)&&(c=!0,u=_())),l&&127===V&&(t=u,Te(127),u=_()),270===e&&a&&ie(o,s,Ii.Diagnostics.Identifier_expected),Je(270===e?q.createImportSpecifier(c,t,u):q.createExportSpecifier(c,t,u),i);function _(){return a=Ii.isKeyword(V)&&!Se(),o=K.getTokenPos(),s=K.getTextPos(),We()}}function Fi(e){var t=se(),r=(e?Pe:Te)(18),n=H(8388608,Mt);e&&!r||Ae(19);n=q.createJSDocTypeExpression(n);return w(n),Je(n,t)}function Pi(){for(var e=se(),t=Pe(18),r=se(),n=xt(!1);80===V;)me(),de(),n=Je(q.createJSDocMemberName(n,qe()),r);t&&Ae(19);t=q.createJSDocNameReference(n);return w(t),Je(t,e)}function wi(c,e){void 0===c&&(c=0);var l=S,u=void 0===e?l.length:c+e;if(e=u-c,Ii.Debug.assert(0<=c),Ii.Debug.assert(c<=u),Ii.Debug.assert(u<=l.length),Mi(l,c)){var C,_,d,p,f,g=[],m=[];return K.scanRange(c+3,e-5,function(){var t,e,r=1,n=c-(l.lastIndexOf("\n",c)+1)+4;function i(e){t=t||n,g.push(e),n+=e.length}for(de();J(5););J(4)&&(n=r=0);e:for(;;){switch(V){case 59:0===r||1===r?(h(g),f=f||se(),(e=N(n))&&(C?C.push(e):(C=[e],_=e.pos),d=e.end),t=void(r=0)):i(K.getTokenText());break;case 4:g.push(K.getTokenText()),n=r=0;break;case 41:var a=K.getTokenText();1===r||2===r?(r=2,i(a)):(r=1,n+=a.length);break;case 5:var o=K.getTokenText();2===r?g.push(o):void 0!==t&&n+o.length>t&&g.push(o.slice(t-n)),n+=o.length;break;case 1:break e;case 18:r=2;a=K.getStartPos(),o=b(K.getTextPos()-1);if(o){p||y(g),m.push(Je(q.createJSDocText(g.join("")),null!=p?p:c,a)),m.push(o),g=[],p=K.getTextPos();break}default:r=2,i(K.getTokenText())}de()}h(g),m.length&&g.length&&m.push(Je(q.createJSDocText(g.join("")),null!=p?p:c,f)),m.length&&C&&Ii.Debug.assertIsDefined(f,"having parsed tags implies that the end of the comment span should be set");var s=C&&je(C,_,d);return Je(q.createJSDocComment(m.length?je(m,c,f):g.length?g.join(""):void 0,s),c,u)})}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function h(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function n(){for(;;){if(de(),1===V)return!0;if(5!==V&&4!==V)return!1}}function k(){if(5!==V&&4!==V||!be(n))for(;5===V||4===V;)de()}function E(){if((5===V||4===V)&&be(n))return"";for(var e=K.hasPrecedingLineBreak(),t=!1,r="";e&&41===V||5===V||4===V;)r+=K.getTokenText(),4===V?(t=e=!0,r=""):41===V&&(e=!1),de();return t?r:""}function N(e){Ii.Debug.assert(59===V);var t=K.getTokenPos();de();var r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x,D,S=z(void 0),T=E();switch(S.escapedText){case"author":r=function(e,t,r,n){var i=se(),a=function(){var e=[],t=!1,r=K.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(K.getTokenText()),K.setTextPos(K.getTokenPos()+1);break}}e.push(K.getTokenText()),r=de()}return q.createJSDocText(e.join(""))}(),o=K.getStartPos(),n=A(e,o,r,n);n||(o=K.getStartPos());n="string"!=typeof n?je(Ii.concatenate([Je(a,i,o)],n),i):a.text+n;return Je(q.createJSDocAuthorTag(t,n),e)}(t,S,e,T);break;case"implements":h=t,v=S,b=e,x=T,D=L(),r=Je(q.createJSDocImplementsTag(v,D,A(h,se(),b,x)),h);break;case"augments":case"extends":p=t,f=S,g=e,m=T,y=L(),r=Je(q.createJSDocAugmentsTag(f,y,A(p,se(),g,m)),p);break;case"class":case"constructor":r=R(t,q.createJSDocClassTag,S,e,T);break;case"public":r=R(t,q.createJSDocPublicTag,S,e,T);break;case"private":r=R(t,q.createJSDocPrivateTag,S,e,T);break;case"protected":r=R(t,q.createJSDocProtectedTag,S,e,T);break;case"readonly":r=R(t,q.createJSDocReadonlyTag,S,e,T);break;case"override":r=R(t,q.createJSDocOverrideTag,S,e,T);break;case"deprecated":W=!0,r=R(t,q.createJSDocDeprecatedTag,S,e,T);break;case"this":f=t,y=S,g=e,m=T,p=Fi(!0),k(),r=Je(q.createJSDocThisTag(y,p,A(f,se(),g,m)),f);break;case"enum":c=t,l=S,u=e,_=T,d=Fi(!0),k(),r=Je(q.createJSDocEnumTag(l,d,A(c,se(),u,_)),c);break;case"arg":case"argument":case"param":return O(t,S,2,e);case"return":case"returns":r=function(e,t,r,n){Ii.some(C,Ii.isJSDocReturnTag)&&ie(t.pos,K.getTokenPos(),Ii.Diagnostics._0_tag_already_specified,t.escapedText);var i=w();return Je(q.createJSDocReturnTag(t,i,A(e,se(),r,n)),e)}(t,S,e,T);break;case"template":s=t,l=S,d=e,u=T,_=18===V?Fi():void 0,c=function(){var e=se(),t=[];do{k();var r=function(){var e=se(),t=J(22);t&&k();var r,n=z(Ii.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);t&&(k(),Te(63),r=H(8388608,Mt),Te(23));if(Ii.nodeIsMissing(n))return;return Je(q.createTypeParameterDeclaration(void 0,n,void 0,r),e)}()}while(void 0!==r&&t.push(r),E(),J(27));return je(t,e)}(),r=Je(q.createJSDocTemplateTag(l,_,c,A(s,se(),d,u)),s);break;case"type":r=M(t,S,e,T);break;case"typedef":r=function(e,t,r,n){var i=w();E();var a=B();k();var o=F(r);if(!i||I(i.type)){for(var s,c,l=void 0,u=void 0,_=void 0,d=!1;l=xe(function(){return j(1,r)});)if(d=!0,343===l.kind){if(u){var p=re(Ii.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);p&&Ii.addRelatedInfo(p,Ii.createDetachedDiagnostic(U,0,0,Ii.Diagnostics.The_tag_was_first_specified_here));break}u=l}else _=Ii.append(_,l);d&&(s=i&&183===i.type.kind,c=q.createJSDocTypeLiteral(_,s),i=u&&u.typeExpression&&!I(u.typeExpression.type)?u.typeExpression:Je(c,e),s=i.end)}s=s||void 0!==o?se():(null!==(c=null!=a?a:i)&&void 0!==c?c:t).end,o=o||A(e,s,r,n);return Je(q.createJSDocTypedefTag(t,i,a,o),e,s)}(t,S,e,T);break;case"callback":r=function(e,t,r,n){var i=B();k();var a=F(r),o=function(e){var t,r,n=se();for(;t=xe(function(){return j(4,e)});)r=Ii.append(r,t);return je(r||[],n)}(r),s=xe(function(){if(J(59)){var e=N(r);if(e&&341===e.kind)return e}}),s=Je(q.createJSDocSignature(void 0,o,s),e);a=a||A(e,se(),r,n);n=void 0!==a?se():s.end;return Je(q.createJSDocCallbackTag(t,s,i,a),e,n)}(t,S,e,T);break;case"see":n=t,i=S,s=e,a=T,o=22===V||be(function(){return 59===de()&&Ii.tokenIsIdentifierOrKeyword(de())&&P(K.getTokenValue())})?void 0:Pi(),a=void 0!==s&&void 0!==a?A(n,se(),s,a):void 0,r=Je(q.createJSDocSeeTag(i,o,a),n);break;default:i=t,o=S,a=e,n=T,r=Je(q.createJSDocUnknownTag(o,A(i,se(),a,n)),i)}return r}function A(e,t,r,n){return n||(r+=t-e),F(r,n.slice(r))}function F(t,e){var r,n,i=se(),a=[],o=[],s=0,c=!0;function l(e){n=n||t,a.push(e),t+=e.length}void 0!==e&&(""!==e&&l(e),s=1);var u=V;e:for(;;){switch(u){case 4:s=0,a.push(K.getTokenText()),t=0;break;case 59:if(3===s||2===s&&(!c||be(v))){a.push(K.getTokenText());break}K.setTextPos(K.getTextPos()-1);case 1:break e;case 5:2===s||3===s?l(K.getTokenText()):(d=K.getTokenText(),void 0!==n&&t+d.length>n&&a.push(d.slice(n-t)),t+=d.length);break;case 18:s=2;var _=K.getStartPos(),d=b(K.getTextPos()-1);d?(o.push(Je(q.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(d),a=[],r=K.getTextPos()):l(K.getTokenText());break;case 61:s=3===s?2:3,l(K.getTokenText());break;case 41:if(0===s){t+=s=1;break}default:3!==s&&(s=2),l(K.getTokenText())}c=5===V,u=de()}return y(a),h(a),o.length?(a.length&&o.push(Je(q.createJSDocText(a.join("")),null!=r?r:i)),je(o,i,K.getTextPos())):a.length?a.join(""):void 0}function v(){var e=de();return 5===e||4===e}function b(e){var t=xe(x);if(t){de(),k();var r=se(),n=Ii.tokenIsIdentifierOrKeyword(V)?xt(!0):void 0;if(n)for(;80===V;)me(),de(),n=Je(q.createJSDocMemberName(n,qe()),r);for(var i=[];19!==V&&4!==V&&1!==V;)i.push(K.getTokenText()),de();return Je(("link"===t?q.createJSDocLink:"linkcode"===t?q.createJSDocLinkCode:q.createJSDocLinkPlain)(n,i.join("")),e,K.getTextPos())}}function x(){if(E(),18===V&&59===de()&&Ii.tokenIsIdentifierOrKeyword(de())){var e=K.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function w(){return E(),18===V?Fi():void 0}function D(){var e=J(22);e&&k();var t=J(61),r=function(){var e=z();Pe(22)&&Te(23);for(;Pe(24);){var t=z();Pe(22)&&Te(23),e=function(e,t){return Je(q.createQualifiedName(e,t),e.pos)}(e,t)}return e}();return t&&(Ie(t=61)||ze(t,!1,Ii.Diagnostics._0_expected,Ii.tokenToString(t))),e&&(k(),we(63)&&wr(),Te(23)),{name:r,isBracketed:e}}function I(e){switch(e.kind){case 148:return!0;case 183:return I(e.elementType);default:return Ii.isTypeReferenceNode(e)&&Ii.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function O(e,t,r,n){var i=w(),a=!i;E();var o=D(),s=o.name,c=o.isBracketed,o=E();a&&!be(x)&&(i=w());o=A(e,se(),n,o),n=4!==r&&function(e,t,r,n){if(e&&I(e.type)){for(var i=se(),a=void 0,o=void 0;a=xe(function(){return j(r,n,t)});)340!==a.kind&&347!==a.kind||(o=Ii.append(o,a));if(o){e=Je(q.createJSDocTypeLiteral(o,183===e.type.kind),i);return Je(q.createJSDocTypeExpression(e),i)}}}(i,s,r,n);return n&&(i=n,a=!0),Je(1===r?q.createJSDocPropertyTag(t,s,c,i,a,o):q.createJSDocParameterTag(t,s,c,i,a,o),e)}function M(e,t,r,n){Ii.some(C,Ii.isJSDocTypeTag)&&ie(t.pos,K.getTokenPos(),Ii.Diagnostics._0_tag_already_specified,t.escapedText);var i=Fi(!0),n=void 0!==r&&void 0!==n?A(e,se(),r,n):void 0;return Je(q.createJSDocTypeTag(t,i,n),e)}function L(){var e=Pe(18),t=se(),r=function(){var e=se(),t=z();for(;Pe(24);){var r=z();t=Je(q.createPropertyAccessExpression(t,r),e)}return t}(),n=gi(),t=Je(q.createExpressionWithTypeArguments(r,n),t);return e&&Te(19),t}function R(e,t,r,n,i){return Je(t(r,A(e,se(),n,i)),e)}function B(e){var t=K.getTokenPos();if(Ii.tokenIsIdentifierOrKeyword(V)){var r=z();if(Pe(24)){var n=B(!0);return Je(q.createModuleDeclaration(void 0,void 0,r,n,e?4:void 0),t)}return e&&(r.isInJSDocNamespace=!0),r}}function j(e,t,r){for(var n=!0,i=!1;;)switch(de()){case 59:if(n){var a=function(e,t){Ii.Debug.assert(59===V);var r=K.getStartPos();de();var n,i=z();switch(k(),i.escapedText){case"type":return 1===e&&M(r,i);case"prop":case"property":n=1;break;case"arg":case"argument":case"param":n=6;break;default:return!1}return!!(e&n)&&O(r,i,e,t)}(e,t);return!a||340!==a.kind&&347!==a.kind||4===e||!r||!Ii.isIdentifier(a.name)&&function(e,t){for(;!Ii.isIdentifier(e)||!Ii.isIdentifier(t);){if(Ii.isIdentifier(e)||Ii.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 79:n=!1;break;case 1:return!1}}function J(e){return V===e&&(de(),!0)}function z(e){if(!Ii.tokenIsIdentifierOrKeyword(V))return ze(79,!e,e||Ii.Diagnostics.Identifier_expected);T++;var t=K.getTokenPos(),r=K.getTextPos(),n=V,e=Ke(K.getTokenValue()),r=Je(q.createIdentifier(e,void 0,n),t,r);return de(),r}}(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.AssertEntries=24]="AssertEntries",i[i.Count=25]="Count",(i={})[i.False=0]="False",i[i.True=1]="True",i[i.Unknown=2]="Unknown",(e=Ce=e.JSDocParser||(e.JSDocParser={})).parseJSDocTypeExpressionForTests=function(e,t,r){return E("file.js",e,99,void 0,1),K.setText(e,t,r),V=K.scan(),e=Fi(),t=I("file.js",99,1,!1,[],q.createToken(1),0,Ii.noop),r=Ii.attachFileToDiagnostics(f,t),g&&(t.jsDocDiagnostics=Ii.attachFileToDiagnostics(g,t)),N(),e?{jsDocTypeExpression:e,diagnostics:r}:void 0},e.parseJSDocTypeExpression=Fi,e.parseJSDocNameReference=Pi,e.parseIsolatedJSDocComment=function(e,t,r){E("",e,99,void 0,1);var n=H(8388608,function(){return wi(t,r)}),e={languageVariant:0,text:e},e=Ii.attachFileToDiagnostics(f,e);return N(),n?{jsDoc:n,diagnostics:e}:void 0},e.parseJSDocComment=function(e,t,r){var n=V,i=f.length,a=C,o=H(8388608,function(){return wi(t,r)});return Ii.setParent(o,e),262144&x&&(g=g||[]).push.apply(g,f),V=n,f.length=i,C=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=Oi=Oi||{}).updateSourceFile=function(e,t,r,n){if(D(e,t,r,n=n||Ii.Debug.shouldAssert(2)),Ii.textChangeRangeIsUnchanged(r))return e;if(0===e.statements.length)return y.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator);var i=e;Ii.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0,y.fixupParentReferences(i);var a=e.text,o=S(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;h(e,function e(t){if(Ii.nodeIsMissing(t))return;{if(!(t.pos<=r))return Ii.Debug.assert(t.pos>r),!0;if(t.pos>=i.pos&&(i=t),r<t.end)return h(t,e),!0;Ii.Debug.assert(t.end<=r),n=t}}),n&&(t=function(e){for(;;){var t=Ii.getLastChild(e);if(!t)return e;e=t}}(n)).pos>i.pos&&(i=t)}return i}(e,r);Ii.Debug.assert(i.pos<=r);i=i.pos;r=Math.max(0,i-1)}var a=Ii.createTextSpanFromBounds(r,Ii.textSpanEnd(t.span)),t=t.newLength+(t.span.start-r);return Ii.createTextChangeRange(a,t)}(e,r);D(e,t,s,n),Ii.Debug.assert(s.span.start<=r.span.start),Ii.Debug.assert(Ii.textSpanEnd(s.span)===Ii.textSpanEnd(r.span)),Ii.Debug.assert(Ii.textSpanEnd(Ii.textChangeRangeNewSpan(s))===Ii.textSpanEnd(Ii.textChangeRangeNewSpan(r)));var c,l,u,_,d,p,f,r=Ii.textChangeRangeNewSpan(s).length-s.span.length;function g(e){if(Ii.Debug.assert(e.pos<=e.end),e.pos>l)v(e,!1,_,d,p,f);else{var t=e.end;if(c<=t){if(e.intersectsChange=!0,e._children=void 0,b(e,c,l,u,_),h(e,g,m),Ii.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++)g(n[r]);x(e,f)}else Ii.Debug.assert(t<c)}}function m(e){if(Ii.Debug.assert(e.pos<=e.end),e.pos>l)v(e,!0,_,d,p,f);else{var t=e.end;if(c<=t){e.intersectsChange=!0,e._children=void 0,b(e,c,l,u,_);for(var r=0,n=e;r<n.length;r++)g(n[r])}else Ii.Debug.assert(t<c)}}return i=i,c=s.span.start,l=Ii.textSpanEnd(s.span),u=Ii.textSpanEnd(Ii.textChangeRangeNewSpan(s)),_=r,d=a,p=t,f=n,g(i),(o=y.parseSourceFile(e.fileName,t,e.languageVersion,o,!0,e.scriptKind,e.setExternalModuleIndicator)).commentDirectives=function(e,t,r,n,i,a,o,s){if(!e)return t;for(var c,l=!1,u=0,_=e;u<_.length;u++){var d=_[u],p=d.range,f=d.type;p.end<r?c=Ii.append(c,d):p.pos>n&&(g(),f={range:{pos:p.pos+i,end:p.end+i},type:f},c=Ii.append(c,f),s&&Ii.Debug.assert(a.substring(p.pos,p.end)===o.substring(f.range.pos,f.range.end)))}return g(),c;function g(){l||(l=!0,c?t&&c.push.apply(c,t):c=t)}}(e.commentDirectives,o.commentDirectives,s.span.start,Ii.textSpanEnd(s.span),r,a,t,n),o.impliedNodeFormat=e.impliedNodeFormat,o},e.createSyntaxCursor=S,(e={})[e.Value=-1]="Value",Ii.isDeclarationFileName=Bi,Ii.processCommentPragmas=ji,Ii.processPragmasIntoFields=Ji;var p=new Ii.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=Ii.commentPragmas[i])&&a.kind&r&&("fail"!==(n=function(e,t){if(!t)return{};if(!e.args)return{};for(var r=Ii.trimString(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 Ii.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 zi(e,t){return e.kind===t.kind&&(79===e.kind?e.escapedText===t.escapedText:108===e.kind||e.name.escapedText===t.name.escapedText&&zi(e.expression,t.expression))}Ii.tagNamesAreEquivalent=zi}(ts=ts||{}),function(b){b.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var e=new b.Map(b.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));b.inverseJsxOptionMap=new b.Map(b.arrayFrom(b.mapIterator(e.entries(),function(e){var t=e[0];return[""+e[1],t]})));var t=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.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.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.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.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];b.libs=t.map(function(e){return e[0]}),b.libMap=new b.Map(t),b.optionsForWatch=[{name:"watchFile",type:new b.Map(b.getEntries({fixedpollinginterval:b.WatchFileKind.FixedPollingInterval,prioritypollinginterval:b.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:b.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:b.WatchFileKind.FixedChunkSizePolling,usefsevents:b.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:b.WatchFileKind.UseFsEventsOnParentDirectory})),category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:b.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new b.Map(b.getEntries({usefsevents:b.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:b.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:b.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:b.WatchDirectoryKind.FixedChunkSizePolling})),category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:b.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new b.Map(b.getEntries({fixedinterval:b.PollingWatchKind.FixedInterval,priorityinterval:b.PollingWatchKind.PriorityInterval,dynamicpriority:b.PollingWatchKind.DynamicPriority,fixedchunksize:b.PollingWatchKind.FixedChunkSize})),category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:b.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:ye},category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:ye},category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],b.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:b.Diagnostics.Output_Formatting,description:b.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Output_Formatting,description:b.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:b.Diagnostics.FILE_OR_DIRECTORY,category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:b.Diagnostics.DIRECTORY,category:b.Diagnostics.Compiler_Diagnostics,description:b.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:b.Diagnostics.Projects,description:b.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:b.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:b.Diagnostics.Watch_and_Build_Modes,description:b.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:b.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:b.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:b.Diagnostics.Platform_specific}],b.targetOptionDeclaration={name:"target",shortName:"t",type:new b.Map(b.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:b.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0};var r,g=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Command_line_Options,paramType:b.Diagnostics.FILE_OR_DIRECTORY,description:b.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:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:b.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:b.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:b.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},b.targetOptionDeclaration,{name:"module",shortName:"m",type:new b.Map(b.getEntries({none:b.ModuleKind.None,commonjs:b.ModuleKind.CommonJS,amd:b.ModuleKind.AMD,system:b.ModuleKind.System,umd:b.ModuleKind.UMD,es6:b.ModuleKind.ES2015,es2015:b.ModuleKind.ES2015,es2020:b.ModuleKind.ES2020,es2022:b.ModuleKind.ES2022,esnext:b.ModuleKind.ESNext,node16:b.ModuleKind.Node16,nodenext:b.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:b.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0},{name:"lib",type:"list",element:{name:"lib",type:b.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.JavaScript_Support,description:b.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.JavaScript_Support,description:b.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:e,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:b.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,transpileOptionValue:void 0,description:b.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:b.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:b.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,defaultValueDescription:!1,description:b.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:b.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:b.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:b.Diagnostics.LOCATION,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:b.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:b.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:b.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:b.Diagnostics.FILE,category:b.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:b.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,defaultValueDescription:!1,description:b.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new b.Map(b.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:b.Diagnostics.Interop_Constraints,description:b.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:b.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new b.Map(b.getEntries({node:b.ModuleResolutionKind.NodeJs,classic:b.ModuleResolutionKind.Classic,node16:b.ModuleResolutionKind.Node16,nodenext:b.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:b.Diagnostics.STRATEGY,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:b.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:b.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Interop_Constraints,description:b.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:b.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:b.Diagnostics.Interop_Constraints,description:b.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:b.Diagnostics.Interop_Constraints,description:b.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:b.Diagnostics.LOCATION,category:b.Diagnostics.Emit,description:b.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:b.Diagnostics.LOCATION,category:b.Diagnostics.Emit,description:b.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:b.Diagnostics.Backwards_Compatibility,paramType:b.Diagnostics.FILE,transpileOptionValue:void 0,description:b.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:b.Diagnostics.Completeness,description:b.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:b.Diagnostics.Backwards_Compatibility,description:b.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new b.Map(b.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:b.Diagnostics.NEWLINE,category:b.Diagnostics.Emit,description:b.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:b.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Output_Formatting,description:b.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:b.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:b.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:b.Diagnostics.Modules,description:b.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:b.Diagnostics.Editor_Support,description:b.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:b.Diagnostics.Projects,description:b.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:b.Diagnostics.Projects,description:b.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:b.Diagnostics.Projects,description:b.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Backwards_Compatibility,description:b.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,transpileOptionValue:void 0,description:b.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:b.Diagnostics.DIRECTORY,category:b.Diagnostics.Emit,transpileOptionValue:void 0,description:b.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:b.Diagnostics.Completeness,description:b.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:b.Diagnostics.Type_Checking,description:b.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Backwards_Compatibility,description:b.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Backwards_Compatibility,description:b.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:b.Diagnostics.Interop_Constraints,description:b.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:b.Diagnostics.JavaScript_Support,description:b.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:b.Diagnostics.Backwards_Compatibility,description:b.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:b.Diagnostics.Language_and_Environment,description:b.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:b.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:b.Diagnostics.Emit,description:b.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:b.Diagnostics.Backwards_Compatibility,description:b.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:b.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,category:b.Diagnostics.Editor_Support},{name:"moduleDetection",type:new b.Map(b.getEntries({auto:b.ModuleDetectionKind.Auto,legacy:b.ModuleDetectionKind.Legacy,force:b.ModuleDetectionKind.Force})),affectsModuleResolution:!0,description:b.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,category:b.Diagnostics.Language_and_Environment,defaultValueDescription:b.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules}];function n(e){var t=new b.Map,r=new b.Map;return b.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 r=r||n(b.optionDeclarations)}b.optionDeclarations=__spreadArray(__spreadArray([],b.commonOptionsWithBuild,!0),g,!0),b.semanticDiagnosticsOptionDeclarations=b.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),b.affectsEmitOptionDeclarations=b.optionDeclarations.filter(function(e){return!!e.affectsEmit}),b.moduleResolutionOptionDeclarations=b.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),b.sourceFileAffectingCompilerOptions=b.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),b.optionsAffectingProgramStructure=b.optionDeclarations.filter(function(e){return!!e.affectsProgramStructure}),b.transpileOptionValueCompilerOptions=b.optionDeclarations.filter(function(e){return b.hasProperty(e,"transpileOptionValue")}),b.optionsForBuild=[{name:"verbose",shortName:"v",category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:b.Diagnostics.Command_line_Options,description:b.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],b.buildOpts=__spreadArray(__spreadArray([],b.commonOptionsWithBuild,!0),b.optionsForBuild,!0),b.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],b.createOptionNameMap=n,b.getOptionsNameMap=a;var i,e={diagnostic:b.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:h};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,b.createCompilerDiagnostic)}function c(e,t){var r=b.arrayFrom(e.type.keys()).map(function(e){return"'".concat(e,"'")}).join(", ");return t(b.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(e.name),r)}function l(e,t,r){return ue(e,b.trimString(t||""),r)}function u(t,e,r){if(void 0===e&&(e=""),e=b.trimString(e),!b.startsWith(e,"-")){if(""===e)return[];var n=e.split(",");switch(t.element.type){case"number":return b.mapDefined(n,function(e){return le(t.element,parseInt(e),r)});case"string":return b.mapDefined(n,function(e){return le(t.element,e||"",r)});default:return b.mapDefined(n,function(e){return l(t.element,e,r)})}}}function _(e){return e.name}function m(e,t,r,n){if(null!==(i=t.alternateMode)&&void 0!==i&&i.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return r(t.alternateMode.diagnostic,e);var i=b.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={},l=[],u=[];return _(e),{options:c,watchOptions:s,fileNames:l,errors:u};function _(e){for(var t=0;t<e.length;){var r,n,i=e[t];t++,64===i.charCodeAt(0)?function(e){var t=S(e,o||function(e){return b.sys.readFile(e)});if(!b.isString(t))return u.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++):u.push(b.createCompilerDiagnostic(b.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=y(a.getOptionsNameMap,r,!0))?t=p(e,t,a,n,c,u):(n=y(w.getOptionsNameMap,r,!0))?t=p(e,t,w,n,s=s||{},u):u.push(m(r,a,b.createCompilerDiagnostic,i))):l.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]=le(n,!1,a),t++):("true"===o&&t++,a.push(b.createCompilerDiagnostic(b.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,n.name))):(a.push(b.createCompilerDiagnostic(b.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,n.name)),o&&!b.startsWith(o,"-")&&t++);else if(e[t]||"boolean"===n.type||a.push(b.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,n.name,j(n))),"null"!==e[t])switch(n.type){case"number":i[n.name]=le(n,parseInt(e[t]),a),t++;break;case"boolean":var o=e[t];i[n.name]=le(n,"false"!==o,a),"false"!==o&&"true"!==o||t++;break;case"string":i[n.name]=le(n,e[t]||"",a),t++;break;case"list":var s=u(n,e[t],a);i[n.name]=s||[],s&&t++;break;default:i[n.name]=l(n,e[t],a),t++}else i[n.name]=void 0,t++;return t}function f(e,t){return y(a,e,t)}function y(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)}function h(){return i=i||n(b.buildOpts)}b.defaultInitCompilerOptions={module:b.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},b.convertEnableAutoDiscoveryToEnable=o,b.createCompilerDiagnosticForInvalidCustomType=s,b.parseCustomTypeOption=l,b.parseListTypeOption=u,b.parseCommandLineWorker=d,b.compilerOptionsDidYouMeanDiagnostics={alternateMode:e,getOptionsNameMap:a,optionDeclarations:b.optionDeclarations,unknownOptionDiagnostic:b.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:b.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:b.Diagnostics.Compiler_option_0_expects_an_argument},b.parseCommandLine=function(e,t){return d(b.compilerOptionsDidYouMeanDiagnostics,e,t)},b.getOptionFromName=f;var v={alternateMode:{diagnostic:b.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:a},getOptionsNameMap:h,optionDeclarations:b.buildOpts,unknownOptionDiagnostic:b.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:b.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:b.Diagnostics.Build_option_0_requires_a_value_of_type_1};function x(e,t){t=b.parseJsonText(e,t);return{config:L(t,t.parseDiagnostics,!1,void 0),error:t.parseDiagnostics.length?t.parseDiagnostics[0]:void 0}}function D(e,t){t=S(e,t);return b.isString(t)?b.parseJsonText(e,t):{fileName:e,parseDiagnostics:[t]}}function S(t,e){var r;try{r=e(t)}catch(e){return b.createCompilerDiagnostic(b.Diagnostics.Cannot_read_file_0_Colon_1,t,e.message)}return void 0===r?b.createCompilerDiagnostic(b.Diagnostics.Cannot_read_file_0,t):r}function T(e){return b.arrayToMap(e,_)}b.parseBuildCommand=function(e){var t=(n=d(v,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(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),t.clean&&t.verbose&&n.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),t.clean&&t.watch&&n.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),t.watch&&t.dry&&n.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:t,watchOptions:r,projects:e,errors:n}},b.getDiagnosticText=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return b.createCompilerDiagnostic.apply(void 0,arguments).messageText},b.getParsedCommandLineOfConfigFile=function(e,t,r,n,i,a){var o=S(e,function(e){return r.readFile(e)});if(b.isString(o)){var s=b.parseJsonText(e,o),c=r.getCurrentDirectory();return s.path=b.toPath(e,c,b.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,W(s,r,b.getNormalizedAbsolutePath(b.getDirectoryPath(e),c),t,b.getNormalizedAbsolutePath(e,c),void 0,a,n,i)}r.onUnRecoverableConfigFileDiagnostic(o)},b.readConfigFile=function(e,t){return t=S(e,t),b.isString(t)?x(e,t):{config:{},error:t}},b.parseConfigFileTextToJson=x,b.readJsonConfigFile=D,b.tryReadFile=S;var C,k={optionDeclarations:b.typeAcquisitionDeclarations,unknownOptionDiagnostic:b.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:b.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function E(){return C=C||n(b.optionsForWatch)}var N,A,F,P,w={getOptionsNameMap:E,optionDeclarations:b.optionsForWatch,unknownOptionDiagnostic:b.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:b.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:b.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function I(){return N=N||T(b.optionDeclarations)}function O(){return A=A||T(b.optionsForWatch)}function M(){return F=F||T(b.typeAcquisitionDeclarations)}function L(e,t,r,n){var i=null===(a=e.statements[0])||void 0===a?void 0:a.expression,a=r?(void 0===P&&(P={name:void 0,type:"object",elementOptions:T([{name:"compilerOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:b.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:w},{name:"typingOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:k},{name:"typeAcquisition",type:"object",elementOptions:M(),extraKeyDiagnostics:k},{name:"extends",type:"string",category:b.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:b.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:b.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:b.Diagnostics.File_Management,defaultValueDescription:b.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:b.Diagnostics.File_Management,defaultValueDescription:b.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},b.compileOnSaveCommandLineOption])}),P):void 0;if(i&&205!==i.kind){if(t.push(b.createDiagnosticForNodeInSourceFile(e,i,b.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===b.getBaseFileName(e.fileName)?"jsconfig.json":"tsconfig.json")),b.isArrayLiteralExpression(i)){r=b.find(i.elements,b.isObjectLiteralExpression);if(r)return B(e,r,t,!0,a,n)}return{}}return B(e,i,t,!0,a,n)}function R(e,t){return B(e,null===(e=e.statements[0])||void 0===e?void 0:e.expression,t,!0,void 0,void 0)}function B(l,e,u,_,t,d){return e?f(e,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(296!==n.kind)return u.push(b.createDiagnosticForNodeInSourceFile(l,n,b.Diagnostics.Property_assignment_expected));n.questionToken&&u.push(b.createDiagnosticForNodeInSourceFile(l,n.questionToken,b.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(n.name)||u.push(b.createDiagnosticForNodeInSourceFile(l,n.name,b.Diagnostics.String_literal_with_double_quotes_expected));var e=b.isComputedNonLiteralName(n.name)?void 0:b.getTextOfPropertyName(n.name),t=e&&b.unescapeLeadingUnderscores(e),r=t&&a?a.get(t):void 0;t&&o&&!r&&(a?u.push(m(t,o,function(e,t,r){return b.createDiagnosticForNodeInSourceFile(l,n.name,e,t,r)})):u.push(b.createDiagnosticForNodeInSourceFile(l,n.name,o.unknownOptionDiagnostic,t)));var i=f(n.initializer,r);void 0!==t&&(_&&(c[t]=i),d&&(s||p(a))&&(e=J(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,r){var i;switch(n.kind){case 110:return o(r&&"boolean"!==r.type),a(!0);case 95:return o(r&&"boolean"!==r.type),a(!1);case 104:return o(r&&"extends"===r.name),a(null);case 10:g(n)||u.push(b.createDiagnosticForNodeInSourceFile(l,n,b.Diagnostics.String_literal_with_double_quotes_expected)),o(r&&b.isString(r.type)&&"string"!==r.type);var e,t=n.text;return r&&!b.isString(r.type)&&((e=r).type.has(t.toLowerCase())||(u.push(c(e,function(e,t,r){return b.createDiagnosticForNodeInSourceFile(l,n,e,t,r)})),i=!0)),a(t);case 8:return o(r&&"number"!==r.type),a(Number(n.text));case 219:if(40!==n.operator||8!==n.operand.kind)break;return o(r&&"number"!==r.type),a(-Number(n.operand.text));case 205:o(r&&"object"!==r.type);t=n;return a(r?s(t,r.elementOptions,r.extraKeyDiagnostics,r.name):s(t,void 0,void 0,void 0));case 204:return o(r&&"list"!==r.type),a(function(e,t){if(_)return b.filter(e.map(function(e){return f(e,t)}),function(e){return void 0!==e});e.forEach(function(e){return f(e,t)})}(n.elements,r&&r.element))}function a(e){if(!i){var t=null===(t=null==r?void 0:r.extraValidation)||void 0===t?void 0:t.call(r,e);if(t)return void u.push(b.createDiagnosticForNodeInSourceFile.apply(void 0,__spreadArray([l,n],t,!1)))}return e}function o(e){e&&(u.push(b.createDiagnosticForNodeInSourceFile(l,n,b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,r.name,j(r))),i=!0)}r?o(!0):u.push(b.createDiagnosticForNodeInSourceFile(l,n,b.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function g(e){return b.isStringLiteral(e)&&b.isStringDoubleQuoted(e,l)}}function j(e){return"list"===e.type?"Array":b.isString(e.type)?e.type:"string"}function J(e,t){return!!e&&(!!G(t)||("list"===e.type?b.isArray(t):typeof t===(b.isString(e.type)?e.type:"string")))}function z(e){return __assign({},b.arrayFrom(e.entries()).reduce(function(e,t){return __assign(__assign({},e),((e={})[t[0]]=t[1],e))},{}))}function K(r,e){return b.forEachEntry(e,function(e,t){if(e===r)return t})}function U(e,t){return V(e,a(),t)}function V(i,e,a){function t(e){if(b.hasProperty(i,e)){if(o.has(e)&&(o.get(e).category===b.Diagnostics.Command_line_Options||o.get(e).category===b.Diagnostics.Output_Formatting))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 K(e,t)})):s.set(e,K(r,t)):a&&n.isFilePath?s.set(e,b.getRelativePathFromFile(a.configFilePath,b.getNormalizedAbsolutePath(r,b.getDirectoryPath(a.configFilePath)),c)):s.set(e,r))}}var r,o=e.optionsNameMap,s=new b.Map,c=a&&b.createGetCanonicalFileName(a.useCaseSensitiveFileNames);for(r in i)t(r);return s}function q(e){return U(b.extend(e,b.defaultInitCompilerOptions))}function W(e,t,r,n,i,a,o,s,c){null!==b.tracing&&void 0!==b.tracing&&b.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:e.fileName});s=X(void 0,e,t,r,n,c,i,a,o,s);return null!==b.tracing&&void 0!==b.tracing&&b.tracing.pop(),s}function H(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function G(e){return null==e}function Q(e,t){return b.getDirectoryPath(b.getNormalizedAbsolutePath(e,t))}function X(e,l,t,r,n,i,u,a,o,s){void 0===n&&(n={}),void 0===a&&(a=[]),void 0===o&&(o=[]),b.Debug.assert(void 0===e&&void 0!==l||void 0!==e&&void 0===l);var _=[],s=ee(e,l,t,r,u,a,_,s),d=s.raw,c=b.extend(n,s.options||{}),i=i&&s.watchOptions?b.extend(i,s.watchOptions):s.watchOptions||i;c.configFilePath=u&&b.normalizeSlashes(u);var p=function(){var e=m("references",function(e){return"object"==typeof e},"object"),t=f(g("files"));{var r;t&&(r="no-prop"===e||b.isArray(e)&&0===e.length,e=b.hasProperty(d,"extends"),0===t.length&&r&&!e&&(l?(s=u||"tsconfig.json",o=b.Diagnostics.The_files_list_in_config_file_0_is_empty,a=b.firstDefined(b.getTsConfigPropArray(l,"files"),function(e){return e.initializer}),c=a?b.createDiagnosticForNodeInSourceFile(l,a,o,s):b.createCompilerDiagnostic(o,s),_.push(c)):y(b.Diagnostics.The_files_list_in_config_file_0_is_empty,u||"tsconfig.json")))}var n,i,a=f(g("include")),o=g("exclude"),s=f(o);{var c;"no-prop"===o&&d.compilerOptions&&(c=d.compilerOptions.outDir,o=d.compilerOptions.declarationDir,(c||o)&&(s=[c,o].filter(function(e){return!!e})))}void 0===t&&void 0===a&&(a=["**/*"]);a&&(n=me(a,_,!0,l,"include"));s&&(i=me(s,_,!1,l,"exclude"));return{filesSpecs:t,includeSpecs:a,excludeSpecs:s,validatedFilesSpec:b.filter(t,b.isString),validatedIncludeSpecs:n,validatedExcludeSpecs:i,pathPatterns:void 0}}();l&&(l.configFileSpecs=p),H(c,l);r=b.normalizePath(u?Q(u,r):r);return{options:c,watchOptions:i,fileNames:function(e){e=pe(p,e,c,t,o);Z(e,$(d),a)&&_.push(Y(p,u));return e}(r),projectReferences:function(e){var t,r=m("references",function(e){return"object"==typeof e},"object");if(b.isArray(r))for(var n=0,i=r;n<i.length;n++){var a=i[n];"string"!=typeof a.path?y(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t=t||[]).push({path:b.getNormalizedAbsolutePath(a.path,e),originalPath:a.path,prepend:a.prepend,circular:a.circular})}return t}(r),typeAcquisition:s.typeAcquisition||ie(),raw:d,errors:_,wildcardDirectories:function(e,t,r){var n=e.validatedIncludeSpecs,e=e.validatedExcludeSpecs,e=b.getRegularExpressionForWildcard(e,t,"exclude"),i=e&&new RegExp(e,r?"":"i"),a={};if(void 0!==n){for(var o=[],s=0,c=n;s<c.length;s++){var l,u=c[s],_=b.normalizePath(b.combinePaths(t,u));i&&i.test(_)||(u=function(e,t){var r=de.exec(e);if(r){var n=e.indexOf("?"),i=e.indexOf("*"),a=e.lastIndexOf(b.directorySeparator);return{key:t?r[0]:b.toFileNameLowerCase(r[0]),flags:-1!==n&&n<a||-1!==i&&i<a?1:0}}if(b.isImplicitGlob(e.substring(e.lastIndexOf(b.directorySeparator)+1)))return{key:t?e:b.toFileNameLowerCase(e),flags:1};return}(_,r))&&(l=u.key,_=u.flags,(void 0===(u=a[l])||u<_)&&1===(a[l]=_)&&o.push(l))}for(l in a)if(b.hasProperty(a,l))for(var d=0,p=o;d<p.length;d++){var f=p[d];l!==f&&b.containsPath(f,l,t,!r)&&delete a[l]}}return a}(p,r,t.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function f(e){return b.isArray(e)?e:void 0}function g(e){return m(e,b.isString,"string")}function m(e,t,r){if(!b.hasProperty(d,e)||G(d[e]))return"no-prop";if(b.isArray(d[e])){var n=d[e];return l||b.every(n,t)||_.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e,r)),n}return y(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}function y(e,t,r){l||_.push(b.createCompilerDiagnostic(e,t,r))}}function Y(e,t){var r=e.includeSpecs,e=e.excludeSpecs;return b.createCompilerDiagnostic(b.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 Z(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function $(e){return!b.hasProperty(e,"files")&&!b.hasProperty(e,"references")}function ee(e,t,r,n,i,a,o,s){n=b.normalizeSlashes(n);var c=b.getNormalizedAbsolutePath(i||"",n);if(0<=a.indexOf(c))return o.push(b.createCompilerDiagnostic(b.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,__spreadArray(__spreadArray([],a,!0),[c],!1).join(" -> "))),{raw:e||R(t,o)};var l,u,_,d=e?function(e,t,r,n,i){b.hasProperty(e,"excludes")&&i.push(b.createCompilerDiagnostic(b.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var a=ne(e.compilerOptions,r,i,n),o=ae(e.typeAcquisition||e.typingOptions,r,i,n),s=function(e,t,r){return oe(O(),e,t,void 0,w,r)}(e.watchOptions,r,i);{var c;e.compileOnSave=function(e,t,r){if(!b.hasProperty(e,b.compileOnSaveCommandLineOption.name))return!1;r=se(b.compileOnSaveCommandLineOption,e.compileOnSave,t,r);return"boolean"==typeof r&&r}(e,r,i),e.extends&&(b.isString(e.extends)?(c=n?Q(n,r):r,c=te(e.extends,t,c,i,b.createCompilerDiagnostic)):i.push(b.createCompilerDiagnostic(b.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 l,u,_,d,p,f=re(s),e={onSetValidOptionKeyValueInParent:function(e,t,r){var n;switch(e){case"compilerOptions":n=f;break;case"watchOptions":n=_=_||{};break;case"typeAcquisition":n=l=l||ie(s);break;case"typingOptions":n=u=u||ie(s);break;default:b.Debug.fail("Unknown option")}n[t.name]=function t(e,r,n){if(G(n))return;{if("list"===e.type){var i=e;return i.element.isFilePath||!b.isString(i.element.type)?b.filter(b.map(n,function(e){return t(i.element,r,e)}),function(e){return!!i.listPreserveFalsyValues||!!e}):n}if(!b.isString(e.type))return e.type.get(b.isString(n)?n.toLowerCase():n)}return ce(e,r,n)}(t,o,r)},onSetValidOptionKeyValueInRoot:function(e,t,r,n){if("extends"===e){e=s?Q(s,o):o;d=te(r,a,e,c,function(e,t){return b.createDiagnosticForNodeInSourceFile(i,n,e,t)})}},onSetUnknownOptionKeyValueInRoot:function(t,e,r,n){"excludes"===t&&c.push(b.createDiagnosticForNodeInSourceFile(i,e,b.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),b.find(g,function(e){return e.name===t})&&(p=b.append(p,e))}},e=L(i,c,!0,e);l=l||(u?void 0!==u.enableAutoDiscovery?{enable:u.enableAutoDiscovery,include:u.include,exclude:u.exclude}:u:ie(s));p&&e&&void 0===e.compilerOptions&&c.push(b.createDiagnosticForNodeInSourceFile(i,p[0],b.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,b.getTextOfPropertyName(p[0])));return{raw:e,options:f,watchOptions:_,typeAcquisition:l,extendedConfigPath:d}}(t,r,n,i,o);return null!==(i=d.options)&&void 0!==i&&i.paths&&(d.options.pathsBasePath=n),d.extendedConfigPath&&(a=a.concat([c]),(o=function(e,t,r,n,i,a){var o,s,c,l=r.useCaseSensitiveFileNames?t:b.toFileNameLowerCase(t);a&&(o=a.get(l))?(s=o.extendedResult,c=o.extendedConfig):((s=D(t,function(e){return r.readFile(e)})).parseDiagnostics.length||(c=ee(void 0,s,r,b.getDirectoryPath(t),b.getBaseFileName(t),n,i,a)),a&&a.set(l,{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 i.push.apply(i,s.parseDiagnostics);return c}(t,d.extendedConfigPath,r,a,o,s))&&o.options&&(l=o.raw,u=d.raw,(s=function(e){!u[e]&&l[e]&&(u[e]=b.map(l[e],function(e){return b.isRootedDiskPath(e)?e:b.combinePaths(_=_||b.convertToRelativePath(b.getDirectoryPath(d.extendedConfigPath),n,b.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),e)}))})("include"),s("exclude"),s("files"),void 0===u.compileOnSave&&(u.compileOnSave=l.compileOnSave),d.options=b.assign({},o.options,d.options),d.watchOptions=d.watchOptions&&o.watchOptions?b.assign({},o.watchOptions,d.watchOptions):d.watchOptions||o.watchOptions)),d}function te(e,t,r,n,i){if(e=b.normalizeSlashes(e),b.isRootedDiskPath(e)||b.startsWith(e,"./")||b.startsWith(e,"../")){var a=b.getNormalizedAbsolutePath(e,r);return t.fileExists(a)||b.endsWith(a,".json")||(a="".concat(a,".json"),t.fileExists(a))?a:void n.push(i(b.Diagnostics.File_0_not_found,e))}t=b.nodeModuleNameResolver(e,b.combinePaths(r,"tsconfig.json"),{moduleResolution:b.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(t.resolvedModule)return t.resolvedModule.resolvedFileName;n.push(i(b.Diagnostics.File_0_not_found,e))}function re(e){return e&&"jsconfig.json"===b.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ne(e,t,r,n){var i=re(n);return oe(I(),e,t,i,b.compilerOptionsDidYouMeanDiagnostics,r),n&&(i.configFilePath=b.normalizeSlashes(n)),i}function ie(e){return{enable:!!e&&"jsconfig.json"===b.getBaseFileName(e),include:[],exclude:[]}}function ae(e,t,r,n){n=ie(n),e=o(e);return oe(M(),e,t,n,k,r),n}function oe(e,t,r,n,i,a){if(t){for(var o in t){var s=e.get(o);s?(n=n||{})[s.name]=se(s,t[o],r,a):a.push(m(o,i,b.createCompilerDiagnostic))}return n}}function se(e,t,r,n){if(J(e,t)){var i=e.type;if("list"===i&&b.isArray(t))return a=e,o=t,s=r,c=n,b.filter(b.map(o,function(e){return se(a.element,e,s,c)}),function(e){return!!a.listPreserveFalsyValues||!!e});if(!b.isString(i))return ue(e,t,n);t=le(e,t,n);return G(t)?t:ce(e,r,t)}var a,o,s,c;n.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,j(e)))}function ce(e,t,r){return e.isFilePath&&""===(r=b.getNormalizedAbsolutePath(r,t))&&(r="."),r}function le(e,t,r){var n;if(!G(t)){e=null===(n=e.extraValidation)||void 0===n?void 0:n.call(e,t);if(!e)return t;r.push(b.createCompilerDiagnostic.apply(void 0,e))}}function ue(e,t,r){if(!G(t)){t=t.toLowerCase(),t=e.type.get(t);if(void 0!==t)return le(e,t,r);r.push(s(e))}}b.convertToObject=R,b.convertToObjectWorker=B,b.convertToTSConfig=function(e,t,r){var n=b.createGetCanonicalFileName(r.useCaseSensitiveFileNames),i=b.map(b.filter(e.fileNames,null!==(o=null===(a=e.options.configFile)||void 0===a?void 0:a.configFileSpecs)&&void 0!==o&&o.validatedIncludeSpecs?function(e,t,r,n){if(!t)return b.returnTrue;var t=b.getFileMatcherPatterns(e,r,t,n.useCaseSensitiveFileNames,n.getCurrentDirectory()),i=t.excludePattern&&b.getRegexFromPattern(t.excludePattern,n.useCaseSensitiveFileNames),a=t.includeFilePattern&&b.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 b.returnTrue}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):b.returnTrue),function(e){return b.getRelativePathFromFile(b.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),b.getNormalizedAbsolutePath(e,r.getCurrentDirectory()),n)}),a=U(e.options,{configFilePath:b.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),o=e.watchOptions&&V(e.watchOptions,E());return __assign(__assign({compilerOptions:__assign(__assign({},z(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&&z(o),references:b.map(e.projectReferences,function(e){return __assign(__assign({},e),{path:e.originalPath||"",originalPath:void 0})}),files:b.length(i)?i:void 0},null!==(i=e.options.configFile)&&void 0!==i&&i.configFileSpecs?{include:(i=e.options.configFile.configFileSpecs.validatedIncludeSpecs,!b.length(i)||1===b.length(i)&&"**/*"===i[0]?void 0:i),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!e.compileOnSave||void 0})},b.getCompilerOptionsDiffValue=function(e,t){var n,i,a=q(e);return n=[],i=Array(3).join(" "),g.forEach(function(e){var t,r;a.has(e.name)&&((t=a.get(e.name))!==(r=he(e))?n.push("".concat(i).concat(e.name,": ").concat(t)):b.hasProperty(b.defaultInitCompilerOptions,e.name)&&n.push("".concat(i).concat(e.name,": ").concat(r)))}),n.join(t)+t},b.generateTSConfig=function(e,g,m){var y=q(e);return function(){for(var e=b.createMultiMap(),t=0,r=b.optionDeclarations;t<r.length;t++){var n=r[t],i=n.category;!function(e){var t=e.category,r=e.name,n=e.isCommandLineOnly,e=[b.Diagnostics.Command_line_Options,b.Diagnostics.Editor_Support,b.Diagnostics.Compiler_Diagnostics,b.Diagnostics.Backwards_Compatibility,b.Diagnostics.Watch_and_Build_Modes,b.Diagnostics.Output_Formatting];return!n&&void 0!==t&&(!e.includes(t)||y.has(r))}(n)||e.add(b.getLocaleSpecificMessage(i),n)}var o=0,s=0,c=[];e.forEach(function(e,t){0!==c.length&&c.push({value:""}),c.push({value:"/* ".concat(t," */")});for(var r=0,n=e;r<n.length;r++){var i=n[r],a=void 0,a=y.has(i.name)?'"'.concat(i.name,'": ').concat(JSON.stringify(y.get(i.name))).concat((s+=1)===y.size?"":","):'// "'.concat(i.name,'": ').concat(JSON.stringify(he(i)),",");c.push({value:a,description:"/* ".concat(i.description&&b.getLocaleSpecificMessage(i.description)||i.name," */")}),o=Math.max(a.length,o)}});var a=h(2),l=[];l.push("{"),l.push("".concat(a,'"compilerOptions": {')),l.push("".concat(a).concat(a,"/* ").concat(b.getLocaleSpecificMessage(b.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),l.push("");for(var u=0,_=c;u<_.length;u++){var d=_[u],p=d.value,d=d.description,d=void 0===d?"":d;l.push(p&&"".concat(a).concat(a).concat(p).concat(d&&h(o-p.length+2)+d))}if(g.length){l.push("".concat(a,"},")),l.push("".concat(a,'"files": ['));for(var f=0;f<g.length;f++)l.push("".concat(a).concat(a).concat(JSON.stringify(g[f])).concat(f===g.length-1?"":","));l.push("".concat(a,"]"))}else l.push("".concat(a,"}"));return l.push("}"),l.join(m)+m}();function h(e){return Array(e+1).join(" ")}},b.convertToOptionsWithAbsolutePaths=function(e,t){var r,n={},i=a().optionsNameMap;for(r in e)b.hasProperty(e,r)&&(n[r]=function(e,t,r){if(e&&!G(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},b.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return X(e,void 0,t,r,n,c,i,a,o,s)},b.parseJsonSourceFileConfigFileContent=W,b.setConfigFileInOptions=H,b.canJsonReportNoInputFiles=$,b.updateErrorForNoInputFiles=function(e,t,r,n,i){var a=n.length;return Z(e,i)?n.push(Y(r,t)):b.filterMutate(n,function(e){return!(e.code===b.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)}),a!==n.length},b.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:ne(e,t,n,r),errors:n}},b.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:ae(e,t,n,r),errors:n}},b.convertJsonOption=se;var _e=/(^|\/)\*\*\/?$/,de=/^[^*?]*(?=\/[^/]*[*?])/;function pe(e,n,t,i,r){void 0===r&&(r=b.emptyArray),n=b.normalizePath(n);var a,o=b.createGetCanonicalFileName(i.useCaseSensitiveFileNames),s=new b.Map,c=new b.Map,l=new b.Map,u=e.validatedFilesSpec,_=e.validatedIncludeSpecs,e=e.validatedExcludeSpecs,d=b.getSupportedExtensions(t,r),t=b.getSupportedExtensionsWithJsonIfResolveJsonModule(t,d);if(u)for(var p=0,f=u;p<f.length;p++){var g=f[p],m=b.getNormalizedAbsolutePath(g,n);s.set(o(m),m)}if(_&&0<_.length)for(var y=function(t){var e;if(b.fileExtensionIs(t,".json"))return a||(e=_.filter(function(e){return b.endsWith(e,".json")}),e=b.map(b.getRegularExpressionsForWildcards(e,n,"files"),function(e){return"^".concat(e,"$")}),a=e?e.map(function(e){return b.getRegexFromPattern(e,i.useCaseSensitiveFileNames)}):b.emptyArray),-1!==b.findIndex(a,function(e){return e.test(t)})&&(r=o(t),s.has(r)||l.has(r)||l.set(r,t)),"continue";if(function(t,e,r,n,i){n=b.forEach(n,function(e){return b.fileExtensionIsOneOf(t,e)?e:void 0});if(!n)return!1;for(var a=0,o=n;a<o.length;a++){var s=o[a];if(b.fileExtensionIs(t,s))return!1;var c=i(b.changeExtension(t,s));if((e.has(c)||r.has(c))&&(".d.ts"!==s||!b.fileExtensionIs(t,".js")&&!b.fileExtensionIs(t,".jsx")))return!0}return!1}(t,s,c,d,o))return"continue";!function(t,e,r){var n=b.forEach(d,function(e){return b.fileExtensionIsOneOf(t,e)?e:void 0});if(n)for(var i=n.length-1;0<=i;i--){var a=n[i];if(b.fileExtensionIs(t,a))return;a=r(b.changeExtension(t,a));e.delete(a)}}(t,c,o);var r=o(t);s.has(r)||c.has(r)||c.set(r,t)},h=0,v=i.readDirectory(n,b.flatten(t),e,_,void 0);h<v.length;h++)y(m=v[h]);t=b.arrayFrom(s.values()),e=b.arrayFrom(c.values());return t.concat(e,b.arrayFrom(l.values()))}function fe(e){var t=b.startsWith(e,"**/")?0:e.indexOf("/**/");return-1!==t&&t<(b.endsWith(e,"/..")?e.length:e.lastIndexOf("/../"))}function ge(e,t,r,n,i){i=b.getRegularExpressionForWildcard(t,b.combinePaths(b.normalizePath(n),i),"exclude"),r=i&&b.getRegexFromPattern(i,r);return!!r&&(!!r.test(e)||!b.hasExtension(e)&&r.test(b.ensureTrailingDirectorySeparator(e)))}function me(e,t,r,n,i){return e.filter(function(e){if(!b.isString(e))return!1;e=ye(e,r);return void 0!==e&&t.push(function(e,t){var r=b.getTsConfigPropArrayElementValue(n,i,t);return r?b.createDiagnosticForNodeInSourceFile(n,r,e,t):b.createCompilerDiagnostic(e,t)}.apply(void 0,e)),void 0===e})}function ye(e,t){return t&&_e.test(e)?[b.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:fe(e)?[b.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function he(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":var t=e.defaultValueDescription;return e.isFilePath?"./".concat(t&&"string"==typeof t?t:""):"";case"list":return[];case"object":return{};default:t=e.type.keys().next();return t.done?b.Debug.fail("Expected 'option.type' to have entries."):t.value}}b.getFileNamesFromConfigSpecs=pe,b.isExcludedFile=function(e,t,r,n,i){var a=t.validatedFilesSpec,o=t.validatedIncludeSpecs,t=t.validatedExcludeSpecs;if(!b.length(o)||!b.length(t))return!1;r=b.normalizePath(r);var s=b.createGetCanonicalFileName(n);if(a)for(var c=0,l=a;c<l.length;c++){var u=l[c];if(s(b.getNormalizedAbsolutePath(u,r))===e)return!1}return ge(e,t,n,i,r)},b.matchesExclude=function(e,t,r,n){return ge(e,b.filter(t,function(e){return!fe(e)}),r,n)},b.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 b.isArray(r)?r.map(function(e){return t(e,n)}):"";default:return b.forEachEntry(e.type,function(e,t){if(e===r)return t})}}(e[t],r));return n}}(ts=ts||{}),function(O){function v(e){e.trace(O.formatMessage.apply(void 0,arguments))}function b(e,t){return!!e.traceResolution&&void 0!==t.trace}function M(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+O.directorySeparator.length),version:n.version})),t&&{path:t.path,extension:t.ext,packageId:r}}function _(e){return M(void 0,e)}function d(e){if(e)return O.Debug.assert(void 0===e.packageId),{path:e.path,ext:e.extension}}var L,n;function h(e){if(e)return O.Debug.assert(O.extensionIsTS(e.extension)),{fileName:e.path,packageId:e.packageId}}function p(e,t,r,n,i){var a;return i?((a=i.failedLookupLocations).push.apply(a,r),i):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r,resolutionDiagnostics:n}}function o(e,t,r,n){if(O.hasProperty(e,t)){e=e[t];if(typeof e===r&&null!==e)return e;n.traceEnabled&&v(n.host,O.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,O.Diagnostics.package_json_does_not_have_a_0_field,t)}function f(e,t,r,n){e=o(e,t,"string",n);if(void 0!==e){if(e){r=O.normalizePath(O.combinePaths(r,e));return n.traceEnabled&&v(n.host,O.Diagnostics.package_json_has_0_field_1_that_references_2,t,e,r),r}n.traceEnabled&&v(n.host,O.Diagnostics.package_json_had_a_falsy_0_field,t)}}function g(e,t,r){return f(e,"typings",t,r)||f(e,"types",t,r)}function m(e,t,r){return f(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,O.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)O.hasProperty(r,n)&&!O.VersionRange.tryParse(n)&&v(t.host,O.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,O.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(a,"']"),"object",typeof e)}else t.traceEnabled&&v(t.host,O.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,O.versionMajorMinor)}}function c(e){for(var t in n=n||new O.Version(O.version),e)if(O.hasProperty(e,t)){var r=O.VersionRange.tryParse(t);if(void 0!==r&&r.test(n))return{version:t,paths:e[t]}}}function x(e,t){return e.typeRoots||(e.configFilePath?r=O.getDirectoryPath(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?(r=r,(n=t).directoryExists?(O.forEachAncestorDirectory(O.normalizePath(r),function(e){e=O.combinePaths(e,a);n.directoryExists(e)&&(i=i||[]).push(e)}),i):[O.combinePaths(r,a)]):void 0);var r,n,i}O.trace=v,O.isTraceEnabled=b,(e=L=L||{})[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",e[e.TsOnly=5]="TsOnly",O.getPackageJsonTypesVersionsPaths=c,O.getEffectiveTypeRoots=x;var D,e,a=O.combinePaths("node_modules","@types");function S(e,t,r){r="function"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return 0===O.comparePaths(e,t,!r)}function T(e){return O.getEmitModuleResolutionKind(e)===O.ModuleResolutionKind.Node16?D.Node16Default:O.getEmitModuleResolutionKind(e)===O.ModuleResolutionKind.NodeNext?D.NodeNextDefault:D.None}function l(n){var i=new O.Map,a=new O.Map;return{getOwnMap:function(){return i},redirectsMap:a,getOrCreateMapOfCacheRedirects:function(e){if(!e)return i;var t=e.sourceFile.path,r=a.get(t);r||(r=!n||O.optionsHaveModuleResolutionChanges(n,e.commandLine.options)?new O.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 u(r,n){var i;return{getPackageJsonInfo:function(e){return null==i?void 0:i.get(O.toPath(e,r,n))},setPackageJsonInfo:function(e,t){(i=i||new O.Map).set(O.toPath(e,r,n),t)},clear:function(){i=void 0},entries:function(){var e=null==i?void 0:i.entries();return e?O.arrayFrom(e):[]}}}function y(e,t,r,n){e=e.getOrCreateMapOfCacheRedirects(t),t=e.get(r);return t||(t=n(),e.set(r,t)),t}function C(e,t,r){var n;e.configFile&&(0===t.redirectsMap.size?(O.Debug.assert(!r||0===r.redirectsMap.size),O.Debug.assert(0===t.getOwnMap().size),O.Debug.assert(!r||0===r.getOwnMap().size),t.redirectsMap.set(e.configFile.path,t.getOwnMap()),null!=r&&r.redirectsMap.set(e.configFile.path,r.getOwnMap())):(O.Debug.assert(!r||0<r.redirectsMap.size),n={sourceFile:e.configFile,commandLine:{options:e}},t.setOwnMap(t.getOrCreateMapOfCacheRedirects(n)),null!=r&&r.setOwnMap(r.getOrCreateMapOfCacheRedirects(n))),t.setOwnOptions(e),null!=r&&r.setOwnOptions(e))}function k(r,n,i){return{getOrCreateCacheForDirectory:function(e,t){e=O.toPath(e,r,n);return y(i,t,e,E)},clear:function(){i.clear()},update:function(e){C(e,i)}}}function E(){var i=new O.Map,a=new O.Map,n={get:function(e,t){return i.get(o(e,t))},set:function(e,t,r){return i.set(o(e,t),r),n},delete:function(e,t){return i.delete(o(e,t)),n},has:function(e,t){return i.has(o(e,t))},forEach:function(n){return i.forEach(function(e,t){var r=a.get(t),t=r[0],r=r[1];return n(e,t,r)})},size:function(){return i.size}};return n;function o(e,t){var r=void 0===t?e:"".concat(t,"|").concat(e);return a.set(r,[e,t]),r}}function N(e,t,r,n,i){var a=function(e,t,r,n){var i=n.compilerOptions,a=i.baseUrl,o=i.paths,i=i.configFile;if(o&&!O.pathIsRelative(t)){n.traceEnabled&&(a&&v(n.host,O.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,t),v(n.host,O.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));var a=O.getPathsBasePath(n.compilerOptions,n.host),s=null!=i&&i.configFileSpecs?(s=i.configFileSpecs).pathPatterns||(s.pathPatterns=O.tryParsePatterns(o)):void 0;return _e(e,t,a,o,s,r,!1,n)}}(e,t,n,i);return a?a.value:O.isExternalModuleNameRelative(t)?function(e,t,r,n,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&v(i.host,O.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);for(var a,o,s=O.normalizePath(O.combinePaths(r,t)),c=0,l=i.compilerOptions.rootDirs;c<l.length;c++){var u=l[c],_=O.normalizePath(u);O.endsWith(_,O.directorySeparator)||(_+=O.directorySeparator);var d=O.startsWith(s,_)&&(void 0===o||o.length<_.length);i.traceEnabled&&v(i.host,O.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,s,d),d&&(o=_,a=u)}if(o){i.traceEnabled&&v(i.host,O.Diagnostics.Longest_matching_prefix_for_0_is_1,s,o);var p=s.substr(o.length);i.traceEnabled&&v(i.host,O.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,p,o,s);r=n(e,s,!O.directoryProbablyExists(r,i.host),i);if(r)return r;i.traceEnabled&&v(i.host,O.Diagnostics.Trying_other_entries_in_rootDirs);for(var f=0,g=i.compilerOptions.rootDirs;f<g.length;f++)if((u=g[f])!==a){var m=O.combinePaths(O.normalizePath(u),p);i.traceEnabled&&v(i.host,O.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,p,u,m);var y=O.getDirectoryPath(m),y=n(e,m,!O.directoryProbablyExists(y,i.host),i);if(y)return y}i.traceEnabled&&v(i.host,O.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,O.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);var a=O.normalizePath(O.combinePaths(i,t));n.traceEnabled&&v(n.host,O.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,t,i,a);return r(e,a,!O.directoryProbablyExists(O.getDirectoryPath(a),n.host),n)}(e,t,n,i)}function A(e,t,r,n,i,a,o,s){r=O.getDirectoryPath(r);return B(e|(s===O.ModuleKind.ESNext?D.EsmMode:0),t,r,n,i,a,n.resolveJsonModule?w:P,o)}O.resolveTypeReferenceDirective=function(n,r,e,i,t,a,o){O.Debug.assert("string"==typeof n,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");var s=b(e,i);t&&(e=t.commandLine.options);var c=(m=r?O.getDirectoryPath(r):void 0)?a&&a.getOrCreateCacheForDirectory(m,t):void 0,l=c&&c.get(n,o);if(l)return s&&(v(i,O.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,n,r),t&&v(i,O.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,t.sourceFile.fileName),v(i,O.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,n,m),y(l)),l;var u=x(e,i);s&&(void 0===r?void 0===u?v(i,O.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):v(i,O.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,u):void 0===u?v(i,O.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,r):v(i,O.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,r,u),t&&v(i,O.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,t.sourceFile.fileName));var _=[],d=T(e);o!==O.ModuleKind.ESNext||O.getEmitModuleResolutionKind(e)!==O.ModuleResolutionKind.Node16&&O.getEmitModuleResolutionKind(e)!==O.ModuleResolutionKind.NodeNext||(d|=D.EsmMode);var p,t=d&D.Exports?d&D.EsmMode?["node","import","types"]:["node","require","types"]:[],f=[],g={compilerOptions:e,host:i,traceEnabled:s,failedLookupLocations:_,packageJsonInfoCache:a,features:d,conditions:t,requestContainingDirectory:m,reportDiagnostic:function(e){f.push(e)}},t=function(){{if(u&&u.length)return s&&v(i,O.Diagnostics.Resolving_with_primary_search_path_0,u.join(", ")),O.firstDefined(u,function(e){var t=O.combinePaths(e,n),r=O.getDirectoryPath(t),e=O.directoryProbablyExists(r,i);return!e&&s&&v(i,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),h(Y(L.DtsOnly,t,!e,g))});s&&v(i,O.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}}(),m=!0;return t||(t=function(){var e=r&&O.getDirectoryPath(r);{var t;if(void 0!==e)return s&&v(i,O.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,e),h(O.isExternalModuleNameRelative(n)?(t=j(e,n).path,z(L.DtsOnly,t,!1,g,!0)):(e=se(L.DtsOnly,n,e,g,void 0,void 0))&&e.value);s&&v(i,O.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}(),m=!1),t&&(p=t.fileName,t=t.packageId,p={primary:m,resolvedFileName:e=e.preserveSymlinks?p:J(p,i,s),originalPath:S(p,e,i)?void 0:p,packageId:t,isExternalLibraryImport:K(p)}),l={resolvedTypeReferenceDirective:p,failedLookupLocations:_,resolutionDiagnostics:f},null!=c&&c.set(n,o,l),s&&y(l),l;function y(e){var t;null!==(t=e.resolvedTypeReferenceDirective)&&void 0!==t&&t.resolvedFileName?e.resolvedTypeReferenceDirective.packageId?v(i,O.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,e.resolvedTypeReferenceDirective.resolvedFileName,O.packageIdToString(e.resolvedTypeReferenceDirective.packageId),e.resolvedTypeReferenceDirective.primary):v(i,O.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,e.resolvedTypeReferenceDirective.resolvedFileName,e.resolvedTypeReferenceDirective.primary):v(i,O.Diagnostics.Type_reference_directive_0_was_not_resolved,n)}},O.resolvePackageNameToPackageJson=function(t,e,r,n,i){var a={compilerOptions:r,host:n,traceEnabled:b(r,n),failedLookupLocations:[],packageJsonInfoCache:null==i?void 0:i.getPackageJsonInfoCache(),conditions:O.emptyArray,features:D.None,requestContainingDirectory:e,reportDiagnostic:O.noop};return O.forEachAncestorDirectory(e,function(e){if("node_modules"!==O.getBaseFileName(e)){e=O.combinePaths(e,"node_modules");return $(O.combinePaths(e,t),!1,a)}})},O.getAutomaticTypeDirectiveNames=function(e,t){if(e.types)return e.types;var r=[];if(t.directoryExists&&t.getDirectories){e=x(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],l=O.normalizePath(c),c=O.combinePaths(a,l,"package.json");t.fileExists(c)&&null===O.readJson(c,t).typings||46!==(l=O.getBaseFileName(l)).charCodeAt(0)&&r.push(l)}}}return r},O.createCacheWithRedirects=l,O.createModeAwareCache=E,O.zipToModeAwareCache=function(e,t,r){O.Debug.assert(t.length===r.length);for(var n=E(),i=0;i<t.length;++i){var a=t[i],o=O.isString(a)?a:a.fileName.toLowerCase(),a=O.isString(a)?O.getModeForResolutionAtIndex(e,i):a.resolutionMode||e.impliedNodeFormat;n.set(o,a,r[i])}return n},O.createModuleResolutionCache=function(s,c,e,t,n){var r=k(s,c,t=t||l(e));n=n||l(e);var i=u(s,c);return __assign(__assign(__assign({},i),r),{getOrCreateCacheForModuleName:function(e,t,r){return O.Debug.assert(!O.isExternalModuleNameRelative(e)),y(n,r,void 0===t?e:"".concat(t,"|").concat(e),a)},clear:function(){r.clear(),n.clear(),i.clear()},update:function(e){C(e,t,n)},getPackageJsonInfoCache:function(){return i}});function a(){var o=new O.Map;return{get:function(e){return o.get(O.toPath(e,s,c))},set:function(e,t){var r=O.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=O.toPath(O.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]===O.directorySeparator))return e;var a=O.getRootLength(e);if(n<a)return;t=e.lastIndexOf(O.directorySeparator,n-1);return-1!==t?e.substr(0,Math.max(t,a)):void 0}(r,e),i=r;for(;i!==n;){var a=O.getDirectoryPath(i);if(a===i||o.has(a))break;o.set(a,t),i=a}}}}},O.createTypeReferenceDirectiveResolutionCache=function(e,t,r,n,i){var a=k(e,t,i=i||l(r));return n=n||u(e,t),__assign(__assign(__assign({},n),a),{clear:function(){a.clear(),n.clear()}})},O.resolveModuleNameFromCache=function(e,t,r,n){if(t=O.getDirectoryPath(t),t=r&&r.getOrCreateCacheForDirectory(t))return t.get(e,n)},O.resolveModuleName=function(e,t,r,n,i,a,o){var s=b(r,n);a&&(r=a.commandLine.options),s&&(v(n,O.Diagnostics.Resolving_module_0_from_1,e,t),a&&v(n,O.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));var c,l,u,_,d,p,f,g=O.getDirectoryPath(t),m=i&&i.getOrCreateCacheForDirectory(g,a),y=m&&m.get(e,o);if(y)s&&v(n,O.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,e,g);else{var h=r.moduleResolution;if(void 0===h){switch(O.getEmitModuleKind(r)){case O.ModuleKind.CommonJS:h=O.ModuleResolutionKind.NodeJs;break;case O.ModuleKind.Node16:h=O.ModuleResolutionKind.Node16;break;case O.ModuleKind.NodeNext:h=O.ModuleResolutionKind.NodeNext;break;default:h=O.ModuleResolutionKind.Classic}s&&v(n,O.Diagnostics.Module_resolution_kind_is_not_specified_using_0,O.ModuleResolutionKind[h])}else s&&v(n,O.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,O.ModuleResolutionKind[h]);switch(O.perfLogger.logStartResolveModule(e),h){case O.ModuleResolutionKind.Node16:c=e,l=t,u=r,_=n,d=i,p=a,f=o,y=A(D.Node16Default,c,l,u,_,d,p,f);break;case O.ModuleResolutionKind.NodeNext:c=e,l=t,u=r,_=n,d=i,p=a,f=o,y=A(D.NodeNextDefault,c,l,u,_,d,p,f);break;case O.ModuleResolutionKind.NodeJs:y=R(e,t,r,n,i,a);break;case O.ModuleResolutionKind.Classic:y=ge(e,t,r,n,i,a);break;default:return O.Debug.fail("Unexpected moduleResolution: ".concat(h))}y&&y.resolvedModule&&O.perfLogger.logInfoEvent('Module "'.concat(e,'" resolved to "').concat(y.resolvedModule.resolvedFileName,'"')),O.perfLogger.logStopResolveModule(y&&y.resolvedModule?""+y.resolvedModule.resolvedFileName:"null"),m&&(m.set(e,o,y),O.isExternalModuleNameRelative(e)||i.getOrCreateCacheForModuleName(e,o,a).set(g,y))}return s&&(y.resolvedModule?y.resolvedModule.packageId?v(n,O.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,y.resolvedModule.resolvedFileName,O.packageIdToString(y.resolvedModule.packageId)):v(n,O.Diagnostics.Module_name_0_was_successfully_resolved_to_1,e,y.resolvedModule.resolvedFileName):v(n,O.Diagnostics.Module_name_0_was_not_resolved,e)),y},O.resolveJSModule=function(e,t,r){var n,r=(i=(n=e,i=t,r=r,B(D.None,n,i,{moduleResolution:O.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,F,void 0))).resolvedModule,i=i.failedLookupLocations;if(!r)throw new Error("Could not resolve JS module '".concat(e,"' starting at '").concat(t,"'. Looked in: ").concat(i.join(", ")));return r.resolvedFileName},(e=D=D||{})[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.EsmMode=32]="EsmMode";var F=[L.JavaScript],P=[L.TypeScript,L.JavaScript],w=__spreadArray(__spreadArray([],P,!0),[L.Json],!1),I=[L.TSConfig];function R(e,t,r,n,i,a,o){var s;return o?s=I:r.noDtsResolution?(s=[L.TsOnly],r.allowJs&&s.push(L.JavaScript),r.resolveJsonModule&&s.push(L.Json)):s=r.resolveJsonModule?w:P,B(D.None,e,O.getDirectoryPath(t),r,n,i,s,a)}function B(i,a,o,s,c,l,e,u){var _=b(s,c),t=[],r=i&D.EsmMode?["node","import","types"]:["node","require","types"];s.noDtsResolution&&r.pop();var n=[],d={compilerOptions:s,host:c,traceEnabled:_,failedLookupLocations:t,packageJsonInfoCache:l,features:i,conditions:r,requestContainingDirectory:o,reportDiagnostic:function(e){n.push(e)}},r=O.forEach(e,function(e){var t=N(e,a,o,function(e,t,r,n){return z(e,t,r,n,!0)},d);if(t)return me({resolved:t,isExternalLibraryImport:K(t.path)});{if(O.isExternalModuleNameRelative(a)){var r=j(o,a),t=r.path,r=r.parts,t=z(e,t,!1,d,!0);return t&&me({resolved:t,isExternalLibraryImport:O.contains(r,"node_modules")})}if(i&D.Imports&&O.startsWith(a,"#")&&(n=function(e,t,r,n,i,a){if("#"===t||O.startsWith(t,"#/"))return n.traceEnabled&&v(n.host,O.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,t),me(void 0);var o="function"==typeof n.host.useCaseSensitiveFileNames?n.host.useCaseSensitiveFileNames():n.host.useCaseSensitiveFileNames,s=O.toPath(O.combinePaths(r,"dummy"),null===(r=(s=n.host).getCurrentDirectory)||void 0===r?void 0:r.call(s),O.createGetCanonicalFileName(void 0===o||o)),o=Z(s,n.packageJsonInfoCache,n.host,n.compilerOptions);if(!o)return n.traceEnabled&&v(n.host,O.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,s),me(void 0);if(!o.packageJsonContent.imports)return n.traceEnabled&&v(n.host,O.Diagnostics.package_json_scope_0_has_no_imports_defined,o.packageDirectory),me(void 0);a=ie(e,n,i,a,t,o.packageJsonContent.imports,o,!0);if(a)return a;n.traceEnabled&&v(n.host,O.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,o.packageDirectory);return me(void 0)}(e,a,o,d,l,u)),!n&&i&D.SelfName&&(n=function(e,t,r,n,i,a){var o,s="function"==typeof n.host.useCaseSensitiveFileNames?n.host.useCaseSensitiveFileNames():n.host.useCaseSensitiveFileNames,s=Z(O.toPath(O.combinePaths(r,"dummy"),null===(r=(o=n.host).getCurrentDirectory)||void 0===r?void 0:r.call(o),O.createGetCanonicalFileName(void 0===s||s)),n.packageJsonInfoCache,n.host,n.compilerOptions);if(!s||!s.packageJsonContent.exports)return;if("string"!=typeof s.packageJsonContent.name)return;var c=O.getPathComponents(t),t=O.getPathComponents(s.packageJsonContent.name);if(!O.every(t,function(e,t){return c[t]===e}))return;t=c.slice(t.length);return ne(s,e,O.length(t)?".".concat(O.directorySeparator).concat(t.join(O.directorySeparator)):".",n,i,a)}(e,a,o,d,l,u)),n||(_&&v(c,O.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,a,L[e]),n=se(e,a,o,d,l,u)),n){var n,r=n.value;return s.preserveSymlinks||!r||r.originalPath||(e=J(r.path,c,_),n=S(e,r.path,c)?void 0:r.path,r=__assign(__assign({},r),{path:e,originalPath:n})),{value:r&&{resolved:r,isExternalLibraryImport:!0}}}}});return p(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,n,d.resultFromCache)}function j(e,t){var r=O.combinePaths(e,t),e=O.getPathComponents(r),t=O.lastOrUndefined(e);return{path:"."===t||".."===t?O.ensureTrailingDirectorySeparator(O.normalizePath(r)):O.normalizePath(r),parts:e}}function J(e,t,r){if(!t.realpath)return e;var n=O.normalizePath(t.realpath(e));return r&&v(t,O.Diagnostics.Resolving_real_path_for_0_result_1,e,n),O.Debug.assert(t.fileExists(n),"".concat(e," linked to nonexistent file ").concat(n)),n}function z(e,t,r,n,i){if(n.traceEnabled&&v(n.host,O.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,t,L[e]),!O.hasTrailingDirectorySeparator(t)){r||(o=O.getDirectoryPath(t),O.directoryProbablyExists(o,n.host)||(n.traceEnabled&&v(n.host,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),r=!0));var a=q(e,t,r,n);if(a){var o=i?U(a.path):void 0;return M(o?$(o,!1,n):void 0,a)}}if(r||O.directoryProbablyExists(t,n.host)||(n.traceEnabled&&v(n.host,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(n.features&D.EsmMode))return Y(e,t,r,n,i)}function K(e){return O.stringContains(e,O.nodeModulesPathPart)}function U(e){var t=O.normalizePath(e),r=t.lastIndexOf(O.nodeModulesPathPart);if(-1!==r){e=r+O.nodeModulesPathPart.length,r=i(t,e);return 64===t.charCodeAt(e)&&(r=i(t,r)),t.slice(0,r)}}function i(e,t){e=e.indexOf(O.directorySeparator,t+1);return-1===e?t:e}function V(e,t,r,n){return _(q(e,t,r,n))}function q(e,t,r,n){if(e===L.Json||e===L.TSConfig){var i=O.tryRemoveExtension(t,".json"),a=i?t.substring(i.length):"";return void 0===i&&e===L.Json?void 0:G(i||t,e,a,r,n)}if(!(n.features&D.EsmMode)){a=G(t,e,"",r,n);if(a)return a}return W(e,t,r,n)}function W(e,t,r,n){if(O.hasJSFileExtension(t)||O.fileExtensionIs(t,".json")&&n.compilerOptions.resolveJsonModule){var i=O.removeFileExtension(t),a=t.substring(i.length);return n.traceEnabled&&v(n.host,O.Diagnostics.File_name_0_has_a_1_extension_stripping_it,t,a),G(i,e,a,r,n)}}function H(e,t,r,n){return e!==L.TypeScript&&e!==L.DtsOnly||!O.fileExtensionIsOneOf(t,O.supportedTSExtensionsFlat)?W(e,t,r,n):void 0!==Q(t,r,n)?{path:t,ext:O.tryExtractTSExtension(t)}:void 0}function G(r,e,t,n,i){var a;switch(n||(a=O.getDirectoryPath(r))&&(n=!O.directoryProbablyExists(a,i.host)),e){case L.DtsOnly:switch(t){case".mjs":case".mts":case".d.mts":return s(".d.mts");case".cjs":case".cts":case".d.cts":return s(".d.cts");case".json":return r+=".json",s(".d.ts");default:return s(".d.ts")}case L.TypeScript:case L.TsOnly:var o=e===L.TypeScript;switch(t){case".mjs":case".mts":case".d.mts":return s(".mts")||(o?s(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return s(".cts")||(o?s(".d.cts"):void 0);case".json":return r+=".json",o?s(".d.ts"):void 0;default:return s(".ts")||s(".tsx")||(o?s(".d.ts"):void 0)}case L.JavaScript:switch(t){case".mjs":case".mts":case".d.mts":return s(".mjs");case".cjs":case".cts":case".d.cts":return s(".cjs");case".json":return s(".json");default:return s(".js")||s(".jsx")}case L.TSConfig:case L.Json:return s(".json")}function s(e){var t=Q(r+e,n,i);return void 0===t?void 0:{path:t,ext:e}}}function Q(e,t,r){var n;if(null===(n=r.compilerOptions.moduleSuffixes)||void 0===n||!n.length)return X(e,t,r);var i=null!==(n=O.tryGetExtensionFromPath(e))&&void 0!==n?n:"",a=i?O.removeExtension(e,i):e;return O.forEach(r.compilerOptions.moduleSuffixes,function(e){return X(a+e+i,t,r)})}function X(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&v(r.host,O.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&v(r.host,O.Diagnostics.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function Y(e,t,r,n,i){void 0===i&&(i=!0);i=i?$(t,r,n):void 0;return M(i,ee(e,t,r,n,i&&i.packageJsonContent,i&&i.versionPaths))}function Z(e,t,r,n){var i={host:r,compilerOptions:n,traceEnabled:b(n,r),failedLookupLocations:[],packageJsonInfoCache:t,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:O.noop},a=O.getPathComponents(e);for(a.pop();0<a.length;){var o=$(O.getPathFromPathComponents(a),!1,i);if(o)return o;a.pop()}}function $(e,t,r){var n=r.host,i=r.traceEnabled,a=O.combinePaths(e,"package.json");if(t)r.failedLookupLocations.push(a);else{var t=null===(o=r.packageJsonInfoCache)||void 0===o?void 0:o.getPackageJsonInfo(a);if(void 0!==t)return"boolean"!=typeof t?(i&&v(n,O.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,a),t):(t&&i&&v(n,O.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,a),void r.failedLookupLocations.push(a));var o=O.directoryProbablyExists(e,n);if(o&&n.fileExists(a)){t=O.readJson(a,n);i&&v(n,O.Diagnostics.Found_package_json_at_0,a);e={packageDirectory:e,packageJsonContent:t,versionPaths:s(t,r),resolvedEntrypoints:void 0};return null!==(t=r.packageJsonInfoCache)&&void 0!==t&&t.setPackageJsonInfo(a,e),e}o&&i&&v(n,O.Diagnostics.File_0_does_not_exist,a),null!==(n=r.packageJsonInfoCache)&&void 0!==n&&n.setPackageJsonInfo(a,o),r.failedLookupLocations.push(a)}}function ee(e,t,r,n,c,i){var a;if(c)switch(e){case L.JavaScript:case L.Json:case L.TsOnly:a=m(c,t,n);break;case L.TypeScript:a=g(c,t,n)||m(c,t,n);break;case L.DtsOnly:a=g(c,t,n);break;case L.TSConfig:a=f(c,"tsconfig",t,n);break;default:return O.Debug.assertNever(e)}function o(e,t,r,n){var i,a,o=Q(t,r,n);if(o){var s=(i=e,a=o,void 0!==(s=O.tryGetExtensionFromPath(a))&&function(e,t){switch(e){case L.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case L.TSConfig:case L.Json:return".json"===t;case L.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t;case L.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t;case L.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t}}(i,s)?{path:a,ext:s}:void 0);if(s)return _(s);n.traceEnabled&&v(n.host,O.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,o)}return o=e===L.DtsOnly?L.TypeScript:e,e=n.features,"module"!==(null==c?void 0:c.type)&&(n.features&=~D.EsmMode),r=z(o,t,r,n,!1),n.features=e,r}var s=a?!O.directoryProbablyExists(O.getDirectoryPath(a),n.host):void 0,l=r||!O.directoryProbablyExists(t,n.host),u=O.combinePaths(t,e===L.TSConfig?"tsconfig":"index");if(i&&(!a||O.containsPath(t,a))){r=O.getRelativePathFromDirectory(t,a||u,!1);n.traceEnabled&&v(n.host,O.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,i.version,O.version,r);i=_e(e,r,t,i.paths,void 0,o,s||l,n);if(i)return d(i.value)}s=a&&d(o(e,a,s,n));return s||(n.features&D.EsmMode?void 0:q(e,u,l,n))}function te(e){var t=e.indexOf(O.directorySeparator);return"@"===e[0]&&(t=e.indexOf(O.directorySeparator,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function re(e){return O.every(O.getOwnKeys(e),function(e){return O.startsWith(e,".")})}function ne(e,t,r,n,i,a){if(e.packageJsonContent.exports){if("."===r){var o=void 0;if("string"==typeof e.packageJsonContent.exports||Array.isArray(e.packageJsonContent.exports)||"object"==typeof e.packageJsonContent.exports&&(s=e.packageJsonContent.exports,!O.some(O.getOwnKeys(s),function(e){return O.startsWith(e,".")}))?o=e.packageJsonContent.exports:O.hasProperty(e.packageJsonContent.exports,".")&&(o=e.packageJsonContent.exports["."]),o)return ae(t,n,i,a,r,e,!1)(o,"",!1)}else if(re(e.packageJsonContent.exports)){if("object"!=typeof e.packageJsonContent.exports)return n.traceEnabled&&v(n.host,O.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),me(void 0);a=ie(t,n,i,a,r,e.packageJsonContent.exports,e,!1);if(a)return a}var s;return n.traceEnabled&&v(n.host,O.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),me(void 0)}}function ie(e,t,r,n,i,a,o,s){var c=ae(e,t,r,n,i,o,s);if(!O.endsWith(i,O.directorySeparator)&&-1===i.indexOf("*")&&O.hasProperty(a,i))return c(d=a[i],"",!1);for(var l=0,u=O.sort(O.filter(O.getOwnKeys(a),function(e){return-1!==e.indexOf("*")||O.endsWith(e,"/")}),function(e,t){return e.length-t.length});l<u.length;l++){var _=u[l];if(t.features&D.ExportsPatternTrailers&&function(e,t){if(O.endsWith(e,"*"))return!1;var r=e.indexOf("*");return-1!==r&&(O.startsWith(t,e.substring(0,r))&&O.endsWith(t,e.substring(r+1)))}(_,i)){var d=a[_],p=_.indexOf("*");return c(d,i.substring(_.substring(0,p).length,i.length-(_.length-1-p)),!0)}if(O.endsWith(_,"*")&&O.startsWith(i,_.substring(0,_.length-1)))return c(d=a[_],i.substring(_.length-1),!0);if(O.startsWith(i,_))return c(d=a[_],i.substring(_.length),!1)}}function ae(P,w,f,g,m,I,y){return function e(t,r,n){{if("string"==typeof t){if(!n&&0<r.length&&!O.endsWith(t,"/"))return w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,I.packageDirectory,m),me(void 0);if(!O.startsWith(t,"./")){if(!y||O.startsWith(t,"../")||O.startsWith(t,"/")||O.isRootedDiskPath(t))return w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,I.packageDirectory,m),me(void 0);var i=n?t.replace(/\*/g,r):t+r,a=B(w.features,i,I.packageDirectory+"/",w.compilerOptions,w.host,f,[P],g);return me(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath}:void 0)}var o=O.pathIsRelative(t)?O.getPathComponents(t).slice(1):O.getPathComponents(t),i=o.slice(1);if(0<=i.indexOf("..")||0<=i.indexOf(".")||0<=i.indexOf("node_modules"))return w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,I.packageDirectory,m),me(void 0);o=O.combinePaths(I.packageDirectory,t),i=O.getPathComponents(r);if(0<=i.indexOf("..")||0<=i.indexOf(".")||0<=i.indexOf("node_modules"))return w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,I.packageDirectory,m),me(void 0);var i=N(n?o.replace(/\*/g,r):o+r),o=p(i,r,O.combinePaths(I.packageDirectory,"package.json"),y);return o?o:me(M(I,H(P,i,!1,w)))}if("object"==typeof t&&null!==t){if(!Array.isArray(t)){for(var s=0,c=O.getOwnKeys(t);s<c.length;s++){var l=c[s];if("default"===l||0<=w.conditions.indexOf(l)||oe(w.conditions,l)){var l=t[l],a=e(l,r,n);if(a)return a}}return}if(!O.length(t))return w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,I.packageDirectory,m),me(void 0);for(var u=0,_=t;u<_.length;u++){var d=_[u],a=e(d,r,n);if(a)return a}}else if(null===t)return w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,I.packageDirectory,m),me(void 0)}w.traceEnabled&&v(w.host,O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,I.packageDirectory,m);return me(void 0);function N(e){var t;return void 0===e?e:O.hostGetCanonicalFileName({useCaseSensitiveFileNames:F})(O.getNormalizedAbsolutePath(e,null===(e=(t=w.host).getCurrentDirectory)||void 0===e?void 0:e.call(t)))}function A(e,t){return O.ensureTrailingDirectorySeparator(O.combinePaths(e,t))}function F(){return!w.host.useCaseSensitiveFileNames||("boolean"==typeof w.host.useCaseSensitiveFileNames?w.host.useCaseSensitiveFileNames:w.host.useCaseSensitiveFileNames())}function p(e,t,r,n){var i,a;if((P===L.TypeScript||P===L.JavaScript||P===L.Json)&&(w.compilerOptions.declarationDir||w.compilerOptions.outDir)&&-1===e.indexOf("/node_modules/")&&(!w.compilerOptions.configFile||O.startsWith(N(w.compilerOptions.configFile.fileName),I.packageDirectory))){var o=O.hostGetCanonicalFileName({useCaseSensitiveFileNames:F}),s=[];if(w.compilerOptions.rootDir||w.compilerOptions.composite&&w.compilerOptions.configFilePath){var c=N(O.getCommonSourceDirectory(w.compilerOptions,function(){return[]},(null===(i=(a=w.host).getCurrentDirectory)||void 0===i?void 0:i.call(a))||"",o));s.push(c)}else if(w.requestContainingDirectory){var l=N(O.combinePaths(w.requestContainingDirectory,"index.ts")),c=N(O.getCommonSourceDirectory(w.compilerOptions,function(){return[l,N(r)]},(null===(a=(i=w.host).getCurrentDirectory)||void 0===a?void 0:a.call(i))||"",o));s.push(c);for(var u=O.ensureTrailingDirectorySeparator(c);u&&1<u.length;){var _=O.getPathComponents(u);_.pop();var _=O.getPathFromPathComponents(_);s.unshift(_),u=O.ensureTrailingDirectorySeparator(_)}}1<s.length&&w.reportDiagnostic(O.createCompilerDiagnostic(n?O.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:O.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===t?".":t,r));for(var d=0,p=s;d<p.length;d++)for(var f=p[d],g=E(f),m=0,y=g;m<y.length;m++){var h=y[m];if(O.startsWith(e,h))for(var h=e.slice(h.length+1),v=O.combinePaths(f,h),h=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"],b=0,x=h;b<x.length;b++){var D=x[b];if(O.fileExtensionIs(v,D))for(var S=O.getPossibleOriginalInputExtensionForExtension(v),T=0,C=S;T<C.length;T++){var k=C[T],k=O.changeAnyExtension(v,k,D,!F());if(!(P===L.TypeScript&&O.hasJSFileExtension(k)||P===L.JavaScript&&O.hasTSFileExtension(k))&&w.host.fileExists(k))return me(M(I,H(P,k,!1,w)))}}}}function E(e){var t,r=w.compilerOptions.configFile?(null===(t=(r=w.host).getCurrentDirectory)||void 0===t?void 0:t.call(r))||"":e,e=[];return w.compilerOptions.declarationDir&&e.push(N(A(r,w.compilerOptions.declarationDir))),w.compilerOptions.outDir&&w.compilerOptions.outDir!==w.compilerOptions.declarationDir&&e.push(N(A(r,w.compilerOptions.outDir))),e}}}}function oe(e,t){if(-1===e.indexOf("types"))return!1;if(!O.startsWith(t,"types@"))return!1;t=O.VersionRange.tryParse(t.substring("types@".length));return!!t&&t.test(O.version)}function se(e,t,r,n,i,a){return ce(e,t,r,n,!1,i,a)}function ce(r,n,e,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(n,0===i.features?void 0:i.features&D.EsmMode?O.ModuleKind.ESNext:O.ModuleKind.CommonJS,s);return O.forEachAncestorDirectory(O.normalizeSlashes(e),function(e){if("node_modules"!==O.getBaseFileName(e)){var t=fe(c,n,e,i);return t?t:me(le(r,n,e,i,a,o,s))}})}function le(e,t,r,n,i,a,o){var s=O.combinePaths(r,"node_modules"),r=O.directoryProbablyExists(s,n.host);!r&&n.traceEnabled&&v(n.host,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);i=i?void 0:ue(e,t,s,r,n,a,o);if(i)return i;if(e===L.TypeScript||e===L.DtsOnly){e=O.combinePaths(s,"@types"),s=r;return r&&!O.directoryProbablyExists(e,n.host)&&(n.traceEnabled&&v(n.host,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),s=!1),ue(L.DtsOnly,function(e,t){var r=de(e);t.traceEnabled&&r!==e&&v(t.host,O.Diagnostics.Scoped_package_detected_looking_in_0,r);return r}(t,n),e,s,n,a,o)}}function ue(e,t,r,n,i,a,o){var s=O.normalizePath(O.combinePaths(r,t)),c=$(s,!n,i);if(!(i.features&D.Exports)&&c){var l=q(e,s,!n,i);if(l)return _(l);l=ee(e,s,!n,i,c.packageJsonContent,c.versionPaths);return M(c,l)}var l=te(t),t=l.packageName,u=l.rest,l=function(e,t,r,n){if(c&&c.packageJsonContent.exports&&n.features&D.Exports)return null===(i=ne(c,e,O.combinePaths(".",u),n,a,o))||void 0===i?void 0:i.value;var i=q(e,t,r,n)||ee(e,t,r,n,c&&c.packageJsonContent,c&&c.versionPaths);return!i&&c&&void 0===c.packageJsonContent.exports&&void 0===c.packageJsonContent.main&&n.features&D.EsmMode&&(i=q(e,O.combinePaths(t,"index.js"),r,n)),M(c,i)};if(""!==u){r=O.combinePaths(r,t);if((c=$(r,!n,i))&&c.versionPaths){i.traceEnabled&&v(i.host,O.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,O.version,u);t=n&&O.directoryProbablyExists(r,i.host),t=_e(e,u,r,c.versionPaths.paths,void 0,l,!t,i);if(t)return t.value}}return l(e,s,!n,i)}function _e(n,e,i,t,r,a,o,s){r=r||O.tryParsePatterns(t);r=O.matchPatternOrExact(r,e);if(r){var c=O.isString(r)?void 0:O.matchedText(r,e),r=O.isString(r)?r:O.patternText(r);return s.traceEnabled&&v(s.host,O.Diagnostics.Module_name_0_matched_pattern_1,e,r),{value:O.forEach(t[r],function(e){var t=c?e.replace("*",c):e,r=O.normalizePath(O.combinePaths(i,t));s.traceEnabled&&v(s.host,O.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,e,t);t=O.tryGetExtensionFromPath(e);if(void 0!==t){e=Q(r,o,s);if(void 0!==e)return _({path:e,ext:t})}return a(n,r,o||!O.directoryProbablyExists(O.getDirectoryPath(r),s.host),s)})}}}O.nodeModuleNameResolver=R,O.nodeModulesPathPart="/node_modules/",O.pathContainsNodeModules=K,O.parseNodeModuleFromPath=U,O.getEntrypointsFromPackageJsonInfo=function(e,t,r,n,i){if(!i&&void 0!==e.resolvedEntrypoints)return e.resolvedEntrypoints;var a=i?L.JavaScript:L.TypeScript,i=T(t),o={compilerOptions:t,host:r,traceEnabled:b(t,r),failedLookupLocations:[],packageJsonInfoCache:null==n?void 0:n.getPackageJsonInfoCache(),conditions:["node","require","types"],features:i,requestContainingDirectory:e.packageDirectory,reportDiagnostic:O.noop},n=ee(a,e.packageDirectory,!1,o,e.packageJsonContent,e.versionPaths);if(p=O.append(p,null==n?void 0:n.path),i&D.Exports&&e.packageJsonContent.exports)for(var s=0,c=[["node","import","types"],["node","require","types"]];s<c.length;s++){var l=c[s],l=__assign(__assign({},o),{failedLookupLocations:[],conditions:l}),l=function(a,e,o,s){var c;if(O.isArray(e))for(var t=0,r=e;t<r.length;t++)l(r[t]);else if("object"==typeof e&&null!==e&&re(e))for(var n in e)l(e[n]);else l(e);return c;function l(t){if("string"==typeof t&&O.startsWith(t,"./")&&-1===t.indexOf("*")){var e=O.getPathComponents(t).slice(2);if(0<=e.indexOf("..")||0<=e.indexOf(".")||0<=e.indexOf("node_modules"))return!1;var r=O.combinePaths(a.packageDirectory,t),e=O.getNormalizedAbsolutePath(r,null===(r=(e=o.host).getCurrentDirectory)||void 0===r?void 0:r.call(e)),e=H(s,e,!1,o);return e?(c=O.appendIfUnique(c,e,function(e,t){return e.path===t.path}),!0):void 0}if(Array.isArray(t)){for(var n=0,i=t;n<i.length;n++)if(l(i[n]))return!0}else if("object"==typeof t&&null!==t)return O.forEach(O.getOwnKeys(t),function(e){if("default"===e||O.contains(o.conditions,e)||oe(o.conditions,e))return l(t[e]),!0})}}(e,e.packageJsonContent.exports,l,a);if(l)for(var u=0,_=l;u<_.length;u++)var d=_[u],p=O.appendIfUnique(p,d.path)}return e.resolvedEntrypoints=p||!1},O.getPackageScopeForPath=Z,O.getPackageJsonInfo=$,O.parsePackageName=te,O.allKeysStartWithDot=re,O.isApplicableVersionedTypesKey=oe;var r="__";function de(e){if(O.startsWith(e,"@")){var t=e.replace(O.directorySeparator,r);if(t!==e)return t.slice(1)}return e}function pe(e){return O.stringContains(e,r)?"@"+e.replace(r,O.directorySeparator):e}function fe(e,t,r,n){e=e&&e.get(r);if(e)return n.traceEnabled&&v(n.host,O.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 ge(a,e,t,r,o,s){var n=b(t,r),i=[],c=O.getDirectoryPath(e),l=[],u={compilerOptions:t,host:r,traceEnabled:n,failedLookupLocations:i,packageJsonInfoCache:o,features:D.None,conditions:[],requestContainingDirectory:c,reportDiagnostic:function(e){l.push(e)}},n=_(L.TypeScript)||_(L.JavaScript);return p(n&&n.value,!1,i,l,u.resultFromCache);function _(r){var e=N(r,a,c,V,u);if(e)return{value:e};if(O.isExternalModuleNameRelative(a)){var t=O.normalizePath(O.combinePaths(c,a));return me(V(r,t,!1,u))}var n=o&&o.getOrCreateCacheForModuleName(a,void 0,s),i=O.forEachAncestorDirectory(c,function(e){var t=fe(n,a,e,u);if(t)return t;e=O.normalizePath(O.combinePaths(e,a));return me(V(r,e,!1,u))});return i||(r===L.TypeScript?(e=a,t=c,i=u,ce(L.DtsOnly,e,t,i,!0,void 0,void 0)):void 0)}}function me(e){return void 0!==e?{value:e}:void 0}O.getTypesPackageName=function(e){return"@types/".concat(de(e))},O.mangleScopedPackageName=de,O.getPackageNameFromTypesPackageName=function(e){var t=O.removePrefix(e,"@types/");return t!==e?pe(t):e},O.unmangleScopedPackageName=pe,O.classicNameResolver=ge,O.loadModuleFromGlobalCache=function(e,t,r,n,i,a){var o=b(r,n);o&&v(n,O.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);var s=[],a={compilerOptions:r,host:n,traceEnabled:o,failedLookupLocations:t=[],packageJsonInfoCache:a,features:D.None,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:function(e){s.push(e)}};return p(le(L.DtsOnly,e,i,a,!1,void 0,void 0),!0,t,s,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?l(e.body,t):1}function l(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 258:case 259:return 0;case 260:if(A.isEnumConst(e))return 2;break;case 266:case 265:if(!A.hasSyntacticModifier(e,1))return 0;break;case 272:var t=e;if(t.moduleSpecifier||!t.exportClause||273!==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=l(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 262:var s=0;return A.forEachChild(e,function(e){var t=l(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 261:return F(e,r);case 79: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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor";var v,P,b,x,D,y,S,u,T,C,w,I,O,M,L,R,B,j,J,z,k,E,r,N,K,n,U,V,q,i=(K=!1,n=0,U={flags:1},V={flags:1},q=function(){return A.createBinaryExpressionTrampoline(function(e,t){{var r;t?(t.stackIndex++,A.setParent(e,x),r=E,Re(e),n=x,x=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=r,t.parentStack[t.stackIndex]=n):t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]}}var n=e.operatorToken.kind;55!==n&&56!==n&&60!==n&&!A.isLogicalOrCoalescingAssignmentOperator(n)||(d(e)?(n=ne(),ye(e,n,n),w=ue(n)):ye(e,L,R),t.skip=!0);return t},function(e,t,r){if(!t.skip){t=n(e);return 27===r.operatorToken.kind&&ge(e),t}},function(e,t,r){t.skip||Oe(e)},function(e,t,r){if(!t.skip){t=n(e);return 27===r.operatorToken.kind&&ge(e),t}},function(e,t){t.skip||(r=e.operatorToken.kind,A.isAssignmentOperator(r)&&!A.isAssignmentTarget(e)&&(me(e.left),63===r&&207===e.left.kind&&re(e.left.expression)&&(w=ce(256,w,e))));var r=t.inStrictModeStack[t.stackIndex],e=t.parentStack[t.stackIndex];void 0!==r&&(E=r);void 0!==e&&(x=e);t.skip=!1,t.stackIndex--},void 0);function n(e){if(e&&A.isBinaryExpression(e)&&!A.isDestructuringAssignment(e))return e;Oe(e)}}(),function(e,t){v=e,P=t,b=A.getEmitScriptTarget(P),e=v,t=t,E=!(!A.getStrictOptionValue(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator,N=new A.Set,n=0,r=A.objectAllocator.getSymbolConstructor(),A.Debug.attachFlowNodeDebugInfo(U),A.Debug.attachFlowNodeDebugInfo(V),v.locals||(null!==A.tracing&&void 0!==A.tracing&&A.tracing.push("bind","bindSourceFile",{path:v.path},!0),Oe(v),null!==A.tracing&&void 0!==A.tracing&&A.tracing.pop(),v.symbolCount=n,v.classifiableNames=N,function(){if(T){for(var e=D,t=u,r=S,n=x,i=w,a=0,o=T;a<o.length;a++){var s=o[a],c=s.parent.parent;D=A.findAncestor(c.parent,function(e){return!!(1&xe(e))})||v,S=A.getEnclosingBlockScopeContainer(c)||v,w=m({flags:2}),Oe((x=s).typeExpression);var l=A.getNameOfDeclaration(s);if((A.isJSDocEnumTag(s)||!s.fullName)&&l&&A.isPropertyAccessEntityNameExpression(l.parent)){c=Qe(l.parent);if(c){He(v.symbol,l.parent,c,!!A.findAncestor(l,function(e){return A.isPropertyAccessExpression(e)&&"prototype"===e.name.escapedText}),!1);c=D;switch(A.getAssignmentDeclarationPropertyAccessKind(l.parent)){case 1:case 2:D=A.isExternalOrCommonJsModule(v)?v:void 0;break;case 4:D=l.parent.expression;break;case 3:D=l.parent.expression.name;break;case 5:D=nt(v,l.parent.expression)?v:A.isPropertyAccessExpression(l.parent.expression)?l.parent.expression.name:l.parent.expression;break;case 0:return A.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}D&&_(s,524288,788968),D=c}}else A.isJSDocEnumTag(s)||!s.fullName||79===s.fullName.kind?(x=s.parent,Ee(s,524288,788968)):Oe(s.fullName)}D=e,u=t,S=r,x=n,w=i}}()),J=B=R=L=M=O=I=w=T=u=S=y=D=x=b=P=v=void 0,K=z=C=!1,k=0});function W(e,t,r,n,i){return A.createDiagnosticForNodeInSourceFile(A.getSourceFileOfNode(e)||v,e,t,r,n,i)}function H(e,t){return n++,new r(e,t)}function G(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 Q(e){if(271===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":'"'.concat(r,'"')}if(162===t.kind){var n=t.expression;if(A.isStringOrNumericLiteralLike(n))return A.escapeLeadingUnderscores(n.text);if(A.isSignedNumericLiteral(n))return A.tokenToString(n.operator)+n.operand.text;A.Debug.fail("Only computed properties with literal names have declaration names")}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 171:return"__constructor";case 179:case 174:case 323:return"__call";case 180:case 175:return"__new";case 176:return"__index";case 272:return"__export";case 305:return"export=";case 221:if(2===A.getAssignmentDeclarationKind(e))return"export=";A.Debug.fail("Unknown binary declaration kind");break;case 317:return A.isJSDocConstructSignature(e)?"__new":"__call";case 164:return A.Debug.assert(317===e.parent.kind,"Impossible parameter parent kind",function(){return"parent is: ".concat(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(Q(e)))}function X(e,t,r,n,i,a,o){A.Debug.assert(o||!A.hasDynamicName(r));var s,c,l,u,_,d,p=A.hasSyntacticModifier(r,512)||A.isExportSpecifier(r)&&"default"===r.name.escapedText,o=o?"__computed":p&&t?"default":Q(r);if(void 0===o)s=H(0,"__missing");else if(s=e.get(o),2885600&n&&N.add(o),s){if(a&&!s.isReplaceableByMethod)return s;s.flags&i&&(s.isReplaceableByMethod?e.set(o,s=H(0,o)):3&n&&67108864&s.flags||(A.isNamedDeclaration(r)&&A.setParent(r.name,r),c=2&s.flags?A.Diagnostics.Cannot_redeclare_block_scoped_variable_0:A.Diagnostics.Duplicate_identifier_0,l=!0,(384&s.flags||384&n)&&(c=A.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,l=!1),u=!1,A.length(s.declarations)&&(p||s.declarations&&s.declarations.length&&271===r.kind&&!r.isExportEquals)&&(c=A.Diagnostics.A_module_cannot_have_multiple_default_exports,u=!(l=!1)),_=[],A.isTypeAliasDeclaration(r)&&A.nodeIsMissing(r.type)&&A.hasSyntacticModifier(r,1)&&2887656&s.flags&&_.push(W(r,A.Diagnostics.Did_you_mean_0,"export type { ".concat(A.unescapeLeadingUnderscores(r.name.escapedText)," }"))),d=A.getNameOfDeclaration(r)||r,A.forEach(s.declarations,function(e,t){var r=A.getNameOfDeclaration(e)||e,e=W(r,c,l?f(e):void 0);v.bindDiagnostics.push(u?A.addRelatedInfo(e,W(d,0===t?A.Diagnostics.Another_export_default_is_here:A.Diagnostics.and_here)):e),u&&_.push(W(r,A.Diagnostics.The_first_export_default_is_here))}),p=W(d,c,l?f(r):void 0),v.bindDiagnostics.push(A.addRelatedInfo.apply(void 0,__spreadArray([p],_,!1))),s=H(0,o)))}else e.set(o,s=H(0,o)),a&&(s.isReplaceableByMethod=!0);return G(s,r,n),s.parent?A.Debug.assert(s.parent===t,"Existing symbol parent should match new one"):s.parent=t,s}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)||!Qe(e.parent))||!!(A.isDeclaration(e.parent)&&1&A.getCombinedModifierFlags(e.parent)))}(e);if(2097152&t)return 275===e.kind||265===e.kind&&n?X(D.symbol.exports,D.symbol,e,t,r):X(D.locals,void 0,e,t,r);if(A.isJSDocTypeAlias(e)&&A.Debug.assert(A.isInJSFile(e)),A.isAmbientModule(e)||!(n||64&D.flags))return X(D.locals,void 0,e,t,r);if(!D.locals||A.hasSyntacticModifier(e,512)&&!Q(e))return X(D.symbol.exports,D.symbol,e,t,r);n=111551&t?1048576:0,n=X(D.locals,void 0,e,n,r);return n.exportSymbol=X(D.symbol.exports,D.symbol,e,t,r),e.localSymbol=n}function Y(e){Z(e,function(e){return 256===e.kind?Oe(e):void 0}),Z(e,function(e){return 256!==e.kind?Oe(e):void 0})}function Z(e,t){void 0===t&&(t=Oe),void 0!==e&&A.forEach(e,t)}function $(e){A.forEachChild(e,Oe,Z)}function h(e){var t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x,D,S,T,C,k,E,N=K;if(K=!1,function(e){if(!(1&w.flags))return!1;{var r;w===U&&(A.isStatementButNotDeclaration(e)&&236!==e.kind||257===e.kind||261===e.kind&&function(e){e=F(e);return 1===e||2===e&&A.shouldPreserveConstEnums(P)}(e))&&(w=V,P.allowUnreachableCode||(r=A.unreachableCodeIsError(P)&&!(16777216&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 $(e),Me(e),void(K=N);switch(237<=e.kind&&e.kind<=253&&!P.allowUnreachableCode&&(e.flowNode=w),e.kind){case 241:C=pe(T=e,ie()),k=ne(),E=ne(),oe(C,w),w=C,_e(T.expression,k,E),w=ue(k),de(T.statement,E,C),oe(C,w),w=ue(E);break;case 240:b=e,x=ie(),D=pe(b,ne()),S=ne(),oe(x,w),w=x,de(b.statement,S,D),oe(D,w),w=ue(D),_e(b.expression,x,S),w=ue(S);break;case 242:b=pe(D=e,ie()),x=ne(),S=ne(),Oe(D.initializer),oe(b,w),w=b,_e(D.condition,x,S),w=ue(x),de(D.statement,S,b),Oe(D.incrementor),oe(b,w),w=ue(S);break;case 243:case 244:h=pe(y=e,ie()),v=ne(),Oe(y.expression),oe(h,w),w=h,244===y.kind&&Oe(y.awaitModifier),oe(v,w),Oe(y.initializer),255!==y.initializer.kind&&me(y.initializer),de(y.statement,v,h),oe(h,w),!void(w=ue(v));break;case 239:y=e,h=ne(),v=ne(),m=ne(),_e(y.expression,h,v),w=ue(h),Oe(y.thenStatement),oe(m,w),w=ue(v),Oe(y.elseStatement),oe(m,w),w=ue(m);break;case 247:case 251:Oe((g=e).expression),247===g.kind&&(z=!0,M&&oe(M,w)),!void(w=U);break;case 246:case 245:Oe((p=e).label),!void(p.label?(f=function(e){for(var t=J;t;t=t.next)if(t.name===e)return t;return}(p.label.escapedText))&&(f.referenced=!0,fe(p,f.breakTarget,f.continueTarget)):fe(p,I,O));break;case 252:m=e,g=M,_=B,d=ne(),f=ne(),p=ne(),m.finallyBlock&&(M=f),oe(p,w),B=p,Oe(m.tryBlock),oe(d,w),m.catchClause&&(w=ue(p),oe(p=ne(),w),B=p,Oe(m.catchClause),oe(d,w)),M=g,B=_,!void(w=m.finallyBlock?((_=ne()).antecedents=A.concatenate(A.concatenate(d.antecedents,p.antecedents),f.antecedents),w=_,Oe(m.finallyBlock),1&w.flags?U:(M&&f.antecedents&&oe(M,ae(_,f.antecedents,w)),B&&p.antecedents&&oe(B,ae(_,p.antecedents,w)),d.antecedents?ae(_,d.antecedents,w):U)):ue(d));break;case 249:!function(e){var t=ne();Oe(e.expression);var r=I,n=j;I=t,j=w,Oe(e.caseBlock),oe(t,w);var i=A.forEach(e.caseBlock.clauses,function(e){return 290===e.kind});e.possiblyExhaustive=!i&&!t.antecedents,i||oe(t,se(j,e,0,0)),I=r,j=n,w=ue(t)}(e);break;case 263:!function(e){for(var t=e.clauses,r=ee(e.parent.expression),n=U,i=0;i<t.length;i++){for(var a=i;!t[i].statements.length&&i+1<t.length;)Oe(t[i]),i++;var o=ne();oe(o,r?se(j,e.parent,a,i+1):j),oe(o,n),w=ue(o);o=t[i];Oe(o),1&(n=w).flags||i===t.length-1||!P.noFallthroughCasesInSwitch||(o.fallthroughFlowNode=w)}}(e);break;case 289:_=w,w=j,Oe((d=e).expression),w=_,Z(d.statements);break;case 238:Oe((u=e).expression),ge(u.expression);break;case 250:u=e,l=ne(),J={next:J,name:u.label.escapedText,breakTarget:l,continueTarget:void 0,referenced:!1},Oe(u.label),Oe(u.statement),J.referenced||P.allowUnusedLabels||function(e,t,r){Ie(e,t,t,r)}(A.unusedLabelIsError(P),u.label,A.Diagnostics.Unused_label),J=J.next,oe(l,w),!void(w=ue(l));break;case 219:!void(53===(c=e).operator?(l=L,L=R,R=l,$(c),R=L,L=l):($(c),45!==c.operator&&46!==c.operator||me(c.operand)));break;case 220:$(s=e),45!==s.operator&&46!==s.operator||me(s.operand);break;case 221: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);q(e);break;case 215:$(a=e),206===a.expression.kind&&me(a.expression);break;case 222:c=e,s=ne(),o=ne(),a=ne(),_e(c.condition,s,o),w=ue(s),Oe(c.questionToken),Oe(c.whenTrue),oe(a,w),w=ue(o),Oe(c.colonToken),Oe(c.whenFalse),oe(a,w),w=ue(a);break;case 254:$(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 w=ce(16,w,t)}(i);break;case 206:case 207:i=e,(A.isOptionalChain(i)?be:$)(i);break;case 208:r=e,A.isOptionalChain(r)?be(r):213===(n=A.skipParentheses(r.expression)).kind||214===n.kind?(Z(r.typeArguments),Z(r.arguments),Oe(r.expression)):($(r),106===r.expression.kind&&(w=le(w,r))),!void(206===r.expression.kind&&(n=r.expression,A.isIdentifier(n.name)&&re(n.expression)&&A.isPushOrUnshiftIdentifier(n.name)&&(w=ce(256,w,r))));break;case 230:r=e,(A.isOptionalChain(r)?be:$)(r);break;case 345:case 338:case 339:Oe((t=e).tagName),339!==t.kind&&t.fullName&&(A.setParent(t.fullName,t),A.setParentRecursive(t.fullName,!1)),!void("string"!=typeof t.comment&&Z(t.comment));break;case 305:Y(e.statements),Oe(e.endOfFileToken);break;case 235:case 262:Y(e.statements);break;case 203:t=e,A.isBindingPattern(t.name)?(Z(t.decorators),Z(t.modifiers),Oe(t.dotDotDotToken),Oe(t.propertyName),Oe(t.initializer),Oe(t.name)):$(t);break;case 205:case 204:case 296:case 225:K=N;default:$(e)}Me(e),K=N}function ee(e){switch(e.kind){case 79:case 80:case 108:case 206:case 207:return a(e);case 208:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(a(r[t]))return!0;if(206===e.expression.kind&&a(e.expression.expression))return!0;return!1}(e);case 212:case 230:return ee(e.expression);case 221:return function(e){switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return a(e.left);case 34:case 35:case 36:case 37:return re(e.left)||re(e.right)||t(e.right,e.left)||t(e.left,e.right);case 102:return re(e.left);case 101:case 27:return ee(e.right)}return!1}(e);case 219:return 53===e.operator&&ee(e.operand);case 216:return ee(e.expression)}return!1}function te(e){return A.isDottedName(e)||(A.isPropertyAccessExpression(e)||A.isNonNullExpression(e)||A.isParenthesizedExpression(e))&&te(e.expression)||A.isBinaryExpression(e)&&27===e.operatorToken.kind&&te(e.right)||A.isElementAccessExpression(e)&&(A.isStringOrNumericLiteralLike(e.argumentExpression)||A.isEntityNameExpression(e.argumentExpression))&&te(e.expression)||A.isAssignmentExpression(e)&&te(e.left)}function a(e){return te(e)||A.isOptionalChain(e)&&a(e.expression)}function t(e,t){return A.isTypeOfExpression(e)&&re(e.expression)&&A.isStringLiteralLike(t)}function re(e){switch(e.kind){case 212:return re(e.expression);case 221:switch(e.operatorToken.kind){case 63:return re(e.left);case 27:return re(e.right)}}return a(e)}function ne(){return m({flags:4,antecedents:void 0})}function ie(){return m({flags:8,antecedents:void 0})}function ae(e,t,r){return m({flags:1024,target:e,antecedents:t,antecedent:r})}function o(e){e.flags|=2048&e.flags?4096:2048}function oe(e,t){1&t.flags||A.contains(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),o(t))}function s(e,t,r){return 1&t.flags?t:r?!(110===r.kind&&64&e||95===r.kind&&32&e)||A.isExpressionOfOptionalChainRoot(r)||A.isNullishCoalesce(r.parent)?ee(r)?(o(t),m({flags:e,antecedent:t,node:r})):t:U:32&e?t:U}function se(e,t,r,n){return o(e),m({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function ce(e,t,r){o(t);r=m({flags:e,antecedent:t,node:r});return B&&oe(B,r),r}function le(e,t){return o(e),m({flags:512,antecedent:e,node:t})}function ue(e){var t=e.antecedents;return t?1===t.length?t[0]:e:U}function c(e){for(;;)if(212===e.kind)e=e.expression;else{if(219!==e.kind||53!==e.operator)return 221===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function d(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 239:case 241:case 240:return t.expression===e;case 242:case 222:return t.condition===e}}(e)||c(e.parent)||A.isOptionalChain(e.parent)&&e.parent.expression===e)}function p(e,t,r,n){var i=L,a=R;L=r,R=n,e(t),L=i,R=a}function _e(e,t,r){var n;p(Oe,e,t,r),e&&(n=e,n=A.skipParentheses(n),A.isBinaryExpression(n)&&A.isLogicalOrCoalescingAssignmentOperator(n.operatorToken.kind)||c(e)||A.isOptionalChain(e)&&A.isOutermostOptionalChain(e))||(oe(t,s(32,w,e)),oe(r,s(64,w,e)))}function de(e,t,r){var n=I,i=O;I=t,O=r,Oe(e),I=n,O=i}function pe(e,t){for(var r=J;r&&250===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function fe(e,t,r){r=246===e.kind?t:r;r&&(oe(r,w),w=U)}function ge(e){208!==e.kind||106!==(e=e).expression.kind&&A.isDottedName(e.expression)&&(w=le(w,e))}function g(e){221===e.kind&&63===e.operatorToken.kind?me(e.left):me(e)}function me(e){if(te(e))w=ce(16,w,e);else if(204===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];225===n.kind?me(n.expression):g(n)}else if(205===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];296===o.kind?g(o.initializer):297===o.kind?me(o.name):298===o.kind&&me(o.expression)}}function ye(e,t,r){var n=ne();55===e.operatorToken.kind||76===e.operatorToken.kind?_e(e.left,n,r):_e(e.left,t,n),w=ue(n),Oe(e.operatorToken),A.isLogicalOrCoalescingAssignmentOperator(e.operatorToken.kind)?(p(Oe,e.right,t,r),me(e.left),oe(t,s(32,w,e)),oe(r,s(64,w,e))):_e(e.right,t,r)}function he(e){switch(e.kind){case 206:Oe(e.questionDotToken),Oe(e.name);break;case 207:Oe(e.questionDotToken),Oe(e.argumentExpression);break;case 208:Oe(e.questionDotToken),Z(e.typeArguments),Z(e.arguments)}}function ve(e,t,r){var n,i,a,o=A.isOptionalChainRoot(e)?ne():void 0;p(Oe,n=e.expression,i=o||t,a=r),A.isOptionalChain(n)&&!A.isOutermostOptionalChain(n)||(oe(i,s(32,w,n)),oe(a,s(64,w,n))),o&&(w=ue(o)),p(he,e,t,r),A.isOutermostOptionalChain(e)&&(oe(t,s(32,w,e)),oe(r,s(64,w,e)))}function be(e){var t;d(e)?(ve(e,t=ne(),t),w=ue(t)):ve(e,L,R)}function xe(e){switch(e.kind){case 226:case 257:case 260:case 205:case 182:case 322:case 286:return 1;case 258:return 65;case 261:case 259:case 195:case 176:return 33;case 305:return 37;case 172:case 173:case 169:if(A.isObjectLiteralOrClassExpressionMethodOrAccessor(e))return 173;case 171:case 256:case 168:case 174:case 323:case 317:case 179:case 175:case 180:case 170:return 45;case 213:case 214:return 61;case 262:return 4;case 167:return e.initializer?4:0;case 292:case 242:case 243:case 244:case 263:return 2;case 235:return A.isFunctionLike(e.parent)||A.isClassStaticBlockDeclaration(e.parent)?0:2}return 0}function De(e){u&&(u.nextContainer=e),u=e}function Se(e,t,r){switch(D.kind){case 261:return _(e,t,r);case 305:return n=e,i=t,a=r,A.isExternalModule(v)?_(n,i,a):X(v.locals,void 0,n,i,a);case 226:case 257:return n=e,i=t,a=r,A.isStatic(n)?X(D.symbol.exports,D.symbol,n,i,a):X(D.symbol.members,D.symbol,n,i,a);case 260:return X(D.symbol.exports,D.symbol,e,t,r);case 182:case 322:case 205:case 258:case 286:return X(D.symbol.members,D.symbol,e,t,r);case 179:case 180:case 174:case 175:case 323:case 176:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 317:case 345:case 338:case 170:case 259:case 195:return X(D.locals,void 0,e,t,r)}var n,i,a}function Te(e){var t;16777216&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 ke(e,t,r){r=H(t,r);return 106508&t&&(r.parent=D.symbol),G(r,e,t),r}function Ee(e,t,r){switch(S.kind){case 261:_(e,t,r);break;case 305:if(A.isExternalOrCommonJsModule(D)){_(e,t,r);break}default:S.locals||(S.locals=A.createSymbolTable(),De(S)),X(S.locals,void 0,e,t,r)}}function Ne(e){v.parseDiagnostics.length||16777216&e.flags||8388608&e.flags||A.isIdentifierName(e)||(E&&117<=e.originalKeywordKind&&e.originalKeywordKind<=125?v.bindDiagnostics.push(W(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))):132===e.originalKeywordKind?A.isExternalModule(v)&&A.isInTopLevelContext(e)?v.bindDiagnostics.push(W(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(W(e,A.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,A.declarationNameToString(e))):125===e.originalKeywordKind&&8192&e.flags&&v.bindDiagnostics.push(W(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&&79===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.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(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){E&&Ae(e,e.name)}function Pe(e){var t;b<2&&(305===S.kind||261===S.kind||A.isFunctionLikeOrClassStaticBlockDeclaration(S)||(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,l,u,_,d,p,f,g;e&&(A.setParent(e,x),A.tracing&&(e.tracingPath=v.path),t=E,Re(e),x=(160<e.kind?(r=x,0===(d=xe(x=e))?h(e):(n=e,p=D,f=y,g=S,1&(i=d)?(214!==n.kind&&(y=D),D=S=n,32&i&&(D.locals=A.createSymbolTable()),De(D)):2&i&&((S=n).locals=void 0),4&i?(a=w,o=I,s=O,c=M,l=B,u=J,_=z,(d=16&i&&!A.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!A.getImmediatelyInvokedFunctionExpression(n)||170===n.kind)||(w=m({flags:2}),144&i&&(w.node=n)),M=d||171===n.kind||A.isInJSFile(n)&&(256===n.kind||213===n.kind)?ne():void 0,J=O=I=B=void 0,z=!1,h(n),n.flags&=-2817,!(1&w.flags)&&8&i&&A.nodeIsPresent(n.body)&&(n.flags|=256,z&&(n.flags|=512),n.endFlowNode=w),305===n.kind&&(n.flags|=k,n.endFlowNode=w),M&&(oe(M,w),w=ue(M),171!==n.kind&&170!==n.kind&&(!A.isInJSFile(n)||256!==n.kind&&213!==n.kind)||(n.returnFlowNode=w)),d||(w=a),I=o,O=s,M=c,B=l,J=u,z=_):64&i?(C=!1,h(n),n.flags=C?128|n.flags:-129&n.flags):h(n),D=p,y=f,S=g)):(r=x,1===e.kind&&(x=e),Me(e)),r),E=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(!E)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(E=!0)}}function Re(e){switch(e.kind){case 79:if(e.isInJSDocNamespace){for(var t=e.parent;t&&!A.isJSDocTypeAlias(t);)t=t.parent;Ee(t,524288,788968);break}case 108:return w&&(A.isExpression(e)||297===x.kind)&&(e.flowNode=w),Ne(e),0;case 161:w&&A.isPartOfTypeQuery(e)&&(e.flowNode=w);break;case 231:case 106:e.flowNode=w;break;case 80:return"#constructor"===(h=e).escapedText&&(v.parseDiagnostics.length||v.bindDiagnostics.push(W(h,A.Diagnostics.constructor_is_a_reserved_word,A.declarationNameToString(h)))),0;case 206:case 207:var r=e;w&&te(r)&&(r.flowNode=w),A.isSpecialPropertyDeclaration(r)&&(108===(h=r).expression.kind?Ke(h):A.isBindableStaticAccessExpression(h)&&305===h.parent.parent.kind&&(A.isPrototypeAccess(h.expression)?qe(h,h.parent):We(h))),A.isInJSFile(r)&&v.commonJsModuleIndicator&&A.isModuleExportsAccessExpression(r)&&!it(S,"module")&&X(v.locals,void 0,r.expression,134217729,111550);break;case 221: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)||D===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=X(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),Xe(y.left.expression,y.left,!1,!0);break;case 4:Ke(e);break;case 5:var n=e.left.expression;if(A.isInJSFile(e)&&A.isIdentifier(n)){var i=it(S,n.escapedText);if(A.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)){Ke(e);break}}n=Ye((y=e).left.expression,D)||Ye(y.left.expression,S),!void((A.isInJSFile(y)||A.isFunctionSymbol(n))&&(i=A.getLeftmostAccessExpression(y.left),A.isIdentifier(i)&&2097152&(null===(i=it(D,i.escapedText))||void 0===i?void 0:i.flags)||(A.setParent(y.left,y),A.setParent(y.right,y),A.isIdentifier(y.left.expression)&&D===v&&nt(v,y.left.expression)?Je(y):A.hasDynamicName(y)?(ke(y,67108868,"__computed"),n=He(n,y.left.expression,Qe(y.left),!1,!1),Ve(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,E&&A.isLeftHandSideExpression(r.left)&&A.isAssignmentOperator(r.operatorToken.kind)&&Ae(r,r.left),0;case 292:return m=e,E&&m.variableDeclaration&&Ae(m,m.variableDeclaration.name),0;case 215:return m=e,E&&79===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,b<1&&E&&32&g.numericLiteralFlags&&v.bindDiagnostics.push(W(g,A.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode)),0;case 220:return g=e,E&&Ae(g,g.operand),0;case 219:return f=e,E&&(45!==f.operator&&46!==f.operator||Ae(f,f.operand)),0;case 248:return f=e,E&&we(f,A.Diagnostics.with_statements_are_not_allowed_in_strict_mode),0;case 250:return p=e,E&&2<=A.getEmitScriptTarget(P)&&(A.isDeclarationStatement(p.statement)||A.isVariableStatement(p.statement))&&we(p.label,A.Diagnostics.A_label_is_not_allowed_here),0;case 192:return void(C=!0);case 177:break;case 163:return function(e){{var t;A.isJSDocTemplateTag(e.parent)?(t=A.getEffectiveContainerForJSDocTemplateTag(e.parent))?(t.locals||(t.locals=A.createSymbolTable()),X(t.locals,void 0,e,262144,526824)):Se(e,262144,526824):190===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()),X(t.locals,void 0,e,262144,526824)):ke(e,262144,Q(e)):Se(e,262144,526824)}}(e),0;case 164:return et(e),0;case 254:return $e(e),0;case 203:return e.flowNode=w,$e(e),0;case 167:case 166:return tt(p=e,4|(p.questionToken?16777216:0),0);case 296:case 297:return tt(e,4,0);case 299:return tt(e,8,900095);case 174:case 175:case 176:return Se(e,131072,0);case 169:case 168:return tt(e,8192|(e.questionToken?16777216:0),A.isObjectLiteralMethod(e)?0:103359);case 256:return function(e){v.isDeclarationFile||16777216&e.flags||A.isAsyncFunction(e)&&(k|=2048);Fe(e),E?(Pe(e),Ee(e,16,110991)):Se(e,16,110991)}(e),0;case 171:return Se(e,16384,0);case 172:return tt(e,32768,46015);case 173:return tt(e,65536,78783);case 179:case 317:case 323:case 180:return function(e){var t=H(131072,Q(e));G(t,e,131072);var r=H(2048,"__type");G(r,e,2048),r.members=A.createSymbolTable(),r.members.set(t.escapedName,t)}(e),0;case 182:case 322:case 195:return ke(e,2048,"__type");case 332:return $(d=e),(d=A.getHostSignatureFromJSDoc(d))&&169!==d.kind&&G(d.symbol,d,32),0;case 205:return function(e){var t;if((t={})[t.Property=1]="Property",t[t.Accessor=2]="Accessor",E&&!A.isAssignmentTarget(e))for(var r=new A.Map,n=0,i=e.properties;n<i.length;n++){var a,o=i[n];298!==o.kind&&79===o.name.kind&&(a=o.name,o=296===o.kind||297===o.kind||169===o.kind?1:2,r.get(a.escapedText)||r.set(a.escapedText,o))}return ke(e,4096,"__object")}(e);case 213:case 214:return function(e){v.isDeclarationFile||16777216&e.flags||A.isAsyncFunction(e)&&(k|=2048);w&&(e.flowNode=w);Fe(e);var t=e.name?e.name.escapedText:"__function";return ke(e,16,t)}(e);case 208:switch(A.getAssignmentDeclarationKind(e)){case 7:return u=Ye((l=e).arguments[0]),_=305===l.parent.parent.kind,u=He(u,l.arguments[0],_,!1,!1),Ge(l,u,!1),0;case 8:return function(e){if(!je(e))return;var t=Ze(e.arguments[0],void 0,function(e,t){return t&&G(t,e,67110400),t});t&&X(t.exports,t,e,1048580,0)}(e),0;case 9:return function(e){var t=Ye(e.arguments[0].expression);t&&t.valueDeclaration&&G(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 226:case 257:return E=!0,function(e){257===e.kind?Ee(e,32,899503):(n=e.name?e.name.escapedText:"__class",ke(e,32,n),e.name&&N.add(e.name.escapedText));var t=e.symbol,r=H(4194308,"prototype"),n=t.exports.get(r.escapedName);n&&(e.name&&A.setParent(e.name,e),v.bindDiagnostics.push(W(n.declarations[0],A.Diagnostics.Duplicate_identifier_0,A.symbolName(r)))),t.exports.set(r.escapedName,r),r.parent=t}(e),0;case 258:return Ee(e,64,788872),0;case 259:return Ee(e,524288,788968),0;case 260:return c=e,A.isEnumConst(c)?Ee(c,128,899967):Ee(c,256,899327);case 261: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,void 0===(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&&!A.isString(o)?{pattern:o,symbol:s}:void 0))):0!==(o=Ce(c))&&((s=c.symbol).constEnumOnlyModule=!(304&s.flags)&&2===o&&!1!==s.constEnumOnlyModule),0;case 286:return ke(e,4096,"__jsxAttributes");case 285:return Se(e,4,0);case 265:case 268:case 270:case 275:return Se(e,2097152,2097152);case 264:return function(e){e.modifiers&&e.modifiers.length&&v.bindDiagnostics.push(W(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(W(e,t)):(v.symbol.globalExports=v.symbol.globalExports||A.createSymbolTable(),X(v.symbol.globalExports,v.symbol,e,2097152,2097152))}(e),0;case 267:return(s=e).name&&Se(s,2097152,2097152),0;case 272:return a=e,D.symbol&&D.symbol.exports?a.exportClause?A.isNamespaceExport(a.exportClause)&&(A.setParent(a.exportClause,a),X(D.symbol.exports,D.symbol,a.exportClause,2097152,2097152)):X(D.symbol.exports,D.symbol,a,8388608,0):ke(a,8388608,Q(a)),0;case 271:return function(e){{var t;D.symbol&&D.symbol.exports?(t=A.exportAssignmentIsAlias(e)?2097152:4,t=X(D.symbol.exports,D.symbol,e,t,67108863),e.isExportEquals&&A.setValueDeclaration(t,e)):ke(e,111551,Q(e))}}(e),0;case 305:return Le(e.statements),Te(v),A.isExternalModule(v)?Be():A.isJsonSourceFile(v)&&(Be(),a=v.symbol,X(v.symbol.exports,v.symbol,v,4,67108863),v.symbol=a),0;case 235:if(!A.isFunctionLikeOrClassStaticBlockDeclaration(e.parent))return;case 262:return Le(e.statements),0;case 340:if(323===e.parent.kind)return et(e),0;if(322!==e.parent.kind)break;case 347:return Se(e,e.isBracketed||e.typeExpression&&316===e.typeExpression.type.kind?16777220:4,0);case 345:case 338:case 339:return(T=T||[]).push(e)}var a,o,s,c,l,u,_,d,p,f,g,m,y,h}function Be(){ke(v,512,'"'.concat(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&&G(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),X(t.exports,t,e.left,r,0))}function ze(e){X(v.symbol.exports,v.symbol,e,69206016,0)}function Ke(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 256:case 213:var r=t.symbol;A.isBinaryExpression(t.parent)&&63===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)?Ue(e,r,r.members):X(r.members,r,e,67108868,0),G(r,r.valueDeclaration,32));break;case 171:case 167:case 169:case 172:case 173:case 170:var n=t.parent,r=A.isStatic(t)?n.symbol.exports:n.symbol.members;A.hasDynamicName(e)?Ue(e,n.symbol,r):X(r,n.symbol,e,67108868,0,!0);break;case 305:if(A.hasDynamicName(e))break;t.commonJsModuleIndicator?X(t.symbol.exports,t.symbol,e,1048580,0):Se(e,1,111550);break;default:A.Debug.failBadSyntaxKind(t)}}}function Ue(e,t,r){X(r,t,e,4,0,!0,!0),Ve(e,t)}function Ve(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),Xe(n,e,!0,!0)}function We(e){A.Debug.assert(!A.isIdentifier(e)),A.setParent(e.expression,e),Xe(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?(G(t,e,67110400),t):X(r?r.exports:v.jsGlobalAugmentations||(v.jsGlobalAugmentations=A.createSymbolTable()),r,e,67110400,110735)})),i&&e&&e.valueDeclaration&&G(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),X(n,t,e,67108864|i,-67108865&r))}function Qe(e){return A.isBinaryExpression(e.parent)?305===function(e){for(;A.isBinaryExpression(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:305===e.parent.parent.kind}function Xe(e,t,r,n){var i=Ye(e,D)||Ye(e,S),e=Qe(t);Ge(t,i=He(i,t.expression,e,r,n),r)}function Ye(e,t){if(void 0===t&&(t=D),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){E&&Ae(e,e.name),A.isBindingPattern(e.name)||(!A.isInJSFile(e)||!A.isVariableDeclarationInitializedToBareOrAccessedRequire(e)||A.getJSDocTypeTag(e)||1&A.getCombinedModifierFlags(e)?A.isBlockOrCatchScoped(e)?Ee(e,2,111551):A.isParameterDeclaration(e)?Se(e,1,111551):Se(e,1,111550):Se(e,2097152,2097152))}function et(e){var t;340===e.kind&&323!==D.kind||(!E||16777216&e.flags||Ae(e,e.name),A.isBindingPattern(e.name)?ke(e,1,"__"+e.parent.parameters.indexOf(e)):Se(e,1,111551),A.isParameterPropertyDeclaration(e,e.parent)&&X((t=e.parent.parent).symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0))}function tt(e,t,r){return v.isDeclarationFile||16777216&e.flags||!A.isAsyncFunction(e)||(k|=2048),w&&A.isObjectLiteralOrClassExpressionMethodOrAccessor(e)&&(e.flowNode=w),A.hasDynamicName(e)?ke(e,t,"__computed"):Se(e,t,r)}function rt(e){return!(A.isFunctionDeclaration(e)||function(e){switch(e.kind){case 258:case 259:return!0;case 261:return 1!==F(e);case 260: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){A.performance.mark("beforeBind"),A.perfLogger.logStartBindFile(""+e.fileName),i(e,t),A.perfLogger.logStopBindFile(),A.performance.mark("afterBind"),A.performance.measure("Bind","beforeBind","afterBind")},A.isExportsOrModuleExportsOrAlias=nt}(ts=ts||{}),function(v){v.createGetSymbolWalker=function(i,s,c,l,p,f,g,m,y,h){return function(r){void 0===r&&(r=function(){return!0});var a=[],n=[];return{walkType:function(e){try{return u(e),{visitedTypes:v.getOwnValues(a),visitedSymbols:v.getOwnValues(n)}}finally{v.clear(a),v.clear(n)}},walkSymbol:function(e){try{return d(e),{visitedTypes:v.getOwnValues(a),visitedSymbols:v.getOwnValues(n)}}finally{v.clear(a),v.clear(n)}}};function u(e){var t,r,n,i;e&&(a[e.id]||d((a[e.id]=e).symbol)||(524288&e.flags&&(4&(t=(i=e).objectFlags)&&(u((n=e).target),v.forEach(h(n),u)),32&t&&(u((r=e).typeParameter),u(r.constraintType),u(r.templateType),u(r.modifiersType)),3&t&&(o(r=e),v.forEach(r.typeParameters,u),v.forEach(l(r),u),u(r.thisType)),24&t&&o(i)),262144&e.flags&&u(m(e)),3145728&e.flags&&(i=e,v.forEach(i.types,u)),4194304&e.flags&&u(e.type),8388608&e.flags&&(u((e=e).objectType),u(e.indexType),u(e.constraint))))}function _(e){var t=s(e);t&&u(t.type),v.forEach(e.typeParameters,u);for(var r=0,n=e.parameters;r<n.length;r++)d(n[r]);u(i(e)),u(c(e))}function o(e){for(var e=p(e),t=0,r=e.indexInfos;t<r.length;t++){var n=r[t];u(n.keyType),u(n.type)}for(var i=0,a=e.callSignatures;i<a.length;i++)_(a[i]);for(var o=0,s=e.constructSignatures;o<s.length;o++)_(s[o]);for(var c=0,l=e.properties;c<l.length;c++)d(l[c])}function d(e){if(!e)return!1;var t=v.getSymbolId(e);return!n[t]&&(n[t]=e,!r(e)||(u(f(e)),e.exports&&e.exports.forEach(d),v.forEach(e.declarations,function(e){e.type&&181===e.type.kind&&(e=e.type,d(g(y(e.exprName))))}),!1))}}}}(ts=ts||{}),function(zC){var KC=/^".+"$/,UC="(anonymous)",t=1,r=1,VC=1,qC=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",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=16768959]="AndFactsMask";var WC=new zC.Map(zC.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),HC=new zC.Map(zC.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.WriteType=8]="WriteType",(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.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",(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.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both",(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 GC=zC.and(rk,function(e){return!zC.isAccessor(e)});(e={})[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",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 QC,e,XC=new zC.Map(zC.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function YC(){}function ZC(){this.flags=0}function $C(e){return e.id||(e.id=r,r++),e.id}function ek(e){return e.id||(e.id=t,t++),e.id}function tk(e,t){e=zC.getModuleInstanceState(e);return 1===e||t&&2===e}function rk(e){return 256!==e.kind&&169!==e.kind||!!e.body}function nk(e){switch(e.parent.kind){case 270:case 275:return zC.isIdentifier(e);default:return zC.isDeclarationName(e)}}function ik(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ak(e){return!!(1&e.flags)}function ok(e){return!!(2&e.flags)}zC.getNodeId=$C,zC.getSymbolId=ek,zC.isInstantiatedModule=tk,zC.createTypeChecker=function(b){var x,c,l,Z,D,r,o=zC.memoize(function(){var t=new zC.Map;return b.getSourceFiles().forEach(function(e){e.resolvedModules&&e.resolvedModules.forEach(function(e){e&&e.packageId&&t.set(e.packageId.name,".d.ts"===e.extension||!!t.get(e.packageId.name))})}),t}),n=[],C=function(e){n.push(e)},i=zC.objectAllocator.getSymbolConstructor(),t=zC.objectAllocator.getTypeConstructor(),u=zC.objectAllocator.getSignatureConstructor(),a=0,s=0,f=0,_=0,d=0,p=0,O=0,k=zC.createSymbolTable(),g=[1],$=b.getCompilerOptions(),B=zC.getEmitScriptTarget($),m=zC.getEmitModuleKind($),E=zC.getUseDefineForClassFields($),y=zC.getAllowSyntheticDefaultImports($),ee=zC.getStrictOptionValue($,"strictNullChecks"),M=zC.getStrictOptionValue($,"strictFunctionTypes"),S=zC.getStrictOptionValue($,"strictBindCallApply"),h=zC.getStrictOptionValue($,"strictPropertyInitialization"),te=zC.getStrictOptionValue($,"noImplicitAny"),v=zC.getStrictOptionValue($,"noImplicitThis"),T=zC.getStrictOptionValue($,"useUnknownInCatchVariables"),N=!!$.keyofStringsOnly,L=$.suppressExcessPropertyErrors?0:8192,re=$.exactOptionalPropertyTypes,A=(r=zC.createBinaryExpressionTrampoline(function(e,t,r){t?(t.stackIndex++,t.skip=!1,P(t,void 0),I(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if(zC.isInJSFile(e)&&zC.getAssignedExpandoInitializer(e))return t.skip=!0,I(t,Ix(e.right,r)),t;return function(e){var t=e.left,r=e.operatorToken,e=e.right;60===r.kind&&(!zC.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind||LC(t,zC.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,zC.tokenToString(t.operatorToken.kind),zC.tokenToString(r.kind)),!zC.isBinaryExpression(e)||56!==e.operatorToken.kind&&55!==e.operatorToken.kind||LC(e,zC.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,zC.tokenToString(e.operatorToken.kind),zC.tokenToString(r.kind)))}(e),63!==e.operatorToken.kind||205!==e.left.kind&&204!==e.left.kind||(t.skip=!0,I(t,ux(e.left,Ix(e.right,r),r,108===e.right.kind))),t},function(e,t,r){if(!t.skip)return F(t,e)},function(e,t,r){{var n;t.skip||(n=w(t),zC.Debug.assertIsDefined(n),P(t,n),I(t,void 0),55!==(e=e.kind)&&56!==e&&60!==e||(55===e&&(e=zC.walkUpParenthesizedExpressions(r.parent),qD(r.left,zC.isIfStatement(e)?e.thenStatement:void 0)),WD(n,r.left)))}},function(e,t,r){if(!t.skip)return F(t,e)},function(e,t){{var r,n;e=t.skip?w(t):(r=function(e){return e.typeStack[e.stackIndex]}(t),zC.Debug.assertIsDefined(r),n=w(t),zC.Debug.assertIsDefined(n),dx(e.left,e.operatorToken,e.right,r,n,e))}return t.skip=!1,P(t,void 0),I(t,void 0),t.stackIndex--,e},function(e,t,r){return I(e,t),e}),function(e,t){t=r(e,t);return zC.Debug.assertIsDefined(t),t});function F(e,t){if(zC.isBinaryExpression(t))return t;I(e,Ix(t,e.checkMode))}function P(e,t){e.typeStack[e.stackIndex]=t}function w(e){return e.typeStack[e.stackIndex+1]}function I(e,t){e.typeStack[e.stackIndex+1]=t}var R=function(){var c,e=b.getResolvedTypeReferenceDirectives();e&&(c=new zC.Map,e.forEach(function(e,t,r){e&&e.resolvedFileName&&(e=b.getSourceFile(e.resolvedFileName))&&function e(t,r,n){if(c.has(t.path))return;c.set(t.path,[r,n]);for(var i=0,a=t.referencedFiles;i<a.length;i++){var o=a[i],s=o.fileName,o=o.resolutionMode,s=zC.resolveTripleslashReference(s,t.fileName),s=b.getSourceFile(s);s&&e(s,r,o||t.impliedNodeFormat)}}(e,t,r)}));return{getReferencedExportContainer:wT,getReferencedImportDeclaration:IT,getReferencedDeclarationWithCollidingName:MT,isDeclarationWithCollidingName:LT,isValueAliasDeclaration:function(e){e=zC.getParseTreeNode(e);return!e||RT(e)},hasGlobalName:rC,isReferencedAliasDeclaration:function(e,t){e=zC.getParseTreeNode(e);return!e||zT(e,t)},getNodeCheckFlags:function(e){e=zC.getParseTreeNode(e);return e?HT(e):0},isTopLevelValueImportEqualsWithEntityName:BT,isDeclarationVisible:fo,isImplementationOfOverload:KT,isRequiredInitializedParameter:UT,isOptionalUninitializedParameterProperty:VT,isExpandoFunctionDeclaration:qT,getPropertiesOfContainerFunction:WT,createTypeOfDeclaration:$T,createReturnTypeOfSignatureDeclaration:eC,createTypeOfExpression:tC,createLiteralConstValue:oC,isSymbolAccessible:Wa,isEntityNameVisible:Za,getConstantValue:function(e){e=zC.getParseTreeNode(e,QT);return e?XT(e):void 0},collectLinkedAliases:go,getReferencedValueDeclaration:iC,getTypeReferenceSerializationKind:ZT,isOptionalParameter:Nl,moduleExportsSomeValue:PT,isArgumentsLocalBinding:FT,getExternalModuleFileFromDeclaration:function(e){e=zC.getParseTreeNode(e,zC.hasPossibleExternalModuleReference);return e&&lC(e)},getTypeReferenceDirectivesForEntityName:function(e){if(!c)return;var t=790504;(79===e.kind&&Gg(e)||206===e.kind&&!function(e){return e.parent&&228===e.parent.kind&&e.parent.parent&&291===e.parent.parent.kind}(e))&&(t=1160127);e=ra(e,t,!0);return e&&e!==We?r(e,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:aC,isLateBound:function(e){e=zC.getParseTreeNode(e,zC.isDeclaration),e=e&&ba(e);return!!(e&&4096&zC.getCheckFlags(e))},getJsxFactoryEntity:sC,getJsxFragmentFactoryEntity:cC,getAllAccessorDeclarations:function(e){var t=173===(e=zC.getParseTreeNode(e,zC.isGetOrSetAccessorDeclaration)).kind?172:173,t=zC.getDeclarationOfKind(ba(e),t);return{firstAccessor:t&&t.pos<e.pos?t:e,secondAccessor:t&&t.pos<e.pos?e:t,setAccessor:173===e.kind?e:t,getAccessor:172===e.kind?e:t}},getSymbolOfExternalModuleSpecifier:function(e){return aa(e,e,void 0)},isBindingCapturedByNode:function(e,t){e=zC.getParseTreeNode(e),t=zC.getParseTreeNode(t);return!!e&&!!t&&(zC.isVariableDeclaration(t)||zC.isBindingElement(t))&&function(e,t){e=yi(e);return!!e&&zC.contains(e.capturedBlockScopeBindings,ba(t))}(e,t)},getDeclarationStatementsForSourceFile:function(e,t,r,n){var i=zC.getParseTreeNode(e);zC.Debug.assert(i&&305===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");i=ba(e);return i?i.exports?j.symbolTableToDeclarationStatements(i.exports,e,t,r,n):[]:e.locals?j.symbolTableToDeclarationStatements(e.locals,e,t,r,n):[]},isImportRequiredByAugmentation:function(e){var t=zC.getSourceFileOfNode(e);if(!t.symbol)return!1;var r=lC(e);if(!r)return!1;if(r===t)return!1;for(var t=ma(t.symbol),n=0,i=zC.arrayFrom(t.values());n<i.length;n++){var a=i[n];if(a.mergeId){a=va(a);if(a.declarations)for(var o=0,s=a.declarations;o<s.length;o++){var c=s[o];if(zC.getSourceFileOfNode(c)===r)return!0}}}return!1}};function r(e,t){if(c&&function(e){if(!e.declarations)return!1;var t=e;for(;;){var r=xa(t);if(!r)break;t=r}if(t.valueDeclaration&&305===t.valueDeclaration.kind&&512&t.flags)return!1;for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n],a=zC.getSourceFileOfNode(a);if(c.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=zC.getSourceFileOfNode(a),a=c.get(a.path);if(!a)return;(r=r||[]).push(a)}}return r}}}(),j={typeToTypeNode:function(t,e,r,n){return J(e,r,n,function(e){return U(t,e)})},indexInfoToIndexSignatureDeclaration:function(t,e,r,n){return J(e,r,n,function(e){return G(t,e,void 0)})},signatureToSignatureDeclaration:function(t,r,e,n,i){return J(e,n,i,function(e){return Q(t,r,e)})},symbolToEntityName:function(t,r,e,n,i){return J(e,n,i,function(e){return de(t,e,r,!1)})},symbolToExpression:function(t,r,e,n,i){return J(e,n,i,function(e){return pe(t,e,r)})},symbolToTypeParameterDeclarations:function(t,e,r,n){return J(e,r,n,function(e){return se(t,e)})},symbolToParameterDeclaration:function(t,e,r,n){return J(e,r,n,function(e){return ne(t,e)})},typeParameterToDeclaration:function(t,e,r,n){return J(e,r,n,function(e){return Y(t,e)})},symbolTableToDeclarationStatements:function(t,e,r,n,i){return J(e,r,n,function(e){return function(e,h,v){var b=r(zC.factory.createPropertyDeclaration,169,!0),x=r(function(e,t,r,n,i){return zC.factory.createPropertySignature(t,r,n,i)},168,!1),D=h.enclosingDeclaration,l=[],i=new zC.Set,n=[],a=h;(h=__assign(__assign({},a),{usedSymbolNames:new zC.Set(a.usedSymbolNames),remappedSymbolNames:new zC.Map,tracker:__assign(__assign({},a.tracker),{trackSymbol:function(e,t,r){if(0===Wa(e,t,r,!1).accessibility){var n=oe(e,h,r);4&e.flags||S(n[0])}else if(a.tracker&&a.tracker.trackSymbol)return a.tracker.trackSymbol(e,t,r);return!1}})})).tracker=z(h,h.tracker),zC.forEachEntry(e,function(e,t){R(e,zC.unescapeLeadingUnderscores(t))});var c=!v,t=e.get("export=");t&&1<e.size&&2097152&t.flags&&(e=zC.createSymbolTable()).set("export=",t);return d(e),function(e){e=function(o){var e=zC.findIndex(o,function(e){return zC.isExportDeclaration(e)&&!e.moduleSpecifier&&!e.assertClause&&!!e.exportClause&&zC.isNamedExports(e.exportClause)});{var t,r;0<=e&&(t=o[e],r=zC.mapDefined(t.exportClause.elements,function(t){if(!t.propertyName){var e=zC.indicesOf(o),e=zC.filter(e,function(e){return zC.nodeHasName(o[e],t.name)});if(zC.length(e)&&zC.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|zC.getEffectiveModifierFlags(a)),zC.factory.updateModifiers(a,i))}return}}var a;return t}),zC.length(r)?o[e]=zC.factory.updateExportDeclaration(t,t.decorators,t.modifiers,t.isTypeOnly,zC.factory.updateNamedExports(t.exportClause,r),t.moduleSpecifier,t.assertClause):zC.orderedRemoveItemAt(o,e))}return o}(e=function(e){var t=zC.filter(e,function(e){return zC.isExportDeclaration(e)&&!e.moduleSpecifier&&!!e.exportClause&&zC.isNamedExports(e.exportClause)});1<zC.length(t)&&(r=zC.filter(e,function(e){return!zC.isExportDeclaration(e)||!!e.moduleSpecifier||!e.exportClause}),e=__spreadArray(__spreadArray([],r,!0),[zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports(zC.flatMap(t,function(e){return zC.cast(e.exportClause,zC.isNamedExports).elements})),void 0)],!1));var r=zC.filter(e,function(e){return zC.isExportDeclaration(e)&&!!e.moduleSpecifier&&!!e.exportClause&&zC.isNamedExports(e.exportClause)});if(1<zC.length(r)){t=zC.group(r,function(e){return zC.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=__spreadArray(__spreadArray([],zC.filter(e,function(e){return-1===t.indexOf(e)}),!0),[zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports(zC.flatMap(t,function(e){return zC.cast(e.exportClause,zC.isNamedExports).elements})),t[0].moduleSpecifier)],!1))}(i[n])}return e}(e=function(e){var t=zC.find(e,zC.isExportAssignment),r=zC.findIndex(e,zC.isModuleDeclaration),n=-1!==r?e[r]:void 0;{var i,a,o,s;n&&t&&t.isExportEquals&&zC.isIdentifier(t.expression)&&zC.isIdentifier(n.name)&&zC.idText(n.name)===zC.idText(t.expression)&&n.body&&zC.isModuleBlock(n.body)&&(i=zC.filter(e,function(e){return!!(1&zC.getEffectiveModifierFlags(e))}),a=n.name,o=n.body,zC.length(i)&&(n=zC.factory.updateModuleDeclaration(n,n.decorators,n.modifiers,n.name,o=zC.factory.updateModuleBlock(o,zC.factory.createNodeArray(__spreadArray(__spreadArray([],n.body.statements,!0),[zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports(zC.map(zC.flatMap(i,function(e){if(zC.isVariableStatement(e))return zC.filter(zC.map(e.declarationList.declarations,zC.getNameOfDeclaration),u);return zC.filter([zC.getNameOfDeclaration(e)],u)}),function(e){return zC.factory.createExportSpecifier(!1,void 0,e)})),void 0)],!1)))),e=__spreadArray(__spreadArray(__spreadArray([],e.slice(0,r),!0),[n],!1),e.slice(r+1),!0)),zC.find(e,function(e){return e!==n&&zC.nodeHasName(e,a)})||(l=[],s=!zC.some(o.statements,function(e){return zC.hasSyntacticModifier(e,1)||zC.isExportAssignment(e)||zC.isExportDeclaration(e)}),zC.forEach(o.statements,function(e){T(e,s?1:0)}),e=__spreadArray(__spreadArray([],zC.filter(e,function(e){return e!==n&&e!==t}),!0),l,!0)))}return e}(e))),D&&(zC.isSourceFile(D)&&zC.isExternalOrCommonJsModule(D)||zC.isModuleDeclaration(D))&&(!zC.some(e,zC.isExternalModuleIndicator)||!zC.hasScopeMarker(e)&&zC.some(e,zC.needsScopeMarker))&&e.push(zC.createEmptyExports(zC.factory));return e}(l);function u(e){return!!e&&79===e.kind}function s(e){return zC.isEnumDeclaration(e)||zC.isVariableStatement(e)||zC.isFunctionDeclaration(e)||zC.isClassDeclaration(e)||zC.isModuleDeclaration(e)&&!zC.isExternalModuleAugmentation(e)&&!zC.isGlobalScopeAugmentation(e)||zC.isInterfaceDeclaration(e)||mT(e)}function _(e){var t=-2&zC.getEffectiveModifierFlags(e);return zC.factory.updateModifiers(e,t)}function d(e,t,r){t||n.push(new zC.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=va(e);i.has(ek(n))||(i.add(ek(n)),(!t||zC.length(e.declarations)&&zC.some(e.declarations,function(e){return!!zC.findAncestor(e,function(e){return e===D})}))&&(h=function(e){e=__assign({},e);e.typeParameterNames&&(e.typeParameterNames=new zC.Map(e.typeParameterNames));e.typeParameterNamesByText&&(e.typeParameterNamesByText=new zC.Set(e.typeParameterNamesByText));e.typeParameterSymbolList&&(e.typeParameterSymbolList=new zC.Set(e.typeParameterSymbolList));return e.tracker=z(e,e.tracker),e}(n=h),function(e,t,r){var n,i=zC.unescapeLeadingUnderscores(e.escapedName),a="default"===e.escapedName;if(t&&!(131072&h.flags)&&zC.isStringANonContextualKeyword(i)&&!a)return h.encounteredError=!0;var o=a&&!!(-113&e.flags||16&e.flags&&zC.length(Jc(_s(e))))&&!(2097152&e.flags),s=!o&&!t&&zC.isStringANonContextualKeyword(i)&&!a;(o||s)&&(t=!0);var c=(t?0:1)|(a&&!o?512:0),l=1536&e.flags&&7&e.flags&&"export="!==e.escapedName,u=l&&P(_s(e),e);(8208&e.flags||u)&&k(_s(e),e,R(e,i),c);524288&e.flags&&function(e,t,r){var n=Fs(e),i=mi(e).typeParameters,a=zC.map(i,function(e){return Y(e,h)}),o=null===(c=e.declarations)||void 0===c?void 0:c.find(zC.isJSDocTypeAlias),s=zC.getTextOfJSDocComment(o?o.comment||o.parent.comment:void 0),i=h.flags;h.flags|=8388608;var c=h.enclosingDeclaration,n=(h.enclosingDeclaration=o)&&o.typeExpression&&zC.isJSDocTypeExpression(o.typeExpression)&&xe(h,o.typeExpression.type,S,v)||U(n,h);T(zC.setSyntheticLeadingComments(zC.factory.createTypeAliasDeclaration(void 0,void 0,R(e,t),a,n),s?[{kind:3,text:"*\n * "+s.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),h.flags=i,h.enclosingDeclaration=c}(e,i,c);{var _,d,p,f;!(7&e.flags&&"export="!==e.escapedName)||4194304&e.flags||32&e.flags||u||(r?F(e)&&(o=s=!1):(_=_s(e),d=R(e,i),16&e.flags||!P(_,e)?(a=2&e.flags?ey(e)?2:1:null!==(p=e.parent)&&void 0!==p&&p.valueDeclaration&&zC.isSourceFile(null===(f=e.parent)||void 0===f?void 0:f.valueDeclaration)?2:void 0,r=!o&&4&e.flags?L(d,e):d,(p=e.declarations&&zC.find(e.declarations,function(e){return zC.isVariableDeclaration(e)}))&&zC.isVariableDeclarationList(p.parent)&&1===p.parent.declarations.length&&(p=p.parent.parent),(f=null===(f=e.declarations)||void 0===f?void 0:f.find(zC.isPropertyAccessExpression))&&zC.isBinaryExpression(f.parent)&&zC.isIdentifier(f.parent.right)&&null!==(n=_.symbol)&&void 0!==n&&n.valueDeclaration&&zC.isSourceFile(_.symbol.valueDeclaration)?(f=d===f.parent.right.escapedText?void 0:f.parent.right,T(zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports([zC.factory.createExportSpecifier(!1,f,d)])),0),h.tracker.trackSymbol(_.symbol,h.enclosingDeclaration,111551)):(T(zC.setTextRange(zC.factory.createVariableStatement(void 0,zC.factory.createVariableDeclarationList([zC.factory.createVariableDeclaration(r,void 0,ve(h,_,e,D,S,v))],a)),p),r!==d?-2&c:c),r===d||t||(T(zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports([zC.factory.createExportSpecifier(!1,r,d)])),0),o=s=!1))):k(_,e,d,c)))}384&e.flags&&function(e,t,r){T(zC.factory.createEnumDeclaration(void 0,zC.factory.createModifiersFromModifierFlags(sx(e)?2048:0),R(e,t),zC.map(zC.filter(Jc(_s(e)),function(e){return!!(8&e.flags)}),function(e){var t=e.declarations&&e.declarations[0]&&zC.isEnumMember(e.declarations[0])?XT(e.declarations[0]):void 0;return zC.factory.createEnumMember(zC.unescapeLeadingUnderscores(e.escapedName),void 0===t?void 0:"string"==typeof t?zC.factory.createStringLiteral(t):zC.factory.createNumericLiteral(t))})),r)}(e,i,c);32&e.flags&&(4&e.flags&&e.valueDeclaration&&zC.isBinaryExpression(e.valueDeclaration.parent)&&zC.isClassExpression(e.valueDeclaration.parent.right)?A:function(e,t,r){var n=null===(d=e.declarations)||void 0===d?void 0:d.find(zC.isClassLike),i=h.enclosingDeclaration;h.enclosingDeclaration=n||i;var a=vs(e),o=zC.map(a,function(e){return Y(e,h)}),s=Es(p=As(e)),c=(_=n&&zC.getEffectiveImplementsTypeNodes(n))&&function(e){var t=zC.mapDefined(e,function(e){var t=h.enclosingDeclaration,r=(h.enclosingDeclaration=e).expression;if(zC.isEntityNameExpression(r)){if(zC.isIdentifier(r)&&""===zC.idText(r))return a(void 0);var n,i=(n=be(r,h,S)).introducesError,r=n.node;if(i)return a(void 0)}return a(zC.factory.createExpressionWithTypeArguments(r,zC.map(e.typeArguments,function(e){return xe(h,e,S,v)||U(Id(e),h)})));function a(e){return h.enclosingDeclaration=t,e}});return t.length!==e.length?void 0:t}(_)||zC.mapDefined(function(e){var t=zC.emptyArray;if(e.symbol.declarations)for(var r=0,n=e.symbol.declarations;r<n.length;r++){var i=n[r],i=zC.getEffectiveImplementsTypeNodes(i);if(i)for(var a=0,o=i;a<o.length;a++){var s=Id(o[a]);Do(s)||(t===zC.emptyArray?t=[s]:t.push(s))}}return t}(p),M),l=_s(e),u=(a=!(null===(d=l.symbol)||void 0===d||!d.valueDeclaration)&&zC.isClassLike(l.symbol.valueDeclaration))?Cs(l):Xe,n=__spreadArray(__spreadArray([],zC.length(s)?[zC.factory.createHeritageClause(94,zC.map(s,function(e){return function(e,t,r){e=O(e,111551);if(e)return e;r=L("".concat(r,"_base"));return T(zC.factory.createVariableStatement(undefined,zC.factory.createVariableDeclarationList([zC.factory.createVariableDeclaration(r,undefined,U(t,h))],2)),0),zC.factory.createExpressionWithTypeArguments(zC.factory.createIdentifier(r),void 0)}(e,u,t)}))]:[],!0),zC.length(c)?[zC.factory.createHeritageClause(117,c)]:[],!0),_=function(e,t,r){if(!zC.length(t))return r;var n=new zC.Map;zC.forEach(r,function(e){n.set(e.escapedName,e)});for(var i=0,a=t;i<a.length;i++)for(var o=Jc(nc(a[i],e.thisType)),s=0,c=o;s<c.length;s++){var l=c[s],u=n.get(l.escapedName);u&&l.parent===u.parent&&n.delete(l.escapedName)}return zC.arrayFrom(n.values())}(p,s,Jc(p)),d=zC.filter(_,function(e){e=e.valueDeclaration;return!(!e||zC.isNamedDeclaration(e)&&zC.isPrivateIdentifier(e.name))}),c=zC.some(_,function(e){e=e.valueDeclaration;return!!e&&zC.isNamedDeclaration(e)&&zC.isPrivateIdentifier(e.name)})?[zC.factory.createPropertyDeclaration(void 0,void 0,zC.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:zC.emptyArray,_=zC.flatMap(d,function(e){return b(e,!1,s[0])}),d=zC.flatMap(zC.filter(Jc(l),function(e){return!(4194304&e.flags||"prototype"===e.escapedName||N(e))}),function(e){return b(e,!0,u)}),l=!a&&e.valueDeclaration&&zC.isInJSFile(e.valueDeclaration)&&!zC.some(pl(l,1))?[zC.factory.createConstructorDeclaration(void 0,zC.factory.createModifiersFromModifierFlags(8),[],void 0)]:w(1,l,u,171),p=I(p,s[0]);h.enclosingDeclaration=i,T(zC.setTextRange(zC.factory.createClassDeclaration(void 0,void 0,t,o,n,__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],p,!0),d,!0),l,!0),_,!0),c,!0)),e.declarations&&zC.filter(e.declarations,function(e){return zC.isClassDeclaration(e)||zC.isClassExpression(e)})[0]),r)})(e,R(e,i),c);(1536&e.flags&&(!l||function(e){return zC.every(C(e),function(e){return!(111551&Hi(e).flags)})}(e))||u)&&function(a,e,t){var o,r,n=C(a),n=(i=zC.arrayToMultiMap(n,function(e){return e.parent&&e.parent===a?"real":"merged"})).get("real")||zC.emptyArray,i=i.get("merged")||zC.emptyArray;zC.length(n)&&(r=R(a,e),E(n,r,t,!!(67108880&a.flags))),zC.length(i)&&(o=zC.getSourceFileOfNode(h.enclosingDeclaration),r=R(a,e),i=zC.factory.createModuleBlock([zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports(zC.mapDefined(zC.filter(i,function(e){return"export="!==e.escapedName}),function(e){var t=zC.unescapeLeadingUnderscores(e.escapedName),r=R(e,t),n=e.declarations&&Fi(e);if(!o||(n?o===zC.getSourceFileOfNode(n):zC.some(e.declarations,function(e){return zC.getSourceFileOfNode(e)===o}))){var i=n&&qi(n,!0);S(i||e);var i=i?R(i,zC.unescapeLeadingUnderscores(i.escapedName)):r;return zC.factory.createExportSpecifier(!1,t===i?void 0:i,t)}null!==(t=null===(i=h.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)&&void 0!==t&&t.call(i,o,a,e)})))]),T(zC.factory.createModuleDeclaration(void 0,void 0,zC.factory.createIdentifier(r),i,16),0))}(e,i,c);64&e.flags&&!(32&e.flags)&&function(e,t,r){var n=As(e),i=vs(e),a=zC.map(i,function(e){return Y(e,h)}),o=Es(n),s=zC.length(o)?x_(o):void 0,c=zC.flatMap(Jc(n),function(e){return x(e,!1,s)}),l=w(0,n,s,174),i=w(1,n,s,175),n=I(n,s),o=zC.length(o)?[zC.factory.createHeritageClause(94,zC.mapDefined(o,function(e){return O(e,111551)}))]:void 0;T(zC.factory.createInterfaceDeclaration(void 0,void 0,R(e,t),a,o,__spreadArray(__spreadArray(__spreadArray(__spreadArray([],n,!0),i,!0),l,!0),c,!0)),r)}(e,i,c);2097152&e.flags&&A(e,R(e,i),c);4&e.flags&&"export="===e.escapedName&&F(e);if(8388608&e.flags&&e.declarations)for(var g=0,m=e.declarations;g<m.length;g++){var y=m[g],y=ia(y,y.moduleSpecifier);y&&T(zC.factory.createExportDeclaration(void 0,void 0,!1,void 0,zC.factory.createStringLiteral(le(y,h))),0)}o?T(zC.factory.createExportAssignment(void 0,void 0,!1,zC.factory.createIdentifier(R(e,i))),0):s&&T(zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports([zC.factory.createExportSpecifier(!1,R(e,i),i)])),0)}(e,t,r),h.reportedDiagnostic&&(a.reportedDiagnostic=h.reportedDiagnostic),h=n))}function S(e){var t;zC.some(e.declarations,zC.isParameterDeclaration)||(zC.Debug.assertIsDefined(n[n.length-1]),L(zC.unescapeLeadingUnderscores(e.escapedName),e),t=!!(2097152&e.flags)&&!zC.some(e.declarations,function(e){return!!zC.findAncestor(e,zC.isExportDeclaration)||zC.isNamespaceExport(e)||zC.isImportEqualsDeclaration(e)&&!zC.isExternalModuleReference(e.moduleReference)}),n[t?0:n.length-1].set(ek(e),e))}function T(e,t){var r,n,i;zC.canHaveModifiers(e)&&(r=0,n=h.enclosingDeclaration&&(zC.isJSDocTypeAlias(h.enclosingDeclaration)?zC.getSourceFileOfNode(h.enclosingDeclaration):h.enclosingDeclaration),1&t&&n&&(i=n,zC.isSourceFile(i)&&(zC.isExternalOrCommonJsModule(i)||zC.isJsonSourceFile(i))||zC.isAmbientModule(i)&&!zC.isGlobalScopeAugmentation(i)||zC.isModuleDeclaration(n))&&s(e)&&(r|=1),!c||1&r||n&&16777216&n.flags||!(zC.isEnumDeclaration(e)||zC.isVariableStatement(e)||zC.isFunctionDeclaration(e)||zC.isClassDeclaration(e)||zC.isModuleDeclaration(e))||(r|=2),512&t&&(zC.isClassDeclaration(e)||zC.isInterfaceDeclaration(e)||zC.isFunctionDeclaration(e))&&(r|=512),r&&(e=zC.factory.updateModifiers(e,r|zC.getEffectiveModifierFlags(e)))),l.push(e)}function C(e){return e.exports?zC.filter(zC.arrayFrom(e.exports.values()),N):[]}function k(e,t,r,n){for(var i=0,a=pl(e,0);i<a.length;i++){var o=a[i],s=Q(o,256,h,{name:zC.factory.createIdentifier(r),privateSymbolVisitor:S,bundledImports:v});T(zC.setTextRange(s,function(e){if(e.declaration&&e.declaration.parent){if(zC.isBinaryExpression(e.declaration.parent)&&5===zC.getAssignmentDeclarationKind(e.declaration.parent))return e.declaration.parent;if(zC.isVariableDeclaration(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}(o)),n)}1536&t.flags&&t.exports&&t.exports.size||E(zC.filter(Jc(e),N),r,n,!0)}function E(e,t,r,n){var i,a,o,s;zC.length(e)&&(i=zC.arrayToMultiMap(e,function(e){return!zC.length(e.declarations)||zC.some(e.declarations,function(e){return zC.getSourceFileOfNode(e)===zC.getSourceFileOfNode(h.enclosingDeclaration)})?"local":"remote"}).get("local")||zC.emptyArray,s=zC.parseNodeFactory.createModuleDeclaration(void 0,void 0,zC.factory.createIdentifier(t),zC.factory.createModuleBlock([]),16),zC.setParent(s,D),s.locals=zC.createSymbolTable(e),s.symbol=e[0].parent,a=l,o=c,c=!(l=[]),t=__assign(__assign({},h),{enclosingDeclaration:s}),e=h,h=t,d(zC.createSymbolTable(i),n,!0),h=e,c=o,o=l,l=a,o=zC.map(o,function(e){return zC.isExportAssignment(e)&&!e.isExportEquals&&zC.isIdentifier(e.expression)?zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports([zC.factory.createExportSpecifier(!1,e.expression,zC.factory.createIdentifier("default"))])):e}),o=zC.every(o,function(e){return zC.hasSyntacticModifier(e,1)})?zC.map(o,_):o,T(s=zC.factory.updateModuleDeclaration(s,s.decorators,s.modifiers,s.name,zC.factory.createModuleBlock(o)),r))}function N(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&zC.isStatic(e.valueDeclaration)&&zC.isClassLike(e.valueDeclaration.parent))}function A(e,t,r){var n=Fi(e);if(!n)return zC.Debug.fail();var i=va(qi(n,!0));if(i){var a,o=zC.isShorthandAmbientModuleSymbol(i)&&(a=e.declarations,zC.firstDefined(a,function(e){if(zC.isImportSpecifier(e)||zC.isExportSpecifier(e))return zC.idText(e.propertyName||e.name);if(zC.isBinaryExpression(e)||zC.isExportAssignment(e)){var t=zC.isExportAssignment(e)?e.expression:e.right;if(zC.isPropertyAccessExpression(t))return zC.idText(t.name)}if(Pi(e)){e=zC.getNameOfDeclaration(e);if(e&&zC.isIdentifier(e))return zC.idText(e)}}))||zC.unescapeLeadingUnderscores(i.escapedName);"export="===o&&(zC.getESModuleInterop($)||$.allowSyntheticDefaultImports)&&(o="default");var s=R(i,o);switch(S(i),n.kind){case 203:if(254===(null===(l=null===(c=n.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)){var c=le(i.parent||i,h),l=n.propertyName;T(zC.factory.createImportDeclaration(void 0,void 0,zC.factory.createImportClause(!1,void 0,zC.factory.createNamedImports([zC.factory.createImportSpecifier(!1,l&&zC.isIdentifier(l)?zC.factory.createIdentifier(zC.idText(l)):void 0,zC.factory.createIdentifier(t))])),zC.factory.createStringLiteral(c),void 0),0);break}zC.Debug.failBadSyntaxKind((null===(u=n.parent)||void 0===u?void 0:u.parent)||n,"Unhandled binding element grandparent kind in declaration serialization");break;case 297:221===(null===(d=null===(_=n.parent)||void 0===_?void 0:_.parent)||void 0===d?void 0:d.kind)&&f(zC.unescapeLeadingUnderscores(e.escapedName),s);break;case 254:if(zC.isPropertyAccessExpression(n.initializer)){var u=n.initializer,_=zC.factory.createUniqueName(t),d=le(i.parent||i,h);T(zC.factory.createImportEqualsDeclaration(void 0,void 0,!1,_,zC.factory.createExternalModuleReference(zC.factory.createStringLiteral(d))),0),T(zC.factory.createImportEqualsDeclaration(void 0,void 0,!1,zC.factory.createIdentifier(t),zC.factory.createQualifiedName(_,u.name)),r);break}case 265:if("export="===i.escapedName&&zC.some(i.declarations,zC.isJsonSourceFile)){F(e);break}var p=!(512&i.flags||zC.isVariableDeclaration(n));T(zC.factory.createImportEqualsDeclaration(void 0,void 0,!1,zC.factory.createIdentifier(t),p?de(i,h,67108863,!1):zC.factory.createExternalModuleReference(zC.factory.createStringLiteral(le(i,h)))),p?r:0);break;case 264:T(zC.factory.createNamespaceExportDeclaration(zC.idText(n.name)),0);break;case 267:T(zC.factory.createImportDeclaration(void 0,void 0,zC.factory.createImportClause(!1,zC.factory.createIdentifier(t),void 0),zC.factory.createStringLiteral(le(i.parent||i,h)),void 0),0);break;case 268:T(zC.factory.createImportDeclaration(void 0,void 0,zC.factory.createImportClause(!1,void 0,zC.factory.createNamespaceImport(zC.factory.createIdentifier(t))),zC.factory.createStringLiteral(le(i,h)),void 0),0);break;case 274:T(zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamespaceExport(zC.factory.createIdentifier(t)),zC.factory.createStringLiteral(le(i,h))),0);break;case 270:T(zC.factory.createImportDeclaration(void 0,void 0,zC.factory.createImportClause(!1,void 0,zC.factory.createNamedImports([zC.factory.createImportSpecifier(!1,t!==o?zC.factory.createIdentifier(o):void 0,zC.factory.createIdentifier(t))])),zC.factory.createStringLiteral(le(i.parent||i,h)),void 0),0);break;case 275:p=n.parent.parent.moduleSpecifier;f(zC.unescapeLeadingUnderscores(e.escapedName),p?o:s,p&&zC.isStringLiteralLike(p)?zC.factory.createStringLiteral(p.text):void 0);break;case 271:F(e);break;case 221:case 206:case 207:"default"===e.escapedName||"export="===e.escapedName?F(e):f(t,s);break;default:return zC.Debug.failBadSyntaxKind(n,"Unhandled alias declaration kind in symbol serializer!")}}}function f(e,t,r){T(zC.factory.createExportDeclaration(void 0,void 0,!1,zC.factory.createNamedExports([zC.factory.createExportSpecifier(!1,e!==t?t:void 0,e)]),r),0)}function F(e){if(4194304&e.flags)return!1;var t=zC.unescapeLeadingUnderscores(e.escapedName),r="export="===t,n=r||"default"===t,i=e.declarations&&Fi(e),a=i&&qi(i,!0);if(a&&zC.length(a.declarations)&&zC.some(a.declarations,function(e){return zC.getSourceFileOfNode(e)===zC.getSourceFileOfNode(D)})){var o=i&&(zC.isExportAssignment(i)||zC.isBinaryExpression(i)?zC.getExportAssignmentExpression(i):zC.getPropertyAssignmentAliasLikeExpression(i)),i=o&&zC.isEntityNameExpression(o)?function(e){switch(e.kind){case 79:return e;case 161:for(;e=e.left,79!==e.kind;);return e;case 206:do{if(zC.isModuleExportsAccessExpression(e.expression)&&!zC.isPrivateIdentifier(e.name))return e.name}while(79!==(e=e.expression).kind);return e}}(o):void 0,s=i&&ra(i,67108863,!0,!0,D);(s||a)&&S(s||a);s=h.tracker.trackSymbol;return h.tracker.trackSymbol=function(){return!1},n?l.push(zC.factory.createExportAssignment(void 0,void 0,r,pe(a,h,67108863))):i===o&&i?f(t,zC.idText(i)):o&&zC.isClassExpression(o)?f(t,R(a,zC.symbolName(a))):(c=L(t,e),T(zC.factory.createImportEqualsDeclaration(void 0,void 0,!1,zC.factory.createIdentifier(c),de(a,h,67108863,!1)),0),f(t,c)),h.tracker.trackSymbol=s,!0}var c=L(t,e),s=og(_s(va(e)));return P(s,e)?k(s,e,c,n?0:1):T(zC.factory.createVariableStatement(void 0,zC.factory.createVariableDeclarationList([zC.factory.createVariableDeclaration(c,void 0,ve(h,s,e,D,S,v))],2)),a&&4&a.flags&&"export="===a.escapedName?2:t===c?1:0),n?(l.push(zC.factory.createExportAssignment(void 0,void 0,r,zC.factory.createIdentifier(c))),!0):t!==c&&(f(t,c),!0)}function P(e,t){var r=zC.getSourceFileOfNode(h.enclosingDeclaration);return 48&zC.getObjectFlags(e)&&!zC.length(hl(e))&&!oo(e)&&!(!zC.length(zC.filter(Jc(e),N))&&!zC.length(pl(e,0)))&&!zC.length(pl(e,1))&&!ye(t,D)&&!(e.symbol&&zC.some(e.symbol.declarations,function(e){return zC.getSourceFileOfNode(e)!==r}))&&!zC.some(Jc(e),function(e){return Qs(e.escapedName)})&&!zC.some(Jc(e),function(e){return zC.some(e.declarations,function(e){return zC.getSourceFileOfNode(e)!==r})})&&zC.every(Jc(e),function(e){return zC.isIdentifierText(zC.symbolName(e),B)})}function r(f,g,m){return function(e,t,r){var n,i=zC.getDeclarationModifierFlagsFromSymbol(e),a=!!(8&i);if(t&&2887656&e.flags)return[];if(4194304&e.flags||r&&_l(r,e.escapedName)&&Xb(_l(r,e.escapedName))===Xb(e)&&(16777216&e.flags)==(16777216&_l(r,e.escapedName).flags)&&pp(_s(e),bo(r,e.escapedName)))return[];var o=-257&i|(t?32:0),s=me(e,h),r=null===(n=e.declarations)||void 0===n?void 0:n.find(zC.or(zC.isPropertyDeclaration,zC.isAccessor,zC.isVariableDeclaration,zC.isPropertySignature,zC.isBinaryExpression,zC.isPropertyAccessExpression));if(98304&e.flags&&m){t=[];return 65536&e.flags&&t.push(zC.setTextRange(zC.factory.createSetAccessorDeclaration(void 0,zC.factory.createModifiersFromModifierFlags(o),s,[zC.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,a?void 0:ve(h,_s(e),e,D,S,v))],void 0),(null===(n=e.declarations)||void 0===n?void 0:n.find(zC.isSetAccessor))||r)),32768&e.flags&&(i=8&i,t.push(zC.setTextRange(zC.factory.createGetAccessorDeclaration(void 0,zC.factory.createModifiersFromModifierFlags(o),s,[],i?void 0:ve(h,_s(e),e,D,S,v),void 0),(null===(i=e.declarations)||void 0===i?void 0:i.find(zC.isGetAccessor))||r))),t}if(98311&e.flags)return zC.setTextRange(f(void 0,zC.factory.createModifiersFromModifierFlags((Xb(e)?64:0)|o),s,16777216&e.flags?zC.factory.createToken(57):void 0,a?void 0:ve(h,_s(e),e,D,S,v),void 0),(null===(c=e.declarations)||void 0===c?void 0:c.find(zC.or(zC.isPropertyDeclaration,zC.isVariableDeclaration)))||r);if(8208&e.flags){var c=pl(_s(e),0);if(8&o)return zC.setTextRange(f(void 0,zC.factory.createModifiersFromModifierFlags((Xb(e)?64:0)|o),s,16777216&e.flags?zC.factory.createToken(57):void 0,void 0,void 0),(null===(r=e.declarations)||void 0===r?void 0:r.find(zC.isFunctionLikeDeclaration))||c[0]&&c[0].declaration||e.declarations&&e.declarations[0]);for(var l=[],u=0,_=c;u<_.length;u++){var d=_[u],p=Q(d,g,h,{name:s,questionToken:16777216&e.flags?zC.factory.createToken(57):void 0,modifiers:o?zC.factory.createModifiersFromModifierFlags(o):void 0}),d=d.declaration&&zC.isPrototypePropertyAssignment(d.declaration.parent)?d.declaration.parent:d.declaration;l.push(zC.setTextRange(p,d))}return l}return zC.Debug.fail("Unhandled class member kind! ".concat(e.__debugFlags||e.flags))}}function w(e,t,r,n){var i=pl(t,e);if(1===e){if(!r&&zC.every(i,function(e){return 0===zC.length(e.parameters)}))return[];if(r){var a=pl(r,1);if(!zC.length(a)&&zC.every(i,function(e){return 0===zC.length(e.parameters)}))return[];if(a.length===i.length){for(var o=!1,s=0;s<a.length;s++)if(!df(i[s],a[s],!1,!1,!0,fp)){o=!0;break}if(!o)return[]}}for(var c=0,l=0,u=i;l<u.length;l++){var _=u[l];_.declaration&&(c|=zC.getSelectedEffectiveModifierFlags(_.declaration,24))}if(c)return[zC.setTextRange(zC.factory.createConstructorDeclaration(void 0,zC.factory.createModifiersFromModifierFlags(c),[],void 0),i[0].declaration)]}for(var d=[],p=0,f=i;p<f.length;p++){var g=f[p],m=Q(g,n,h);d.push(zC.setTextRange(m,g.declaration))}return d}function I(e,t){for(var r=[],n=0,i=hl(e);n<i.length;n++){var a=i[n];if(t){var o=vl(t,a.keyType);if(o&&pp(a.type,o.type))continue}r.push(G(a,h,void 0))}return r}function O(e,t){var r,n;if(e.target&&qa(e.target.symbol,D,t)?(r=zC.map(pu(e),function(e){return U(e,h)}),n=pe(e.target.symbol,h,788968)):e.symbol&&qa(e.symbol,D,t)&&(n=pe(e.symbol,h,788968)),n)return zC.factory.createExpressionWithTypeArguments(n,r)}function M(e){var t=O(e,788968);return t||(e.symbol?zC.factory.createExpressionWithTypeArguments(pe(e.symbol,h,788968),void 0):void 0)}function L(e,t){var r,n=t?ek(t):void 0;if(n&&h.remappedSymbolNames.has(n))return h.remappedSymbolNames.get(n);t&&(e=p(t,e));for(var i=0,a=e;null!==(r=h.usedSymbolNames)&&void 0!==r&&r.has(e);)i++,e="".concat(a,"_").concat(i);return null!==(t=h.usedSymbolNames)&&void 0!==t&&t.add(e),n&&h.remappedSymbolNames.set(n,e),e}function p(e,t){var r;return"default"!==t&&"__class"!==t&&"__function"!==t||(r=h.flags,h.flags|=16777216,e=po(e,h),h.flags=r,t=0<e.length&&zC.isSingleOrDoubleQuote(e.charCodeAt(0))?zC.stripQuotes(e):e),"default"===t?t="_default":"export="===t&&(t="_exports"),t=zC.isIdentifierText(t,B)&&!zC.isStringANonContextualKeyword(t)?t:"_"+t.replace(/[^a-zA-Z0-9]/g,"_")}function R(e,t){var r=ek(e);return h.remappedSymbolNames.has(r)?h.remappedSymbolNames.get(r):(t=p(e,t),h.remappedSymbolNames.set(r,t),t)}}(t,e,i)})}};function J(e,t,r,n){var i,a;zC.Debug.assert(void 0===e||0==(8&e.flags));t={enclosingDeclaration:e,flags:t||0,tracker:r&&r.trackSymbol?r:{trackSymbol:function(){return!1},moduleResolverHost:134217728&t?{getCommonSourceDirectory:b.getCommonSourceDirectory?function(){return b.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return b.getCurrentDirectory()},getSymlinkCache:zC.maybeBind(b,b.getSymlinkCache),getPackageJsonInfoCache:function(){var e;return null===(e=b.getPackageJsonInfoCache)||void 0===e?void 0:e.call(b)},useCaseSensitiveFileNames:zC.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)},getFileIncludeReasons:function(){return b.getFileIncludeReasons()},readFile:b.readFile?function(e){return b.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};t.tracker=z(t,t.tracker);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 z(n,e){var i=e.trackSymbol;return __assign(__assign({},e),{reportCyclicStructureError:t(e.reportCyclicStructureError),reportInaccessibleThisError:t(e.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:t(e.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:t(e.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:t(e.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:t(e.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:t(e.reportNonSerializableProperty),trackSymbol:i&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.apply(void 0,e);return r&&(n.reportedDiagnostic=!0),r}});function t(r){return r&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.reportedDiagnostic=!0,r.apply(void 0,e)}}}function K(e){return e.truncating||(e.truncating=e.approximateLength>(1&e.flags?zC.noTruncationMaximumTruncationLength:zC.defaultMaximumTruncationLength))}function U(e,g){x&&x.throwIfCancellationRequested&&x.throwIfCancellationRequested();var t=8388608&g.flags;if(g.flags&=-8388609,!e)return 262144&g.flags?(g.approximateLength+=3,zC.factory.createKeywordTypeNode(130)):void(g.encounteredError=!0);if(536870912&g.flags||(e=ol(e)),1&e.flags)return e.aliasSymbol?zC.factory.createTypeReferenceNode(function e(t){var r=zC.factory.createIdentifier(zC.unescapeLeadingUnderscores(t.escapedName));return t.parent?zC.factory.createQualifiedName(e(t.parent),r):r}(e.aliasSymbol),H(e.aliasTypeArguments,g)):e===et?zC.addSyntheticLeadingComment(zC.factory.createKeywordTypeNode(130),3,"unresolved"):(g.approximateLength+=3,zC.factory.createKeywordTypeNode(e===rt?138:130));if(2&e.flags)return zC.factory.createKeywordTypeNode(155);if(4&e.flags)return g.approximateLength+=6,zC.factory.createKeywordTypeNode(150);if(8&e.flags)return g.approximateLength+=6,zC.factory.createKeywordTypeNode(147);if(64&e.flags)return g.approximateLength+=6,zC.factory.createKeywordTypeNode(158);if(16&e.flags&&!e.aliasSymbol)return g.approximateLength+=7,zC.factory.createKeywordTypeNode(133);if(1024&e.flags&&!(1048576&e.flags)){var r=xa(e.symbol),n=ue(r,g,788968);if(Rs(r)===e)return n;r=zC.symbolName(e.symbol);return zC.isIdentifierText(r,0)?h(n,zC.factory.createTypeReferenceNode(r,void 0)):zC.isImportTypeNode(n)?(n.isTypeOf=!0,zC.factory.createIndexedAccessTypeNode(n,zC.factory.createLiteralTypeNode(zC.factory.createStringLiteral(r)))):zC.isTypeReferenceNode(n)?zC.factory.createIndexedAccessTypeNode(zC.factory.createTypeQueryNode(n.typeName),zC.factory.createLiteralTypeNode(zC.factory.createStringLiteral(r))):zC.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&e.flags)return ue(e.symbol,g,788968);if(128&e.flags)return g.approximateLength+=e.value.length+2,zC.factory.createLiteralTypeNode(zC.setEmitFlags(zC.factory.createStringLiteral(e.value,!!(268435456&g.flags)),16777216));if(256&e.flags){var i=e.value;return g.approximateLength+=(""+i).length,zC.factory.createLiteralTypeNode(i<0?zC.factory.createPrefixUnaryExpression(40,zC.factory.createNumericLiteral(-i)):zC.factory.createNumericLiteral(i))}if(2048&e.flags)return g.approximateLength+=zC.pseudoBigIntToString(e.value).length+1,zC.factory.createLiteralTypeNode(zC.factory.createBigIntLiteral(e.value));if(512&e.flags)return g.approximateLength+=e.intrinsicName.length,zC.factory.createLiteralTypeNode("true"===e.intrinsicName?zC.factory.createTrue():zC.factory.createFalse());if(8192&e.flags){if(!(1048576&g.flags)){if(Va(e.symbol,g.enclosingDeclaration))return g.approximateLength+=6,ue(e.symbol,g,111551);g.tracker.reportInaccessibleUniqueSymbolError&&g.tracker.reportInaccessibleUniqueSymbolError()}return g.approximateLength+=13,zC.factory.createTypeOperatorNode(154,zC.factory.createKeywordTypeNode(151))}if(16384&e.flags)return g.approximateLength+=4,zC.factory.createKeywordTypeNode(114);if(32768&e.flags)return g.approximateLength+=9,zC.factory.createKeywordTypeNode(153);if(65536&e.flags)return g.approximateLength+=4,zC.factory.createLiteralTypeNode(zC.factory.createNull());if(131072&e.flags)return g.approximateLength+=5,zC.factory.createKeywordTypeNode(143);if(4096&e.flags)return g.approximateLength+=6,zC.factory.createKeywordTypeNode(151);if(67108864&e.flags)return g.approximateLength+=6,zC.factory.createKeywordTypeNode(148);if(zC.isThisTypeParameter(e))return 4194304&g.flags&&(g.encounteredError||32768&g.flags||(g.encounteredError=!0),g.tracker.reportInaccessibleThisError&&g.tracker.reportInaccessibleThisError()),g.approximateLength+=4,zC.factory.createThisTypeNode();if(!t&&e.aliasSymbol&&(16384&g.flags||Ua(e.aliasSymbol,g.enclosingDeclaration))){var a=H(e.aliasTypeArguments,g);return!Oa(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?ue(e.aliasSymbol,g,788968,a):zC.factory.createTypeReferenceNode(zC.factory.createIdentifier(""),a)}r=zC.getObjectFlags(e);if(4&r)return zC.Debug.assert(!!(524288&e.flags)),e.node?p(e,y):y(e);if(262144&e.flags||3&r){if(262144&e.flags&&zC.contains(g.inferTypeParameters,e)){g.approximateLength+=zC.symbolName(e.symbol).length+6;i=void 0,t=Kc(e);return t&&((a=iu(e,!0))&&pp(t,a)||(g.approximateLength+=9,i=t&&U(t,g))),zC.factory.createInferTypeNode(X(e,g,i))}if(4&g.flags&&262144&e.flags&&!Ua(e.symbol,g.enclosingDeclaration)){var o=_e(e,g);return g.approximateLength+=zC.idText(o).length,zC.factory.createTypeReferenceNode(zC.factory.createIdentifier(zC.idText(o)),void 0)}if(e.symbol)return ue(e.symbol,g,788968);o=(e===qt||e===Wt)&&D&&D.symbol?(e===Wt?"sub-":"super-")+zC.symbolName(D.symbol):"?";return zC.factory.createTypeReferenceNode(zC.factory.createIdentifier(o),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){o=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?ht:Is(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&Td(e[n+o-1])===Td(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(lt);32768&r&&t.push(at);return t||e}(e.types):e.types;if(1===zC.length(o))return U(o[0],g);o=H(o,g,!0);return o&&0<o.length?1048576&e.flags?zC.factory.createUnionTypeNode(o):zC.factory.createIntersectionTypeNode(o):void(g.encounteredError||262144&g.flags||(g.encounteredError=!0))}if(48&r)return zC.Debug.assert(!!(524288&e.flags)),m(e);if(4194304&e.flags){var s=e.type;g.approximateLength+=6;var c=U(s,g);return zC.factory.createTypeOperatorNode(140,c)}if(134217728&e.flags){var l=e.texts,u=e.types,r=zC.factory.createTemplateHead(l[0]),s=zC.factory.createNodeArray(zC.map(u,function(e,t){return zC.factory.createTemplateLiteralTypeSpan(U(e,g),(t<u.length-1?zC.factory.createTemplateMiddle:zC.factory.createTemplateTail)(l[t+1]))}));return g.approximateLength+=2,zC.factory.createTemplateLiteralType(r,s)}if(268435456&e.flags){var _=U(e.type,g);return ue(e.symbol,g,788968,[_])}if(8388608&e.flags){_=U(e.objectType,g),c=U(e.indexType,g);return g.approximateLength+=2,zC.factory.createIndexedAccessTypeNode(_,c)}return 16777216&e.flags?p(e,function(e){var t=U(e.checkType,g);if(g.approximateLength+=15,4&g.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){var r=Ia(si(262144,"T")),n=_e(r,g),i=zC.factory.createTypeReferenceNode(n);g.approximateLength+=37;var a=Wd(e.root.checkType,r,e.combinedMapper||e.mapper),o=g.inferTypeParameters;g.inferTypeParameters=e.root.inferTypeParameters;r=U(ip(e.root.extendsType,a),g);g.inferTypeParameters=o;o=d(ip(Id(e.root.node.trueType),a)),a=d(ip(Id(e.root.node.falseType),a));return zC.factory.createConditionalTypeNode(t,zC.factory.createInferTypeNode(zC.factory.createTypeParameterDeclaration(void 0,zC.factory.cloneNode(i.typeName))),zC.factory.createConditionalTypeNode(zC.factory.createTypeReferenceNode(zC.factory.cloneNode(n)),U(e.checkType,g),zC.factory.createConditionalTypeNode(i,r,o,a),zC.factory.createKeywordTypeNode(143)),zC.factory.createKeywordTypeNode(143))}o=g.inferTypeParameters;g.inferTypeParameters=e.root.inferTypeParameters;a=U(e.extendsType,g);g.inferTypeParameters=o;o=d(cd(e)),e=d(ld(e));return zC.factory.createConditionalTypeNode(t,a,o,e)}):33554432&e.flags?U(e.baseType,g):zC.Debug.fail("Should be unreachable.");function d(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)),V(g)):p(e,function(e){return U(e,g)}):U(e,g)}function m(e){var r=e.id,n=e.symbol;if(n){var t=oo(e)?788968:111551;if(tb(n.valueDeclaration))return ue(n,g,t);if(32&n.flags&&!is(n)&&!(n.valueDeclaration&&226===n.valueDeclaration.kind&&2048&g.flags)||896&n.flags||function(){var e=!!(8192&n.flags)&&zC.some(n.declarations,function(e){return zC.isStatic(e)}),t=!!(16&n.flags)&&(n.parent||zC.forEach(n.declarations,function(e){return 305===e.parent.kind||262===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)||Va(n,g.enclosingDeclaration))}())return ue(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.symbol.declarations){e=zC.walkUpParenthesizedTypes(e.symbol.declarations[0].parent);if(259===e.kind)return ba(e)}return}(e);return t?ue(t,g,788968):V(g)}return p(e,f)}return f(e)}function p(e,t){var r=e.id,n=16&zC.getObjectFlags(e)&&e.symbol&&32&e.symbol.flags,i=4&zC.getObjectFlags(e)&&e.node?"N"+$C(e.node):16777216&e.flags?"N"+$C(e.root.node):e.symbol?(n?"+":"")+ek(e.symbol):void 0;g.visitedTypes||(g.visitedTypes=new zC.Set),i&&!g.symbolDepth&&(g.symbolDepth=new zC.Map);var a=g.enclosingDeclaration&&yi(g.enclosingDeclaration),o="".concat(e.id,"|").concat(g.flags);a&&(a.serializedTypes||(a.serializedTypes=new zC.Map));var s,n=null===(n=null==a?void 0:a.serializedTypes)||void 0===n?void 0:n.get(o);if(n)return n.truncating&&(g.truncating=!0),g.approximateLength+=n.addedLength,function e(t){if(!zC.nodeIsSynthesized(t)&&zC.getParseTreeNode(t)===t)return t;return zC.setTextRange(zC.factory.cloneNode(zC.visitEachChild(t,e,zC.nullTransformationContext,c)),t)}(n);if(i){if(10<(s=g.symbolDepth.get(i)||0))return V(g);g.symbolDepth.set(i,s+1)}g.visitedTypes.add(r);n=g.approximateLength,e=t(e),n=g.approximateLength-n;return g.reportedDiagnostic||g.encounteredError||(g.truncating&&(e.truncating=!0),e.addedLength=n,null!==(a=null==a?void 0:a.serializedTypes)&&void 0!==a&&a.set(o,e)),g.visitedTypes.delete(r),i&&g.symbolDepth.set(i,s),e;function c(e,t,r,n,i){return e&&0===e.length?zC.setTextRange(zC.factory.createNodeArray(void 0,e.hasTrailingComma),e):zC.visitNodes(e,t,r,n,i)}}function f(e){if(Mc(e)||e.containsError)return function(e){zC.Debug.assert(!!(524288&e.flags));var t,r=e.declaration.readonlyToken?zC.factory.createToken(e.declaration.readonlyToken.kind):void 0,n=e.declaration.questionToken?zC.factory.createToken(e.declaration.questionToken.kind):void 0,i=Fc(e)?(!(262144&Pc(e).flags)&&4&g.flags&&(o=_e(Ia(si(262144,"T")),g),t=zC.factory.createTypeReferenceNode(o)),zC.factory.createTypeOperatorNode(140,t||U(Pc(e),g))):U(kc(e),g),a=X(Cc(e),g,i),o=e.declaration.nameType?U(Ec(e),g):void 0,i=U(Yf(Nc(e),!!(4&wc(e))),g),i=zC.factory.createMappedTypeNode(r,a,o,n,i,void 0);return g.approximateLength+=10,i=zC.setEmitFlags(i,1),Fc(e)&&!(262144&Pc(e).flags)&&4&g.flags?zC.factory.createConditionalTypeNode(U(Pc(e),g),zC.factory.createInferTypeNode(zC.factory.createTypeParameterDeclaration(void 0,zC.factory.cloneNode(t.typeName))),i,zC.factory.createKeywordTypeNode(143)):i}(e);var t=Lc(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return g.approximateLength+=2,zC.setEmitFlags(zC.factory.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return Q(t.callSignatures[0],179,g);if(1===t.constructSignatures.length&&!t.callSignatures.length)return Q(t.constructSignatures[0],180,g)}e=zC.filter(t.constructSignatures,function(e){return!!(4&e.flags)});if(zC.some(e)){var r=zC.map(e,Xl);return t.callSignatures.length+(t.constructSignatures.length-e.length)+t.indexInfos.length+(2048&g.flags?zC.countWhere(t.properties,function(e){return!(4194304&e.flags)}):zC.length(t.properties))&&r.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;var t=zC.filter(e.constructSignatures,function(e){return!(4&e.flags)});if(e.constructSignatures===t)return e;t=Ba(e.symbol,e.members,e.callSignatures,zC.some(t)?t:zC.emptyArray,e.indexInfos);return(e.objectTypeWithoutAbstractConstructSignatures=t).objectTypeWithoutAbstractConstructSignatures=t}(t)),U(x_(r),g)}r=g.flags;g.flags|=4194304;t=function(e){if(K(g))return[zC.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(Q(i,174,g))}for(var a=0,o=e.constructSignatures;a<o.length;a++)4&(i=o[a]).flags||t.push(Q(i,175,g));for(var s=0,c=e.indexInfos;s<c.length;s++){var l=c[s];t.push(G(l,g,1024&e.objectFlags?V(g):void 0))}var u=e.properties;if(!u)return t;for(var _=0,d=0,p=u;d<p.length;d++){var f=p[d];if(_++,2048&g.flags){if(4194304&f.flags)continue;24&zC.getDeclarationModifierFlagsFromSymbol(f)&&g.tracker.reportPrivateInBaseOfClassExpression&&g.tracker.reportPrivateInBaseOfClassExpression(zC.unescapeLeadingUnderscores(f.escapedName))}if(K(g)&&_+2<u.length-1){t.push(zC.factory.createPropertySignature(void 0,"... ".concat(u.length-_," more ..."),void 0,void 0)),W(u[u.length-1],g,t);break}W(f,g,t)}return t.length?t:void 0}(t);g.flags=r;t=zC.factory.createTypeLiteralNode(t);return g.approximateLength+=2,zC.setEmitFlags(t,1024&g.flags?0:1),t}function y(r){var e=pu(r);if(r.target===tr||r.target===rr){if(2&g.flags){var t=U(e[0],g);return zC.factory.createTypeReferenceNode(r.target===tr?"Array":"ReadonlyArray",[t])}var n=U(e[0],g),t=zC.factory.createArrayTypeNode(n);return r.target===tr?t:zC.factory.createTypeOperatorNode(145,t)}if(!(8&r.target.objectFlags)){if(2048&g.flags&&r.symbol.valueDeclaration&&zC.isClassLike(r.symbol.valueDeclaration)&&!Va(r.symbol,g.enclosingDeclaration))return m(r);var i=r.target.outerTypeParameters,a=0,o=void 0;if(i)for(var s=i.length;a<s;){for(var c,l=a,u=ou(i[a]);a++,a<s&&ou(i[a])===u;);zC.rangeEquals(i,e,l,a)||(c=H(e.slice(l,a),g),l=g.flags,g.flags|=16,c=ue(u,g,788968,c),g.flags=l,o=o?h(o,c):c)}n=void 0;0<e.length&&(t=(r.target.typeParameters||zC.emptyArray).length,n=H(e.slice(a,t),g));p=g.flags;g.flags|=16;n=ue(r.symbol,g,788968,n);return g.flags=p,o?h(o,n):n}if(0<(e=zC.sameMap(e,function(e,t){return Yf(e,!!(2&r.target.elementFlags[t]))})).length){var _=fu(r),d=H(e.slice(0,_),g);if(d){if(r.target.labeledElementDeclarations)for(var a=0;a<d.length;a++){var p=r.target.elementFlags[a];d[a]=zC.factory.createNamedTupleMember(12&p?zC.factory.createToken(25):void 0,zC.factory.createIdentifier(zC.unescapeLeadingUnderscores(bb(r.target.labeledElementDeclarations[a]))),2&p?zC.factory.createToken(57):void 0,4&p?zC.factory.createArrayTypeNode(d[a]):d[a])}else for(a=0;a<Math.min(_,d.length);a++){var p=r.target.elementFlags[a];d[a]=12&p?zC.factory.createRestTypeNode(4&p?zC.factory.createArrayTypeNode(d[a]):d[a]):2&p?zC.factory.createOptionalTypeNode(d[a]):d[a]}var f=zC.setEmitFlags(zC.factory.createTupleTypeNode(d),1);return r.target.readonly?zC.factory.createTypeOperatorNode(145,f):f}}if(g.encounteredError||524288&g.flags){f=zC.setEmitFlags(zC.factory.createTupleTypeNode([]),1);return r.target.readonly?zC.factory.createTypeOperatorNode(145,f):f}g.encounteredError=!0}function h(e,t){if(zC.isImportTypeNode(e)){var r=e.typeArguments;o=(o=e.qualifier)&&(zC.isIdentifier(o)?zC.factory.updateIdentifier(o,r):zC.factory.updateQualifiedName(o,o.left,zC.factory.updateIdentifier(o.right,r))),r=t.typeArguments;for(var n=0,i=v(t);n<i.length;n++)var a=i[n],o=o?zC.factory.createQualifiedName(o,a):a;return zC.factory.updateImportTypeNode(e,e.argument,o,r,e.isTypeOf)}var r=e.typeArguments,s=e.typeName;s=zC.isIdentifier(s)?zC.factory.updateIdentifier(s,r):zC.factory.updateQualifiedName(s,s.left,zC.factory.updateIdentifier(s.right,r)),r=t.typeArguments;for(var c=0,l=v(t);c<l.length;c++)a=l[c],s=zC.factory.createQualifiedName(s,a);return zC.factory.updateTypeReferenceNode(e,s,r)}function v(e){for(var t=e.typeName,r=[];!zC.isIdentifier(t);)r.unshift(t.right),t=t.left;return r.unshift(t),r}}function V(e){return e.approximateLength+=3,1&e.flags?zC.factory.createKeywordTypeNode(130):zC.factory.createTypeReferenceNode(zC.factory.createIdentifier("..."),void 0)}function q(e,t){return 8192&zC.getCheckFlags(e)&&(zC.contains(t.reverseMappedStack,e)||null!==(e=t.reverseMappedStack)&&void 0!==e&&e[0]&&!(16&zC.getObjectFlags(zC.last(t.reverseMappedStack).propertyType)))}function W(r,e,t){var n,i,a=!!(8192&zC.getCheckFlags(r)),o=q(r,e)?Xe:ds(r),s=e.enclosingDeclaration;e.enclosingDeclaration=void 0,e.tracker.trackSymbol&&4096&zC.getCheckFlags(r)&&Qs(r.escapedName)&&(r.declarations?Xs(n=zC.first(r.declarations))&&(zC.isBinaryExpression(n)?(i=zC.getNameOfDeclaration(n))&&zC.isElementAccessExpression(i)&&zC.isPropertyAccessEntityNameExpression(i.argumentExpression)&&ie(i.argumentExpression,s,e):ie(n.name.expression,s,e)):null!==(n=e.tracker)&&void 0!==n&&n.reportNonSerializableProperty&&e.tracker.reportNonSerializableProperty($a(r))),e.enclosingDeclaration=r.valueDeclaration||(null===(p=r.declarations)||void 0===p?void 0:p[0])||s;var c=me(r,e);e.enclosingDeclaration=s,e.approximateLength+=zC.symbolName(r).length+1;var l=16777216&r.flags?zC.factory.createToken(57):void 0;if(8208&r.flags&&!Rc(o).length&&!Xb(r))for(var u=0,_=pl(Am(o,function(e){return!(32768&e.flags)}),0);u<_.length;u++){var d=Q(_[u],168,e,{name:c,questionToken:l});t.push(f(d))}else{var p=void 0;q(r,e)?p=V(e):(a&&(e.reverseMappedStack||(e.reverseMappedStack=[]),e.reverseMappedStack.push(r)),p=o?ve(e,o,r,s):zC.factory.createKeywordTypeNode(130),a&&e.reverseMappedStack.pop());a=Xb(r)?[zC.factory.createToken(145)]:void 0;a&&(e.approximateLength+=9);p=zC.factory.createPropertySignature(a,c,l,p);t.push(f(p))}function f(e){var t;return zC.some(r.declarations,function(e){return 347===e.kind})?(t=null===(t=r.declarations)||void 0===t?void 0:t.find(function(e){return 347===e.kind}),(t=zC.getTextOfJSDocComment(t.comment))&&zC.setSyntheticLeadingComments(e,[{kind:3,text:"*\n * "+t.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])):r.valueDeclaration&&zC.setCommentRange(e,r.valueDeclaration),e}}function H(e,a,t){if(zC.some(e)){if(K(a)){if(!t)return[zC.factory.createTypeReferenceNode("...",void 0)];if(2<e.length)return[U(e[0],a),zC.factory.createTypeReferenceNode("... ".concat(e.length-2," more ..."),void 0),U(e[e.length-1],a)]}for(var r=!(64&a.flags)?zC.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(zC.factory.createTypeReferenceNode("... ".concat(e.length-n," more ..."),void 0));var l=U(e[e.length-1],a);l&&o.push(l);break}a.approximateLength+=2;l=U(c,a);l&&(o.push(l),r&&zC.isIdentifierTypeReference(l)&&r.add(l.typeName.escapedText,[c,o.length-1]))}return r&&(t=a.flags,a.flags|=64,r.forEach(function(e){if(!zC.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]=U(i,a)}}),a.flags=t),o}}function G(e,t,r){var n=zC.getNameFromIndexInfo(e)||"x",i=U(e.keyType,t),i=zC.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i,void 0);return r=r||U(e.type||Xe,t),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=n.length+4,zC.factory.createIndexSignature(void 0,e.isReadonly?[zC.factory.createToken(145)]:void 0,[i],r)}function Q(t,r,n,i){var e,a,o,s,c=256&n.flags;c&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?s=t.target.typeParameters.map(function(e){return U(ip(e,t.mapper),n)}):o=t.typeParameters&&t.typeParameters.map(function(e){return Y(e,n)});var l=lc(t,!0)[0],u=(zC.some(l,function(e){return e!==l[l.length-1]&&!!(32768&zC.getCheckFlags(e))})?t.parameters:l).map(function(e){return ne(e,n,171===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}),_=function(e,t){if(e.thisParameter)return ne(e.thisParameter,t);if(e.declaration){e=zC.getJSDocThisTag(e.declaration);if(e&&e.typeExpression)return zC.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,U(Id(e.typeExpression),t))}}(t,n);_&&u.unshift(_);var d,p=jl(t);p?(d=2===p.kind||3===p.kind?zC.factory.createToken(128):void 0,_=1===p.kind||3===p.kind?zC.setEmitFlags(zC.factory.createIdentifier(p.parameterName),16777216):zC.factory.createThisTypeNode(),g=p.type&&U(p.type,n),g=zC.factory.createTypePredicateNode(d,_,g)):!(f=zl(t))||c&&xo(f)?c||(g=zC.factory.createKeywordTypeNode(130)):g=function(t,e,r,n,i){if(!Do(e)&&t.enclosingDeclaration){var a=r.declaration&&zC.getEffectiveReturnTypeNode(r.declaration);if(zC.findAncestor(a,function(e){return e===t.enclosingDeclaration})&&a){var o=Id(a);if((262144&o.flags&&o.isThisType?ip(o,r.mapper):o)===e&&he(a,e)){i=xe(t,a,n,i);if(i)return i}}}return U(e,t)}(n,f,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports);var f,c=null==i?void 0:i.modifiers;180===r&&4&t.flags&&(f=zC.modifiersToFlags(c),c=zC.factory.createModifiersFromModifierFlags(128|f));var g=174===r?zC.factory.createCallSignature(o,u,g):175===r?zC.factory.createConstructSignature(o,u,g):168===r?zC.factory.createMethodSignature(c,null!==(e=null==i?void 0:i.name)&&void 0!==e?e:zC.factory.createIdentifier(""),null==i?void 0:i.questionToken,o,u,g):169===r?zC.factory.createMethodDeclaration(void 0,c,void 0,null!==(e=null==i?void 0:i.name)&&void 0!==e?e:zC.factory.createIdentifier(""),void 0,o,u,g,void 0):171===r?zC.factory.createConstructorDeclaration(void 0,c,u,void 0):172===r?zC.factory.createGetAccessorDeclaration(void 0,c,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:zC.factory.createIdentifier(""),u,g,void 0):173===r?zC.factory.createSetAccessorDeclaration(void 0,c,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:zC.factory.createIdentifier(""),u,void 0):176===r?zC.factory.createIndexSignature(void 0,c,u,g):317===r?zC.factory.createJSDocFunctionType(u,g):179===r?zC.factory.createFunctionTypeNode(o,u,null!=g?g:zC.factory.createTypeReferenceNode(zC.factory.createIdentifier(""))):180===r?zC.factory.createConstructorTypeNode(c,o,u,null!=g?g:zC.factory.createTypeReferenceNode(zC.factory.createIdentifier(""))):256===r?zC.factory.createFunctionDeclaration(void 0,c,void 0,null!=i&&i.name?zC.cast(i.name,zC.isIdentifier):zC.factory.createIdentifier(""),o,u,g,void 0):213===r?zC.factory.createFunctionExpression(c,void 0,null!=i&&i.name?zC.cast(i.name,zC.isIdentifier):zC.factory.createIdentifier(""),o,u,g,zC.factory.createBlock([])):214===r?zC.factory.createArrowFunction(c,o,u,g,void 0,zC.factory.createBlock([])):zC.Debug.assertNever(r);return s&&(g.typeArguments=zC.factory.createNodeArray(s)),g}function X(e,t,r){var n=t.flags;t.flags&=-513;var i=zC.factory.createModifiersFromModifierFlags(ef(e)),a=_e(e,t),e=Zc(e),e=e&&U(e,t);return t.flags=n,zC.factory.createTypeParameterDeclaration(i,a,r,e)}function Y(e,t,r){return void 0===r&&(r=Kc(e)),X(e,t,r&&U(r,t))}function ne(e,t,r,n,i){var a=zC.getDeclarationOfKind(e,164);a||zC.isTransientSymbol(e)||(a=zC.getDeclarationOfKind(e,340));var o=_s(e);a&&UT(a)&&(o=qf(o));o=ve(t,o,e,t.enclosingDeclaration,n,i),n=!(8192&t.flags)&&r&&a&&a.modifiers?a.modifiers.map(zC.factory.cloneNode):void 0,i=a&&zC.isRestParameter(a)||32768&zC.getCheckFlags(e)?zC.factory.createToken(25):void 0,r=a&&a.name?79===a.name.kind?zC.setEmitFlags(zC.factory.cloneNode(a.name),16777216):161===a.name.kind?zC.setEmitFlags(zC.factory.cloneNode(a.name.right),16777216):Xee(a.name):zC.symbolName(e),a=a&&Nl(a)||16384&zC.getCheckFlags(e)?zC.factory.createToken(57):void 0,o=zC.factory.createParameterDeclaration(void 0,n,i,r,a,o,void 0);return t.approximateLength+=zC.symbolName(e).length+3,o}function ie(e,t,r){!r.tracker.trackSymbol||(e=Di(e=zC.getFirstIdentifier(e),e.escapedText,1160127,void 0,void 0,!0))&&r.tracker.trackSymbol(e,t,111551)}function ae(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),oe(e,t,r,n)}function oe(e,p,t,f){var r;return 262144&e.flags||!(p.enclosingDeclaration||64&p.flags)||134217728&p.flags?r=[e]:(r=zC.Debug.checkDefined(function e(t,r,n){var i=za(t,p.enclosingDeclaration,r,!!(128&p.flags));var a;if(!i||Ka(i[0],p.enclosingDeclaration,1===i.length?r:Ja(r))){var o=Da(i?i[0]:t,p.enclosingDeclaration,r);if(zC.length(o)){a=o.map(function(e){return zC.some(e.declarations,Xa)?le(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,l=s;c<l.length;c++){var u=l[c],_=e(u,Ja(r),!1);if(_){if(u.exports&&u.exports.get("export=")&&Ca(u.exports.get("export="),t)){i=_;break}i=_.concat(i||[Ta(u,t)||t]);break}}}}if(i)return i;if((n||!(6144&t.flags))&&(n||f||!zC.forEach(t.declarations,Xa)))return[t];function d(e,t){var r=a[e],e=a[t];if(r&&e){var t=zC.pathIsRelative(e);return zC.pathIsRelative(r)===t?zC.moduleSpecifiers.countPathComponents(r)-zC.moduleSpecifiers.countPathComponents(e):t?-1:1}return 0}}(e,t,!0)),zC.Debug.assert(r&&0<r.length)),r}function se(e,t){var r;return 524384&LS(e).flags&&(r=zC.factory.createNodeArray(zC.map(vs(e),function(e){return Y(e,t)}))),r}function ce(e,t,r){var n;zC.Debug.assert(e&&0<=t&&t<e.length);var i,a,o=e[t],s=ek(o);if(null===(n=r.typeParameterSymbolList)||void 0===n||!n.has(s))return(r.typeParameterSymbolList||(r.typeParameterSymbolList=new zC.Set)).add(s),512&r.flags&&t<e.length-1&&(s=o,i=e[t+1],a=1&zC.getCheckFlags(i)?(a=2097152&s.flags?Gi(s):s,a=zC.concatenate(hs(a),vs(a)),H(zC.map(a,function(e){return Jd(e,i.mapper)}),r)):se(o,r)),a}function le(t,e,r){var n=zC.getDeclarationOfKind(t,305);if(n||(u=zC.firstDefined(t.declarations,function(e){return Sa(e,t)}))&&(n=zC.getDeclarationOfKind(u,305)),n&&void 0!==n.moduleName)return n.moduleName;if(!n){if(e.tracker.trackReferencedAmbientModule){var i=zC.filter(t.declarations,zC.isAmbientModule);if(zC.length(i))for(var a=0,o=i;a<o.length;a++){var s=o[a];e.tracker.trackReferencedAmbientModule(s,t)}}if(KC.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!e.enclosingDeclaration||!e.tracker.moduleResolverHost)return KC.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):zC.getSourceFileOfNode(zC.getNonAugmentationDeclaration(t)).fileName;var c,l,u,_=zC.getSourceFileOfNode(zC.getOriginalNode(e.enclosingDeclaration)),d=r||(null==_?void 0:_.impliedNodeFormat),p=(c=_.path,void 0===(l=d)?c:"".concat(l,"|").concat(c)),f=mi(t),g=f.specifierCache&&f.specifierCache.get(p);return g||(u=!!zC.outFile($),n=e.tracker.moduleResolverHost,i=u?__assign(__assign({},$),{baseUrl:n.getCommonSourceDirectory()}):$,g=zC.first(zC.moduleSpecifiers.getModuleSpecifiers(t,Ne,i,_,n,{importModuleSpecifierPreference:u?"non-relative":"project-relative",importModuleSpecifierEnding:u?"minimal":d===zC.ModuleKind.ESNext?"js":void 0},{overrideImportMode:r})),null!==(r=f.specifierCache)&&void 0!==r||(f.specifierCache=new zC.Map),f.specifierCache.set(p,g)),g}function ue(e,l,t,u){var r=ae(e,l,t,!(16384&l.flags)),n=111551===t;if(zC.some(r[0].declarations,Xa)){var i=1<r.length?d(r,r.length-1,1):void 0,a=u||ce(r,0,l),o=zC.getSourceFileOfNode(zC.getOriginalNode(l.enclosingDeclaration)),s=zC.getSourceFileOfModule(r[0]),e=void 0,t=void 0;zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Node16&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.NodeNext||(null==s?void 0:s.impliedNodeFormat)===zC.ModuleKind.ESNext&&s.impliedNodeFormat!==(null==o?void 0:o.impliedNodeFormat)&&(e=le(r[0],l,zC.ModuleKind.ESNext),t=zC.factory.createImportTypeAssertionContainer(zC.factory.createAssertClause(zC.factory.createNodeArray([zC.factory.createAssertEntry(zC.factory.createStringLiteral("resolution-mode"),zC.factory.createStringLiteral("import"))])))),e=e||le(r[0],l),!(67108864&l.flags)&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Classic&&0<=e.indexOf("/node_modules/")&&(c=e,zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Node16&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.NodeNext||(o=(null==o?void 0:o.impliedNodeFormat)===zC.ModuleKind.ESNext?zC.ModuleKind.CommonJS:zC.ModuleKind.ESNext,0<=(e=le(r[0],l,o)).indexOf("/node_modules/")?e=c:t=zC.factory.createImportTypeAssertionContainer(zC.factory.createAssertClause(zC.factory.createNodeArray([zC.factory.createAssertEntry(zC.factory.createStringLiteral("resolution-mode"),zC.factory.createStringLiteral(o===zC.ModuleKind.ESNext?"import":"require"))])))),t||(l.encounteredError=!0,l.tracker.reportLikelyUnsafeImportRequiredError&&l.tracker.reportLikelyUnsafeImportRequiredError(c)));var c=zC.factory.createLiteralTypeNode(zC.factory.createStringLiteral(e));if(l.tracker.trackExternalModuleSymbolOfImportTypeNode&&l.tracker.trackExternalModuleSymbolOfImportTypeNode(r[0]),l.approximateLength+=e.length+10,!i||zC.isEntityName(i))return i&&((_=zC.isIdentifier(i)?i:i.right).typeArguments=void 0),zC.factory.createImportTypeNode(c,t,i,a,n);e=function e(t){return zC.isIndexedAccessTypeNode(t.objectType)?e(t.objectType):t}(i),i=e.objectType.typeName;return zC.factory.createIndexedAccessTypeNode(zC.factory.createImportTypeNode(c,t,i,a,n),e.indexType)}r=d(r,r.length-1,0);if(zC.isIndexedAccessTypeNode(r))return r;if(n)return zC.factory.createTypeQueryNode(r);var _,n=(_=zC.isIdentifier(r)?r:r.right).typeArguments;return _.typeArguments=void 0,zC.factory.createTypeReferenceNode(r,n);function d(e,t,r){var n,i=t===e.length-1?u:ce(e,t,l),a=e[t],o=e[t-1];if(0===t?(l.flags|=16777216,n=po(a,l),l.approximateLength+=(n?n.length:0)+1,l.flags^=16777216):o&&ga(o)&&(s=ga(o),zC.forEachEntry(s,function(e,t){if(Ca(e,a)&&!Qs(t)&&"export="!==t)return n=zC.unescapeLeadingUnderscores(t),!0})),void 0===n){var s=zC.firstDefined(a.declarations,zC.getNameOfDeclaration);if(s&&zC.isComputedPropertyName(s)&&zC.isEntityName(s.expression)){var c=d(e,t-1,r);return zC.isEntityName(c)?zC.factory.createIndexedAccessTypeNode(zC.factory.createParenthesizedType(zC.factory.createTypeQueryNode(c)),zC.factory.createTypeQueryNode(s.expression)):c}n=po(a,l)}if(l.approximateLength+=n.length+1,!(16&l.flags)&&o&&tc(o)&&tc(o).get(a.escapedName)&&Ca(tc(o).get(a.escapedName),a)){c=d(e,t-1,r);return zC.isIndexedAccessTypeNode(c)?zC.factory.createIndexedAccessTypeNode(c,zC.factory.createLiteralTypeNode(zC.factory.createStringLiteral(n))):zC.factory.createIndexedAccessTypeNode(zC.factory.createTypeReferenceNode(c,i),zC.factory.createLiteralTypeNode(zC.factory.createStringLiteral(n)))}i=zC.setEmitFlags(zC.factory.createIdentifier(n,i),16777216);if(i.symbol=a,r<t){c=d(e,t-1,r);return zC.isEntityName(c)?zC.factory.createQualifiedName(c,i):zC.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return i}}function _e(e,t){if(4&t.flags&&t.typeParameterNames){var r=t.typeParameterNames.get(e.id);if(r)return r}var n,i,a=de(e.symbol,t,788968,!0);if(!(79&a.kind))return zC.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var o=a.escapedText,s=(null===(r=t.typeParameterNamesByTextNextNameCount)||void 0===r?void 0:r.get(o))||0,c=o;null!==(i=t.typeParameterNamesByText)&&void 0!==i&&i.has(c)||(n=c,i=e,(n=Di(t.enclosingDeclaration,n,788968,void 0,n,!1))&&!(262144&n.flags&&n===i.symbol));)s++,c="".concat(o,"_").concat(s);c!==o&&(a=zC.factory.createIdentifier(c,a.typeArguments)),(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new zC.Map)).set(o,s),(t.typeParameterNames||(t.typeParameterNames=new zC.Map)).set(e.id,a),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new zC.Set)).add(o)}return a}function de(e,o,t,r){t=ae(e,o,t);return!r||1===t.length||o.encounteredError||65536&o.flags||(o.encounteredError=!0),function e(t,r){var n=ce(t,r,o);var i=t[r];0===r&&(o.flags|=16777216);var a=po(i,o);0===r&&(o.flags^=16777216);var n=zC.setEmitFlags(zC.factory.createIdentifier(a,n),16777216);n.symbol=i;return 0<r?zC.factory.createQualifiedName(e(t,r-1),n):n}(t,t.length-1)}function pe(e,l,t){t=ae(e,l,t);return function e(t,r){var n=ce(t,r,l);var i=t[r];0===r&&(l.flags|=16777216);var a=po(i,l);0===r&&(l.flags^=16777216);var o=a.charCodeAt(0);if(zC.isSingleOrDoubleQuote(o)&&zC.some(i.declarations,Xa))return zC.factory.createStringLiteral(le(i,l));var s=35===o?1<a.length&&zC.isIdentifierStart(a.charCodeAt(1),B):zC.isIdentifierStart(o,B);{if(0===r||s){var c=zC.setEmitFlags(zC.factory.createIdentifier(a,n),16777216);return c.symbol=i,0<r?zC.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!zC.isSingleOrDoubleQuote(o)||8&i.flags?""+ +a===a&&(c=zC.factory.createNumericLiteral(+a)):c=zC.factory.createStringLiteral(zC.stripQuotes(a).replace(/\\./g,function(e){return e.substring(1)}),39===o),c||((c=zC.setEmitFlags(zC.factory.createIdentifier(a,n),16777216)).symbol=i),zC.factory.createElementAccessExpression(e(t,r-1),c)}}(t,t.length-1)}function fe(e){e=zC.getNameOfDeclaration(e);return!!e&&zC.isStringLiteral(e)}function ge(e){e=zC.getNameOfDeclaration(e);return!!(e&&zC.isStringLiteral(e)&&(e.singleQuote||!zC.nodeIsSynthesized(e)&&zC.startsWith(zC.getTextOfNode(e,!1),"'")))}function me(e,t){var r=!!zC.length(e.declarations)&&zC.every(e.declarations,ge),t=function(e,t,r){var n=mi(e).nameType;if(n){if(384&n.flags){e=""+n.value;return zC.isIdentifierText(e,zC.getEmitScriptTarget($))||zC.isNumericLiteralName(e)?zC.isNumericLiteralName(e)&&zC.startsWith(e,"-")?zC.factory.createComputedPropertyName(zC.factory.createNumericLiteral(+e)):zC.createPropertyNameNodeForIdentifierOrLiteral(e,zC.getEmitScriptTarget($)):zC.factory.createStringLiteral(e,!!r)}if(8192&n.flags)return zC.factory.createComputedPropertyName(pe(n.symbol,t,111551))}}(e,t,r);if(t)return t;t=zC.unescapeLeadingUnderscores(e.escapedName),e=!!zC.length(e.declarations)&&zC.every(e.declarations,fe);return zC.createPropertyNameNodeForIdentifierOrLiteral(t,zC.getEmitScriptTarget($),r,e)}function ye(e,t){return e.declarations&&zC.find(e.declarations,function(e){return!(!zC.getEffectiveTypeAnnotationNode(e)||t&&!zC.findAncestor(e,function(e){return e===t}))})}function he(e,t){return!(4&zC.getObjectFlags(t))||!zC.isTypeReferenceNode(e)||zC.length(e.typeArguments)>=Pl(t.target.typeParameters)}function ve(t,e,r,n,i,a){if(!Do(e)&&n){var o=ye(r,n);if(o&&!zC.isFunctionLikeDeclaration(o)&&!zC.isGetAccessorDeclaration(o)){n=zC.getEffectiveTypeAnnotationNode(o);if(function(e,t,r){e=Id(e);if(e===r)return!0;if(zC.isParameter(t)&&t.questionToken)return _m(r,524288)===e;return!1}(n,o,e)&&he(n,e)){var s=xe(t,n,i,a);if(s)return s}}}s=t.flags;8192&e.flags&&e.symbol===r&&(!t.enclosingDeclaration||zC.some(r.declarations,function(e){return zC.getSourceFileOfNode(e)===zC.getSourceFileOfNode(t.enclosingDeclaration)}))&&(t.flags|=1048576);e=U(e,t);return t.flags=s,e}function be(e,t,r){var n,i=!1,a=zC.getFirstIdentifier(e);if(zC.isInJSFile(e)&&(zC.isExportsIdentifier(a)||zC.isModuleExportsAccessExpression(a.parent)||zC.isQualifiedName(a.parent)&&zC.isModuleIdentifier(a.parent.left)&&zC.isExportsIdentifier(a.parent.right)))return{introducesError:i=!0,node:e};var o=ra(a,67108863,!0,!0);if(o&&(0!==Wa(o,t.enclosingDeclaration,67108863,!1).accessibility?i=!0:(null!==(a=null===(n=t.tracker)||void 0===n?void 0:n.trackSymbol)&&void 0!==a&&a.call(n,o,t.enclosingDeclaration,67108863),null!=r&&r(o)),zC.isIdentifier(e))){r=Rs(o),t=262144&o.flags&&!Ua(r.symbol,t.enclosingDeclaration)?_e(r,t):zC.factory.cloneNode(e);return t.symbol=o,{introducesError:i,node:zC.setEmitFlags(zC.setOriginalNode(t,e),16777216)}}return{introducesError:i,node:e}}function xe(c,e,l,u){x&&x.throwIfCancellationRequested&&x.throwIfCancellationRequested();var _=!1,d=zC.getSourceFileOfNode(e),t=zC.visitNode(e,function n(i){if(zC.isJSDocAllType(i)||319===i.kind)return zC.factory.createKeywordTypeNode(130);if(zC.isJSDocUnknownType(i))return zC.factory.createKeywordTypeNode(155);if(zC.isJSDocNullableType(i))return zC.factory.createUnionTypeNode([zC.visitNode(i.type,n),zC.factory.createLiteralTypeNode(zC.factory.createNull())]);if(zC.isJSDocOptionalType(i))return zC.factory.createUnionTypeNode([zC.visitNode(i.type,n),zC.factory.createKeywordTypeNode(153)]);if(zC.isJSDocNonNullableType(i))return zC.visitNode(i.type,n);if(zC.isJSDocVariadicType(i))return zC.factory.createArrayTypeNode(zC.visitNode(i.type,n));if(zC.isJSDocTypeLiteral(i))return zC.factory.createTypeLiteralNode(zC.map(i.jsDocPropertyTags,function(e){var t=zC.isIdentifier(e.name)?e.name:e.name.right,r=bo(Id(i),t.escapedText),r=r&&e.typeExpression&&Id(e.typeExpression.type)!==r?U(r,c):void 0;return zC.factory.createPropertySignature(void 0,t,e.isBracketed||e.typeExpression&&zC.isJSDocOptionalType(e.typeExpression.type)?zC.factory.createToken(57):void 0,r||e.typeExpression&&zC.visitNode(e.typeExpression.type,n)||zC.factory.createKeywordTypeNode(130))}));if(zC.isTypeReferenceNode(i)&&zC.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return zC.setOriginalNode(zC.factory.createKeywordTypeNode(130),i);if((zC.isExpressionWithTypeArguments(i)||zC.isTypeReferenceNode(i))&&zC.isJSDocIndexSignature(i))return zC.factory.createTypeLiteralNode([zC.factory.createIndexSignature(void 0,void 0,[zC.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,zC.visitNode(i.typeArguments[0],n))],zC.visitNode(i.typeArguments[1],n))]);if(zC.isJSDocFunctionType(i)){var r;return zC.isJSDocConstructSignature(i)?zC.factory.createConstructorTypeNode(i.modifiers,zC.visitNodes(i.typeParameters,n),zC.mapDefined(i.parameters,function(e,t){return e.name&&zC.isIdentifier(e.name)&&"new"===e.name.escapedText?void(r=e.type):zC.factory.createParameterDeclaration(void 0,void 0,a(e),o(e,t),e.questionToken,zC.visitNode(e.type,n),void 0)}),zC.visitNode(r||i.type,n)||zC.factory.createKeywordTypeNode(130)):zC.factory.createFunctionTypeNode(zC.visitNodes(i.typeParameters,n),zC.map(i.parameters,function(e,t){return zC.factory.createParameterDeclaration(void 0,void 0,a(e),o(e,t),e.questionToken,zC.visitNode(e.type,n),void 0)}),zC.visitNode(i.type,n)||zC.factory.createKeywordTypeNode(130))}if(zC.isTypeReferenceNode(i)&&zC.isInJSDoc(i)&&(!he(i,Id(i))||ku(i)||We===vu(i,788968,!0)))return zC.setOriginalNode(U(Id(i),c),i);if(zC.isLiteralImportTypeNode(i)){var e=yi(i).resolvedSymbol;return!zC.isInJSDoc(i)||!e||(i.isTypeOf||788968&e.flags)&&zC.length(i.typeArguments)>=Pl(vs(e))?zC.factory.updateImportTypeNode(i,zC.factory.updateLiteralTypeNode(i.argument,s(i,i.argument.literal)),i.qualifier,zC.visitNodes(i.typeArguments,n,zC.isTypeNode),i.isTypeOf):zC.setOriginalNode(U(Id(i),c),i)}if(zC.isEntityName(i)||zC.isEntityNameExpression(i)){var t=be(i,c,l),e=t.introducesError,t=t.node;if(_=_||e,t!==i)return t}d&&zC.isTupleTypeNode(i)&&zC.getLineAndCharacterOfPosition(d,i.pos).line===zC.getLineAndCharacterOfPosition(d,i.end).line&&zC.setEmitFlags(i,1);return zC.visitEachChild(i,n,zC.nullTransformationContext);function a(e){return e.dotDotDotToken||(e.type&&zC.isJSDocVariadicType(e.type)?zC.factory.createToken(25):void 0)}function o(e,t){return e.name&&zC.isIdentifier(e.name)&&"this"===e.name.escapedText?"this":a(e)?"args":"arg".concat(t)}function s(e,t){if(u){if(c.tracker&&c.tracker.moduleResolverHost){var e=lC(e);if(e){var r=zC.createGetCanonicalFileName(!!b.useCaseSensitiveFileNames),r={getCanonicalFileName:r,getCurrentDirectory:function(){return c.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return c.tracker.moduleResolverHost.getCommonSourceDirectory()}},r=zC.getResolvedExternalModuleName(r,e);return zC.factory.createStringLiteral(r)}}}else c.tracker&&c.tracker.trackExternalModuleSymbolOfImportTypeNode&&((r=aa(t,t,void 0))&&c.tracker.trackExternalModuleSymbolOfImportTypeNode(r));return t}});if(!_)return t===e?zC.setTextRange(zC.factory.cloneNode(e),e):t}var De=zC.createSymbolTable(),Se=si(4,"undefined");Se.declarations=[];var Te=si(1536,"globalThis",8);Te.exports=De,Te.declarations=[],De.set(Te.escapedName,Te);var Ce,ke=si(4,"arguments"),Ee=si(4,"require"),Ne={getNodeCount:function(){return zC.sum(b.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return zC.sum(b.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return zC.sum(b.getSourceFiles(),"symbolCount")+s},getTypeCount:function(){return a},getInstantiationCount:function(){return _},getRelationCacheSizes:function(){return{assignable:Un.size,identity:qn.size,subtype:zn.size,strictSubtype:Kn.size}},isUndefinedSymbol:function(e){return e===Se},isArgumentsSymbol:function(e){return e===ke},isUnknownSymbol:function(e){return e===We},getMergedSymbol:va,getDiagnostics:pT,getGlobalDiagnostics:function(){return fT(),Rn.getGlobalDiagnostics()},getRecursionIdentity:uf,getUnmatchedProperties:kg,getTypeOfSymbolAtLocation:function(e,t){t=zC.getParseTreeNode(t);return t?function(e,t){if(e=e.exportSymbol||e,(79===t.kind||80===t.kind)&&(zC.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),zC.isExpressionNode(t)&&(!zC.isAssignmentTarget(t)||zC.isWriteAccess(t)))){var r=Fx(t);if(ka(yi(t).resolvedSymbol)===e)return r}if(zC.isDeclarationName(t)&&zC.isSetAccessor(t.parent)&&es(t.parent))return ns(t.parent.symbol);return ds(e)}(e,t):$e},getTypeOfSymbol:_s,getSymbolsOfParameterPropertyDeclaration:function(e,t){e=zC.getParseTreeNode(e,zC.isParameter);return void 0===e?zC.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=vi(r.locals,t,111551),t=vi(tc(e.symbol),t,111551);if(r&&t)return[r,t];return zC.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(e,zC.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Rs,getPropertiesOfType:Jc,getPropertyOfType:function(e,t){return _l(e,zC.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(e,t,r){r=zC.getParseTreeNode(r);if(r){r=Jh(zC.escapeLeadingUnderscores(t),r);return r?Uh(e,r):void 0}},getTypeOfPropertyOfType:function(e,t){return bo(e,zC.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(e,t){return vl(e,0===t?_t:dt)},getIndexInfosOfType:hl,getSignaturesOfType:pl,getIndexTypeOfType:function(e,t){return bl(e,0===t?_t:dt)},getIndexType:function(e){return P_(e)},getBaseTypes:Es,getBaseTypeOfLiteralType:Af,getWidenedType:og,getTypeFromTypeNode:function(e){e=zC.getParseTreeNode(e,zC.isTypeNode);return e?Id(e):$e},getParameterType:Tb,getParameterIdentifierNameAtPosition:function(e,t){if(317===(null===(i=e.declaration)||void 0===i?void 0:i.kind))return;var r=e.parameters.length-(ak(e)?1:0);if(t<r){var n=e.parameters[t];return Db(n)?[n.escapedName,!1]:void 0}var i=e.parameters[r]||We;if(!Db(i))return;n=_s(i);if(Of(n)){e=n.target.labeledElementDeclarations,n=t-r,e=null==e?void 0:e[n],n=!(null==e||!e.dotDotDotToken);return e?[bb(e),n]:void 0}return t!==r?void 0:[i.escapedName,!0]},getPromisedTypeOfPromise:iD,getAwaitedType:function(e){return lD(e)},getReturnTypeOfSignature:zl,isNullableType:Fh,getNullableType:Vf,getNonNullableType:Wf,getNonOptionalType:Gf,getTypeArguments:pu,typeToTypeNode:j.typeToTypeNode,indexInfoToIndexSignatureDeclaration:j.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:j.signatureToSignatureDeclaration,symbolToEntityName:j.symbolToEntityName,symbolToExpression:j.symbolToExpression,symbolToTypeParameterDeclarations:j.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:j.symbolToParameterDeclaration,typeParameterToDeclaration:j.typeParameterToDeclaration,getSymbolsInScope:function(e,t){e=zC.getParseTreeNode(e);return e?function(e,t){if(33554432&e.flags)return[];var r=zC.createSymbolTable(),n=!1;return function(){for(;e;){switch(e.locals&&!hi(e)&&a(e.locals,t),e.kind){case 305:if(!zC.isExternalModule(e))break;case 261:!function(e,t){t&&e.forEach(function(e){zC.getDeclarationOfKind(e,275)||zC.getDeclarationOfKind(e,274)||i(e,t)})}(ba(e).exports,2623475&t);break;case 260:a(ba(e).exports,8&t);break;case 226:e.name&&i(e.symbol,t);case 257:case 258:n||a(tc(ba(e)),788968&t);break;case 213:e.name&&i(e.symbol,t)}zC.introducesArgumentsExoticObject(e)&&i(ke,t),n=zC.isStatic(e),e=e.parent}a(De,t)}(),r.delete("this"),Cl(r);function i(e,t){zC.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=zC.getParseTreeNode(e);return e?ST(e,!0):void 0},getIndexInfosAtLocation:function(e){e=zC.getParseTreeNode(e);return e?function(e){if(zC.isIdentifier(e)&&zC.isPropertyAccessExpression(e.parent)&&e.parent.name===e){var t=E_(e),e=Fx(e.parent.expression),e=1048576&e.flags?e.types:[e];return zC.flatMap(e,function(e){return zC.filter(hl(e),function(e){return ml(t,e.keyType)})})}return}(e):void 0},getShorthandAssignmentValueSymbol:function(e){e=zC.getParseTreeNode(e);return e?function(e){if(e&&297===e.kind)return ra(e.name,2208703);return}(e):void 0},getExportSpecifierLocalTargetSymbol:function(e){e=zC.getParseTreeNode(e,zC.isExportSpecifier);return e?(e=e,zC.isExportSpecifier(e)?e.parent.parent.moduleSpecifier?zi(e.parent.parent,e):ra(e.propertyName||e.name,2998271):ra(e,2998271)):void 0},getExportSymbolOfSymbol:function(e){return va(e.exportSymbol||e)},getTypeAtLocation:function(e){e=zC.getParseTreeNode(e);return e?TT(e):$e},getTypeOfAssignmentPattern:function(e){e=zC.getParseTreeNode(e,zC.isAssignmentPattern);return e&&CT(e)||$e},getPropertySymbolOfDestructuringAssignment:function(e){var t=zC.getParseTreeNode(e,zC.isIdentifier);return t?(e=t,(t=CT(zC.cast(e.parent.parent,zC.isAssignmentPattern)))&&_l(t,e.escapedText)):void 0},signatureToString:function(e,t,r,n){return eo(e,zC.getParseTreeNode(t),r,n)},typeToString:function(e,t,r){return to(e,zC.getParseTreeNode(t),r)},symbolToString:function(e,t,r,n){return $a(e,zC.getParseTreeNode(t),r,n)},typePredicateToString:function(e,t,r){return so(e,zC.getParseTreeNode(t),r)},writeSignature:function(e,t,r,n,i){return eo(e,zC.getParseTreeNode(t),r,n,i)},writeType:function(e,t,r,n){return to(e,zC.getParseTreeNode(t),r,n)},writeSymbol:function(e,t,r,n,i){return $a(e,zC.getParseTreeNode(t),r,n,i)},writeTypePredicate:function(e,t,r,n){return so(e,zC.getParseTreeNode(t),r,n)},getAugmentedPropertiesOfType:ET,getRootSymbols:function e(t){var r=AT(t);return r?zC.flatMap(r,e):[t]},getSymbolOfExpando:nb,getContextualType:function(e,t){var r=zC.getParseTreeNode(e,zC.isExpression);if(r)return 4&t?Ae(r,function(){return jy(r,t)}):jy(r,t)},getContextualTypeForObjectLiteralElement:function(e){e=zC.getParseTreeNode(e,zC.isObjectLiteralElementLike);return e?Fy(e):void 0},getContextualTypeForArgumentAtIndex:function(e,t){e=zC.getParseTreeNode(e,zC.isCallLikeExpression);return e&&Ty(e,t)},getContextualTypeForJsxAttribute:function(e){e=zC.getParseTreeNode(e,zC.isJsxAttributeLike);return e&&Iy(e)},isContextSensitive:lp,getTypeOfPropertyOfContextualType:Ny,getFullyQualifiedName:ta,getResolvedSignature:function(e,t,r){return Fe(e,t,r,0)},getResolvedSignatureForStringLiteralCompletions:function(e,t,r){return Fe(e,r,void 0,32,t)},getResolvedSignatureForSignatureHelp:function(e,t,r){return Fe(e,t,r,16)},getExpandedParameters:lc,hasEffectiveRestParameter:Ab,containsArgumentsReference:Ml,getConstantValue:function(e){e=zC.getParseTreeNode(e,QT);return e?XT(e):void 0},isValidPropertyAccess:function(e,t){e=zC.getParseTreeNode(e,zC.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!e&&function(e,t){switch(e.kind){case 206:return sv(e,106===e.expression.kind,t,og(Ix(e.expression)));case 161:return sv(e,!1,t,og(Ix(e.left)));case 200:return sv(e,!1,t,Id(e))}}(e,zC.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(e,t,r){e=zC.getParseTreeNode(e,zC.isPropertyAccessExpression);return!!e&&ov(e,t,r)},getSignatureFromDeclaration:function(e){e=zC.getParseTreeNode(e,zC.isFunctionLike);return e?Il(e):void 0},isImplementationOfOverload:function(e){e=zC.getParseTreeNode(e,zC.isFunctionLike);return e?KT(e):void 0},getImmediateAliasedSymbol:eh,getAliasedSymbol:Gi,getEmitResolver:function(e,t){return pT(e,t),R},getExportsOfModule:da,getExportsAndPropertiesOfModule:function(e){var t=da(e),r=ca(e);r===e||fa(r=_s(r))&&zC.addRange(t,Jc(r));return t},forEachExportAndPropertyOfModule:function(e,r){ma(e).forEach(function(e,t){Oa(t)||r(e,t)});var t=ca(e);{var n;t!==e&&fa(n=_s(t))&&function(e,r){3670016&(e=rl(e)).flags&&Lc(e).members.forEach(function(e,t){La(e,t)&&r(e,t)})}(n,function(e,t){r(e,t)})}},getSymbolWalker:zC.createGetSymbolWalker(function(e){return Vl(e)||Xe},jl,zl,Es,Lc,_s,Hg,Kc,zC.getFirstIdentifier,pu),getAmbientModules:function(){Gt||(Gt=[],De.forEach(function(e,t){KC.test(t)&&Gt.push(e)}));return Gt},getJsxIntrinsicTagNamesAt:function(e){e=lh(QC.IntrinsicElements,e);return e?Jc(e):zC.emptyArray},isOptionalParameter:function(e){e=zC.getParseTreeNode(e,zC.isParameter);return!!e&&Nl(e)},tryGetMemberInModuleExports:function(e,t){return pa(zC.escapeLeadingUnderscores(e),t)},tryGetMemberInModuleExportsAndProperties:function(e,t){return function(e,t){var r=pa(e,t);if(r)return r;r=ca(t);if(r===t)return;r=_s(r);return fa(r)?_l(r,e):void 0}(zC.escapeLeadingUnderscores(e),t)},tryFindAmbientModule:function(e){return El(e,!0)},tryFindAmbientModuleWithoutAugmentations:function(e){return El(e,!1)},getApparentType:tl,getUnionType:f_,isTypeAssignableTo:hp,createAnonymousType:Ba,createSignature:ac,createSymbol:si,createIndexInfo:$l,getAnyType:function(){return Xe},getStringType:function(){return _t},getNumberType:function(){return dt},createPromiseType:Lb,createArrayType:Qu,getElementTypeOfArrayType:hf,getBooleanType:function(){return ht},getFalseType:function(e){return e?ft:gt},getTrueType:function(e){return e?mt:yt},getVoidType:function(){return bt},getUndefinedType:function(){return at},getNullType:function(){return lt},getESSymbolType:function(){return vt},getNeverType:function(){return xt},getOptionalType:function(){return st},getPromiseType:function(){return zu(!1)},getPromiseLikeType:function(){return Ku(!1)},isSymbolAccessible:Wa,isArrayType:ff,isTupleType:Of,isArrayLikeType:vf,isTypeInvalidDueToUnionDiscriminant:function(r,e){return e.properties.some(function(e){var t=e.name&&E_(e.name),t=t&&Hs(t)?Zs(t):void 0,t=void 0===t?void 0:bo(r,t);return!!t&&Nf(t)&&!hp(TT(e),t)})},getExactOptionalProperties:function(e){return Jc(e).filter(function(e){return Zf(_s(e))})},getAllPossiblePropertiesOfTypes:function(e){var t=f_(e);if(!(1048576&t.flags))return ET(t);for(var r=zC.createSymbolTable(),n=0,i=e;n<i.length;n++)for(var a=i[n],o=0,s=ET(a);o<s.length;o++){var c,l=s[o].escapedName;r.has(l)||(c=nl(t,l))&&r.set(l,c)}return zC.arrayFrom(r.values())},getSuggestedSymbolForNonexistentProperty:Zh,getSuggestionForNonexistentProperty:ev,getSuggestedSymbolForNonexistentJSXAttribute:$h,getSuggestedSymbolForNonexistentSymbol:function(e,t,r){return tv(e,zC.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentSymbol:function(e,t,r){return function(e,t,r){r=tv(e,t,r);return r&&zC.symbolName(r)}(e,zC.escapeLeadingUnderscores(t),r)},getSuggestedSymbolForNonexistentModule:rv,getSuggestionForNonexistentExport:function(e,t){t=rv(e,t);return t&&zC.symbolName(t)},getSuggestedSymbolForNonexistentClassMember:Yh,getBaseConstraintOfType:Hc,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Zc(e):void 0},resolveName:function(e,t,r,n){return Di(t,zC.escapeLeadingUnderscores(e),r,void 0,void 0,!1,n)},getJsxNamespace:function(e){return zC.unescapeLeadingUnderscores(Qn(e))},getJsxFragmentFactory:function(e){e=cC(e);return e&&zC.unescapeLeadingUnderscores(zC.getFirstIdentifier(e).escapedText)},getAccessibleSymbolChain:za,getTypePredicateOfSignature:jl,resolveExternalModuleName:function(e){e=zC.getParseTreeNode(e,zC.isExpression);return e&&ia(e,e,!0)},resolveExternalModuleSymbol:ca,tryGetThisTypeAt:function(e,t){e=zC.getParseTreeNode(e);return e&&py(e,t)},getTypeArgumentConstraint:function(e){e=zC.getParseTreeNode(e,zC.isTypeNode);return e&&function(e){var t=zC.tryCast(e.parent,zC.isTypeReferenceType);if(!t)return;var r=Hx(t);if(!r)return;e=Kc(r[t.typeArguments.indexOf(e)]);return e&&ip(e,jd(r,qx(t,r)))}(e)},getSuggestionDiagnostics:function(e,t){var n,r=zC.getParseTreeNode(e,zC.isSourceFile)||zC.Debug.fail("Could not determine parsed source file.");if(zC.skipTypeChecking(r,$,b))return zC.emptyArray;try{return x=t,gT(r),zC.Debug.assert(!!(1&yi(r).flags)),n=zC.addRange(n,Bn.getDiagnostics(r.fileName)),xD(dT(r),function(e,t,r){zC.containsParseError(e)||_T(t,!!(16777216&e.flags))||(n=n||[]).push(__assign(__assign({},r),{category:zC.DiagnosticCategory.Suggestion}))}),n||zC.emptyArray}finally{x=void 0}},runWithCancellationToken:function(e,t){try{return x=e,t(Ne)}finally{x=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:vs,isDeclarationVisible:fo,isPropertyAccessible:cv,getTypeOnlyAliasDeclaration:Yi,getMemberOverrideModifierStatus:function(e,t){if(!t.name)return 0;var r=ba(e),n=Rs(r),i=nc(n),a=_s(r),o=zC.getEffectiveBaseTypeNode(e)&&Es(n),s=null!=o&&o.length?nc(zC.first(o),n.thisType):void 0,c=Cs(n),r=t.parent?zC.hasOverrideModifier(t):zC.hasSyntacticModifier(t,16384),o=zC.unescapeLeadingUnderscores(zC.getTextOfPropertyName(t.name));return OS(e,a,c,s,n,i,r,zC.hasAbstractModifier(t),zC.isStatic(t),!1,o)}};function Ae(e,t){var r=zC.findAncestor(e,zC.isCallLikeExpression),n=r&&yi(r).resolvedSignature;if(r){for(var i=e;yi(i).skipDirectInference=!0,i=i.parent,i&&i!==r;);yi(r).resolvedSignature=void 0}t=t();if(r){for(i=e;yi(i).skipDirectInference=void 0,i=i.parent,i&&i!==r;);yi(r).resolvedSignature=n}return t}function Fe(e,t,r,n,i){var a=zC.getParseTreeNode(e,zC.isCallLikeExpression);Ce=r;i=a?i?Ae(i,function(){return eb(a,t,n)}):eb(a,t,n):void 0;return Ce=void 0,i}var Pe=new zC.Map,we=new zC.Map,Ie=new zC.Map,Oe=new zC.Map,Me=new zC.Map,Le=new zC.Map,Re=new zC.Map,Be=new zC.Map,je=new zC.Map,Je=new zC.Map,ze=new zC.Map,Ke=new zC.Map,Ue=[],Ve=new zC.Map,qe=new zC.Set,We=si(4,"unknown"),He=si(0,"__resolving__"),Ge=new zC.Map,Qe=new zC.Map,Xe=Pa(1,"any"),Ye=Pa(1,"any"),Ze=Pa(1,"any"),$e=Pa(1,"error"),et=Pa(1,"unresolved"),tt=Pa(1,"any",65536),rt=Pa(1,"intrinsic"),nt=Pa(2,"unknown"),it=Pa(2,"unknown"),at=Pa(32768,"undefined"),ot=ee?at:Pa(32768,"undefined",65536),st=Pa(32768,"undefined"),ct=re?Pa(32768,"undefined"):at,lt=Pa(65536,"null"),ut=ee?lt:Pa(65536,"null",65536),_t=Pa(4,"string"),dt=Pa(8,"number"),pt=Pa(64,"bigint"),ft=Pa(512,"false"),gt=Pa(512,"false"),mt=Pa(512,"true"),yt=Pa(512,"true");mt.regularType=yt,mt.freshType=mt,(yt.regularType=yt).freshType=mt,ft.regularType=gt,ft.freshType=ft,(gt.regularType=gt).freshType=ft;var ht=f_([gt,yt]),vt=Pa(4096,"symbol"),bt=Pa(16384,"void"),xt=Pa(131072,"never"),Dt=Pa(131072,"never"),St=Pa(131072,"never",262144),Tt=Pa(131072,"never"),Ct=Pa(131072,"never"),kt=Pa(67108864,"object"),Et=f_([_t,dt]),Nt=f_([_t,dt,vt]),At=N?_t:Nt,Ft=f_([dt,pt]),Pt=f_([_t,dt,ht,pt,lt,at]),wt=I_(["",""],[dt]),It=Kd(function(e){return 262144&e.flags?(t=e).constraint===nt?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Ia(t.symbol),t.restrictiveInstantiation.constraint=nt,t.restrictiveInstantiation):e;var t}),Ot=Kd(function(e){return 262144&e.flags?Ze:e}),Mt=Pa(131072,"never"),Lt=Kd(function(e){return 262144&e.flags?Mt:e}),Rt=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),Bt=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray);Bt.objectFlags|=2048;var e=si(2048,"__type");e.members=zC.createSymbolTable();var jt=Ba(e,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),Jt=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray);Jt.instantiations=new zC.Map;var zt=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray);zt.objectFlags|=262144;var Kt=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),Ut=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),Vt=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),qt=Ia(),Wt=Ia();Wt.constraint=qt;var Ht,Gt,Qt,Xt,Yt,Zt,$t,er,tr,rr,nr,ir,ar,or,sr,cr,lr,ur,_r,dr,pr,fr,gr,mr,yr,hr,vr,br,xr,Dr,Sr,Tr,Cr,kr,Er,Nr,Ar,Fr,Pr,wr,Ir,Or,Mr,Lr,Rr,Br,jr,Jr,zr,Kr,Ur,Vr=Ia(),qr=Fl(1,"<<unresolved>>",0,Xe),Wr=ac(void 0,void 0,void 0,zC.emptyArray,Xe,void 0,0,0),Hr=ac(void 0,void 0,void 0,zC.emptyArray,$e,void 0,0,0),Gr=ac(void 0,void 0,void 0,zC.emptyArray,Xe,void 0,0,0),Qr=ac(void 0,void 0,void 0,zC.emptyArray,Dt,void 0,0,0),Xr=$l(dt,_t,!0),Yr=new zC.Map,Zr={get yieldType(){return zC.Debug.fail("Not supported")},get returnType(){return zC.Debug.fail("Not supported")},get nextType(){return zC.Debug.fail("Not supported")}},$r=eS(Xe,Xe,Xe),en=eS(Xe,Xe,nt),tn=eS(xt,Xe,at),rn={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return(Er=Er||Mu("AsyncIterator",3,e))||Jt},getGlobalIterableType:function(e){return(kr=kr||Mu("AsyncIterable",1,e))||Jt},getGlobalIterableIteratorType:function(e){return(Nr=Nr||Mu("AsyncIterableIterator",1,e))||Jt},getGlobalGeneratorType:function(e){return(Ar=Ar||Mu("AsyncGenerator",3,e))||Jt},resolveIterationType:lD,mustHaveANextMethodDiagnostic:zC.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:zC.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:zC.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},nn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return(xr=xr||Mu("Iterator",3,e))||Jt},getGlobalIterableType:Vu,getGlobalIterableIteratorType:function(e){return(Dr=Dr||Mu("IterableIterator",1,e))||Jt},getGlobalGeneratorType:function(e){return(Sr=Sr||Mu("Generator",3,e))||Jt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:zC.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:zC.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:zC.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},an=new zC.Map,on=!1,sn=new zC.Map,cn=0,ln=0,un=0,_n=!1,dn=0,pn=kd(""),fn=Ed(0),gn=Nd({negative:!1,base10Value:"0"}),mn=[],yn=[],hn=[],vn=0,bn=10,xn=[],Dn=[],Sn=[],Tn=[],Cn=[],kn=[],En=[],Nn=[],An=[],Fn=[],Pn=[],wn=[],In=[],On=[],Mn=[],Ln=[],Rn=zC.createDiagnosticCollection(),Bn=zC.createDiagnosticCollection(),jn=new zC.Map(zC.getEntries({string:_t,number:dt,bigint:pt,boolean:ht,symbol:vt,undefined:at})),Jn=f_(zC.arrayFrom(WC.keys(),kd)),zn=new zC.Map,Kn=new zC.Map,Un=new zC.Map,Vn=new zC.Map,qn=new zC.Map,Wn=new zC.Map,Hn=zC.createSymbolTable();Hn.set(Se.escapedName,Se);var Gn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===$.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(var e,t=0,r=b.getSourceFiles();t<r.length;t++){var n=r[t];zC.bindSourceFile(n,$)}Ht=new zC.Map;for(var i=0,a=b.getSourceFiles();i<a.length;i++)if(!(n=a[i]).redirectInfo){if(!zC.isExternalOrCommonJsModule(n)){var o=n.locals.get("globalThis");if(null!=o&&o.declarations)for(var s=0,c=o.declarations;s<c.length;s++){var l=c[s];Rn.add(zC.createDiagnosticForNode(l,zC.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}fi(De,n.locals)}n.jsGlobalAugmentations&&fi(De,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Qt=zC.concatenate(Qt,n.patternAmbientModules)),n.moduleAugmentations.length&&(e=e||[]).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(function(e,t){De.has(t)||De.set(t,e)})}if(e)for(var u=0,_=e;u<_.length;u++)for(var d=_[u],p=0,f=d;p<f.length;p++){var g=f[p];zC.isGlobalScopeAugmentation(g.parent)&&gi(g)}if(function(a,o){Hn.forEach(function(e,t){var r,n,i=a.get(t);i?zC.forEach(i.declarations,(r=zC.unescapeLeadingUnderscores(t),n=o,function(e){return Rn.add(zC.createDiagnosticForNode(e,n,r))})):a.set(t,e)})}(De,zC.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),mi(Se).type=ot,mi(ke).type=Mu("IArguments",0,!0),mi(We).type=$e,mi(Te).type=wa(16,Te),tr=Mu("Array",1,!0),Yt=Mu("Object",0,!0),Zt=Mu("Function",0,!0),$t=S&&Mu("CallableFunction",0,!0)||Zt,er=S&&Mu("NewableFunction",0,!0)||Zt,nr=Mu("String",0,!0),ir=Mu("Number",0,!0),ar=Mu("Boolean",0,!0),or=Mu("RegExp",0,!0),cr=Qu(Xe),(lr=Qu(Ye))===Rt&&(lr=Ba(void 0,k,zC.emptyArray,zC.emptyArray,zC.emptyArray)),rr=qu("ReadonlyArray",1)||tr,ur=rr?Hu(rr,[Xe]):cr,sr=qu("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];zC.isGlobalScopeAugmentation(g.parent)||gi(g)}Ht.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?zC.Diagnostics.Cannot_redeclare_block_scoped_variable_0:zC.Diagnostics.Duplicate_identifier_0,o=0,s=n;o<s.length;o++)pi(s[o],a,t,i);for(var c=0,l=i;c<l.length;c++)pi(l[c],a,t,n)}):(e=zC.arrayFrom(e.keys()).join(", "),Rn.add(zC.addRelatedInfo(zC.createDiagnosticForNode(t,zC.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,e),zC.createDiagnosticForNode(r,zC.Diagnostics.Conflicts_are_in_this_file))),Rn.add(zC.addRelatedInfo(zC.createDiagnosticForNode(r,zC.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,e),zC.createDiagnosticForNode(t,zC.Diagnostics.Conflicts_are_in_this_file))))}),Ht=void 0}(),Ne;function Qn(e){if(e){var t=zC.getSourceFileOfNode(e);if(t)if(zC.isJsxOpeningFragment(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){var n=zC.isArray(r)?r[0]:r;if(t.localJsxFragmentFactory=zC.parseIsolatedEntityName(n.arguments.factory,B),zC.visitNode(t.localJsxFragmentFactory,Yn),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=zC.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}n=cC(e);if(n)return t.localJsxFragmentFactory=n,t.localJsxFragmentNamespace=zC.getFirstIdentifier(n).escapedText}else{n=Xn(t);if(n)return t.localJsxNamespace=n}}return zr||(zr="React",$.jsxFactory?(Kr=zC.parseIsolatedEntityName($.jsxFactory,B),zC.visitNode(Kr,Yn),Kr&&(zr=zC.getFirstIdentifier(Kr).escapedText)):$.reactNamespace&&(zr=zC.escapeLeadingUnderscores($.reactNamespace))),Kr=Kr||zC.factory.createQualifiedName(zC.factory.createIdentifier(zC.unescapeLeadingUnderscores(zr)),"createElement"),zr}function Xn(e){if(e.localJsxNamespace)return e.localJsxNamespace;var t=e.pragmas.get("jsx");if(t){t=zC.isArray(t)?t[0]:t;if(e.localJsxFactory=zC.parseIsolatedEntityName(t.arguments.factory,B),zC.visitNode(e.localJsxFactory,Yn),e.localJsxFactory)return e.localJsxNamespace=zC.getFirstIdentifier(e.localJsxFactory).escapedText}}function Yn(e){return zC.setTextRangePosEnd(e,-1,-1),zC.visitEachChild(e,Yn,zC.nullTransformationContext)}function Zn(e,t,r,n,i,a,o){o=ei(t,r,n,i,a,o);return o.skippedOn=e,o}function $n(e,t,r,n,i,a){return e?zC.createDiagnosticForNode(e,t,r,n,i,a):zC.createCompilerDiagnostic(t,r,n,i,a)}function ei(e,t,r,n,i,a){a=$n(e,t,r,n,i,a);return Rn.add(a),a}function ti(e,t){e?Rn.add(t):Bn.add(__assign(__assign({},t),{category:zC.DiagnosticCategory.Suggestion}))}function ri(e,t,r,n,i,a,o){var s;t.pos<0||t.end<0?e&&(s=zC.getSourceFileOfNode(t),ti(e,"message"in r?zC.createFileDiagnostic(s,0,0,r,n,i,a,o):zC.createDiagnosticForFileFromMessageChain(s,r))):ti(e,"message"in r?zC.createDiagnosticForNode(t,r,n,i,a,o):zC.createDiagnosticForNodeFromMessageChain(t,r))}function ni(e,t,r,n,i,a,o){o=ei(e,r,n,i,a,o);return t&&(e=zC.createDiagnosticForNode(e,zC.Diagnostics.Did_you_forget_to_use_await),zC.addRelatedInfo(o,e)),o}function ii(e,t){e=Array.isArray(e)?zC.forEach(e,zC.getJSDocDeprecatedTag):zC.getJSDocDeprecatedTag(e);return e&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(e,zC.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Bn.add(t),t}function ai(e){return 268435456&Th(e)}function oi(e,t,r){return ii(t,zC.createDiagnosticForNode(e,zC.Diagnostics._0_is_deprecated,r))}function si(e,t,r){s++;t=new i(33554432|e,t);return t.checkFlags=r||0,t}function ci(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 li(e,t){t.mergeId||(t.mergeId=VC,VC++),xn[t.mergeId]=e}function ui(e){var t=si(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 zC.Map(e.members)),e.exports&&(t.exports=new zC.Map(e.exports)),li(t,e),t}function _i(e,t,r){if(void 0===r&&(r=!1),!(e.flags&ci(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){var n=Hi(e);if(n===We)return t;e=ui(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&zC.setValueDeclaration(e,t.valueDeclaration),zC.addRange(e.declarations,t.declarations),t.members&&(e.members||(e.members=zC.createSymbolTable()),fi(e.members,t.members,r)),t.exports&&(e.exports||(e.exports=zC.createSymbolTable()),fi(e.exports,t.exports,r)),r||li(e,t)}else{var i,a,o,s,c,l,u,_;1024&e.flags?e!==Te&&ei(t.declarations&&zC.getNameOfDeclaration(t.declarations[0]),zC.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,$a(e)):(i=!!(384&e.flags||384&t.flags),a=!!(2&e.flags||2&t.flags),o=i?zC.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a?zC.Diagnostics.Cannot_redeclare_block_scoped_variable_0:zC.Diagnostics.Duplicate_identifier_0,_=t.declarations&&zC.getSourceFileOfNode(t.declarations[0]),s=e.declarations&&zC.getSourceFileOfNode(e.declarations[0]),c=zC.isPlainJsFile(_,$.checkJs),n=zC.isPlainJsFile(s,$.checkJs),r=$a(t),_&&s&&Ht&&!i&&_!==s?(l=-1===zC.comparePaths(_.path,s.path)?_:s,u=l===_?s:_,_=zC.getOrUpdate(Ht,"".concat(l.path,"|").concat(u.path),function(){return{firstFile:l,secondFile:u,conflictingSymbols:new zC.Map}}),_=zC.getOrUpdate(_.conflictingSymbols,r,function(){return{isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}}),c||d(_.firstFileLocations,t),n||d(_.secondFileLocations,e)):(c||di(t,o,r,e),n||di(e,o,r,t)))}return e;function d(e,t){if(t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];zC.pushIfUnique(e,i)}}}function di(e,t,r,n){zC.forEach(e.declarations,function(e){pi(e,t,r,n.declarations)})}function pi(e,t,n,r){for(var i,a,o,s,c=(zC.getExpandoInitializer(e,!1)?zC.getNameOfExpando(e):zC.getNameOfDeclaration(e))||e,l=(i=t,e=n,o=(t=c)?zC.createDiagnosticForNode(t,i,e,a,o,s):zC.createCompilerDiagnostic(i,e,a,o,s),(s=Rn.lookup(o))||(Rn.add(o),o)),u=0,_=r||zC.emptyArray;u<_.length;u++)!function(e){var t,r;(e=(zC.getExpandoInitializer(e,!1)?zC.getNameOfExpando(e):zC.getNameOfDeclaration(e))||e)!==c&&(l.relatedInformation=l.relatedInformation||[],t=zC.createDiagnosticForNode(e,zC.Diagnostics._0_was_also_declared_here,n),r=zC.createDiagnosticForNode(e,zC.Diagnostics.and_here),5<=zC.length(l.relatedInformation)||zC.some(l.relatedInformation,function(e){return 0===zC.compareDiagnostics(e,r)||0===zC.compareDiagnostics(e,t)})||zC.addRelatedInfo(l,zC.length(l.relatedInformation)?r:t))}(_[u])}function fi(n,e,i){void 0===i&&(i=!1),e.forEach(function(e,t){var r=n.get(t);n.set(t,r?_i(r,e,i):e)})}function gi(e){var t,r,n=e.parent;if((null===(t=n.symbol.declarations)||void 0===t?void 0:t[0])===n)if(zC.isGlobalScopeAugmentation(n))fi(De,n.symbol.exports);else{var i=aa(e,e,16777216&e.parent.parent.flags?void 0:zC.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(i)if(1920&(i=ca(i)).flags)if(zC.some(Qt,function(e){return i===e.symbol})){var a=_i(n.symbol,i,!0);(Xt=Xt||new zC.Map).set(e.text,a)}else{if(null!==(a=i.exports)&&void 0!==a&&a.get("__export")&&null!==(r=n.symbol.exports)&&void 0!==r&&r.size)for(var o=ec(i,"resolvedExports"),s=0,c=zC.arrayFrom(n.symbol.exports.entries());s<c.length;s++){var l=c[s],u=l[0],l=l[1];o.has(u)&&!i.exports.has(u)&&_i(o.get(u),l)}_i(i,n.symbol)}else ei(e,zC.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else zC.Debug.assert(1<n.symbol.declarations.length)}function mi(e){if(33554432&e.flags)return e;e=ek(e);return Dn[e]||(Dn[e]=new YC)}function yi(e){e=$C(e);return Sn[e]||(Sn[e]=new ZC)}function hi(e){return 305===e.kind&&!zC.isExternalOrCommonJsModule(e)}function vi(e,t,r){if(r){e=va(e.get(t));if(e){if(zC.Debug.assert(0==(1&zC.getCheckFlags(e)),"Should never get an instantiated symbol here."),e.flags&r)return e;if(2097152&e.flags){t=Gi(e);if(t===We||t.flags&r)return e}}}}function bi(t,e){var r=zC.getSourceFileOfNode(t),n=zC.getSourceFileOfNode(e),i=zC.getEnclosingBlockScopeContainer(t);if(r!==n){if(m&&(r.externalModuleIndicator||n.externalModuleIndicator)||!zC.outFile($)||Gg(e)||16777216&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&&(!zC.isPropertyDeclaration(t)||!zC.isThisProperty(e.parent)||t.initializer||t.exclamationToken)){if(203!==t.kind)return 254===t.kind?!function(e,t){switch(e.parent.parent.kind){case 237:case 242:case 244:if(Ni(t,e,i))return!0}var r=e.parent.parent;return zC.isForInOrOfStatement(r)&&Ni(t,r.expression,i)}(t,e):zC.isClassDeclaration(t)?!zC.findAncestor(e,function(e){return zC.isComputedPropertyName(e)&&e.parent.parent===t}):zC.isPropertyDeclaration(t)?!s(t,e,!1):!zC.isParameterPropertyDeclaration(t,t.parent)||!(99===zC.getEmitScriptTarget($)&&E&&zC.getContainingClass(t)===zC.getContainingClass(e)&&o(e,t));n=zC.getAncestor(e,203);return n?zC.findAncestor(n,zC.isBindingElement)!==zC.findAncestor(t,zC.isBindingElement)||t.pos<n.pos:bi(zC.getAncestor(t,254),e)}return!!(275===e.parent.kind||271===e.parent.kind&&e.parent.isExportEquals)||(!(271!==e.kind||!e.isExportEquals)||(!!(8388608&e.flags||Gg(e)||zC.findAncestor(e,function(e){return zC.isInterfaceDeclaration(e)||zC.isTypeAliasDeclaration(e)}))||!!o(e,t)&&(99!==zC.getEmitScriptTarget($)||!E||!zC.getContainingClass(t)||!zC.isPropertyDeclaration(t)&&!zC.isParameterPropertyDeclaration(t,t.parent)||!s(t,e,!0))));function o(r,n){return zC.findAncestor(r,function(e){if(e===i)return"quit";if(zC.isFunctionLike(e))return!0;if(zC.isClassStaticBlockDeclaration(e))return n.pos<r.pos;var t=zC.tryCast(e.parent,zC.isPropertyDeclaration);if(t&&t.initializer===e)if(zC.isStatic(e.parent)){if(169===n.kind)return!0;if(zC.isPropertyDeclaration(n)&&zC.getContainingClass(r)===zC.getContainingClass(n)){t=n.name;if(zC.isIdentifier(t)||zC.isPrivateIdentifier(t))if(function(e,t,r,n,i){for(var a=0,o=r;a<o.length;a++){var s=o[a];if(s.pos>=n&&s.pos<=i){var c=zC.factory.createPropertyAccessExpression(zC.factory.createThis(),e);if(zC.setParent(c.expression,c),zC.setParent(c,s),c.flowNode=s.returnFlowNode,!(32768&zf(Xm(c,t,qf(t)))))return!0}}return!1}(t,_s(ba(n)),zC.filter(n.parent.members,zC.isClassStaticBlockDeclaration),n.parent.pos,e.pos))return!0}}else if(!(167===n.kind&&!zC.isStatic(n))||zC.getContainingClass(r)!==zC.getContainingClass(n))return!0;return!1})}function s(t,e,r){return!(e.end>t.end)&&void 0===zC.findAncestor(e,function(e){if(e===t)return"quit";switch(e.kind){case 214:return!0;case 167:return!r||!(zC.isPropertyDeclaration(t)&&e.parent===t.parent||zC.isParameterPropertyDeclaration(t,t.parent)&&e.parent===t.parent.parent)||"quit";case 235:switch(e.parent.kind){case 172:case 169:case 173:return!0;default:return!1}default:return!1}})}}function xi(e,t,r){var n=zC.getEmitScriptTarget($),t=t;if(zC.isParameter(r)&&t.body&&e.valueDeclaration&&e.valueDeclaration.pos>=t.body.pos&&e.valueDeclaration.end<=t.body.end&&2<=n){e=yi(t);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=zC.forEach(t.parameters,function(e){return i(e.name)||!!e.initializer&&i(e.initializer)})||!1),!e.declarationRequiresScopeChange}function i(e){switch(e.kind){case 214:case 213:case 256:case 171:return!1;case 169:case 172:case 173:case 296:return i(e.name);case 167:return zC.hasStaticModifier(e)?n<99||!E:i(e.name);default:return zC.isNullishCoalesce(e)||zC.isOptionalChain(e)?n<7:zC.isBindingElement(e)&&e.dotDotDotToken&&zC.isObjectBindingPattern(e.parent)?n<4:!zC.isTypeNode(e)&&zC.forEachChild(e,i)||!1}}}function Di(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),Si(e,t,r,n,i,a,o,s,vi)}function Si(e,i,a,o,s,t,r,c,l){var u,n,_,d,p,f,g=e,m=!1,y=e,h=!1;e:for(;e;){if("const"===i&&(v=e,zC.isAssertionExpression(v)&&zC.isConstTypeReference(v.type)||zC.isJSDocTypeTag(v)&&zC.isConstTypeReference(v.typeExpression)))return;if(e.locals&&!hi(e)&&(u=l(e.locals,i,a))){var v=!0;if(zC.isFunctionLike(e)&&n&&n!==e.body?(a&u.flags&788968&&320!==n.kind&&(v=!!(262144&u.flags)&&(n===e.type||164===n.kind||340===n.kind||341===n.kind||163===n.kind)),a&u.flags&3&&(xi(u,e,n)?v=!1:1&u.flags&&(v=164===n.kind||n===e.type&&!!zC.findAncestor(u.valueDeclaration,zC.isParameter)))):189===e.kind&&(v=n===e.trueType),v)break e;u=void 0}switch(m=m||function(e,t){if(214!==e.kind&&213!==e.kind)return zC.isTypeQueryNode(e)||(zC.isFunctionLikeDeclaration(e)||167===e.kind&&!zC.isStatic(e))&&(!t||t!==e.name);if(t&&t===e.name)return!1;if(e.asteriskToken||zC.hasSyntacticModifier(e,256))return!0;return!zC.getImmediatelyInvokedFunctionExpression(e)}(e,n),e.kind){case 305:if(!zC.isExternalOrCommonJsModule(e))break;h=!0;case 261:var b=(null===(b=ba(e))||void 0===b?void 0:b.exports)||k;if(305===e.kind||zC.isModuleDeclaration(e)&&16777216&e.flags&&!zC.isGlobalScopeAugmentation(e)){if(u=b.get("default")){var x=zC.getLocalSymbolForExportDefault(u);if(x&&u.flags&a&&x.escapedName===i)break e;u=void 0}x=b.get(i);if(x&&2097152===x.flags&&(zC.getDeclarationOfKind(x,275)||zC.getDeclarationOfKind(x,274)))break}if("default"!==i&&(u=l(b,i,2623475&a))){if(!zC.isSourceFile(e)||!e.commonJsModuleIndicator||null!==(b=u.declarations)&&void 0!==b&&b.some(zC.isJSDocTypeAlias))break e;u=void 0}break;case 260:if(u=l((null===(f=ba(e))||void 0===f?void 0:f.exports)||k,i,8&a))break e;break;case 167:zC.isStatic(e)||(f=Na(e.parent))&&f.locals&&l(f.locals,i,111551&a)&&(d=e);break;case 257:case 226:case 258:if(u=l(ba(e).members||k,i,788968&a)){if(!function(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(163===i.kind)if((zC.isJSDocTemplateTag(i.parent)?zC.getJSDocHost(i.parent):i.parent)===t)return!(zC.isJSDocTemplateTag(i.parent)&&zC.find(i.parent.parent.tags,zC.isJSDocTypeAlias))}return!1}(u,e)){u=void 0;break}if(n&&zC.isStatic(n))return void ei(y,zC.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(226===e.kind&&32&a){var D=e.name;if(D&&i===D.escapedText){u=e.symbol;break e}}break;case 228:if(n===e.expression&&94===e.parent.token){D=e.parent.parent;if(zC.isClassLike(D)&&(u=l(ba(D).members,i,788968&a)))return void(o&&ei(y,zC.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 162:if(S=e.parent.parent,(zC.isClassLike(S)||258===S.kind)&&(u=l(ba(S).members,i,788968&a)))return void ei(y,zC.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 214:if(2<=zC.getEmitScriptTarget($))break;case 169:case 171:case 172:case 173:case 256:if(3&a&&"arguments"===i){u=ke;break e}break;case 213:if(3&a&&"arguments"===i){u=ke;break e}if(16&a){var S=e.name;if(S&&i===S.escapedText){u=e.symbol;break e}}break;case 165:e.parent&&164===e.parent.kind&&(e=e.parent),e.parent&&(zC.isClassElement(e.parent)||257===e.parent.kind)&&(e=e.parent);break;case 345:case 338:case 339:var T=zC.getJSDocRoot(e);T&&(e=T.parent);break;case 164:n&&(n===e.initializer||n===e.name&&zC.isBindingPattern(n))&&(p=p||e);break;case 203:n&&(n===e.initializer||n===e.name&&zC.isBindingPattern(n))&&zC.isParameterDeclaration(e)&&!p&&(p=e);break;case 190:if(262144&a){T=e.typeParameter.name;if(T&&i===T.escapedText){u=e.typeParameter.symbol;break e}}}!function(e){switch(e.kind){case 256:case 257:case 258:case 260:case 259:case 261:return!0;default:return!1}}(e)||(_=e),n=e,e=zC.isJSDocTemplateTag(e)?zC.getEffectiveContainerForJSDocTemplateTag(e)||e.parent:(zC.isJSDocParameterTag(e)||zC.isJSDocReturnTag(e))&&zC.getHostSignatureFromJSDoc(e)||e.parent}if(!t||!u||_&&u===_.symbol||(u.isReferenced|=a),!u){if(n&&(zC.Debug.assert(305===n.kind),n.commonJsModuleIndicator&&"exports"===i&&a&n.symbol.flags))return n.symbol;r||(u=l(De,i,a))}if(!u&&g&&zC.isInJSFile(g)&&g.parent&&zC.isRequireCall(g.parent,!1))return Ee;if(u){if(!d||99===zC.getEmitScriptTarget($)&&E)return o&&C(function(){var e,t,r,n;y&&(2&a||(32&a||384&a)&&111551==(111551&a))&&(2&(e=ka(u)).flags||32&e.flags||384&e.flags)&&function(e,t){if(zC.Debug.assert(!!(2&e.flags||32&e.flags||384&e.flags)),!(67108881&e.flags&&32&e.flags)){var r,n,i=null===(n=e.declarations)||void 0===n?void 0:n.find(function(e){return zC.isBlockOrCatchScoped(e)||zC.isClassLike(e)||260===e.kind});if(void 0===i)return zC.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");16777216&i.flags||bi(i,t)||(r=void 0,n=zC.declarationNameToString(zC.getNameOfDeclaration(i)),2&e.flags?r=ei(t,zC.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,n):32&e.flags?r=ei(t,zC.Diagnostics.Class_0_used_before_its_declaration,n):256&e.flags?r=ei(t,zC.Diagnostics.Enum_0_used_before_its_declaration,n):(zC.Debug.assert(!!(128&e.flags)),zC.shouldPreserveConstEnums($)&&(r=ei(t,zC.Diagnostics.Enum_0_used_before_its_declaration,n))),r&&zC.addRelatedInfo(r,zC.createDiagnosticForNode(i,zC.Diagnostics._0_is_declared_here,n)))}}(e,y),!u||!h||111551!=(111551&a)||8388608&g.flags||(t=va(u),zC.length(t.declarations)&&zC.every(t.declarations,function(e){return zC.isNamespaceExportDeclaration(e)||zC.isSourceFile(e)&&!!e.symbol.globalExports})&&ri(!$.allowUmdGlobalAccess,y,zC.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,zC.unescapeLeadingUnderscores(i))),u&&p&&!m&&111551==(111551&a)&&(n=va(rc(u)),r=zC.getRootDeclaration(p),n===ba(p)?ei(y,zC.Diagnostics.Parameter_0_cannot_reference_itself,zC.declarationNameToString(p.name)):n.valueDeclaration&&n.valueDeclaration.pos>p.pos&&r.parent.locals&&l(r.parent.locals,n.escapedName,a)===n&&ei(y,zC.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,zC.declarationNameToString(p.name),zC.declarationNameToString(y))),!(u&&y&&111551&a&&2097152&u.flags)||111551&u.flags||zC.isValidTypeOnlyAliasUseSite(y)||(t=Yi(u))&&(r=275===t.kind?zC.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:zC.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,n=zC.unescapeLeadingUnderscores(i),Ti(ei(y,r,n),t,n))}),u;r=d.name;ei(y,zC.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,zC.declarationNameToString(r),Ci(s))}else o&&C(function(){var e,t,r,n;y&&(function(e,t,r){if(!zC.isIdentifier(e)||e.escapedText!==t||yT(e)||Gg(e))return!1;var n=zC.getThisContainer(e,!1),i=n;for(;i;){if(zC.isClassLike(i.parent)){var a=ba(i.parent);if(!a)break;if(_l(_s(a),t))return ei(e,zC.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ci(r),$a(a)),!0;if(i===n&&!zC.isStatic(i))if(_l(Rs(a).thisType,t))return ei(e,zC.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ci(r)),!0}i=i.parent}return!1}(y,i,s)||ki(y)||function(e,t,r){var n=1920|(zC.isInJSFile(e)?111551:0);if(r===n){var i=Hi(Di(e,t,788968&~n,void 0,void 0,!1)),r=e.parent;if(i){if(zC.isQualifiedName(r)){zC.Debug.assert(r.left===e,"Should only be resolving left side of qualified name as a namespace");n=r.right.escapedText;if(_l(Rs(i),n))return ei(r,zC.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,zC.unescapeLeadingUnderscores(t),zC.unescapeLeadingUnderscores(n)),!0}return ei(e,zC.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,zC.unescapeLeadingUnderscores(t)),!0}}return!1}(y,i,a)||function(e,t){if(Ei(t)&&275===e.parent.kind)return ei(e,zC.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(y,i)||function(e,t,r){if(111551&r){if(Ei(t))return ei(e,zC.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,zC.unescapeLeadingUnderscores(t)),!0;var n=Hi(Di(e,t,788544,void 0,void 0,!1));if(n&&!(1024&n.flags)){r=zC.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=zC.findAncestor(e.parent,function(e){return!zC.isComputedPropertyName(e)&&!zC.isPropertySignature(e)&&(zC.isTypeLiteralNode(e)||"quit")});if(e&&1===e.members.length){t=Rs(t);return!!(1048576&t.flags)&&ax(t,384,!0)}return!1}(e,n)?ei(e,zC.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):ei(e,zC.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"):ei(e,zC.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}(y,i,a)||function(e,t,r){if(111127&r){if(Hi(Di(e,t,1024,void 0,void 0,!1)))return ei(e,zC.Diagnostics.Cannot_use_namespace_0_as_a_value,zC.unescapeLeadingUnderscores(t)),!0}else if(788544&r)if(Hi(Di(e,t,1536,void 0,void 0,!1)))return ei(e,zC.Diagnostics.Cannot_use_namespace_0_as_a_type,zC.unescapeLeadingUnderscores(t)),!0;return!1}(y,i,a)||function(e,t,r){if(788584&r){r=Hi(Di(e,t,111127,void 0,void 0,!1));if(r&&!(1920&r.flags))return ei(e,zC.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zC.unescapeLeadingUnderscores(t)),!0}return!1}(y,i,a))||(n=void 0,c&&vn<bn&&((null==(n=tv(g,i,a))?void 0:n.valueDeclaration)&&zC.isAmbientModule(n.valueDeclaration)&&zC.isGlobalScopeAugmentation(n.valueDeclaration)&&(n=void 0),n&&(e=$a(n),t=Wh(g,n,!1),r=1920===a||s&&"string"!=typeof s&&zC.nodeIsSynthesized(s)?zC.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:t?zC.Diagnostics.Could_not_find_name_0_Did_you_mean_1:zC.Diagnostics.Cannot_find_name_0_Did_you_mean_1,ti(!t,r=$n(y,r,Ci(s),e)),n.valueDeclaration&&zC.addRelatedInfo(r,zC.createDiagnosticForNode(n.valueDeclaration,zC.Diagnostics._0_is_declared_here,e)))),n||s&&((n=function(e){for(var t=Ci(e),r=zC.getScriptTargetFeatures(),e=zC.getOwnKeys(r),n=0,i=e;n<i.length;n++){var a=i[n],o=zC.getOwnKeys(r[a]);if(void 0!==o&&zC.contains(o,t))return a}}(s))?ei(y,o,Ci(s),n):ei(y,o,Ci(s))),vn++)})}function Ti(e,t,r){return t?zC.addRelatedInfo(e,zC.createDiagnosticForNode(t,275===t.kind?zC.Diagnostics._0_was_exported_here:zC.Diagnostics._0_was_imported_here,r)):e}function Ci(e){return zC.isString(e)?zC.unescapeLeadingUnderscores(e):zC.declarationNameToString(e)}function ki(e){var t=function e(t){switch(t.kind){case 79:case 206:return t.parent?e(t.parent):void 0;case 228:if(zC.isEntityNameExpression(t.expression))return t.expression;default:return}}(e);return t&&ra(t,64,!0)&&(ei(e,zC.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,zC.getTextOfNode(t)),1)}function Ei(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Ni(e,t,r){return!!t&&!!zC.findAncestor(e,function(e){return e===t||!(e!==r&&(!zC.isFunctionLike(e)||zC.getImmediatelyInvokedFunctionExpression(e)))&&"quit"})}function Ai(e){switch(e.kind){case 265:return e;case 267:return e.parent;case 268:return e.parent.parent;case 270:return e.parent.parent.parent;default:return}}function Fi(e){return e.declarations&&zC.findLast(e.declarations,Pi)}function Pi(e){return 265===e.kind||264===e.kind||267===e.kind&&!!e.name||268===e.kind||274===e.kind||270===e.kind||275===e.kind||271===e.kind&&zC.exportAssignmentIsAlias(e)||zC.isBinaryExpression(e)&&2===zC.getAssignmentDeclarationKind(e)&&zC.exportAssignmentIsAlias(e)||zC.isAccessExpression(e)&&zC.isBinaryExpression(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind&&wi(e.parent.right)||297===e.kind||296===e.kind&&wi(e.initializer)||zC.isVariableDeclarationInitializedToBareOrAccessedRequire(e)}function wi(e){return zC.isAliasableExpression(e)||zC.isFunctionExpression(e)&&tb(e)}function Ii(e,t){var r=Ki(e);if(r){var n=zC.getLeftmostAccessExpression(r.expression).arguments[0];return zC.isIdentifier(r.name)?Hi(_l(Rl(n),r.name.escapedText)):void 0}if(zC.isVariableDeclaration(e)||277===e.moduleReference.kind){var i=ia(e,zC.getExternalModuleRequireArgument(e)||zC.getExternalModuleImportEqualsDeclarationExpression(e)),a=ca(i);return Qi(e,i,a,!1),a}n=ea(e.moduleReference,t);return Qi(r=e,void 0,i=n,!1)&&!r.isTypeOnly&&(a=Yi(ba(r)),t=275===a.kind,e=t?zC.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:zC.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=t?zC.Diagnostics._0_was_exported_here:zC.Diagnostics._0_was_imported_here,t=zC.unescapeLeadingUnderscores(a.name.escapedText),zC.addRelatedInfo(ei(r.moduleReference,e),zC.createDiagnosticForNode(a,i,t))),n}function Oi(e,t,r,n){var i=e.exports.get("export="),t=i?_l(_s(i),t):e.exports.get(t),n=Hi(t,n);return Qi(r,t,n,!1),n}function Mi(e){return zC.isExportAssignment(e)&&!e.isExportEquals||zC.hasSyntacticModifier(e,512)||zC.isExportSpecifier(e)}function Li(e){return zC.isStringLiteralLike(e)?zC.getModeForUsageLocation(zC.getSourceFileOfNode(e),e):void 0}function Ri(e,t){return e===zC.ModuleKind.ESNext&&t===zC.ModuleKind.CommonJS}function Bi(e){return Li(e)===zC.ModuleKind.ESNext&&zC.endsWith(e.text,".json")}function ji(e,t,r,n){var i=e&&Li(n);if(e&&void 0!==i){n=Ri(i,e.impliedNodeFormat);if(i===zC.ModuleKind.ESNext||n)return n}if(!y)return!1;if(e&&!e.isDeclarationFile)return zC.isSourceFileJS(e)?!e.externalModuleIndicator&&!Oi(t,zC.escapeLeadingUnderscores("__esModule"),void 0,r):_a(t);e=Oi(t,"default",void 0,!0);return(!e||!zC.some(e.declarations,Mi))&&!Oi(t,zC.escapeLeadingUnderscores("__esModule"),void 0,r)}function Ji(e,t){var r=ia(e,e.parent.moduleSpecifier);if(r){var n,i,a=void 0,a=zC.isShorthandAmbientModuleSymbol(r)?r:Oi(r,"default",e,t),o=null===(s=r.declarations)||void 0===s?void 0:s.find(zC.isSourceFile),s=Bi(e.parent.moduleSpecifier),o=ji(o,r,t,e.parent.moduleSpecifier);if(a||o||s){if(o||s){var c=ca(r,t)||Hi(r,t);return Qi(e,r,c,!1),c}}else _a(r)?(n=m>=zC.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",i=r.exports.get("export=").valueDeclaration,c=ei(e.name,zC.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,$a(r),n),i&&zC.addRelatedInfo(c,zC.createDiagnosticForNode(i,zC.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)?ei(i.name,zC.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,$a(n),$a(i.symbol)):(i=ei(i.name,zC.Diagnostics.Module_0_has_no_default_export,$a(n)),!(n=null===(n=n.exports)||void 0===n?void 0:n.get("__export"))||(n=null===(n=n.declarations)||void 0===n?void 0:n.find(function(e){var t;return!!(zC.isExportDeclaration(e)&&e.moduleSpecifier&&null!==(t=null===(t=ia(e,e.moduleSpecifier))||void 0===t?void 0:t.exports)&&void 0!==t&&t.has("default"))}))&&zC.addRelatedInfo(i,zC.createDiagnosticForNode(n,zC.Diagnostics.export_Asterisk_does_not_re_export_a_default))));return Qi(e,a,void 0,!1),a}}function zi(e,t,r){void 0===r&&(r=!1);var n=zC.getExternalModuleRequireArgument(e)||e.moduleSpecifier,i=ia(e,n),a=!zC.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(zC.isIdentifier(a)){var o,s,c=la(i,n,!1,"default"===a.escapedText&&!(!$.allowSyntheticDefaultImports&&!zC.getESModuleInterop($)));if(c&&a.escapedText){if(zC.isShorthandAmbientModuleSymbol(i))return i;var l=void 0,l=i&&i.exports&&i.exports.get("export=")?_l(_s(c),a.escapedText,!0):function(e,t){if(3&e.flags){e=e.valueDeclaration.type;if(e)return Hi(_l(Id(e),t))}}(c,a.escapedText);l=Hi(l,r);var u=function(e,t,r,n){if(1536&e.flags){t=ga(e).get(t.escapedText),n=Hi(t,n);return Qi(r,t,n,!1),n}}(c,a,t,r);void 0===u&&"default"===a.escapedText&&(t=null===(t=i.declarations)||void 0===t?void 0:t.find(zC.isSourceFile),(Bi(n)||ji(t,i,r,n))&&(u=ca(i,r)||Hi(i,r)));var _,n=u&&l&&u!==l?function(e,t){if(e===We&&t===We)return We;if(790504&e.flags)return e;var r=si(e.flags|t.flags,e.escapedName);return r.declarations=zC.deduplicate(zC.concatenate(e.declarations,t.declarations),zC.equateValues),r.parent=e.parent||t.parent,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),t.members&&(r.members=new zC.Map(t.members)),e.exports&&(r.exports=new zC.Map(e.exports)),r}(l,u):u||l;return n||(r=ta(i,e),u=zC.declarationNameToString(a),void 0!==(l=rv(a,c))?(_=$a(l),c=ei(a,zC.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,r,u,_),l.valueDeclaration&&zC.addRelatedInfo(c,zC.createDiagnosticForNode(l.valueDeclaration,zC.Diagnostics._0_is_declared_here,_))):null!==(_=i.exports)&&void 0!==_&&_.has("default")?ei(a,zC.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,r,u):(e=e,a=a,o=u,u=r,s=null===(i=null===(i=(r=i).valueDeclaration)||void 0===i?void 0:i.locals)||void 0===i?void 0:i.get(a.escapedText),i=r.exports,s?(r=null==i?void 0:i.get("export="))?Ca(r,s)?function(e,t,r,n){var i;m>=zC.ModuleKind.ES2015?(i=zC.getESModuleInterop($)?zC.Diagnostics._0_can_only_be_imported_by_using_a_default_import:zC.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,ei(t,i,r)):zC.isInJSFile(e)?(i=zC.getESModuleInterop($)?zC.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:zC.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,ei(t,i,r)):(i=zC.getESModuleInterop($)?zC.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:zC.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,ei(t,i,r,r,n))}(e,a,o,u):ei(a,zC.Diagnostics.Module_0_has_no_exported_member_1,u,o):(i=(i=i?zC.find(Cl(i),function(e){return!!Ca(e,s)}):void 0)?ei(a,zC.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,u,o,$a(i)):ei(a,zC.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,u,o),s.declarations&&zC.addRelatedInfo.apply(void 0,__spreadArray([i],zC.map(s.declarations,function(e,t){return zC.createDiagnosticForNode(e,0===t?zC.Diagnostics._0_is_declared_here:zC.Diagnostics.and_here,o)}),!1))):ei(a,zC.Diagnostics.Module_0_has_no_exported_member_1,u,o))),n}}}function Ki(e){if(zC.isVariableDeclaration(e)&&e.initializer&&zC.isPropertyAccessExpression(e.initializer))return e.initializer}function Ui(e,t,r){r=e.parent.parent.moduleSpecifier?zi(e.parent.parent,e,r):ra(e.propertyName||e.name,t,!1,r);return Qi(e,void 0,r,!1),r}function Vi(e,t){if(zC.isClassExpression(e))return mx(e).symbol;if(zC.isEntityName(e)||zC.isEntityNameExpression(e)){t=ra(e,901119,!0,t);return t?t:(mx(e),yi(e).resolvedSymbol)}}function qi(e,t){switch(void 0===t&&(t=!1),e.kind){case 265:case 254:return Ii(e,t);case 267:return Ji(e,t);case 268:return u=t,_=(l=e).parent.parent.moduleSpecifier,d=ia(l,_),u=la(d,_,u,!1),Qi(l,d,u,!1),u;case 274:return o=t,s=(a=e).parent.moduleSpecifier,c=s&&ia(a,s),o=s&&la(c,s,o,!1),Qi(a,c,o,!1),o;case 270:case 203:return s=e,a=t,o=Ki(c=zC.isBindingElement(s)?zC.getRootDeclaration(s):s.parent.parent.parent),i=zi(c,o||s,a),c=s.propertyName||s.name,o&&i&&zC.isIdentifier(c)?Hi(_l(_s(i),c.escapedText),a):(Qi(s,void 0,i,!1),i);case 275:return Ui(e,901119,t);case 271:case 221:return i=e,n=t,n=Vi(zC.isExportAssignment(i)?i.expression:i.right,n),Qi(i,void 0,n,!1),n;case 264:return r=t,r=ca((n=e).parent.symbol,r),Qi(n,void 0,r,!1),r;case 297:return ra(e.name,901119,!0,t);case 296:return r=t,Vi(e.initializer,r);case 207:case 206:return function(e,t){if(zC.isBinaryExpression(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind)return Vi(e.parent.right,t)}(e,t);default:return zC.Debug.fail()}var r,n,i,a,o,s,c,l,u,_,d}function Wi(e,t){return void 0===t&&(t=901119),e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function Hi(e,t){return!t&&Wi(e)?Gi(e):e}function Gi(e){zC.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=mi(e);if(t.aliasTarget)t.aliasTarget===He&&(t.aliasTarget=We);else{t.aliasTarget=He;var r=Fi(e);if(!r)return zC.Debug.fail();var n=qi(r);t.aliasTarget===He?t.aliasTarget=n||We:ei(r,zC.Diagnostics.Circular_definition_of_import_alias_0,$a(e))}return t.aliasTarget}function Qi(e,t,r,n){if(e&&!zC.isPropertyAccessExpression(e)){var i=ba(e);if(zC.isTypeOnlyImportOrExportDeclaration(e))return mi(i).typeOnlyDeclaration=e,1;i=mi(i);return Xi(i,t,n)||Xi(i,r,n)}}function Xi(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&&zC.find(r.declarations,zC.isTypeOnlyImportOrExportDeclaration),e.typeOnlyDeclaration=null!==(r=null!=t?t:mi(r).typeOnlyDeclaration)&&void 0!==r&&r),!!e.typeOnlyDeclaration}function Yi(e){if(2097152&e.flags)return mi(e).typeOnlyDeclaration||void 0}function Zi(e){var t=ba(e),e=Gi(t);e&&(e===We||111551&e.flags&&!JT(e)&&!Yi(t))&&$i(t)}function $i(e){var t=mi(e);if(!t.referenced){t.referenced=!0;t=Fi(e);if(!t)return zC.Debug.fail();!zC.isInternalModuleImportEqualsDeclaration(t)||((e=Hi(e))===We||111551&e.flags)&&mx(t.moduleReference)}}function ea(e,t){return 79===e.kind&&zC.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),79===e.kind||161===e.parent.kind?ra(e,1920,!1,t):(zC.Debug.assert(265===e.parent.kind),ra(e,901119,!1,t))}function ta(e,t){return e.parent?ta(e.parent,t)+"."+$a(e):$a(e,t,void 0,20)}function ra(e,t,r,n,i){if(!zC.nodeIsMissing(e)){var a=1920|(zC.isInJSFile(e)?111551&t:0);if(79===e.kind){var o,s=t===a||zC.nodeIsSynthesized(e)?zC.Diagnostics.Cannot_find_namespace_0:Wg(zC.getFirstIdentifier(e)),c=zC.isInJSFile(e)&&!zC.nodeIsSynthesized(e)?function(e,t){if(Tu(e.parent)){var r=function(e){if(zC.findAncestor(e,function(e){return zC.isJSDocNode(e)||8388608&e.flags?zC.isJSDocTypeAlias(e):"quit"}))return;var t=zC.getJSDocHost(e);if(t&&zC.isExpressionStatement(t)&&zC.isPrototypePropertyAssignment(t.expression))if(r=ba(t.expression.left))return na(r);if(t&&zC.isFunctionExpression(t)&&zC.isPrototypePropertyAssignment(t.parent)&&zC.isExpressionStatement(t.parent.parent))if(r=ba(t.parent.left))return na(r);if(t&&(zC.isObjectLiteralMethod(t)||zC.isPropertyAssignment(t))&&zC.isBinaryExpression(t.parent.parent)&&6===zC.getAssignmentDeclarationKind(t.parent.parent))if(r=ba(t.parent.parent.left))return na(r);e=zC.getEffectiveJSDocHost(e);if(e&&zC.isFunctionLike(e)){var r;return(r=ba(e))&&r.valueDeclaration}}(e.parent);if(r)return Di(r,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(!(o=va(Di(i||e,e.escapedText,t,r||c?void 0:s,e,!0,!1))))return va(c)}else{if(161!==e.kind&&206!==e.kind)throw zC.Debug.assertNever(e,"Unknown entity name kind.");s=161===e.kind?e.left:e.expression,c=161===e.kind?e.right:e.name,i=ra(s,a,r,!1,i);if(!i||zC.nodeIsMissing(c))return;if(i===We)return i;if(i.valueDeclaration&&zC.isInJSFile(i.valueDeclaration)&&zC.isVariableDeclaration(i.valueDeclaration)&&i.valueDeclaration.initializer&&_b(i.valueDeclaration.initializer)&&(!(l=ia(l=i.valueDeclaration.initializer.arguments[0],l))||(u=ca(l))&&(i=u)),!(o=va(vi(ga(i),c.escapedText,t)))){if(!r){var l=ta(i),u=zC.declarationNameToString(c),r=rv(c,i);if(r)return void ei(c,zC.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,l,u,$a(r));r=zC.isQualifiedName(e)&&function(e){for(;zC.isQualifiedName(e.parent);)e=e.parent;return e}(e);if(Yt&&788968&t&&r&&!zC.isTypeOfExpression(r.parent)&&function(e){var t=zC.getFirstIdentifier(e),r=Di(t,t.escapedText,111551,void 0,t,!0);if(r){for(;zC.isQualifiedName(t.parent);){if(!(r=_l(_s(r),t.parent.right.escapedText)))return;t=t.parent}return r}}(r))return void ei(r,zC.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zC.entityNameToString(r));if(1920&t&&zC.isQualifiedName(e.parent)){i=va(vi(ga(i),c.escapedText,788968));if(i)return void ei(e.parent.right,zC.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,$a(i),zC.unescapeLeadingUnderscores(e.parent.right.escapedText))}ei(c,zC.Diagnostics.Namespace_0_has_no_exported_member_1,l,u)}return}}return zC.Debug.assert(0==(1&zC.getCheckFlags(o)),"Should never get an instantiated symbol here."),!zC.nodeIsSynthesized(e)&&zC.isEntityName(e)&&(2097152&o.flags||271===e.parent.kind)&&Qi(zC.getAliasDeclarationFromName(e),o,void 0,!0),o.flags&t||n?o:Gi(o)}}function na(e){e=e.parent.valueDeclaration;if(e)return(zC.isAssignmentDeclaration(e)?zC.getAssignedExpandoInitializer(e):zC.hasOnlyExpressionInitializer(e)?zC.getDeclaredExpandoInitializer(e):void 0)||e}function ia(e,t,r){var n=zC.getEmitModuleResolutionKind($)===zC.ModuleResolutionKind.Classic?zC.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:zC.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return aa(e,t,r?void 0:n)}function aa(e,t,r,n){return void 0===n&&(n=!1),zC.isStringLiteralLike(t)?oa(e,t.text,r,t,n):void 0}function oa(e,t,r,n,i){void 0===i&&(i=!1),zC.startsWith(t,"@types/")&&ei(n,o=zC.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,zC.removePrefix(t,"@types/"),t);var a=El(t,!0);if(a)return a;var o,s,c=zC.getSourceFileOfNode(e),l=zC.isStringLiteralLike(e)?e:(null===(a=zC.findAncestor(e,zC.isImportCall))||void 0===a?void 0:a.arguments[0])||(null===(l=zC.findAncestor(e,zC.isImportDeclaration))||void 0===l?void 0:l.moduleSpecifier)||(null===(u=zC.findAncestor(e,zC.isExternalModuleImportEqualsDeclaration))||void 0===u?void 0:u.moduleReference.expression)||(null===(_=zC.findAncestor(e,zC.isExportDeclaration))||void 0===_?void 0:_.moduleSpecifier)||(null===(d=zC.isModuleDeclaration(e)?e:e.parent&&zC.isModuleDeclaration(e.parent)&&e.parent.name===e?e.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=zC.isLiteralImportTypeNode(e)?e:void 0)||void 0===p?void 0:p.argument.literal),u=l&&zC.isStringLiteralLike(l)?zC.getModeForUsageLocation(c,l):c.impliedNodeFormat,_=zC.getResolvedModule(c,t,u),d=_&&zC.getResolutionDiagnostic($,_),p=_&&(!d||d===zC.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&b.getSourceFile(_.resolvedFileName);if(p)return d&&ei(n,d,t,_.resolvedFileName),p.symbol?(_.isExternalLibraryImport&&!zC.resolutionExtensionIsTSOrJson(_.extension)&&sa(!1,n,_,t),zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Node16&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.NodeNext||(l=c.impliedNodeFormat===zC.ModuleKind.CommonJS&&!zC.findAncestor(e,zC.isImportCall)||!!zC.findAncestor(e,zC.isImportEqualsDeclaration),f=(f=zC.findAncestor(e,function(e){return zC.isImportTypeNode(e)||zC.isExportDeclaration(e)||zC.isImportDeclaration(e)}))&&zC.isImportTypeNode(f)?null===(e=f.assertions)||void 0===e?void 0:e.assertClause:null==f?void 0:f.assertClause,l&&p.impliedNodeFormat===zC.ModuleKind.ESNext&&!zC.getResolutionModeOverrideForClause(f)&&ei(n,zC.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,t)),va(p.symbol)):void(r&&ei(n,zC.Diagnostics.File_0_is_not_a_module,p.fileName));if(Qt){var f=zC.findBestPatternMatch(Qt,function(e){return e.pattern},t);if(f){p=Xt&&Xt.get(t);return p?va(p):va(f.symbol)}}if(_&&!zC.resolutionExtensionIsTSOrJson(_.extension)&&void 0===d||d===zC.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)i?ei(n,o=zC.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,_.resolvedFileName):sa(te&&!!r,n,_,t);else if(r){if(_){var g=b.getProjectReferenceRedirect(_.resolvedFileName);if(g)return void ei(n,zC.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,g,_.resolvedFileName)}d?ei(n,d,t,_.resolvedFileName):(i=zC.tryExtractTSExtension(t),g=zC.pathIsRelative(t)&&!zC.hasExtension(t),_=(d=zC.getEmitModuleResolutionKind($))===zC.ModuleResolutionKind.Node16||d===zC.ModuleResolutionKind.NodeNext,i?(o=zC.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,d=zC.removeExtension(t,i),m>=zC.ModuleKind.ES2015&&(d+=".mts"===i?".mjs":".cts"===i?".cjs":".js"),ei(n,o,i,d)):!$.resolveJsonModule&&zC.fileExtensionIs(t,".json")&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Classic&&zC.hasJsonModuleEmitEnabled($)?ei(n,zC.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):u===zC.ModuleKind.ESNext&&_&&g?(s=zC.getNormalizedAbsolutePath(t,zC.getDirectoryPath(c.path)),(c=null===(c=Gn.find(function(e){var t=e[0];e[1];return b.fileExists(s+t)}))||void 0===c?void 0:c[1])?ei(n,zC.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,t+c):ei(n,zC.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)):ei(n,r,t))}}function sa(e,t,r,n){var i=r.packageId,a=r.resolvedFileName,i=!zC.isExternalModuleNameRelative(n)&&i?(r=i.name,o().has(zC.getTypesPackageName(r))?zC.chainDiagnosticMessages(void 0,zC.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,zC.mangleScopedPackageName(i.name)):(r=i.name,!o().get(r)?zC.chainDiagnosticMessages(void 0,zC.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,zC.mangleScopedPackageName(i.name)):zC.chainDiagnosticMessages(void 0,zC.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i.name,n))):void 0;ri(e,t,zC.chainDiagnosticMessages(i,zC.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,n,a))}function ca(e,t){if(null!=e&&e.exports){t=function(e,t){if(!e||e===We||e===t||1===t.exports.size||2097152&e.flags)return e;var r=mi(e);if(r.cjsExportMerged)return r.cjsExportMerged;var n=33554432&e.flags?e:ui(e);n.flags=512|n.flags,void 0===n.exports&&(n.exports=zC.createSymbolTable());return t.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?_i(n.exports.get(t),e):e)}),mi(n).cjsExportMerged=n,r.cjsExportMerged=n}(va(Hi(e.exports.get("export="),t)),va(e));return va(t)||e}}function la(e,t,r,n){var i=ca(e,r);if(!r&&i){if(!(n||1539&i.flags||zC.getDeclarationOfKind(i,305))){var a=m>=zC.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return ei(t,zC.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,a),i}var o=t.parent;if(zC.isImportDeclaration(o)&&zC.getNamespaceDeclarationNode(o)||zC.isImportCall(o)){r=zC.isImportCall(o)?o.arguments[0]:o.moduleSpecifier,n=_s(i),a=lb(n,i,e,r);if(a)return ua(i,a,o);a=null===(t=null==e?void 0:e.declarations)||void 0===t?void 0:t.find(zC.isSourceFile),t=a&&Ri(Li(r),a.impliedNodeFormat);if(zC.getESModuleInterop($)||t){a=dl(n,0);if(a&&a.length||(a=dl(n,1)),a&&a.length||_l(n,"default",!0)||t)return ua(i,ub(n,i,e,r),o)}}}return i}function ua(e,t,r){var n=si(e.flags,e.escapedName);n.declarations=e.declarations?e.declarations.slice():[],n.parent=e.parent,n.target=e,n.originatingImport=r,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),e.members&&(n.members=new zC.Map(e.members)),e.exports&&(n.exports=new zC.Map(e.exports));t=Lc(t);return n.type=Ba(n,t.members,zC.emptyArray,zC.emptyArray,t.indexInfos),n}function _a(e){return void 0!==e.exports.get("export=")}function da(e){return Cl(ma(e))}function pa(e,t){t=ma(t);if(t)return t.get(e)}function fa(e){return!(131068&e.flags||1&zC.getObjectFlags(e)||ff(e)||Of(e))}function ga(e){return 6256&e.flags?ec(e,"resolvedExports"):1536&e.flags?ma(e):e.exports||k}function ma(e){var t=mi(e);return t.resolvedExports||(t.resolvedExports=ha(e))}function ya(n,e,i,a){e&&e.forEach(function(e,t){var r;"default"!==t&&((r=n.get(t))?i&&a&&r&&Hi(r)!==Hi(e)&&((r=i.get(t)).exportsWithDuplicate?r.exportsWithDuplicate.push(a):r.exportsWithDuplicate=[a]):(n.set(t,e),i&&a&&i.set(t,{specifierText:zC.getTextOfNode(a.moduleSpecifier)})))})}function ha(e){var l=[];return function e(t){if(!(t&&t.exports&&zC.pushIfUnique(l,t)))return;var a=new zC.Map(t.exports);var t=t.exports.get("__export");if(t){var r=zC.createSymbolTable(),o=new zC.Map;if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var s=i[n],c=ia(s,s.moduleSpecifier),c=e(c);ya(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];Rn.add(zC.createDiagnosticForNode(i,zC.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,o.get(t).specifierText,zC.unescapeLeadingUnderscores(t)))}}),ya(a,r)}return a}(e=ca(e))||k}function va(e){var t;return e&&e.mergeId&&(t=xn[e.mergeId])?t:e}function ba(e){return va(e.symbol&&rc(e.symbol))}function xa(e){return va(e.parent&&rc(e.parent))}function Da(t,e,r){var n=xa(t);if(n&&!(262144&t.flags)){var i=zC.mapDefined(n.declarations,function(e){return n&&Sa(e,n)}),a=e&&function(e,t){var r,n=zC.getSourceFileOfNode(t),i=$C(n),a=mi(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];zC.nodeIsSynthesized(c)||(c=ia(t,c,!0))&&Ta(c,e)&&(r=zC.append(r,c))}if(zC.length(r))return(a.extendedContainersByFile||(a.extendedContainersByFile=new zC.Map)).set(i,r),r}if(a.extendedContainers)return a.extendedContainers;for(var l=0,u=b.getSourceFiles();l<u.length;l++){var _=u[l];zC.isExternalModule(_)&&(Ta(_=ba(_),e)&&(r=zC.append(r,_)))}return a.extendedContainers=r||zC.emptyArray}(t,e),o=function(e,t){e=!!zC.length(e.declarations)&&zC.first(e.declarations);if(111551&t&&e&&e.parent&&zC.isVariableDeclaration(e.parent)&&(zC.isObjectLiteralExpression(e)&&e===e.parent.initializer||zC.isTypeLiteralNode(e)&&e===e.parent.type))return ba(e.parent)}(n,r);if(e&&n.flags&Ja(r)&&za(n,e,1920,!1))return zC.append(zC.concatenate(zC.concatenate([n],i),a),o);e=!(n.flags&Ja(r))&&788968&n.flags&&524288&Rs(n).flags&&111551===r?ja(e,function(e){return zC.forEachEntry(e,function(e){if(e.flags&Ja(r)&&_s(e)===Rs(n))return e})}):void 0,i=__spreadArray(__spreadArray(e?[e]:[],i,!0),[n],!1),i=zC.append(i,o);return zC.addRange(i,a)}i=zC.mapDefined(t.declarations,function(e){if(!zC.isAmbientModule(e)&&e.parent){if(Xa(e.parent))return ba(e.parent);if(zC.isModuleBlock(e.parent)&&e.parent.parent&&ca(ba(e.parent.parent))===t)return ba(e.parent.parent)}if(zC.isClassExpression(e)&&zC.isBinaryExpression(e.parent)&&63===e.parent.operatorToken.kind&&zC.isAccessExpression(e.parent.left)&&zC.isEntityNameExpression(e.parent.left.expression))return zC.isModuleExportsAccessExpression(e.parent.left)||zC.isExportsIdentifier(e.parent.left.expression)?ba(zC.getSourceFileOfNode(e)):(mx(e.parent.left.expression),yi(e.parent.left.expression).resolvedSymbol)});if(zC.length(i))return zC.mapDefined(i,function(e){return Ta(e,t)?e:void 0})}function Sa(e,t){var r=Ga(e),e=r&&r.exports&&r.exports.get("export=");return e&&Ca(e,t)?r:void 0}function Ta(e,t){if(e===xa(t))return t;var r=e.exports&&e.exports.get("export=");if(r&&Ca(r,t))return e;r=ga(e),e=r.get(t.escapedName);return e&&Ca(e,t)?e:zC.forEachEntry(r,function(e){if(Ca(e,t))return e})}function Ca(e,t){return va(Hi(va(e)))===va(Hi(va(t)))&&e}function ka(e){return va(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function Ea(e){return!!(111551&e.flags||2097152&e.flags&&111551&Gi(e).flags&&!Yi(e))}function Na(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t];if(171===n.kind&&zC.nodeIsPresent(n.body))return n}}function Aa(e){e=new t(Ne,e);return a++,e.id=a,null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.recordType(e),e}function Fa(e){return new t(Ne,e)}function Pa(e,t,r){void 0===r&&(r=0);e=Aa(e);return e.intrinsicName=t,e.objectFlags=r,e}function wa(e,t){var r=Aa(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.indexInfos=void 0,r}function Ia(e){var t=Aa(262144);return e&&(t.symbol=e),t}function Oa(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Ma(e){var r;return e.forEach(function(e,t){La(e,t)&&(r=r||[]).push(e)}),r||zC.emptyArray}function La(e,t){return!Oa(t)&&Ea(e)}function Ra(e,t,r,n,i){return e.members=t,e.properties=zC.emptyArray,e.callSignatures=r,e.constructSignatures=n,e.indexInfos=i,t!==k&&(e.properties=Ma(t)),e}function Ba(e,t,r,n,i){return Ra(wa(16,e),t,r,n,i)}function ja(e,n){for(var i,t=e;t;t=t.parent){var r=function(e){if(e.locals&&!hi(e)&&(i=n(e.locals,void 0,!0,e)))return{value:i};switch(e.kind){case 305:if(!zC.isExternalOrCommonJsModule(e))break;case 261:var t=ba(e);if(i=n((null==t?void 0:t.exports)||k,void 0,!0,e))return{value:i};break;case 257:case 226:case 258:var r;if((ba(e).members||k).forEach(function(e,t){788968&e.flags&&(r=r||zC.createSymbolTable()).set(t,e)}),r&&(i=n(r,void 0,!1,e)))return{value:i}}}(t);if("object"==typeof r)return r.value}return n(De,void 0,!0)}function Ja(e){return 111551===e?111551:1920}function za(i,a,n,o,r){if(void 0===r&&(r=new zC.Map),i&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 167:case 169:case 172:case 173:continue;default:return!1}return!0}return!1}(i)){var e=mi(i),t=e.accessibleChainCache||(e.accessibleChainCache=new zC.Map),s=ja(a,function(e,t,r,n){return n}),e="".concat(o?0:1,"|").concat(s&&$C(s),"|").concat(n);if(t.has(e))return t.get(e);var s=ek(i),c=r.get(s);c||r.set(s,c=[]);s=ja(a,l);return t.set(e,s),s}function l(e,t,r){if(zC.pushIfUnique(c,e)){r=function(e,r,n){if(_(e.get(i.escapedName),void 0,r))return[i];return zC.forEachEntry(e,function(e){if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(zC.isUMDExportSymbol(e)&&a&&zC.isExternalModule(zC.getSourceFileOfNode(a)))&&(!o||zC.some(e.declarations,zC.isExternalModuleImportEqualsDeclaration))&&(!n||!zC.some(e.declarations,zC.isNamespaceReexportDeclaration))&&(r||!zC.getDeclarationOfKind(e,275))){var t=d(e,Gi(e),r);if(t)return t}if(e.escapedName===i.escapedName&&e.exportSymbol&&_(va(e.exportSymbol),void 0,r))return[i]})||(e===De?d(Te,Te,r):void 0)}(e,t,r);return c.pop(),r}}function u(e,t){return!Ka(e,a,t)||!!za(e.parent,a,Ja(t),o,r)}function _(e,t,r){return(i===(t||e)||va(i)===va(t||e))&&!zC.some(e.declarations,Xa)&&(r||u(va(e),n))}function d(e,t,r){if(_(e,t,r))return[e];t=ga(t),t=t&&l(t,!0);return t&&u(e,Ja(n))?[e].concat(t):void 0}}function Ka(t,e,r){var n=!1;return ja(e,function(e){e=va(e.get(t.escapedName));return!!e&&(e===t||!!((e=2097152&e.flags&&!zC.getDeclarationOfKind(e,275)?Gi(e):e).flags&r)&&(n=!0))}),n}function Ua(e,t){return 0===Ha(e,t,788968,!1,!0).accessibility}function Va(e,t){return 0===Ha(e,t,111551,!1,!0).accessibility}function qa(e,t,r){return 0===Ha(e,t,r,!1,!1).accessibility}function Wa(e,t,r,n){return Ha(e,t,r,n,!0)}function Ha(e,t,r,n,i){if(e&&t){i=function e(t,r,n,i,a,o){if(zC.length(t)){for(var s,c=!1,l=0,u=t;l<u.length;l++){var _=u[l],d=za(_,r,i,!1);if(d&&(s=_,d=Ya(d[0],a)))return d;if(o&&zC.some(_.declarations,Xa)){if(a){c=!0;continue}return{accessibility:0}}if(_=e(Da(_,r,i),r,n,n===_?Ja(i):i,a,o))return _}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:$a(n,r,i),errorModuleName:s!==n?$a(s,r,1920):void 0}:void 0}}([e],t,e,r,n,i);if(i)return i;i=zC.forEach(e.declarations,Ga);if(i)if(i!==Ga(t))return{accessibility:2,errorSymbolName:$a(e,t,r),errorModuleName:$a(i),errorNode:zC.isInJSFile(t)?t:void 0};return{accessibility:1,errorSymbolName:$a(e,t,r)}}return{accessibility:0}}function Ga(e){e=zC.findAncestor(e,Qa);return e&&ba(e)}function Qa(e){return zC.isAmbientModule(e)||305===e.kind&&zC.isExternalOrCommonJsModule(e)}function Xa(e){return zC.isModuleWithStringLiteralName(e)||305===e.kind&&zC.isExternalOrCommonJsModule(e)}function Ya(i,r){var n;if(zC.every(zC.filter(i.declarations,function(e){return 79!==e.kind}),function(e){var t,r;if(fo(e))return!0;var n=Ai(e);{if(n&&!zC.hasSyntacticModifier(n,1)&&fo(n.parent))return a(e,n);if(zC.isVariableDeclaration(e)&&zC.isVariableStatement(e.parent.parent)&&!zC.hasSyntacticModifier(e.parent.parent,1)&&fo(e.parent.parent.parent))return a(e,e.parent.parent);if(zC.isLateVisibilityPaintedStatement(e)&&!zC.hasSyntacticModifier(e,1)&&fo(e.parent))return a(e,e);if(2097152&i.flags&&zC.isBindingElement(e)&&zC.isInJSFile(e)&&null!==(t=e.parent)&&void 0!==t&&t.parent&&zC.isVariableDeclaration(e.parent.parent)&&null!==(r=e.parent.parent.parent)&&void 0!==r&&r.parent&&zC.isVariableStatement(e.parent.parent.parent.parent)&&!zC.hasSyntacticModifier(e.parent.parent.parent.parent,1)&&e.parent.parent.parent.parent.parent&&fo(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&&(yi(e).isVisible=!0,n=zC.appendIfUnique(n,t)),!0}}function Za(e,t){var r=181===e.parent.kind||228===e.parent.kind&&!zC.isPartOfTypeNode(e.parent)||162===e.parent.kind?1160127:161===e.kind||206===e.kind||265===e.parent.kind?1920:788968,e=zC.getFirstIdentifier(e),t=Di(t,e.escapedText,r,void 0,void 0,!1);return t&&262144&t.flags&&788968&r?{accessibility:0}:t&&Ya(t,!0)||{accessibility:1,errorSymbolName:zC.getTextOfNode(e),errorNode:e}}function $a(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?j.symbolToExpression:j.symbolToEntityName;return t?r(t).getText():zC.usingSingleLineStringWriter(r);function r(e){var t=c(i,o,a,s),r=305===(null==a?void 0:a.kind)?zC.createPrinter({removeComments:!0,neverAsciiEscape:!0}):zC.createPrinter({removeComments:!0}),n=a&&zC.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function eo(i,a,o,s,e){return void 0===o&&(o=0),e?t(e).getText():zC.usingSingleLineStringWriter(t);function t(e){var t=262144&o?1===s?180:179:1===s?175:174,r=j.signatureToSignatureDeclaration(i,t,a,70222336|ao(o)),n=zC.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),t=a&&zC.getSourceFileOfNode(a);return n.writeNode(4,r,t,zC.getTrailingSemicolonDeferringWriter(e)),e}}function to(e,t,r,n){void 0===r&&(r=1064960),void 0===n&&(n=zC.createTextWriter(""));var i=$.noErrorTruncation||1&r,r=j.typeToTypeNode(e,t,70221824|ao(r)|(i?1:0),n);if(void 0===r)return zC.Debug.fail("should always get typenode");e={removeComments:e!==et},e=zC.createPrinter(e),t=t&&zC.getSourceFileOfNode(t);e.writeNode(4,r,t,n);n=n.getText(),i=i?2*zC.noTruncationMaximumTruncationLength:2*zC.defaultMaximumTruncationLength;return i&&n&&n.length>=i?n.substr(0,i-"...".length)+"...":n}function ro(e,t){var r=io(e.symbol)?to(e,e.symbol.valueDeclaration):to(e),n=io(t.symbol)?to(t,t.symbol.valueDeclaration):to(t);return r===n&&(r=no(e),n=no(t)),[r,n]}function no(e){return to(e,void 0,64)}function io(e){return e&&e.valueDeclaration&&zC.isExpression(e.valueDeclaration)&&!lp(e.valueDeclaration)}function ao(e){return void 0===e&&(e=0),814775659&e}function oo(e){return e.symbol&&32&e.symbol.flags&&(e===As(e.symbol)||524288&e.flags&&16777216&zC.getObjectFlags(e))}function so(i,a,o,e){return void 0===o&&(o=16384),e?t(e).getText():zC.usingSingleLineStringWriter(t);function t(e){var t=zC.factory.createTypePredicateNode(2===i.kind||3===i.kind?zC.factory.createToken(128):void 0,1===i.kind||3===i.kind?zC.factory.createIdentifier(i.parameterName):zC.factory.createThisTypeNode(),i.type&&j.typeToTypeNode(i.type,a,70222336|ao(o))),r=zC.createPrinter({removeComments:!0}),n=a&&zC.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function co(e){return 8===e?"private":16===e?"protected":"public"}function lo(e){return e&&e.parent&&262===e.parent.kind&&zC.isExternalModuleAugmentation(e.parent.parent)}function uo(e){return 305===e.kind||zC.isAmbientModule(e)}function _o(e,t){var r=mi(e).nameType;if(r){if(384&r.flags){e=""+r.value;return zC.isIdentifierText(e,zC.getEmitScriptTarget($))||zC.isNumericLiteralName(e)?zC.isNumericLiteralName(e)&&zC.startsWith(e,"-")?"[".concat(e,"]"):e:'"'.concat(zC.escapeString(e,34),'"')}if(8192&r.flags)return"[".concat(po(r.symbol,t),"]")}}function po(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&zC.findAncestor(e.declarations[0],uo)!==zC.findAncestor(t.enclosingDeclaration,uo)))return"default";if(e.declarations&&e.declarations.length){var r=zC.firstDefined(e.declarations,function(e){return zC.getNameOfDeclaration(e)?e:void 0}),n=r&&zC.getNameOfDeclaration(r);if(r&&n){if(zC.isCallExpression(r)&&zC.isBindableObjectDefinePropertyCall(r))return zC.symbolName(e);if(zC.isComputedPropertyName(n)&&!(4096&zC.getCheckFlags(e))){var i=mi(e).nameType;if(i&&384&i.flags){i=_o(e,t);if(void 0!==i)return i}}return zC.declarationNameToString(n)}if((r=r||e.declarations[0]).parent&&254===r.parent.kind)return zC.declarationNameToString(r.parent.name);switch(r.kind){case 226:case 213:case 214:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),226===r.kind?"(Anonymous class)":"(Anonymous function)"}}n=_o(e,t);return void 0!==n?n:zC.symbolName(e)}function fo(t){if(t){var e=yi(t);return void 0===e.isVisible&&(e.isVisible=!!function(){switch(t.kind){case 338:case 345:case 339:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&zC.isSourceFile(t.parent.parent.parent));case 203:return fo(t.parent.parent);case 254:if(zC.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 261:case 257:case 258:case 259:case 256:case 260:case 265:if(zC.isExternalModuleAugmentation(t))return!0;var e=vo(t);return 1&zC.getCombinedModifierFlags(t)||265!==t.kind&&305!==e.kind&&16777216&e.flags?fo(e):hi(e);case 167:case 166:case 172:case 173:case 169:case 168:if(zC.hasEffectiveModifier(t,24))return!1;case 171:case 175:case 174:case 176:case 164:case 262:case 179:case 180:case 182:case 178:case 183:case 184:case 187:case 188:case 191:case 197:return fo(t.parent);case 267:case 268:case 270:return!1;case 163:case 305:case 264:return!0;case 271:default:return!1}}()),e.isVisible}return!1}function go(e,n){var t,i,a;return e.parent&&271===e.parent.kind?t=Di(e,e.escapedText,2998271,void 0,e,!1):275===e.parent.kind&&(t=Ui(e.parent,2998271)),t&&((a=new zC.Set).add(ek(t)),function r(e){zC.forEach(e,function(e){var t=Ai(e)||e;n?yi(e).isVisible=!0:(i=i||[],zC.pushIfUnique(i,t)),zC.isInternalModuleImportEqualsDeclaration(e)&&(t=e.moduleReference,t=zC.getFirstIdentifier(t),(t=Di(e,t.escapedText,901119,void 0,void 0,!1))&&a&&zC.tryAddToSet(a,ek(t))&&r(t.declarations))})}(t.declarations)),i}function mo(e,t){var r=yo(e,t);if(!(0<=r))return mn.push(e),yn.push(!0),hn.push(t),1;for(var n=mn.length,i=r;i<n;i++)yn[i]=!1}function yo(e,t){for(var r=mn.length-1;0<=r;r--){if(function(e,t){switch(t){case 0:return!!mi(e).type;case 5:return!!yi(e).resolvedEnumType;case 2:return!!mi(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;case 8:return!!mi(e).writeType}return zC.Debug.assertNever(t)}(mn[r],hn[r]))return-1;if(mn[r]===e&&hn[r]===t)return r}return-1}function ho(){return mn.pop(),hn.pop(),yn.pop()}function vo(e){return zC.findAncestor(zC.getRootDeclaration(e),function(e){switch(e.kind){case 254:case 255:case 270:case 269:case 268:case 267:return!1;default:return!0}}).parent}function bo(e,t){t=_l(e,t);return t?_s(t):void 0}function xo(e){return e&&0!=(1&e.flags)}function Do(e){return e===$e||1&e.flags&&e.aliasSymbol}function So(e,t){if(0!==t)return Mo(e,!1,t);var r=ba(e);return r&&mi(r).type||Mo(e,!1,t)}function To(e,t,r){if(131072&(e=Am(e,function(e){return!(98304&e.flags)})).flags)return Rt;if(1048576&e.flags)return Pm(e,function(e){return To(e,t,r)});for(var n=f_(zC.map(t,E_)),i=[],a=[],o=0,s=Jc(e);o<s.length;o++){var c=N_(p=s[o],8576);hp(c,n)||24&zC.getDeclarationModifierFlagsFromSymbol(p)||!bd(p)?a.push(c):i.push(p)}if(V_(e)||q_(n)){if(a.length&&(n=f_(__spreadArray([n],a,!0))),131072&n.flags)return e;var l=(Mr=Mr||Iu("Omit",2,!0)||We)===We?void 0:Mr;return l?mu(l,[e,n]):$e}for(var u=zC.createSymbolTable(),_=0,d=i;_<d.length;_++){var p=d[_];u.set(p.escapedName,xd(p,!1))}e=Ba(r,u,zC.emptyArray,zC.emptyArray,hl(e));return e.objectFlags|=4194304,e}function Co(e){return!!(465829888&e.flags)&&nx(Hc(e)||nt,32768)}function ko(e){return _m(Em(e,Co)?Pm(e,function(e){return 465829888&e.flags?Gc(e):e}):e,524288)}function Eo(e,t){e=No(e);return e?Xm(e,t):t}function No(e){var t=function(e){var t=e.parent.parent;switch(t.kind){case 203:case 296:return No(t);case 204:return No(e.parent);case 254:return t.initializer;case 221:return t.right}}(e);if(t&&t.flowNode){var r=Ao(e);if(r){var n=zC.setTextRange(zC.parseNodeFactory.createStringLiteral(r),e),i=zC.isLeftHandSideExpression(t)?t:zC.parseNodeFactory.createParenthesizedExpression(t),r=zC.setTextRange(zC.parseNodeFactory.createElementAccessExpression(i,n),e);return zC.setParent(n,r),zC.setParent(r,e),i!==t&&zC.setParent(i,r),r.flowNode=t.flowNode,r}}}function Ao(e){var t=e.parent;return 203===e.kind&&201===t.kind?Fo(e.propertyName||e.name):296===e.kind||297===e.kind?Fo(e.name):""+t.elements.indexOf(e)}function Fo(e){e=E_(e);return 384&e.flags?""+e.value:void 0}function Po(e,t){if(xo(t))return t;var r=e.parent;if(ee&&16777216&e.flags&&zC.isParameterDeclaration(e)?t=Wf(t):!ee||!r.parent.initializer||65536&um(bm(r.parent.initializer))||(t=_m(t,524288)),201===r.kind)if(e.dotDotDotToken){if(2&(t=ol(t)).flags||!rh(t))return ei(e,zC.Diagnostics.Rest_types_may_only_be_created_from_object_types),$e;for(var n=[],i=0,a=r.elements;i<a.length;i++){var o=a[i];o.dotDotDotToken||n.push(o.propertyName||o.name)}c=To(t,n,e.symbol)}else var s=e.propertyName||e.name,c=Eo(e,Y_(t,E_(s),32,s));else{var s=YD(65|(e.dotDotDotToken?0:128),t,at,r),l=r.elements.indexOf(e);c=e.dotDotDotToken?Nm(t,Of)?Pm(t,function(e){return i_(e,l)}):Qu(s):vf(t)?Eo(e,$_(t,Ed(l),32|(Hy(e)?16:0),e.name)||$e):s}return e.initializer?zC.getEffectiveTypeAnnotationNode(zC.walkUpBindingElementsAndPatterns(e))?!ee||32768&zf(hx(e,0))?c:ko(c):vx(e,f_([ko(c),hx(e,0)],2)):c}function wo(e){e=zC.getJSDocType(e);if(e)return Id(e)}function Io(e){e=zC.skipParentheses(e,!0);return 204===e.kind&&0===e.elements.length}function Oo(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),ee&&r?qf(e,t):e}function Mo(e,t,r){if(zC.isVariableDeclaration(e)&&243===e.parent.parent.kind){var n=P_(Ph(Ix(e.parent.parent.expression,r)));return 4456448&n.flags?w_(n):_t}if(zC.isVariableDeclaration(e)&&244===e.parent.parent.kind)return XD(e.parent.parent)||Xe;if(zC.isBindingPattern(e.parent))return a=(i=e).dotDotDotToken?64:0,(a=So(i.parent.parent,a))&&Po(i,a);var i=zC.isPropertyDeclaration(e)||zC.isPropertySignature(e),a=t&&(i&&!!e.questionToken||zC.isParameter(e)&&(!!e.questionToken||kl(e))||Al(e)),t=Zo(e);if(t)return Oo(t,i,a);if((te||zC.isInJSFile(e))&&zC.isVariableDeclaration(e)&&!zC.isBindingPattern(e.name)&&!(1&zC.getCombinedModifierFlags(e))&&!(16777216&e.flags)){if(!(2&zC.getCombinedNodeFlags(e)||e.initializer&&(s=e.initializer,104!==(s=zC.skipParentheses(s,!0)).kind&&(79!==s.kind||Hg(s)!==Se))))return Ye;if(e.initializer&&Io(e.initializer))return lr}if(zC.isParameter(e)){var o=e.parent;if(173===o.kind&&Ys(o)){t=zC.getDeclarationOfKind(ba(e.parent),172);if(t){var s=Il(t),t=kC(o);return t&&e===t?(zC.Debug.assert(!t.type),_s(s.thisParameter)):zl(s)}}if(zC.isInJSFile(e)){var c=function(e,t){var r=Ol(e);if(!r)return;e=e.parameters.indexOf(t);return(t.dotDotDotToken?kb:Tb)(r,e)}(o,e);if(c)return c}if(c="this"===e.symbol.escapedName?yy(o):hy(e))return Oo(c,!1,a)}if(zC.hasOnlyExpressionInitializer(e)&&e.initializer){if(zC.isInJSFile(e)&&!zC.isParameter(e)){o=Ko(e,ba(e),zC.getDeclaredExpandoInitializer(e));if(o)return o}return Oo(c=vx(e,hx(e,r)),i,a)}if(zC.isPropertyDeclaration(e)&&(te||zC.isInJSFile(e))){if(zC.hasStaticModifier(e)){var l=zC.filter(e.parent.members,zC.isClassStaticBlockDeclaration);return(c=l.length?function(e,t){for(var r=zC.startsWith(e.escapedName,"__#")?zC.factory.createPrivateIdentifier(e.escapedName.split("@")[1]):zC.unescapeLeadingUnderscores(e.escapedName),n=0,i=t;n<i.length;n++){var a=i[n],o=zC.factory.createPropertyAccessExpression(zC.factory.createThis(),r);zC.setParent(o.expression,o),zC.setParent(o,a),o.flowNode=a.returnFlowNode;o=Jo(o,e);if(!te||o!==Ye&&o!==lr||ei(e.valueDeclaration,zC.Diagnostics.Member_0_implicitly_has_an_1_type,$a(e),to(o)),!Nm(o,Fh))return BD(o)}}(e.symbol,l):2&zC.getEffectiveModifierFlags(e)?sf(e.symbol):void 0)&&Oo(c,!0,a)}l=Na(e.parent);return(c=l?jo(e.symbol,l):2&zC.getEffectiveModifierFlags(e)?sf(e.symbol):void 0)&&Oo(c,!0,a)}return zC.isJsxAttribute(e)?mt:zC.isBindingPattern(e.name)?Ho(e.name,!1,!0):void 0}function Lo(t){if(t.valueDeclaration&&zC.isBinaryExpression(t.valueDeclaration)){var e=mi(t);return void 0===e.isConstructorDeclaredProperty&&(e.isConstructorDeclaredProperty=!1,e.isConstructorDeclaredProperty=!!Bo(t)&&zC.every(t.declarations,function(e){return zC.isBinaryExpression(e)&&ky(e)&&(207!==e.left.kind||zC.isStringOrNumericLiteralLike(e.left.argumentExpression))&&!Uo(void 0,e,t,e)})),e.isConstructorDeclaredProperty}return!1}function Ro(e){e=e.valueDeclaration;return e&&zC.isPropertyDeclaration(e)&&!zC.getEffectiveTypeAnnotationNode(e)&&!e.initializer&&(te||zC.isInJSFile(e))}function Bo(e){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],n=zC.getThisContainer(n,!1);if(n&&(171===n.kind||tb(n)))return n}}function jo(e,t){var r=zC.startsWith(e.escapedName,"__#")?zC.factory.createPrivateIdentifier(e.escapedName.split("@")[1]):zC.unescapeLeadingUnderscores(e.escapedName),r=zC.factory.createPropertyAccessExpression(zC.factory.createThis(),r);zC.setParent(r.expression,r),zC.setParent(r,t),r.flowNode=t.returnFlowNode;r=Jo(r,e);return!te||r!==Ye&&r!==lr||ei(e.valueDeclaration,zC.Diagnostics.Member_0_implicitly_has_an_1_type,$a(e),to(r)),Nm(r,Fh)?void 0:BD(r)}function Jo(e,t){t=(null==t?void 0:t.valueDeclaration)&&(!Ro(t)||2&zC.getEffectiveModifierFlags(t.valueDeclaration))&&sf(t)||at;return Xm(e,Ye,t)}function zo(e,t){var r=zC.getAssignedExpandoInitializer(e.valueDeclaration);if(r){var n=zC.getJSDocTypeTag(r);return n&&n.typeExpression?Id(n.typeExpression):e.valueDeclaration&&Ko(e.valueDeclaration,e,r)||Ff(mx(r))}var i,a=!1,o=!1;if(Lo(e)&&(g=jo(e,Bo(e))),!g){var s=void 0;if(e.declarations){for(var c=void 0,l=0,u=e.declarations;l<u.length;l++){var _,d=u[l],p=zC.isBinaryExpression(d)||zC.isCallExpression(d)?d:zC.isAccessExpression(d)?zC.isBinaryExpression(d.parent)?d.parent:d:void 0;p&&((4===(_=zC.isAccessExpression(p)?zC.getAssignmentDeclarationPropertyAccessKind(p):zC.getAssignmentDeclarationKind(p))||zC.isBinaryExpression(p)&&ky(p,_))&&(Vo(p)?a=!0:o=!0),zC.isCallExpression(p)||(c=Uo(c,p,e,d)),c||(s=s||[]).push(zC.isBinaryExpression(p)||zC.isCallExpression(p)?function(e,t,r,n){if(zC.isCallExpression(r)){if(t)return _s(t);var i=mx(r.arguments[2]),a=bo(i,"value");if(a)return a;a=bo(i,"get");if(a){a=xv(a);if(a)return zl(a)}i=bo(i,"set");if(i){var o=xv(i);if(o)return wb(o)}return Xe}if(function(t,e){return zC.isPropertyAccessExpression(t)&&108===t.expression.kind&&zC.forEachChildRecursively(e,function(e){return Qg(t,e)})}(r.left,r.right))return Xe;i=1===n&&(zC.isPropertyAccessExpression(r.left)||zC.isElementAccessExpression(r.left))&&(zC.isModuleExportsAccessExpression(r.left.expression)||zC.isIdentifier(r.left.expression)&&zC.isExportsIdentifier(r.left.expression)),o=t?_s(t):(i?Td:Ff)(mx(r.right));if(524288&o.flags&&2===n&&"export="===e.escapedName){var i=Lc(o),s=zC.createSymbolTable();zC.copyEntries(i.members,s);n=s.size;t&&!t.exports&&(t.exports=zC.createSymbolTable()),(t||e).exports.forEach(function(e,t){var r,n,i=s.get(t);i&&i!==e?111551&e.flags&&111551&i.flags?(e.valueDeclaration&&i.valueDeclaration&&zC.getSourceFileOfNode(e.valueDeclaration)!==zC.getSourceFileOfNode(i.valueDeclaration)&&(n=zC.unescapeLeadingUnderscores(e.escapedName),r=(null===(r=zC.tryCast(i.valueDeclaration,zC.isNamedDeclaration))||void 0===r?void 0:r.name)||i.valueDeclaration,zC.addRelatedInfo(ei(e.valueDeclaration,zC.Diagnostics.Duplicate_identifier_0,n),zC.createDiagnosticForNode(r,zC.Diagnostics._0_was_also_declared_here,n)),zC.addRelatedInfo(ei(r,zC.Diagnostics.Duplicate_identifier_0,n),zC.createDiagnosticForNode(e.valueDeclaration,zC.Diagnostics._0_was_also_declared_here,n))),(n=si(e.flags|i.flags,t)).type=f_([_s(e),_s(i)]),n.valueDeclaration=i.valueDeclaration,n.declarations=zC.concatenate(i.declarations,e.declarations),s.set(t,n)):s.set(t,_i(e,i)):s.set(t,e)});i=Ba(n!==s.size?void 0:i.symbol,s,i.callSignatures,i.constructSignatures,i.indexInfos);return i.objectFlags|=4096&zC.getObjectFlags(o),i.symbol&&32&i.symbol.flags&&o===As(i.symbol)&&(i.objectFlags|=16777216),i}if(Df(o))return cg(r,cr),cr;return o}(e,t,p,_):xt))}g=c}if(!g){if(!zC.length(s))return $e;var f,r=a&&e.declarations?(f=s,i=e.declarations,zC.Debug.assert(f.length===i.length),f.filter(function(e,t){t=i[t],t=zC.isBinaryExpression(t)?t:zC.isBinaryExpression(t.parent)?t.parent:void 0;return t&&Vo(t)})):void 0;!o||(f=sf(e))&&((r=r||[]).push(f),a=!0);var g=f_(zC.some(r,function(e){return!!(-98305&e.flags)})?r:s)}}g=og(Oo(g,!1,o&&!a));return e.valueDeclaration&&Am(g,function(e){return!!(-98305&e.flags)})===xt?(cg(e.valueDeclaration,Xe),Xe):g}function Ko(e,t,r){var n;if(zC.isInJSFile(e)&&r&&zC.isObjectLiteralExpression(r)&&!r.properties.length){for(var i=zC.createSymbolTable();zC.isBinaryExpression(e)||zC.isPropertyAccessExpression(e);){var a=ba(e);null!==(n=null==a?void 0:a.exports)&&void 0!==n&&n.size&&fi(i,a.exports),e=(zC.isBinaryExpression(e)?e:e.parent).parent}var o=ba(e);null!==(r=null==o?void 0:o.exports)&&void 0!==r&&r.size&&fi(i,o.exports);t=Ba(t,i,zC.emptyArray,zC.emptyArray,zC.emptyArray);return t.objectFlags|=4096,t}}function Uo(e,t,r,n){t=zC.getEffectiveTypeAnnotationNode(t.parent);if(t){var i=og(Id(t));if(!e)return i;Do(e)||Do(i)||pp(e,i)||JD(void 0,e,n,i)}if(null!==(i=r.parent)&&void 0!==i&&i.valueDeclaration){i=zC.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(i){r=_l(Id(i),r.escapedName);if(r)return ds(r)}}return e}function Vo(e){e=zC.getThisContainer(e,!1);return 171===e.kind||256===e.kind||213===e.kind&&!zC.isPrototypePropertyAssignment(e.parent)}function qo(e,t,r){return e.initializer?Oo(vx(e,hx(e,0,zC.isBindingPattern(e.name)?Ho(e.name,!0,!1):nt))):zC.isBindingPattern(e.name)?Ho(e.name,t,r):(r&&!Yo(e)&&cg(e,Xe),t?tt:Xe)}function Wo(e,t,r){var n=e.elements,i=zC.lastOrUndefined(n),a=i&&203===i.kind&&i.dotDotDotToken?i:void 0;if(0===n.length||1===n.length&&a)return 2<=B?(o=Xe,Hu(Vu(!0),[o])):cr;var o=zC.map(n,function(e){return zC.isOmittedExpression(e)?Xe:qo(e,t,r)}),s=zC.findLastIndex(n,function(e){return!(e===a||zC.isOmittedExpression(e)||Hy(e))},n.length-1)+1,n=t_(o,zC.map(n,function(e,t){return e===a?4:s<=t?2:1}));return t&&((n=_u(n)).pattern=e,n.objectFlags|=131072),n}function Ho(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),(201===e.kind?function(e,r,n){var i,a=zC.createSymbolTable(),o=131200;zC.forEach(e.elements,function(e){var t=e.propertyName||e.name;e.dotDotDotToken?i=$l(_t,Xe,!1):Hs(t=E_(t))?(t=Zs(t),(t=si(4|(e.initializer?16777216:0),t)).type=qo(e,r,n),t.bindingElement=e,a.set(t.escapedName,t)):o|=512});var t=Ba(void 0,a,zC.emptyArray,zC.emptyArray,i?[i]:zC.emptyArray);return t.objectFlags|=o,r&&(t.pattern=e,t.objectFlags|=131072),t}:Wo)(e,t,r)}function Go(e,t){return Xo(Mo(e,!0,0),e,t)}function Qo(e){var t=ba(e),e=pr=pr||wu("SymbolConstructor",!1);return e&&t&&t===e}function Xo(e,t,r){return e?(4096&e.flags&&Qo(t.parent)&&(e=Ad(t)),r&&lg(t,e),8192&e.flags&&(zC.isBindingElement(t)||!t.type)&&e.symbol!==ba(t)&&(e=vt),og(e)):(e=zC.isParameter(t)&&t.dotDotDotToken?cr:Xe,r&&(Yo(t)||cg(t,e)),e)}function Yo(e){e=zC.getRootDeclaration(e);return $x(164===e.kind?e.parent:e)}function Zo(e){e=zC.getEffectiveTypeAnnotationNode(e);if(e)return Id(e)}function $o(e){var t=mi(e);return t.type||(e=function(e){if(4194304&e.flags)return function(e){return(e=Rs(xa(e))).typeParameters?uu(e,zC.map(e.typeParameters,function(e){return Xe})):e}(e);if(e===Ee)return Xe;if(134217728&e.flags&&e.valueDeclaration){var t=ba(zC.getSourceFileOfNode(e.valueDeclaration)),r=si(t.flags,"exports");r.declarations=t.declarations?t.declarations.slice():[],r.parent=e,(r.target=t).valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.members&&(r.members=new zC.Map(t.members)),t.exports&&(r.exports=new zC.Map(t.exports));t=zC.createSymbolTable();return t.set("exports",r),Ba(e,t,zC.emptyArray,zC.emptyArray,zC.emptyArray)}zC.Debug.assertIsDefined(e.valueDeclaration);var n,r=e.valueDeclaration;if(zC.isCatchClauseVariableDeclarationOrBindingElement(r)){t=zC.getEffectiveTypeAnnotationNode(r);if(void 0===t)return T?nt:Xe;t=TT(t);return xo(t)||t===nt?t:$e}if(zC.isSourceFile(r)&&zC.isJsonSourceFile(r))return r.statements.length?og(Ff(Ix(r.statements[0].expression))):Rt;if(zC.isAccessor(r))return rs(e);if(!mo(e,0))return(512&e.flags&&!(67108864&e.flags)?as:cs)(e);if(271===r.kind)n=Xo(Zo(r)||mx(r.expression),r);else if(zC.isBinaryExpression(r)||zC.isInJSFile(r)&&(zC.isCallExpression(r)||(zC.isPropertyAccessExpression(r)||zC.isBindableStaticElementAccessExpression(r))&&zC.isBinaryExpression(r.parent)))n=zo(e);else if(zC.isPropertyAccessExpression(r)||zC.isElementAccessExpression(r)||zC.isIdentifier(r)||zC.isStringLiteralLike(r)||zC.isNumericLiteral(r)||zC.isClassDeclaration(r)||zC.isFunctionDeclaration(r)||zC.isMethodDeclaration(r)&&!zC.isObjectLiteralMethod(r)||zC.isMethodSignature(r)||zC.isSourceFile(r)){if(9136&e.flags)return as(e);n=zC.isBinaryExpression(r.parent)?zo(e):Zo(r)||Xe}else if(zC.isPropertyAssignment(r))n=Zo(r)||Sx(r);else if(zC.isJsxAttribute(r))n=Zo(r)||ah(r);else if(zC.isShorthandPropertyAssignment(r))n=Zo(r)||Dx(r.name,0);else if(zC.isObjectLiteralMethod(r))n=Zo(r)||Tx(r,0);else if(zC.isParameter(r)||zC.isPropertyDeclaration(r)||zC.isPropertySignature(r)||zC.isVariableDeclaration(r)||zC.isBindingElement(r)||zC.isJSDocPropertyLikeTag(r))n=Go(r,!0);else if(zC.isEnumDeclaration(r))n=as(e);else{if(!zC.isEnumMember(r))return zC.Debug.fail("Unhandled declaration kind! "+zC.Debug.formatSyntaxKind(r.kind)+" for "+zC.Debug.formatSymbol(e));n=os(e)}return ho()?n:(!(512&e.flags)||67108864&e.flags?cs:as)(e)}(e),t.type||(t.type=e)),t.type}function es(e){if(e)return 172!==e.kind?zC.getEffectiveSetAccessorTypeAnnotationNode(e):zC.getEffectiveReturnTypeNode(e)}function ts(e){e=es(e);return e&&Id(e)}function rs(e){var t=mi(e);if(!t.type){if(!mo(e,0))return $e;var r=zC.getDeclarationOfKind(e,172),n=zC.getDeclarationOfKind(e,173),i=r&&zC.isInJSFile(r)&&wo(r)||ts(r)||ts(n)||r&&r.body&&jb(r);i||(n&&!$x(n)?ri(te,n,zC.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,$a(e)):r&&!$x(r)&&ri(te,r,zC.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,$a(e)),i=Xe),ho()||(es(r)?ei(r,zC.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,$a(e)):es(n)?ei(n,zC.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,$a(e)):r&&te&&ei(r,zC.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,$a(e)),i=Xe),t.type=i}return t.type}function ns(e){var t=mi(e);if(!t.writeType){if(!mo(e,8))return $e;var r=zC.getDeclarationOfKind(e,173),n=ts(r);ho()||(es(r)&&ei(r,zC.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,$a(e)),n=Xe),t.writeType=n||rs(e)}return t.writeType}function is(e){e=Cs(As(e));return 8650752&e.flags?e:2097152&e.flags?zC.find(e.types,function(e){return!!(8650752&e.flags)}):void 0}function as(e){var t,r=mi(e),n=r;return r.type||(!(t=e.valueDeclaration&&nb(e.valueDeclaration,!1))||(t=rb(e,t))&&(e=r=t),n.type=r.type=function(e){var t=e.valueDeclaration;{if(1536&e.flags&&zC.isShorthandAmbientModuleSymbol(e))return Xe;if(t&&(221===t.kind||zC.isAccessExpression(t)&&221===t.parent.kind))return zo(e);if(512&e.flags&&t&&zC.isSourceFile(t)&&t.commonJsModuleIndicator){var r=ca(e);if(r!==e){if(!mo(e,0))return $e;var n=va(e.exports.get("export=")),n=zo(n,n===r?void 0:r);return ho()?n:cs(e)}}}r=wa(16,e);{if(32&e.flags){n=is(e);return n?x_([r,n]):r}return ee&&16777216&e.flags?qf(r):r}}(e)),r.type}function os(e){var t=mi(e);return t.type||(t.type=Ms(e))}function ss(e){var t,r,n,i,a,o=mi(e);return o.type||(t=Gi(e),a=e.declarations&&qi(Fi(e),!0),r=zC.firstDefined(null==a?void 0:a.declarations,function(e){return zC.isExportAssignment(e)?Zo(e):void 0}),o.type=null!=a&&a.declarations&&aT(a.declarations)&&e.declarations.length?(n=a,i=zC.getSourceFileOfNode(n.declarations[0]),a=zC.unescapeLeadingUnderscores(n.escapedName),a=(n=n.declarations.every(function(e){return zC.isInJSFile(e)&&zC.isAccessExpression(e)&&zC.isModuleExportsAccessExpression(e.expression)}))?zC.factory.createPropertyAccessExpression(zC.factory.createPropertyAccessExpression(zC.factory.createIdentifier("module"),zC.factory.createIdentifier("exports")),a):zC.factory.createPropertyAccessExpression(zC.factory.createIdentifier("exports"),a),n&&zC.setParent(a.expression.expression,a.expression),zC.setParent(a.expression,a),zC.setParent(a,i),a.flowNode=i.endFlowNode,Xm(a,Ye,at)):aT(e.declarations)?Ye:r||(111551&t.flags?_s(t):$e)),o.type}function cs(e){var t=e.valueDeclaration;return zC.getEffectiveTypeAnnotationNode(t)?(ei(e.valueDeclaration,zC.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,$a(e)),$e):(te&&(164!==t.kind||t.initializer)&&ei(e.valueDeclaration,zC.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,$a(e)),Xe)}function ls(e){e=mi(e);return e.type||(zC.Debug.assertIsDefined(e.deferralParent),zC.Debug.assertIsDefined(e.deferralConstituents),e.type=(1048576&e.deferralParent.flags?f_:x_)(e.deferralConstituents)),e.type}function us(e){var t,r=zC.getCheckFlags(e);return 4&e.flags?2&r?65536&r?(!(t=mi(t=e)).writeType&&t.deferralWriteConstituents&&(zC.Debug.assertIsDefined(t.deferralParent),zC.Debug.assertIsDefined(t.deferralConstituents),t.writeType=(1048576&t.deferralParent.flags?f_:x_)(t.deferralWriteConstituents)),t.writeType||ls(e)):e.writeType||e.type:_s(e):98304&e.flags?1&r?(r=mi(r=e)).writeType||(r.writeType=ip(us(r.target),r.mapper)):ns(e):_s(e)}function _s(e){var t,r=zC.getCheckFlags(e);return 65536&r?ls(e):1&r?(t=mi(t=e)).type||(t.type=ip(_s(t.target),t.mapper)):262144&r?function(e){if(!e.type){var t=e.mappedType;if(!mo(e,0))return t.containsError=!0,$e;var r=Nc(t.target||t),n=Hd(t.mapper,Cc(t),e.keyType),n=ip(r,n),n=ee&&16777216&e.flags&&!nx(n,49152)?qf(n,!0):524288&e.checkFlags?$f(n):n;ho()||(ei(Z,zC.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,$a(e),to(t)),n=$e),e.type=n}return e.type}(e):8192&r?function(e){var t=mi(e);t.type||(t.type=Cg(e.propertyType,e.mappedType,e.constraintType));return t.type}(e):7&e.flags?$o(e):9136&e.flags?as(e):8&e.flags?os(e):98304&e.flags?rs(e):2097152&e.flags?ss(e):$e}function ds(e){return Yf(_s(e),!!(16777216&e.flags))}function ps(e,t){return void 0!==e&&void 0!==t&&0!=(4&zC.getObjectFlags(e))&&e.target===t}function fs(e){return 4&zC.getObjectFlags(e)?e.target:e}function gs(e,n){return function e(t){{if(7&zC.getObjectFlags(t)){var r=fs(t);return r===n||zC.some(Es(r),e)}if(2097152&t.flags)return zC.some(t.types,e)}return!1}(e)}function ms(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e=zC.appendIfUnique(e,Ls(ba(i)))}return e}function ys(t,e){for(;;){var r;if((t=t.parent)&&zC.isBinaryExpression(t)&&(6!==(r=zC.getAssignmentDeclarationKind(t))&&3!==r||(r=ba(t.left))&&r.parent&&!zC.findAncestor(r.parent.valueDeclaration,function(e){return t===e})&&(t=r.parent.valueDeclaration)),!t)return;switch(t.kind){case 257:case 226:case 258:case 174:case 175:case 168:case 179:case 180:case 317:case 256:case 169:case 213:case 214:case 259:case 344:case 345:case 339:case 338:case 195:case 189:var n=ys(t,e);if(195===t.kind)return zC.append(n,Ls(ba(t.typeParameter)));if(189===t.kind)return zC.concatenate(n,ud(t));var i=ms(n,zC.getEffectiveTypeParameterDeclarations(t)),a=e&&(257===t.kind||226===t.kind||258===t.kind||tb(t))&&As(ba(t)).thisType;return a?zC.append(i,a):i;case 340:i=zC.getParameterSymbolFromJSDoc(t);i&&(t=i.valueDeclaration);break;case 320:n=ys(t,e);return t.tags?ms(n,zC.flatMap(t.tags,function(e){return zC.isJSDocTemplateTag(e)?e.typeParameters:void 0})):n}}}function hs(e){e=32&e.flags?e.valueDeclaration:zC.getDeclarationOfKind(e,258);return zC.Debug.assert(!!e,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),ys(e)}function vs(e){if(e.declarations){for(var t=0,r=e.declarations;t<r.length;t++){var n,i=r[t];(258===i.kind||257===i.kind||226===i.kind||tb(i)||zC.isTypeAlias(i))&&(n=ms(n,zC.getEffectiveTypeParameterDeclarations(i)))}return n}}function bs(e){e=pl(e,1);if(1===e.length){e=e[0];if(!e.typeParameters&&1===e.parameters.length&&ak(e)){e=vb(e.parameters[0]);return xo(e)||hf(e)===Xe}}return!1}function xs(e){if(0<pl(e,1).length)return 1;if(8650752&e.flags){e=Hc(e);return e&&bs(e)}}function Ds(e){e=zC.getClassLikeDeclarationOfSymbol(e.symbol);return e&&zC.getEffectiveBaseTypeNode(e)}function Ss(e,t,r){var n=zC.length(t),i=zC.isInJSFile(r);return zC.filter(pl(e,1),function(e){return(i||n>=Pl(e.typeParameters))&&n<=zC.length(e.typeParameters)})}function Ts(e,t,r){var e=Ss(e,t,r),n=zC.map(t,Id);return zC.sameMap(e,function(e){return zC.some(e.typeParameters)?ql(e,n,zC.isInJSFile(r)):e})}function Cs(e){if(!e.resolvedBaseConstructorType){var t=zC.getClassLikeDeclarationOfSymbol(e.symbol),r=t&&zC.getEffectiveBaseTypeNode(t),n=Ds(e);if(!n)return e.resolvedBaseConstructorType=at;if(!mo(e,1))return $e;var i=Ix(n.expression);if(r&&n!==r&&(zC.Debug.assert(!r.typeArguments),Ix(r.expression)),2621440&i.flags&&Lc(i),!ho())return ei(e.symbol.valueDeclaration,zC.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,$a(e.symbol)),e.resolvedBaseConstructorType=$e;if(!(1&i.flags||i===ut||xs(i))){t=ei(n.expression,zC.Diagnostics.Type_0_is_not_a_constructor_function_type,to(i));return 262144&i.flags&&(r=au(i),n=nt,!r||(r=pl(r,1))[0]&&(n=zl(r[0])),i.symbol.declarations&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(i.symbol.declarations[0],zC.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,$a(i.symbol),to(n)))),e.resolvedBaseConstructorType=$e}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function ks(e,t){ei(e,zC.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,to(t,void 0,2))}function Es(e){if(!e.baseTypesResolved){if(mo(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[(i=e,Qu(f_(zC.sameMap(i.typeParameters,function(e,t){return 8&i.elementFlags[t]?Y_(e,dt):e})||zC.emptyArray),i.readonly))]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=zC.resolvingEmptyArray;var t=tl(Cs(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=zC.emptyArray;var r=Ds(e),n=t.symbol?Rs(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=pu(e);return t[r].symbol!==e[r].symbol}return!0}(n))a=gu(r,t.symbol);else if(1&t.flags)a=t;else{var i=Ts(t,r.typeArguments,r);if(!i.length)return ei(r.expression,zC.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=zC.emptyArray;a=zl(i[0])}if(Do(a))return e.resolvedBaseTypes=zC.emptyArray;if(!Ns(i=ol(a))){var a=ul(void 0,a),a=zC.chainDiagnosticMessages(a,zC.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,to(i));return Rn.add(zC.createDiagnosticForNodeFromMessageChain(r.expression,a)),e.resolvedBaseTypes=zC.emptyArray}if(e===i||gs(i,e))return ei(e.symbol.valueDeclaration,zC.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,to(e,void 0,2)),e.resolvedBaseTypes=zC.emptyArray;e.resolvedBaseTypes===zC.resolvingEmptyArray&&(e.members=void 0),e.resolvedBaseTypes=[i]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||zC.emptyArray,e.symbol.declarations)for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];if(258===n.kind&&zC.getInterfaceBaseTypeNodes(n))for(var i=0,a=zC.getInterfaceBaseTypeNodes(n);i<a.length;i++){var o=a[i],s=ol(Id(o));Do(s)||(Ns(s)?e===s||gs(s,e)?ks(n,e):e.resolvedBaseTypes===zC.emptyArray?e.resolvedBaseTypes=[s]:e.resolvedBaseTypes.push(s):ei(o,zC.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(e)):zC.Debug.fail("type must be class or interface"),!ho()&&e.symbol.declarations))for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];257!==n.kind&&258!==n.kind||ks(n,e)}e.baseTypesResolved=!0}var i;return e.resolvedBaseTypes}function Ns(e){if(262144&e.flags){var t=Hc(e);if(t)return Ns(t)}return!!(67633153&e.flags&&!Mc(e)||2097152&e.flags&&zC.every(e.types,Ns))}function As(e){var t,r,n,i=mi(e),a=i;return i.declaredType||(t=32&e.flags?1:2,(r=rb(e,e.valueDeclaration&&((n=(null==(n=null===(n=null==(n=(n=e.valueDeclaration)&&nb(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&&206===t.kind;)t=t.parent;if(t&&zC.isBinaryExpression(t)&&zC.isPrototypeAccess(t.left)&&63===t.operatorToken.kind){e=zC.getInitializerOfBinaryExpression(t);return zC.isObjectLiteralExpression(e)&&e}}(n.valueDeclaration))?ba(n):void 0)))&&(e=i=r),n=a.declaredType=i.declaredType=wa(t,e),r=hs(e),a=vs(e),!r&&!a&&1!=t&&function(e){if(!e.declarations)return 1;for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if(258===n.kind){if(128&n.flags)return;n=zC.getInterfaceBaseTypeNodes(n);if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];if(zC.isEntityNameExpression(o.expression)){o=ra(o.expression,788968,!0);if(!o||!(64&o.flags)||As(o).thisType)return}}}}return 1}(e)||(n.objectFlags|=4,n.typeParameters=zC.concatenate(r,a),n.outerTypeParameters=r,n.localTypeParameters=a,n.instantiations=new zC.Map,n.instantiations.set(su(n.typeParameters),n),(n.target=n).resolvedTypeArguments=n.typeParameters,n.thisType=Ia(e),n.thisType.isThisType=!0,n.thisType.constraint=n)),i.declaredType}function Fs(e){var t=mi(e);if(!t.declaredType){if(!mo(e,2))return $e;var r=zC.Debug.checkDefined(null===(i=e.declarations)||void 0===i?void 0:i.find(zC.isTypeAlias),"Type alias symbol with no valid declaration found"),n=zC.isJSDocTypeAlias(r)?r.typeExpression:r.type,i=n?Id(n):$e;ho()?(n=vs(e))&&(t.typeParameters=n,t.instantiations=new zC.Map,t.instantiations.set(su(n),i)):(i=$e,339===r.kind?ei(r.typeExpression.type,zC.Diagnostics.Type_alias_0_circularly_references_itself,$a(e)):ei(zC.isNamedDeclaration(r)?r.name:r||r,zC.Diagnostics.Type_alias_0_circularly_references_itself,$a(e))),t.declaredType=i}return t.declaredType}function Ps(e){var t=e.initializer;if(!t)return!(16777216&e.flags);switch(t.kind){case 10:case 8:case 14:return 1;case 219:return 40===t.operator&&8===t.operand.kind;case 79:return zC.nodeIsMissing(t)||ba(e.parent).exports.get(t.escapedText);case 221:return function e(t){return!!zC.isStringLiteralLike(t)||221===t.kind&&e(t.left)&&e(t.right)}(t);default:return}}function ws(e){var t=mi(e);if(void 0!==t.enumKind)return t.enumKind;var r=!1;if(e.declarations)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(260===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&zC.isStringLiteralLike(c.initializer))return t.enumKind=1;Ps(c)||(r=!0)}}return t.enumKind=r?0:1}function Is(e){return 1024&e.flags&&!(1048576&e.flags)?Rs(xa(e.symbol)):e}function Os(e){var t,r,n=mi(e);if(n.declaredType)return n.declaredType;if(1===ws(e)){f++;var i=[];if(e.declarations)for(var a=0,o=e.declarations;a<o.length;a++){var s=o[a];if(260===s.kind)for(var c=0,l=s.members;c<l.length;c++){var u=l[c],_=GT(u),d=Sd((t=void 0!==_?_:0,r=f,d=ba(u),_=void 0,_=r+("string"==typeof t?"@":"#")+t,r=1024|("string"==typeof t?128:256),Re.get(_)||(Re.set(_,d=Dd(r,t,d)),d)));mi(ba(u)).declaredType=d,i.push(Td(d))}}if(i.length){var p=f_(i,1,e,void 0);return 1048576&p.flags&&(p.flags|=1024,p.symbol=e),n.declaredType=p}}p=Aa(32);return p.symbol=e,n.declaredType=p}function Ms(e){var t=mi(e);return t.declaredType||(e=Os(xa(e)),t.declaredType||(t.declaredType=e)),t.declaredType}function Ls(e){var t=mi(e);return t.declaredType||(t.declaredType=Ia(e))}function Rs(e){return Bs(e)||$e}function Bs(e){return 96&e.flags?As(e):524288&e.flags?Fs(e):262144&e.flags?Ls(e):384&e.flags?Os(e):8&e.flags?Ms(e):2097152&e.flags?(e=mi(t=e)).declaredType||(e.declaredType=Rs(Gi(t))):void 0;var t}function js(e){switch(e.kind){case 130:case 155:case 150:case 147:case 158:case 133:case 151:case 148:case 114:case 153:case 143:case 196:return!0;case 183:return js(e.elementType);case 178:return!e.typeArguments||e.typeArguments.every(js)}return!1}function Js(e){e=zC.getEffectiveConstraintOfTypeParameter(e);return!e||js(e)}function zs(e){var t=zC.getEffectiveTypeAnnotationNode(e);return t?js(t):!zC.hasInitializer(e)}function Ks(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 167:case 166:return zs(t);case 169:case 168:case 171:case 172:case 173:return r=t,n=zC.getEffectiveReturnTypeNode(r),i=zC.getEffectiveTypeParameterDeclarations(r),(171===r.kind||!!n&&js(n))&&r.parameters.every(zs)&&i.every(Js)}}var r,n,i}function Us(e,t,r){for(var n=zC.createSymbolTable(),i=0,a=e;i<a.length;i++){var o=a[i];n.set(o.escapedName,r&&Ks(o)?o:Xd(o,t))}return n}function Vs(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||qs(i)||e.set(i.escapedName,i)}}function qs(e){return e.valueDeclaration&&zC.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration)&&zC.isStatic(e.valueDeclaration)}function Ws(e){var t,r;return e.declaredProperties||(r=tc(t=e.symbol),e.declaredProperties=Ma(r),e.declaredCallSignatures=zC.emptyArray,e.declaredConstructSignatures=zC.emptyArray,e.declaredIndexInfos=zC.emptyArray,e.declaredCallSignatures=Ll(r.get("__call")),e.declaredConstructSignatures=Ll(r.get("__new")),e.declaredIndexInfos=eu(t)),e}function Hs(e){return!!(8576&e.flags)}function Gs(e){if(!zC.isComputedPropertyName(e)&&!zC.isElementAccessExpression(e))return!1;var t=zC.isComputedPropertyName(e)?e.expression:e.argumentExpression;return zC.isEntityNameExpression(t)&&Hs(zC.isComputedPropertyName(e)?Yy(e):mx(t))}function Qs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Xs(e){e=zC.getNameOfDeclaration(e);return!!e&&Gs(e)}function Ys(e){return!zC.hasDynamicName(e)||Xs(e)}function Zs(e){return 8192&e.flags?e.escapedName:384&e.flags?zC.escapeLeadingUnderscores(""+e.value):zC.Debug.fail()}function $s(e,t,r,n){zC.Debug.assert(!!n.symbol,"The member is expected to have a symbol.");var i=yi(n);if(!i.resolvedSymbol){i.resolvedSymbol=n.symbol;var a=zC.isBinaryExpression(n)?n.left:n.name,o=zC.isElementAccessExpression(a)?mx(a.argumentExpression):Yy(a);if(Hs(o)){var s=Zs(o),c=n.symbol.flags,l=r.get(s);l||r.set(s,l=si(0,s,4096));var u,t=t&&t.get(s);return(l.flags&ci(c)||t)&&(t=t?zC.concatenate(t.declarations,l.declarations):l.declarations,u=!(8192&o.flags)&&zC.unescapeLeadingUnderscores(s)||zC.declarationNameToString(a),zC.forEach(t,function(e){return ei(zC.getNameOfDeclaration(e)||e,zC.Diagnostics.Property_0_was_also_declared_here,u)}),ei(a||n,zC.Diagnostics.Duplicate_property_0,u),l=si(0,s,4096)),l.nameType=o,o=l,n=n,c=c,zC.Debug.assert(!!(4096&zC.getCheckFlags(o)),"Expected a late-bound symbol."),o.flags|=c,(mi(n.symbol).lateSymbol=o).declarations?n.symbol.isReplaceableByMethod||o.declarations.push(n):o.declarations=[n],111551&c&&(o.valueDeclaration&&o.valueDeclaration.kind===n.kind||(o.valueDeclaration=n)),l.parent?zC.Debug.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function ec(e,t){var r=mi(e);if(!r[t]){var n="resolvedExports"===t,i=n?1536&e.flags?ha(e):e.exports:e.members;r[t]=i||k;for(var a=zC.createSymbolTable(),o=0,s=e.declarations||zC.emptyArray;o<s.length;o++){var c=s[o],c=zC.getMembersOfDeclaration(c);if(c)for(var l=0,u=c;l<u.length;l++){var _=u[l];n===zC.hasStaticModifier(_)&&Xs(_)&&$s(e,i,a,_)}}var d=e.assignmentDeclarationMembers;if(d)for(var p=0,f=zC.arrayFrom(d.values());p<f.length;p++){var _=f[p],g=zC.getAssignmentDeclarationKind(_);n==!(3===g||zC.isBinaryExpression(_)&&ky(_,g)||9===g||6===g)&&Xs(_)&&$s(e,i,a,_)}r[t]=function(e,t){if(null==e||!e.size)return t;if(null==t||!t.size)return e;var r=zC.createSymbolTable();return fi(r,e),fi(r,t),r}(i,a)||k}return r[t]}function tc(e){return 6256&e.flags?ec(e,"resolvedMembers"):e.members||k}function rc(e){if(106500&e.flags&&"__computed"===e.escapedName){var t,r=mi(e);return!r.lateSymbol&&zC.some(e.declarations,Xs)&&(t=va(e.parent),(zC.some(e.declarations,zC.hasStaticModifier)?ga:tc)(t)),r.lateSymbol||(r.lateSymbol=e)}return e}function nc(e,t,r){if(4&zC.getObjectFlags(e)){var n=e.target,i=pu(e);if(zC.length(n.typeParameters)===zC.length(i)){var a=uu(n,zC.concatenate(i,[t||n.thisType]));return r?tl(a):a}}else if(2097152&e.flags){a=zC.sameMap(e.types,function(e){return nc(e,t,r)});return a!==e.types?x_(a):e}return r?tl(e):e}function ic(e,t,r,n){var i,a,o,s;d=zC.rangeEquals(r,n,0,r.length)?(a=t.symbol?tc(t.symbol):zC.createSymbolTable(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,t.declaredIndexInfos):(i=jd(r,n),a=Us(t.declaredProperties,i,1===r.length),o=Rd(t.declaredCallSignatures,i),s=Rd(t.declaredConstructSignatures,i),Bd(t.declaredIndexInfos,i));r=Es(t);if(r.length){t.symbol&&a===tc(t.symbol)&&(a=zC.createSymbolTable(t.declaredProperties)),Ra(e,a,o,s,d);for(var c=zC.lastOrUndefined(n),l=0,u=r;l<u.length;l++){var _=u[l],_=c?nc(ip(_,i),c):_;Vs(a,Jc(_)),o=zC.concatenate(o,pl(_,0)),s=zC.concatenate(s,pl(_,1));var _=_!==Xe?hl(_):[$l(_t,Xe,!1)],d=zC.concatenate(d,zC.filter(_,function(e){return!fl(d,e.keyType)}))}}Ra(e,a,o,s,d)}function ac(e,t,r,n,i,a,o,s){s=new u(Ne,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.compositeSignatures=void 0,s.compositeKind=void 0,s}function oc(e){var t=ac(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function sc(e,t){e=oc(e);return e.compositeSignatures=t,e.compositeKind=1048576,e.target=void 0,e.mapper=void 0,e}function cc(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});var r=8===t?"inner":"outer";return e.optionalCallSignatureCache[r]||(e.optionalCallSignatureCache[r]=function(e,t){zC.Debug.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");e=oc(e);return e.flags|=t,e}(e,t))}function lc(o,e){if(ak(o)){var t=o.parameters.length-1,r=_s(o.parameters[t]);if(Of(r))return[n(r,t)];if(!e&&1048576&r.flags&&zC.every(r.types,Of))return zC.map(r.types,function(e){return n(e,t)})}return[o.parameters];function n(n,i){var e=pu(n),a=n.target.labeledElementDeclarations,e=zC.map(e,function(e,t){var r=!!a&&bb(a[t])||xb(o,i+t,n),t=n.target.elementFlags[t],r=si(1,r,12&t?32768:2&t?16384:0);return r.type=4&t?Qu(e):e,r});return zC.concatenate(o.parameters.slice(0,i),e)}}function uc(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(df(s,t,r,n,i,r?mp:fp))return s}}function _c(e){for(var t,r,n=0;n<e.length;n++){if(0===e[n].length)return zC.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,l,u=a[i];t&&uc(t,u,!1,!1,!0)||(o=function(e,t,r){if(t.typeParameters){if(0<r)return;for(var n=1;n<e.length;n++)if(!uc(e[n],t,!1,!1,!1))return;return[t]}for(var i,n=0;n<e.length;n++){var a=n===r?t:uc(e[n],t,!0,!1,!0);if(!a)return;i=zC.appendIfUnique(i,a)}return i}(e,u,n))&&(s=u,1<o.length&&(l=u.thisParameter,(c=zC.forEach(o,function(e){return e.thisParameter}))&&(l=tg(c,x_(zC.mapDefined(o,function(e){return e.thisParameter&&_s(e.thisParameter)})))),(s=sc(u,o)).thisParameter=l),(t=t||[]).push(s))}}if(!zC.length(t)&&-1!==r){for(var _=e[void 0!==r?r:0],d=_.slice(),p=function(e){if(e!==_){var t=e[0];if(zC.Debug.assert(!!t,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(d=t.typeParameters&&zC.some(d,function(e){return!!e.typeParameters&&!dc(t.typeParameters,e.typeParameters)})?void 0:zC.map(d,function(e){return function(e,t){var r,n=e.typeParameters||t.typeParameters;e.typeParameters&&t.typeParameters&&(r=jd(t.typeParameters,e.typeParameters));var i=e.declaration,a=function(e,t,r){for(var n=Eb(e),i=Eb(t),a=i<=n?e:t,o=a===e?t:e,s=a===e?n:i,c=Ab(e)||Ab(t),l=c&&!Ab(a),u=new Array(s+(l?1:0)),_=0;_<s;_++){var d=Cb(a,_);a===t&&(d=ip(d,r));var p=Cb(o,_)||nt;o===t&&(p=ip(p,r));var f=x_([d,p]),g=c&&!l&&_===s-1,m=_>=Nb(a)&&_>=Nb(o),d=n<=_?void 0:xb(e,_),p=i<=_?void 0:xb(t,_),p=si(1|(m&&!g?16777216:0),(d===p?d:d?p?void 0:d:p)||"arg".concat(_));p.type=g?Qu(f):f,u[_]=p}{var y;l&&((y=si(1,"args")).type=Qu(Tb(o,s)),o===t&&(y.type=ip(y.type,r)),u[s]=y)}return u}(e,t,r),o=function(e,t,r){if(!e||!t)return e||t;r=x_([_s(e),ip(_s(t),r)]);return tg(e,r)}(e.thisParameter,t.thisParameter,r),s=Math.max(e.minArgumentCount,t.minArgumentCount),s=ac(i,n,o,a,void 0,void 0,s,39&(e.flags|t.flags));s.compositeKind=1048576,s.compositeSignatures=zC.concatenate(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?qd(e.mapper,r):r);return s}(e,t)})))return"break"}},f=0,g=e;f<g.length;f++)if("break"===p(g[f]))break;t=d}return t||zC.emptyArray}function dc(e,t){if(zC.length(e)===zC.length(t)){if(!e||!t)return 1;for(var r=jd(t,e),n=0;n<e.length;n++){var i=e[n],a=t[n];if(i!==a&&!pp(au(i)||nt,ip(au(a)||nt,r)))return}return 1}}function pc(e){var t=hl(e[0]);if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];!function(){var t=a.keyType;zC.every(e,function(e){return!!vl(e,t)})&&r.push($l(t,f_(zC.map(e,function(e){return bl(e,t)})),zC.some(e,function(e){return vl(e,t).isReadonly})))}()}return r}return zC.emptyArray}function fc(e,t){return e?t?x_([e,t]):e:t}function gc(e){var t=zC.countWhere(e,function(e){return 0<pl(e,1).length}),e=zC.map(e,bs);return 0<t&&t===zC.countWhere(e,function(e){return e})&&(t=e.indexOf(!0),e[t]=!1),e}function mc(n){for(var i,a,o,s=n.types,c=gc(s),l=zC.countWhere(c,function(e){return e}),e=function(r){var e,t=n.types[r];c[r]||((e=pl(t,1)).length&&0<l&&(e=zC.map(e,function(e){var t=oc(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(zl(pl(t[a],1)[0]));return x_(i)}(zl(e),s,c,r),t})),a=yc(a,e)),i=yc(i,pl(t,0)),o=zC.reduceLeft(hl(t),function(e,t){return hc(e,t,!1)},o)},t=0;t<s.length;t++)e(t);Ra(n,k,i||zC.emptyArray,a||zC.emptyArray,o||zC.emptyArray)}function yc(e,t){for(var r=0,n=t;r<n.length;r++)!function(t){e&&!zC.every(e,function(e){return!df(e,t,!1,!1,!1,fp)})||(e=zC.append(e,t))}(n[r]);return e}function hc(e,t,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];if(i.keyType===t.keyType)return e[n]=$l(i.keyType,(r?f_:x_)([i.type,t.type]),r?i.isReadonly||t.isReadonly:i.isReadonly&&t.isReadonly),e}return zC.append(e,t)}function vc(e){if(e.target)return Ra(e,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),void Ra(e,Us(Rc(e.target),e.mapper,!1),o=Rd(pl(e.target,0),e.mapper),l=Rd(pl(e.target,1),e.mapper),Bd(hl(e.target),e.mapper));var t,r,n,i,a,o,s,c,l,u=va(e.symbol);2048&u.flags?(Ra(e,k,zC.emptyArray,zC.emptyArray,zC.emptyArray),o=Ll((a=tc(u)).get("__call")),l=Ll(a.get("__new")),Ra(e,a,o,l,eu(u))):(n=k,u.exports&&(n=ga(u),u===Te&&(r=new zC.Map,n.forEach(function(e){var t;418&e.flags||512&e.flags&&null!==(t=e.declarations)&&void 0!==t&&t.length&&zC.every(e.declarations,zC.isAmbientModule)||r.set(e.escapedName,e)}),n=r)),Ra(e,n,zC.emptyArray,zC.emptyArray,zC.emptyArray),32&u.flags&&(11272192&(s=Cs(As(u))).flags?Vs(n=zC.createSymbolTable((o=Ma(a=n),(a=Zl(a))?zC.concatenate(o,[a]):o)),Jc(s)):s===Xe&&(i=$l(_t,Xe,!1))),(s=Zl(n))?t=tu(s):(i&&(t=zC.append(t,i)),384&u.flags&&(32&Rs(u).flags||zC.some(e.properties,function(e){return!!(296&_s(e).flags)}))&&(t=zC.append(t,Xr))),Ra(e,n,zC.emptyArray,zC.emptyArray,t||zC.emptyArray),8208&u.flags&&(e.callSignatures=Ll(u)),32&u.flags&&(c=As(u),l=u.members?Ll(u.members.get("__constructor")):zC.emptyArray,16&u.flags&&(l=zC.addRange(l.slice(),zC.mapDefined(e.callSignatures,function(e){return tb(e.declaration)?ac(e.declaration,e.typeParameters,e.thisParameter,e.parameters,c,void 0,e.minArgumentCount,39&e.flags):void 0}))),l.length||(l=function(e){var t=pl(Cs(e),1),r=!!(n=zC.getClassLikeDeclarationOfSymbol(e.symbol))&&zC.hasSyntacticModifier(n,128);if(0===t.length)return[ac(void 0,e.localTypeParameters,void 0,zC.emptyArray,e,void 0,0,r?4:0)];for(var n=Ds(e),i=zC.isInJSFile(n),a=Nu(n),o=zC.length(a),s=[],c=0,l=t;c<l.length;c++){var u=l[c],_=Pl(u.typeParameters),d=zC.length(u.typeParameters);(i||_<=o&&o<=d)&&((u=d?Hl(u,wl(a,u.typeParameters,_,i)):oc(u)).typeParameters=e.localTypeParameters,u.resolvedReturnType=e,u.flags=r?4|u.flags:-5&u.flags,s.push(u))}return s}(c)),e.constructSignatures=l))}function bc(e){for(var t,r,n=vl(e.source,_t),i=wc(e.mappedType),a=!(1&i),o=4&i?0:16777216,n=n?[$l(_t,Cg(n.type,e.mappedType,e.constraintType),a&&n.isReadonly)]:zC.emptyArray,s=zC.createSymbolTable(),c=0,l=Jc(e.source);c<l.length;c++){var u,_=l[c],d=8192|(a&&Xb(_)?8:0),p=si(4|_.flags&o,_.escapedName,d);p.declarations=_.declarations,p.nameType=mi(_).nameType,p.propertyType=_s(_),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags?(u=e.constraintType.type.objectType,t=e.mappedType,r=e.constraintType.type,d=u,d=ip(t,jd([r.indexType,r.objectType],[Ed(0),t_([d])])),p.mappedType=d,p.constraintType=P_(u)):(p.mappedType=e.mappedType,p.constraintType=e.constraintType),s.set(_.escapedName,p)}Ra(e,s,zC.emptyArray,zC.emptyArray,n)}function xc(e){if(4194304&e.flags){var t=tl(e.type);return(Mf(t)?a_:P_)(t)}if(16777216&e.flags){if(e.root.isDistributive){var r=e.checkType,t=xc(r);if(t!==r)return np(e,Wd(e.root.checkType,t,e.mapper))}return e}return 1048576&e.flags?Pm(e,xc):2097152&e.flags?x_(zC.sameMap(e.types,xc)):e}function Dc(e){return 4096&zC.getCheckFlags(e)}function Sc(e,t,r,n){for(var i=0,a=Jc(e);i<a.length;i++)n(N_(a[i],t));if(1&e.flags)n(_t);else for(var o=0,s=hl(e);o<s.length;o++){var c=s[o];(!r||134217732&c.keyType.flags)&&n(c.keyType)}}function Tc(c){var l,u=zC.createSymbolTable();Ra(c,k,zC.emptyArray,zC.emptyArray,zC.emptyArray);var _=Cc(c),e=kc(c),d=Ec(c.target||c),p=Nc(c.target||c),f=tl(Pc(c)),g=wc(c),t=N?128:8576;function r(t){km(d?ip(d,Hd(c.mapper,_,t)):t,function(e){return function(e,t){{var r,n,i,a,o,s;Hs(t)?(r=Zs(t),(o=u.get(r))?(o.nameType=f_([o.nameType,t]),o.keyType=f_([o.keyType,e])):(n=Hs(e)?_l(f,Zs(e)):void 0,i=!!(4&g||!(8&g)&&n&&16777216&n.flags),a=!!(1&g||!(2&g)&&n&&Xb(n)),s=ee&&!i&&n&&16777216&n.flags,o=n?Dc(n):0,(s=si(4|(i?16777216:0),r,262144|o|(a?8:0)|(s?524288:0))).mappedType=c,s.nameType=t,s.keyType=e,n&&(s.syntheticOrigin=n,s.declarations=d?void 0:n.declarations),u.set(r,s))):(ru(t)||33&t.flags)&&(t=5&t.flags?_t:40&t.flags?dt:t,e=ip(p,Hd(c.mapper,_,e)),e=$l(t,e,!!(1&g)),l=hc(l,e,!0))}}(t,e)})}Fc(c)?Sc(f,t,N,r):km(xc(e),r),Ra(c,u,zC.emptyArray,zC.emptyArray,l||zC.emptyArray)}function Cc(e){return e.typeParameter||(e.typeParameter=Ls(ba(e.declaration.typeParameter)))}function kc(e){return e.constraintType||(e.constraintType=Kc(Cc(e))||$e)}function Ec(e){return e.declaration.nameType?e.nameType||(e.nameType=ip(Id(e.declaration.nameType),e.mapper)):void 0}function Nc(e){return e.templateType||(e.templateType=e.declaration.type?ip(Oo(Id(e.declaration.type),!0,!!(4&wc(e))),e.mapper):$e)}function Ac(e){return zC.getEffectiveConstraintOfTypeParameter(e.declaration.typeParameter)}function Fc(e){e=Ac(e);return 193===e.kind&&140===e.operator}function Pc(e){var t;return e.modifiersType||(Fc(e)?e.modifiersType=ip(Id(Ac(e).type),e.mapper):(t=(t=kc(td(e.declaration)))&&262144&t.flags?Kc(t):t,e.modifiersType=t&&4194304&t.flags?ip(t.type,e.mapper):nt)),e.modifiersType}function wc(e){e=e.declaration;return(e.readonlyToken?40===e.readonlyToken.kind?2:1:0)|(e.questionToken?40===e.questionToken.kind?8:4:0)}function Ic(e){e=wc(e);return 8&e?-1:4&e?1:0}function Oc(e){var t=Ic(e),e=Pc(e);return t||(Mc(e)?Ic(e):0)}function Mc(e){return!!(32&zC.getObjectFlags(e))&&q_(kc(e))}function Lc(e){var t,r,n,i,a;return e.members||(524288&e.flags?4&e.objectFlags?(n=Ws((r=e).target),i=zC.concatenate(n.typeParameters,[n.thisType]),a=pu(r),ic(r,n,i,a.length===i.length?a:zC.concatenate(a,[r]))):3&e.objectFlags?ic(t=e,Ws(t),zC.emptyArray,zC.emptyArray):1024&e.objectFlags?bc(e):16&e.objectFlags?vc(e):32&e.objectFlags&&Tc(e):1048576&e.flags?(i=e,a=_c(zC.map(i.types,function(e){return e===Zt?[Hr]:pl(e,0)})),r=_c(zC.map(i.types,function(e){return pl(e,1)})),t=pc(i.types),Ra(i,k,a,r,t)):2097152&e.flags&&mc(e)),e}function Rc(e){return 524288&e.flags?Lc(e).properties:zC.emptyArray}function Bc(e,t){if(524288&e.flags){t=Lc(e).members.get(t);if(t&&Ea(t))return t}}function jc(e){if(!e.resolvedProperties){for(var t=zC.createSymbolTable(),r=0,n=e.types;r<n.length;r++){for(var i=n[r],a=0,o=Jc(i);a<o.length;a++){var s,c=o[a];t.has(c.escapedName)||(s=al(e,c.escapedName))&&t.set(c.escapedName,s)}if(1048576&e.flags&&0===hl(i).length)break}e.resolvedProperties=Ma(t)}return e.resolvedProperties}function Jc(e){return(3145728&(e=rl(e)).flags?jc:Rc)(e)}function zc(e){return 262144&e.flags?Kc(e):8388608&e.flags?Qc(t=e)?function(e){if(el(e))return X_(e.objectType,e.indexType);var t=Uc(e.indexType);if(t&&t!==e.indexType){var r=$_(e.objectType,t,e.accessFlags);if(r)return r}r=Uc(e.objectType);if(r&&r!==e.objectType)return $_(r,e.indexType,e.accessFlags);return}(t):void 0:16777216&e.flags?Qc(t=e)?Wc(t):void 0:Hc(e);var t}function Kc(e){return Qc(e)?au(e):void 0}function Uc(e){var t=H_(e,!1);return t!==e?t:zc(e)}function Vc(e){var t,r;return e.resolvedDefaultConstraint||(t=(r=e).resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?ip(Id(r.root.node.trueType),r.combinedMapper):cd(r)),r=ld(e),e.resolvedDefaultConstraint=xo(t)?r:xo(r)?t:f_([t,r])),e.resolvedDefaultConstraint}function qc(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=H_(e.checkType,!1),t=t===e.checkType?zc(t):t;if(t&&t!==e.checkType){e=np(e,Wd(e.root.checkType,t,e.mapper));if(!(131072&e.flags))return e}}}function Wc(e){return qc(e)||Vc(e)}function Hc(e){if(464781312&e.flags){var t=Xc(e);return t!==Kt&&t!==Ut?t:void 0}return 4194304&e.flags?At:void 0}function Gc(e){return Hc(e)||e}function Qc(e){return Xc(e)!==Ut}function Xc(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;var i=[];return e.resolvedBaseConstraint=nc(t(e),e);function t(e){if(!e.immediateBaseConstraint){if(!mo(e,4))return Ut;var t,r=void 0,n=uf(e);(i.length<10||i.length<50&&!zC.contains(i,n))&&(i.push(n),r=function(e){if(262144&e.flags){var t=au(e);return e.isThisType||!t?t:u(t)}if(3145728&e.flags){for(var r=e.types,n=[],i=!1,a=0,o=r;a<o.length;a++){var s=o[a],c=u(s);c?(c!==s&&(i=!0),n.push(c)):i=!0}return i?1048576&e.flags&&n.length===r.length?f_(n):2097152&e.flags&&n.length?x_(n):void 0:e}if(4194304&e.flags)return At;if(134217728&e.flags){var r=e.types,l=zC.mapDefined(r,u);return l.length===r.length?I_(e.texts,l):_t}if(268435456&e.flags)return(t=u(e.type))?M_(e.symbol,t):_t;if(8388608&e.flags){if(el(e))return u(X_(e.objectType,e.indexType));r=u(e.objectType),l=u(e.indexType),l=r&&l&&$_(r,l,e.accessFlags);return l&&u(l)}if(16777216&e.flags)return(t=Wc(e))&&u(t);if(33554432&e.flags)return u(e.substitute);return e}(H_(e,!1)),i.pop()),ho()||(262144&e.flags&&((t=nu(e))&&(n=ei(t,zC.Diagnostics.Type_parameter_0_has_a_circular_constraint,to(e)),!Z||zC.isNodeDescendantOf(t,Z)||zC.isNodeDescendantOf(Z,t)||zC.addRelatedInfo(n,zC.createDiagnosticForNode(Z,zC.Diagnostics.Circularity_originates_in_type_at_this_location)))),r=Ut),e.immediateBaseConstraint=r||Kt}return e.immediateBaseConstraint}function u(e){e=t(e);return e!==Kt&&e!==Ut?e:void 0}}function Yc(e){var t;return e.default?e.default===Vt&&(e.default=Ut):e.target?(t=Yc(e.target),e.default=t?ip(t,e.mapper):Kt):(e.default=Vt,t=(t=e.symbol&&zC.forEach(e.symbol.declarations,function(e){return zC.isTypeParameterDeclaration(e)&&e.default}))?Id(t):Kt,e.default===Vt&&(e.default=t)),e.default}function Zc(e){e=Yc(e);return e!==Kt&&e!==Ut?e:void 0}function $c(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=Zd(e);if(t&&!e.declaration.nameType){var r=Kc(t);if(r&&mf(r))return ip(e,Wd(t,r,e.mapper))}return e}(e))}function el(e){var t;return 8388608&e.flags&&32&zC.getObjectFlags(t=e.objectType)&&!Mc(t)&&q_(e.indexType)&&!t.declaration.questionToken&&!t.declaration.nameType}function tl(e){var t=465829888&e.flags?Hc(e)||nt:e;return 32&zC.getObjectFlags(t)?$c(t):2097152&t.flags?(e=t).resolvedApparentType||(e.resolvedApparentType=nc(e,e,!0)):402653316&t.flags?nr:296&t.flags?ir:2112&t.flags?(Rr=Rr||Mu("BigInt",0,!1))||Rt:528&t.flags?ar:12288&t.flags?Ju():67108864&t.flags?Rt:4194304&t.flags?At:2&t.flags&&!ee?Rt:t}function rl(e){return ol(tl(ol(e)))}function nl(e,t,r){for(var n,i,a,o,s,c,l=1048576&e.flags,u=l?0:16777216,_=4,d=l?0:8,p=!1,f=0,g=e.types;f<g.length;f++)Do(E=tl(g[f]))||131072&E.flags||(c=(k=_l(E,t,r))?zC.getDeclarationModifierFlagsFromSymbol(k):0,k?(l?u|=16777216&k.flags:u&=k.flags,i?k!==i&&((LS(k)||k)===(LS(i)||i)&&-1===_f(i,k,function(e,t){return e===t?-1:0})?p=!!i.parent&&!!zC.length(vs(i.parent)):(a||(a=new zC.Map).set(ek(i),i),s=ek(k),a.has(s)||a.set(s,k))):i=k,l&&Xb(k)?d|=8:l||Xb(k)||(d&=-9),d|=(24&c?0:256)|(16&c?512:0)|(8&c?1024:0)|(32&c?2048:0),Ch(k)||(_=2)):l&&((c=!Qs(t)&&Sl(E,t))?(d|=32|(c.isReadonly?8:0),o=zC.append(o,Of(E)?Rf(E)||at:c.type)):!jg(E)||2097152&zC.getObjectFlags(E)?d|=16:(d|=32,o=zC.append(o,at))));if(i&&!(l&&(a||48&d)&&1536&d)){if(!(a||16&d||o)){if(p){var m=tg(i,i.type);return m.parent=null===(n=null===(n=i.valueDeclaration)||void 0===n?void 0:n.symbol)||void 0===n?void 0:n.parent,m.containingType=e,m.mapper=i.mapper,m}return i}for(var y,h,v,b,x,D=[],S=!1,T=0,C=a?zC.arrayFrom(a.values()):[i];T<C.length;T++){var k=C[T];x?k.valueDeclaration&&k.valueDeclaration!==x&&(S=!0):x=k.valueDeclaration,y=zC.addRange(y,k.declarations);var E=_s(k);h||(h=E,v=mi(k).nameType);var N=us(k);b||N!==E?b=zC.append(b||D.slice(),N):E!==h&&(d|=64),(Nf(E)||K_(E)||E===Mt)&&(d|=128),131072&E.flags&&E!==Mt&&(d|=131072),D.push(E)}zC.addRange(D,o);m=si(4|u,t,_|d);return m.containingType=e,!S&&x&&(m.valueDeclaration=x).symbol.parent&&(m.parent=x.symbol.parent),m.declarations=y,m.nameType=v,2<D.length?(m.checkFlags|=65536,m.deferralParent=e,m.deferralConstituents=D,m.deferralWriteConstituents=b):(m.type=(l?f_:x_)(D),b&&(m.writeType=(l?f_:x_)(b))),m}}function il(e,t,r){var n,i=(null===(n=e.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===n||!n.get(t))&&r||null===(i=e.propertyCache)||void 0===i?void 0:i.get(t);return i||(i=nl(e,t,r))&&(r?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=zC.createSymbolTable()):e.propertyCache||(e.propertyCache=zC.createSymbolTable())).set(t,i),i}function al(e,t,r){r=il(e,t,r);return!r||16&zC.getCheckFlags(r)?void 0:r}function ol(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){var t=zC.sameMap(e.types,ol);if(t===e.types)return e;t=f_(t);1048576&t.flags&&(t.resolvedReducedType=t);return t}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(zC.some(jc(e),sl)?33554432:0)),33554432&e.objectFlags?xt:e):e}function sl(e){return cl(e)||ll(e)}function cl(e){return!(16777216&e.flags||192!=(131264&zC.getCheckFlags(e))||!(131072&_s(e).flags))}function ll(e){return!e.valueDeclaration&&!!(1024&zC.getCheckFlags(e))}function ul(e,t){if(2097152&t.flags&&33554432&zC.getObjectFlags(t)){var r=zC.find(jc(t),cl);if(r)return zC.chainDiagnosticMessages(e,zC.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,to(t,void 0,536870912),$a(r));r=zC.find(jc(t),ll);if(r)return zC.chainDiagnosticMessages(e,zC.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,to(t,void 0,536870912),$a(r))}return e}function _l(e,t,r){if(524288&(e=rl(e)).flags){var n=Lc(e),i=n.members.get(t);if(i&&Ea(i))return i;if(r)return;n=n===zt?Zt:n.callSignatures.length?$t:n.constructSignatures.length?er:void 0;if(n){n=Bc(n,t);if(n)return n}return Bc(Yt,t)}if(3145728&e.flags)return al(e,t,r)}function dl(e,t){if(3670016&e.flags){e=Lc(e);return 0===t?e.callSignatures:e.constructSignatures}return zC.emptyArray}function pl(e,t){return dl(rl(e),t)}function fl(e,t){return zC.find(e,function(e){return e.keyType===t})}function gl(e,t){for(var r,n,i,a=0,o=e;a<o.length;a++){var s=o[a];s.keyType===_t?r=s:ml(t,s.keyType)&&(n?(i=i||[n]).push(s):n=s)}return i?$l(nt,x_(zC.map(i,function(e){return e.type})),zC.reduceLeft(i,function(e,t){return e&&t.isReadonly},!0)):n||(r&&ml(t,_t)?r:void 0)}function ml(e,t){return hp(e,t)||t===_t&&hp(e,dt)||t===dt&&(e===wt||!!(128&e.flags)&&zC.isNumericLiteralName(e.value))}function yl(e){return 3670016&e.flags?Lc(e).indexInfos:zC.emptyArray}function hl(e){return yl(rl(e))}function vl(e,t){return fl(hl(e),t)}function bl(e,t){return null===(t=vl(e,t))||void 0===t?void 0:t.type}function xl(e,t){return hl(e).filter(function(e){return ml(t,e.keyType)})}function Dl(e,t){return gl(hl(e),t)}function Sl(e,t){return Dl(e,Qs(t)?vt:kd(zC.unescapeLeadingUnderscores(t)))}function Tl(e){for(var t=0,r=zC.getEffectiveTypeParameterDeclarations(e);t<r.length;t++)var n=r[t],i=zC.appendIfUnique(i,Ls(n.symbol));return i}function Cl(e){var r=[];return e.forEach(function(e,t){Oa(t)||r.push(e)}),r}function kl(e){return zC.isInJSFile(e)&&(e.type&&316===e.type.kind||zC.getJSDocParameterTags(e).some(function(e){var t=e.isBracketed,e=e.typeExpression;return t||!!e&&316===e.type.kind}))}function El(e,t){if(!zC.isExternalModuleNameRelative(e)){e=vi(De,'"'+e+'"',512);return e&&t?va(e):e}}function Nl(e){if(zC.hasQuestionToken(e)||Al(e)||kl(e))return!0;if(e.initializer){var t=Il(e.parent),r=e.parent.parameters.indexOf(e);return zC.Debug.assert(0<=r),r>=Nb(t,3)}t=zC.getImmediatelyInvokedFunctionExpression(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length)}function Al(e){if(!zC.isJSDocPropertyLikeTag(e))return!1;var t=e.isBracketed,e=e.typeExpression;return t||!!e&&316===e.type.kind}function Fl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Pl(e){var t,r=0;if(e)for(var n=0;n<e.length;n++)(t=e[n]).symbol&&zC.forEach(t.symbol.declarations,function(e){return zC.isTypeParameterDeclaration(e)&&e.default})||(r=n+1);return r}function wl(e,t,r,n){var i=zC.length(t);if(!i)return[];var a=zC.length(e);if(n||r<=a&&a<=i){for(var o=e?e.slice():[],s=a;s<i;s++)o[s]=$e;for(var c=Vg(n),s=a;s<i;s++){var l=Zc(t[s]);n&&l&&(pp(l,nt)||pp(l,Rt))&&(l=Xe),o[s]=l?ip(l,jd(t,o)):c}return o.length=t.length,o}return e&&e.slice()}function Il(e){var t=yi(e);if(!t.resolvedSignature){var r=[],n=0,i=0,a=void 0,o=!1,s=zC.getImmediatelyInvokedFunctionExpression(e),c=zC.isJSDocConstructSignature(e);!s&&zC.isInJSFile(e)&&zC.isValueSignatureDeclaration(e)&&!zC.hasJSDocParameterTags(e)&&!zC.getJSDocType(e)&&(n|=32);for(var l=c?1:0;l<e.parameters.length;l++){var u=e.parameters[l],_=u.symbol,d=zC.isJSDocParameterTag(u)?u.typeExpression&&u.typeExpression.type:u.type;_&&4&_.flags&&!zC.isBindingPattern(u.name)&&(_=Di(u,_.escapedName,111551,void 0,void 0,!1)),0===l&&"this"===_.escapedName?(o=!0,a=u.symbol):r.push(_),d&&196===d.kind&&(n|=2),Al(u)||u.initializer||u.questionToken||zC.isRestParameter(u)||s&&r.length>s.arguments.length&&!d||kl(u)||(i=r.length)}172!==e.kind&&173!==e.kind||!Ys(e)||o&&a||(c=172===e.kind?173:172,(c=zC.getDeclarationOfKind(ba(e),c))&&(a=(p=kC(p=c))&&p.symbol));var p=171===e.kind?As(va(e.parent.symbol)):void 0,p=p?p.localTypeParameters:Tl(e);(zC.hasRestParameter(e)||zC.isInJSFile(e)&&function(e,t){if(zC.isJSDocSignature(e)||!Ml(e))return!1;var r=zC.lastOrUndefined(e.parameters),r=r?zC.getJSDocParameterTags(r):zC.getJSDocTags(e).filter(zC.isJSDocParameterTag),e=zC.firstDefined(r,function(e){return e.typeExpression&&zC.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:void 0}),r=si(3,"args",32768);e?r.type=Qu(Id(e.type)):(r.checkFlags|=65536,r.deferralParent=xt,r.deferralConstituents=[cr],r.deferralWriteConstituents=[cr]);e&&t.pop();return t.push(r),!0}(e,r))&&(n|=1),(zC.isConstructorTypeNode(e)&&zC.hasSyntacticModifier(e,128)||zC.isConstructorDeclaration(e)&&zC.hasSyntacticModifier(e.parent,128))&&(n|=4),t.resolvedSignature=ac(e,p,a,r,void 0,void 0,i,n)}return t.resolvedSignature}function Ol(e){if(zC.isInJSFile(e)&&zC.isFunctionLikeDeclaration(e)){e=zC.getJSDocTypeTag(e);return(null==e?void 0:e.typeExpression)&&xv(Id(e.typeExpression))}}function Ml(e){var t=yi(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 79:return t.escapedText===ke.escapedName&&nC(t)===ke;case 167:case 169:case 172:case 173:return 162===t.name.kind&&e(t.name);case 206:case 207:return e(t.expression);case 296:return e(t.initializer);default:return!zC.nodeStartsNewLexicalEnvironment(t)&&!zC.isPartOfTypeNode(t)&&!!zC.forEachChild(t,e)}}(e.body)),t.containsArgumentsReference}function Ll(e){if(!e||!e.declarations)return zC.emptyArray;for(var t=[],r=0;r<e.declarations.length;r++){var n=e.declarations[r];if(zC.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(Il(n))}}return t}function Rl(e){e=ia(e,e);if(e){e=ca(e);if(e)return _s(e)}return Xe}function Bl(e){if(e.thisParameter)return _s(e.thisParameter)}function jl(e){var t,r,n,i,a;return e.resolvedTypePredicate||(e.target?(t=jl(e.target),e.resolvedTypePredicate=t?(i=t,a=e.mapper,Fl(i.kind,i.parameterName,i.parameterIndex,ip(i.type,a))):qr):e.compositeSignatures?e.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=jl(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==t)continue;return}if(r){if(!g_(r,o))return}else r=o;n.push(o.type)}if(!r)return;e=Jl(n,t);return Fl(r.kind,r.parameterName,r.parameterIndex,e)}(e.compositeSignatures,e.compositeKind)||qr:(t=void 0,(i=e.declaration&&zC.getEffectiveReturnTypeNode(e.declaration))||!zC.isInJSFile(e.declaration)||(r=Ol(e.declaration))&&e!==r&&(t=jl(r)),e.resolvedTypePredicate=i&&zC.isTypePredicateNode(i)?(a=e,n=(r=i).parameterName,i=r.type&&Id(r.type),192===n.kind?Fl(r.assertsModifier?2:0,void 0,void 0,i):Fl(r.assertsModifier?3:1,n.escapedText,zC.findIndex(a.parameters,function(e){return e.escapedName===n.escapedText}),i)):t||qr),zC.Debug.assert(!!e.resolvedTypePredicate)),e.resolvedTypePredicate===qr?void 0:e.resolvedTypePredicate}function Jl(e,t,r){return 2097152!==t?f_(e,r):x_(e)}function zl(e){if(!e.resolvedReturnType){if(!mo(e,3))return $e;var t,r,n=e.target?ip(zl(e.target),e.mapper):e.compositeSignatures?ip(Jl(zC.map(e.compositeSignatures,zl),e.compositeKind,2),e.mapper):Kl(e.declaration)||(zC.nodeIsMissing(e.declaration.body)?Xe:jb(e.declaration));8&e.flags?n=Hf(n):16&e.flags&&(n=qf(n)),ho()||(e.declaration&&((r=zC.getEffectiveReturnTypeNode(e.declaration))?ei(r,zC.Diagnostics.Return_type_annotation_circularly_references_itself):te&&(t=e.declaration,(r=zC.getNameOfDeclaration(t))?ei(r,zC.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,zC.declarationNameToString(r)):ei(t,zC.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=Xe),e.resolvedReturnType=n}return e.resolvedReturnType}function Kl(e){if(171===e.kind)return As(va(e.parent.symbol));if(zC.isJSDocConstructSignature(e))return Id(e.parameters[0].type);var t=zC.getEffectiveReturnTypeNode(e);if(t)return Id(t);if(172===e.kind&&Ys(e)){t=zC.isInJSFile(e)&&wo(e);if(t)return t;t=ts(zC.getDeclarationOfKind(ba(e),173));if(t)return t}return(e=Ol(e=e))&&zl(e)}function Ul(e){return!e.resolvedReturnType&&0<=yo(e,3)}function Vl(e){if(ak(e)){e=_s(e.parameters[e.parameters.length-1]),e=Of(e)?Rf(e):e;return e&&bl(e,dt)}}function ql(e,t,r,n){e=Wl(e,wl(t,e.typeParameters,Pl(e.typeParameters),r));if(n){r=Dv(zl(e));if(r){r=oc(r);r.typeParameters=n;n=oc(e);return n.resolvedReturnType=Xl(r),n}}return e}function Wl(e,t){var r=e.instantiations||(e.instantiations=new zC.Map),n=su(t),i=r.get(n);return i||r.set(n,i=Hl(e,t)),i}function Hl(e,t){return Qd(e,(t=t,jd(e.typeParameters,t)),!0)}function Gl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=Qd(t=e,Vd(t.typeParameters),!0)):e;var t}function Ql(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=ql(t=e,zC.map(t.typeParameters,function(e){return e.target&&!Kc(e.target)?e.target:e}),zC.isInJSFile(t.declaration))):e;var t}function Xl(e){var t,r;return e.isolatedSignatureType||(t=void 0===(r=null===(t=e.declaration)||void 0===t?void 0:t.kind)||171===r||175===r||180===r,(r=wa(16)).members=k,r.properties=zC.emptyArray,r.callSignatures=t?zC.emptyArray:[e],r.constructSignatures=t?[e]:zC.emptyArray,r.indexInfos=zC.emptyArray,e.isolatedSignatureType=r),e.isolatedSignatureType}function Yl(e){return e.members?Zl(e.members):void 0}function Zl(e){return e.get("__index")}function $l(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function eu(e){e=Yl(e);return e?tu(e):zC.emptyArray}function tu(e){if(e.declarations){for(var r=[],t=0,n=e.declarations;t<n.length;t++)!function(t){var e;1!==t.parameters.length||(e=t.parameters[0]).type&&km(Id(e.type),function(e){ru(e)&&!fl(r,e)&&r.push($l(e,t.type?Id(t.type):Xe,zC.hasEffectiveModifier(t,64),t))})}(n[t]);return r}return zC.emptyArray}function ru(e){return!!(4108&e.flags)||K_(e)||!!(2097152&e.flags)&&!U_(e)&&zC.some(e.types,ru)}function nu(e){return zC.mapDefined(zC.filter(e.symbol&&e.symbol.declarations,zC.isTypeParameterDeclaration),zC.getEffectiveConstraintOfTypeParameter)[0]}function iu(e,t){var r;if(null!==(r=e.symbol)&&void 0!==r&&r.declarations)for(var n=0,i=e.symbol.declarations;n<i.length;n++){var a,o,s,c,l=i[n];190===l.parent.kind&&(s=void 0===(s=(c=zC.walkUpParenthesizedTypesAndGetParentAndChild(l.parent.parent))[0])?l.parent:s,178!==(c=c[1]).kind||t?164===c.kind&&c.dotDotDotToken||186===c.kind||197===c.kind&&c.dotDotDotToken?a=zC.append(a,Qu(nt)):199===c.kind?a=zC.append(a,_t):163===c.kind&&195===c.parent.kind?a=zC.append(a,At):195===c.kind&&c.type&&zC.skipParentheses(c.type)===l.parent&&189===c.parent.kind&&c.parent.extendsType===c&&195===c.parent.checkType.kind&&c.parent.checkType.type&&(l=Id((o=c.parent.checkType).type),a=zC.append(a,ip(l,zd(Ls(ba(o.typeParameter)),o.typeParameter.constraint?Id(o.typeParameter.constraint):At)))):!(c=Hx(o=c))||(s=o.typeArguments.indexOf(s))<c.length&&(!(s=Kc(c[s]))||(c=ip(s,jd(c,qx(o,c))))!==e&&(a=zC.append(a,c))))}return a&&x_(a)}function au(e){var t,r;return e.constraint||(e.target?(r=Kc(e.target),e.constraint=r?ip(r,e.mapper):Kt):(t=nu(e))?(1&(r=Id(t)).flags&&!Do(r)&&(r=195===t.parent.parent.kind?At:nt),e.constraint=r):e.constraint=iu(e)||Kt),e.constraint===Kt?void 0:e.constraint}function ou(e){e=zC.getDeclarationOfKind(e.symbol,163),e=zC.isJSDocTemplateTag(e.parent)?zC.getEffectiveContainerForJSDocTemplateTag(e.parent):e.parent;return e&&ba(e)}function su(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 cu(e,t){return e?"@".concat(ek(e))+(t?":".concat(su(t)):""):""}function lu(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var a=i[n];a.flags&t||(r|=zC.getObjectFlags(a))}return 458752&r}function uu(e,t){var r=su(t),n=e.instantiations.get(r);return n||(n=wa(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?lu(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function _u(e){var t=Aa(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function du(e,t,r,n,i){n||(a=gd(n=fd(t)),i=r?Ld(a,r):a);var a=wa(4,e.symbol);return a.target=e,a.node=t,a.mapper=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a}function pu(e){if(!e.resolvedTypeArguments){if(!mo(e,6))return(null===(t=e.target.localTypeParameters)||void 0===t?void 0:t.map(function(){return $e}))||zC.emptyArray;var t=e.node,t=t?178===t.kind?zC.concatenate(e.target.outerTypeParameters,qx(t,e.target.localTypeParameters)):183===t.kind?[Id(t.elementType)]:zC.map(t.elements,Id):zC.emptyArray;ho()?e.resolvedTypeArguments=e.mapper?Ld(t,e.mapper):t:(e.resolvedTypeArguments=(null===(t=e.target.localTypeParameters)||void 0===t?void 0:t.map(function(){return $e}))||zC.emptyArray,ei(e.node||Z,e.target.symbol?zC.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:zC.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&$a(e.target.symbol)))}return e.resolvedTypeArguments}function fu(e){return zC.length(e.target.typeParameters)}function gu(e,t){var r=Rs(va(t)),n=r.localTypeParameters;if(n){var i=zC.length(e.typeArguments),a=Pl(n),o=zC.isInJSFile(e);if(!(!te&&o)&&(i<a||i>n.length)){i=o&&zC.isExpressionWithTypeArguments(e)&&!zC.isJSDocAugmentsTag(e.parent);if(ei(e,a===n.length?i?zC.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:zC.Diagnostics.Generic_type_0_requires_1_type_argument_s:i?zC.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:zC.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,to(r,void 0,2),a,n.length),!o)return $e}return 178===e.kind&&$u(e,zC.length(e.typeArguments)!==n.length)?du(r,e,void 0):uu(r,zC.concatenate(r.outerTypeParameters,wl(Nu(e),n,a,o)))}return Cu(e,t)?r:$e}function mu(e,t,r,n){var i=Rs(e);if(i===rt&&XC.has(e.escapedName)&&t&&1===t.length)return M_(e,t[0]);var a=mi(e),o=a.typeParameters,s=su(t)+cu(r,n),c=a.instantiations.get(s);return c||a.instantiations.set(s,c=ap(i,jd(o,wl(t,o,Pl(o),zC.isInJSFile(e.valueDeclaration))),r,n)),c}function yu(e){e=null===(e=e.declarations)||void 0===e?void 0:e.find(zC.isTypeAlias);return e&&zC.getContainingFunction(e)}function hu(e){var t=(161===e.kind?e.right:206===e.kind?e.name:e).escapedText;if(t){var r=161===e.kind?hu(e.left):206===e.kind?hu(e.expression):void 0,n=r?"".concat(function e(t){return t.parent?"".concat(e(t.parent),".").concat(t.escapedName):t.escapedName}(r),".").concat(t):t,e=Ge.get(n);return e||(Ge.set(n,e=si(524288,t,1048576)),e.parent=r,e.declaredType=et),e}return We}function vu(e,t,r){e=function(e){switch(e.kind){case 178:return e.typeName;case 228:var t=e.expression;if(zC.isEntityNameExpression(t))return t}}(e);if(!e)return We;t=ra(e,t,r);return t&&t!==We?t:r?We:hu(e)}function bu(e,t){if(t===We)return $e;if(96&(t=function(e){var t=e.valueDeclaration;if(t&&zC.isInJSFile(t)&&!(524288&e.flags)&&!zC.getExpandoInitializer(t,!1)){t=zC.isVariableDeclaration(t)?zC.getDeclaredExpandoInitializer(t):zC.getAssignedExpandoInitializer(t);if(t){t=ba(t);if(t)return rb(t,e)}}}(t)||t).flags)return gu(e,t);if(524288&t.flags)return function(e,t){if(1048576&zC.getCheckFlags(t)){var r=Nu(e),n=cu(t,r),i=Qe.get(n);return i||((i=Pa(1,"error")).aliasSymbol=t,i.aliasTypeArguments=r,Qe.set(n,i)),i}var a=Rs(t);if(r=mi(t).typeParameters){n=zC.length(e.typeArguments),i=Pl(r);if(n<i||n>r.length)return ei(e,i===r.length?zC.Diagnostics.Generic_type_0_requires_1_type_argument_s:zC.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,$a(t),i,r.length),$e;r=fd(e),r=!r||!yu(t)&&yu(r)?void 0:r;return mu(t,Nu(e),r,gd(r))}return Cu(e,t)?a:$e}(e,t);var r=Bs(t);if(r)return Cu(e,t)?Td(r):$e;if(111551&t.flags&&Tu(e)){r=function(e,t){var r=yi(e);{var n,i,a;r.resolvedJSDocType||(n=_s(t),i=n,t.valueDeclaration&&(a=200===e.kind&&e.qualifier,n.symbol&&n.symbol!==t&&a&&(i=bu(e,n.symbol))),r.resolvedJSDocType=i)}return r.resolvedJSDocType}(e,t);return r||(vu(e,788968),_s(t))}return $e}function xu(e,t){if(3&t.flags||t===e)return e;var r="".concat(e.id,">").concat(t.id),n=ze.get(r);if(n)return n;n=Aa(33554432);return n.baseType=e,n.substitute=t,ze.set(r,n),n}function Du(e){return 184===e.kind&&1===e.elements.length}function Su(e,t){for(var r,n=!0;t&&!zC.isStatement(t)&&320!==t.kind;){var i,a,o=t.parent;164===o.kind&&(n=!n),(n||8650752&e.flags)&&189===o.kind&&t===o.trueType?(a=function e(t,r,n){return Du(r)&&Du(n)?e(t,r.elements[0],n.elements[0]):rd(Id(r))===rd(t)?Id(n):void 0}(e,o.checkType,o.extendsType))&&(r=zC.append(r,a)):262144&e.flags&&195===o.kind&&t===o.type&&(Cc(i=Id(o))!==rd(e)||(i=Zd(i))&&(a=Kc(i))&&Nm(a,mf)&&(r=zC.append(r,f_([dt,wt])))),t=o}return r?xu(e,x_(zC.append(r,e))):e}function Tu(e){return!!(8388608&e.flags)&&(178===e.kind||200===e.kind)}function Cu(e,t){if(!e.typeArguments)return 1;ei(e,zC.Diagnostics.Type_0_is_not_generic,t?$a(t):e.typeName?zC.declarationNameToString(e.typeName):UC)}function ku(e){if(zC.isIdentifier(e.typeName)){var t=e.typeArguments;switch(e.typeName.escapedText){case"String":return Cu(e),_t;case"Number":return Cu(e),dt;case"Boolean":return Cu(e),ht;case"Void":return Cu(e),bt;case"Undefined":return Cu(e),at;case"Null":return Cu(e),lt;case"Function":case"function":return Cu(e),Zt;case"array":return t&&t.length||te?void 0:cr;case"promise":return t&&t.length||te?void 0:Lb(Xe);case"Object":if(t&&2===t.length){if(zC.isJSDocIndexSignature(e)){var r=Id(t[0]),n=Id(t[1]),n=r===_t||r===dt?[$l(r,n,!1)]:zC.emptyArray;return Ba(void 0,k,zC.emptyArray,zC.emptyArray,n)}return Xe}return Cu(e),te?void 0:Xe}}}function Eu(e){var t=yi(e);if(!t.resolvedType){if(zC.isConstTypeReference(e)&&zC.isAssertionExpression(e.parent))return t.resolvedSymbol=We,t.resolvedType=mx(e.parent.expression);var r=void 0,n=void 0,i=788968;Tu(e)&&((n=ku(e))||((r=vu(e,i,!0))===We?r=vu(e,900095):vu(e,i),n=bu(e,r))),n=n||bu(e,r=vu(e,i)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function Nu(e){return zC.map(e.typeArguments,Id)}function Au(e){var t=yi(e);return t.resolvedType||(e=gb(e),t.resolvedType=Td(og(e))),t.resolvedType}function Fu(e,t){function r(e){e=e.declarations;if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];switch(n.kind){case 257:case 258:case 260:return n}}}if(!e)return t?Jt:Rt;var n=Rs(e);return 524288&n.flags?zC.length(n.typeParameters)!==t?(ei(r(e),zC.Diagnostics.Global_type_0_must_have_1_type_parameter_s,zC.symbolName(e),t),t?Jt:Rt):n:(ei(r(e),zC.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,zC.symbolName(e)),t?Jt:Rt)}function Pu(e,t){return Ou(e,111551,t?zC.Diagnostics.Cannot_find_global_value_0:void 0)}function wu(e,t){return Ou(e,788968,t?zC.Diagnostics.Cannot_find_global_type_0:void 0)}function Iu(e,t,r){r=Ou(e,788968,r?zC.Diagnostics.Cannot_find_global_type_0:void 0);if(r&&(Rs(r),zC.length(mi(r).typeParameters)!==t))return void ei(r.declarations&&zC.find(r.declarations,zC.isTypeAliasDeclaration),zC.Diagnostics.Global_type_0_must_have_1_type_parameter_s,zC.symbolName(r),t);return r}function Ou(e,t,r){return Di(void 0,e,t,r,e,!1,!1,!1)}function Mu(e,t,r){e=wu(e,r);return e||r?Fu(e,t):void 0}function Lu(){return Pr=Pr||(Mu("ImportMeta",0,!0)||Rt)}function Ru(){var e,t,r;return wr||(e=si(0,"ImportMetaExpression"),t=Lu(),(r=si(4,"meta",8)).parent=e,r.type=t,r=zC.createSymbolTable([r]),e.members=r,wr=Ba(e,r,zC.emptyArray,zC.emptyArray,zC.emptyArray)),wr}function Bu(e){return(Ir=Ir||Mu("ImportCallOptions",0,e))||Rt}function ju(e){return dr=dr||Pu("Symbol",e)}function Ju(){return(fr=fr||Mu("Symbol",0,!1))||Rt}function zu(e){return(mr=mr||Mu("Promise",1,e))||Jt}function Ku(e){return(yr=yr||Mu("PromiseLike",1,e))||Jt}function Uu(e){return hr=hr||Pu("Promise",e)}function Vu(e){return(br=br||Mu("Iterable",1,e))||Jt}function qu(e,t){void 0===t&&(t=0);e=Ou(e,788968,void 0);return e&&Fu(e,t)}function Wu(e){return(Lr=Lr||(Iu("Awaited",1,e)||(e?We:void 0)))===We?void 0:Lr}function Hu(e,t){return e!==Jt?uu(e,t):Rt}function Gu(e){return Hu(gr=gr||Mu("TypedPropertyDescriptor",1,!0)||Jt,[e])}function Qu(e,t){return Hu(t?rr:tr,[e])}function Xu(e){switch(e.kind){case 185:return 2;case 186:return Yu(e);case 197:return e.questionToken?2:e.dotDotDotToken?Yu(e):1;default:return 1}}function Yu(e){return wd(e.type)?4:8}function Zu(e){var t,t=(t=e.parent,zC.isTypeOperatorNode(t)&&145===t.operator);return wd(e)?t?rr:tr:r_(zC.map(e.elements,Xu),t,zC.some(e.elements,function(e){return 197!==e.kind})?void 0:e.elements)}function $u(e,t){return fd(e)||function e(t){var r=t.parent;switch(r.kind){case 191:case 197:case 178:case 187:case 188:case 194:case 189:case 193:case 183:case 184:return e(r);case 259:return!0}return!1}(e)&&(183===e.kind?e_(e.elementType):184===e.kind?zC.some(e.elements,e_):t||zC.some(e.typeArguments,e_))}function e_(e){switch(e.kind){case 178:return Tu(e)||!!(524288&vu(e,788968).flags);case 181:return!0;case 193:return 154!==e.operator&&e_(e.type);case 191:case 185:case 197:case 316:case 314:case 315:case 309:return e_(e.type);case 186:return 183!==e.type.kind||e_(e.type.elementType);case 187:case 188:return zC.some(e.types,e_);case 194:return e_(e.objectType)||e_(e.indexType);case 189:return e_(e.checkType)||e_(e.extendsType)||e_(e.trueType)||e_(e.falseType)}return!1}function t_(e,t,r,n){void 0===r&&(r=!1);n=r_(t||zC.map(e,function(e){return 1}),r,n);return n===Jt?Rt:e.length?n_(n,e):n}function r_(e,t,r){if(1===e.length&&4&e[0])return t?rr:tr;var n=zC.map(e,function(e){return 1&e?"#":2&e?"?":4&e?".":"*"}).join()+(t?"R":"")+(r&&r.length?","+zC.map(r,$C).join(","):""),i=Pe.get(n);return i||Pe.set(n,i=function(e,t,r){var n,i=e.length,a=zC.countWhere(e,function(e){return!!(9&e)}),o=[],s=0;if(i){n=new Array(i);for(var c=0;c<i;c++){var l=n[c]=Ia(),u=e[c];12&(s|=u)||((u=si(4|(2&u?16777216:0),""+c,t?8:0)).tupleLabelDeclaration=null==r?void 0:r[c],u.type=l,o.push(u))}}var _=o.length,d=si(4,"length",t?8:0);if(12&s)d.type=dt;else{for(var p=[],c=a;c<=i;c++)p.push(Ed(c));d.type=f_(p)}o.push(d);d=wa(12);return d.typeParameters=n,d.outerTypeParameters=void 0,d.localTypeParameters=n,d.instantiations=new zC.Map,d.instantiations.set(su(d.typeParameters),d),(d.target=d).resolvedTypeArguments=d.typeParameters,d.thisType=Ia(),d.thisType.isThisType=!0,(d.thisType.constraint=d).declaredProperties=o,d.declaredCallSignatures=zC.emptyArray,d.declaredConstructSignatures=zC.emptyArray,d.declaredIndexInfos=zC.emptyArray,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 n_(e,t){return(8&e.objectFlags?function t(i,a){var o,s;if(!(14&i.combinedFlags))return uu(i,a);if(8&i.combinedFlags){var r=zC.findIndex(a,function(e,t){return!!(8&i.elementFlags[t]&&1179648&e.flags)});if(0<=r)return S_(zC.map(a,function(e,t){return 8&i.elementFlags[t]?e:nt}))?Pm(a[r],function(e){return t(i,zC.replaceElement(a,r,e))}):$e}var c=[];var n=[];var l=[];var u=-1;var _=-1;var d=-1;var e=function(e){var r=a[e],t=i.elementFlags[e];if(8&t)if(58982400&r.flags||Mc(r))m(r,8,null===(o=i.labeledElementDeclarations)||void 0===o?void 0:o[e]);else if(Of(r)){var n=pu(r);if(1e4<=n.length+c.length)return ei(Z,zC.isPartOfTypeNode(Z)?zC.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:zC.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:$e};zC.forEach(n,function(e,t){return m(e,r.target.elementFlags[t],null===(e=r.target.labeledElementDeclarations)||void 0===e?void 0:e[t])})}else m(vf(r)&&bl(r,dt)||$e,4,null===(s=i.labeledElementDeclarations)||void 0===s?void 0:s[e]);else m(r,t,null===(s=i.labeledElementDeclarations)||void 0===s?void 0:s[e])};for(var p=0;p<a.length;p++){var f=e(p);if("object"==typeof f)return f.value}for(var p=0;p<u;p++)2&n[p]&&(n[p]=1);0<=_&&_<d&&(c[_]=f_(zC.sameMap(c.slice(_,d+1),function(e,t){return 8&n[_+t]?Y_(e,dt):e})),c.splice(_+1,d-_),n.splice(_+1,d-_),null!=l&&l.splice(_+1,d-_));var g=r_(n,i.readonly,l);return g===Jt?Rt:n.length?uu(g,c):g;function m(e,t,r){1&t&&(u=n.length),4&t&&_<0&&(_=n.length),6&t&&(d=n.length),c.push(e),n.push(t),l&&r?l.push(r):l=void 0}}:uu)(e,t)}function i_(e,t,r){void 0===r&&(r=0);var n=e.target,r=fu(e)-r;return t>n.fixedLength?function(e){e=Rf(e);return e&&Qu(e)}(e)||t_(zC.emptyArray):t_(pu(e).slice(t,r),n.elementFlags.slice(t,r),!1,n.labeledElementDeclarations&&n.labeledElementDeclarations.slice(t,r))}function a_(e){return f_(zC.append(zC.arrayOf(e.target.fixedLength,function(e){return kd(""+e)}),P_(e.target.readonly?rr:tr)))}function o_(e,t){var r=zC.findIndex(e.elementFlags,function(e){return!(e&t)});return 0<=r?r:e.elementFlags.length}function s_(e,t){return e.elementFlags.length-zC.findLastIndex(e.elementFlags,function(e){return!(e&t)})-1}function c_(e){return e.id}function l_(e,t){return 0<=zC.binarySearch(e,t,c_,zC.compareValues)}function u_(e,t){var r=zC.binarySearch(e,t,c_,zC.compareValues);return r<0&&(e.splice(~r,0,t),1)}function __(e,t,r){for(var n,i,a,o,s=0,c=r;s<c.length;s++){var l=c[s];n=e,i=t,o=a=void 0,t=1048576&(o=(l=l).flags)?__(n,i|(!(1048576&(a=l).flags&&(a.aliasSymbol||a.origin))?0:1048576),l.types):(131072&o||(i|=205258751&o,465829888&o&&(i|=33554432),l===Ze&&(i|=8388608),!ee&&98304&o?65536&zC.getObjectFlags(l)||(i|=4194304):(o=(o=n.length)&&l.id>n[o-1].id?~o:zC.binarySearch(n,l,c_,zC.compareValues))<0&&n.splice(~o,0,l)),i)}return t}function d_(e){var r=zC.filter(e,K_);if(r.length)for(var n=e.length;0<n;)!function(){var t=e[--n];128&t.flags&&zC.some(r,function(e){return Ig(t,e)})&&zC.orderedRemoveItemAt(e,n)}()}function p_(e,t){e=Fa(e);return e.types=t,e}function f_(e,t,r,n,i){if(void 0===t&&(t=1),0===e.length)return xt;if(1===e.length)return e[0];var a,o=[],s=__(o,0,e);if(0!==t){if(3&s)return 1&s?8388608&s?Ze:Xe:65536&s||l_(o,nt)?nt:it;if(re&&32768&s&&(0<=(a=zC.binarySearch(o,ct,c_,zC.compareValues))&&l_(o,at)&&zC.orderedRemoveItemAt(o,a)),(402664320&s||16384&s&&32768&s)&&function(e,t,r){for(var n=e.length;0<n;){var i=e[--n],a=i.flags;(402653312&a&&4&t||256&a&&8&t||2048&a&&64&t||8192&a&&4096&t||r&&32768&a&&16384&t||Cd(i)&&l_(e,i.regularType))&&zC.orderedRemoveItemAt(e,n)}}(o,s,!!(2&t)),128&s&&134217728&s&&d_(o),2===t&&!(o=function(e,t){if(e.length<2)return e;var r=su(e),n=Ke.get(r);if(n)return n;for(var i=t&&zC.some(e,function(e){return!!(524288&e.flags)&&!Mc(e)&&Ip(Lc(e))}),a=e.length,o=a,s=0;0<o;){var c=e[--o];if(i||469499904&c.flags)for(var l=61603840&c.flags?zC.find(Jc(c),function(e){return kf(_s(e))}):void 0,u=l&&Td(_s(l)),_=0,d=e;_<d.length;_++){var p=d[_];if(c!==p){if(1e5===s)if(1e6<s/(a-o)*a)return null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:e.map(function(e){return e.id})}),void ei(Z,zC.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(s++,l&&61603840&p.flags){var f=bo(p,l.escapedName);if(f&&kf(f)&&Td(f)!==u)continue}if(jp(c,p,Kn)&&(!(1&zC.getObjectFlags(fs(c)))||!(1&zC.getObjectFlags(fs(p)))||vp(c,p))){zC.orderedRemoveItemAt(e,o);break}}}}return Ke.set(r,e),e}(o,!!(524288&s))))return $e;if(0===o.length)return 65536&s?4194304&s?lt:ut:32768&s?4194304&s?at:ot:xt}if(!i&&1048576&s){var c=[];!function e(t,r){for(var n=0,i=r;n<i.length;n++){var a,o=i[n];1048576&o.flags&&(a=o.origin,o.aliasSymbol||a&&!(1048576&a.flags)?zC.pushIfUnique(t,o):a&&1048576&a.flags&&e(t,a.types))}}(c,e);for(var l=[],u=0,_=o;u<_.length;u++)!function(t){zC.some(c,function(e){return l_(e.types,t)})||l.push(t)}(_[u]);if(!r&&1===c.length&&0===l.length)return c[0];if(zC.reduceLeft(c,function(e,t){return e+t.types.length},0)+l.length===o.length){for(var d=0,p=c;d<p.length;d++)u_(l,p[d]);i=p_(1048576,l)}}return m_(o,(36323363&s?0:32768)|(2097152&s?16777216:0),r,n,i)}function g_(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function m_(e,t,r,n,i){if(0===e.length)return xt;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|".concat(su(i.types)):2097152&i.flags?"&".concat(su(i.types)):"#".concat(i.type.id,"|").concat(su(e)):su(e))+cu(r,n),o=we.get(a);return o||((o=Aa(1048576)).objectFlags=t|lu(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),we.set(a,o)),o}function y_(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=Td(c),c=void 0,t=2097152&(c=a.flags)?y_(n,i,a.types):(Mp(a)?16777216&i||(i|=16777216,n.set(a.id.toString(),a)):(3&c?a===Ze&&(i|=8388608):!ee&&98304&c||(re&&a===ct&&(i|=262144,a=at),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 h_(e,t){return zC.every(e,function(e){return!!(1048576&e.flags)&&zC.some(e.types,function(e){return!!(e.flags&t)})})}function v_(e,t){for(var r=0;r<e.length;r++)e[r]=Am(e[r],function(e){return!(e.flags&t)})}function b_(e){var t,r=zC.findIndex(e,function(e){return!!(32768&zC.getObjectFlags(e))});if(!(r<0)){for(var n=r+1;n<e.length;){var i=e[n];32768&zC.getObjectFlags(i)?((t=t||[e[r]]).push(i),zC.orderedRemoveItemAt(e,n)):n++}if(t){for(var a=[],o=[],s=0,c=t;s<c.length;s++)for(var l=0,u=c[s].types;l<u.length;l++)u_(a,i=u[l])&&(!function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!l_(i.types,t)){var a=128&t.flags?_t:256&t.flags?dt:2048&t.flags?pt:8192&t.flags?vt:void 0;if(!a||!l_(i.types,a))return}}return 1}(t,i)||u_(o,i));return e[r]=m_(o,32768),1}}}function x_(e,t,r){var n=new zC.Map,i=y_(n,0,e),a=zC.arrayFrom(n.values());if(131072&i)return zC.contains(a,Dt)?Dt:xt;if(ee&&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 xt;if(134217728&i&&128&i&&function(e){for(var t=e.length,r=zC.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(yp(a[i],n)){zC.orderedRemoveItemAt(e,t);break}if(K_(n))return 1}}}(a))return xt;if(1&i)return 8388608&i?Ze:Xe;if(!ee&&98304&i)return 32768&i?at:lt;if((4&i&&402653312&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&&402653312&t||8&n.flags&&256&t||64&n.flags&&2048&t||4096&n.flags&&8192&t)&&zC.orderedRemoveItemAt(e,r)}}(a,i),16777216&i&&524288&i&&zC.orderedRemoveItemAt(a,zC.findIndex(a,Mp)),262144&i&&(a[a.indexOf(at)]=ct),0===a.length)return nt;if(1===a.length)return a[0];e=su(a)+cu(t,r);if(!(n=Ie.get(e))){if(1048576&i)if(b_(a))n=x_(a,t,r);else if(h_(a,32768)){i=re&&zC.some(a,function(e){return l_(e.types,ct)})?ct:at;v_(a,32768),n=f_([x_(a),i],1,t,r)}else if(h_(a,65536))v_(a,65536),n=f_([x_(a),lt],1,t,r);else{if(!S_(a))return $e;var o=function(e){for(var t=D_(e),r=[],n=0;n<t;n++){for(var i,a,o=e.slice(),s=n,c=e.length-1;0<=c;c--)1048576&e[c].flags&&(i=e[c].types,a=i.length,o[c]=i[s%a],s=Math.floor(s/a));var l=x_(o);131072&l.flags||r.push(l)}return r}(a),n=f_(o,1,t,r,zC.some(o,function(e){return!!(2097152&e.flags)})?p_(2097152,a):void 0)}else o=a,a=t,t=r,(r=Aa(2097152)).objectFlags=lu(o,98304),r.types=o,r.aliasSymbol=a,r.aliasTypeArguments=t,n=r;Ie.set(e,n)}return n}function D_(e){return zC.reduceLeft(e,function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e},1)}function S_(e){var t=D_(e);return!(1e5<=t)||(null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:e.map(function(e){return e.id}),size:t}),void ei(Z,zC.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent))}function T_(e,t){var r=Aa(4194304);return r.type=e,r.stringsOnly=t,r}function C_(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=T_(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=T_(e,!1))}function k_(e){var r=Cc(e);return function e(t){return!!(68157439&t.flags)||(16777216&t.flags?t.root.isDistributive&&t.checkType===r:137363456&t.flags?zC.every(t.types,e):8388608&t.flags?e(t.objectType)&&e(t.indexType):33554432&t.flags?e(t.substitute):!!(268435456&t.flags)&&e(t.type))}(Ec(e)||r)}function E_(e){return zC.isPrivateIdentifier(e)?xt:zC.isIdentifier(e)?kd(zC.unescapeLeadingUnderscores(e.escapedText)):Td((zC.isComputedPropertyName(e)?Yy:Ix)(e))}function N_(e,t,r){if(r||!(24&zC.getDeclarationModifierFlagsFromSymbol(e))){var n=mi(rc(e)).nameType;if(n||(r=zC.getNameOfDeclaration(e.valueDeclaration),n="default"===e.escapedName?kd("default"):r&&E_(r)||(zC.isKnownSymbol(e)?void 0:kd(zC.symbolName(e)))),n&&n.flags&t)return n}return xt}function A_(e,t,r){var n,n=r&&(7&zC.getObjectFlags(e)||e.aliasSymbol)?(n=e,(i=Fa(4194304)).type=n,i):void 0,i=zC.map(Jc(e),function(e){return N_(e,t)}),e=zC.map(hl(e),function(e){return e!==Xr&&function t(e,r){return!!(e.flags&r||2097152&e.flags&&zC.some(e.types,function(e){return t(e,r)}))}(e.keyType,t)?e.keyType===_t&&8&t?Et:e.keyType:xt});return f_(zC.concatenate(i,e),1,void 0,void 0,n)}function F_(e){return zC.some(e.types,function(e){e=262143&(e=e).flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=ip(e,Lt));return ol(e)!==e})}function P_(e,t,r){return void 0===t&&(t=N),1048576&(e=ol(e)).flags?F_(e)?C_(e,t):x_(zC.map(e.types,function(e){return P_(e,t,r)})):2097152&e.flags?f_(zC.map(e.types,function(e){return P_(e,t,r)})):58982400&e.flags||Mf(e)||Mc(e)&&!k_(e)?C_(e,t):32&zC.getObjectFlags(e)?function(t,e,r){var n=Cc(t),i=kc(t),a=Ec(t.target||t);if(!a&&!r)return i;var o=[];if(Fc(t)){if(q_(i))return C_(t,e);Sc(tl(Pc(t)),8576,e,s)}else km(xc(i),s);return q_(i)&&km(i,s),1048576&(r=r?Am(f_(o),function(e){return!(5&e.flags)}):f_(o)).flags&&1048576&i.flags&&su(r.types)===su(i.types)?i:r;function s(e){e=a?ip(a,Hd(t.mapper,n,e)):e;o.push(e===_t?Et:e)}}(e,t,r):e===Ze?Ze:2&e.flags?xt:131073&e.flags?At:A_(e,(r?128:402653316)|(t?0:12584),t===N&&!r)}function w_(e){if(N)return e;var t=(Or=Or||Iu("Extract",2,!0)||We)===We?void 0:Or;return t?mu(t,[e,_t]):_t}function I_(t,r){var n=zC.findIndex(r,function(e){return!!(1179648&e.flags)});if(0<=n)return S_(r)?Pm(r[n],function(e){return I_(t,zC.replaceElement(r,n,e))}):$e;if(zC.contains(r,Ze))return Ze;var s=[],c=[],l=t[0];if(!function e(t,r){var n=zC.isArray(t);for(var i=0;i<r.length;i++){var a=r[i],o=n?t[i+1]:t;if(101248&a.flags){if(l+=O_(a)||"",l+=o,!n)return!0}else if(134217728&a.flags){if(l+=a.texts[0],!e(a.texts,a.types))return!1;if(l+=o,!n)return!0}else if(q_(a)||z_(a))s.push(a),c.push(l),l=o;else if(2097152&a.flags){var a=e(t[i+1],a.types);if(!a)return!1}else if(n)return!1}return!0}(t,r))return _t;if(0===s.length)return kd(l);if(c.push(l),zC.every(c,function(e){return""===e})&&zC.every(s,function(e){return!!(4&e.flags)}))return _t;var e,i,a="".concat(su(s),"|").concat(zC.map(c,function(e){return e.length}).join(","),"|").concat(c.join("")),o=je.get(a);return o||je.set(a,(e=c,i=s,(a=Aa(134217728)).texts=e,a.types=i,o=a)),o}function O_(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?zC.pseudoBigIntToString(e.value):98816&e.flags?e.intrinsicName:void 0}function M_(t,e){return 1179648&e.flags?Pm(e,function(e){return M_(t,e)}):q_(e)?function(e,t){var r="".concat(ek(e),",").concat(t.id),n=Je.get(r);n||Je.set(r,n=function(e,t){var r=Aa(268435456);return r.symbol=e,r.type=t,r}(e,t));return n}(t,e):128&e.flags?kd(function(e,t){switch(XC.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 L_(e){if(te)return!1;if(4096&zC.getObjectFlags(e))return!0;if(1048576&e.flags)return zC.every(e.types,L_);if(2097152&e.flags)return zC.some(e.types,L_);if(465829888&e.flags){var t=Xc(e);return t!==e&&L_(t)}return!1}function R_(e,t){return Hs(e)?Zs(e):t&&zC.isPropertyName(t)?zC.getPropertyNameForPropertyNameNode(t):void 0}function B_(e,t){if(8208&t.flags){var r=zC.findAncestor(e.parent,function(e){return!zC.isAccessExpression(e)})||e.parent;return zC.isCallLikeExpression(r)?zC.isCallOrNewExpression(r)&&zC.isIdentifier(e)&&om(r,e):zC.every(t.declarations,function(e){return!zC.isFunctionLike(e)||!!(268435456&zC.getCombinedNodeFlags(e))})}return 1}function j_(e,t,r,n,i,a){var o=i&&207===i.kind?i:void 0,s=i&&zC.isPrivateIdentifier(i)?void 0:R_(r,i);if(void 0!==s){if(256&a)return Ny(t,s)||Xe;var c=_l(t,s);if(c){if(64&a&&i&&c.declarations&&ai(c)&&B_(i,c)&&oi(null!==(l=null==o?void 0:o.argumentExpression)&&void 0!==l?l:zC.isIndexedAccessTypeNode(i)?i.indexType:i,c.declarations,s),o){if(iv(c,o,av(o.expression,t.symbol)),Yb(o,c,zC.getAssignmentTargetKind(o)))return void ei(o.argumentExpression,zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,$a(c));if(8&a&&(yi(i).resolvedSymbol=c),Vh(o,c))return Ye}var l=_s(c);return o&&1!==zC.getAssignmentTargetKind(o)?Xm(o,l):l}if(Nm(t,Of)&&zC.isNumericLiteralName(s)&&0<=+s)return!i||!Nm(t,function(e){return!e.target.hasRestElement})||16&a||(u=J_(i),Of(t)?ei(u,zC.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,to(t),fu(t),zC.unescapeLeadingUnderscores(s)):ei(u,zC.Diagnostics.Property_0_does_not_exist_on_type_1,zC.unescapeLeadingUnderscores(s),to(t))),d(vl(t,dt)),Pm(t,function(e){e=Rf(e)||at;return 1&a?f_([e,at]):e})}if(!(98304&r.flags)&&ix(r,402665900)){if(131073&t.flags)return t;var u,_,l=Dl(t,r)||vl(t,_t);if(l)return 2&a&&l.keyType!==dt?void(o&&ei(o,zC.Diagnostics.Type_0_cannot_be_used_to_index_type_1,to(r),to(e))):(i&&l.keyType===_t&&!ix(r,12)?ei(u=J_(i),zC.Diagnostics.Type_0_cannot_be_used_as_an_index_type,to(r)):d(l),1&a?f_([l.type,at]):l.type);if(131072&r.flags)return xt;if(L_(t))return Xe;if(o&&!ox(t)){if(jg(t)){if(te&&384&r.flags)return Rn.add(zC.createDiagnosticForNode(o,zC.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,to(t))),at;if(12&r.flags){l=zC.map(t.properties,_s);return f_(zC.append(l,at))}}return void(t.symbol===Te&&void 0!==s&&Te.exports.has(s)&&418&Te.exports.get(s).flags?ei(o,zC.Diagnostics.Property_0_does_not_exist_on_type_1,zC.unescapeLeadingUnderscores(s),to(t)):!te||$.suppressImplicitAnyIndexErrors||128&a||(void 0!==s&&Xh(s,t)?(_=to(t),ei(o,zC.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,_,_+"["+zC.getTextOfNode(o.argumentExpression)+"]")):bl(t,dt)?ei(o.argumentExpression,zC.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):(_=void 0)!==s&&(_=ev(s,t))?void 0!==_&&ei(o.argumentExpression,zC.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,to(t),_):void 0!==(s=function(t,e,r){var n=zC.isAssignmentTarget(e)?"set":"get";if(!function(e){if(e=Bc(t,e)){e=xv(_s(e));return e&&1<=Nb(e)&&hp(r,Tb(e,0))}}(n))return;e=zC.tryGetPropertyAccessOrIdentifierToString(e.expression);void 0===e?e=n:e+="."+n;return e}(t,o,r))?ei(o,zC.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,to(t),s):(_=void 0,1024&r.flags?_=zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Property_0_does_not_exist_on_type_1,"["+to(r)+"]",to(t)):8192&r.flags?(s=ta(r.symbol,o),_=zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Property_0_does_not_exist_on_type_1,"["+s+"]",to(t))):128&r.flags||256&r.flags?_=zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,to(t)):12&r.flags&&(_=zC.chainDiagnosticMessages(void 0,zC.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,to(r),to(t))),_=zC.chainDiagnosticMessages(_,zC.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,to(n),to(t)),Rn.add(zC.createDiagnosticForNodeFromMessageChain(o,_)))))}}return L_(t)?Xe:(i&&(u=J_(i),384&r.flags?ei(u,zC.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,to(t)):12&r.flags?ei(u,zC.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,to(t),to(r)):ei(u,zC.Diagnostics.Type_0_cannot_be_used_as_an_index_type,to(r))),xo(r)?r:void 0);function d(e){e&&e.isReadonly&&o&&(zC.isAssignmentTarget(o)||zC.isDeleteTarget(o))&&ei(o,zC.Diagnostics.Index_signature_in_type_0_only_permits_reading,to(t))}}function J_(e){return 207===e.kind?e.argumentExpression:194===e.kind?e.indexType:162===e.kind?e.expression:e}function z_(e){return!!(77&e.flags)}function K_(e){return!!(134217728&e.flags)&&zC.every(e.types,z_)}function U_(e){return!!W_(e)}function V_(e){return 4194304&W_(e)}function q_(e){return!!(8388608&W_(e))}function W_(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|zC.reduceLeft(e.types,function(e,t){return e|W_(t)},0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|W_(e.substitute)|W_(e.baseType)),12582912&e.objectFlags):(58982400&e.flags||Mc(e)||Mf(e)?4194304:0)|(465829888&e.flags&&!K_(e)?8388608:0)}function H_(e,t){return 8388608&e.flags?function(e,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(e[r])return e[r]===Ut?e:e[r];e[r]=Ut;var n=H_(e.objectType,t),i=H_(e.indexType,t),a=function(t,e,r){if(1048576&e.flags){e=zC.map(e.types,function(e){return H_(Y_(t,e),r)});return(r?x_:f_)(e)}}(n,i,t);if(a)return e[r]=a;if(!(465829888&i.flags)){a=G_(n,i,t);if(a)return e[r]=a}if(Mf(n)&&296&i.flags){var o=Bf(n,8&i.flags?0:n.target.fixedLength,0,t);if(o)return e[r]=o}if(Mc(n)){o=Ec(n);if(!o||hp(o,Cc(n)))return e[r]=Pm(X_(n,e.indexType),function(e){return H_(e,t)})}return e[r]=e}(e,t):16777216&e.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=cd(e),a=ld(e);if(131072&a.flags&&rd(i)===rd(r)){if(1&r.flags||hp(sp(r),sp(n)))return H_(i,t);if(Q_(r,n))return xt}else if(131072&i.flags&&rd(a)===rd(r)){if(!(1&r.flags)&&hp(sp(r),sp(n)))return xt;if(1&r.flags||Q_(r,n))return H_(a,t)}return e}(e,t):e}function G_(e,t,r){if(3145728&e.flags){var n=zC.map(e.types,function(e){return H_(Y_(e,t),r)});return(2097152&e.flags||r?x_:f_)(n)}}function Q_(e,t){return 131072&f_([fc(e,t),xt]).flags}function X_(e,t){t=jd([Cc(e)],[t]),t=qd(e.mapper,t);return ip(Nc(e),t)}function Y_(e,t,r,n,i,a){return void 0===r&&(r=0),$_(e,t,r,n,i,a)||(n?$e:nt)}function Z_(e,t){return Nm(e,function(e){if(384&e.flags){e=Zs(e);if(zC.isNumericLiteralName(e)){e=+e;return 0<=e&&e<t}}return!1})}function $_(e,t,r,n,i,a){if(void 0===r&&(r=0),e===Ze||t===Ze)return Ze;if(!Lp(e)||98304&t.flags||!ix(t,12)||(t=_t),$.noUncheckedIndexedAccess&&32&r&&(r|=1),q_(t)||(n&&194!==n.kind?Mf(e)&&!Z_(t,e.target.fixedLength):V_(e)&&(!Of(e)||!Z_(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&r,s=e.id+","+t.id+","+o+cu(i,a),c=Be.get(s);return c||Be.set(s,(l=e,u=t,_=o,d=i,s=a,(o=Aa(8388608)).objectType=l,o.indexType=u,o.accessFlags=_,o.aliasSymbol=d,o.aliasTypeArguments=s,c=o)),c}var l,u,_,d,p=rl(e);if(!(1048576&t.flags)||16&t.flags)return j_(e,p,t,t,n,72|r);for(var f=[],g=!1,m=0,y=t.types;m<y.length;m++){var h=j_(e,p,y[m],t,n,r|(g?128:0));if(h)f.push(h);else{if(!n)return;g=!0}}return g?void 0:4&r?x_(f,i,a):f_(f,1,i,a)}function ed(e){var t,r,n,i=yi(e);return i.resolvedType||(n=Y_(t=Id(e.objectType),r=Id(e.indexType),0,e,n=fd(e),gd(n)),i.resolvedType=8388608&n.flags&&n.objectType===t&&n.indexType===r?Su(n,e):n),i.resolvedType}function td(e){var t,r=yi(e);return r.resolvedType||((t=wa(32,e.symbol)).declaration=e,t.aliasSymbol=fd(e),t.aliasTypeArguments=gd(t.aliasSymbol),kc(r.resolvedType=t)),r.resolvedType}function rd(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Y_(rd(e.objectType),rd(e.indexType)):e}function nd(e){var t=Kc(e);return t&&(V_(t)||q_(t))?Gd(e):e}function id(e){return!e.isDistributive&&ad(e.node.checkType)&&ad(e.node.extendsType)}function ad(e){return zC.isTupleTypeNode(e)&&1===zC.length(e.elements)&&!zC.isOptionalTypeNode(e.elements[0])&&!zC.isRestTypeNode(e.elements[0])&&!(zC.isNamedTupleMember(e.elements[0])&&(e.elements[0].questionToken||e.elements[0].dotDotDotToken))}function od(e,t){return id(e)&&Of(t)?pu(t)[0]:t}function sd(d,p,f,g){for(var m,y,h=0;;){var e=function(){if(1e3===h)return ei(Z,zC.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),m=$e,"break";var e=id(d),t=ip(od(d,rd(d.checkType)),p),r=U_(t),n=ip(od(d,d.extendsType),p);if(t===Ze||n===Ze)return{value:Ze};var i=void 0;if(d.inferTypeParameters){var a=zC.sameMap(d.inferTypeParameters,nd),o=a!==d.inferTypeParameters?jd(d.inferTypeParameters,a):void 0,s=dg(a,void 0,0);if(o)for(var c=qd(p,o),l=0,u=a;l<u.length;l++){var _=u[l];-1===d.inferTypeParameters.indexOf(_)&&(_.mapper=c)}r&&zC.some(d.inferTypeParameters,function(e){return e===n})||Lg(s.inferences,t,ip(n,o),1536);s=qd(o,s.mapper),i=p?qd(s,p):s}s=i?ip(od(d,d.extendsType),i):n;if(!r&&!U_(s)){if(!(3&s.flags)&&(1&t.flags&&!e||!hp(op(t),op(s)))){1&t.flags&&!e&&(y=y||[]).push(ip(Id(d.node.trueType),i||p));r=Id(d.node.falseType);if(16777216&r.flags){e=r.root;if(e.node.parent===d.node&&(!e.isDistributive||e.checkType===d.checkType))return d=e,"continue";if(v(r,p))return"continue"}return m=ip(r,p),"break"}if(3&s.flags||hp(sp(t),sp(s))){t=Id(d.node.trueType),s=i||p;return v(t,s)?"continue":(m=ip(t,s),"break")}}return(m=Aa(16777216)).root=d,m.checkType=ip(d.checkType,p),m.extendsType=ip(d.extendsType,p),m.mapper=p,m.combinedMapper=i,m.aliasSymbol=f||d.aliasSymbol,m.aliasTypeArguments=f?g:Ld(d.aliasTypeArguments,p),"break"}();if("object"==typeof e)return e.value;if("break"===e)break}return y?f_(zC.append(y,m)):m;function v(e,t){if(16777216&e.flags&&t){var r=e.root;if(r.outerTypeParameters){var n=qd(e.mapper,t),e=zC.map(r.outerTypeParameters,function(e){return Jd(e,n)}),t=jd(r.outerTypeParameters,e),e=r.isDistributive?Jd(r.checkType,t):void 0;if(!(e&&e!==r.checkType&&1179648&e.flags))return p=t,g=f=void 0,(d=r).aliasSymbol&&h++,1}}}}function cd(e){return e.resolvedTrueType||(e.resolvedTrueType=ip(Id(e.root.node.trueType),e.mapper))}function ld(e){return e.resolvedFalseType||(e.resolvedFalseType=ip(Id(e.root.node.falseType),e.mapper))}function ud(e){var t;return e.locals&&e.locals.forEach(function(e){262144&e.flags&&(t=zC.append(t,Rs(e)))}),t}function _d(e){var t=yi(e);if(!t.resolvedType){if(e.isTypeOf&&e.typeArguments)return ei(e,zC.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=We,t.resolvedType=$e;if(!zC.isLiteralImportTypeNode(e))return ei(e.argument,zC.Diagnostics.String_literal_expected),t.resolvedSymbol=We,t.resolvedType=$e;var r=e.isTypeOf?111551:8388608&e.flags?900095:788968,n=ia(e,e.argument.literal);if(!n)return t.resolvedSymbol=We,t.resolvedType=$e;n=ca(n,!1);if(zC.nodeIsMissing(e.qualifier))n.flags&r?t.resolvedType=dd(e,t,n,r):(ei(e,111551==r?zC.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:zC.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=We,t.resolvedType=$e);else{for(var i,a=function e(t){return zC.isIdentifier(t)?[t]:zC.append(e(t.left),t.right)}(e.qualifier),o=n;i=a.shift();){var s=a.length?1920:r,c=va(Hi(o)),s=e.isTypeOf?_l(_s(c),i.escapedText):vi(ga(c),i.escapedText,s);if(!s)return ei(i,zC.Diagnostics.Namespace_0_has_no_exported_member_1,ta(o),zC.declarationNameToString(i)),t.resolvedType=$e;yi(i).resolvedSymbol=s,o=yi(i.parent).resolvedSymbol=s}t.resolvedType=dd(e,t,o,r)}}return t.resolvedType}function dd(e,t,r,n){var i=Hi(r);return t.resolvedSymbol=i,111551===n?_s(r):bu(e,i)}function pd(e){var t,r,n=yi(e);return n.resolvedType||(t=fd(e),0!==tc(e.symbol).size||t?((r=wa(16,e.symbol)).aliasSymbol=t,r.aliasTypeArguments=gd(t),zC.isJSDocTypeLiteral(e)&&e.isArrayType&&(r=Qu(r)),n.resolvedType=r):n.resolvedType=jt),n.resolvedType}function fd(e){for(var t=e.parent;zC.isParenthesizedTypeNode(t)||zC.isJSDocTypeExpression(t)||zC.isTypeOperatorNode(t)&&145===t.operator;)t=t.parent;return zC.isTypeAlias(t)?ba(t):void 0}function gd(e){return e?vs(e):void 0}function md(e){return 524288&e.flags&&!Mc(e)}function yd(e){return Op(e)||!!(474058748&e.flags)}function hd(e,s){if(!(1048576&e.flags))return e;if(zC.every(e.types,yd))return zC.find(e.types,Op)||Rt;var t=zC.find(e.types,function(e){return!yd(e)});return!t||zC.find(e.types,function(e){return e!==t&&!yd(e)})?e:function(e){for(var t=zC.createSymbolTable(),r=0,n=Jc(e);r<n.length;r++){var i,a,o=n[r];24&zC.getDeclarationModifierFlagsFromSymbol(o)||bd(o)&&(i=65536&o.flags&&!(32768&o.flags),(a=si(16777220,o.escapedName,Dc(o)|(s?8:0))).type=i?at:Oo(_s(o),!0),a.declarations=o.declarations,a.nameType=mi(o).nameType,a.syntheticOrigin=o,t.set(o.escapedName,a))}e=Ba(e.symbol,t,zC.emptyArray,zC.emptyArray,hl(e));return e.objectFlags|=131200,e}(t)}function vd(t,r,n,i,a){if(1&t.flags||1&r.flags)return Xe;if(2&t.flags||2&r.flags)return nt;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=hd(t,a)).flags)return S_([t,r])?Pm(t,function(e){return vd(e,r,n,i,a)}):$e;if(1048576&(r=hd(r,a)).flags)return S_([t,r])?Pm(r,function(e){return vd(t,e,n,i,a)}):$e;if(473960444&r.flags)return t;if(V_(t)||V_(r)){if(Op(t))return r;if(2097152&t.flags){var e=t.types,o=e[e.length-1];if(md(o)&&md(r))return x_(zC.concatenate(e.slice(0,e.length-1),[vd(o,r,n,i,a)]))}return x_([t,r])}for(var s=zC.createSymbolTable(),c=new zC.Set,o=t===Rt?hl(r):pc([t,r]),l=0,u=Jc(r);l<u.length;l++){var _=u[l];24&zC.getDeclarationModifierFlagsFromSymbol(_)?c.add(_.escapedName):bd(_)&&s.set(_.escapedName,xd(_,a))}for(var d=0,p=Jc(t);d<p.length;d++){var f,g,m,y=p[d];!c.has(y.escapedName)&&bd(y)&&(s.has(y.escapedName)?(f=_s(_=s.get(y.escapedName)),16777216&_.flags&&(g=zC.concatenate(y.declarations,_.declarations),(m=si(4|16777216&y.flags,y.escapedName)).type=f_([_s(y),$f(f)],2),m.leftSpread=y,m.rightSpread=_,m.declarations=g,m.nameType=mi(y).nameType,s.set(y.escapedName,m))):s.set(y.escapedName,xd(y,a)))}o=Ba(n,s,zC.emptyArray,zC.emptyArray,zC.sameMap(o,function(e){return t=a,(e=e).isReadonly!==t?$l(e.keyType,e.type,t,e.declaration):e;var t}));return o.objectFlags|=2228352|i,o}function bd(e){var t;return!(zC.some(e.declarations,zC.isPrivateIdentifierClassElementDeclaration)||106496&e.flags&&null!==(t=e.declarations)&&void 0!==t&&t.some(function(e){return zC.isClassLike(e.parent)}))}function xd(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===Xb(e))return e;t=si(4|16777216&e.flags,e.escapedName,Dc(e)|(t?8:0));return t.type=r?at:_s(e),t.declarations=e.declarations,t.nameType=mi(e).nameType,t.syntheticOrigin=e,t}function Dd(e,t,r,n){e=Aa(e);return e.symbol=r,e.value=t,e.regularType=n||e,e}function Sd(e){var t;return 2944&e.flags?(e.freshType||((t=Dd(e.flags,e.value,e.symbol,e)).freshType=t,e.freshType=t),e.freshType):e}function Td(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=Pm(e,Td)):e}function Cd(e){return!!(2944&e.flags)&&e.freshType===e}function kd(e){return Oe.get(e)||(Oe.set(e,e=Dd(128,e)),e)}function Ed(e){return Me.get(e)||(Me.set(e,e=Dd(256,e)),e)}function Nd(e){var t=zC.pseudoBigIntToString(e);return Le.get(t)||(Le.set(t,e=Dd(2048,e)),e)}function Ad(e){if(zC.isValidESSymbolDeclaration(e)){var t=zC.isCommonJsExportPropertyAssignment(e)?ba(e.left):ba(e);if(t){e=mi(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=(e=t,(t=Aa(8192)).symbol=e,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(ek(t.symbol)),t))}}return vt}function Fd(e){var t,r,n=yi(e);return n.resolvedType||(n.resolvedType=(t=e,r=zC.getThisContainer(t,!1),!(e=r&&r.parent)||!zC.isClassLike(e)&&258!==e.kind||zC.isStatic(r)||zC.isConstructorDeclaration(r)&&!zC.isNodeDescendantOf(t,r.body)?e&&zC.isObjectLiteralExpression(e)&&zC.isBinaryExpression(e.parent)&&6===zC.getAssignmentDeclarationKind(e.parent)||(e=8388608&t.flags?zC.getHostSignatureFromJSDoc(t):void 0)&&zC.isFunctionExpression(e)&&zC.isBinaryExpression(e.parent)&&3===zC.getAssignmentDeclarationKind(e.parent)?As(ba(e.parent.left).parent).thisType:tb(r)&&zC.isNodeDescendantOf(t,r.body)?As(ba(r)).thisType:(ei(t,zC.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),$e):As(ba(e)).thisType)),n.resolvedType}function Pd(e){return Id(wd(e.type)||e.type)}function wd(e){switch(e.kind){case 191:return wd(e.type);case 184:if(1===e.elements.length&&(186===(e=e.elements[0]).kind||197===e.kind&&e.dotDotDotToken))return wd(e.type);break;case 183:return e.elementType}}function Id(e){return Su(Od(e),e)}function Od(e){switch(e.kind){case 130:case 312:case 313:return Xe;case 155:return nt;case 150:return _t;case 147:return dt;case 158:return pt;case 133:return ht;case 151:return vt;case 114:return bt;case 153:return at;case 104:return lt;case 143:return xt;case 148:return 262144&e.flags&&!te?Xe:kt;case 138:return rt;case 192:case 108:return Fd(e);case 196:return function(e){if(104===e.literal.kind)return lt;var t=yi(e);return t.resolvedType||(t.resolvedType=Td(Ix(e.literal))),t.resolvedType}(e);case 178:return Eu(e);case 177:return e.assertsModifier?bt:ht;case 228:return Eu(e);case 181:return Au(e);case 183:case 184:return(f=yi(_=e)).resolvedType||((d=Zu(_))===Jt?f.resolvedType=Rt:184===_.kind&&zC.some(_.elements,function(e){return!!(8&Xu(e))})||!$u(_)?(p=183===_.kind?[Id(_.elementType)]:zC.map(_.elements,Id),f.resolvedType=n_(d,p)):f.resolvedType=184===_.kind&&0===_.elements.length?d:du(d,_,void 0)),f.resolvedType;case 185:return Oo(Id(e.type),!0);case 187:return(u=yi(f=e)).resolvedType||(l=fd(f),u.resolvedType=f_(zC.map(f.types,Id),1,l,gd(l))),u.resolvedType;case 188:return(c=yi(l=e)).resolvedType||(u=fd(l),c.resolvedType=x_(zC.map(l.types,Id),u,gd(u))),c.resolvedType;case 314:return s=Id((s=e).type),ee?Vf(s,65536):s;case 316:return Oo(Id(e.type));case 197:return(o=yi(a=e)).resolvedType||(o.resolvedType=a.dotDotDotToken?Pd(a):Oo(Id(a.type),!0,!!a.questionToken));case 191:case 315:case 309:return Id(e.type);case 186:return Pd(e);case 318:return function(e){var t=Id(e.type),r=e.parent,n=e.parent.parent;if(zC.isJSDocTypeExpression(e.parent)&&zC.isJSDocParameterTag(n)){var i=zC.getHostSignatureFromJSDoc(n),e=zC.isJSDocCallbackTag(n.parent.parent);if(i||e){i=e?zC.lastOrUndefined(n.parent.parent.typeExpression.parameters):zC.lastOrUndefined(i.parameters),n=zC.getParameterSymbolFromJSDoc(n);if(!i||n&&i.symbol===n&&zC.isRestParameter(i))return Qu(t)}}if(zC.isParameter(r)&&zC.isJSDocFunctionType(r.parent))return Qu(t);return Oo(t)}(e);case 179:case 180:case 182:case 322:case 317:case 323:return pd(e);case 193:return function(e){var t=yi(e);if(!t.resolvedType)switch(e.operator){case 140:t.resolvedType=P_(Id(e.type));break;case 154:t.resolvedType=151===e.type.kind?Ad(zC.walkUpParenthesizedTypes(e.parent)):$e;break;case 145:t.resolvedType=Id(e.type);break;default:throw zC.Debug.assertNever(e.operator)}return t.resolvedType}(e);case 194:return ed(e);case 195:return td(e);case 189:return(i=yi(n=e)).resolvedType||(c=Id(n.checkType),o=gd(s=fd(n)),a=ys(n,!0),a=o?a:zC.filter(a,function(e){return Yd(e,n)}),o={node:n,checkType:c,extendsType:Id(n.extendsType),isDistributive:!!(262144&c.flags),inferTypeParameters:ud(n),outerTypeParameters:a,instantiations:void 0,aliasSymbol:s,aliasTypeArguments:o},i.resolvedType=sd(o,void 0),a&&(o.instantiations=new zC.Map,o.instantiations.set(su(a),i.resolvedType))),i.resolvedType;case 190:return(r=yi(i=e)).resolvedType||(r.resolvedType=Ls(ba(i.typeParameter))),r.resolvedType;case 198:return(t=yi(r=e)).resolvedType||(t.resolvedType=I_(__spreadArray([r.head.text],zC.map(r.templateSpans,function(e){return e.literal.text}),!0),zC.map(r.templateSpans,function(e){return Id(e.type)}))),t.resolvedType;case 200:return _d(e);case 79:case 161:case 206:t=ST(e);return t?Rs(t):$e;default:return $e}var t,r,n,i,a,o,s,c,l,u,_,d,p,f}function Md(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 Ld(e,t){return Md(e,t,ip)}function Rd(e,t){return Md(e,t,Qd)}function Bd(e,t){return Md(e,t,cp)}function jd(e,t){return 1===e.length?zd(e[0],t?t[0]:Xe):{kind:1,sources:e,targets:t}}function Jd(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]:Xe;return e;case 2:return t.func(e);case 3:case 4:var a=Jd(e,t.mapper1);return(a!==e&&3===t.kind?ip:Jd)(a,t.mapper2)}}function zd(e,t){return{kind:0,source:e,target:t}}function Kd(e){return{kind:2,func:e}}function Ud(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Vd(e){return jd(e,void 0)}function qd(e,t){return e?Ud(3,e,t):t}function Wd(e,t,r){return r?Ud(4,zd(e,t),r):zd(e,t)}function Hd(e,t,r){return e?Ud(4,e,zd(t,r)):zd(t,r)}function Gd(e){var t=Ia(e.symbol);return t.target=e,t}function Qd(e,t,r){if(e.typeParameters&&!r){a=zC.map(e.typeParameters,Gd),t=qd(jd(e.typeParameters,a),t);for(var n=0,i=a;n<i.length;n++)i[n].mapper=t}var a=ac(e.declaration,a,e.thisParameter&&Xd(e.thisParameter,t),Md(e.parameters,t,Xd),void 0,void 0,e.minArgumentCount,39&e.flags);return a.target=e,a.mapper=t,a}function Xd(e,t){var r=mi(e);if(r.type&&!bg(r.type))return e;1&zC.getCheckFlags(e)&&(e=r.target,t=qd(r.mapper,t));var n=si(e.flags,e.escapedName,1|53256&zC.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 Yd(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||235===n.kind||189===n.kind&&zC.forEachChild(n.extendsType,i))return!0;return i(e)}return!0;function i(e){switch(e.kind){case 192:return!!r.isThisType;case 79:return!r.isThisType&&zC.isPartOfTypeNode(e)&&!(178===(t=e).parent.kind&&t.parent.typeArguments&&t===t.parent.typeName||200===t.parent.kind&&t.parent.typeArguments&&t===t.parent.qualifier)&&Od(e)===r;case 181:return!0;case 169:case 168:return!e.type&&!!e.body||zC.some(e.typeParameters,i)||zC.some(e.parameters,i)||!!e.type&&i(e.type)}var t;return!!zC.forEachChild(e,i)}}function Zd(e){e=kc(e);if(4194304&e.flags){e=rd(e.type);if(262144&e.flags)return e}}function $d(d,p,e,t){var f=Zd(d);if(f){var r=ip(f,p);if(f!==r)return wm(ol(r),function(e){if(61603843&e.flags&&e!==Ze&&!Do(e)){if(!d.declaration.nameType){var t=void 0;if(ff(e)||1&e.flags&&yo(f,4)<0&&(t=Kc(f))&&Nm(t,mf))return function(e,t,r){r=tp(t,dt,!0,r);return Do(r)?$e:Qu(r,ep(gf(e),wc(t)))}(e,d,Wd(f,e,p));if(Mf(e))return s=d,c=f,l=p,u=(o=e).target.elementFlags,_=zC.map(pu(o),function(e,t){t=8&u[t]?e:4&u[t]?Qu(e):t_([e],[u[t]]);return $d(s,Wd(c,t,l))}),o=ep(o.target.readonly,wc(s)),t_(_,zC.map(_,function(e){return 8}),o);if(Of(e))return n=d,i=Wd(f,r=e,p),a=r.target.elementFlags,t=zC.map(pu(r),function(e,t){return tp(n,kd(""+t),!!(2&a[t]),i)}),_=wc(n),o=4&_?zC.map(a,function(e){return 1&e?2:e}):8&_?zC.map(a,function(e){return 2&e?1:e}):a,_=ep(r.target.readonly,_),zC.contains(t,$e)?$e:t_(t,o,_,r.target.labeledElementDeclarations)}return rp(d,Wd(f,e,p))}var r,n,i,a,o,s,c,l,u,_;return e},e,t)}return ip(kc(d),p)===Ze?Ze:rp(d,p,e,t)}function ep(e,t){return!!(1&t)||!(2&t)&&e}function tp(e,t,r,n){t=Hd(n,Cc(e),t),t=ip(Nc(e.target||e),t),e=wc(e);return ee&&4&e&&!nx(t,49152)?qf(t,!0):ee&&8&e&&r?_m(t,524288):t}function rp(e,t,r,n){var i,a,o=wa(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(o.declaration=e.declaration,a=Gd(i=Cc(e)),t=qd(zd(i,o.typeParameter=a),t),a.mapper=t),8388608&e.objectFlags&&(o.node=e.node),o.target=e,o.mapper=t,o.aliasSymbol=r||e.aliasSymbol,o.aliasTypeArguments=r?n:Ld(e.aliasTypeArguments,t),o}function np(e,t,r,n){var i=e.root;if(i.outerTypeParameters){var a,o,s=zC.map(i.outerTypeParameters,function(e){return Jd(e,t)}),c=su(s)+cu(r,n),l=i.instantiations.get(c);return l||(a=jd(i.outerTypeParameters,s),o=i.checkType,l=(s=i.isDistributive?Jd(o,a):void 0)&&o!==s&&1179648&s.flags?wm(ol(s),function(e){return sd(i,Wd(o,e,a))},r,n):sd(i,a,r,n),i.instantiations.set(c,l)),l}return e}function ip(e,t){return e&&t?ap(e,t,void 0,void 0):e}function ap(e,t,r,n){if(!bg(e))return e;if(100===p||5e6<=d)return null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:p,instantiationCount:d}),ei(Z,zC.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),$e;_++,d++,p++;n=function(e,t,r,n){var i=e.flags;if(262144&i)return Jd(e,t);if(524288&i){var a=e.objectFlags;if(52&a){if(4&a&&!e.node){var o=e.resolvedTypeArguments,s=Ld(o,t);return s!==o?n_(e.target,s):e}return 1024&a?function(e,t){var r=ip(e.mappedType,t);if(!(32&zC.getObjectFlags(r)))return e;var n=ip(e.constraintType,t);if(!(4194304&n.flags))return e;n=Sg(ip(e.source,t),r,n);if(n)return n;return e}(e,t):function(e,t,r,n){var i,a,o,s=yi(_=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0]),c=4&e.objectFlags?s.resolvedType:64&e.objectFlags?e.target:e,l=s.outerTypeParameters;if(l||(a=ys(_,!0),tb(_)&&(i=Tl(_),a=zC.addRange(a,i)),l=a||zC.emptyArray,o=8388612&e.objectFlags?[_]:e.symbol.declarations,l=(8388612&c.objectFlags||8192&c.symbol.flags||2048&c.symbol.flags)&&!c.aliasTypeArguments?zC.filter(l,function(t){return zC.some(o,function(e){return Yd(t,e)})}):l,s.outerTypeParameters=l),l.length){var u=qd(e.mapper,t),_=zC.map(l,function(e){return Jd(e,u)}),s=r||e.aliasSymbol,r=r?n:Ld(e.aliasTypeArguments,t),n=su(_)+cu(s,r);c.instantiations||(c.instantiations=new zC.Map,c.instantiations.set(su(l)+cu(c.aliasSymbol,c.aliasTypeArguments),c));t=c.instantiations.get(n);return t||(_=jd(l,_),t=4&c.objectFlags?du(e.target,e.node,_,s,r):(32&c.objectFlags?$d:rp)(c,_,s,r),c.instantiations.set(n,t)),t}return e}(e,t,r,n)}return e}if(3145728&i){var s=1048576&e.flags?e.origin:void 0,c=(s&&3145728&s.flags?s:e).types,a=Ld(c,t);if(a===c&&r===e.aliasSymbol)return e;var l=r||e.aliasSymbol,c=r?n:Ld(e.aliasTypeArguments,t);return 2097152&i||s&&2097152&s.flags?x_(a,l,c):f_(a,1,l,c)}if(4194304&i)return P_(ip(e.type,t));if(134217728&i)return I_(e.texts,Ld(e.types,t));if(268435456&i)return M_(e.symbol,ip(e.type,t));if(8388608&i){l=r||e.aliasSymbol,c=r?n:Ld(e.aliasTypeArguments,t);return Y_(ip(e.objectType,t),ip(e.indexType,t),e.accessFlags,void 0,l,c)}if(16777216&i)return np(e,qd(e.mapper,t),r,n);if(33554432&i){i=ip(e.baseType,t);if(8650752&i.flags)return xu(i,ip(e.substitute,t));t=ip(e.substitute,t);return 3&t.flags||hp(sp(i),sp(t))?i:t}return e}(e,t,r,n);return p--,n}function op(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=ip(e,Ot))}function sp(e){return 262143&e.flags?e:e.restrictiveInstantiation||(e.restrictiveInstantiation=ip(e,It),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function cp(e,t){return $l(e.keyType,ip(e.type,t),e.isReadonly,e.declaration)}function lp(e){switch(zC.Debug.assert(169!==e.kind||zC.isObjectLiteralMethod(e)),e.kind){case 213:case 214:case 169:case 256:return up(e);case 205:return zC.some(e.properties,lp);case 204:return zC.some(e.elements,lp);case 222:return lp(e.whenTrue)||lp(e.whenFalse);case 221:return(56===e.operatorToken.kind||60===e.operatorToken.kind)&&(lp(e.left)||lp(e.right));case 296:return lp(e.initializer);case 212:return lp(e.expression);case 286:return zC.some(e.properties,lp)||zC.isJsxOpeningElement(e.parent)&&zC.some(e.parent.parent.children,lp);case 285:var t=e.initializer;return!!t&&lp(t);case 288:t=e.expression;return!!t&&lp(t)}return!1}function up(e){return(!zC.isFunctionDeclaration(e)||zC.isInJSFile(e)&&!!wo(e))&&(zC.hasContextSensitiveParameters(e)||!(e=e).typeParameters&&!zC.getEffectiveReturnTypeNode(e)&&!!e.body&&235!==e.body.kind&&lp(e.body))}function _p(e){return(zC.isInJSFile(e)&&zC.isFunctionDeclaration(e)||zC.isFunctionExpressionOrArrowFunction(e)||zC.isObjectLiteralMethod(e))&&up(e)}function dp(e){if(524288&e.flags){var t=Lc(e);if(t.constructSignatures.length||t.callSignatures.length){var r=wa(16,e.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=zC.emptyArray,r.constructSignatures=zC.emptyArray,r.indexInfos=zC.emptyArray,r}}else if(2097152&e.flags)return x_(zC.map(e.types,dp));return e}function pp(e,t){return jp(e,t,qn)}function fp(e,t){return jp(e,t,qn)?-1:0}function gp(e,t){return jp(e,t,Un)?-1:0}function mp(e,t){return jp(e,t,zn)?-1:0}function yp(e,t){return jp(e,t,zn)}function hp(e,t){return jp(e,t,Un)}function vp(t,r){return 1048576&t.flags?zC.every(t.types,function(e){return vp(e,r)}):1048576&r.flags?zC.some(r.types,function(e){return vp(t,e)}):58982400&t.flags?vp(Hc(t)||nt,r):r===Yt?!!(67633152&t.flags):r===Zt?!!(524288&t.flags)&&lm(t):gs(t,fs(r))||ff(r)&&!gf(r)&&vp(t,rr)}function bp(e,t){return jp(e,t,Vn)}function xp(e,t){return bp(e,t)||bp(t,e)}function Dp(e,t,r,n,i,a){return Kp(e,t,Un,r,n,i,a)}function Sp(e,t,r,n,i,a){return Tp(e,t,Un,r,n,i,a,void 0)}function Tp(e,t,r,n,i,a,o,s){return!!jp(e,t,r)||(!n||!kp(i,e,t,r,a,o,s))&&Kp(e,t,r,n,a,o,s)}function Cp(e){return!!(16777216&e.flags||2097152&e.flags&&zC.some(e.types,Cp))}function kp(e,t,r,n,i,a,o){if(!e||Cp(r))return!1;if(!Kp(t,r,n,void 0)&&function(e,t,r,n,i,a,o){for(var s=pl(t,0),c=pl(t,1),l=0,u=[c,s];l<u.length;l++){var _=u[l];if(zC.some(_,function(e){e=zl(e);return!(131073&e.flags)&&Kp(e,r,n,void 0)})){var d=o||{};Dp(t,r,e,i,a,d);d=d.errors[d.errors.length-1];return zC.addRelatedInfo(d,zC.createDiagnosticForNode(e,_===c?zC.Diagnostics.Did_you_mean_to_use_new_with_this_expression:zC.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(e,t,r,n,i,a,o))return!0;switch(e.kind){case 288:case 212:return kp(e.expression,t,r,n,i,a,o);case 221:switch(e.operatorToken.kind){case 63:case 27:return kp(e.right,t,r,n,i,a,o)}break;case 205:return s=e,c=t,u=n,_=a,d=o,!(131068&(l=r).flags)&&Ep(function(t){var r,n,i,a;return __generator(this,function(e){switch(e.label){case 0:if(!zC.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],zC.isSpreadAssignment(i))return[3,7];if(!(a=N_(ba(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 173:case 172:case 169:case 297:return[3,2];case 296: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:zC.isComputedNonLiteralName(i.name)?zC.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:zC.Debug.assertNever(i),e.label=7;case 7:return r++,[3,1];case 8:return[2]}})}(s),c,l,u,_,d);case 204:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(Sf(t))return Ep(Ap(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=Gy(e,1,!0);return e.contextualType=o,!!Sf(s)&&Ep(Ap(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(e,t,r,n,a,o);case 286:return function(i,e,a,t,r,n){var o,s=Ep(function(t){var r,n;return __generator(this,function(e){switch(e.label){case 0:if(!zC.length(t.properties))return[2];r=0,n=t.properties,e.label=1;case 1:return r<n.length?(n=n[r],zC.isJsxSpreadAttribute(n)||nh(zC.idText(n.name))?[3,3]:[4,{errorNode:n.name,innerExpression:n.initializer,nameType:kd(zC.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(zC.isJsxOpeningElement(i.parent)&&zC.isJsxElement(i.parent.parent)){var c=i.parent.parent,l=fh(dh(i)),u=void 0===l?"children":zC.unescapeLeadingUnderscores(l),_=kd(u),d=Y_(a,_),p=zC.getSemanticJsxChildren(c.children);if(!zC.length(p))return s;var f,g,m=1<zC.length(p),y=Am(d,Tf),h=Am(d,function(e){return!Tf(e)});m?y!==xt?(l=t_(oh(c,0)),m=function(t,r){var n,i,a,o;return __generator(this,function(e){switch(e.label){case 0:if(!zC.length(t.children))return[2];i=n=0,e.label=1;case 1:return i<t.children.length?(a=t.children[i],o=Ed(i-n),(o=Np(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=Ep(m,l,y,t,r,n)||s):jp(Y_(e,_),d,t)||(s=!0,g=ei(c.openingElement.tagName,zC.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,to(d)),n&&n.skipLogging&&(n.errors||(n.errors=[])).push(g)):h!==xt?(f=Np(p[0],_,v))&&(s=Ep(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):jp(Y_(e,_),d,t)||(s=!0,g=ei(c.openingElement.tagName,zC.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,to(d)),n&&n.skipLogging&&(n.errors||(n.errors=[])).push(g))}return s;function v(){var e,t,r,n;return o||(e=zC.getTextOfNode(i.parent.tagName),t=void 0===(n=fh(dh(i)))?"children":zC.unescapeLeadingUnderscores(n),r=Y_(a,kd(t)),n=zC.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:zC.formatMessage(void 0,n,e,t,to(r))})),o}}(e,t,r,n,a,o);case 214:return function(e,t,r,n,i,a){if(zC.isBlock(e.body))return!1;if(zC.some(e.parameters,zC.hasType))return!1;var o=xv(t);if(!o)return!1;var s=pl(r,0);if(!zC.length(s))return!1;var c=e.body,t=zl(o),o=f_(zC.map(s,zl));if(!Kp(t,o,n,void 0)){s=c&&kp(c,t,o,n,void 0,i,a);if(s)return s;a=a||{};if(Kp(t,o,n,c,void 0,i,a),a.errors)return r.symbol&&zC.length(r.symbol.declarations)&&zC.addRelatedInfo(a.errors[a.errors.length-1],zC.createDiagnosticForNode(r.symbol.declarations[0],zC.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&zC.getFunctionFlags(e))&&!bo(t,"then")&&Kp(Lb(t),o,n,void 0)&&zC.addRelatedInfo(a.errors[a.errors.length-1],zC.createDiagnosticForNode(e,zC.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,r,n,a,o)}var s,c,l,u,_,d;return!1}function Ep(e,t,r,n,i,a){for(var o=!1,s=e.next();!s.done;s=e.next()){var c,l,u,_=s.value,d=_.errorNode,p=_.innerExpression,f=_.nameType,g=_.errorMessage,m=function(e,t,r){var n=$_(t,r);if(n)return n;if(1048576&t.flags){t=Wp(e,t);if(t)return $_(t,r)}}(t,r,f);!m||8388608&m.flags||(u=$_(t,f))&&(l=R_(f,void 0),Kp(u,m,n,void 0)||(o=!0,p&&kp(p,u,m,n,void 0,i,a)||(_=a||{},p=p?function(e,t){e.contextualType=t;try{return Dx(e,1,t)}finally{e.contextualType=void 0}}(p,u):u,re&&qp(p,m)?(c=zC.createDiagnosticForNode(d,zC.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,to(p),to(m)),Rn.add(c),_.errors=[c]):(c=!!(l&&16777216&(_l(r,l)||We).flags),l=!!(l&&16777216&(_l(t,l)||We).flags),m=Yf(m,c),u=Yf(u,c&&l),Kp(p,m,n,d,g,i,_)&&p!==u&&Kp(u,m,n,d,g,i,_)),_.errors&&(u=_.errors[_.errors.length-1],m=!1,(g=void 0!==(d=Hs(f)?Zs(f):void 0)?_l(r,d):void 0)||(_=Dl(r,f))&&_.declaration&&!zC.getSourceFileOfNode(_.declaration).hasNoDefaultLib&&(m=!0,zC.addRelatedInfo(u,zC.createDiagnosticForNode(_.declaration,zC.Diagnostics.The_expected_type_comes_from_this_index_signature))),!m&&(g&&zC.length(g.declarations)||r.symbol&&zC.length(r.symbol.declarations))&&(g=(g&&zC.length(g.declarations)?g:r.symbol).declarations[0],zC.getSourceFileOfNode(g).hasNoDefaultLib||zC.addRelatedInfo(u,zC.createDiagnosticForNode(g,zC.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!d||8192&f.flags?to(f):zC.unescapeLeadingUnderscores(d),to(r))))))))}return o}function Np(e,t,r){switch(e.kind){case 288: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 278:case 279:case 282:return{errorNode:e,innerExpression:e,nameType:t};default:return zC.Debug.assertNever(e,"Found invalid jsx child")}}function Ap(t,r){var n,i,a;return __generator(this,function(e){switch(e.label){case 0:if(!(a=zC.length(t.elements)))return[2];n=0,e.label=1;case 1:return n<a?Sf(r)&&!_l(r,""+n)?[3,3]:(i=t.elements[n],zC.isOmittedExpression(i)?[3,3]:(a=Ed(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 Fp(e,t,r,n,i){return Kp(e,t,Vn,r,n,i)}function Pp(e,t,r,n,i,a,o,s){if(e===t)return-1;if(!(g=t).typeParameters&&(!g.thisParameter||xo(vb(g.thisParameter)))&&1===g.parameters.length&&ak(g)&&(vb(g.parameters[0])===cr||xo(vb(g.parameters[0])))&&xo(zl(g)))return-1;var c=Eb(t);if(!Ab(t)&&(8&r?Ab(e)||Eb(e)>c:Nb(e)>c))return 0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=Tv(e,t=Ql(t),void 0,o));var l=Eb(e),u=Pb(e),_=Pb(t);(u||_)&&ip(u||_,s);var d=t.declaration?t.declaration.kind:0,p=!(3&r)&&M&&169!==d&&168!==d&&171!==d,f=-1,g=Bl(e);if(g&&g!==bt){d=Bl(t);if(d){if(!(x=!p&&o(g,d,!1)||o(d,g,n)))return n&&i(zC.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;f&=x}}for(var m=u||_?Math.min(l,c):Math.max(l,c),y=u||_?m-1:-1,h=0;h<m;h++){var v=(h===y?kb:Cb)(e,h),b=(h===y?kb:Cb)(t,h);if(v&&b){var x,D=3&r?void 0:xv(Wf(v)),S=3&r?void 0:xv(Wf(b));if((x=D&&S&&!jl(D)&&!jl(S)&&(98304&zf(v))==(98304&zf(b))?Pp(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>=Nb(e)&&h<Nb(t)&&o(v,b,!1)&&(x=0),!x)return n&&i(zC.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,zC.unescapeLeadingUnderscores(xb(e,h)),zC.unescapeLeadingUnderscores(xb(t,h))),0;f&=x}}if(!(4&r)){l=Ul(t)?Xe:t.declaration&&tb(t.declaration)?As(va(t.declaration.symbol)):zl(t);if(l===bt||l===Xe)return f;c=Ul(e)?Xe:e.declaration&&tb(e.declaration)?As(va(e.declaration.symbol)):zl(e),u=jl(t);if(u){_=jl(e);if(_)f&=function(e,t,r,n,i){if(e.kind!==t.kind)return r&&(n(zC.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),n(zC.Diagnostics.Type_predicate_0_is_not_assignable_to_1,so(e),so(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return r&&(n(zC.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),n(zC.Diagnostics.Type_predicate_0_is_not_assignable_to_1,so(e),so(t))),0;i=e.type===t.type?-1:e.type&&t.type?i(e.type,t.type,r):0;0===i&&r&&n(zC.Diagnostics.Type_predicate_0_is_not_assignable_to_1,so(e),so(t));return i}(_,u,n,i,o);else if(zC.isIdentifierTypePredicate(u))return n&&i(zC.Diagnostics.Signature_0_must_be_a_type_predicate,eo(e)),0}else!(f&=1&r&&o(l,c,!1)||o(c,l,n))&&n&&a&&a(c,l)}return f}function wp(e,t){var r=Gl(e),n=Gl(t),e=zl(r),t=zl(n);return(t===bt||jp(t,e,Un)||jp(e,t,Un))&&0!==Pp(r,n,!0?4:0,!1,void 0,void 0,gp,void 0)}function Ip(e){return e!==zt&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function Op(e){return 524288&e.flags?!Mc(e)&&Ip(Lc(e)):!!(67108864&e.flags)||(1048576&e.flags?zC.some(e.types,Op):!!(2097152&e.flags)&&zC.every(e.types,Op))}function Mp(e){return!!(16&zC.getObjectFlags(e)&&(e.members&&Ip(e)||e.symbol&&2048&e.symbol.flags&&0===tc(e.symbol).size))}function Lp(e){return 524288&e.flags&&!Mc(e)&&0===Jc(e).length&&1===hl(e).length&&!!vl(e,_t)||3145728&e.flags&&zC.every(e.types,Lp)||!1}function Rp(e,t,r){if(e===t)return 1;var n=ek(e)+","+ek(t),i=Wn.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=_s(t),o=0,s=Jc(_s(e));o<s.length;o++){var c=s[o];if(8&c.flags){var l=_l(a,c.escapedName);if(!(l&&8&l.flags))return void(r?(r(zC.Diagnostics.Property_0_is_missing_in_type_1,zC.symbolName(c),to(Rs(t),void 0,64)),Wn.set(n,6)):Wn.set(n,2))}}return Wn.set(n,1),1}Wn.set(n,6)}function Bp(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===Ze)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&&Rp(e.symbol,t.symbol,n))return 1;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Rp(e.symbol,t.symbol,n))return 1;if(2944&i&&2944&a&&e.value===t.value&&Rp(xa(e.symbol),xa(t.symbol),n))return 1}if(32768&i&&(!ee&&!(3145728&a)||49152&a))return 1;if(65536&i&&(!ee&&!(3145728&a)||65536&a))return 1;if(524288&i&&67108864&a)return 1;if(r===Un||r===Vn){if(1&i)return 1;if(264&i&&!(1024&i)&&(32&a||r===Un&&256&a&&1024&a))return 1}}}function jp(e,t,r){if(Cd(e)&&(e=e.regularType),Cd(t)&&(t=t.regularType),e===t)return!0;if(r!==qn){if(r===Vn&&!(131072&t.flags)&&Bp(t,e,r)||Bp(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(nf(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&Kp(e,t,r,void 0)}function Jp(e,t){return 2048&zC.getObjectFlags(e)&&nh(t.escapedName)}function zp(e,t){for(;;){var r=Cd(e)?e.regularType:4&zC.getObjectFlags(e)&&e.node?uu(e.target,pu(e)):3145728&e.flags?ol(e):33554432&e.flags?t?e.baseType:e.substitute:25165824&e.flags?H_(e,t):e;if((r=bf(r)||r)===e)break;e=r}return e}function Kp(e,t,w,f,c,r,n){var A,l,g,F,P,d,p,m=0,I=0,O=0,y=0,h=!1,_=0,v=!1;zC.Debug.assert(w!==qn||!f,"no error reporting in identity checking");var i,a,o=J(e,t,3,!!f,c);return p&&u(),h?(null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:I,targetDepth:O}),a=ei(f||Z,zC.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,to(e),to(t)),n&&(n.errors||(n.errors=[])).push(a)):A&&(!r||(i=r())&&(zC.concatenateDiagnosticMessageChains(i,A),A=i),i=void 0,c&&f&&!o&&e.symbol&&((e=mi(e.symbol)).originatingImport&&!zC.isImportCall(e.originatingImport)&&Kp(_s(e.target),t,w,void 0)&&(e=zC.createDiagnosticForNode(e.originatingImport,zC.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=zC.append(i,e))),a=zC.createDiagnosticForNodeFromMessageChain(f,A,i),l&&zC.addRelatedInfo.apply(void 0,__spreadArray([a],l,!1)),n&&(n.errors||(n.errors=[])).push(a),n&&n.skipLogging||Rn.add(a)),f&&n&&n.skipLogging&&0===o&&zC.Debug.assert(!!n.errors,"missed opportunity to interact with error."),0!==o;function M(e){A=e.errorInfo,d=e.lastSkippedInfo,p=e.incompatibleStack,_=e.overrideNextErrorInfo,l=e.relatedInfo}function L(){return{errorInfo:A,lastSkippedInfo:d,incompatibleStack:null==p?void 0:p.slice(),overrideNextErrorInfo:_,relatedInfo:null==l?void 0:l.slice()}}function R(e,t,r,n,i){_++,d=void 0,(p=p||[]).push([e,t,r,n,i])}function u(){var e=p||[],t=d;if(d=p=void 0,1===e.length)return B.apply(void 0,e[0]),void(t&&b.apply(void 0,__spreadArray([void 0],t,!1)));for(var r="",n=[];e.length;){var i,a=e.pop(),o=a[0],s=a.slice(1);switch(o.code){case zC.Diagnostics.Types_of_property_0_are_incompatible.code:0===r.indexOf("new ")&&(r="(".concat(r,")"));var c=""+s[0],r=0===r.length?"".concat(c):zC.isIdentifierText(c,zC.getEmitScriptTarget($))?"".concat(r,".").concat(c):"["===c[0]&&"]"===c[c.length-1]?"".concat(r).concat(c):"".concat(r,"[").concat(c,"]");break;case zC.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case zC.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case zC.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case zC.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:0===r.length?((i=o).code===zC.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?i=zC.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:o.code===zC.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(i=zC.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),n.unshift([i,s[0],s[1]])):(c=o.code===zC.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||o.code===zC.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",i=o.code===zC.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||o.code===zC.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...",r="".concat(c).concat(r,"(").concat(i,")"));break;case zC.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:n.unshift([zC.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,s[0],s[1]]);break;case zC.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:n.unshift([zC.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,s[0],s[1],s[2]]);break;default:return zC.Debug.fail("Unhandled Diagnostic: ".concat(o.code))}}r?B(")"===r[r.length-1]?zC.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:zC.Diagnostics.The_types_of_0_are_incompatible_between_these_types,r):n.shift();for(var l=0,u=n;l<u.length;l++){var _=u[l],o=_[0],s=_.slice(1),_=o.elidedInCompatabilityPyramid;o.elidedInCompatabilityPyramid=!1,B.apply(void 0,__spreadArray([o],s,!1)),o.elidedInCompatabilityPyramid=_}t&&b.apply(void 0,__spreadArray([void 0],t,!1))}function B(e,t,r,n,i){zC.Debug.assert(!!f),p&&u(),e.elidedInCompatabilityPyramid||(A=zC.chainDiagnosticMessages(A,e,t,r,n,i))}function b(e,t,r){p&&u();var n,i=ro(t,r),a=i[0],o=i[1],s=t,c=a;if(Nf(t)&&!Up(r)&&(s=Af(t),zC.Debug.assert(!hp(s,r),"generalized source shouldn't be assignable"),c=no(s)),262144&r.flags&&r!==qt&&r!==Wt&&(n=void 0,(i=Hc(r))&&(hp(s,i)||(n=hp(t,i)))?B(zC.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?a:c,o,to(i)):(A=void 0,B(zC.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,c))),e)e===zC.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&re&&Vp(t,r).length&&(e=zC.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(w===Vn)e=zC.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(a===o)e=zC.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(re&&Vp(t,r).length)e=zC.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){r=function(e,t){t=t.types.filter(function(e){return!!(128&e.flags)});return zC.getSpellingSuggestion(e.value,t,function(e){return e.value})}(t,r);if(r)return void B(zC.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,c,o,to(r))}e=zC.Diagnostics.Type_0_is_not_assignable_to_type_1}B(e,c,o)}function x(e,t,r){return Of(e)?e.target.readonly&&yf(t)?void(r&&B(zC.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,to(e),to(t))):mf(t):gf(e)&&yf(t)?void(r&&B(zC.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,to(e),to(t))):!Of(t)||ff(e)}function j(e,t,r){return J(e,t,3,r)}function J(e,t,r,n,i,a){if(void 0===r&&(r=3),void 0===n&&(n=!1),void 0===a&&(a=0),524288&e.flags&&131068&t.flags)return Bp(e,t,w,n?B:void 0)?-1:(n&&D(e,t,e,t,i),0);var o=zp(e,!1),s=zp(t,!0);if(o===s)return-1;if(w===qn)return o.flags!==s.flags?0:67358815&o.flags?-1:(S(o,s),C(o,s,!1,0,r));if(262144&o.flags&&zc(o)===s)return-1;if(470302716&o.flags&&1048576&s.flags){var c=s.types,l=2===c.length&&98304&c[0].flags?c[1]:3===c.length&&98304&c[0].flags&&98304&c[1].flags?c[2]:void 0;if(l&&!(98304&l.flags)&&o===(s=zp(l,!0)))return-1}if(w===Vn&&!(131072&s.flags)&&Bp(s,o,w)||Bp(o,s,w,n?B:void 0))return-1;if(469499904&o.flags||469499904&s.flags){var u=!(2&a)&&jg(o)&&8192&zC.getObjectFlags(o);if(u&&function(c,e,l){var u;if(!Dh(e)||!te&&4096&zC.getObjectFlags(e))return!1;var _=!!(2048&zC.getObjectFlags(c));if((w===Un||w===Vn)&&(Cm(Yt,e)||!_&&Op(e)))return!1;var d,p=e;1048576&e.flags&&(p=JC(c,e,J)||function(e){if(nx(e,67108864)){var t=Am(e,function(e){return!(131068&e.flags)});if(!(131072&t.flags))return t}return e}(e),d=1048576&p.flags?p.types:[p]);for(var t=function(e){if(o=e,s=c.symbol,o.valueDeclaration&&s.valueDeclaration&&o.valueDeclaration.parent===s.valueDeclaration&&!Jp(c,e)){if(!xh(p,e.escapedName,_)){if(l){var t,r,n,i=Am(p,Dh);if(!f)return{value:zC.Debug.fail()};zC.isJsxAttributes(f)||zC.isJsxOpeningLikeElement(f)||zC.isJsxOpeningLikeElement(f.parent)?(e.valueDeclaration&&zC.isJsxAttribute(e.valueDeclaration)&&zC.getSourceFileOfNode(f)===zC.getSourceFileOfNode(e.valueDeclaration.name)&&(f=e.valueDeclaration.name),(r=(r=$h(n=$a(e),i))?$a(r):void 0)?B(zC.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,n,to(i),r):B(zC.Diagnostics.Property_0_does_not_exist_on_type_1,n,to(i))):(t=(null===(u=c.symbol)||void 0===u?void 0:u.declarations)&&zC.firstOrUndefined(c.symbol.declarations),r=void 0,e.valueDeclaration&&zC.findAncestor(e.valueDeclaration,function(e){return e===t})&&zC.getSourceFileOfNode(t)===zC.getSourceFileOfNode(f)&&(n=e.valueDeclaration,zC.Debug.assertNode(n,zC.isObjectLiteralElementLike),n=(f=n).name,zC.isIdentifier(n)&&(r=ev(n,i))),void 0!==r?B(zC.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,$a(e),to(i),r):B(zC.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,$a(e),to(i)))}return{value:!0}}if(d&&!J(_s(e),(i=d,a=e.escapedName,f_(zC.reduceLeft(i,function(e,t){var r=(3145728&(t=tl(t)).flags?al:Bc)(t,a),n=r&&_s(r)||(null===(n=Sl(t,a))||void 0===n?void 0:n.type)||at;return zC.append(e,n)},void 0)||zC.emptyArray)),3,l))return l&&R(zC.Diagnostics.Types_of_property_0_are_incompatible,$a(e)),{value:!0}}var a,o,s},r=0,n=Jc(c);r<n.length;r++){var i=n[r],i=t(i);if("object"==typeof i)return i.value}return!1}(o,s,n))return n&&b(i,o,t.aliasSymbol?t:s),0;var _,d=w!==Vn&&!(2&a)&&2752508&o.flags&&o!==Yt&&2621440&s.flags&&Gp(s)&&(0<Jc(o).length||NT(o)),p=!!(2048&zC.getObjectFlags(o));if(d&&!function(e,t,r){for(var n=0,i=Jc(e);n<i.length;n++){var a=i[n];if(xh(t,a.escapedName,r))return!0}return!1}(o,s,p))return n&&(_=to(e.aliasSymbol?e:o),c=to(t.aliasSymbol?t:s),l=pl(o,0),p=pl(o,1),0<l.length&&J(zl(l[0]),s,1,!1)||0<p.length&&J(zl(p[0]),s,1,!1)?B(zC.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,_,c):B(zC.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,_,c)),0;S(o,s);a=1048576&o.flags&&o.types.length<4&&!(1048576&s.flags)||1048576&s.flags&&s.types.length<4&&!(469499904&o.flags)?z(o,s,n,a):C(o,s,n,a,r);if(a&&!v&&(2097152&s.flags&&(u||d)||md(s)&&!mf(s)&&2097152&o.flags&&3670016&tl(o).flags&&!zC.some(o.types,function(e){return!!(262144&zC.getObjectFlags(e))}))&&(v=!0,a&=C(o,s,n,4,r),v=!1),a)return a}return n&&D(e,t,o,s,i),0}function D(e,t,r,n,i){var a=!!bf(e),o=!!bf(t);r=e.aliasSymbol||a?e:r,n=t.aliasSymbol||o?t:n;var s,o=0<_;if(o&&_--,524288&r.flags&&524288&n.flags&&(s=A,x(r,n,!0),A!==s&&(o=!!A)),524288&r.flags&&131068&n.flags)c=n,u=io((s=r).symbol)?to(s,s.symbol.valueDeclaration):to(s),l=io(c.symbol)?to(c,c.symbol.valueDeclaration):to(c),(nr===s&&_t===c||ir===s&&dt===c||ar===s&&ht===c||Ju()===s&&vt===c)&&B(zC.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,l,u);else if(r.symbol&&524288&r.flags&&Yt===r)B(zC.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&zC.getObjectFlags(r)&&2097152&n.flags){var c=n.types,l=lh(QC.IntrinsicAttributes,f),u=lh(QC.IntrinsicClassAttributes,f);if(!Do(l)&&!Do(u)&&(zC.contains(c,l)||zC.contains(c,u)))return}else A=ul(A,t);i||!o?b(i,r,n):d=[r,n]}function S(e,t){var r,n;zC.tracing&&3145728&e.flags&&3145728&t.flags&&(e.objectFlags&t.objectFlags&32768||1e6<(r=e.types.length)*(n=t.types.length)&&zC.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:r,targetId:t.id,targetSize:n,pos:null==f?void 0:f.pos,end:null==f?void 0:f.end}))}function z(e,t,r,n){if(1048576&e.flags)return(w===Vn?T:function(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){if(1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags)return Im(t,-32769);return t}(e,t),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=J(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}c=J(c,t,1,r,void 0,n);if(!c)return 0;i&=c}return i})(e,t,r&&!(131068&e.flags),n);if(1048576&t.flags)return s(rg(e),t,r&&!(131068&e.flags)&&!(131068&t.flags));if(2097152&t.flags)return 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=J(e,s,2,r,void 0,n);if(!s)return 0;i&=s}return i}(rg(e),t,r,2);if(w===Vn&&131068&t.flags){r=zC.sameMap(e.types,Gc);if(r!==e.types&&!(2097152&(e=x_(r)).flags))return J(e,t,1,!1)}return T(e,t,!1,1)}function K(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=s(i[n],t,!1);if(!a)return 0;r&=a}return r}function s(e,t,r){var n=t.types;if(1048576&t.flags){if(l_(n,e))return-1;var i=im(t,e);if(i)if(a=J(e,i,2,!1))return a}for(var a,o=0,s=n;o<s.length;o++)if(a=J(e,s[o],2,!1))return a;return!r||(t=Wp(e,t,J))&&J(e,t,2,!0),0}function T(e,t,r,n){var i=e.types;if(1048576&e.flags&&l_(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=J(i[o],t,1,r&&o===a-1,void 0,n);if(s)return s}return 0}function C(e,t,r,n,i){if(h)return 0;var a,o=n|(v?8:0),s=nf(e,t,o,w,!1),c=w.get(s);if(void 0!==c&&(!(r&&2&c)||4&c))return Ur&&(8&(a=24&c)&&ip(e,Kd(U)),16&a&&ip(e,Kd(V))),1&c?-1:0;if(g){for(var l=s.startsWith("*")?nf(e,t,o,w,!0):void 0,u=0;u<m;u++)if(s===g[u]||l&&l===g[u])return 3;if(100===I||100===O)return h=!0,0}else g=[],F=[],P=[];c=m;g[m]=s,m++;var _,o=y;1&i&&(F[I]=e,I++,1&y||!lf(e,F,I)||(y|=1)),2&i&&(P[O]=t,O++,2&y||!lf(t,P,O)||(y|=2));var d,p=0;if(Ur&&(_=Ur,Ur=function(e){return p|=e?16:8,_(e)}),3===y?(null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:F.map(function(e){return e.id}),targetId:t.id,targetIdStack:P.map(function(e){return e.id}),depth:I,targetDepth:O}),d=3):(null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),d=function(t,e,i,r){if(4&r)return G(t,e,i,void 0,0);var a,o,s=!1,c=L(),n=t.flags,l=e.flags;if(w===qn){if(3145728&n){var u=K(t,e);return u&&(u&=K(e,t)),u}if(4194304&n)return J(t.type,e.type,3,!1);if(8388608&n&&(a=J(t.objectType,e.objectType,3,!1))&&(a&=J(t.indexType,e.indexType,3,!1)))return a;if(16777216&n&&t.root.isDistributive===e.root.isDistributive&&(a=J(t.checkType,e.checkType,3,!1))&&(a&=J(t.extendsType,e.extendsType,3,!1))&&(a&=J(cd(t),cd(e),3,!1))&&(a&=J(ld(t),ld(e),3,!1)))return a;if(33554432&n)return J(t.substitute,e.substitute,3,!1);if(!(524288&n))return 0}else if(3145728&n||3145728&l){if(a=z(t,e,i,r))return a;if(2097152&t.flags||262144&t.flags&&1048576&e.flags){var _=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=zc(s);o&&21233664&o.flags;)o=zc(o);o&&(r=zC.append(r,o),t&&(r=zC.append(r,s)))}else 469892092&s.flags&&(n=!0);if(r&&(t||n)){if(n)for(var s,c=0,l=e;c<l.length;c++)469892092&(s=l[c]).flags&&(r=zC.append(r,s));return x_(r)}}(2097152&t.flags?t.types:[t],!!(1048576&e.flags));if(_&&Nm(_,function(e){return e!==t})&&(a=J(_,e,1,!1,void 0,r)))return M(c),a}if(!(465829888&n||524288&n&&1048576&l||2097152&n&&467402752&l))return 0}if(17301504&n&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===e.aliasSymbol&&!$p(t)&&!$p(e)){if((C=Xp(t.aliasSymbol))===zC.emptyArray)return 1;if(void 0!==(k=N(t.aliasTypeArguments,e.aliasTypeArguments,C,r)))return k}if(Lf(t)&&!t.target.readonly&&(a=J(pu(t)[0],e,1))||Lf(e)&&(e.target.readonly||yf(Hc(t)||t))&&(a=J(t,pu(e)[0],2)))return a;if(262144&l){if(32&zC.getObjectFlags(t)&&!t.declaration.nameType&&J(P_(e),kc(t),3)&&!(4&wc(t))){var d=Nc(t),p=Y_(e,Cc(t));if(a=J(d,p,3,i))return a}}else if(4194304&l){var f=e.type;if(4194304&n&&(a=J(f,t.type,3,!1)))return a;if(Of(f)){if(a=J(t,a_(f),2,i))return a}else if(_=Uc(f)){if(-1===J(t,P_(_,e.stringsOnly),2,i))return-1}else if(Mc(f)){var g,m=Ec(f),u=kc(f),y=void 0;if(y=m&&Fc(f)?(Sc(tl(Pc(f)),8576,!(g=[]),function(e){return g.push(ip(m,Hd(f.mapper,Cc(f),e))),0}),f_(__spreadArray(__spreadArray([],g,!0),[m],!1))):m||u,-1===J(t,y,2,i))return-1}}else if(8388608&l){if(8388608&n){if((a=J(t.objectType,e.objectType,3,i))&&(a&=J(t.indexType,e.indexType,3,i)),a)return M(c),a;i&&(o=A)}if(w===Un||w===Vn){var h=e.objectType,v=e.indexType,b=Hc(h)||h,v=Hc(v)||v;if(!V_(b)&&!q_(v))if(_=$_(b,v,4|(b!==h?2:0))){if(i&&o&&M(c),a=J(t,_,2,i))return a;i&&o&&A&&(A=E([o])<=E([A])?o:A)}}i&&(o=void 0)}else if(Mc(e)&&w!==qn){v=!!e.declaration.nameType,d=Nc(e),b=wc(e);if(!(8&b)){if(!v&&8388608&d.flags&&d.objectType===t&&d.indexType===Cc(e))return-1;if(!Mc(t)){y=(v?Ec:kc)(e),h=P_(t,void 0,!0),d=4&b,b=d?fc(y,h):void 0;if(d?!(131072&b.flags):J(y,h,3)){var x=Nc(e),d=Cc(e),h=Im(x,-98305);if(!v&&8388608&h.flags&&h.indexType===d){if(a=J(t,h.objectType,2,i))return a}else{d=v?b||y:b?x_([b,d]):d,p=Y_(t,d);if(a=J(p,x,3,i))return a}}o=A,M(c)}}}else if(16777216&l){if(lf(e,P,O,10))return M(c),3;var D=e;if(!D.root.inferTypeParameters&&!function(e){return e.isDistributive&&(Yd(e.checkType,e.node.trueType)||Yd(e.checkType,e.node.falseType))}(D.root)){p=!hp(op(D.checkType),op(D.extendsType)),x=!p&&hp(sp(D.checkType),sp(D.extendsType));if((a=p?-1:J(t,cd(D),2,!1))&&(a&=x?-1:J(t,ld(D),2,!1)))return M(c),a}}else if(134217728&l){if(134217728&n){if(w===Vn)return function(e,t){var r=e.texts[0],n=t.texts[0],i=e.texts[e.texts.length-1],a=t.texts[t.texts.length-1],e=Math.min(r.length,n.length),t=Math.min(i.length,a.length);return r.slice(0,e)!==n.slice(0,e)||i.slice(i.length-t)!==a.slice(a.length-t)}(t,e)?0:-1;ip(t,Kd(V))}if(Ig(t,e))return-1}if(8650752&n){if(!(8388608&n&&8388608&l)){if(!(_=zc(t))||262144&n&&1&_.flags){if(a=J(Rt,Im(e,-67108865),3))return M(c),a}else{if(a=J(_,e,1,!1,void 0,r))return M(c),a;if(a=J(nc(_,t),e,1,i&&!(l&n&262144),void 0,r))return M(c),a}if(el(t)){var S=zc(t.indexType);if(S&&(a=J(Y_(t.objectType,S),e,1,i)))return M(c),a}}}else if(4194304&n){if(a=J(At,e,1,i))return M(c),a}else if(134217728&n&&!(524288&l)){if(!(134217728&l))if((_=Hc(t))&&_!==t&&(a=J(_,e,1,i)))return M(c),a}else if(268435456&n){if(268435456&l&&t.symbol===e.symbol){if(a=J(t.type,e.type,3,i))return M(c),a}else if((_=Hc(t))&&(a=J(_,e,1,i)))return M(c),a}else if(16777216&n){if(lf(t,F,I,10))return M(c),3;if(16777216&l){D=t.root.inferTypeParameters,S=t.extendsType,_=void 0;if(D&&(Lg((D=dg(D,void 0,0,j)).inferences,e.extendsType,S,1536),S=ip(S,D.mapper),_=D.mapper),pp(S,e.extendsType)&&(J(t.checkType,e.checkType,3)||J(e.checkType,t.checkType,3))&&((a=J(ip(cd(t),_),cd(e),3,i))&&(a&=J(ld(t),ld(e),3,i)),a))return M(c),a}else{var T=Qc(t)?qc(t):void 0;if(T&&(a=J(T,e,1,i)))return M(c),a}T=Vc(t);if(T&&(a=J(T,e,1,i)))return M(c),a}else{if(w!==zn&&w!==Kn&&function(e){return 32&zC.getObjectFlags(e)&&4&wc(e)}(e)&&Op(t))return-1;if(Mc(e))return Mc(t)&&(a=function(e,t,r){if(w===Vn||(w===qn?wc(e)===wc(t):Oc(e)<=Oc(t))){var n=kc(t),i=ip(kc(e),Kd(Oc(e)<0?U:V));if(n=J(n,i,3,r)){i=jd([Cc(e)],[Cc(t)]);if(ip(Ec(e),i)===ip(Ec(t),i))return n&J(ip(Nc(e),i),Nc(t),3,r)}}return 0}(t,e,i))?(M(c),a):0;var C,T=!!(131068&n);if(w!==qn)t=tl(t),n=t.flags;else if(Mc(t))return 0;if(4&zC.getObjectFlags(t)&&4&zC.getObjectFlags(e)&&t.target===e.target&&!Of(t)&&!$p(t)&&!$p(e)){if(Df(t))return-1;if((C=Qp(t.target))===zC.emptyArray)return 1;if(void 0!==(k=N(pu(t),pu(e),C,r)))return k}else{if(gf(e)?mf(t):ff(e)&&Of(t)&&!t.target.readonly)return w!==qn?J(bl(t,dt)||Xe,bl(e,dt)||Xe,3,i):0;if((w===zn||w===Kn)&&Op(e)&&8192&zC.getObjectFlags(e)&&!Op(t))return 0}if(2621440&n&&524288&l){var k=i&&A===c.errorInfo&&!T;if((a=G(t,e,k,void 0,r))&&(a&=Q(t,e,0,k))&&(a&=Q(t,e,1,k))&&(a&=Y(t,e,T,k,r)),s&&a)A=o||A||c.errorInfo;else if(a)return a}if(2621440&n&&1048576&l){e=Im(e,36175872);if(1048576&e.flags){e=function(s,c){var l=tm(Jc(s),c);if(!l)return 0;for(var e=1,t=0,r=l;t<r.length;t++){var n=r[t];if(25<(e*=function(e){return 1048576&e.flags?e.types.length:1}(ds(n))))return null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:s.id,targetId:c.id,numCombinations:e}),0}for(var i=new Array(l.length),a=new zC.Set,o=0;o<l.length;o++){var u=ds(n=l[o]);i[o]=1048576&u.flags?u.types:[u],a.add(n.escapedName)}for(var _=zC.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<l.length;a++){var o=function(t){var e=l[t],r=_l(i,e.escapedName);return r?e===r?"continue":W(s,c,e,r,function(e){return n[t]},!1,0,ee||w===Vn)?void 0:"continue-outer":"continue-outer"}(a);if("continue-outer"===o)continue e}zC.pushIfUnique(d,i,zC.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&=G(s,b,!1,a,0))&&(y&=Q(s,b,0,!1))&&(!(y&=Q(s,b,1,!1))||Of(s)&&Of(b)||(y&=Y(s,b,!1,!1,0))),!y)return y}return y}(t,e);if(e)return e}}}return 0;function E(e){return e?zC.reduceLeft(e,function(e,t){return e+1+E(t.next)},0):0}function N(e,t,r,n){if(a=function(e,t,r,n,i){if(void 0===e&&(e=zC.emptyArray),void 0===t&&(t=zC.emptyArray),void 0===r&&(r=zC.emptyArray),e.length!==t.length&&w===qn)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,l=7&c;if(4!=l){var u=e[s],_=t[s],d=-1;if(8&c?d=w===qn?J(u,_,3,!1):fp(u,_):1==l?d=J(u,_,3,n,void 0,i):2==l?d=J(_,u,3,n,void 0,i):3==l?d=(d=J(_,u,3,!1))||J(u,_,3,n,void 0,i):(d=J(u,_,3,n,void 0,i))&&(d&=J(_,u,3,n,void 0,i)),!d)return 0;o&=d}}return o}(e,t,r,i,n))return a;if(zC.some(r,function(e){return!!(24&e)}))return o=void 0,void M(c);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(s=!t,r!==zC.emptyArray&&!t){if(s&&(!i||!zC.some(r,function(e){return 0==(7&e)})))return 0;o=A,M(c)}}}(e,t,r,n),null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.pop()),Ur=Ur&&_,1&i&&I--,2&i&&O--,y=o,d){if(-1===d||0===I&&0===O){if(-1===d||3===d)for(u=c;u<m;u++)w.set(g[u],1|p);m=c}}else w.set(s,2|(r?4:0)|p),m=c;return d}function U(e){return!Ur||e!==qt&&e!==Wt&&e!==Vr||Ur(!1),e}function V(e){return!Ur||e!==qt&&e!==Wt&&e!==Vr||Ur(!0),e}function q(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 W(e,t,r,n,i,a,o,s){var c,l=zC.getDeclarationModifierFlagsFromSymbol(r),u=zC.getDeclarationModifierFlagsFromSymbol(n);if(8&l||8&u){if(r.valueDeclaration!==n.valueDeclaration)return a&&(8&l&&8&u?B(zC.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,$a(n)):B(zC.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,$a(n),to(8&l?e:t),to(8&l?t:e))),0}else if(16&u){if(c=r,af(n,function(e){return!!(16&zC.getDeclarationModifierFlagsFromSymbol(e))&&(t=c,r=of(e),!af(t,function(e){e=of(e);return!!e&&gs(e,r)}));var t,r}))return a&&B(zC.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,$a(n),to(of(r)||e),to(of(n)||t)),0}else if(16&l)return a&&B(zC.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,$a(n),to(e),to(t)),0;if(w===Kn&&Xb(r)&&!Xb(n))return 0;var _,d,i=(_=r,d=n,u=i,l=a,i=o,o=ee&&!!(48&zC.getCheckFlags(d)),o=Oo(ds(d),!1,o),J(u(_),o,3,l,void 0,i));return i?s||!(16777216&r.flags)||16777216&n.flags?i:(a&&B(zC.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,$a(n),to(e),to(t)),0):(a&&R(zC.Diagnostics.Types_of_property_0_are_incompatible,$a(n)),0)}function H(e,t,r,n){var i=!1;if(r.valueDeclaration&&zC.isNamedDeclaration(r.valueDeclaration)&&zC.isPrivateIdentifier(r.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){var a=r.valueDeclaration.name.escapedText,o=zC.getSymbolNameForPrivateIdentifier(e.symbol,a);if(o&&_l(e,o)){var o=zC.factory.getDeclarationName(e.symbol.valueDeclaration),s=zC.factory.getDeclarationName(t.symbol.valueDeclaration);return void B(zC.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Ci(a),Ci(""===o.escapedText?UC:o),Ci(""===s.escapedText?UC:s))}}s=zC.arrayFrom(kg(e,t,n,!1));c&&(c.code===zC.Diagnostics.Class_0_incorrectly_implements_interface_1.code||c.code===zC.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=$a(r),B.apply(void 0,__spreadArray([zC.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,n],ro(e,t),!1)),zC.length(r.declarations)&&(n=zC.createDiagnosticForNode(r.declarations[0],zC.Diagnostics._0_is_declared_here,n),zC.Debug.assert(!!A),l?l.push(n):l=[n]),i&&A&&_++):x(e,t,!1)&&(5<s.length?B(zC.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,to(e),to(t),zC.map(s.slice(0,4),function(e){return $a(e)}).join(", "),s.length-4):B(zC.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,to(e),to(t),zC.map(s,function(e){return $a(e)}).join(", ")),i&&A&&_++)}function G(e,t,r,n,i){if(w===qn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;e=q(Rc(e),r),r=q(Rc(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=Bc(t,o.escapedName);if(!s)return 0;s=_f(o,s,J);if(!s)return 0;n&=s}return n}(e,t,n);var a=-1;if(Of(t)){if(mf(e)){if(!t.target.readonly&&(gf(e)||Of(e)&&e.target.readonly))return 0;var o=fu(e),s=fu(t),c=Of(e)?4&e.target.combinedFlags:4,l=4&t.target.combinedFlags,u=Of(e)?e.target.minLength:0,_=t.target.minLength;if(!c&&o<_)return r&&B(zC.Diagnostics.Source_has_0_element_s_but_target_requires_1,o,_),0;if(!l&&s<u)return r&&B(zC.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,u,s),0;if(!l&&(c||s<o))return r&&(u<_?B(zC.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,_):B(zC.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,s)),0;for(var d=pu(e),p=pu(t),f=Math.min(Of(e)?o_(e.target,11):0,o_(t.target,11)),g=Math.min(Of(e)?s_(e.target,11):0,l?s_(t.target,11):0),m=!!n,y=0;y<s;y++){var h=y<s-g?y:y+o-s,v=Of(e)&&(y<f||s-g<=y)?e.target.elementFlags[h]:4,b=t.target.elementFlags[y];if(8&b&&!(8&v))return r&&B(zC.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,y),0;if(8&v&&!(12&b))return r&&B(zC.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,h,y),0;if(1&b&&!(1&v))return r&&B(zC.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,y),0;if(!(m&&((12&v||12&b)&&(m=!1),m&&null!=n&&n.has(""+y)))){var x=Of(e)?y<f||s-g<=y?Yf(d[h],!!(v&b&2)):Bf(e,f,g)||xt:d[0],D=p[y];if(!(A=J(x,8&v&&4&b?Qu(D):Yf(D,!!(2&b)),3,r,void 0,i)))return r&&(1<s||1<o)&&(y<f||s-g<=y||o-f-g==1?R(zC.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,h,y):R(zC.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,o-g-1,y)),0;a&=A}}return a}if(12&t.target.combinedFlags)return 0}_=!(w!==zn&&w!==Kn||jg(e)||Df(e)||Of(e)),l=Eg(e,t,_,!1);if(l)return r&&function(e,t){var r=dl(e,0),n=dl(e,1),e=Rc(e);if(!r.length&&!n.length||e.length)return!0;if(pl(t,0).length&&r.length||pl(t,1).length&&n.length)return!0;return!1}(e,t)&&H(e,t,l,_),0;if(jg(t))for(var S=0,T=q(Jc(e),n);S<T.length;S++){var C=T[S];if(!Bc(t,C.escapedName))if(!(32768&(x=_s(C)).flags))return r&&B(zC.Diagnostics.Property_0_does_not_exist_on_type_1,$a(C),to(t)),0}for(var _=Jc(t),k=Of(e)&&Of(t),E=0,N=q(_,n);E<N.length;E++){var A,F=N[E],P=F.escapedName;if(!(4194304&F.flags)&&(!k||zC.isNumericLiteralName(P)||"length"===P))if((C=_l(e,P))&&C!==F){if(!(A=W(e,t,C,F,ds,r,i,w===Vn)))return 0;a&=A}}return a}function Q(e,t,r,n){if(w===qn)return function(e,t,r){var n=pl(e,r),i=pl(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=df(n[o],i[o],!1,!1,!1,J);if(!s)return 0;a&=s}return a}(e,t,r);if(t===zt||e===zt)return-1;var i=e.symbol&&tb(e.symbol.valueDeclaration),a=t.symbol&&tb(t.symbol.valueDeclaration),o=pl(e,i&&1===r?0:r),s=pl(t,a&&1===r?0:r);if(1===r&&o.length&&s.length){var c=!!(4&o[0].flags),l=!!(4&s[0].flags);if(c&&!l)return n&&B(zC.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=zC.getSelectedEffectiveModifierFlags(e.declaration,24),t=zC.getSelectedEffectiveModifierFlags(t.declaration,24);if(8===t)return!0;if(16===t&&8!==e)return!0;if(16!==t&&!e)return!0;r&&B(zC.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,co(e),co(t));return!1}(o[0],s[0],n))return 0}var u=-1,_=1===r?E:k,i=zC.getObjectFlags(e),a=zC.getObjectFlags(t);if(64&i&&64&a&&e.symbol===t.symbol||4&i&&4&a&&e.target===t.target)for(var d=0;d<s.length;d++){if(!(x=N(o[d],s[d],!0,n,_(o[d],s[d]))))return 0;u&=x}else if(1===o.length&&1===s.length){c=w===Vn||!!$.noStrictGenericChecks,l=zC.first(o),t=zC.first(s);if(!(u=N(l,t,c,n,_(l,t)))&&n&&1===r&&i&a&&(171===(null===(a=t.declaration)||void 0===a?void 0:a.kind)||171===(null===(p=l.declaration)||void 0===p?void 0:p.kind))){var p=function(e){return eo(e,void 0,262144,r)};return B(zC.Diagnostics.Type_0_is_not_assignable_to_type_1,p(l),p(t)),B(zC.Diagnostics.Types_of_construct_signatures_are_incompatible),u}}else e:for(var f=0,g=s;f<g.length;f++){for(var m=g[f],y=L(),h=n,v=0,b=o;v<b.length;v++){var x,D=b[v];if(x=N(D,m,!0,h,_(D,m))){u&=x,M(y);continue e}h=!1}return h&&B(zC.Diagnostics.Type_0_provides_no_match_for_the_signature_1,to(e),eo(m,void 0,void 0,r)),0}return u}function k(e,t){return 0===e.parameters.length&&0===t.parameters.length?function(e,t){return R(zC.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,to(e),to(t))}:function(e,t){return R(zC.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,to(e),to(t))}}function E(e,t){return 0===e.parameters.length&&0===t.parameters.length?function(e,t){return R(zC.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,to(e),to(t))}:function(e,t){return R(zC.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,to(e),to(t))}}function N(e,t,r,n,i){return Pp(r?Gl(e):e,r?Gl(t):t,w===Kn?8:0,n,B,i,j,Kd(V))}function X(e,t,r){var n=J(e.type,t.type,3,r);return!n&&r&&(e.keyType===t.keyType?B(zC.Diagnostics._0_index_signatures_are_incompatible,to(e.keyType)):B(zC.Diagnostics._0_and_1_index_signatures_are_incompatible,to(e.keyType),to(t.keyType))),n}function Y(e,t,r,n,i){if(w===qn)return function(e,t){var r=hl(e),t=hl(t);if(r.length!==t.length)return 0;for(var n=0,i=t;n<i.length;n++){var a=i[n],o=vl(e,a.keyType);if(!o||!J(o.type,a.type,3)||o.isReadonly!==a.isReadonly)return 0}return-1}(e,t);for(var t=hl(t),a=zC.some(t,function(e){return e.keyType===_t}),o=-1,s=0,c=t;s<c.length;s++){var l=c[s],l=!r&&a&&1&l.type.flags?-1:Mc(e)&&a?J(Nc(e),l.type,3,n):function(e,t,r,n){var i=Dl(e,t.keyType);if(i)return X(i,t,r);if(!(1&n)&&eg(e))return function(e,t,r){for(var n=-1,i=t.keyType,a=0,o=(2097152&e.flags?jc:Rc)(e);a<o.length;a++){var s=o[a];if(!Jp(e,s)&&ml(N_(s,8576),i)){var c=ds(s);if(!(_=J(re||32768&c.flags||i===dt||!(16777216&s.flags)?c:_m(c,524288),t.type,3,r)))return r&&B(zC.Diagnostics.Property_0_is_incompatible_with_index_signature,$a(s)),0;n&=_}}for(var l=0,u=hl(e);l<u.length;l++){var _,d=u[l];if(ml(d.keyType,i)){if(!(_=X(d,t,r)))return 0;n&=_}}return n}(e,t,r);r&&B(zC.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,to(t.keyType),to(e));return 0}(e,l,n,i);if(!l)return 0;o&=l}return o}}function Up(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!zC.forEach(e.types,Up);if(465829888&e.flags){var t=zc(e);if(t&&t!==e)return Up(t)}return kf(e)||!!(134217728&e.flags)}function Vp(t,e){return Of(t)&&Of(e)?zC.emptyArray:Jc(e).filter(function(e){return qp(bo(t,e.escapedName),_s(e))})}function qp(e,t){return!!e&&!!t&&nx(e,32768)&&!!Zf(t)}function Wp(e,t,r){return void 0===r&&(r=gp),JC(e,t,r,!0)||function(r,e){var n=zC.getObjectFlags(r);if(20&n&&1048576&e.flags)return zC.find(e.types,function(e){if(524288&e.flags){var t=n&zC.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&zC.getObjectFlags(e)&&Em(t,vf))return zC.find(t.types,function(e){return!vf(e)})}(e,t)||function(e,t){var r=0;if(0<pl(e,r).length||0<pl(e,r=1).length)return zC.find(t.types,function(e){return 0<pl(e,r).length})}(e,t)||function(e,t){var r;if(!(406978556&e.flags))for(var n=0,i=0,a=t.types;i<a.length;i++){var o=a[i];if(!(406978556&o.flags)){var s=x_([P_(e),P_(o)]);if(4194304&s.flags)return o;(kf(s)||1048576&s.flags)&&(s=1048576&s.flags?zC.countWhere(s.types,kf):1,n<=s&&(r=o,n=s))}}return r}(e,t)}function Hp(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],l=c[0],u=c[1],c=il(e,u);if(!(i&&c&&16&zC.getCheckFlags(c)))for(var _=0,d=0,p=e.types;d<p.length;d++){var f=bo(p[d],u);f&&r(l(),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(!pp(e.types[g],e.types[m]))return n;m=a.indexOf(!0,m+1)}return e.types[g]}function Gp(e){if(524288&e.flags){var t=Lc(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&0<t.properties.length&&zC.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&e.flags)&&zC.every(e.types,Gp)}function Qp(e){return e===tr||e===rr||8&e.objectFlags?g:Yp(e.symbol,e.typeParameters)}function Xp(e){return Yp(e,mi(e).typeParameters)}function Yp(s,e){void 0===e&&(e=zC.emptyArray);var t=mi(s);if(!t.variances){null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.push("checkTypes","getVariancesWorker",{arity:e.length,id:Rs(s).id}),t.variances=zC.emptyArray;for(var c=[],r=0,n=e;r<n.length;r++)!function(e){var t,r,n,i,a=ef(e),o=65536&a?32768&a?0:1:32768&a?2:void 0;void 0===o&&(r=t=!1,n=Ur,Ur=function(e){return e?r=!0:t=!0},i=Zp(s,e,qt),3===(o=(hp(a=Zp(s,e,Wt),i)?1:0)|(hp(i,a)?2:0))&&hp(Zp(s,e,Vr),i)&&(o=4),Ur=n,(t||r)&&(t&&(o|=8),r&&(o|=16))),c.push(o)}(n[r]);t.variances=c,null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.pop()}return t.variances}function Zp(e,t,r){t=zd(t,r),r=Rs(e);if(Do(r))return r;t=524288&e.flags?mu(e,Ld(mi(e).typeParameters,t)):uu(r,Ld(r.typeParameters,t));return qe.add(t.id),t}function $p(e){return qe.has(e.id)}function ef(e){var t;return(zC.some(null===(t=e.symbol)||void 0===t?void 0:t.declarations,function(e){return zC.hasSyntacticModifier(e,32768)})?32768:0)|(zC.some(null===(e=e.symbol)||void 0===e?void 0:e.declarations,function(e){return zC.hasSyntacticModifier(e,65536)})?65536:0)}function tf(e){return t=e,!!(4&zC.getObjectFlags(t))&&!t.node&&zC.some(pu(e),function(e){return!!(262144&e.flags)||tf(e)});var t}function rf(e,t,r,s){var c=[],l="",e=u(e,0),t=u(t,0);return"".concat(l).concat(e,",").concat(t).concat(r);function u(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,n=0,i=pu(e);n<i.length;n++){var a=i[n];if(262144&a.flags){if(s||262144&(o=a).flags&&!Kc(o)){var o=c.indexOf(a);o<0&&(o=c.length,c.push(a)),r+="="+o;continue}l="*"}else if(t<4&&tf(a)){r+="<"+u(a,t+1)+">";continue}r+="-"+a.id}return r}}function nf(e,t,r,n,i){n===qn&&e.id>t.id&&(n=e,e=t,t=n);r=r?":"+r:"";return tf(e)&&tf(t)?rf(e,t,r,i):"".concat(e.id,",").concat(t.id).concat(r)}function af(e,t){if(!(6&zC.getCheckFlags(e)))return t(e);for(var r=0,n=e.containingType.types;r<n.length;r++){var i=_l(n[r],e.escapedName),i=i&&af(i,t);if(i)return i}}function of(e){return e.parent&&32&e.parent.flags?Rs(xa(e)):void 0}function sf(e){var t=of(e),t=t&&Es(t)[0];return t&&bo(t,e.escapedName)}function cf(t,e,r){return af(e,function(e){return!!(16&zC.getDeclarationModifierFlagsFromSymbol(e,r))&&!gs(t,of(e))})?void 0:t}function lf(e,t,r,n){if(void 0===n&&(n=3),n<=r)for(var i=uf(e),a=0,o=0,s=0;s<r;s++){var c=t[s];if(uf(c)===i){if(c.id>=o&&n<=++a)return 1;o=c.id}}}function uf(e){if(524288&e.flags&&!Jg(e)){if(zC.getObjectFlags(e)&&e.node)return e.node;if(e.symbol&&!(16&zC.getObjectFlags(e)&&32&e.symbol.flags))return e.symbol;if(Of(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){for(;e=e.objectType,8388608&e.flags;);return e}return 16777216&e.flags?e.root:e}function _f(e,t,r){if(e===t)return-1;var n=24&zC.getDeclarationModifierFlagsFromSymbol(e);if(n!=(24&zC.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(n){if(LS(e)!==LS(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return Xb(e)!==Xb(t)?0:r(_s(e),_s(t))}function df(e,t,r,n,i,a){if(e===t)return-1;if(s=t,c=r,l=Eb(o=e),u=Eb(s),_=Nb(o),r=Nb(s),o=Ab(o),s=Ab(s),(l!==u||_!==r||o!==s)&&!(c&&_<=r))return 0;var o,s,c,l,u,_;if(zC.length(e.typeParameters)!==zC.length(t.typeParameters))return 0;if(t.typeParameters){for(var d=jd(e.typeParameters,t.typeParameters),p=0;p<t.typeParameters.length;p++)if(!((b=e.typeParameters[p])===(h=t.typeParameters[p])||a(ip(au(b),d)||nt,au(h)||nt)&&a(ip(Zc(b),d)||nt,Zc(h)||nt)))return 0;e=Qd(e,d,!0)}var f=-1;if(!n){var g=Bl(e);if(g){var m=Bl(t);if(m){if(!(v=a(g,m)))return 0;f&=v}}}for(var y=Eb(t),p=0;p<y;p++){var h,v,b=Tb(e,p);if(!(v=a(h=Tb(t,p),b)))return 0;f&=v}return i||(g=jl(e),m=jl(t),f&=g||m?(i=m,m=a,(g=g)&&i&&g_(g,i)?g.type===i.type?-1:g.type&&i.type?m(g.type,i.type):0:0):a(zl(e),zl(t))),f}function pf(e){return 1===e.length?e[0]:function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t],i=Af(n),a=a||i;if(i===n||i!==a)return}return 1}(e)?f_(e):zC.reduceLeft(e,function(e,t){return yp(e,t)?t:e})}function ff(e){return!!(4&zC.getObjectFlags(e))&&(e.target===tr||e.target===rr)}function gf(e){return!!(4&zC.getObjectFlags(e))&&e.target===rr}function mf(e){return ff(e)||Of(e)}function yf(e){return ff(e)&&!gf(e)||Of(e)&&!e.target.readonly}function hf(e){return ff(e)?pu(e)[0]:void 0}function vf(e){return ff(e)||!(98304&e.flags)&&hp(e,ur)}function bf(e){if(4&zC.getObjectFlags(e)&&3&zC.getObjectFlags(e.target)){if(33554432&zC.getObjectFlags(e))return 67108864&zC.getObjectFlags(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;var t=e.target;if(1&zC.getObjectFlags(t)){var r=Ds(t);if(r&&79!==r.expression.kind&&206!==r.expression.kind)return}r=Es(t);if(1===r.length&&!tc(e.symbol).size){r=zC.length(t.typeParameters)?ip(r[0],jd(t.typeParameters,pu(e).slice(0,t.typeParameters.length))):r[0];return zC.length(pu(e))>zC.length(t.typeParameters)&&(r=nc(r,zC.last(pu(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}}}function xf(e){return ee?e===Tt:e===ot}function Df(e){e=hf(e);return e&&xf(e)}function Sf(e){return Of(e)||!!_l(e,"0")}function Tf(e){return vf(e)||Sf(e)}function Cf(e){return!(240512&e.flags)}function kf(e){return!!(109440&e.flags)}function Ef(e){return 2097152&e.flags?zC.some(e.types,kf):109440&e.flags}function Nf(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||zC.every(e.types,kf):kf(e))}function Af(e){return 1024&e.flags?Is(e):402653312&e.flags?_t:256&e.flags?dt:2048&e.flags?pt:512&e.flags?ht:1048576&e.flags?Pm(e,Af):e}function Ff(e){return 1024&e.flags&&Cd(e)?Is(e):128&e.flags&&Cd(e)?_t:256&e.flags&&Cd(e)?dt:2048&e.flags&&Cd(e)?pt:512&e.flags&&Cd(e)?ht:1048576&e.flags?Pm(e,Ff):e}function Pf(e){return 8192&e.flags?vt:1048576&e.flags?Pm(e,Pf):e}function wf(e,t){return bx(e,t)||(e=Pf(Ff(e))),e}function If(e,t,r,n){return e&&kf(e)&&(e=wf(e,t?vS(r,t,n):void 0)),e}function Of(e){return!!(4&zC.getObjectFlags(e)&&8&e.target.objectFlags)}function Mf(e){return Of(e)&&!!(8&e.target.combinedFlags)}function Lf(e){return Mf(e)&&1===e.target.elementFlags.length}function Rf(e){return Bf(e,e.target.fixedLength)}function Bf(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=fu(e)-r;if(t<i){for(var a=pu(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?Y_(c,dt):c)}return(n?x_:f_)(o)}}function jf(e){return"0"===e.value.base10Value}function Jf(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=zf(n[r]);return t}function zf(e){return 1048576&e.flags?Jf(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?jf(e)?2048:0:512&e.flags?e===ft||e===gt?512:0:117724&e.flags}function Kf(e){return 117632&zf(e)?Am(e,function(e){return!(117632&zf(e))}):e}function Uf(e){return 4&e.flags?pn:8&e.flags?fn:64&e.flags?gn:e===gt||e===ft||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&jf(e)?e:xt}function Vf(e,t){t=t&~e.flags&98304;return 0==t?e:f_(32768==t?[e,at]:65536==t?[e,lt]:[e,at,lt])}function qf(e,t){return void 0===t&&(t=!1),zC.Debug.assert(ee),32768&e.flags?e:f_([e,t?ct:at])}function Wf(e){return ee?(t=_m(t=e,2097152),(_r=_r||(Ou("NonNullable",524288,void 0)||We))!==We?mu(_r,[t]):t):e;var t}function Hf(e){return ee?f_([e,st]):e}function Gf(e){return ee?Fm(e,st):e}function Qf(e,t,r){return r?(zC.isOutermostOptionalChain(t)?qf:Hf)(e):e}function Xf(e,t){return zC.isExpressionOfOptionalChainRoot(t)?Wf(e):zC.isOptionalChain(t)?Gf(e):e}function Yf(e,t){return re&&t?Fm(e,ct):e}function Zf(e){return re&&(e===ct||1048576&e.flags&&l_(e.types,ct))}function $f(e){return re?Fm(e,ct):_m(e,524288)}function eg(e){return 2097152&e.flags?zC.every(e.types,eg):!(!e.symbol||0==(7040&e.symbol.flags)||32&e.symbol.flags||NT(e))||!!(1024&zC.getObjectFlags(e)&&eg(e.source))}function tg(e,t){var r=si(e.flags,e.escapedName,8&zC.getCheckFlags(e));r.declarations=e.declarations,r.parent=e.parent,r.type=t,(r.target=e).valueDeclaration&&(r.valueDeclaration=e.valueDeclaration);e=mi(e).nameType;return e&&(r.nameType=e),r}function rg(e){if(!(jg(e)&&8192&zC.getObjectFlags(e)))return e;var t=e.regularType;if(t)return t;var r=e,t=function(e,t){for(var r=zC.createSymbolTable(),n=0,i=Rc(e);n<i.length;n++){var a=i[n],o=_s(a),s=t(o);r.set(a.escapedName,s===o?a:tg(a,s))}return r}(e,rg),t=Ba(r.symbol,t,r.callSignatures,r.constructSignatures,r.indexInfos);return t.flags=r.flags,t.objectFlags|=-8193&r.objectFlags,e.regularType=t}function ng(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function ig(e){if(!e.resolvedProperties){for(var t=new zC.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];!jg(a)||(a=Bc(a,t.propertyName))&&km(_s(a),function(e){r.push(e)})}t.siblings=r}return t.siblings}(e);r<n.length;r++){var i=n[r];if(jg(i)&&!(2097152&zC.getObjectFlags(i)))for(var a=0,o=Jc(i);a<o.length;a++){var s=o[a];t.set(s.escapedName,s)}}e.resolvedProperties=zC.arrayFrom(t.values())}return e.resolvedProperties}function ag(e,t){for(var r,n,i=zC.createSymbolTable(),a=0,o=Rc(e);a<o.length;a++){var s=o[a];i.set(s.escapedName,function(e,t){if(!(4&e.flags))return e;var r=_s(e);return(t=sg(r,t&&ng(t,e.escapedName,void 0)))===r?e:tg(e,t)}(s,t))}if(t)for(var c=0,l=ig(t);c<l.length;c++){s=l[c];i.has(s.escapedName)||i.set(s.escapedName,(r=s,n=void 0,(n=Ve.get(r.escapedName))||((n=tg(r,ct)).flags|=16777216,Ve.set(r.escapedName,n),n)))}var u=Ba(e.symbol,i,zC.emptyArray,zC.emptyArray,zC.sameMap(hl(e),function(e){return $l(e.keyType,og(e.type),e.isReadonly)}));return u.objectFlags|=266240&zC.getObjectFlags(e),u}function og(e){return sg(e,void 0)}function sg(e,t){if(196608&zC.getObjectFlags(e)){if(void 0===t&&e.widened)return e.widened;var r,n,i=void 0;return 98305&e.flags?i=Xe:jg(e)?i=ag(e,t):1048576&e.flags?(r=t||ng(void 0,void 0,e.types),i=f_(n=zC.sameMap(e.types,function(e){return 98304&e.flags?e:sg(e,r)}),zC.some(n,Op)?2:1)):2097152&e.flags?i=x_(zC.sameMap(e.types,og)):mf(e)&&(i=uu(e.target,zC.sameMap(pu(e),og))),i&&void 0===t&&(e.widened=i),i||e}return e}function cg(e,t,r){var n,i=to(og(t));if(!zC.isInJSFile(e)||zC.isCheckJsEnabledForFile(zC.getSourceFileOfNode(e),$)){switch(e.kind){case 221:case 167:case 166:n=te?zC.Diagnostics.Member_0_implicitly_has_an_1_type:zC.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 164:var a=e;if(zC.isIdentifier(a.name)&&(zC.isCallSignatureDeclaration(a.parent)||zC.isMethodSignature(a.parent)||zC.isFunctionTypeNode(a.parent))&&-1<a.parent.parameters.indexOf(a)&&(Di(a,a.name.escapedText,788968,void 0,a.name.escapedText,!0)||a.name.originalKeywordKind&&zC.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a),a=zC.declarationNameToString(a.name)+(a.dotDotDotToken?"[]":"");return void ri(te,e,zC.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,a)}n=e.dotDotDotToken?te?zC.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:zC.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:te?zC.Diagnostics.Parameter_0_implicitly_has_an_1_type:zC.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 203:if(n=zC.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!te)return;break;case 317:return void ei(e,zC.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 256:case 169:case 168:case 172:case 173:case 213:case 214:if(te&&!e.name)return void ei(e,3===r?zC.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:zC.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);n=te?3===r?zC.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:zC.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:zC.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 195:return void(te&&ei(e,zC.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:n=te?zC.Diagnostics.Variable_0_implicitly_has_an_1_type:zC.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}ri(te,e,n,zC.declarationNameToString(zC.getNameOfDeclaration(e)),i)}}function lg(e,t,r){C(function(){!(te&&65536&zC.getObjectFlags(t))||r&&qy(e)||!function e(t){var r=!1;if(65536&zC.getObjectFlags(t)){if(1048576&t.flags)if(zC.some(t.types,Op))r=!0;else for(var n=0,i=t.types;n<i.length;n++)e(u=i[n])&&(r=!0);if(mf(t))for(var a=0,o=pu(t);a<o.length;a++)e(u=o[a])&&(r=!0);if(jg(t))for(var s=0,c=Rc(t);s<c.length;s++){var l=c[s],u=_s(l);65536&zC.getObjectFlags(u)&&(e(u)||ei(l.valueDeclaration,zC.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,$a(l),to(og(u))),r=!0)}}return r}(t)&&cg(e,t,r)})}function ug(e,t,r){var n=Eb(e),i=Eb(t),a=Fb(e),o=Fb(t),i=o?i-1:i,s=a?i:Math.min(n,i),n=Bl(e);!n||(i=Bl(t))&&r(n,i);for(var c=0;c<s;c++)r(Tb(e,c),Tb(t,c));o&&r(kb(e,s),o)}function _g(e,t,r){var n=jl(e),i=jl(t);n&&i&&g_(n,i)&&n.type&&i.type?r(n.type,i.type):r(zl(e),zl(t))}function dg(e,t,r,n){return pg(e.map(yg),t,r,n||gp)}function pg(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:Kd(function(e){return fg(i,e,!0)}),nonFixingMapper:Kd(function(e){return fg(i,e,!1)})};return i}function fg(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&&(function(e){if(e.intraExpressionInferenceSites){for(var t=0,r=e.intraExpressionInferenceSites;t<r.length;t++){var n=r[t],i=n.node,n=n.type,i=(169===i.kind?Ay:jy)(i,2);i&&Lg(e.inferences,n,i)}e.intraExpressionInferenceSites=void 0}}(e),gg(n),a.isFixed=!0),Ug(e,i)}return t}function gg(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function mg(e,t,r){var n;(null!==(n=e.intraExpressionInferenceSites)&&void 0!==n?n:e.intraExpressionInferenceSites=[]).push({node:t,type:r})}function yg(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function hg(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 vg(e){return e&&e.mapper}function bg(e){var t=zC.getObjectFlags(e);if(524288&t)return!!(1048576&t);t=!!(465829888&e.flags||524288&e.flags&&!xg(e)&&(4&t&&(e.node||zC.forEach(pu(e),bg))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!xg(e)&&zC.some(e.types,bg));return 3899393&e.flags&&(e.objectFlags|=524288|(t?1048576:0)),t}function xg(e){if(e.aliasSymbol&&!e.aliasTypeArguments){e=zC.getDeclarationOfKind(e.aliasSymbol,259);return e&&zC.findAncestor(e.parent,function(e){return 305===e.kind||261!==e.kind&&"quit"})}}function Dg(e,t){return!!(e===t||3145728&e.flags&&zC.some(e.types,function(e){return Dg(e,t)})||16777216&e.flags&&(cd(e)===t||ld(e)===t))}function Sg(e,t,r){if(!on){var n=e.id+","+t.id+","+r.id;if(an.has(n))return an.get(n);on=!0;r=function(e,t,r){if(!(vl(e,_t)||0!==Jc(e).length&&Tg(e)))return;if(ff(e))return Qu(Cg(pu(e)[0],t,r),gf(e));if(Of(e)){var n=zC.map(pu(e),function(e){return Cg(e,t,r)}),i=4&wc(t)?zC.sameMap(e.target.elementFlags,function(e){return 2&e?1:e}):e.target.elementFlags;return t_(n,i,e.target.readonly,e.target.labeledElementDeclarations)}i=wa(1040,void 0);return i.source=e,i.mappedType=t,i.constraintType=r,i}(e,t,r);return on=!1,an.set(n,r),r}}function Tg(e){return!(262144&zC.getObjectFlags(e))||jg(e)&&zC.some(Jc(e),function(e){return Tg(_s(e))})||Of(e)&&zC.some(pu(e),Tg)}function Cg(e,t,r){r=Y_(r.type,Cc(t)),t=Nc(t),r=yg(r);return Lg([r],e,t),Ng(r)||nt}function kg(t,r,n,i){var a,o,s,c,l;return __generator(this,function(e){switch(e.label){case 0:c=Jc(r),a=0,c=c,e.label=1;case 1:return a<c.length?qs(o=c[a])||!n&&(16777216&o.flags||48&zC.getCheckFlags(o))?[3,5]:(s=_l(t,o.escapedName))?[3,3]:[4,o]:[3,6];case 2:return e.sent(),[3,5];case 3:return i?!(109440&(c=_s(o)).flags)||1&(l=_s(s)).flags||Td(l)===Td(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 Eg(e,t,r,n){n=kg(e,t,r,n).next();if(!n.done)return n.value}function Ng(e){return e.candidates?f_(e.candidates,2):e.contraCandidates?x_(e.contraCandidates):void 0}function Ag(e){return!!yi(e).skipDirectInference}function Fg(e){return e.symbol&&zC.some(e.symbol.declarations,Ag)}function Pg(e,t){if(e===t||5&t.flags)return!0;if(128&e.flags){var r=e.value;return!!(8&t.flags&&""!==r&&isFinite(+r)||64&t.flags&&""!==r&&function(e){var t=zC.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)}(r)||98816&t.flags&&r===t.intrinsicName)}if(134217728&e.flags){r=e.texts;return 2===r.length&&""===r[0]&&""===r[1]&&hp(e.types[0],t)}return hp(e,t)}function wg(e,t){return 128&e.flags?Mg([e.value],zC.emptyArray,t):134217728&e.flags?zC.arraysEqual(e.texts,t.texts)?zC.map(e.types,Og):Mg(e.texts,e.types,t):void 0}function Ig(e,r){e=wg(e,r);return!!e&&zC.every(e,function(e,t){return Pg(e,r.types[t])})}function Og(e){return 402653317&e.flags?e:I_(["",""],[e])}function Mg(n,i,e){var t=n.length-1,r=n[0],a=n[t],o=e.texts,s=o.length-1,c=o[0],e=o[s];if(!(0===t&&r.length<c.length+e.length)&&r.startsWith(c)&&a.endsWith(e)){for(var l=a.slice(0,a.length-e.length),u=[],_=0,d=c.length,p=1;p<s;p++){var f=o[p];if(0<f.length){for(var g=_,m=d;!(0<=(m=y(g).indexOf(f,m)));){if(++g===n.length)return;m=0}h(g,m),d+=f.length}else if(d<y(_).length)h(_,d+1);else{if(!(_<t))return;h(_+1,0)}}return h(t,y(t).length),u}function y(e){return e<t?n[e]:l}function h(e,t){var r=e===_?kd(y(e).slice(d,t)):I_(__spreadArray(__spreadArray([n[_].slice(d)],n.slice(_+1,e),!0),[y(e).slice(0,t)],!1),i.slice(_,e));u.push(r),_=e,d=t}}function Lg(f,e,g,h,m){void 0===h&&(h=0),void 0===m&&(m=!1);var y,l,u,_,v=!1,b=2048,x=!0,d=0;function D(i,e){if(bg(e)){if(i===Ze){var t=y;return y=i,D(e,e),void(y=t)}if(i.aliasSymbol&&i.aliasTypeArguments&&i.aliasSymbol===e.aliasSymbol)k(i.aliasTypeArguments,e.aliasTypeArguments,Xp(i.aliasSymbol));else if(i===e&&3145728&i.flags)for(var r=0,n=i.types;r<n.length;r++){var a=n[r];D(a,a)}else{if(1048576&e.flags){var o=C(1048576&i.flags?i.types:[i],e.types,Rg),s=C(o[0],o[1],Bg),c=s[0];if(0===(o=s[1]).length)return;if(e=f_(o),0===c.length)return void S(i,e,1);i=f_(c)}else if(2097152&e.flags&&zC.some(e.types,function(e){return!!N(e)||Mc(e)&&!!N(Zd(e)||xt)})){if(!(1048576&i.flags)){s=C(2097152&i.flags?i.types:[i],e.types,pp),c=s[0],o=s[1];if(0===c.length||0===o.length)return;i=x_(c),e=x_(o)}}else 41943040&e.flags&&(e=rd(e));if(8650752&e.flags){if(i===tt||i===Dt||128&h&&(i===Ye||i===lr)||Fg(i))return;c=N(e);if(c)return 262144&zC.getObjectFlags(i)?void 0:(c.isFixed||((void 0===c.priority||h<c.priority)&&(c.candidates=void 0,c.contraCandidates=void 0,c.topLevel=!0,c.priority=h),h===c.priority&&(o=y||i,m&&!v?zC.contains(c.contraCandidates,o)||(c.contraCandidates=zC.append(c.contraCandidates,o),gg(f)):zC.contains(c.candidates,o)||(c.candidates=zC.append(c.candidates,o),gg(f))),!(128&h)&&262144&e.flags&&c.topLevel&&!Dg(g,e)&&(c.topLevel=!1,gg(f))),void(b=Math.min(b,h)));c=H_(e,!1);c!==e?D(i,c):8388608&e.flags&&(465829888&(c=H_(e.indexType,!1)).flags&&((d=G_(H_(e.objectType,!1),c,!1))&&d!==e&&D(i,d)))}if(!(4&zC.getObjectFlags(i)&&4&zC.getObjectFlags(e)&&(i.target===e.target||ff(i)&&ff(e)))||i.node&&e.node)if(4194304&i.flags&&4194304&e.flags)m=!m,D(i.type,e.type),m=!m;else if((Nf(i)||4&i.flags)&&4194304&e.flags){d=(d=i,p=zC.createSymbolTable(),km(d,function(e){var t,r;128&e.flags&&((r=si(4,t=zC.escapeLeadingUnderscores(e.value))).type=Xe,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),p.set(t,r))}),d=4&d.flags?[$l(_t,Rt,!1)]:zC.emptyArray,Ba(void 0,p,zC.emptyArray,zC.emptyArray,d));m=!m,S(d,e.type,256),m=!m}else if(8388608&i.flags&&8388608&e.flags)D(i.objectType,e.objectType),D(i.indexType,e.indexType);else if(268435456&i.flags&&268435456&e.flags)i.symbol===e.symbol&&D(i.type,e.type);else if(33554432&i.flags){D(i.baseType,e);var l=h;h|=4,D(i.substitute,e),h=l}else if(16777216&e.flags)T(i,e,F);else if(3145728&e.flags)A(i,e.types,e.flags);else if(1048576&i.flags)for(var u=0,_=i.types;u<_.length;u++)D(_[u],e);else if(134217728&e.flags)!function(e){var t=wg(i,e),r=e.types;if(t||zC.every(e.texts,function(e){return 0===e.length}))for(var n=0;n<r.length;n++)D(t?t[n]:xt,r[n])}(e);else{if(i=ol(i),!(512&h&&467927040&i.flags)){l=tl(i);if(l!==i&&x&&!(2621440&l.flags))return x=!1,D(l,e);i=l}2621440&i.flags&&T(i,e,P)}else k(pu(i),pu(e),Qp(i.target));var d,p}}}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=l&&l.get(s);b=void 0===c?((l=l||new zC.Map).set(s,-1),n=b,b=2048,i=d,a=uf(e),o=uf(t),zC.contains(u,a)&&(d|=1),zC.contains(_,o)&&(d|=2),3!==d?((u=u||[]).push(a),(_=_||[]).push(o),r(e,t),_.pop(),u.pop()):b=-1,d=i,l.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,l=e;c<l.length;c++){var u=l[c];r(u,s)&&(D(u,s),n=zC.appendIfUnique(n,u),i=zC.appendIfUnique(i,s))}return[n?zC.filter(e,function(e){return!zC.contains(n,e)}):e,i?zC.filter(t,function(e){return!zC.contains(i,e)}):t]}function k(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])?E:D)(e[i],t[i])}function E(e,t){M||1024&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,l=t;c<l.length;c++)if(N(g=l[c]))i=g,n++;else for(var u=0;u<a.length;u++){var _=b;b=2048,D(a[u],g),b===h&&(o[u]=!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&&zC.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=zC.flatMap(a,function(e,t){return o[t]?void 0:e});if(d.length)return void D(f_(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(cd(e),cd(t)),D(ld(e),ld(t))):(r=h,h|=m?64:0,A(e,[cd(t),ld(t)],t.flags),h=r)}function P(e,t){if(4&zC.getObjectFlags(e)&&4&zC.getObjectFlags(t)&&(e.target===t.target||ff(e)&&ff(t)))k(pu(e),pu(t),Qp(e.target));else{var r,n,i,a,o;if(Mc(e)&&Mc(t)&&(D(kc(e),kc(t)),D(Nc(e),Nc(t)),a=Ec(e),o=Ec(t),a&&o&&D(a,o)),32&zC.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,c=N(n.type);return!c||c.isFixed||Fg(t)||(s=Sg(t,r,n))&&S(s,c.typeParameter,262144&zC.getObjectFlags(t)?16:8),!0}if(262144&n.flags)return S(P_(t),n,32),(c=zc(n))&&e(t,r,c)||(n=zC.map(Jc(t),_s),c=zC.map(hl(t),function(e){return e!==Xr?e.type:xt}),D(f_(zC.concatenate(n,c)),Nc(r))),!0;return!1}(e,t,kc(t)))return;if(i=t,!(Of(n=e)&&Of(i)?(a=n,!(8&(o=i).target.combinedFlags)&&o.target.minLength>a.target.minLength||!o.target.hasRestElement&&(a.target.hasRestElement||o.target.fixedLength<a.target.fixedLength)):Eg(n,i,!1,!0)&&Eg(i,n,!1,!1))){if(mf(e)){if(Of(t)){var s=fu(e),c=fu(t),l=pu(t),u=t.target.elementFlags;if(Of(e)&&(r=t,fu(m=e)===fu(r)&&zC.every(m.target.elementFlags,function(e,t){return(12&e)==(12&r.target.elementFlags[t])}))){for(var _=0;_<c;_++)D(pu(e)[_],l[_]);return}for(var d=Of(e)?Math.min(e.target.fixedLength,t.target.fixedLength):0,p=Math.min(Of(e)?s_(e.target,3):0,t.target.hasRestElement?s_(t.target,3):0),_=0;_<d;_++)D(pu(e)[_],l[_]);if(!Of(e)||s-d-p==1&&4&e.target.elementFlags[d])for(var f=pu(e)[d],_=d;_<c-p;_++)D(8&u[_]?Qu(f):f,l[_]);else{var g,m=c-d-p;2==m&&u[d]&u[d+1]&8&&Of(e)?(g=N(l[d]))&&void 0!==g.impliedArity&&(D(i_(e,d,p+s-g.impliedArity),l[d]),D(i_(e,d+g.impliedArity,p),l[d+1])):1==m&&8&u[d]?(g=2&t.target.elementFlags[c-1],S(Of(e)?i_(e,d,p):Qu(pu(e)[0]),l[d],g?2:0)):1==m&&4&u[d]&&(f=Of(e)?Bf(e,d,p):pu(e)[0])&&D(f,l[d])}for(_=0;_<p;_++)D(pu(e)[s-_-1],l[c-_-1]);return}if(ff(t))return void I(e,t)}!function(e,t){for(var t=Rc(t),r=0,n=t;r<n.length;r++){var i=n[r],a=_l(e,i.escapedName);a&&!zC.some(a.declarations,Ag)&&D(_s(a),_s(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=pl(e,r),c=pl(t,r),l=s.length,u=c.length,_=l<u?l:u,d=!!(262144&zC.getObjectFlags(e)),p=0;p<_;p++)n=function(e){var t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;for(var r=Vd(t),n=jd(t,zC.map(t,function(e){return Kc(e)||nt})),i=zC.map(t,function(e){return ip(e,n)||nt}),a=0;a<t.length-1;a++)i=Ld(i,n);return i=Ld(i,r),e.baseSignatureCache=Qd(e,jd(t,i),!0)}return e}(s[l-_+p]),i=Gl(c[u-_+p]),o=void 0,(a=d)||(o=v,a=i.declaration?i.declaration.kind:0,v=v||169===a||168===a||171===a,ug(n,i,E),v=o),!void _g(n,i,D)}function I(e,t){var r=zC.getObjectFlags(e)&zC.getObjectFlags(t)&32?8:0,t=hl(t);if(eg(e))for(var n=0,i=t;n<i.length;n++){for(var a=i[n],o=[],s=0,c=Jc(e);s<c.length;s++){var l,u=c[s];ml(N_(u,8576),a.keyType)&&(l=_s(u),o.push(16777216&u.flags?$f(l):l))}for(var _=0,d=hl(e);_<d.length;_++){var p=d[_];ml(p.keyType,a.keyType)&&o.push(p.type)}o.length&&S(f_(o),a.type,r)}for(var f=0,g=t;f<g.length;f++){var m=Dl(e,(a=g[f]).keyType);m&&S(m.type,a.type,r)}}D(e,g)}function Rg(e,t){return re&&t===ct?e===t:pp(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Bg(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function jg(e){return!!(128&zC.getObjectFlags(e))}function Jg(e){return!!(16512&zC.getObjectFlags(e))}function zg(e){return 416&e.priority?x_(e.contraCandidates):(e=e.contraCandidates,zC.reduceLeft(e,function(e,t){return yp(t,e)?t:e}))}function Kg(e,t){var r,n=function(e){if(1<e.length){var t=zC.filter(e,Jg);if(t.length){t=f_(t,2);return zC.concatenate(zC.filter(e,function(e){return!Jg(e)}),[t])}}return e}(e.candidates),r=!!(r=Kc(r=e.typeParameter))&&nx(16777216&r.flags?Vc(r):r,406978556),t=!r&&e.topLevel&&(e.isFixed||!Dg(zl(t),e.typeParameter)),n=r?zC.sameMap(n,Td):t?zC.sameMap(n,Ff):n;return og(416&e.priority?f_(n,2):function(e){if(!ee)return pf(e);var t=zC.filter(e,function(e){return!(98304&e.flags)});return t.length?Vf(pf(t),98304&Jf(e)):f_(e,2)}(n))}function Ug(e,t){var r,n,i,a,o,s,c=e.inferences[t];return c.inferredType||(r=void 0,(i=e.signature)?(n=c.candidates?Kg(c,i):void 0,c.contraCandidates?r=!n||131072&n.flags||!zC.some(c.contraCandidates,function(e){return yp(n,e)})?zg(c):n:n?r=n:1&e.flags?r=Dt:(i=Zc(c.typeParameter))&&(r=ip(i,(s=t,t=Kd(function(t){return zC.findIndex(o.inferences,function(e){return e.typeParameter===t})>=s?nt:t}),a=(o=e).nonFixingMapper,t?Ud(4,t,a):a)))):r=Ng(c),c.inferredType=r||Vg(!!(2&e.flags)),(a=Kc(c.typeParameter))&&(a=ip(a,e.nonFixingMapper),r&&e.compareTypes(r,nc(a,r))||(c.inferredType=r=a))),c.inferredType}function Vg(e){return e?Xe:nt}function qg(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Ug(e,r));return t}function Wg(e){switch(e.escapedText){case"document":case"console":return zC.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return $.types?zC.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:zC.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 $.types?zC.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:zC.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 $.types?zC.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:zC.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 zC.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(zC.isCallExpression(e.parent))return zC.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 297===e.parent.kind?zC.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:zC.Diagnostics.Cannot_find_name_0}}function Hg(e){var t=yi(e);return t.resolvedSymbol||(t.resolvedSymbol=!zC.nodeIsMissing(e)&&Di(e,e.escapedText,1160127,Wg(e),e,!zC.isWriteOnlyAccess(e),!1)||We),t.resolvedSymbol}function Gg(e){return!!zC.findAncestor(e,function(e){return 181===e.kind||79!==e.kind&&161!==e.kind&&"quit"})}function Qg(e,t){switch(t.kind){case 212:case 230:return Qg(e,t.expression);case 221:return zC.isAssignmentExpression(t)&&Qg(e,t.left)||zC.isBinaryExpression(t)&&27===t.operatorToken.kind&&Qg(e,t.right)}switch(e.kind){case 231:return 231===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 79:case 80:return zC.isThisInTypeQuery(e)?108===t.kind:79===t.kind&&Hg(e)===Hg(t)||(254===t.kind||203===t.kind)&&ka(Hg(e))===ba(t);case 108:return 108===t.kind;case 106:return 106===t.kind;case 230:case 212:return Qg(e.expression,t);case 206:case 207:var r=Xg(e),n=zC.isAccessExpression(t)?Xg(t):void 0;return void 0!==r&&void 0!==n&&n===r&&Qg(e.expression,t.expression);case 161:return zC.isAccessExpression(t)&&e.right.escapedText===Xg(t)&&Qg(e.left,t.expression);case 221:return zC.isBinaryExpression(e)&&27===e.operatorToken.kind&&Qg(e.right,t)}return!1}function Xg(e){if(zC.isPropertyAccessExpression(e))return e.name.escapedText;if(zC.isElementAccessExpression(e))return function(e){if(zC.isStringOrNumericLiteralLike(e.argumentExpression))return zC.escapeLeadingUnderscores(e.argumentExpression.text);if(zC.isEntityNameExpression(e.argumentExpression)){var t=ra(e.argumentExpression,111551,!0);if(!t||!ey(t))return;e=t.valueDeclaration;if(void 0===e)return;t=Zo(e);if(t){t=Yg(t);if(void 0!==t)return t}if(zC.hasOnlyExpressionInitializer(e)){e=zC.getEffectiveInitializer(e);return e&&Yg(Fx(e))}}return}(e);if(zC.isBindingElement(e)){var t=Ao(e);return t?zC.escapeLeadingUnderscores(t):void 0}return zC.isParameter(e)?""+e.parent.parameters.indexOf(e):void 0}function Yg(e){return 8192&e.flags?e.escapedName:384&e.flags?zC.escapeLeadingUnderscores(""+e.value):void 0}function Zg(e,t){for(;zC.isAccessExpression(e);)if(Qg(e=e.expression,t))return!0;return!1}function $g(e,t){for(;zC.isOptionalChain(e);)if(Qg(e=e.expression,t))return 1}function em(e,t){if(e&&1048576&e.flags){t=il(e,t);if(t&&2&zC.getCheckFlags(t))return void 0===t.isDiscriminantProperty&&(t.isDiscriminantProperty=192==(192&t.checkFlags)&&!U_(_s(t))),!!t.isDiscriminantProperty}return!1}function tm(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];em(t,a.escapedName)&&(r?r.push(a):r=[a])}return r}function rm(e){var t,r=e.types;if(!(r.length<10||32768&zC.getObjectFlags(e)||zC.countWhere(r,function(e){return!!(59506688&e.flags)})<10))return void 0===e.keyPropertyName&&(r=(t=zC.forEach(r,function(e){return 59506688&e.flags?zC.forEach(Jc(e),function(e){return kf(_s(e))?e.escapedName:void 0}):void 0}))&&function(e,t){for(var i=new zC.Map,a=0,r=0,n=e;r<n.length;r++){var o=function(r){if(61603840&r.flags){var e=bo(r,t);if(e){if(!Nf(e))return{value:void 0};var n=!1;km(e,function(e){var t=Td(e).id,e=i.get(t);e?e!==nt&&(i.set(t,nt),n=!0):i.set(t,r)}),n||a++}}}(n[r]);if("object"==typeof o)return o.value}return 10<=a&&2*a>=e.length?i:void 0}(r,t),e.keyPropertyName=r?t:"",e.constituentMap=r),e.keyPropertyName.length?e.keyPropertyName:void 0}function nm(e,t){t=null===(e=e.constituentMap)||void 0===e?void 0:e.get(Td(t).id);return t!==nt?t:void 0}function im(e,t){var r=rm(e),r=r&&bo(t,r);return r&&nm(e,r)}function am(e,t){return Qg(e,t)||Zg(e,t)}function om(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(am(t,n[r]))return!0;return!(206!==e.expression.kind||!am(t,e.expression.expression))}function sm(e){return(!e.id||e.id<0)&&(e.id=qC,qC++),e.id}function cm(e,t){if(e!==t){if(131072&t.flags)return t;var r=Am(e,function(e){return function(e,t){if(!(1048576&e.flags))return hp(e,t);for(var r=0,n=e.types;r<n.length;r++)if(hp(n[r],t))return!0;return!1}(t,e)});if(512&t.flags&&Cd(t)&&(r=Pm(r,Sd)),hp(t,r))return r}return e}function lm(e){var t=Lc(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&yp(e,Zt))}function um(e,r){void 0===r&&(r=!1);var t=e.flags;if(4&t)return ee?16317953:16776705;if(128&t){var n=""===e.value;return ee?n?12123649:7929345:n?12582401:16776705}if(40&t)return ee?16317698:16776450;if(256&t){var i=0===e.value;return ee?i?12123394:7929090:i?12582146:16776450}if(64&t)return ee?16317188:16775940;if(2048&t){i=jf(e);return ee?i?12122884:7928580:i?12581636:16775940}return 16&t?ee?16316168:16774920:528&t?ee?e===ft||e===gt?12121864:7927560:e===ft||e===gt?12580616:16774920:524288&t?r?16768959:16&zC.getObjectFlags(e)&&Op(e)?ee?16318463:16777215:lm(e)?ee?7880640:16728e3:ee?7888800:16736160:49152&t?9830144:65536&t?9363232:12288&t?ee?7925520:16772880:67108864&t?ee?7888800:16736160:131072&t?0:465829888&t?K_(e)?ee?7929345:16776705:um(Hc(e)||nt,r):1048576&t?zC.reduceLeft(e.types,function(e,t){return e|um(t,r)},0):2097152&t?function(e,t){for(var r=0,n=16777215,i=0,a=e.types;i<a.length;i++){var o=um(a[i],t);r|=o,n&=o}return 8256&r|16768959&n}(e,r=r||nx(e,131068)):16777215}function _m(e,t){return Am(e,function(e){return 0!=(um(e)&t)})}function dm(e,t){return t?f_([ko(e),Fx(t)]):e}function pm(e,t){var t=E_(t);if(!Hs(t))return $e;t=Zs(t);return bo(e,t)||gm(null===(t=Sl(e,t))||void 0===t?void 0:t.type)||$e}function fm(e,t){return Nm(e,Sf)&&(bo(r=e,""+t)||(Nm(r,Of)?Pm(r,function(e){return Rf(e)||at}):void 0))||gm(YD(65,e,at,void 0))||$e;var r}function gm(e){return e&&($.noUncheckedIndexedAccess?f_([e,at]):e)}function mm(e){return Qu(YD(65,e,at,void 0)||$e)}function ym(e){return 221===e.parent.kind&&e.parent.left===e||244===e.parent.kind&&e.parent.initializer===e}function hm(e){return pm(vm(e.parent),e.name)}function vm(e){var t,r,n=e.parent;switch(n.kind){case 243:return _t;case 244:return XD(n)||$e;case 221:return 204===(r=n).parent.kind&&ym(r.parent)||296===r.parent.kind&&ym(r.parent.parent)?dm(vm(r),r.right):Fx(r.right);case 215:return at;case 204:return t=e,fm(vm(r=n),r.elements.indexOf(t));case 225:return mm(vm(n.parent));case 296:return hm(n);case 297:return dm(hm(t=n),t.objectAssignmentInitializer)}return $e}function bm(e){return yi(e).resolvedType||Fx(e)}function xm(e){return 254===e.kind?(r=e).initializer?bm(r.initializer):243===r.parent.parent.kind?_t:244===r.parent.parent.kind&&XD(r.parent.parent)||$e:(r=(t=e).parent,e=xm(r.parent),dm(201===r.kind?pm(e,t.propertyName||t.name):t.dotDotDotToken?mm(e):fm(e,r.elements.indexOf(t)),t.initializer));var t,r}function Dm(e){switch(e.kind){case 212:return Dm(e.expression);case 221:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return Dm(e.left);case 27:return Dm(e.right)}}return e}function Sm(e){var t=yi(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(289===(i=i).kind?Td(Fx(i.expression)):xt)}}return t.switchTypes}function Tm(e,t){for(var r=[],n=0,i=e.caseBlock.clauses;n<i.length;n++){var a=i[n];if(289===a.kind){if(zC.isStringLiteralLike(a.expression)){r.push(a.expression.text);continue}return zC.emptyArray}t&&r.push(void 0)}return r}function Cm(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(!l_(t.types,i))return}return 1}if(1024&e.flags&&Is(e)===t)return 1;return l_(t.types,e)}(e,t)}function km(e,t){return 1048576&e.flags?zC.forEach(e.types,t):t(e)}function Em(e,t){return 1048576&e.flags?zC.some(e.types,t):t(e)}function Nm(e,t){return 1048576&e.flags?zC.every(e.types,t):t(e)}function Am(e,t){if(1048576&e.flags){var r=e.types,n=zC.filter(r,t);if(n===r)return e;var i=e.origin,a=void 0;if(i&&1048576&i.flags){var o=i.types,i=zC.filter(o,function(e){return!!(1048576&e.flags)||t(e)});if(o.length-i.length==r.length-n.length){if(1===i.length)return i[0];a=p_(1048576,i)}}return m_(n,e.objectFlags,void 0,void 0,a)}return 131072&e.flags||t(e)?e:xt}function Fm(e,t){return Am(e,function(e){return e!==t})}function Pm(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=(i&&1048576&i.flags?i:e).types;o<s.length;o++){var c=s[o],l=1048576&c.flags?Pm(c,t,r):t(c),a=a||c!==l;l&&(n?n.push(l):n=[l])}return a?n&&f_(n,r?0:1):e}function wm(e,t,r,n){return 1048576&e.flags&&r?f_(zC.map(e.types,t),1,r,n):Pm(e,t)}function Im(e,t){return Am(e,function(e){return 0!=(e.flags&t)})}function Om(e,t){return nx(e,134217804)&&nx(t,402655616)?Pm(e,function(e){return 4&e.flags?Im(t,402653316):K_(e)&&!nx(t,402653188)?Im(t,128):8&e.flags?Im(t,264):64&e.flags?Im(t,2112):e}):e}function Mm(e){return 0===e.flags}function Lm(e){return 0===e.flags?e.type:e}function Rm(e,t){return t?{flags:0,type:131072&e.flags?Dt:e}:e}function Bm(e){return Ue[e.id]||(Ue[e.id]=(t=e,(e=wa(256)).elementType=t,e));var t}function jm(e,t){t=rg(Af(wx(t)));return Cm(t,e.elementType)?e:Bm(f_([e.elementType,t]))}function Jm(e){return e.finalArrayType||(e.finalArrayType=131072&(e=e.elementType).flags?lr:Qu(1048576&e.flags?f_(e.types,2):e))}function zm(e){return 256&zC.getObjectFlags(e)?Jm(e):e}function Km(e){return 256&zC.getObjectFlags(e)?e.elementType:xt}function Um(e){var t=function e(t){var r=t.parent;return 212===r.kind||221===r.kind&&63===r.operatorToken.kind&&r.left===t||221===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(e),r=t.parent,e=zC.isPropertyAccessExpression(r)&&("length"===r.name.escapedText||208===r.parent.kind&&zC.isIdentifier(r.name)&&zC.isPushOrUnshiftIdentifier(r.name)),r=207===r.kind&&r.expression===t&&221===r.parent.kind&&63===r.parent.operatorToken.kind&&r.parent.left===r&&!zC.isAssignmentTarget(r.parent)&&ix(Fx(r.argumentExpression),296);return e||r}function Vm(e,t){if(8752&e.flags)return _s(e);if(7&e.flags){if(262144&zC.getCheckFlags(e)){var r=e.syntheticOrigin;if(r&&Vm(r))return _s(e)}var n=e.valueDeclaration;if(n){if(i=n,(zC.isVariableDeclaration(i)||zC.isPropertyDeclaration(i)||zC.isPropertySignature(i)||zC.isParameter(i))&&(zC.getEffectiveTypeAnnotationNode(i)||zC.isInJSFile(i)&&zC.hasInitializer(i)&&i.initializer&&zC.isFunctionExpressionOrArrowFunction(i.initializer)&&zC.getEffectiveReturnTypeNode(i.initializer)))return _s(e);if(zC.isVariableDeclaration(n)&&244===n.parent.parent.kind){r=n.parent.parent,i=qm(r.expression,void 0);if(i)return YD(r.awaitModifier?15:13,i,at,void 0)}t&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(n,zC.Diagnostics._0_needs_an_explicit_type_annotation,$a(e)))}}var i}function qm(e,t){if(!(33554432&e.flags))switch(e.kind){case 79:var r=ka(Hg(e));return Vm(2097152&r.flags?Gi(r):r,t);case 108:return function(e){e=zC.getThisContainer(e,!1);if(zC.isFunctionLike(e)){var t=Il(e);if(t.thisParameter)return Vm(t.thisParameter)}if(zC.isClassLike(e.parent)){t=ba(e.parent);return zC.isStatic(e)?_s(t):Rs(t).thisType}}(e);case 106:return gy(e);case 206:var n=qm(e.expression,t);if(n){var i=e.name,r=void 0;if(zC.isPrivateIdentifier(i)){if(!n.symbol)return;r=_l(n,zC.getSymbolNameForPrivateIdentifier(n.symbol,i.escapedText))}else r=_l(n,i.escapedText);return r&&Vm(r,t)}return;case 212:return qm(e.expression,t)}}function Wm(e){var t,r=yi(e),n=r.effectsSignature;return void 0===n&&(t=void 0,238===e.parent.kind?t=qm(e.expression,void 0):106!==e.expression.kind&&(t=zC.isOptionalChain(e)?Mh(Xf(Ix(e.expression),e.expression),e.expression):Ah(e.expression)),t=1!==(t=pl(t&&tl(t)||nt,0)).length||t[0].typeParameters?zC.some(t,Hm)?eb(e):void 0:t[0],n=r.effectsSignature=t&&Hm(t)?t:Hr),n===Hr?void 0:n}function Hm(e){return!!(jl(e)||e.declaration&&131072&(Kl(e.declaration)||nt).flags)}function Gm(e){var t=function t(e,r){for(;;){if(e===Br)return jr;var n=e.flags;if(4096&n){if(!r){var i=sm(e),a=Fn[i];return void 0!==a?a:Fn[i]=t(e,!0)}r=!1}if(368&n)e=e.antecedent;else if(512&n){var o=Wm(e.node);if(o){var i=jl(o);if(i&&3===i.kind&&!i.type){var s=e.node.arguments[i.parameterIndex];if(s&&Qm(s))return!1}if(131072&zl(o).flags)return!1}e=e.antecedent}else{if(4&n)return zC.some(e.antecedents,function(e){return t(e,!1)});if(8&n){var c=e.antecedents;if(void 0===c||0===c.length)return!1;e=c[0]}else{if(!(128&n)){if(1024&n){Br=void 0;var s=e.target,o=s.antecedents;s.antecedents=e.antecedents;var c=t(e.antecedent,!1);return s.antecedents=o,c}return!(1&n)}if(e.clauseStart===e.clauseEnd&&Ub(e.switchStatement))return!1;e=e.antecedent}}}}(e,!1);return Br=e,jr=t}function Qm(e){e=zC.skipParentheses(e,!0);return 95===e.kind||221===e.kind&&(55===e.operatorToken.kind&&(Qm(e.left)||Qm(e.right))||56===e.operatorToken.kind&&Qm(e.left)&&Qm(e.right))}function Xm(l,p,u,_,e){var t;void 0===u&&(u=p),void 0===e&&(e=l.flowNode);var r=!1,d=0;if(_n)return $e;if(!e)return p;dn++;var f=un,e=Lm(m(e));un=f;e=256&zC.getObjectFlags(e)&&Um(l)?lr:zm(e);return e===Ct||l.parent&&230===l.parent.kind&&!(131072&e.flags)&&131072&_m(e,2097152).flags?p:e===it?nt:e;function g(){return r?t:(r=!0,t=function e(t,r,n,i){switch(t.kind){case 79:if(!zC.isThisInTypeQuery(t)){var a=Hg(t);return a!==We?"".concat(i?$C(i):"-1","|").concat(r.id,"|").concat(n.id,"|").concat(ek(a)):void 0}case 108:return"0|".concat(i?$C(i):"-1","|").concat(r.id,"|").concat(n.id);case 230:case 212:return e(t.expression,r,n,i);case 161:var o=e(t.left,r,n,i);return o&&o+"."+t.right.escapedText;case 206:case 207:if(void 0!==(a=Xg(t)))return(o=e(t.expression,r,n,i))&&o+"."+a}}(l,p,u,_))}function m(e){if(2e3===d)return null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:e.id}),_n=!0,t=l,r=zC.findAncestor(t,zC.isFunctionOrModuleBlock),t=zC.getSourceFileOfNode(t),r=zC.getSpanOfTokenAtPosition(t,r.statements.pos),Rn.add(zC.createFileDiagnostic(t,r.start,r.length,zC.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),$e;var t,r,n;for(d++;;){var i=e.flags;if(4096&i){for(var a=f;a<un;a++)if(Nn[a]===e)return d--,An[a];n=e}var o=void 0;if(16&i){if(!(o=function(e){var t=e.node;if(Qg(l,t)){if(!Gm(e))return Ct;if(2===zC.getAssignmentTargetKind(t)){var r=m(e.antecedent);return Rm(Af(Lm(r)),Mm(r))}if(p!==Ye&&p!==lr)return 1048576&p.flags?cm(p,y(e)):p;if(function(e){return 254===e.kind&&e.initializer&&Io(e.initializer)||203!==e.kind&&221===e.parent.kind&&Io(e.parent.right)}(t))return Bm(xt);r=Ff(y(e));return hp(r,p)?r:cr}if(Zg(l,t)){if(!Gm(e))return Ct;if(zC.isVariableDeclaration(t)&&(zC.isInJSFile(t)||zC.isVarConst(t))){r=zC.getDeclaredExpandoInitializer(t);if(r&&(213===r.kind||214===r.kind))return m(e.antecedent)}return p}if(zC.isVariableDeclaration(t)&&243===t.parent.parent.kind&&Qg(l,t.parent.parent.expression))return Ph(Lm(m(e.antecedent)));return}(e))){e=e.antecedent;continue}}else if(512&i){if(!(o=function(e){var t=Wm(e.node);if(t){var r=jl(t);if(r&&(2===r.kind||3===r.kind)){var n=m(e.antecedent),i=zm(Lm(n)),r=r.type?w(i,r,e.node,!0):3===r.kind&&0<=r.parameterIndex&&r.parameterIndex<e.node.arguments.length?function e(t,r){var r=zC.skipParentheses(r,!0);if(95===r.kind)return Ct;if(221===r.kind){if(55===r.operatorToken.kind)return e(e(t,r.left),r.right);if(56===r.operatorToken.kind)return f_([e(t,r.left),e(t,r.right)])}return I(t,r,!0)}(i,e.node.arguments[r.parameterIndex]):i;return r===i?n:Rm(r,Mm(n))}if(131072&zl(t).flags)return Ct}return}(e))){e=e.antecedent;continue}}else if(96&i)o=function(e){var t=m(e.antecedent),r=Lm(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),r=zm(r),n=I(r,e.node,n);return n!==r?Rm(n,Mm(t)):t}(e);else if(128&i)o=function(e){var t=e.switchStatement.expression,r=m(e.antecedent),n=Lm(r);Qg(l,t)?n=k(n,e.switchStatement,e.clauseStart,e.clauseEnd):216===t.kind&&Qg(l,t.expression)?n=function(t,e,r,n){var i=Tm(e,!0);if(!i.length)return t;var a,o=zC.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,l=c.slice(e,o),Kb(e,o,c,s)):(l=i.slice(r,n),Kb(r,n,i,s))}if(s)return Am(t,function(e){return(um(e)&a)===a});var l=_m(f_(l.map(function(e){return E(t,e)||t})),a);return _m(Pm(t,N(l)),a)}(n,e.switchStatement,e.clauseStart,e.clauseEnd):(ee&&($g(t,l)?n=C(n,e.switchStatement,e.clauseStart,e.clauseEnd,function(e){return!(163840&e.flags)}):216===t.kind&&$g(t.expression,l)&&(n=C(n,e.switchStatement,e.clauseStart,e.clauseEnd,function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))),(t=v(t,n))&&(n=function(t,e,r,n,i){if(n<i&&1048576&t.flags&&rm(t)===Xg(e)){var a=Sm(r).slice(n,i),a=f_(zC.map(a,function(e){return nm(t,e)||nt}));if(a!==nt)return a}return b(t,e,function(e){return k(e,r,n,i)})}(n,t,e.switchStatement,e.clauseStart,e.clauseEnd)));return Rm(n,Mm(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((l=Lm(c))===p&&p===u)return l;zC.pushIfUnique(r,l),Cm(l,p)||(n=!0),Mm(c)&&(i=!0)}}if(t){var l=Lm(c=m(t));if(!zC.contains(r,l)&&!Ub(t.switchStatement)){if(l===p&&p===u)return l;r.push(l),Cm(l,p)||(n=!0),Mm(c)&&(i=!0)}}return Rm(h(r,n?2:1),i)}:function(e){var t=sm(e),r=Tn[t]||(Tn[t]=new zC.Map),n=g();if(!n)return p;t=r.get(n);if(t)return t;for(var i=cn;i<ln;i++)if(Cn[i]===e&&kn[i]===n&&En[i].length)return Rm(h(En[i],1),!0);for(var a,o=[],s=!1,c=0,l=e.antecedents;c<l.length;c++){var u=l[c],_=void 0;if(a){Cn[ln]=e,kn[ln]=n,En[ln]=o,ln++;var d=Jr;Jr=void 0,_=m(u),Jr=d,ln--;d=r.get(n);if(d)return d}else _=a=m(u);_=Lm(_);if(zC.pushIfUnique(o,_),Cm(_,p)||(s=!0),_===p)break}t=h(o,s?2:1);if(Mm(a))return Rm(t,!0);return r.set(n,t),t})(e)}else if(256&i){if(!(o=function(e){if(p===Ye||p===lr){var t=e.node,r=(208===t.kind?t.expression:t.left).expression;if(Qg(l,Dm(r))){r=m(e.antecedent),e=Lm(r);if(256&zC.getObjectFlags(e)){var n=e;if(208===t.kind)for(var i=0,a=t.arguments;i<a.length;i++){var o=a[i];n=jm(n,o)}else ix(wx(t.left.argumentExpression),296)&&(n=jm(n,t.right));return n===e?r:Rm(n,Mm(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!==_&&206!==l.kind&&207!==l.kind&&108!==l.kind){e=i.flowNode;continue}o=u}else o=BD(p);return n&&(Nn[un]=n,An[un]=o,un++),d--,o}}function y(e){e=e.node;return ny((254===e.kind||203===e.kind?xm:vm)(e),l)}function h(e,t){if(function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var i=n[r];if(!(131072&i.flags)){if(!(256&zC.getObjectFlags(i)))return;t=!0}}return t}(e))return Bm(f_(zC.map(e,Km)));t=f_(zC.sameMap(e,zm),t);return t!==p&&t.flags&p.flags&1048576&&zC.arraysEqual(t.types,p.types)?p:t}function v(e,t){var r=1048576&p.flags?p:t;if(1048576&r.flags){t=function(e){if(zC.isBindingPattern(l)||zC.isFunctionExpressionOrArrowFunction(l)||zC.isObjectLiteralMethod(l)){if(zC.isIdentifier(e)&&(t=(r=Hg(e)).valueDeclaration)&&(zC.isBindingElement(t)||zC.isParameter(t))&&l===t.parent&&!t.initializer&&!t.dotDotDotToken)return t}else if(zC.isAccessExpression(e)){if(Qg(l,e.expression))return e}else if(zC.isIdentifier(e))if(ey(r=Hg(e))){var t=r.valueDeclaration;if(zC.isVariableDeclaration(t)&&!t.type&&t.initializer&&zC.isAccessExpression(t.initializer)&&Qg(l,t.initializer.expression))return t.initializer;if(zC.isBindingElement(t)&&!t.initializer){var r=t.parent.parent;if(zC.isVariableDeclaration(r)&&!r.type&&r.initializer&&(zC.isIdentifier(r.initializer)||zC.isAccessExpression(r.initializer))&&Qg(l,r.initializer))return t}}}(e);if(t){e=Xg(t);if(e&&em(r,e))return t}}}function b(e,t,r){var n=Xg(t);if(void 0===n)return e;var i=ee&&zC.isOptionalChain(t)&&nx(e,98304),t=bo(i?_m(e,2097152):e,n);if(!t)return e;var a=r(t=i?qf(t):t);return Am(e,function(e){var t,e=bo(t=e,e=n)||(null===(e=Sl(t,e))||void 0===e?void 0:e.type)||nt;return!(131072&a.flags)&&bp(a,e)})}function s(e,t,r,n,i){if((36===r||37===r)&&1048576&e.flags){var a=rm(e);if(a&&a===Xg(t)){var o=nm(e,Fx(n));if(o)return r===(i?36:37)?o:kf(bo(o,a)||nt)?Fm(e,o):e}}return b(e,t,function(e){return S(e,r,n,i)})}function c(e,t,r){if(Qg(l,t))return 2&e.flags&&r?it:_m(e,r?4194304:8388608);ee&&r&&$g(t,l)&&(e=_m(e,2097152));t=v(t,e);return t?b(e,t,function(e){return _m(e,r?4194304:8388608)}):e}function x(e,i,a){return 1048576&e.flags||524288&e.flags&&p!==e||zC.isThisTypeParameter(e)||2097152&e.flags&&zC.every(e.types,function(e){return e.symbol!==Te})?Am(e,function(e){return n=a,(e=_l(t=e,r=i))?!!(16777216&e.flags)||n:!!Sl(t,r)||!n;var t,r,n}):e}function i(e,t,r){switch(t.operatorToken.kind){case 63:case 75:case 76:case 77:return c(I(e,t.right,r),t.left,r);case 34:case 35:case 36:case 37:var n=t.operatorToken.kind,i=Dm(t.left),a=Dm(t.right);if(216===i.kind&&zC.isStringLiteralLike(a))return T(e,i,n,a,r);if(216===a.kind&&zC.isStringLiteralLike(i))return T(e,a,n,i,r);if(Qg(l,i))return S(e,n,a,r);if(Qg(l,a))return S(e,n,i,r);ee&&($g(i,l)?e=D(e,n,a,r):$g(a,l)&&(e=D(e,n,i,r)));var o=v(i,e);if(o)return s(e,o,n,a,r);o=v(a,e);if(o)return s(e,o,n,i,r);if(A(i))return F(e,n,a,r);if(A(a))return F(e,n,i,r);break;case 102:return function(e,t,r){var n=Dm(t.left);if(!Qg(l,n))return r&&ee&&$g(n,l)?_m(e,2097152):e;var i,n=Fx(t.right);if(!vp(n,Zt))return e;t=_l(n,"prototype");t&&(xo(a=_s(t))||(i=a));if(xo(e)&&(i===Yt||i===Zt))return e;{var a;i||(a=pl(n,1),i=a.length?f_(zC.map(a,function(e){return zl(Gl(e))})):Rt)}if(!r&&1048576&n.flags)if(!zC.find(n.types,function(e){return!xs(e)}))return e;return P(e,i,r,vp)}(e,t,r);case 101:if(zC.isPrivateIdentifier(t.left))return function(e,t,r){var n=Dm(t.right);if(!Qg(l,n))return e;zC.Debug.assertNode(t.left,zC.isPrivateIdentifier);n=Kh(t.left);if(void 0===n)return e;t=n.parent,t=(zC.hasStaticModifier(zC.Debug.checkDefined(n.valueDeclaration,"should always have a declaration"))?_s:Rs)(t);return P(e,t,r,vp)}(e,t,r);n=Dm(t.right),i=TT(t.left);if(128&i.flags){i=zC.escapeLeadingUnderscores(i.value);if(Zf(e)&&zC.isAccessExpression(l)&&Qg(l.expression,n)&&Xg(l)===i)return _m(e,r?524288:65536);if(Qg(l,n))return x(e,i,r)}break;case 27:return I(e,t.right,r);case 55:return r?I(I(e,t.left,!0),t.right,!0):f_([I(e,t.left,!1),I(e,t.right,!1)]);case 56:return r?f_([I(e,t.left,!0),I(e,t.right,!0)]):I(I(e,t.left,!1),t.right,!1)}return e}function D(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,r=Fx(r);return i!==n&&Nm(r,function(e){return!!(e.flags&a)})||i===n&&Nm(r,function(e){return!(e.flags&(3|a))})?_m(e,2097152):e}function S(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=Fx(r);if(n&&2&e.flags&&(34===t||35===t)&&65536&i.flags)return f_([lt,at]);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?kt:e;if(98304&i.flags){if(!ee)return e;r=34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288;return 2&e.flags&&3145728&r?it:_m(e,r)}return n?Om(Am(e,34===t?function(e){return xp(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return xp(e,i)}),i):kf(i)?Am(e,function(e){return!(Ef(e)&&xp(e,i))}):e}function T(e,t,r,n,i){35!==r&&37!==r||(i=!i);t=Dm(t.expression);if(!Qg(l,t))return ee&&$g(t,l)&&i===("undefined"!==n.text)?_m(e,2097152):e;if(1&e.flags&&"function"===n.text)return e;if(i&&2&e.flags&&"object"===n.text)return e===it?kt:f_([kt,lt]);t=i?WC.get(n.text)||128:HC.get(n.text)||32768,n=E(e,n.text);return _m(i&&n?Pm(e,N(n)):e,t)}function C(e,t,r,n,i){return r!==n&&zC.every(Sm(t).slice(r,n),i)?_m(e,2097152):e}function k(e,t,r,n){var i=Sm(t);if(!i.length)return e;var a=i.slice(r,n),r=r===n||zC.contains(a,xt);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(kt)}}return f_(void 0===o?a:o)}var l=f_(a),n=131072&l.flags?xt:Om(Am(e,function(e){return xp(l,e)}),l);if(!r)return n;r=Am(e,function(e){return!(Ef(e)&&zC.contains(i,Td(2097152&(e=e).flags&&zC.find(e.types,kf)||e)))});return 131072&n.flags?r:f_([n,r])}function E(e,t){switch(t){case"function":return 1&e.flags?e:Zt;case"object":return 2&e.flags?f_([kt,lt]):e;default:return jn.get(t)}}function N(r){return function(e){if(yp(e,r))return e;if(yp(r,e))return r;if(465829888&e.flags){var t=Hc(e)||Xe;if(yp(r,t))return x_([e,r])}return e}}function A(e){return(zC.isPropertyAccessExpression(e)&&"constructor"===zC.idText(e.name)||zC.isElementAccessExpression(e)&&zC.isStringLiteralLike(e.argumentExpression)&&"constructor"===e.argumentExpression.text)&&Qg(l,e.expression)}function F(e,t,r,n){if(n?34!==t&&36!==t:35!==t&&37!==t)return e;r=Fx(r);if(!YT(r)&&!xs(r))return e;r=_l(r,"prototype");if(!r)return e;var r=_s(r),i=xo(r)?void 0:r;return i&&i!==Yt&&i!==Zt?xo(e)?i:Am(e,function(e){return function(e,t){if(524288&e.flags&&1&zC.getObjectFlags(e)||524288&t.flags&&1&zC.getObjectFlags(t))return e.symbol===t.symbol;return yp(e,t)}(e,i)}):e}function P(e,t,r,n){if(!r)return Am(e,function(e){return!n(e,t)});if(1048576&e.flags){r=Am(e,function(e){return n(e,t)});if(!(131072&r.flags))return r}return yp(t,e)?t:hp(e,t)?e:hp(t,e)?t:x_([e,t])}function w(e,t,r,n){if(t.type&&(!xo(e)||t.type!==Yt&&t.type!==Zt)){i=(i=r,1===(r=t).kind||3===r.kind?i.arguments[r.parameterIndex]:(i=zC.skipParentheses(i.expression),zC.isAccessExpression(i)?zC.skipParentheses(i.expression):void 0));if(i){if(Qg(l,i))return P(e,t.type,n,yp);ee&&n&&$g(i,l)&&!(65536&um(t.type))&&(e=_m(e,2097152));i=v(i,e);if(i)return b(e,i,function(e){return P(e,t.type,n,yp)})}}var i;return e}function I(e,t,r){if(zC.isExpressionOfOptionalChainRoot(t)||zC.isBinaryExpression(t.parent)&&60===t.parent.operatorToken.kind&&t.parent.left===t)return function(e,t,r){if(Qg(l,t))return _m(e,r?2097152:262144);t=v(t,e);if(t)return b(e,t,function(e){return _m(e,r?2097152:262144)});return e}(e,t,r);switch(t.kind){case 79:if(!Qg(l,t)&&O<5){var n=Hg(t);if(ey(n)){n=n.valueDeclaration;if(n&&zC.isVariableDeclaration(n)&&!n.type&&n.initializer&&function e(t){switch(t.kind){case 79:var r=Hg(t);return ey(r)||zC.isParameterOrCatchClauseVariable(r)&&!Zm(r);case 206:case 207:return e(t.expression)&&Xb(yi(t).resolvedSymbol||We)}return!1}(l)){O++;n=I(e,n.initializer,r);return O--,n}}}case 108:case 106:case 206:case 207:return c(e,t,r);case 208:return function(e,t,r){if(om(t,l)){var n=r||!zC.isCallChain(t)?Wm(t):void 0,n=n&&jl(n);if(n&&(0===n.kind||1===n.kind))return w(e,n,t,r)}if(Zf(e)&&zC.isAccessExpression(l)&&zC.isPropertyAccessExpression(t.expression)){n=t.expression;if(Qg(l.expression,Dm(n.expression))&&zC.isIdentifier(n.name)&&"hasOwnProperty"===n.name.escapedText&&1===t.arguments.length){t=t.arguments[0];if(zC.isStringLiteralLike(t)&&Xg(l)===zC.escapeLeadingUnderscores(t.text))return _m(e,r?524288:65536)}}return e}(e,t,r);case 212:case 230:return I(e,t.expression,r);case 221:return i(e,t,r);case 219:if(53===t.operator)return I(e,t.operand,!r)}return e}}function Ym(e){return zC.findAncestor(e.parent,function(e){return zC.isFunctionLike(e)&&!zC.getImmediatelyInvokedFunctionExpression(e)||262===e.kind||305===e.kind||167===e.kind})}function Zm(e){if(e.valueDeclaration){var t=zC.getRootDeclaration(e.valueDeclaration).parent,r=yi(t);return 8388608&r.flags||(r.flags|=8388608,r=t,zC.findAncestor(r.parent,function(e){return(zC.isFunctionLike(e)||zC.isCatchClause(e))&&!!(8388608&yi(e).flags)})||$m(t)),e.isAssigned}}function $m(e){var t;79===e.kind?zC.isAssignmentTarget(e)&&(t=Hg(e),zC.isParameterOrCatchClauseVariable(t)&&(t.isAssigned=!0)):zC.forEachChild(e,$m)}function ey(e){return 3&e.flags&&0!=(2&Th(e))}function ty(e){return!!(465829888&e.flags&&1146880&Gc(e).flags)}function ry(e){return!(!(465829888&e.flags)||nx(Gc(e),98304))}function ny(e,t,r){var n,i,a;return!(r&&2&r)&&Em(e,ty)&&(n=e,206===(a=(i=t).parent).kind||161===a.kind||208===a.kind&&a.expression===i||207===a.kind&&a.expression===i&&!(Em(n,ry)&&q_(Fx(a.argumentExpression)))||(t=t,r=r,(t=(zC.isIdentifier(t)||zC.isPropertyAccessExpression(t)||zC.isElementAccessExpression(t))&&!((zC.isJsxOpeningElement(t.parent)||zC.isJsxSelfClosingElement(t.parent))&&t.parent.tagName===t)&&(r&&64&r?jy(t,8):jy(t)))&&!U_(t)))?Pm(e,function(e){return 465829888&e.flags?Gc(e):e}):e}function iy(e){return zC.findAncestor(e,function(e){var t=e.parent;return void 0===t?"quit":zC.isExportAssignment(t)?t.expression===e&&zC.isEntityNameExpression(e):!!zC.isExportSpecifier(t)&&(t.name===e||t.propertyName===e)})}function ay(e,t){var r;!Wi(e,111551)||Gg(t)||Yi(e)||111551&(r=Gi(e)).flags&&($.isolatedModules||zC.shouldPreserveConstEnums($)&&iy(t)||!JT(r)?$i(e):(e=mi(e=e)).constEnumReferenced||(e.constEnumReferenced=!0))}function oy(e,t){if(zC.isThisInTypeQuery(e))return dy(e);var r=Hg(e);if(r===We)return $e;if(r===ke){if(Gh(e))return ei(e,zC.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),$e;var n=zC.getContainingFunction(e);return B<2&&(214===n.kind?ei(e,zC.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):zC.hasSyntacticModifier(n,256)&&ei(e,zC.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),yi(n).flags|=8192,_s(r)}e.parent&&zC.isPropertyAccessExpression(e.parent)&&e.parent.expression===e||ay(r,e);var i=ka(r),a=QS(i,e);ai(a)&&B_(e,a)&&a.declarations&&oi(e,a.declarations,e.escapedText);var o,s,c,l,u=i.valueDeclaration;if(u&&32&i.flags)if(257===u.kind&&zC.nodeIsDecorated(u))for(n=zC.getContainingClass(e);void 0!==n;){if(n===u&&n.name!==e){yi(u).flags|=16777216,yi(e).flags|=33554432;break}n=zC.getContainingClass(n)}else if(226===u.kind)for(n=zC.getThisContainer(e,!1);305!==n.kind;){if(n.parent===u){(zC.isPropertyDeclaration(n)&&zC.isStatic(n)||zC.isClassStaticBlockDeclaration(n))&&(yi(u).flags|=16777216,yi(e).flags|=33554432);break}n=zC.getThisContainer(n,!1)}d=e,h=r,2<=B||0==(34&h.flags)||!h.valueDeclaration||zC.isSourceFile(h.valueDeclaration)||292===h.valueDeclaration.parent.kind||(p=zC.getEnclosingBlockScopeContainer(h.valueDeclaration),y=function(e,t){return!!zC.findAncestor(e,function(e){return e===t?"quit":zC.isFunctionLike(e)||e.parent&&zC.isPropertyDeclaration(e.parent)&&!zC.hasStaticModifier(e.parent)&&e.parent.initializer===e})}(d,p),(o=sy(p))&&(y&&(s=!0,zC.isForStatement(p)&&(!(l=zC.getAncestor(h.valueDeclaration,255))||l.parent!==p||(c=function(e,t){return zC.findAncestor(e,function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement})}(d.parent,p))&&((a=yi(c)).flags|=131072,a=a.capturedBlockScopeBindings||(a.capturedBlockScopeBindings=[]),zC.pushIfUnique(a,h),c===p.initializer&&(s=!1))),s&&(yi(o).flags|=65536)),zC.isForStatement(p)&&(l=zC.getAncestor(h.valueDeclaration,255))&&l.parent===p&&function(e,t){var r=e;for(;212===r.parent.kind;)r=r.parent;var n=!1;zC.isAssignmentTarget(r)?n=!0:219!==r.parent.kind&&220!==r.parent.kind||(e=r.parent,n=45===e.operator||46===e.operator);return!!n&&!!zC.findAncestor(r,function(e){return e===t?"quit":e===t.statement})}(d,p)&&(yi(h.valueDeclaration).flags|=4194304),yi(h.valueDeclaration).flags|=524288),y&&(yi(h.valueDeclaration).flags|=262144));var _=function(e,t){var r=e.valueDeclaration;if(r){if(zC.isBindingElement(r)&&!r.initializer&&!r.dotDotDotToken&&2<=r.parent.elements.length){var n=r.parent.parent;if(254===n.kind&&2&zC.getCombinedNodeFlags(r)||164===n.kind){var i=yi(n);if(!(268435456&i.flags)){i.flags|=268435456;var a=So(n,0);if(i.flags&=-268435457,a&&1048576&a.flags&&(164!==n.kind||!Zm(e)))return 131072&(o=Xm(r.parent,a,a,void 0,t.flowNode)).flags?xt:Po(r,o)}}}if(zC.isParameter(r)&&!r.type&&!r.initializer&&!r.dotDotDotToken){n=r.parent;if(2<=n.parameters.length&&_p(n)){a=Wy(n);if(a&&1===a.parameters.length&&ak(a)){var o,a=rl(_s(a.parameters[0]));if(1048576&a.flags&&Nm(a,Of)&&!Zm(e))return Y_(o=Xm(n,a,a,void 0,t.flowNode),Ed(n.parameters.indexOf(r)-(zC.getThisParameter(n)?1:0)))}}}}return _s(e)}(i,e),d=zC.getAssignmentTargetKind(e);if(d){if(!(3&i.flags||zC.isInJSFile(e)&&512&i.flags))return ei(e,384&i.flags?zC.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&i.flags?zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&i.flags?zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&i.flags?zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&i.flags?zC.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:zC.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,$a(r)),$e;if(Xb(i))return 3&i.flags?ei(e,zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,$a(r)):ei(e,zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,$a(r)),$e}var p=2097152&i.flags;if(3&i.flags){if(1===d)return _}else{if(!p)return _;u=Fi(r)}if(!u)return _;_=ny(_,e,t);for(var f=164===zC.getRootDeclaration(u).kind,g=Ym(u),m=Ym(e),y=m!==g,h=e.parent&&e.parent.parent&&zC.isSpreadAssignment(e.parent)&&ym(e.parent.parent),t=134217728&r.flags;m!==g&&(213===m.kind||214===m.kind||zC.isObjectLiteralOrClassExpressionMethodOrAccessor(m))&&(ey(i)&&_!==lr||f&&!Zm(i));)m=Ym(m);h=f||p||y||h||t||zC.isBindingElement(u)||_!==Ye&&_!==lr&&(!ee||0!=(16387&_.flags)||Gg(e)||275===e.parent.kind)||230===e.parent.kind||254===u.kind&&u.exclamationToken||16777216&u.flags,t=Xm(e,_,h?f?function(e,t){if(mo(t.symbol,2)){var r=ee&&164===t.kind&&t.initializer&&32768&zf(e)&&!(32768&zf(Ix(t.initializer)));return ho(),r?_m(e,524288):e}return cs(t.symbol),e}(_,u):_:_===Ye||_===lr?at:qf(_),m);if(Um(e)||_!==Ye&&_!==lr){if(!h&&!(32768&zf(_))&&32768&zf(t))return ei(e,zC.Diagnostics.Variable_0_is_used_before_being_assigned,$a(r)),_}else if(t===Ye||t===lr)return te&&(ei(zC.getNameOfDeclaration(u),zC.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,$a(r),to(t)),ei(e,zC.Diagnostics.Variable_0_implicitly_has_an_1_type,$a(r),to(t))),BD(t);return d?Af(t):t}function sy(e){return zC.findAncestor(e,function(e){return!e||zC.nodeStartsNewLexicalEnvironment(e)?"quit":zC.isIterationStatement(e,!1)})}function cy(e,t){yi(e).flags|=2,167===t.kind||171===t.kind?yi(t.parent).flags|=4:yi(t).flags|=4}function ly(e){return zC.isSuperCall(e)?e:zC.isFunctionLike(e)?void 0:zC.forEachChild(e,ly)}function uy(e){return Cs(Rs(ba(e)))===ut}function _y(e,t,r){t=t.parent;zC.getClassExtendsHeritageElement(t)&&!uy(t)&&e.flowNode&&!function t(e,r){for(;;){var n=e.flags;if(4096&n){if(!r){var i=sm(e),a=Pn[i];return void 0!==a?a:Pn[i]=t(e,!0)}r=!1}if(496&n)e=e.antecedent;else if(512&n){if(106===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return zC.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)&&ei(e,r)}function dy(e){var t=Gg(e),r=zC.getThisContainer(e,!0),n=!1;switch(171===r.kind&&_y(e,r,zC.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),214===r.kind&&(r=zC.getThisContainer(r,!1),n=!0),i=e,a=r,zC.isPropertyDeclaration(a)&&zC.hasStaticModifier(a)&&a.initializer&&zC.textRangeContainsPositionInclusive(a.initializer,i.pos)&&zC.length(a.parent.decorators)&&ei(i,zC.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class),r.kind){case 261:ei(e,zC.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 260:ei(e,zC.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 171:fy(e,r)&&ei(e,zC.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 162:ei(e,zC.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!t&&n&&B<2&&cy(e,r);var i,a=py(e,!0,r);return v&&(a===(i=_s(Te))&&n?ei(e,zC.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this):a||(t=ei(e,zC.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),zC.isSourceFile(r)||(n=py(r))&&n!==i&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(r,zC.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container)))),a||Xe}function py(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=zC.getThisContainer(e,!1));var n=zC.isInJSFile(e);if(zC.isFunctionLike(r)&&(!by(e)||zC.getThisParameter(r))){var i,a=Bl(Il(r))||n&&function(e){var t=zC.getJSDocType(e);if(t&&317===t.kind){t=t;if(0<t.parameters.length&&t.parameters[0].name&&"this"===t.parameters[0].name.escapedText)return Id(t.parameters[0].type)}e=zC.getJSDocThisTag(e);if(e&&e.typeExpression)return Id(e.typeExpression)}(r);if(a||(i=213===(i=r).kind&&zC.isBinaryExpression(i.parent)&&3===zC.getAssignmentDeclarationKind(i.parent)?i.parent.left.expression.expression:169===i.kind&&205===i.parent.kind&&zC.isBinaryExpression(i.parent.parent)&&6===zC.getAssignmentDeclarationKind(i.parent.parent)?i.parent.parent.left.expression:213===i.kind&&296===i.parent.kind&&205===i.parent.parent.kind&&zC.isBinaryExpression(i.parent.parent.parent)&&6===zC.getAssignmentDeclarationKind(i.parent.parent.parent)?i.parent.parent.parent.left.expression:213===i.kind&&zC.isPropertyAssignment(i.parent)&&zC.isIdentifier(i.parent.name)&&("value"===i.parent.name.escapedText||"get"===i.parent.name.escapedText||"set"===i.parent.name.escapedText)&&zC.isObjectLiteralExpression(i.parent.parent)&&zC.isCallExpression(i.parent.parent.parent)&&i.parent.parent.parent.arguments[2]===i.parent.parent&&9===zC.getAssignmentDeclarationKind(i.parent.parent.parent)?i.parent.parent.parent.arguments[0].expression:zC.isMethodDeclaration(i)&&zC.isIdentifier(i.name)&&("value"===i.name.escapedText||"get"===i.name.escapedText||"set"===i.name.escapedText)&&zC.isObjectLiteralExpression(i.parent)&&zC.isCallExpression(i.parent.parent)&&i.parent.parent.arguments[2]===i.parent&&9===zC.getAssignmentDeclarationKind(i.parent.parent)?i.parent.parent.arguments[0].expression:void 0,n&&i?(i=Ix(i).symbol)&&i.members&&16&i.flags&&(a=Rs(i).thisType):tb(r)&&(a=Rs(va(r.symbol)).thisType),a=a||yy(r)),a)return Xm(e,a)}if(zC.isClassLike(r.parent)){var o=ba(r.parent);return Xm(e,zC.isStatic(r)?_s(o):Rs(o).thisType)}if(zC.isSourceFile(r)){if(r.commonJsModuleIndicator){o=ba(r);return o&&_s(o)}return r.externalModuleIndicator?at:t?_s(Te):void 0}}function fy(e,t){return zC.findAncestor(e,function(e){return zC.isFunctionLikeDeclaration(e)?"quit":164===e.kind&&e.parent===t})}function gy(e){var t=208===e.parent.kind&&e.parent.expression===e,r=zC.getSuperContainer(e,!0),n=r,i=!1;if(!t)for(;n&&214===n.kind;)n=zC.getSuperContainer(n,!0),i=B<2;var a=0;if(!function(e){if(!e)return!1;{if(t)return 171===e.kind;if(zC.isClassLike(e.parent)||205===e.parent.kind)return zC.isStatic(e)?169===e.kind||168===e.kind||172===e.kind||173===e.kind||167===e.kind||170===e.kind:169===e.kind||168===e.kind||172===e.kind||173===e.kind||167===e.kind||166===e.kind||171===e.kind}return!1}(n)){var o=zC.findAncestor(e,function(e){return e===n?"quit":162===e.kind});return o&&162===o.kind?ei(e,zC.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?ei(e,zC.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(zC.isClassLike(n.parent)||205===n.parent.kind)?ei(e,zC.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):ei(e,zC.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),$e}if(t||171!==r.kind||_y(e,n,zC.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),zC.isStatic(n)||t?(a=512,!t&&2<=B&&B<=8&&(zC.isPropertyDeclaration(n)||zC.isClassStaticBlockDeclaration(n))&&zC.forEachEnclosingBlockScopeContainer(e.parent,function(e){zC.isSourceFile(e)&&!zC.isExternalOrCommonJsModule(e)||(yi(e).flags|=134217728)})):a=256,yi(e).flags|=a,169===n.kind&&zC.hasSyntacticModifier(n,256)&&(zC.isSuperProperty(e.parent)&&zC.isAssignmentTarget(e.parent)?yi(n).flags|=4096:yi(n).flags|=2048),i&&cy(e.parent,n),205===n.parent.kind)return B<2?(ei(e,zC.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),$e):Xe;o=n.parent;if(!zC.getClassExtendsHeritageElement(o))return ei(e,zC.Diagnostics.super_can_only_be_referenced_in_a_derived_class),$e;r=Rs(ba(o)),o=r&&Es(r)[0];return o?171===n.kind&&fy(e,n)?(ei(e,zC.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),$e):512===a?Cs(r):nc(o,r.thisType):$e}function my(e){return 4&zC.getObjectFlags(e)&&e.target===sr?pu(e)[0]:void 0}function yy(e){if(214!==e.kind){if(_p(e)){var t=Wy(e);if(t){var r=t.thisParameter;if(r)return _s(r)}}t=zC.isInJSFile(e);if(v||t){var n=169!==(r=e).kind&&172!==r.kind&&173!==r.kind||205!==r.parent.kind?213===r.kind&&296===r.parent.kind?r.parent.parent:void 0:r.parent;if(n){for(var i=Ly(n),a=n,o=i;o;){var s=Pm(o,function(e){return 2097152&e.flags?zC.forEach(e.types,my):my(e)});if(s)return ip(s,vg(Jy(n)));if(296!==a.parent.kind)break;o=Ly(a=a.parent.parent)}return og(i?Wf(i):mx(n))}i=zC.walkUpParenthesizedExpressions(e.parent);if(221===i.kind&&63===i.operatorToken.kind){e=i.left;if(zC.isAccessExpression(e)){e=e.expression;if(t&&zC.isIdentifier(e)){i=zC.getSourceFileOfNode(i);if(i.commonJsModuleIndicator&&Hg(e)===i.symbol)return}return og(mx(e))}}}}}function hy(e){var t=e.parent;if(_p(t)){var r=zC.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var n=Mv(r),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return Nv(n,i,n.length,Xe,void 0,0);var r=yi(r),a=r.resolvedSignature;r.resolvedSignature=Wr;i=i<n.length?Ff(Ix(n[i])):e.initializer?void 0:ot;return r.resolvedSignature=a,i}a=Wy(t);if(a){i=t.parameters.indexOf(e)-(zC.getThisParameter(t)?1:0);return(e.dotDotDotToken&&zC.lastOrUndefined(t.parameters)===e?kb:Cb)(a,i)}}}function vy(e){var t,r,n=zC.getEffectiveTypeAnnotationNode(e);if(n)return Id(n);switch(e.kind){case 164:return hy(e);case 203:return function(e){var t=e.parent.parent,r=e.propertyName||e.name,n=vy(t)||203!==t.kind&&t.initializer&&hx(t,e.dotDotDotToken?64:0);if(!n||zC.isBindingPattern(r)||zC.isComputedNonLiteralName(r))return;if(202===t.name.kind){e=zC.indexOfNode(e.parent.elements,e);return e<0?void 0:Py(n,e)}r=E_(r);if(Hs(r)){r=Zs(r);return bo(n,r)}}(e);case 167:if(zC.isStatic(e))return t=e,(r=zC.isExpression(t.parent)&&jy(t.parent))?Ny(r,ba(t).escapedName):void 0}}function by(e){for(var t=!1;e.parent&&!zC.isFunctionLike(e.parent);){if(zC.isParameter(e.parent)&&(t||e.parent.initializer===e))return 1;zC.isBindingElement(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}}function xy(e,t){var r=!!(2&zC.getFunctionFlags(t)),t=Dy(t);if(t)return vS(e,t,r)||void 0}function Dy(e){var t=Kl(e);if(t)return t;t=qy(e);if(t&&!Ul(t))return zl(t);e=zC.getImmediatelyInvokedFunctionExpression(e);return e?jy(e):void 0}function Sy(e,t){t=Mv(e).indexOf(t);return-1===t?void 0:Ty(e,t)}function Ty(e,t){if(zC.isImportCall(e))return 0===t?_t:1===t?Bu(!1):Xe;var r=yi(e).resolvedSignature===Gr?Gr:eb(e);if(zC.isJsxOpeningLikeElement(e)&&0===t)return zy(r,e);e=r.parameters.length-1;return ak(r)&&e<=t?Y_(_s(r.parameters[e]),Ed(t-e),256):Tb(r,t)}function Cy(e,t){var r=e.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 63:case 76:case 75:case 77:return e===a?function(e){var t,r=zC.getAssignmentDeclarationKind(e);switch(r){case 0:case 4:var n=function(e){if(e.symbol)return e.symbol;if(zC.isIdentifier(e))return Hg(e);if(zC.isPropertyAccessExpression(e)){var t=Fx(e.expression);return zC.isPrivateIdentifier(e.name)?function(e,t){t=Jh(t.escapedText,t);return t&&Uh(e,t)}(t,e.name):_l(t,e.name.escapedText)}return}(e.left),i=n&&n.valueDeclaration;return i&&(zC.isPropertyDeclaration(i)||zC.isPropertySignature(i))?(a=zC.getEffectiveTypeAnnotationNode(i))&&ip(Id(a),mi(n).mapper)||i.initializer&&Fx(e.left):0===r?Fx(e.left):Ey(e);case 5:if(ky(e,r))return Ey(e);if(e.left.symbol){n=e.left.symbol.valueDeclaration;if(!n)return;i=zC.cast(e.left,zC.isAccessExpression);if(a=zC.getEffectiveTypeAnnotationNode(n))return Id(a);if(zC.isIdentifier(i.expression)){var a=i.expression,a=Di(a,a.escapedText,111551,void 0,a.escapedText,!0);if(a){a=a.valueDeclaration&&zC.getEffectiveTypeAnnotationNode(a.valueDeclaration);if(a){i=zC.getElementOrPropertyAccessName(i);if(void 0!==i)return Ny(Id(a),i)}return}}return zC.isInJSFile(n)?void 0:Fx(e.left)}return Fx(e.left);case 1:case 6:case 3:var o=null===(t=e.left.symbol)||void 0===t?void 0:t.valueDeclaration;case 2:o=(o=o||(null===(t=e.symbol)||void 0===t?void 0:t.valueDeclaration))&&zC.getEffectiveTypeAnnotationNode(o);return o?Id(o):void 0;case 7:case 8:case 9:return zC.Debug.fail("Does not apply");default:return zC.Debug.assertNever(r)}}(r):void 0;case 56:case 60:var o=jy(r,t);return e===a&&(o&&o.pattern||!o&&!zC.isDefaultedExpandoInitializer(r))?Fx(n):o;case 55:case 27:return e===a?jy(r,t):void 0;default:return}}function ky(e,t){if(void 0===t&&(t=zC.getAssignmentDeclarationKind(e)),4===t)return!0;if(!zC.isInJSFile(e)||5!==t||!zC.isIdentifier(e.left.expression))return!1;t=e.left.expression.escapedText,t=Di(e.left,t,111551,void 0,void 0,!0,!0);return zC.isThisInitializedDeclaration(null==t?void 0:t.valueDeclaration)}function Ey(e){if(!e.symbol)return Fx(e.left);if(e.symbol.valueDeclaration){var t=zC.getEffectiveTypeAnnotationNode(e.symbol.valueDeclaration);if(t){var r=Id(t);if(r)return r}}r=zC.cast(e.left,zC.isAccessExpression);if(zC.isObjectLiteralMethod(zC.getThisContainer(r.expression,!1))){e=dy(r.expression),r=zC.getElementOrPropertyAccessName(r);return void 0!==r&&Ny(e,r)||void 0}}function Ny(e,n,i){return Pm(e,function(e){if(Mc(e)&&!e.declaration.nameType){var t=kc(e),r=Hc(t)||t,t=i||kd(zC.unescapeLeadingUnderscores(n));if(hp(t,r))return X_(e,t)}else if(3670016&e.flags){r=_l(e,n);if(r)return t=r,262144&zC.getCheckFlags(t)&&!t.type&&0<=yo(t,0)?void 0:_s(r);if(Of(e)){r=Rf(e);if(r&&zC.isNumericLiteralName(n)&&0<=+n)return r}return null===(e=gl(yl(e),i||kd(zC.unescapeLeadingUnderscores(n))))||void 0===e?void 0:e.type}},!0)}function Ay(e,t){if(zC.Debug.assert(zC.isObjectLiteralMethod(e)),!(33554432&e.flags))return Fy(e,t)}function Fy(e,t){var r=e.parent,n=zC.isPropertyAssignment(e)&&vy(e);if(n)return n;r=Ly(r,t);if(r){if(Ys(e)){t=ba(e);return Ny(r,t.escapedName,mi(t).nameType)}if(e.name){var i=E_(e.name);return Pm(r,function(e){return null===(e=gl(yl(e),i))||void 0===e?void 0:e.type},!0)}}}function Py(e,t){return e&&(Ny(e,""+t)||Pm(e,function(e){return ZD(1,e,at,void 0,!1)},!0))}function wy(e){var t=e.parent;return zC.isJsxAttributeLike(t)?jy(e):zC.isJsxElement(t)?function(e,t){var r=Ly(e.openingElement.tagName),n=fh(dh(e));if(r&&!xo(r)&&n&&""!==n){var e=zC.getSemanticJsxChildren(e.children),i=e.indexOf(t),n=Ny(r,n);return n&&(1===e.length?n:Pm(n,function(e){return vf(e)?Y_(e,Ed(i)):e},!0))}}(t,e):void 0}function Iy(e){if(!zC.isJsxAttribute(e))return jy(e.parent);var t=Ly(e.parent);return t&&!xo(t)?Ny(t,e.name.escapedText):void 0}function Oy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 153:return!0;case 206:case 212:return Oy(e.expression);case 288:return!e.expression||Oy(e.expression)}return!1}function My(r,n){return t=r,i=rm(e=n),(t=(t=i&&zC.find(t.properties,function(e){return e.symbol&&296===e.kind&&e.symbol.escapedName===i&&Oy(e.initializer)}))&&wx(t.initializer))&&nm(e,t)||Hp(n,zC.concatenate(zC.map(zC.filter(r.properties,function(e){return!!e.symbol&&296===e.kind&&Oy(e.initializer)&&em(n,e.symbol.escapedName)}),function(e){return[function(){return wx(e.initializer)},e.symbol.escapedName]}),zC.map(zC.filter(Jc(n),function(e){var t;return!!(16777216&e.flags)&&!(null===(t=null==r?void 0:r.symbol)||void 0===t||!t.members)&&!r.symbol.members.has(e.escapedName)&&em(n,e.escapedName)}),function(e){return[function(){return at},e.escapedName]})),hp,n);var e,t,i}function Ly(e,t){var r,n,i=Ry((zC.isObjectLiteralMethod(e)?Ay:jy)(e,t),e,t);if(i&&!(t&&2&t&&8650752&i.flags)){i=Pm(i,tl,!0);return 1048576&i.flags&&zC.isObjectLiteralExpression(e)?My(e,i):1048576&i.flags&&zC.isJsxAttributes(e)?(r=e,Hp(n=i,zC.concatenate(zC.map(zC.filter(r.properties,function(e){return!!e.symbol&&285===e.kind&&em(n,e.symbol.escapedName)&&(!e.initializer||Oy(e.initializer))}),function(e){return[e.initializer?function(){return wx(e.initializer)}:function(){return mt},e.symbol.escapedName]}),zC.map(zC.filter(Jc(n),function(e){var t;return!!(16777216&e.flags)&&!(null===(t=null==r?void 0:r.symbol)||void 0===t||!t.members)&&!r.symbol.members.has(e.escapedName)&&em(n,e.escapedName)}),function(e){return[function(){return at},e.escapedName]})),hp,n)):i}}function Ry(e,t,r){if(e&&nx(e,465829888)){t=Jy(t);if(t&&zC.some(t.inferences,Ex)){if(r&&1&r)return By(e,t.nonFixingMapper);if(t.returnMapper){t=By(e,t.returnMapper);return 1048576&t.flags&&l_(t.types,gt)&&l_(t.types,yt)?Am(t,function(e){return e!==gt&&e!==yt}):t}}}return e}function By(e,t){return 465829888&e.flags?ip(e,t):1048576&e.flags?f_(zC.map(e.types,function(e){return By(e,t)}),0):2097152&e.flags?x_(zC.map(e.types,function(e){return By(e,t)})):e}function jy(e,t){if(!(33554432&e.flags)){if(e.contextualType)return e.contextualType;var r,n=e.parent;switch(n.kind){case 254:case 164:case 167:case 166:case 203:return function(e,t){var r=e.parent;if(zC.hasInitializer(r)&&e===r.initializer){e=vy(r);if(e)return e;if(!(8&t)&&zC.isBindingPattern(r.name))return Ho(r.name,!0,!1)}}(e,t);case 214:case 247:return function(e){var t=zC.getContainingFunction(e);if(t){var r=Dy(t);if(r){e=zC.getFunctionFlags(t);if(1&e){t=nS(r,2&e?2:1,void 0);if(!t)return;r=t.returnType}if(2&e){e=Pm(r,uD);return e&&f_([e,Rb(e)])}return r}}}(e);case 224:return function(e){if(r=zC.getContainingFunction(e)){var t=zC.getFunctionFlags(r),r=Dy(r);if(r)return e.asteriskToken?r:vS(0,r,0!=(2&t))}}(n);case 218:return function(e,t){if(t=jy(e,t)){t=uD(t);return t&&f_([t,Rb(t)])}}(n,t);case 208:case 209:return Sy(n,e);case 211:case 229:return zC.isConstTypeReference(n.type)?o(n):Id(n.type);case 221:return Cy(e,t);case 296:case 297:return Fy(n,t);case 298:return jy(n.parent,t);case 204:var i=n;return Py(Ly(i,t),zC.indexOfNode(i.elements,e));case 222:return a=t,i=(r=e).parent,r===i.whenTrue||r===i.whenFalse?jy(i,a):void 0;case 233:return zC.Debug.assert(223===n.parent.kind),function(e,t){if(210===e.parent.kind)return Sy(e.parent,t)}(n.parent,e);case 212:var a=zC.isInJSFile(n)?zC.getJSDocTypeTag(n):void 0;return a?zC.isJSDocTypeTag(a)&&zC.isConstTypeReference(a.typeExpression.type)?o(n):Id(a.typeExpression.type):jy(n,t);case 230:return jy(n,t);case 271:return Zo(n);case 288:return wy(n);case 285:case 287:return Iy(n);case 280:case 279:return function(e,t){if(zC.isJsxOpeningElement(e)&&e.parent.contextualType&&4!==t)return e.parent.contextualType;return Ty(e,0)}(n,t)}}function o(e){return jy(e)}}function Jy(e){e=zC.findAncestor(e,function(e){return!!e.inferenceContext});return e&&e.inferenceContext}function zy(e,t){return(0!==Fv(t)?function(e,t){e=Ib(e,nt);e=Ky(t,dh(t),e);t=lh(QC.IntrinsicAttributes,t);Do(t)||(e=fc(t,e));return e}:function(e,t){var r=dh(t),n=function(e){return ph(QC.ElementAttributesPropertyNameContainer,e)}(r),i=void 0===n?Ib(e,nt):""===n?zl(e):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n<i.length;n++){var a=zl(i[n]);if(xo(a))return a;a=bo(a,t);if(!a)return;r.push(a)}return x_(r)}e=zl(e);return xo(e)?e:bo(e,t)}(e,n);if(!i)return n&&zC.length(t.attributes.properties)&&ei(t,zC.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,zC.unescapeLeadingUnderscores(n)),nt;{if(xo(i=Ky(t,r,i)))return i;n=i,r=lh(QC.IntrinsicClassAttributes,t);Do(r)||(i=vs(r.symbol),e=zl(e),n=fc(i?uu(r,wl([e],i,Pl(i),zC.isInJSFile(t))):r,n));t=lh(QC.IntrinsicAttributes,t);return Do(t)||(n=fc(t,n)),n}})(e,t)}function Ky(e,t,r){var n=(a=t)&&vi(a.exports,QC.LibraryManagedAttributes,788968);if(n){var i=Rs(n),t=function(e){if(ih(e.tagName))return Xl(Yv(e,t=mh(e)));var t,r=mx(e.tagName);return 128&r.flags?(t=gh(r,e))?Xl(Yv(e,t)):$e:r}(e);if(524288&n.flags){var a=mi(n).typeParameters;if(2<=zC.length(a))return mu(n,wl([t,r],a,2,zC.isInJSFile(e)))}if(2<=zC.length(i.typeParameters))return uu(i,wl([t,r],i.typeParameters,2,zC.isInJSFile(e)))}return r}function Uy(e){return zC.getStrictOptionValue($,"noImplicitAny")?zC.reduceLeft(e,function(e,t){return e!==t&&e?dc(e.typeParameters,t.typeParameters)?function(e,t){var r,n=e.typeParameters||t.typeParameters;e.typeParameters&&t.typeParameters&&(r=jd(t.typeParameters,e.typeParameters));var i=e.declaration,a=function(e,t,r){for(var n=Eb(e),i=Eb(t),a=i<=n?e:t,o=a===e?t:e,s=a===e?n:i,c=Ab(e)||Ab(t),l=c&&!Ab(a),u=new Array(s+(l?1:0)),_=0;_<s;_++){var d=Cb(a,_);a===t&&(d=ip(d,r));var p=Cb(o,_)||nt;o===t&&(p=ip(p,r));var f=f_([d,p]),g=c&&!l&&_===s-1,m=_>=Nb(a)&&_>=Nb(o),d=n<=_?void 0:xb(e,_),p=i<=_?void 0:xb(t,_),p=si(1|(m&&!g?16777216:0),(d===p?d:d?p?void 0:d:p)||"arg".concat(_));p.type=g?Qu(f):f,u[_]=p}{var y;l&&((y=si(1,"args")).type=Qu(Tb(o,s)),o===t&&(y.type=ip(y.type,r)),u[s]=y)}return u}(e,t,r),o=function(e,t,r){if(!e||!t)return e||t;r=f_([_s(e),ip(_s(t),r)]);return tg(e,r)}(e.thisParameter,t.thisParameter,r),s=Math.max(e.minArgumentCount,t.minArgumentCount),s=ac(i,n,o,a,void 0,void 0,s,39&(e.flags|t.flags));s.compositeKind=2097152,s.compositeSignatures=zC.concatenate(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?qd(e.mapper,r):r);return s}(e,t):void 0:e}):void 0}function Vy(e,t){e=pl(e,0),e=zC.filter(e,function(e){return!function(e,t){for(var r=0;r<t.parameters.length;r++){var n=t.parameters[r];if(n.initializer||n.questionToken||n.dotDotDotToken||kl(n))break}t.parameters.length&&zC.parameterIsThisKeyword(t.parameters[0])&&r--;return!Ab(e)&&Eb(e)<r}(e,t)});return 1===e.length?e[0]:Uy(e)}function qy(e){return zC.isFunctionExpressionOrArrowFunction(e)||zC.isObjectLiteralMethod(e)?Wy(e):void 0}function Wy(e){zC.Debug.assert(169!==e.kind||zC.isObjectLiteralMethod(e));var t=Ol(e);if(t)return t;t=Ly(e,1);if(t){if(!(1048576&t.flags))return Vy(t,e);for(var r,n=0,i=t.types;n<i.length;n++){var a=Vy(i[n],e);if(a)if(r){if(!df(r[0],a,!1,!0,!0,fp))return;r.push(a)}else r=[a]}return r?1===r.length?r[0]:sc(r[0],r):void 0}}function Hy(e){return 203===e.kind&&!!e.initializer||221===e.kind&&63===e.operatorToken.kind}function Gy(e,t,r){for(var n=e.elements,i=n.length,a=[],o=[],s=Ly(e),c=zC.isAssignmentTarget(e),l=xx(e),u=!1,_=0;_<i;_++){var d,p,f=n[_];225===f.kind?(B<2&&uC(f,$.downlevelIteration?1536:1024),vf(p=Ix(f.expression,t,r))?(a.push(p),o.push(8)):(c?(d=bl(p,dt)||ZD(65,p,at,void 0,!1)||nt,a.push(d)):a.push(YD(33,p,at,f.expression)),o.push(4))):re&&227===f.kind?(u=!0,a.push(ct),o.push(2)):(d=Dx(f,t,Py(s,a.length),r),a.push(Oo(d,!0,u)),o.push(u?2:1),s&&Em(s,Sf)&&t&&2&t&&!(4&t)&&lp(f)&&(p=Jy(e),zC.Debug.assert(p),mg(p,f,d)))}return c?t_(a,o):r||l||s&&Em(s,Sf)?Qy(t_(a,o,l)):Qy(Qu(a.length?f_(zC.sameMap(a,function(e,t){return 8&o[t]?$_(e,dt)||Xe:e}),2):ee?Tt:ot,l))}function Qy(e){if(!(4&zC.getObjectFlags(e)))return e;var t=e.literalType;return t||((t=e.literalType=_u(e)).objectFlags|=147456),t}function Xy(e){switch(e.kind){case 162:return ix(Yy(e),296);case 79:return zC.isNumericLiteralName(e.escapedText);case 8:case 10:return zC.isNumericLiteralName(e.text);default:return!1}}function Yy(e){var t,r=yi(e.expression);if(!r.resolvedType){if((zC.isTypeLiteralNode(e.parent.parent)||zC.isClassLike(e.parent.parent)||zC.isInterfaceDeclaration(e.parent.parent))&&zC.isBinaryExpression(e.expression)&&101===e.expression.operatorToken.kind&&172!==e.parent.kind&&173!==e.parent.kind)return r.resolvedType=$e;r.resolvedType=Ix(e.expression),!zC.isPropertyDeclaration(e.parent)||zC.hasStaticModifier(e.parent)||!zC.isClassExpression(e.parent.parent)||(t=sy(zC.getEnclosingBlockScopeContainer(e.parent.parent)))&&(yi(t).flags|=65536,yi(e).flags|=524288,yi(e.parent.parent).flags|=524288),(98304&r.resolvedType.flags||!ix(r.resolvedType,402665900)&&!hp(r.resolvedType,Nt))&&ei(e,zC.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function Zy(e){var t=null===(t=e.declarations)||void 0===t?void 0:t[0];return zC.isKnownSymbol(e)||t&&zC.isNamedDeclaration(t)&&zC.isComputedPropertyName(t.name)&&ix(Yy(t.name),4096)}function $y(e,t,r,n){for(var i,a,o=[],s=t;s<r.length;s++){var c=r[s];(n===_t&&!Zy(c)||n===dt&&(a=void 0,a=null===(a=(i=c).declarations)||void 0===a?void 0:a[0],zC.isNumericLiteralName(i.escapedName)||a&&zC.isNamedDeclaration(a)&&Xy(a.name))||n===vt&&Zy(c))&&o.push(_s(r[s]))}return $l(n,o.length?f_(o,2):at,xx(e))}function eh(e){zC.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=mi(e);if(!t.immediateTarget){e=Fi(e);if(!e)return zC.Debug.fail();t.immediateTarget=qi(e,!0)}return t.immediateTarget}function th(t,e){var r=zC.isAssignmentTarget(t);!function(e,t){for(var r=new zC.Map,n=0,i=e.properties;n<i.length;n++){var a=i[n];if(298!==a.kind){var o=a.name;if(162===o.kind&&xC(o),297===a.kind&&!t&&a.objectAssignmentInitializer&&LC(a.equalsToken,zC.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),80===o.kind&&LC(o,zC.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),a.modifiers)for(var s=0,c=a.modifiers;s<c.length;s++){var l=c[s];131===l.kind&&169===a.kind||LC(l,zC.Diagnostics._0_modifier_cannot_be_used_here,zC.getTextOfNode(l))}var u=void 0;switch(a.kind){case 297:TC(a.exclamationToken,zC.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 296:SC(a.questionToken,zC.Diagnostics.An_object_member_cannot_be_declared_optional),8===o.kind&&BC(o),u=4;break;case 169:u=8;break;case 172:u=1;break;case 173:u=2;break;default:throw zC.Debug.assertNever(a,"Unexpected syntax kind:"+a.kind)}if(!t){var _=zC.getPropertyNameForPropertyNameNode(o);if(void 0!==_){var d=r.get(_);if(d)if(8&u&&8&d)LC(o,zC.Diagnostics.Duplicate_identifier_0,zC.getTextOfNode(o));else if(4&u&&4&d)LC(o,zC.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,zC.getTextOfNode(o));else{if(!(3&u&&3&d))return LC(o,zC.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===d||u===d)return LC(o,zC.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);r.set(_,u|d)}else r.set(_,u)}}}else if(t){_=zC.skipParentheses(a.expression);if(zC.isArrayLiteralExpression(_)||zC.isObjectLiteralExpression(_))return LC(a.expression,zC.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,r);for(var n=ee?zC.createSymbolTable():void 0,i=zC.createSymbolTable(),a=[],o=Rt,s=Ly(t),c=s&&s.pattern&&(201===s.pattern.kind||205===s.pattern.kind),l=xx(t),u=l?8:0,_=zC.isInJSFile(t)&&!zC.isInJsonFile(t),d=zC.getJSDocEnumTag(t),p=!s&&_&&!d,f=L,g=!1,m=!1,y=!1,h=!1,v=0,b=t.properties;v<b.length;v++){var x=b[v];x.name&&zC.isComputedPropertyName(x.name)&&Yy(x.name)}for(var D=0,S=0,T=t.properties;S<T.length;S++){var C=T[S],k=ba(C),E=C.name&&162===C.name.kind?Yy(C.name):void 0;if(296===C.kind||297===C.kind||zC.isObjectLiteralMethod(C)){var N=296===C.kind?Sx(C,e):297===C.kind?Dx(!r&&C.objectAssignmentInitializer?C.objectAssignmentInitializer:C.name,e):Tx(C,e);_&&((A=wo(C))?(Dp(N,A,C),N=A):d&&d.typeExpression&&Dp(N,Id(d.typeExpression),C)),f|=458752&zC.getObjectFlags(N);var A=E&&Hs(E)?E:void 0,F=A?si(4|k.flags,Zs(A),4096|u):si(4|k.flags,k.escapedName,u);A&&(F.nameType=A),r?(296===C.kind&&Hy(C.initializer)||297===C.kind&&C.objectAssignmentInitializer)&&(F.flags|=16777216):!c||512&zC.getObjectFlags(s)||((A=_l(s,k.escapedName))?F.flags|=16777216&A.flags:$.suppressExcessPropertyErrors||vl(s,_t)||ei(C.name,zC.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,$a(k),to(s))),F.declarations=k.declarations,F.parent=k.parent,k.valueDeclaration&&(F.valueDeclaration=k.valueDeclaration),F.type=N,F.target=k,k=F,null!=n&&n.set(F.escapedName,F),!(s&&e&&2&e)||4&e||296!==C.kind&&169!==C.kind||!lp(C)||(P=Jy(t),zC.Debug.assert(P),mg(P,296===C.kind?C.initializer:C,N))}else{if(298===C.kind){if(B<2&&uC(C,2),0<a.length&&(o=vd(o,O(),t.symbol,f,l),a=[],i=zC.createSymbolTable(),h=y=m=!1),rh(N=ol(Ix(C.expression)))){var P=hd(N,l);if(n&&sh(P,n,C),D=a.length,Do(o))continue;o=vd(o,P,t.symbol,f,l)}else ei(C,zC.Diagnostics.Spread_types_may_only_be_created_from_object_types),o=$e;continue}zC.Debug.assert(172===C.kind||173===C.kind),cT(C)}!E||8576&E.flags?i.set(k.escapedName,k):hp(E,Nt)&&(hp(E,dt)?y=!0:hp(E,vt)?h=!0:m=!0,r&&(g=!0)),a.push(k)}if(c&&298!==t.parent.kind)for(var w=0,I=Jc(s);w<I.length;w++){F=I[w];i.get(F.escapedName)||_l(o,F.escapedName)||(16777216&F.flags||ei(F.valueDeclaration||F.bindingElement,zC.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(F.escapedName,F),a.push(F))}return Do(o)?$e:o!==Rt?(0<a.length&&(o=vd(o,O(),t.symbol,f,l),a=[],i=zC.createSymbolTable(),y=m=!1),Pm(o,function(e){return e===Rt?O():e})):O();function O(){var e=[];m&&e.push($y(t,D,a,_t)),y&&e.push($y(t,D,a,dt)),h&&e.push($y(t,D,a,vt));e=Ba(t.symbol,i,zC.emptyArray,zC.emptyArray,e);return e.objectFlags|=131200|f,p&&(e.objectFlags|=4096),g&&(e.objectFlags|=512),r&&(e.pattern=t),e}}function rh(e){e=Kf(Pm(e,Gc));return!!(126615553&e.flags||3145728&e.flags&&zC.every(e.types,rh))}function nh(e){return zC.stringContains(e,"-")}function ih(e){return 79===e.kind&&zC.isIntrinsicJsxName(e.escapedText)}function ah(e,t){return e.initializer?Dx(e.initializer,t):mt}function oh(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(_t):288===a.kind&&!a.expression||r.push(Dx(a,t))}return r}function sh(e,t,r){for(var n=0,i=Jc(e);n<i.length;n++){var a=i[n];16777216&a.flags||(a=t.get(a.escapedName))&&(a=ei(a.valueDeclaration,zC.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,zC.unescapeLeadingUnderscores(a.escapedName)),zC.addRelatedInfo(a,zC.createDiagnosticForNode(r,zC.Diagnostics.This_spread_always_overwrites_this_property)))}}function ch(e,t){return function(e,t){for(var r,n=e.attributes,i=ee?zC.createSymbolTable():void 0,a=zC.createSymbolTable(),o=Bt,s=!1,c=!1,l=2048,u=fh(dh(e)),_=0,d=n.properties;_<d.length;_++){var p,f,g=d[_],m=g.symbol;zC.isJsxAttribute(g)?(f=ah(g,t),l|=458752&zC.getObjectFlags(f),(p=si(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===u&&(c=!0)):(zC.Debug.assert(287===g.kind),0<a.size&&(o=vd(o,v(),n.symbol,l,!1),a=zC.createSymbolTable()),xo(f=ol(mx(g.expression,t)))&&(s=!0),rh(f)?(o=vd(o,f,n.symbol,l,!1),i&&sh(f,i,g)):(ei(g.expression,zC.Diagnostics.Spread_types_may_only_be_created_from_object_types),r=r?x_([r,f]):f))}s||0<a.size&&(o=vd(o,v(),n.symbol,l,!1));var y,h=278===e.parent.kind?e.parent:void 0;return h&&h.openingElement===e&&0<h.children.length&&(y=oh(h,t),!s&&u&&""!==u&&(c&&ei(n,zC.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,zC.unescapeLeadingUnderscores(u)),e=(h=Ly(e.attributes))&&Ny(h,u),(h=si(4,u)).type=1===y.length?y[0]:e&&Em(e,Sf)?t_(y):Qu(f_(y)),h.valueDeclaration=zC.factory.createPropertySignature(void 0,zC.unescapeLeadingUnderscores(u),void 0,void 0),zC.setParent(h.valueDeclaration,n),h.valueDeclaration.symbol=h,(y=zC.createSymbolTable()).set(u,h),o=vd(o,Ba(n.symbol,y,zC.emptyArray,zC.emptyArray,zC.emptyArray),n.symbol,l,!1))),s?Xe:r&&o!==Bt?x_([r,o]):r||(o===Bt?v():o);function v(){l|=L;var e=Ba(n.symbol,a,zC.emptyArray,zC.emptyArray,zC.emptyArray);return e.objectFlags|=131200|l,e}}(e.parent,t)}function lh(e,t){t=dh(t),t=t&&ga(t),e=t&&vi(t,e,788968);return e?Rs(e):$e}function uh(e){var t=yi(e);if(t.resolvedSymbol)return t.resolvedSymbol;var r=lh(QC.IntrinsicElements,e);if(Do(r))return te&&ei(e,zC.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,zC.unescapeLeadingUnderscores(QC.IntrinsicElements)),t.resolvedSymbol=We;if(!zC.isIdentifier(e.tagName))return zC.Debug.fail();var n=_l(r,e.tagName.escapedText);return n?(t.jsxFlags|=1,t.resolvedSymbol=n):bl(r,_t)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(ei(e,zC.Diagnostics.Property_0_does_not_exist_on_type_1,zC.idText(e.tagName),"JSX."+QC.IntrinsicElements),t.resolvedSymbol=We)}function _h(e){var t=e&&zC.getSourceFileOfNode(e),r=t&&yi(t);if(!r||!1!==r.jsxImplicitImportContainer){if(r&&r.jsxImplicitImportContainer)return r.jsxImplicitImportContainer;t=zC.getJSXRuntimeImport(zC.getJSXImplicitImportBase($,t),$);if(t){e=oa(e,t,zC.getEmitModuleResolutionKind($)===zC.ModuleResolutionKind.Classic?zC.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:zC.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,e),e=e&&e!==We?va(Hi(e)):void 0;return r&&(r.jsxImplicitImportContainer=e||!1),e}}}function dh(e){var t=e&&yi(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=_h(e);if(r&&r!==We||(r=Di(e,e=Qn(e),1920,void 0,e,!1)),r){r=Hi(vi(ga(Hi(r)),QC.JSX,1920));if(r&&r!==We)return t&&(t.jsxNamespace=r),r}t&&(t.jsxNamespace=!1)}t=Hi(Ou(QC.JSX,1920,void 0));return t!==We?t:void 0}function ph(e,t){var r=t&&vi(t.exports,e,788968),t=r&&Rs(r),t=t&&Jc(t);if(t){if(0===t.length)return"";if(1===t.length)return t[0].escapedName;1<t.length&&r.declarations&&ei(r.declarations[0],zC.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,zC.unescapeLeadingUnderscores(e))}}function fh(e){return ph(QC.ElementChildrenAttributeNameContainer,e)}function gh(e,t){t=lh(QC.IntrinsicElements,t);if(Do(t))return Xe;e=e.value,e=_l(t,zC.escapeLeadingUnderscores(e));if(e)return _s(e);t=bl(t,_t);return t||void 0}function mh(e){zC.Debug.assert(ih(e.tagName));var t=yi(e);if(t.resolvedJsxElementAttributesType)return t.resolvedJsxElementAttributesType;var r=uh(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=_s(r)||$e:2&t.jsxFlags?t.resolvedJsxElementAttributesType=bl(lh(QC.IntrinsicElements,e),_t)||$e:t.resolvedJsxElementAttributesType=$e}function yh(e){e=lh(QC.ElementClass,e);if(!Do(e))return e}function hh(e){return lh(QC.Element,e)}function vh(e){e=hh(e);if(e)return f_([e,lt])}function bh(e){var t,r,n,i,a,o,s,c,l=zC.isJsxOpeningLikeElement(e);function u(){var e=zC.getTextOfNode(o.tagName);return zC.chainDiagnosticMessages(void 0,zC.Diagnostics._0_cannot_be_used_as_a_JSX_component,e)}l&&function(e){(function(e){if(zC.isPropertyAccessExpression(e)){var t=e;do{var r=n(t.name);if(r)return}while(t=t.expression,zC.isPropertyAccessExpression(t));e=n(t);if(e)return}function n(e){if(zC.isIdentifier(e)&&-1!==zC.idText(e).indexOf(":"))return LC(e,zC.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(e.tagName),hC(e,e.typeArguments);for(var t=new zC.Map,r=0,n=e.attributes.properties;r<n.length;r++){var i=n[r];if(287!==i.kind){var a=i.name,i=i.initializer;if(t.get(a.escapedText))return LC(a,zC.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(a.escapedText,!0),i&&288===i.kind&&!i.expression)return LC(i,zC.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(e),i=e,0===($.jsx||0)&&ei(i,zC.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===hh(i)&&te&&ei(i,zC.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),_h(e)||(t=Rn&&2===$.jsx?zC.Diagnostics.Cannot_find_name_0:void 0,r=Qn(e),n=l?e.tagName:e,i=void 0,zC.isJsxOpeningFragment(e)&&"null"===r||(i=Di(n,r,111551,t,r,!0)),i&&(i.isReferenced=67108863,2097152&i.flags&&!Yi(i)&&$i(i)),!zC.isJsxOpeningFragment(e)||(a=Xn(zC.getSourceFileOfNode(e)))&&Di(n,a,111551,t,a,!0)),l&&(ib(l=eb(a=e),e),e=Fv(a),l=zl(l),o=a,1===e?(s=vh(o))&&Kp(l,s,Un,o.tagName,zC.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,u):0===e?(c=yh(o))&&Kp(l,c,Un,o.tagName,zC.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,u):(s=vh(o),c=yh(o),s&&c&&Kp(l,f_([s,c]),Un,o.tagName,zC.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,u)))}function xh(e,t,r){if(524288&e.flags){if(Bc(e,t)||Sl(e,t)||Qs(t)&&vl(e,_t)||r&&nh(t))return 1}else if(3145728&e.flags&&Dh(e))for(var n=0,i=e.types;n<i.length;n++)if(xh(i[n],t,r))return 1}function Dh(e){return!!(524288&e.flags&&!(512&zC.getObjectFlags(e))||67108864&e.flags||1048576&e.flags&&zC.some(e.types,Dh)||2097152&e.flags&&zC.every(e.types,Dh))}function Sh(e,t){if(!function(e){if(e.expression&&zC.isCommaSequence(e.expression))LC(e.expression,zC.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){t=Ix(e.expression,t);return e.dotDotDotToken&&t!==Xe&&!ff(t)&&ei(e,zC.Diagnostics.JSX_spread_child_must_be_an_array_type),t}return $e}function Th(e){return e.valueDeclaration?zC.getCombinedNodeFlags(e.valueDeclaration):0}function Ch(e){if(8192&e.flags||4&zC.getCheckFlags(e))return 1;if(zC.isInJSFile(e.valueDeclaration)){e=e.valueDeclaration.parent;return e&&zC.isBinaryExpression(e)&&3===zC.getAssignmentDeclarationKind(e)}}function kh(e,t,r,n,i,a){return void 0===a&&(a=!0),Eh(e,t,r,n,i,a?161===e.kind?e.right:200===e.kind?e:203===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function Eh(e,t,r,n,i,a){var o,s,c=zC.getDeclarationModifierFlagsFromSymbol(i,r);if(t){if(B<2&&Nh(i))return a&&ei(a,zC.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&c)return a&&ei(a,zC.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,$a(i),to(of(i))),!1}if(128&c&&Nh(i)&&(zC.isThisProperty(e)||zC.isThisInitializedObjectBindingExpression(e)||zC.isObjectBindingPattern(e.parent)&&zC.isThisInitializedDeclaration(e.parent.parent))&&((s=zC.getClassLikeDeclarationOfSymbol(xa(i)))&&(o=e,!!zC.findAncestor(o,function(e){return!!(zC.isConstructorDeclaration(e)&&zC.nodeIsPresent(e.body)||zC.isPropertyDeclaration(e))||!(!zC.isClassLike(e)&&!zC.isFunctionLikeDeclaration(e))&&"quit"}))))return a&&ei(a,zC.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,$a(i),zC.getTextOfIdentifierOrLiteral(s.name)),!1;if(!(24&c))return!0;if(8&c)return!!vT(e,s=zC.getClassLikeDeclarationOfSymbol(xa(i)))||(a&&ei(a,zC.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,$a(i),to(of(i))),!1);if(t)return!0;t=hT(e,function(e){return cf(Rs(ba(e)),i,r)});return!t&&(t=(t=function(e){e=function(e){e=zC.getThisContainer(e,!1);return e&&zC.isFunctionLike(e)?zC.getThisParameter(e):void 0}(e),e=(null==e?void 0:e.type)&&Id(e.type);e&&262144&e.flags&&(e=Kc(e));if(e&&7&zC.getObjectFlags(e))return fs(e);return}(e))&&cf(t,i,r),32&c||!t)?(a&&ei(a,zC.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,$a(i),to(of(i)||n)),!1):!!(32&c)||(262144&n.flags&&(n=(n.isThisType?Kc:Hc)(n)),!(!n||!gs(n,t))||(a&&ei(a,zC.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,$a(i),to(t),to(n)),!1))}function Nh(e){return af(e,function(e){return!(8192&e.flags)})}function Ah(e){return Mh(Ix(e),e)}function Fh(e){return!!(98304&(ee?zf(e):e.flags))}function Ph(e){return Fh(e)?Wf(e):e}function wh(e,t){ei(e,32768&t?65536&t?zC.Diagnostics.Object_is_possibly_null_or_undefined:zC.Diagnostics.Object_is_possibly_undefined:zC.Diagnostics.Object_is_possibly_null)}function Ih(e,t){ei(e,32768&t?65536&t?zC.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:zC.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:zC.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Oh(e,t,r){if(ee&&2&e.flags)return ei(t,zC.Diagnostics.Object_is_of_type_unknown),$e;var n=98304&(ee?zf(e):e.flags);if(n){r(t,n);n=Wf(e);return 229376&n.flags?$e:n}return e}function Mh(e,t){return Oh(e,t,wh)}function Lh(e,t){e=Mh(e,t);return 16384&e.flags&&ei(t,zC.Diagnostics.Object_is_possibly_undefined),e}function Rh(e,t){return 32&e.flags?(n=t,i=Ix((r=e).expression),a=Xf(i,r.expression),Qf(qh(r,r.expression,Mh(a,r.expression),r.name,n),r,a!==i)):qh(e,e.expression,Ah(e.expression),e.name,t);var r,n,i,a}function Bh(e,t){var r=zC.isPartOfTypeQuery(e)&&zC.isThisIdentifier(e.left)?Mh(dy(e.left),e.left):Ah(e.left);return qh(e,e.left,r,e.right,t)}function jh(e){for(;212===e.parent.kind;)e=e.parent;return zC.isCallOrNewExpression(e.parent)&&e.parent.expression===e}function Jh(e,t){for(var r=zC.getContainingClass(t);r;r=zC.getContainingClass(r)){var n=r.symbol,i=zC.getSymbolNameForPrivateIdentifier(n,e),i=n.members&&n.members.get(i)||n.exports&&n.exports.get(i);if(i)return i}}function zh(e){!function(e){if(!zC.getContainingClass(e))return LC(e,zC.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!zC.isForInStatement(e.parent)){if(!zC.isExpressionNode(e))return LC(e,zC.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var t=zC.isBinaryExpression(e.parent)&&101===e.parent.operatorToken.kind;if(!Kh(e)&&!t)LC(e,zC.Diagnostics.Cannot_find_name_0,zC.idText(e))}}(e);e=Kh(e);return e&&iv(e,void 0,!1),Xe}function Kh(e){if(zC.isExpressionNode(e)){var t=yi(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=Jh(e.escapedText,e)),t.resolvedSymbol}}function Uh(e,t){return _l(e,t.escapedName)}function Vh(e,t){return(Lo(t)||zC.isThisProperty(e)&&Ro(t))&&zC.getThisContainer(e,!0)===Bo(t)}function qh(e,t,r,n,i){var a,o,s,c,l=yi(t).resolvedSymbol,u=zC.getAssignmentTargetKind(e),_=tl(0!==u||jh(e)?og(r):r),d=xo(_)||_===Dt;if(zC.isPrivateIdentifier(n)){B<99&&(0!==u&&uC(e,1048576),1!==u&&uC(e,524288));var p=Jh(n.escapedText,n);if(u&&p&&p.valueDeclaration&&zC.isMethodDeclaration(p.valueDeclaration)&&LC(n,zC.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,zC.idText(n)),d){if(p)return Do(_)?$e:_;if(!zC.getContainingClass(n))return LC(n,zC.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Xe}if(!(a=p?Uh(r,p):void 0)&&function(e,r,t){var n,i=Jc(e);i&&zC.forEach(i,function(e){var t=e.valueDeclaration;if(t&&zC.isNamedDeclaration(t)&&zC.isPrivateIdentifier(t.name)&&t.name.escapedText===r.escapedText)return n=e,!0});var a=Ci(r);if(n){var o=zC.Debug.checkDefined(n.valueDeclaration),s=zC.Debug.checkDefined(zC.getContainingClass(o));if(null!=t&&t.valueDeclaration){i=t.valueDeclaration,t=zC.getContainingClass(i);if(zC.Debug.assert(!!t),zC.findAncestor(t,function(e){return s===e})){e=ei(r,zC.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,to(e));return zC.addRelatedInfo(e,zC.createDiagnosticForNode(i,zC.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,a),zC.createDiagnosticForNode(o,zC.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,a)),1}}return ei(r,zC.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,a,Ci(s.name||UC)),1}}(r,n,p))return $e;a&&65536&a.flags&&!(32768&a.flags)&&1!==u&&ei(e,zC.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(d)return zC.isIdentifier(t)&&l&&ay(l,e),Do(_)?$e:_;a=_l(_,n.escapedText)}if(zC.isIdentifier(t)&&l&&($.isolatedModules||!a||!(JT(a)||8&a.flags&&299===e.parent.kind)||zC.shouldPreserveConstEnums($)&&iy(e))&&ay(l,e),a){ai(a)&&B_(e,a)&&a.declarations&&oi(n,a.declarations,n.escapedText),o=e,p=n,(f=(d=a).valueDeclaration)&&!zC.getSourceFileOfNode(o).isDeclarationFile&&(c=zC.idText(p),!Gh(o)||function(e){return zC.isPropertyDeclaration(e)&&e.questionToken}(f)||zC.isAccessExpression(o)&&zC.isAccessExpression(o.expression)||bi(f,p)||zC.isMethodDeclaration(f)&&32&zC.getCombinedModifierFlags(f)||!$.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;var t=_s(e.parent);for(;;){if(!(t=t.symbol&&function(e){e=Es(e);return 0!==e.length?x_(e):void 0}(t)))return!1;var r=_l(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(d)?257!==f.kind||178===o.parent.kind||16777216&f.flags||bi(f,p)||(s=ei(p,zC.Diagnostics.Class_0_used_before_its_declaration,c)):s=ei(p,zC.Diagnostics.Property_0_is_used_before_its_initialization,c),s&&zC.addRelatedInfo(s,zC.createDiagnosticForNode(f,zC.Diagnostics._0_is_declared_here,c))),iv(a,e,av(t,l)),yi(e).resolvedSymbol=a;var f=zC.isWriteAccess(e);if(kh(e,106===t.kind,f,_,a),Yb(e,a,u))return ei(n,zC.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,zC.idText(n)),$e;c=Vh(e,a)?Ye:(f?us:_s)(a)}else{f=zC.isPrivateIdentifier(n)||0!==u&&V_(r)&&!zC.isThisTypeParameter(r)?void 0:Sl(_,n.escapedText);if(!f||!f.type){u=Wh(e,r.symbol,!0);return!u&&L_(r)?Xe:r.symbol===Te?(Te.exports.has(n.escapedText)&&418&Te.exports.get(n.escapedText).flags?ei(n,zC.Diagnostics.Property_0_does_not_exist_on_type_1,zC.unescapeLeadingUnderscores(n.escapedText),to(r)):te&&ei(n,zC.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,to(r)),Xe):(n.escapedText&&!ki(e)&&Qh(n,zC.isThisTypeParameter(r)?_:r,u),$e)}f.isReadonly&&(zC.isAssignmentTarget(e)||zC.isDeleteTarget(e))&&ei(e,zC.Diagnostics.Index_signature_in_type_0_only_permits_reading,to(_)),c=$.noUncheckedIndexedAccess&&!zC.isAssignmentTarget(e)?f_([f.type,at]):f.type,$.noPropertyAccessFromIndexSignature&&zC.isPropertyAccessExpression(e)&&ei(n,zC.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,zC.unescapeLeadingUnderscores(n.escapedText)),f.declaration&&268435456&zC.getCombinedNodeFlags(f.declaration)&&oi(n,[f.declaration],n.escapedText)}return Hh(e,a,c,n,i)}function Wh(e,t,r){var n=zC.getSourceFileOfNode(e);if(!n||void 0!==$.checkJs||void 0!==n.checkJsDirective||1!==n.scriptKind&&2!==n.scriptKind)return!1;var i=zC.forEach(null==t?void 0:t.declarations,zC.getSourceFileOfNode);return!(n!==i&&i&&hi(i)||r&&t&&32&t.flags||e&&r&&zC.isPropertyAccessExpression(e)&&108===e.expression.kind)}function Hh(e,t,r,n,i){var a=zC.getAssignmentTargetKind(e);if(1===a)return Yf(r,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags)&&!aT(t.declarations))return r;if(r===Ye)return Jo(e,t);r=ny(r,e,i);var o,s=!1;ee&&h&&zC.isAccessExpression(e)&&108===e.expression.kind?(o=t&&t.valueDeclaration)&&BS(o)&&(zC.isStatic(o)||(171!==(i=Ym(e)).kind||i.parent!==o.parent||16777216&o.flags||(s=!0))):ee&&t&&t.valueDeclaration&&zC.isPropertyAccessExpression(t.valueDeclaration)&&zC.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&Ym(e)===Ym(t.valueDeclaration)&&(s=!0);e=Xm(e,r,s?qf(r):r);return s&&!(32768&zf(r))&&32768&zf(e)?(ei(n,zC.Diagnostics.Property_0_is_used_before_being_assigned,$a(t)),r):a?Af(e):e}function Gh(e){return zC.findAncestor(e,function(e){switch(e.kind){case 167:return!0;case 296:case 169:case 172:case 173:case 298:case 162:case 233:case 288:case 285:case 286:case 287:case 280:case 228:case 291:return!1;case 214:case 238:return!(!zC.isBlock(e.parent)||!zC.isClassStaticBlockDeclaration(e.parent.parent))||"quit";default:return!zC.isExpressionNode(e)&&"quit"}})}function Qh(e,t,r){var n,i,a,o,s,c;if(!zC.isPrivateIdentifier(e)&&1048576&t.flags&&!(131068&t.flags))for(var l=0,u=t.types;l<u.length;l++){var _=u[l];if(!_l(_,e.escapedText)&&!Sl(_,e.escapedText)){i=zC.chainDiagnosticMessages(i,zC.Diagnostics.Property_0_does_not_exist_on_type_1,zC.declarationNameToString(e),to(_));break}}Xh(e.escapedText,t)?(s=zC.declarationNameToString(e),a=to(t),i=zC.chainDiagnosticMessages(i,zC.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,a,a+"."+s)):(o=iD(t))&&_l(o,e.escapedText)?(i=zC.chainDiagnosticMessages(i,zC.Diagnostics.Property_0_does_not_exist_on_type_1,zC.declarationNameToString(e),to(t)),n=zC.createDiagnosticForNode(e,zC.Diagnostics.Did_you_forget_to_use_await)):(a=zC.declarationNameToString(e),d=to(t),void 0!==(s=function(e,t){var r=tl(t).symbol;if(!r)return;for(var n=zC.getScriptTargetFeatures(),t=zC.getOwnKeys(n),i=0,a=t;i<a.length;i++){var o=a[i],s=n[o][zC.symbolName(r)];if(void 0!==s&&zC.contains(s,e))return o}}(a,t))?i=zC.chainDiagnosticMessages(i,zC.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,a,d,s):void 0!==(o=Zh(e,t))?(c=zC.symbolName(o),s=r?zC.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:zC.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,i=zC.chainDiagnosticMessages(i,s,a,d,c),n=o.valueDeclaration&&zC.createDiagnosticForNode(o.valueDeclaration,zC.Diagnostics._0_is_declared_here,c)):(c=t,c=$.lib&&!$.lib.includes("dom")&&function(e,t){return 3145728&e.flags?zC.every(e.types,t):t(e)}(c,function(e){return e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(zC.unescapeLeadingUnderscores(e.symbol.escapedName))})&&Op(c)?zC.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:zC.Diagnostics.Property_0_does_not_exist_on_type_1,i=zC.chainDiagnosticMessages(ul(i,t),c,a,d)));var d=zC.createDiagnosticForNodeFromMessageChain(e,i);n&&zC.addRelatedInfo(d,n),ti(!r||i.code!==zC.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,d)}function Xh(e,t){e=t.symbol&&_l(_s(t.symbol),e);return void 0!==e&&e.valueDeclaration&&zC.isStatic(e.valueDeclaration)}function Yh(e,t){return nv(e,Jc(t),106500)}function Zh(e,t){var r,n=Jc(t);return"string"!=typeof e&&(r=e.parent,zC.isPropertyAccessExpression(r)&&(n=zC.filter(n,function(e){return ov(r,t,e)})),e=zC.idText(e)),nv(e,n,111551)}function $h(e,t){var r=zC.isString(e)?e:zC.idText(e),e=Jc(t),t="for"===r?zC.find(e,function(e){return"htmlFor"===zC.symbolName(e)}):"class"===r?zC.find(e,function(e){return"className"===zC.symbolName(e)}):void 0;return null!=t?t:nv(r,e,111551)}function ev(e,t){t=Zh(e,t);return t&&zC.symbolName(t)}function tv(e,i,t){return zC.Debug.assert(void 0!==i,"outername should always be defined"),Si(e,i,t,void 0,i,!1,!1,!0,function(t,e,r){zC.Debug.assertEqual(i,e,"name should equal outerName");var n=vi(t,e,r);return n||(n=t===De?zC.mapDefined(["string","number","boolean","object","bigint","symbol"],function(e){return t.has(e.charAt(0).toUpperCase()+e.slice(1))?si(524288,e):void 0}).concat(zC.arrayFrom(t.values())):zC.arrayFrom(t.values()),nv(zC.unescapeLeadingUnderscores(e),n,r))})}function rv(e,t){return t.exports&&nv(zC.idText(e),da(t),2623475)}function nv(e,t,r){return zC.getSpellingSuggestion(e,t,function(e){var t=zC.symbolName(e);if(zC.startsWith(t,'"'))return;if(e.flags&r)return t;if(2097152&e.flags){e=function(e){if(mi(e).aliasTarget!==He)return Gi(e)}(e);if(e&&e.flags&r)return t}return})}function iv(e,t,r){var n=e&&106500&e.flags&&e.valueDeclaration;if(n){var i=zC.hasEffectiveModifier(n,8),n=e.valueDeclaration&&zC.isNamedDeclaration(e.valueDeclaration)&&zC.isPrivateIdentifier(e.valueDeclaration.name);if((i||n)&&(!t||!zC.isWriteOnlyAccess(t)||65536&e.flags)){if(r){t=zC.findAncestor(t,zC.isFunctionLikeDeclaration);if(t&&t.symbol===e)return}(1&zC.getCheckFlags(e)?mi(e).target:e).isReferenced=67108863}}}function av(e,t){return 108===e.kind||!!t&&zC.isEntityNameExpression(e)&&t===Hg(zC.getFirstIdentifier(e))}function ov(e,t,r){return cv(e,206===e.kind&&106===e.expression.kind,!1,t,r)}function sv(e,t,r,n){if(xo(n))return!0;r=_l(n,r);return!!r&&cv(e,t,!1,n,r)}function cv(e,t,r,n,i){if(xo(n))return!0;if(i.valueDeclaration&&zC.isPrivateIdentifierClassElementDeclaration(i.valueDeclaration)){var a=zC.getContainingClass(i.valueDeclaration);return!zC.isOptionalChain(e)&&!!zC.findAncestor(e,function(e){return e===a})}return Eh(e,t,r,n,i)}function lv(e){var t,r=zC.skipParentheses(e);if(79===r.kind){var n=Hg(r);if(3&n.flags)for(var i=e,a=e.parent;a;){if(243===a.kind&&i===a.statement&&function(e){var t=e.initializer;if(255===t.kind){e=t.declarations[0];if(e&&!zC.isBindingPattern(e.name))return ba(e)}else if(79===t.kind)return Hg(t)}(a)===n&&(1===hl(t=Fx(a.expression)).length&&vl(t,dt)))return 1;a=(i=a).parent}}}function uv(e,t){return 32&e.flags?(n=t,i=Ix((r=e).expression),a=Xf(i,r.expression),Qf(_v(r,Mh(a,r.expression),n),r,a!==i)):_v(e,Ah(e.expression),t);var r,n,i,a}function _v(e,t,r){var n=0!==zC.getAssignmentTargetKind(e)||jh(e)?og(t):t,i=e.argumentExpression,t=Ix(i);if(Do(n)||n===Dt)return n;if(ox(n)&&!zC.isStringLiteralLike(i))return ei(i,zC.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),$e;n=$_(n,lv(i)?dt:t,zC.isAssignmentTarget(e)?4|(V_(n)&&!zC.isThisTypeParameter(n)?2:0):32,e)||$e;return Xx(Hh(e,yi(e).resolvedSymbol,n,i,r),e)}function dv(e){return zC.isCallOrNewExpression(e)||zC.isTaggedTemplateExpression(e)||zC.isJsxOpeningLikeElement(e)}function pv(e){return dv(e)&&zC.forEach(e.typeArguments,oT),210===e.kind?Ix(e.template):zC.isJsxOpeningLikeElement(e)?Ix(e.attributes):165!==e.kind&&zC.forEach(e.arguments,function(e){Ix(e)}),Wr}function fv(e){return pv(e),Hr}function gv(e){return!!e&&(225===e.kind||232===e.kind&&e.isSpread)}function mv(e){return zC.findIndex(e,gv)}function yv(e){return!!(16384&e.flags)}function hv(e){return!!(49155&e.flags)}function vv(e,t,r,n){void 0===n&&(n=!1);var i=!1,a=Eb(r),o=Nb(r);if(210===e.kind){var s,c=t.length;i=223===e.template.kind?(s=zC.last(e.template.templateSpans),zC.nodeIsMissing(s.literal)||!!s.literal.isUnterminated):(s=e.template,zC.Debug.assert(14===s.kind),!!s.isUnterminated)}else if(165===e.kind)c=Lv(e,r);else if(zC.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 zC.Debug.assert(209===e.kind),0===Nb(r);c=n?t.length+1:t.length,i=e.arguments.end===e.end;t=mv(t);if(0<=t)return t>=Nb(r)&&(Ab(r)||t<Eb(r))}if(Ab(r)||!(a<c)){if(i||o<=c)return 1;for(var l=c;l<o;l++)if(131072&Am(Tb(r,l),zC.isInJSFile(e)&&!ee?hv:yv).flags)return;return 1}}function bv(e,t){var r=zC.length(e.typeParameters),e=Pl(e.typeParameters);return!zC.some(t)||t.length>=e&&t.length<=r}function xv(e){return Sv(e,0,!1)}function Dv(e){return Sv(e,0,!1)||Sv(e,1,!1)}function Sv(e,t,r){if(524288&e.flags){e=Lc(e);if(r||0===e.properties.length&&0===e.indexInfos.length){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 Tv(e,t,r,n){var i=dg(e.typeParameters,e,0,n),n=Fb(t),n=r&&(n&&262144&n.flags?r.nonFixingMapper:r.mapper);return ug(n?Qd(t,n):t,e,function(e,t){Lg(i.inferences,e,t)}),r||_g(t,e,function(e,t){Lg(i.inferences,e,t,128)}),ql(e,qg(i),zC.isInJSFile(t.declaration))}function Cv(e){if(!e)return bt;var t=Ix(e);return zC.isOptionalChainRoot(e.parent)?Wf(t):zC.isOptionalChain(e.parent)?Gf(t):t}function kv(e,t,r,n,i){if(zC.isJsxOpeningLikeElement(e))return o=n,c=i,l=zy(l=t,s=e),o=gx(s.attributes,l,c,o),Lg(c.inferences,o,l),qg(c);var a,o,s,c,l;165!==e.kind&&(!(a=jy(e,zC.every(t.typeParameters,function(e){return!!Zc(e)})?8:0))||bg(s=zl(t))&&(o=Jy(e),l=(c=xv(l=ip(a,vg((void 0===(l=1)&&(l=0),(c=o)&&pg(zC.map(c.inferences,hg),c.signature,c.flags|l,c.compareTypes))))))&&c.typeParameters?Xl(Wl(c,c.typeParameters)):l,Lg(i.inferences,l,s,128),l=dg(t.typeParameters,t,i.flags),o=ip(a,o&&o.returnMapper),Lg(l.inferences,o,s),i.returnMapper=zC.some(l.inferences,Ex)?vg((s=l,(l=zC.filter(s.inferences,Ex)).length?pg(zC.map(l,hg),s.signature,s.flags,s.compareTypes):void 0)):void 0));var u=Pb(t),_=u?Math.min(Eb(t)-1,r.length):r.length;u&&262144&u.flags&&((d=zC.find(i.inferences,function(e){return e.typeParameter===u}))&&(d.impliedArity=zC.findIndex(r,gv,_)<0?r.length-_:void 0));var d=Bl(t);d&&bg(d)&&(e=Iv(e),Lg(i.inferences,Cv(e),d));for(var p=0;p<_;p++){var f,g=r[p];227===g.kind||32&n&&Ag(g)||bg(f=Tb(t,p))&&(g=gx(g,f,i,n),Lg(i.inferences,g,f))}return u&&bg(u)&&(d=Nv(r,_,r.length,u,i,n),Lg(i.inferences,d,u)),qg(i)}function Ev(e){return 1048576&e.flags?Pm(e,Ev):1&e.flags||yf(Hc(e)||e)?e:Of(e)?t_(pu(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):t_([e],[8])}function Nv(e,t,r,n,i,a){if(r-1<=t&&gv(o=e[r-1]))return Ev(232===o.kind?o.type:gx(o.expression,n,i,a));for(var o,s,c,l=[],u=[],_=[],d=t;d<r;d++)gv(o=e[d])?vf(s=232===o.kind?o.type:Ix(o.expression))?(l.push(s),u.push(8)):(l.push(YD(33,s,at,225===o.kind?o.expression:o)),u.push(4)):(s=gx(o,c=Y_(n,Ed(d-t),256),i,a),c=nx(c,406978556),l.push((c?Td:Ff)(s)),u.push(1)),232===o.kind&&o.tupleNameSource&&_.push(o.tupleNameSource);return t_(l,u,!1,zC.length(_)===zC.length(l)?_:void 0)}function Av(e,t,r,n){for(var i=zC.isInJSFile(e.declaration),a=e.typeParameters,o=wl(zC.map(t,Id),a,Pl(a),i),s=0;s<t.length;s++){zC.Debug.assert(void 0!==a[s],"Should not call checkTypeArguments with too many type arguments");var c=Kc(a[s]);if(c){var l=r&&n?function(){return zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,u=n||zC.Diagnostics.Type_0_does_not_satisfy_the_constraint_1,_=_||jd(a,o),d=o[s];if(!Dp(d,nc(ip(c,_),d),r?t[s]:void 0,u,l))return}}return o}function Fv(e){if(ih(e.tagName))return 2;e=tl(Ix(e.tagName));return zC.length(pl(e,1))?0:zC.length(pl(e,0))?1:2}function Pv(g,e,t,r,m,n,y){e=zy(e,g),r=gx(g.attributes,e,void 0,r);return function(){if(_h(g))return 1;var e=zC.isJsxOpeningElement(g)||zC.isJsxSelfClosingElement(g)&&!ih(g.tagName)?Ix(g.tagName):void 0;if(!e)return 1;var t=pl(e,0);if(!zC.length(t))return 1;var r=sC(g);if(!r)return 1;e=ra(r,111551,!0,!1,g);if(!e)return 1;e=pl(_s(e),0);if(!zC.length(e))return 1;for(var n=!1,i=0,a=0,o=e;a<o.length;a++){var s=pl(Tb(o[a],0),0);if(zC.length(s))for(var c=0,l=s;c<l.length;c++){var u=l[c];if(n=!0,Ab(u))return 1;u=Eb(u);i<u&&(i=u)}}if(!n)return 1;for(var _=1/0,d=0,p=t;d<p.length;d++){var f=Nb(p[d]);f<_&&(_=f)}if(_<=i)return 1;m&&(t=zC.createDiagnosticForNode(g.tagName,zC.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,zC.entityNameToString(g.tagName),_,zC.entityNameToString(r),i),(r=null===(r=ST(g.tagName))||void 0===r?void 0:r.valueDeclaration)&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(r,zC.Diagnostics._0_is_declared_here,zC.entityNameToString(g.tagName))),y&&y.skipLogging&&(y.errors||(y.errors=[])).push(t),y.skipLogging||Rn.add(t));return}()&&Tp(r,e,t,m?g.tagName:void 0,g.attributes,void 0,n,y)}function wv(e,t,r,n,i,a,o){var s={errors:void 0,skipLogging:!0};if(zC.isJsxOpeningLikeElement(e))return Pv(e,r,n,i,a,o,s)?void 0:(zC.Debug.assert(!a||!!s.errors,"jsx should have errors when reporting errors"),s.errors||zC.emptyArray);var c=Bl(r);if(c&&c!==bt&&209!==e.kind){var l=Iv(e),u=Cv(l),_=a?l||e:void 0,l=zC.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Kp(u,c,n,_,l,o,s))return zC.Debug.assert(!a||!!s.errors,"this parameter should have errors when reporting errors"),s.errors||zC.emptyArray}for(var d=zC.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,u=Pb(r),p=u?Math.min(Eb(r)-1,t.length):t.length,f=0;f<p;f++){var g=t[f];if(227!==g.kind){var m=Tb(r,f),y=gx(g,m,void 0,i),y=4&i?rg(y):y;if(!Tp(y,m,n,a?g:void 0,g,d,o,s))return zC.Debug.assert(!a||!!s.errors,"parameter should have errors when reporting errors"),h(g,y,m),s.errors||zC.emptyArray}}if(u){c=Nv(t,p,t.length,u,void 0,i),l=t.length-p,_=a?0==l?e:1==l?t[p]:zC.setTextRangePosEnd(Ov(e,c),t[p].pos,t[t.length-1].end):void 0;if(!Kp(c,u,n,_,d,void 0,s))return zC.Debug.assert(!a||!!s.errors,"rest parameter should have errors when reporting errors"),h(_,c,u),s.errors||zC.emptyArray}function h(e,t,r){e&&a&&s.errors&&s.errors.length&&(nD(r)||(t=nD(t))&&jp(t,r,n)&&zC.addRelatedInfo(s.errors[0],zC.createDiagnosticForNode(e,zC.Diagnostics.Did_you_forget_to_use_await)))}}function Iv(e){e=208===e.kind?e.expression:210===e.kind?e.tag:void 0;if(e){e=zC.skipOuterExpressions(e);if(zC.isAccessExpression(e))return e.expression}}function Ov(e,t,r,n){n=zC.parseNodeFactory.createSyntheticExpression(t,r,n);return zC.setTextRange(n,e),zC.setParent(n,e),n}function Mv(e){if(210===e.kind){var t=e.template,r=[Ov(t,Fr=Fr||Mu("TemplateStringsArray",0,!0)||Rt)];return 223===t.kind&&zC.forEach(t.templateSpans,function(e){r.push(e.expression)}),r}if(165===e.kind)return function(e){var t=e.parent,r=e.expression;switch(t.kind){case 257:case 226:return[Ov(r,_s(ba(t)))];case 164:var n=t.parent;return[Ov(r,171===t.parent.kind?_s(ba(n)):$e),Ov(r,Xe),Ov(r,dt)];case 167:case 169:case 172:case 173:n=167!==t.kind&&0!==B;return[Ov(r,function(e){var t=ba(e.parent);return(zC.isStatic(e)?_s:Rs)(t)}(t)),Ov(r,function(e){var t=e.name;switch(t.kind){case 79:return kd(zC.idText(t));case 8:case 10:return kd(t.text);case 162:var r=Yy(t);return ix(r,12288)?r:_t;default:return zC.Debug.fail("Unsupported property name.")}}(t)),Ov(r,n?Gu(TT(t)):Xe)]}return zC.Debug.fail()}(e);if(zC.isJsxOpeningLikeElement(e))return 0<e.attributes.properties.length||zC.isJsxOpeningElement(e)&&0<e.parent.children.length?[e.attributes]:zC.emptyArray;var a=e.arguments||zC.emptyArray,e=mv(a);if(0<=e){for(var o=a.slice(0,e),s=e;s<a.length;s++)!function(){var n=a[s],i=225===n.kind&&(ln?Ix:mx)(n.expression);i&&Of(i)?zC.forEach(pu(i),function(e,t){var r=i.target.elementFlags[t],t=Ov(n,4&r?Qu(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 Lv(e,t){switch(e.parent.kind){case 257:case 226:return 1;case 167:return 2;case 169:case 172:case 173:return 0===B||t.parameters.length<=2?2:3;case 164:return 3;default:return zC.Debug.fail()}}function Rv(e,t){var r,n,i=zC.getSourceFileOfNode(e);return e=zC.isPropertyAccessExpression(e.expression)?(r=(n=zC.getErrorSpanForNode(i,e.expression.name)).start,t?n.length:e.end-r):(r=(n=zC.getErrorSpanForNode(i,e.expression)).start,t?n.length:e.end-r),{start:r,length:e,sourceFile:i}}function Bv(e,t,r,n,i,a){if(zC.isCallExpression(e)){var o=Rv(e),s=o.sourceFile,c=o.start,o=o.length;return zC.createFileDiagnostic(s,c,o,t,r,n,i,a)}return zC.createDiagnosticForNode(e,t,r,n,i,a)}function jv(e,t,r){var n=mv(r);if(-1<n)return zC.createDiagnosticForNode(r[n],zC.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var i,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,l=0,u=t;l<u.length;l++){var _=u[l],d=Nb(_),p=Eb(_);d<a&&(a=d,i=_),o=Math.max(o,p),d<r.length&&s<d&&(s=d),r.length<p&&p<c&&(c=p)}var f=zC.some(t,Ab),n=!f&&a<o?a+"-"+o:a,t=!f&&1===n&&0===r.length&&function(e){if(!zC.isCallExpression(e)||!zC.isIdentifier(e.expression))return!1;var t=Di(e.expression,e.expression.escapedText,111551,void 0,void 0,!1);return!!((e=null==t?void 0:t.valueDeclaration)&&zC.isParameter(e)&&zC.isFunctionExpressionOrArrowFunction(e.parent)&&zC.isNewExpression(e.parent.parent)&&zC.isIdentifier(e.parent.parent.expression))&&(!!(t=Uu(!1))&&ST(e.parent.parent.expression,!0)===t)}(e);if(t&&zC.isInJSFile(e))return Bv(e,zC.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);t=f?zC.Diagnostics.Expected_at_least_0_arguments_but_got_1:t?zC.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:zC.Diagnostics.Expected_0_arguments_but_got_1;if(a<r.length&&r.length<o)return Bv(e,zC.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,r.length,s,c);if(r.length<a){var g=Bv(e,t,n,r.length),m=null===(m=null==i?void 0:i.declaration)||void 0===m?void 0:m.parameters[i.thisParameter?r.length+1:r.length];if(m){var y=zC.createDiagnosticForNode(m,zC.isBindingPattern(m.name)?zC.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:zC.isRestParameter(m)?zC.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:zC.Diagnostics.An_argument_for_0_was_not_provided,m.name?zC.isBindingPattern(m.name)?void 0:zC.idText(zC.getFirstIdentifier(m.name)):r.length);return zC.addRelatedInfo(g,y)}return g}m=zC.factory.createNodeArray(r.slice(o)),y=zC.first(m).pos,g=zC.last(m).end;return g===y&&g++,zC.setTextRangePosEnd(m,y,g),zC.createDiagnosticForNodeArray(zC.getSourceFileOfNode(e),m,t,n,r.length)}function Jv(l,e,t,u,r,n){var _,i=210===l.kind,a=165===l.kind,o=zC.isJsxOpeningLikeElement(l),s=!t;a||(_=l.typeArguments,(i||o||106!==l.expression.kind)&&zC.forEach(_,oT));var c=t||[];if(!function(e,t,r){var n,i,a,o,s=0,c=-1;zC.Debug.assert(!t.length);for(var l=0,u=e;l<u.length;l++){var _=u[l],d=_.declaration&&ba(_.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,ok(_)?(o=++c,s++):o=a,t.splice(o,0,r?cc(_,r):_)}}(e,c,r),!c.length)return s&&Rn.add(Bv(l,zC.Diagnostics.Call_target_does_not_contain_any_signatures)),fv(l);var d,p,f,g=Mv(l),o=1===c.length&&!c[0].typeParameters,m=a||o||!zC.some(g,lp)?0:4;m|=32&u;var y,r=!!(16&u)&&208===l.kind&&l.arguments.hasTrailingComma;if(1<c.length&&(w=O(c,zn,o,r)),w=w||O(c,Un,o,r))return w;if(s)if(d)if(1===d.length||3<d.length){var h,v=d[d.length-1];3<d.length&&(h=zC.chainDiagnosticMessages(h,zC.Diagnostics.The_last_overload_gave_the_following_error),h=zC.chainDiagnosticMessages(h,zC.Diagnostics.No_overload_matches_this_call));var b=wv(l,g,v,Un,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&&zC.addRelatedInfo(S,zC.createDiagnosticForNode(v.declaration,zC.Diagnostics.The_last_overload_is_declared_here)),I(v,S),Rn.add(S)}else zC.Debug.fail("No error for last overload signature")}else{for(var T=[],C=0,k=Number.MAX_VALUE,E=0,N=0,A=0,F=d;A<F.length;A++)!function(e){var t=wv(l,g,e,Un,0,!0,function(){return zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Overload_0_of_1_2_gave_the_following_error,N+1,c.length,eo(e))});t?(t.length<=k&&(k=t.length,E=N),C=Math.max(C,t.length),T.push(t)):zC.Debug.fail("No error for 3 or fewer overload signatures"),N++}(F[A]);var P=1<C?T[E]:zC.flatten(T);zC.Debug.assert(0<P.length,"No errors reported for 3 or fewer overload signatures");var r=zC.chainDiagnosticMessages(zC.map(P,zC.createDiagnosticMessageChainFromDiagnostic),zC.Diagnostics.No_overload_matches_this_call),w=__spreadArray([],zC.flatMap(P,function(e){return e.relatedInformation}),!0),s=void 0;s=zC.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}:zC.createDiagnosticForNodeFromMessageChain(l,r,w),I(d[0],s),Rn.add(s)}else p?Rn.add(jv(l,[p],g)):f?Av(f,l.typeArguments,!0,n):0===(y=zC.filter(e,function(e){return bv(e,_)})).length?Rn.add(function(e,t,r){var n=r.length;if(1===t.length){var i=Pl((u=t[0]).typeParameters),a=zC.length(u.typeParameters);return zC.createDiagnosticForNodeArray(zC.getSourceFileOfNode(e),r,zC.Diagnostics.Expected_0_type_arguments_but_got_1,i<a?i+"-"+a:i,n)}for(var o=-1/0,s=1/0,c=0,l=t;c<l.length;c++){var u,_=Pl((u=l[c]).typeParameters),a=zC.length(u.typeParameters);n<_?s=Math.min(s,_):a<n&&(o=Math.max(o,a))}return o!==-1/0&&s!==1/0?zC.createDiagnosticForNodeArray(zC.getSourceFileOfNode(e),r,zC.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,n,o,s):zC.createDiagnosticForNodeArray(zC.getSourceFileOfNode(e),r,zC.Diagnostics.Expected_0_type_arguments_but_got_1,o===-1/0?s:o,n)}(l,e,_)):a?n&&Rn.add(Bv(l,n)):Rn.add(jv(l,y,g));return e=l,a=c,n=g,y=!!t,t=u,zC.Debug.assert(0<a.length),cT(e),y||1===a.length||a.some(function(e){return!!e.typeParameters})?function(e,t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=Eb(a);if(Ab(a)||t<=o)return i;n<o&&(n=o,r=i)}return r}(t,void 0===Ce?r.length:Ce),a=t[i],o=a.typeParameters;if(!o)return a;var s=dv(e)?e.typeArguments:void 0,n=s?Hl(a,function(e,t,r){var n=e.map(TT);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(Zc(t[n.length])||Kc(t[n.length])||Vg(r));return n}(s,o,zC.isInJSFile(e))):function(e,t,r,n,i){t=dg(t,r,zC.isInJSFile(e)?2:0),t=kv(e,r,n,12|i,t);return Hl(r,t)}(e,o,a,r,n);return t[i]=n}(e,a,n,t):function(r){var e,t=zC.mapDefined(r,function(e){return e.thisParameter});t.length&&(e=Kv(t,t.map(vb)));for(var n=zC.minAndMax(r,zv),i=n.min,a=n.max,o=[],s=0;s<a;s++)!function(t){var e=zC.mapDefined(r,function(e){return ak(e)?t<e.parameters.length-1?e.parameters[t]:zC.last(e.parameters):t<e.parameters.length?e.parameters[t]:void 0});zC.Debug.assert(0!==e.length),o.push(Kv(e,zC.mapDefined(r,function(e){return Cb(e,t)})))}(s);var c=zC.mapDefined(r,function(e){return ak(e)?zC.last(e.parameters):void 0}),t=0;0!==c.length&&(n=Qu(f_(zC.mapDefined(r,Vl),2)),o.push(Uv(c,n)),t|=1);r.some(ok)&&(t|=2);return ac(r[0].declaration,void 0,e,o,x_(r.map(zl)),void 0,i,t)}(a);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)||zC.emptyArray,o=1<e.length?zC.find(e,function(e){return zC.isFunctionLikeDeclaration(e)&&zC.nodeIsPresent(e.body)}):void 0;o&&(e=!(r=Il(o)).typeParameters,O([r],Un,e)&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(o,zC.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 zC.some(_)||!vv(l,g,i,n)?void 0:wv(l,g,i,t,0,!1,void 0)?void(d=[i]):i}for(var a=0;a<e.length;a++)if(bv(i=e[a],_)&&vv(l,g,i,n)){var o=void 0,s=void 0;if(i.typeParameters){var c=void 0;if(zC.some(_)){if(!(c=Av(i,_,!1))){f=i;continue}}else s=dg(i.typeParameters,i,zC.isInJSFile(l)?2:0),c=kv(l,i,g,8|m,s),m|=4&s.flags?8:0;if(o=ql(i,c,zC.isInJSFile(i.declaration),s&&s.inferredTypeParameters),Pb(i)&&!vv(l,g,o,n)){p=o;continue}}else o=i;if(!wv(l,g,o,t,m,!1,void 0)){if(m){if(m=32&u,s){o=ql(i,c=kv(l,i,g,m,s),zC.isInJSFile(i.declaration),s&&s.inferredTypeParameters);if(Pb(i)&&!vv(l,g,o,n)){p=o;continue}}if(wv(l,g,o,t,m,!1,void 0)){(d=d||[]).push(o);continue}}return e[a]=o}(d=d||[]).push(o)}}}function zv(e){var t=e.parameters.length;return ak(e)?t-1:t}function Kv(e,t){return Uv(e,f_(t,2))}function Uv(e,t){return tg(zC.first(e),t)}function Vv(e){return!(!e.typeParameters||!YT(zl(e)))}function qv(e,t,r,n){return xo(e)||xo(t)&&262144&e.flags||!r&&!n&&!(1048576&t.flags)&&!(131072&ol(t).flags)&&hp(e,Zt)}function Wv(e,t,r){e.arguments&&B<1&&(0<=(a=mv(e.arguments))&&ei(e.arguments[a],zC.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher));var n=Ah(e.expression);if(n===Dt)return Qr;if(Do(n=tl(n)))return fv(e);if(xo(n))return e.typeArguments&&ei(e,zC.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),pv(e);var i=pl(n,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;var r=t.declaration,n=zC.getSelectedEffectiveModifierFlags(r,24);if(!n||171!==r.kind)return!0;var i=zC.getClassLikeDeclarationOfSymbol(r.parent.symbol),t=Rs(r.parent.symbol);if(vT(e,i))return!0;i=zC.getContainingClass(e);if(i&&16&n){i=TT(i);if(function e(t,r){var n=Es(r);if(!zC.length(n))return!1;var r=n[0];if(2097152&r.flags){for(var n=r.types,i=gc(n),a=0,o=0,s=r.types;o<s.length;o++){var c=s[o];if(!i[a]&&3&zC.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&&ei(e,zC.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,to(t));16&n&&ei(e,zC.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,to(t));return!1}(e,i[0]))return fv(e);if(function t(e,r){if(zC.isArray(e))return zC.some(e,function(e){return t(e,r)});return 1048576===e.compositeKind?zC.some(e.compositeSignatures,r):r(e)}(i,function(e){return!!(4&e.flags)}))return ei(e,zC.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),fv(e);var a=n.symbol&&zC.getClassLikeDeclarationOfSymbol(n.symbol);return a&&zC.hasSyntacticModifier(a,128)?(ei(e,zC.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),fv(e)):Jv(e,i,t,r,0)}i=pl(n,0);if(i.length){r=Jv(e,i,t,r,0);return te||(r.declaration&&!tb(r.declaration)&&zl(r)!==bt&&ei(e,zC.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Bl(r)===bt&&ei(e,zC.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return Gv(e.expression,n,1),fv(e)}function Hv(e,t,r){var n,i=0===r,a=lD(t),o=a&&0<pl(a,r).length;if(1048576&t.flags){for(var s=!1,c=0,l=t.types;c<l.length;c++){var u=l[c];if(0!==pl(u,r).length){if(s=!0,n)break}else if(n||(n=zC.chainDiagnosticMessages(n,i?zC.Diagnostics.Type_0_has_no_call_signatures:zC.Diagnostics.Type_0_has_no_construct_signatures,to(u)),n=zC.chainDiagnosticMessages(n,i?zC.Diagnostics.Not_all_constituents_of_type_0_are_callable:zC.Diagnostics.Not_all_constituents_of_type_0_are_constructable,to(t))),s)break}s||(n=zC.chainDiagnosticMessages(void 0,i?zC.Diagnostics.No_constituent_of_type_0_is_callable:zC.Diagnostics.No_constituent_of_type_0_is_constructable,to(t))),n=n||zC.chainDiagnosticMessages(n,i?zC.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:zC.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,to(t))}else n=zC.chainDiagnosticMessages(n,i?zC.Diagnostics.Type_0_has_no_call_signatures:zC.Diagnostics.Type_0_has_no_construct_signatures,to(t));a=i?zC.Diagnostics.This_expression_is_not_callable:zC.Diagnostics.This_expression_is_not_constructable;return!zC.isCallExpression(e.parent)||0!==e.parent.arguments.length||(e=yi(e).resolvedSymbol)&&32768&e.flags&&(a=zC.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without),{messageChain:zC.chainDiagnosticMessages(n,a),relatedMessage:o?zC.Diagnostics.Did_you_forget_to_use_await:void 0}}function Gv(e,t,r,n){var i=Hv(e,t,r),a=i.messageChain,i=i.relatedMessage,a=zC.createDiagnosticForNodeFromMessageChain(e,a);i&&zC.addRelatedInfo(a,zC.createDiagnosticForNode(e,i)),zC.isCallExpression(e.parent)&&(e=(i=Rv(e.parent,!0)).start,i=i.length,a.start=e,a.length=i),Rn.add(a),Qv(t,r,n?zC.addRelatedInfo(a,n):a)}function Qv(e,t,r){var n;e.symbol&&(!(n=mi(e.symbol).originatingImport)||zC.isImportCall(n)||(t=pl(_s(mi(e.symbol).target),t))&&t.length&&zC.addRelatedInfo(r,zC.createDiagnosticForNode(n,zC.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 Xv(e,t,r){var n=Ix(e.expression),i=tl(n);if(Do(i))return fv(e);var a,o=pl(i,0),s=pl(i,1).length;if(qv(n,i,o.length,s))return pv(e);if(a=e,(s=o).length&&zC.every(s,function(e){return 0===e.minArgumentCount&&!ak(e)&&e.parameters.length<Lv(a,e)})){var c=zC.getTextOfNode(e.expression,!1);return ei(e,zC.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,c),fv(e)}c=function(e){switch(e.parent.kind){case 257:case 226:return zC.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 164:return zC.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 167:return zC.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 169:case 172:case 173:return zC.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return zC.Debug.fail()}}(e);if(o.length)return Jv(e,o,t,r,0,c);r=Hv(e.expression,i,0),c=zC.chainDiagnosticMessages(r.messageChain,c),c=zC.createDiagnosticForNodeFromMessageChain(e.expression,c);return r.relatedMessage&&zC.addRelatedInfo(c,zC.createDiagnosticForNode(e.expression,r.relatedMessage)),Rn.add(c),Qv(i,0,c),fv(e)}function Yv(e,t){var r=dh(e),n=r&&ga(r),r=n&&vi(n,QC.Element,788968),n=r&&j.symbolToEntityName(r,788968,e),e=zC.factory.createFunctionTypeNode(void 0,[zC.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,j.typeToTypeNode(t,e))],n?zC.factory.createTypeReferenceNode(n,void 0):zC.factory.createKeywordTypeNode(130)),n=si(1,"props");return n.type=t,ac(e,void 0,void 0,[n],r?Rs(r):$e,void 0,1,0)}function Zv(e,t,r){if(ih(e.tagName)){var n=mh(e),i=Yv(e,n);return Sp(gx(e.attributes,zy(i,e),void 0,0),n,e.tagName,e.attributes),zC.length(e.typeArguments)&&(zC.forEach(e.typeArguments,oT),Rn.add(zC.createDiagnosticForNodeArray(zC.getSourceFileOfNode(e),e.typeArguments,zC.Diagnostics.Expected_0_type_arguments_but_got_1,0,zC.length(e.typeArguments)))),i}var a=Ix(e.tagName),n=tl(a);if(Do(n))return fv(e);i=function t(e,r){if(4&e.flags)return[Wr];if(128&e.flags){var n=gh(e,r);return n?[Yv(r,n)]:(ei(r,zC.Diagnostics.Property_0_does_not_exist_on_type_1,e.value,"JSX."+QC.IntrinsicElements),zC.emptyArray)}n=tl(e),e=pl(n,1);return 0===e.length&&(e=pl(n,0)),0===e.length&&1048576&n.flags&&(e=_c(zC.map(n.types,function(e){return t(e,r)}))),e}(a,e);return qv(a,n,i.length,0)?pv(e):0===i.length?(ei(e.tagName,zC.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,zC.getTextOfNode(e.tagName)),fv(e)):Jv(e,i,t,r,0)}function $v(e,t,r){switch(e.kind){case 208:return function(e,t,r){if(106===e.expression.kind){var n=gy(e.expression);if(xo(n)){for(var i=0,a=e.arguments;i<a.length;i++)Ix(a[i]);return Wr}if(!Do(n)){var o=zC.getEffectiveBaseTypeNode(zC.getContainingClass(e));if(o)return Jv(e,Ts(n,o.typeArguments,o),t,r,0)}return pv(e)}var s,c=Ix(e.expression);if(zC.isCallChain(e)?(s=(l=Xf(c,e.expression))===c?0:zC.isOutermostOptionalChain(e)?16:8,c=l):s=0,(c=Oh(c,e.expression,Ih))===Dt)return Qr;if(Do(n=tl(c)))return fv(e);var o=pl(n,0),l=pl(n,1).length;return qv(c,n,o.length,l)?(!Do(c)&&e.typeArguments&&ei(e,zC.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),pv(e)):o.length?8&r&&!e.typeArguments&&o.some(Vv)?(kx(e,r),Gr):o.some(function(e){return zC.isInJSFile(e.declaration)&&!!zC.getJSDocClassTag(e.declaration)})?(ei(e,zC.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,to(c)),fv(e)):Jv(e,o,t,r,s):(l?ei(e,zC.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,to(c)):(l=void 0,1===e.arguments.length&&(c=zC.getSourceFileOfNode(e).text,zC.isLineBreak(c.charCodeAt(zC.skipTrivia(c,e.expression.end,!0)-1))&&(l=zC.createDiagnosticForNode(e.expression,zC.Diagnostics.Are_you_missing_a_semicolon))),Gv(e.expression,n,0,l)),fv(e))}(e,t,r);case 209:return Wv(e,t,r);case 210:return function(e,t,r){var n=Ix(e.tag),i=tl(n);if(Do(i))return fv(e);var a=pl(i,0),o=pl(i,1).length;if(qv(n,i,a.length,o))return pv(e);if(a.length)return Jv(e,a,t,r,0);if(zC.isArrayLiteralExpression(e.parent)){r=zC.createDiagnosticForNode(e.tag,zC.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 Rn.add(r),fv(e)}return Gv(e.tag,i,0),fv(e)}(e,t,r);case 165:return Xv(e,t,r);case 280:case 279:return Zv(e,t,r)}throw zC.Debug.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function eb(e,t,r){var n=yi(e),i=n.resolvedSignature;if(i&&i!==Gr&&!t)return i;n.resolvedSignature=Gr;r=$v(e,t,r||0);return r!==Gr&&(n.resolvedSignature=cn===ln?r:i),r}function tb(e){if(!e||!zC.isInJSFile(e))return!1;var t=zC.isFunctionDeclaration(e)||zC.isFunctionExpression(e)?e:zC.isVariableDeclaration(e)&&e.initializer&&zC.isFunctionExpression(e.initializer)?e.initializer:void 0;if(t){if(zC.getJSDocClassTag(e))return!0;var t=ba(t);return!(null===(t=null==t?void 0:t.members)||void 0===t||!t.size)}return!1}function rb(e,t){if(t){var r=mi(t);if(r.inferredClassSymbol&&r.inferredClassSymbol.has(ek(e)))return r.inferredClassSymbol.get(ek(e));var n=zC.isTransientSymbol(e)?e:ui(e);return n.exports=n.exports||zC.createSymbolTable(),n.members=n.members||zC.createSymbolTable(),n.flags|=32&t.flags,null!==(e=t.exports)&&void 0!==e&&e.size&&fi(n.exports,t.exports),null!==(e=t.members)&&void 0!==e&&e.size&&fi(n.members,t.members),(r.inferredClassSymbol||(r.inferredClassSymbol=new zC.Map)).set(ek(n),n),n}}function nb(e,t){if(e.parent){var r,n;if(zC.isVariableDeclaration(e.parent)&&e.parent.initializer===e){if(!(zC.isInJSFile(e)||zC.isVarConst(e.parent)&&zC.isFunctionLikeDeclaration(e)))return;r=e.parent.name,n=e.parent}else if(zC.isBinaryExpression(e.parent)){var i=e.parent,a=e.parent.operatorToken.kind;if(63!==a||!t&&i.right!==e){if(!(56!==a&&60!==a||(zC.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(r=i.parent.name,n=i.parent):zC.isBinaryExpression(i.parent)&&63===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=r=i.parent.left),r&&zC.isBindableStaticNameExpression(r)&&zC.isSameEntityName(r,i.left))))return}else n=r=i.left}else t&&zC.isFunctionDeclaration(e)&&(r=e.name,n=e);if(n&&r&&(t||zC.getExpandoInitializer(e,zC.isPrototypeAccess(r))))return ba(n)}}function ib(e,t){var r,n;e.declaration&&268435456&e.declaration.flags&&(r=ab(t),n=zC.tryGetPropertyAccessOrIdentifierToString(zC.getInvokedExpression(t)),t=r,r=e.declaration,n=n,e=eo(e),ii(r,n?zC.createDiagnosticForNode(t,zC.Diagnostics.The_signature_0_of_1_is_deprecated,e,n):zC.createDiagnosticForNode(t,zC.Diagnostics._0_is_deprecated,e)))}function ab(e){switch((e=zC.skipParentheses(e)).kind){case 208:case 165:case 209:return ab(e.expression);case 210:return ab(e.tag);case 280:case 279:return ab(e.tagName);case 207:return e.argumentExpression;case 206:return e.name;case 178:var t=e;return zC.isQualifiedName(t.typeName)?t.typeName.right:t;default:return e}}function ob(e){if(zC.isCallExpression(e)){var t=e.expression;if(zC.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),zC.isIdentifier(t)&&"Symbol"===t.escapedText){e=ju(!1);return e?e===Di(t,"Symbol",111551,void 0,void 0,!1):void 0}}}function sb(e){if(!function(e){if(m===zC.ModuleKind.ES2015)return LC(e,zC.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return LC(e,zC.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var t=e.arguments;if(m!==zC.ModuleKind.ESNext&&m!==zC.ModuleKind.NodeNext)if(fC(t),1<t.length)return LC(t[1],zC.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);return 0===t.length||2<t.length?LC(e,zC.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments):(t=zC.find(t,zC.isSpreadElement))?LC(t,zC.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):void 0}(e),0===e.arguments.length)return Bb(e,Xe);for(var t=e.arguments[0],r=mx(t),n=1<e.arguments.length?mx(e.arguments[1]):void 0,i=2;i<e.arguments.length;++i)mx(e.arguments[i]);(32768&r.flags||65536&r.flags||!hp(r,_t))&&ei(t,zC.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,to(r)),!n||(a=Bu(!0))!==Rt&&Dp(n,Vf(a,32768),e.arguments[1]);n=ia(e,t);if(n){var a=la(n,t,!0,!1);if(a)return Bb(e,lb(_s(a),a,n,t)||ub(_s(a),a,n,t))}return Bb(e,Xe)}function cb(e,t,r){var n=zC.createSymbolTable(),i=si(2097152,"default");return i.parent=t,i.nameType=kd("default"),i.aliasTarget=Hi(e),n.set("default",i),Ba(r,n,zC.emptyArray,zC.emptyArray,zC.emptyArray)}function lb(e,t,r,n){if(Bi(n)&&e&&!Do(e)){e=e;return e.defaultOnlyType||(r=cb(t,r),e.defaultOnlyType=r),e.defaultOnlyType}}function ub(e,t,r,n){var i;if(y&&e&&!Do(e)){var a=e;return a.syntheticType||(ji(null===(i=r.declarations)||void 0===i?void 0:i.find(zC.isSourceFile),r,!1,n)?(r=cb(t,r,t=si(2048,"__type")),t.type=r,a.syntheticType=rh(e)?vd(e,r,t,0,!1):r):a.syntheticType=e),a.syntheticType}return e}function _b(e){if(zC.isRequireCall(e,!0)){if(!zC.isIdentifier(e.expression))return zC.Debug.fail();var t=Di(e.expression,e.expression.escapedText,111551,void 0,void 0,!0);if(t===Ee)return 1;if(!(2097152&t.flags)){e=16&t.flags?256:3&t.flags?254:0;if(0!=e){e=zC.getDeclarationOfKind(t,e);return e&&16777216&e.flags}}}}function db(e){!function(e){if(e.questionDotToken||32&e.flags)return LC(e.template,zC.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1}(e)&&hC(e,e.typeArguments),B<2&&uC(e,262144);var t=eb(e);return ib(t,e),zl(t)}function pb(t,e,r,n){var i=Ix(r,n);if(zC.isConstTypeReference(e))return function e(t){switch(t.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 204:case 205:case 223:return!0;case 212:return e(t.expression);case 219:var r=t.operator,n=t.operand;return 40===r&&(8===n.kind||9===n.kind)||39===r&&8===n.kind;case 206:case 207:return(n=TT(t.expression).symbol)&&2097152&n.flags&&(n=Gi(n)),!!(n&&384&n.flags&&1===ws(n))}return!1}(r)||ei(r,zC.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Td(i);oT(e),i=rg(Af(i));var a=Id(e);return Do(a)||C(function(){var e=og(i);bp(a,e)||Fp(i,a,t,zC.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)}),a}function fb(e){return 32&e.flags?(r=Ix((t=e).expression),Qf(Wf(n=Xf(r,t.expression)),t,n!==r)):Wf(Ix(e.expression));var t,r,n}function gb(l){bC(l);var e=228===l.kind?Ix(l.expression):(zC.isThisIdentifier(l.exprName)?dy:Ix)(l.exprName),r=l.typeArguments;if(e===Dt||Do(e)||!zC.some(r))return e;var n,i=!1,t=function a(e){var o=!1;var s=!1;var t=c(e);i=i||s;o&&!s&&(null!=n||(n=e));return t;function c(e){if(524288&e.flags){var t=Lc(e),r=u(t.callSignatures),n=u(t.constructSignatures);if(o=o||(0!==t.callSignatures.length||0!==t.constructSignatures.length),s=s||(0!==r.length||0!==n.length),r!==t.callSignatures||n!==t.constructSignatures){var i=Ba(void 0,t.members,r,n,t.indexInfos);return i.objectFlags|=8388608,i.node=l,i}}else if(58982400&e.flags){var t=Hc(e);if(t){var i=c(t);if(i!==t)return i}}else{if(1048576&e.flags)return Pm(e,a);if(2097152&e.flags)return x_(zC.sameMap(e.types,c))}return e}}(e),e=i?n:e;return e&&Rn.add(zC.createDiagnosticForNodeArray(zC.getSourceFileOfNode(l),r,zC.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,to(e))),t;function u(e){e=zC.filter(e,function(e){return!!e.typeParameters&&bv(e,r)});return zC.sameMap(e,function(e){var t=Av(e,r,!0);return t?ql(e,t,zC.isInJSFile(e.declaration)):e})}}function mb(e){return function(e){var t=e.name.escapedText;switch(e.keywordToken){case 103:if("target"!==t)return LC(e.name,zC.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,zC.tokenToString(e.keywordToken),"target");break;case 100:if("meta"!==t)LC(e.name,zC.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,zC.tokenToString(e.keywordToken),"meta")}}(e),103===e.keywordToken?hb(e):100===e.keywordToken?function(e){m===zC.ModuleKind.Node16||m===zC.ModuleKind.NodeNext?zC.getSourceFileOfNode(e).impliedNodeFormat!==zC.ModuleKind.ESNext&&ei(e,zC.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):m<zC.ModuleKind.ES2020&&m!==zC.ModuleKind.System&&ei(e,zC.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);var t=zC.getSourceFileOfNode(e);return zC.Debug.assert(!!(4194304&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?Lu():$e}(e):zC.Debug.assertNever(e.keywordToken)}function yb(e){switch(e.keywordToken){case 100:return Ru();case 103:var t=hb(e);return Do(t)?$e:function(e){var t=si(0,"NewTargetExpression"),r=si(4,"target",8);r.parent=t,r.type=e;r=zC.createSymbolTable([r]);return t.members=r,Ba(t,r,zC.emptyArray,zC.emptyArray,zC.emptyArray)}(t);default:zC.Debug.assertNever(e.keywordToken)}}function hb(e){var t=zC.getNewTargetContainer(e);return t?171!==t.kind?_s(ba(t)):_s(ba(t.parent)):(ei(e,zC.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),$e)}function vb(e){var t=_s(e);if(ee){e=e.valueDeclaration;if(e&&zC.hasInitializer(e))return qf(t)}return t}function bb(e){return zC.Debug.assert(zC.isIdentifier(e.name)),e.name.escapedText}function xb(e,t,r){var n=e.parameters.length-(ak(e)?1:0);if(t<n)return e.parameters[t].escapedName;e=e.parameters[n]||We,r=r||_s(e);if(Of(r)){r=r.target.labeledElementDeclarations,n=t-n;return r&&bb(r[n])||e.escapedName+"_"+n}return e.escapedName}function Db(e){return e.valueDeclaration&&zC.isParameter(e.valueDeclaration)&&zC.isIdentifier(e.valueDeclaration.name)}function Sb(e){return 197===e.kind||zC.isParameter(e)&&e.name&&zC.isIdentifier(e.name)}function Tb(e,t){return Cb(e,t)||Xe}function Cb(e,t){var r=e.parameters.length-(ak(e)?1:0);if(t<r)return vb(e.parameters[t]);if(ak(e)){e=_s(e.parameters[r]),r=t-r;if(!Of(e)||e.target.hasRestElement||r<e.target.fixedLength)return Y_(e,Ed(r))}}function kb(e,t){var r=Eb(e),n=Nb(e),i=Fb(e);if(i&&r-1<=t)return t===r-1?i:Qu(Y_(i,dt));for(var a=[],o=[],s=[],c=t;c<r;c++){!i||c<r-1?(a.push(Tb(e,c)),o.push(c<n?1:2)):(a.push(i),o.push(8));var l=function(e,t){var r=e.parameters.length-(ak(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&Sb(n)?n:void 0}if(n=e.parameters[r]||We,Of(e=_s(n))){e=e.target.labeledElementDeclarations;return e&&e[t-r]}return n.valueDeclaration&&Sb(n.valueDeclaration)?n.valueDeclaration:void 0}(e,c);l&&s.push(l)}return t_(a,o,!1,zC.length(s)===zC.length(a)?s:void 0)}function Eb(e){var t=e.parameters.length;if(ak(e)){e=_s(e.parameters[t-1]);if(Of(e))return t+e.target.fixedLength-(e.target.hasRestElement?0:1)}return t}function Nb(e,t){var r=1&t,n=2&t;if(n||void 0===e.resolvedMinArgumentCount){var i,a=void 0;if(ak(e)&&(!Of(i=_s(e.parameters[e.parameters.length-1]))||0<(t=(t=zC.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&&32&e.flags)return 0;a=e.minArgumentCount}if(n)return a;for(var o=a-1;0<=o;o--){if(131072&Am(Tb(e,o),yv).flags)break;a=o}e.resolvedMinArgumentCount=a}return e.resolvedMinArgumentCount}function Ab(e){if(ak(e)){e=_s(e.parameters[e.parameters.length-1]);return!Of(e)||e.target.hasRestElement}return!1}function Fb(e){if(ak(e)){e=_s(e.parameters[e.parameters.length-1]);if(!Of(e))return e;if(e.target.hasRestElement)return i_(e,e.target.fixedLength)}}function Pb(e){e=Fb(e);return!e||ff(e)||xo(e)||0!=(131072&ol(e).flags)?void 0:e}function wb(e){return Ib(e,xt)}function Ib(e,t){return 0<e.parameters.length?Tb(e,0):t}function Ob(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}t.thisParameter&&((i=e.thisParameter)&&(!i.valueDeclaration||i.valueDeclaration.type)||(i||(e.thisParameter=tg(t.thisParameter,void 0)),Mb(e.thisParameter,_s(t.thisParameter))));for(var r=e.parameters.length-(ak(e)?1:0),n=0;n<r;n++){var i=e.parameters[n];zC.getEffectiveTypeAnnotationNode(i.valueDeclaration)||Mb(i,Cb(t,n))}ak(e)&&((i=zC.last(e.parameters)).valueDeclaration?!zC.getEffectiveTypeAnnotationNode(i.valueDeclaration):65536&zC.getCheckFlags(i))&&Mb(i,kb(t,r))}function Mb(e,t){var r,n=mi(e);n.type?t&&zC.Debug.assertEqual(n.type,t,"Parameter symbol already has a cached type which differs from newly assigned type"):(r=e.valueDeclaration,n.type=t||(r?Go(r,!0):_s(e)),r&&79!==r.name.kind&&(n.type===nt&&(n.type=Ho(r.name)),function e(t,r){for(var n=0,i=t.elements;n<i.length;n++){var a,o=i[n];zC.isOmittedExpression(o)||(a=Po(o,r),79===o.name.kind?mi(ba(o)).type=a:e(o.name,a))}}(r.name,n.type)))}function Lb(e){var t=zu(!0);return t!==Jt?uu(t,[e=uD(cD(e))||nt]):nt}function Rb(e){var t=Ku(!0);return t!==Jt?uu(t,[e=uD(cD(e))||nt]):nt}function Bb(e,t){t=Lb(t);return t===nt?(ei(e,zC.isImportCall(e)?zC.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:zC.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),$e):(Uu(!0)||ei(e,zC.isImportCall(e)?zC.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:zC.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 jb(e,t){if(!e.body)return $e;var r,n,i,a,o,s=zC.getFunctionFlags(e),c=0!=(2&s),l=0!=(1&s),u=bt;if(235!==e.body.kind)r=mx(e.body,t&&-9&t),c&&(r=cD(aD(r,!1,e,zC.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(l){var _=qb(e,t);_?0<_.length&&(r=f_(_,2)):u=xt;var _=(d=e,n=t,i=[],a=[],o=0!=(2&zC.getFunctionFlags(d)),zC.forEachYieldExpression(d.body,function(e){var t=e.expression?Ix(e.expression,n):ot;zC.pushIfUnique(i,zb(e,t,Xe,o)),(e=e.asteriskToken?(t=nS(t,o?19:17,e.expression))&&t.nextType:jy(e))&&zC.pushIfUnique(a,e)}),{yieldTypes:i,nextTypes:a}),d=_.yieldTypes,_=_.nextTypes,d=zC.some(d)?f_(d,2):void 0,_=zC.some(_)?x_(_):void 0}else{var p=qb(e,t);if(!p)return 2&s?Bb(e,xt):xt;if(0===p.length)return 2&s?Bb(e,bt):bt;r=f_(p,2)}return(r||d||_)&&(d&&lg(e,d,3),r&&lg(e,r,1),_&&lg(e,_,2),(r&&kf(r)||d&&kf(d)||_&&kf(_))&&(s=(t=qy(e))?t===Il(e)?l?void 0:r:Ry(zl(t),e):void 0,l?(d=If(d,s,0,c),r=If(r,s,1,c),_=If(_,s,2,c)):(p=s,t=c,(s=r)&&kf(s)&&(s=wf(s,p?t?iD(p):p:void 0)),r=s)),d=d&&og(d),r=r&&og(r),_=_&&og(_)),l?Jb(d||xt,r||u,_||xy(2,e)||nt,c):c?Lb(r||u):r||u}function Jb(e,t,r,n){var i=n?rn:nn,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||nt,t=i.resolveIterationType(t,void 0)||nt,r=i.resolveIterationType(r,void 0)||nt,a!==Jt)return Hu(a,[e,t,r]);var o=i.getGlobalIterableIteratorType(!1),n=o!==Jt?sS(o,i):void 0,a=n?n.returnType:Xe,n=n?n.nextType:at;return hp(t,a)&&hp(n,r)?o!==Jt?Hu(o,[e]):(i.getGlobalIterableIteratorType(!0),Rt):(i.getGlobalGeneratorType(!0),Rt)}function zb(e,t,r,n){var i=e.expression||e,t=e.asteriskToken?YD(n?19:17,t,r,i):t;return n?lD(t,i,e.asteriskToken?zC.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:zC.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 Kb(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=HC.get(r[a])||32768;for(a=e;a<t;a++)i&=~(HC.get(r[a])||0);for(a=0;a<e;a++)i|=HC.get(r[a])||32768}else{for(a=e;a<t;a++)i|=WC.get(r[a])||128;for(a=0;a<e;a++)i&=~(WC.get(r[a])||0)}return i}function Ub(e){var t=yi(e);return void 0!==t.isExhaustive?t.isExhaustive:t.isExhaustive=function(e){if(216===e.expression.kind){var t=Fx(e.expression.expression),r=Kb(0,0,Tm(e,!1),!0),t=Hc(t)||t;return 3&t.flags?556800==(556800&r):!!(131072&Am(t,function(e){return(um(e)&r)===r}).flags)}t=Fx(e.expression);if(!Nf(t))return!1;e=Sm(e);return!(!e.length||zC.some(e,Cf))&&function(e,t){return 1048576&e.flags?!zC.forEach(e.types,function(e){return!zC.contains(t,e)}):zC.contains(t,e)}(Pm(t,Td),e)}(e)}function Vb(e){return e.endFlowNode&&Gm(e.endFlowNode)}function qb(t,r){var n=zC.getFunctionFlags(t),i=[],a=Vb(t),o=!1;if(zC.forEachReturnStatement(t.body,function(e){e=e.expression;e?(e=mx(e,r&&-9&r),2&n&&(e=cD(aD(e,!1,t,zC.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),zC.pushIfUnique(i,e)):a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 213:case 214:return!0;case 169:return 205===e.parent.kind;default:return!1}}(t))return!(ee&&i.length&&a)||tb(t)&&i.some(function(e){return e.symbol===t.symbol})||zC.pushIfUnique(i,at),i}function Wb(n,i){C(function(){var e=zC.getFunctionFlags(n),t=i&&DS(i,e);if(t&&nx(t,16385))return;if(168===n.kind||zC.nodeIsMissing(n.body)||235!==n.body.kind||!Vb(n))return;var r=512&n.flags,e=zC.getEffectiveReturnTypeNode(n)||n;if(t&&131072&t.flags)ei(e,zC.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(t&&!r)ei(e,zC.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(t&&ee&&!hp(at,t))ei(e,zC.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if($.noImplicitReturns){if(!t){if(!r)return;r=zl(Il(n));if(SS(n,r))return}ei(e,zC.Diagnostics.Not_all_code_paths_return_a_value)}})}function Hb(e,t){if(zC.Debug.assert(169!==e.kind||zC.isObjectLiteralMethod(e)),cT(e),zC.isFunctionExpression(e)&&RD(e,e.name),t&&4&t&&lp(e)){if(!zC.getEffectiveReturnTypeNode(e)&&!zC.hasContextSensitiveParameters(e)){var r=Wy(e);if(r&&bg(zl(r))){var n=yi(e);if(n.contextFreeType)return n.contextFreeType;var i=jb(e,t),a=ac(void 0,void 0,void 0,zC.emptyArray,i,void 0,0,0),o=Ba(e.symbol,k,[a],zC.emptyArray,zC.emptyArray);return o.objectFlags|=262144,n.contextFreeType=o}}return zt}return yC(e)||213!==e.kind||DC(e),i=t,1024&(n=yi(a=e)).flags||(o=Wy(a),1024&n.flags||(n.flags|=1024,(t=zC.firstOrUndefined(pl(_s(ba(a)),0)))&&(lp(a)&&(o?(n=Jy(a),i&&2&i&&function(e,t,r){for(var n=e.parameters.length-(ak(e)?1:0),i=0;i<n;i++){var a=e.parameters[i].valueDeclaration;!a.type||(a=zC.getEffectiveTypeAnnotationNode(a))&&Lg(r.inferences,Id(a),Tb(t,i))}var o,s=Fb(t);s&&262144&s.flags&&(Ob(e,Qd(t,r.nonFixingMapper)),o=Eb(t)-1,Lg(r.inferences,kb(e,o),s))}(t,o,n),n=n?Qd(o,n.mapper):o,Ob(t,n)):function(e){e.thisParameter&&Mb(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)Mb(r[t])}(t)),!o||Kl(a)||t.resolvedReturnType||(i=jb(a,i),t.resolvedReturnType||(t.resolvedReturnType=i)),Rx(a)))),_s(ba(e))}function Gb(e,t,r,n){if(void 0===n&&(n=!1),hp(t,Ft))return!0;t=n&&nD(t);return ni(e,!!t&&hp(t,Ft),r),!1}function Qb(e){if(!zC.isCallExpression(e))return!1;if(!zC.isBindableObjectDefinePropertyCall(e))return!1;var t=mx(e.arguments[2]);if(bo(t,"value")){var r=_l(t,"writable"),e=r&&_s(r);if(!e||e===ft||e===gt)return!0;if(r&&r.valueDeclaration&&zC.isPropertyAssignment(r.valueDeclaration)){r=Ix(r.valueDeclaration.initializer);if(r===ft||r===gt)return!0}return!1}return!_l(t,"set")}function Xb(e){return!!(8&zC.getCheckFlags(e)||4&e.flags&&64&zC.getDeclarationModifierFlagsFromSymbol(e)||3&e.flags&&2&Th(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||zC.some(e.declarations,Qb))}function Yb(e,t,r){if(0!==r){if(Xb(t)){if(4&t.flags&&zC.isAccessExpression(e)&&108===e.expression.kind){var n=zC.getContainingFunction(e);if(!n||171!==n.kind&&!tb(n))return 1;if(t.valueDeclaration){var i=zC.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(zC.isAccessExpression(e)){e=zC.skipParentheses(e.expression);if(79===e.kind){e=yi(e).resolvedSymbol;if(2097152&e.flags){e=Fi(e);return e&&268===e.kind}}}}}function Zb(e,t,r){var n=zC.skipOuterExpressions(e,7);if(79===n.kind||zC.isAccessExpression(n)){if(!(32&n.flags))return 1;ei(e,r)}else ei(e,t)}function $b(e){Ix(e.expression);var t=zC.skipParentheses(e.expression);if(!zC.isAccessExpression(t))return ei(t,zC.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ht;zC.isPropertyAccessExpression(t)&&zC.isPrivateIdentifier(t.name)&&ei(t,zC.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var r=ka(yi(t).resolvedSymbol);return r&&(Xb(r)&&ei(t,zC.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),e=t,r=_s(t=r),!ee||131075&r.flags||(re?16777216&t.flags:32768&zf(r))||ei(e,zC.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)),ht}function ex(e){C(function(){return function(e){var t,r=zC.getContainingFunctionOrClassStaticBlock(e);if(r&&zC.isClassStaticBlockDeclaration(r))ei(e,zC.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&e.flags))if(zC.isInTopLevelContext(e)){if(!wC(t=zC.getSourceFileOfNode(e))){var n,i=void 0;switch(zC.isEffectiveExternalModule(t,$)||(null!=i||(i=zC.getSpanOfTokenAtPosition(t,e.pos)),n=zC.createFileDiagnostic(t,i.start,i.length,zC.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),Rn.add(n)),m){case zC.ModuleKind.Node16:case zC.ModuleKind.NodeNext:if(t.impliedNodeFormat===zC.ModuleKind.CommonJS){null!=i||(i=zC.getSpanOfTokenAtPosition(t,e.pos)),Rn.add(zC.createFileDiagnostic(t,i.start,i.length,zC.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case zC.ModuleKind.ES2022:case zC.ModuleKind.ESNext:case zC.ModuleKind.System:if(4<=B)break;default:null!=i||(i=zC.getSpanOfTokenAtPosition(t,e.pos)),Rn.add(zC.createFileDiagnostic(t,i.start,i.length,zC.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else wC(t=zC.getSourceFileOfNode(e))||(i=zC.getSpanOfTokenAtPosition(t,e.pos),n=zC.createFileDiagnostic(t,i.start,i.length,zC.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&171!==r.kind&&0==(2&zC.getFunctionFlags(r))&&(r=zC.createDiagnosticForNode(r,zC.Diagnostics.Did_you_mean_to_mark_this_function_as_async),zC.addRelatedInfo(n,r)),Rn.add(n));by(e)&&ei(e,zC.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}(e)});var t=Ix(e.expression),r=aD(t,!0,e,zC.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return r!==t||Do(r)||3&t.flags||ti(!1,zC.createDiagnosticForNode(e,zC.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),r}function tx(e){return nx(e,2112)?ix(e,3)||nx(e,296)?Ft:pt:dt}function rx(e,t){if(nx(e,t))return 1;e=Gc(e);return e&&nx(e,t)}function nx(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(nx(n[r],t))return!0;return!1}function ix(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&hp(e,dt)||!!(2112&t)&&hp(e,pt)||!!(402653316&t)&&hp(e,_t)||!!(528&t)&&hp(e,ht)||!!(16384&t)&&hp(e,bt)||!!(131072&t)&&hp(e,xt)||!!(65536&t)&&hp(e,lt)||!!(32768&t)&&hp(e,at)||!!(4096&t)&&hp(e,vt)||!!(67108864&t)&&hp(e,kt))}function ax(e,t,r){return 1048576&e.flags?zC.every(e.types,function(e){return ax(e,t,r)}):ix(e,t,r)}function ox(e){return 16&zC.getObjectFlags(e)&&e.symbol&&sx(e.symbol)}function sx(e){return 0!=(128&e.flags)}function cx(e,t,r,n,i){void 0===i&&(i=!1);var a=e.properties,o=a[r];if(296===o.kind||297===o.kind){var s=o.name,c=E_(s);!Hs(c)||(e=_l(t,Zs(c)))&&(iv(e,o,i),kh(o,!1,!0,t,e));s=Eo(o,Y_(t,c,32,s));return ux(297===o.kind?o:o.initializer,s)}if(298===o.kind){if(!(r<a.length-1)){B<99&&uC(o,4);var l=[];if(n)for(var u=0,_=n;u<_.length;u++){var d=_[u];zC.isSpreadAssignment(d)||l.push(d.name)}s=To(t,l,t.symbol);return fC(n,zC.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),ux(o.expression,s)}ei(o,zC.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else ei(o,zC.Diagnostics.Property_assignment_expected)}function lx(e,t,r,n,i){var a=e.elements,o=a[r];if(227!==o.kind){if(225!==o.kind){var s=Ed(r);if(vf(t)){s=$_(t,s,32|(Hy(o)?16:0),Ov(o,s))||$e;return ux(o,Eo(o,Hy(o)?_m(s,524288):s),i)}return ux(o,n,i)}if(r<a.length-1)ei(o,zC.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{o=o.expression;if(221!==o.kind||63!==o.operatorToken.kind)return fC(e.elements,zC.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),ux(o,Nm(t,Of)?Pm(t,function(e){return i_(e,r)}):Qu(n),i);ei(o.operatorToken,zC.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function ux(e,t,r,n){var i,e=297===e.kind?((i=e).objectAssignmentInitializer&&(!ee||32768&zf(Ix(i.objectAssignmentInitializer))||(t=_m(t,524288)),function(e,t,r,n,i){var a=t.kind;if(63===a&&(205===e.kind||204===e.kind))return ux(e,Ix(r,n),n,108===r.kind);a=(55===a||56===a||60===a?HD:Ix)(e,n),n=Ix(r,n),dx(e,t,r,a,n,i)}(i.name,i.equalsToken,i.objectAssignmentInitializer,r)),e.name):e;return 221===e.kind&&63===e.operatorToken.kind&&(A(e,r),e=e.left),205===e.kind?function(e,t,r){var n=e.properties;if(ee&&0===n.length)return Mh(t,e);for(var i=0;i<n.length;i++)cx(e,t,i,n,r);return t}(e,t,n):(204===e.kind?function(e,t,r){var n=e.elements;B<2&&$.downlevelIteration&&uC(e,512);for(var i=YD(193,t,at,e)||$e,a=$.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;225===e.elements[o].kind&&(s=a=null!=a?a:YD(65,t,at,e)||$e),lx(e,t,o,s,r)}return t}:function(e,t,r){var n=Ix(e,r),i=298===e.parent.kind?zC.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:zC.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,r=298===e.parent.kind?zC.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:zC.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;Zb(e,i,r)&&Sp(t,n,e,e);zC.isPrivateIdentifierPropertyAccessExpression(e)&&uC(e.parent,1048576);return t})(e,t,r)}function _x(e,t){return 0!=(98304&t.flags)||bp(e,t)}function dx(n,a,i,o,s,c){var t,e,r,l,u,_=a.kind;switch(_){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(o===Dt||s===Dt)return Dt;o=Mh(o,n),s=Mh(s,i);var d=void 0;if(528&o.flags&&528&s.flags&&void 0!==(d=function(e){switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}(a.kind)))return ei(c||a,zC.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,zC.tokenToString(a.kind),zC.tokenToString(d)),dt;var p,f=Gb(n,o,zC.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),d=Gb(i,s,zC.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(ix(o,3)&&ix(s,3)||!nx(o,2112)&&!nx(s,2112))p=dt;else if(b(o,s)){switch(_){case 49:case 72:T();break;case 42:case 67:B<3&&ei(c,zC.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=pt}else T(b),p=$e;return f&&d&&D(p),p;case 39:case 64:if(o===Dt||s===Dt)return Dt;ix(o,402653316)||ix(s,402653316)||(o=Mh(o,n),s=Mh(s,i));var g=void 0;if(ix(o,296,!0)&&ix(s,296,!0)?g=dt:ix(o,2112,!0)&&ix(s,2112,!0)?g=pt:ix(o,402653316,!0)||ix(s,402653316,!0)?g=_t:(xo(o)||xo(s))&&(g=Do(o)||Do(s)?$e:Xe),g&&!x(_))return g;if(g)return 64===_&&D(g),g;return T(function(e,t){return ix(e,402655727)&&ix(t,402655727)}),Xe;case 29:case 31:case 32:case 33:return x(_)&&(o=Af(Mh(o,n)),s=Af(Mh(s,i)),S(function(e,t){return bp(e,t)||bp(t,e)||hp(e,Ft)&&hp(t,Ft)})),ht;case 34:case 35:case 36:case 37:return S(function(e,t){return _x(e,t)||_x(t,e)}),ht;case 102:return r=n,l=i,u=s,(g=o)===Dt||u===Dt?Dt:(!xo(g)&&ax(g,131068)&&ei(r,zC.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),xo(u)||NT(u)||yp(u,Zt)||ei(l,zC.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),ht);case 101:return r=n,m=i,u=s,(l=o)===Dt||u===Dt?Dt:(zC.isPrivateIdentifier(r)?(B<99&&uC(r,2097152),!yi(r).resolvedSymbol&&zC.getContainingClass(r)&&Qh(r,u,Wh(r,u.symbol,!0))):ax(l=Mh(l,r),402665900)||ix(l,407109632)||ei(r,zC.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol),r=zc(u=Mh(u,m)),ax(u,126091264)&&(!r||(!ix(u,3145728)||ax(r,126091264))&&nx(r,126615552))||ei(m,zC.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),ht);case 55:case 76:var m=4194304&um(o)?f_([Pm(ee?o:Af(s),Uf),s]):o;return 76===_&&D(s),m;case 56:case 75:var y=8388608&um(o)?f_([Kf(o),s],2):o;return 75===_&&D(s),y;case 60:case 77:var h=262144&um(o)?f_([Wf(o),s],2):o;return 77===_&&D(s),h;case 63:var v=zC.isBinaryExpression(n.parent)?zC.getAssignmentDeclarationKind(n.parent):0;return function(e){if(2===v)for(var t=0,r=Rc(e);t<r.length;t++){var n,i=r[t],a=_s(i);a.symbol&&32&a.symbol.flags&&(n=i.escapedName,null!=(a=Di(i.valueDeclaration,n,788968,void 0,n,!1))&&a.declarations&&a.declarations.some(zC.isJSDocTypedefTag)&&(di(a,zC.Diagnostics.Duplicate_identifier_0,zC.unescapeLeadingUnderscores(n),i),di(i,zC.Diagnostics.Duplicate_identifier_0,zC.unescapeLeadingUnderscores(n),a)))}}(s),function(e){switch(e){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var t=ba(n),r=zC.getAssignedExpandoInitializer(i);return!!r&&zC.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||Op(s)||lm(s)||1&zC.getObjectFlags(s))||D(s),o):(D(s),rg(s));case 27:return $.allowUnreachableCode||!function e(t){switch((t=zC.skipParentheses(t)).kind){case 79:case 10:case 13:case 210:case 223:case 14:case 8:case 9:case 110:case 95:case 104:case 153:case 213:case 226:case 214:case 204:case 205:case 216:case 230:case 279:case 278:return!0;case 222:return e(t.whenTrue)&&e(t.whenFalse);case 221:return!zC.isAssignmentOperator(t.operatorToken.kind)&&(e(t.left)&&e(t.right));case 219:case 220:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 217:case 211:case 229:default:return!1}}(n)||79===(e=i).kind&&"eval"===e.escapedText||(h=(y=zC.getSourceFileOfNode(n)).text,t=zC.skipTrivia(h,n.pos),y.parseDiagnostics.some(function(e){return e.code===zC.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&zC.textSpanContainsPosition(e,t)})||ei(n,zC.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)),s;default:return zC.Debug.fail()}function b(e,t){return ix(e,2112)&&ix(t,2112)}function x(e){var t=rx(o,12288)?n:rx(s,12288)?i:void 0;if(!t)return 1;ei(t,zC.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,zC.tokenToString(e))}function D(r){zC.isAssignmentOperator(_)&&C(function(){{var e,t;!Zb(n,zC.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,zC.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)||zC.isIdentifier(n)&&"exports"===zC.unescapeLeadingUnderscores(n.escapedText)||(e=void 0,re&&zC.isPropertyAccessExpression(n)&&nx(r,32768)&&(t=bo(Fx(n.expression),n.name.escapedText),qp(r,t)&&(e=zC.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)),Sp(r,o,n,i,e))}})}function S(e){return!e(o,s)&&(T(e),1)}function T(e){var t=!1,r=c||a;e&&(n=uD(o),i=uD(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=Af(e),t=Af(t);r(e,t)||(n=e,i=t);return[n,i]}(o,s,e))[0],i=e[1]);n=ro(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 ni(e,t,zC.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,i,r,n);return}(r,t,i,n)&&ni(r,t,zC.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,zC.tokenToString(a.kind),i,n)}}function px(e){for(var t=[e.head.text],r=[],n=0,i=e.templateSpans;n<i.length;n++){var a=i[n],o=Ix(a.expression);rx(o,12288)&&ei(a.expression,zC.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(hp(o,Pt)?o:_t)}return xx(e)||function e(t){var r=t.parent;return zC.isParenthesizedExpression(r)&&e(r)||zC.isElementAccessExpression(r)&&r.argumentExpression===t}(e)||Em(jy(e)||nt,fx)?I_(t,r):_t}function fx(e){return!!(134217856&e.flags||58982400&e.flags&&nx(Hc(e)||nt,402653316))}function gx(e,t,r,n){var i=286!==(o=e).kind||zC.isJsxSelfClosingElement(o.parent)?o:o.parent.parent,a=i.contextualType,o=i.inferenceContext;try{i.contextualType=t;var s=Ix(e,1|n|((i.inferenceContext=r)?2:0));return r&&r.intraExpressionInferenceSites&&(r.intraExpressionInferenceSites=void 0),nx(s,2944)&&bx(s,Ry(t,e))?Td(s):s}finally{i.contextualType=a,i.inferenceContext=o}}function mx(e,t){if(t&&0!==t)return Ix(e,t);var r,n,i=yi(e);return i.resolvedType||(r=cn,n=Jr,cn=ln,Jr=void 0,i.resolvedType=Ix(e,t),Jr=n,cn=r),i.resolvedType}function yx(e){return 211===(e=zC.skipParentheses(e,!0)).kind||229===e.kind||zC.isJSDocTypeAssertion(e)}function hx(e,t,r){var n=zC.getEffectiveInitializer(e),t=Px(n)||(r?gx(n,r,void 0,t||0):mx(n,t));return zC.isParameter(e)&&202===e.name.kind&&Of(t)&&!t.target.hasRestElement&&fu(t)<e.name.elements.length?function(e,t){for(var r=t.elements,n=pu(e).slice(),i=e.target.elementFlags.slice(),a=fu(e);a<r.length;a++){var o=r[a];(a<r.length-1||203!==o.kind||!o.dotDotDotToken)&&(n.push(!zC.isOmittedExpression(o)&&Hy(o)?qo(o,!1,!1):Xe),i.push(2),zC.isOmittedExpression(o)||Hy(o)||cg(o,Xe))}return t_(n,i,e.target.readonly)}(t,e.name):t}function vx(e,t){t=2&zC.getCombinedNodeFlags(e)||zC.isDeclarationReadonly(e)?t:Ff(t);if(zC.isInJSFile(e)){if(xf(t))return cg(e,Xe),Xe;if(Df(t))return cg(e,cr),cr}return t}function bx(t,e){if(e){if(3145728&e.flags){var r=e.types;return zC.some(r,function(e){return bx(t,e)})}if(58982400&e.flags){r=Hc(e)||nt;return nx(r,4)&&nx(t,128)||nx(r,8)&&nx(t,256)||nx(r,64)&&nx(t,2048)||nx(r,4096)&&nx(t,8192)||bx(t,r)}return!!(406847616&e.flags&&nx(t,128)||256&e.flags&&nx(t,256)||2048&e.flags&&nx(t,2048)||512&e.flags&&nx(t,512)||8192&e.flags&&nx(t,8192))}return!1}function xx(e){e=e.parent;return zC.isAssertionExpression(e)&&zC.isConstTypeReference(e.type)||zC.isJSDocTypeAssertion(e)&&zC.isConstTypeReference(zC.getJSDocTypeAssertionType(e))||(zC.isParenthesizedExpression(e)||zC.isArrayLiteralExpression(e)||zC.isSpreadElement(e))&&xx(e)||(zC.isPropertyAssignment(e)||zC.isShorthandPropertyAssignment(e)||zC.isTemplateSpan(e))&&xx(e.parent)}function Dx(e,t,r,n){n=Ix(e,t,n);return xx(e)||zC.isCommonJsExportedExpression(e)?Td(n):yx(e)?n:wf(n,Ry(2===arguments.length?jy(e):r,e))}function Sx(e,t){return 162===e.name.kind&&Yy(e.name),Dx(e.initializer,t)}function Tx(e,t){return NC(e),162===e.name.kind&&Yy(e.name),Cx(e,Hb(e,t),t)}function Cx(e,t,r){if(r&&10&r){var n=Sv(t,0,!0),i=Sv(t,1,!0),a=n||i;if(a&&a.typeParameters){i=Ly(e,2);if(i){i=Sv(Wf(i),n?0:1,!1);if(i&&!i.typeParameters){if(8&r)return kx(e,r),zt;n=Jy(e),r=n.signature&&zl(n.signature),e=r&&Dv(r);if(e&&!e.typeParameters&&!zC.every(n.inferences,Ex)){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;Nx(e.inferredTypeParameters,s)||Nx(i,s)?((s=Ia(si(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(!Nx(e,a))return a}}(zC.concatenate(e.inferredTypeParameters,i),s)))).target=c,r=zC.append(r,c),n=zC.append(n,s),i.push(s)):i.push(c)}if(n)for(var c,l=jd(r,n),u=0,_=n;u<_.length;u++)(c=_[u]).mapper=l;return i}(n,a.typeParameters),e=Wl(a,r),o=zC.map(n.inferences,function(e){return yg(e.typeParameter)});if(ug(e,i,function(e,t){Lg(o,e,t,0,!0)}),zC.some(o,Ex)&&(_g(e,i,function(e,t){Lg(o,e,t)}),!function(e,t){for(var r=0;r<e.length;r++)if(Ex(e[r])&&Ex(t[r]))return!0;return!1}(n.inferences,o)))return function(e,t){for(var r=0;r<e.length;r++)!Ex(e[r])&&Ex(t[r])&&(e[r]=t[r])}(n.inferences,o),n.inferredTypeParameters=zC.concatenate(n.inferredTypeParameters,r),Xl(e)}return Xl(Tv(a,i,n))}}}}return t}function kx(e,t){2&t&&(Jy(e).flags|=4)}function Ex(e){return!(!e.candidates&&!e.contraCandidates)}function Nx(e,t){return zC.some(e,function(e){return e.symbol.escapedName===t})}function Ax(e){e=xv(e);if(e&&!e.typeParameters)return zl(e)}function Fx(e){var t=Px(e);if(t)return t;if(134217728&e.flags&&Jr){var r=Jr[$C(e)];if(r)return r}t=dn,r=Ix(e);return dn!==t&&((Jr=Jr||[])[$C(e)]=r,zC.setNodeFlags(e,134217728|e.flags)),r}function Px(e){var t,r,n,i=zC.skipParentheses(e,!0);if(zC.isJSDocTypeAssertion(i)){var a=zC.getJSDocTypeAssertionType(i);if(!zC.isConstTypeReference(a))return Id(a)}if(i=zC.skipParentheses(e),!zC.isCallExpression(i)||106===i.expression.kind||zC.isRequireCall(i,!0)||ob(i)){if(zC.isAssertionExpression(i)&&!zC.isConstTypeReference(i.type))return Id(i.type);if(8===e.kind||10===e.kind||110===e.kind||95===e.kind)return Ix(e)}else if(a=zC.isCallChain(i)?(r=Ix((t=i).expression),n=Xf(r,t.expression),(e=Ax(r))&&Qf(e,t,n!==r)):Ax(Ah(i.expression)))return a}function wx(e){var t=yi(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Xe;try{return t.contextFreeType=Ix(e,4)}finally{e.contextualType=r}}function Ix(e,t,r){null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.push("check","checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});var n=Z;d=0;r=Cx(Z=e,function(e,t,r){var n=e.kind;if(x)switch(n){case 226:case 213:case 214:x.throwIfCancellationRequested()}switch(n){case 79:return oy(e,t);case 80:return zh(e);case 108:return dy(e);case 106:return gy(e);case 104:return ut;case 14:case 10:return Sd(kd(e.text));case 8:return BC(e),Sd(Ed(+e.text));case 9:return function(e){zC.isLiteralTypeNode(e.parent)||zC.isPrefixUnaryExpression(e.parent)&&zC.isLiteralTypeNode(e.parent.parent)||!(B<7)||LC(e,zC.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)}(e),Sd(Nd({negative:!1,base10Value:zC.parsePseudoBigInt(e.text)}));case 110:return mt;case 95:return ft;case 223:return px(e);case 13:return or;case 204:return Gy(e,t,r);case 205:return th(e,t);case 206:return Rh(e,t);case 161:return Bh(e,t);case 207:return uv(e,t);case 208:if(100===e.expression.kind)return sb(e);case 209:return function(e,t){if(hC(e,e.typeArguments),(t=eb(e,void 0,t))===Gr)return St;if(ib(t,e),106===e.expression.kind)return bt;if(209===e.kind){var r=t.declaration;if(r&&171!==r.kind&&175!==r.kind&&180!==r.kind&&!zC.isJSDocConstructSignature(r)&&!tb(r))return te&&ei(e,zC.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Xe}if(zC.isInJSFile(e)&&_b(e))return Rl(e.arguments[0]);if(12288&(r=zl(t)).flags&&ob(e))return Ad(zC.walkUpParenthesizedExpressions(e.parent));if(208===e.kind&&!e.questionDotToken&&238===e.parent.kind&&16384&r.flags&&jl(t)&&(zC.isDottedName(e.expression)?Wm(e)||(n=ei(e.expression,zC.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation),qm(e.expression,n)):ei(e.expression,zC.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name)),zC.isInJSFile(e)){var n=nb(e,!1);if(null!==(e=null==n?void 0:n.exports)&&void 0!==e&&e.size){n=Ba(n,n.exports,zC.emptyArray,zC.emptyArray,zC.emptyArray);return n.objectFlags|=4096,x_([r,n])}}return r}(e,t);case 210:return db(e);case 212:return function(e,t){if(zC.hasJSDocNodes(e)&&zC.isJSDocTypeAssertion(e)){var r=zC.getJSDocTypeAssertionType(e);return pb(r,r,e.expression,t)}return Ix(e.expression,t)}(e,t);case 226:return function(e){return wS(e),cT(e),_s(ba(e))}(e);case 213:case 214:return Hb(e,t);case 216:return function(e){return Ix(e.expression),Jn}(e);case 211:case 229:return function(e){var t;return 211!==e.kind||(t=zC.getSourceFileOfNode(e))&&zC.fileExtensionIsOneOf(t.fileName,[".cts",".mts"])&&LC(e,zC.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),pb(e,e.type,e.expression)}(e);case 230:return fb(e);case 228:return gb(e);case 231:return mb(e);case 215:return $b(e);case 217:return function(e){return Ix(e.expression),ot}(e);case 218:return ex(e);case 219:return function(e){var t=Ix(e.operand);if(t===Dt)return Dt;switch(e.operand.kind){case 8:switch(e.operator){case 40:return Sd(Ed(-e.operand.text));case 39:return Sd(Ed(+e.operand.text))}break;case 9:if(40===e.operator)return Sd(Nd({negative:!0,base10Value:zC.parsePseudoBigInt(e.operand.text)}))}switch(e.operator){case 39:case 40:case 54:return Mh(t,e.operand),rx(t,12288)&&ei(e.operand,zC.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,zC.tokenToString(e.operator)),39===e.operator?(nx(t,2112)&&ei(e.operand,zC.Diagnostics.Operator_0_cannot_be_applied_to_type_1,zC.tokenToString(e.operator),to(Af(t))),dt):tx(t);case 53:HD(e.operand);var r=12582912&um(t);return 4194304==r?ft:8388608==r?mt:ht;case 45:case 46:return Gb(e.operand,Mh(t,e.operand),zC.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Zb(e.operand,zC.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,zC.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),tx(t)}return $e}(e);case 220:return function(e){var t=Ix(e.operand);return t===Dt?Dt:(Gb(e.operand,Mh(t,e.operand),zC.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Zb(e.operand,zC.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,zC.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),tx(t))}(e);case 221:return A(e,t);case 222:return function(e,t){return HD(e.condition),qD(e.condition,e.whenTrue),f_([Ix(e.whenTrue,t),Ix(e.whenFalse,t)],2)}(e,t);case 225:return function(e,t){return B<2&&uC(e,$.downlevelIteration?1536:1024),YD(33,Ix(e.expression,t),at,e.expression)}(e,t);case 227:return ot;case 224:return function(t){C(function(){8192&t.flags||IC(t,zC.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);by(t)&&ei(t,zC.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)});var e=zC.getContainingFunction(t);if(!e)return Xe;if(!(1&(a=zC.getFunctionFlags(e))))return Xe;var r=0!=(2&a);t.asteriskToken&&(r&&B<99&&uC(t,26624),!r&&B<2&&$.downlevelIteration&&uC(t,256));var n=Kl(e),i=(o=n&&bS(n,r))&&o.yieldType||Xe,a=o&&o.nextType||Xe,o=r?lD(a)||Xe:a,a=t.expression?Ix(t.expression):ot,o=zb(t,a,o,r);return n&&o&&Sp(o,i,t.expression||t,t.expression),t.asteriskToken?$D(r?19:17,1,a,t.expression)||Xe:n?vS(2,n,r)||Xe:((e=xy(2,e))||(e=Xe,C(function(){var e;te&&!zC.expressionResultIsUnused(t)&&((e=jy(t))&&!xo(e)||ei(t,zC.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation))})),e)}(e);case 232:return function(e){return e.isSpread?Y_(e.type,dt):e.type}(e);case 288:return Sh(e,t);case 278:return function(e){return cT(e),hh(e)||Xe}(e);case 279:return function(e){return cT(e),hh(e)||Xe}(e);case 282:return function(e){bh(e.openingFragment);var t=zC.getSourceFileOfNode(e);return!zC.getJSXTransformEnabled($)||!$.jsxFactory&&!t.pragmas.has("jsx")||$.jsxFragmentFactory||t.pragmas.has("jsxfrag")||ei(e,$.jsxFactory?zC.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:zC.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),oh(e),hh(e)||Xe}(e);case 286:return ch(e,t);case 280:zC.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return $e}(e,t,r),t);return ox(r)&&(t=r,206===(e=e).parent.kind&&e.parent.expression===e||207===e.parent.kind&&e.parent.expression===e||(79===e.kind||161===e.kind)&&bT(e)||181===e.parent.kind&&e.parent.exprName===e||275===e.parent.kind||ei(e,zC.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),$.isolatedModules&&(zC.Debug.assert(!!(128&t.symbol.flags)),16777216&t.symbol.valueDeclaration.flags&&ei(e,zC.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))),Z=n,null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.pop(),r}function Ox(e){dC(e),e.expression&&IC(e.expression,zC.Diagnostics.Type_expected),oT(e.constraint),oT(e.default);var t=Ls(ba(e));Hc(t),Yc(t)===Ut&&ei(e.default,zC.Diagnostics.Type_parameter_0_has_a_circular_default,to(t));var r=Kc(t),n=Zc(t);r&&n&&Dp(n,nc(ip(r,zd(t,n)),n),e.default,zC.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),cT(e),C(function(){return NS(e.name,zC.Diagnostics.Type_parameter_name_cannot_be_0)})}function Mx(e){_C(e),jD(e);var t=zC.getContainingFunction(e);zC.hasSyntacticModifier(e,16476)&&(171===t.kind&&zC.nodeIsPresent(t.body)||ei(e,zC.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),171===t.kind&&zC.isIdentifier(e.name)&&"constructor"===e.name.escapedText&&ei(e.name,zC.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),e.questionToken&&zC.isBindingPattern(e.name)&&t.body&&ei(e,zC.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&zC.isIdentifier(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&ei(e,zC.Diagnostics.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),171!==t.kind&&175!==t.kind&&180!==t.kind||ei(e,zC.Diagnostics.A_constructor_cannot_have_a_this_parameter),214===t.kind&&ei(e,zC.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),172!==t.kind&&173!==t.kind||ei(e,zC.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||zC.isBindingPattern(e.name)||hp(ol(_s(e.symbol)),ur)||ei(e,zC.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Lx(e){var t=function(e){switch(e.parent.kind){case 214:case 174:case 256:case 213:case 179:case 169:case 168:var t=e.parent;if(e===t.type)return t}}(e);if(t){var r=Il(t),n=jl(r);if(n){oT(e.type);var i=e.parameterName;if(0===n.kind||2===n.kind)Fd(i);else if(0<=n.parameterIndex)ak(r)&&n.parameterIndex===r.parameters.length-1?ei(i,zC.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):n.type&&Dp(n.type,_s(r.parameters[n.parameterIndex]),e.type,void 0,function(){return zC.chainDiagnosticMessages(void 0,zC.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(zC.isBindingPattern(c)&&function e(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!zC.isOmittedExpression(o)){var o=o.name;if(79===o.kind&&o.escapedText===n)return ei(r,zC.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((202===o.kind||201===o.kind)&&e(o,r,n))return!0}}}(c,i,n.parameterName)){a=!0;break}}a||ei(e.parameterName,zC.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}else ei(e,zC.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}function Rx(o){176===o.kind?_C(e=o)||function(e){var t=e.parameters[0];if(1!==e.parameters.length)return LC(t?t.name:e,zC.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(fC(e.parameters,zC.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return LC(t.dotDotDotToken,zC.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(zC.hasEffectiveModifiers(t))return LC(t.name,zC.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return LC(t.questionToken,zC.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return LC(t.name,zC.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return LC(t.name,zC.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var r=Id(t.type);if(Em(r,function(e){return!!(8576&e.flags)})||U_(r))return LC(t.name,zC.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);Nm(r,ru)?e.type||LC(e,zC.Diagnostics.An_index_signature_must_have_a_type_annotation):LC(t.name,zC.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e):179!==o.kind&&256!==o.kind&&180!==o.kind&&174!==o.kind&&171!==o.kind&&175!==o.kind||yC(o);var e,r,n,i,t=zC.getFunctionFlags(o);4&t||(3==(3&t)&&B<99&&uC(o,6144),2==(3&t)&&B<4&&uC(o,64),0!=(3&t)&&B<2&&uC(o,128)),AS(zC.getEffectiveTypeParameterDeclarations(o)),e=o,t=zC.filter(zC.getJSDocTags(e),zC.isJSDocParameterTag),zC.length(t)&&(r=zC.isInJSFile(e),n=new zC.Set,i=new zC.Set,zC.forEach(e.parameters,function(e,t){e=e.name;zC.isIdentifier(e)&&n.add(e.escapedText),zC.isBindingPattern(e)&&i.add(t)}),Ml(e)?(e=zC.lastOrUndefined(t),r&&e&&zC.isIdentifier(e.name)&&e.typeExpression&&e.typeExpression.type&&!n.has(e.name.escapedText)&&!ff(Id(e.typeExpression.type))&&ei(e.name,zC.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,zC.idText(e.name))):zC.forEach(t,function(e,t){e=e.name;i.has(t)||zC.isIdentifier(e)&&n.has(e.escapedText)||(zC.isQualifiedName(e)?r&&ei(e,zC.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,zC.entityNameToString(e),zC.entityNameToString(e.left)):ri(r,e,zC.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,zC.idText(e)))})),zC.forEach(o.parameters,Mx),o.type&&oT(o.type),C(function(){!function(e){2<=B||!zC.hasRestParameter(e)||16777216&e.flags||zC.nodeIsMissing(e.body)||zC.forEach(e.parameters,function(e){e.name&&!zC.isBindingPattern(e.name)&&e.name.escapedText===ke.escapedName&&Zn("noEmit",e,zC.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(o);var e=zC.getEffectiveReturnTypeNode(o);if(te&&!e)switch(o.kind){case 175:ei(o,zC.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 174:ei(o,zC.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}{var t,r,n,i,a;e&&(1==(5&(t=zC.getFunctionFlags(o)))?(r=Id(e))===bt?ei(e,zC.Diagnostics.A_generator_cannot_have_a_void_type_annotation):(n=vS(0,r,0!=(2&t))||Xe,i=vS(1,r,0!=(2&t))||n,a=vS(2,r,0!=(2&t))||nt,Dp(Jb(n,i,a,!!(2&t)),r,e)):2==(3&t)&&function(e,t){var r=Id(t);if(2<=B){if(Do(r))return;var n=zu(!0);if(n!==Jt&&!ps(r,n))return ei(t,zC.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,to(uD(r)||bt))}else{if(!function(e){dD(e&&zC.getEntityNameFromTypeNode(e),!1)}(t),Do(r))return;var i=zC.getEntityNameFromTypeNode(t);if(void 0===i)return ei(t,zC.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,to(r));var a=ra(i,111551,!0),n=a?_s(a):$e;if(Do(n))return 79===i.kind&&"Promise"===i.escapedText&&fs(r)===zu(!1)?ei(t,zC.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):ei(t,zC.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,zC.entityNameToString(i));a=(vr=vr||Mu("PromiseConstructorLike",0,!0))||Rt;if(a===Rt)return ei(t,zC.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,zC.entityNameToString(i));if(!Dp(n,a,t,zC.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&&zC.getFirstIdentifier(i),t=vi(e.locals,a.escapedText,111551);if(t)return ei(t.valueDeclaration,zC.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,zC.idText(a),zC.entityNameToString(i))}aD(r,!1,e,zC.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(o,e))}176!==o.kind&&317!==o.kind&&bD(o)})}function Bx(e){for(var t=new zC.Map,r=0,n=e.members;r<n.length;r++){var i=n[r];if(166===i.kind){var a=void 0,o=i.name;switch(o.kind){case 10:case 8:a=o.text;break;case 79:a=zC.idText(o);break;default:continue}t.get(a)?(ei(zC.getNameOfDeclaration(i.symbol.valueDeclaration),zC.Diagnostics.Duplicate_identifier_0,a),ei(i.name,zC.Diagnostics.Duplicate_identifier_0,a)):t.set(a,!0)}}}function jx(e){if(258===e.kind){var t=ba(e);if(t.declarations&&0<t.declarations.length&&t.declarations[0]!==e)return}e=Yl(ba(e));if(null!=e&&e.declarations){for(var n=new zC.Map,r=0,i=e.declarations;r<i.length;r++)!function(r){1===r.parameters.length&&r.parameters[0].type&&km(Id(r.parameters[0].type),function(e){var t=n.get(e.id);t?t.declarations.push(r):n.set(e.id,{type:e,declarations:[r]})})}(i[r]);n.forEach(function(e){if(1<e.declarations.length)for(var t=0,r=e.declarations;t<r.length;t++)ei(r[t],zC.Diagnostics.Duplicate_index_signature_for_type_0,to(e.type))})}}function Jx(e){_C(e)||function(e){if(zC.isComputedPropertyName(e.name)&&zC.isBinaryExpression(e.name.expression)&&101===e.name.expression.operatorToken.kind)return LC(e.parent.members[0],zC.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(zC.isClassLike(e.parent)){if(zC.isStringLiteral(e.name)&&"constructor"===e.name.text)return LC(e.name,zC.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(EC(e.name,zC.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(B<2&&zC.isPrivateIdentifier(e.name))return LC(e.name,zC.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(258===e.parent.kind){if(EC(e.name,zC.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 LC(e.initializer,zC.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(zC.isTypeLiteralNode(e.parent)){if(EC(e.name,zC.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 LC(e.initializer,zC.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}16777216&e.flags&&FC(e);if(zC.isPropertyDeclaration(e)&&e.exclamationToken&&(!zC.isClassLike(e.parent)||!e.type||e.initializer||16777216&e.flags||zC.isStatic(e)||zC.hasAbstractModifier(e))){var t=e.initializer?zC.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?zC.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:zC.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return LC(e.exclamationToken,t)}}(e)||xC(e.name),jD(e),zx(e),zC.hasSyntacticModifier(e,128)&&167===e.kind&&e.initializer&&ei(e,zC.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,zC.declarationNameToString(e.name))}function zx(e){if(zC.isPrivateIdentifier(e.name)&&B<99){for(var t,r=zC.getEnclosingBlockScopeContainer(e);r;r=zC.getEnclosingBlockScopeContainer(r))yi(r).flags|=67108864;!zC.isClassExpression(e.parent)||(t=sy(e.parent))&&(yi(e.name).flags|=524288,yi(t).flags|=65536)}}function Kx(o){Rx(o),function(e){var t=zC.isInJSFile(e)?zC.getJSDocTypeParameterDeclarations(e):void 0,r=e.typeParameters||t&&zC.firstOrUndefined(t);if(r){t=r.pos===r.end?r.pos:zC.skipTrivia(zC.getSourceFileOfNode(e).text,r.pos);return OC(e,t,r.end-t,zC.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(o)||function(e){if(e=zC.getEffectiveReturnTypeNode(e))LC(e,zC.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(o),oT(o.body);var e=ba(o),t=zC.getDeclarationOfKind(e,o.kind);function s(e){return!!zC.isPrivateIdentifierClassElementDeclaration(e)||167===e.kind&&!zC.isStatic(e)&&!!e.initializer}o===t&&tD(e),zC.nodeIsMissing(o.body)||C(function(){var e=o.parent;if(zC.getClassExtendsHeritageElement(e)){cy(o.parent,e);var t=uy(e),e=ly(o.body);if(e){if(t&&ei(e,zC.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==zC.getEmitScriptTarget($)||!E)&&(zC.some(o.parent.members,s)||zC.some(o.parameters,function(e){return zC.hasSyntacticModifier(e,16476)})))if(function(e,t){e=zC.walkUpParenthesizedExpressions(e.parent);return zC.isExpressionStatement(e)&&e.parent===t}(e,o.body)){for(var r=void 0,n=0,i=o.body.statements;n<i.length;n++){var a=i[n];if(zC.isExpressionStatement(a)&&zC.isSuperCall(zC.skipOuterExpressions(a.expression))){r=a;break}if(Ux(a))break}void 0===r&&ei(o,zC.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else ei(e,zC.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else t||ei(o,zC.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}})}function Ux(e){return 106===e.kind||108===e.kind||!zC.isThisContainerOrFunctionBlock(e)&&!!zC.forEachChild(e,Ux)}function Vx(i){C(function(){yC(i)||function(e){if(!(16777216&e.flags)&&182!==e.parent.kind&&258!==e.parent.kind){if(B<1)return LC(e.name,zC.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(B<2&&zC.isPrivateIdentifier(e.name))return LC(e.name,zC.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!zC.hasSyntacticModifier(e,128))return OC(e,e.end-1,";".length,zC.Diagnostics._0_expected,"{")}if(e.body){if(zC.hasSyntacticModifier(e,128))return LC(e,zC.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(182===e.parent.kind||258===e.parent.kind)return LC(e.body,zC.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return LC(e.name,zC.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return kC(e)||e.parameters.length===(172===e.kind?0:1)}(e))return LC(e.name,172===e.kind?zC.Diagnostics.A_get_accessor_cannot_have_parameters:zC.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(173===e.kind){if(e.type)return LC(e.name,zC.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=zC.Debug.checkDefined(zC.getSetAccessorValueParameter(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return LC(t.dotDotDotToken,zC.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return LC(t.questionToken,zC.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return LC(e.name,zC.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(i)||xC(i.name);yD(i),Rx(i),172!==i.kind||!(16777216&i.flags)&&zC.nodeIsPresent(i.body)&&256&i.flags&&(512&i.flags||ei(i.name,zC.Diagnostics.A_get_accessor_must_return_a_value));162===i.name.kind&&Yy(i.name);{var e,t,r;Ys(i)&&(t=ba(i),n=zC.getDeclarationOfKind(t,172),r=zC.getDeclarationOfKind(t,173),!n||!r||1&HT(n)||(yi(n).flags|=1,e=zC.getEffectiveModifierFlags(n),t=zC.getEffectiveModifierFlags(r),(128&e)!=(128&t)&&(ei(n.name,zC.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),ei(r.name,zC.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&e&&!(24&t)||8&e&&!(8&t))&&(ei(n.name,zC.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),ei(r.name,zC.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter)),t=ts(n),r=ts(r),t&&r&&Dp(t,r,n,zC.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)))}var n=rs(ba(i));172===i.kind&&Wb(i,n)}),oT(i.body),zx(i)}function qx(e,t){return wl(zC.map(e.typeArguments,Id),t,Pl(t),zC.isInJSFile(e))}function Wx(e,t){for(var r,n,i=!0,a=0;a<t.length;a++){var o=Kc(t[a]);o&&(r||(n=jd(t,r=qx(e,t))),i=i&&Dp(r[a],ip(o,n),e.typeArguments[a],zC.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function Hx(e){var t=Eu(e);if(!Do(t)){e=yi(e).resolvedSymbol;if(e)return 524288&e.flags&&mi(e).typeParameters||(4&zC.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function Gx(t){hC(t,t.typeArguments),178!==t.kind||void 0===t.typeName.jsdocDotPos||zC.isInJSFile(t)||zC.isInJSDoc(t)||OC(t,t.typeName.jsdocDotPos,1,zC.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),zC.forEach(t.typeArguments,oT);var e,r=Eu(t);Do(r)||(t.typeArguments&&C(function(){var e=Hx(t);e&&Wx(t,e)}),(e=yi(t).resolvedSymbol)&&(zC.some(e.declarations,function(e){return mT(e)&&!!(268435456&e.flags)})&&oi(ab(t),e.declarations,e.escapedName),32&r.flags&&8&e.flags&&ei(t,zC.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,to(r))))}function Qx(t){zC.forEach(t.members,oT),C(function(){var e=pd(t);kS(e,e.symbol),jx(t),Bx(t)})}function Xx(e,t){if(!(8388608&e.flags))return e;var r=e.objectType,n=e.indexType;if(hp(n,P_(r,!1)))return 207===t.kind&&zC.isAssignmentTarget(t)&&32&zC.getObjectFlags(r)&&1&wc(r)&&ei(t,zC.Diagnostics.Index_signature_in_type_0_only_permits_reading,to(r)),e;var i=tl(r);if(vl(i,dt)&&ix(n,296))return e;if(V_(r)){var a=R_(n,t);if(a){i=km(i,function(e){return _l(e,a)});if(i&&24&zC.getDeclarationModifierFlagsFromSymbol(i))return ei(t,zC.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,zC.unescapeLeadingUnderscores(a)),$e}}return ei(t,zC.Diagnostics.Type_0_cannot_be_used_to_index_type_1,to(n),to(r)),$e}function Yx(e){!function(e){var t;if(null!==(t=e.members)&&void 0!==t&&t.length)LC(e.members[0],zC.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}(e),oT(e.typeParameter),oT(e.nameType),oT(e.type),e.type||cg(e,Xe);var t=td(e),r=Ec(t);r?Dp(r,At,e.nameType):Dp(kc(t),At,zC.getEffectiveConstraintOfTypeParameter(e.typeParameter))}function Zx(e){!function(e){if(154===e.operator){if(151!==e.type.kind)return LC(e.type,zC.Diagnostics._0_expected,zC.tokenToString(151));var t,r=zC.walkUpParenthesizedTypes(e.parent);switch(zC.isInJSFile(r)&&zC.isJSDocTypeExpression(r)&&((t=zC.getJSDocHost(r))&&(r=zC.getSingleVariableOfVariableStatement(t)||t)),r.kind){case 254:var n=r;if(79!==n.name.kind)return LC(e,zC.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!zC.isVariableDeclarationInVariableStatement(n))return LC(e,zC.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return LC(r.name,zC.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 167:if(!zC.isStatic(r)||!zC.hasEffectiveReadonlyModifier(r))return LC(r.name,zC.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 166:if(!zC.hasSyntacticModifier(r,64))return LC(r.name,zC.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:LC(e,zC.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(145===e.operator&&183!==e.type.kind&&184!==e.type.kind)IC(e,zC.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,zC.tokenToString(151))}(e),oT(e.type)}function $x(e){return(zC.hasEffectiveModifier(e,8)||zC.isPrivateIdentifierClassElementDeclaration(e))&&!!(16777216&e.flags)}function eD(e,t){var r=zC.getCombinedModifierFlags(e);return 258!==e.parent.kind&&257!==e.parent.kind&&226!==e.parent.kind&&16777216&e.flags&&(2&r||zC.isModuleBlock(e.parent)&&zC.isModuleDeclaration(e.parent.parent)&&zC.isGlobalScopeAugmentation(e.parent.parent)||(r|=1),r|=2),r&t}function tD(e){C(function(){return function(r){function i(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}var e,t,n,a=0,o=155,s=!1,c=!0,l=!1,u=r.declarations,_=0!=(16384&r.flags);function d(t){if(!t.name||!zC.nodeIsMissing(t.name)){var r=!1,e=zC.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&&(zC.isPrivateIdentifier(t.name)&&zC.isPrivateIdentifier(i)&&t.name.escapedText===i.escapedText||zC.isComputedPropertyName(t.name)&&zC.isComputedPropertyName(i)||zC.isPropertyNameLiteral(t.name)&&zC.isPropertyNameLiteral(i)&&zC.getEscapedTextOfIdentifierOrLiteral(t.name)===zC.getEscapedTextOfIdentifierOrLiteral(i)))return void((169===t.kind||168===t.kind)&&zC.isStatic(t)!==zC.isStatic(e)&&ei(n,zC.isStatic(t)?zC.Diagnostics.Function_overload_must_be_static:zC.Diagnostics.Function_overload_must_not_be_static));if(zC.nodeIsPresent(e.body))return void ei(n,zC.Diagnostics.Function_implementation_name_must_be_0,zC.declarationNameToString(t.name))}n=t.name||t;_?ei(n,zC.Diagnostics.Constructor_implementation_is_missing):zC.hasSyntacticModifier(t,128)?ei(n,zC.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):ei(n,zC.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var p=!1,f=!1,g=!1,m=[];if(u)for(var y=0,h=u;y<h.length;y++){var v=h[y],b=16777216&v.flags,x=v.parent&&(258===v.parent.kind||182===v.parent.kind)||b;x&&(n=void 0),257!==v.kind&&226!==v.kind||b||(g=!0),256!==v.kind&&169!==v.kind&&168!==v.kind&&171!==v.kind||(m.push(v),b=eD(v,155),a|=b,o&=b,s=s||zC.hasQuestionToken(v),c=c&&zC.hasQuestionToken(v),(b=zC.nodeIsPresent(v.body))&&e?_?f=!0:p=!0:(null==n?void 0:n.parent)===v.parent&&n.end!==v.pos&&d(n),b?e=e||v:l=!0,n=v,x||(t=v))}f&&zC.forEach(m,function(e){ei(e,zC.Diagnostics.Multiple_constructor_implementations_are_not_allowed)});p&&zC.forEach(m,function(e){ei(zC.getNameOfDeclaration(e)||e,zC.Diagnostics.Duplicate_function_implementation)});{var D;g&&!_&&16&r.flags&&u&&(D=zC.filter(u,function(e){return 257===e.kind}).map(function(e){return zC.createDiagnosticForNode(e,zC.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)}),zC.forEach(u,function(e){var t=257===e.kind?zC.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:256===e.kind?zC.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;t&&zC.addRelatedInfo.apply(void 0,__spreadArray([ei(zC.getNameOfDeclaration(e)||e,t,zC.symbolName(r))],D,!1))}))}!t||t.body||zC.hasSyntacticModifier(t,128)||t.questionToken||d(t);if(l&&(u&&(function(e,t,r){var n;0!=(a^o)&&(n=eD(i(e,t),r),zC.forEach(e,function(e){var t=eD(e,r)^n;1&t?ei(zC.getNameOfDeclaration(e),zC.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?ei(zC.getNameOfDeclaration(e),zC.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?ei(zC.getNameOfDeclaration(e)||e,zC.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&ei(zC.getNameOfDeclaration(e),zC.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}(u,e,155),function(e,t){var r;s!==c&&(r=zC.hasQuestionToken(i(e,t)),zC.forEach(e,function(e){zC.hasQuestionToken(e)!==r&&ei(zC.getNameOfDeclaration(e),zC.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}(u,e)),e))for(var u=Ll(r),S=Il(e),T=0,C=u;T<C.length;T++){var k=C[T];if(!wp(S,k)){zC.addRelatedInfo(ei(k.declaration,zC.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),zC.createDiagnosticForNode(e,zC.Diagnostics.The_implementation_signature_is_declared_here));break}}}(e)})}function rD(e){C(function(){return function(e){var t=e.localSymbol;if(!t&&!(t=ba(e)).exportSymbol)return;if(zC.getDeclarationOfKind(t,e.kind)!==e)return;for(var r=0,n=0,i=0,a=0,o=t.declarations;a<o.length;a++){var s=g(p=o[a]),c=eD(p,513);1&c?512&c?i|=s:r|=s:n|=s}var l=r&n,u=i&(r|n);if(l||u)for(var _=0,d=t.declarations;_<d.length;_++){var p,s=g(p=d[_]),f=zC.getNameOfDeclaration(p);s&u?ei(f,zC.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,zC.declarationNameToString(f)):s&l&&ei(f,zC.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,zC.declarationNameToString(f))}function g(e){var t=e;switch(t.kind){case 258:case 259:case 345:case 338:case 339:return 2;case 261:return zC.isAmbientModule(t)||0!==zC.getModuleInstanceState(t)?5:4;case 257:case 260:case 299:return 3;case 305:return 7;case 271:case 221:var r=t,r=zC.isExportAssignment(r)?r.expression:r.right;if(!zC.isEntityNameExpression(r))return 1;t=r;case 265:case 268:case 267:var n=0,r=Gi(ba(t));return zC.forEach(r.declarations,function(e){n|=g(e)}),n;case 254:case 203:case 256:case 270:case 79:return 1;default:return zC.Debug.failBadSyntaxKind(t)}}}(e)})}function nD(e,t,r,n){e=iD(e,t);return e&&lD(e,t,r,n)}function iD(e,t){if(!xo(e)){var r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(ps(e,zu(!1)))return r.promisedTypeOfPromise=pu(e)[0];if(!ax(e,262140)){e=bo(e,"then");if(!xo(e)){e=e?pl(e,0):zC.emptyArray;if(0!==e.length){e=_m(f_(zC.map(e,wb)),2097152);if(!xo(e)){e=pl(e,0);if(0!==e.length)return r.promisedTypeOfPromise=f_(zC.map(e,wb),2);t&&ei(t,zC.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&ei(t,zC.Diagnostics.A_promise_must_have_a_then_method)}}}}function aD(e,t,r,n,i){return(t?lD:uD)(e,r,n,i)||$e}function oD(e){if(!ax(e,262140)){e=bo(e,"then");return e&&0<pl(_m(e,2097152),0).length}}function sD(e){if(16777216&e.flags){var t=Wu(!1);return t&&e.aliasSymbol===t&&1===(null===(e=e.aliasTypeArguments)||void 0===e?void 0:e.length)}}function cD(e){return 1048576&e.flags?Pm(e,cD):sD(e)?e.aliasTypeArguments[0]:e}function lD(e,t,r,n){n=uD(e,t,r,n);return n&&function(e){if(xo(e))return e;if(sD(e))return e;if(V_(e)){var t=Hc(e);if(!t||3&t.flags||Op(t)||oD(t)){t=Wu(!0);if(t)return mu(t,[cD(e)])}}return zC.Debug.assert(void 0===iD(e),"type provided should not be a non-generic 'promise'-like."),e}(n)}function uD(e,t,r,n){if(xo(e))return e;if(sD(e))return e;var i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){var a=t?function(e){return uD(e,t,r,n)}:uD;return i.awaitedTypeOfType=Pm(e,a)}a=iD(e);if(a){if(e.id===a.id||0<=Ln.lastIndexOf(a.id))return void(t&&ei(t,zC.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Ln.push(e.id);a=uD(a,t,r,n);return Ln.pop(),a?i.awaitedTypeOfType=a:void 0}if(!oD(e))return i.awaitedTypeOfType=e;t&&(zC.Debug.assertIsDefined(r),ei(t,r,n))}function _D(e){var t=eb(e);ib(t,e);t=zl(t);if(!(1&t.flags)){switch(e.parent.kind){case 257:n=zC.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var r=f_([_s(ba(e.parent)),bt]);break;case 167:case 164:n=zC.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,r=bt;break;case 169:case 172:case 173:var n=zC.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;r=f_([Gu(TT(e.parent)),bt]);break;default:return zC.Debug.fail()}Dp(t,r,e,n)}}function dD(e,t){var r,n;e&&(r=zC.getFirstIdentifier(e),n=2097152|(79===e.kind?788968:1920),(n=Di(r,r.escapedText,n,void 0,void 0,!0))&&2097152&n.flags&&(!Ea(n)||JT(Gi(n))||Yi(n)?t&&$.isolatedModules&&zC.getEmitModuleKind($)>=zC.ModuleKind.ES2015&&!Ea(n)&&!zC.some(n.declarations,zC.isTypeOnlyImportOrExportDeclaration)&&(t=ei(e,zC.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),(e=zC.find(n.declarations||zC.emptyArray,Pi))&&zC.addRelatedInfo(t,zC.createDiagnosticForNode(e,zC.Diagnostics._0_was_imported_here,zC.idText(r)))):$i(n)))}function pD(e){e=fD(e);e&&zC.isEntityName(e)&&dD(e,!0)}function fD(e){if(e)switch(e.kind){case 188:case 187:return gD(e.types);case 189:return gD([e.trueType,e.falseType]);case 191:case 197:return fD(e.type);case 178:return e.typeName}}function gD(e){for(var t,r=0,n=e;r<n.length;r++){for(var i=n[r];191===i.kind||197===i.kind;)i=i.type;if(143!==i.kind&&(ee||(196!==i.kind||104!==i.literal.kind)&&153!==i.kind)){var a=fD(i);if(!a)return;if(t){if(!zC.isIdentifier(t)||!zC.isIdentifier(a)||t.escapedText!==a.escapedText)return}else t=a}}return t}function mD(e){var t=zC.getEffectiveTypeAnnotationNode(e);return zC.isRestParameter(e)?zC.getRestParameterElementType(t):t}function yD(e){if(e.decorators&&zC.nodeCanBeDecorated(e,e.parent,e.parent.parent)){$.experimentalDecorators||ei(e,zC.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(uC(t,8),164===e.kind&&uC(t,32),$.emitDecoratorMetadata)switch(uC(t,16),e.kind){case 257:var r=zC.getFirstConstructorWithBody(e);if(r)for(var n=0,i=r.parameters;n<i.length;n++)pD(mD(i[n]));break;case 172:case 173:r=172===e.kind?173:172,r=zC.getDeclarationOfKind(ba(e),r);pD(es(e)||r&&es(r));break;case 169:for(var a=0,o=e.parameters;a<o.length;a++)pD(mD(o[a]));pD(zC.getEffectiveReturnTypeNode(e));break;case 167:pD(zC.getEffectiveTypeAnnotationNode(e));break;case 164:pD(mD(e));for(var s=0,c=e.parent.parameters;s<c.length;s++)pD(mD(c[s]))}zC.forEach(e.decorators,_D)}}function hD(e){switch(e.kind){case 79:return e;case 206:return e.name;default:return}}function vD(t){yD(t),Rx(t);var e,r,n=zC.getFunctionFlags(t);t.name&&162===t.name.kind&&Yy(t.name),Ys(t)&&(i=ba(t),r=null===(r=(e=t.localSymbol||i).declarations)||void 0===r?void 0:r.find(function(e){return e.kind===t.kind&&!(262144&e.flags)}),t===r&&tD(e),i.parent&&tD(i));var i,a=168===t.kind?void 0:t.body;oT(a),Wb(t,Kl(t)),C(function(){zC.getEffectiveReturnTypeNode(t)||(zC.nodeIsMissing(a)&&!$x(t)&&cg(t,Xe),1&n&&zC.nodeIsPresent(a)&&zl(Il(t)))}),!zC.isInJSFile(t)||(i=zC.getJSDocTypeTag(t))&&i.typeExpression&&!Vy(Id(i.typeExpression),t)&&ei(i.typeExpression.type,zC.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function bD(r){C(function(){var e=zC.getSourceFileOfNode(r),t=sn.get(e.path);t||(t=[],sn.set(e.path,t));t.push(r)})}function xD(e,t){for(var r,n,i,a=0,o=e;a<o.length;a++){var c=o[a];switch(c.kind){case 257:case 226:!function(e){for(var t=0,r=c.members;t<r.length;t++){var n=r[t];switch(n.kind){case 169:case 167:case 172:case 173:if(173===n.kind&&32768&n.symbol.flags)break;var i=ba(n);i.isReferenced||!(zC.hasEffectiveModifier(n,8)||zC.isNamedDeclaration(n)&&zC.isPrivateIdentifier(n.name))||16777216&n.flags||e(n,0,zC.createDiagnosticForNode(n.name,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,$a(i)));break;case 171:for(var a=0,o=n.parameters;a<o.length;a++){var s=o[a];!s.symbol.isReferenced&&zC.hasSyntacticModifier(s,8)&&e(s,0,zC.createDiagnosticForNode(s.name,zC.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,zC.symbolName(s.symbol)))}break;case 176:case 234:case 170:break;default:zC.Debug.fail("Unexpected class member")}}}(t),TD(c,t);break;case 305:case 261:case 235:case 263:case 242:case 243:case 244:ND(c,t);break;case 171:case 213:case 256:case 214:case 169:case 172:case 173:c.body&&ND(c,t),TD(c,t);break;case 168:case 174:case 175:case 179:case 180:case 259:case 258:TD(c,t);break;case 190:n=t,i=void 0,CD(i=(r=c).typeParameter)&&n(r,1,zC.createDiagnosticForNode(r,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,zC.idText(i.name)));break;default:zC.Debug.assertNever(c,"Node should not have been registered for unused identifiers check")}}}function DD(e,t,r){var n=zC.getNameOfDeclaration(e)||e,i=mT(e)?zC.Diagnostics._0_is_declared_but_never_used:zC.Diagnostics._0_is_declared_but_its_value_is_never_read;r(e,0,zC.createDiagnosticForNode(n,i,t))}function SD(e){return zC.isIdentifier(e)&&95===zC.idText(e).charCodeAt(0)}function TD(e,t){var r=ba(e).declarations;if(r&&zC.last(r)===e)for(var e=zC.getEffectiveTypeParameterDeclarations(e),n=new zC.Set,i=0,a=e;i<a.length;i++){var o,s,c,l,u,_=a[i];CD(_)&&(o=zC.idText(_.name),190!==(l=_.parent).kind&&l.typeParameters.every(CD)?zC.tryAddToSet(n,l)&&(s=zC.getSourceFileOfNode(l),c=zC.isJSDocTemplateTag(l)?zC.rangeOfNode(l):zC.rangeOfTypeParameters(s,l.typeParameters),l=(u=1===l.typeParameters.length)?zC.Diagnostics._0_is_declared_but_its_value_is_never_read:zC.Diagnostics.All_type_parameters_are_unused,u=u?o:void 0,t(_,1,zC.createFileDiagnostic(s,c.pos,c.end-c.pos,l,u))):t(_,1,zC.createDiagnosticForNode(_,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,o)))}}function CD(e){return!(262144&va(e.symbol).isReferenced||SD(e.name))}function kD(e,t,r,n){var i=String(n(t)),n=e.get(i);n?n[1].push(r):e.set(i,[t,[r]])}function ED(e){return zC.tryCast(zC.getRootDeclaration(e),zC.isParameter)}function ND(e,o){var s=new zC.Map,c=new zC.Map,l=new zC.Map;e.locals.forEach(function(e){if((262144&e.flags?3&e.flags&&!(3&e.isReferenced):!e.isReferenced&&!e.exportSymbol)&&e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var n,i,a=r[t];n=a,(zC.isBindingElement(n)?(!zC.isObjectBindingPattern(n.parent)||n.propertyName)&&SD(n.name):zC.isAmbientModule(n)||(zC.isVariableDeclaration(n)&&zC.isForInOrOfStatement(n.parent.parent)||FD(n))&&SD(n.name))||(FD(a)?kD(s,267===(i=a).kind?i:(268===i.kind?i:i.parent).parent,a,$C):zC.isBindingElement(a)&&zC.isObjectBindingPattern(a.parent)?a!==zC.last(a.parent.elements)&&zC.last(a.parent.elements).dotDotDotToken||kD(c,a.parent,a,$C):zC.isVariableDeclaration(a)?kD(l,a.parent,a,$C):(n=e.valueDeclaration&&ED(e.valueDeclaration),i=e.valueDeclaration&&zC.getNameOfDeclaration(e.valueDeclaration),n&&i?zC.isParameterPropertyDeclaration(n,n.parent)||zC.parameterIsThisKeyword(n)||SD(i)||(zC.isBindingElement(a)&&zC.isArrayBindingPattern(a.parent)?kD(c,a.parent,a,$C):o(n,1,zC.createDiagnosticForNode(i,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,zC.symbolName(e)))):DD(a,zC.symbolName(e),o)))}}),s.forEach(function(e){var t=e[0],r=e[1],e=t.parent;if((t.name?1:0)+(t.namedBindings?268===t.namedBindings.kind?1:t.namedBindings.elements.length:0)===r.length)o(e,0,1===r.length?zC.createDiagnosticForNode(e,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,zC.idText(zC.first(r).name)):zC.createDiagnosticForNode(e,zC.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var n=0,i=r;n<i.length;n++){var a=i[n];DD(a,zC.idText(a.name),o)}}),c.forEach(function(e){var t=e[0],e=e[1],r=ED(t.parent)?1:0;if(t.elements.length===e.length)1===e.length&&254===t.parent.kind&&255===t.parent.parent.kind?kD(l,t.parent.parent,t.parent,$C):o(t,r,1===e.length?zC.createDiagnosticForNode(t,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,AD(zC.first(e).name)):zC.createDiagnosticForNode(t,zC.Diagnostics.All_destructured_elements_are_unused));else for(var n=0,i=e;n<i.length;n++){var a=i[n];o(a,r,zC.createDiagnosticForNode(a,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,AD(a.name)))}}),l.forEach(function(e){var t=e[0],e=e[1];if(t.declarations.length===e.length)o(t,0,1===e.length?zC.createDiagnosticForNode(zC.first(e).name,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,AD(zC.first(e).name)):zC.createDiagnosticForNode(237===t.parent.kind?t.parent:t,zC.Diagnostics.All_variables_are_unused));else for(var r=0,n=e;r<n.length;r++){var i=n[r];o(i,0,zC.createDiagnosticForNode(i,zC.Diagnostics._0_is_declared_but_its_value_is_never_read,AD(i.name)))}})}function AD(e){switch(e.kind){case 79:return zC.idText(e);case 202:case 201:return AD(zC.cast(zC.first(e.elements),zC.isBindingElement).name);default:return zC.Debug.assertNever(e)}}function FD(e){return 267===e.kind||270===e.kind||268===e.kind}function PD(e){var t;235===e.kind&&RC(e),zC.isFunctionOrModuleBlock(e)?(t=_n,zC.forEach(e.statements,oT),_n=t):zC.forEach(e.statements,oT),e.locals&&bD(e)}function wD(e,t,r){if((null==t?void 0:t.escapedText)===r&&167!==e.kind&&166!==e.kind&&169!==e.kind&&168!==e.kind&&172!==e.kind&&173!==e.kind&&296!==e.kind&&!(16777216&e.flags||(zC.isImportClause(e)||zC.isImportEqualsDeclaration(e)||zC.isImportSpecifier(e))&&zC.isTypeOnlyImportOrExportDeclaration(e))){e=zC.getRootDeclaration(e);return zC.isParameter(e)&&zC.nodeIsMissing(e.parent.body)?void 0:1}}function ID(t){zC.findAncestor(t,function(e){return!!(4&HT(e))&&(79!==t.kind?ei(zC.getNameOfDeclaration(t),zC.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ei(t,zC.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function OD(t){zC.findAncestor(t,function(e){return!!(8&HT(e))&&(79!==t.kind?ei(zC.getNameOfDeclaration(t),zC.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ei(t,zC.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function MD(e){67108864&HT(zC.getEnclosingBlockScopeContainer(e))&&(zC.Debug.assert(zC.isNamedDeclaration(e)&&zC.isIdentifier(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Zn("noEmit",e,zC.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function LD(e){var t,r=!1;if(zC.isClassExpression(e)){for(var n=0,i=e.members;n<i.length;n++)if(134217728&HT(i[n])){r=!0;break}}else zC.isFunctionExpression(e)?134217728&HT(e)&&(r=!0):(t=zC.getEnclosingBlockScopeContainer(e))&&134217728&HT(t)&&(r=!0);r&&(zC.Debug.assert(zC.isNamedDeclaration(e)&&zC.isIdentifier(e.name),"The target of a Reflect collision check should be an identifier"),Zn("noEmit",e,zC.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,zC.declarationNameToString(e.name),"Reflect"))}function RD(e,t){var r,n;t&&(r=e,n=t,m>=zC.ModuleKind.ES2015&&!(m>=zC.ModuleKind.Node16&&zC.getSourceFileOfNode(r).impliedNodeFormat===zC.ModuleKind.CommonJS)||n&&(wD(r,n,"require")||wD(r,n,"exports"))&&(zC.isModuleDeclaration(r)&&1!==zC.getModuleInstanceState(r)||305===(r=vo(r)).kind&&zC.isExternalOrCommonJsModule(r)&&Zn("noEmit",n,zC.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,zC.declarationNameToString(n),zC.declarationNameToString(n))),r=e,!(n=t)||4<=B||!wD(r,n,"Promise")||zC.isModuleDeclaration(r)&&1!==zC.getModuleInstanceState(r)||305===(r=vo(r)).kind&&zC.isExternalOrCommonJsModule(r)&&2048&r.flags&&Zn("noEmit",n,zC.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,zC.declarationNameToString(n),zC.declarationNameToString(n)),r=e,n=t,B<=8&&(wD(r,n,"WeakMap")||wD(r,n,"WeakSet"))&&On.push(r),n=e,(r=t)&&2<=B&&B<=8&&wD(n,r,"Reflect")&&Mn.push(n),zC.isClassLike(e)?(NS(t,zC.Diagnostics.Class_name_cannot_be_0),16777216&e.flags||(n=t,1<=B&&"Object"===n.escapedText&&(m<zC.ModuleKind.ES2015||zC.getSourceFileOfNode(n).impliedNodeFormat===zC.ModuleKind.CommonJS)&&ei(n,zC.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,zC.ModuleKind[m]))):zC.isEnumDeclaration(e)&&NS(t,zC.Diagnostics.Enum_name_cannot_be_0))}function BD(e){return e===Ye?Xe:e===lr?cr:e}function jD(t){var e,r,n,i,a,o,s,c;yD(t),zC.isBindingElement(t)||oT(t.type),t.name&&(162===t.name.kind&&(Yy(t.name),t.initializer&&mx(t.initializer)),zC.isBindingElement(t)&&(zC.isObjectBindingPattern(t.parent)&&t.dotDotDotToken&&B<5&&uC(t,4),t.propertyName&&162===t.propertyName.kind&&Yy(t.propertyName),r=So(e=t.parent.parent,t.dotDotDotToken?64:0),n=t.propertyName||t.name,r&&!zC.isBindingPattern(n)&&(!Hs(n=E_(n))||(i=_l(r,Zs(n)))&&(iv(i,void 0,!1),kh(t,!!e.initializer&&106===e.initializer.kind,!1,r,i)))),zC.isBindingPattern(t.name)&&(202===t.name.kind&&B<2&&$.downlevelIteration&&uC(t,512),zC.forEach(t.name.elements,oT)),t.initializer&&zC.isParameterDeclaration(t)&&zC.nodeIsMissing(zC.getContainingFunction(t).body)?ei(t,zC.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation):zC.isBindingPattern(t.name)?(i=t.initializer&&243!==t.parent.parent.kind,s=0===t.name.elements.length,(i||s)&&(a=Go(t),i&&(o=mx(t.initializer),ee&&s?Lh(o,t):Sp(o,Go(t),t,t.initializer)),s&&(zC.isArrayBindingPattern(t.name)?YD(65,a,at,t):ee&&Lh(a,t)))):2097152&(o=ba(t)).flags&&zC.isVariableDeclarationInitializedToBareOrAccessedRequire(t)?HS(t):(s=BD(_s(o)),t===o.valueDeclaration?((c=zC.getEffectiveInitializer(t))&&(zC.isInJSFile(t)&&zC.isObjectLiteralExpression(c)&&(0===c.properties.length||zC.isPrototypeAccess(t.name))&&!(null===(a=o.exports)||void 0===a||!a.size)||243===t.parent.parent.kind||Sp(mx(c),s,t,c,void 0)),o.declarations&&1<o.declarations.length&&zC.some(o.declarations,function(e){return e!==t&&zC.isVariableLike(e)&&!zD(e,t)})&&ei(t.name,zC.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,zC.declarationNameToString(t.name))):(c=BD(Go(t)),Do(s)||Do(c)||pp(s,c)||67108864&o.flags||JD(o.valueDeclaration,s,t,c),t.initializer&&Sp(mx(t.initializer),c,t,t.initializer,void 0),o.valueDeclaration&&!zD(t,o.valueDeclaration)&&ei(t.name,zC.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,zC.declarationNameToString(t.name))),167!==t.kind&&166!==t.kind&&(rD(t),254!==t.kind&&203!==t.kind||function(e){if(0==(3&zC.getCombinedNodeFlags(e))&&!zC.isParameterDeclaration(e)&&(254!==e.kind||e.initializer)){var t=ba(e);if(1&t.flags){if(!zC.isIdentifier(e.name))return zC.Debug.fail();var r=Di(e,e.name.escapedText,3,void 0,void 0,!1);r&&r!==t&&2&r.flags&&3&Th(r)&&((t=237===(t=zC.getAncestor(r.valueDeclaration,255)).parent.kind&&t.parent.parent?t.parent.parent:void 0)&&(235===t.kind&&zC.isFunctionLike(t.parent)||262===t.kind||261===t.kind||305===t.kind)||(r=$a(r),ei(e,zC.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,r,r)))}}}(t),RD(t,t.name))))}function JD(e,t,r,n){var i=zC.getNameOfDeclaration(r),a=167===r.kind||166===r.kind?zC.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:zC.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,r=zC.declarationNameToString(i),n=ei(i,a,r,to(t),to(n));e&&zC.addRelatedInfo(n,zC.createDiagnosticForNode(e,zC.Diagnostics._0_was_also_declared_here,r))}function zD(e,t){if(164===e.kind&&254===t.kind||254===e.kind&&164===t.kind)return 1;if(zC.hasQuestionToken(e)===zC.hasQuestionToken(t))return zC.getSelectedEffectiveModifierFlags(e,504)===zC.getSelectedEffectiveModifierFlags(t,504)}function KD(e){null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.push("check","checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){if(243!==e.parent.parent.kind&&244!==e.parent.parent.kind)if(16777216&e.flags)FC(e);else if(!e.initializer){if(zC.isBindingPattern(e.name)&&!zC.isBindingPattern(e.parent))return LC(e,zC.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(zC.isVarConst(e))return LC(e,zC.Diagnostics.const_declarations_must_be_initialized)}if(e.exclamationToken&&(237!==e.parent.parent.kind||!e.type||e.initializer||16777216&e.flags)){var t=e.initializer?zC.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?zC.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:zC.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return LC(e.exclamationToken,t)}!(m<zC.ModuleKind.ES2015||zC.getSourceFileOfNode(e).impliedNodeFormat===zC.ModuleKind.CommonJS)||m===zC.ModuleKind.System||16777216&e.parent.parent.flags||!zC.hasSyntacticModifier(e.parent.parent,1)||!function e(t){if(79===t.kind){if("__esModule"===zC.idText(t))return MC("noEmit",t,zC.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(!zC.isOmittedExpression(i))return e(i.name)}return!1}(e.name),(zC.isLet(e)||zC.isVarConst(e))&&function e(t){if(79===t.kind){if(119===t.originalKeywordKind)return LC(t,zC.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];zC.isOmittedExpression(i)||e(i.name)}return!1}(e.name)}(e),jD(e),null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.pop()}function UD(e){return function(e){if(e.dotDotDotToken){var t=e.parent.elements;if(e!==zC.last(t))return LC(e,zC.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(fC(t,zC.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return LC(e.name,zC.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)OC(e,e.initializer.pos-1,1,zC.Diagnostics.A_rest_element_cannot_have_an_initializer)}(e),jD(e)}function VD(e){_C(e)||PC(e.declarationList)||function(e){if(!function e(t){switch(t.kind){case 239:case 240:case 241:case 248:case 242:case 243:case 244:return!1;case 250:return e(t.parent)}return!0}(e.parent))zC.isLet(e.declarationList)?LC(e,zC.Diagnostics.let_declarations_can_only_be_declared_inside_a_block):zC.isVarConst(e.declarationList)&&LC(e,zC.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}(e),zC.forEach(e.declarationList.declarations,oT)}function qD(e,t){if(ee)for(r(e,t);zC.isBinaryExpression(e)&&56===e.operatorToken.kind;)r(e=e.left,t);function r(e,t){var r,n,i,a,o,s,c,l=!zC.isBinaryExpression(e)||56!==e.operatorToken.kind&&55!==e.operatorToken.kind?e:e.right;zC.isModuleExportsAccessExpression(l)||(r=HD(l),i=zC.isPropertyAccessExpression(l)&&yx(l.expression),zf(r)||i||(a=pl(r,0),n=!!nD(r),0===a.length&&!n||((a=(i=zC.isIdentifier(l)?l:zC.isPropertyAccessExpression(l)?l.name:zC.isBinaryExpression(l)&&zC.isIdentifier(l.right)?l.right:void 0)&&ST(i))||n)&&(a&&zC.isBinaryExpression(e.parent)&&function(e,n){for(;zC.isBinaryExpression(e)&&55===e.operatorToken.kind;){if(zC.forEachChild(e.right,function e(t){if(zC.isIdentifier(t)){var r=ST(t);if(r&&r===n)return!0}return zC.forEachChild(t,e)}))return!0;e=e.parent}return!1}(e.parent,a)||a&&t&&(o=e,t=t,s=i,c=a,!!zC.forEachChild(t,function e(t){if(zC.isIdentifier(t)){var r=ST(t);if(r&&r===c){if(zC.isIdentifier(o)||zC.isIdentifier(s)&&zC.isBinaryExpression(s.parent))return!0;for(var n=s.parent,i=t.parent;n&&i;){if(zC.isIdentifier(n)&&zC.isIdentifier(i)||108===n.kind&&108===i.kind)return ST(n)===ST(i);if(zC.isPropertyAccessExpression(n)&&zC.isPropertyAccessExpression(i)){if(ST(n.name)!==ST(i.name))return!1;i=i.expression,n=n.expression}else{if(!zC.isCallExpression(n)||!zC.isCallExpression(i))return!1;i=i.expression,n=n.expression}}}}return zC.forEachChild(t,e)}))||(n?ni(l,!0,zC.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,no(r)):ei(l,zC.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)))))}}function WD(e,t){return 16384&e.flags&&ei(t,zC.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function HD(e,t){return WD(Ix(e,t),e)}function GD(e){CC(e);var t,r,n,i=Ph(Ix(e.expression));255===e.initializer.kind?((n=e.initializer.declarations[0])&&zC.isBindingPattern(n.name)&&ei(n.name,zC.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),QD(e)):(r=Ix(t=e.initializer),204===t.kind||205===t.kind?ei(t,zC.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):hp(131072&(n=w_(P_(n=i))).flags?_t:n,r)?Zb(t,zC.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,zC.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):ei(t,zC.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)),i!==xt&&ix(i,126091264)||ei(e.expression,zC.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,to(i)),oT(e.statement),e.locals&&bD(e)}function QD(e){e=e.initializer;1<=e.declarations.length&&KD(e.declarations[0])}function XD(e){return YD(e.awaitModifier?15:13,Ah(e.expression),at,e.expression)}function YD(e,t,r,n){return xo(t)?t:ZD(e,t,r,n,!0)||Xe}function ZD(r,n,e,t,i){var a=0!=(2&r);if(n!==xt){var o=2<=B,s=!o&&$.downlevelIteration,c=$.noUncheckedIndexedAccess&&!!(128&r);if(o||s||a){var l=nS(n,r,o?t:void 0);if(i&&(!l||(u=8&r?zC.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&r?zC.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&r?zC.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&r?zC.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)&&Dp(e,l.nextType,t,u)),l||o)return c?gm(l&&l.yieldType):l&&l.yieldType}var i=n,e=!1,u=!1;if(4&r)if(1048576&i.flags?(o=n.types,(l=zC.filter(o,function(e){return!(402653316&e.flags)}))!==o&&(i=f_(l,2))):402653316&i.flags&&(i=xt),u=i!==n,u&&(B<1&&t&&(ei(t,zC.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),e=!0),131072&i.flags))return c?gm(_t):_t;if(!vf(i))return t&&!e&&(s=(e=function(e,t){if(t)return e?[zC.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]:[zC.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if($D(r,0,n,void 0))return[zC.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(t=n.symbol)||void 0===t?void 0:t.escapedName))return[zC.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return e?[zC.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[zC.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&r)&&!u,s))[0],ni(t,e[1]&&!!nD(i),s,to(i))),u?c?gm(_t):_t:void 0;i=bl(i,dt);return u&&i?402653316&i.flags&&!$.noUncheckedIndexedAccess?_t:f_(c?[i,_t,at]:[i,_t],2):128&r?gm(i):i}uS(t,n,a)}function $D(e,t,r,n){if(!xo(r)){n=nS(r,e,n);return n&&n[ik(t)]}}function eS(e,t,r){if(void 0===e&&(e=xt),void 0===t&&(t=xt),void 0===r&&(r=nt),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=su([e,t,r]),i=Yr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Yr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function tS(e){for(var t,r,n,i=0,a=e;i<a.length;i++){var o=a[i];if(void 0!==o&&o!==Zr){if(o===$r)return $r;t=zC.append(t,o.yieldType),r=zC.append(r,o.returnType),n=zC.append(n,o.nextType)}}return t||r||n?eS(t&&f_(t),r&&f_(r),n&&x_(n)):Zr}function rS(e,t,r){return e[t]=r}function nS(e,t,r){if(xo(e))return $r;if(!(1048576&e.flags)){var n=aS(e,t,r);return n===Zr?void(r&&uS(r,e,!!(2&t))):n}var i,a=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",n=e[a];if(n)return n===Zr?void 0:n;for(var o=0,s=e.types;o<s.length;o++){var c=aS(s[o],t,r);if(c===Zr)return r&&uS(r,e,!!(2&t)),void rS(e,a,Zr);i=zC.append(i,c)}n=i?tS(i):Zr;return rS(e,a,n),n===Zr?void 0:n}function iS(e,t){if(e===Zr)return Zr;if(e===$r)return $r;var r=e.yieldType,n=e.returnType,e=e.nextType;return t&&Wu(!0),eS(lD(r,t)||Xe,lD(n,t)||Xe,e)}function aS(e,t,r){if(xo(e))return $r;var n;if(2&t&&(n=oS(e,rn)||cS(e,rn)))return 8&t?iS(n,r):n;if(1&t&&(n=oS(e,nn)||cS(e,nn))){if(!(2&t))return n;if(n!==Zr)return rS(e,"iterationTypesOfAsyncIterable",iS(n,r))}if(2&t&&(n=lS(e,rn,r))!==Zr)return n;if(1&t&&(n=lS(e,nn,r))!==Zr)return 2&t?rS(e,"iterationTypesOfAsyncIterable",n?iS(n,r):Zr):n;return Zr}function oS(e,t){return e[t.iterableCacheKey]}function sS(e,t){t=oS(e,t)||lS(e,t,void 0);return t===Zr?tn:t}function cS(e,t){var r;if(ps(e,r=t.getGlobalIterableType(!1))||ps(e,r=t.getGlobalIterableIteratorType(!1))){var n=pu(e)[0],i=sS(r,t),a=i.returnType,o=i.nextType;return rS(e,t.iterableCacheKey,eS(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}if(ps(e,t.getGlobalGeneratorType(!1))){i=pu(e),n=i[0],a=i[1],o=i[2];return rS(e,t.iterableCacheKey,eS(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}}function lS(e,t,r){var n,i=_l(e,(i=t.iteratorSymbolName,(n=(n=ju(!1))&&bo(_s(n),zC.escapeLeadingUnderscores(i)))&&Hs(n)?Zs(n):"__@".concat(i))),i=!i||16777216&i.flags?void 0:_s(i);if(xo(i))return rS(e,t.iterableCacheKey,$r);var i=i?pl(i,0):void 0;if(!zC.some(i))return rS(e,t.iterableCacheKey,Zr);r=null!==(r=_S(x_(zC.map(i,zl)),t,r))&&void 0!==r?r:Zr;return rS(e,t.iterableCacheKey,r)}function uS(e,t,r){r=r?zC.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:zC.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;ni(e,!!nD(t),r,to(t))}function _S(e,t,r){if(xo(e))return $r;r=dS(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(ps(e,r)){var n=pu(e)[0],i=dS(r,t)||hS(r,t,void 0),a=i===Zr?tn:i,o=a.returnType,i=a.nextType;return rS(e,t.iteratorCacheKey,eS(n,o,i))}if(ps(e,t.getGlobalIteratorType(!1))||ps(e,t.getGlobalGeneratorType(!1))){a=pu(e),n=a[0],o=a[1],i=a[2];return rS(e,t.iteratorCacheKey,eS(n,o,i))}}(e,t)||hS(e,t,r);return r===Zr?void 0:r}function dS(e,t){return e[t.iteratorCacheKey]}function pS(e,t){e=bo(e,"done")||ft;return hp(0===t?ft:mt,e)}function fS(e){return pS(e,0)}function gS(e){return pS(e,1)}function mS(e){if(xo(e))return $r;var t=e.iterationTypesOfIteratorResult;if(t)return t;if(ps(e,(Tr=Tr||Mu("IteratorYieldResult",1,!1))||Jt))return rS(e,"iterationTypesOfIteratorResult",eS(pu(e)[0],void 0,void 0));if(ps(e,(Cr=Cr||Mu("IteratorReturnResult",1,!1))||Jt))return rS(e,"iterationTypesOfIteratorResult",eS(void 0,pu(e)[0],void 0));var r=Am(e,fS),t=r!==xt?bo(r,"value"):void 0,r=Am(e,gS),r=r!==xt?bo(r,"value"):void 0;return rS(e,"iterationTypesOfIteratorResult",t||r?eS(t,r||bt,void 0):Zr)}function yS(e,t,r,n){var i=_l(e,r);if(i||"next"===r){var a=!i||"next"===r&&16777216&i.flags?void 0:"next"===r?_s(i):_m(_s(i),2097152);if(xo(a))return"next"===r?$r:en;var o,s,c=a?pl(a,0):zC.emptyArray;if(0===c.length)return n&&ei(n,"next"===r?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic,r),"next"===r?$r:void 0;if(null!=a&&a.symbol&&1===c.length){var l=t.getGlobalGeneratorType(!1),e=t.getGlobalIteratorType(!1),i=(null===(i=null===(i=l.symbol)||void 0===i?void 0:i.members)||void 0===i?void 0:i.get(r))===a.symbol,u=!i&&(null===(u=null===(u=e.symbol)||void 0===u?void 0:u.members)||void 0===u?void 0:u.get(r))===a.symbol;if(i||u){e=i?l:e,a=a.mapper;return eS(Jd(e.typeParameters[0],a),Jd(e.typeParameters[1],a),"next"===r?Jd(e.typeParameters[2],a):void 0)}}for(var _,d,p,f=0,g=c;f<g.length;f++){var m=g[f];"throw"!==r&&zC.some(m.parameters)&&(o=zC.append(o,Tb(m,0))),s=zC.append(s,zl(m))}"throw"!==r&&(c=o?f_(o):nt,"next"===r?_=c:"return"===r&&(y=t.resolveIterationType(c,n)||Xe,d=zC.append(d,y)));var y=s?x_(s):xt,y=mS(t.resolveIterationType(y,n)||Xe);return d=y===Zr?(n&&ei(n,t.mustHaveAValueDiagnostic,r),p=Xe,zC.append(d,Xe)):(p=y.yieldType,zC.append(d,y.returnType)),eS(p,f_(d),_)}}function hS(e,t,r){r=tS([yS(e,t,"next",r),yS(e,t,"return",r),yS(e,t,"throw",r)]);return rS(e,t.iteratorCacheKey,r)}function vS(e,t,r){if(!xo(t)){r=bS(t,r);return r&&r[ik(e)]}}function bS(e,t){if(xo(e))return $r;var r=t?rn:nn;return nS(e,t?2:1,void 0)||_S(e,r,void 0)}function xS(e){RC(e)||function(e){for(var t=e;t;){if(zC.isFunctionLikeOrClassStaticBlockDeclaration(t))return LC(e,zC.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 250:if(e.label&&t.label.escapedText===e.label.escapedText)return 245!==e.kind||zC.isIterationStatement(t.statement,!0)||LC(e,zC.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 249:if(246===e.kind&&!e.label)return;break;default:if(zC.isIterationStatement(t,!1)&&!e.label)return}t=t.parent}if(e.label){var r=246===e.kind?zC.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:zC.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return LC(e,r)}r=246===e.kind?zC.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:zC.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement,LC(e,r)}(e)}function DS(e,t){var r=!!(2&t);return!!(1&t)?vS(1,e,r)||$e:r?uD(e)||$e:e}function SS(e,t){e=DS(t,zC.getFunctionFlags(e));return e&&nx(e,16387)}function TS(e){var t;RC(e);var r=!1,i=Ix(e.expression),a=Nf(i);zC.forEach(e.caseBlock.clauses,function(e){var n;290!==e.kind||r||(void 0===t?t=e:(LC(e,zC.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0)),289===e.kind&&C((n=e,function(){var e=Ix(n.expression),t=Nf(e),r=i;t&&a||(e=t?Af(e):e,r=Af(i)),_x(r,e)||Fp(e,r,n.expression,void 0)})),zC.forEach(e.statements,oT),$.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&Gm(e.fallthroughFlowNode)&&ei(e,zC.Diagnostics.Fallthrough_case_in_switch)}),e.caseBlock.locals&&bD(e.caseBlock)}function CS(e){var t,r,n,i,a,o;RC(e)||zC.isIdentifier(e.expression)&&!e.expression.escapedText&&(t=e,r=zC.Diagnostics.Line_break_not_permitted_here,wC(o=zC.getSourceFileOfNode(t))||(t=zC.getSpanOfTokenAtPosition(o,t.pos),Rn.add(zC.createFileDiagnostic(o,zC.textSpanEnd(t),0,r,n,i,a)))),e.expression&&Ix(e.expression)}function kS(e,t,r){var n=hl(e);if(0!==n.length){for(var i=0,a=Rc(e);i<a.length;i++){var o=a[i];r&&4194304&o.flags||ES(e,o,N_(o,8576,!0),ds(o))}t=t.valueDeclaration;if(t&&zC.isClassLike(t))for(var s=0,c=t.members;s<c.length;s++){var l,u=c[s];zC.isStatic(u)||Ys(u)||ES(e,l=ba(u),Fx(u.name.expression),ds(l))}if(1<n.length)for(var _=0,d=n;_<d.length;_++)!function(r,n){for(var e=n.declaration,t=xl(r,n.keyType),i=2&zC.getObjectFlags(r)?zC.getDeclarationOfKind(r.symbol,258):void 0,a=e&&xa(ba(e))===r.symbol?e:void 0,o=0,s=t;o<s.length;o++)!function(t){var e;t!==n&&(e=t.declaration&&xa(ba(t.declaration))===r.symbol?t.declaration:void 0,(e=a||e||(i&&!zC.some(Es(r),function(e){return!!vl(e,n.keyType)&&!!bl(e,t.keyType)})?i:void 0))&&!hp(n.type,t.type)&&ei(e,zC.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,to(n.keyType),to(n.type),to(t.keyType),to(t.type)))}(s[o])}(e,d[_])}}function ES(r,n,e,i){var t=n.valueDeclaration,a=zC.getNameOfDeclaration(t);if(!a||!zC.isPrivateIdentifier(a))for(var e=xl(r,e),o=2&zC.getObjectFlags(r)?zC.getDeclarationOfKind(r.symbol,258):void 0,s=t&&221===t.kind||a&&162===a.kind||xa(n)===r.symbol?t:void 0,c=0,l=e;c<l.length;c++)!function(t){var e=t.declaration&&xa(ba(t.declaration))===r.symbol?t.declaration:void 0;(e=s||e||(o&&!zC.some(Es(r),function(e){return!!Bc(e,n.escapedName)&&!!bl(e,t.keyType)})?o:void 0))&&!hp(i,t.type)&&ei(e,zC.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,$a(n),to(i),to(t.keyType),to(t.type))}(l[c])}function NS(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":ei(e,t,e.escapedText)}}function AS(o){var s=!1;if(o)for(var e=0;e<o.length;e++){var t=o[e];Ox(t),C(function(r,n){return function(){var e,i,a;r.default?(s=!0,e=r.default,i=o,a=n,function e(t){if(178===t.kind){var r=Eu(t);if(262144&r.flags)for(var n=a;n<i.length;n++)r.symbol===ba(i[n])&&ei(t,zC.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}zC.forEachChild(t,e)}(e)):s&&ei(r,zC.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var t=0;t<n;t++)o[t].symbol===r.symbol&&ei(r.name,zC.Diagnostics.Duplicate_identifier_0,zC.declarationNameToString(r.name))}}(t,e))}}function FS(e){if(!e.declarations||1!==e.declarations.length){var t=mi(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;t=(t=e,zC.filter(t.declarations,function(e){return 257===e.kind||258===e.kind}));if(t&&!(t.length<=1))if(!PS(t,Rs(e).localTypeParameters,zC.getEffectiveTypeParameterDeclarations))for(var r=$a(e),n=0,i=t;n<i.length;n++)ei(i[n].name,zC.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,r)}}}function PS(e,t,r){for(var n=zC.length(t),i=Pl(t),a=0,o=e;a<o.length;a++){var s=r(o[a]),c=s.length;if(c<i||n<c)return;for(var l=0;l<c;l++){var u=s[l],_=t[l];if(u.name.escapedText!==_.symbol.escapedName)return;var d=zC.getEffectiveConstraintOfTypeParameter(u),p=d&&Id(d),d=Kc(_);if(p&&d&&!pp(p,d))return;u=u.default&&Id(u.default),_=Zc(_);if(u&&_&&!pp(u,_))return}}return 1}function wS(l){var e,t;e=l,t=zC.getSourceFileOfNode(e),function(e){var t=!1,r=!1;if(!_C(e)&&e.heritageClauses)for(var n=0,i=e.heritageClauses;n<i.length;n++){var a=i[n];if(94===a.token){if(t)return IC(a,zC.Diagnostics.extends_clause_already_seen);if(r)return IC(a,zC.Diagnostics.extends_clause_must_precede_implements_clause);if(1<a.types.length)return IC(a.types[1],zC.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(zC.Debug.assert(117===a.token),r)return IC(a,zC.Diagnostics.implements_clause_already_seen);r=!0}vC(a)}}(e)||gC(e.typeParameters,t),yD(l),RD(l,l.name),AS(zC.getEffectiveTypeParameterDeclarations(l)),rD(l);var r=ba(l),u=Rs(r),_=nc(u),d=_s(r);FS(r),tD(r),function(e){for(var t=new zC.Map,r=new zC.Map,n=new zC.Map,i=0,a=e.members;i<a.length;i++){var o=a[i];if(171===o.kind)for(var s=0,c=o.parameters;s<c.length;s++){var l=c[s];zC.isParameterPropertyDeclaration(l,o)&&!zC.isBindingPattern(l.name)&&m(t,l.name,l.name.escapedText,3)}else{var u=zC.isStatic(o),_=o.name;if(_){var d=zC.isPrivateIdentifier(_),p=d&&u?16:0,f=d?n:u?r:t,g=_&&zC.getPropertyNameForPropertyNameNode(_);if(g)switch(o.kind){case 172:m(f,_,g,1|p);break;case 173:m(f,_,g,2|p);break;case 167:m(f,_,g,3|p);break;case 169:m(f,_,g,8|p)}}}}function m(e,t,r,n){var i,a,o=e.get(r);o?(16&o)!=(16&n)?ei(t,zC.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,zC.getTextOfNode(t)):(a=!!(8&n),(i=!!(8&o))||a?i!=a&&ei(t,zC.Diagnostics.Duplicate_identifier_0,zC.getTextOfNode(t)):o&n&-17?ei(t,zC.Diagnostics.Duplicate_identifier_0,zC.getTextOfNode(t)):e.set(r,o|n)):e.set(r,n)}}(l),16777216&l.flags||function(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t],i=n.name;if(zC.isStatic(n)&&i){var a=zC.getPropertyNameForPropertyNameNode(i);switch(a){case"name":case"length":case"caller":case"arguments":case"prototype":ei(i,zC.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,a,po(ba(e)))}}}}(l);var p,f=zC.getEffectiveBaseTypeNode(l);f&&(zC.forEach(f.typeArguments,oT),B<2&&uC(f.parent,1),(n=zC.getClassExtendsHeritageElement(l))&&n!==f&&Ix(n.expression),(p=Es(u)).length&&C(function(){var e,t,r=p[0],n=Cs(u),i=tl(n);if(e=f,!(t=pl(c=i,1)).length||(t=t[0].declaration)&&zC.hasEffectiveModifier(t,8)&&(t=zC.getClassLikeDeclarationOfSymbol(c.symbol),vT(e,t)||ei(e,zC.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ta(c.symbol))),oT(f.expression),zC.some(f.typeArguments)){zC.forEach(f.typeArguments,oT);for(var a=0,o=Ss(i,f.typeArguments,f);a<o.length;a++){var s=o[a];if(!Wx(f,s.typeParameters))break}}var c=nc(r,u.thisType);Dp(_,c,void 0)?Dp(d,dp(i),l.name||l,zC.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):MS(l,_,c,zC.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&n.flags&&(bs(d)?pl(n,1).some(function(e){return 4&e.flags})&&!zC.hasSyntacticModifier(l,128)&&ei(l.name||l,zC.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):ei(l.name||l,zC.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),i.symbol&&32&i.symbol.flags||8650752&n.flags||(i=Ts(i,f.typeArguments,f),zC.forEach(i,function(e){return!tb(e.declaration)&&!pp(zl(e),r)})&&ei(f.expression,zC.Diagnostics.Base_constructors_must_all_have_the_same_return_type)),function(e,t){var r=Jc(t);e:for(var n=0,i=r;n<i.length;n++){var a=i[n],o=LS(a);if(!(4194304&o.flags)){var s=Bc(e,o.escapedName);if(s){var c=LS(s),l=zC.getDeclarationModifierFlagsFromSymbol(o);if(zC.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c===o){var u=zC.getClassLikeDeclarationOfSymbol(e.symbol);if(128&l&&(!u||!zC.hasSyntacticModifier(u,128))){for(var _=0,d=Es(e);_<d.length;_++){var p=d[_];if(p!==t){p=Bc(p,o.escapedName),p=p&&LS(p);if(p&&p!==o)continue e}}226===u.kind?ei(u,zC.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,$a(a),to(t)):ei(u,zC.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,to(e),$a(a),to(t))}}else{var f=zC.getDeclarationModifierFlagsFromSymbol(c);if(!(8&l||8&f)){var g,m,y=void 0,s=98308&o.flags,u=98308&c.flags;if(s&&u)128&l&&!(o.valueDeclaration&&zC.isPropertyDeclaration(o.valueDeclaration)&&o.valueDeclaration.initializer)||o.valueDeclaration&&258===o.valueDeclaration.parent.kind||c.valueDeclaration&&zC.isBinaryExpression(c.valueDeclaration)||(a=4==s&&4!=u,(u=4!=s&&4==u)||a?(g=u?zC.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:zC.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor,ei(zC.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,g,$a(o),to(t),to(e))):E&&(!(g=null===(g=c.declarations)||void 0===g?void 0:g.find(function(e){return 167===e.kind&&!e.initializer}))||33554432&c.flags||128&l||128&f||null!==(m=c.declarations)&&void 0!==m&&m.some(function(e){return!!(16777216&e.flags)})||(f=Na(zC.getClassLikeDeclarationOfSymbol(e.symbol)),m=g.name,!g.exclamationToken&&f&&zC.isIdentifier(m)&&ee&&jS(m,e,f)||(f=zC.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,ei(zC.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,f,$a(o),to(t))))));else{if(Ch(o)){if(Ch(c)||4&c.flags)continue;zC.Debug.assert(!!(98304&c.flags)),y=zC.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else y=98304&o.flags?zC.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:zC.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;ei(zC.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,y,to(t),$a(o),to(e))}}}}}}}(u,r)})),function(r,n,i,a){for(var e=zC.getEffectiveBaseTypeNode(r)&&Es(n),o=null!=e&&e.length?nc(zC.first(e),n.thisType):void 0,s=Cs(n),t=0,c=r.members;t<c.length;t++)!function(t){zC.hasAmbientModifier(t)||(zC.isConstructorDeclaration(t)&&zC.forEach(t.parameters,function(e){zC.isParameterPropertyDeclaration(e,t)&&IS(r,a,s,o,n,i,e,!0)}),IS(r,a,s,o,n,i,t,!1))}(c[t])}(l,u,_,d);var n=zC.getEffectiveImplementsTypeNodes(l);if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];zC.isEntityNameExpression(o.expression)&&!zC.isOptionalChain(o.expression)||ei(o.expression,zC.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Gx(o),C(function(r){return function(){var e,t=ol(Id(r));Do(t)||(Ns(t)?(e=t.symbol&&32&t.symbol.flags?zC.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:zC.Diagnostics.Class_0_incorrectly_implements_interface_1,t=nc(t,u.thisType),Dp(_,t,void 0)||MS(l,_,t,e)):ei(r,zC.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(o))}C(function(){kS(u,r),kS(d,r,!0),jx(l),function(e){if(ee&&h&&!(16777216&e.flags))for(var t=Na(e),r=0,n=e.members;r<n.length;r++){var i,a,o=n[r];2&zC.getEffectiveModifierFlags(o)||!zC.isStatic(o)&&BS(o)&&(i=o.name,(zC.isIdentifier(i)||zC.isPrivateIdentifier(i)||zC.isComputedPropertyName(i))&&(3&(a=_s(ba(o))).flags||32768&zf(a)||t&&jS(i,a,t)||ei(o.name,zC.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,zC.declarationNameToString(i))))}}(l)})}function IS(e,t,r,n,i,a,o,s,c){void 0===c&&(c=!0);var l=o.name&&ST(o.name)||ST(o);return l&&OS(e,t,r,n,i,a,zC.hasOverrideModifier(o),zC.hasAbstractModifier(o),zC.isStatic(o),s,zC.symbolName(l),c?o:void 0)}function OS(e,t,r,n,i,a,o,s,c,l,u,_){var d=zC.isInJSFile(e),p=!!(16777216&e.flags);if(n&&(o||$.noImplicitOverride)){e=zC.escapeLeadingUnderscores(u),r=c?r:n,a=_l(c?t:a,e),e=_l(r,e),n=to(n);if(a&&!e&&o)return _&&((r=Yh(u,r))?ei(_,d?zC.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:zC.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,n,$a(r)):ei(_,d?zC.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:zC.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,n)),2;if(a&&null!=e&&e.declarations&&$.noImplicitOverride&&!p){e=zC.some(e.declarations,zC.hasAbstractModifier);if(o)return 0;if(!e)return _&&ei(_,l?d?zC.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:zC.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?zC.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:zC.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,n),1;if(s&&e)return _&&ei(_,zC.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,n),1}}else if(o)return _&&(i=to(i),ei(_,d?zC.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:zC.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,i)),2;return 0}function MS(e,i,a,t){for(var o=!1,r=function(e){if(zC.isStatic(e))return"continue";var t,r,n=e.name&&ST(e.name)||ST(e);n&&(t=_l(i,n.escapedName),r=_l(a,n.escapedName),t&&r&&(Dp(_s(t),_s(r),e.name||e,void 0,function(){return zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,$a(n),to(i),to(a))})||(o=!0)))},n=0,s=e.members;n<s.length;n++)r(s[n]);o||Dp(i,a,e.name||e,t)}function LS(e){return 1&zC.getCheckFlags(e)?e.target:e}function RS(t,e){var r=Es(t);if(r.length<2)return 1;var n=new zC.Map;zC.forEach(Ws(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,l=Jc(nc(s,t.thisType));c<l.length;c++){var u,_,d=l[c],p=n.get(d.escapedName);p?p.containingType!==t&&0===_f(p.prop,d,fp)&&(i=!1,u=to(p.containingType),_=to(s),p=zC.chainDiagnosticMessages(void 0,zC.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,$a(d),u,_),p=zC.chainDiagnosticMessages(p,zC.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,to(t),u,_),Rn.add(zC.createDiagnosticForNodeFromMessageChain(e,p))):n.set(d.escapedName,{prop:d,containingType:s})}return i}function BS(e){return 167===e.kind&&!zC.hasAbstractModifier(e)&&!e.exclamationToken&&!e.initializer}function jS(e,t,r){e=zC.isComputedPropertyName(e)?zC.factory.createElementAccessExpression(zC.factory.createThis(),e.expression):zC.factory.createPropertyAccessExpression(zC.factory.createThis(),e);return zC.setParent(e.expression,e),zC.setParent(e,r),e.flowNode=r.returnFlowNode,!(32768&zf(Xm(e,t,qf(t))))}function JS(o){_C(o)||function(e){var t=!1;if(e.heritageClauses)for(var r=0,n=e.heritageClauses;r<n.length;r++){var i=n[r];if(94!==i.token)return zC.Debug.assert(117===i.token),IC(i,zC.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return IC(i,zC.Diagnostics.extends_clause_already_seen);t=!0,vC(i)}}(o),AS(o.typeParameters),C(function(){NS(o.name,zC.Diagnostics.Interface_name_cannot_be_0),rD(o);var e=ba(o);FS(e);var t=zC.getDeclarationOfKind(e,258);if(o===t){var r=Rs(e),n=nc(r);if(RS(r,o.name)){for(var i=0,a=Es(r);i<a.length;i++)Dp(n,nc(a[i],r.thisType),o.name,zC.Diagnostics.Interface_0_incorrectly_extends_interface_1);kS(r,e)}}Bx(o)}),zC.forEach(zC.getInterfaceBaseTypeNodes(o),function(e){zC.isEntityNameExpression(e.expression)&&!zC.isOptionalChain(e.expression)||ei(e.expression,zC.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Gx(e)}),zC.forEach(o.members,oT),C(function(){jx(o),bD(o)})}function zS(e){var t=yi(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;zC.isComputedNonLiteralName(e.name)?ei(e.name,zC.Diagnostics.Computed_property_names_are_not_allowed_in_enums):(r=zC.getTextOfPropertyName(e.name),zC.isNumericLiteralName(r)&&!zC.isInfinityOrNaNString(r)&&ei(e.name,zC.Diagnostics.An_enum_member_cannot_have_a_numeric_name))}if(e.initializer)return function(s){var e=ws(ba(s.parent)),t=zC.isEnumConst(s.parent),r=s.initializer,n=1!==e||Ps(s)?function e(t){switch(t.kind){case 219: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 221: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 BC(t),+t.text;case 212:return e(t.expression);case 79:var a=t;return zC.isInfinityOrNaNString(a.escapedText)?+a.escapedText:zC.nodeIsMissing(t)?0:c(t,ba(s.parent),a.escapedText);case 207:case 206:if(KS(t)){var o=Fx(t.expression);if(o.symbol&&384&o.symbol.flags){var a=void 0;return a=206===t.kind?t.name.escapedText:zC.escapeLeadingUnderscores(zC.cast(t.argumentExpression,zC.isLiteralExpression).text),c(t,o.symbol,a)}}}return}(r):void 0;if(void 0!==n)t&&"number"==typeof n&&!isFinite(n)&&ei(r,isNaN(n)?zC.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:zC.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===e)return ei(r,zC.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;t?ei(r,zC.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):16777216&s.parent.flags?ei(r,zC.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):ix(t=Ix(r),296)?Dp(t,Rs(ba(s.parent)),r,void 0):ei(r,zC.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,to(t))}return n;function c(e,t,r){t=t.exports.get(r);if(t){r=t.valueDeclaration;if(r!==s)return r&&bi(r,s)&&zC.isEnumDeclaration(r.parent)?GT(r):(ei(e,zC.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);ei(e,zC.Diagnostics.Property_0_is_used_before_being_assigned,$a(t))}}}(e);if(16777216&e.parent.flags&&!zC.isEnumConst(e.parent)&&0===ws(ba(e.parent)))return;return void 0===t?void ei(e.name,zC.Diagnostics.Enum_member_must_have_initializer):t}(a,r),r="number"==typeof(yi(a).enumMemberValue=o)?o+1:void 0}}function KS(e){return Fx(e)!==$e&&(79===e.kind||206===e.kind&&KS(e.expression)||207===e.kind&&KS(e.expression)&&zC.isStringLiteralLike(e.argumentExpression))}function US(e){C(function(){return function(e){_C(e),RD(e,e.name),rD(e),e.members.forEach(VS),zS(e);var t=ba(e),r=zC.getDeclarationOfKind(t,e.kind);{var n,i;e===r&&(t.declarations&&1<t.declarations.length&&(n=zC.isEnumConst(e),zC.forEach(t.declarations,function(e){zC.isEnumDeclaration(e)&&zC.isEnumConst(e)!==n&&ei(zC.getNameOfDeclaration(e),zC.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})),i=!1,zC.forEach(t.declarations,function(e){if(260!==e.kind)return!1;if(!e.members.length)return!1;e=e.members[0];e.initializer||(i?ei(e.name,zC.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}(e)})}function VS(e){zC.isPrivateIdentifier(e.name)&&ei(e,zC.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function qS(o){o.body&&(oT(o.body),zC.isGlobalScopeAugmentation(o)||bD(o)),C(function(){var e=zC.isGlobalScopeAugmentation(o),t=16777216&o.flags;e&&!t&&ei(o.name,zC.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var r=zC.isAmbientModule(o),n=r?zC.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:zC.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(eT(o,n))return;_C(o)||t||10!==o.name.kind||LC(o.name,zC.Diagnostics.Only_ambient_modules_can_use_quoted_names);zC.isIdentifier(o.name)&&RD(o,o.name);rD(o);n=ba(o);512&n.flags&&!t&&n.declarations&&1<n.declarations.length&&tk(o,zC.shouldPreserveConstEnums($))&&((t=function(e){if(e=e.declarations)for(var t=0,r=e;t<r.length;t++){var n=r[t];if((257===n.kind||256===n.kind&&zC.nodeIsPresent(n.body))&&!(16777216&n.flags))return n}}(n))&&(zC.getSourceFileOfNode(o)!==zC.getSourceFileOfNode(t)?ei(o.name,zC.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):o.pos<t.pos&&ei(o.name,zC.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)),(n=zC.getDeclarationOfKind(n,257))&&function(e,t){return e=zC.getEnclosingBlockScopeContainer(e),t=zC.getEnclosingBlockScopeContainer(t),hi(e)?hi(t):!hi(t)&&e===t}(o,n)&&(yi(o).flags|=32768));if(r)if(zC.isExternalModuleAugmentation(o)){if((e||33554432&ba(o).flags)&&o.body)for(var i=0,a=o.body.statements;i<a.length;i++)!function e(t,r){switch(t.kind){case 237:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];e(a,r)}break;case 271:case 272:IC(t,zC.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 265:case 266:IC(t,zC.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 203:case 254:var o=t.name;if(zC.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];e(l,r)}break}case 257:case 260:case 256:case 258:case 261:case 259:if(r)return;var u=ba(t);u&&(!(33554432&u.flags)||null!==(o=u.parent)&&void 0!==o&&o.declarations&&zC.isExternalModuleAugmentation(u.parent.declarations[0]))}}(a[i],e)}else hi(o.parent)?e?ei(o.name,zC.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):zC.isExternalModuleNameRelative(zC.getTextOfIdentifierOrLiteral(o.name))&&ei(o.name,zC.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):ei(o.name,e?zC.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:zC.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)})}function WS(e){var t=zC.getExternalModuleName(e);if(t&&!zC.nodeIsMissing(t))if(zC.isStringLiteral(t)){var r=262===e.parent.kind&&zC.isAmbientModule(e.parent.parent);if(305===e.parent.kind||r){if(!r||!zC.isExternalModuleNameRelative(t.text)||lo(e)){if(zC.isImportEqualsDeclaration(e)||!e.assertClause)return 1;for(var n=!1,i=0,a=e.assertClause.elements;i<a.length;i++){var o=a[i];zC.isStringLiteral(o.value)||(n=!0,ei(o.value,zC.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!n}ei(e,zC.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name)}else ei(t,272===e.kind?zC.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:zC.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module)}else ei(t,zC.Diagnostics.String_literal_expected)}function HS(e){var t=ba(e),r=Gi(t);if(r!==We){var n=(1160127&(t=va(t.exportSymbol||t)).flags?111551:0)|(788968&t.flags?788968:0)|(1920&t.flags?1920:0);if(r.flags&n&&ei(e,275===e.kind?zC.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:zC.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,$a(t)),$.isolatedModules&&!zC.isTypeOnlyImportOrExportDeclaration(e)&&!(16777216&e.flags)){var i,a=Yi(t),o=!(111551&r.flags);if(o||a)switch(e.kind){case 267:case 270:case 265:$.preserveValueImports&&(zC.Debug.assertIsDefined(e.name,"An ImportClause with a symbol should have a name"),Ti(ei(e,o?zC.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:zC.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,i=zC.idText(270===e.kind&&e.propertyName||e.name)),o?void 0:a,i)),o&&265===e.kind&&zC.hasEffectiveModifier(e,1)&&ei(e,zC.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break;case 275:if(zC.getSourceFileOfNode(a)!==zC.getSourceFileOfNode(e))return void Ti(ei(e,o?zC.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:zC.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,i=zC.idText(e.propertyName||e.name)),o?void 0:a,i)}}!zC.isImportSpecifier(e)||GS(t=QS(t,e))&&t.declarations&&oi(e,t.declarations,t.escapedName)}}function GS(e){return e.declarations&&zC.every(e.declarations,function(e){return!!(268435456&zC.getCombinedNodeFlags(e))})}function QS(e,t){if(!(2097152&e.flags))return e;var r=Gi(e);if(r===We)return r;for(;2097152&e.flags;){var n=eh(e);if(!n)break;if(n===r)break;if(n.declarations&&zC.length(n.declarations)){if(GS(n)){oi(t,n.declarations,n.escapedName);break}if(e===r)break;e=n}}return r}function XS(e){RD(e,e.name),HS(e),270===e.kind&&"default"===zC.idText(e.propertyName||e.name)&&zC.getESModuleInterop($)&&m!==zC.ModuleKind.System&&(m<zC.ModuleKind.ES2015||zC.getSourceFileOfNode(e).impliedNodeFormat===zC.ModuleKind.CommonJS)&&uC(e,131072)}function YS(e){if(e.assertClause){var t=zC.isExclusivelyTypeOnlyImportOrExport(e),r=zC.getResolutionModeOverrideForClause(e.assertClause,t?LC:void 0);return t&&r?(zC.isNightly()||LC(e.assertClause,zC.Diagnostics.Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Node16&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.NodeNext?LC(e.assertClause,zC.Diagnostics.Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0):(m===zC.ModuleKind.NodeNext&&e.moduleSpecifier&&Li(e.moduleSpecifier))!==zC.ModuleKind.ESNext&&m!==zC.ModuleKind.ESNext?LC(e.assertClause,m===zC.ModuleKind.NodeNext?zC.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:zC.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext):(zC.isImportDeclaration(e)?null!==(t=e.importClause)&&void 0!==t&&t.isTypeOnly:e.isTypeOnly)?LC(e.assertClause,zC.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports):r&&LC(e.assertClause,zC.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)}}function ZS(e){var t;eT(e,zC.isInJSFile(e)?zC.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:zC.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)||(!_C(e)&&zC.hasEffectiveModifiers(e)&&IC(e,zC.Diagnostics.An_import_declaration_cannot_have_modifiers),!WS(e)||(t=e.importClause)&&!function(e){var t;if(e.isTypeOnly&&e.name&&e.namedBindings)return LC(e,zC.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.isTypeOnly&&269===(null===(t=e.namedBindings)||void 0===t?void 0:t.kind))return jC(e.namedBindings);return!1}(t)&&(t.name&&XS(t),t.namedBindings&&(268===t.namedBindings.kind?(XS(t.namedBindings),m!==zC.ModuleKind.System&&(m<zC.ModuleKind.ES2015||zC.getSourceFileOfNode(e).impliedNodeFormat===zC.ModuleKind.CommonJS)&&zC.getESModuleInterop($)&&uC(e,65536)):ia(e,e.moduleSpecifier)&&zC.forEach(t.namedBindings.elements,XS))),YS(e))}function $S(e){var t,r,n;eT(e,zC.isInJSFile(e)?zC.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:zC.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)||(!_C(e)&&zC.hasSyntacticModifiers(e)&&IC(e,zC.Diagnostics.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&zC.isNamedExports(e.exportClause)&&zC.length(e.exportClause.elements)&&0===B&&uC(e,4194304),(r=e).isTypeOnly&&(273===(null===(t=r.exportClause)||void 0===t?void 0:t.kind)?jC(r.exportClause):LC(r,zC.Diagnostics.Only_named_exports_may_use_export_type)),e.moduleSpecifier&&!WS(e)||(e.exportClause&&!zC.isNamespaceExport(e.exportClause)?(zC.forEach(e.exportClause.elements,nT),n=!(r=262===e.parent.kind&&zC.isAmbientModule(e.parent.parent))&&262===e.parent.kind&&!e.moduleSpecifier&&16777216&e.flags,305===e.parent.kind||r||n||ei(e,zC.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)):((n=ia(e,e.moduleSpecifier))&&_a(n)?ei(e.moduleSpecifier,zC.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,$a(n)):e.exportClause&&HS(e.exportClause),m!==zC.ModuleKind.System&&(m<zC.ModuleKind.ES2015||zC.getSourceFileOfNode(e).impliedNodeFormat===zC.ModuleKind.CommonJS)&&(e.exportClause?zC.getESModuleInterop($)&&uC(e,65536):uC(e,32768)))),YS(e))}function eT(e,t){var r=305===e.parent.kind||262===e.parent.kind||261===e.parent.kind;return r||IC(e,t),!r}function tT(e){return zC.isImportDeclaration(e)&&e.importClause&&!e.importClause.isTypeOnly&&(t=e.importClause,zC.forEachImportClauseDeclaration(t,function(e){return!!ba(e).isReferenced}))&&!zT(e.importClause,!0)&&(e=e.importClause,!zC.forEachImportClauseDeclaration(e,function(e){return!!mi(ba(e)).constEnumReferenced}));var t}function rT(e){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];!tT(i)&&(t=i,!zC.isImportEqualsDeclaration(t)||!zC.isExternalModuleReference(t.moduleReference)||t.isTypeOnly||!ba(t).isReferenced||zT(t,!1)||mi(ba(t)).constEnumReferenced)||ei(i,zC.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function nT(e){var t,r;HS(e),zC.getEmitDeclarations($)&&go(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier?zC.getESModuleInterop($)&&m!==zC.ModuleKind.System&&(m<zC.ModuleKind.ES2015||zC.getSourceFileOfNode(e).impliedNodeFormat===zC.ModuleKind.CommonJS)&&"default"===zC.idText(e.propertyName||e.name)&&uC(e,131072):(r=Di(t=e.propertyName||e.name,t.escapedText,2998271,void 0,void 0,!0))&&(r===Se||r===Te||r.declarations&&hi(vo(r.declarations[0])))?ei(t,zC.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,zC.idText(t)):(Zi(e),(!(r=r&&(2097152&r.flags?Gi(r):r))||r===We||111551&r.flags)&&mx(e.propertyName||e.name))}function iT(e){var t,r=ba(e),n=mi(r);n.exportsChecked||((t=r.exports.get("export="))&&(e=r,zC.forEachEntry(e.exports,function(e,t){return"export="!==t}))&&(!(t=Fi(t)||t.valueDeclaration)||lo(t)||zC.isInJSFile(t)||ei(t,zC.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)),(r=ma(r))&&r.forEach(function(e,t){var r=e.declarations,n=e.flags;if("__export"!==t&&!(1920&n)){e=zC.countWhere(r,zC.and(GC,zC.not(zC.isInterfaceDeclaration)));if(!(524288&n&&e<=2)&&1<e&&!aT(r))for(var i=0,a=r;i<a.length;i++){var o=a[i];rk(o)&&Rn.add(zC.createDiagnosticForNode(o,zC.Diagnostics.Cannot_redeclare_exported_variable_0,zC.unescapeLeadingUnderscores(t)))}}}),n.exportsChecked=!0)}function aT(e){return e&&1<e.length&&e.every(function(e){return zC.isInJSFile(e)&&zC.isAccessExpression(e)&&(zC.isExportsIdentifier(e.expression)||zC.isModuleExportsAccessExpression(e.expression))})}function oT(e){var t;e&&(t=Z,d=0,function(e){zC.isInJSFile(e)&&zC.forEach(e.jsDoc,function(e){e=e.tags;return zC.forEach(e,oT)});var t=e.kind;if(x)switch(t){case 261:case 257:case 258:case 256:x.throwIfCancellationRequested()}switch(237<=t&&t<=253&&e.flowNode&&!Gm(e.flowNode)&&ri(!1===$.allowUnreachableCode,e,zC.Diagnostics.Unreachable_code_detected),t){case 163:return Ox(e);case 164:return Mx(e);case 167:return Jx(e);case 166:return function(e){zC.isPrivateIdentifier(e.name)&&ei(e,zC.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Jx(e)}(e);case 180:case 179:case 174:case 175:case 176:return Rx(e);case 169:case 168:return function(e){NC(e)||xC(e.name),vD(e),zC.hasSyntacticModifier(e,128)&&169===e.kind&&e.body&&ei(e,zC.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,zC.declarationNameToString(e.name)),zC.isPrivateIdentifier(e.name)&&!zC.getContainingClass(e)&&ei(e,zC.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),zx(e)}(e);case 170:return function(e){_C(e),zC.forEachChild(e,oT)}(e);case 171:return Kx(e);case 172:case 173:return Vx(e);case 178:return Gx(e);case 177:return Lx(e);case 181:return function(e){Au(e)}(e);case 182:return Qx(e);case 183:return function(e){oT(e.elementType)}(e);case 184:return function(e){for(var t=e.elements,r=!1,n=!1,i=zC.some(t,zC.isNamedTupleMember),a=0,o=t;a<o.length;a++){var s=o[a];if(197!==s.kind&&i){LC(s,zC.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var c=Xu(s);if(8&c){var l=Id(s.type);if(!vf(l)){ei(s,zC.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(ff(l)||Of(l)&&4&l.target.combinedFlags)&&(n=!0)}else if(4&c){if(n){LC(s,zC.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&c){if(n){LC(s,zC.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}r=!0}else if(r){LC(s,zC.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}zC.forEach(e.elements,oT),Id(e)}(e);case 187:case 188:return function(e){zC.forEach(e.types,oT),Id(e)}(e);case 191:case 185:case 186:return oT(e.type);case 192:return function(e){Fd(e)}(e);case 193:return Zx(e);case 189:return function(e){zC.forEachChild(e,oT)}(e);case 190:return function(e){zC.findAncestor(e,function(e){return e.parent&&189===e.parent.kind&&e.parent.extendsType===e})||LC(e,zC.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),oT(e.typeParameter);var t=ba(e.typeParameter);if(t.declarations&&1<t.declarations.length){var r=mi(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=Ls(t),r=zC.getDeclarationsOfKind(t,163);if(!PS(r,[n],function(e){return[e]}))for(var i=$a(t),a=0,o=r;a<o.length;a++)ei(o[a].name,zC.Diagnostics.All_declarations_of_0_must_have_identical_constraints,i)}}bD(e)}(e);case 198:return function(e){for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];oT(n.type),Dp(Id(n.type),Pt,n.type)}Id(e)}(e);case 200:return function(e){oT(e.argument),e.assertions&&zC.getResolutionModeOverrideForClause(e.assertions.assertClause,LC)&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.Node16&&zC.getEmitModuleResolutionKind($)!==zC.ModuleResolutionKind.NodeNext&&LC(e.assertions.assertClause,zC.Diagnostics.Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext),Id(e)}(e);case 197:return function(e){e.dotDotDotToken&&e.questionToken&&LC(e,zC.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),185===e.type.kind&&LC(e.type,zC.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),186===e.type.kind&&LC(e.type,zC.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),oT(e.type),Id(e)}(e);case 328:return function(e){var t,r,n=zC.getEffectiveJSDocHost(e);n&&(zC.isClassDeclaration(n)||zC.isClassExpression(n))?(r=zC.getJSDocTags(n).filter(zC.isJSDocAugmentsTag),zC.Debug.assert(0<r.length),1<r.length&&ei(r[1],zC.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag),t=hD(e.class.expression),!(r=zC.getClassExtendsHeritageElement(n))||(r=hD(r.expression))&&t.escapedText!==r.escapedText&&ei(t,zC.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,zC.idText(e.tagName),zC.idText(t),zC.idText(r))):ei(n,zC.Diagnostics.JSDoc_0_is_not_attached_to_a_class,zC.idText(e.tagName))}(e);case 329:return function(e){var t=zC.getEffectiveJSDocHost(e);t&&(zC.isClassDeclaration(t)||zC.isClassExpression(t))||ei(t,zC.Diagnostics.JSDoc_0_is_not_attached_to_a_class,zC.idText(e.tagName))}(e);case 345:case 338:case 339:return function(e){e.typeExpression||ei(e.name,zC.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&NS(e.name,zC.Diagnostics.Type_alias_name_cannot_be_0),oT(e.typeExpression),AS(zC.getEffectiveTypeParameterDeclarations(e))}(e);case 344:return function(e){oT(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)oT(r[t])}(e);case 343:return function(e){oT(e.typeExpression)}(e);case 340:return function(e){oT(e.typeExpression)}(e);case 347:return function(e){oT(e.typeExpression)}(e);case 317:!function(e){C(function(){e.type||zC.isJSDocConstructSignature(e)||cg(e,Xe)}),Rx(e)}(e);case 315:case 314:case 312:case 313:case 322:return sT(e),zC.forEachChild(e,oT);case 318:return function(e){sT(e),oT(e.type);var t=e.parent;if(zC.isParameter(t)&&zC.isJSDocFunctionType(t.parent))return zC.last(t.parent.parameters)!==t&&ei(e,zC.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);zC.isJSDocTypeExpression(t)||ei(e,zC.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=e.parent.parent;if(!zC.isJSDocParameterTag(r))return ei(e,zC.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);(t=zC.getParameterSymbolFromJSDoc(r))&&((r=zC.getHostSignatureFromJSDoc(r))&&zC.last(r.parameters).symbol===t||ei(e,zC.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list))}(e);case 309:return oT(e.type);case 333:case 335:case 334:return function(e){var t=zC.getJSDocHost(e);t&&zC.isPrivateIdentifierClassElementDeclaration(t)&&ei(e,zC.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 194:return function(e){oT(e.objectType),oT(e.indexType),Xx(ed(e),e)}(e);case 195:return Yx(e);case 256:return function(e){C(function(){vD(e),DC(e),RD(e,e.name)})}(e);case 235:case 262:return PD(e);case 237:return VD(e);case 238:return function(e){RC(e),Ix(e.expression)}(e);case 239:return function(e){RC(e),HD(e.expression),qD(e.expression,e.thenStatement),oT(e.thenStatement),236===e.thenStatement.kind&&ei(e.thenStatement,zC.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),oT(e.elseStatement)}(e);case 240:return function(e){RC(e),oT(e.statement),HD(e.expression)}(e);case 241:return function(e){RC(e),HD(e.expression),oT(e.statement)}(e);case 242:return function(e){RC(e)||e.initializer&&255===e.initializer.kind&&PC(e.initializer),e.initializer&&(255===e.initializer.kind?zC.forEach(e.initializer.declarations,KD):Ix(e.initializer)),e.condition&&HD(e.condition),e.incrementor&&Ix(e.incrementor),oT(e.statement),e.locals&&bD(e)}(e);case 243:return GD(e);case 244:return function(e){CC(e);var t,r,n=zC.getContainingFunctionOrClassStaticBlock(e);e.awaitModifier?n&&zC.isClassStaticBlockDeclaration(n)?LC(e.awaitModifier,zC.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&zC.getFunctionFlags(n))&&B<99&&uC(e,16384):$.downlevelIteration&&B<2&&uC(e,256),255===e.initializer.kind?QD(e):(t=e.initializer,r=XD(e),204===t.kind||205===t.kind?ux(t,r||$e):(n=Ix(t),Zb(t,zC.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,zC.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),r&&Sp(r,n,t,e.expression))),oT(e.statement),e.locals&&bD(e)}(e);case 245:case 246:return xS(e);case 247:return function(e){var t,r,n,i,a;RC(e)||((t=zC.getContainingFunctionOrClassStaticBlock(e))&&zC.isClassStaticBlockDeclaration(t)?IC(e,zC.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block):t?(r=zl(Il(t)),n=zC.getFunctionFlags(t),ee||e.expression||131072&r.flags?(a=e.expression?mx(e.expression):at,173===t.kind?e.expression&&ei(e,zC.Diagnostics.Setters_cannot_return_a_value):171===t.kind?e.expression&&!Sp(a,r,e,e.expression)&&ei(e,zC.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class):Kl(t)&&(i=null!==(i=DS(r,n))&&void 0!==i?i:r,a=2&n?aD(a,!1,e,zC.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i&&Sp(a,i,e,e.expression))):171!==t.kind&&$.noImplicitReturns&&!SS(t,r)&&ei(e,zC.Diagnostics.Not_all_code_paths_return_a_value)):IC(e,zC.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body))}(e);case 248:return function(e){RC(e)||32768&e.flags&&IC(e,zC.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Ix(e.expression);var t=zC.getSourceFileOfNode(e);wC(t)||OC(t,t=zC.getSpanOfTokenAtPosition(t,e.pos).start,e.statement.pos-t,zC.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}(e);case 249:return TS(e);case 250:return function(t){RC(t)||zC.findAncestor(t.parent,function(e){return zC.isFunctionLike(e)?"quit":250===e.kind&&e.label.escapedText===t.label.escapedText&&(LC(t.label,zC.Diagnostics.Duplicate_label_0,zC.getTextOfNode(t.label)),!0)}),oT(t.statement)}(e);case 251:return CS(e);case 252:return function(e){RC(e),PD(e.tryBlock);var t,r,n,i,a=e.catchClause;a&&(a.variableDeclaration&&(t=a.variableDeclaration,(r=zC.getEffectiveTypeAnnotationNode(zC.getRootDeclaration(t)))?!(n=Mo(t,!1,0))||3&n.flags||IC(r,zC.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified):t.initializer?IC(t.initializer,zC.Diagnostics.Catch_clause_variable_cannot_have_an_initializer):(i=a.block.locals)&&zC.forEachKey(a.locals,function(e){var t=i.get(e);null!=t&&t.valueDeclaration&&0!=(2&t.flags)&&LC(t.valueDeclaration,zC.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,e)})),PD(a.block)),e.finallyBlock&&PD(e.finallyBlock)}(e);case 254:return KD(e);case 203:return UD(e);case 257:return function(e){zC.some(e.decorators)&&zC.some(e.members,function(e){return zC.hasStaticModifier(e)&&zC.isPrivateIdentifierClassElementDeclaration(e)})&&LC(e.decorators[0],zC.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||zC.hasSyntacticModifier(e,512)||IC(e,zC.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),wS(e),zC.forEach(e.members,oT),bD(e)}(e);case 258:return JS(e);case 259:return function(e){_C(e),NS(e.name,zC.Diagnostics.Type_alias_name_cannot_be_0),rD(e),AS(e.typeParameters),138===e.type.kind?XC.has(e.name.escapedText)&&1===zC.length(e.typeParameters)||ei(e.type,zC.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(oT(e.type),bD(e))}(e);case 260:return US(e);case 261:return qS(e);case 266:return ZS(e);case 265:return function(e){var t,r;eT(e,zC.isInJSFile(e)?zC.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:zC.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)||(_C(e),(zC.isInternalModuleImportEqualsDeclaration(e)||WS(e))&&(XS(e),zC.hasSyntacticModifier(e,1)&&Zi(e),277!==e.moduleReference.kind?((t=Gi(ba(e)))!==We&&(111551&t.flags&&(1920&ra(r=zC.getFirstIdentifier(e.moduleReference),112575).flags||ei(r,zC.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,zC.declarationNameToString(r))),788968&t.flags&&NS(e.name,zC.Diagnostics.Import_name_cannot_be_0)),e.isTypeOnly&&LC(e,zC.Diagnostics.An_import_alias_cannot_use_import_type)):!(m>=zC.ModuleKind.ES2015&&void 0===zC.getSourceFileOfNode(e).impliedNodeFormat)||e.isTypeOnly||16777216&e.flags||LC(e,zC.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 272:return $S(e);case 271:return function(e){var t,r,n;eT(e,e.isExportEquals?zC.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:zC.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)||(261!==(t=(305===e.parent.kind?e:e.parent).parent).kind||zC.isAmbientModule(t)?(!_C(e)&&zC.hasEffectiveModifiers(e)&&IC(e,zC.Diagnostics.An_export_assignment_cannot_have_modifiers),(n=zC.getEffectiveTypeAnnotationNode(e))&&Dp(mx(e.expression),Id(n),e.expression),79===e.expression.kind?((n=ra(r=e.expression,67108863,!0,!0,e))?(ay(n,r),((n=2097152&n.flags?Gi(n):n)===We||111551&n.flags)&&mx(e.expression)):mx(e.expression),zC.getEmitDeclarations($)&&go(e.expression,!0)):mx(e.expression),iT(t),16777216&e.flags&&!zC.isEntityNameExpression(e.expression)&&LC(e.expression,zC.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||16777216&e.flags||(m>=zC.ModuleKind.ES2015&&zC.getSourceFileOfNode(e).impliedNodeFormat!==zC.ModuleKind.CommonJS?LC(e,zC.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):m===zC.ModuleKind.System&&LC(e,zC.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?ei(e,zC.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):ei(e,zC.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module))}(e);case 236:case 253:return RC(e);case 276:(function(e){yD(e)})(e)}}(Z=e),Z=t)}function sT(e){zC.isInJSFile(e)||LC(e,zC.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function cT(e){var t=yi(zC.getSourceFileOfNode(e));1&t.flags||(t.deferredNodes||(t.deferredNodes=new zC.Set),t.deferredNodes.add(e))}function lT(e){null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.push("check","checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});var t,r,n,i,a,o=Z;switch(d=0,(Z=e).kind){case 208:case 209:case 210:case 165:case 280:pv(e);break;case 213:case 214:case 169:case 168:!function(e){zC.Debug.assert(169!==e.kind||zC.isObjectLiteralMethod(e));var t,r=zC.getFunctionFlags(e),n=Kl(e);Wb(e,n),e.body&&(zC.getEffectiveReturnTypeNode(e)||zl(Il(e)),235===e.body.kind?oT(e.body):(t=Ix(e.body),(n=n&&DS(n,r))&&Sp(2==(3&r)?aD(t,!1,e.body,zC.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 172:case 173:Vx(e);break;case 226:a=e,zC.forEach(a.members,oT),bD(a);break;case 163:t=e,!(zC.isInterfaceDeclaration(t.parent)||zC.isClassLike(t.parent)||zC.isTypeAliasDeclaration(t.parent))||(n=ef(i=Ls(ba(t))))&&(r=ba(t.parent),!zC.isTypeAliasDeclaration(t.parent)||48&zC.getObjectFlags(Rs(r))?32768!==n&&65536!==n||(a=Zp(r,i,65536===n?Wt:qt),n=Zp(r,i,65536===n?qt:Wt),D=i=i,Dp(a,n,t,zC.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),D=i):ei(t,zC.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types));break;case 279:bh(e);break;case 278:bh((t=e).openingElement),ih(t.closingElement.tagName)?uh(t.closingElement):Ix(t.closingElement.tagName),oh(t)}Z=o,null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.pop()}function uT(e){var t;null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.push("check","checkSourceFile",{path:e.path},!0),zC.performance.mark("beforeCheck"),1&(e=yi(t=e)).flags||zC.skipTypeChecking(t,$,b)||(function(n){16777216&n.flags&&function(){for(var e=0,t=n.statements;e<t.length;e++){var r=t[e];if((zC.isDeclaration(r)||237===r.kind)&&function(e){if(258===e.kind||259===e.kind||266===e.kind||265===e.kind||272===e.kind||271===e.kind||264===e.kind||zC.hasSyntacticModifier(e,515))return!1;return IC(e,zC.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}(r))return}}()}(t),zC.clear(wn),zC.clear(In),zC.clear(On),zC.clear(Mn),zC.forEach(t.statements,oT),oT(t.endOfFileToken),function(e){(e=yi(e)).deferredNodes&&e.deferredNodes.forEach(lT)}(t),zC.isExternalOrCommonJsModule(t)&&bD(t),C(function(){t.isDeclarationFile||!$.noUnusedLocals&&!$.noUnusedParameters||xD(dT(t),function(e,t,r){!zC.containsParseError(e)&&_T(t,!!(16777216&e.flags))&&Rn.add(r)})}),2===$.importsNotUsedAsValues&&!t.isDeclarationFile&&zC.isExternalModule(t)&&rT(t),zC.isExternalOrCommonJsModule(t)&&iT(t),wn.length&&(zC.forEach(wn,ID),zC.clear(wn)),In.length&&(zC.forEach(In,OD),zC.clear(In)),On.length&&(zC.forEach(On,MD),zC.clear(On)),Mn.length&&(zC.forEach(Mn,LD),zC.clear(Mn)),e.flags|=1),zC.performance.mark("afterCheck"),zC.performance.measure("Check","beforeCheck","afterCheck"),null!==zC.tracing&&void 0!==zC.tracing&&zC.tracing.pop()}function _T(e,t){if(!t)switch(e){case 0:return $.noUnusedLocals;case 1:return $.noUnusedParameters;default:return zC.Debug.assertNever(e)}}function dT(e){return sn.get(e.path)||zC.emptyArray}function pT(e,t){try{return x=t,function(e){if(e){fT();var t=Rn.getGlobalDiagnostics(),r=t.length;gT(e);var n=Rn.getDiagnostics(e.fileName),e=Rn.getGlobalDiagnostics();if(e===t)return 0===r&&0<e.length?zC.concatenate(e,n):n;e=zC.relativeComplement(t,e,zC.compareDiagnostics);return zC.concatenate(e,n)}return zC.forEach(b.getSourceFiles(),gT),Rn.getDiagnostics()}(e)}finally{x=void 0}}function fT(){for(var e=0,t=n;e<t.length;e++)(0,t[e])();n=[]}function gT(e){fT();var t=C;C=function(e){return e()},uT(e),C=t}function mT(e){switch(e.kind){case 163:case 257:case 258:case 259:case 260:case 345:case 338:case 339:return!0;case 267:return e.isTypeOnly;case 270:case 275:return e.parent.parent.isTypeOnly;default:return!1}}function yT(e){for(;161===e.parent.kind;)e=e.parent;return 178===e.parent.kind}function hT(e,t){for(var r;(e=zC.getContainingClass(e))&&!(r=t(e)););return r}function vT(e,t){return hT(e,function(e){return e===t})}function bT(e){return void 0!==function(e){for(;161===e.parent.kind;)e=e.parent;return 265===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:271===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function xT(e){if(zC.isDeclarationName(e))return ba(e.parent);if(zC.isInJSFile(e)&&206===e.parent.kind&&e.parent===e.parent.parent.left&&!zC.isPrivateIdentifier(e)&&!zC.isJSDocMemberName(e)){var t=function(e){switch(zC.getAssignmentDeclarationKind(e.parent.parent)){case 1:case 3:return ba(e.parent);case 4:case 2:case 5:return ba(e.parent.parent)}}(e);if(t)return t}if(271===e.parent.kind&&zC.isEntityNameExpression(e)){t=ra(e,2998271,!0);if(t&&t!==We)return t}else if(zC.isEntityName(e)&&bT(e)){var r=zC.getAncestor(e,265);return zC.Debug.assert(void 0!==r),ea(e,!0)}if(zC.isEntityName(e)){r=function(e){for(var t=e.parent;zC.isQualifiedName(t);)t=(e=t).parent;if(t&&200===t.kind&&t.qualifier===e)return t}(e);if(r){Id(r);r=yi(e).resolvedSymbol;return r===We?void 0:r}}for(;zC.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(e);)e=e.parent;if(function(e){for(;206===e.parent.kind;)e=e.parent;return 228===e.parent.kind}(e)){var n=0;228===e.parent.kind?(n=788968,zC.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)&&(n|=111551)):n=1920,n|=2097152;var i=zC.isEntityNameExpression(e)?ra(e,n):void 0;if(i)return i}if(340===e.parent.kind)return zC.getParameterSymbolFromJSDoc(e.parent);if(163===e.parent.kind&&344===e.parent.parent.kind){zC.Debug.assert(!zC.isInJSFile(e));var a=zC.getTypeParameterFromJsDoc(e.parent);return a&&a.symbol}if(zC.isExpressionNode(e)){if(zC.nodeIsMissing(e))return;i=zC.findAncestor(e,zC.or(zC.isJSDocLinkLike,zC.isJSDocNameReference,zC.isJSDocMemberName)),n=i?901119:111551;if(79===e.kind){if(zC.isJSXTagName(e)&&ih(e))return(s=uh(e.parent))===We?void 0:s;var o=ra(e,n,!1,!0,zC.getHostSignatureFromJSDoc(e));if(!o&&i){a=zC.findAncestor(e,zC.or(zC.isClassLike,zC.isInterfaceDeclaration));if(a)return DT(e,ba(a))}return o}if(zC.isPrivateIdentifier(e))return Kh(e);if(206===e.kind||161===e.kind){o=yi(e);return o.resolvedSymbol?o.resolvedSymbol:((206===e.kind?Rh:Bh)(e,0),!o.resolvedSymbol&&i&&zC.isQualifiedName(e)?DT(e):o.resolvedSymbol)}if(zC.isJSDocMemberName(e))return DT(e)}else if(yT(e)){var s;return(s=ra(e,n=178===e.parent.kind?788968:1920,!1,!0))&&s!==We?s:hu(e)}return 177===e.parent.kind?ra(e,1):void 0}function DT(e,t){if(zC.isEntityName(e)){var r=ra(e,901119,!1,!0,zC.getHostSignatureFromJSDoc(e));if(!r&&zC.isIdentifier(e)&&t&&(r=va(vi(ga(t),e.escapedText,901119))),r)return r}r=zC.isIdentifier(e)?t:DT(e.left),t=(zC.isIdentifier(e)?e:e.right).escapedText;if(r){e=111551&r.flags&&_l(_s(r),"prototype");return _l(e?_s(e):Rs(r),t)}}function ST(e,t){if(305===e.kind)return zC.isExternalModule(e)?va(e.symbol):void 0;var r=e.parent,n=r.parent;if(!(33554432&e.flags)){if(nk(e)){var i=ba(r);return zC.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e?eh(i):i}if(zC.isLiteralComputedPropertyDeclarationName(e))return ba(r.parent);if(79===e.kind){if(bT(e))return xT(e);if(203===r.kind&&201===n.kind&&e===r.propertyName){i=_l(TT(n),e.escapedText);if(i)return i}else if(zC.isMetaProperty(r)&&r.name===e)return 103===r.keywordToken&&"target"===zC.idText(e)?hb(r).symbol:100===r.keywordToken&&"meta"===zC.idText(e)?Ru().members.get("meta"):void 0}switch(e.kind){case 79:case 80:case 206:case 161:if(!zC.isThisInTypeQuery(e))return xT(e);case 108:var a=zC.getThisContainer(e,!1);if(zC.isFunctionLike(a)){a=Il(a);if(a.thisParameter)return a.thisParameter}if(zC.isInExpressionContext(e))return Ix(e).symbol;case 192:return Fd(e).symbol;case 106:return Ix(e).symbol;case 134:var o=e.parent;return o&&171===o.kind?o.parent.symbol:void 0;case 10:case 14:if(zC.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&zC.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e||(266===e.parent.kind||272===e.parent.kind)&&e.parent.moduleSpecifier===e||zC.isInJSFile(e)&&zC.isRequireCall(e.parent,!1)||zC.isImportCall(e.parent)||zC.isLiteralTypeNode(e.parent)&&zC.isLiteralImportTypeNode(e.parent.parent)&&e.parent.parent.argument===e.parent)return ia(e,e,t);if(zC.isCallExpression(r)&&zC.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===e)return ba(r);case 8:o=zC.isElementAccessExpression(r)?r.argumentExpression===e?Fx(r.expression):void 0:zC.isLiteralTypeNode(r)&&zC.isIndexedAccessTypeNode(n)?Id(n.objectType):void 0;return o&&_l(o,zC.escapeLeadingUnderscores(e.text));case 88:case 98:case 38:case 84:return ba(e.parent);case 200:return zC.isLiteralImportTypeNode(e)?ST(e.argument.literal,t):void 0;case 93:return zC.isExportAssignment(e.parent)?zC.Debug.checkDefined(e.parent.symbol):void 0;case 100:case 103:return zC.isMetaProperty(e.parent)?yb(e.parent).symbol:void 0;case 231:return Ix(e).symbol;default:return}}}function TT(e){if(zC.isSourceFile(e)&&!zC.isExternalModule(e))return $e;if(33554432&e.flags)return $e;var t,r=zC.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e),n=r&&As(ba(r.class));if(zC.isPartOfTypeNode(e)){var i=Id(e);return n?nc(i,n.thisType):i}if(zC.isExpressionNode(e))return kT(e);if(n&&!r.isImplements){r=zC.firstOrUndefined(Es(n));return r?nc(r,n.thisType):$e}if(mT(e))return Rs(t=ba(e));if(n=e,79===n.kind&&mT(n.parent)&&zC.getNameOfDeclaration(n.parent)===n)return(t=ST(e))?Rs(t):$e;if(zC.isDeclaration(e))return(t=ba(e))?_s(t):$e;if(nk(e))return(t=ST(e))?_s(t):$e;if(zC.isBindingPattern(e))return Mo(e.parent,!0,0)||$e;if(bT(e)&&(t=ST(e))){n=Rs(t);return Do(n)?_s(t):n}return zC.isMetaProperty(e.parent)&&e.parent.keywordToken===e.kind?yb(e.parent):$e}function CT(e){if(zC.Debug.assert(205===e.kind||204===e.kind),244===e.parent.kind)return ux(e,XD(e.parent)||$e);if(221===e.parent.kind)return ux(e,Fx(e.parent.right)||$e);if(296===e.parent.kind){var t=zC.cast(e.parent.parent,zC.isObjectLiteralExpression);return cx(t,CT(t)||$e,zC.indexOfNode(t.properties,e.parent))}var r=zC.cast(e.parent,zC.isArrayLiteralExpression),n=CT(r)||$e,t=YD(65,n,at,e.parent)||$e;return lx(r,n,r.elements.indexOf(e),t)}function kT(e){return zC.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),Td(Fx(e))}function ET(e){e=tl(e);var t=zC.createSymbolTable(Jc(e)),e=pl(e,0).length?$t:pl(e,1).length?er:void 0;return e&&zC.forEach(Jc(e),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),Ma(t)}function NT(e){return zC.typeHasCallOrConstructSignatures(e,Ne)}function AT(t){if(6&zC.getCheckFlags(t))return zC.mapDefined(mi(t).containingType.types,function(e){return _l(e,t.escapedName)});if(33554432&t.flags){var e=t.leftSpread,r=t.rightSpread,n=t.syntheticOrigin;return e?[e,r]:n?[n]:zC.singleElementArray(function(e){var t,r=e;for(;r=mi(r).target;)t=r;return t}(t))}}function FT(e){if(zC.isGeneratedIdentifier(e))return!1;var t=zC.getParseTreeNode(e,zC.isIdentifier);if(!t)return!1;e=t.parent;return!!e&&(!((zC.isPropertyAccessExpression(e)||zC.isPropertyAssignment(e))&&e.name===t)&&nC(t)===ke)}function PT(e){var t=ia(e.parent,e);if(!t||zC.isShorthandAmbientModuleSymbol(t))return!0;var r=_a(t),e=mi(t=ca(t));return void 0===e.exportsSomeValue&&(e.exportsSomeValue=r?!!(111551&t.flags):zC.forEachEntry(ma(t),function(e){return(e=Hi(e))&&!!(111551&e.flags)})),e.exportsSomeValue}function wT(e,t){var r=zC.getParseTreeNode(e,zC.isIdentifier);if(r){e=nC(r,(n=r,zC.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name));if(e){if(1048576&e.flags){var n=va(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}var i=xa(e);if(i){if(512&i.flags&&305===(null===(a=i.valueDeclaration)||void 0===a?void 0:a.kind)){var a=i.valueDeclaration;return a!==zC.getSourceFileOfNode(r)?void 0:a}return zC.findAncestor(r.parent,function(e){return zC.isModuleOrEnumDeclaration(e)&&ba(e)===i})}}}}function IT(e){if(e.generatedImportReference)return e.generatedImportReference;e=zC.getParseTreeNode(e,zC.isIdentifier);if(e){e=nC(e);if(Wi(e,111551)&&!Yi(e))return Fi(e)}}function OT(e){if(418&e.flags&&e.valueDeclaration&&!zC.isSourceFile(e.valueDeclaration)){var t,r,n=mi(e);return void 0===n.isDeclarationWithCollidingName&&(t=zC.getEnclosingBlockScopeContainer(e.valueDeclaration),(zC.isStatementWithLocals(t)||(i=e).valueDeclaration&&zC.isBindingElement(i.valueDeclaration)&&292===zC.walkUpBindingElementsAndPatterns(i.valueDeclaration).parent.kind)&&(r=yi(e.valueDeclaration),Di(t.parent,e.escapedName,111551,void 0,void 0,!1)?n.isDeclarationWithCollidingName=!0:262144&r.flags?(i=524288&r.flags,e=zC.isIterationStatement(t,!1),r=235===t.kind&&zC.isIterationStatement(t.parent,!1),n.isDeclarationWithCollidingName=!(zC.isBlockScopedContainerTopLevel(t)||i&&(e||r))):n.isDeclarationWithCollidingName=!1)),n.isDeclarationWithCollidingName}var i;return!1}function MT(e){if(!zC.isGeneratedIdentifier(e)){e=zC.getParseTreeNode(e,zC.isIdentifier);if(e){e=nC(e);if(e&&OT(e))return e.valueDeclaration}}}function LT(e){e=zC.getParseTreeNode(e,zC.isDeclaration);if(e){e=ba(e);if(e)return OT(e)}return!1}function RT(e){switch(e.kind){case 265:return jT(ba(e));case 267:case 268:case 270:case 275:var t=ba(e);return!!t&&jT(t)&&!Yi(t);case 272:t=e.exportClause;return!!t&&(zC.isNamespaceExport(t)||zC.some(t.elements,RT));case 271:return!e.expression||79!==e.expression.kind||jT(ba(e))}return!1}function BT(e){e=zC.getParseTreeNode(e,zC.isImportEqualsDeclaration);return!(void 0===e||305!==e.parent.kind||!zC.isInternalModuleImportEqualsDeclaration(e))&&(jT(ba(e))&&e.moduleReference&&!zC.nodeIsMissing(e.moduleReference))}function jT(e){if(!e)return!1;e=ka(Gi(e));return e===We||!!(111551&e.flags)&&(zC.shouldPreserveConstEnums($)||!JT(e))}function JT(e){return sx(e)||e.constEnumOnlyModule}function zT(e,t){if(Pi(e)){var r=ba(e),n=r&&mi(r);if(null!=n&&n.referenced)return!0;r=mi(r).aliasTarget;if(r&&1&zC.getEffectiveModifierFlags(e)&&111551&r.flags&&(zC.shouldPreserveConstEnums($)||!JT(r)))return!0}return!!t&&!!zC.forEachChild(e,function(e){return zT(e,t)})}function KT(e){if(zC.nodeIsPresent(e.body)){if(zC.isGetAccessor(e)||zC.isSetAccessor(e))return!1;var t=Ll(ba(e));return 1<t.length||1===t.length&&t[0].declaration!==e}return!1}function UT(e){return!(!ee||Nl(e)||zC.isJSDocParameterTag(e)||!e.initializer||zC.hasSyntacticModifier(e,16476))}function VT(e){return ee&&Nl(e)&&!e.initializer&&zC.hasSyntacticModifier(e,16476)}function qT(e){e=zC.getParseTreeNode(e,zC.isFunctionDeclaration);if(!e)return!1;e=ba(e);return!!(e&&16&e.flags)&&!!zC.forEachEntry(ga(e),function(e){return 111551&e.flags&&e.valueDeclaration&&zC.isPropertyAccessExpression(e.valueDeclaration)})}function WT(e){e=zC.getParseTreeNode(e,zC.isFunctionDeclaration);if(!e)return zC.emptyArray;e=ba(e);return e&&Jc(_s(e))||zC.emptyArray}function HT(e){var e=e.id||0;return!(e<0||e>=Sn.length)&&(null===(e=Sn[e])||void 0===e?void 0:e.flags)||0}function GT(e){return zS(e.parent),yi(e).enumMemberValue}function QT(e){switch(e.kind){case 299:case 206:case 207:return!0}return!1}function XT(e){if(299===e.kind)return GT(e);e=yi(e).resolvedSymbol;if(e&&8&e.flags){e=e.valueDeclaration;if(zC.isEnumConst(e.parent))return GT(e)}}function YT(e){return 524288&e.flags&&0<pl(e,0).length}function ZT(e,t){var r=zC.getParseTreeNode(e,zC.isEntityName);if(!r)return zC.TypeReferenceSerializationKind.Unknown;if(t&&!(t=zC.getParseTreeNode(t)))return zC.TypeReferenceSerializationKind.Unknown;e=!1;zC.isQualifiedName(r)&&(e=!(null===(i=null==(n=ra(zC.getFirstIdentifier(r),111551,!0,!0,t))?void 0:n.declarations)||void 0===i||!i.every(zC.isTypeOnlyImportOrExportDeclaration)));var n=ra(r,111551,!0,!0,t),i=n&&2097152&n.flags?Gi(n):n;e=e||!(null===(n=null==n?void 0:n.declarations)||void 0===n||!n.every(zC.isTypeOnlyImportOrExportDeclaration));r=ra(r,788968,!0,!1,t);if(i&&i===r){t=Uu(!1);if(t&&i===t)return zC.TypeReferenceSerializationKind.Promise;i=_s(i);if(i&&xs(i))return e?zC.TypeReferenceSerializationKind.TypeWithCallSignature:zC.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!r)return e?zC.TypeReferenceSerializationKind.ObjectType:zC.TypeReferenceSerializationKind.Unknown;r=Rs(r);return Do(r)?e?zC.TypeReferenceSerializationKind.ObjectType:zC.TypeReferenceSerializationKind.Unknown:3&r.flags?zC.TypeReferenceSerializationKind.ObjectType:ix(r,245760)?zC.TypeReferenceSerializationKind.VoidNullableOrNeverType:ix(r,528)?zC.TypeReferenceSerializationKind.BooleanType:ix(r,296)?zC.TypeReferenceSerializationKind.NumberLikeType:ix(r,2112)?zC.TypeReferenceSerializationKind.BigIntLikeType:ix(r,402653316)?zC.TypeReferenceSerializationKind.StringLikeType:Of(r)?zC.TypeReferenceSerializationKind.ArrayLikeType:ix(r,12288)?zC.TypeReferenceSerializationKind.ESSymbolType:YT(r)?zC.TypeReferenceSerializationKind.TypeWithCallSignature:ff(r)?zC.TypeReferenceSerializationKind.ArrayLikeType:zC.TypeReferenceSerializationKind.ObjectType}function $T(e,t,r,n,i){var a=zC.getParseTreeNode(e,zC.isVariableLikeOrAccessor);if(!a)return zC.factory.createToken(130);e=ba(a),a=!e||133120&e.flags?$e:Ff(_s(e));return 8192&a.flags&&a.symbol===e&&(r|=1048576),i&&(a=qf(a)),j.typeToTypeNode(a,t,1024|r,n)}function eC(e,t,r,n){e=zC.getParseTreeNode(e,zC.isFunctionLike);if(!e)return zC.factory.createToken(130);e=Il(e);return j.typeToTypeNode(zl(e),t,1024|r,n)}function tC(e,t,r,n){e=zC.getParseTreeNode(e,zC.isExpression);if(!e)return zC.factory.createToken(130);e=og(kT(e));return j.typeToTypeNode(e,t,1024|r,n)}function rC(e){return De.has(zC.escapeLeadingUnderscores(e))}function nC(e,t){var r=yi(e).resolvedSymbol;if(r)return r;r=e;return t&&(t=e.parent,zC.isDeclaration(t)&&e===t.name&&(r=vo(t))),Di(r,e.escapedText,3257279,void 0,void 0,!0)}function iC(e){if(!zC.isGeneratedIdentifier(e)){e=zC.getParseTreeNode(e,zC.isIdentifier);if(e){e=nC(e);if(e)return ka(e).valueDeclaration}}}function aC(e){return!!(zC.isDeclarationReadonly(e)||zC.isVariableDeclaration(e)&&zC.isVarConst(e))&&Cd(_s(ba(e)))}function oC(e,t){var r=_s(ba(e));return e=e,t=t,(t=1024&(r=r).flags?j.symbolToExpression(r.symbol,111551,e,void 0,t):r===mt?zC.factory.createTrue():r===ft&&zC.factory.createFalse())?t:"object"==typeof(r=r.value)?zC.factory.createBigIntLiteral(r):"number"==typeof r?zC.factory.createNumericLiteral(r):zC.factory.createStringLiteral(r)}function sC(e){return e?(Qn(e),zC.getSourceFileOfNode(e).localJsxFactory||Kr):Kr}function cC(e){if(e){var t=zC.getSourceFileOfNode(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;e=t.pragmas.get("jsxfrag"),e=zC.isArray(e)?e[0]:e;if(e)return t.localJsxFragmentFactory=zC.parseIsolatedEntityName(e.arguments.factory,B),t.localJsxFragmentFactory}}if($.jsxFragmentFactory)return zC.parseIsolatedEntityName($.jsxFragmentFactory,B)}function lC(e){e=261===e.kind?zC.tryCast(e.name,zC.isStringLiteral):zC.getExternalModuleName(e),e=aa(e,e,void 0);if(e)return zC.getDeclarationOfKind(e,305)}function uC(e,t){if((c&t)!==t&&$.importHelpers){var r=zC.getSourceFileOfNode(e);if(zC.isEffectiveExternalModule(r,$)&&!(16777216&e.flags)){var n=function(e,t){l=l||(oa(e,zC.externalHelpersModuleNameText,zC.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||We);return l}(r,e);if(n!==We)for(var i,a,o=t&~c,s=1;s<=4194304;s<<=1)o&s&&(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"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return zC.Debug.fail("Unrecognized helper")}}(s),(a=vi(n.exports,zC.escapeLeadingUnderscores(i),111551))?524288&s?zC.some(Ll(a),function(e){return 3<Eb(e)})||ei(e,zC.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,zC.externalHelpersModuleNameText,i,4):1048576&s?zC.some(Ll(a),function(e){return 4<Eb(e)})||ei(e,zC.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,zC.externalHelpersModuleNameText,i,5):1024&s&&(zC.some(Ll(a),function(e){return 2<Eb(e)})||ei(e,zC.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,zC.externalHelpersModuleNameText,i,3)):ei(e,zC.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,zC.externalHelpersModuleNameText,i));c|=t}}}function _C(e){return function(e){if(!e.decorators)return!1;{if(!zC.nodeCanBeDecorated(e,e.parent,e.parent.parent))return 169!==e.kind||zC.nodeIsPresent(e.body)?IC(e,zC.Diagnostics.Decorators_are_not_valid_here):IC(e,zC.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(172===e.kind||173===e.kind){var t=zC.getAllAccessorDeclarations(e.parent.members,e);if(t.firstAccessor.decorators&&e===t.secondAccessor)return IC(e,zC.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}return!1}(e)||dC(e)}function dC(e){var t,r,n,i,a,t=!!(t=e).modifiers&&(function(e){switch(e.kind){case 172:case 173:case 171:case 167:case 166:case 169:case 168:case 176:case 261:case 266:case 265:case 272:case 271:case 213:case 214:case 164:case 163:return!1;default:if(262===e.parent.kind||305===e.parent.kind)return!1;switch(e.kind){case 256:return pC(e,131);case 257:case 180:return pC(e,126);case 258:case 237:case 259:case 170:return!0;case 260:return pC(e,85);default:zC.Debug.fail()}}}(t)?IC(t,zC.Diagnostics.Modifiers_cannot_appear_here):void 0);if(void 0!==t)return t;for(var o=0,s=0,c=e.modifiers;s<c.length;s++){var l=c[s];if(145!==l.kind){if(166===e.kind||168===e.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_type_member,zC.tokenToString(l.kind));if(176===e.kind&&(124!==l.kind||!zC.isClassLike(e.parent)))return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,zC.tokenToString(l.kind))}if(101!==l.kind&&144!==l.kind&&163===e.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter,zC.tokenToString(l.kind));switch(l.kind){case 85:if(260!==e.kind)return LC(e,zC.Diagnostics.A_class_member_cannot_have_the_0_keyword,zC.tokenToString(85));break;case 159:if(16384&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"override");if(2&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");o|=16384,a=l;break;case 123:case 122:case 121:var u=co(zC.modifierToFlag(l.kind));if(28&o)return LC(l,zC.Diagnostics.Accessibility_modifier_already_seen);if(16384&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,u,"override");if(32&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,u,"static");if(64&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,u,"readonly");if(256&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,u,"async");if(262===e.parent.kind||305===e.parent.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,u);if(128&o)return 121===l.kind?LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,u,"abstract"):LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,u,"abstract");if(zC.isPrivateIdentifierClassElementDeclaration(e))return LC(l,zC.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);o|=zC.modifierToFlag(l.kind);break;case 124:if(32&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"static");if(64&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(262===e.parent.kind||305===e.parent.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(164===e.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");o|=32,r=l;break;case 145:if(64&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"readonly");if(167!==e.kind&&166!==e.kind&&176!==e.kind&&164!==e.kind)return LC(l,zC.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);o|=64;break;case 93:if(1&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"export");if(2&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(zC.isClassLike(e.parent))return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(164===e.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");o|=1;break;case 88:var _=(305===e.parent.kind?e:e.parent).parent;if(261===_.kind&&!zC.isAmbientModule(_))return LC(l,zC.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&o))return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");o|=512;break;case 135:if(2&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"declare");if(256&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(zC.isClassLike(e.parent)&&!zC.isPropertyDeclaration(e))return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(164===e.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(16777216&e.parent.flags&&262===e.parent.kind)return LC(l,zC.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(zC.isPrivateIdentifierClassElementDeclaration(e))return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");o|=2,n=l;break;case 126:if(128&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"abstract");if(257!==e.kind&&180!==e.kind){if(169!==e.kind&&167!==e.kind&&172!==e.kind&&173!==e.kind)return LC(l,zC.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(257!==e.parent.kind||!zC.hasSyntacticModifier(e.parent,128))return LC(l,zC.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&o&&i)return LC(i,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(zC.isNamedDeclaration(e)&&80===e.name.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");o|=128;break;case 131:if(256&o)return LC(l,zC.Diagnostics._0_modifier_already_seen,"async");if(2&o||16777216&e.parent.flags)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(164===e.kind)return LC(l,zC.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&o)return LC(l,zC.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");o|=256,i=l;break;case 101:case 144:u=101===l.kind?32768:65536,_=101===l.kind?"in":"out";if(163!==e.kind||!(zC.isInterfaceDeclaration(e.parent)||zC.isClassLike(e.parent)||zC.isTypeAliasDeclaration(e.parent)))return LC(l,zC.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,_);if(o&u)return LC(l,zC.Diagnostics._0_modifier_already_seen,_);if(32768&u&&65536&o)return LC(l,zC.Diagnostics._0_modifier_must_precede_1_modifier,"in","out");o|=u}}return 171===e.kind?32&o?LC(r,zC.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&o?LC(a,zC.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(256&o)&&LC(i,zC.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(266===e.kind||265===e.kind)&&2&o?LC(n,zC.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):164===e.kind&&16476&o&&zC.isBindingPattern(e.name)?LC(e,zC.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):164===e.kind&&16476&o&&e.dotDotDotToken?LC(e,zC.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&o)&&function(e,t){switch(e.kind){case 169:case 256:case 213:case 214:return!1}return LC(t,zC.Diagnostics._0_modifier_cannot_be_used_here,"async")}(e,i)}function pC(e,t){return 1<e.modifiers.length||e.modifiers[0].kind!==t}function fC(e,t){return void 0===t&&(t=zC.Diagnostics.Trailing_comma_not_allowed),!(!e||!e.hasTrailingComma)&&OC(e[0],e.end-",".length,",".length,t)}function gC(e,t){if(e&&0===e.length){var r=e.pos-"<".length;return OC(t,r,zC.skipTrivia(t.text,e.end)+">".length-r,zC.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function mC(e){if(3<=B){var t=e.body&&zC.isBlock(e.body)&&zC.findUseStrictPrologue(e.body.statements);if(t){e=(e=e.parameters,zC.filter(e,function(e){return!!e.initializer||zC.isBindingPattern(e.name)||zC.isRestParameter(e)}));if(zC.length(e)){zC.forEach(e,function(e){zC.addRelatedInfo(ei(e,zC.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),zC.createDiagnosticForNode(t,zC.Diagnostics.use_strict_directive_used_here))});e=e.map(function(e,t){return 0===t?zC.createDiagnosticForNode(e,zC.Diagnostics.Non_simple_parameter_declared_here):zC.createDiagnosticForNode(e,zC.Diagnostics.and_here)});return zC.addRelatedInfo.apply(void 0,__spreadArray([ei(t,zC.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],e,!1)),!0}}}return!1}function yC(e){var t=zC.getSourceFileOfNode(e);return _C(e)||gC(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 LC(i.dotDotDotToken,zC.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(16777216&i.flags||fC(e,zC.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return LC(i.questionToken,zC.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return LC(i.name,zC.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Nl(i)){if(t=!0,i.questionToken&&i.initializer)return LC(i.name,zC.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return LC(i.name,zC.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!zC.isArrowFunction(e))return!1;e.typeParameters&&!(1<zC.length(e.typeParameters)||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&zC.fileExtensionIsOneOf(t.fileName,[".mts",".cts"])&&LC(e.typeParameters[0],zC.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var r=e.equalsGreaterThanToken,e=zC.getLineAndCharacterOfPosition(t,r.pos).line,t=zC.getLineAndCharacterOfPosition(t,r.end).line;return e!==t&&LC(r,zC.Diagnostics.Line_terminator_not_permitted_before_arrow)}(e,t)||zC.isFunctionLikeDeclaration(e)&&mC(e)}function hC(e,t){return fC(t)||function(e,t){if(t&&0===t.length){var r=zC.getSourceFileOfNode(e),e=t.pos-"<".length;return OC(r,e,zC.skipTrivia(r.text,t.end)+">".length-e,zC.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function vC(e){var t=e.types;if(fC(t))return 1;if(t&&0===t.length){var r=zC.tokenToString(e.token);return OC(e,t.pos,0,zC.Diagnostics._0_list_cannot_be_empty,r)}return zC.some(t,bC)}function bC(e){return zC.isExpressionWithTypeArguments(e)&&zC.isImportKeyword(e.expression)&&e.typeArguments?LC(e,zC.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):hC(e,e.typeArguments)}function xC(e){return 162===e.kind&&(221===e.expression.kind&&27===e.expression.operatorToken.kind&&LC(e.expression,zC.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name))}function DC(e){return e.asteriskToken&&(zC.Debug.assert(256===e.kind||213===e.kind||169===e.kind),16777216&e.flags?LC(e.asteriskToken,zC.Diagnostics.Generators_are_not_allowed_in_an_ambient_context):!e.body&&LC(e.asteriskToken,zC.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator))}function SC(e,t){return e&&LC(e,t)}function TC(e,t){return e&&LC(e,t)}function CC(e){if(RC(e))return 1;if(244!==e.kind||!e.awaitModifier||32768&e.flags)if(!zC.isForOfStatement(e)||32768&e.flags||!zC.isIdentifier(e.initializer)||"async"!==e.initializer.escapedText){if(255===e.initializer.kind){var t=e.initializer;if(!PC(t)){var r=t.declarations;if(!r.length)return;if(1<r.length){n=243===e.kind?zC.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:zC.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return IC(t.declarations[1],n)}r=r[0];if(r.initializer){var n=243===e.kind?zC.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:zC.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return LC(r.name,n)}if(r.type)return LC(r,n=243===e.kind?zC.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:zC.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}else LC(e.initializer,zC.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async);else{var i=zC.getSourceFileOfNode(e);if(zC.isInTopLevelContext(e)){if(!wC(i))switch(zC.isEffectiveExternalModule(i,$)||Rn.add(zC.createDiagnosticForNode(e.awaitModifier,zC.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),m){case zC.ModuleKind.Node16:case zC.ModuleKind.NodeNext:if(i.impliedNodeFormat===zC.ModuleKind.CommonJS){Rn.add(zC.createDiagnosticForNode(e.awaitModifier,zC.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case zC.ModuleKind.ES2022:case zC.ModuleKind.ESNext:case zC.ModuleKind.System:if(4<=B)break;default:Rn.add(zC.createDiagnosticForNode(e.awaitModifier,zC.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!wC(i)){var n=zC.createDiagnosticForNode(e.awaitModifier,zC.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r=zC.getContainingFunction(e);return r&&171!==r.kind&&(zC.Debug.assert(0==(2&zC.getFunctionFlags(r)),"Enclosing function should never be an async function."),r=zC.createDiagnosticForNode(r,zC.Diagnostics.Did_you_mean_to_mark_this_function_as_async),zC.addRelatedInfo(n,r)),Rn.add(n),1}}}function kC(e){if(e.parameters.length===(172===e.kind?1:2))return zC.getThisParameter(e)}function EC(e,t){if(r=e,zC.isDynamicName(r)&&!Gs(r))return LC(e,t);var r}function NC(e){if(yC(e))return 1;if(169===e.kind){if(205===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||131!==zC.first(e.modifiers).kind))return IC(e,zC.Diagnostics.Modifiers_cannot_appear_here);if(SC(e.questionToken,zC.Diagnostics.An_object_member_cannot_be_declared_optional))return 1;if(TC(e.exclamationToken,zC.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return 1;if(void 0===e.body)return OC(e,e.end-1,";".length,zC.Diagnostics._0_expected,"{")}if(DC(e))return 1}return zC.isClassLike(e.parent)?B<2&&zC.isPrivateIdentifier(e.name)?LC(e.name,zC.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher):16777216&e.flags?EC(e.name,zC.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):169===e.kind&&!e.body&&EC(e.name,zC.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):258===e.parent.kind?EC(e.name,zC.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type):182===e.parent.kind&&EC(e.name,zC.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 AC(e){return zC.isStringOrNumericLiteralLike(e)||219===e.kind&&40===e.operator&&8===e.operand.kind}function FC(e){var t=e.initializer;if(t){var r=!(AC(t)||(r=t,(zC.isPropertyAccessExpression(r)||zC.isElementAccessExpression(r)&&AC(r.argumentExpression))&&zC.isEntityNameExpression(r.expression)&&1024&mx(r).flags)||110===t.kind||95===t.kind||(9===(n=t).kind||219===n.kind&&40===n.operator&&9===n.operand.kind)),n=zC.isDeclarationReadonly(e)||zC.isVariableDeclaration(e)&&zC.isVarConst(e);return!n||e.type?LC(t,zC.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):r?LC(t,zC.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference):(!n||r)&&LC(t,zC.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function PC(e){var t=e.declarations;return fC(e.declarations)||!e.declarations.length&&OC(e,t.pos,t.end-t.pos,zC.Diagnostics.Variable_declaration_list_cannot_be_empty)}function wC(e){return 0<e.parseDiagnostics.length}function IC(e,t,r,n,i){var a=zC.getSourceFileOfNode(e);if(wC(a))return!1;e=zC.getSpanOfTokenAtPosition(a,e.pos);return Rn.add(zC.createFileDiagnostic(a,e.start,e.length,t,r,n,i)),!0}function OC(e,t,r,n,i,a,o){e=zC.getSourceFileOfNode(e);return!wC(e)&&(Rn.add(zC.createFileDiagnostic(e,t,r,n,i,a,o)),!0)}function MC(e,t,r,n,i,a){return!wC(zC.getSourceFileOfNode(t))&&(Zn(e,t,r,n,i,a),!0)}function LC(e,t,r,n,i){return!wC(zC.getSourceFileOfNode(e))&&(Rn.add(zC.createDiagnosticForNode(e,t,r,n,i)),!0)}function RC(e){if(16777216&e.flags){if(!yi(e).hasReportedStatementInAmbientContext&&(zC.isFunctionLike(e.parent)||zC.isAccessor(e.parent)))return yi(e).hasReportedStatementInAmbientContext=IC(e,zC.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(235===e.parent.kind||262===e.parent.kind||305===e.parent.kind){var t=yi(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=IC(e,zC.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function BC(e){if(32&e.numericLiteralFlags){var t=void 0;if(1<=B?t=zC.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:zC.isChildOfNodeWithKind(e,196)?t=zC.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:zC.isChildOfNodeWithKind(e,299)&&(t=zC.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=zC.isPrefixUnaryExpression(e.parent)&&40===e.parent.operator,n=(r?"-":"")+"0o"+e.text;return LC(r?e.parent:e,t,n)}}t=e,n=-1!==zC.getTextOfNode(t).indexOf("."),e=16&t.numericLiteralFlags,n||e||+t.text<=Math.pow(2,53)-1||ti(!1,zC.createDiagnosticForNode(t,zC.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function jC(e){return!!zC.forEach(e.elements,function(e){if(e.isTypeOnly)return IC(e,270===e.kind?zC.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:zC.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function JC(e,t,r,n){if(1048576&t.flags&&2621440&e.flags){var i=im(t,e);if(i)return i;e=Jc(e);if(e){e=tm(e,t);if(e)return Hp(t,zC.map(e,function(e){return[function(){return _s(e)},e.escapedName]}),r,void 0,n)}}}},(e=QC=QC||{}).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",zC.signatureHasRestParameter=ak,zC.signatureHasLiteralTypes=ok}(ts=ts||{}),function(m){function c(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,l=-1;(0<n||i<s)&&(a=[],o=e.hasTrailingComma&&n+i===s);for(var u=0;u<i;u++){var _=e[u+n],d=void 0!==_?t(_):void 0;if((void 0!==a||void 0===d||d!==_)&&(void 0===a&&(a=e.slice(0,u),o=e.hasTrailingComma,c=e.pos,l=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,l),s}return e}function u(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 _(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 d(e,t,r,n){void 0===n&&(n=c),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}function p(e,t,r){r.startBlockScope();e=c(e,t,m.isStatement,r.factory.liftToBlock),t=r.endBlockScope();return m.some(t)?m.isBlock(e)?(t.push.apply(t,e.statements),r.factory.updateBlock(e,t)):(t.push(e),r.factory.createBlock(t)):e}m.visitNode=c,m.visitNodes=l,m.visitLexicalEnvironment=u,m.visitParameterList=_,m.visitFunctionBody=d,m.visitIterationBody=p,m.visitEachChild=function(e,t,r,n,i,a){if(void 0===n&&(n=l),void 0===a&&(a=c),void 0!==e){var o=e.kind;if(0<o&&o<=160||192===o)return e;var s=r.factory;switch(o){case 79:return m.Debug.type(e),s.updateIdentifier(e,n(e.typeArguments,t,m.isTypeNodeOrTypeParameterDeclaration));case 161:return m.Debug.type(e),s.updateQualifiedName(e,a(e.left,t,m.isEntityName),a(e.right,t,m.isIdentifier));case 162:return m.Debug.type(e),s.updateComputedPropertyName(e,a(e.expression,t,m.isExpression));case 163:return m.Debug.type(e),s.updateTypeParameterDeclaration(e,n(e.modifiers,t,m.isModifier),a(e.name,t,m.isIdentifier),a(e.constraint,t,m.isTypeNode),a(e.default,t,m.isTypeNode));case 164:return m.Debug.type(e),s.updateParameterDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.dotDotDotToken,i,m.isDotDotDotToken),a(e.name,t,m.isBindingName),a(e.questionToken,i,m.isQuestionToken),a(e.type,t,m.isTypeNode),a(e.initializer,t,m.isExpression));case 165:return m.Debug.type(e),s.updateDecorator(e,a(e.expression,t,m.isExpression));case 166:return m.Debug.type(e),s.updatePropertySignature(e,n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),a(e.questionToken,i,m.isToken),a(e.type,t,m.isTypeNode));case 167:return m.Debug.type(e),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.isQuestionOrExclamationToken),a(e.type,t,m.isTypeNode),a(e.initializer,t,m.isExpression));case 168:return m.Debug.type(e),s.updateMethodSignature(e,n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),a(e.questionToken,i,m.isQuestionToken),n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 169:return m.Debug.type(e),s.updateMethodDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.asteriskToken,i,m.isAsteriskToken),a(e.name,t,m.isPropertyName),a(e.questionToken,i,m.isQuestionToken),n(e.typeParameters,t,m.isTypeParameterDeclaration),_(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),d(e.body,t,r,a));case 171:return m.Debug.type(e),s.updateConstructorDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),_(e.parameters,t,r,n),d(e.body,t,r,a));case 172:return m.Debug.type(e),s.updateGetAccessorDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),_(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),d(e.body,t,r,a));case 173:return m.Debug.type(e),s.updateSetAccessorDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isPropertyName),_(e.parameters,t,r,n),d(e.body,t,r,a));case 170:return m.Debug.type(e),r.startLexicalEnvironment(),r.suspendLexicalEnvironment(),s.updateClassStaticBlockDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),d(e.body,t,r,a));case 174:return m.Debug.type(e),s.updateCallSignature(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 175:return m.Debug.type(e),s.updateConstructSignature(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 176:return m.Debug.type(e),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 177:return m.Debug.type(e),s.updateTypePredicateNode(e,a(e.assertsModifier,t,m.isAssertsKeyword),a(e.parameterName,t,m.isIdentifierOrThisTypeNode),a(e.type,t,m.isTypeNode));case 178:return m.Debug.type(e),s.updateTypeReferenceNode(e,a(e.typeName,t,m.isEntityName),n(e.typeArguments,t,m.isTypeNode));case 179:return m.Debug.type(e),s.updateFunctionTypeNode(e,n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 180:return m.Debug.type(e),s.updateConstructorTypeNode(e,n(e.modifiers,t,m.isModifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),n(e.parameters,t,m.isParameterDeclaration),a(e.type,t,m.isTypeNode));case 181:return m.Debug.type(e),s.updateTypeQueryNode(e,a(e.exprName,t,m.isEntityName),n(e.typeArguments,t,m.isTypeNode));case 182:return m.Debug.type(e),s.updateTypeLiteralNode(e,n(e.members,t,m.isTypeElement));case 183:return m.Debug.type(e),s.updateArrayTypeNode(e,a(e.elementType,t,m.isTypeNode));case 184:return m.Debug.type(e),s.updateTupleTypeNode(e,n(e.elements,t,m.isTypeNode));case 185:return m.Debug.type(e),s.updateOptionalTypeNode(e,a(e.type,t,m.isTypeNode));case 186:return m.Debug.type(e),s.updateRestTypeNode(e,a(e.type,t,m.isTypeNode));case 187:return m.Debug.type(e),s.updateUnionTypeNode(e,n(e.types,t,m.isTypeNode));case 188:return m.Debug.type(e),s.updateIntersectionTypeNode(e,n(e.types,t,m.isTypeNode));case 189:return m.Debug.type(e),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 190:return m.Debug.type(e),s.updateInferTypeNode(e,a(e.typeParameter,t,m.isTypeParameterDeclaration));case 200:return m.Debug.type(e),s.updateImportTypeNode(e,a(e.argument,t,m.isTypeNode),a(e.assertions,t,m.isNode),a(e.qualifier,t,m.isEntityName),l(e.typeArguments,t,m.isTypeNode),e.isTypeOf);case 295:return m.Debug.type(e),s.updateImportTypeAssertionContainer(e,a(e.assertClause,t,m.isNode),e.multiLine);case 197:return m.Debug.type(e),s.updateNamedTupleMember(e,c(e.dotDotDotToken,t,m.isDotDotDotToken),c(e.name,t,m.isIdentifier),c(e.questionToken,t,m.isQuestionToken),c(e.type,t,m.isTypeNode));case 191:return m.Debug.type(e),s.updateParenthesizedType(e,a(e.type,t,m.isTypeNode));case 193:return m.Debug.type(e),s.updateTypeOperatorNode(e,a(e.type,t,m.isTypeNode));case 194:return m.Debug.type(e),s.updateIndexedAccessTypeNode(e,a(e.objectType,t,m.isTypeNode),a(e.indexType,t,m.isTypeNode));case 195:return m.Debug.type(e),s.updateMappedTypeNode(e,a(e.readonlyToken,i,m.isReadonlyKeywordOrPlusOrMinusToken),a(e.typeParameter,t,m.isTypeParameterDeclaration),a(e.nameType,t,m.isTypeNode),a(e.questionToken,i,m.isQuestionOrPlusOrMinusToken),a(e.type,t,m.isTypeNode),n(e.members,t,m.isTypeElement));case 196:return m.Debug.type(e),s.updateLiteralTypeNode(e,a(e.literal,t,m.isExpression));case 198:return m.Debug.type(e),s.updateTemplateLiteralType(e,a(e.head,t,m.isTemplateHead),n(e.templateSpans,t,m.isTemplateLiteralTypeSpan));case 199:return m.Debug.type(e),s.updateTemplateLiteralTypeSpan(e,a(e.type,t,m.isTypeNode),a(e.literal,t,m.isTemplateMiddleOrTemplateTail));case 201:return m.Debug.type(e),s.updateObjectBindingPattern(e,n(e.elements,t,m.isBindingElement));case 202:return m.Debug.type(e),s.updateArrayBindingPattern(e,n(e.elements,t,m.isArrayBindingElement));case 203:return m.Debug.type(e),s.updateBindingElement(e,a(e.dotDotDotToken,i,m.isDotDotDotToken),a(e.propertyName,t,m.isPropertyName),a(e.name,t,m.isBindingName),a(e.initializer,t,m.isExpression));case 204:return m.Debug.type(e),s.updateArrayLiteralExpression(e,n(e.elements,t,m.isExpression));case 205:return m.Debug.type(e),s.updateObjectLiteralExpression(e,n(e.properties,t,m.isObjectLiteralElementLike));case 206:return 32&e.flags?(m.Debug.type(e),s.updatePropertyAccessChain(e,a(e.expression,t,m.isExpression),a(e.questionDotToken,i,m.isQuestionDotToken),a(e.name,t,m.isMemberName))):(m.Debug.type(e),s.updatePropertyAccessExpression(e,a(e.expression,t,m.isExpression),a(e.name,t,m.isMemberName)));case 207:return 32&e.flags?(m.Debug.type(e),s.updateElementAccessChain(e,a(e.expression,t,m.isExpression),a(e.questionDotToken,i,m.isQuestionDotToken),a(e.argumentExpression,t,m.isExpression))):(m.Debug.type(e),s.updateElementAccessExpression(e,a(e.expression,t,m.isExpression),a(e.argumentExpression,t,m.isExpression)));case 208:return 32&e.flags?(m.Debug.type(e),s.updateCallChain(e,a(e.expression,t,m.isExpression),a(e.questionDotToken,i,m.isQuestionDotToken),n(e.typeArguments,t,m.isTypeNode),n(e.arguments,t,m.isExpression))):(m.Debug.type(e),s.updateCallExpression(e,a(e.expression,t,m.isExpression),n(e.typeArguments,t,m.isTypeNode),n(e.arguments,t,m.isExpression)));case 209:return m.Debug.type(e),s.updateNewExpression(e,a(e.expression,t,m.isExpression),n(e.typeArguments,t,m.isTypeNode),n(e.arguments,t,m.isExpression));case 210:return m.Debug.type(e),s.updateTaggedTemplateExpression(e,a(e.tag,t,m.isExpression),l(e.typeArguments,t,m.isTypeNode),a(e.template,t,m.isTemplateLiteral));case 211:return m.Debug.type(e),s.updateTypeAssertion(e,a(e.type,t,m.isTypeNode),a(e.expression,t,m.isExpression));case 212:return m.Debug.type(e),s.updateParenthesizedExpression(e,a(e.expression,t,m.isExpression));case 213:return m.Debug.type(e),s.updateFunctionExpression(e,n(e.modifiers,t,m.isModifier),a(e.asteriskToken,i,m.isAsteriskToken),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),_(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),d(e.body,t,r,a));case 214:return m.Debug.type(e),s.updateArrowFunction(e,n(e.modifiers,t,m.isModifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),_(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),a(e.equalsGreaterThanToken,i,m.isEqualsGreaterThanToken),d(e.body,t,r,a));case 215:return m.Debug.type(e),s.updateDeleteExpression(e,a(e.expression,t,m.isExpression));case 216:return m.Debug.type(e),s.updateTypeOfExpression(e,a(e.expression,t,m.isExpression));case 217:return m.Debug.type(e),s.updateVoidExpression(e,a(e.expression,t,m.isExpression));case 218:return m.Debug.type(e),s.updateAwaitExpression(e,a(e.expression,t,m.isExpression));case 219:return m.Debug.type(e),s.updatePrefixUnaryExpression(e,a(e.operand,t,m.isExpression));case 220:return m.Debug.type(e),s.updatePostfixUnaryExpression(e,a(e.operand,t,m.isExpression));case 221:return m.Debug.type(e),s.updateBinaryExpression(e,a(e.left,t,m.isExpression),a(e.operatorToken,i,m.isBinaryOperatorToken),a(e.right,t,m.isExpression));case 222:return m.Debug.type(e),s.updateConditionalExpression(e,a(e.condition,t,m.isExpression),a(e.questionToken,i,m.isQuestionToken),a(e.whenTrue,t,m.isExpression),a(e.colonToken,i,m.isColonToken),a(e.whenFalse,t,m.isExpression));case 223:return m.Debug.type(e),s.updateTemplateExpression(e,a(e.head,t,m.isTemplateHead),n(e.templateSpans,t,m.isTemplateSpan));case 224:return m.Debug.type(e),s.updateYieldExpression(e,a(e.asteriskToken,i,m.isAsteriskToken),a(e.expression,t,m.isExpression));case 225:return m.Debug.type(e),s.updateSpreadElement(e,a(e.expression,t,m.isExpression));case 226:return m.Debug.type(e),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 228:return m.Debug.type(e),s.updateExpressionWithTypeArguments(e,a(e.expression,t,m.isExpression),n(e.typeArguments,t,m.isTypeNode));case 229:return m.Debug.type(e),s.updateAsExpression(e,a(e.expression,t,m.isExpression),a(e.type,t,m.isTypeNode));case 230:return 32&e.flags?(m.Debug.type(e),s.updateNonNullChain(e,a(e.expression,t,m.isExpression))):(m.Debug.type(e),s.updateNonNullExpression(e,a(e.expression,t,m.isExpression)));case 231:return m.Debug.type(e),s.updateMetaProperty(e,a(e.name,t,m.isIdentifier));case 233:return m.Debug.type(e),s.updateTemplateSpan(e,a(e.expression,t,m.isExpression),a(e.literal,t,m.isTemplateMiddleOrTemplateTail));case 235:return m.Debug.type(e),s.updateBlock(e,n(e.statements,t,m.isStatement));case 237:return m.Debug.type(e),s.updateVariableStatement(e,n(e.modifiers,t,m.isModifier),a(e.declarationList,t,m.isVariableDeclarationList));case 238:return m.Debug.type(e),s.updateExpressionStatement(e,a(e.expression,t,m.isExpression));case 239:return m.Debug.type(e),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 240:return m.Debug.type(e),s.updateDoStatement(e,p(e.statement,t,r),a(e.expression,t,m.isExpression));case 241:return m.Debug.type(e),s.updateWhileStatement(e,a(e.expression,t,m.isExpression),p(e.statement,t,r));case 242:return m.Debug.type(e),s.updateForStatement(e,a(e.initializer,t,m.isForInitializer),a(e.condition,t,m.isExpression),a(e.incrementor,t,m.isExpression),p(e.statement,t,r));case 243:return m.Debug.type(e),s.updateForInStatement(e,a(e.initializer,t,m.isForInitializer),a(e.expression,t,m.isExpression),p(e.statement,t,r));case 244:return m.Debug.type(e),s.updateForOfStatement(e,a(e.awaitModifier,i,m.isAwaitKeyword),a(e.initializer,t,m.isForInitializer),a(e.expression,t,m.isExpression),p(e.statement,t,r));case 245:return m.Debug.type(e),s.updateContinueStatement(e,a(e.label,t,m.isIdentifier));case 246:return m.Debug.type(e),s.updateBreakStatement(e,a(e.label,t,m.isIdentifier));case 247:return m.Debug.type(e),s.updateReturnStatement(e,a(e.expression,t,m.isExpression));case 248:return m.Debug.type(e),s.updateWithStatement(e,a(e.expression,t,m.isExpression),a(e.statement,t,m.isStatement,s.liftToBlock));case 249:return m.Debug.type(e),s.updateSwitchStatement(e,a(e.expression,t,m.isExpression),a(e.caseBlock,t,m.isCaseBlock));case 250:return m.Debug.type(e),s.updateLabeledStatement(e,a(e.label,t,m.isIdentifier),a(e.statement,t,m.isStatement,s.liftToBlock));case 251:return m.Debug.type(e),s.updateThrowStatement(e,a(e.expression,t,m.isExpression));case 252:return m.Debug.type(e),s.updateTryStatement(e,a(e.tryBlock,t,m.isBlock),a(e.catchClause,t,m.isCatchClause),a(e.finallyBlock,t,m.isBlock));case 254:return m.Debug.type(e),s.updateVariableDeclaration(e,a(e.name,t,m.isBindingName),a(e.exclamationToken,i,m.isExclamationToken),a(e.type,t,m.isTypeNode),a(e.initializer,t,m.isExpression));case 255:return m.Debug.type(e),s.updateVariableDeclarationList(e,n(e.declarations,t,m.isVariableDeclaration));case 256:return m.Debug.type(e),s.updateFunctionDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.asteriskToken,i,m.isAsteriskToken),a(e.name,t,m.isIdentifier),n(e.typeParameters,t,m.isTypeParameterDeclaration),_(e.parameters,t,r,n),a(e.type,t,m.isTypeNode),d(e.body,t,r,a));case 257:return m.Debug.type(e),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 258:return m.Debug.type(e),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 259:return m.Debug.type(e),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 260:return m.Debug.type(e),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 261:return m.Debug.type(e),s.updateModuleDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.name,t,m.isModuleName),a(e.body,t,m.isModuleBody));case 262:return m.Debug.type(e),s.updateModuleBlock(e,n(e.statements,t,m.isStatement));case 263:return m.Debug.type(e),s.updateCaseBlock(e,n(e.clauses,t,m.isCaseOrDefaultClause));case 264:return m.Debug.type(e),s.updateNamespaceExportDeclaration(e,a(e.name,t,m.isIdentifier));case 265:return m.Debug.type(e),s.updateImportEqualsDeclaration(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),e.isTypeOnly,a(e.name,t,m.isIdentifier),a(e.moduleReference,t,m.isModuleReference));case 266:return m.Debug.type(e),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),a(e.assertClause,t,m.isAssertClause));case 293:return m.Debug.type(e),s.updateAssertClause(e,n(e.elements,t,m.isAssertEntry),e.multiLine);case 294:return m.Debug.type(e),s.updateAssertEntry(e,a(e.name,t,m.isAssertionKey),a(e.value,t,m.isExpressionNode));case 267:return m.Debug.type(e),s.updateImportClause(e,e.isTypeOnly,a(e.name,t,m.isIdentifier),a(e.namedBindings,t,m.isNamedImportBindings));case 268:return m.Debug.type(e),s.updateNamespaceImport(e,a(e.name,t,m.isIdentifier));case 274:return m.Debug.type(e),s.updateNamespaceExport(e,a(e.name,t,m.isIdentifier));case 269:return m.Debug.type(e),s.updateNamedImports(e,n(e.elements,t,m.isImportSpecifier));case 270:return m.Debug.type(e),s.updateImportSpecifier(e,e.isTypeOnly,a(e.propertyName,t,m.isIdentifier),a(e.name,t,m.isIdentifier));case 271:return m.Debug.type(e),s.updateExportAssignment(e,n(e.decorators,t,m.isDecorator),n(e.modifiers,t,m.isModifier),a(e.expression,t,m.isExpression));case 272:return m.Debug.type(e),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),a(e.assertClause,t,m.isAssertClause));case 273:return m.Debug.type(e),s.updateNamedExports(e,n(e.elements,t,m.isExportSpecifier));case 275:return m.Debug.type(e),s.updateExportSpecifier(e,e.isTypeOnly,a(e.propertyName,t,m.isIdentifier),a(e.name,t,m.isIdentifier));case 277:return m.Debug.type(e),s.updateExternalModuleReference(e,a(e.expression,t,m.isExpression));case 278:return m.Debug.type(e),s.updateJsxElement(e,a(e.openingElement,t,m.isJsxOpeningElement),n(e.children,t,m.isJsxChild),a(e.closingElement,t,m.isJsxClosingElement));case 279:return m.Debug.type(e),s.updateJsxSelfClosingElement(e,a(e.tagName,t,m.isJsxTagNameExpression),n(e.typeArguments,t,m.isTypeNode),a(e.attributes,t,m.isJsxAttributes));case 280:return m.Debug.type(e),s.updateJsxOpeningElement(e,a(e.tagName,t,m.isJsxTagNameExpression),n(e.typeArguments,t,m.isTypeNode),a(e.attributes,t,m.isJsxAttributes));case 281:return m.Debug.type(e),s.updateJsxClosingElement(e,a(e.tagName,t,m.isJsxTagNameExpression));case 282:return m.Debug.type(e),s.updateJsxFragment(e,a(e.openingFragment,t,m.isJsxOpeningFragment),n(e.children,t,m.isJsxChild),a(e.closingFragment,t,m.isJsxClosingFragment));case 285:return m.Debug.type(e),s.updateJsxAttribute(e,a(e.name,t,m.isIdentifier),a(e.initializer,t,m.isStringLiteralOrJsxExpression));case 286:return m.Debug.type(e),s.updateJsxAttributes(e,n(e.properties,t,m.isJsxAttributeLike));case 287:return m.Debug.type(e),s.updateJsxSpreadAttribute(e,a(e.expression,t,m.isExpression));case 288:return m.Debug.type(e),s.updateJsxExpression(e,a(e.expression,t,m.isExpression));case 289:return m.Debug.type(e),s.updateCaseClause(e,a(e.expression,t,m.isExpression),n(e.statements,t,m.isStatement));case 290:return m.Debug.type(e),s.updateDefaultClause(e,n(e.statements,t,m.isStatement));case 291:return m.Debug.type(e),s.updateHeritageClause(e,n(e.types,t,m.isExpressionWithTypeArguments));case 292:return m.Debug.type(e),s.updateCatchClause(e,a(e.variableDeclaration,t,m.isVariableDeclaration),a(e.block,t,m.isBlock));case 296:return m.Debug.type(e),s.updatePropertyAssignment(e,a(e.name,t,m.isPropertyName),a(e.initializer,t,m.isExpression));case 297:return m.Debug.type(e),s.updateShorthandPropertyAssignment(e,a(e.name,t,m.isIdentifier),a(e.objectAssignmentInitializer,t,m.isExpression));case 298:return m.Debug.type(e),s.updateSpreadAssignment(e,a(e.expression,t,m.isExpression));case 299:return m.Debug.type(e),s.updateEnumMember(e,a(e.name,t,m.isPropertyName),a(e.initializer,t,m.isExpression));case 305:return m.Debug.type(e),s.updateSourceFile(e,u(e.statements,t,r));case 350:return m.Debug.type(e),s.updatePartiallyEmittedExpression(e,a(e.expression,t,m.isExpression));case 351:return m.Debug.type(e),s.updateCommaListExpression(e,n(e.elements,t,m.isExpression));default:return e}}}}(ts=ts||{}),function(J){J.createSourceMapGenerator=function(n,e,t,i,r){var a,o,y=(r=r.extendedDiagnostics?J.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):J.performance.nullTimer).enter,h=r.exit,s=[],c=[],l=new J.Map,u=[],_=[],d="",p=0,f=0,g=0,m=0,v=0,b=0,x=!1,D=0,S=0,T=0,C=0,k=0,E=0,N=!1,A=!1,F=!1;return{getSources:function(){return s},addSource:P,setSourceContent:w,addName:I,addMapping:O,appendSourceMap:function(e,t,r,n,i,a){J.Debug.assert(D<=e,"generatedLine cannot backtrack"),J.Debug.assert(0<=t,"generatedCharacter cannot be negative"),y();for(var o,s=[],c=z(r.mappings),l=c.next();!l.done;l=c.next()){var u,_,d,p,f,g,m=l.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=_=u=void 0)!==m.sourceIndex&&(void 0===(u=s[m.sourceIndex])&&(g=r.sources[m.sourceIndex],f=r.sourceRoot?J.combinePaths(r.sourceRoot,g):g,g=J.combinePaths(J.getDirectoryPath(n),f),s[m.sourceIndex]=u=P(g),r.sourcesContent&&"string"==typeof r.sourcesContent[m.sourceIndex]&&w(u,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=I(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,O(g,0==f?m+t:m,u,_,d,p))}h()},toJSON:B,toString:function(){return JSON.stringify(B())}};function P(e){y();var t=J.getRelativePathToDirectoryOrUrl(i,e,n.getCurrentDirectory(),n.getCanonicalFileName,!0),r=l.get(t);return void 0===r&&(r=c.length,c.push(t),s.push(e),l.set(t,r)),h(),r}function w(e,t){if(y(),null!==t){for(a=a||[];a.length<e;)a.push(null);a[e]=t}h()}function I(e){y();var t=(o=o||new J.Map).get(e);return void 0===t&&(t=u.length,u.push(e),o.set(e,t)),h(),t}function O(e,t,r,n,i,a){var o,s,c;J.Debug.assert(D<=e,"generatedLine cannot backtrack"),J.Debug.assert(0<=t,"generatedCharacter cannot be negative"),J.Debug.assert(void 0===r||0<=r,"sourceIndex cannot be negative"),J.Debug.assert(void 0===n||0<=n,"sourceLine cannot be negative"),J.Debug.assert(void 0===i||0<=i,"sourceCharacter cannot be negative"),y(),N&&D===e&&S===t&&(s=n,c=i,void 0===(o=r)||void 0===s||void 0===c||T!==o||!(s<C||C===s&&c<k))||(L(),D=e,S=t,N=!(F=A=!1)),void 0!==r&&void 0!==n&&void 0!==i&&(T=r,C=n,k=i,A=!0,void 0!==a&&(E=a,F=!0)),h()}function M(e){_.push(e),1024<=_.length&&R()}function L(){if(N&&(!x||p!==D||f!==S||g!==T||m!==C||v!==k||b!==E)){if(y(),p<D){for(;M(59),p++,p<D;);f=0}else J.Debug.assertEqual(p,D,"generatedLine cannot backtrack"),x&&M(44);j(S-f),f=S,A&&(j(T-g),g=T,j(C-m),m=C,j(k-v),v=k,F&&(j(E-b),b=E)),x=!0,h()}}function R(){0<_.length&&(d+=String.fromCharCode.apply(void 0,_),_.length=0)}function B(){return L(),R(),{version:3,file:e,sourceRoot:t,sources:c,names:u,mappings:d,sourcesContent:a}}function j(e){e<0?e=1+(-e<<1):e<<=1;do{var t=31&e;0<(e>>=5)&&(t|=32),M(0<=(t=t)&&t<26?65+t:26<=t&&t<52?97+t-26:52<=t&&t<62?48+t-52:62===t?43:63===t?47:J.Debug.fail("".concat(t,": not a base64 value")))}while(0<e)}};var i=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,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&&J.isArray(e.sources)&&J.every(e.sources,J.isString)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||J.isArray(e.sourcesContent)&&J.every(e.sourcesContent,t))&&(void 0===e.names||null===e.names||J.isArray(e.names)&&J.every(e.names,J.isString))}function z(i){var t,r=!1,a=0,n=0,o=0,s=0,c=0,l=0,u=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(l+=y(),g())return d();if(l<0)return f("Invalid sourceCharacter found");if(!m()){if(e=!0,u+=y(),g())return d();if(u<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?l:void 0,nameIndex:t?u: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 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 J.Debug.assert(e.sourceIndex===t.sourceIndex),J.compareValues(e.sourcePosition,t.sourcePosition)}function y(e,t){return J.compareValues(e.generatedPosition,t.generatedPosition)}function h(e){return e.sourcePosition}function v(e){return e.generatedPosition}J.getLineInfo=function(t,r){return{getLineCount:function(){return r.length},getLineText:function(e){return t.substring(r[e],r[e+1])}}},J.tryGetSourceMappingURL=function(e){for(var t=e.getLineCount()-1;0<=t;t--){var r=e.getLineText(t),n=i.exec(r);if(n)return J.trimStringEnd(n[1]);if(!r.match(a))break}},J.isRawSourceMap=r,J.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(r(t))return t}catch(e){}},J.decodeMappings=z,J.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},J.isSourceMapping=p,J.createDocumentPositionMapper=function(i,a,e){var r,o,s,e=J.getDirectoryPath(e),t=a.sourceRoot?J.getNormalizedAbsolutePath(a.sourceRoot,e):e,c=J.getNormalizedAbsolutePath(a.file,e),l=i.getSourceFileLike(c),u=a.sources.map(function(e){return J.getNormalizedAbsolutePath(e,t)}),_=new J.Map(u.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=J.sortAndDeduplicate(e,y,g)}return o}();if(!J.some(t))return e;var r=J.binarySearchKey(t,e.pos,v,J.compareValues);r<0&&(r=~r);r=t[r];return void 0!==r&&f(r)?{fileName:u[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 J.sortAndDeduplicate(e,m,g)})}return s[e]}(t);if(!J.some(r))return e;var n=J.binarySearchKey(r,e.pos,h,J.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!==l?J.getPositionOfLineAndCharacter(l,e.generatedLine,e.generatedCharacter,!0):-1;return p(e)&&(r=i.getSourceFileLike(u[e.sourceIndex]),t=a.sources[e.sourceIndex],r=void 0!==r?J.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=z(a.mappings),t=J.arrayFrom(e,n),r=void 0!==e.error?(i.log&&i.log("Encountered error while decoding sourcemap: ".concat(e.error)),J.emptyArray):t),r}},J.identitySourceMapConsumer={getSourcePosition:J.identity,getGeneratedPosition:J.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)}function n(e){if(x.isExpressionStatement(e)){e=x.skipParentheses(e.expression);return x.isSuperCall(e)?e:void 0}}function r(e){return t=e,x.isPropertyDeclaration(t)&&x.hasStaticModifier(t)||x.isClassStaticBlockDeclaration(e);var t}x.getOriginalNodeId=D,x.chainBundle=function(t,r){return function(e){return(305===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,l=!1,u=!1,_=!1,d=!1,p=0,f=t.statements;p<f.length;p++){var g,m=f[p];switch(m.kind){case 266:i.push(m),!_&&S(m)&&(_=!0),!d&&T(m)&&(d=!0);break;case 265:277===m.moduleReference.kind&&i.push(m);break;case 272: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),u=!0):b(m);break;case 271:m.isExportEquals&&!n&&(n=m);break;case 237: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 256:x.hasSyntacticModifier(m,1)&&(x.hasSyntacticModifier(m,512)?l||(C(s,D(m),e.factory.getDeclarationName(m)),l=!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 257:x.hasSyntacticModifier(m,1)&&(x.hasSyntacticModifier(m,512)?l||(C(s,D(m),e.factory.getDeclarationName(m)),l=!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,u,_,d))&&i.unshift(r),{externalImports:i,exportSpecifiers:o,exportEquals:n,hasExportStarsToExportValues:u,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.isCompoundAssignment=function(e){return 64<=e&&e<=78},x.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},x.getSuperCallFromStatement=n,x.findSuperStatementIndex=function(e,t){for(var r=t;r<e.length;r+=1)if(n(e[r]))return r;return-1},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.getStaticPropertiesAndClassStaticBlock=function(e){return x.filter(e.members,r)},x.isInitializedProperty=function(e){return 167===e.kind&&void 0!==e.initializer},x.isNonStaticMethodOrAccessorWithPrivateName=function(e){return!x.isStatic(e)&&x.isMethodOrAccessor(e)&&x.isPrivateIdentifier(e.name)}}(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 l=0;l<c;l++){var u,_,d=s[l];h.getRestIndicatorOfBindingOrAssignmentElement(d)?l===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)):(u=h.getPropertyNameOfBindingOrAssignmentElement(d),!(1<=e.level)||49152&d.transformFlags||49152&h.getTargetOfBindingOrAssignmentElement(d).transformFlags||h.isComputedPropertyName(u)?(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,u),h.isComputedPropertyName(u)&&(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 l=0;l<c;l++){var u,_,d=s[l];1<=e.level?a=32768&d.transformFlags||e.hasTransformedPriorElement&&!y(d)?(e.hasTransformedPriorElement=!0,u=e.context.factory.createTempVariable(void 0),e.hoistTempVariables&&e.context.hoistVariableDeclaration(u),o=h.append(o,[u,d]),h.append(a,e.createArrayBindingOrAssignmentElement(u))):h.append(a,d):h.isOmittedExpression(d)||(h.getRestIndicatorOfBindingOrAssignmentElement(d)?l===c-1&&(_=e.context.factory.createArraySliceCall(n,l),x(e,d,_,d)):(_=e.context.factory.createElementAccessExpression(n,l),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 u(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:l,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,l(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:u,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 l(e){s=h.append(s,e)}},h.flattenDestructuringBinding=function(e,t,i,r,n,a,o){void 0===a&&(a=!1);var s,c=[],l=[],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,h.visitNode(t,r.visitor),!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 u=0,_=c;u<_.length;u++){var d=_[u],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),l.push(p)}return l;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&&(f.Debug.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),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=[],l=[],u=t.template;if(a===g.LiftRestriction&&!f.hasInvalidEscape(u))return f.visitEachChild(t,r,e);if(f.isNoSubstitutionTemplateLiteral(u))c.push(m(u)),l.push(y(u,n));else{c.push(m(u.head)),l.push(y(u.head,n));for(var _=0,d=u.templateSpans;_<d.length;_++){var p=d[_];c.push(m(p.literal)),l.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(l)),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(Be){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",Be.transformTypeScript=function(c){var l,u,_,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=Be.getStrictOptionValue(S,"strictNullChecks"),C=Be.getEmitScriptTarget(S),k=Be.getEmitModuleKind(S),E=c.onEmitNode,r=c.onSubstituteNode;return c.onEmitNode=function(e,t,r){var n=a,i=l;Be.isSourceFile(t)&&(l=t);2&f&&function(e){return 261===Be.getOriginalNode(e).kind}(t)&&(a|=2);8&f&&function(e){return 260===Be.getOriginalNode(e).kind}(t)&&(a|=8);E(e,t,r),a=n,l=i},c.onSubstituteNode=function(e,t){{if(t=r(e,t),1===e)return function(e){switch(e.kind){case 79: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 Be.setSourceMapRange(t,e),Be.setCommentRange(t,e),t}}}return}(e)||Me(e)||e}(e);case 206:case 207:return Le(e)}return e}(t);if(Be.isShorthandPropertyAssignment(t))return function(e){if(2&f){var t=e.name,r=Me(t);if(r){if(e.objectAssignmentInitializer){var n=m.createAssignment(r,e.objectAssignmentInitializer);return Be.setTextRange(m.createPropertyAssignment(t,n),e)}return Be.setTextRange(m.createPropertyAssignment(t,r),e)}}return e}(t)}return t},c.enableSubstitution(206),c.enableSubstitution(207),function(e){return(306!==e.kind?t:function(e){return m.createBundle(e.sourceFiles.map(t),Be.mapDefined(e.prepends,function(e){return 308===e.kind?Be.createUnparsedSourceFile(e,"js"):e}))})(e)};function t(e){if(e.isDeclarationFile)return e;e=N(l=e,R);return Be.addEmitHelpers(e,c.readEmitHelpers()),l=void 0,e}function N(e,t){var r=d,n=o,i=p,a=s;!function(e){switch(e.kind){case 305:case 263:case 262:case 235:d=e,p=o=void 0;break;case 257:case 256:if(Be.hasSyntacticModifier(e,2))break;e.name?ye(e):Be.Debug.assert(257===e.kind||Be.hasSyntacticModifier(e,512)),Be.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 266:case 265:case 271:case 272:return function(e){if(Be.getParseTreeNode(e)!==e)return 1&e.transformFlags?Be.visitEachChild(e,A,c):e;switch(e.kind){case 266:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;var t=Be.visitNode(e.importClause,xe,Be.isImportClause);return t||1===S.importsNotUsedAsValues||2===S.importsNotUsedAsValues?m.updateImportDeclaration(e,void 0,void 0,t,e.moduleSpecifier,e.assertClause):void 0}(e);case 265:return Ce(e);case 271:return function(e){return D.isValueAliasDeclaration(e)?Be.visitEachChild(e,A,c):void 0}(e);case 272:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||Be.isNamespaceExport(e.exportClause))return e;var r=!!e.moduleSpecifier&&(1===S.importsNotUsedAsValues||2===S.importsNotUsedAsValues),t=Be.visitNode(e.exportClause,function(e){return t=e,e=r,Be.isNamespaceExport(t)?function(e){return m.updateNamespaceExport(e,Be.visitNode(e.name,A,Be.isIdentifier))}(t):function(e,t){var r=Be.visitNodes(e.elements,Te,Be.isExportSpecifier);return t||Be.some(r)?m.updateNamedExports(e,r):void 0}(t,e);var t},Be.isNamedExportBindings);return t?m.updateExportDeclaration(e,void 0,void 0,e.isTypeOnly,t,e.moduleSpecifier,e.assertClause):void 0}(e);default:Be.Debug.fail("Unhandled ellided statement")}}(e);default:return n(e)}}function P(e){return N(e,w)}function w(e){if(272!==e.kind&&266!==e.kind&&267!==e.kind&&(265!==e.kind||277!==e.moduleReference.kind))return 1&e.transformFlags||Be.hasSyntacticModifier(e,1)?L(e):e}function I(e){return N(e,O)}function O(e){switch(e.kind){case 171:return _e(e);case 167:return ue(e);case 176:case 172:case 173:case 169:case 170:return n(e);case 234:return e;default:return Be.Debug.failBadSyntaxKind(e)}}function M(e){if(!(116958&Be.modifierToFlag(e.kind)||u&&93===e.kind))return e}function L(e){if(Be.isStatement(e)&&Be.hasSyntacticModifier(e,2))return m.createNotEmittedStatement(e);switch(e.kind){case 93:case 88:return u?void 0:e;case 123:case 121:case 122:case 126:case 159:case 85:case 135:case 145:case 101:case 144:case 183:case 184:case 185:case 186:case 182:case 177:case 163:case 130:case 155:case 133:case 150:case 147:case 143:case 114:case 151:case 180:case 179:case 181:case 178:case 187:case 188:case 189:case 191:case 192:case 193:case 194:case 195:case 196:case 176:case 165:return;case 259:return m.createNotEmittedStatement(e);case 167:return ue(e);case 264:return;case 171:return _e(e);case 258:return m.createNotEmittedStatement(e);case 257:return function(e){if(!(j(e)||u&&Be.hasSyntacticModifier(e,1)))return Be.visitEachChild(e,A,c);var t=Be.getProperties(e,!0,!0),r=function(e,t){var r=0;Be.some(t)&&(r|=1);t=Be.getEffectiveBaseTypeNode(e);t&&104!==Be.skipOuterExpressions(t.expression).kind&&(r|=64);Be.classOrConstructorParameterIsDecorated(e)&&(r|=2);Be.childIsDecorated(e)&&(r|=4);ke(e)?r|=8:!function(e){return Ee(e)&&Be.hasSyntacticModifier(e,512)}(e)?Ne(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=Be.moveRangePastDecorators(e),n=function(e){if(16777216&D.getNodeCheckFlags(e)){0==(1&f)&&(f|=1,c.enableSubstitution(79),g=[]);var t=m.createUniqueName(e.name&&!Be.isGeneratedIdentifier(e.name)?Be.idText(e.name):"default");return g[Be.getOriginalNodeId(e)]=t,x(t),t}}(e),i=C<=2?m.getInternalName(e,!1,!0):m.getLocalName(e,!1,!0),a=Be.visitNodes(e.heritageClauses,A,Be.isHeritageClause),o=J(e),o=m.createClassExpression(void 0,void 0,t,void 0,a,o);Be.setOriginalNode(o,e),Be.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 Be.setOriginalNode(o,e),Be.setTextRange(o,r),Be.setCommentRange(o,e),o}(e,n):function(e,t,r){var n=128&r?void 0:Be.visitNodes(e.modifiers,M,Be.isModifier),n=m.createClassDeclaration(void 0,n,t,void 0,Be.visitNodes(e.heritageClauses,A,Be.isHeritageClause),J(e)),t=Be.getEmitFlags(e);1&r&&(t|=32);return Be.setTextRange(n,e),Be.setOriginalNode(n,e),Be.setEmitFlags(n,t),n}(e,n,r),a=[i];W(a,e,!1),W(a,e,!0),function(e,t){var r=function(e){var t=function(e){var t=e.decorators,e=U(Be.getFirstConstructorWithBody(e));return t||e?{decorators:t,parameters:e}:void 0}(e),r=q(e,e,t);if(!r)return;var n=g&&g[Be.getOriginalNodeId(e)],t=C<=2?m.getInternalName(e,!1,!0):m.getLocalName(e,!1,!0),r=y().createDecorateHelper(r,t),r=m.createAssignment(t,n?m.createAssignment(n,r):r);return Be.setEmitFlags(r,1536),Be.setSourceMapRange(r,Be.moveRangePastDecorators(e)),r}(t);r&&e.push(Be.setOriginalNode(m.createExpressionStatement(r),t))}(a,e),128&r&&(t=Be.createTokenRange(Be.skipTrivia(l.text,e.members.end),19),n=m.getInternalName(e),n=m.createPartiallyEmittedExpression(n),Be.setTextRangeEnd(n,t.end),Be.setEmitFlags(n,1536),n=m.createReturnStatement(n),Be.setTextRangePos(n,t.pos),Be.setEmitFlags(n,1920),a.push(n),Be.insertStatementsAfterStandardPrologue(a,c.endLexicalEnvironment()),n=m.createImmediatelyInvokedArrowFunction(a),Be.setEmitFlags(n,33554432),n=m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(m.getLocalName(e,!1,!1),void 0,void 0,n)])),Be.setOriginalNode(n,e),Be.setCommentRange(n,e),Be.setSourceMapRange(n,Be.moveRangePastDecorators(e)),Be.startOnNewLine(n),a=[n]);8&r?Fe(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)),Be.setEmitFlags(i,4194304|Be.getEmitFlags(i)));return Be.singleOrMany(a)}(e);case 226:return function(e){if(!j(e))return Be.visitEachChild(e,A,c);var t=m.createClassExpression(void 0,void 0,e.name,void 0,Be.visitNodes(e.heritageClauses,A,Be.isHeritageClause),J(e));return Be.setOriginalNode(t,e),Be.setTextRange(t,e),t}(e);case 291:return 117!==(s=e).token?Be.visitEachChild(s,A,c):void 0;case 228:return o=e,m.updateExpressionWithTypeArguments(o,Be.visitNode(o.expression,A,Be.isLeftHandSideExpression),void 0);case 169:return function(e){if(!le(e))return;var t=m.updateMethodDeclaration(e,void 0,Be.visitNodes(e.modifiers,M,Be.isModifier),e.asteriskToken,ce(e),void 0,void 0,Be.visitParameterList(e.parameters,A,c),void 0,Be.visitFunctionBody(e.body,A,c));t!==e&&(Be.setCommentRange(t,e),Be.setSourceMapRange(t,Be.moveRangePastDecorators(e)));return t}(e);case 172:return function(e){if(!pe(e))return;var t=m.updateGetAccessorDeclaration(e,void 0,Be.visitNodes(e.modifiers,M,Be.isModifier),ce(e),Be.visitParameterList(e.parameters,A,c),void 0,Be.visitFunctionBody(e.body,A,c)||m.createBlock([]));t!==e&&(Be.setCommentRange(t,e),Be.setSourceMapRange(t,Be.moveRangePastDecorators(e)));return t}(e);case 173:return function(e){if(!pe(e))return;var t=m.updateSetAccessorDeclaration(e,void 0,Be.visitNodes(e.modifiers,M,Be.isModifier),ce(e),Be.visitParameterList(e.parameters,A,c),Be.visitFunctionBody(e.body,A,c)||m.createBlock([]));t!==e&&(Be.setCommentRange(t,e),Be.setSourceMapRange(t,Be.moveRangePastDecorators(e)));return t}(e);case 256:return function(e){if(!le(e))return m.createNotEmittedStatement(e);var t=m.updateFunctionDeclaration(e,void 0,Be.visitNodes(e.modifiers,M,Be.isModifier),e.asteriskToken,e.name,void 0,Be.visitParameterList(e.parameters,A,c),void 0,Be.visitFunctionBody(e.body,A,c)||m.createBlock([]));if(ke(e)){var r=[t];return Fe(r,e),r}return t}(e);case 213:return le(o=e)?m.updateFunctionExpression(o,Be.visitNodes(o.modifiers,M,Be.isModifier),o.asteriskToken,o.name,void 0,Be.visitParameterList(o.parameters,A,c),void 0,Be.visitFunctionBody(o.body,A,c)||m.createBlock([])):m.createOmittedExpression();case 214:return a=e,m.updateArrowFunction(a,Be.visitNodes(a.modifiers,M,Be.isModifier),void 0,Be.visitParameterList(a.parameters,A,c),void 0,a.equalsGreaterThanToken,Be.visitFunctionBody(a.body,A,c));case 164:return function(e){if(Be.parameterIsThisKeyword(e))return;var t=m.updateParameterDeclaration(e,void 0,void 0,e.dotDotDotToken,Be.visitNode(e.name,A,Be.isBindingName),void 0,void 0,Be.visitNode(e.initializer,A,Be.isExpression));t!==e&&(Be.setCommentRange(t,e),Be.setTextRange(t,Be.moveRangePastModifiers(e)),Be.setSourceMapRange(t,Be.moveRangePastModifiers(e)),Be.setEmitFlags(t.name,32));return t}(e);case 212:return function(e){var t=Be.skipOuterExpressions(e.expression,-7);if(Be.isAssertionExpression(t)){t=Be.visitNode(e.expression,A,Be.isExpression);return m.createPartiallyEmittedExpression(t,e)}return Be.visitEachChild(e,A,c)}(e);case 211:case 229:return i=e,a=Be.visitNode(i.expression,A,Be.isExpression),m.createPartiallyEmittedExpression(a,i);case 208:return i=e,m.updateCallExpression(i,Be.visitNode(i.expression,A,Be.isExpression),void 0,Be.visitNodes(i.arguments,A,Be.isExpression));case 209:return n=e,m.updateNewExpression(n,Be.visitNode(n.expression,A,Be.isExpression),void 0,Be.visitNodes(n.arguments,A,Be.isExpression));case 210:return r=e,m.updateTaggedTemplateExpression(r,Be.visitNode(r.tag,A,Be.isExpression),void 0,Be.visitNode(r.template,A,Be.isExpression));case 230:return n=e,r=Be.visitNode(n.expression,A,Be.isLeftHandSideExpression),m.createPartiallyEmittedExpression(r,n);case 260:return function(e){if(!function(e){return!Be.isEnumConst(e)||Be.shouldPreserveConstEnums(S)}(e))return m.createNotEmittedStatement(e);var t=[],r=2,n=ve(t,e);n&&(k===Be.ModuleKind.System&&d===l||(r|=512));var i=Ie(e),a=Oe(e),o=Be.hasSyntacticModifier(e,1)?m.getExternalModuleOrNamespaceExportName(_,e,!1,!0):m.getLocalName(e,!1,!0),s=m.createLogicalOr(o,m.createAssignment(o,m.createObjectLiteralExpression()));me(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=Be.map(e.members,ge);return Be.insertStatementsAfterStandardPrologue(n,b()),Be.addRange(n,t),_=r,m.createBlock(Be.setTextRange(m.createNodeArray(n),e.members),!0)}(e,a)),void 0,[s]));Be.setOriginalNode(s,e),n&&(Be.setSyntheticLeadingComments(s,void 0),Be.setSyntheticTrailingComments(s,void 0));return Be.setTextRange(s,e),Be.addEmitFlags(s,r),t.push(s),t.push(m.createEndOfDeclarationMarker(e)),t}(e);case 237:return function(e){{if(!ke(e))return Be.visitEachChild(e,A,c);var t=Be.getInitializedVariables(e.declarationList);if(0!==t.length)return Be.setTextRange(m.createExpressionStatement(m.inlineExpressions(Be.map(t,fe))),e)}}(e);case 254:return function(e){var t=m.updateVariableDeclaration(e,Be.visitNode(e.name,A,Be.isBindingName),void 0,void 0,Be.visitNode(e.initializer,A,Be.isExpression));e.type&&Be.setTypeNode(t.name,e.type);return t}(e);case 261:return be(e);case 265:return Ce(e);case 279:return t=e,m.updateJsxSelfClosingElement(t,Be.visitNode(t.tagName,A,Be.isJsxTagNameExpression),void 0,Be.visitNode(t.attributes,A,Be.isJsxAttributes));case 280:return t=e,m.updateJsxOpeningElement(t,Be.visitNode(t.tagName,A,Be.isJsxTagNameExpression),void 0,Be.visitNode(t.attributes,A,Be.isJsxAttributes));default:return Be.visitEachChild(e,A,c)}var t,r,n,i,a,o,s}function R(e){var t=Be.getStrictOptionValue(S,"alwaysStrict")&&!(Be.isExternalModule(e)&&k>=Be.ModuleKind.ES2015)&&!Be.isJsonSourceFile(e);return m.updateSourceFile(e,Be.visitLexicalEnvironment(e.statements,i,c,0,t))}function B(e){return!!(4096&e.transformFlags)}function j(e){return Be.some(e.decorators)||Be.some(e.typeParameters)||Be.some(e.heritageClauses,B)||Be.some(e.members,B)}function J(e){var t=[],r=Be.getFirstConstructorWithBody(e),n=r&&Be.filter(r.parameters,function(e){return Be.isParameterPropertyDeclaration(e,r)});if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];Be.isIdentifier(o.name)&&t.push(Be.setOriginalNode(m.createPropertyDeclaration(void 0,void 0,o.name,void 0,void 0,void 0),o))}return Be.addRange(t,Be.visitNodes(e.members,I,Be.isClassElement)),Be.setTextRange(m.createNodeArray(t),e.members)}function z(t,e){return Be.filter(t.members,e?function(e){return K(e,!0,t)}:function(e){return K(e,!1,t)})}function K(e,t,r){return Be.nodeOrChildIsDecorated(e,r)&&t===Be.isStatic(e)}function U(e){var t;if(e)for(var r=e.parameters,e=0<r.length&&Be.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 V(e,t){switch(t.kind){case 172:case 173:return function(e,t){if(!t.body)return;var r=Be.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=U(r);return e||r?{decorators:e,parameters:r}:void 0}(e,t);case 169:return function(e){if(!e.body)return;var t=e.decorators,e=U(e);return t||e?{decorators:t,parameters:e}:void 0}(t);case 167:return function(e){e=e.decorators;return e?{decorators:e}:void 0}(t);default:return}}function q(e,t,r){if(r){var n=[];return Be.addRange(n,Be.map(r.decorators,H)),Be.addRange(n,Be.flatMap(r.parameters,G)),function(e,t,r){S.emitDecoratorMetadata&&(Q(e)&&r.push(y().createMetadataHelper("design:type",Z(e))),Y(e)&&r.push(y().createMetadataHelper("design:paramtypes",$(e,t))),X(e)&&r.push(y().createMetadataHelper("design:returntype",ee(e))))}(e,t,n),n}}function W(e,t,r){Be.addRange(e,Be.map(function(e,t){for(var r,t=z(e,t),n=0,i=t;n<i.length;n++){var a=i[n],a=function(e,t){var r=V(e,t),n=q(t,e,r);if(!n)return;var i=function(e,t){return Be.isStatic(t)?m.getDeclarationName(e):function(e){return m.createPropertyAccessExpression(m.getDeclarationName(e),"prototype")}(e)}(e,t),r=se(t,!Be.hasSyntacticModifier(t,2)),e=0<C?167===t.kind?m.createVoidZero():m.createNull():void 0,e=y().createDecorateHelper(n,i,r,e);return Be.setTextRange(e,Be.moveRangePastDecorators(t)),Be.setEmitFlags(e,1536),e}(e,a);a&&(r?r.push(a):r=[a])}return r}(t,r),Ae))}function H(e){return Be.visitNode(e.expression,A,Be.isExpression)}function G(e,t){var r;if(e){r=[];for(var n=0,i=e;n<i.length;n++){var a=i[n],o=y().createParamHelper(H(a),t);Be.setTextRange(o,a.expression),Be.setEmitFlags(o,1536),r.push(o)}}return r}function Q(e){e=e.kind;return 169===e||172===e||173===e||167===e}function X(e){return 169===e.kind}function Y(e){switch(e.kind){case 257:case 226:return void 0!==Be.getFirstConstructorWithBody(e);case 169:case 172:case 173:return 1}}function Z(e){switch(e.kind){case 167:case 164:return te(e.type);case 173:case 172:return te((t=e,(t=D.getAllAccessorDeclarations(t)).setAccessor&&Be.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&Be.getEffectiveReturnTypeNode(t.getAccessor)));case 257:case 226:case 169:return m.createIdentifier("Function");default:return m.createVoidZero()}var t}function $(e,t){var e=Be.isClassLike(e)?Be.getFirstConstructorWithBody(e):Be.isFunctionLike(e)&&Be.nodeIsPresent(e.body)?e:void 0,r=[];if(e)for(var n=function(e,t){if(t&&172===e.kind){t=Be.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&&Be.isIdentifier(o.name)&&"this"===o.name.escapedText||(o.dotDotDotToken?r.push(te(Be.getRestParameterElementType(o.type))):r.push(Z(o)))}return m.createArrayLiteralExpression(r)}function ee(e){return Be.isFunctionLike(e)&&e.type?te(e.type):Be.isAsyncFunction(e)?m.createIdentifier("Promise"):m.createVoidZero()}function te(e){if(void 0===e)return m.createIdentifier("Object");switch(e.kind){case 114:case 153:case 143:return m.createVoidZero();case 191:return te(e.type);case 179:case 180:return m.createIdentifier("Function");case 183:case 184:return m.createIdentifier("Array");case 177:case 133:return m.createIdentifier("Boolean");case 198:case 150:return m.createIdentifier("String");case 148:return m.createIdentifier("Object");case 196:switch(e.literal.kind){case 10:case 14:return m.createIdentifier("String");case 219:case 8:return m.createIdentifier("Number");case 9:return oe();case 110:case 95:return m.createIdentifier("Boolean");case 104:return m.createVoidZero();default:return Be.Debug.failBadSyntaxKind(e.literal)}case 147:return m.createIdentifier("Number");case 158:return oe();case 151:return C<2?ae():m.createIdentifier("Symbol");case 178:return function(e){var t=D.getTypeReferenceSerializationKind(e.typeName,o||d);switch(t){case Be.TypeReferenceSerializationKind.Unknown:if(Be.findAncestor(e,function(e){return e.parent&&Be.isConditionalTypeNode(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)}))return m.createIdentifier("Object");var r=function e(t){if(79===t.kind){var r=ie(t);return ne(r,r)}if(79===t.left.kind)return ne(ie(t.left),ie(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 Be.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ie(e.typeName);case Be.TypeReferenceSerializationKind.VoidNullableOrNeverType:return m.createVoidZero();case Be.TypeReferenceSerializationKind.BigIntLikeType:return oe();case Be.TypeReferenceSerializationKind.BooleanType:return m.createIdentifier("Boolean");case Be.TypeReferenceSerializationKind.NumberLikeType:return m.createIdentifier("Number");case Be.TypeReferenceSerializationKind.StringLikeType:return m.createIdentifier("String");case Be.TypeReferenceSerializationKind.ArrayLikeType:return m.createIdentifier("Array");case Be.TypeReferenceSerializationKind.ESSymbolType:return C<2?ae():m.createIdentifier("Symbol");case Be.TypeReferenceSerializationKind.TypeWithCallSignature:return m.createIdentifier("Function");case Be.TypeReferenceSerializationKind.Promise:return m.createIdentifier("Promise");case Be.TypeReferenceSerializationKind.ObjectType:return m.createIdentifier("Object");default:return Be.Debug.assertNever(t)}}(e);case 188:case 187:return re(e.types);case 189:return re([e.trueType,e.falseType]);case 193:if(145===e.operator)return te(e.type);break;case 181:case 194:case 195:case 182:case 130:case 155:case 192:case 200:break;case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return te(e.type);default:return Be.Debug.failBadSyntaxKind(e)}return m.createIdentifier("Object")}function re(e){for(var t,r=0,n=e;r<n.length;r++){for(var i=n[r];191===i.kind;)i=i.type;if(143!==i.kind&&(T||(196!==i.kind||104!==i.literal.kind)&&153!==i.kind)){var a=te(i);if(Be.isIdentifier(a)&&"Object"===a.escapedText)return a;if(t){if(!Be.isIdentifier(t)||!Be.isIdentifier(a)||t.escapedText!==a.escapedText)return m.createIdentifier("Object")}else t=a}}return t||m.createVoidZero()}function ne(e,t){return m.createLogicalAnd(m.createStrictInequality(m.createTypeOfExpression(e),m.createStringLiteral("undefined")),t)}function ie(e){switch(e.kind){case 79:var t=Be.setParent(Be.setTextRange(Be.parseNodeFactory.cloneNode(e),e),e.parent);return t.original=void 0,Be.setParent(t,Be.getParseTreeNode(d)),t;case 161:return t=e,m.createPropertyAccessExpression(ie(t.left),t.right)}}function ae(){return m.createConditionalExpression(m.createTypeCheck(m.createIdentifier("Symbol"),"function"),void 0,m.createIdentifier("Symbol"),void 0,m.createIdentifier("Object"))}function oe(){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 se(e,t){e=e.name;return Be.isPrivateIdentifier(e)?m.createIdentifier(""):Be.isComputedPropertyName(e)?t&&!Be.isSimpleInlineableExpression(e.expression)?m.getGeneratedNameForNode(e):e.expression:Be.isIdentifier(e)?m.createStringLiteral(Be.idText(e)):m.cloneNode(e)}function ce(e){var t=e.name;if(Be.isComputedPropertyName(t)&&(!Be.hasStaticModifier(e)&&s||Be.some(e.decorators))){var r=Be.visitNode(t.expression,A,Be.isExpression),e=Be.skipPartiallyEmittedExpressions(r);if(!Be.isSimpleInlineableExpression(e)){e=m.getGeneratedNameForNode(t);return x(e),m.updateComputedPropertyName(t,m.createAssignment(e,r))}}return Be.visitNode(t,A,Be.isPropertyName)}function le(e){return!Be.nodeIsMissing(e.body)}function ue(e){if(!(16777216&e.flags||Be.hasSyntacticModifier(e,128))){var t=m.updatePropertyDeclaration(e,void 0,Be.visitNodes(e.modifiers,A,Be.isModifier),ce(e),void 0,void 0,Be.visitNode(e.initializer,A));return t!==e&&(Be.setCommentRange(t,e),Be.setSourceMapRange(t,Be.moveRangePastDecorators(e))),t}}function _e(e){if(le(e))return m.updateConstructorDeclaration(e,void 0,void 0,Be.visitParameterList(e.parameters,A,c),function(e,t){var r=t&&Be.filter(t.parameters,function(e){return Be.isParameterPropertyDeclaration(e,t)});if(!Be.some(r))return Be.visitFunctionBody(e,A,c);var n=[];v();var i=m.copyPrologue(e.statements,n,!1,A),a=Be.findSuperStatementIndex(e.statements,i);0<=a&&Be.addRange(n,Be.visitNodes(e.statements,A,Be.isStatement,i,a+1-i));r=Be.mapDefined(r,de);0<=a?Be.addRange(n,r):n=__spreadArray(__spreadArray(__spreadArray([],n.slice(0,i),!0),r,!0),n.slice(i),!0);Be.addRange(n,Be.visitNodes(e.statements,A,Be.isStatement,a+1+i)),n=m.mergeLexicalEnvironment(n,b());n=m.createBlock(Be.setTextRange(m.createNodeArray(n),e.statements),!0);return Be.setTextRange(n,e),Be.setOriginalNode(n,e),n}(e.body,e))}function de(e){var t=e.name;if(Be.isIdentifier(t)){var r=Be.setParent(Be.setTextRange(m.cloneNode(t),t),t.parent);Be.setEmitFlags(r,1584);t=Be.setParent(Be.setTextRange(m.cloneNode(t),t),t.parent);return Be.setEmitFlags(t,1536),Be.startOnNewLine(Be.removeAllComments(Be.setTextRange(Be.setOriginalNode(m.createExpressionStatement(m.createAssignment(Be.setTextRange(m.createPropertyAccessExpression(m.createThis(),r),e.name),t)),e),Be.moveRangePos(e,-1))))}}function pe(e){return!Be.nodeIsMissing(e.body)||!Be.hasSyntacticModifier(e,128)}function fe(e){var t=e.name;return Be.isBindingPattern(t)?Be.flattenDestructuringAssignment(e,A,c,0,!1,Pe):Be.setTextRange(m.createAssignment(we(t),Be.visitNode(e.initializer,A,Be.isExpression)),e)}function ge(e){var t,r=se(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(79)),n.initializer?Be.visitNode(n.initializer,A,Be.isExpression):m.createVoidZero())),n=m.createAssignment(m.createElementAccessExpression(_,r),t),r=10===t.kind?n:m.createAssignment(m.createElementAccessExpression(_,n),r);return Be.setTextRange(m.createExpressionStatement(Be.setTextRange(r,e)),e)}function me(e){return ke(e)||Ee(e)&&k!==Be.ModuleKind.ES2015&&k!==Be.ModuleKind.ES2020&&k!==Be.ModuleKind.ES2022&&k!==Be.ModuleKind.ESNext&&k!==Be.ModuleKind.System}function ye(e){p=p||new Be.Map;var t=he(e);p.has(t)||p.set(t,e)}function he(e){return Be.Debug.assertNode(e.name,Be.isIdentifier),e.name.escapedText}function ve(e,t){var r=m.createVariableStatement(Be.visitNodes(t.modifiers,M,Be.isModifier),m.createVariableDeclarationList([m.createVariableDeclaration(m.getLocalName(t,!1,!0))],305===d.kind?0:1));if(Be.setOriginalNode(r,t),ye(t),function(e){if(p){var t=he(e);return p.get(t)===e}return 1}(t))return 260===t.kind?Be.setSourceMapRange(r.declarationList,t):Be.setSourceMapRange(r,t),Be.setCommentRange(r,t),Be.addEmitFlags(r,4195328),e.push(r),!0;r=m.createMergeDeclarationMarker(r);return Be.setEmitFlags(r,4195840),e.push(r),!1}function be(e){if(s=e,(s=Be.getParseTreeNode(s,Be.isModuleDeclaration))&&!Be.isInstantiatedModule(s,Be.shouldPreserveConstEnums(S)))return m.createNotEmittedStatement(e);Be.Debug.assertNode(e.name,Be.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&f)&&(f|=2,c.enableSubstitution(79),c.enableSubstitution(297),c.enableEmitNotification(261));var t=[],r=2,n=ve(t,e);n&&(k===Be.ModuleKind.System&&d===l||(r|=512));var i=Ie(e),a=Oe(e),o=Be.hasSyntacticModifier(e,1)?m.getExternalModuleOrNamespaceExportName(_,e,!1,!0):m.getLocalName(e,!1,!0),s=m.createLogicalOr(o,m.createAssignment(o,m.createObjectLiteralExpression()));me(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=u,i=p;_=t,u=e,p=void 0;var a,o=[];h(),e.body&&(262===e.body.kind?(N(e.body,function(e){return Be.addRange(o,Be.visitNodes(e.statements,P,Be.isStatement))}),s=e.body.statements,a=e.body):((t=be(e.body))&&(Be.isArray(t)?Be.addRange(o,t):o.push(t)),t=function e(t){if(261===t.body.kind){var r=e(t.body);return r||t.body}}(e).body,s=Be.moveRangePos(t.statements,-1)));Be.insertStatementsAfterStandardPrologue(o,b()),_=r,u=n,p=i;var s=m.createBlock(Be.setTextRange(m.createNodeArray(o),s),!0);Be.setTextRange(s,a),e.body&&262===e.body.kind||Be.setEmitFlags(s,1536|Be.getEmitFlags(s));return s}(e,a)),void 0,[s]));return Be.setOriginalNode(s,e),n&&(Be.setSyntheticLeadingComments(s,void 0),Be.setSyntheticTrailingComments(s,void 0)),Be.setTextRange(s,e),Be.addEmitFlags(s,r),t.push(s),t.push(m.createEndOfDeclarationMarker(e)),t}function xe(e){Be.Debug.assert(!e.isTypeOnly);var t=Re(e)?e.name:void 0,r=Be.visitNode(e.namedBindings,De,Be.isNamedImportBindings);return t||r?m.updateImportClause(e,!1,t,r):void 0}function De(e){if(268===e.kind)return Re(e)?e:void 0;var t=S.preserveValueImports&&(1===S.importsNotUsedAsValues||2===S.importsNotUsedAsValues),r=Be.visitNodes(e.elements,Se,Be.isImportSpecifier);return t||Be.some(r)?m.updateNamedImports(e,r):void 0}function Se(e){return!e.isTypeOnly&&Re(e)?e:void 0}function Te(e){return!e.isTypeOnly&&D.isValueAliasDeclaration(e)?e:void 0}function Ce(e){if(!e.isTypeOnly){if(Be.isExternalModuleImportEqualsDeclaration(e)){var t=Re(e);return t||1!==S.importsNotUsedAsValues?t?Be.visitEachChild(e,A,c):void 0:Be.setOriginalNode(Be.setTextRange(m.createImportDeclaration(void 0,void 0,void 0,e.moduleReference.expression,void 0),e),e)}if(Re(r=e)||!Be.isExternalModule(l)&&D.isTopLevelValueImportEqualsWithEntityName(r)){var r,n=Be.createExpressionFromEntityName(m,e.moduleReference);return Be.setEmitFlags(n,3584),Ne(e)||!ke(e)?Be.setOriginalNode(Be.setTextRange(m.createVariableStatement(Be.visitNodes(e.modifiers,M,Be.isModifier),m.createVariableDeclarationList([Be.setOriginalNode(m.createVariableDeclaration(e.name,void 0,void 0,n),e)])),e),e):Be.setOriginalNode((t=e.name,r=n,n=e,Be.setTextRange(m.createExpressionStatement(m.createAssignment(m.getNamespaceMemberName(_,t,!1,!0),r)),n)),e)}}}function ke(e){return void 0!==u&&Be.hasSyntacticModifier(e,1)}function Ee(e){return void 0===u&&Be.hasSyntacticModifier(e,1)}function Ne(e){return Ee(e)&&!Be.hasSyntacticModifier(e,512)}function Ae(e){return m.createExpressionStatement(e)}function Fe(e,t){var r=m.createAssignment(m.getExternalModuleOrNamespaceExportName(_,t,!1,!0),m.getLocalName(t));Be.setSourceMapRange(r,Be.createRange((t.name||t).pos,t.end));r=m.createExpressionStatement(r);Be.setSourceMapRange(r,Be.createRange(-1,t.end)),e.push(r)}function Pe(e,t,r){return Be.setTextRange(m.createAssignment(we(e),t),r)}function we(e){return m.getNamespaceMemberName(_,e,!1,!0)}function Ie(e){var t=m.getGeneratedNameForNode(e);return Be.setSourceMapRange(t,e.name),t}function Oe(e){return m.getGeneratedNameForNode(e)}function Me(e){if(f&a&&!Be.isGeneratedIdentifier(e)&&!Be.isLocalName(e)){var t=D.getReferencedExportContainer(e,!1);if(t&&305!==t.kind)if(2&a&&261===t.kind||8&a&&260===t.kind)return Be.setTextRange(m.createPropertyAccessExpression(m.getGeneratedNameForNode(t),e),e)}}function Le(e){var t=function(e){if(S.isolatedModules)return;return Be.isPropertyAccessExpression(e)||Be.isElementAccessExpression(e)?D.getConstantValue(e):void 0}(e);if(void 0===t)return e;Be.setConstantValue(e,t);t="string"==typeof t?m.createStringLiteral(t):m.createNumericLiteral(t);return S.removeComments||(e=Be.getOriginalNode(e,Be.isAccessExpression),Be.addSyntheticTrailingComment(t,3," ".concat(Be.getTextOfNode(e).replace(/\*\//g,"*_/")," "))),t}function Re(e){return S.preserveValueImports?D.isValueAliasDeclaration(e):D.isReferencedAliasDeclaration(e)}}}(ts=ts||{}),function(re){var e;(e={})[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference",(e=re.PrivateIdentifierKind||(re.PrivateIdentifierKind={})).Field="f",e.Method="m",e.Accessor="a",(e={})[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField",re.transformClassFields=function(h){var v=h.factory,c=h.hoistVariableDeclaration,b=h.endLexicalEnvironment,n=h.startLexicalEnvironment,x=h.resumeLexicalEnvironment,l=h.addBlockScopedVariable,u=h.getEmitResolver(),e=h.getCompilerOptions(),a=re.getEmitScriptTarget(e),D=re.getUseDefineForClassFields(e),S=a<9,o=a<9,_=o&&2<=a,r=h.onSubstituteNode;h.onSubstituteNode=function(e,t){return t=r(e,t),1!==e?t:function(e){switch(e.kind){case 79:return function(e){return function(e){if(1&d&&33554432&u.getNodeCheckFlags(e)){var t=u.getReferencedValueDeclaration(e);if(t){t=p[t.id];if(t){t=v.cloneNode(t);return re.setSourceMapRange(t,e),re.setCommentRange(t,e),t}}}return}(e)||e}(e);case 108:return function(e){if(2&d&&g){var t=g.facts,r=g.classConstructor;if(1&t)return v.createParenthesizedExpression(v.createVoidZero());if(r)return re.setTextRange(re.setOriginalNode(v.cloneNode(r),e),e)}return e}(e)}return e}(t)};var d,p,T,f,s=h.onEmitNode;h.onEmitNode=function(e,t,r){var n=re.getOriginalNode(t);if(n.id){var i=k.get(n.id);if(i){var a=g,o=m;return m=g=i,s(e,t,r),g=a,void(m=o)}}switch(t.kind){case 213:if(re.isArrowFunction(n)||262144&re.getEmitFlags(t))break;case 256:case 171:a=g,o=m;return m=g=void 0,s(e,t,r),g=a,void(m=o);case 172:case 173:case 169:case 167:a=g,o=m;return m=g,g=void 0,s(e,t,r),g=a,void(m=o);case 162:a=g,o=m;return g=m,m=void 0,s(e,t,r),g=a,void(m=o)}s(e,t,r)};var g,m,y,C=[],k=new re.Map;return re.chainBundle(h,function(e){var t=h.getCompilerOptions();if(e.isDeclarationFile||D&&9<=re.getEmitScriptTarget(t))return e;e=re.visitEachChild(e,N,h);return re.addEmitHelpers(e,h.readEmitHelpers()),e});function t(e,t){if(8388608&e.transformFlags)switch(e.kind){case 226:case 257:return function(e){if(!re.forEach(e.members,B))return re.visitEachChild(e,N,h);var t=T;{var r;T=void 0,C.push(g),g=void 0,S&&((r=re.getNameOfDeclaration(e))&&re.isIdentifier(r)&&(Q().className=re.idText(r)),r=j(e),re.some(r)&&(Q().weakSetName=Y("instances",r[0].name)))}e=(re.isClassDeclaration(e)?function(e){var t=J(e);t&&(G().facts=t);8&t&&W();2&t&&(r=v.createTempVariable(c,!0),G().classConstructor=v.cloneNode(r),n=v.createAssignment(r,v.getInternalName(e)));var r=re.getEffectiveBaseTypeNode(e),r=!(!r||104===re.skipOuterExpressions(r.expression).kind),r=[v.updateClassDeclaration(e,void 0,e.modifiers,e.name,void 0,re.visitNodes(e.heritageClauses,A,re.isHeritageClause),z(e,r))];n&&X().unshift(n);re.some(T)&&r.push(v.createExpressionStatement(v.inlineExpressions(T)));var n=re.getStaticPropertiesAndClassStaticBlock(e);re.some(n)&&U(r,n,v.getInternalName(e));return r}:function(r){var e=J(r);e&&(G().facts=e);8&e&&W();var t,n=!!(1&e),i=re.getStaticPropertiesAndClassStaticBlock(r),a=re.getEffectiveBaseTypeNode(r),o=!(!a||104===re.skipOuterExpressions(a.expression).kind),a=16777216&u.getNodeCheckFlags(r);function s(){var e=u.getNodeCheckFlags(r),t=16777216&e,e=524288&e;return v.createTempVariable(e?l:c,!!t)}2&e&&(t=s(),G().classConstructor=v.cloneNode(t));o=v.updateClassExpression(r,re.visitNodes(r.decorators,N,re.isDecorator),r.modifiers,r.name,void 0,re.visitNodes(r.heritageClauses,A,re.isHeritageClause),z(r,o));if(S&&re.some(i,function(e){return re.isClassStaticBlockDeclaration(e)||!!e.initializer||re.isPrivateIdentifier(e.name)})||re.some(T)){if(n)return re.Debug.assertIsDefined(f,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),f&&T&&re.some(T)&&f.push(v.createExpressionStatement(v.inlineExpressions(T))),f&&re.some(i)&&U(f,i,v.getInternalName(r)),t?v.inlineExpressions([v.createAssignment(t,o),t]):o;n=[];return t=t||s(),a&&(0==(1&d)&&(d|=1,h.enableSubstitution(79),p=[]),(a=v.cloneNode(t)).autoGenerateFlags&=-9,p[re.getOriginalNodeId(r)]=a),re.setEmitFlags(o,65536|re.getEmitFlags(o)),n.push(re.startOnNewLine(v.createAssignment(t,o))),re.addRange(n,re.map(T,re.startOnNewLine)),re.addRange(n,function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n],o=re.isClassStaticBlockDeclaration(a)?L(a):q(a,t);o&&(re.startOnNewLine(o),re.setSourceMapRange(o,re.moveRangePastModifiers(a)),re.setCommentRange(o,a),re.setOriginalNode(o,a),r.push(o))}return r}(i,t)),n.push(re.startOnNewLine(t)),v.inlineExpressions(n)}return o})(e);return g=C.pop(),T=t,e}(e);case 167:return w(e);case 237:return function(e){var t=f;f=[];e=re.visitEachChild(e,N,h),e=re.some(f)?__spreadArray([e],f,!0):e;return f=t,e}(e);case 80:return function(e){if(!S)return e;if(re.isStatement(e.parent))return e;return re.setOriginalNode(v.createIdentifier(""),e)}(e);case 170:return r=e,S?void 0:re.visitEachChild(r,P,h)}var r;if(8388608&e.transformFlags||33554432&e.transformFlags&&_&&y&&g)switch(e.kind){case 219:case 220:return function(e,t){if(45===e.operator||46===e.operator)if(S&&re.isPrivateIdentifierPropertyAccessExpression(e.operand)){var r=void 0;if(r=$(e.operand.name)){var n=M(re.visitNode(e.operand.expression,N,re.isExpression)),i=n.readExpression,a=n.initializeExpression,o=I(r,i),n=re.isPrefixUnaryExpression(e)||t?void 0:v.createTempVariable(c);return o=re.expandPreOrPostfixIncrementOrDecrementExpression(v,e,o,c,n),o=R(r,a||i,o,63),re.setOriginalNode(o,e),re.setTextRange(o,e),n&&(o=v.createComma(o,n),re.setTextRange(o,e)),o}}else if(_&&re.isSuperProperty(e.operand)&&y&&g){r=g.classConstructor,a=g.superClassReference;if(1&g.facts){var s=H(e.operand);return re.isPrefixUnaryExpression(e)?v.updatePrefixUnaryExpression(e,s):v.updatePostfixUnaryExpression(e,s)}if(r&&a){i=void 0,s=void 0;if(re.isPropertyAccessExpression(e.operand)?re.isIdentifier(e.operand.name)&&(s=i=v.createStringLiteralFromNode(e.operand.name)):re.isSimpleInlineableExpression(e.operand.argumentExpression)?s=i=e.operand.argumentExpression:(s=v.createTempVariable(c),i=v.createAssignment(s,re.visitNode(e.operand.argumentExpression,N,re.isExpression))),i&&s){o=v.createReflectGetCall(a,s,r);re.setTextRange(o,e.operand);n=t?void 0:v.createTempVariable(c);return o=re.expandPreOrPostfixIncrementOrDecrementExpression(v,e,o,c,n),o=v.createReflectSetCall(a,i,o,r),re.setOriginalNode(o,e),re.setTextRange(o,e),n&&(o=v.createComma(o,n),re.setTextRange(o,e)),o}}}return re.visitEachChild(e,N,h)}(e,t);case 221:return function(e,t){if(re.isDestructuringAssignment(e)){var r=T;T=void 0,e=v.updateBinaryExpression(e,re.visitNode(e.left,F),e.operatorToken,re.visitNode(e.right,N));var n=re.some(T)?v.inlineExpressions(re.compact(__spreadArray(__spreadArray([],T,!0),[e],!1))):e;return T=r,n}if(re.isAssignmentExpression(e))if(S&&re.isPrivateIdentifierPropertyAccessExpression(e.left)){var i=$(e.left.name);if(i)return re.setTextRange(re.setOriginalNode(R(i,e.left.expression,e.right,e.operatorToken.kind),e),e)}else if(_&&re.isSuperProperty(e.left)&&y&&g){var a=g.classConstructor,o=g.superClassReference;if(1&g.facts)return v.updateBinaryExpression(e,H(e.left),e.operatorToken,re.visitNode(e.right,N,re.isExpression));if(a&&o){r=re.isElementAccessExpression(e.left)?re.visitNode(e.left.argumentExpression,N,re.isExpression):re.isIdentifier(e.left.name)?v.createStringLiteralFromNode(e.left.name):void 0;if(r){n=re.visitNode(e.right,N,re.isExpression);re.isCompoundAssignment(e.operatorToken.kind)&&(i=r,re.isSimpleInlineableExpression(r)||(i=v.createTempVariable(c),r=v.createAssignment(i,r)),i=v.createReflectGetCall(o,i,a),re.setOriginalNode(i,e.left),re.setTextRange(i,e.left),n=v.createBinaryExpression(i,re.getNonAssignmentOperatorForCompoundAssignment(e.operatorToken.kind),n),re.setTextRange(n,e));t=t?void 0:v.createTempVariable(c);return t&&(n=v.createAssignment(t,n),re.setTextRange(t,e)),n=v.createReflectSetCall(o,r,n,a),re.setOriginalNode(n,e),re.setTextRange(n,e),t&&(n=v.createComma(n,t),re.setTextRange(n,e)),n}}}if(101===e.operatorToken.kind&&re.isPrivateIdentifier(e.left))return function(e){if(!S)return e;var t=e.left;re.Debug.assertNode(t,re.isPrivateIdentifier),re.Debug.assert(101===e.operatorToken.kind);var r=$(t);if(r){t=re.visitNode(e.right,N,re.isExpression);return re.setOriginalNode(h.getEmitHelperFactory().createClassPrivateFieldInHelper(r.brandCheckIdentifier,t),e)}return re.visitEachChild(e,N,h)}(e);return re.visitEachChild(e,N,h)}(e,t);case 208:return function(e){if(S&&re.isPrivateIdentifierPropertyAccessExpression(e.expression)){var t=v.createCallBinding(e.expression,c,a),r=t.thisArg,t=t.target;return re.isCallChain(e)?v.updateCallChain(e,v.createPropertyAccessChain(re.visitNode(t,N),e.questionDotToken,"call"),void 0,void 0,__spreadArray([re.visitNode(r,N,re.isExpression)],re.visitNodes(e.arguments,N,re.isExpression),!0)):v.updateCallExpression(e,v.createPropertyAccessExpression(re.visitNode(t,N),"call"),void 0,__spreadArray([re.visitNode(r,N,re.isExpression)],re.visitNodes(e.arguments,N,re.isExpression),!0))}if(_&&re.isSuperProperty(e.expression)&&y&&null!=g&&g.classConstructor){r=v.createFunctionCallCall(re.visitNode(e.expression,N,re.isExpression),g.classConstructor,re.visitNodes(e.arguments,N,re.isExpression));return re.setOriginalNode(r,e),re.setTextRange(r,e),r}return re.visitEachChild(e,N,h)}(e);case 210:return function(e){if(S&&re.isPrivateIdentifierPropertyAccessExpression(e.tag)){var t=v.createCallBinding(e.tag,c,a),r=t.thisArg,t=t.target;return v.updateTaggedTemplateExpression(e,v.createCallExpression(v.createPropertyAccessExpression(re.visitNode(t,N),"bind"),void 0,[re.visitNode(r,N,re.isExpression)]),void 0,re.visitNode(e.template,N,re.isTemplateLiteral))}if(_&&re.isSuperProperty(e.tag)&&y&&null!=g&&g.classConstructor){r=v.createFunctionBindCall(re.visitNode(e.tag,N,re.isExpression),g.classConstructor,[]);return re.setOriginalNode(r,e),re.setTextRange(r,e),v.updateTaggedTemplateExpression(e,r,void 0,re.visitNode(e.template,N,re.isTemplateLiteral))}return re.visitEachChild(e,N,h)}(e);case 206:return function(e){if(S&&re.isPrivateIdentifier(e.name)){var t=$(e.name);if(t)return re.setTextRange(re.setOriginalNode(I(t,e.expression),e),e)}if(_&&re.isSuperProperty(e)&&re.isIdentifier(e.name)&&y&&g){var r=g.classConstructor,t=g.superClassReference;if(1&g.facts)return H(e);if(r&&t){r=v.createReflectGetCall(t,v.createStringLiteralFromNode(e.name),r);return re.setOriginalNode(r,e.expression),re.setTextRange(r,e.expression),r}}return re.visitEachChild(e,N,h)}(e);case 207:return function(e){if(_&&re.isSuperProperty(e)&&y&&g){var t=g.classConstructor,r=g.superClassReference;if(1&g.facts)return H(e);if(t&&r){t=v.createReflectGetCall(r,re.visitNode(e.argumentExpression,N,re.isExpression),t);return re.setOriginalNode(t,e.expression),re.setTextRange(t,e.expression),t}}return re.visitEachChild(e,N,h)}(e);case 238:return n=e,v.updateExpressionStatement(n,re.visitNode(n.expression,E,re.isExpression));case 242:return i=e,v.updateForStatement(i,re.visitNode(i.initializer,E,re.isForInitializer),re.visitNode(i.condition,N,re.isExpression),re.visitNode(i.incrementor,E,re.isExpression),re.visitIterationBody(i.statement,N,h));case 256:case 213:case 171:case 169:case 172:case 173:var n=y;y=void 0;var i=re.visitEachChild(e,N,h);return y=n,i}return re.visitEachChild(e,N,h)}function E(e){return t(e,!0)}function N(e){return t(e,!1)}function A(e){switch(e.kind){case 291:return re.visitEachChild(e,A,h);case 228:return function(e){if(4&((null==g?void 0:g.facts)||0)){var t=v.createTempVariable(c,!0);return G().superClassReference=t,v.updateExpressionWithTypeArguments(e,v.createAssignment(t,re.visitNode(e.expression,N,re.isExpression)),void 0)}return re.visitEachChild(e,N,h)}(e)}return N(e)}function F(e){switch(e.kind){case 205:case 204:return t=e,re.isArrayLiteralExpression(t)?v.updateArrayLiteralExpression(t,re.visitNodes(t.elements,i,re.isExpression)):v.updateObjectLiteralExpression(t,re.visitNodes(t.properties,te,re.isObjectLiteralElementLike));default:return N(e)}var t}function P(e){switch(e.kind){case 171:return;case 172:case 173:case 169:return function(e){if(re.Debug.assert(!re.some(e.decorators)),!S||!re.isPrivateIdentifier(e.name))return re.visitEachChild(e,P,h);var t=$(e.name);if(re.Debug.assert(t,"Undeclared private name for property declaration."),!t.isValid)return e;t=function(e){re.Debug.assert(re.isPrivateIdentifier(e.name));var t=$(e.name);if(re.Debug.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind)return re.isGetAccessor(e)?t.getterName:re.isSetAccessor(e)?t.setterName:void 0}(e);t&&X().push(v.createAssignment(t,v.createFunctionExpression(re.filter(e.modifiers,function(e){return!re.isStaticModifier(e)}),e.asteriskToken,t,void 0,re.visitParameterList(e.parameters,P,h),void 0,re.visitFunctionBody(e.body,P,h))));return}(e);case 167:return w(e);case 162:return function(e){var t=re.visitEachChild(e,N,h);re.some(T)&&((e=T).push(t.expression),T=[],t=v.updateComputedPropertyName(t,v.inlineExpressions(e)));return t}(e);case 234:return e;default:return N(e)}}function w(e){if(re.Debug.assert(!re.some(e.decorators)),re.isPrivateIdentifier(e.name)){if(!S)return re.isStatic(e)?re.visitEachChild(e,N,h):v.updatePropertyDeclaration(e,void 0,re.visitNodes(e.modifiers,N,re.isModifier),e.name,void 0,void 0,void 0);var t=$(e.name);if(re.Debug.assert(t,"Undeclared private name for property declaration."),!t.isValid)return e}var r=function(e,t){if(re.isComputedPropertyName(e)){var r=re.visitNode(e.expression,N,re.isExpression),n=re.skipPartiallyEmittedExpressions(r),i=re.isSimpleInlineableExpression(n);if(re.isAssignmentExpression(n)&&re.isGeneratedIdentifier(n.left)||i||!t)return i||re.isIdentifier(n)?void 0:r;n=v.getGeneratedNameForNode(e);return(524288&u.getNodeCheckFlags(e)?l:c)(n),v.createAssignment(n,r)}}(e.name,!!e.initializer||D);if(r&&!re.isSimpleInlineableExpression(r)&&X().push(r),re.isStatic(e)&&!S&&!D){t=V(e,v.createThis());if(t){r=v.createClassStaticBlockDeclaration(void 0,void 0,v.createBlock([t]));return re.setOriginalNode(r,e),re.setCommentRange(r,e),re.setCommentRange(t,{pos:-1,end:-1}),re.setSyntheticLeadingComments(t,void 0),re.setSyntheticTrailingComments(t,void 0),r}}}function I(e,t){return O(e,re.visitNode(t,N,re.isExpression))}function O(e,t){switch(re.setCommentRange(t,re.moveRangePos(t,-1)),e.kind){case"a":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.variableName);default:re.Debug.assertNever(e,"Unknown private element type")}}function M(e){var t=re.nodeIsSynthesized(e)?e:v.cloneNode(e);if(re.isSimpleInlineableExpression(e))return{readExpression:t,initializeExpression:void 0};e=v.createTempVariable(c);return{readExpression:e,initializeExpression:v.createAssignment(e,t)}}function L(e){if(S){g&&k.set(re.getOriginalNodeId(e),g),n();var t=y;y=e;var r=re.visitNodes(e.body.statements,N,re.isStatement),r=v.mergeLexicalEnvironment(r,b());y=t;r=v.createImmediatelyInvokedArrowFunction(r);return re.setOriginalNode(r,e),re.setTextRange(r,e),re.addEmitFlags(r,2),r}}function R(e,t,r,n){var i,a;switch(t=re.visitNode(t,N,re.isExpression),r=re.visitNode(r,N,re.isExpression),re.isCompoundAssignment(n)&&(a=(i=M(t)).readExpression,t=i.initializeExpression||a,r=v.createBinaryExpression(O(e,a),re.getNonAssignmentOperatorForCompoundAssignment(n),r)),re.setCommentRange(t,re.moveRangePos(t,-1)),e.kind){case"a":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(t,e.brandCheckIdentifier,r,e.kind,e.setterName);case"m":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(t,e.brandCheckIdentifier,r,e.kind,void 0);case"f":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(t,e.brandCheckIdentifier,r,e.kind,e.variableName);default:re.Debug.assertNever(e,"Unknown private element type")}}function B(e){return re.isPropertyDeclaration(e)||re.isClassStaticBlockDeclaration(e)||S&&e.name&&re.isPrivateIdentifier(e.name)}function j(e){return re.filter(e.members,re.isNonStaticMethodOrAccessorWithPrivateName)}function J(e){var t=0,r=re.getOriginalNode(e);re.isClassDeclaration(r)&&re.classOrConstructorParameterIsDecorated(r)&&(t|=1);for(var n=0,i=e.members;n<i.length;n++){var a=i[n];re.isStatic(a)&&(a.name&&re.isPrivateIdentifier(a.name)&&S&&(t|=2),(re.isPropertyDeclaration(a)||re.isClassStaticBlockDeclaration(a))&&(o&&8192&a.transformFlags&&(1&(t|=8)||(t|=2)),_&&33554432&a.transformFlags&&(1&t||(t|=6))))}return t}function z(e,t){var r,n,i,a,o,s,c,l,u,_,d,p=[];if(S){for(var f=0,g=e.members;f<g.length;f++){var m=g[f];re.isPrivateIdentifierClassElementDeclaration(m)&&(r=m,m=d=_=u=l=c=s=o=a=i=n=void 0,o=re.getTextOfPropertyName(r.name),s=G().classConstructor,c=Q(),l=c.weakSetName,u=[],_=r.name.escapedText,d=c.identifiers.get(_),m=!("#constructor"===r.name.escapedText)&&void 0===d,re.hasStaticModifier(r)?(re.Debug.assert(s,"weakSetName should be set in private identifier environment"),re.isPropertyDeclaration(r)?(n=Z(o,r),c.identifiers.set(_,{kind:"f",variableName:n,brandCheckIdentifier:s,isStatic:!0,isValid:m})):re.isMethodDeclaration(r)?(n=Z(o,r),c.identifiers.set(_,{kind:"m",methodName:n,brandCheckIdentifier:s,isStatic:!0,isValid:m})):re.isGetAccessorDeclaration(r)?(i=Z(o+"_get",r),"a"===(null==d?void 0:d.kind)&&d.isStatic&&!d.getterName?d.getterName=i:c.identifiers.set(_,{kind:"a",getterName:i,setterName:void 0,brandCheckIdentifier:s,isStatic:!0,isValid:m})):re.isSetAccessorDeclaration(r)?(a=Z(o+"_set",r),"a"===(null==d?void 0:d.kind)&&d.isStatic&&!d.setterName?d.setterName=a:c.identifiers.set(_,{kind:"a",getterName:void 0,setterName:a,brandCheckIdentifier:s,isStatic:!0,isValid:m})):re.Debug.assertNever(r,"Unknown class element type.")):re.isPropertyDeclaration(r)?(s=Z(o,r),c.identifiers.set(_,{kind:"f",brandCheckIdentifier:s,isStatic:!1,variableName:void 0,isValid:m}),u.push(v.createAssignment(s,v.createNewExpression(v.createIdentifier("WeakMap"),void 0,[])))):re.isMethodDeclaration(r)?(re.Debug.assert(l,"weakSetName should be set in private identifier environment"),c.identifiers.set(_,{kind:"m",methodName:Z(o,r),brandCheckIdentifier:l,isStatic:!1,isValid:m})):re.isAccessor(r)?(re.Debug.assert(l,"weakSetName should be set in private identifier environment"),re.isGetAccessor(r)?(i=Z(o+"_get",r),"a"!==(null==d?void 0:d.kind)||d.isStatic||d.getterName?c.identifiers.set(_,{kind:"a",getterName:i,setterName:void 0,brandCheckIdentifier:l,isStatic:!1,isValid:m}):d.getterName=i):(a=Z(o+"_set",r),"a"!==(null==d?void 0:d.kind)||d.isStatic||d.setterName?c.identifiers.set(_,{kind:"a",getterName:void 0,setterName:a,brandCheckIdentifier:l,isStatic:!1,isValid:m}):d.setterName=a)):re.Debug.assertNever(r,"Unknown class element type."),(r=X()).push.apply(r,u))}re.some(j(e))&&(y=Q().weakSetName,re.Debug.assert(y,"weakSetName should be set in private identifier environment"),X().push(v.createAssignment(y,v.createNewExpression(v.createIdentifier("WeakSet"),void 0,[]))))}var y=function(e,t){var r=re.visitNode(re.getFirstConstructorWithBody(e),N,re.isConstructorDeclaration),n=e.members.filter(K);if(!re.some(n))return r;n=re.visitParameterList(r?r.parameters:void 0,N,h),t=function(e,t,r){var n=re.getProperties(e,!1,!1);D||(n=re.filter(n,function(e){return!!e.initializer||re.isPrivateIdentifier(e.name)}));var i=j(e),a=re.some(n)||re.some(i);if(!t&&!a)return re.visitFunctionBody(void 0,N,h);x();var o=!t&&r,s=0,c=0,l=-1,a=[];null!==(r=null==t?void 0:t.body)&&void 0!==r&&r.statements&&(c=v.copyPrologue(t.body.statements,a,!1,N),0<=(l=re.findSuperStatementIndex(t.body.statements,c))?(s=l+1,a=__spreadArray(__spreadArray(__spreadArray([],a.slice(0,c),!0),re.visitNodes(t.body.statements,N,re.isStatement,c,s-c),!0),a.slice(c),!0)):0<=c&&(s=c));o&&a.push(v.createExpressionStatement(v.createCallExpression(v.createSuper(),void 0,[v.createSpreadElement(v.createIdentifier("arguments"))])));var u=0;if(null!=t&&t.body)if(D)a=a.filter(function(e){return!re.isParameterPropertyDeclaration(re.getOriginalNode(e),t)});else{for(var _=0,d=t.body.statements;_<d.length;_++){var p=d[_];re.isParameterPropertyDeclaration(re.getOriginalNode(p),t)&&u++}0<u&&(r=re.visitNodes(t.body.statements,N,re.isStatement,s,u),0<=l?re.addRange(a,r):(f=c,o&&f++,a=__spreadArray(__spreadArray(__spreadArray([],a.slice(0,f),!0),r,!0),a.slice(f),!0)),s+=u)}var f=v.createThis();(function(e,t,r){S&&re.some(t)&&(t=Q().weakSetName,re.Debug.assert(t,"weakSetName should be set in private identifier environment"),e.push(v.createExpressionStatement(function(e,t){return re.factory.createCallExpression(re.factory.createPropertyAccessExpression(t,"add"),void 0,[e])}(r,t))))})(a,i,f),U(a,n,f),t&&re.addRange(a,re.visitNodes(t.body.statements,function(e){if(D&&re.isParameterPropertyDeclaration(re.getOriginalNode(e),t))return;return N(e)},re.isStatement,s));return a=v.mergeLexicalEnvironment(a,b()),re.setTextRange(v.createBlock(re.setTextRange(v.createNodeArray(a),t?t.body.statements:e.members),!0),t?t.body:void 0)}(e,r,t);return t?re.startOnNewLine(re.setOriginalNode(re.setTextRange(v.createConstructorDeclaration(void 0,void 0,null!=n?n:[],t),r||e),r)):void 0}(e,t),t=re.visitNodes(e.members,P,re.isClassElement);return y&&p.push(y),!S&&re.some(T)&&(p.push(v.createClassStaticBlockDeclaration(void 0,void 0,v.createBlock([v.createExpressionStatement(v.inlineExpressions(T))]))),T=void 0),re.addRange(p,t),re.setTextRange(v.createNodeArray(p),e.members)}function K(e){return!re.isStatic(e)&&!re.hasSyntacticModifier(re.getOriginalNode(e),128)&&(D?a<9:re.isInitializedProperty(e)||S&&re.isPrivateIdentifierClassElementDeclaration(e))}function U(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];re.isStatic(a)&&!S&&!D||(a=V(a,r))&&e.push(a)}}function V(e,t){var r=re.isClassStaticBlockDeclaration(e)?L(e):q(e,t);if(r){t=v.createExpressionStatement(r);return re.setSourceMapRange(t,re.moveRangePastModifiers(e)),re.setCommentRange(t,e),re.setOriginalNode(t,e),re.setSyntheticLeadingComments(r,void 0),re.setSyntheticTrailingComments(r,void 0),t}}function q(e,t){var r=y,t=function(e,t){var r=!D,n=re.isComputedPropertyName(e.name)&&!re.isSimpleInlineableExpression(e.name.expression)?v.updateComputedPropertyName(e.name,v.getGeneratedNameForNode(e.name)):e.name;re.hasStaticModifier(e)&&(y=e);if(S&&re.isPrivateIdentifier(n)){var i=$(n);if(i)return"f"===i.kind?i.isStatic?function(e,t){return re.factory.createAssignment(e,re.factory.createObjectLiteralExpression([re.factory.createPropertyAssignment("value",t||re.factory.createVoidZero())]))}(i.variableName,re.visitNode(e.initializer,N,re.isExpression)):function(e,t,r){return re.factory.createCallExpression(re.factory.createPropertyAccessExpression(r,"set"),void 0,[e,t||re.factory.createVoidZero()])}(t,re.visitNode(e.initializer,N,re.isExpression),i.brandCheckIdentifier):void 0;re.Debug.fail("Undeclared private name for property declaration.")}if((re.isPrivateIdentifier(n)||re.hasStaticModifier(e))&&!e.initializer)return;i=re.getOriginalNode(e);if(re.hasSyntacticModifier(i,128))return;i=e.initializer||r?null!==(e=re.visitNode(e.initializer,N,re.isExpression))&&void 0!==e?e:v.createVoidZero():re.isParameterPropertyDeclaration(i,i.parent)&&re.isIdentifier(n)?n:v.createVoidZero();{if(r||re.isPrivateIdentifier(n)){r=re.createMemberAccessForPropertyName(v,t,n,n);return v.createAssignment(r,i)}n=re.isComputedPropertyName(n)?n.expression:re.isIdentifier(n)?v.createStringLiteral(re.unescapeLeadingUnderscores(n.escapedText)):n,i=v.createPropertyDescriptor({value:i,configurable:!0,writable:!0,enumerable:!0});return v.createObjectDefinePropertyCall(t,n,i)}}(e,t);return t&&re.hasStaticModifier(e)&&null!=g&&g.facts&&(re.setOriginalNode(t,e),re.addEmitFlags(t,2),k.set(re.getOriginalNodeId(t),g)),y=r,t}function W(){0==(2&d)&&(d|=2,h.enableSubstitution(108),h.enableEmitNotification(256),h.enableEmitNotification(213),h.enableEmitNotification(171),h.enableEmitNotification(172),h.enableEmitNotification(173),h.enableEmitNotification(169),h.enableEmitNotification(167),h.enableEmitNotification(162))}function H(e){return re.isPropertyAccessExpression(e)?v.updatePropertyAccessExpression(e,v.createVoidZero(),e.name):v.updateElementAccessExpression(e,v.createVoidZero(),re.visitNode(e.argumentExpression,N,re.isExpression))}function G(){return g=g||{facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0}}function Q(){var e=G();return e.privateIdentifierEnvironment||(e.privateIdentifierEnvironment={className:"",identifiers:new re.Map}),e.privateIdentifierEnvironment}function X(){return T=T||[]}function Y(e,t){var r=Q().className,r=r?"_".concat(r):"",e=v.createUniqueName("".concat(r,"_").concat(e),16);return(524288&u.getNodeCheckFlags(t)?l:c)(e),e}function Z(e,t){return Y(e.substring(1),t.name)}function $(e){if(null!=g&&g.privateIdentifierEnvironment&&(r=g.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return r;for(var t=C.length-1;0<=t;--t){var r,n=C[t];if(n)if(r=null===(n=n.privateIdentifierEnvironment)||void 0===n?void 0:n.identifiers.get(e.escapedText))return r}}function ee(e){var t=v.getGeneratedNameForNode(e),r=$(e.name);if(!r)return re.visitEachChild(e,N,h);var n=e.expression;return!re.isThisProperty(e)&&!re.isSuperProperty(e)&&re.isSimpleCopiableExpression(e.expression)||(n=v.createTempVariable(c,!0),X().push(v.createBinaryExpression(n,63,re.visitNode(e.expression,N,re.isExpression)))),v.createAssignmentTargetWrapper(t,R(r,n,t,63))}function i(e){var t=re.getTargetOfBindingOrAssignmentElement(e);if(t){var r,n,i,a=void 0;if(re.isPrivateIdentifierPropertyAccessExpression(t)?a=ee(t):_&&re.isSuperProperty(t)&&y&&g&&(r=g.classConstructor,n=g.superClassReference,1&g.facts?a=H(t):r&&n&&((i=re.isElementAccessExpression(t)?re.visitNode(t.argumentExpression,N,re.isExpression):re.isIdentifier(t.name)?v.createStringLiteralFromNode(t.name):void 0)&&(t=v.createTempVariable(void 0),a=v.createAssignmentTargetWrapper(t,v.createReflectSetCall(n,i,t,r))))),a)return re.isAssignmentExpression(e)?v.updateBinaryExpression(e,a,e.operatorToken,re.visitNode(e.right,N,re.isExpression)):re.isSpreadElement(e)?v.updateSpreadElement(e,a):a}return re.visitNode(e,F)}function te(e){if(re.isObjectBindingOrAssignmentElement(e)&&!re.isShorthandPropertyAssignment(e)){var t,r,n=re.getTargetOfBindingOrAssignmentElement(e),i=void 0;if(n&&(re.isPrivateIdentifierPropertyAccessExpression(n)?i=ee(n):_&&re.isSuperProperty(n)&&y&&g&&(a=g.classConstructor,t=g.superClassReference,1&g.facts?i=H(n):a&&t&&((r=re.isElementAccessExpression(n)?re.visitNode(n.argumentExpression,N,re.isExpression):re.isIdentifier(n.name)?v.createStringLiteralFromNode(n.name):void 0)&&(n=v.createTempVariable(void 0),i=v.createAssignmentTargetWrapper(n,v.createReflectSetCall(t,r,n,a)))))),re.isPropertyAssignment(e)){var a=re.getInitializerOfBindingOrAssignmentElement(e);return v.updatePropertyAssignment(e,re.visitNode(e.name,N,re.isPropertyName),i?a?v.createAssignment(i,re.visitNode(a,N)):i:re.visitNode(e.initializer,F,re.isExpression))}if(re.isSpreadAssignment(e))return v.updateSpreadAssignment(e,i||re.visitNode(e.expression,F,re.isExpression));re.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return re.visitNode(e,N)}}}(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 257===e||171===e||169===e||172===e||173===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 206:return B(e);case 207:return j(e);case 208: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,__spreadArray([y.createThis()],e.arguments,!0))}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 l(e,t,r){var n=e&~o;if(n){c(n,!0);e=t(r);return c(n,!1),e}return t(r)}function u(e){return J.visitEachChild(e,C,d)}function C(e){if(0==(256&e.transformFlags))return e;switch(e.kind){case 131:return;case 218: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 169:return l(3,k,e);case 256:return l(3,E,e);case 213:return l(3,N,e);case 214:return l(1,A,e);case 206:return g&&J.isPropertyAccessExpression(e)&&106===e.expression.kind&&g.add(e.name.escapedText),J.visitEachChild(e,C,d);case 207:return g&&106===e.expression.kind&&(m=!0),J.visitEachChild(e,C,d);case 172:case 173:case 171:case 257:case 226:return l(3,u,e);default:return J.visitEachChild(e,C,d)}}function _(e){if(J.isNodeWithPossibleHoistedDeclaration(e))switch(e.kind){case 237: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 242: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.visitIterationBody(r.statement,_,d));case 243: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.visitIterationBody(t.statement,_,d));case 244: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.visitIterationBody(t.statement,_,d));case 292: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 235:case 249:case 263:case 289:case 290:case 252:case 240:case 241:case 239:case 248:case 250:return J.visitEachChild(e,_,d);default:return J.Debug.assertNever(e,"Unhandled node.")}var t,r,n;return C(e)}function k(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 E(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=214===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,l,u,_=g,t=m;return n||(g=new J.Set,m=!1),u=n?(l=h().createAwaiterHelper(T(),i,r,R(e.body)),c=b(),J.some(c)?(u=y.converters.convertToFunctionBlock(l),y.updateBlock(u,J.setTextRange(y.createNodeArray(J.concatenate(c,u.statements)),u.statements))):l):(c=[],l=y.copyPrologue(e.body.statements,c,!1,C),c.push(y.createReturnStatement(h().createAwaiterHelper(T(),i,r,R(e.body,l)))),J.insertStatementsAfterStandardPrologue(c,b()),(r=2<=D&&6144&x.getNodeCheckFlags(e))&&(0==(1&p)&&(p|=1,d.enableSubstitution(208),d.enableSubstitution(206),d.enableSubstitution(207),d.enableEmitNotification(257),d.enableEmitNotification(169),d.enableEmitNotification(172),d.enableEmitNotification(173),d.enableEmitNotification(171),d.enableEmitNotification(237)),g.size&&(l=z(y,x,e,g),S[J.getNodeId(l)]=!0,J.insertStatementsAfterStandardPrologue(c,[l]))),u=y.createBlock(c,!0),J.setTextRange(u,e.body),r&&m&&(4096&x.getNodeCheckFlags(e)?J.addEmitHelper(u,J.advancedAsyncSuperHelper):2048&x.getNodeCheckFlags(e)&&J.addEmitHelper(u,J.asyncSuperHelper)),u),f=a,n||(g=_,m=t),u}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 106===e.expression.kind?J.setTextRange(y.createPropertyAccessExpression(y.createUniqueName("_super",48),e.name),e):e}function j(e){return 106===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(Y){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",Y.transformES2018=function(f){var g=f.factory,p=f.getEmitHelperFactory,s=f.resumeLexicalEnvironment,c=f.endLexicalEnvironment,m=f.hoistVariableDeclaration,l=f.getEmitResolver(),i=f.getCompilerOptions(),u=Y.getEmitScriptTarget(i),a=f.onEmitNode;f.onEmitNode=function(e,t,r){if(1&_&&function(e){e=e.kind;return 257===e||171===e||169===e||172===e||173===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(_&&S[Y.getNodeId(t)]){i=x;return x=0,a(e,t,r),void(x=i)}a(e,t,r)};var _,o,n,d,y,h,v,r=f.onSubstituteNode,b=!(f.onSubstituteNode=function(e,t){if(t=r(e,t),1===e&&x)return function(e){switch(e.kind){case 206:return Q(e);case 207:return X(e);case 208:return function(e){var t=e.expression;if(Y.isSuperProperty(t)){t=(Y.isPropertyAccessExpression(t)?Q:X)(t);return g.createCallExpression(g.createPropertyAccessExpression(t,"call"),void 0,__spreadArray([g.createThis()],e.arguments,!0))}return e}(e)}return e}(t);return t}),x=0,D=0,S=[];return Y.chainBundle(f,function(e){if(e.isDeclarationFile)return e;e=function(e){var t=T(2,Y.isEffectiveStrictModeSourceFile(e,i)?0:1);b=!1;var r=Y.visitEachChild(e,E,f),n=Y.concatenate(r.statements,y&&[g.createVariableStatement(void 0,g.createVariableDeclarationList(y))]),e=g.updateSourceFile(r,Y.setTextRange(g.createNodeArray(n),e.statements));return C(t),e}(d=e);return Y.addEmitHelpers(e,f.readEmitHelpers()),y=d=void 0,e});function T(e,t){var r=D;return D=3&(D&~e|t),r}function C(e){D=e}function k(e){y=Y.append(y,g.createVariableDeclaration(e))}function E(e){return t(e,!1)}function N(e){return t(e,!0)}function A(e){if(131!==e.kind)return e}function F(e,t,r,n){if(D===(D&~r|n))return e(t);n=T(r,n),t=e(t);return C(n),t}function P(e){return Y.visitEachChild(e,E,f)}function t(e,t){if(0==(128&e.transformFlags))return e;switch(e.kind){case 218:return function(e){if(2&o&&1&o)return Y.setOriginalNode(Y.setTextRange(g.createYieldExpression(void 0,p().createAwaitHelper(Y.visitNode(e.expression,E,Y.isExpression))),e),e);return Y.visitEachChild(e,E,f)}(e);case 224:return function(e){if(2&o&&1&o){if(e.asteriskToken){var t=Y.visitNode(Y.Debug.checkDefined(e.expression),E,Y.isExpression);return Y.setOriginalNode(Y.setTextRange(g.createYieldExpression(void 0,p().createAwaitHelper(g.updateYieldExpression(e,e.asteriskToken,Y.setTextRange(p().createAsyncDelegatorHelper(Y.setTextRange(p().createAsyncValuesHelper(t),t)),t)))),e),e)}return Y.setOriginalNode(Y.setTextRange(g.createYieldExpression(void 0,M(e.expression?Y.visitNode(e.expression,E,Y.isExpression):g.createVoidZero())),e),e)}return Y.visitEachChild(e,E,f)}(e);case 247:return function(e){if(2&o&&1&o)return g.updateReturnStatement(e,M(e.expression?Y.visitNode(e.expression,E,Y.isExpression):g.createVoidZero()));return Y.visitEachChild(e,E,f)}(e);case 250:return function(e){if(2&o){var t=Y.unwrapInnermostStatementOfLabel(e);return 244===t.kind&&t.awaitModifier?O(t,e):g.restoreEnclosingLabel(Y.visitNode(t,E,Y.isStatement,g.liftToBlock),e)}return Y.visitEachChild(e,E,f)}(e);case 205:return function(e){if(32768&e.transformFlags){var t=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a,o=i[n];298===o.kind?(t&&(r.push(g.createObjectLiteralExpression(t)),t=void 0),a=o.expression,r.push(Y.visitNode(a,E,Y.isExpression))):t=Y.append(t,296===o.kind?g.createPropertyAssignment(o.name,Y.visitNode(o.initializer,E,Y.isExpression)):Y.visitNode(o,E,Y.isObjectLiteralElementLike))}t&&r.push(g.createObjectLiteralExpression(t));return r}(e.properties);t.length&&205!==t[0].kind&&t.unshift(g.createObjectLiteralExpression());var r=t[0];if(1<t.length){for(var n=1;n<t.length;n++)r=p().createAssignHelper([r,t[n]]);return r}return p().createAssignHelper(t)}return Y.visitEachChild(e,E,f)}(e);case 221:return function(e,t){if(Y.isDestructuringAssignment(e)&&32768&e.left.transformFlags)return Y.flattenDestructuringAssignment(e,E,f,1,!t);return 27!==e.operatorToken.kind?Y.visitEachChild(e,E,f):g.updateBinaryExpression(e,Y.visitNode(e.left,N,Y.isExpression),e.operatorToken,Y.visitNode(e.right,t?N:E,Y.isExpression))}(e,t);case 351:return function(e,t){if(t)return Y.visitEachChild(e,N,f);for(var r,n=0;n<e.elements.length;n++){var i=e.elements[n],a=Y.visitNode(i,n<e.elements.length-1?N:E,Y.isExpression);!r&&a===i||(r=r||e.elements.slice(0,n)).push(a)}t=r?Y.setTextRange(g.createNodeArray(r),e.elements):e.elements;return g.updateCommaListExpression(e,t)}(e,t);case 292:return function(e){if(e.variableDeclaration&&Y.isBindingPattern(e.variableDeclaration.name)&&32768&e.variableDeclaration.name.transformFlags){var t=g.getGeneratedNameForNode(e.variableDeclaration.name),r=g.updateVariableDeclaration(e.variableDeclaration,e.variableDeclaration.name,void 0,void 0,t),n=Y.flattenDestructuringBinding(r,E,f,1),r=Y.visitNode(e.block,E,Y.isBlock);return Y.some(n)&&(r=g.updateBlock(r,__spreadArray([g.createVariableStatement(void 0,n)],r.statements,!0))),g.updateCatchClause(e,g.updateVariableDeclaration(e.variableDeclaration,t,void 0,void 0,void 0),r)}return Y.visitEachChild(e,E,f)}(e);case 237:return function(e){if(Y.hasSyntacticModifier(e,1)){var t=b;b=!0;var r=Y.visitEachChild(e,E,f);return b=t,r}return Y.visitEachChild(e,E,f)}(e);case 254:return function(e){if(b){var t=b,r=w(e,!(b=!1));return b=t,r}return w(e,!1)}(e);case 240:case 241:case 243:return F(P,e,0,2);case 244:return O(e,void 0);case 242:return F(I,e,0,2);case 217:return i=e,Y.visitEachChild(i,N,f);case 171:return F(j,e,2,1);case 169:return F(K,e,2,1);case 172:return F(J,e,2,1);case 173:return F(z,e,2,1);case 256:return F(U,e,2,1);case 213:return F(q,e,2,1);case 214:return F(V,e,2,0);case 164:return R(e);case 238:return n=e,Y.visitEachChild(n,N,f);case 212:return n=e,r=t,Y.visitEachChild(n,r?N:E,f);case 210:return r=e,Y.processTaggedTemplateExpression(f,r,E,d,k,Y.ProcessLevel.LiftRestriction);case 206:return h&&Y.isPropertyAccessExpression(e)&&106===e.expression.kind&&h.add(e.name.escapedText),Y.visitEachChild(e,E,f);case 207:return h&&106===e.expression.kind&&(v=!0),Y.visitEachChild(e,E,f);case 257:case 226:return F(P,e,2,1);default:return Y.visitEachChild(e,E,f)}var r,n,i}function w(e,t){return Y.isBindingPattern(e.name)&&32768&e.name.transformFlags?Y.flattenDestructuringBinding(e,E,f,1,void 0,t):Y.visitEachChild(e,E,f)}function I(e){return g.updateForStatement(e,Y.visitNode(e.initializer,N,Y.isForInitializer),Y.visitNode(e.condition,E,Y.isExpression),Y.visitNode(e.incrementor,N,Y.isExpression),Y.visitIterationBody(e.statement,E,f))}function O(e,t){var r=T(0,2);32768&e.initializer.transformFlags&&(e=function(e){var t=Y.skipParentheses(e.initializer);if(Y.isVariableDeclarationList(t)||Y.isAssignmentPattern(t)){var r=void 0,n=void 0,i=g.createTempVariable(void 0),t=[Y.createForOfBindingStatement(g,t,i)];return Y.isBlock(e.statement)?(Y.addRange(t,e.statement.statements),r=e.statement,n=e.statement.statements):e.statement&&(Y.append(t,e.statement),r=e.statement,n=e.statement),g.updateForOfStatement(e,e.awaitModifier,Y.setTextRange(g.createVariableDeclarationList([Y.setTextRange(g.createVariableDeclaration(i),e.initializer)],1),e.initializer),e.expression,Y.setTextRange(g.createBlock(Y.setTextRange(g.createNodeArray(t),n),!0),r))}return e}(e));t=e.awaitModifier?function(e,t,r){var n=Y.visitNode(e.expression,E,Y.isExpression),i=Y.isIdentifier(n)?g.getGeneratedNameForNode(n):g.createTempVariable(void 0),a=Y.isIdentifier(n)?g.getGeneratedNameForNode(i):g.createTempVariable(void 0),o=g.createUniqueName("e"),s=g.getGeneratedNameForNode(o),c=g.createTempVariable(void 0),l=Y.setTextRange(p().createAsyncValuesHelper(n),e.expression),u=g.createCallExpression(g.createPropertyAccessExpression(i,"next"),void 0,[]),_=g.createPropertyAccessExpression(a,"done"),d=g.createPropertyAccessExpression(a,"value"),n=g.createFunctionCallCall(c,i,[]);m(o),m(c);l=2&r?g.inlineExpressions([g.createAssignment(o,g.createVoidZero()),l]):l,d=Y.setEmitFlags(Y.setTextRange(g.createForStatement(Y.setEmitFlags(Y.setTextRange(g.createVariableDeclarationList([Y.setTextRange(g.createVariableDeclaration(i,void 0,void 0,l),e.expression),g.createVariableDeclaration(a)]),e.expression),2097152),g.createComma(g.createAssignment(a,M(u)),g.createLogicalNot(_)),void 0,function(e,t){var r,n,t=Y.createForOfBindingStatement(g,e.initializer,t),t=[Y.visitNode(t,E,Y.isStatement)],e=Y.visitIterationBody(e.statement,E,f);Y.isBlock(e)?(Y.addRange(t,e.statements),n=(r=e).statements):t.push(e);return Y.setEmitFlags(Y.setTextRange(g.createBlock(Y.setTextRange(g.createNodeArray(t),n),!0),r),432)}(e,d)),e),256);return Y.setOriginalNode(d,e),g.createTryStatement(g.createBlock([g.restoreEnclosingLabel(d,t)]),g.createCatchClause(g.createVariableDeclaration(s),Y.setEmitFlags(g.createBlock([g.createExpressionStatement(g.createAssignment(o,g.createObjectLiteralExpression([g.createPropertyAssignment("error",s)])))]),1)),g.createBlock([g.createTryStatement(g.createBlock([Y.setEmitFlags(g.createIfStatement(g.createLogicalAnd(g.createLogicalAnd(a,g.createLogicalNot(_)),g.createAssignment(c,g.createPropertyAccessExpression(i,"return"))),g.createExpressionStatement(M(n))),1)]),void 0,Y.setEmitFlags(g.createBlock([Y.setEmitFlags(g.createIfStatement(o,g.createThrowStatement(g.createPropertyAccessExpression(o,"error"))),1)]),1))]))}(e,t,r):g.restoreEnclosingLabel(Y.visitEachChild(e,E,f),t);return C(r),t}function M(e){return 1&o?g.createYieldExpression(void 0,p().createAwaitHelper(e)):g.createAwaitExpression(e)}function L(e){return Y.Debug.assertNode(e,Y.isParameter),R(e)}function R(e){return null!=n&&n.has(e)?g.updateParameterDeclaration(e,void 0,void 0,e.dotDotDotToken,Y.isBindingPattern(e.name)?g.getGeneratedNameForNode(e):e.name,void 0,void 0,void 0):32768&e.transformFlags?g.updateParameterDeclaration(e,void 0,void 0,e.dotDotDotToken,g.getGeneratedNameForNode(e),void 0,void 0,Y.visitNode(e.initializer,E,Y.isExpression)):Y.visitEachChild(e,E,f)}function B(e){for(var t,r=0,n=e.parameters;r<n.length;r++){var i=n[r];t?t.add(i):32768&i.transformFlags&&(t=new Y.Set)}return t}function j(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateConstructorDeclaration(e,void 0,e.modifiers,Y.visitParameterList(e.parameters,L,f),H(e));return o=t,n=r,e}function J(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateGetAccessorDeclaration(e,void 0,e.modifiers,Y.visitNode(e.name,E,Y.isPropertyName),Y.visitParameterList(e.parameters,L,f),void 0,H(e));return o=t,n=r,e}function z(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateSetAccessorDeclaration(e,void 0,e.modifiers,Y.visitNode(e.name,E,Y.isPropertyName),Y.visitParameterList(e.parameters,L,f),H(e));return o=t,n=r,e}function K(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateMethodDeclaration(e,void 0,1&o?Y.visitNodes(e.modifiers,A,Y.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,Y.visitNode(e.name,E,Y.isPropertyName),Y.visitNode(void 0,E,Y.isToken),void 0,Y.visitParameterList(e.parameters,L,f),void 0,(2&o&&1&o?W:H)(e));return o=t,n=r,e}function U(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateFunctionDeclaration(e,void 0,1&o?Y.visitNodes(e.modifiers,A,Y.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,e.name,void 0,Y.visitParameterList(e.parameters,L,f),void 0,(2&o&&1&o?W:H)(e));return o=t,n=r,e}function V(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateArrowFunction(e,e.modifiers,void 0,Y.visitParameterList(e.parameters,L,f),void 0,e.equalsGreaterThanToken,H(e));return o=t,n=r,e}function q(e){var t=o,r=n;o=Y.getFunctionFlags(e),n=B(e);e=g.updateFunctionExpression(e,1&o?Y.visitNodes(e.modifiers,A,Y.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,e.name,void 0,Y.visitParameterList(e.parameters,L,f),void 0,(2&o&&1&o?W:H)(e));return o=t,n=r,e}function W(e){s();var t=[],r=g.copyPrologue(e.body.statements,t,!1,E);G(t,e);var n=h,i=v;h=new Y.Set,v=!1;var a=g.createReturnStatement(p().createAsyncGeneratorHelper(g.createFunctionExpression(void 0,g.createToken(41),e.name&&g.getGeneratedNameForNode(e.name),void 0,[],void 0,g.updateBlock(e.body,Y.visitLexicalEnvironment(e.body.statements,E,f,r))),!!(1&D))),o=2<=u&&6144&l.getNodeCheckFlags(e);o&&(0==(1&_)&&(_|=1,f.enableSubstitution(208),f.enableSubstitution(206),f.enableSubstitution(207),f.enableEmitNotification(257),f.enableEmitNotification(169),f.enableEmitNotification(172),f.enableEmitNotification(173),f.enableEmitNotification(171),f.enableEmitNotification(237)),r=Y.createSuperAccessVariableStatement(g,l,e,h),S[Y.getNodeId(r)]=!0,Y.insertStatementsAfterStandardPrologue(t,[r])),t.push(a),Y.insertStatementsAfterStandardPrologue(t,c());t=g.updateBlock(e.body,t);return o&&v&&(4096&l.getNodeCheckFlags(e)?Y.addEmitHelper(t,Y.advancedAsyncSuperHelper):2048&l.getNodeCheckFlags(e)&&Y.addEmitHelper(t,Y.asyncSuperHelper)),h=n,v=i,t}function H(e){s();var t=0,r=[],n=null!==(i=Y.visitNode(e.body,E,Y.isConciseBody))&&void 0!==i?i:g.createBlock([]);Y.isBlock(n)&&(t=g.copyPrologue(n.statements,r,!1,E)),Y.addRange(r,G(void 0,e));var i=c();if(0<t||Y.some(r)||Y.some(i)){e=g.converters.convertToFunctionBlock(n,!0);return Y.insertStatementsAfterStandardPrologue(r,i),Y.addRange(r,e.statements.slice(t)),g.updateBlock(e,Y.setTextRange(g.createNodeArray(r),e.statements))}return n}function G(e,t){for(var r=!1,n=0,i=t.parameters;n<i.length;n++){var a,o,s,c,l,u,_,d,p=i[n];r?Y.isBindingPattern(p.name)?0<p.name.elements.length?(u=Y.flattenDestructuringBinding(p,E,f,0,g.getGeneratedNameForNode(p)),Y.some(u)&&(_=g.createVariableDeclarationList(u),d=g.createVariableStatement(void 0,_),Y.setEmitFlags(d,1048576),e=Y.append(e,d))):p.initializer&&(a=g.getGeneratedNameForNode(p),o=Y.visitNode(p.initializer,E,Y.isExpression),s=g.createAssignment(a,o),d=g.createExpressionStatement(s),Y.setEmitFlags(d,1048576),e=Y.append(e,d)):p.initializer&&(a=g.cloneNode(p.name),Y.setTextRange(a,p.name),Y.setEmitFlags(a,48),o=Y.visitNode(p.initializer,E,Y.isExpression),Y.addEmitFlags(o,1584),s=g.createAssignment(a,o),Y.setTextRange(s,p),Y.setEmitFlags(s,1536),c=g.createBlock([g.createExpressionStatement(s)]),Y.setTextRange(c,p),Y.setEmitFlags(c,1953),l=g.createTypeCheck(g.cloneNode(p.name),"undefined"),d=g.createIfStatement(l,c),Y.startOnNewLine(d),Y.setTextRange(d,p),Y.setEmitFlags(d,1050528),e=Y.append(e,d)):32768&p.transformFlags&&(r=!0,u=Y.flattenDestructuringBinding(p,E,f,1,g.getGeneratedNameForNode(p),!1,!0),Y.some(u)&&(_=g.createVariableDeclarationList(u),d=g.createVariableStatement(void 0,_),Y.setEmitFlags(d,1048576),e=Y.append(e,d)))}return e}function Q(e){return 106===e.expression.kind?Y.setTextRange(g.createPropertyAccessExpression(g.createUniqueName("_super",48),e.name),e):e}function X(e){return 106===e.expression.kind?(t=e.argumentExpression,r=e,4096&x?Y.setTextRange(g.createPropertyAccessExpression(g.createCallExpression(g.createIdentifier("_superIndex"),void 0,[t]),"value"),r):Y.setTextRange(g.createCallExpression(g.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==(64&e.transformFlags)?e:292!==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(m){m.transformES2020=function(n){var _=n.factory,d=n.hoistVariableDeclaration;return m.chainBundle(n,function(e){if(e.isDeclarationFile)return e;return m.visitEachChild(e,p,n)});function p(e){if(0==(32&e.transformFlags))return e;switch(e.kind){case 208:var t=a(e,!1);return m.Debug.assertNotNode(t,m.isSyntheticReference),t;case 206:case 207:if(m.isOptionalChain(e)){t=o(e,!1,!1);return m.Debug.assertNotNode(t,m.isSyntheticReference),t}return m.visitEachChild(e,p,n);case 221:return 60===e.operatorToken.kind?function(e){var t=m.visitNode(e.left,p,m.isExpression),r=t;m.isSimpleCopiableExpression(t)||(r=_.createTempVariable(d),t=_.createAssignment(r,t));return m.setTextRange(_.createConditionalExpression(g(t,r),void 0,r,void 0,m.visitNode(e.right,p,m.isExpression)),e)}(e):m.visitEachChild(e,p,n);case 215:return t=e,m.isOptionalChain(m.skipParentheses(t.expression))?m.setOriginalNode(f(t.expression,!1,!0),t):_.updateDeleteExpression(t,m.visitNode(t.expression,p,m.isExpression));default:return m.visitEachChild(e,p,n)}}function i(e,t,r){r=f(e.expression,t,r);return m.isSyntheticReference(r)?_.createSyntheticReferenceExpression(_.updateParenthesizedExpression(e,r.expression),r.thisArg):_.updateParenthesizedExpression(e,r)}function a(e,t){if(m.isOptionalChain(e))return o(e,t,!1);if(m.isParenthesizedExpression(e.expression)&&m.isOptionalChain(m.skipParentheses(e.expression))){var r=i(e.expression,!0,!1),t=m.visitNodes(e.arguments,p,m.isExpression);return m.isSyntheticReference(r)?m.setTextRange(_.createFunctionCallCall(r.expression,r.thisArg,t),e):_.updateCallExpression(e,r,void 0,t)}return m.visitEachChild(e,p,n)}function f(e,t,r){switch(e.kind){case 212:return i(e,t,r);case 206:case 207:return function(e,t,r){if(m.isOptionalChain(e))return o(e,t,r);var n,r=m.visitNode(e.expression,p,m.isExpression);return m.Debug.assertNotNode(r,m.isSyntheticReference),t&&(m.isSimpleCopiableExpression(r)?n=r:(n=_.createTempVariable(d),r=_.createAssignment(n,r))),r=206===e.kind?_.updatePropertyAccessExpression(e,r,m.visitNode(e.name,p,m.isIdentifier)):_.updateElementAccessExpression(e,r,m.visitNode(e.argumentExpression,p,m.isExpression)),n?_.createSyntheticReferenceExpression(r,n):r}(e,t,r);case 208:return a(e,t);default:return m.visitNode(e,p,m.isExpression)}}function o(e,t,r){var n=function(e){m.Debug.assertNotNode(e,m.isNonNullChain);for(var t=[e];!e.questionDotToken&&!m.isTaggedTemplateExpression(e);)e=m.cast(m.skipPartiallyEmittedExpressions(e.expression),m.isOptionalChain),m.Debug.assertNotNode(e,m.isNonNullChain),t.unshift(e);return{expression:e.expression,chain:t}}(e),i=n.expression,a=n.chain,n=f(m.skipPartiallyEmittedExpressions(i),m.isCallChain(a[0]),!1),o=m.isSyntheticReference(n)?n.thisArg:void 0,n=m.isSyntheticReference(n)?n.expression:n,i=_.restoreOuterExpressions(i,n,8);m.isSimpleCopiableExpression(n)||(n=_.createTempVariable(d),i=_.createAssignment(n,i));for(var s,c=n,l=0;l<a.length;l++){var u=a[l];switch(u.kind){case 206:case 207:l===a.length-1&&t&&(m.isSimpleCopiableExpression(c)?s=c:(s=_.createTempVariable(d),c=_.createAssignment(s,c))),c=206===u.kind?_.createPropertyAccessExpression(c,m.visitNode(u.name,p,m.isIdentifier)):_.createElementAccessExpression(c,m.visitNode(u.argumentExpression,p,m.isExpression));break;case 208:c=0===l&&o?(m.isGeneratedIdentifier(o)||(o=_.cloneNode(o),m.addEmitFlags(o,1536)),_.createFunctionCallCall(c,106===o.kind?_.createThis():o,m.visitNodes(u.arguments,p,m.isExpression))):_.createCallExpression(c,void 0,m.visitNodes(u.arguments,p,m.isExpression))}m.setOriginalNode(c,u)}n=r?_.createConditionalExpression(g(i,n,!0),void 0,_.createTrue(),void 0,_.createDeleteExpression(c)):_.createConditionalExpression(g(i,n,!0),void 0,_.createVoidZero(),void 0,c);return m.setTextRange(n,e),s?_.createSyntheticReferenceExpression(n,s):n}function g(e,t,r){return _.createBinaryExpression(_.createBinaryExpression(e,_.createToken(r?36:37),_.createNull()),_.createToken(r?56:55),_.createBinaryExpression(t,_.createToken(r?36:37),_.createVoidZero()))}}}(ts=ts||{}),function(_){_.transformES2021=function(r){var c=r.hoistVariableDeclaration,l=r.factory;return _.chainBundle(r,function(e){if(e.isDeclarationFile)return e;return _.visitEachChild(e,u,r)});function u(e){if(0==(16&e.transformFlags))return e;if(221===e.kind){var t=e;if(_.isLogicalOrCoalescingAssignmentExpression(t))return function(e){var t=e.operatorToken,r=_.getNonAssignmentOperatorForCompoundAssignment(t.kind),n=_.skipParentheses(_.visitNode(e.left,u,_.isLeftHandSideExpression)),i=n,a=_.skipParentheses(_.visitNode(e.right,u,_.isExpression));{var o,s;_.isAccessExpression(n)&&(s=_.isSimpleCopiableExpression(n.expression),o=s?n.expression:l.createTempVariable(c),t=s?n.expression:l.createAssignment(o,n.expression),n=_.isPropertyAccessExpression(n)?(i=l.createPropertyAccessExpression(o,n.name),l.createPropertyAccessExpression(t,n.name)):(e=_.isSimpleCopiableExpression(n.argumentExpression),s=e?n.argumentExpression:l.createTempVariable(c),i=l.createElementAccessExpression(o,s),l.createElementAccessExpression(t,e?n.argumentExpression:l.createAssignment(s,n.argumentExpression))))}return l.createBinaryExpression(n,r,l.createParenthesizedExpression(l.createAssignment(i,a)))}(t)}return _.visitEachChild(e,u,r)}}}(ts=ts||{}),function(n){n.transformESNext=function(t){return n.chainBundle(t,function(e){if(e.isDeclarationFile)return e;return n.visitEachChild(e,r,t)});function r(e){return 0==(4&e.transformFlags)?e:(e.kind,n.visitEachChild(e,r,t))}}}(ts=ts||{}),function(A){A.transformJsx=function(c){var l,u,_=c.factory,n=c.getEmitHelperFactory,d=c.getCompilerOptions();return A.chainBundle(c,function(e){if(e.isDeclarationFile)return e;l=e,(u={}).importSpecifier=A.getJSXImplicitImportBase(d,e);var t=A.visitEachChild(e,p,c);A.addEmitHelpers(t,c.readEmitHelpers());var r=t.statements;u.filenameDeclaration&&(r=A.insertStatementAfterCustomPrologue(r.slice(),_.createVariableStatement(void 0,_.createVariableDeclarationList([u.filenameDeclaration],2))));if(u.utilizedImplicitRuntimeImports)for(var n=0,i=A.arrayFrom(u.utilizedImplicitRuntimeImports.entries());n<i.length;n++){var a=i[n],o=a[0],s=a[1];A.isExternalModule(e)?(a=_.createImportDeclaration(void 0,void 0,_.createImportClause(!1,void 0,_.createNamedImports(A.arrayFrom(s.values()))),_.createStringLiteral(o),void 0),A.setParentRecursive(a,!1),r=A.insertStatementAfterCustomPrologue(r.slice(),a)):A.isExternalOrCommonJsModule(e)&&(o=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(_.createObjectBindingPattern(A.map(A.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)),A.setParentRecursive(o,!1),r=A.insertStatementAfterCustomPrologue(r.slice(),o))}r!==t.statements&&(t=_.updateSourceFile(t,r));return u=void 0,t});function s(e){return o((e=e,5===d.jsx?"jsxDEV":e?"jsxs":"jsx"))}function o(e){var t="createElement"===e?u.importSpecifier:A.getJSXRuntimeImport(u.importSpecifier,d),r=null===(n=null===(r=u.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(t))||void 0===n?void 0:n.get(e);if(r)return r.name;u.utilizedImplicitRuntimeImports||(u.utilizedImplicitRuntimeImports=new A.Map);var n=u.utilizedImplicitRuntimeImports.get(t);n||(n=new A.Map,u.utilizedImplicitRuntimeImports.set(t,n));r=_.createUniqueName("_".concat(e),112),t=_.createImportSpecifier(!1,_.createIdentifier(e),r);return r.generatedImportReference=t,n.set(e,t),r}function p(e){return 2&e.transformFlags?function(e){switch(e.kind){case 278:return t(e,!1);case 279:return i(e,!1);case 282:return a(e,!1);case 288:return N(e);default:return A.visitEachChild(e,p,c)}}(e):e}function f(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);A.isLineBreak(a)?(-1!==r&&-1!==n&&(t=C(t,e.substr(r,n-r+1))),r=-1):A.isWhiteSpaceSingleLine(a)||(n=i,-1===r&&(r=i))}return-1!==r?C(t,e.substr(r)):t}(e.text);return void 0===e?void 0:_.createStringLiteral(e)}(e);case 288:return N(e);case 278:return t(e,!0);case 279:return i(e,!0);case 282:return a(e,!0);default:return A.Debug.failBadSyntaxKind(e)}}function r(e){return void 0===u.importSpecifier||function(e){for(var t=!1,r=0,n=e.attributes.properties;r<n.length;r++){var i=n[r];if(A.isJsxSpreadAttribute(i))t=!0;else if(t&&A.isJsxAttribute(i)&&"key"===i.name.escapedText)return 1}return}(e)}function t(e,t){return(r(e.openingElement)?h:m)(e.openingElement,e.children,t,e)}function i(e,t){return(r(e)?h:m)(e,void 0,t,e)}function a(e,t){return(void 0===u.importSpecifier?b:v)(e.openingFragment,e.children,t,e)}function g(e){var t=A.getSemanticJsxChildren(e);if(1===A.length(t)&&!t[0].dotDotDotToken){t=f(t[0]);return t&&_.createPropertyAssignment("children",t)}e=A.mapDefined(e,f);return A.length(e)?_.createPropertyAssignment("children",_.createArrayLiteralExpression(e)):void 0}function m(e,t,r,n){var i=E(e),a=t&&t.length?g(t):void 0,o=A.find(e.attributes.properties,function(e){return!!e.name&&A.isIdentifier(e.name)&&"key"===e.name.escapedText}),e=o?A.filter(e.attributes.properties,function(e){return e!==o}):e.attributes.properties;return y(i,A.length(e)?x(e,a):_.createObjectLiteralExpression(a?[a]:A.emptyArray),o,t||A.emptyArray,r,n)}function y(e,t,r,n,i,a){var n=A.getSemanticJsxChildren(n),o=1<A.length(n)||!(null===(o=n[0])||void 0===o||!o.dotDotDotToken),e=[e,t];r&&e.push(T(r.initializer)),5!==d.jsx||(t=A.getOriginalNode(l))&&A.isSourceFile(t)&&(void 0===r&&e.push(_.createVoidZero()),e.push(o?_.createTrue():_.createFalse()),t=A.getLineAndCharacterOfPosition(t,a.pos),e.push(_.createObjectLiteralExpression([_.createPropertyAssignment("fileName",function(){if(u.filenameDeclaration)return u.filenameDeclaration.name;var e=_.createVariableDeclaration(_.createUniqueName("_jsxFileName",48),void 0,void 0,_.createStringLiteral(l.fileName));return u.filenameDeclaration=e,u.filenameDeclaration.name}()),_.createPropertyAssignment("lineNumber",_.createNumericLiteral(t.line+1)),_.createPropertyAssignment("columnNumber",_.createNumericLiteral(t.character+1))])),e.push(_.createThis()));a=A.setTextRange(_.createCallExpression(s(o),void 0,e),a);return i&&A.startOnNewLine(a),a}function h(e,t,r,n){var i=E(e),a=e.attributes.properties,a=A.length(a)?x(a):_.createNull(),e=void 0===u.importSpecifier?A.createJsxFactoryExpression(_,c.getEmitResolver().getJsxFactoryEntity(l),d.reactNamespace,e):o("createElement"),n=A.createExpressionForJsxElement(_,e,i,a,A.mapDefined(t,f),n);return r&&A.startOnNewLine(n),n}function v(e,t,r,n){var i,a;return t&&t.length&&((a=(a=g(a=t))&&_.createObjectLiteralExpression([a]))&&(i=a)),y(o("Fragment"),i||_.createObjectLiteralExpression([]),void 0,t,r,n)}function b(e,t,r,n){n=A.createExpressionForJsxFragment(_,c.getEmitResolver().getJsxFactoryEntity(l),c.getEmitResolver().getJsxFragmentFactoryEntity(l),d.reactNamespace,A.mapDefined(t,f),e,n);return r&&A.startOnNewLine(n),n}function x(e,t){var r=A.getEmitScriptTarget(d);return r&&5<=r?_.createObjectLiteralExpression(function(e,t){e=A.flatten(A.spanMap(e,A.isJsxSpreadAttribute,function(e,r){return A.map(e,function(e){return r?(t=e,_.createSpreadAssignment(A.visitNode(t.expression,p,A.isExpression))):S(e);var t})}));t&&e.push(t);return e}(e,t)):function(e,t){var r=A.flatten(A.spanMap(e,A.isJsxSpreadAttribute,function(e,t){return t?A.map(e,D):_.createObjectLiteralExpression(A.map(e,S))}));A.isJsxSpreadAttribute(e[0])&&r.unshift(_.createObjectLiteralExpression());t&&r.push(_.createObjectLiteralExpression([t]));return A.singleOrUndefined(r)||n().createAssignHelper(r)}(e,t)}function D(e){return A.visitNode(e.expression,p,A.isExpression)}function S(e){var t,r,t=(r=(t=e).name,t=A.idText(r),/^[A-Za-z_]\w*$/.test(t)?r:_.createStringLiteral(t)),e=T(e.initializer);return _.createPropertyAssignment(t,e)}function T(e){if(void 0===e)return _.createTrue();if(10!==e.kind)return 288===e.kind?void 0===e.expression?_.createTrue():A.visitNode(e.expression,p,A.isExpression):A.Debug.failBadSyntaxKind(e);var t,r,n=void 0!==e.singleQuote?e.singleQuote:!A.isStringDoubleQuoted(e,l),n=_.createStringLiteral((t=e.text,((r=k(t))===t?void 0:r)||e.text),n);return A.setTextRange(n,e)}function C(e,t){t=k(t);return void 0===e?t:e+" "+t}function k(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,r,n,i,a,o){if(i)return A.utf16EncodeAsString(parseInt(i,10));if(a)return A.utf16EncodeAsString(parseInt(a,16));o=F.get(o);return o?A.utf16EncodeAsString(o):e})}function E(e){if(278===e.kind)return E(e.openingElement);e=e.tagName;return A.isIdentifier(e)&&A.isIntrinsicJsxName(e.escapedText)?_.createStringLiteral(A.idText(e)):A.createExpressionFromEntityName(_,e)}function N(e){var t=A.visitNode(e.expression,p,A.isExpression);return e.dotDotDotToken?_.createSpreadElement(t):t}};var F=new A.Map(A.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(l){l.transformES2016=function(t){var o=t.factory,s=t.hoistVariableDeclaration;return l.chainBundle(t,function(e){if(e.isDeclarationFile)return e;return l.visitEachChild(e,c,t)});function c(e){return 0==(512&e.transformFlags)?e:221!==e.kind?l.visitEachChild(e,c,t):function(e){switch(e.operatorToken.kind){case 67:return function(e){var t,r=l.visitNode(e.left,c,l.isExpression),n=l.visitNode(e.right,c,l.isExpression);{var i,a;r=l.isElementAccessExpression(r)?(a=o.createTempVariable(s),i=o.createTempVariable(s),t=l.setTextRange(o.createElementAccessExpression(l.setTextRange(o.createAssignment(a,r.expression),r.expression),l.setTextRange(o.createAssignment(i,r.argumentExpression),r.argumentExpression)),r),l.setTextRange(o.createElementAccessExpression(a,i),r)):l.isPropertyAccessExpression(r)?(a=o.createTempVariable(s),t=l.setTextRange(o.createPropertyAccessExpression(l.setTextRange(o.createAssignment(a,r.expression),r.expression),r.name),r),l.setTextRange(o.createPropertyAccessExpression(a,r.name),r)):t=r}return l.setTextRange(o.createAssignment(t,l.setTextRange(o.createGlobalMethodCall("Math","pow",[r,n]),e)),e)}(e);case 42:return function(e){var t=l.visitNode(e.left,c,l.isExpression),r=l.visitNode(e.right,c,l.isExpression);return l.setTextRange(o.createGlobalMethodCall("Math","pow",[t,r]),e)}(e);default:return l.visitEachChild(e,c,t)}}(e)}}}(ts=ts||{}),function(Te){var e;function Ce(e,t){return{kind:e,expression:t}}(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.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="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=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="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.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes",(e={})[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread",Te.transformES2015=function(l){var u,i,_,a,p,o,f=l.factory,d=l.getEmitHelperFactory,g=l.startLexicalEnvironment,m=l.resumeLexicalEnvironment,y=l.endLexicalEnvironment,h=l.hoistVariableDeclaration,v=l.getCompilerOptions(),b=l.getEmitResolver(),r=l.onSubstituteNode,s=l.onEmitNode;function x(e){a=Te.append(a,f.createVariableDeclaration(e))}return l.onEmitNode=function(e,t,r){if(1&o&&Te.isFunctionLike(t)){var n=D(32670,8&Te.getEmitFlags(t)?81:65);return s(e,t,r),void S(n,0,0)}s(e,t,r)},l.onSubstituteNode=function(e,t){if(t=r(e,t),1===e)return function(e){switch(e.kind){case 79:return function(e){if(2&o&&!Te.isInternalName(e)){var t=b.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 108: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 203:case 257:case 260:case 254:return e.parent.name===e&&b.isDeclarationWithCollidingName(e.parent)}return!1}(t))return Te.setTextRange(f.getGeneratedNameForNode(t),e)}return e}(t);return t},Te.chainBundle(l,function(e){if(e.isDeclarationFile)return e;i=(u=e).text;e=function(e){var t=D(8064,64),r=[],n=[];g();var i=f.copyPrologue(e.statements,r,!1,C);Te.addRange(n,Te.visitNodes(e.statements,C,Te.isStatement,i)),a&&n.push(f.createVariableStatement(void 0,f.createVariableDeclarationList(a)));return f.mergeLexicalEnvironment(r,y()),R(r,e),S(t,0,0),f.updateSourceFile(e,Te.setTextRange(f.createNodeArray(Te.concatenate(r,n)),e.statements))}(e);return Te.addEmitHelpers(e,l.readEmitHelpers()),a=i=u=void 0,_=0,e});function D(e,t){var r=_;return _=32767&(_&~e|t),r}function S(e,t,r){_=-32768&(_&~t|r)|e}function T(e){return 0!=(8192&_)&&247===e.kind&&!e.expression}function n(e){return 0!=(1024&e.transformFlags)||void 0!==p||8192&_&&(2097152&(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)&&se(e)||0!=(33554432&Te.getEmitFlags(e));var t}function C(e){return n(e)?c(e,!1):e}function k(e){return n(e)?c(e,!0):e}function E(e){if(n(e)){var t=Te.getOriginalNode(e);if(Te.isPropertyDeclaration(t)&&Te.hasStaticModifier(t)){var r=D(32670,16449),t=c(e,!1);return S(r,98304,0),t}return c(e,!1)}return e}function N(e){return 106===e.kind?be(!0):C(e)}function c(e,t){switch(e.kind){case 124:return;case 257:return function(e){var t=f.createVariableDeclaration(f.getLocalName(e,!0),void 0,void 0,P(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 226:return P(e);case 164: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 256:return function(e){var t=p;p=void 0;var r=D(32670,65),n=Te.visitParameterList(e.parameters,C,l),i=K(e),a=32768&_?f.getLocalName(e):e.name;return S(r,98304,0),p=t,f.updateFunctionDeclaration(e,void 0,Te.visitNodes(e.modifiers,C,Te.isModifier),e.asteriskToken,a,void 0,n,void 0,i)}(e);case 214:return function(e){8192&e.transformFlags&&!(16384&_)&&(_|=65536);var t=p;p=void 0;var r=D(15232,66),n=f.createFunctionExpression(void 0,void 0,void 0,void 0,Te.visitParameterList(e.parameters,C,l),void 0,K(e));return Te.setTextRange(n,e),Te.setOriginalNode(n,e),Te.setEmitFlags(n,8),S(r,0,0),p=t,n}(e);case 213:return function(e){var t=262144&Te.getEmitFlags(e)?D(32662,69):D(32670,65),r=p;p=void 0;var n=Te.visitParameterList(e.parameters,C,l),i=K(e),a=32768&_?f.getLocalName(e):e.name;return S(t,98304,0),p=r,f.updateFunctionExpression(e,void 0,e.asteriskToken,a,void 0,n,void 0,i)}(e);case 254:return q(e);case 79:return F(e);case 255:return function(e){if(3&e.flags||262144&e.transformFlags){3&e.flags&&xe();var t=Te.flatMap(e.declarations,1&e.flags?V:q),r=f.createVariableDeclarationList(t);return Te.setOriginalNode(r,e),Te.setTextRange(r,e),Te.setCommentRange(r,e),262144&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,C,l)}(e);case 249:return function(e){if(void 0===p)return Te.visitEachChild(e,C,l);var t=p.allowedNonLabeledJumps;p.allowedNonLabeledJumps|=2;e=Te.visitEachChild(e,C,l);return p.allowedNonLabeledJumps=t,e}(e);case 263:return s=e,c=D(7104,0),s=Te.visitEachChild(s,C,l),S(c,0,0),s;case 235:return function(e,t){if(t)return Te.visitEachChild(e,C,l);t=256&_?D(7104,512):D(6976,128),e=Te.visitEachChild(e,C,l);return S(t,0,0),e}(e,!1);case 246:case 245:return function(e){if(p){var t=246===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?246===e.kind?(r="break-".concat(t.escapedText),pe(p,!0,Te.idText(t),r)):(r="continue-".concat(t.escapedText),pe(p,!1,Te.idText(t),r)):r=246===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=_e(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,C,l)}(e);case 250:return function(e){p&&!p.labels&&(p.labels=new Te.Map);var t=Te.unwrapInnermostStatementOfLabel(e,p&&W);return Te.isIterationStatement(t,!1)?function(e,t){switch(e.kind){case 240:case 241:return Q(e,t);case 242:return X(e,t);case 243:return Y(e,t);case 244:return Z(e,t)}}(t,e):f.restoreEnclosingLabel(Te.visitNode(t,C,Te.isStatement,f.liftToBlock),e,p&&H)}(e);case 240:case 241:return Q(e,void 0);case 242:return X(e,void 0);case 243:return Y(e,void 0);case 244:return Z(e,void 0);case 238:return s=e,Te.visitEachChild(s,k,l);case 205:return function(e){for(var t=e.properties,r=-1,n=!1,i=0;i<t.length;i++){var a=t[i];if(524288&a.transformFlags&&4&_||(n=162===Te.Debug.checkDefined(a.name).kind)){r=i;break}}if(r<0)return Te.visitEachChild(e,C,l);var o=f.createTempVariable(h),s=[],c=f.createAssignment(o,Te.setEmitFlags(f.createObjectLiteralExpression(Te.visitNodes(t,C,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 172:case 173:var c=Te.getAllAccessorDeclarations(t.properties,s);s===c.firstAccessor&&e.push(J(r,c,t,!!t.multiLine));break;case 169:e.push(function(e,t,r,n){r=f.createAssignment(Te.createMemberAccessForPropertyName(f,t,Te.visitNode(e.name,C,Te.isPropertyName)),z(e,e,void 0,r));Te.setTextRange(r,e),n&&Te.startOnNewLine(r);return r}(s,r,t,t.multiLine));break;case 296:e.push(function(e,t,r){t=f.createAssignment(Te.createMemberAccessForPropertyName(f,t,Te.visitNode(e.name,C,Te.isPropertyName)),Te.visitNode(e.initializer,C,Te.isExpression));Te.setTextRange(t,e),r&&Te.startOnNewLine(t);return t}(s,r,t.multiLine));break;case 297:e.push(function(e,t,r){t=f.createAssignment(Te.createMemberAccessForPropertyName(f,t,Te.visitNode(e.name,C,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 292:return function(e){var t=D(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,C,l,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,C,Te.isStatement);return f.updateBlock(e,__spreadArray([t],r,!0))}(e.block,n))):Te.visitEachChild(e,C,l)}return S(t,0,0),e}(e);case 297:return o=e,Te.setTextRange(f.createPropertyAssignment(o.name,F(f.cloneNode(o.name))),o);case 162:return a=e,Te.visitEachChild(a,C,l);case 204:return function(e){if(Te.some(e.elements,Te.isSpreadElement))return me(e.elements,!1,!!e.multiLine,!!e.elements.hasTrailingComma);return Te.visitEachChild(e,C,l)}(e);case 208: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,E,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),l=Te.tryCast(c,Te.isAssignmentExpression);!l&&Te.isBinaryExpression(c)&&27===c.operatorToken.kind&&(l=Te.tryCast(c.left,Te.isAssignmentExpression));var u=Te.cast(l?Te.skipOuterExpressions(l.right):c,Te.isCallExpression),r=Te.cast(Te.skipOuterExpressions(u.expression),Te.isFunctionExpression),_=r.body.statements,n=0,d=-1,i=[];l&&((c=Te.tryCast(_[n],Te.isExpressionStatement))&&(i.push(c),n++),i.push(_[n]),n++,i.push(f.createExpressionStatement(f.createAssignment(l.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(l&&l.right,f.updateCallExpression(u,f.restoreOuterExpressions(u.expression,f.updateFunctionExpression(r,void 0,void 0,void 0,void 0,r.parameters,void 0,f.updateBlock(r.body,i))),void 0,u.arguments))))}(e);var t=Te.skipOuterExpressions(e.expression);if(106===t.kind||Te.isSuperProperty(t)||Te.some(e.arguments,Te.isSpreadElement))return ge(e,!0);return f.updateCallExpression(e,Te.visitNode(e.expression,N,Te.isExpression),void 0,Te.visitNodes(e.arguments,C,Te.isExpression))}(e);case 209: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,C,Te.isExpression),t,me(f.createNodeArray(__spreadArray([f.createVoidZero()],e.arguments,!0)),!0,!1,!1)),void 0,[])}return Te.visitEachChild(e,C,l)}(e);case 212:return o=e,a=t,Te.visitEachChild(o,a?k:C,l);case 221:return U(e,t);case 351:return function(e,t){if(t)return Te.visitEachChild(e,k,l);for(var r,n=0;n<e.elements.length;n++){var i=e.elements[n],a=Te.visitNode(i,n<e.elements.length-1?k:C,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 210:return i=e,Te.processTaggedTemplateExpression(l,i,C,u,x,Te.ProcessLevel.All);case 223:return function(e){for(var t=f.createStringLiteral(e.head.text),r=0,n=e.templateSpans;r<n.length;r++){var i=n[r],a=[Te.visitNode(i.expression,C,Te.isExpression)];0<i.literal.text.length&&a.push(f.createStringLiteral(i.literal.text)),t=f.createCallExpression(f.createPropertyAccessExpression(t,"concat"),void 0,a)}return Te.setTextRange(t,e)}(e);case 224:return n=e,Te.visitEachChild(n,C,l);case 225:return n=e,Te.visitNode(n.expression,C,Te.isExpression);case 106:return be(!1);case 108:return function(e){2&_&&!(16384&_)&&(_|=65536);if(p)return 2&_?(p.containsLexicalThis=!0,e):p.thisName||(p.thisName=f.createUniqueName("this"));return e}(e);case 231:return 103!==(r=e).keywordToken||"target"!==r.name.escapedText?r:(_|=32768,f.createUniqueName("_newTarget",48));case 169:return function(e){Te.Debug.assert(!Te.isComputedPropertyName(e.name));var t=z(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 172:case 173:return function(e){Te.Debug.assert(!Te.isComputedPropertyName(e.name));var t=p;p=void 0;var r=D(32670,65),n=Te.visitParameterList(e.parameters,C,l),i=K(e);i=172===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 S(r,98304,0),p=t,i}(e);case 237:return function(e){var t,r=D(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(79===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,C,l,0):(o=f.createBinaryExpression(s.name,63,Te.visitNode(s.initializer,C,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,C,l);return S(r,0,0),t}(e);case 247:return function(e){{if(p)return p.nonLocalJumps|=8,T(e)&&(e=A(e)),f.createReturnStatement(f.createObjectLiteralExpression([f.createPropertyAssignment(f.createIdentifier("value"),e.expression?Te.visitNode(e.expression,C,Te.isExpression):f.createVoidZero())]));if(T(e))return A(e)}return Te.visitEachChild(e,C,l)}(e);case 217:return r=e,Te.visitEachChild(r,k,l);default:return Te.visitEachChild(e,C,l)}var r,n,i,a,o,s,c}function A(e){return Te.setOriginalNode(f.createReturnStatement(f.createUniqueName("_this",48)),e)}function F(e){return p&&b.isArgumentsLocalBinding(e)?p.argumentsName||(p.argumentsName=f.createUniqueName("arguments")):e}function P(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=D(32662,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)||238!==t.kind)return!1;e=t.expression;if(!Te.nodeIsSynthesized(e)||208!==e.kind)return!1;t=e.expression;if(!Te.nodeIsSynthesized(t)||106!==t.kind)return!1;e=Te.singleOrUndefined(e.arguments);if(!e||!Te.nodeIsSynthesized(e)||225!==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,C,l)||[]}(o,s),void 0,function(e,t,r,n){var i=!!r&&104!==Te.skipOuterExpressions(r.expression).kind;if(!e)return function(e,t){var r=[];m(),f.mergeLexicalEnvironment(r,y()),t&&r.push(f.createReturnStatement(I()));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=[],o=[];m();var s=Te.takeWhile(e.body.statements,Te.isPrologueDirective),c=function(e,t){for(var r=t.length;r<e.length;r+=1){var n=Te.getSuperCallFromStatement(e[r]);if(n)return{superCall:n,superStatementIndex:r}}return{superStatementIndex:-1}}(e.body.statements,s),l=c.superCall,r=c.superStatementIndex,t=-1===r?s.length:r+1,c=t;n||(c=f.copyStandardPrologue(e.body.statements,a,c,!1));n||(c=f.copyCustomPrologue(e.body.statements,o,c,C,void 0));n?u=I():l&&(u=function(e){return ge(e,!1)}(l));u&&(_|=8192);{var u;M(a,e),L(a,e,n),Te.addRange(o,Te.visitNodes(e.body.statements,C,Te.isStatement,c)),f.mergeLexicalEnvironment(a,y()),j(a,e,!1),i||u?!u||t!==e.body.statements.length||8192&e.body.transformFlags?(r<=s.length?B(o,e,u||w()):(B(a,e,w()),u&&function(e,t){De();var r=f.createExpressionStatement(f.createBinaryExpression(f.createThis(),63,t));Te.insertStatementAfterCustomPrologue(e,r),Te.setCommentRange(r,Te.getOriginalNode(t).parent)}(o,u)),function e(t){{if(247===t.kind)return!0;if(239===t.kind){var r=t;if(r.elseStatement)return e(r.thenStatement)&&e(r.elseStatement)}else if(235===t.kind){var t=Te.lastOrUndefined(t.statements);if(t&&e(t))return!0}}return!1}(e.body)||o.push(f.createReturnStatement(f.createUniqueName("_this",48)))):(t=Te.cast(Te.cast(u,Te.isBinaryExpression).left,Te.isCallExpression),u=f.createReturnStatement(u),Te.setCommentRange(u,Te.getCommentRange(t)),Te.setEmitFlags(t,1536),o.push(u)):R(a,e)}o=f.createBlock(Te.setTextRange(f.createNodeArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],s,!0),a,!0),r<=s.length?Te.emptyArray:Te.visitNodes(e.body.statements,C,Te.isStatement,s.length,r-s.length),!0),o,!0)),e.body.statements),!0);return Te.setTextRange(o,e.body),o}(o,t,n,s));Te.setTextRange(s,o||t),n&&Te.setEmitFlags(s,8),e.push(s),S(a,98304,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 234:e.push(function(e){return Te.setTextRange(f.createEmptyStatement(),e)}(i));break;case 169:e.push(function(e,t,r){var n=Te.getCommentRange(t),i=Te.getSourceMapRange(t),a=z(t,t,void 0,r),o=Te.visitNode(t.name,C,Te.isPropertyName);s=!Te.isPrivateIdentifier(o)&&Te.getUseDefineForClassFields(l.getCompilerOptions())?(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 172:case 173:var a=Te.getAllAccessorDeclarations(t.members,i);i===a.firstAccessor&&e.push(function(e,t,r){r=f.createExpressionStatement(J(e,t,r,!1));return Te.setEmitFlags(r,1536),Te.setSourceMapRange(r,Te.getSourceMapRange(t.firstAccessor)),r}(Se(t,i),a,t));break;case 171:case 170:break;default:Te.Debug.failBadSyntaxKind(i,u&&u.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,C,Te.isExpression)]:[]));return Te.addSyntheticLeadingComment(t,3,"* @class "),t}function w(){return Te.setEmitFlags(f.createThis(),4)}function I(){return f.createLogicalOr(f.createLogicalAnd(f.createStrictInequality(f.createUniqueName("_super",48),f.createNull()),f.createFunctionApplyCall(f.createUniqueName("_super",48),w(),f.createIdentifier("arguments"))),w())}function O(e){return void 0!==e.initializer||Te.isBindingPattern(e.name)}function M(e,t){if(!Te.some(t.parameters,O))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,C,l,0,f.getGeneratedNameForNode(t)))),1048576)),!0;if(n)return Te.insertStatementAfterCustomPrologue(e,Te.setEmitFlags(f.createExpressionStatement(f.createAssignment(f.getGeneratedNameForNode(t),Te.visitNode(n,C,Te.isExpression))),1048576)),!0}return!1}(e,o,s,c)||n:c&&(r=e,o=o,s=s,c=c,c=Te.visitNode(c,C,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 L(e,t,r){var n=[],i=Te.lastOrUndefined(t.parameters);if(o=r,!(a=i)||!a.dotDotDotToken||o)return!1;r=79===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=79===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),79!==i.name.kind&&n.push(Te.setEmitFlags(Te.setTextRange(f.createVariableStatement(void 0,f.createVariableDeclarationList(Te.flattenDestructuringBinding(i,C,l,0,a))),i),1048576)),Te.insertStatementsAfterCustomPrologue(e,n),!0}function R(e,t){return 65536&_&&214!==t.kind&&(B(e,t,f.createThis()),1)}function B(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 j(e,t,r){if(32768&_){var n=void 0;switch(t.kind){case 214:return e;case 169:case 172:case 173:n=f.createVoidZero();break;case 171:n=f.createPropertyAccessExpression(Te.setEmitFlags(f.createThis(),4),"constructor");break;case 256:case 213:n=f.createConditionalExpression(f.createLogicalAnd(Te.setEmitFlags(f.createThis(),4),f.createBinaryExpression(Te.setEmitFlags(f.createThis(),4),102,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 J(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,C,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=z(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=z(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 z(e,t,r,n){var i=p;p=void 0;var a=n&&Te.isClassLike(n)&&!Te.isStatic(e)?D(32670,73):D(32670,65),o=Te.visitParameterList(e.parameters,C,l),n=K(e);return 32768&_&&!r&&(256===e.kind||213===e.kind)&&(r=f.getGeneratedNameForNode(e)),S(a,98304,0),p=i,Te.setOriginalNode(Te.setTextRange(f.createFunctionExpression(void 0,e.asteriskToken,r,void 0,o,void 0,n),t),e)}function K(e){var t,r,n=!1,i=!1,a=[],o=[],s=e.body;if(m(),Te.isBlock(s)&&(t=f.copyStandardPrologue(s.statements,a,0,!1),t=f.copyCustomPrologue(s.statements,o,t,C,Te.isHoistedFunction),t=f.copyCustomPrologue(s.statements,o,t,C,Te.isHoistedVariableStatement)),n=M(o,e)||n,n=L(o,e,!1)||n,Te.isBlock(s)?(t=f.copyCustomPrologue(s.statements,o,t,C),c=s.statements,Te.addRange(o,Te.visitNodes(s.statements,C,Te.isStatement,t)),!n&&s.multiLine&&(n=!0)):(Te.Debug.assert(214===e.kind),c=Te.moveRangeEnd(s,-1),r=e.equalsGreaterThanToken,Te.nodeIsSynthesized(r)||Te.nodeIsSynthesized(s)||(Te.rangeEndIsOnSameLineAsRangeStart(r,s,u)?i=!0:n=!0),r=Te.visitNode(s,C,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()),j(a,e,!1),R(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 U(e,t){return Te.isDestructuringAssignment(e)?Te.flattenDestructuringAssignment(e,C,l,0,!t):27===e.operatorToken.kind?f.updateBinaryExpression(e,Te.visitNode(e.left,k,Te.isExpression),e.operatorToken,Te.visitNode(e.right,t?k:C,Te.isExpression)):Te.visitEachChild(e,C,l)}function V(e){var t,r,n=e.name;return Te.isBindingPattern(n)?q(e):e.initializer||(t=e,n=262144&(r=b.getNodeCheckFlags(t)),r&=524288,0!=(64&_)||n&&r&&0!=(512&_)||0!=(4096&_)||b.isDeclarationWithCollidingName(t)&&(!r||n||0!=(6144&_)))?Te.visitEachChild(e,C,l):f.updateVariableDeclaration(e,e.name,void 0,void 0,f.createVoidZero())}function q(e){var t=D(32,0),e=Te.isBindingPattern(e.name)?Te.flattenDestructuringBinding(e,C,l,0,void 0,0!=(32&t)):Te.visitEachChild(e,C,l);return S(t,0,0),e}function W(e){p.labels.set(Te.idText(e.label),!0)}function H(e){p.labels.set(Te.idText(e.label),!1)}function G(e,t,r,n,i){t=D(e,t),i=function(e,t,r,n){if(!se(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,k,Te.isForInitializer),Te.visitNode(e.condition,C,Te.isExpression),Te.visitNode(e.incrementor,k,Te.isExpression),Te.visitNode(e.statement,C,Te.isStatement,f.liftToBlock))}(e):Te.visitEachChild(e,C,l),t,p&&H);return p&&(p.allowedNonLabeledJumps=i),a}var o=function(e){var t;switch(e.kind){case 242:case 243:case 244:var r=e.initializer;r&&255===r.kind&&(t=r)}var n=[],i=[];if(t&&3&Te.getCombinedNodeFlags(t))for(var a=ie(e)||ae(e)||oe(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 l=c[s];Te.isOmittedExpression(l)||e(t,l,n,i,a)}else{n.push(f.createParameterDeclaration(void 0,void 0,void 0,o));var u,_,d=b.getNodeCheckFlags(r);(4194304&d||a)&&(u=f.createUniqueName("out_"+Te.idText(o)),_=0,4194304&d&&(_|=1),Te.isForStatement(t)&&(t.initializer&&b.isBindingCapturedByNode(t.initializer,r)&&(_|=2),(t.condition&&b.isBindingCapturedByNode(t.condition,r)||t.incrementor&&b.isBindingCapturedByNode(t.incrementor,r))&&(_|=1)),i.push({flags:_,originalName:o,outParamName:u}))}}(e,c,n,i,a)}var l={loopParameters:n,loopOutParameters:i};p&&(p.argumentsName&&(l.argumentsName=p.argumentsName),p.thisName&&(l.thisName=p.thisName),p.hoistedLocalVariables&&(l.hoistedLocalVariables=p.hoistedLocalVariables));return l}(e),s=[],c=p;p=o;i=ie(e)?function(e,t){var r=f.createUniqueName("_loop_init"),n=0!=(524288&e.initializer.transformFlags),i=0;t.containsLexicalThis&&(i|=8);n&&4&_&&(i|=262144);var a=[];a.push(f.createVariableStatement(void 0,e.initializer)),de(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),C,Te.isBlock)),i))]),2097152)),t=f.createVariableDeclarationList(Te.map(t.loopOutParameters,ue));return{functionName:r,containsYield:n,functionDeclaration:i,part:t}}(e,o):void 0,a=ce(e)?function(e,t,r){var n=f.createUniqueName("_loop");g();var i=Te.visitNode(e.statement,C,Te.isStatement,f.liftToBlock),a=y(),o=[];(ae(e)||oe(e))&&(t.conditionVariable=f.createUniqueName("inc"),e.incrementor?o.push(f.createIfStatement(t.conditionVariable,f.createExpressionStatement(Te.visitNode(e.incrementor,C,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())))),ae(e)&&o.push(f.createIfStatement(f.createPrefixUnaryExpression(53,Te.visitNode(e.condition,C,Te.isExpression)),Te.visitNode(f.createBreakStatement(),C,Te.isStatement))));Te.isBlock(i)?Te.addRange(o,i.statements):o.push(i);de(t.loopOutParameters,1,1,o),Te.insertStatementsAfterStandardPrologue(o,a);o=f.createBlock(o,!0);Te.isBlock(i)&&Te.setOriginalNode(o,i);i=0!=(524288&e.statement.transformFlags),e=524288;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)),de(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),de(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=[],fe(t.labeledNonLocalBreaks,!0,a,r,o),fe(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 l=c[s];n.push(f.createVariableDeclaration(l.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=le(e,i,f.createBlock(a.part,!0)),f.restoreEnclosingLabel(a,t,p&&H)):(e=le(e,i,Te.visitNode(e.statement,C,Te.isStatement,f.liftToBlock)),f.restoreEnclosingLabel(e,t,p&&H));return s.push(t),s}(r,n,t,i);return S(t,0,0),i}function Q(e,t){return G(0,1280,e,t)}function X(e,t){return G(5056,3328,e,t)}function Y(e,t){return G(3008,5376,e,t)}function Z(e,t){return G(3008,5376,e,t,v.downlevelIteration?re:te)}function $(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,C,l,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(U(t,!0))):(Te.setTextRangeEnd(t,s.end),o.push(Te.setTextRange(f.createExpressionStatement(Te.visitNode(t,C,Te.isExpression)),Te.moveRangeEnd(s,-1))))),r)return ee(Te.addRange(o,r));e=Te.visitNode(e.statement,C,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),ee(o))}function ee(e){return Te.setEmitFlags(f.createBlock(f.createNodeArray(e),!0),432)}function te(e,t,r){var n=Te.visitNode(e.expression,C,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),$(e,f.createElementAccessExpression(a,i),r)),e);return Te.setEmitFlags(r,256),Te.setTextRange(r,e),f.restoreEnclosingLabel(r,t,p&&H)}function re(e,t,r,n){var i=Te.visitNode(e.expression,C,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),l=f.createTempVariable(void 0),u=Te.setTextRange(d().createValuesHelper(i),e.expression),i=f.createCallExpression(f.createPropertyAccessExpression(a,"next"),void 0,[]);h(s),h(l);u=1024&n?f.inlineExpressions([f.createAssignment(s,f.createVoidZero()),u]):u,e=Te.setEmitFlags(Te.setTextRange(f.createForStatement(Te.setEmitFlags(Te.setTextRange(f.createVariableDeclarationList([Te.setTextRange(f.createVariableDeclaration(a,void 0,void 0,u),e.expression),f.createVariableDeclaration(o,void 0,void 0,i)]),e.expression),2097152),f.createLogicalNot(f.createPropertyAccessExpression(o,"done")),f.createAssignment(o,i),$(e,f.createPropertyAccessExpression(o,"value"),r)),e),256);return f.createTryStatement(f.createBlock([f.restoreEnclosingLabel(e,t,p&&H)]),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(l,f.createPropertyAccessExpression(a,"return"))),f.createExpressionStatement(f.createFunctionCallCall(l,a,[]))),1)]),void 0,Te.setEmitFlags(f.createBlock([Te.setEmitFlags(f.createIfStatement(s,f.createThrowStatement(f.createPropertyAccessExpression(s,"error"))),1)]),1))]))}function ne(e){return 0!=(131072&b.getNodeCheckFlags(e))}function ie(e){return Te.isForStatement(e)&&!!e.initializer&&ne(e.initializer)}function ae(e){return Te.isForStatement(e)&&!!e.condition&&ne(e.condition)}function oe(e){return Te.isForStatement(e)&&!!e.incrementor&&ne(e.incrementor)}function se(e){return ce(e)||ie(e)}function ce(e){return 0!=(65536&b.getNodeCheckFlags(e))}function le(e,t,r){switch(e.kind){case 242:return c=t,l=r,u=(s=e).condition&&ne(s.condition),_=u||s.incrementor&&ne(s.incrementor),f.updateForStatement(s,Te.visitNode(c?c.part:s.initializer,k,Te.isForInitializer),Te.visitNode(u?void 0:s.condition,C,Te.isExpression),Te.visitNode(_?void 0:s.incrementor,k,Te.isExpression),l);case 243:return a=e,o=r,f.updateForInStatement(a,Te.visitNode(a.initializer,C,Te.isForInitializer),Te.visitNode(a.expression,C,Te.isExpression),o);case 244:return a=e,o=r,f.updateForOfStatement(a,void 0,Te.visitNode(a.initializer,C,Te.isForInitializer),Te.visitNode(a.expression,C,Te.isExpression),o);case 240:return n=e,i=r,f.updateDoStatement(n,i,Te.visitNode(n.expression,C,Te.isExpression));case 241:return i=e,n=r,f.updateWhileStatement(i,Te.visitNode(i.expression,C,Te.isExpression),n);default:return Te.Debug.failBadSyntaxKind(e,"IterationStatement expected")}var n,i,a,o,s,c,l,u,_}function ue(e){return f.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function _e(e,t){var r=0===t?e.outParamName:e.originalName,e=0===t?e.originalName:e.outParamName;return f.createBinaryExpression(e,63,r)}function de(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(_e(o,r)))}}function pe(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 fe(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))):(pe(o,i,t,e),n.push(f.createReturnStatement(a))),s.push(f.createCaseClause(f.createStringLiteral(e),n))})}function ge(e,t){if(16384&e.transformFlags||106===e.expression.kind||Te.isSuperProperty(Te.skipOuterExpressions(e.expression))){var r=f.createCallBinding(e.expression,h),n=r.target,i=r.thisArg;106===e.expression.kind&&Te.setEmitFlags(i,4);r=void 0;return r=16384&e.transformFlags?f.createFunctionApplyCall(Te.visitNode(n,N,Te.isExpression),106===e.expression.kind?i:Te.visitNode(i,C,Te.isExpression),me(e.arguments,!0,!1,!1)):Te.setTextRange(f.createFunctionCallCall(Te.visitNode(n,N,Te.isExpression),106===e.expression.kind?i:Te.visitNode(i,C,Te.isExpression),Te.visitNodes(e.arguments,C,Te.isExpression)),e),106===e.expression.kind&&(i=f.createLogicalOr(r,w()),r=t?f.createAssignment(f.createUniqueName("_this",48),i):i),Te.setOriginalNode(r,e)}return Te.visitEachChild(e,C,l)}function me(e,t,i,a){var o=e.length,r=Te.flatten(Te.spanMap(e,ye,function(e,t,r,n){return t(e,i,a&&n===o)}));if(1===r.length){var n=r[0];if(t&&!v.downlevelIteration||Te.isPackedArrayLiteral(n.expression)||Te.isCallToHelper(n.expression,"___spreadArray"))return n.expression}for(var s=d(),n=0!==r[0].kind,c=n?f.createArrayLiteralExpression():r[0].expression,l=n?0:1;l<r.length;l++)var u=r[l],c=s.createSpreadArrayHelper(c,u.expression,1===u.kind&&!t);return c}function ye(e){return Te.isSpreadElement(e)?t:ve}function t(e){return Te.map(e,he)}function he(e){var t=Te.visitNode(e.expression,C,Te.isExpression),r=Te.isCallToHelper(t,"___read"),e=r||Te.isPackedArrayLiteral(t)?2:1;return!v.downlevelIteration||1!==e||Te.isArrayLiteralExpression(t)||r||(t=d().createReadHelper(t,void 0),e=2),Ce(e,t)}function ve(e,t,r){return Ce(0,f.createArrayLiteralExpression(Te.visitNodes(f.createNodeArray(e,r),C,Te.isExpression),t))}function be(e){return 8&_&&!e?f.createPropertyAccessExpression(f.createUniqueName("_super",48),"prototype"):f.createUniqueName("_super",48)}function xe(){0==(2&o)&&(o|=2,l.enableSubstitution(79))}function De(){0==(1&o)&&(o|=1,l.enableSubstitution(108),l.enableEmitNotification(171),l.enableEmitNotification(169),l.enableEmitNotification(172),l.enableEmitNotification(173),l.enableEmitNotification(214),l.enableEmitNotification(213),l.enableEmitNotification(256))}function Se(e,t){return Te.isStatic(t)?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 280:case 281:case 279:var n=t.tagName;a[s.getOriginalNodeId(n)]=!0}i(e,t,r)},e.enableEmitNotification(280),e.enableEmitNotification(281),e.enableEmitNotification(279),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(206),e.enableSubstitution(296),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&&81<=t&&t<=116)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,k=a.resumeLexicalEnvironment,E=a.endLexicalEnvironment,o=a.hoistFunctionDeclaration,u=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,K=0;return Pe.chainBundle(a,function(e){if(e.isDeclarationFile||0==(2048&e.transformFlags))return e;e=Pe.visitEachChild(e,U,a);return Pe.addEmitHelpers(e,a.readEmitHelpers()),e});function U(e){var t=e.transformFlags;return y?function(e){switch(e.kind){case 240:return function(e){return y?(ae(),e=Pe.visitEachChild(e,U,a),se(),e):Pe.visitEachChild(e,U,a)}(e);case 241:return function(e){return y?(ae(),e=Pe.visitEachChild(e,U,a),se(),e):Pe.visitEachChild(e,U,a)}(e);case 249:return function(e){y&&te({kind:2,isScript:!0,breakLabel:-1});e=Pe.visitEachChild(e,U,a),y&&ce();return e}(e);case 250:return function(e){y&&te({kind:4,isScript:!0,labelText:Pe.idText(e.label),breakLabel:-1});e=Pe.visitEachChild(e,U,a),y&&le();return e}(e);default:return l(e)}}(e):m?l(e):Pe.isFunctionLikeDeclaration(e)&&e.asteriskToken?function(e){switch(e.kind){case 256:return _(e);case 213:return d(e);default:return Pe.Debug.failBadSyntaxKind(e)}}(e):2048&t?Pe.visitEachChild(e,U,a):e}function l(e){switch(e.kind){case 256:return _(e);case 213:return d(e);case 172:case 173:return t=e,r=m,n=y,y=m=!1,t=Pe.visitEachChild(t,U,a),m=r,y=n,t;case 237:return function(e){{if(!(524288&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];u(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 242: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];u(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,U,Pe.isExpression),Pe.visitNode(e.incrementor,U,Pe.isExpression),Pe.visitIterationBody(e.statement,U,a))}else e=Pe.visitEachChild(e,U,a);y&&se();return e}(e);case 243: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];u(i.name)}e=T.updateForInStatement(e,t.declarations[0].name,Pe.visitNode(e.expression,U,Pe.isExpression),Pe.visitNode(e.statement,U,Pe.isStatement,T.liftToBlock))}else e=Pe.visitEachChild(e,U,a);y&&se();return e}(e);case 246: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,U,a)}(e);case 245: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,U,a)}(e);case 247:return t=e,function(e,t){return Pe.setTextRange(T.createReturnStatement(T.createArrayLiteralExpression(e?[ye(2),e]:[ye(2)])),t)}(Pe.visitNode(t.expression,U,Pe.isExpression),t);default:return 524288&e.transformFlags?function(e){switch(e.kind){case 221:return function(e){var t=Pe.getExpressionAssociativity(e);switch(t){case 0:return function(e){if(Q(e.right))return Pe.isLogicalOperator(e.operatorToken.kind)?function(e){var t=$(),r=Z();xe(r,Pe.visitNode(e.left,U,Pe.isExpression),e.left),(55===e.operatorToken.kind?Te:Se)(t,r,e.left);return xe(r,Pe.visitNode(e.right,U,Pe.isExpression),e.right),ee(t),r}(e):27===e.operatorToken.kind?f(e):T.updateBinaryExpression(e,Y(Pe.visitNode(e.left,U,Pe.isExpression)),e.operatorToken,Pe.visitNode(e.right,U,Pe.isExpression));return Pe.visitEachChild(e,U,a)}(e);case 1:return function(e){var t=e.left,r=e.right;if(Q(r)){var n=void 0;switch(t.kind){case 206:n=T.updatePropertyAccessExpression(t,Y(Pe.visitNode(t.expression,U,Pe.isLeftHandSideExpression)),t.name);break;case 207:n=T.updateElementAccessExpression(t,Y(Pe.visitNode(t.expression,U,Pe.isLeftHandSideExpression)),Y(Pe.visitNode(t.argumentExpression,U,Pe.isExpression)));break;default:n=Pe.visitNode(t,U,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,U,Pe.isExpression)),e)),e):T.updateBinaryExpression(e,n,e.operatorToken,Pe.visitNode(r,U,Pe.isExpression))}return Pe.visitEachChild(e,U,a)}(e);default:return Pe.Debug.assertNever(t)}}(e);case 351: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)):(Q(i)&&0<t.length&&(Ce(1,[T.createExpressionStatement(T.inlineExpressions(t))]),t=[]),t.push(Pe.visitNode(i,U,Pe.isExpression)))}return T.inlineExpressions(t)}(e);case 222:return function(e){if(Q(e.whenTrue)||Q(e.whenFalse)){var t=$(),r=$(),n=Z();return Te(t,Pe.visitNode(e.condition,U,Pe.isExpression),e.condition),xe(n,Pe.visitNode(e.whenTrue,U,Pe.isExpression),e.whenTrue),De(r),ee(t),xe(n,Pe.visitNode(e.whenFalse,U,Pe.isExpression),e.whenFalse),ee(r),n}return Pe.visitEachChild(e,U,a)}(e);case 224:return function(e){var t=$(),r=Pe.visitNode(e.expression,U,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 204:return function(e){return g(e.elements,void 0,void 0,e.multiLine)}(e);case 205:return function(r){var e=r.properties,n=r.multiLine,t=X(e),i=Z();xe(i,T.createObjectLiteralExpression(Pe.visitNodes(e,U,Pe.isObjectLiteralElementLike,0,t),n));t=Pe.reduceLeft(e,function(e,t){Q(t)&&0<e.length&&(be(T.createExpressionStatement(T.inlineExpressions(e))),e=[]);t=Pe.createExpressionForObjectLiteralElementLike(T,r,t,i),t=Pe.visitNode(t,U,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 207:return function(e){if(Q(e.argumentExpression))return T.updateElementAccessExpression(e,Y(Pe.visitNode(e.expression,U,Pe.isLeftHandSideExpression)),Pe.visitNode(e.argumentExpression,U,Pe.isExpression));return Pe.visitEachChild(e,U,a)}(e);case 208:return function(e){if(Pe.isImportCall(e)||!Pe.forEach(e.arguments,Q))return Pe.visitEachChild(e,U,a);var t=T.createCallBinding(e.expression,u,s,!0),r=t.target,t=t.thisArg;return Pe.setOriginalNode(Pe.setTextRange(T.createFunctionApplyCall(Y(Pe.visitNode(r,U,Pe.isLeftHandSideExpression)),t,g(e.arguments)),e),e)}(e);case 209:return function(e){if(Pe.forEach(e.arguments,Q)){var t=T.createCallBinding(T.createPropertyAccessExpression(e.expression,"bind"),u),r=t.target,t=t.thisArg;return Pe.setOriginalNode(Pe.setTextRange(T.createNewExpression(T.createFunctionApplyCall(Y(Pe.visitNode(r,U,Pe.isExpression)),t,g(e.arguments,T.createVoidZero())),void 0,[]),e),e)}return Pe.visitEachChild(e,U,a)}(e);default:return Pe.visitEachChild(e,U,a)}}(e):2099200&e.transformFlags?Pe.visitEachChild(e,U,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,U,a),void 0,p(e.body)),e),e):(t=m,r=y,y=m=!1,e=Pe.visitEachChild(e,U,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,U,a),void 0,p(e.body)),e),e):(t=m,r=y,y=m=!1,e=Pe.visitEachChild(e,U,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,l=S,u=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),k();var g=T.copyPrologue(e.statements,t,!1,U);V(e.statements,g);g=function(){K=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);ke(N.length)}else ke(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,E()),t.push(T.createReturnStatement(g)),m=r,y=n,h=i,v=a,b=o,x=s,D=c,S=l,J=u,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)):(Q(e)&&0<t.length&&(Ce(1,[T.createExpressionStatement(T.inlineExpressions(t))]),t=[]),t.push(Pe.visitNode(e,U,Pe.isExpression)))}}function g(e,n,t,i){var a,r,o=X(e);0<o&&(a=Z(),r=Pe.visitNodes(e,U,Pe.isExpression,0,o),xe(a,T.createArrayLiteralExpression(n?__spreadArray([n],r,!0):r)),n=void 0);o=Pe.reduceLeft(e,function(e,t){{var r;Q(t)&&0<e.length&&(r=void 0!==a,xe(a=a||Z(),r?T.createArrayConcatCall(a,[T.createArrayLiteralExpression(e,i)]):T.createArrayLiteralExpression(n?__spreadArray([n],e,!0):e,i)),n=void 0,e=[])}return e.push(Pe.visitNode(t,U,Pe.isExpression)),e},[],o);return a?T.createArrayConcatCall(a,[T.createArrayLiteralExpression(o,i)]):Pe.setTextRange(T.createArrayLiteralExpression(n?__spreadArray([n],o,!0):o,i),t)}function V(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)?V(e.statements):W(e)}function W(e){var t=y;y=y||Q(e),function(e){switch(e.kind){case 235:return function(e){Q(e)?V(e.statements):be(Pe.visitNode(e,U,Pe.isStatement))}(e);case 238:return function(e){be(Pe.visitNode(e,U,Pe.isStatement))}(e);case 239:return function(e){{var t,r;Q(e)&&(Q(e.thenStatement)||Q(e.elseStatement))?(t=$(),r=e.elseStatement?$():void 0,Te(e.elseStatement?r:t,Pe.visitNode(e.expression,U,Pe.isExpression),e.expression),q(e.thenStatement),e.elseStatement&&(De(t),ee(r),q(e.elseStatement)),ee(t)):be(Pe.visitNode(e,U,Pe.isStatement))}}(e);case 240:return function(e){{var t,r;Q(e)?(t=$(),r=$(),oe(t),ee(r),q(e.statement),ee(t),Se(r,Pe.visitNode(e.expression,U,Pe.isExpression)),se()):be(Pe.visitNode(e,U,Pe.isStatement))}}(e);case 241:return function(e){{var t,r;Q(e)?(t=$(),r=oe(t),ee(t),Te(r,Pe.visitNode(e.expression,U,Pe.isExpression)),q(e.statement),De(t),se()):be(Pe.visitNode(e,U,Pe.isStatement))}}(e);case 242:return function(e){{var t,r,n,i;Q(e)?(t=$(),r=$(),n=oe(r),e.initializer&&(i=e.initializer,Pe.isVariableDeclarationList(i)?H(i):be(Pe.setTextRange(T.createExpressionStatement(Pe.visitNode(i,U,Pe.isExpression)),i))),ee(t),e.condition&&Te(n,Pe.visitNode(e.condition,U,Pe.isExpression)),q(e.statement),ee(r),e.incrementor&&be(Pe.setTextRange(T.createExpressionStatement(Pe.visitNode(e.incrementor,U,Pe.isExpression)),e.incrementor)),De(t),se()):be(Pe.visitNode(e,U,Pe.isStatement))}}(e);case 243:return function(e){if(Q(e)){var t=Z(),r=Z(),n=T.createLoopVariable(),i=e.initializer;u(n),xe(t,T.createArrayLiteralExpression()),be(T.createForInStatement(r,Pe.visitNode(e.expression,U,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 l=c[s];u(l.name)}r=T.cloneNode(i.declarations[0].name)}else r=Pe.visitNode(i,U,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,U,Pe.isStatement))}(e);case 245:return function(e){var t=ge(e.label?Pe.idText(e.label):void 0);0<t?De(t,e):be(e)}(e);case 246:return function(e){var t=fe(e.label?Pe.idText(e.label):void 0);0<t?De(t,e):be(e)}(e);case 247:return function(t){!function(e){Ce(8,[e],t)}(Pe.visitNode(t.expression,U,Pe.isExpression))}(e);case 248:return function(e){Q(e)?(function(e){var t=$(),r=$();ee(t),te({kind:1,expression:e,startLabel:t,endLabel:r})}(Y(Pe.visitNode(e.expression,U,Pe.isExpression))),q(e.statement),Pe.Debug.assert(1===ie()),ee(re().endLabel)):be(Pe.visitNode(e,U,Pe.isStatement))}(e);case 249:return function(e){if(Q(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,U,Pe.isExpression)),a=[],o=-1,s=0;s<r;s++){var c=t.clauses[s];a.push($()),290===c.kind&&-1===o&&(o=s)}for(var l=0,u=[];l<r;){for(var _=0,s=l;s<r;s++)if(289===(c=t.clauses[s]).kind){if(Q(c.expression)&&0<u.length)break;u.push(T.createCaseClause(Pe.visitNode(c.expression,U,Pe.isExpression),[he(a[s],c.expression)]))}else _++;u.length&&(be(T.createSwitchStatement(i,T.createCaseBlock(u))),l+=u.length,u=[]),0<_&&(l+=_,_=0)}De(0<=o?a[o]:n);for(s=0;s<r;s++)ee(a[s]),V(t.clauses[s].statements);ce()}else be(Pe.visitNode(e,U,Pe.isStatement))}(e);case 250:return function(e){Q(e)?(function(e){var t=$();te({kind:4,isScript:!1,labelText:e,breakLabel:t})}(Pe.idText(e.label)),q(e.statement),le()):be(Pe.visitNode(e,U,Pe.isStatement))}(e);case 251:return function(t){var e;!function(e){Ce(9,[e],t)}(Pe.visitNode(null!==(e=t.expression)&&void 0!==e?e:T.createVoidZero(),U,Pe.isExpression))}(e);case 252:return function(e){Q(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,u(e.name)):(r=Pe.idText(e.name),t=Z(r),n||(n=new Pe.Map,i=[],a.enableSubstitution(79)),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,U,a))}(e);default:be(Pe.visitNode(e,U,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),u(i)}for(var a=Pe.getInitializedVariables(e),o=a.length,s=0,c=[];s<o;){for(var l=s;l<o;l++){if(Q((n=a[l]).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,U,Pe.isExpression)),e)}function Q(e){return!!e&&0!=(524288&e.transformFlags)}function X(e){for(var t=e.length,r=0;r<t;r++)if(Q(e[r]))return r;return-1}function Y(e){if(Pe.isGeneratedIdentifier(e)||4096&Pe.getEmitFlags(e))return e;var t=T.createTempVariable(u);return xe(t,e,e),t}function Z(e){e=e?T.createUniqueName(e):T.createTempVariable(void 0);return u(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 le(){Pe.Debug.assert(4===ie());var e=re();e.isScript||ee(e.breakLabel)}function ue(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(ue(r)&&pe(e,t-1))return r.breakLabel}else for(var r,t=x.length-1;0<=t;t--)if(ue(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 ke(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&&Ee(!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 Ee(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(K+1))))}M.push(T.createCaseClause(T.createNumericLiteral(K),L||[])),L=void 0}function Ne(e){if(D)for(var t=0;t<D.length;t++)D[t]===e&&(L&&(Ee(!I),O=I=!1,K++),void 0===w&&(w=[]),void 0===w[K]?w[K]=[t]:w[K].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(Q){Q.transformModule=function(d){var p=d.factory,s=d.getEmitHelperFactory,i=d.startLexicalEnvironment,a=d.endLexicalEnvironment,c=d.hoistVariableDeclaration,f=d.getCompilerOptions(),g=d.getEmitResolver(),m=d.getEmitHost(),l=Q.getEmitScriptTarget(f),u=Q.getEmitModuleKind(f),r=d.onSubstituteNode,n=d.onEmitNode;d.onSubstituteNode=function(e,t){if((t=r(e,t)).id&&b[t.id])return t;{if(1===e)return function(e){switch(e.kind){case 79:return H(e);case 208:return function(e){if(Q.isIdentifier(e.expression)){var t=H(e.expression);if(b[Q.getNodeId(t)]=!0,!(Q.isIdentifier(t)||4096&Q.getEmitFlags(e.expression)))return Q.addEmitFlags(p.updateCallExpression(e,t,void 0,e.arguments),536870912)}return e}(e);case 210:return function(e){if(Q.isIdentifier(e.tag)){var t=H(e.tag);if(b[Q.getNodeId(t)]=!0,!(Q.isIdentifier(t)||4096&Q.getEmitFlags(e.tag)))return Q.addEmitFlags(p.updateTaggedTemplateExpression(e,t,void 0,e.template),536870912)}return e}(e);case 221:return function(e){if(Q.isAssignmentOperator(e.operatorToken.kind)&&Q.isIdentifier(e.left)&&!Q.isGeneratedIdentifier(e.left)&&!Q.isLocalName(e.left)&&!Q.isDeclarationNameOfEnumOrNamespace(e.left)){var t=G(e.left);if(t){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];b[Q.getNodeId(r)]=!0,r=q(a,r,e)}return r}}return e}(e)}return e}(t);if(Q.isShorthandPropertyAssignment(t))return function(e){var t=e.name,r=H(t);if(r===t)return e;if(e.objectAssignmentInitializer){var n=p.createAssignment(r,e.objectAssignmentInitializer);return Q.setTextRange(p.createPropertyAssignment(t,n),e)}return Q.setTextRange(p.createPropertyAssignment(t,r),e)}(t)}return t},d.onEmitNode=function(e,t,r){305===t.kind?(y=t,h=_[Q.getOriginalNodeId(y)],n(e,t,r),h=y=void 0):n(e,t,r)},d.enableSubstitution(208),d.enableSubstitution(210),d.enableSubstitution(79),d.enableSubstitution(221),d.enableSubstitution(297),d.enableEmitNotification(305);var y,h,o,_=[],v=[],b=[];return Q.chainBundle(d,function(e){if(e.isDeclarationFile||!(Q.isEffectiveExternalModule(e,f)||4194304&e.transformFlags||Q.isJsonSourceFile(e)&&Q.hasJsonModuleEmitEnabled(f)&&Q.outFile(f)))return e;y=e,h=Q.collectExternalModuleInfo(d,e,g,f),_[Q.getOriginalNodeId(e)]=h;e=function(e){switch(e){case Q.ModuleKind.AMD:return D;case Q.ModuleKind.UMD:return S;default:return t}}(u)(e);return h=y=void 0,o=!1,e});function x(){return!(h.exportEquals||!Q.isExternalModule(y))}function t(e){i();var t=[],r=Q.getStrictOptionValue(f,"alwaysStrict")||!f.noImplicitUseStrict&&Q.isExternalModule(y),r=p.copyPrologue(e.statements,t,r&&!Q.isJsonSourceFile(e),N);if(x()&&Q.append(t,V()),Q.length(h.exportedNames))for(var n=0;n<h.exportedNames.length;n+=50)Q.append(t,p.createExpressionStatement(Q.reduceLeft(h.exportedNames.slice(n,n+50),function(e,t){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(Q.idText(t))),e)},p.createVoidZero())));Q.append(t,Q.visitNode(h.externalHelpersImportDeclaration,N,Q.isStatement)),Q.addRange(t,Q.visitNodes(e.statements,N,Q.isStatement,r)),E(t,!1),Q.insertStatementsAfterStandardPrologue(t,a());e=p.updateSourceFile(e,Q.setTextRange(p.createNodeArray(t),e.statements));return Q.addEmitHelpers(e,d.readEmitHelpers()),e}function D(e){var t=p.createIdentifier("define"),r=Q.tryGetModuleNameFromFile(p,e,m,f),n=Q.isJsonSourceFile(e)&&e,i=T(e,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,i=i.importAliasNames,e=p.updateSourceFile(e,Q.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(t,void 0,__spreadArray(__spreadArray([],r?[r]:[],!0),[p.createArrayLiteralExpression(n?Q.emptyArray:__spreadArray(__spreadArray([p.createStringLiteral("require"),p.createStringLiteral("exports")],a,!0),o,!0)),n?n.statements.length?n.statements[0].expression:p.createObjectLiteralExpression():p.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArray([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],i,!0),void 0,k(e))],!1)))]),e.statements));return Q.addEmitHelpers(e,d.readEmitHelpers()),e}function S(e){var t=T(e,!1),r=t.aliasedModuleNames,n=t.unaliasedModuleNames,i=t.importAliasNames,t=Q.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,Q.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")]))]),Q.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,__spreadArray(__spreadArray([],t?[t]:[],!0),[p.createArrayLiteralExpression(__spreadArray(__spreadArray([p.createStringLiteral("require"),p.createStringLiteral("exports")],r,!0),n,!0)),p.createIdentifier("factory")],!1)))])))],!0),void 0)),e=p.updateSourceFile(e,Q.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(n,void 0,[p.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArray([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],i,!0),void 0,k(e))]))]),e.statements));return Q.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,l=h.externalImports;c<l.length;c++){var u=l[c],_=Q.getExternalModuleNameLiteral(p,u,y,m,g,f),u=Q.getLocalNameForExternalImport(p,u,y);_&&(t&&u?(Q.setEmitFlags(u,4),r.push(_),i.push(p.createParameterDeclaration(void 0,void 0,void 0,u))):n.push(_))}return{aliasedModuleNames:r,unaliasedModuleNames:n,importAliasNames:i}}function C(e){if(!Q.isImportEqualsDeclaration(e)&&!Q.isExportDeclaration(e)&&Q.getExternalModuleNameLiteral(p,e,y,m,g,f)){var t=Q.getLocalNameForExternalImport(p,e,y),e=O(e,t);if(e!==t)return p.createExpressionStatement(p.createAssignment(t,e))}}function k(e){i();var t=[],r=p.copyPrologue(e.statements,t,!f.noImplicitUseStrict,N);x()&&Q.append(t,V()),Q.length(h.exportedNames)&&Q.append(t,p.createExpressionStatement(Q.reduceLeft(h.exportedNames,function(e,t){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(Q.idText(t))),e)},p.createVoidZero()))),Q.append(t,Q.visitNode(h.externalHelpersImportDeclaration,N,Q.isStatement)),u===Q.ModuleKind.AMD&&Q.addRange(t,Q.mapDefined(h.externalImports,C)),Q.addRange(t,Q.visitNodes(e.statements,N,Q.isStatement,r)),E(t,!0),Q.insertStatementsAfterStandardPrologue(t,a());t=p.createBlock(t,!0);return o&&Q.addEmitHelper(t,X),t}function E(e,t){var r,n;!h.exportEquals||(r=Q.visitNode(h.exportEquals.expression,F))&&(t?(n=p.createReturnStatement(r),Q.setTextRange(n,h.exportEquals),Q.setEmitFlags(n,1920)):(n=p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),r)),Q.setTextRange(n,h.exportEquals),Q.setEmitFlags(n,1536)),e.push(n))}function N(e){switch(e.kind){case 266:return function(e){var t,r=Q.getNamespaceDeclarationNode(e);if(u!==Q.ModuleKind.AMD){if(!e.importClause)return Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(M(e)),e),e);var n=[];r&&!Q.isDefaultImport(e)?n.push(p.createVariableDeclaration(p.cloneNode(r.name),void 0,void 0,O(e,M(e)))):(n.push(p.createVariableDeclaration(p.getGeneratedNameForNode(e),void 0,void 0,O(e,M(e)))),r&&Q.isDefaultImport(e)&&n.push(p.createVariableDeclaration(p.cloneNode(r.name),void 0,void 0,p.getGeneratedNameForNode(e)))),t=Q.append(t,Q.setOriginalNode(Q.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList(n,2<=l?2:0)),e),e))}else r&&Q.isDefaultImport(e)&&(t=Q.append(t,p.createVariableStatement(void 0,p.createVariableDeclarationList([Q.setOriginalNode(Q.setTextRange(p.createVariableDeclaration(p.cloneNode(r.name),void 0,void 0,p.getGeneratedNameForNode(e)),e),e)],2<=l?2:0))));R(e)?(r=Q.getOriginalNodeId(e),v[r]=B(v[r],e)):t=B(t,e);return Q.singleOrMany(t)}(e);case 265:return function(e){var t;Q.Debug.assert(Q.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),u!==Q.ModuleKind.AMD?t=Q.hasSyntacticModifier(e,1)?Q.append(t,Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(q(e.name,M(e))),e),e)):Q.append(t,Q.setOriginalNode(Q.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.cloneNode(e.name),void 0,void 0,M(e))],2<=l?2:0)),e),e)):Q.hasSyntacticModifier(e,1)&&(t=Q.append(t,Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(q(p.getExportName(e),p.getLocalName(e))),e),e)));{var r;R(e)?(r=Q.getOriginalNodeId(e),v[r]=j(v[r],e)):t=j(t,e)}return Q.singleOrMany(t)}(e);case 272:return function(e){if(!e.moduleSpecifier)return;var t=p.getGeneratedNameForNode(e);{if(e.exportClause&&Q.isNamedExports(e.exportClause)){var r=[];u!==Q.ModuleKind.AMD&&r.push(Q.setOriginalNode(Q.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(t,void 0,void 0,M(e))])),e),e));for(var n=0,i=e.exportClause.elements;n<i.length;n++){var a,o=i[n];0===l?r.push(Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(s().createCreateBindingHelper(t,p.createStringLiteralFromNode(o.propertyName||o.name),o.propertyName?p.createStringLiteralFromNode(o.name):void 0)),o),o)):(a=!(!Q.getESModuleInterop(f)||67108864&Q.getEmitFlags(e)||"default"!==Q.idText(o.propertyName||o.name)),a=p.createPropertyAccessExpression(a?s().createImportDefaultHelper(t):t,o.propertyName||o.name),r.push(Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(q(p.getExportName(o),a,void 0,!0)),o),o)))}return Q.singleOrMany(r)}return e.exportClause?((r=[]).push(Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(q(p.cloneNode(e.exportClause.name),function(e,t){if(!Q.getESModuleInterop(f)||67108864&Q.getEmitFlags(e))return t;if(Q.getExportNeedsImportStarHelper(e))return s().createImportStarHelper(t);return t}(e,u!==Q.ModuleKind.AMD?M(e):Q.isExportNamespaceAsDefaultDeclaration(e)?t:p.createIdentifier(Q.idText(e.exportClause.name))))),e),e)),Q.singleOrMany(r)):Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(s().createExportStarHelper(u!==Q.ModuleKind.AMD?M(e):t)),e),e)}}(e);case 271:return function(e){if(e.isExportEquals)return;var t,r=e.original;r&&R(r)?(r=Q.getOriginalNodeId(e),v[r]=U(v[r],p.createIdentifier("default"),Q.visitNode(e.expression,F),e,!0)):t=U(t,p.createIdentifier("default"),Q.visitNode(e.expression,F),e,!0);return Q.singleOrMany(t)}(e);case 237:return function(e){var t,r,n;if(Q.hasSyntacticModifier(e,1)){for(var i=void 0,a=!1,o=0,s=e.declarationList.declarations;o<s.length;o++){var c,l,u=s[o];Q.isIdentifier(u.name)&&Q.isLocalName(u.name)?(i=i||Q.visitNodes(e.modifiers,W,Q.isModifier),r=Q.append(r,u)):u.initializer&&(!Q.isBindingPattern(u.name)&&(Q.isArrowFunction(u.initializer)||Q.isFunctionExpression(u.initializer)||Q.isClassExpression(u.initializer))?(c=p.createAssignment(Q.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),u.name),u.name),p.createIdentifier(Q.getTextOfIdentifierOrLiteral(u.name))),l=p.createVariableDeclaration(u.name,u.exclamationToken,u.type,Q.visitNode(u.initializer,F)),r=Q.append(r,l),n=Q.append(n,c),a=!0):n=Q.append(n,function(e){return Q.isBindingPattern(e.name)?Q.flattenDestructuringAssignment(Q.visitNode(e,F),void 0,d,0,!1,L):p.createAssignment(Q.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),e.name),e.name),e.initializer?Q.visitNode(e.initializer,F):p.createVoidZero())}(u)))}r&&(t=Q.append(t,p.updateVariableStatement(e,i,p.updateVariableDeclarationList(e.declarationList,r)))),n&&(_=Q.setOriginalNode(Q.setTextRange(p.createExpressionStatement(p.inlineExpressions(n)),e),e),a&&Q.removeAllComments(_),t=Q.append(t,_))}else t=Q.append(t,Q.visitEachChild(e,F,d));{var _;R(e)?(_=Q.getOriginalNodeId(e),v[_]=J(v[_],e)):t=J(t,e)}return Q.singleOrMany(t)}(e);case 256:return function(e){var t;t=Q.hasSyntacticModifier(e,1)?Q.append(t,Q.setOriginalNode(Q.setTextRange(p.createFunctionDeclaration(void 0,Q.visitNodes(e.modifiers,W,Q.isModifier),e.asteriskToken,p.getDeclarationName(e,!0,!0),void 0,Q.visitNodes(e.parameters,F),void 0,Q.visitEachChild(e.body,F,d)),e),e)):Q.append(t,Q.visitEachChild(e,F,d));{var r;R(e)?(r=Q.getOriginalNodeId(e),v[r]=z(v[r],e)):t=z(t,e)}return Q.singleOrMany(t)}(e);case 257:return function(e){var t;t=Q.hasSyntacticModifier(e,1)?Q.append(t,Q.setOriginalNode(Q.setTextRange(p.createClassDeclaration(void 0,Q.visitNodes(e.modifiers,W,Q.isModifier),p.getDeclarationName(e,!0,!0),void 0,Q.visitNodes(e.heritageClauses,F),Q.visitNodes(e.members,F)),e),e)):Q.append(t,Q.visitEachChild(e,F,d));{var r;R(e)?(r=Q.getOriginalNodeId(e),v[r]=z(v[r],e)):t=z(t,e)}return Q.singleOrMany(t)}(e);case 352:return function(e){{var t;R(e)&&237===e.original.kind&&(t=Q.getOriginalNodeId(e),v[t]=J(v[t],e.original))}return e}(e);case 353:return function(e){var t=Q.getOriginalNodeId(e),r=v[t];if(r)return delete v[t],Q.append(r,e);return e}(e);default:return F(e)}}function A(e,t){if(!(71307264&e.transformFlags))return e;switch(e.kind){case 242:return i=e,p.updateForStatement(i,Q.visitNode(i.initializer,P,Q.isForInitializer),Q.visitNode(i.condition,F,Q.isExpression),Q.visitNode(i.incrementor,P,Q.isExpression),Q.visitIterationBody(i.statement,F,d));case 238:return i=e,p.updateExpressionStatement(i,Q.visitNode(i.expression,P,Q.isExpression));case 212:return r=e,n=t,p.updateParenthesizedExpression(r,Q.visitNode(r.expression,n?P:F,Q.isExpression));case 350:return r=e,n=t,p.updatePartiallyEmittedExpression(r,Q.visitNode(r.expression,n?P:F,Q.isExpression));case 208:if(Q.isImportCall(e)&&void 0===y.impliedNodeFormat)return function(e){var t=Q.getExternalModuleNameLiteral(p,e,y,m,g,f),r=Q.visitNode(Q.firstOrUndefined(e.arguments),F),n=!t||r&&Q.isStringLiteral(r)&&r.text===t.text?r:t,i=!!(8192&e.transformFlags);switch(f.module){case Q.ModuleKind.AMD:return w(n,i);case Q.ModuleKind.UMD:return function(e,t){{if(o=!0,Q.isSimpleCopiableExpression(e)){var r=Q.isGeneratedIdentifier(e)?e:Q.isStringLiteral(e)?p.createStringLiteralFromNode(e):Q.setEmitFlags(Q.setTextRange(p.cloneNode(e),e),1536);return p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,I(e,t),void 0,w(r,t))}r=p.createTempVariable(c);return p.createComma(p.createAssignment(r,e),p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,I(r,t),void 0,w(r,t)))}}(null!=n?n:p.createVoidZero(),i);case Q.ModuleKind.CommonJS:default:return I(n,i)}}(e);break;case 221:if(Q.isDestructuringAssignment(e))return function(e,t){if(function e(t){if(Q.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++){var i=n[r];switch(i.kind){case 296:if(e(i.initializer))return!0;break;case 297:if(e(i.name))return!0;break;case 298:if(e(i.expression))return!0;break;case 169:case 172:case 173:return!1;default:Q.Debug.assertNever(i,"Unhandled object member kind")}}else if(Q.isArrayLiteralExpression(t))for(var a=0,o=t.elements;a<o.length;a++){var i=o[a];if(Q.isSpreadElement(i)){if(e(i.expression))return!0}else if(e(i))return!0}else if(Q.isIdentifier(t))return Q.length(G(t))>(Q.isExportName(t)?1:0);return!1}(e.left))return Q.flattenDestructuringAssignment(e,F,d,0,!t,L);return Q.visitEachChild(e,F,d)}(e,t);break;case 219:case 220:return function(e,t){if((45===e.operator||46===e.operator)&&Q.isIdentifier(e.operand)&&!Q.isGeneratedIdentifier(e.operand)&&!Q.isLocalName(e.operand)&&!Q.isDeclarationNameOfEnumOrNamespace(e.operand)){var r=G(e.operand);if(r){var n=void 0,i=Q.visitNode(e.operand,F,Q.isExpression);Q.isPrefixUnaryExpression(e)?i=p.updatePrefixUnaryExpression(e,i):(i=p.updatePostfixUnaryExpression(e,i),t||(n=p.createTempVariable(c),i=p.createAssignment(n,i),Q.setTextRange(i,e)),i=p.createComma(i,p.cloneNode(e.operand)),Q.setTextRange(i,e));for(var a=0,o=r;a<o.length;a++){var s=o[a];b[Q.getNodeId(i)]=!0,i=q(s,i),Q.setTextRange(i,e)}return n&&(b[Q.getNodeId(i)]=!0,i=p.createComma(i,n),Q.setTextRange(i,e)),i}}return Q.visitEachChild(e,F,d)}(e,t)}var r,n,i;return Q.visitEachChild(e,F,d)}function F(e){return A(e,!1)}function P(e){return A(e,!0)}function w(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<=l?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&&Q.setEmitFlags(a,8));var a=p.createNewExpression(p.createIdentifier("Promise"),void 0,[a]);return Q.getESModuleInterop(f)?p.createCallExpression(p.createPropertyAccessExpression(a,p.createIdentifier("then")),void 0,[s().createImportStarCallbackHelper()]):a}function I(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 Q.getESModuleInterop(f)&&(e=s().createImportStarHelper(e)),2<=l?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&&Q.setEmitFlags(r,8)),p.createCallExpression(p.createPropertyAccessExpression(n,"then"),void 0,[r])}function O(e,t){return!Q.getESModuleInterop(f)||67108864&Q.getEmitFlags(e)?t:Q.getImportNeedsImportStarHelper(e)?s().createImportStarHelper(t):Q.getImportNeedsImportDefaultHelper(e)?s().createImportDefaultHelper(t):t}function M(e){var t=Q.getExternalModuleNameLiteral(p,e,y,m,g,f),e=[];return t&&e.push(t),p.createCallExpression(p.createIdentifier("require"),void 0,e)}function L(e,t,r){var n=G(e);if(n){for(var i=Q.isExportName(e)?t:p.createAssignment(e,t),a=0,o=n;a<o.length;a++){var s=o[a];Q.setEmitFlags(i,4),i=q(s,i,r)}return i}return p.createAssignment(e,t)}function R(e){return 0!=(4194304&Q.getEmitFlags(e))}function B(e,t){if(h.exportEquals)return e;t=t.importClause;if(!t)return e;t.name&&(e=K(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 268:e=K(e,r);break;case 269:for(var n=0,i=r.elements;n<i.length;n++)e=K(e,i[n],!0)}return e}function j(e,t){return h.exportEquals?e:K(e,t)}function J(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(Q.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];Q.isOmittedExpression(a)||(t=e(t,a))}else Q.isGeneratedIdentifier(r.name)||(t=K(t,r));return t}(e,n[r]);return e}function z(e,t){return h.exportEquals||(Q.hasSyntacticModifier(t,1)&&(e=U(e,Q.hasSyntacticModifier(t,512)?p.createIdentifier("default"):p.getDeclarationName(t),p.getLocalName(t),t)),t.name&&(e=K(e,t))),e}function K(e,t,r){var n=p.getDeclarationName(t),t=h.exportSpecifiers.get(Q.idText(n));if(t)for(var i=0,a=t;i<a.length;i++){var o=a[i];e=U(e,o.name,n,o.name,void 0,r)}return e}function U(e,t,r,n,i,a){return e=Q.append(e,function(e,t,r,n,i){r=Q.setTextRange(p.createExpressionStatement(q(e,t,void 0,i)),r);Q.startOnNewLine(r),n||Q.setEmitFlags(r,1536);return r}(t,r,n,i,a))}function V(){var e=0===l?p.createExpressionStatement(q(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 Q.setEmitFlags(e,1048576),e}function q(e,t,r,n){return Q.setTextRange(n&&0!==l?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 W(e){switch(e.kind){case 93:case 88:return}return e}function H(e){if(4096&Q.getEmitFlags(e)){var t=Q.getExternalHelpersModuleName(y);return t?p.createPropertyAccessExpression(t,e):e}if((!Q.isGeneratedIdentifier(e)||64&e.autoGenerateFlags)&&!Q.isLocalName(e)){var r=g.getReferencedExportContainer(e,Q.isExportName(e));if(r&&305===r.kind)return Q.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(e)),e);var n=g.getReferencedImportDeclaration(e);if(n){if(Q.isImportClause(n))return Q.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(n.parent),p.createIdentifier("default")),e);if(Q.isImportSpecifier(n)){t=n.propertyName||n.name;return Q.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode((null===(r=null===(r=n.parent)||void 0===r?void 0:r.parent)||void 0===r?void 0:r.parent)||n),p.cloneNode(t)),e)}}}return e}function G(e){if(!Q.isGeneratedIdentifier(e)){e=g.getReferencedImportDeclaration(e)||g.getReferencedValueDeclaration(e);if(e)return h&&h.exportedBindings[Q.getOriginalNodeId(e)]}}};var X={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(ts=ts||{}),function(X){X.transformSystemModule=function(m){var y=m.factory,o=m.startLexicalEnvironment,s=m.endLexicalEnvironment,h=m.hoistVariableDeclaration,l=m.getCompilerOptions(),u=m.getEmitResolver(),_=m.getEmitHost(),r=m.onSubstituteNode,i=m.onEmitNode;m.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 79:return function(e){if(4096&X.getEmitFlags(e)){var t=X.getExternalHelpersModuleName(v);return t?y.createPropertyAccessExpression(t,e):e}if(!X.isGeneratedIdentifier(e)&&!X.isLocalName(e)){var r=u.getReferencedImportDeclaration(e);if(r){if(X.isImportClause(r))return X.setTextRange(y.createPropertyAccessExpression(y.getGeneratedNameForNode(r.parent),y.createIdentifier("default")),e);if(X.isImportSpecifier(r))return X.setTextRange(y.createPropertyAccessExpression(y.getGeneratedNameForNode((null===(t=null===(t=r.parent)||void 0===t?void 0:t.parent)||void 0===t?void 0:t.parent)||r),y.cloneNode(r.propertyName||r.name)),e)}}return e}(e);case 221:return function(e){if(X.isAssignmentOperator(e.operatorToken.kind)&&X.isIdentifier(e.left)&&!X.isGeneratedIdentifier(e.left)&&!X.isLocalName(e.left)&&!X.isDeclarationNameOfEnumOrNamespace(e.left)){var t=G(e.left);if(t){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];r=J(a,Q(r))}return r}}return e}(e);case 231:return function(e){if(X.isImportMeta(e))return y.createPropertyAccessExpression(c,y.createIdentifier("meta"));return e}(e)}return e}(t);if(4===e)return function(e){if(297===e.kind)return function(e){var t=e.name;if(!X.isGeneratedIdentifier(t)&&!X.isLocalName(t)){var r=u.getReferencedImportDeclaration(t);if(r){if(X.isImportClause(r))return X.setTextRange(y.createPropertyAssignment(y.cloneNode(t),y.createPropertyAccessExpression(y.getGeneratedNameForNode(r.parent),y.createIdentifier("default"))),e);if(X.isImportSpecifier(r))return X.setTextRange(y.createPropertyAssignment(y.cloneNode(t),y.createPropertyAccessExpression(y.getGeneratedNameForNode((null===(t=null===(t=r.parent)||void 0===t?void 0:t.parent)||void 0===t?void 0:t.parent)||r),y.cloneNode(r.propertyName||r.name))),e)}}return e}(e);return e}(t)}return t},m.onEmitNode=function(e,t,r){{var n;305===t.kind?(n=X.getOriginalNodeId(t),v=t,d=f[n],b=g[n],p=T[n],c=C[n],p&&delete T[n],i(e,t,r),p=c=b=d=v=void 0):i(e,t,r)}},m.enableSubstitution(79),m.enableSubstitution(297),m.enableSubstitution(221),m.enableSubstitution(231),m.enableEmitNotification(305);var v,d,b,c,x,D,p,f=[],S=[],g=[],T=[],C=[];return X.chainBundle(m,function(e){if(e.isDeclarationFile||!(X.isEffectiveExternalModule(e,l)||4194304&e.transformFlags))return e;var t=X.getOriginalNodeId(e);D=v=e,d=f[t]=X.collectExternalModuleInfo(m,e,u,l),b=y.createUniqueName("exports"),g[t]=b,c=C[t]=y.createUniqueName("context");var r=function(e){for(var t=new X.Map,r=[],n=0,i=e;n<i.length;n++){var a,o,s=i[n],c=X.getExternalModuleNameLiteral(y,s,v,_,u,l);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=X.getStrictOptionValue(l,"alwaysStrict")||!l.noImplicitUseStrict&&X.isExternalModule(v),i=y.copyPrologue(e.statements,r,n,E);r.push(y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration("__moduleName",void 0,void 0,y.createLogicalAnd(c,y.createPropertyAccessExpression(c,"id")))]))),X.visitNode(d.externalHelpersImportDeclaration,E,X.isStatement);n=X.visitNodes(e.statements,E,X.isStatement,i);X.addRange(r,x),X.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(272===i.kind&&i.exportClause){t=!0;break}}if(!t){var a=k(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 l=c[s];"default"!==l.escapedText&&o.push(y.createPropertyAssignment(y.createStringLiteralFromNode(l),y.createTrue()))}a=y.createUniqueName("exportedNames");e.push(y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration(a,void 0,void 0,y.createObjectLiteralExpression(o,!0))])));a=k(a);return e.push(a),a.name}(r),e=1048576&e.transformFlags?y.createModifiersFromModifierFlags(256):void 0,n=y.createObjectLiteralExpression([y.createPropertyAssignment("setters",function(e,t){for(var r=[],n=0,i=t;n<i.length;n++){for(var a=i[n],o=X.forEach(a.externalImports,function(e){return X.getLocalNameForExternalImport(y,e,v)}),s=o?y.getGeneratedNameForNode(o):y.createUniqueName(""),c=[],l=0,u=a.externalImports;l<u.length;l++){var _=u[l],d=X.getLocalNameForExternalImport(y,_,v);switch(_.kind){case 266:if(!_.importClause)break;case 265:X.Debug.assert(void 0!==d),c.push(y.createExpressionStatement(y.createAssignment(d,s)));break;case 272:if(X.Debug.assert(void 0!==d),_.exportClause)if(X.isNamedExports(_.exportClause)){for(var p=[],f=0,g=_.exportClause.elements;f<g.length;f++){var m=g[f];p.push(y.createPropertyAssignment(y.createStringLiteral(X.idText(m.name)),y.createElementAccessExpression(s,y.createStringLiteral(X.idText(m.propertyName||m.name)))))}c.push(y.createExpressionStatement(y.createCallExpression(b,void 0,[y.createObjectLiteralExpression(p,!0)])))}else c.push(y.createExpressionStatement(y.createCallExpression(b,void 0,[y.createStringLiteral(X.idText(_.exportClause.name)),s])));else c.push(y.createExpressionStatement(y.createCallExpression(e,void 0,[s])))}}r.push(y.createFunctionExpression(void 0,void 0,void 0,void 0,[y.createParameterDeclaration(void 0,void 0,void 0,s)],void 0,y.createBlock(c,!0)))}return y.createArrayLiteralExpression(r,!0)}(i,t)),y.createPropertyAssignment("execute",y.createFunctionExpression(e,void 0,void 0,void 0,[],void 0,y.createBlock(n,!0)))],!0);return r.push(y.createReturnStatement(n)),y.createBlock(r,!0)}(e,r),i=y.createFunctionExpression(void 0,void 0,void 0,void 0,[y.createParameterDeclaration(void 0,void 0,void 0,b),y.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,n),a=X.tryGetModuleNameFromFile(y,e,_,l),r=y.createArrayLiteralExpression(X.map(r,function(e){return e.name})),e=X.setEmitFlags(y.updateSourceFile(e,X.setTextRange(y.createNodeArray([y.createExpressionStatement(y.createCallExpression(y.createPropertyAccessExpression(y.createIdentifier("System"),"register"),void 0,a?[a,r,i]:[r,i]))]),e.statements)),1024);X.outFile(l)||X.moveEmitHelpers(e,n,function(e){return!e.scoped});p&&(T[t]=p,p=void 0);return D=x=c=b=d=v=void 0,e});function k(e){var t=y.createUniqueName("exportStar"),r=y.createIdentifier("m"),n=y.createIdentifier("n"),i=y.createIdentifier("exports"),a=y.createStrictInequality(n,y.createStringLiteral("default"));return e&&(a=y.createLogicalAnd(a,y.createLogicalNot(y.createCallExpression(y.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[n])))),y.createFunctionDeclaration(void 0,void 0,void 0,t,void 0,[y.createParameterDeclaration(void 0,void 0,void 0,r)],void 0,y.createBlock([y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration(i,void 0,void 0,y.createObjectLiteralExpression([]))])),y.createForInStatement(y.createVariableDeclarationList([y.createVariableDeclaration(n)]),r,y.createBlock([X.setEmitFlags(y.createIfStatement(a,y.createExpressionStatement(y.createAssignment(y.createElementAccessExpression(i,n),y.createElementAccessExpression(r,n)))),1)])),y.createExpressionStatement(y.createCallExpression(b,void 0,[i]))],!0))}function E(e){switch(e.kind){case 266:return function(e){var t;e.importClause&&h(X.getLocalNameForExternalImport(y,e,v));{var r;w(e)?(r=X.getOriginalNodeId(e),S[r]=I(S[r],e)):t=I(t,e)}return X.singleOrMany(t)}(e);case 265:return function(e){var t;{var r;X.Debug.assert(X.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),h(X.getLocalNameForExternalImport(y,e,v)),w(e)?(r=X.getOriginalNodeId(e),S[r]=O(S[r],e)):t=O(t,e)}return X.singleOrMany(t)}(e);case 272:return t=e,void X.Debug.assertIsDefined(t);case 271:return function(e){if(e.isExportEquals)return;var t=X.visitNode(e.expression,V,X.isExpression),r=e.original;{if(!r||!w(r))return j(y.createIdentifier("default"),t,!0);e=X.getOriginalNodeId(e);S[e]=B(S[e],y.createIdentifier("default"),t,!0)}}(e);default:return z(e)}var t}function N(e){if(X.isBindingPattern(e.name))for(var t=0,r=e.name.elements;t<r.length;t++){var n=r[t];X.isOmittedExpression(n)||N(n)}else h(y.cloneNode(e.name))}function A(e){return 0==(2097152&X.getEmitFlags(e))&&(305===D.kind||0==(3&X.getOriginalNode(e).flags))}function F(e,t){t=t?n:a;return X.isBindingPattern(e.name)?X.flattenDestructuringAssignment(e,V,m,0,!1,t):e.initializer?t(e.name,X.visitNode(e.initializer,V,X.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 h(y.cloneNode(e)),n?J(e,Q(X.setTextRange(y.createAssignment(e,t),r))):Q(X.setTextRange(y.createAssignment(e,t),r))}function w(e){return 0!=(4194304&X.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 268:e=R(e,r);break;case 269: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(X.isBindingPattern(r.name))for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];X.isOmittedExpression(o)||(t=e(t,o,n))}else{var s;X.isGeneratedIdentifier(r.name)||(s=void 0,n&&(t=B(t,r.name,y.getLocalName(r)),s=X.idText(r.name)),t=R(t,r,s))}return t}(e,a,r))}return e}function L(e,t){return d.exportEquals||(X.hasSyntacticModifier(t,1)&&(e=B(e,r=X.hasSyntacticModifier(t,512)?y.createStringLiteral("default"):t.name,y.getLocalName(t)),r=X.getTextOfIdentifierOrLiteral(r)),t.name&&(e=R(e,t,r))),e;var r}function R(e,t,r){if(d.exportEquals)return e;var n=y.getDeclarationName(t),t=d.exportSpecifiers.get(X.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=X.append(e,j(t,r,n))}function j(e,t,r){t=y.createExpressionStatement(J(e,t));return X.startOnNewLine(t),r||X.setEmitFlags(t,1536),t}function J(e,t){e=X.isIdentifier(e)?y.createStringLiteralFromNode(e):e;return X.setEmitFlags(t,1536|X.getEmitFlags(t)),X.setCommentRange(y.createCallExpression(b,void 0,[e,t]),t)}function z(e){switch(e.kind){case 237:return function(e){if(!A(e.declarationList))return X.visitNode(e,V,X.isStatement);for(var t,r,n,i=X.hasSyntacticModifier(e,1),a=w(e),o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?t=X.append(t,F(c,i&&!a)):N(c)}return t&&(r=X.append(r,X.setTextRange(y.createExpressionStatement(y.inlineExpressions(t)),e))),a?(n=X.getOriginalNodeId(e),S[n]=M(S[n],e,i)):r=M(r,e,!1),X.singleOrMany(r)}(e);case 256:return f=e,x=X.hasSyntacticModifier(f,1)?X.append(x,y.updateFunctionDeclaration(f,f.decorators,X.visitNodes(f.modifiers,H,X.isModifier),f.asteriskToken,y.getDeclarationName(f,!0,!0),void 0,X.visitNodes(f.parameters,V,X.isParameterDeclaration),void 0,X.visitNode(f.body,V,X.isBlock))):X.append(x,X.visitEachChild(f,V,m)),void(w(f)?(g=X.getOriginalNodeId(f),S[g]=L(S[g],f)):x=L(x,f));case 257:return g=e,f=y.getLocalName(g),h(f),p=X.append(p,X.setTextRange(y.createExpressionStatement(y.createAssignment(f,X.setTextRange(y.createClassExpression(X.visitNodes(g.decorators,V,X.isDecorator),void 0,g.name,void 0,X.visitNodes(g.heritageClauses,V,X.isHeritageClause),X.visitNodes(g.members,V,X.isClassElement)),g))),g)),w(g)?(f=X.getOriginalNodeId(g),S[f]=L(S[f],g)):p=L(p,g),X.singleOrMany(p);case 242:return K(e,!0);case 243:return d=D,D=_=e,_=y.updateForInStatement(_,U(_.initializer),X.visitNode(_.expression,V,X.isExpression),X.visitIterationBody(_.statement,z,m)),D=d,_;case 244:return d=D,D=_=e,_=y.updateForOfStatement(_,_.awaitModifier,U(_.initializer),X.visitNode(_.expression,V,X.isExpression),X.visitIterationBody(_.statement,z,m)),D=d,_;case 240:return u=e,y.updateDoStatement(u,X.visitIterationBody(u.statement,z,m),X.visitNode(u.expression,V,X.isExpression));case 241:return u=e,y.updateWhileStatement(u,X.visitNode(u.expression,V,X.isExpression),X.visitIterationBody(u.statement,z,m));case 250:return l=e,y.updateLabeledStatement(l,l.label,X.visitNode(l.statement,z,X.isStatement,y.liftToBlock));case 248:return l=e,y.updateWithStatement(l,X.visitNode(l.expression,V,X.isExpression),X.visitNode(l.statement,z,X.isStatement,y.liftToBlock));case 249:return c=e,y.updateSwitchStatement(c,X.visitNode(c.expression,V,X.isExpression),X.visitNode(c.caseBlock,z,X.isCaseBlock));case 263:return c=D,D=s=e,s=y.updateCaseBlock(s,X.visitNodes(s.clauses,z,X.isCaseOrDefaultClause)),D=c,s;case 289:return s=e,y.updateCaseClause(s,X.visitNode(s.expression,V,X.isExpression),X.visitNodes(s.statements,z,X.isStatement));case 290:return o=e,X.visitEachChild(o,z,m);case 252:return o=e,X.visitEachChild(o,z,m);case 292:return a=D,D=i=e,i=y.updateCatchClause(i,i.variableDeclaration,X.visitNode(i.block,z,X.isBlock)),D=a,i;case 235:return a=D,D=i=e,i=X.visitEachChild(i,z,m),D=a,i;case 352:return w(t=e)&&237===t.original.kind&&(r=X.getOriginalNodeId(t),n=X.hasSyntacticModifier(t.original,1),S[r]=M(S[r],t.original,n)),t;case 353:return r=e,n=X.getOriginalNodeId(r),(t=S[n])?(delete S[n],X.append(t,r)):(n=X.getOriginalNode(r),X.isModuleOrEnumDeclaration(n)?X.append(R(t,n),r):r);default:return V(e)}var t,r,n,i,a,o,s,c,l,u,_,d,p,f,g}function K(e,t){var r=D;return D=e,e=y.updateForStatement(e,X.visitNode(e.initializer,t?U:q,X.isForInitializer),X.visitNode(e.condition,V,X.isExpression),X.visitNode(e.incrementor,q,X.isExpression),X.visitIterationBody(e.statement,t?z:V,m)),D=r,e}function U(e){if(a=e,X.isVariableDeclarationList(a)&&A(a)){for(var t=void 0,r=0,n=e.declarations;r<n.length;r++){var i=n[r],t=X.append(t,F(i,!1));i.initializer||N(i)}return t?y.inlineExpressions(t):y.createOmittedExpression()}return X.visitNode(e,q,X.isExpression);var a}function t(e,t){if(!(71307264&e.transformFlags))return e;switch(e.kind){case 242:return K(e,!1);case 238:return a=e,y.updateExpressionStatement(a,X.visitNode(a.expression,q,X.isExpression));case 212:return i=e,a=t,y.updateParenthesizedExpression(i,X.visitNode(i.expression,a?q:V,X.isExpression));case 350:return r=e,n=t,y.updatePartiallyEmittedExpression(r,X.visitNode(r.expression,n?q:V,X.isExpression));case 221:if(X.isDestructuringAssignment(e))return function(e,t){if(W(e.left))return X.flattenDestructuringAssignment(e,V,m,0,!t);return X.visitEachChild(e,V,m)}(e,t);break;case 208:if(X.isImportCall(e))return r=e,n=X.getExternalModuleNameLiteral(y,r,v,_,u,l),r=X.visitNode(X.firstOrUndefined(r.arguments),V),n=!n||r&&X.isStringLiteral(r)&&r.text===n.text?r:n,y.createCallExpression(y.createPropertyAccessExpression(c,y.createIdentifier("import")),void 0,n?[n]:[]);break;case 219:case 220:return function(e,t){if((45===e.operator||46===e.operator)&&X.isIdentifier(e.operand)&&!X.isGeneratedIdentifier(e.operand)&&!X.isLocalName(e.operand)&&!X.isDeclarationNameOfEnumOrNamespace(e.operand)){var r=G(e.operand);if(r){var n=void 0,i=X.visitNode(e.operand,V,X.isExpression);X.isPrefixUnaryExpression(e)?i=y.updatePrefixUnaryExpression(e,i):(i=y.updatePostfixUnaryExpression(e,i),t||(n=y.createTempVariable(h),i=y.createAssignment(n,i),X.setTextRange(i,e)),i=y.createComma(i,y.cloneNode(e.operand)),X.setTextRange(i,e));for(var a=0,o=r;a<o.length;a++){var s=o[a];i=J(s,Q(i))}return n&&(i=y.createComma(i,n),X.setTextRange(i,e)),i}}return X.visitEachChild(e,V,m)}(e,t)}var r,n,i,a;return X.visitEachChild(e,V,m)}function V(e){return t(e,!1)}function q(e){return t(e,!0)}function W(e){if(X.isAssignmentExpression(e,!0))return W(e.left);if(X.isSpreadElement(e))return W(e.expression);if(X.isObjectLiteralExpression(e))return X.some(e.properties,W);if(X.isArrayLiteralExpression(e))return X.some(e.elements,W);if(X.isShorthandPropertyAssignment(e))return W(e.name);if(X.isPropertyAssignment(e))return W(e.initializer);if(X.isIdentifier(e)){e=u.getReferencedExportContainer(e);return void 0!==e&&305===e.kind}return!1}function H(e){switch(e.kind){case 93:case 88:return}return e}function G(e){var t,r;return X.isGeneratedIdentifier(e)||(r=u.getReferencedImportDeclaration(e)||u.getReferencedValueDeclaration(e))&&((e=u.getReferencedExportContainer(e,!1))&&305===e.kind&&(t=X.append(t,y.getDeclarationName(r))),t=X.addRange(t,d&&d.exportedBindings[X.getOriginalNodeId(r)])),t}function Q(e){return void 0===p&&(p=[]),p[X.getNodeId(e)]=!0,e}}}(ts=ts||{}),function(g){g.transformECMAScriptModule=function(i){var n,a,o,s=i.factory,c=i.getEmitHelperFactory,l=i.getEmitHost(),u=i.getEmitResolver(),_=i.getCompilerOptions(),d=g.getEmitScriptTarget(_),p=i.onEmitNode,r=i.onSubstituteNode;return i.onEmitNode=function(e,t,r){g.isSourceFile(t)?((g.isExternalModule(t)||_.isolatedModules)&&_.importHelpers&&(n=new g.Map),p(e,t,r),n=void 0):p(e,t,r)},i.onSubstituteNode=function(e,t){if(t=r(e,t),n&&g.isIdentifier(t)&&4096&g.getEmitFlags(t))return function(e){var t=g.idText(e),e=n.get(t);e||n.set(t,e=s.createUniqueName(t,48));return e}(t);return t},i.enableEmitNotification(305),i.enableSubstitution(79),g.chainBundle(i,function(e){if(e.isDeclarationFile)return e;if(g.isExternalModule(e)||_.isolatedModules){o=void 0;var t=function(e){var t=g.createExternalHelpersImportDeclarationIfNeeded(s,c(),e,_);{if(t){var r=[],n=s.copyPrologue(e.statements,r);return g.append(r,t),g.addRange(r,g.visitNodes(e.statements,f,g.isStatement,n)),s.updateSourceFile(e,g.setTextRange(s.createNodeArray(r),e.statements))}return g.visitEachChild(e,f,i)}}(a=e);return a=void 0,o&&(t=s.updateSourceFile(t,g.setTextRange(s.createNodeArray(g.insertStatementsAfterCustomPrologue(t.statements.slice(),o)),t.statements))),!g.isExternalModule(e)||g.some(t.statements,g.isExternalModuleIndicator)?t:s.updateSourceFile(t,g.setTextRange(s.createNodeArray(__spreadArray(__spreadArray([],t.statements,!0),[g.createEmptyExports(s)],!1)),t.statements))}return e});function f(e){switch(e.kind){case 265:return g.getEmitScriptTarget(_)>=g.ModuleKind.ES2020?(t=e,g.Debug.assert(g.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=function(e,t){g.hasSyntacticModifier(t,1)&&(e=g.append(e,s.createExportDeclaration(void 0,void 0,t.isTypeOnly,s.createNamedExports([s.createExportSpecifier(!1,void 0,g.idText(t.name))]))));return e}(r=g.append(void 0,g.setOriginalNode(g.setTextRange(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(t.name),void 0,void 0,function(e){var t=g.getExternalModuleNameLiteral(s,e,g.Debug.checkDefined(a),l,u,_),r=[];t&&r.push(t);o||(n=s.createUniqueName("_createRequire",48),e=s.createImportDeclaration(void 0,void 0,s.createImportClause(!1,void 0,s.createNamedImports([s.createImportSpecifier(!1,s.createIdentifier("createRequire"),n)])),s.createStringLiteral("module")),t=s.createUniqueName("__require",48),n=s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(t,void 0,void 0,s.createCallExpression(s.cloneNode(n),void 0,[s.createPropertyAccessExpression(s.createMetaProperty(100,s.createIdentifier("meta")),s.createIdentifier("url"))]))],2<=d?2:0)),o=[e,n]);var n=o[1].declarationList.declarations[0].name;return g.Debug.assertNode(n,g.isIdentifier),s.createCallExpression(s.cloneNode(n),void 0,r)}(t))],2<=d?2:0)),t),t)),t),g.singleOrMany(r)):void 0;case 271:return(r=e).isExportEquals?void 0:r;case 272:return function(e){if(void 0!==_.module&&_.module>g.ModuleKind.ES2015)return e;if(!e.exportClause||!g.isNamespaceExport(e.exportClause)||!e.moduleSpecifier)return e;var t=e.exportClause.name,r=s.getGeneratedNameForNode(t),n=s.createImportDeclaration(void 0,void 0,s.createImportClause(!1,void 0,s.createNamespaceImport(r)),e.moduleSpecifier,e.assertClause);g.setOriginalNode(n,e.exportClause);t=g.isExportNamespaceAsDefaultDeclaration(e)?s.createExportDefault(r):s.createExportDeclaration(void 0,void 0,!1,s.createNamedExports([s.createExportSpecifier(!1,r,t)]));return g.setOriginalNode(t,e),[n,t]}(e)}var t,r;return e}}}(ts=ts||{}),function(d){d.transformNodeModule=function(t){var r=t.onSubstituteNode,n=t.onEmitNode,i=d.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=d.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(e,t){return d.isSourceFile(t)?r(e,s=t):(s?s.impliedNodeFormat===d.ModuleKind.ESNext?a:l:r)(e,t)},t.onEmitNode=function(e,t,r){d.isSourceFile(t)&&(s=t);return(s?s.impliedNodeFormat!==d.ModuleKind.ESNext?u:o:n)(e,t,r)},t.enableSubstitution(305),t.enableEmitNotification(305),function(e){return(305===e.kind?_:function(e){return t.factory.createBundle(d.map(e.sourceFiles,_),e.prepends)})(e)};function _(e){if(e.isDeclarationFile)return e;e=((s=e).impliedNodeFormat===d.ModuleKind.ESNext?i:c)(e);return s=void 0,d.Debug.assert(d.isSourceFile(e)),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=173===r.kind?n.isStatic(r)?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.isStatic(r)?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 175: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 174: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 176: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 169:case 168:t=n.isStatic(r)?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:257===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 256: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 171: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 175:case 180: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 174: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 176: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 169:case 168:return n.isStatic(r.parent)?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:257===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 256:case 179: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 173:case 172: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: ".concat(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 257:e=n.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 258:e=n.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 195:e=n.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 180:case 175:e=n.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:e=n.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:case 168:e=n.isStatic(r.parent)?n.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:257===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 179:case 256:e=n.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 259: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)&&117===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)||n.isJSDocTypeAlias(r)?function(e){return{diagnosticMessage:e.errorModuleName?n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n.isJSDocTypeAlias(r)?n.Debug.checkDefined(r.typeExpression):r.type,typeName:n.isJSDocTypeAlias(r)?n.getNameOfDeclaration(r):r.name}}:n.Debug.assertNever(r,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(n.SyntaxKind[r.kind]));function e(e){e=e,e=254===r.kind||203===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:167===r.kind||206===r.kind||166===r.kind||164===r.kind&&n.hasSyntacticModifier(r.parent,8)?n.isStatic(r)?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:257===r.parent.kind||164===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.isJSDocTypeAlias(e)},n.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return n.isSetAccessor(t)||n.isGetAccessor(t)?function(e){e=function(e){return n.isStatic(t)?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:257===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.isStatic(t)?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:257===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(ce){function a(e,t){e=t.text.substring(e.pos,e.end);return ce.stringContains(e,"@internal")}function r(e,t){var r=ce.getParseTreeNode(e);if(r&&164===r.kind){var n=r.parent.parameters.indexOf(r),i=0<n?r.parent.parameters[n-1]:void 0,n=t.text,e=i?ce.concatenate(ce.getTrailingCommentRanges(n,ce.skipTrivia(n,i.end+1,!1,!0)),ce.getLeadingCommentRanges(n,e.pos)):ce.getTrailingCommentRanges(n,ce.skipTrivia(n,e.pos,!1,!0));return e&&e.length&&a(ce.last(e),t)}r=r&&ce.getLeadingCommentRangesOfNode(r,t);return!!ce.forEach(r,function(e){return a(e,t)})}ce.getDeclarationDiagnostics=function(e,t,r){var n=e.getCompilerOptions();return ce.transformNodes(t,e,ce.factory,n,r?[r]:ce.filter(e.getSourceFiles(),ce.isSourceFileNotJson),[i],!1).diagnostics},ce.isInternalDeclaration=r;var le=531469;function i(_){function u(){return ce.Debug.fail("Diagnostic emitted without context")}var b,d,x,D,p,f,S,T,g,m,y,h,C=u,k=!0,v=!1,E=!1,N=!1,A=!1,F=_.factory,P=_.getEmitHost(),w={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;t=n(I.isSymbolAccessible(e,t,r,!0));return L(I.getTypeReferenceDirectivesForSymbol(e,r)),t},reportInaccessibleThisError:function(){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,t(),"this"))},reportInaccessibleUniqueSymbolError:function(){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,t(),"unique symbol"))},reportCyclicStructureError:function(){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,t()))},reportPrivateInBaseOfClassExpression:function(e){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},reportLikelyUnsafeImportRequiredError:function(e){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,t(),e))},reportTruncationError:function(){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:P,trackReferencedAmbientModule:function(e,t){t=I.getTypeReferenceDirectivesForSymbol(t,67108863);if(ce.length(t))return L(t);e=ce.getSourceFileOfNode(e);m.set(ce.getOriginalNodeId(e),e)},trackExternalModuleSymbolOfImportTypeNode:function(e){v||(f=f||[]).push(e)},reportNonlocalAugmentation:function(t,e,r){var n=null===(e=e.declarations)||void 0===e?void 0:e.find(function(e){return ce.getSourceFileOfNode(e)===t}),r=ce.filter(r.declarations,function(e){return ce.getSourceFileOfNode(e)!==t});if(r)for(var i=0,a=r;i<a.length;i++){var o=a[i];_.addDiagnostic(ce.addRelatedInfo(ce.createDiagnosticForNode(o,ce.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),ce.createDiagnosticForNode(n,ce.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty:function(e){(S||T)&&_.addDiagnostic(ce.createDiagnosticForNode(S||T,ce.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,e))}},I=_.getEmitResolver(),O=_.getCompilerOptions(),e=O.noResolve,M=O.stripInternal;return function(a){if(305===a.kind&&a.isDeclarationFile)return a;if(306===a.kind){v=!0,m=new ce.Map,y=new ce.Map;var r=!1,e=F.createBundle(ce.map(a.sourceFiles,function(e){if(!e.isDeclarationFile){if(r=r||e.hasNoDefaultLib,b=g=e,x=void 0,p=!1,D=new ce.Map,C=u,A=N=!1,B(e,m),j(e,y),ce.isExternalOrCommonJsModule(e)||ce.isJsonSourceFile(e)){k=E=!1;var t=ce.isSourceFileJS(e)?F.createNodeArray(R(e,!0)):ce.visitNodes(e.statements,ee);return F.updateSourceFile(e,[F.createModuleDeclaration([],[F.createModifier(135)],F.createStringLiteral(ce.getResolvedExternalModuleName(_.getEmitHost(),e)),F.createModuleBlock(ce.setTextRange(F.createNodeArray(Z(t)),e.statements)))],!0,[],[],!1,[])}k=!0;t=ce.isSourceFileJS(e)?F.createNodeArray(R(e)):ce.visitNodes(e.statements,ee);return F.updateSourceFile(e,Z(t),!0,[],[],!1,[])}}),ce.mapDefined(a.prepends,function(e){if(308!==e.kind)return e;e=ce.createUnparsedSourceFile(e,"dts",M);return r=r||!!e.hasNoDefaultLib,B(e,m),L(ce.map(e.typeReferenceDirectives,function(e){return[e.fileName,e.resolutionMode]})),j(e,y),e}));e.syntheticFileReferences=[],e.syntheticTypeReferences=s(),e.syntheticLibReferences=o(),e.hasNoDefaultLib=r;var t=ce.getDirectoryPath(ce.normalizeSlashes(ce.getOutputPathsFor(a,P,!0).declarationFilePath)),n=l(e.syntheticFileReferences,t);return m.forEach(n),e}k=!0,g=b=a,C=u,p=E=v=A=N=!1,x=void 0,D=new ce.Map,d=void 0,m=B(g,new ce.Map),y=j(g,new ce.Map);var i,t=[],n=ce.getDirectoryPath(ce.normalizeSlashes(ce.getOutputPathsFor(a,P,!0).declarationFilePath)),e=l(t,n);ce.isSourceFileJS(g)?(i=F.createNodeArray(R(a)),m.forEach(e),h=ce.filter(i,ce.isAnyImportSyntax)):(n=ce.visitNodes(a.statements,ee),i=ce.setTextRange(F.createNodeArray(Z(n)),a.statements),m.forEach(e),h=ce.filter(i,ce.isAnyImportSyntax),ce.isExternalModule(a)&&(!E||N&&!A)&&(i=ce.setTextRange(F.createNodeArray(__spreadArray(__spreadArray([],i,!0),[ce.createEmptyExports(F)],!1)),i)));t=F.updateSourceFile(a,i,!0,t,s(),a.hasNoDefaultLib,o());return t.exportedModulesFromDeclarationEmit=f,t;function o(){return ce.map(ce.arrayFrom(y.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function s(){return d?ce.mapDefined(ce.arrayFrom(d.keys()),c):[]}function c(e){var t=e[0],e=e[1];if(h)for(var r=0,n=h;r<n.length;r++){var i=n[r];if(ce.isImportEqualsDeclaration(i)&&ce.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(ce.isStringLiteralLike(a)&&a.text===t)return}else if(ce.isImportDeclaration(i)&&ce.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return __assign({fileName:t,pos:-1,end:-1},e?{resolutionMode:e}:void 0)}function l(n,i){return function(e){if(e.isDeclarationFile)r=e.fileName;else{if(v&&ce.contains(a.sourceFiles,e))return;var t=ce.getOutputPathsFor(e,P,!0),r=t.declarationFilePath||t.jsFilePath||e.fileName}r&&(e=ce.moduleSpecifiers.getModuleSpecifier(O,g,ce.toPath(i,P.getCurrentDirectory(),P.getCanonicalFileName),ce.toPath(r,P.getCurrentDirectory(),P.getCanonicalFileName),P),ce.pathIsRelative(e)?(r=ce.getRelativePathToDirectoryOrUrl(i,r,P.getCurrentDirectory(),P.getCanonicalFileName,!1),ce.startsWith(r,"./")&&ce.hasExtension(r)&&(r=r.substring(2)),ce.startsWith(r,"node_modules/")||ce.pathContainsNodeModules(r)||n.push({pos:-1,end:-1,fileName:r})):L([[e,void 0]]))}}};function L(e){if(e){d=d||new ce.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(x)for(var t=0,r=e.aliasesToMakeVisible;t<r.length;t++){var n=r[t];ce.pushIfUnique(x,n)}else x=e.aliasesToMakeVisible}else{var i=C(e);if(i)return i.typeName?_.addDiagnostic(ce.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,ce.getTextOfNode(i.typeName),e.errorSymbolName,e.errorModuleName)):_.addDiagnostic(ce.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,e.errorSymbolName,e.errorModuleName)),!0}return!1}function t(){return S?ce.declarationNameToString(S):T&&ce.getNameOfDeclaration(T)?ce.declarationNameToString(ce.getNameOfDeclaration(T)):T&&ce.isExportAssignment(T)?T.isExportEquals?"export=":"default":"(Missing)"}function R(t,e){var r=C;C=function(e){return e.errorNode&&ce.canProduceDiagnostics(e.errorNode)?ce.createGetSymbolAccessibilityDiagnosticForNode(e.errorNode)(e):{diagnosticMessage:e.errorModuleName?ce.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ce.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:e.errorNode||t}};e=I.getDeclarationStatementsForSourceFile(t,le,w,e);return C=r,e}function B(t,r){return e||!ce.isUnparsedSource(t)&&ce.isSourceFileJS(t)||ce.forEach(t.referencedFiles,function(e){e=P.getSourceFileFromReference(t,e);e&&r.set(ce.getOriginalNodeId(e),e)}),r}function j(e,t){return ce.forEach(e.libReferenceDirectives,function(e){P.getLibFileFromReference(e)&&t.set(ce.toFileNameLowerCase(e.fileName),!0)}),t}function i(e,t,r){var n;p||(n=C,C=ce.createGetSymbolAccessibilityDiagnosticForNode(e));var i,a,e=F.updateParameterDeclaration(e,void 0,(i=e,t=t,ce.factory.createModifiersFromModifierFlags(s(i,t,a))),e.dotDotDotToken,function t(e){return 79===e.kind?e:202===e.kind?F.updateArrayBindingPattern(e,ce.visitNodes(e.elements,r)):F.updateObjectBindingPattern(e,ce.visitNodes(e.elements,r));function r(e){return 227===e.kind?e:F.updateBindingElement(e,e.dotDotDotToken,e.propertyName,t(e.name),o(e)?e.initializer:void 0)}}(e.name),I.isOptionalParameter(e)?e.questionToken||F.createToken(57):void 0,z(e,r||e.type,!0),J(e));return p||(C=n),e}function o(e){return function(e){switch(e.kind){case 167:case 166:return!ce.hasEffectiveModifier(e,8);case 164:case 254:return 1}return}(e)&&I.isLiteralConstDeclaration(ce.getParseTreeNode(e))}function J(e){if(o(e))return I.createLiteralConstValue(ce.getParseTreeNode(e),w)}function z(e,t,r){if((r||!ce.hasEffectiveModifier(e,8))&&!o(e)){var n,r=164===e.kind&&(I.isRequiredInitializedParameter(e)||I.isOptionalUninitializedParameterProperty(e));return t&&!r?ce.visitNode(t,$):ce.getParseTreeNode(e)?173===e.kind?F.createKeywordTypeNode(130):(S=e.name,p||(n=C,C=ce.createGetSymbolAccessibilityDiagnosticForNode(e)),254===e.kind||203===e.kind?i(I.createTypeOfDeclaration(e,b,le,w)):164===e.kind||167===e.kind||166===e.kind?e.initializer?i(I.createTypeOfDeclaration(e,b,le,w,r)||I.createTypeOfExpression(e.initializer,b,le,w)):i(I.createTypeOfDeclaration(e,b,le,w,r)):i(I.createReturnTypeOfSignatureDeclaration(e,b,le,w))):t?ce.visitNode(t,$):F.createKeywordTypeNode(130)}function i(e){return S=void 0,p||(C=n),e||F.createKeywordTypeNode(130)}}function K(e){switch((e=ce.getParseTreeNode(e)).kind){case 256:case 261:case 258:case 257:case 259:case 260:return!I.isDeclarationVisible(e);case 254:return!U(e);case 265:case 266:case 272:case 271:return;case 170:return 1}}function U(e){return!ce.isOmittedExpression(e)&&(ce.isBindingPattern(e.name)?ce.some(e.name.elements,U):I.isDeclarationVisible(e))}function V(e,t,r){if(!ce.hasEffectiveModifier(e,8)){e=ce.map(t,function(e){return i(e,r)});if(e)return F.createNodeArray(e,t.hasTrailingComma)}}function q(e,t){var r,n;return t||(n=ce.getThisParameter(e))&&(r=[i(n)]),ce.isSetAccessorDeclaration(e)&&(n=void 0,t||(t=ce.getSetAccessorValueParameter(e))&&(n=i(t,void 0,oe(e,I.getAllAccessorDeclarations(e)))),n=n||F.createParameterDeclaration(void 0,void 0,void 0,"value"),r=ce.append(r,n)),F.createNodeArray(r||ce.emptyArray)}function W(e,t){return ce.hasEffectiveModifier(e,8)?void 0:ce.visitNodes(t,$)}function H(e){return ce.isSourceFile(e)||ce.isTypeAliasDeclaration(e)||ce.isModuleDeclaration(e)||ce.isClassDeclaration(e)||ce.isInterfaceDeclaration(e)||ce.isFunctionLike(e)||ce.isIndexSignatureDeclaration(e)||ce.isMappedTypeNode(e)}function G(e,t){n(I.isEntityNameVisible(e,t)),L(I.getTypeReferenceDirectivesForEntityName(e))}function Q(e,t){return ce.hasJSDocNodes(e)&&ce.hasJSDocNodes(t)&&(e.jsDoc=t.jsDoc),ce.setCommentRange(e,ce.getCommentRange(t))}function X(e,t){if(t){if(E=E||261!==e.kind&&200!==e.kind,ce.isStringLiteralLike(t))if(v){var r=ce.getExternalModuleNameFromDeclaration(_.getEmitHost(),I,e);if(r)return F.createStringLiteral(r)}else{r=I.getSymbolOfExternalModuleSpecifier(t);r&&(f=f||[]).push(r)}return t}}function Y(e){if(void 0!==ce.getResolutionModeOverrideForClause(e))return ce.isNightly()||_.addDiagnostic(ce.createDiagnosticForNode(e,ce.Diagnostics.Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),e}function Z(e){for(;ce.length(x);){var t=x.shift();if(!ce.isLateVisibilityPaintedStatement(t))return ce.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ce.SyntaxKind?ce.SyntaxKind[t.kind]:t.kind));var r=k;k=t.parent&&ce.isSourceFile(t.parent)&&!(ce.isExternalModule(t.parent)&&v);var n=a(t);k=r,D.set(ce.getOriginalNodeId(t),n)}return ce.visitNodes(e,function(e){if(ce.isLateVisibilityPaintedStatement(e)){var t=ce.getOriginalNodeId(e);if(D.has(t)){var r=D.get(t);return D.delete(t),r&&((ce.isArray(r)?ce.some(r,ce.needsScopeMarker):ce.needsScopeMarker(r))&&(N=!0),ce.isSourceFile(e.parent)&&(ce.isArray(r)?ce.some(r,ce.isExternalModuleIndicator):ce.isExternalModuleIndicator(r))&&(E=!0)),r}}return e})}function $(n){if(!ne(n)){if(ce.isDeclaration(n)){if(K(n))return;if(ce.hasDynamicName(n)&&!I.isLateBound(ce.getParseTreeNode(n)))return}if(!(ce.isFunctionLike(n)&&I.isImplementationOfOverload(n)||ce.isSemicolonClassElement(n))){var i;H(n)&&(i=b,b=n);var a=C,o=ce.canProduceDiagnostics(n),s=p,c=(182===n.kind||195===n.kind)&&259!==n.parent.kind;if((ce.isMethodDeclaration(n)||ce.isMethodSignature(n))&&ce.hasEffectiveModifier(n,8))return n.symbol&&n.symbol.declarations&&n.symbol.declarations[0]!==n?void 0:u(F.createPropertyDeclaration(void 0,ae(n),n.name,void 0,void 0,void 0));if(o&&!p&&(C=ce.createGetSymbolAccessibilityDiagnosticForNode(n)),ce.isTypeQueryNode(n)&&G(n.exprName,b),c&&(p=!0),function(e){switch(e.kind){case 175:case 171:case 169:case 172:case 173:case 167:case 166:case 168:case 174:case 176:case 254:case 163:case 228:case 178:case 189:case 179:case 180:case 200:return!0}return!1}(n))switch(n.kind){case 228:(ce.isEntityName(n.expression)||ce.isEntityNameExpression(n.expression))&&G(n.expression,b);var e=ce.visitEachChild(n,$,_);return u(F.updateExpressionWithTypeArguments(e,e.expression,e.typeArguments));case 178:G(n.typeName,b);e=ce.visitEachChild(n,$,_);return u(F.updateTypeReferenceNode(e,e.typeName,e.typeArguments));case 175:return u(F.updateConstructSignature(n,W(n,n.typeParameters),V(n,n.parameters),z(n,n.type)));case 171:return u(F.createConstructorDeclaration(void 0,ae(n),V(n,n.parameters,0),void 0));case 169:return ce.isPrivateIdentifier(n.name)?u(void 0):u(F.createMethodDeclaration(void 0,ae(n),void 0,n.name,n.questionToken,W(n,n.typeParameters),V(n,n.parameters),z(n,n.type),void 0));case 172:if(ce.isPrivateIdentifier(n.name))return u(void 0);var t=oe(n,I.getAllAccessorDeclarations(n));return u(F.updateGetAccessorDeclaration(n,void 0,ae(n),n.name,q(n,ce.hasEffectiveModifier(n,8)),z(n,t),void 0));case 173:return ce.isPrivateIdentifier(n.name)?u(void 0):u(F.updateSetAccessorDeclaration(n,void 0,ae(n),n.name,q(n,ce.hasEffectiveModifier(n,8)),void 0));case 167:return ce.isPrivateIdentifier(n.name)?u(void 0):u(F.updatePropertyDeclaration(n,void 0,ae(n),n.name,n.questionToken,z(n,n.type),J(n)));case 166:return ce.isPrivateIdentifier(n.name)?u(void 0):u(F.updatePropertySignature(n,ae(n),n.name,n.questionToken,z(n,n.type)));case 168:return ce.isPrivateIdentifier(n.name)?u(void 0):u(F.updateMethodSignature(n,ae(n),n.name,n.questionToken,W(n,n.typeParameters),V(n,n.parameters),z(n,n.type)));case 174:return u(F.updateCallSignature(n,W(n,n.typeParameters),V(n,n.parameters),z(n,n.type)));case 176:return u(F.updateIndexSignature(n,void 0,ae(n),V(n,n.parameters),ce.visitNode(n.type,$)||F.createKeywordTypeNode(130)));case 254:return ce.isBindingPattern(n.name)?re(n.name):(p=c=!0,u(F.updateVariableDeclaration(n,n.name,void 0,z(n,n.type),J(n))));case 163:return 169===(l=n).parent.kind&&ce.hasEffectiveModifier(l.parent,8)&&(n.default||n.constraint)?u(F.updateTypeParameterDeclaration(n,n.modifiers,n.name,void 0,void 0)):u(ce.visitEachChild(n,$,_));case 189:var r=ce.visitNode(n.checkType,$),e=ce.visitNode(n.extendsType,$),t=b;b=n.trueType;var l=ce.visitNode(n.trueType,$);b=t;t=ce.visitNode(n.falseType,$);return u(F.updateConditionalTypeNode(n,r,e,l,t));case 179:return u(F.updateFunctionTypeNode(n,ce.visitNodes(n.typeParameters,$),V(n,n.parameters),ce.visitNode(n.type,$)));case 180:return u(F.updateConstructorTypeNode(n,ae(n),ce.visitNodes(n.typeParameters,$),V(n,n.parameters),ce.visitNode(n.type,$)));case 200:return ce.isLiteralImportTypeNode(n)?u(F.updateImportTypeNode(n,F.updateLiteralTypeNode(n.argument,X(n,n.argument.literal)),n.assertions,n.qualifier,ce.visitNodes(n.typeArguments,$,ce.isTypeNode),n.isTypeOf)):u(n);default:ce.Debug.assertNever(n,"Attempted to process unhandled node kind: ".concat(ce.SyntaxKind[n.kind]))}return ce.isTupleTypeNode(n)&&ce.getLineAndCharacterOfPosition(g,n.pos).line===ce.getLineAndCharacterOfPosition(g,n.end).line&&ce.setEmitFlags(n,1),u(ce.visitEachChild(n,$,_))}}function u(e){var t,r;return e&&o&&ce.hasDynamicName(n)&&(t=n,p||(r=C,C=ce.createGetSymbolAccessibilityDiagnosticForNodeName(t)),S=t.name,ce.Debug.assert(I.isLateBound(ce.getParseTreeNode(t))),G(t.name.expression,b),p||(C=r),S=void 0),H(n)&&(b=i),o&&!p&&(C=a),c&&(p=s),e===n?e:e&&ce.setOriginalNode(Q(e,n),n)}}function ee(e){if(function(e){switch(e.kind){case 256:case 261:case 265:case 258:case 257:case 259:case 260:case 237:case 266:case 272:case 271:return!0}return!1}(e)&&!ne(e)){switch(e.kind){case 272:return ce.isSourceFile(e.parent)&&(E=!0),A=!0,F.updateExportDeclaration(e,void 0,e.modifiers,e.isTypeOnly,e.exportClause,X(e,e.moduleSpecifier),ce.getResolutionModeOverrideForClause(e.assertClause)?e.assertClause:void 0);case 271:if(ce.isSourceFile(e.parent)&&(E=!0),A=!0,79===e.expression.kind)return e;var t=F.createUniqueName("_default",16);C=function(){return{diagnosticMessage:ce.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}},T=e;var r=F.createVariableDeclaration(t,void 0,I.createTypeOfExpression(e.expression,e,le,w),void 0);T=void 0;r=F.createVariableStatement(k?[F.createModifier(135)]:[],F.createVariableDeclarationList([r],2));return Q(r,e),ce.removeAllComments(e),[r,F.updateExportAssignment(e,e.decorators,e.modifiers,t)]}var n=a(e);return D.set(ce.getOriginalNodeId(e),n),e}}function te(e){if(ce.isImportEqualsDeclaration(e)||ce.hasEffectiveModifier(e,512)||!ce.canHaveModifiers(e))return e;var t=F.createModifiersFromModifierFlags(125950&ce.getEffectiveModifierFlags(e));return F.updateModifiers(e,t)}function a(t){if(x)for(;ce.orderedRemoveItem(x,t););if(!ne(t)){switch(t.kind){case 265:return function(e){if(I.isDeclarationVisible(e)){if(277===e.moduleReference.kind){var t=ce.getExternalModuleImportEqualsDeclarationExpression(e);return F.updateImportEqualsDeclaration(e,void 0,e.modifiers,e.isTypeOnly,e.name,F.updateExternalModuleReference(e.moduleReference,X(e,t)))}t=C;return C=ce.createGetSymbolAccessibilityDiagnosticForNode(e),G(e.moduleReference,b),C=t,e}}(t);case 266:return function(e){if(!e.importClause)return F.updateImportDeclaration(e,void 0,e.modifiers,e.importClause,X(e,e.moduleSpecifier),Y(e.assertClause));var t=e.importClause&&e.importClause.name&&I.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&F.updateImportDeclaration(e,void 0,e.modifiers,F.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,void 0),X(e,e.moduleSpecifier),Y(e.assertClause));if(268!==e.importClause.namedBindings.kind)return(r=ce.mapDefined(e.importClause.namedBindings.elements,function(e){return I.isDeclarationVisible(e)?e:void 0}))&&r.length||t?F.updateImportDeclaration(e,void 0,e.modifiers,F.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r&&r.length?F.updateNamedImports(e.importClause.namedBindings,r):void 0),X(e,e.moduleSpecifier),Y(e.assertClause)):I.isImportRequiredByAugmentation(e)?F.updateImportDeclaration(e,void 0,e.modifiers,void 0,X(e,e.moduleSpecifier),Y(e.assertClause)):void 0;var r=I.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||r?F.updateImportDeclaration(e,void 0,e.modifiers,F.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),X(e,e.moduleSpecifier),Y(e.assertClause)):void 0}(t)}if(!(ce.isDeclaration(t)&&K(t)||ce.isFunctionLike(t)&&I.isImplementationOfOverload(t))){var r;H(t)&&(r=b,b=t);var n=ce.canProduceDiagnostics(t),i=C;n&&(C=ce.createGetSymbolAccessibilityDiagnosticForNode(t));var a=k;switch(t.kind){case 259:return v(F.updateTypeAliasDeclaration(t,void 0,ae(t),t.name,ce.visitNodes(t.typeParameters,$,ce.isTypeParameterDeclaration),ce.visitNode(t.type,$,ce.isTypeNode)));case 258:return v(F.updateInterfaceDeclaration(t,void 0,ae(t),t.name,W(t,t.typeParameters),se(t.heritageClauses),ce.visitNodes(t.members,$)));case 256:var e=v(F.updateFunctionDeclaration(t,void 0,ae(t),void 0,t.name,W(t,t.typeParameters),V(t,t.parameters),z(t,t.type),void 0));if(e&&I.isExpandoFunctionDeclaration(t)&&function(e){if(e.body)return 1;var t=null===(t=e.symbol.declarations)||void 0===t?void 0:t.filter(function(e){return ce.isFunctionDeclaration(e)&&!e.body});return!t||t.indexOf(e)===t.length-1}(t)){var o=I.getPropertiesOfContainerFunction(t),s=ce.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.name||F.createIdentifier("_default"),F.createModuleBlock([]),16);ce.setParent(s,b),s.locals=ce.createSymbolTable(o),s.symbol=o[0].parent;var c=[],l=ce.mapDefined(o,function(e){if(e.valueDeclaration&&ce.isPropertyAccessExpression(e.valueDeclaration)){C=ce.createGetSymbolAccessibilityDiagnosticForNode(e.valueDeclaration);var t=I.createTypeOfDeclaration(e.valueDeclaration,s,le,w);C=i;var r=ce.unescapeLeadingUnderscores(e.escapedName),n=ce.isStringANonContextualKeyword(r),e=n?F.getGeneratedNameForNode(e.valueDeclaration):F.createIdentifier(r);n&&c.push([e,r]);t=F.createVariableDeclaration(e,void 0,t,void 0);return F.createVariableStatement(n?void 0:[F.createToken(93)],F.createVariableDeclarationList([t]))}});c.length?l.push(F.createExportDeclaration(void 0,void 0,!1,F.createNamedExports(ce.map(c,function(e){var t=e[0],e=e[1];return F.createExportSpecifier(!1,t,e)})))):l=ce.mapDefined(l,function(e){return F.updateModifiers(e,0)});var u=F.createModuleDeclaration(void 0,ae(t),t.name,F.createModuleBlock(l),16);if(!ce.hasEffectiveModifier(e,512))return[e,u];var _=F.createModifiersFromModifierFlags(-514&ce.getEffectiveModifierFlags(e)|2),o=F.updateFunctionDeclaration(e,void 0,_,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),l=F.updateModuleDeclaration(u,void 0,_,u.name,u.body),u=F.createExportAssignment(void 0,void 0,!1,u.name);return ce.isSourceFile(t.parent)&&(E=!0),A=!0,[o,l,u]}return e;case 261:k=!1;var d=t.body;if(d&&262===d.kind){var u=N,p=A;N=A=!1;var f=Z(ce.visitNodes(d.statements,ee));16777216&t.flags&&(N=!1),ce.isGlobalScopeAugmentation(t)||(e=f,ce.some(e,ie))||A||(f=N?F.createNodeArray(__spreadArray(__spreadArray([],f,!0),[ce.createEmptyExports(F)],!1)):ce.visitNodes(f,te));f=F.updateModuleBlock(d,f);k=a,N=u,A=p;p=ae(t);return v(F.updateModuleDeclaration(t,void 0,p,ce.isExternalModuleAugmentation(t)?X(t,t.name):t.name,f))}k=a;p=ae(t);k=!1,ce.visitNode(d,ee);d=ce.getOriginalNodeId(d),f=D.get(d);return D.delete(d),v(F.updateModuleDeclaration(t,void 0,p,t.name,f));case 257:S=t.name,T=t;_=F.createNodeArray(ae(t)),d=W(t,t.typeParameters),p=ce.getFirstConstructorWithBody(t),f=void 0;p&&(g=C,f=ce.compact(ce.flatMap(p.parameters,function(o){if(ce.hasSyntacticModifier(o,16476)&&!ne(o))return C=ce.createGetSymbolAccessibilityDiagnosticForNode(o),79===o.name.kind?Q(F.createPropertyDeclaration(void 0,ae(o),o.name,o.questionToken,z(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];ce.isOmittedExpression(a)||(ce.isBindingPattern(a.name)&&(r=ce.concatenate(r,e(a.name))),(r=r||[]).push(F.createPropertyDeclaration(void 0,ae(o),a.name,void 0,z(a,void 0),void 0)))}return r}(o.name)})),C=g);var g=ce.some(t.members,function(e){return!!e.name&&ce.isPrivateIdentifier(e.name)})?[F.createPropertyDeclaration(void 0,void 0,F.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,g=ce.concatenate(ce.concatenate(g,f),ce.visitNodes(t.members,$)),f=F.createNodeArray(g),m=ce.getEffectiveBaseTypeNode(t);if(m&&!ce.isEntityNameExpression(m.expression)&&104!==m.expression.kind){var g=t.name?ce.unescapeLeadingUnderscores(t.name.escapedText):"default",y=F.createUniqueName("".concat(g,"_base"),16);C=function(){return{diagnosticMessage:ce.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:m,typeName:t.name}};var h=F.createVariableDeclaration(y,void 0,I.createTypeOfExpression(m.expression,t,le,w),void 0),g=F.createVariableStatement(k?[F.createModifier(135)]:[],F.createVariableDeclarationList([h],2)),h=F.createNodeArray(ce.map(t.heritageClauses,function(e){if(94!==e.token)return F.updateHeritageClause(e,ce.visitNodes(F.createNodeArray(ce.filter(e.types,function(e){return ce.isEntityNameExpression(e.expression)||104===e.expression.kind})),$));var t=C;C=ce.createGetSymbolAccessibilityDiagnosticForNode(e.types[0]);e=F.updateHeritageClause(e,ce.map(e.types,function(e){return F.updateExpressionWithTypeArguments(e,y,ce.visitNodes(e.typeArguments,$))}));return C=t,e}));return[g,v(F.updateClassDeclaration(t,void 0,_,t.name,d,h,f))]}h=se(t.heritageClauses);return v(F.updateClassDeclaration(t,void 0,_,t.name,d,h,f));case 237:return v(function(e){if(!ce.forEach(e.declarationList.declarations,U))return;var t=ce.visitNodes(e.declarationList.declarations,$);return ce.length(t)?F.updateVariableStatement(e,F.createNodeArray(ae(e)),F.updateVariableDeclarationList(e.declarationList,t)):void 0}(t));case 260:return v(F.updateEnumDeclaration(t,void 0,F.createNodeArray(ae(t)),t.name,F.createNodeArray(ce.mapDefined(t.members,function(e){if(!ne(e)){var t=I.getConstantValue(e);return Q(F.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?F.createStringLiteral(t):F.createNumericLiteral(t):void 0),e)}}))))}return ce.Debug.assertNever(t,"Unhandled top-level node in declaration emit: ".concat(ce.SyntaxKind[t.kind]))}}function v(e){return H(t)&&(b=r),n&&(C=i),261===t.kind&&(k=a),e===t?e:(S=T=void 0,e&&ce.setOriginalNode(Q(e,t),t))}}function re(e){return ce.flatten(ce.mapDefined(e.elements,function(e){if(227===e.kind)return;if(e.name&&U(e))return ce.isBindingPattern(e.name)?re(e.name):F.createVariableDeclaration(e.name,void 0,z(e,void 0),void 0)}))}function ne(e){return M&&e&&r(e,g)}function ie(e){return ce.isExportAssignment(e)||ce.isExportDeclaration(e)}function ae(e){var t=ce.getEffectiveModifierFlags(e),r=function(e){var t=109307,r=k&&258!==e.kind?2:0,n=305===e.parent.kind;(!n||v&&n&&ce.isExternalModule(e.parent))&&(t^=2,r=0);return s(e,t,r)}(e);return t===r?e.modifiers:F.createModifiersFromModifierFlags(r)}function oe(e,t){var r=c(e);return r||e===t.firstAccessor||(r=c(t.firstAccessor),C=ce.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)),!r&&t.secondAccessor&&e!==t.secondAccessor&&(r=c(t.secondAccessor),C=ce.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)),r}function se(e){return F.createNodeArray(ce.filter(ce.map(e,function(t){return F.updateHeritageClause(t,ce.visitNodes(F.createNodeArray(ce.filter(t.types,function(e){return ce.isEntityNameExpression(e.expression)||94===t.token&&104===e.expression.kind})),$))}),function(e){return e.types&&!!e.types.length}))}}function s(e,t,r){void 0===t&&(t=125947),void 0===r&&(r=0);r=ce.getEffectiveModifierFlags(e)&t|r;return 512&r&&!(1&r)&&(r^=1),512&r&&2&r&&(r^=2),r}function c(e){if(e)return 172===e.kind?e.type:0<e.parameters.length?e.parameters[0].type:void 0}ce.transformDeclarations=i}(ts=ts||{}),function(B){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 B.isBundle(e)?t.transformBundle(e):t.transformSourceFile(e)})}}function a(e){return t(e,B.chainBundle)}function n(e){return t(e,function(e,t){return t})}function j(e,t){return t}function J(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",B.noTransformers={scriptTransformers:B.emptyArray,declarationTransformers:B.emptyArray},B.getTransformers=function(e,t,r){return{scriptTransformers:function(e,t,r){if(r)return B.emptyArray;var n=B.getEmitScriptTarget(e),i=B.getEmitModuleKind(e),r=[];B.addRange(r,t&&B.map(t.before,a)),r.push(B.transformTypeScript),r.push(B.transformClassFields),B.getJSXTransformEnabled(e)&&r.push(B.transformJsx);n<99&&r.push(B.transformESNext);n<8&&r.push(B.transformES2021);n<7&&r.push(B.transformES2020);n<6&&r.push(B.transformES2019);n<5&&r.push(B.transformES2018);n<4&&r.push(B.transformES2017);n<3&&r.push(B.transformES2016);n<2&&(r.push(B.transformES2015),r.push(B.transformGenerators));r.push(function(e){switch(e){case B.ModuleKind.ESNext:case B.ModuleKind.ES2022:case B.ModuleKind.ES2020:case B.ModuleKind.ES2015:return B.transformECMAScriptModule;case B.ModuleKind.System:return B.transformSystemModule;case B.ModuleKind.Node16:case B.ModuleKind.NodeNext:return B.transformNodeModule;default:return B.transformModule}}(i)),n<1&&r.push(B.transformES5);return B.addRange(r,t&&B.map(t.after,a)),r}(e,t,r),declarationTransformers:(r=t,(t=[]).push(B.transformDeclarations),B.addRange(t,r&&B.map(r.afterDeclarations,n)),t)}},B.noEmitSubstitution=j,B.noEmitNotification=J,B.transformNodes=function(e,t,r,n,i,a,o){for(var s,c,l,u,_,d=new Array(355),p=0,f=[],g=[],m=[],y=[],h=0,v=!1,b=[],x=0,D=j,S=J,T=0,C=[],k={factory:r,getCompilerOptions:function(){return n},getEmitResolver:function(){return e},getEmitHost:function(){return t},getEmitHelperFactory:B.memoize(function(){return B.createEmitHelperFactory(k)}),startLexicalEnvironment:function(){B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),B.Debug.assert(!v,"Lexical environment is suspended."),f[h]=s,g[h]=c,m[h]=l,y[h]=p,h++,s=void 0,c=void 0,l=void 0,p=0},suspendLexicalEnvironment:function(){B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),B.Debug.assert(!v,"Lexical environment is already suspended."),v=!0},resumeLexicalEnvironment:function(){B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),B.Debug.assert(v,"Lexical environment is not suspended."),v=!1},endLexicalEnvironment:function(){var e;{var t;B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),B.Debug.assert(!v,"Lexical environment is suspended."),(s||c||l)&&(c&&(e=__spreadArray([],c,!0)),s&&(t=r.createVariableStatement(void 0,r.createVariableDeclarationList(s)),B.setEmitFlags(t,1048576),e?e.push(t):e=[t]),l&&(e=__spreadArray(e?__spreadArray([],e,!0):[],l,!0)))}s=f[--h],c=g[h],l=m[h],p=y[h],0===h&&(f=[],g=[],m=[],y=[]);return e},setLexicalEnvironmentFlags:function(e,t){p=t?p|e:p&~e},getLexicalEnvironmentFlags:function(){return p},hoistVariableDeclaration:function(e){B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed.");e=B.setEmitFlags(r.createVariableDeclaration(e),64);s?s.push(e):s=[e];1&p&&(p|=2)},hoistFunctionDeclaration:function(e){B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),B.setEmitFlags(e,1048576),c?c.push(e):c=[e]},addInitializationStatement:function(e){B.Debug.assert(0<T,"Cannot modify the lexical environment during initialization."),B.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),B.setEmitFlags(e,1048576),l?l.push(e):l=[e]},startBlockScope:function(){B.Debug.assert(0<T,"Cannot start a block scope during initialization."),B.Debug.assert(T<2,"Cannot start a block scope after transformation has completed."),b[x]=u,x++,u=void 0},endBlockScope:function(){B.Debug.assert(0<T,"Cannot end a block scope during initialization."),B.Debug.assert(T<2,"Cannot end a block scope after transformation has completed.");var e=B.some(u)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(u.map(function(e){return r.createVariableDeclaration(e)}),1))]:void 0;u=b[--x],0===x&&(b=[]);return e},addBlockScopedVariable:function(e){B.Debug.assert(0<x,"Cannot add a block scoped variable outside of an iteration body."),(u=u||[]).push(e)},requestEmitHelper:function e(t){B.Debug.assert(0<T,"Cannot modify the transformation context during initialization.");B.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed.");B.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)}_=B.append(_,t)},readEmitHelpers:function(){B.Debug.assert(0<T,"Cannot modify the transformation context during initialization."),B.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed.");var e=_;return _=void 0,e},enableSubstitution:function(e){B.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed."),d[e]|=1},enableEmitNotification:function(e){B.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed."),d[e]|=2},isSubstitutionEnabled:L,isEmitNotificationEnabled:R,get onSubstituteNode(){return D},set onSubstituteNode(e){B.Debug.assert(T<1,"Cannot modify transformation hooks after initialization has completed."),B.Debug.assert(void 0!==e,"Value must not be 'undefined'"),D=e},get onEmitNode(){return S},set onEmitNode(e){B.Debug.assert(T<1,"Cannot modify transformation hooks after initialization has completed."),B.Debug.assert(void 0!==e,"Value must not be 'undefined'"),S=e},addDiagnostic:function(e){C.push(e)}},E=0,N=i;E<N.length;E++){var A=N[E];B.disposeEmitNodes(B.getSourceFileOfNode(B.getParseTreeNode(A)))}B.performance.mark("beforeTransform");for(var F=a.map(function(e){return e(k)}),P=function(e){for(var t=0,r=F;t<r.length;t++)e=(0,r[t])(e);return e},T=1,w=[],I=0,O=i;I<O.length;I++){A=O[I];null!==B.tracing&&void 0!==B.tracing&&B.tracing.push("emit","transformNodes",305===A.kind?{path:A.path}:{kind:A.kind,pos:A.pos,end:A.end}),w.push((o?P:M)(A)),null!==B.tracing&&void 0!==B.tracing&&B.tracing.pop()}return T=2,B.performance.mark("afterTransform"),B.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:w,substituteNode:function(e,t){return B.Debug.assert(T<3,"Cannot substitute a node after the result is disposed."),t&&L(t)&&D(e,t)||t},emitNodeWithNotification:function(e,t,r){B.Debug.assert(T<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(R(t)?S(e,t,r):r(e,t))},isEmitNotificationEnabled:R,dispose:function(){if(T<3){for(var e=0,t=i;e<t.length;e++){var r=t[e];B.disposeEmitNodes(B.getSourceFileOfNode(B.getParseTreeNode(r)))}_=S=D=g=c=f=s=void 0,T=3}},diagnostics:C};function M(e){return!e||B.isSourceFile(e)&&e.isDeclarationFile?e:P(e)}function L(e){return 0!=(1&d[e.kind])&&0==(4&B.getEmitFlags(e))}function R(e){return 0!=(2&d[e.kind])||0!=(2&B.getEmitFlags(e))}},B.nullTransformationContext={factory:B.factory,getCompilerOptions:function(){return{}},getEmitResolver:B.notImplemented,getEmitHost:B.notImplemented,getEmitHelperFactory:B.notImplemented,startLexicalEnvironment:B.noop,resumeLexicalEnvironment:B.noop,suspendLexicalEnvironment:B.noop,endLexicalEnvironment:B.returnUndefined,setLexicalEnvironmentFlags:B.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:B.noop,hoistFunctionDeclaration:B.noop,addInitializationStatement:B.noop,startBlockScope:B.noop,endBlockScope:B.returnUndefined,addBlockScopedVariable:B.noop,requestEmitHelper:B.noop,readEmitHelpers:B.notImplemented,enableSubstitution:B.noop,enableEmitNotification:B.noop,isSubstitutionEnabled:B.notImplemented,isEmitNotificationEnabled:B.notImplemented,onSubstituteNode:j,onEmitNode:J,addDiagnostic:B.noop}}(ts=ts||{}),function(nn){var e,an=((e=[])[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e);function n(e,t,r,n,i,a){void 0===n&&(n=!1);var o=nn.isArray(r)?r:nn.getSourceFilesToEmit(e,r,n),s=e.getCompilerOptions();if(nn.outFile(s)){r=e.getPrependNodes();if(o.length||r.length){r=nn.factory.createBundle(o,r);if(u=t(p(r,e,n),r))return u}}else{if(!i)for(var c=0,l=o;c<l.length;c++){var u,_=l[c];if(u=t(p(_,e,n),_))return u}if(a){s=d(s);if(s)return t({buildInfoPath:s},void 0)}}}function d(e){var t=e.configFilePath;if(nn.isIncrementalCompilation(e)){if(e.tsBuildInfoFile)return e.tsBuildInfoFile;var r=nn.outFile(e);if(r)n=nn.removeFileExtension(r);else{if(!t)return;var t=nn.removeFileExtension(t),n=e.outDir?e.rootDir?nn.resolvePath(e.outDir,nn.getRelativePathFromDirectory(e.rootDir,t,!0)):nn.combinePaths(e.outDir,nn.getBaseFileName(t)):t}return n+".tsbuildinfo"}}function T(e,t){var r=nn.outFile(e),n=e.emitDeclarationOnly?void 0:r,i=n&&s(n,e),r=t||nn.getEmitDeclarations(e)?nn.removeFileExtension(r)+".d.ts":void 0;return{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:r,declarationMapPath:r&&nn.getAreDeclarationMapsEnabled(e)?r+".map":void 0,buildInfoPath:d(e)}}function p(e,t,r){var n=t.getCompilerOptions();if(306===e.kind)return T(n,r);var i=nn.getOwnEmitOutputFilePath(e.fileName,t,c(e.fileName,n)),a=nn.isJsonSourceFile(e),o=a&&0===nn.comparePaths(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),o=n.emitDeclarationOnly||o?void 0:i,i=!o||nn.isJsonSourceFile(e)?void 0:s(o,n),t=r||nn.getEmitDeclarations(n)&&!a?nn.getDeclarationEmitOutputFilePath(e.fileName,t):void 0;return{jsFilePath:o,sourceMapFilePath:i,declarationFilePath:t,declarationMapPath:t&&nn.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){return nn.fileExtensionIs(e,".json")?".json":1===t.jsx&&nn.fileExtensionIsOneOf(e,[".jsx",".tsx"])?".jsx":nn.fileExtensionIsOneOf(e,[".mts",".mjs"])?".mjs":nn.fileExtensionIsOneOf(e,[".cts",".cjs"])?".cjs":".js"}function a(e,t,r,n,i){return n?nn.resolvePath(n,nn.getRelativePathFromDirectory(i?i():m(t,r),e,r)):e}function l(e,t,r,n){return nn.changeExtension(a(e,t,r,t.options.declarationDir||t.options.outDir,n),nn.getDeclarationEmitExtensionForPath(e))}function u(e,t,r,n){if(!t.options.emitDeclarationOnly){var i=nn.fileExtensionIs(e,".json"),n=nn.changeExtension(a(e,t,r,t.options.outDir,n),c(e,t.options));return i&&0===nn.comparePaths(e,n,nn.Debug.checkDefined(t.options.configFilePath),r)?void 0:n}}function _(){var t;return{addOutput:function(e){e&&(t=t||[]).push(e)},getOutputs:function(){return t||nn.emptyArray}}}function f(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 g(e,t,r,n,i){var a;nn.isDeclarationFileName(t)||(n(a=u(t,e,r,i)),nn.fileExtensionIs(t,".json")||(a&&e.options.sourceMap&&n("".concat(a,".map")),nn.getEmitDeclarations(e.options)&&(n(i=l(t,e,r,i)),e.options.declarationMap&&n("".concat(i,".map")))))}function i(e,t,r,n,i){var a;return e.rootDir?(a=nn.getNormalizedAbsolutePath(e.rootDir,r),null!=i&&i(e.rootDir)):e.composite&&e.configFilePath?(a=nn.getDirectoryPath(nn.normalizeSlashes(e.configFilePath)),null!=i&&i(a)):a=nn.computeCommonSourceDirectoryOfFilenames(t(),r,n),a&&a[a.length-1]!==nn.directorySeparator&&(a+=nn.directorySeparator),a}function m(e,t){var r=e.options,n=e.fileNames;return i(r,function(){return nn.filter(n,function(e){return!(r.noEmitForJsFiles&&nn.fileExtensionIsOneOf(e,nn.supportedJSExtensionsFlat)||nn.isDeclarationFileName(e))})},nn.getDirectoryPath(nn.normalizeSlashes(nn.Debug.checkDefined(r.configFilePath))),nn.createGetCanonicalFileName(!t))}function C(c,_,l,e,u,t,d){var p,f,g=e.scriptTransformers,m=e.declarationTransformers,y=_.getCompilerOptions(),h=y.sourceMap||y.inlineSourceMap||nn.getAreDeclarationMapsEnabled(y)?[]:void 0,v=y.listEmittedFiles?[]:void 0,b=nn.createDiagnosticCollection(),x=nn.getNewLineCharacter(y,function(){return _.getNewLine()}),D=nn.createTextWriter(x),r=nn.performance.createTimer("printTime","beforePrint","afterPrint"),e=r.enter,r=r.exit,S=!1;return e(),n(_,function(e,t){var r,n=e.jsFilePath,i=e.sourceMapFilePath,a=e.declarationFilePath,o=e.declarationMapPath,e=e.buildInfoPath;e&&t&&nn.isBundle(t)&&(r=nn.getDirectoryPath(nn.getNormalizedAbsolutePath(e,_.getCurrentDirectory())),p={commonSourceDirectory:s(_.getCommonSourceDirectory()),sourceFiles:t.sourceFiles.map(function(e){return s(nn.getNormalizedAbsolutePath(e.fileName,_.getCurrentDirectory()))})});null!==nn.tracing&&void 0!==nn.tracing&&nn.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:n}),function(e,t,r,n){if(e&&!u&&t){if(t&&_.isEmitBlocked(t)||y.noEmit)return S=!0;e=nn.transformNodes(c,_,nn.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}),nn.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),null===nn.tracing||void 0===nn.tracing||nn.tracing.pop(),null===nn.tracing||void 0===nn.tracing||nn.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:a}),function(e,t,r,n){if(e){if(!t)return(u||y.emitDeclarationOnly)&&(S=!0);var i=nn.isSourceFile(e)?[e]:e.sourceFiles,i=d?i:nn.filter(i,nn.isSourceFileNotJson),e=nn.outFile(y)?[nn.factory.createBundle(i,nn.isSourceFile(e)?void 0:e.prepends)]:i;if(u&&!nn.getEmitDeclarations(y)&&i.forEach(T),i=nn.transformNodes(c,_,nn.factory,y,e,m,!1),nn.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||!!_.isEmitBlocked(t)||!!y.noEmit,S=S||n,n&&!d||(nn.Debug.assert(1===i.transformed.length,"Should only see one output from the decl transform"),C(t,r,i.transformed[0],e,{sourceMap:!d&&y.declarationMap,sourceRoot:y.sourceRoot,mapRoot:y.mapRoot,extendedDiagnostics:y.extendedDiagnostics}),d&&305===i.transformed[0].kind&&(r=i.transformed[0],f=r.exportedModulesFromDeclarationEmit)),i.dispose(),p&&(p.dts=e.bundleFileInfo)}}(t,a,o,s),null===nn.tracing||void 0===nn.tracing||nn.tracing.pop(),null===nn.tracing||void 0===nn.tracing||nn.tracing.push("emit","emitBuildInfo",{buildInfoPath:e}),function(e,t){if(t&&!l&&!S){var r=_.getProgramBuildInfo();if(_.isEmitBlocked(t))return S=!0;var n=nn.version;nn.writeFile(_,b,t,k({bundle:e,program:r,version:n}),!1)}}(p,e),null===nn.tracing||void 0===nn.tracing||nn.tracing.pop(),!S&&v&&(u||(n&&v.push(n),i&&v.push(i),e&&v.push(e)),a&&v.push(a),o&&v.push(o));function s(e){return nn.ensurePathIsNonModuleName(nn.getRelativePathFromDirectory(r,e,_.getCanonicalFileName))}},nn.getSourceFilesToEmit(_,l,d),d,t,!l),r(),{emitSkipped:S,diagnostics:b.getDiagnostics(),emittedFiles:v,sourceMaps:h,exportedModulesFromDeclarationEmit:f};function T(e){nn.isExportAssignment(e)?79===e.expression.kind&&c.collectLinkedAliases(e.expression,!0):nn.isExportSpecifier(e)?c.collectLinkedAliases(e.propertyName||e.name,!0):nn.forEachChild(e,T)}function C(e,t,r,n,i){var a,o,s,c=306===r.kind?r:void 0,l=305===r.kind?r:void 0,u=c?c.sourceFiles:[l];a=r,!(r=i).sourceMap&&!r.inlineSourceMap||305===a.kind&&nn.fileExtensionIs(a.fileName,".json")||(s=nn.createSourceMapGenerator(_,nn.getBaseFileName(nn.normalizeSlashes(e)),function(e){e=nn.normalizeSlashes(e.sourceRoot||"");return e&&nn.ensureTrailingDirectorySeparator(e)}(i),function(e,t,r){if(e.sourceRoot)return _.getCommonSourceDirectory();if(e.mapRoot){e=nn.normalizeSlashes(e.mapRoot);return r&&(e=nn.getDirectoryPath(nn.getSourceFilePathInNewDir(r.fileName,_,e))),0===nn.getRootLength(e)&&(e=nn.combinePaths(_.getCommonSourceDirectory(),e)),e}return nn.getDirectoryPath(nn.normalizePath(t))}(i,e,l),i)),c?n.writeBundle(c,D,s):n.writeFile(l,D,s),s?(h&&h.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()}),(l=function(e,t,r,n,i){if(e.inlineSourceMap){t=t.toString(),t=nn.base64encode(nn.sys,t);return"data:application/json;base64,".concat(t)}n=nn.getBaseFileName(nn.normalizeSlashes(nn.Debug.checkDefined(n)));if(e.mapRoot){e=nn.normalizeSlashes(e.mapRoot);return i&&(e=nn.getDirectoryPath(nn.getSourceFilePathInNewDir(i.fileName,_,e))),0===nn.getRootLength(e)?(e=nn.combinePaths(_.getCommonSourceDirectory(),e),encodeURI(nn.getRelativePathToDirectoryOrUrl(nn.getDirectoryPath(nn.normalizePath(r)),nn.combinePaths(e,n),_.getCurrentDirectory(),_.getCanonicalFileName,!0))):encodeURI(nn.combinePaths(e,n))}return encodeURI(n)}(i,s,e,t,l))&&(D.isAtStartOfLine()||D.rawWrite(x),o=D.getTextPos(),D.writeComment("//# ".concat("sourceMappingURL","=").concat(l))),t&&(s=s.toString(),nn.writeFile(_,b,t,s,!1,u))):D.writeLine(),nn.writeFile(_,b,e,D.getText(),!!y.emitBOM,u,{sourceMapUrlPos:o}),D.clear()}}function k(e){return JSON.stringify(e)}function E(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,v,fe,c,g,l,u,_,d,p,m,ge,y=e.hasGlobalName,h=e.onEmitNode,b=void 0===h?nn.noEmitNotification:h,x=e.isEmitNotificationEnabled,h=e.substituteNode,me=void 0===h?nn.noEmitSubstitution:h,D=e.onBeforeEmitNode,S=e.onAfterEmitNode,T=e.onBeforeEmitNodeArray,C=e.onAfterEmitNodeArray,k=e.onBeforeEmitToken,E=e.onAfterEmitToken,e=!!f.extendedDiagnostics,N=nn.getNewLineCharacter(f),A=nn.getEmitModuleKind(f),F=new nn.Map,ye=f.preserveSourceNewlines,he=function(e){fe.write(e)},ve=f.writeBundleFileInfo?{sections:[]}:void 0,P=ve?nn.Debug.checkDefined(f.relativeToBuildInfo):void 0,w=f.recordInternalSection,I=0,O="text",M=!0,L=-1,R=-1,B=-1,j=-1,J=-1,z=!1,be=!!f.removeComments,e=nn.performance.createTimerIf(e,"commentTime","beforeComment","afterComment"),K=e.enter,U=e.exit,xe=nn.factory.parenthesizer,V={select:function(e){return 0===e?xe.parenthesizeLeadingTypeArgument:void 0}},De=nn.createBinaryExpressionTrampoline(function(e,t){{var r,n;t?(t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=ye,t.containerPosStack[t.stackIndex]=B,t.containerEndStack[t.stackIndex]=j,t.declarationListContainerEndStack[t.stackIndex]=J,r=t.shouldEmitCommentsStack[t.stackIndex]=_e(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=de(e),null!=D&&D(e),r&&Nr(e),n&&Xr(e),le(e)):t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]}}return t},function(e,t,r){return q(e,r,"left")},function(e,t,r){var n=27!==e.kind,i=lr(r,r.left,e),r=lr(r,e,r.right);er(i,n),Jr(e.pos),Xt(e,101===e.kind?jt:Jt),Kr(e.end,!0),er(r,!0)},function(e,t,r){return q(e,r,"right")},function(e,t){var r=lr(e,e.left,e.operatorToken),n=lr(e,e.operatorToken,e.right);{var i,a,o,s;tr(r,n),0<t.stackIndex&&(i=t.preserveSourceNewlinesStack[t.stackIndex],a=t.containerPosStack[t.stackIndex],o=t.containerEndStack[t.stackIndex],s=t.declarationListContainerEndStack[t.stackIndex],r=t.shouldEmitCommentsStack[t.stackIndex],n=t.shouldEmitSourceMapsStack[t.stackIndex],ue(i),n&&Yr(e),r&&Ar(e,a,o,s),null!=S&&S(e),t.stackIndex--)}},void 0);function q(e,t,r){r="left"===r?xe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):xe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind),t=Ae(0,1,e);if(t===Oe&&(nn.Debug.assertIsDefined(m),t=Fe(1,1,e=r(nn.cast(m,nn.isExpression))),m=void 0),(t===Er||t===Qr||t===we)&&nn.isBinaryExpression(e))return e;ge=r,t(1,e)}return oe(),{printNode:function(e,t,r){switch(e){case 0:nn.Debug.assert(nn.isSourceFile(t),"Expected a SourceFile node.");break;case 2:nn.Debug.assert(nn.isIdentifier(t),"Expected an Identifier node.");break;case 1:nn.Debug.assert(nn.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 305:return H(t);case 306:return W(t);case 307:return function(e){return function(e,t){var r=fe;ae(t,void 0),ne(4,e,void 0),oe(),fe=r}(e,te()),re()}(t)}return G(e,t,r,te()),re()},printList:function(e,t,r){return Q(e,t,r,te()),re()},printFile:H,printBundle:W,writeNode:G,writeList:Q,writeFile:ee,writeBundle:$,bundleFileInfo:ve};function W(e){return $(e,te(),void 0),re()}function H(e){return ee(e,te(),void 0),re()}function G(e,t,r,n){var i=fe;ae(n,void 0),ne(e,t,r),oe(),fe=i}function Q(e,t,r,n){var i=fe;ae(n,void 0),r&&ie(r),wt(void 0,t,e),oe(),fe=i}function Se(){return fe.getTextPosWithWriteLine?fe.getTextPosWithWriteLine():fe.getTextPos()}function Te(e,t,r){var n=nn.lastOrUndefined(ve.sections);n&&n.kind===r?n.end=t:ve.sections.push({pos:e,end:t,kind:r})}function X(e){if(w&&ve&&pe&&(nn.isDeclaration(e)||nn.isVariableStatement(e))&&nn.isInternalDeclaration(e,pe)&&"internal"!==O){e=O;return Z(fe.getTextPos()),I=Se(),O="internal",e}}function Y(e){e&&(Z(fe.getTextPos()),I=Se(),O=e)}function Z(e){return I<e&&(Te(I,e,O),1)}function $(e,t,r){g=!1;var n=fe;ae(t,r),ht(e),yt(e),Me(e),function(e){ft(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(var t=0,r=e.prepends;t<r.length;t++){var n=r[t];if(nn.isUnparsedSource(n)&&n.syntheticReferences)for(var i=0,a=n.syntheticReferences;i<a.length;i++)Ce(a[i]),Wt()}}(e);for(var i=0,a=e.prepends;i<a.length;i++){var o=a[i];Wt();var s,c=fe.getTextPos(),l=ve&&ve.sections;l&&(ve.sections=[]),ne(4,o,void 0),ve&&(s=ve.sections,ve.sections=l,o.oldFileOfCurrentEmit?(l=ve.sections).push.apply(l,s):(s.forEach(function(e){return nn.Debug.assert(nn.isBundleFileTextLike(e))}),ve.sections.push({pos:c,end:fe.getTextPos(),kind:"prepend",data:P(o.fileName),texts:s})))}I=Se();for(var u=0,_=e.sourceFiles;u<_.length;u++){var d=_[u];ne(0,d,d)}ve&&e.sourceFiles.length&&Z(fe.getTextPos())&&((r=function(e){for(var t,r=new nn.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 l=c[s];if(!nn.isPrologueDirective(l))break;r.has(l.expression.text)||(r.add(l.expression.text),(a=a||[]).push({pos:l.pos,end:l.end,expression:{pos:l.expression.pos,end:l.expression.end,text:l.expression.text}}),o=o<l.end?l.end:o)}a&&(t=t||[]).push({file:n,text:i.text.substring(0,o),directives:a})}return t}(e))&&(ve.sources||(ve.sources={}),ve.sources.prologues=r),(e=function(e){var t;if(A===nn.ModuleKind.None||f.noEmitHelpers)return;for(var r=new nn.Map,n=0,i=e.sourceFiles;n<i.length;n++){var a=i[n],o=void 0!==nn.getExternalHelpersModuleName(a),a=Le(a);if(a)for(var s=0,c=a;s<c.length;s++){var l=c[s];l.scoped||o||r.get(l.name)||(r.set(l.name,!0),(t=t||[]).push(l.name))}}return t}(e))&&(ve.sources||(ve.sources={}),ve.sources.helpers=e)),oe(),fe=n}function ee(e,t,r){g=!0;var n=fe;ae(t,r),ht(e),yt(e),ne(0,e,e),oe(),fe=n}function te(){return c=c||nn.createTextWriter(N)}function re(){var e=c.getText();return c.clear(),e}function ne(e,t,r){r&&ie(r),Ne(e,t,void 0)}function ie(e){p=d=void 0,(pe=e)&&tn(e)}function ae(e,t){e&&f.omitTrailingSemicolon&&(e=nn.getTrailingSemicolonDeferringWriter(e)),l=t,M=!(fe=e)||!l}function oe(){n=[],r=[],o=new nn.Set,t=[],a=[],ae(p=d=pe=void(i=0),void 0)}function se(){return d=d||nn.getLineStarts(nn.Debug.checkDefined(pe))}function Ce(e,t){var r;void 0!==e&&(r=X(e),Ne(4,e,t),Y(r))}function ce(e){void 0!==e&&Ne(2,e,void 0)}function ke(e,t){void 0!==e&&Ne(1,e,t)}function Ee(e){Ne(nn.isStringLiteral(e)?6:4,e)}function le(e){ye&&134217728&nn.getEmitFlags(e)&&(ye=!1)}function ue(e){ye=e}function Ne(e,t,r){ge=r,Ae(0,e,t)(e,t),ge=void 0}function _e(e){return!be&&!nn.isSourceFile(e)}function de(e){return!(M||nn.isSourceFile(e)||nn.isInJsonFile(e)||nn.isUnparsedSource(e)||nn.isUnparsedPrepend(e))}function Ae(e,t,r){switch(e){case 0:if(b!==nn.noEmitNotification&&(!x||x(r)))return Pe;case 1:if(me!==nn.noEmitSubstitution&&(m=me(t,r)||r)!==r)return ge&&(m=ge(m)),Oe;case 2:if(_e(r))return Er;case 3:if(de(r))return Qr;case 4:return we;default:return nn.Debug.assertNever(e)}}function Fe(e,t,r){return Ae(e+1,t,r)}function Pe(e,t){var r=Fe(0,e,t);b(e,t,r)}function we(e,t){var r;null!=D&&D(t),ye?(r=ye,le(t),Ie(e,t),ue(r)):Ie(e,t),null!=S&&S(t),ge=void 0}function Ie(e,t,r){if(void 0===r&&(r=!0),r){r=nn.getSnippetElement(t);if(r)return function(e,r,n){switch(n.kind){case 1:!function(e,t){qt("${".concat(n.order,":")),Ie(e,t,!1),qt("}")}(e,r);break;case 0:!function(e,t){nn.Debug.assert(236===r.kind,"A tab stop cannot be attached to a node of kind ".concat(nn.Debug.formatSyntaxKind(r.kind),".")),nn.Debug.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),qt("$".concat(t.order))}(e,n)}}(e,t,r),0}if(0===e)return pt(nn.cast(t,nn.isSourceFile)),0;if(2===e)return je(nn.cast(t,nn.isIdentifier)),0;if(6===e)return Re(nn.cast(t,nn.isStringLiteral),!0),0;if(3===e)return Ce((n=nn.cast(t,nn.isTypeParameterDeclaration)).name),Ut(),jt("in"),Ut(),Ce(n.constraint),0;var n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x,D,S,T,C,k,E,N,A,F,P,w,I,O,M,L,R,B,j,J,z,K,U,V,q,W,H,G,Q,X,Y,Z,$,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,_e,de;if(5===e)return nn.Debug.assertNode(t,nn.isEmptyStatement),Ve(!0),0;if(4===e){switch(t.kind){case 15:case 16:case 17:return Re(t,!1),0;case 79:return je(t),0;case 80:return Je(t),0;case 161:return function(e){(79===e.kind?ke:Ce)(e)}((Q=t).left),Rt("."),Ce(Q.right),0;case 162:return G=t,Rt("["),ke(G.expression,xe.parenthesizeExpressionOfComputedPropertyName),Rt("]"),0;case 163:return function(e){bt(e,e.modifiers),Ce(e.name),e.constraint&&(Ut(),jt("extends"),Ut(),Ce(e.constraint));e.default&&(Ut(),Jt("="),Ut(),Ce(e.default))}(t),0;case 164:return function(e){kt(e,e.decorators),bt(e,e.modifiers),Ce(e.dotDotDotToken),vt(e.name,zt),Ce(e.questionToken),(e.parent&&317===e.parent.kind&&!e.name?Ce:xt)(e.type);Dt(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,xe.parenthesizeExpressionForDisallowedComma)}(t),0;case 165:return G=t,Rt("@"),ke(G.expression,xe.parenthesizeLeftSideOfAccess),0;case 166:return kt(H=t,H.decorators),bt(H,H.modifiers),vt(H.name,Vt),Ce(H.questionToken),xt(H.type),Bt(),0;case 167:return kt(H=t,H.decorators),bt(H,H.modifiers),Ce(H.name),Ce(H.questionToken),Ce(H.exclamationToken),xt(H.type),Dt(H.initializer,(H.type||H.questionToken||H.name).end,H),Bt(),0;case 168:return fr(W=t),kt(W,W.decorators),bt(W,W.modifiers),Ce(W.name),Ce(W.questionToken),Nt(W,W.typeParameters),At(W,W.parameters),xt(W.type),Bt(),gr(W),0;case 169:return kt(W=t,W.decorators),bt(W,W.modifiers),Ce(W.asteriskToken),Ce(W.name),Ce(W.questionToken),Ze(W,$e),0;case 170:return kt(q=t,q.decorators),bt(q,q.modifiers),jt("static"),et(q.body),0;case 171:return bt(q=t,q.modifiers),jt("constructor"),Ze(q,$e),0;case 172:case 173:return kt(V=t,V.decorators),bt(V,V.modifiers),jt(172===V.kind?"get":"set"),Ut(),Ce(V.name),Ze(V,$e),0;case 174:return fr(V=t),kt(V,V.decorators),bt(V,V.modifiers),Nt(V,V.typeParameters),At(V,V.parameters),xt(V.type),Bt(),gr(V),0;case 175:return fr(U=t),kt(U,U.decorators),bt(U,U.modifiers),jt("new"),Ut(),Nt(U,U.typeParameters),At(U,U.parameters),xt(U.type),Bt(),gr(U),0;case 176:return kt(K=t,K.decorators),bt(K,K.modifiers),function(e){wt(K,e,8848)}(K.parameters),xt(K.type),Bt(),0;case 177:return function(e){e.assertsModifier&&(Ce(e.assertsModifier),Ut());Ce(e.parameterName),e.type&&(Ut(),jt("is"),Ut(),Ce(e.type))}(t),0;case 178:return Ce((U=t).typeName),Et(U,U.typeArguments),0;case 179:return fr(z=t),Nt(z,z.typeParameters),Ft(z,z.parameters),Ut(),Rt("=>"),Ut(),Ce(z.type),gr(z),0;case 180:return fr(z=t),bt(z,z.modifiers),jt("new"),Ut(),Nt(z,z.typeParameters),At(z,z.parameters),Ut(),Rt("=>"),Ut(),Ce(z.type),gr(z),0;case 181:return J=t,jt("typeof"),Ut(),Ce(J.exprName),Et(J,J.typeArguments),0;case 182:return function(e){Rt("{");var t=1&nn.getEmitFlags(e)?768:32897;wt(e,e.members,524288|t),Rt("}")}(t),0;case 183:return Ce(t.elementType,xe.parenthesizeNonArrayTypeOfPostfixType),Rt("["),Rt("]"),0;case 184:return function(e){He(22,e.pos,Rt,e);var t=1&nn.getEmitFlags(e)?528:657;wt(e,e.elements,524288|t,xe.parenthesizeElementTypeOfTupleType),He(23,e.elements.end,Rt,e)}(t),0;case 185:return Ce(t.type,xe.parenthesizeTypeOfOptionalType),Rt("?"),0;case 187:return wt(J=t,J.types,516,xe.parenthesizeConstituentTypeOfUnionType),0;case 188:return wt(j=t,j.types,520,xe.parenthesizeConstituentTypeOfIntersectionType),0;case 189:return Ce((j=t).checkType,xe.parenthesizeCheckTypeOfConditionalType),Ut(),jt("extends"),Ut(),Ce(j.extendsType,xe.parenthesizeExtendsTypeOfConditionalType),Ut(),Rt("?"),Ut(),Ce(j.trueType),Ut(),Rt(":"),Ut(),Ce(j.falseType),0;case 190:return B=t,jt("infer"),Ut(),Ce(B.typeParameter),0;case 191:return B=t,Rt("("),Ce(B.type),Rt(")"),0;case 228:return Ke(t),0;case 192:return jt("this"),0;case 193:return function(e){Yt(e.operator,jt),Ut();var t=145===e.operator?xe.parenthesizeOperandOfReadonlyTypeOperator:xe.parenthesizeOperandOfTypeOperator;Ce(e.type,t)}(t),0;case 194:return Ce((R=t).objectType,xe.parenthesizeNonArrayTypeOfPostfixType),Rt("["),Ce(R.indexType),Rt("]"),0;case 195:return function(e){var t=nn.getEmitFlags(e);Rt("{"),1&t?Ut():(Wt(),Ht());e.readonlyToken&&(Ce(e.readonlyToken),145!==e.readonlyToken.kind&&jt("readonly"),Ut());Rt("["),Ne(3,e.typeParameter),e.nameType&&(Ut(),jt("as"),Ut(),Ce(e.nameType));Rt("]"),e.questionToken&&(Ce(e.questionToken),57!==e.questionToken.kind&&Rt("?"));Rt(":"),Ut(),Ce(e.type),Bt(),1&t?Ut():(Wt(),Gt());wt(e,e.members,2),Rt("}")}(t),0;case 196:return ke(t.literal),0;case 197:return Ce((R=t).dotDotDotToken),Ce(R.name),Ce(R.questionToken),He(58,R.name.end,Rt,R),Ut(),Ce(R.type),0;case 198:return Ce((L=t).head),wt(L,L.templateSpans,262144),0;case 199:return Ce((L=t).type),Ce(L.literal),0;case 200:return function(e){e.isTypeOf&&(jt("typeof"),Ut());{var t;jt("import"),Rt("("),Ce(e.argument),e.assertions&&(Rt(","),Ut(),Rt("{"),Ut(),jt("assert"),Rt(":"),Ut(),t=e.assertions.assertClause.elements,wt(e.assertions.assertClause,t,526226),Ut(),Rt("}"))}Rt(")"),e.qualifier&&(Rt("."),Ce(e.qualifier));Et(e,e.typeArguments)}(t),0;case 201:return M=t,Rt("{"),wt(M,M.elements,525136),Rt("}"),0;case 202:return M=t,Rt("["),wt(M,M.elements,524880),Rt("]"),0;case 203:return function(e){Ce(e.dotDotDotToken),e.propertyName&&(Ce(e.propertyName),Rt(":"),Ut());Ce(e.name),Dt(e.initializer,e.name.end,e,xe.parenthesizeExpressionForDisallowedComma)}(t),0;case 233:return ke((O=t).expression),Ce(O.literal),0;case 234:return Bt(),0;case 235:return Ue(O=t,!O.multiLine&&ur(O)),0;case 237:return bt(I=t,I.modifiers),Ce(I.declarationList),Bt(),0;case 236:return Ve(!1),0;case 238:return ke((w=t).expression,xe.parenthesizeExpressionOfExpressionStatement),pe&&nn.isJsonSourceFile(pe)&&!nn.nodeIsSynthesized(w.expression)||Bt(),0;case 239:return w=He(99,(I=t).pos,jt,I),Ut(),He(20,w,Rt,I),ke(I.expression),He(21,I.expression.end,Rt,I),Ct(I,I.thenStatement),I.elseStatement&&(Zt(I,I.thenStatement,I.elseStatement),He(91,I.thenStatement.end,jt,I),239===I.elseStatement.kind?(Ut(),Ce(I.elseStatement)):Ct(I,I.elseStatement)),0;case 240:return function(e){He(90,e.pos,jt,e),Ct(e,e.statement),nn.isBlock(e.statement)&&!ye?Ut():Zt(e,e.statement,e.expression);qe(e,e.statement.end),Bt()}(t),0;case 241:return qe(P=t,P.pos),Ct(P,P.statement),0;case 242:return function(e){var t=He(97,e.pos,jt,e);Ut();t=He(20,t,Rt,e);We(e.initializer),t=He(26,e.initializer?e.initializer.end:t,Rt,e),Tt(e.condition),t=He(26,e.condition?e.condition.end:t,Rt,e),Tt(e.incrementor),He(21,e.incrementor?e.incrementor.end:t,Rt,e),Ct(e,e.statement)}(t),0;case 243:return P=He(97,(F=t).pos,jt,F),Ut(),He(20,P,Rt,F),We(F.initializer),Ut(),He(101,F.initializer.end,jt,F),Ut(),ke(F.expression),He(21,F.expression.end,Rt,F),Ct(F,F.statement),0;case 244:return F=He(97,(A=t).pos,jt,A),Ut(),function(e){e&&(Ce(e),Ut())}(A.awaitModifier),He(20,F,Rt,A),We(A.initializer),Ut(),He(160,A.initializer.end,jt,A),Ut(),ke(A.expression),He(21,A.expression.end,Rt,A),Ct(A,A.statement),0;case 245:return He(86,(A=t).pos,jt,A),St(A.label),Bt(),0;case 246:return He(81,(N=t).pos,jt,N),St(N.label),Bt(),0;case 247:return He(105,(N=t).pos,jt,N),Tt(N.expression&&Qe(N.expression),Qe),Bt(),0;case 248:return E=He(116,(k=t).pos,jt,k),Ut(),He(20,E,Rt,k),ke(k.expression),He(21,k.expression.end,Rt,k),Ct(k,k.statement),0;case 249:return k=He(107,(E=t).pos,jt,E),Ut(),He(20,k,Rt,E),ke(E.expression),He(21,E.expression.end,Rt,E),Ut(),Ce(E.caseBlock),0;case 250:return Ce((C=t).label),He(58,C.label.end,Rt,C),Ut(),Ce(C.statement),0;case 251:return He(109,(T=t).pos,jt,T),Tt(Qe(T.expression),Qe),Bt(),0;case 252:return function(e){He(111,e.pos,jt,e),Ut(),Ce(e.tryBlock),e.catchClause&&(Zt(e,e.tryBlock,e.catchClause),Ce(e.catchClause));e.finallyBlock&&(Zt(e,e.catchClause||e.tryBlock,e.finallyBlock),He(96,(e.catchClause||e.tryBlock).end,jt,e),Ut(),Ce(e.finallyBlock))}(t),0;case 253:return Qt(87,t.pos,jt),Bt(),0;case 254:return Ce((C=t).name),Ce(C.exclamationToken),xt(C.type),Dt(C.initializer,null!==(S=null!==(T=null===(T=C.type)||void 0===T?void 0:T.end)&&void 0!==T?T:null===(S=null===(S=C.name.emitNode)||void 0===S?void 0:S.typeNode)||void 0===S?void 0:S.end)&&void 0!==S?S:C.name.end,C,xe.parenthesizeExpressionForDisallowedComma),0;case 255:return D=t,jt(nn.isLet(D)?"let":nn.isVarConst(D)?"const":"var"),Ut(),wt(D,D.declarations,528),0;case 256:return Ye(t),0;case 257:return nt(t),0;case 258:return kt(D=t,D.decorators),bt(D,D.modifiers),jt("interface"),Ut(),Ce(D.name),Nt(D,D.typeParameters),wt(D,D.heritageClauses,512),Ut(),Rt("{"),wt(D,D.members,129),Rt("}"),0;case 259:return kt(x=t,x.decorators),bt(x,x.modifiers),jt("type"),Ut(),Ce(x.name),Nt(x,x.typeParameters),Ut(),Rt("="),Ut(),Ce(x.type),Bt(),0;case 260:return bt(x=t,x.modifiers),jt("enum"),Ut(),Ce(x.name),Ut(),Rt("{"),wt(x,x.members,145),Rt("}"),0;case 261:return function(e){bt(e,e.modifiers),1024&~e.flags&&(jt(16&e.flags?"namespace":"module"),Ut());Ce(e.name);var t=e.body;if(!t)return Bt();for(;t&&nn.isModuleDeclaration(t);)Rt("."),Ce(t.name),t=t.body;Ut(),Ce(t)}(t),0;case 262:return fr(b=t),nn.forEach(b.statements,yr),Ue(b,ur(b)),gr(b),0;case 263:return He(18,(v=t).pos,Rt,v),wt(v,v.clauses,129),He(19,v.clauses.end,Rt,v,!0),0;case 264:return v=He(93,(b=t).pos,jt,b),Ut(),v=He(127,v,jt,b),Ut(),v=He(142,v,jt,b),Ut(),Ce(b.name),Bt(),0;case 265:return function(e){bt(e,e.modifiers),He(100,e.modifiers?e.modifiers.end:e.pos,jt,e),Ut(),e.isTypeOnly&&(He(152,e.pos,jt,e),Ut());Ce(e.name),Ut(),He(63,e.name.end,Rt,e),Ut(),function(e){(79===e.kind?ke:Ce)(e)}(e.moduleReference),Bt()}(t),0;case 266:return function(e){bt(e,e.modifiers),He(100,e.modifiers?e.modifiers.end:e.pos,jt,e),Ut(),e.importClause&&(Ce(e.importClause),Ut(),He(156,e.importClause.end,jt,e),Ut());ke(e.moduleSpecifier),e.assertClause&&St(e.assertClause);Bt()}(t),0;case 267:return function(e){e.isTypeOnly&&(He(152,e.pos,jt,e),Ut());Ce(e.name),e.name&&e.namedBindings&&(He(27,e.name.end,Rt,e),Ut());Ce(e.namedBindings)}(t),0;case 268:return h=He(41,(y=t).pos,Rt,y),Ut(),He(127,h,jt,y),Ut(),Ce(y.name),0;case 274:return y=He(41,(h=t).pos,Rt,h),Ut(),He(127,y,jt,h),Ut(),Ce(h.name),0;case 269:return it(t),0;case 270:return at(t),0;case 271:return function(e){var t=He(93,e.pos,jt,e);Ut(),e.isExportEquals?He(63,t,Jt,e):He(88,t,jt,e);Ut(),ke(e.expression,e.isExportEquals?xe.getParenthesizeRightSideOfBinaryForOperator(63):xe.parenthesizeExpressionOfExportDefault),Bt()}(t),0;case 272:return function(e){var t=He(93,e.pos,jt,e);Ut(),e.isTypeOnly&&(t=He(152,t,jt,e),Ut());e.exportClause?Ce(e.exportClause):t=He(41,t,Rt,e);e.moduleSpecifier&&(Ut(),He(156,e.exportClause?e.exportClause.end:t,jt,e),Ut(),ke(e.moduleSpecifier));e.assertClause&&St(e.assertClause);Bt()}(t),0;case 273:return it(t),0;case 275:return at(t),0;case 293:return function(e){He(129,e.pos,jt,e),Ut();var t=e.elements;wt(e,t,526226)}(t),0;case 294:return function(e){Ce(e.name),Rt(":"),Ut();e=e.value;0==(512&nn.getEmitFlags(e))&&Kr(nn.getCommentRange(e).pos);Ce(e)}(t),0;case 276:return;case 277:return m=t,jt("require"),Rt("("),ke(m.expression),Rt(")"),0;case 11:return m=t,fe.writeLiteral(m.text),0;case 280:case 283:return function(e){{var t;Rt("<"),nn.isJsxOpeningElement(e)&&(t=or(e.tagName,e),ot(e.tagName),Et(e,e.typeArguments),e.attributes.properties&&0<e.attributes.properties.length&&Ut(),Ce(e.attributes),sr(e.attributes,e),tr(t))}Rt(">")}(t),0;case 281:case 284:return function(e){Rt("</"),nn.isJsxClosingElement(e)&&ot(e.tagName);Rt(">")}(t),0;case 285:return Ce((g=t).name),function(e,t,r,n){r&&(t(e),n(r))}("=",Rt,g.initializer,Ee),0;case 286:return wt(g=t,g.properties,262656),0;case 287:return f=t,Rt("{..."),ke(f.expression),Rt("}"),0;case 288:return function(e){var t;{var r,n;(e.expression||!be&&!nn.nodeIsSynthesized(e)&&function(e){return function(e){var t=!1;return nn.forEachTrailingCommentRange((null==pe?void 0:pe.text)||"",e+1,function(){return t=!0}),t}(e)||function(e){var t=!1;return nn.forEachLeadingCommentRange((null==pe?void 0:pe.text)||"",e+1,function(){return t=!0}),t}(e)}(e.pos))&&((r=pe&&!nn.nodeIsSynthesized(e)&&nn.getLineAndCharacterOfPosition(pe,e.pos).line!==nn.getLineAndCharacterOfPosition(pe,e.end).line)&&fe.increaseIndent(),n=He(18,e.pos,Rt,e),Ce(e.dotDotDotToken),ke(e.expression),He(19,(null===(t=e.expression)||void 0===t?void 0:t.end)||n,Rt,e),r&&fe.decreaseIndent())}}(t),0;case 289:return He(82,(p=t).pos,jt,p),Ut(),ke(p.expression,xe.parenthesizeExpressionForDisallowedComma),st(p,p.statements,p.expression.end),0;case 290:return p=He(88,(f=t).pos,jt,f),st(f,f.statements,p),0;case 291:return d=t,Ut(),Yt(d.token,jt),Ut(),wt(d,d.types,528),0;case 292:return function(e){var t=He(83,e.pos,jt,e);Ut(),e.variableDeclaration&&(He(20,t,Rt,e),Ce(e.variableDeclaration),He(21,e.variableDeclaration.end,Rt,e),Ut());Ce(e.block)}(t),0;case 296:return function(e){Ce(e.name),Rt(":"),Ut();e=e.initializer;0==(512&nn.getEmitFlags(e))&&Kr(nn.getCommentRange(e).pos);ke(e,xe.parenthesizeExpressionForDisallowedComma)}(t),0;case 297:return Ce((d=t).name),d.objectAssignmentInitializer&&(Ut(),Rt("="),Ut(),ke(d.objectAssignmentInitializer,xe.parenthesizeExpressionForDisallowedComma)),0;case 298:return(_=t).expression&&(He(25,_.pos,Rt,_),ke(_.expression,xe.parenthesizeExpressionForDisallowedComma)),0;case 299:return Ce((_=t).name),Dt(_.initializer,_.name.end,_,xe.parenthesizeExpressionForDisallowedComma),0;case 300:return Be(t),0;case 307:case 301:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Wt(),Ce(n)}}(t),0;case 302:case 303:return l=t,u=Se(),Be(l),ve&&Te(u,fe.getTextPos(),302===l.kind?"text":"internal"),0;case 304:return u=t,l=Se(),Be(u),ve&&((u=nn.clone(u.section)).pos=l,u.end=fe.getTextPos(),ve.sections.push(u)),0;case 305:return pt(t),0;case 306:return nn.Debug.fail("Bundles should be printed using printBundle");case 308:return nn.Debug.fail("InputFiles should not be printed");case 309:return dt(t),0;case 310:return c=t,Ut(),Rt("{"),Ce(c.name),Rt("}"),0;case 312:return Rt("*"),0;case 313:return Rt("?"),0;case 314:return c=t,Rt("?"),Ce(c.type),0;case 315:return s=t,Rt("!"),Ce(s.type),0;case 316:return Ce(t.type),Rt("="),0;case 317:return s=t,jt("function"),At(s,s.parameters),Rt(":"),Ce(s.type),0;case 186:case 318:return o=t,Rt("..."),Ce(o.type),0;case 319:return;case 320:return function(e){if(he("/**"),e.comment){var t=nn.getTextOfJSDocComment(e.comment);if(t)for(var t=t.split(/\r\n?|\n/g),r=0,n=t;r<n.length;r++){var i=n[r];Wt(),Ut(),Rt("*"),Ut(),he(i)}}e.tags&&(1!==e.tags.length||343!==e.tags[0].kind||e.comment?wt(e,e.tags,33):(Ut(),Ce(e.tags[0])));Ut(),he("*/")}(t),0;case 322:return ct(t),0;case 323:return lt(t),0;case 327:case 332:case 337:return ut((o=t).tagName),_t(o.comment),0;case 328:case 329:return ut((a=t).tagName),Ut(),Rt("{"),Ce(a.class),Rt("}"),_t(a.comment),0;case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return function(e){ut(e.tagName),e.name&&(Ut(),Ce(e.name));_t(e.comment),lt(e.typeExpression)}(t),0;case 340:case 347:return function(e){ut(e.tagName),dt(e.typeExpression),Ut(),e.isBracketed&&Rt("[");Ce(e.name),e.isBracketed&&Rt("]");_t(e.comment)}(t),0;case 339:case 341:case 342:case 343:return ut((a=t).tagName),dt(a.typeExpression),_t(a.comment),0;case 344:return ut((i=t).tagName),dt(i.constraint),Ut(),wt(i,i.typeParameters,528),_t(i.comment),0;case 345:return function(e){ut(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?dt(e.typeExpression):(Ut(),Rt("{"),he("Object"),e.typeExpression.isArrayType&&(Rt("["),Rt("]")),Rt("}")));e.fullName&&(Ut(),Ce(e.fullName));_t(e.comment),e.typeExpression&&322===e.typeExpression.kind&&ct(e.typeExpression)}(t),0;case 346:return ut((i=t).tagName),Ce(i.name),_t(i.comment),0;case 349:case 353:case 352:return}nn.isExpression(t)&&(e=1,me===nn.noEmitSubstitution||(n=me(e,t)||t)!==t&&(t=n,ge&&(t=ge(t))))}if(1===e)switch(t.kind){case 8:case 9:return Re(t,!1),0;case 10:case 13:case 14:return Re(t,!1),0;case 79:return je(t),0;case 80:return Je(t),0;case 204:return _e=(ue=t).elements,de=ue.multiLine?65536:0,It(ue,_e,8914|de,xe.parenthesizeExpressionForDisallowedComma),0;case 205:return function(e){nn.forEach(e.properties,hr);var t=65536&nn.getEmitFlags(e);t&&Ht();var r=e.multiLine?65536:0,n=pe&&1<=pe.languageVersion&&!nn.isJsonSourceFile(pe)?64:0;wt(e,e.properties,526226|n|r),t&&Gt()}(t),0;case 206:return function(e){ke(e.expression,xe.parenthesizeLeftSideOfAccess);var t=e.questionDotToken||nn.setTextRangePosEnd(nn.factory.createToken(24),e.expression.end,e.name.pos),r=lr(e,e.expression,t),n=lr(e,t,e.name);er(r,!1),28===t.kind||!function(e){{if(e=nn.skipPartiallyEmittedExpressions(e),nn.isNumericLiteral(e)){var t=pr(e,!0,!1);return!e.numericLiteralFlags&&!nn.stringContains(t,nn.tokenToString(24))}if(nn.isAccessExpression(e)){e=nn.getConstantValue(e);return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}}(e.expression)||fe.hasTrailingComment()||fe.hasTrailingWhitespace()||Rt(".");e.questionDotToken?Ce(t):He(t.kind,e.expression.end,Rt,e);er(n,!1),Ce(e.name),tr(r,n)}(t),0;case 207:return ke((le=t).expression,xe.parenthesizeLeftSideOfAccess),Ce(le.questionDotToken),He(22,le.expression.end,Rt,le),ke(le.argumentExpression),He(23,le.argumentExpression.end,Rt,le),0;case 208:return function(e){var t=536870912&nn.getEmitFlags(e);t&&(Rt("("),Mt("0"),Rt(","),Ut());ke(e.expression,xe.parenthesizeLeftSideOfAccess),t&&Rt(")");Ce(e.questionDotToken),Et(e,e.typeArguments),It(e,e.arguments,2576,xe.parenthesizeExpressionForDisallowedComma)}(t),0;case 209:return He(103,(ce=t).pos,jt,ce),Ut(),ke(ce.expression,xe.parenthesizeExpressionOfNew),Et(ce,ce.typeArguments),It(ce,ce.arguments,18960,xe.parenthesizeExpressionForDisallowedComma),0;case 210:return function(e){var t=536870912&nn.getEmitFlags(e);t&&(Rt("("),Mt("0"),Rt(","),Ut());ke(e.tag,xe.parenthesizeLeftSideOfAccess),t&&Rt(")");Et(e,e.typeArguments),Ut(),ke(e.template)}(t),0;case 211:return se=t,Rt("<"),Ce(se.type),Rt(">"),ke(se.expression,xe.parenthesizeOperandOfPrefixUnary),0;case 212:return ce=He(20,(le=t).pos,Rt,le),se=or(le.expression,le),ke(le.expression,void 0),sr(le.expression,le),tr(se),He(21,le.expression?le.expression.end:ce,Rt,le),0;case 213:return vr((oe=t).name),Ye(oe),0;case 214:return kt(oe=t,oe.decorators),bt(oe,oe.modifiers),Ze(oe,ze),0;case 215:return He(89,(ae=t).pos,jt,ae),Ut(),ke(ae.expression,xe.parenthesizeOperandOfPrefixUnary),0;case 216:return He(112,(ie=t).pos,jt,ie),Ut(),ke(ie.expression,xe.parenthesizeOperandOfPrefixUnary),0;case 217:return He(114,(ne=t).pos,jt,ne),Ut(),ke(ne.expression,xe.parenthesizeOperandOfPrefixUnary),0;case 218:return He(132,(re=t).pos,jt,re),Ut(),ke(re.expression,xe.parenthesizeOperandOfPrefixUnary),0;case 219:return function(e){Yt(e.operator,Jt),function(e){var t=e.operand;return 219===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Ut();ke(e.operand,xe.parenthesizeOperandOfPrefixUnary)}(t),0;case 220:return ke((te=t).operand,xe.parenthesizeOperandOfPostfixUnary),Yt(te.operator,Jt),0;case 221:return De(t);case 222:return ie=lr(ae=t,ae.condition,ae.questionToken),ne=lr(ae,ae.questionToken,ae.whenTrue),re=lr(ae,ae.whenTrue,ae.colonToken),te=lr(ae,ae.colonToken,ae.whenFalse),ke(ae.condition,xe.parenthesizeConditionOfConditionalExpression),er(ie,!0),Ce(ae.questionToken),er(ne,!0),ke(ae.whenTrue,xe.parenthesizeBranchOfConditionalExpression),tr(ie,ne),er(re,!0),Ce(ae.colonToken),er(te,!0),ke(ae.whenFalse,xe.parenthesizeBranchOfConditionalExpression),tr(re,te),0;case 223:return Ce((ee=t).head),wt(ee,ee.templateSpans,262144),0;case 224:return He(125,(ee=t).pos,jt,ee),Ce(ee.asteriskToken),Tt(ee.expression&&Qe(ee.expression),Xe),0;case 225:return He(25,($=t).pos,Rt,$),ke($.expression,xe.parenthesizeExpressionForDisallowedComma),0;case 226:return vr(($=t).name),nt($),0;case 227:return;case 229:return ke((Z=t).expression,void 0),Z.type&&(Ut(),jt("as"),Ut(),Ce(Z.type)),0;case 230:return ke(t.expression,xe.parenthesizeLeftSideOfAccess),Jt("!"),0;case 228:return Ke(t),0;case 231:return Qt((Z=t).keywordToken,Z.pos,Rt),Rt("."),Ce(Z.name),0;case 232:return nn.Debug.fail("SyntheticExpression should never be printed.");case 278:return Ce((Y=t).openingElement),wt(Y,Y.children,262144),Ce(Y.closingElement),0;case 279:return Y=t,Rt("<"),ot(Y.tagName),Et(Y,Y.typeArguments),Ut(),Ce(Y.attributes),Rt("/>"),0;case 282:return Ce((X=t).openingFragment),wt(X,X.children,262144),Ce(X.closingFragment),0;case 348:return nn.Debug.fail("SyntaxList should not be printed");case 349:return;case 350:return function(e){var t=nn.getEmitFlags(e);512&t||e.pos===e.expression.pos||Kr(e.expression.pos);ke(e.expression),1024&t||e.end===e.expression.end||Jr(e.expression.end)}(t),0;case 351:return It(X=t,X.elements,528,void 0),0;case 352:case 353:return;case 354:return nn.Debug.fail("SyntheticReferenceExpression should not be printed")}return nn.isKeyword(t.kind)?(Xt(t,jt),0):nn.isTokenKind(t.kind)?(Xt(t,Rt),0):void nn.Debug.fail("Unhandled SyntaxKind: ".concat(nn.Debug.formatSyntaxKind(t.kind),"."))}function Oe(e,t){var r=Fe(1,e,t);nn.Debug.assertIsDefined(m),t=m,m=void 0,r(e,t)}function Me(e){var t=!1,r=306===e.kind?e:void 0;if(!r||A!==nn.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=nn.isSourceFile(o)?o:nn.isUnparsedSource(o)?void 0:pe,c=f.noEmitHelpers||!!s&&nn.hasRecordedExternalHelpers(s),l=(nn.isSourceFile(o)||nn.isUnparsedSource(o))&&!g,o=nn.isUnparsedSource(o)?o.helpers:Le(o);if(o)for(var u=0,_=o;u<_.length;u++){var d=_[u];if(d.scoped){if(r)continue}else{if(c)continue;if(l){if(F.get(d.name))continue;F.set(d.name,!0)}}var p=Se();"string"==typeof d.text?$t(d.text):$t(d.text(kr)),ve&&ve.sections.push({pos:p,end:fe.getTextPos(),kind:"emitHelpers",data:d.name}),t=!0}}return t}}function Le(e){e=nn.getEmitHelpers(e);return e&&nn.stableSort(e,nn.compareEmitHelpers)}function Re(e,t){t=pr(e,f.neverAsciiEscape,t);!f.sourceMap&&!f.inlineSourceMap||10!==e.kind&&!nn.isTemplateLiteralKind(e.kind)?(e=t,fe.writeStringLiteral(e)):Mt(t)}function Be(e){fe.rawWrite(e.parent.text.substring(e.pos,e.end))}function je(e){(e.symbol?Lt:he)(dr(e,!1),e.symbol),wt(e,e.typeArguments,53776)}function Je(e){(e.symbol?Lt:he)(dr(e,!1),e.symbol)}function ze(e){Nt(e,e.typeParameters),Ft(e,e.parameters),xt(e.type),Ut(),Ce(e.equalsGreaterThanToken)}function Ke(e){ke(e.expression,xe.parenthesizeLeftSideOfAccess),Et(e,e.typeArguments)}function Ue(e,t){He(18,e.pos,Rt,e);t=t||1&nn.getEmitFlags(e)?768:129;wt(e,e.statements,t),He(19,e.statements.end,Rt,e,!!(1&t))}function Ve(e){e?Rt(";"):Bt()}function qe(e,t){t=He(115,t,jt,e);Ut(),He(20,t,Rt,e),ke(e.expression),He(21,e.expression.end,Rt,e)}function We(e){void 0!==e&&(255===e.kind?Ce:ke)(e)}function He(e,t,r,n,i){var a=nn.getParseTreeNode(n),o=a&&a.kind===n.kind,a=t;return o&&pe&&(t=nn.skipTrivia(pe.text,t)),o&&n.pos!==a&&((i=i&&pe&&!nn.positionsAreOnSameLine(a,t,pe))&&Ht(),Jr(a),i&&Gt()),t=Yt(e,r,t),o&&n.end!==t&&Kr(t,!(n=288===n.kind),n),t}function Ge(e){return 2===e.kind||!!e.hasTrailingNewLine}function Qe(e){if(!be&&nn.isPartiallyEmittedExpression(e)&&function e(t){return!!pe&&(!!nn.some(nn.getLeadingCommentRanges(pe.text,t.pos),Ge)||!!nn.some(nn.getSyntheticLeadingComments(t),Ge)||!!nn.isPartiallyEmittedExpression(t)&&(!(t.pos===t.expression.pos||!nn.some(nn.getTrailingCommentRanges(pe.text,t.expression.pos),Ge))||e(t.expression)))}(e)){var t=nn.getParseTreeNode(e);if(t&&nn.isParenthesizedExpression(t)){var r=nn.factory.createParenthesizedExpression(e.expression);return nn.setOriginalNode(r,e),nn.setTextRange(r,t),r}return nn.factory.createParenthesizedExpression(e)}return e}function Xe(e){return Qe(xe.parenthesizeExpressionForDisallowedComma(e))}function Ye(e){kt(e,e.decorators),bt(e,e.modifiers),jt("function"),Ce(e.asteriskToken),Ut(),ce(e.name),Ze(e,$e)}function Ze(e,t){var r,n=e.body;n?nn.isBlock(n)?((r=65536&nn.getEmitFlags(e))&&Ht(),fr(e),nn.forEach(e.parameters,yr),yr(e.body),t(e),et(n),gr(e),r&&Gt()):(t(e),Ut(),ke(n,xe.parenthesizeConciseBodyOfArrowFunction)):(t(e),Bt())}function $e(e){Nt(e,e.typeParameters),At(e,e.parameters),xt(e.type)}function et(e){null!=D&&D(e),Ut(),Rt("{"),Ht();var t=function(e){if(1&nn.getEmitFlags(e))return 1;if(!e.multiLine&&(nn.nodeIsSynthesized(e)||!pe||nn.rangeIsOnSingleLine(e,pe))&&!rr(e,e.statements,2)&&!ir(e,e.statements,2)){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];if(0<nr(t,i,2))return;t=i}return 1}}(e)?tt:rt;Or(e,e.statements,t),Gt(),Qt(19,e.statements.end,Rt,e),null!=S&&S(e)}function tt(e){rt(e,!0)}function rt(e,t){var r=mt(e.statements),n=fe.getTextPos();Me(e),0===r&&n===fe.getTextPos()&&t?(Gt(),wt(e,e.statements,768),Ht()):wt(e,e.statements,1,void 0,r)}function nt(e){nn.forEach(e.members,hr),kt(e,e.decorators),bt(e,e.modifiers),jt("class"),e.name&&(Ut(),ce(e.name));var t=65536&nn.getEmitFlags(e);t&&Ht(),Nt(e,e.typeParameters),wt(e,e.heritageClauses,0),Ut(),Rt("{"),wt(e,e.members,129),Rt("}"),t&&Gt()}function it(e){Rt("{"),wt(e,e.elements,525136),Rt("}")}function at(e){e.isTypeOnly&&(jt("type"),Ut()),e.propertyName&&(Ce(e.propertyName),Ut(),He(127,e.propertyName.end,jt,e),Ut()),Ce(e.name)}function ot(e){(79===e.kind?ke:Ce)(e)}function st(e,t,r){var n=163969;1===t.length&&(!pe||nn.nodeIsSynthesized(e)||nn.nodeIsSynthesized(t[0])||nn.rangeStartPositionsAreOnSameLine(e,t[0],pe))?(Qt(58,r,Rt,e),Ut(),n&=-130):He(58,r,Rt,e),wt(e,t,n)}function ct(e){wt(e,nn.factory.createNodeArray(e.jsDocPropertyTags),33)}function lt(e){e.typeParameters&&wt(e,nn.factory.createNodeArray(e.typeParameters),33),e.parameters&&wt(e,nn.factory.createNodeArray(e.parameters),33),e.type&&(Wt(),Ut(),Rt("*"),Ut(),Ce(e.type))}function ut(e){Rt("@"),Ce(e)}function _t(e){e=nn.getTextOfJSDocComment(e);e&&(Ut(),he(e))}function dt(e){e&&(Ut(),Rt("{"),Ce(e.type),Rt("}"))}function pt(e){Wt();var t=e.statements;0===t.length||!nn.isPrologueDirective(t[0])||nn.nodeIsSynthesized(t[0])?Or(e,t,gt):gt(e)}function ft(e,t,r,n){if(e&&(u=fe.getTextPos(),Kt('/// <reference no-default-lib="true"/>'),ve&&ve.sections.push({pos:u,end:fe.getTextPos(),kind:"no-default-lib"}),Wt()),pe&&pe.moduleName&&(Kt('/// <amd-module name="'.concat(pe.moduleName,'" />')),Wt()),pe&&pe.amdDependencies)for(var i=0,a=pe.amdDependencies;i<a.length;i++){var o=a[i];o.name?Kt('/// <amd-dependency name="'.concat(o.name,'" path="').concat(o.path,'" />')):Kt('/// <amd-dependency path="'.concat(o.path,'" />')),Wt()}for(var s=0,c=t;s<c.length;s++){var l=c[s],u=fe.getTextPos();Kt('/// <reference path="'.concat(l.fileName,'" />')),ve&&ve.sections.push({pos:u,end:fe.getTextPos(),kind:"reference",data:l.fileName}),Wt()}for(var _=0,d=r;_<d.length;_++){var l=d[_],u=fe.getTextPos(),p=l.resolutionMode&&l.resolutionMode!==(null==pe?void 0:pe.impliedNodeFormat)?'resolution-mode="'.concat(l.resolutionMode===nn.ModuleKind.ESNext?"import":"require",'"'):"";Kt('/// <reference types="'.concat(l.fileName,'" ').concat(p,"/>")),ve&&ve.sections.push({pos:u,end:fe.getTextPos(),kind:l.resolutionMode?l.resolutionMode===nn.ModuleKind.ESNext?"type-import":"type-require":"type",data:l.fileName}),Wt()}for(var f=0,g=n;f<g.length;f++){l=g[f],u=fe.getTextPos();Kt('/// <reference lib="'.concat(l.fileName,'" />')),ve&&ve.sections.push({pos:u,end:fe.getTextPos(),kind:"lib",data:l.fileName}),Wt()}}function gt(e){var t=e.statements;fr(e),nn.forEach(e.statements,yr),Me(e);var r,n=nn.findIndex(t,function(e){return!nn.isPrologueDirective(e)});(r=e).isDeclarationFile&&ft(r.hasNoDefaultLib,r.referencedFiles,r.typeReferenceDirectives,r.libReferenceDirectives),wt(e,t,1,void 0,-1===n?t.length:n),gr(e)}function mt(e,t,r,n){for(var i=!!t,a=0;a<e.length;a++){var o,s=e[a];if(!nn.isPrologueDirective(s))return a;r&&r.has(s.expression.text)||(i&&(i=!1,ie(t)),Wt(),o=fe.getTextPos(),Ce(s),n&&ve&&ve.sections.push({pos:o,end:fe.getTextPos(),kind:"prologue",data:s.expression.text}),r&&r.add(s.expression.text))}return e.length}function yt(e){if(nn.isSourceFile(e))mt(e.statements,e);else{for(var t=new nn.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)||(Wt(),i=fe.getTextPos(),Ce(a),ve&&ve.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];mt(o.statements,o,t,!0)}ie(void 0)}}function ht(e){if(nn.isSourceFile(e)||nn.isUnparsedSource(e)){var t=nn.getShebang(e.text);return t?(Kt(t),Wt(),1):void 0}for(var r=0,n=e.prepends;r<n.length;r++){var i=n[r];if(nn.Debug.assertNode(i,nn.isUnparsedSource),ht(i))return 1}for(var a=0,o=e.sourceFiles;a<o.length;a++)if(ht(o[a]))return 1}function vt(e,t){var r;e&&(r=he,he=t,Ce(e),he=r)}function bt(e,t){t&&t.length&&(wt(e,t,262656),Ut())}function xt(e){e&&(Rt(":"),Ut(),Ce(e))}function Dt(e,t,r,n){e&&(Ut(),He(63,t,Jt,r),Ut(),ke(e,n))}function St(e){e&&(Ut(),Ce(e))}function Tt(e,t){e&&(Ut(),ke(e,t))}function Ct(e,t){nn.isBlock(t)||1&nn.getEmitFlags(e)?(Ut(),Ce(t)):(Wt(),Ht(),nn.isEmptyStatement(t)?Ne(5,t):Ce(t),Gt())}function kt(e,t){wt(e,t,2146305)}function Et(e,t){wt(e,t,53776,V)}function Nt(e,t){if(nn.isFunctionLike(e)&&e.typeArguments)return Et(e,e.typeArguments),0;wt(e,t,53776)}function At(e,t){wt(e,t,2576)}function Ft(e,t){var r,n;r=e,n=t,!(n=nn.singleOrUndefined(n))||n.pos!==r.pos||!nn.isArrowFunction(r)||r.type||nn.some(r.decorators)||nn.some(r.modifiers)||nn.some(r.typeParameters)||nn.some(n.decorators)||nn.some(n.modifiers)||n.dotDotDotToken||n.questionToken||n.type||n.initializer||!nn.isIdentifier(n.name)?At(e,t):wt(e,t,528)}function Pt(e){switch(60&e){case 0:break;case 16:Rt(",");break;case 4:Ut(),Rt("|");break;case 32:Ut(),Rt("*"),Ut();break;case 8:Ut(),Rt("&")}}function wt(e,t,r,n,i,a){Ot(Ce,e,t,r,n,i,a)}function It(e,t,r,n,i,a){Ot(ke,e,t,r,n,i,a)}function Ot(e,t,r,n,i,a,o){if(void 0===a&&(a=0),void 0===o&&(o=r?r.length-a:0),!(void 0===r&&16384&n)){var s=void 0===r||a>=r.length||0===o;if(s&&32768&n)return T&&T(r),void(C&&C(r));if(15360&n&&(Rt(an[15360&n][0]),s&&r&&Kr(r.pos,!0)),T&&T(r),s)!(1&n)||ye&&(!t||pe&&nn.rangeIsOnSingleLine(t,pe))?256&n&&!(524288&n)&&Ut():Wt();else{nn.Debug.type(r);var c=0==(262144&n),l=c,u=rr(t,r,n);u?(Wt(u),l=!1):256&n&&Ut(),128&n&&Ht();for(var _=(h=i,1===e.length?on:"object"==typeof h?sn:cn),d=void 0,p=void 0,f=!1,g=0;g<o;g++){var m,y=r[a+g];32&n?(Wt(),Pt(n)):d&&(60&n&&d.end!==(t?t.end:-1)&&Jr(d.end),Pt(n),Y(p),0<(m=nr(d,y,n))?(0==(131&n)&&(Ht(),f=!0),Wt(m),l=!1):d&&512&n&&Ut()),p=X(y),l?Kr(nn.getCommentRange(y).pos):l=c,v=y.pos,_(y,e,i,g),f&&(Gt(),f=!1),d=y}var u=d?nn.getEmitFlags(d):0,h=be||!!(1024&u),u=(null==r?void 0:r.hasTrailingComma)&&64&n&&16&n;u&&(d&&!h?He(27,d.end,Rt,d):Rt(",")),d&&(t?t.end:-1)!==d.end&&60&n&&!h&&Jr((u&&null!=r&&r.end?r:d).end),128&n&&Gt(),Y(p);u=ir(t,r,n);u?Wt(u):2097408&n&&Ut()}C&&C(r),15360&n&&(s&&r&&Jr(r.end),Rt(an[15360&n][1]))}}function Mt(e){fe.writeLiteral(e)}function Lt(e,t){fe.writeSymbol(e,t)}function Rt(e){fe.writePunctuation(e)}function Bt(){fe.writeTrailingSemicolon(";")}function jt(e){fe.writeKeyword(e)}function Jt(e){fe.writeOperator(e)}function zt(e){fe.writeParameter(e)}function Kt(e){fe.writeComment(e)}function Ut(){fe.writeSpace(" ")}function Vt(e){fe.writeProperty(e)}function qt(e){fe.nonEscapingWrite?fe.nonEscapingWrite(e):fe.write(e)}function Wt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)fe.writeLine(0<t)}function Ht(){fe.increaseIndent()}function Gt(){fe.decreaseIndent()}function Qt(e,t,r,n){return M?Yt(e,r,t):function(e,t,r,n,i){if(M||e&&nn.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||u;n=Zr(a,e?e.pos:n),0==(128&o)&&0<=n&&en(a,n);n=i(t,r,n),e&&(n=e.end);0==(256&o)&&0<=n&&en(a,n);return n}(n,e,r,t,Yt)}function Xt(e,t){k&&k(e),t(nn.tokenToString(e.kind)),E&&E(e)}function Yt(e,t,r){e=nn.tokenToString(e);return t(e),r<0?r:r+e.length}function Zt(e,t,r){1&nn.getEmitFlags(e)?Ut():ye?(r=lr(e,t,r))?Wt(r):Ut():Wt()}function $t(e){for(var e=e.split(/\r\n?|\n/g),t=nn.guessIndentation(e),r=0,n=e;r<n.length;r++){var i=n[r],i=t?i.slice(t):i;i.length&&(Wt(),he(i))}}function er(e,t){e?(Ht(),Wt(e)):t&&Ut()}function tr(e,t){e&&Gt(),t&&Gt()}function rr(t,e,r){if(2&r||ye){if(65536&r)return 1;var n=e[0];if(void 0===n)return!t||pe&&nn.rangeIsOnSingleLine(t,pe)?0:1;if(n.pos===v)return 0;if(11===n.kind)return 0;if(pe&&t&&!nn.positionIsSynthesized(t.pos)&&!nn.nodeIsSynthesized(n)&&(!n.parent||nn.getOriginalNode(n.parent)===nn.getOriginalNode(t)))return ye?ar(function(e){return nn.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(n.pos,t.pos,pe,e)}):nn.rangeStartPositionsAreOnSameLine(t,n,pe)?0:1;if(cr(n,r))return 1}return 1&r?1:0}function nr(t,r,e){if(2&e||ye){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(pe&&!nn.nodeIsSynthesized(t)&&!nn.nodeIsSynthesized(r))return ye&&function(e,t){if(t.pos<e.end)return!1;e=nn.getOriginalNode(e),t=nn.getOriginalNode(t);var r=e.parent;if(!r||r!==t.parent)return!1;r=nn.getContainingNodeArray(e),e=null==r?void 0:r.indexOf(e);return void 0!==e&&-1<e&&r.indexOf(t)===e+1}(t,r)?ar(function(e){return nn.getLinesBetweenRangeEndAndRangeStart(t,r,pe,e)}):!ye&&(n=t,i=r,(n=nn.getOriginalNode(n)).parent&&n.parent===nn.getOriginalNode(i).parent)?nn.rangeEndIsOnSameLineAsRangeStart(t,r,pe)?0:1:65536&e?1:0;if(cr(t,e)||cr(r,e))return 1}else if(nn.getStartsOnNewLine(r))return 1;var n,i;return 1&e?1:0}function ir(t,e,r){if(2&r||ye){if(65536&r)return 1;var n=nn.lastOrUndefined(e);if(void 0===n)return!t||pe&&nn.rangeIsOnSingleLine(t,pe)?0:1;if(pe&&t&&!nn.positionIsSynthesized(t.pos)&&!nn.nodeIsSynthesized(n)&&(!n.parent||n.parent===t)){if(ye){var i=(nn.isNodeArray(e)&&!nn.positionIsSynthesized(e.end)?e:n).end;return ar(function(e){return nn.getLinesBetweenPositionAndNextNonWhitespaceCharacter(i,t.end,pe,e)})}return nn.rangeEndPositionsAreOnSameLine(t,n,pe)?0:1}if(cr(n,r))return 1}return 1&r&&!(131072&r)?1:0}function ar(e){nn.Debug.assert(!!ye);var t=e(!0);return 0===t?e(!1):t}function or(e,t){e=ye&&rr(t,[e],0);return e&&er(e,!1),!!e}function sr(e,t){e=ye&&ir(t,[e],0);e&&Wt(e)}function cr(e,t){if(nn.nodeIsSynthesized(e)){e=nn.getStartsOnNewLine(e);return void 0===e?0!=(65536&t):e}return 0!=(65536&t)}function lr(e,t,r){return 131072&nn.getEmitFlags(e)?0:(e=_r(e),t=_r(t),r=_r(r),nn.getStartsOnNewLine(r)?1:!pe||nn.nodeIsSynthesized(e)||nn.nodeIsSynthesized(t)||nn.nodeIsSynthesized(r)?0:ye?ar(function(e){return nn.getLinesBetweenRangeEndAndRangeStart(t,r,pe,e)}):nn.rangeEndIsOnSameLineAsRangeStart(t,r,pe)?0:1)}function ur(e){return 0===e.statements.length&&(!pe||nn.rangeEndIsOnSameLineAsRangeStart(e,e,pe))}function _r(e){for(;212===e.kind&&nn.nodeIsSynthesized(e);)e=e.expression;return e}function dr(e,t){if(nn.isGeneratedIdentifier(e))return br(e);if(nn.isStringLiteral(e)&&e.textSourceNode)return dr(e.textSourceNode,t);var r=pe,n=!!r&&!!e.parent&&!nn.nodeIsSynthesized(e);if(nn.isMemberName(e)){if(!n||nn.getSourceFileOfNode(e)!==nn.getOriginalNode(r))return nn.idText(e)}else if(nn.Debug.assertNode(e,nn.isLiteralExpression),!n)return e.text;return nn.getSourceTextOfNodeFromSourceFile(r,e,t)}function pr(e,t,r){if(10===e.kind&&e.textSourceNode){var n=e.textSourceNode;if(nn.isIdentifier(n)||nn.isNumericLiteral(n)){var i=nn.isNumericLiteral(n)?n.text:dr(n);return r?'"'.concat(nn.escapeJsxAttributeString(i),'"'):t||16777216&nn.getEmitFlags(e)?'"'.concat(nn.escapeString(i),'"'):'"'.concat(nn.escapeNonAsciiString(i),'"')}return pr(n,t,r)}r=(t?1:0)|(r?2:0)|(f.terminateUnterminatedLiterals?4:0)|(f.target&&99===f.target?8:0);return nn.getLiteralText(e,pe,r)}function fr(e){e&&524288&nn.getEmitFlags(e)||(t.push(i),i=0,a.push(s))}function gr(e){e&&524288&nn.getEmitFlags(e)||(i=t.pop(),s=a.pop())}function mr(e){s&&s!==nn.lastOrUndefined(a)||(s=new nn.Set),s.add(e)}function yr(e){if(e)switch(e.kind){case 235:nn.forEach(e.statements,yr);break;case 250:case 248:case 240:case 241:yr(e.statement);break;case 239:yr(e.thenStatement),yr(e.elseStatement);break;case 242:case 244:case 243:yr(e.initializer),yr(e.statement);break;case 249:yr(e.caseBlock);break;case 263:nn.forEach(e.clauses,yr);break;case 289:case 290:nn.forEach(e.statements,yr);break;case 252:yr(e.tryBlock),yr(e.catchClause),yr(e.finallyBlock);break;case 292:yr(e.variableDeclaration),yr(e.block);break;case 237:yr(e.declarationList);break;case 255:nn.forEach(e.declarations,yr);break;case 254:case 164:case 203:case 257:vr(e.name);break;case 256:vr(e.name),524288&nn.getEmitFlags(e)&&(nn.forEach(e.parameters,yr),yr(e.body));break;case 201:case 202:nn.forEach(e.elements,yr);break;case 266:yr(e.importClause);break;case 267:vr(e.name),yr(e.namedBindings);break;case 268:case 274:vr(e.name);break;case 269:nn.forEach(e.elements,yr);break;case 270:vr(e.propertyName||e.name)}}function hr(e){if(e)switch(e.kind){case 296:case 297:case 167:case 169:case 172:case 173:vr(e.name)}}function vr(e){e&&(nn.isGeneratedIdentifier(e)?br(e):nn.isBindingPattern(e)&&yr(e))}function br(e){if(4==(7&e.autoGenerateFlags))return xr(function(e){var t=e.autoGenerateId,r=e,n=r.original;for(;n&&(r=n,!(nn.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 Tr(0,!!(8&e.autoGenerateFlags));case 2:return Tr(268435456,!!(8&e.autoGenerateFlags));case 3:return Cr(nn.idText(e),32&e.autoGenerateFlags?Sr:Dr,!!(16&e.autoGenerateFlags),!!(8&e.autoGenerateFlags))}return nn.Debug.fail("Unsupported GeneratedIdentifierKind.")}(e))}function xr(e,t){var r=nn.getNodeId(e);return n[r]||(n[r]=function(e,t){switch(e.kind){case 79:return Cr(dr(e),Dr,!!(16&t),!!(8&t));case 261:case 260:return function(e){var t=dr(e.name);return function(e,t){for(var r=t;nn.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var n=r.locals.get(nn.escapeLeadingUnderscores(e));if(n&&3257279&n.flags)return!1}return!0}(t,e)?t:Cr(t)}(e);case 266:case 272:return function(e){e=nn.getExternalModuleName(e);return Cr(nn.isStringLiteral(e)?nn.makeIdentifierFromModuleName(e.text):"module")}(e);case 256:case 257:case 271:return Cr("default");case 226:return Cr("class");case 169:case 172:case 173:return function(e){if(nn.isIdentifier(e.name))return xr(e.name);return Tr(0)}(e);case 162:return Tr(0,!0);default:return Tr(0)}}(e,t))}function Dr(e){return Sr(e)&&!o.has(e)&&!(s&&s.has(e))}function Sr(e){return!pe||nn.isFileLevelUniqueName(pe,e,y)}function Tr(e,t){if(e&&!(i&e)&&Dr(r=268435456===e?"_i":"_n"))return i|=e,t&&mr(r),r;for(;;){var r,n=268435455&i;if(i++,8!=n&&13!=n)if(Dr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&mr(r),r}}function Cr(e,t,r,n){if(void 0===t&&(t=Dr),r&&t(e))return n?mr(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?mr(a):o.add(a),a;i++}}function kr(e){return Cr(e,Sr,!0)}function Er(e,t){var r=Fe(2,e,t),n=B,i=j,a=J;Nr(t),r(e,t),Ar(t,n,i,a)}function Nr(e){var t=nn.getEmitFlags(e),r=nn.getCommentRange(e);!function(e,t,r,n){K(),z=!1;var i=r<0||0!=(512&t)||11===e.kind,a=n<0||0!=(1024&t)||11===e.kind;(0<r||0<n)&&r!==n&&(i||Mr(r,349!==e.kind),(!i||0<=r&&0!=(512&t))&&(B=r),(!a||0<=n&&0!=(1024&t))&&(j=n,255===e.kind&&(J=n))),nn.forEach(nn.getSyntheticLeadingComments(e),Pr),U()}(e,t,r.pos,r.end),2048&t&&(be=!0)}function Ar(e,t,r,n){var i=nn.getEmitFlags(e),a=nn.getCommentRange(e);2048&i&&(be=!1),Fr(e,i,a.pos,a.end,t,r,n);a=nn.getTypeNode(e);a&&Fr(e,i,a.pos,a.end,t,r,n)}function Fr(e,t,r,n,i,a,o){K();t=n<0||0!=(1024&t)||11===e.kind;nn.forEach(nn.getSyntheticTrailingComments(e),wr),(0<r||0<n)&&r!==n&&(B=i,j=a,J=o,t||349===e.kind||Wr(n,zr)),U()}function Pr(e){!e.hasLeadingNewline&&2!==e.kind||fe.writeLine(),Ir(e),e.hasTrailingNewLine||2===e.kind?fe.writeLine():fe.writeSpace(" ")}function wr(e){fe.isAtStartOfLine()||fe.writeSpace(" "),Ir(e),e.hasTrailingNewLine&&fe.writeLine()}function Ir(e){var t,t=3===(t=e).kind?"/*".concat(t.text,"*/"):"//".concat(t.text),e=3===e.kind?nn.computeLineStarts(t):void 0;nn.writeCommentRange(t,e,fe,0,t.length,N)}function Or(e,t,r){K();var n=t.pos,i=t.end,a=nn.getEmitFlags(e),i=be||i<0||0!=(1024&a);n<0||0!=(512&a)||(n=t,(n=pe&&nn.emitDetachedComments(pe.text,se(),fe,Hr,n,N,be))&&(p?p.push(n):p=[n])),U(),2048&a&&!be?(be=!0,r(e),be=!1):r(e),K(),i||(Mr(t.end,!0),z&&!fe.isAtStartOfLine()&&fe.writeLine()),U()}function Mr(e,t){z=!1,t?0===e&&null!=pe&&pe.isDeclarationFile?qr(e,Rr):qr(e,jr):0===e&&qr(e,Lr)}function Lr(e,t,r,n,i){Gr(e,t)&&jr(e,t,r,n,i)}function Rr(e,t,r,n,i){Gr(e,t)||jr(e,t,r,n,i)}function Br(e,t){return!f.onlyPrintJsDocStyle||(nn.isJSDocLikeText(e,t)||nn.isPinnedComment(e,t))}function jr(e,t,r,n,i){pe&&Br(pe.text,e)&&(z||(nn.emitNewLineBeforeLeadingCommentOfPosition(se(),fe,i,e),z=!0),$r(e),nn.writeCommentRange(pe.text,se(),fe,e,t,N),$r(t),n?fe.writeLine():3===r&&fe.writeSpace(" "))}function Jr(e){be||-1===e||Mr(e,!0)}function zr(e,t,r,n){pe&&Br(pe.text,e)&&(fe.isAtStartOfLine()||fe.writeSpace(" "),$r(e),nn.writeCommentRange(pe.text,se(),fe,e,t,N),$r(t),n&&fe.writeLine())}function Kr(e,t,r){be||(K(),Wr(e,t?zr:r?Ur:Vr),U())}function Ur(e,t,r){pe&&($r(e),nn.writeCommentRange(pe.text,se(),fe,e,t,N),$r(t),2===r&&fe.writeLine())}function Vr(e,t,r,n){pe&&($r(e),nn.writeCommentRange(pe.text,se(),fe,e,t,N),$r(t),n?fe.writeLine():fe.writeSpace(" "))}function qr(e,t){var r,n;!pe||-1!==B&&e===B||(n=e,void 0!==p&&nn.last(p).nodePos===n?(r=t,pe&&(n=nn.last(p).detachedCommentEndPos,p.length-1?p.pop():p=void 0,nn.forEachLeadingCommentRange(pe.text,n,r,n))):nn.forEachLeadingCommentRange(pe.text,e,t,e))}function Wr(e,t){pe&&(-1===j||e!==j&&e!==J)&&nn.forEachTrailingCommentRange(pe.text,e,t)}function Hr(e,t,r,n,i,a){pe&&Br(pe.text,n)&&($r(n),nn.writeCommentRange(e,t,r,n,i,a),$r(i))}function Gr(e,t){return pe&&nn.isRecognizedTripleSlashComment(pe.text,e,t)}function Qr(e,t){var r=Fe(3,e,t);Xr(t),r(e,t),Yr(t)}function Xr(e){var t,r=nn.getEmitFlags(e),n=nn.getSourceMapRange(e);nn.isUnparsedNode(e)?(nn.Debug.assertIsDefined(e.parent,"UnparsedNodes must have parent pointers"),(t=(void 0===(t=e.parent).parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=nn.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0))&&l&&l.appendSourceMap(fe.getLine(),fe.getColumn(),t,e.parent.sourceMapPath,e.parent.getLineAndCharacterOfPosition(e.pos),e.parent.getLineAndCharacterOfPosition(e.end))):(t=n.source||u,349!==e.kind&&0==(16&r)&&0<=n.pos&&en(n.source||u,Zr(t,n.pos)),64&r&&(M=!0))}function Yr(e){var t=nn.getEmitFlags(e),r=nn.getSourceMapRange(e);nn.isUnparsedNode(e)||(64&t&&(M=!1),349!==e.kind&&0==(32&t)&&0<=r.end&&en(r.source||u,r.end))}function Zr(e,t){return e.skipTrivia?e.skipTrivia(t):nn.skipTrivia(e.text,t)}function $r(e){var t;M||nn.positionIsSynthesized(e)||rn(u)||(e=(t=nn.getLineAndCharacterOfPosition(u,e)).line,t=t.character,l.addMapping(fe.getLine(),fe.getColumn(),L,e,t,void 0))}function en(e,t){var r,n;e!==u?(r=u,n=L,tn(e),$r(t),u=r,L=n):$r(t)}function tn(e){M||((u=e)!==_?rn(e)||(L=l.addSource(e.fileName),f.inlineSources&&l.setSourceContent(L,e.text),_=e,R=L):L=R)}function rn(e){return nn.fileExtensionIs(e.fileName,".json")}}function on(e,t,r,n){t(e)}function sn(e,t,r,n){t(e,r.select(n))}function cn(e,t,r,n){t(e,r)}nn.isBuildInfoFile=function(e){return nn.fileExtensionIs(e,".tsbuildinfo")},nn.forEachEmittedFile=n,nn.getTsBuildInfoEmitOutputFilePath=d,nn.getOutputPathsForBundle=T,nn.getOutputPathsFor=p,nn.getOutputExtension=c,nn.getOutputDeclarationFileName=l,nn.getCommonSourceDirectory=i,nn.getCommonSourceDirectoryOfConfig=m,nn.getAllProjectOutputs=function(e,t){var r=(n=_()).addOutput,n=n.getOutputs;if(nn.outFile(e.options))f(e,r);else{for(var i=nn.memoize(function(){return m(e,t)}),a=0,o=e.fileNames;a<o.length;a++){var s=o[a];g(e,s,t,r,i)}r(d(e.options))}return n()},nn.getOutputFileNames=function(e,t,r){t=nn.normalizePath(t),nn.Debug.assert(nn.contains(e.fileNames,t),"Expected fileName to be present in command line");var n=(i=_()).addOutput,i=i.getOutputs;return nn.outFile(e.options)?f(e,n):g(e,t,r,n),i()},nn.getFirstProjectOutput=function(e,t){if(nn.outFile(e.options)){var r=T(e.options,!1).jsFilePath;return nn.Debug.checkDefined(r,"project ".concat(e.options.configFilePath," expected to have at least one output"))}for(var n=nn.memoize(function(){return m(e,t)}),i=0,a=e.fileNames;i<a.length;i++){var o=a[i];if(!nn.isDeclarationFileName(o)){if(r=u(o,e,t,n))return r;if(!nn.fileExtensionIs(o,".json")&&nn.getEmitDeclarations(e.options))return l(o,e,t,n)}}var s=d(e.options);return s||nn.Debug.fail("project ".concat(e.options.configFilePath," expected to have at least one output"))},nn.emitFiles=C,nn.getBuildInfoText=k,nn.getBuildInfo=E,nn.notImplementedResolver={hasGlobalName:nn.notImplemented,getReferencedExportContainer:nn.notImplemented,getReferencedImportDeclaration:nn.notImplemented,getReferencedDeclarationWithCollidingName:nn.notImplemented,isDeclarationWithCollidingName:nn.notImplemented,isValueAliasDeclaration:nn.notImplemented,isReferencedAliasDeclaration:nn.notImplemented,isTopLevelValueImportEqualsWithEntityName:nn.notImplemented,getNodeCheckFlags:nn.notImplemented,isDeclarationVisible:nn.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:nn.notImplemented,isImplementationOfOverload:nn.notImplemented,isRequiredInitializedParameter:nn.notImplemented,isOptionalUninitializedParameterProperty:nn.notImplemented,isExpandoFunctionDeclaration:nn.notImplemented,getPropertiesOfContainerFunction:nn.notImplemented,createTypeOfDeclaration:nn.notImplemented,createReturnTypeOfSignatureDeclaration:nn.notImplemented,createTypeOfExpression:nn.notImplemented,createLiteralConstValue:nn.notImplemented,isSymbolAccessible:nn.notImplemented,isEntityNameVisible:nn.notImplemented,getConstantValue:nn.notImplemented,getReferencedValueDeclaration:nn.notImplemented,getTypeReferenceSerializationKind:nn.notImplemented,isOptionalParameter:nn.notImplemented,moduleExportsSomeValue:nn.notImplemented,isArgumentsLocalBinding:nn.notImplemented,getExternalModuleFileFromDeclaration:nn.notImplemented,getTypeReferenceDirectivesForEntityName:nn.notImplemented,getTypeReferenceDirectivesForSymbol:nn.notImplemented,isLiteralConstDeclaration:nn.notImplemented,getJsxFactoryEntity:nn.notImplemented,getJsxFragmentFactoryEntity:nn.notImplemented,getAllAccessorDeclarations:nn.notImplemented,getSymbolOfExternalModuleSpecifier:nn.notImplemented,isBindingCapturedByNode:nn.notImplemented,getDeclarationStatementsForSourceFile:nn.notImplemented,isImportRequiredByAugmentation:nn.notImplemented},nn.emitUsingBuildInfo=function(e,t,r,n){var s=(S=T(e.options,!1)).buildInfoPath,c=S.jsFilePath,l=S.sourceMapFilePath,u=S.declarationFilePath,_=S.declarationMapPath,i=t.readFile(nn.Debug.checkDefined(s));if(!i)return s;var d=t.readFile(nn.Debug.checkDefined(c));if(!d)return c;var p=l&&t.readFile(l);if(l&&!p||e.options.inlineSourceMap)return l||"inline sourcemap decoding";var f=u&&t.readFile(u);if(u&&!f)return u;var g=_&&t.readFile(_);if(_&&!g||e.options.inlineSourceMap)return _||"inline sourcemap decoding";var m=E(i);if(!m.bundle||!m.bundle.js||f&&!m.bundle.dts)return s;var a,o,y,h=nn.getDirectoryPath(nn.getNormalizedAbsolutePath(s,t.getCurrentDirectory())),v=nn.createInputFiles(d,f,l,p,_,g,c,u,s,m,!0),b=[],x=nn.createPrependNodes(e.projectReferences,r,function(e){return t.readFile(e)}),D=(S=m.bundle,a=h,o=t,i=nn.Debug.checkDefined(S.js),y=(null===(r=i.sources)||void 0===r?void 0:r.prologues)&&nn.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=nn.setTextRange(nn.factory.createStringLiteral(e.expression.text),e.expression),e=nn.setTextRange(nn.factory.createExpressionStatement(t),e);return nn.setParent(t,e),e}),t=nn.factory.createToken(1),n=nn.factory.createSourceFile(null!=n?n:[],t,0);return n.fileName=nn.getRelativePathFromDirectory(o.getCurrentDirectory(),nn.getNormalizedAbsolutePath(e,a),!o.useCaseSensitiveFileNames()),n.text=null!==(e=null==r?void 0:r.text)&&void 0!==e?e:"",nn.setTextRangePosWidth(n,0,null!==(r=null==r?void 0:r.text.length)&&void 0!==r?r:0),nn.setEachParent(n.statements,n),nn.setTextRangePosWidth(t,n.end,0),nn.setParent(t,n),n})),S={getPrependNodes:nn.memoize(function(){return __spreadArray(__spreadArray([],x,!0),[v],!1)}),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return nn.getNormalizedAbsolutePath(m.bundle.commonSourceDirectory,h)},getCompilerOptions:function(){return e.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:nn.returnUndefined,getSourceFileByPath:nn.returnUndefined,getSourceFiles:function(){return D},getLibFileFromReference:nn.notImplemented,isSourceFileFromExternalLibrary:nn.returnFalse,getResolvedProjectReferenceToRedirect:nn.returnUndefined,getProjectReferenceRedirect:nn.returnUndefined,isSourceOfProjectReferenceRedirect:nn.returnFalse,writeFile:function(e,t,r){switch(e){case c:if(d===t)return;break;case l:if(p===t)return;break;case s:var n=E(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:k(n),writeByteOrderMark:r});case u:if(f===t)return;break;case _:if(g===t)return;break;default:nn.Debug.fail("Unexpected path: ".concat(e))}b.push({name:e,text:t,writeByteOrderMark:r})},isEmitBlocked:nn.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:nn.returnUndefined,getSourceFileFromReference:nn.returnUndefined,redirectTargetsMap:nn.createMultiMap(),getFileIncludeReasons:nn.notImplemented};return C(nn.notImplementedResolver,S,void 0,nn.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",nn.createPrinter=N,(e={})[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(ts=ts||{}),function(h){var i,e;function t(e){e.watcher.close()}h.createCachedDirectoryStructureHost=function(l,u,_){if(l.getDirectories&&l.readDirectory){var n=new h.Map,r=h.createGetCanonicalFileName(_);return{useCaseSensitiveFileNames:_,fileExists:function(e){var t=a(d(e));return t&&s(t.files,p(e))||l.fileExists(e)},readFile:function(e,t){return l.readFile(e,t)},directoryExists:l.directoryExists&&function(e){var t=d(e);return n.has(h.ensureTrailingDirectorySeparator(t))||l.directoryExists(e)},getDirectories:function(e){var t=d(e),t=f(e,t);if(t)return t.directories.slice();return l.getDirectories(e)},readDirectory:function(e,t,r,n,i){var a,o=d(e),s=f(e,o);return void 0===s?l.readDirectory(e,t,r,n,i):h.matchFiles(e,t,r,n,_,u,i,function(e){var t=d(e);if(t===o)return s||c(e,t);var r=f(e,t);return void 0!==r?r||c(e,t):h.emptyFileSystemEntries},g);function c(e,t){if(a&&t===o)return a;e={files:h.map(l.readDirectory(e,void 0,void 0,["*.*"]),p)||h.emptyArray,directories:l.getDirectories(e)||h.emptyArray};return t===o&&(a=e),e}},createDirectory:l.createDirectory&&function(e){var t=a(d(e)),r=p(e);t&&c(t.directories,r,!0);l.createDirectory(e)},writeFile:l.writeFile&&function(e,t,r){var n=a(d(e));n&&m(n,p(e),!0);return l.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(void 0!==i(t))return void y();var r=a(t);if(!r)return;if(!l.directoryExists)return void y();e=p(e),t={fileExists:l.fileExists(t),directoryExists:l.directoryExists(t)};t.directoryExists||s(r.directories,e)?y():m(r,e,t.fileExists);return t},addOrDeleteFile:function(e,t,r){if(r===h.FileWatcherEventKind.Changed)return;t=a(t);t&&m(t,p(e),r===h.FileWatcherEventKind.Created)},clearCache:y,realpath:l.realpath&&g}}function d(e){return h.toPath(e,u,r)}function i(e){return n.get(h.ensureTrailingDirectorySeparator(e))}function a(e){return i(h.getDirectoryPath(e))}function p(e){return h.getBaseFileName(h.normalizePath(e))}function f(e,t){var r=i(t=h.ensureTrailingDirectorySeparator(t));if(r)return r;try{return function(e,t){if(!l.realpath||h.ensureTrailingDirectorySeparator(d(l.realpath(e)))===t){var r={files:h.map(l.readDirectory(e,void 0,void 0,["*.*"]),p)||[],directories:l.getDirectories(e)||[]};return n.set(h.ensureTrailingDirectorySeparator(t),r),r}if(null!==(r=l.directoryExists)&&void 0!==r&&r.call(l,e))return n.set(t,!1),!1}(e,t)}catch(e){return void h.Debug.assert(!n.has(h.ensureTrailingDirectorySeparator(t)))}}function o(e,t){return r(e)===r(t)}function s(e,t){return h.some(e,function(e){return o(e,t)})}function c(e,t,r){return s(e,t)?!r&&h.filterMutate(e,function(e){return!o(e,t)}):r&&e.push(t)}function g(e){return l.realpath?l.realpath(e):e}function m(e,t,r){c(e.files,t,r)}function y(){n.clear()}},(e=h.ConfigFileProgramReloadLevel||(h.ConfigFileProgramReloadLevel={}))[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",h.updateSharedExtendedConfigFileWatcher=function(n,e,i,a,t){var r=h.arrayToMap((null===(e=null==e?void 0:e.configFile)||void 0===e?void 0:e.extendedSourceFiles)||h.emptyArray,t);i.forEach(function(e,t){r.has(t)||(e.projects.delete(n),e.close())}),r.forEach(function(e,t){var r=i.get(t);r?r.projects.add(n):i.set(t,{projects:new h.Set([n]),watcher:a(e,t),close:function(){var e=i.get(t);e&&0===e.projects.size&&(e.watcher.close(),i.delete(t))}})})},h.clearSharedExtendedConfigFileWatcher=function(t,e){e.forEach(function(e){e.projects.delete(t)&&e.close()})},h.cleanExtendedConfigCache=function r(n,i,a){n.delete(i)&&n.forEach(function(e,t){null!==(e=e.extendedResult.extendedSourceFiles)&&void 0!==e&&e.some(function(e){return a(e)===i})&&r(n,t,a)})},h.updatePackageJsonWatch=function(e,t,r){e=new h.Map(e),h.mutateMap(t,e,{createNewValue:r,onDeleteValue:h.closeFileWatcher})},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.program,s=e.extraFileExtensions,c=e.currentDirectory,l=e.useCaseSensitiveFileNames,u=e.writeLog,_=e.toPath;if(!(e=h.removeIgnoredPath(n)))return u("Project: ".concat(i," Detected ignored path: ").concat(r)),!0;if((n=e)===t)return!1;if(h.hasExtension(n)&&!h.isSupportedSourceFileName(r,a,s))return u("Project: ".concat(i," Detected file add/remove of non supported extension: ").concat(r)),!0;if(h.isExcludedFile(r,a.configFile.configFileSpecs,h.getNormalizedAbsolutePath(h.getDirectoryPath(i),c),l,c))return u("Project: ".concat(i," Detected excluded file: ").concat(r)),!0;if(!o)return!1;if(h.outFile(a)||a.outDir)return!1;if(h.isDeclarationFileName(n)){if(a.declarationDir)return!1}else if(!h.fileExtensionIsOneOf(n,h.supportedJSExtensionsFlat))return!1;var n=h.removeFileExtension(n),d=h.isArray(o)?void 0:o.getState?o.getProgramOrUndefined():o,p=d||h.isArray(o)?void 0:o;return!(!f(n+".ts")&&!f(n+".tsx"))&&(u("Project: ".concat(i," Detected output file: ").concat(r)),!0);function f(t){return d?d.getSourceFileByPath(t):p?p.getState().fileInfos.has(t):h.find(o,function(e){return _(e)===t})}},h.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},(e=i=h.WatchLogLevel||(h.WatchLogLevel={}))[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",h.getWatchFactory=function(c,e,_,d){h.setSysLog(e===i.Verbose?_:h.noop);var t={watchFile:function(e,t,r,n){return c.watchFile(e,t,r,n)},watchDirectory:function(e,t,r,n){return c.watchDirectory(e,t,0!=(1&r),n)}},l=e!==i.None?{watchFile:n("watchFile"),watchDirectory:n("watchDirectory")}:void 0,u=e===i.Verbose?{watchFile:function(e,t,r,n,i,a){_("FileWatcher:: Added:: ".concat(f(e,r,n,i,a,d)));var o=l.watchFile(e,t,r,n,i,a);return{close:function(){_("FileWatcher:: Close:: ".concat(f(e,r,n,i,a,d))),o.close()}}},watchDirectory:function(r,e,n,i,a,o){var t="DirectoryWatcher:: Added:: ".concat(f(r,n,i,a,o,d));_(t);var s=h.timestamp(),c=l.watchDirectory(r,e,n,i,a,o),s=h.timestamp()-s;return _("Elapsed:: ".concat(s,"ms ").concat(t)),{close:function(){var e="DirectoryWatcher:: Close:: ".concat(f(r,n,i,a,o,d));_(e);var t=h.timestamp();c.close();t=h.timestamp()-t;_("Elapsed:: ".concat(t,"ms ").concat(e))}}}}:l||t,p=e===i.Verbose?function(e,t,r,n,i){return _("ExcludeWatcher:: Added:: ".concat(f(e,t,r,n,i,d))),{close:function(){return _("ExcludeWatcher:: Close:: ".concat(f(e,t,r,n,i,d)))}}}:h.returnNoopFileWatcher;return{watchFile:r("watchFile"),watchDirectory:r("watchDirectory")};function r(s){return function(e,t,r,n,i,a){var o;return h.matchesExclude(e,"watchFile"===s?null==n?void 0:n.excludeFiles:null==n?void 0:n.excludeDirectories,"boolean"==typeof c.useCaseSensitiveFileNames?c.useCaseSensitiveFileNames:c.useCaseSensitiveFileNames(),(null===(o=c.getCurrentDirectory)||void 0===o?void 0:o.call(c))||"")?p(e,r,n,i,a):u[s].call(void 0,e,t,r,n,i,a)}}function n(u){return function(i,a,o,s,c,l){return t[u].call(void 0,i,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="".concat("watchFile"===u?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(e[0]," ").concat(void 0!==e[1]?e[1]:"",":: ").concat(f(i,o,s,c,l,d));_(r);var n=h.timestamp();a.call.apply(a,__spreadArray([void 0],e,!1));n=h.timestamp()-n;_("Elapsed:: ".concat(n,"ms ").concat(r))},o,s,c,l)}}function f(e,t,r,n,i,a){return"WatchInfo: ".concat(e," ").concat(t," ").concat(JSON.stringify(r)," ").concat(a?a(n,i):void 0===i?n:"".concat(n," ").concat(i))}},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(Bt){function jt(e,t){t=Bt.getDirectoryPath(t),e=Bt.isRootedDiskPath(e)?e:Bt.combinePaths(t,e);return Bt.normalizePath(e)}function Jt(e,t){return r(e,t)}function r(o,i,s){void 0===s&&(s=Bt.sys);var c,a=new Bt.Map,e=Bt.createGetCanonicalFileName(s.useCaseSensitiveFileNames),l=Bt.maybeBind(s,s.createHash)||Bt.generateDjb2Hash;function t(){return Bt.getDirectoryPath(Bt.normalizePath(s.getExecutingFilePath()))}var r=Bt.getNewLineCharacter(o,function(){return s.newLine}),n=s.realpath&&function(e){return s.realpath(e)},u={getSourceFile:function(e,t,r){var n;try{Bt.performance.mark("beforeIORead"),n=u.readFile(e),Bt.performance.mark("afterIORead"),Bt.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?Bt.createSourceFile(e,n,t,i):void 0},getDefaultLibLocation:t,getDefaultLibFileName:function(e){return Bt.combinePaths(t(),Bt.getDefaultLibFileName(e))},writeFile:function(e,t,r,n){try{Bt.performance.mark("beforeIOWrite"),Bt.writeFileEnsuringDirectories(e,t,r,function(e,t,r){if(!Bt.isWatchSet(o)||!s.getModifiedTime)return void s.writeFile(e,t,r);c=c||new Bt.Map;var n=l(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)||Bt.missingFileModifiedTime;c.set(e,{hash:n,byteOrderMark:r,mtime:t})},function(e){return(u.createDirectory||s.createDirectory)(e)},function(e){return e=e,!!a.has(e)||!!(u.directoryExists||s.directoryExists)(e)&&(a.set(e,!0),!0)}),Bt.performance.mark("afterIOWrite"),Bt.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:Bt.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:Bt.maybeBind(s,s.createHash)};return u}function a(e,t){var r="".concat(Bt.diagnosticCategoryName(e)," TS").concat(e.code,": ").concat(m(e.messageText,t.getNewLine())).concat(t.getNewLine());if(e.file){var n=Bt.getLineAndCharacterOfPosition(e.file,e.start),i=n.line,n=n.character,e=e.file.fileName,e=Bt.convertToRelativePath(e,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)});return"".concat(e,"(").concat(i+1,",").concat(n+1,"): ")+r}return r}var d,e;Bt.findConfigFile=function(e,t,r){return void 0===r&&(r="tsconfig.json"),Bt.forEachAncestorDirectory(e,function(e){e=Bt.combinePaths(e,r);return t(e)?e:void 0})},Bt.resolveTripleslashReference=jt,Bt.computeCommonSourceDirectoryOfFilenames=function(e,i,a){var o;return Bt.forEach(e,function(e){var t=Bt.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?Bt.getPathFromPathComponents(o):i},Bt.createCompilerHost=Jt,Bt.createCompilerHostWorker=r,Bt.changeCompilerHostLikeToUseCache=function(o,s,c){var n=o.readFile,i=o.fileExists,a=o.directoryExists,r=o.createDirectory,l=o.writeFile,u=new Bt.Map,_=new Bt.Map,d=new Bt.Map,p=new Bt.Map,f=function(e,t){t=n.call(o,t);return u.set(e,void 0!==t&&t),t};o.readFile=function(e){var t=s(e),r=u.get(t);return void 0!==r?!1!==r?r:void 0:Bt.fileExtensionIs(e,".json")||Bt.isBuildInfoFile(e)?f(t,e):n.call(o,e)};var g=c?function(e,t,r,n){var i=s(e),a=p.get(i);if(a)return a;n=c(e,t,r,n);return n&&(Bt.isDeclarationFileName(e)||Bt.fileExtensionIs(e,".json"))&&p.set(i,n),n}:void 0;return o.fileExists=function(e){var t=s(e),r=_.get(t);if(void 0!==r)return r;e=i.call(o,e);return _.set(t,!!e),e},l&&(o.writeFile=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=s(e);_.delete(i);var a=u.get(i);void 0!==a&&a!==t?(u.delete(i),p.delete(i)):!g||(a=p.get(i))&&a.text!==t&&p.delete(i),l.call.apply(l,__spreadArray([o,e,t],r,!1))}),a&&r&&(o.directoryExists=function(e){var t=s(e),r=d.get(t);if(void 0!==r)return r;e=a.call(o,e);return d.set(t,!!e),e},o.createDirectory=function(e){var t=s(e);d.delete(t),r.call(o,e)}),{originalReadFile:n,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:r,originalWriteFile:l,getSourceFileWithCache:g,readFileWithCache:function(e){var t=s(e),r=u.get(t);return void 0!==r?!1!==r?r:void 0:f(t,e)}}},Bt.getPreEmitDiagnostics=function(e,t,r){var n=Bt.addRange(n,e.getConfigFileParsingDiagnostics());return n=Bt.addRange(n,e.getOptionsDiagnostics(r)),n=Bt.addRange(n,e.getSyntacticDiagnostics(t,r)),n=Bt.addRange(n,e.getGlobalDiagnostics(r)),n=Bt.addRange(n,e.getSemanticDiagnostics(t,r)),Bt.getEmitDeclarations(e.getCompilerOptions())&&(n=Bt.addRange(n,e.getDeclarationDiagnostics(t,r))),Bt.sortAndDeduplicateDiagnostics(n||Bt.emptyArray)},Bt.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=a(i[n],t);return r},Bt.formatDiagnostic=a,(e=d=Bt.ForegroundColorEscapeSequences||(Bt.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 Bt.DiagnosticCategory.Error:return d.Red;case Bt.DiagnosticCategory.Warning:return d.Yellow;case Bt.DiagnosticCategory.Suggestion:return Bt.Debug.fail("Should never get an Info diagnostic on the command line.");case Bt.DiagnosticCategory.Message:return d.Blue}}function D(e,t){return t+e+b}function f(e,t,r,n,i,a){var o=Bt.getLineAndCharacterOfPosition(e,t),s=o.line,c=o.character,r=Bt.getLineAndCharacterOfPosition(e,t+r),l=r.line,u=r.character,_=Bt.getLineAndCharacterOfPosition(e,e.text.length).line,d=4<=l-s,p=(l+1+"").length;d&&(p=Math.max(x.length,p));for(var f="",g=s;g<=l;g++){f+=a.getNewLine(),d&&s+1<g&&g<l-1&&(f+=n+D(Bt.padLeft(x,p),h)+v+a.getNewLine(),g=l-1);var m=Bt.getPositionOfLineAndCharacter(e,g,0),y=g<_?Bt.getPositionOfLineAndCharacter(e,g+1,0):e.text.length,m=e.text.slice(m,y);m=(m=Bt.trimStringEnd(m)).replace(/\t/g," "),f+=n+D(Bt.padLeft(g+1+"",p),h)+v,f+=m+a.getNewLine(),f+=n+D(Bt.padLeft("",p),h)+v,f+=i,g===s?(y=g===l?u:void 0,f+=m.slice(0,c).replace(/\S/g," "),f+=m.slice(c,y).replace(/./g,"~")):f+=(g===l?m.slice(0,u):m).replace(/./g,"~"),f+=b}return f}function g(e,t,r,n){void 0===n&&(n=D);var i=Bt.getLineAndCharacterOfPosition(e,t),a=i.line,t=i.character,i="";return i+=n(r?Bt.convertToRelativePath(e.fileName,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)}):e.fileName,d.Cyan),i+=":",i+=n("".concat(a+1),d.Yellow),i+=":",i+=n("".concat(t+1),d.Yellow)}function m(e,t,r){if(void 0===r&&(r=0),Bt.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 zt(e,t,r,n,i){if(0===e.length)return[];for(var a=[],o=new Bt.Map,s=0,c=e;s<c.length;s++){var l=c[s],u=void 0,_=Kt(l,n),d=Bt.isString(l)?l:l.fileName.toLowerCase(),l=void 0!==_?"".concat(_,"|").concat(d):d;o.has(l)?u=o.get(l):o.set(l,u=i(d,t,r,_)),a.push(u)}return a}function Kt(e,t){return(Bt.isString(e)?t:e.resolutionMode)||t}function Ut(e,t){if(void 0!==e.impliedNodeFormat)return n(e,y(e,t))}function i(e){return Bt.isExportDeclaration(e)?e.isTypeOnly:!(null===(e=e.importClause)||void 0===e||!e.isTypeOnly)}function n(e,t){if(void 0!==e.impliedNodeFormat){if(Bt.isImportDeclaration(t.parent)||Bt.isExportDeclaration(t.parent)){var r,n=i(t.parent);if(n)if(r=o(t.parent.assertClause))return r}if(t.parent.parent&&Bt.isImportTypeNode(t.parent.parent))if(r=o(null===(n=t.parent.parent.assertions)||void 0===n?void 0:n.assertClause))return r;if(e.impliedNodeFormat!==Bt.ModuleKind.ESNext)return Bt.isImportCall(Bt.walkUpParenthesizedExpressions(t.parent))?Bt.ModuleKind.ESNext:Bt.ModuleKind.CommonJS;t=null===(t=Bt.walkUpParenthesizedExpressions(t.parent))||void 0===t?void 0:t.parent;return t&&Bt.isImportEqualsDeclaration(t)?Bt.ModuleKind.CommonJS:Bt.ModuleKind.ESNext}}function o(e,t){if(e)if(1===Bt.length(e.elements)){var r=e.elements[0];if(Bt.isStringLiteralLike(r.name))if("resolution-mode"===r.name.text){if(Bt.isStringLiteralLike(r.value)){if("import"===r.value.text||"require"===r.value.text)return"import"===r.value.text?Bt.ModuleKind.ESNext:Bt.ModuleKind.CommonJS;null!=t&&t(r.value,Bt.Diagnostics.resolution_mode_should_be_either_require_or_import)}}else null!=t&&t(r.name,Bt.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}else null!=t&&t(e,Bt.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require)}function Vt(e,t,r,n,i){if(0===e.length)return[];for(var a=[],o=new Bt.Map,s=0,c=0,l=e;c<l.length;c++){var u=l[c],_=void 0,d=Ut(t,s);s++;var p=void 0!==d?"".concat(d,"|").concat(u):u;o.has(p)?_=o.get(p):o.set(p,_=i(u,d,r,n)),a.push(_)}return a}function qt(e,t,i,a){var o;return function r(e,t,n){if(a){var e=a(e,n);if(e)return e}return Bt.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 Bt.Set).add(e.sourceFile.path),r(e.commandLine.projectReferences,e.references,e))}})}(e,t,void 0)}function Wt(e){switch(null==e?void 0:e.kind){case Bt.FileIncludeKind.Import:case Bt.FileIncludeKind.ReferenceFile:case Bt.FileIncludeKind.TypeReferenceDirective:case Bt.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function Ht(e){return void 0!==e.pos}function Gt(e,t){var r,n,i,a,o,s=Bt.Debug.checkDefined(e(t.file)),c=t.kind,l=t.index;switch(c){case Bt.FileIncludeKind.Import:var u=y(s,l),_=null===(r=null===(r=s.resolvedModules)||void 0===r?void 0:r.get(u.text,Ut(s,l)))||void 0===r?void 0:r.packageId;if(-1===u.pos)return{file:s,packageId:_,text:u.text};i=Bt.skipTrivia(s.text,u.pos),a=u.end;break;case Bt.FileIncludeKind.ReferenceFile:i=(n=s.referencedFiles[l]).pos,a=n.end;break;case Bt.FileIncludeKind.TypeReferenceDirective:i=(n=s.typeReferenceDirectives[l]).pos,a=n.end,o=n.resolutionMode,_=null===(o=null===(n=s.resolvedTypeReferenceDirectiveNames)||void 0===n?void 0:n.get(Bt.toFileNameLowerCase(s.typeReferenceDirectives[l].fileName),o||s.impliedNodeFormat))||void 0===o?void 0:o.packageId;break;case Bt.FileIncludeKind.LibReferenceDirective:i=(o=s.libReferenceDirectives[l]).pos,a=o.end;break;default:return Bt.Debug.assertNever(c)}return{file:s,pos:i,end:a,packageId:_}}function Qt(e,t,r,n){switch(Bt.getEmitModuleResolutionKind(n)){case Bt.ModuleResolutionKind.Node16:case Bt.ModuleResolutionKind.NodeNext:return Bt.fileExtensionIsOneOf(e,[".d.mts",".mts",".mjs"])?Bt.ModuleKind.ESNext:Bt.fileExtensionIsOneOf(e,[".d.cts",".cts",".cjs"])?Bt.ModuleKind.CommonJS:Bt.fileExtensionIsOneOf(e,[".d.ts",".ts",".tsx",".js",".jsx"])?"module"===(null==(i=Bt.getPackageScopeForPath(e,t,r,n))?void 0:i.packageJsonContent.type)?Bt.ModuleKind.ESNext:Bt.ModuleKind.CommonJS:void 0;default:return}var i}function Xt(e,t,r,n){var i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(t,n),t||Bt.outFile(i)?Bt.emitSkippedWithNoDiagnostics:e.emitBuildInfo(r,n);if(i.noEmitOnError){var a,o=__spreadArray(__spreadArray(__spreadArray(__spreadArray([],e.getOptionsDiagnostics(n),!0),e.getSyntacticDiagnostics(t,n),!0),e.getGlobalDiagnostics(n),!0),e.getSemanticDiagnostics(t,n),!0);if(0===o.length&&Bt.getEmitDeclarations(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,n)),o.length)return t||Bt.outFile(i)||((a=e.emitBuildInfo(r,n)).diagnostics&&(o=__spreadArray(__spreadArray([],o,!0),a.diagnostics,!0)),a=a.emittedFiles),{diagnostics:o,sourceMaps:void 0,emittedFiles:a,emitSkipped:!0}}}function Yt(e,t){return Bt.filter(e,function(e){return!e.skippedOn||!t[e.skippedOn]})}function Zt(t,a){return void 0===a&&(a=t),{fileExists:function(e){return a.fileExists(e)},readDirectory:function(e,t,r,n,i){return Bt.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||Bt.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function $t(e,t,r){if(!e)return Bt.emptyArray;for(var n,i=0;i<e.length;i++){var a,o,s,c=e[i],l=t(c,i);c.prepend&&l&&l.options&&Bt.outFile(l.options)&&(a=(s=Bt.getOutputPathsForBundle(l.options,!0)).jsFilePath,o=s.sourceMapFilePath,c=s.declarationFilePath,l=s.declarationMapPath,s=s.buildInfoPath,s=Bt.createInputFiles(r,a,o,c,l,s),(n=n||[]).push(s))}return n||Bt.emptyArray}function er(e,t){e=t||e;return Bt.resolveConfigFileProjectName(e.path)}function tr(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:Bt.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function r(){return e.jsx?void 0:Bt.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function n(){return Bt.getAllowJSCompilerOption(e)||!Bt.getStrictOptionValue(e,"noImplicitAny")?void 0:Bt.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function rr(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}function y(e,t){var r=e.imports,e=e.moduleAugmentations;if(t<r.length)return r[t];for(var n=r.length,i=0,a=e;i<a.length;i++){var o=a[i];if(10===o.kind){if(t===n)return o;n++}}Bt.Debug.fail("should never ask for module name at index higher than possible module name")}Bt.formatColorAndReset=D,Bt.formatLocation=g,Bt.formatDiagnosticsWithColorAndContext=function(e,t){for(var r="",n=0,i=e;n<i.length;n++){var a=i[n];if(a.file&&(r+=g(l=a.file,u=a.start,t),r+=" - "),r+=D(Bt.diagnosticCategoryName(a),p(a.category)),r+=D(" TS".concat(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],l=c.file,u=c.start,_=c.length,c=c.messageText;l&&(r+=t.getNewLine(),r+="  "+g(l,u,t),r+=f(l,u,_,"    ",d.Cyan,t)),r+=t.getNewLine(),r+="    "+m(c,t.getNewLine())}}r+=t.getNewLine()}return r},Bt.flattenDiagnosticMessageText=m,Bt.loadWithTypeDirectiveCache=zt,Bt.getModeForFileReference=Kt,Bt.getModeForResolutionAtIndex=Ut,Bt.isExclusivelyTypeOnlyImportOrExport=i,Bt.getModeForUsageLocation=n,Bt.getResolutionModeOverrideForClause=o,Bt.loadWithModeAwareCache=Vt,Bt.forEachResolvedProjectReference=function(e,r){return qt(void 0,e,function(e,t){return e&&r(e,t)})},Bt.inferredTypesContainingFile="__inferred type names__.ts",Bt.isReferencedFile=Wt,Bt.isReferenceFileLocation=Ht,Bt.getReferencedFileLocation=Gt,Bt.isProgramUptoDate=function(n,e,t,r,i,a,o,s,c){return!(!n||null!=o&&o())&&(!!Bt.arrayIsEqualTo(n.getRootFileNames(),e)&&(!!Bt.arrayIsEqualTo(n.getProjectReferences(),c,function(e,t,r){return Bt.projectReferenceIsEqualTo(e,t)&&function r(n,e){if(n){if(Bt.contains(l,n))return!0;var t=er(e),t=s(t);return t?n.commandLine.options.configFile===t.options.configFile&&(!!Bt.arrayIsEqualTo(n.commandLine.fileNames,t.fileNames)&&((l=l||[]).push(n),!Bt.forEach(n.references,function(e,t){return!r(e,n.commandLine.projectReferences[t])}))):!1}var e=er(e);return!s(e)}(n.getResolvedProjectReferences()[r],e)})&&(!n.getSourceFiles().some(function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||a(e.path)})&&(!n.getMissingFilePaths().some(i)&&(i=n.getCompilerOptions(),!!Bt.compareDataObjects(i,t)&&(!i.configFile||!t.configFile||i.configFile.text===t.configFile.text))))));var l},Bt.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?__spreadArray(__spreadArray([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors},Bt.getImpliedNodeFormatForFile=Qt,Bt.plainJSErrors=new Bt.Set([Bt.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,Bt.Diagnostics.A_module_cannot_have_multiple_default_exports.code,Bt.Diagnostics.Another_export_default_is_here.code,Bt.Diagnostics.The_first_export_default_is_here.code,Bt.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,Bt.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,Bt.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,Bt.Diagnostics.constructor_is_a_reserved_word.code,Bt.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,Bt.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,Bt.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,Bt.Diagnostics.Invalid_use_of_0_in_strict_mode.code,Bt.Diagnostics.A_label_is_not_allowed_here.code,Bt.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,Bt.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,Bt.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,Bt.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,Bt.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,Bt.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,Bt.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,Bt.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,Bt.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Bt.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Bt.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,Bt.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,Bt.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,Bt.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,Bt.Diagnostics.A_get_accessor_cannot_have_parameters.code,Bt.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,Bt.Diagnostics.A_rest_element_cannot_have_a_property_name.code,Bt.Diagnostics.A_rest_element_cannot_have_an_initializer.code,Bt.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,Bt.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,Bt.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,Bt.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,Bt.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,Bt.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,Bt.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,Bt.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Bt.Diagnostics.An_export_declaration_cannot_have_modifiers.code,Bt.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Bt.Diagnostics.An_import_declaration_cannot_have_modifiers.code,Bt.Diagnostics.An_object_member_cannot_be_declared_optional.code,Bt.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,Bt.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,Bt.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,Bt.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,Bt.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,Bt.Diagnostics.Classes_can_only_extend_a_single_class.code,Bt.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,Bt.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,Bt.Diagnostics.Duplicate_label_0.code,Bt.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,Bt.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,Bt.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,Bt.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,Bt.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,Bt.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,Bt.Diagnostics.Jump_target_cannot_cross_function_boundary.code,Bt.Diagnostics.Line_terminator_not_permitted_before_arrow.code,Bt.Diagnostics.Modifiers_cannot_appear_here.code,Bt.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,Bt.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,Bt.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,Bt.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Bt.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,Bt.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,Bt.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,Bt.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,Bt.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,Bt.Diagnostics.Trailing_comma_not_allowed.code,Bt.Diagnostics.Variable_declaration_list_cannot_be_empty.code,Bt.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,Bt.Diagnostics._0_expected.code,Bt.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,Bt.Diagnostics._0_list_cannot_be_empty.code,Bt.Diagnostics._0_modifier_already_seen.code,Bt.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,Bt.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,Bt.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,Bt.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,Bt.Diagnostics._0_modifier_cannot_be_used_here.code,Bt.Diagnostics._0_modifier_must_precede_1_modifier.code,Bt.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,Bt.Diagnostics.const_declarations_must_be_initialized.code,Bt.Diagnostics.extends_clause_already_seen.code,Bt.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,Bt.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code]),Bt.createProgram=function(e,t,r,n,i){var a,f,g,k,o,s,c,l,E,N=(t=Bt.isArray(e)?{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}:e).rootNames,A=t.options,u=t.configFileParsingDiagnostics,F=t.projectReferences,P=t.oldProgram,w=new Bt.Map,I=Bt.createMultiMap(),_={},d={},O=Bt.createModeAwareCache(),m="number"==typeof A.maxNodeModuleJsDepth?A.maxNodeModuleJsDepth:0,y=0,h=new Bt.Map,M=new Bt.Map;null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","createProgram",{configFilePath:A.configFilePath,rootDir:A.rootDir},!0),Bt.performance.mark("beforeProgram");var p,L,v,b,x,D,S,R=t.host||Jt(A),T=Zt(R),C=A.noLib,B=Bt.memoize(function(){return R.getDefaultLibFileName(A)}),j=R.getDefaultLibLocation?R.getDefaultLibLocation():Bt.getDirectoryPath(B()),J=Bt.createDiagnosticCollection(),z=R.getCurrentDirectory(),K=Bt.getSupportedExtensions(A),U=Bt.getSupportedExtensionsWithJsonIfResolveJsonModule(A,K),V=new Bt.Map,q=R.hasInvalidatedResolution||Bt.returnFalse;R.resolveModuleNames?(x=function(e,t,r,n,i){return R.resolveModuleNames(Bt.Debug.checkEachDefined(e),r,n,i,A,t).map(function(e){if(!e||void 0!==e.extension)return e;var t=Bt.clone(e);return t.extension=Bt.extensionFromPath(e.resolvedFileName),t})},L=null===(ie=R.getModuleResolutionCache)||void 0===ie?void 0:ie.call(R)):(L=Bt.createModuleResolutionCache(z,ht,A),b=function(e,t,r,n){return Bt.resolveModuleName(e,r,A,R,L,n,t).resolvedModule},x=function(e,t,r,n,i){return Vt(Bt.Debug.checkEachDefined(e),t,r,i,b)}),S=R.resolveTypeReferenceDirectives?function(e,t,r,n){return R.resolveTypeReferenceDirectives(Bt.Debug.checkEachDefined(e),t,r,A,n)}:(v=Bt.createTypeReferenceDirectiveResolutionCache(z,ht,void 0,null==L?void 0:L.getPackageJsonInfoCache()),D=function(e,t,r,n){return Bt.resolveTypeReferenceDirective(e,t,A,R,r,v,n).resolvedTypeReferenceDirective},function(e,t,r,n){return zt(Bt.Debug.checkEachDefined(e),t,r,n,D)});var W,H,G,Q,X,Y=new Bt.Map,Z=new Bt.Map,$=Bt.createMultiMap(),ee=!1,te=new Bt.Map,re=R.useCaseSensitiveFileNames()?new Bt.Map:void 0,ne=!(null===(r=R.useSourceOfProjectReferenceRedirect)||void 0===r||!r.call(R)||A.disableSourceOfProjectReferenceRedirect),i=(n=function(l){var n,e,r=l.compilerHost.fileExists,t=l.compilerHost.directoryExists,i=l.compilerHost.getDirectories,a=l.compilerHost.realpath;if(!l.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Bt.noop,fileExists:o};l.compilerHost.fileExists=o,t&&(e=l.compilerHost.directoryExists=function(e){return t.call(l.compilerHost,e)?(function(e){if(l.getResolvedProjectReferences()&&!Bt.containsIgnoredPath(e)&&a&&Bt.stringContains(e,Bt.nodeModulesPathPart)){var t=l.getSymlinkCache(),r=Bt.ensureTrailingDirectorySeparator(l.toPath(e));if(null===(i=t.getSymlinkedDirectories())||void 0===i||!i.has(r)){var n,i=Bt.normalizePath(a.call(l.compilerHost,e));if(i===e||(n=Bt.ensureTrailingDirectorySeparator(l.toPath(i)))===r)return t.setSymlinkedDirectory(r,!1);t.setSymlinkedDirectory(e,{real:Bt.ensureTrailingDirectorySeparator(i),realPath:n})}}}(e),!0):!!l.getResolvedProjectReferences()&&(n||(n=new Bt.Set,l.forEachResolvedProjectReference(function(e){var t=Bt.outFile(e.commandLine.options);t?n.add(Bt.getDirectoryPath(l.toPath(t))):(e=e.commandLine.options.declarationDir||e.commandLine.options.outDir)&&n.add(l.toPath(e))})),s(e,!1))});i&&(l.compilerHost.getDirectories=function(e){return!l.getResolvedProjectReferences()||t&&t.call(l.compilerHost,e)?i.call(l.compilerHost,e):[]});a&&(l.compilerHost.realpath=function(e){var t;return(null===(t=l.getSymlinkCache().getSymlinkedFiles())||void 0===t?void 0:t.get(l.toPath(e)))||a.call(l.compilerHost,e)});return{onProgramCreateComplete:function(){l.compilerHost.fileExists=r,l.compilerHost.directoryExists=t,l.compilerHost.getDirectories=i},fileExists:o,directoryExists:e};function o(e){return!!r.call(l.compilerHost,e)||!!l.getResolvedProjectReferences()&&(!!Bt.isDeclarationFileName(e)&&s(e,!0))}function s(i,a){var e,o=a?function(e){return e=e,void 0!==(e=l.getSourceOfProjectReferenceRedirect(l.toPath(e)))?!Bt.isString(e)||r.call(l.compilerHost,e):void 0}:function(e){return e=e,t=l.toPath(e),r="".concat(t).concat(Bt.directorySeparator),Bt.forEachKey(n,function(e){return t===e||Bt.startsWith(e,r)||Bt.startsWith(t,"".concat(e,"/"))});var t,r},t=o(i);if(void 0!==t)return t;var s=l.getSymlinkCache(),t=s.getSymlinkedDirectories();if(!t)return!1;var c=l.toPath(i);return!!Bt.stringContains(c,Bt.nodeModulesPathPart)&&(!(!a||null===(e=s.getSymlinkedFiles())||void 0===e||!e.has(c))||(Bt.firstDefinedIterator(t.entries(),function(e){var t=e[0],r=e[1];if(r&&Bt.startsWith(c,t)){var n=o(c.replace(t,r.realPath));return a&&n&&(e=Bt.getNormalizedAbsolutePath(i,l.compilerHost.getCurrentDirectory()),s.setSymlinkedFile(c,"".concat(r.real).concat(e.replace(new RegExp(t,"i"),"")))),n}})||!1))}}({compilerHost:R,getSymlinkCache:Rt,useSourceOfProjectReferenceRedirect:ne,toPath:De,getResolvedProjectReferences:Ee,getSourceOfProjectReferenceRedirect:ut,forEachResolvedProjectReference:lt})).onProgramCreateComplete,e=n.fileExists,t=n.directoryExists,ie=R.readFile.bind(R);null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!P});var ae,oe=(r=A,!!(n=P)&&Bt.optionsHaveChanges(n.getCompilerOptions(),r,Bt.sourceFileAffectingCompilerOptions));if(null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","tryReuseStructureFromOldProgram",{}),ae=function(){if(!P)return 0;var e=P.getCompilerOptions();if(Bt.changesAffectModuleResolution(e,A))return 0;var t=P.getRootFileNames();if(!Bt.arrayIsEqualTo(t,N))return 0;if(qt(P.getProjectReferences(),P.getResolvedProjectReferences(),function(e,t,r){r=bt((t?t.commandLine.projectReferences:F)[r]);return e?!r||r.sourceFile!==e.sourceFile||!Bt.arrayIsEqualTo(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r},function(e,t){t=t?dt(t.sourceFile.path).commandLine.projectReferences:F;return!Bt.arrayIsEqualTo(e,t,Bt.projectReferenceIsEqualTo)}))return 0;F&&(H=F.map(bt));var r=[],n=[];if(ae=2,P.getMissingFilePaths().some(function(e){return R.fileExists(e)}))return 0;t=P.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}({});for(var i=new Bt.Map,a=0,o=t;a<o.length;a++){var s=o[a];if(!(C=R.getSourceFileByPath?R.getSourceFileByPath(s.fileName,s.resolvedPath,rt(s.fileName,L,R,A),void 0,oe):R.getSourceFile(s.fileName,rt(s.fileName,L,R,A),void 0,oe)))return 0;Bt.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(P.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 l=P.sourceFileToPackageName.get(s.path);if(void 0!==l){var u=i.get(l),_=c?1:0;if(void 0!==u&&1==_||1===u)return 0;i.set(l,_)}c?(Bt.arrayIsEqualTo(s.libReferenceDirectives,C.libReferenceDirectives,He)||(ae=1),s.hasNoDefaultLib!==C.hasNoDefaultLib&&(ae=1),Bt.arrayIsEqualTo(s.referencedFiles,C.referencedFiles,He)||(ae=1),Xe(C),Bt.arrayIsEqualTo(s.imports,C.imports,Ge)||(ae=1),Bt.arrayIsEqualTo(s.moduleAugmentations,C.moduleAugmentations,Ge)||(ae=1),(6291456&s.flags)!=(6291456&C.flags)&&(ae=1),Bt.arrayIsEqualTo(s.typeReferenceDirectives,C.typeReferenceDirectives,He)||(ae=1),n.push({oldFile:s,newFile:C})):q(s.path)&&(ae=1,n.push({oldFile:s,newFile:C})),r.push(C)}if(2!==ae)return ae;for(var d=n.map(function(e){return e.oldFile}),p=0,f=t;p<f.length;p++){var g=f[p];if(!Bt.contains(d,g))for(var m=0,y=g.ambientModuleNames;m<y.length;m++){var h=y[m];w.set(h,g.fileName)}}for(var v=0,b=n;v<b.length;v++){var x=b[v],s=x.oldFile,D=rr(C=x.newFile),x=Te(D,C);Bt.hasChangesInResolutions(D,x,s.resolvedModules,s,Bt.moduleResolutionIsEqualTo)?(ae=1,C.resolvedModules=Bt.zipToModeAwareCache(C,D,x)):C.resolvedModules=s.resolvedModules;D=C.typeReferenceDirectives,x=he(D,C);Bt.hasChangesInResolutions(D,x,s.resolvedTypeReferenceDirectiveNames,s,Bt.typeDirectiveIsEqualTo)?(ae=1,C.resolvedTypeReferenceDirectiveNames=Bt.zipToModeAwareCache(C,D,x)):C.resolvedTypeReferenceDirectiveNames=s.resolvedTypeReferenceDirectiveNames}if(2!==ae)return ae;if(Bt.changesAffectingProgramStructure(e,A)||null!==(e=R.hasChangedAutomaticTypeDirectiveNames)&&void 0!==e&&e.call(R))return 1;W=P.getMissingFilePaths(),Bt.Debug.assert(r.length===P.getSourceFiles().length);for(var S=0,T=r;S<T.length;S++){var C=T[S];te.set(C.path,C)}return P.getFilesByNameMap().forEach(function(e,t){e?e.path!==t?te.set(t,te.get(e.path)):P.isSourceFileFromExternalLibrary(e)&&M.set(e.path,!0):te.set(t,e)}),k=r,I=P.getFileIncludeReasons(),E=P.getFileProcessingDiagnostics(),O=P.getResolvedTypeReferenceDirectives(),Z=P.sourceFileToPackageName,$=P.redirectTargetsMap,ee=P.usesUriStyleNodeCoreModules,2}(),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),2!==ae){f=[],g=[],F&&(H=H||F.map(bt),N.length&&null!=H&&H.forEach(function(e,t){if(e){var r=Bt.outFile(e.commandLine.options);if(ne){if(r||Bt.getEmitModuleKind(e.commandLine.options)===Bt.ModuleKind.None)for(var n=0,i=e.commandLine.fileNames;n<i.length;n++)$e(c=i[n],{kind:Bt.FileIncludeKind.SourceFromProjectReference,index:t})}else if(r)$e(Bt.changeExtension(r,".d.ts"),{kind:Bt.FileIncludeKind.OutputFromProjectReference,index:t});else if(Bt.getEmitModuleKind(e.commandLine.options)===Bt.ModuleKind.None)for(var a=Bt.memoize(function(){return Bt.getCommonSourceDirectoryOfConfig(e.commandLine,!R.useCaseSensitiveFileNames())}),o=0,s=e.commandLine.fileNames;o<s.length;o++){var c=s[o];Bt.isDeclarationFileName(c)||Bt.fileExtensionIs(c,".json")||$e(Bt.getOutputDeclarationFileName(c,e.commandLine,!R.useCaseSensitiveFileNames(),a),{kind:Bt.FileIncludeKind.OutputFromProjectReference,index:t})}}})),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","processRootFiles",{count:N.length}),Bt.forEach(N,function(e,t){return We(e,!1,!1,{kind:Bt.FileIncludeKind.RootFile,index:t})}),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop();var se=N.length?Bt.getAutomaticTypeDirectiveNames(A,R):Bt.emptyArray;if(se.length){null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","processTypeReferences",{count:se.length});for(var ce=A.configFilePath?Bt.getDirectoryPath(A.configFilePath):R.getCurrentDirectory(),le=he(se,Bt.combinePaths(ce,Bt.inferredTypesContainingFile)),ue=0;ue<se.length;ue++)gt(se[ue],void 0,le[ue],{kind:Bt.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:se[ue],packageId:null===(a=le[ue])||void 0===a?void 0:a.packageId});null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop()}N.length&&!C&&(ce=B(),!A.lib&&ce?We(ce,!0,!1,{kind:Bt.FileIncludeKind.LibFile}):Bt.forEach(A.lib,function(e,t){We(mt(e),!0,!1,{kind:Bt.FileIncludeKind.LibFile,index:t})})),W=Bt.arrayFrom(Bt.mapDefinedIterator(te.entries(),function(e){var t=e[0];return void 0===e[1]?t:void 0})),k=Bt.stableSort(f,function(e,t){return Bt.compareValues(xe(e),xe(t))}).concat(g),g=f=void 0}if(Bt.Debug.assert(!!W),P&&R.onReleaseOldSourceFile){for(var _e=0,de=P.getSourceFiles();_e<de.length;_e++){var pe=de[_e],fe=Ie(pe.resolvedPath);(oe||!fe||pe.resolvedPath===pe.path&&fe.resolvedPath!==pe.path)&&R.onReleaseOldSourceFile(pe,P.getCompilerOptions(),!!Ie(pe.path))}R.getParsedCommandLine||P.forEachResolvedProjectReference(function(e){dt(e.sourceFile.path)||R.onReleaseOldSourceFile(e.sourceFile,P.getCompilerOptions(),!1)})}P&&R.onReleaseParsedCommandLine&&qt(P.getProjectReferences(),P.getResolvedProjectReferences(),function(e,t,r){r=er((null==t?void 0:t.commandLine.projectReferences[r])||P.getProjectReferences()[r]);null!=G&&G.has(De(r))||R.onReleaseParsedCommandLine(r,e,P.getCompilerOptions())}),P=v=void 0;var ge={getRootFileNames:function(){return N},getSourceFile:we,getSourceFileByPath:Ie,getSourceFiles:function(){return k},getMissingFilePaths:function(){return W},getModuleResolutionCache:function(){return L},getFilesByNameMap:function(){return te},getCompilerOptions:function(){return A},getSyntacticDiagnostics:function(e,t){return Oe(e,Le,t)},getOptionsDiagnostics:function(){return Bt.sortAndDeduplicateDiagnostics(Bt.concatenate(J.getGlobalDiagnostics(),function(){if(!A.configFile)return Bt.emptyArray;var t=J.getDiagnostics(A.configFile.fileName);return lt(function(e){t=Bt.concatenate(t,J.getDiagnostics(e.sourceFile.fileName))}),t}()))},getGlobalDiagnostics:function(){return N.length?Bt.sortAndDeduplicateDiagnostics(Fe().getGlobalDiagnostics().slice()):Bt.emptyArray},getSemanticDiagnostics:function(e,t){return Oe(e,Be,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 Re(function(){return Fe().getSuggestionDiagnostics(e,t)})},getDeclarationDiagnostics:function(e,t){var r=ge.getCompilerOptions();return!e||Bt.outFile(r)?Ke(e,t):Oe(e,qe,t)},getBindAndCheckDiagnostics:je,getProgramDiagnostics:Me,getTypeChecker:Fe,getClassifiableNames:function(){if(!l){Fe(),l=new Bt.Set;for(var e=0,t=k;e<t.length;e++){var r=t[e];null!==(r=r.classifiableNames)&&void 0!==r&&r.forEach(function(e){return l.add(e)})}}return l},getCommonSourceDirectory:Se,emit:function(e,t,r,n,i,a){null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("emit","emit",{path:null==e?void 0:e.path},!0);var o=Re(function(){return function(e,t,r,n,i,a,o){if(!o){e=Xt(e,t,r,n);if(e)return e}n=Fe().getEmitResolver(Bt.outFile(A)?void 0:t,n);Bt.performance.mark("beforeEmit");o=Bt.emitFiles(n,Ce(r),t,Bt.getTransformers(A,a,i),i,!1,o);return Bt.performance.mark("afterEmit"),Bt.performance.measure("Emit","beforeEmit","afterEmit"),o}(ge,e,t,r,n,i,a)});return null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),o},getCurrentDirectory:function(){return z},getNodeCount:function(){return Fe().getNodeCount()},getIdentifierCount:function(){return Fe().getIdentifierCount()},getSymbolCount:function(){return Fe().getSymbolCount()},getTypeCount:function(){return Fe().getTypeCount()},getInstantiationCount:function(){return Fe().getInstantiationCount()},getRelationCacheSizes:function(){return Fe().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return E},getResolvedTypeReferenceDirectives:function(){return O},isSourceFileFromExternalLibrary:Ae,isSourceFileDefaultLibrary:function(t){if(!t.isDeclarationFile)return!1;if(t.hasNoDefaultLib)return!0;if(!A.noLib)return!1;var r=R.useCaseSensitiveFileNames()?Bt.equateStringsCaseSensitive:Bt.equateStringsCaseInsensitive;return A.lib?Bt.some(A.lib,function(e){return r(t.fileName,mt(e))}):r(t.fileName,B())},getSourceFileFromReference:function(e,t){return Ye(jt(t.fileName,e.fileName),we)},getLibFileFromReference:function(e){e=Bt.toFileNameLowerCase(e.fileName),e=Bt.libMap.get(e);if(e)return we(mt(e))},sourceFileToPackageName:Z,redirectTargetsMap:$,usesUriStyleNodeCoreModules:ee,isEmittedFile:function(e){if(A.noEmit)return!1;var t=De(e);if(Ie(t))return!1;e=Bt.outFile(A);if(e)return Lt(t,e)||Lt(t,Bt.removeFileExtension(e)+".d.ts");if(A.declarationDir&&Bt.containsPath(A.declarationDir,t,z,!R.useCaseSensitiveFileNames()))return!0;if(A.outDir)return Bt.containsPath(A.outDir,t,z,!R.useCaseSensitiveFileNames());if(Bt.fileExtensionIsOneOf(t,Bt.supportedJSExtensionsFlat)||Bt.isDeclarationFileName(t)){t=Bt.removeFileExtension(t);return!!Ie(t+".ts")||!!Ie(t+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return u||Bt.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t,r){return L&&Bt.resolveModuleNameFromCache(e,t,L,r)},getProjectReferences:function(){return F},getResolvedProjectReferences:Ee,getProjectReferenceRedirect:at,getResolvedProjectReferenceToRedirect:ct,getResolvedProjectReferenceByPath:dt,forEachResolvedProjectReference:lt,isSourceOfProjectReferenceRedirect:_t,emitBuildInfo:function(e){Bt.Debug.assert(!Bt.outFile(A)),null===Bt.tracing||void 0===Bt.tracing||Bt.tracing.push("emit","emitBuildInfo",{},!0),Bt.performance.mark("beforeEmit");e=Bt.emitFiles(Bt.notImplementedResolver,Ce(e),void 0,Bt.noTransformers,!1,!0);return Bt.performance.mark("afterEmit"),Bt.performance.measure("Emit","beforeEmit","afterEmit"),null===Bt.tracing||void 0===Bt.tracing||Bt.tracing.pop(),e},fileExists:e,readFile:ie,directoryExists:t,getSymlinkCache:Rt,realpath:null===(t=R.realpath)||void 0===t?void 0:t.bind(R),useCaseSensitiveFileNames:function(){return R.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return I},structureIsReused:ae,writeFile:ke};return i(),null!=E&&E.forEach(function(e){switch(e.kind){case 1:return J.add(xt(e.file&&Ie(e.file),e.fileProcessingReason,e.diagnostic,e.args||Bt.emptyArray));case 0:var t=Gt(Ie,e.reason),r=t.file,n=t.pos,t=t.end;return J.add(Bt.createFileDiagnostic.apply(void 0,__spreadArray([r,Bt.Debug.checkDefined(n),Bt.Debug.checkDefined(t)-n,e.diagnostic],e.args||Bt.emptyArray,!1)));default:Bt.Debug.assertNever(e)}}),function(){A.strictPropertyInitialization&&!Bt.getStrictOptionValue(A,"strictNullChecks")&&At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),A.exactOptionalPropertyTypes&&!Bt.getStrictOptionValue(A,"strictNullChecks")&&At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),A.isolatedModules&&(A.out&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),A.outFile&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),A.inlineSourceMap&&(A.sourceMap&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),A.mapRoot&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),A.composite&&(!1===A.declaration&&At(Bt.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===A.incremental&&At(Bt.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var e=Bt.outFile(A);if(A.tsBuildInfoFile?Bt.isIncrementalCompilation(A)||At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!A.incremental||e||A.configFilePath||J.add(Bt.createCompilerDiagnostic(Bt.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),function(){var o=A.suppressOutputPathCheck?void 0:Bt.getTsBuildInfoEmitOutputFilePath(A);qt(F,H,function(e,t,r){var n,i=(t?t.commandLine.projectReferences:F)[r],a=t&&t.sourceFile;e?((n=e.commandLine.options).composite&&!n.noEmit||(t?t.commandLine.fileNames:N).length&&(n.composite||Pt(a,r,Bt.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),n.noEmit&&Pt(a,r,Bt.Diagnostics.Referenced_project_0_may_not_disable_emit,i.path)),i.prepend&&((e=Bt.outFile(n))?R.fileExists(e)||Pt(a,r,Bt.Diagnostics.Output_file_0_from_project_1_does_not_exist,e,i.path):Pt(a,r,Bt.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)),!t&&o&&o===Bt.getTsBuildInfoEmitOutputFilePath(n)&&(Pt(a,r,Bt.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,o,i.path),V.set(De(o),!0))):Pt(a,r,Bt.Diagnostics.File_0_not_found,i.path)})}(),A.composite)for(var t=new Bt.Set(N.map(De)),r=0,n=k;r<n.length;r++){var i=n[r];Bt.sourceFileMayBeEmitted(i,ge)&&!t.has(i.path)&&St(i,Bt.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,A.configFilePath||""])}if(A.paths)for(var a in A.paths)if(Bt.hasProperty(A.paths,a))if(Bt.hasZeroOrOneAsteriskCharacter(a)||Ct(!0,a,Bt.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a),Bt.isArray(A.paths[a])){var o=A.paths[a].length;0===o&&Ct(!1,a,Bt.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(var s=0;s<o;s++){var c=A.paths[a][s],l=typeof c;"string"==l?(Bt.hasZeroOrOneAsteriskCharacter(c)||Tt(a,s,Bt.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,c,a),A.baseUrl||Bt.pathIsRelative(c)||Bt.pathIsAbsolute(c)||Tt(a,s,Bt.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Tt(a,s,Bt.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,c,a,l)}}else Ct(!1,a,Bt.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,a);A.sourceMap||A.inlineSourceMap||(A.inlineSources&&At(Bt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),A.sourceRoot&&At(Bt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),A.out&&A.outFile&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!A.mapRoot||A.sourceMap||A.declarationMap||At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),A.declarationDir&&(Bt.getEmitDeclarations(A)||At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",A.out?"out":"outFile")),A.declarationMap&&!Bt.getEmitDeclarations(A)&&At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),A.lib&&A.noLib&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),A.noImplicitUseStrict&&Bt.getStrictOptionValue(A,"alwaysStrict")&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var u,_,d,p=Bt.getEmitScriptTarget(A),f=Bt.find(k,function(e){return Bt.isExternalModule(e)&&!e.isDeclarationFile});function g(e,t){var r,n;e&&(n=De(e),te.has(n)&&(r=void 0,A.configFilePath||(r=Bt.chainDiagnosticMessages(void 0,Bt.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=Bt.chainDiagnosticMessages(r,Bt.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Mt(e,Bt.createCompilerDiagnosticFromMessageChain(r))),n=R.useCaseSensitiveFileNames()?n:Bt.toFileNameLowerCase(n),t.has(n)?Mt(e,Bt.createCompilerDiagnostic(Bt.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(n))}A.isolatedModules?(A.module===Bt.ModuleKind.None&&p<2&&At(Bt.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===A.preserveConstEnums&&At(Bt.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules"),(u=Bt.find(k,function(e){return!Bt.isExternalModule(e)&&!Bt.isSourceFileJS(e)&&!e.isDeclarationFile&&6!==e.scriptKind}))&&(_=Bt.getErrorSpanForNode(u,u),J.add(Bt.createFileDiagnostic(u,_.start,_.length,Bt.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,Bt.getBaseFileName(u.fileName))))):f&&p<2&&A.module===Bt.ModuleKind.None&&(_=Bt.getErrorSpanForNode(f,"boolean"==typeof f.externalModuleIndicator?f:f.externalModuleIndicator),J.add(Bt.createFileDiagnostic(f,_.start,_.length,Bt.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))),e&&!A.emitDeclarationOnly&&(A.module&&A.module!==Bt.ModuleKind.AMD&&A.module!==Bt.ModuleKind.System?At(Bt.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,A.out?"out":"outFile","module"):void 0===A.module&&f&&(_=Bt.getErrorSpanForNode(f,"boolean"==typeof f.externalModuleIndicator?f:f.externalModuleIndicator),J.add(Bt.createFileDiagnostic(f,_.start,_.length,Bt.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,A.out?"out":"outFile")))),A.resolveJsonModule&&(Bt.getEmitModuleResolutionKind(A)!==Bt.ModuleResolutionKind.NodeJs&&Bt.getEmitModuleResolutionKind(A)!==Bt.ModuleResolutionKind.Node16&&Bt.getEmitModuleResolutionKind(A)!==Bt.ModuleResolutionKind.NodeNext?At(Bt.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):Bt.hasJsonModuleEmitEnabled(A)||At(Bt.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),(A.outDir||A.rootDir||A.sourceRoot||A.mapRoot)&&(_=Se(),A.outDir&&""===_&&k.some(function(e){return 1<Bt.getRootLength(e.fileName)})&&At(Bt.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")),A.useDefineForClassFields&&0===p&&At(Bt.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),A.checkJs&&!Bt.getAllowJSCompilerOption(A)&&J.add(Bt.createCompilerDiagnostic(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),A.emitDeclarationOnly&&(Bt.getEmitDeclarations(A)||At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),A.noEmit&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),A.emitDecoratorMetadata&&!A.experimentalDecorators&&At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),A.jsxFactory?(A.reactNamespace&&At(Bt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==A.jsx&&5!==A.jsx||At(Bt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Bt.inverseJsxOptionMap.get(""+A.jsx)),Bt.parseIsolatedEntityName(A.jsxFactory,p)||Ft("jsxFactory",Bt.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFactory)):A.reactNamespace&&!Bt.isIdentifierText(A.reactNamespace,p)&&Ft("reactNamespace",Bt.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,A.reactNamespace),A.jsxFragmentFactory&&(A.jsxFactory||At(Bt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==A.jsx&&5!==A.jsx||At(Bt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Bt.inverseJsxOptionMap.get(""+A.jsx)),Bt.parseIsolatedEntityName(A.jsxFragmentFactory,p)||Ft("jsxFragmentFactory",Bt.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFragmentFactory)),A.reactNamespace&&(4!==A.jsx&&5!==A.jsx||At(Bt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Bt.inverseJsxOptionMap.get(""+A.jsx))),A.jsxImportSource&&2===A.jsx&&At(Bt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Bt.inverseJsxOptionMap.get(""+A.jsx)),A.preserveValueImports&&Bt.getEmitModuleKind(A)<Bt.ModuleKind.ES2015&&Ft("importsNotUsedAsValues",Bt.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),A.noEmit||A.suppressOutputPathCheck||(p=Ce(),d=new Bt.Set,Bt.forEachEmittedFile(p,function(e){A.emitDeclarationOnly||g(e.jsFilePath,d),g(e.declarationFilePath,d)}))}(),Bt.performance.mark("afterProgram"),Bt.performance.measure("Program","beforeProgram","afterProgram"),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),ge;function me(e,t){if(L)for(var r=Bt.getNormalizedAbsolutePath(t.originalFileName,z),n=Bt.isString(t)?void 0:t.impliedNodeFormat,i=Bt.getDirectoryPath(r),a=ve(t),o=0,s=0,c=e;s<c.length;s++){var l=c[s],u="string"==typeof l?Ut(t,o):Kt(l,n),l="string"==typeof l?l:l.fileName;o++,Bt.isExternalModuleNameRelative(l)||function(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];J.add(n)}}(null===(u=L.getOrCreateCacheForModuleName(l,u,a).get(i))||void 0===u?void 0:u.resolutionDiagnostics)}}function ye(e,t,r){if(!e.length)return Bt.emptyArray;var n=Bt.getNormalizedAbsolutePath(t.originalFileName,z),i=ve(t);null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","resolveModuleNamesWorker",{containingFileName:n}),Bt.performance.mark("beforeResolveModule");i=x(e,t,n,r,i);return Bt.performance.mark("afterResolveModule"),Bt.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),me(e,t),i}function he(e,t){if(!e.length)return[];var r=Bt.isString(t)?t:Bt.getNormalizedAbsolutePath(t.originalFileName,z),n=Bt.isString(t)?void 0:ve(t),t=Bt.isString(t)?void 0:t.impliedNodeFormat;null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:r}),Bt.performance.mark("beforeResolveTypeReference");t=S(e,r,n,t);return Bt.performance.mark("afterResolveTypeReference"),Bt.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),t}function ve(e){var t=ct(e.originalFileName);if(t||!Bt.isDeclarationFileName(e.originalFileName))return t;t=be(e.path);if(t)return t;if(R.realpath&&A.preserveSymlinks&&Bt.stringContains(e.originalFileName,Bt.nodeModulesPathPart)){t=De(R.realpath(e.originalFileName));return t===e.path?void 0:be(t)}}function be(r){var e=ut(r);return Bt.isString(e)?ct(e):e?lt(function(e){var t=Bt.outFile(e.commandLine.options);if(t)return De(t)===r?e:void 0}):void 0}function xe(e){if(Bt.containsPath(j,e.fileName,!1)){e=Bt.getBaseFileName(e.fileName);if("lib.d.ts"===e||"lib.es6.d.ts"===e)return 0;e=Bt.removeSuffix(Bt.removePrefix(e,"lib."),".d.ts"),e=Bt.libs.indexOf(e);if(-1!==e)return e+1}return Bt.libs.length+2}function De(e){return Bt.toPath(e,z,ht)}function Se(){var t;return void 0===s&&(t=Bt.filter(k,function(e){return Bt.sourceFileMayBeEmitted(e,ge)}),s=Bt.getCommonSourceDirectory(A,function(){return Bt.mapDefined(t,function(e){return e.isDeclarationFile?void 0:e.fileName})},z,ht,function(e){return function(e,t){for(var r=!0,n=R.getCanonicalFileName(Bt.getNormalizedAbsolutePath(t,z)),i=0,a=e;i<a.length;i++){var o=a[i];o.isDeclarationFile||0!==R.getCanonicalFileName(Bt.getNormalizedAbsolutePath(o.fileName,z)).indexOf(n)&&(St(o,Bt.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[o.fileName,t]),r=!1)}return r}(t,e)})),s}function Te(e,t){if(0===ae&&!t.ambientModuleNames.length)return ye(e,t,void 0);var r,n,i,a=P&&P.getSourceFile(t.fileName);if(a!==t&&t.resolvedModules){for(var o=[],s=0,c=0,l=e;c<l.length;c++){var u=l[c],_=t.resolvedModules.get(u,Ut(t,s));s++,o.push(_)}return o}for(var d={},s=0;s<e.length;s++){u=e[s];if(t===a&&!q(a.path)){var p=Bt.getResolvedModule(a,u,Ut(a,s));if(p){Bt.isTraceEnabled(A,R)&&Bt.trace(R,p.packageId?Bt.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Bt.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,u,Bt.getNormalizedAbsolutePath(t.originalFileName,z),p.resolvedFileName,p.packageId&&Bt.packageIdToString(p.packageId)),(n=n||new Array(e.length))[s]=p,(i=i||[]).push(u);continue}}p=!1;Bt.contains(t.ambientModuleNames,u)?(p=!0,Bt.isTraceEnabled(A,R)&&Bt.trace(R,Bt.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,Bt.getNormalizedAbsolutePath(t.originalFileName,z))):p=function(e,t){if(t>=Bt.length(null==a?void 0:a.imports)+Bt.length(null==a?void 0:a.moduleAugmentations))return!1;var r=Bt.getResolvedModule(a,e,a&&Ut(a,t)),t=r&&P.getSourceFile(r.resolvedFileName);if(r&&t)return!1;t=w.get(e);if(!t)return!1;Bt.isTraceEnabled(A,R)&&Bt.trace(R,Bt.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,t);return!0}(u,s),p?(n=n||new Array(e.length))[s]=d:(r=r||[]).push(u)}var f=r&&r.length?ye(r,t,i):Bt.emptyArray;if(!n)return Bt.Debug.assert(f.length===e.length),f;for(var g=0,s=0;s<n.length;s++)n[s]?n[s]===d&&(n[s]=void 0):(n[s]=f[g],g++);return Bt.Debug.assert(g===f.length),n}function Ce(e){return{getPrependNodes:Ne,getCanonicalFileName:ht,getCommonSourceDirectory:ge.getCommonSourceDirectory,getCompilerOptions:ge.getCompilerOptions,getCurrentDirectory:function(){return z},getNewLine:function(){return R.getNewLine()},getSourceFile:ge.getSourceFile,getSourceFileByPath:ge.getSourceFileByPath,getSourceFiles:ge.getSourceFiles,getLibFileFromReference:ge.getLibFileFromReference,isSourceFileFromExternalLibrary:Ae,getResolvedProjectReferenceToRedirect:ct,getProjectReferenceRedirect:at,isSourceOfProjectReferenceRedirect:_t,getSymlinkCache:Rt,writeFile:e||ke,isEmitBlocked:Pe,readFile:function(e){return R.readFile(e)},fileExists:function(e){var t=De(e);return!!Ie(t)||!Bt.contains(W,t)&&R.fileExists(e)},useCaseSensitiveFileNames:function(){return R.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return ge.getProgramBuildInfo&&ge.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return ge.getSourceFileFromReference(e,t)},redirectTargetsMap:$,getFileIncludeReasons:ge.getFileIncludeReasons}}function ke(e,t,r,n,i,a){R.writeFile(e,t,r,n,i,a)}function Ee(){return H}function Ne(){return $t(F,function(e,t){return null===(t=H[t])||void 0===t?void 0:t.commandLine},function(e){var t=De(e),e=Ie(t);return e?e.text:te.has(t)?void 0:R.readFile(t)})}function Ae(e){return!!M.get(e.path)}function Fe(){return c=c||Bt.createTypeChecker(ge)}function Pe(e){return V.has(De(e))}function we(e){return Ie(De(e))}function Ie(e){return te.get(e)||void 0}function Oe(e,t,r){return e?t(e,r):Bt.sortAndDeduplicateDiagnostics(Bt.flatMap(ge.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),t(e,r)}))}function Me(e){var t;if(Bt.skipTypeChecking(e,A,ge))return Bt.emptyArray;var r=J.getDiagnostics(e.fileName);return null!==(t=e.commentDirectives)&&void 0!==t&&t.length?ze(e,e.commentDirectives,r).diagnostics:r}function Le(e){return Bt.isSourceFileJS(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(c=e,Re(function(){var a=[];return e(c,c),Bt.forEachChildRecursively(c,e,function(e,t){t.decorators!==e||A.experimentalDecorators||a.push(s(t,Bt.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 257:case 226:case 169:case 171:case 172:case 173:case 213:case 256:case 214:if(e===t.typeParameters)return a.push(o(e,Bt.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 237: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 85:if(t)continue;case 123:case 121:case 122:case 145:case 135:case 126:case 159:case 101:case 144:a.push(s(i,Bt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,Bt.tokenToString(i.kind)))}}}(t.modifiers,237===t.kind),"skip";break;case 167:if(e!==t.modifiers)break;for(var r=0,n=e;r<n.length;r++){var i=n[r];124!==i.kind&&a.push(s(i,Bt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,Bt.tokenToString(i.kind)))}return"skip";case 164:if(e===t.modifiers)return a.push(o(e,Bt.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 208:case 209:case 228:case 279:case 280:case 210:if(e===t.typeArguments)return a.push(o(e,Bt.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}),a;function e(e,t){switch(t.kind){case 164:case 167:case 169:if(t.questionToken===e)return a.push(s(e,Bt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 168:case 171:case 172:case 173:case 213:case 256:case 214:case 254:if(t.type===e)return a.push(s(e,Bt.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 267:if(e.isTypeOnly)return a.push(s(t,Bt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 272:if(e.isTypeOnly)return a.push(s(e,Bt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 270:case 275:if(e.isTypeOnly)return a.push(s(e,Bt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Bt.isImportSpecifier(e)?"import...type":"export...type")),"skip";break;case 265:return a.push(s(e,Bt.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 271:if(e.isExportEquals)return a.push(s(e,Bt.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 291:if(117===e.token)return a.push(s(e,Bt.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 258:var r=Bt.tokenToString(118);return Bt.Debug.assertIsDefined(r),a.push(s(e,Bt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 261:var n=16&e.flags?Bt.tokenToString(142):Bt.tokenToString(141);return Bt.Debug.assertIsDefined(n),a.push(s(e,Bt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,n)),"skip";case 259:return a.push(s(e,Bt.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 260:n=Bt.Debug.checkDefined(Bt.tokenToString(92));return a.push(s(e,Bt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,n)),"skip";case 230:return a.push(s(e,Bt.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 229:return a.push(s(e.type,Bt.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 211:Bt.Debug.fail()}}function o(e,t,r,n,i){var a=e.pos;return Bt.createFileDiagnostic(c,a,e.end-a,t,r,n,i)}function s(e,t,r,n,i){return Bt.createDiagnosticForNodeInSourceFile(c,e,t,r,n,i)}}))),Bt.concatenate(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics;var c}function Re(e){try{return e()}catch(e){throw e instanceof Bt.OperationCanceledException&&(c=void 0),e}}function Be(e,t){return Bt.concatenate(Yt(je(e,t),A),Me(e))}function je(e,t){return Ve(e,t,_,Je)}function Je(a,o){return Re(function(){if(Bt.skipTypeChecking(a,A,ge))return Bt.emptyArray;var e=Fe();Bt.Debug.assert(!!a.bindDiagnostics);var t=(1===a.scriptKind||2===a.scriptKind)&&Bt.isCheckJsEnabledForFile(a,A),r=Bt.isPlainJsFile(a,A.checkJs),n=!(!!a.checkJsDirective&&!1===a.checkJsDirective.enabled)&&(3===a.scriptKind||4===a.scriptKind||5===a.scriptKind||r||t||7===a.scriptKind),i=n?a.bindDiagnostics:Bt.emptyArray,e=n?e.getDiagnostics(a,o):Bt.emptyArray;return r&&(i=Bt.filter(i,function(e){return Bt.plainJSErrors.has(e.code)}),e=Bt.filter(e,function(e){return Bt.plainJSErrors.has(e.code)})),function(e,t){for(var r,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=Bt.flatten(n);if(!t||null===(r=e.commentDirectives)||void 0===r||!r.length)return a;for(var a=ze(e,e.commentDirectives,a),o=a.diagnostics,a=a.directives,s=0,c=a.getUnusedExpectations();s<c.length;s++){var l=c[s];o.push(Bt.createDiagnosticForRange(e,l.range,Bt.Diagnostics.Unused_ts_expect_error_directive))}return o}(a,n&&!r,i,e,t?a.jsDocDiagnostics:void 0)})}function ze(e,t,r){var n=Bt.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=Bt.getLineStarts(r),i=Bt.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 Ke(e,t){return Ve(e,t,d,Ue)}function Ue(t,r){return Re(function(){var e=Fe().getEmitResolver(t,r);return Bt.getDeclarationDiagnostics(Ce(Bt.noop),e,t)||Bt.emptyArray})}function Ve(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 Bt.Map)).set(e.path,t):r.allDiagnostics=t,t}function qe(e,t){return e.isDeclarationFile?[]:Ke(e,t)}function We(e,t,r,n){Ze(Bt.normalizePath(e),t,r,void 0,n)}function He(e,t){return e.fileName===t.fileName}function Ge(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Qe(e,t){var r=Bt.factory.createStringLiteral(e),e=Bt.factory.createImportDeclaration(void 0,void 0,void 0,r,void 0);return Bt.addEmitFlags(e,67108864),Bt.setParent(r,e),Bt.setParent(e,t),r.flags&=-9,e.flags&=-9,r}function Xe(s){if(!s.imports){var c,l,u,e,a=Bt.isSourceFileJS(s),_=Bt.isExternalModule(s);!A.isolatedModules&&!_||s.isDeclarationFile||(A.importHelpers&&(c=[Qe(Bt.externalHelpersModuleNameText,s)]),(e=Bt.getJSXRuntimeImport(Bt.getJSXImplicitImportBase(A,s),A))&&(c=c||[]).push(Qe(e,s)));for(var t=0,r=s.statements;t<r.length;t++)!function e(t,r){if(Bt.isAnyImportOrReExport(t)){var n=Bt.getExternalModuleName(t);!(n&&Bt.isStringLiteral(n)&&n.text)||r&&Bt.isExternalModuleNameRelative(n.text)||(Bt.setParentRecursive(t,!1),c=Bt.append(c,n),ee||0!==y||s.isDeclarationFile||(ee=Bt.startsWith(n.text,"node:")))}else if(Bt.isModuleDeclaration(t)&&Bt.isAmbientModule(t)&&(r||Bt.hasSyntacticModifier(t,2)||s.isDeclarationFile)){t.name.parent=t;var n=Bt.getTextOfIdentifierOrLiteral(t.name);if(_||r&&!Bt.isExternalModuleNameRelative(n))(l=l||[]).push(t.name);else if(!r){s.isDeclarationFile&&(u=u||[]).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);(2097152&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&&Bt.hasJSDocNodes(n)&&Bt.forEach(n.jsDoc,r)||Bt.forEachChild(n,r);if(!i)return n;n=i}}(e,t.lastIndex);a&&Bt.isRequireCall(r,!0)||Bt.isImportCall(r)&&1<=r.arguments.length&&Bt.isStringLiteralLike(r.arguments[0])?(Bt.setParentRecursive(r,!1),c=Bt.append(c,r.arguments[0])):Bt.isLiteralImportTypeNode(r)&&(Bt.setParentRecursive(r,!1),c=Bt.append(c,r.argument.literal))}}(s),s.imports=c||Bt.emptyArray,s.moduleAugmentations=l||Bt.emptyArray,s.ambientModuleNames=u||Bt.emptyArray}}function Ye(t,r,e,n){if(Bt.hasExtension(t)){var i=R.getCanonicalFileName(t);if(A.allowNonTsExtensions||Bt.forEach(Bt.flatten(U),function(e){return Bt.fileExtensionIs(i,e)})){var a=r(t);return e&&(a?Wt(n)&&i===R.getCanonicalFileName(Ie(n.file).fileName)&&e(Bt.Diagnostics.A_file_cannot_have_a_reference_to_itself):(n=at(t))?e(Bt.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,n,t):e(Bt.Diagnostics.File_0_not_found,t)),a}e&&(Bt.hasJSFileExtension(i)?e(Bt.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):e(Bt.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+Bt.flatten(K).join("', '")+"'"))}else{a=A.allowNonTsExtensions&&r(t);if(a)return a;if(!e||!A.allowNonTsExtensions){a=Bt.forEach(K[0],function(e){return r(t+e)});return e&&!a&&e(Bt.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+Bt.flatten(K).join("', '")+"'"),a}e(Bt.Diagnostics.File_0_not_found,t)}}function Ze(e,t,r,n,i){Ye(e,function(e){return tt(e,t,r,i,n)},function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Dt(void 0,i,e,t)},i)}function $e(e,t){return Ze(e,!1,!1,void 0,t),0}function et(e,t,r){!Wt(r)&&Bt.some(I.get(t.path),Wt)?Dt(t,r,Bt.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Dt(t,r,Bt.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function tt(e,t,r,n,i){null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Bt.FileIncludeKind[n.kind]});i=function(t,e,r,n,i){var a=De(t);if(ne){var o,s=ut(a);if(!s&&R.realpath&&A.preserveSymlinks&&Bt.isDeclarationFileName(t)&&Bt.stringContains(t,Bt.nodeModulesPathPart)&&((o=De(R.realpath(t)))!==a&&(s=ut(o))),s){var c=Bt.isString(s)?tt(s,e,r,n,i):void 0;return c&&it(c,a,void 0),c}}var l,s=t;if(te.has(a)){var u=te.get(a);return nt(u||void 0,n),u&&A.forceConsistentCasingInFileNames&&(De(p=u.fileName)!==De(t)&&(t=at(t)||t),c=Bt.getNormalizedAbsolutePathWithoutRoot(p,z),p=Bt.getNormalizedAbsolutePathWithoutRoot(t,z),c!==p&&et(t,u,n)),u&&M.get(u.path)&&0===y?(M.set(u.path,!1),A.noResolve||(pt(u,e),ft(u)),A.noLib||yt(u),h.set(u.path,!1),vt(u)):u&&h.get(u.path)&&y<m&&(h.set(u.path,!1),vt(u)),u||void 0}if(Wt(n)&&!ne){var _=ot(t);if(_){if(Bt.outFile(_.commandLine.options))return;var d=st(_,t);l=De(t=d)}}var p=R.getSourceFile(t,rt(t,L,R,A),function(e){return Dt(void 0,n,Bt.Diagnostics.Cannot_read_file_0_Colon_1,[t,e])},oe);if(i){u=Bt.packageIdToString(i),_=Y.get(u);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},M.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,a,De(t),s);return $.add(_.path,t),it(d,a,l),nt(d,n),Z.set(a,Bt.packageIdToPackageName(i)),g.push(d),d}p&&(Y.set(u,p),Z.set(a,Bt.packageIdToPackageName(i)))}it(p,a,l),p&&(M.set(a,0<y),p.fileName=t,p.path=a,p.resolvedPath=De(t),p.originalFileName=s,nt(p,n),R.useCaseSensitiveFileNames()&&(s=Bt.toFileNameLowerCase(a),(a=re.get(s))?et(t,a,n):re.set(s,p)),C=C||p.hasNoDefaultLib&&!r,A.noResolve||(pt(p,e),ft(p)),A.noLib||yt(p),vt(p),(e?f:g).push(p));return p}(e,t,r,n,i);return null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop(),i}function rt(e,t,r,n){r=Qt(De(e),null==t?void 0:t.getPackageJsonInfoCache(),r,n);return{languageVersion:Bt.getEmitScriptTarget(n),impliedNodeFormat:r,setExternalModuleIndicator:Bt.getSetExternalModuleIndicator(n)}}function nt(e,t){e&&I.add(e.path,t)}function it(e,t,r){r?(te.set(r,e),te.set(t,e||!1)):te.set(t,e)}function at(e){var t=ot(e);return t&&st(t,e)}function ot(e){if(H&&H.length&&!Bt.isDeclarationFileName(e)&&!Bt.fileExtensionIs(e,".json"))return ct(e)}function st(e,t){var r=Bt.outFile(e.commandLine.options);return r?Bt.changeExtension(r,".d.ts"):Bt.getOutputDeclarationFileName(t,e.commandLine,!R.useCaseSensitiveFileNames())}function ct(e){void 0===Q&&(Q=new Bt.Map,lt(function(t){De(A.configFilePath)!==t.sourceFile.path&&t.commandLine.fileNames.forEach(function(e){return Q.set(De(e),t.sourceFile.path)})}));e=Q.get(De(e));return e&&dt(e)}function lt(e){return Bt.forEachResolvedProjectReference(H,e)}function ut(e){if(Bt.isDeclarationFileName(e))return void 0===X&&(X=new Bt.Map,lt(function(r){var n,e=Bt.outFile(r.commandLine.options);e?(e=Bt.changeExtension(e,".d.ts"),X.set(De(e),!0)):(n=Bt.memoize(function(){return Bt.getCommonSourceDirectoryOfConfig(r.commandLine,!R.useCaseSensitiveFileNames())}),Bt.forEach(r.commandLine.fileNames,function(e){var t;Bt.isDeclarationFileName(e)||Bt.fileExtensionIs(e,".json")||(t=Bt.getOutputDeclarationFileName(e,r.commandLine,!R.useCaseSensitiveFileNames(),n),X.set(De(t),e))}))})),X.get(e)}function _t(e){return ne&&!!ct(e)}function dt(e){if(G)return G.get(e)||void 0}function pt(r,n){Bt.forEach(r.referencedFiles,function(e,t){Ze(jt(e.fileName,r.fileName),n,!1,void 0,{kind:Bt.FileIncludeKind.ReferenceFile,file:r.path,index:t})})}function ft(e){var t=e.typeReferenceDirectives;if(t)for(var r=he(t,e),n=0;n<t.length;n++){var i=e.typeReferenceDirectives[n],a=r[n],o=Bt.toFileNameLowerCase(i.fileName);Bt.setResolvedTypeReferenceDirective(e,o,a);var s=i.resolutionMode||e.impliedNodeFormat;s&&Bt.getEmitModuleResolutionKind(A)!==Bt.ModuleResolutionKind.Node16&&Bt.getEmitModuleResolutionKind(A)!==Bt.ModuleResolutionKind.NodeNext&&J.add(Bt.createDiagnosticForRange(e,i,Bt.Diagnostics.Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),gt(o,s,a,{kind:Bt.FileIncludeKind.TypeReferenceDirective,file:e.path,index:n})}}function gt(e,t,r,n){var i,a,o,s;null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.push("program","processTypeReferenceDirective",{directive:e,hasResolved:!0,refKind:n.kind,refPath:Wt(n)?n.file:void 0}),i=e,a=t,o=r,s=n,(e=O.get(i,a))&&e.primary||(t=!0,o?(o.isExternalLibraryImport&&y++,!o.primary&&e?(o.resolvedFileName!==e.resolvedFileName&&(r=R.readFile(o.resolvedFileName),n=we(e.resolvedFileName),r!==n.text&&Dt(n,s,Bt.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[i,o.resolvedFileName,e.resolvedFileName])),t=!1):Ze(o.resolvedFileName,!1,!1,o.packageId,s),o.isExternalLibraryImport&&y--):Dt(void 0,s,Bt.Diagnostics.Cannot_find_type_definition_file_for_0,[i]),t&&O.set(i,a,o)),null!==Bt.tracing&&void 0!==Bt.tracing&&Bt.tracing.pop()}function mt(e){for(var t=e.split("."),r=t[1],n=2;t[n]&&"d"!==t[n];)r+=(2===n?"/":"-")+t[n],n++;var i=Bt.combinePaths(z,"__lib_node_modules_lookup_".concat(e,"__.ts")),i=Bt.resolveModuleName("@typescript/lib-"+r,i,{moduleResolution:Bt.ModuleResolutionKind.NodeJs},R,L);return null!=i&&i.resolvedModule?i.resolvedModule.resolvedFileName:Bt.combinePaths(j,e)}function yt(i){Bt.forEach(i.libReferenceDirectives,function(e,t){var r=Bt.toFileNameLowerCase(e.fileName),n=Bt.libMap.get(r);n?We(mt(n),!0,!0,{kind:Bt.FileIncludeKind.LibReferenceDirective,file:i.path,index:t}):(e=Bt.removeSuffix(Bt.removePrefix(r,"lib."),".d.ts"),e=(n=Bt.getSpellingSuggestion(e,Bt.libs,Bt.identity))?Bt.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:Bt.Diagnostics.Cannot_find_lib_definition_for_0,(E=E||[]).push({kind:0,reason:{kind:Bt.FileIncludeKind.LibReferenceDirective,file:i.path,index:t},diagnostic:e,args:[r,n]}))})}function ht(e){return R.getCanonicalFileName(e)}function vt(e){var t;if(Xe(e),e.imports.length||e.moduleAugmentations.length){var r=rr(e),n=Te(r,e);Bt.Debug.assert(n.length===r.length);for(var i=(!ne||null===(t=ve(e))||void 0===t?void 0:t.commandLine.options)||A,a=0;a<r.length;a++){var o,s,c,l,u=n[a];Bt.setResolvedModule(e,r[a],u,Ut(e,a)),u&&(o=u.isExternalLibraryImport,l=!Bt.resolutionExtensionIsTSOrJson(u.extension),c=o&&l,s=u.resolvedFileName,o&&y++,c=c&&m<y,l=s&&!tr(i,u)&&!i.noResolve&&a<e.imports.length&&!c&&!(l&&!Bt.getAllowJSCompilerOption(i))&&(Bt.isInJSFile(e.imports[a])||!(8388608&e.imports[a].flags)),c?h.set(e.path,!0):l&&tt(s,!1,!1,{kind:Bt.FileIncludeKind.Import,file:e.path,index:a},u.packageId),o&&y--)}}else e.resolvedModules=void 0}function bt(e){G=G||new Bt.Map;var t,r=er(e),n=De(r),e=G.get(n);if(void 0!==e)return e||void 0;if(R.getParsedCommandLine){if(!(t=R.getParsedCommandLine(r)))return it(void 0,n,void 0),void G.set(n,!1);i=Bt.Debug.checkDefined(t.options.configFile),Bt.Debug.assert(!i.path||i.path===n),it(i,n,void 0)}else{e=Bt.getNormalizedAbsolutePath(Bt.getDirectoryPath(r),R.getCurrentDirectory());if(it(i=R.getSourceFile(r,100),n,void 0),void 0===i)return void G.set(n,!1);t=Bt.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 G.set(n,i),t.projectReferences&&(i.references=t.projectReferences.map(bt)),i}function xt(e,t,r,n){var i,a,o=Wt(t)?t:void 0;e&&null!==(c=I.get(e.path))&&void 0!==c&&c.forEach(l),t&&l(t),o&&1===(null==i?void 0:i.length)&&(i=void 0);var s=o&&Gt(Ie,o),c=i&&Bt.chainDiagnosticMessages(i,Bt.Diagnostics.The_file_is_in_the_program_because_Colon),e=e&&Bt.explainIfFileIsRedirect(e),n=Bt.chainDiagnosticMessages.apply(void 0,__spreadArray([e?c?__spreadArray([c],e,!0):e:c,r],n||Bt.emptyArray,!1));return s&&Ht(s)?Bt.createFileDiagnosticFromMessageChain(s.file,s.pos,s.end-s.pos,n,a):Bt.createCompilerDiagnosticFromMessageChain(n,a);function l(e){(i=i||[]).push(Bt.fileIncludeReasonToDiagnostics(ge,e)),!o&&Wt(e)?o=e:o!==e&&(a=Bt.append(a,function(e){if(Wt(e)){var t,r=Gt(Ie,e);switch(e.kind){case Bt.FileIncludeKind.Import:t=Bt.Diagnostics.File_is_included_via_import_here;break;case Bt.FileIncludeKind.ReferenceFile:t=Bt.Diagnostics.File_is_included_via_reference_here;break;case Bt.FileIncludeKind.TypeReferenceDirective:t=Bt.Diagnostics.File_is_included_via_type_library_reference_here;break;case Bt.FileIncludeKind.LibReferenceDirective:t=Bt.Diagnostics.File_is_included_via_library_reference_here;break;default:Bt.Debug.assertNever(e)}return Ht(r)?Bt.createFileDiagnostic(r.file,r.pos,r.end-r.pos,t):void 0}if(!A.configFile)return;var n,i;switch(e.kind){case Bt.FileIncludeKind.RootFile:if(!A.configFile.configFileSpecs)return;var a=Bt.getNormalizedAbsolutePath(N[e.index],z),o=Bt.getMatchedFileSpec(ge,a);if(o){n=Bt.getTsConfigPropArrayElementValue(A.configFile,"files",o),i=Bt.Diagnostics.File_is_matched_by_files_list_specified_here;break}var s=Bt.getMatchedIncludeSpec(ge,a);if(!s)return;n=Bt.getTsConfigPropArrayElementValue(A.configFile,"include",s),i=Bt.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case Bt.FileIncludeKind.SourceFromProjectReference:case Bt.FileIncludeKind.OutputFromProjectReference:var c=Bt.Debug.checkDefined(null==H?void 0:H[e.index]),a=qt(F,H,function(e,t,r){return e===c?{sourceFile:(null==t?void 0:t.sourceFile)||A.configFile,index:r}:void 0});if(!a)return;var s=a.sourceFile,l=a.index,a=Bt.firstDefined(Bt.getTsConfigPropArray(s,"references"),function(e){return Bt.isArrayLiteralExpression(e.initializer)?e.initializer:void 0});return a&&a.elements.length>l?Bt.createDiagnosticForNodeInSourceFile(s,a.elements[l],e.kind===Bt.FileIncludeKind.OutputFromProjectReference?Bt.Diagnostics.File_is_output_from_referenced_project_specified_here:Bt.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case Bt.FileIncludeKind.AutomaticTypeDirectiveFile:if(!A.types)return;n=Nt("types",e.typeReference),i=Bt.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case Bt.FileIncludeKind.LibFile:if(void 0!==e.index){n=Nt("lib",A.lib[e.index]),i=Bt.Diagnostics.File_is_library_specified_here;break}l=Bt.forEachEntry(Bt.targetOptionDeclaration.type,function(e,t){return e===Bt.getEmitScriptTarget(A)?t:void 0});n=l?function(e,t){e=kt(e);return e&&Bt.firstDefined(e,function(e){return Bt.isStringLiteral(e.initializer)&&e.initializer.text===t?e.initializer:void 0})}("target",l):void 0,i=Bt.Diagnostics.File_is_default_library_for_target_specified_here;break;default:Bt.Debug.assertNever(e)}return n&&Bt.createDiagnosticForNodeInSourceFile(A.configFile,n,i)}(e))),e===t&&(t=void 0)}}function Dt(e,t,r,n){(E=E||[]).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function St(e,t,r){J.add(xt(e,void 0,t,r))}function Tt(e,t,r,n,i,a){for(var o=!0,s=0,c=Et();s<c.length;s++){var l=c[s];if(Bt.isObjectLiteralExpression(l.initializer))for(var u=0,_=Bt.getPropertyAssignment(l.initializer,e);u<_.length;u++){var d=_[u].initializer;Bt.isArrayLiteralExpression(d)&&d.elements.length>t&&(J.add(Bt.createDiagnosticForNodeInSourceFile(A.configFile,d.elements[t],r,n,i,a)),o=!1)}}o&&J.add(Bt.createCompilerDiagnostic(r,n,i,a))}function Ct(e,t,r,n){for(var i=!0,a=0,o=Et();a<o.length;a++){var s=o[a];Bt.isObjectLiteralExpression(s.initializer)&&Ot(s.initializer,e,t,void 0,r,n)&&(i=!1)}i&&J.add(Bt.createCompilerDiagnostic(r,n))}function kt(e){var t=It();return t&&Bt.getPropertyAssignment(t,e)}function Et(){return kt("paths")||Bt.emptyArray}function Nt(e,t){var r=It();return r&&Bt.getPropertyArrayElementValue(r,e,t)}function At(e,t,r,n){wt(!0,t,r,e,t,r,n)}function Ft(e,t,r,n){wt(!1,e,void 0,t,r,n)}function Pt(e,t,r,n,i){var a=Bt.firstDefined(Bt.getTsConfigPropArray(e||A.configFile,"references"),function(e){return Bt.isArrayLiteralExpression(e.initializer)?e.initializer:void 0});a&&a.elements.length>t?J.add(Bt.createDiagnosticForNodeInSourceFile(e||A.configFile,a.elements[t],r,n,i)):J.add(Bt.createCompilerDiagnostic(r,n,i))}function wt(e,t,r,n,i,a,o){var s=It();s&&Ot(s,e,t,r,n,i,a,o)||J.add(Bt.createCompilerDiagnostic(n,i,a,o))}function It(){if(void 0===p){p=!1;var e=Bt.getTsConfigObjectLiteralExpression(A.configFile);if(e)for(var t=0,r=Bt.getPropertyAssignment(e,"compilerOptions");t<r.length;t++){var n=r[t];if(Bt.isObjectLiteralExpression(n.initializer)){p=n.initializer;break}}}return p||void 0}function Ot(e,t,r,n,i,a,o,s){for(var n=Bt.getPropertyAssignment(e,r,n),c=0,l=n;c<l.length;c++){var u=l[c];J.add(Bt.createDiagnosticForNodeInSourceFile(A.configFile,t?u.name:u.initializer,i,a,o,s))}return n.length}function Mt(e,t){V.set(De(e),!0),J.add(t)}function Lt(e,t){return 0===Bt.comparePaths(e,t,z,!R.useCaseSensitiveFileNames())}function Rt(){return R.getSymlinkCache?R.getSymlinkCache():(o=o||Bt.createSymlinkCache(z,ht),k&&O&&!o.hasProcessedResolutions()&&o.setSymlinksFromResolutions(k,O),o)}},Bt.emitSkippedWithNoDiagnostics={diagnostics:Bt.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},Bt.handleNoEmitOptions=Xt,Bt.filterSemanticDiagnostics=Yt,Bt.parseConfigHostFromCompilerHostLike=Zt,Bt.createPrependNodes=$t,Bt.resolveProjectReferencePath=er,Bt.getResolutionDiagnostic=tr,Bt.getModuleNameStringLiteralAt=y}(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 g(){return function e(r,o,n){var s={clone:function(){return e(new b.Map(r),new b.Map(o),n&&new b.Set(n))},forEach:function(e){return r.forEach(e)},getKeys:function(e){return o.get(e)},getValues:function(e){return r.get(e)},hasKey:function(e){return r.has(e)},keys:function(){return r.keys()},deletedKeys:function(){return n},deleteKey:function(t){(n=n||new b.Set).add(t);var e=r.get(t);return!!e&&(e.forEach(function(e){return c(o,e,t)}),r.delete(t),!0)},set:function(i,t){null!=n&&n.delete(i);var a=r.get(i);return r.set(i,t),null!=a&&a.forEach(function(e){t.has(e)||c(o,e,i)}),t.forEach(function(e){var t,r,n;null!=a&&a.has(e)||(r=e,n=i,(e=(t=o).get(r))||(e=new b.Set,t.set(r,e)),e.add(n))}),s},clear:function(){r.clear(),o.clear(),null!=n&&n.clear()}};return s}(new b.Map,new b.Map,void 0)}function c(e,t,r){var n=e.get(t);return!(null==n||!n.delete(r))&&(n.size||e.delete(t),!0)}function x(e){return b.mapDefined(e.declarations,function(e){return null===(e=b.getSourceFileOfNode(e))||void 0===e?void 0:e.resolvedPath})}function D(e,t,r,n){return b.toPath(e.getProjectReferenceRedirect(t)||t,r,n)}function m(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));null!=s&&s.forEach(v)}var c=b.getDirectoryPath(i.resolvedPath);if(i.referencedFiles&&0<i.referencedFiles.length)for(var l=0,u=i.referencedFiles;l<u.length;l++){var _=u[l];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];y.declarations&&1<y.declarations.length&&h(y)}return n;function h(e){if(e.declarations)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 y(e,t){return t&&!t.referencedMap==!e}function l(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,s){if(void 0===s&&(s=e.useFileVersionAsSignature),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 c=e.fileInfos.get(r.resolvedPath);if(!c)return b.Debug.fail();var l,u,_,c=c.signature;return r.isDeclarationFile||s||(l=d(t,r,!0,i,void 0,!0),(u=b.firstOrUndefined(l.outputFiles))&&(b.Debug.assert(b.isDeclarationFileName(u.name),"File extension for signature expected to be dts",function(){return"Found: ".concat(b.getAnyExtensionFromPath(u.name)," for ").concat(u.name,":: All output files: ").concat(JSON.stringify(l.outputFiles.map(function(e){return e.name})))}),_=(a||b.generateDjb2Hash)(u.text),o&&_!==c&&f(r,l.exportedModulesFromDeclarationEmit,o))),void 0===_&&(_=r.version,o&&_!==c&&((e=e.referencedMap?e.referencedMap.getValues(r.resolvedPath):void 0)?o.set(r.resolvedPath,e):o.deleteKey(r.resolvedPath))),n.set(r.resolvedPath,_),_!==c}function f(e,t,r){var n;t?(t.forEach(function(e){null!=(e=x(e))&&e.length&&(n=n||new b.Set,e.forEach(function(e){return n.add(e)}))}),n?r.set(e.resolvedPath,n):r.deleteKey(e.resolvedPath)):r.deleteKey(e.resolvedPath)}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 h(e,t){t=e.referencedMap.getKeys(t);return t?b.arrayFrom(t.keys()):[]}function v(e){return t=e,b.some(t.moduleAugmentations,function(e){return b.isGlobalScopeAugmentation(e.parent)})||!b.isExternalOrCommonJsModule(e)&&!b.isJsonSourceFile(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 S(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={})).createManyToManyPathMap=g,e.canReuseOldState=y,e.create=function(e,t,r,n){var i=new b.Map,a=e.getCompilerOptions().module!==b.ModuleKind.None?g():void 0,o=a?g():void 0,s=new b.Set,c=y(a,r);e.getTypeChecker();for(var l=0,u=e.getSourceFiles();l<u.length;l++){var _,d=u[l],p=b.Debug.checkDefined(d.version,"Program intended to be used with Builder should have source files with versions set"),f=c?r.fileInfos.get(d.resolvedPath):void 0;a&&((_=m(e,d,t))&&a.set(d.resolvedPath,_),!c||(_=r.exportedModulesMap.getValues(d.resolvedPath))&&o.set(d.resolvedPath,_)),i.set(d.resolvedPath,{version:p,signature:f&&f.signature,affectsGlobalScope:v(d)||void 0,impliedFormat:d.impliedNodeFormat})}return{fileInfos:i,referencedMap:a,exportedModulesMap:o,hasCalledUpdateShapeSignature:s,useFileVersionAsSignature:!n&&!c}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.clone=function(e){var t;return{fileInfos:new b.Map(e.fileInfos),referencedMap:null===(t=e.referencedMap)||void 0===t?void 0:t.clone(),exportedModulesMap:null===(t=e.exportedModulesMap)||void 0===t?void 0:t.clone(),hasCalledUpdateShapeSignature:new b.Set(e.hasCalledUpdateShapeSignature),useFileVersionAsSignature:e.useFileVersionAsSignature}},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(v(r))return S(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 l=h(e,r.resolvedPath);for(;0<l.length;){var u,_=l.pop();c.has(_)||(u=t.getSourceFileByPath(_),c.set(_,u),u&&p(e,t,u,n,i,a,o)&&l.push.apply(l,h(e,u.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 S(e,t,r)})(e,t,r,s,n,i,o),a||l(e,s),o):[r]:b.emptyArray},e.updateSignaturesFromCache=l,e.updateSignatureOfFile=n,e.updateShapeSignature=p,e.updateExportedModules=f,e.updateExportedFilesMapFromCache=function(r,e){var t;e&&(b.Debug.assert(!!r.exportedModulesMap),null!==(t=e.deletedKeys())&&void 0!==t&&t.forEach(function(e){return r.exportedModulesMap.deleteKey(e)}),e.forEach(function(e,t){return r.exportedModulesMap.set(t,e)}))},e.getAllDependencies=function(e,r,t){var n=r.getCompilerOptions();if(b.outFile(n))return u(e,r);if(!e.referencedMap||v(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.getValues(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=h,e.getAllFilesExcludingDefaultLibraryFile=S}(ts=ts||{}),function(T){var y,e;function o(a,o,s,e){var c=T.BuilderState.create(a,o,s,e),t=(c.program=a).getCompilerOptions();c.compilerOptions=t,T.outFile(t)||(c.semanticDiagnosticsPerFile=new T.Map),c.changedFilesSet=new T.Set;var r,l=T.BuilderState.canReuseOldState(c.referencedMap,s),e=l?s.compilerOptions:void 0,u=l&&s.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!T.compilerOptionsAffectSemanticDiagnostics(t,e);l&&(s.currentChangedFilePath||(r=s.currentAffectedFilesSignatures,T.Debug.assert(!(s.affectedFiles||r&&r.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")),r=s.changedFilesSet,u&&T.Debug.assert(!r||!T.forEachKey(r,function(e){return s.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),null!=r&&r.forEach(function(e){return c.changedFilesSet.add(e)}),!T.outFile(t)&&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=l?s.referencedMap:void 0,p=u&&!t.skipLibCheck==!e.skipLibCheck,f=p&&!t.skipDefaultLibCheck==!e.skipDefaultLibCheck;return c.fileInfos.forEach(function(e,t){var r,n,i;!l||!(r=s.fileInfos.get(t))||r.version!==e.version||(e=n=_&&_.getValues(t),i=d&&d.getValues(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):u&&((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)))}),l&&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)}):e&&!T.outFile(t)&&T.compilerOptionsAffectEmit(t,e)&&(a.getSourceFiles().forEach(function(e){return w(c,e.resolvedPath,1)}),T.Debug.assert(!c.seenAffectedFiles||!c.seenAffectedFiles.size),c.seenAffectedFiles=c.seenAffectedFiles||new T.Set),l&&T.forEachEntry(s.fileInfos,function(e,t){c.fileInfos.has(t)&&c.fileInfos.get(t).impliedFormat!==e.impliedFormat&&c.changedFilesSet.add(t)}),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 h(e,t){T.Debug.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function l(e,t,r,n){for(var i,a,o,s,c,l;;){var u=e.affectedFiles;if(u){for(var _=e.seenAffectedFiles,d=e.affectedFilesIndex;d<u.length;){var p=u[d];if(!_.has(p.resolvedPath))return e.affectedFilesIndex=d,o=t,s=r,c=n,l=void 0,D(i=e,(a=p).resolvedPath),i.allFilesExcludingDefaultLibraryFile===i.affectedFiles?(b(i),T.BuilderState.updateShapeSignature(i,T.Debug.checkDefined(i.program),a,T.Debug.checkDefined(i.currentAffectedFilesSignatures),o,s,i.currentAffectedFilesExportedModulesMap)):(T.Debug.assert(i.hasCalledUpdateShapeSignature.has(a.resolvedPath)||(null===(l=i.currentAffectedFilesSignatures)||void 0===l?void 0:l.has(a.resolvedPath)),"Signature not updated for affected file: ".concat(a.fileName)),i.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(t,e,r,n,i){if(t.exportedModulesMap&&t.changedFilesSet.has(e.resolvedPath)&&S(t,e.resolvedPath)){if(t.compilerOptions.isolatedModules){var a=new T.Map;a.set(e.resolvedPath,!0);for(var o=T.BuilderState.getReferencedByPaths(t,e.resolvedPath);0<o.length;){var s=o.pop();if(!a.has(s)){if(a.set(s,!0),k(t,s,r,n,i))return;x(t,s,r,n,i),S(t,s)&&(s=T.Debug.checkDefined(t.program).getSourceFileByPath(s),o.push.apply(o,T.BuilderState.getReferencedByPaths(t,s.resolvedPath)))}}}T.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var c=new T.Set;C(t,e.resolvedPath,function(e){if(k(t,e,r,n,i))return!0;e=t.referencedMap.getKeys(e);return e&&T.forEachKey(e,function(e){return function t(r,e,n,i,a,o){if(!T.tryAddToSet(n,e))return;if(k(r,e,i,a,o))return!0;x(r,e,i,a,o);T.Debug.assert(!!r.currentAffectedFilesExportedModulesMap);C(r,e,function(e){return t(r,e,n,i,a,o)});null!==(e=r.referencedMap.getKeys(e))&&void 0!==e&&e.forEach(function(e){return!n.has(e)&&x(r,e,i,a,o)});return}(t,e,c,r,n,i)})})}}(i,a,o,s,c)),p;d++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,T.BuilderState.updateSignaturesFromCache(e,e.currentAffectedFilesSignatures),e.currentAffectedFilesSignatures.clear(),T.BuilderState.updateExportedFilesMapFromCache(e,e.currentAffectedFilesExportedModulesMap),null!==(m=e.currentAffectedFilesExportedModulesMap)&&void 0!==m&&m.clear(),e.affectedFiles=void 0}var f=e.changedFilesSet.keys().next();if(f.done)return;var g=T.Debug.checkDefined(e.program),m=g.getCompilerOptions();if(T.outFile(m))return T.Debug.assert(!e.semanticDiagnosticsPerFile),g;e.currentAffectedFilesSignatures||(e.currentAffectedFilesSignatures=new T.Map),e.exportedModulesMap&&(e.currentAffectedFilesExportedModulesMap||(e.currentAffectedFilesExportedModulesMap=T.BuilderState.createManyToManyPathMap())),e.affectedFiles=T.BuilderState.getFilesAffectedBy(e,g,f.value,t,r,e.currentAffectedFilesSignatures,e.currentAffectedFilesExportedModulesMap),e.currentChangedFilePath=f.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new T.Set)}}function v(e){e.affectedFilesPendingEmit=void 0,e.affectedFilesPendingEmitKind=void 0,e.affectedFilesPendingEmitIndex=void 0}function b(t){var r,n;t.cleanedDiagnosticsOfLibFiles||(t.cleanedDiagnosticsOfLibFiles=!0,r=T.Debug.checkDefined(t.program),n=r.getCompilerOptions(),T.forEach(r.getSourceFiles(),function(e){return r.isSourceFileDefaultLibrary(e)&&!T.skipTypeChecking(e,n,r)&&D(t,e.resolvedPath)}))}function x(e,t,r,n,i){var a,o;D(e,t),e.changedFilesSet.has(t)||(o=(a=T.Debug.checkDefined(e.program)).getSourceFileByPath(t))&&(T.BuilderState.updateShapeSignature(e,a,o,T.Debug.checkDefined(e.currentAffectedFilesSignatures),r,n,e.currentAffectedFilesExportedModulesMap,!i.disableUseFileVersionAsSignature),T.getEmitDeclarations(e.compilerOptions)&&w(e,t,0))}function D(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function S(e,t){return T.Debug.checkDefined(e.currentAffectedFilesSignatures).get(t)!==T.Debug.checkDefined(e.fileInfos.get(t)).signature}function C(r,e,n){var t=r.currentAffectedFilesExportedModulesMap.getKeys(e),i=t&&T.forEachKey(t,n);return i||(t=r.exportedModulesMap.getKeys(e))&&T.forEachKey(t,function(e){var t;return r.currentAffectedFilesExportedModulesMap.hasKey(e)||null!==(t=r.currentAffectedFilesExportedModulesMap.deletedKeys())&&void 0!==t&&t.has(e)?void 0:n(e)})}function k(t,e,r,n,i){return null!==(e=t.fileInfos.get(e))&&void 0!==e&&e.affectsGlobalScope&&(T.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(function(e){return x(t,e.resolvedPath,r,n,i)}),b(t),1)}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 E(e,t,r){return c(e,r),{result:t,affected:r}}function N(e,t,r,n,i,a){return c(e,r,n,i,a),{result:t,affected:r}}function A(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.filterSemanticDiagnostics(i,e.compilerOptions)}r=T.Debug.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(n,r);return T.filterSemanticDiagnostics(r,e.compilerOptions)}(e,t,r),T.Debug.checkDefined(e.program).getProgramDiagnostics(t))}function F(n,t){if(!T.outFile(n.compilerOptions)){var i,a,e,r,o,s,c=T.Debug.checkDefined(n.program).getCurrentDirectory(),l=T.getDirectoryPath(T.getNormalizedAbsolutePath(T.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),c)),u=[],_=new T.Map,d=T.arrayFrom(n.fileInfos.entries(),function(e){var t=e[0],r=e[1],e=D(t);T.Debug.assert(u[e-1]===x(t));e=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(t),t=null!=e?e:r.signature;return r.version===t?r.affectsGlobalScope||r.impliedFormat?{version:r.version,signature:void 0,affectsGlobalScope:r.affectsGlobalScope,impliedFormat:r.impliedFormat}:r.version:void 0!==t?void 0===e?r:{version:r.version,signature:e,affectsGlobalScope:r.affectsGlobalScope,impliedFormat:r.impliedFormat}:{version:r.version,signature:!1,affectsGlobalScope:r.affectsGlobalScope,impliedFormat:r.impliedFormat}});if(n.referencedMap&&(e=T.arrayFrom(n.referencedMap.keys()).sort(T.compareStringsCaseSensitive).map(function(e){return[D(e),S(n.referencedMap.getValues(e))]})),n.exportedModulesMap&&(r=T.mapDefined(T.arrayFrom(n.exportedModulesMap.keys()).sort(T.compareStringsCaseSensitive),function(e){if(n.currentAffectedFilesExportedModulesMap){if(null!==(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())&&void 0!==t&&t.has(e))return;var t=n.currentAffectedFilesExportedModulesMap.getValues(e);if(t)return[D(e),S(t)]}return[D(e),S(n.exportedModulesMap.getValues(e))]})),n.semanticDiagnosticsPerFile)for(var p=0,f=T.arrayFrom(n.semanticDiagnosticsPerFile.keys()).sort(T.compareStringsCaseSensitive);p<f.length;p++){var g=f[p],m=n.semanticDiagnosticsPerFile.get(g);(o=o||[]).push(m.length?[D(g),n.hasReusableDiagnostic?m:function(e,r){return T.Debug.assert(!!e.length),e.map(function(e){var t=P(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 P(e,r)}):[]:void 0,t})}(m,x)]:D(g))}if(n.affectedFilesPendingEmit)for(var y=new T.Set,h=0,v=n.affectedFilesPendingEmit.slice(n.affectedFilesPendingEmitIndex).sort(T.compareStringsCaseSensitive);h<v.length;h++){var b=v[h];T.tryAddToSet(y,b)&&(s=s||[]).push([D(b),n.affectedFilesPendingEmitKind.get(b)])}return{fileNames:u,fileInfos:d,options:function(e,t){for(var r,n=T.getOptionsNameMap().optionsNameMap,i=0,a=T.getOwnKeys(e).sort(T.compareStringsCaseSensitive);i<a.length;i++){var o=a[i],s=o.toLowerCase(),c=n.get(s);(null!=c&&c.affectsEmit||null!=c&&c.affectsSemanticDiagnostics||"strict"===s||"skiplibcheck"===s||"skipdefaultlibcheck"===s)&&((r=r||{})[o]=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}(c,e[o],t))}return r}(n.compilerOptions,function(e){return x(T.getNormalizedAbsolutePath(e,c))}),fileIdsList:i,referencedMap:e,exportedModulesMap:r,semanticDiagnosticsPerFile:o,affectedFilesPendingEmit:s}}function x(e){return T.ensurePathIsNonModuleName(T.getRelativePathFromDirectory(l,e,t))}function D(e){var t=_.get(e);return void 0===t&&(u.push(x(e)),_.set(e,t=u.length)),t}function S(e){var t=T.arrayFrom(e.keys(),D).sort(T.compareValues),r=t.join(),e=null==a?void 0:a.get(r);return void 0===e&&((i=i||[]).push(t),(a=a||new T.Map).set(r,e=i.length)),e}}function P(e,t){var r=e.file;return __assign(__assign({},e),{file:r?t(r.resolvedPath):void 0})}function w(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 _(e){return T.isString(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:T.isString(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function I(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=y=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(_,e){var t=e.newProgram,d=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(d.useCaseSensitiveFileNames()),u=T.maybeBind(d,d.createHash),p=o(t,a,e,d.disableUseFileVersionAsSignature);t.getProgramBuildInfo=function(){return F(p,a)},e=r=t=void 0;var f=I(e=function(){return p},n);return f.getState=e,f.backupState=function(){var e,t,r;T.Debug.assert(void 0===i),e=p,(r=T.BuilderState.clone(e)).semanticDiagnosticsPerFile=e.semanticDiagnosticsPerFile&&new T.Map(e.semanticDiagnosticsPerFile),r.changedFilesSet=new T.Set(e.changedFilesSet),r.affectedFiles=e.affectedFiles,r.affectedFilesIndex=e.affectedFilesIndex,r.currentChangedFilePath=e.currentChangedFilePath,r.currentAffectedFilesSignatures=e.currentAffectedFilesSignatures&&new T.Map(e.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=null===(t=e.currentAffectedFilesExportedModulesMap)||void 0===t?void 0:t.clone(),r.seenAffectedFiles=e.seenAffectedFiles&&new T.Set(e.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=e.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=e.semanticDiagnosticsFromOldState&&new T.Set(e.semanticDiagnosticsFromOldState),r.program=e.program,r.compilerOptions=e.compilerOptions,r.affectedFilesPendingEmit=e.affectedFilesPendingEmit&&e.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=e.affectedFilesPendingEmitKind&&new T.Map(e.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=e.affectedFilesPendingEmitIndex,r.seenEmittedFiles=e.seenEmittedFiles&&new T.Map(e.seenEmittedFiles),r.programEmitComplete=e.programEmitComplete,i=r},f.restoreState=function(){p=T.Debug.checkDefined(i),i=void 0},f.getAllDependencies=function(e){return T.BuilderState.getAllDependencies(p,T.Debug.checkDefined(p.program),e)},f.getSemanticDiagnostics=function(e,t){h(p,e);var r,n=T.Debug.checkDefined(p.program).getCompilerOptions();if(T.outFile(n))return T.Debug.assert(!p.semanticDiagnosticsPerFile),T.Debug.checkDefined(p.program).getSemanticDiagnostics(e,t);if(e)return A(p,e,t);for(;s(t););for(var i=0,a=T.Debug.checkDefined(p.program).getSourceFiles();i<a.length;i++){var o=a[i];r=T.addRange(r,A(p,o,t))}return r||T.emptyArray},f.emit=function(e,t,r,n,i){_===y.EmitAndSemanticDiagnosticsBuilderProgram&&h(p,e);var a=T.handleNoEmitOptions(f,e,t,r);if(a)return a;if(!e){if(_===y.EmitAndSemanticDiagnosticsBuilderProgram){for(var o=[],s=!1,c=void 0,l=[],u=void 0;u=g(t,r,n,i);)s=s||u.result.emitSkipped,c=T.addRange(c,u.result.diagnostics),l=T.addRange(l,u.result.emittedFiles),o=T.addRange(o,u.result.sourceMaps);return{emitSkipped:s,diagnostics:c||T.emptyArray,emittedFiles:l,sourceMaps:o}}null!==(a=p.affectedFilesPendingEmitKind)&&void 0!==a&&a.size&&(T.Debug.assert(_===y.SemanticDiagnosticsBuilderProgram),n&&!T.every(p.affectedFilesPendingEmit,function(e,t){return t<p.affectedFilesPendingEmitIndex||0===p.affectedFilesPendingEmitKind.get(e)})||v(p))}return T.Debug.checkDefined(p.program).emit(e,T.outFile(p.compilerOptions)||!T.getEmitDeclarations(p.compilerOptions)||i?t||T.maybeBind(d,d.writeFile):m(t),r,n,i)},f.releaseProgram=function(){var e;e=p,T.BuilderState.releaseCache(e),e.program=void 0,i=void 0},_===y.SemanticDiagnosticsBuilderProgram?f.getSemanticDiagnosticsOfNextAffectedFile=s:_===y.EmitAndSemanticDiagnosticsBuilderProgram?(f.getSemanticDiagnosticsOfNextAffectedFile=s,f.emitNextAffectedFile=g,f.emitBuildInfo=function(e,t){if(p.buildInfoEmitPending){t=T.Debug.checkDefined(p.program).emitBuildInfo(e||T.maybeBind(d,d.writeFile),t);return p.buildInfoEmitPending=!1,t}return T.emitSkippedWithNoDiagnostics}):T.notImplemented(),f;function g(e,t,r,n){var i=l(p,t,u,d),a=1,o=!1;if(!i)if(T.outFile(p.compilerOptions)){var s=T.Debug.checkDefined(p.program);if(p.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}}}v(e)}}(p);if(!c){if(!p.buildInfoEmitPending)return;s=T.Debug.checkDefined(p.program);return N(p,s.emitBuildInfo(e||T.maybeBind(d,d.writeFile),t),s,1,!1,!0)}i=c.affectedFile,a=c.emitKind,o=!0}return N(p,T.Debug.checkDefined(p.program).emit(i===p.program?void 0:i,i!==p.program&&T.getEmitDeclarations(p.compilerOptions)&&!n?m(e):e||T.maybeBind(d,d.writeFile),t,r||0===a,n),i,a,o)}function m(l){return function(e,t,r,n,i,a){var o,s,c;T.isDeclarationFileName(e)&&(T.Debug.assert(1===(null==i?void 0:i.length)),o=i[0],s=p.fileInfos.get(o.resolvedPath),((null===(c=p.currentAffectedFilesSignatures)||void 0===c?void 0:c.get(o.resolvedPath))||s.signature)!==o.version||(c=(u||T.generateDjb2Hash)(void 0!==(null==a?void 0:a.sourceMapUrlPos)?t.substring(0,a.sourceMapUrlPos):t))!==o.version&&(d.storeFilesChangingSignatureDuringEmit&&(p.filesChangingSignature||(p.filesChangingSignature=new T.Set)).add(o.resolvedPath),p.exportedModulesMap&&T.BuilderState.updateExportedModules(o,o.exportedModulesFromDeclarationEmit,p.currentAffectedFilesExportedModulesMap||(p.currentAffectedFilesExportedModulesMap=T.BuilderState.createManyToManyPathMap())),p.affectedFiles&&p.affectedFilesIndex<p.affectedFiles.length?p.currentAffectedFilesSignatures.set(o.resolvedPath,c):(s.signature=c,p.exportedModulesMap&&T.BuilderState.updateExportedFilesMapFromCache(p,p.currentAffectedFilesExportedModulesMap)))),l?l(e,t,r,n,i,a):(d.writeFile?d:p.program).writeFile(e,t,r,n,i,a)}}function s(e,t){for(;;){var r=l(p,e,u,d);if(!r)return;if(r===p.program)return E(p,p.program.getSemanticDiagnostics(void 0,e),r);if((_===y.EmitAndSemanticDiagnosticsBuilderProgram||p.compilerOptions.noEmit||p.compilerOptions.noEmitOnError)&&w(p,r.resolvedPath,1),!t||!t(r))return E(p,A(p,r,e),r);c(p,r)}}},T.toBuilderStateFileInfo=_,T.createBuildProgramUsingProgramBuildInfo=function(e,t,r){var n=T.getDirectoryPath(T.getNormalizedAbsolutePath(t,r.getCurrentDirectory())),i=T.createGetCanonicalFileName(r.useCaseSensitiveFileNames()),a=e.fileNames.map(function(e){return T.toPath(e,n,i)}),o=null===(r=e.fileIdsList)||void 0===r?void 0:r.map(function(e){return new T.Set(e.map(l))}),s=new T.Map;e.fileInfos.forEach(function(e,t){return s.set(l(t+1),_(e))});var c={fileInfos:s,compilerOptions:e.options?T.convertToOptionsWithAbsolutePaths(e.options,function(e){return T.getNormalizedAbsolutePath(e,n)}):{},referencedMap:u(e.referencedMap),exportedModulesMap:u(e.exportedModulesMap),semanticDiagnosticsPerFile:e.semanticDiagnosticsPerFile&&T.arrayToMap(e.semanticDiagnosticsPerFile,function(e){return l(T.isNumber(e)?e:e[0])},function(e){return T.isNumber(e)?T.emptyArray:e[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:T.map(e.affectedFilesPendingEmit,function(e){return l(e[0])}),affectedFilesPendingEmitKind:e.affectedFilesPendingEmit&&T.arrayToMap(e.affectedFilesPendingEmit,function(e){return l(e[0])},function(e){return e[1]}),affectedFilesPendingEmitIndex:e.affectedFilesPendingEmit&&0};return{getState:function(){return c},backupState:T.noop,restoreState:T.noop,getProgram:T.notImplemented,getProgramOrUndefined:T.returnUndefined,releaseProgram:T.noop,getCompilerOptions:function(){return c.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 l(e){return a[e-1]}function u(e){if(e){var r=T.BuilderState.createManyToManyPathMap();return e.forEach(function(e){var t=e[0],e=e[1];return r.set(l(t),o[e-1])}),r}}},T.createRedirectedBuilderProgram=I}(ts=ts||{}),function(s){s.createSemanticDiagnosticsBuilderProgram=function(e,t,r,n,i,a){return s.createBuilderProgram(s.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,s.getBuilderCreationParameters(e,t,r,n,i,a))},s.createEmitAndSemanticDiagnosticsBuilderProgram=function(e,t,r,n,i,a){return s.createBuilderProgram(s.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,s.getBuilderCreationParameters(e,t,r,n,i,a))},s.createAbstractBuilder=function(e,t,r,n,i,a){var o=(a=s.getBuilderCreationParameters(e,t,r,n,i,a)).newProgram,a=a.configFileParsingDiagnostics;return s.createRedirectedBuilderProgram(function(){return{program:o,compilerOptions:o.getCompilerOptions()}},a)}}(ts=ts||{}),function(te){function re(t){return te.endsWith(t,"/node_modules/.staging")?te.removeSuffix(t,"/.staging"):te.some(te.ignoredPaths,function(e){return te.stringContains(t,e)})?void 0:t}function ne(e){var t=te.getRootLength(e);if(e.length===t)return!1;var r=e.indexOf(te.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(te.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(te.directorySeparator,a)+1))return!1;return!0}te.removeIgnoredPath=re,te.canWatchDirectory=ne,te.createResolutionCache=function(M,e,a){var L,l,t,r,n,i,R=te.createMultiMap(),u=[],B=te.createMultiMap(),_=!1,o=te.memoize(function(){return M.getCurrentDirectory()}),s=M.getCachedDirectoryStructureHost(),c=new te.Map,d=te.createCacheWithRedirects(),p=te.createCacheWithRedirects(),f=te.createModuleResolutionCache(o(),M.getCanonicalFileName,void 0,d,p),g=new te.Map,m=te.createCacheWithRedirects(),y=te.createTypeReferenceDirectiveResolutionCache(o(),M.getCanonicalFileName,void 0,f.getPackageJsonInfoCache(),m),h=[".ts",".tsx",".js",".jsx",".json"],v=new te.Map,b=new te.Map,x=e&&te.removeTrailingDirectorySeparator(te.getNormalizedAbsolutePath(e,o())),D=x&&M.toPath(x),S=void 0!==D?D.split(te.directorySeparator).length:0,T=new te.Map;return{getModuleResolutionCache:function(){return f},startRecordingFilesWithChangedResolutions:function(){L=[]},finishRecordingFilesWithChangedResolutions:function(){var e=L;return L=void 0,e},startCachingPerDirectoryResolution:N,finishCachingPerDirectoryResolution:function(){t=void 0,N(),b.forEach(function(e,t){0===e.refCount&&(b.delete(t),e.watcher.close())}),_=!1},resolveModuleNames:function(e,t,r,n,i){return F({names:e,containingFile:t,redirectedReference:n,cache:c,perDirectoryCacheWithRedirects:d,loader:J,getResolutionWithResolvedFileName:C,shouldRetryResolution:function(e){return!e.resolvedModule||!te.resolutionExtensionIsTSOrJson(e.resolvedModule.extension)},reusedNames:r,logChanges:a,containingSourceFile:i})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t,r){t=c.get(M.toPath(t));return t?t.get(e,r):void 0},resolveTypeReferenceDirectives:function(e,t,r,n){return F({names:e,containingFile:t,redirectedReference:r,cache:g,perDirectoryCacheWithRedirects:m,loader:A,getResolutionWithResolvedFileName:k,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective},containingSourceFileMode:n})},removeResolutionsFromProjectReferenceRedirects:function(e){if(!te.fileExtensionIs(e,".json"))return;var t=M.getCurrentProgram();if(!t)return;e=t.getResolvedProjectReferenceByPath(e);if(!e)return;e.commandLine.fileNames.forEach(function(e){return H(M.toPath(e))})},removeResolutionsOfFile:H,hasChangedAutomaticTypeDirectiveNames:function(){return _},invalidateResolutionOfFile:function(e){H(e);var t=_;G(B.get(e),te.returnTrue)&&_&&!t&&M.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:X,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){te.Debug.assert(t===e||void 0===t),t=e},createHasInvalidatedResolution:function(e){if(X(),e)return l=void 0,te.returnTrue;var t=l;return l=void 0,function(e){return!!t&&t.has(e)||j(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:j,updateTypeRootsWatch:function(){var e=M.getCompilationSettings();if(e.types)return void Z();e=te.getEffectiveTypeRoots(e,{directoryExists:ee,getCurrentDirectory:o});e?te.mutateMap(T,te.arrayToMap(e,function(e){return M.toPath(e)}),{createNewValue:$,onDeleteValue:te.closeFileWatcher}):Z()},closeTypeRootsWatch:Z,clear:function(){te.clearMap(b,te.closeFileWatcherOf),v.clear(),R.clear(),Z(),c.clear(),g.clear(),B.clear(),u.length=0,r=void 0,n=void 0,i=void 0,N(),_=!1}};function C(e){return e.resolvedModule}function k(e){return e.resolvedTypeReferenceDirective}function E(e,t){return!(void 0===e||t.length<=e.length)&&(te.startsWith(t,e)&&t[e.length]===te.directorySeparator)}function j(e){if(!t)return!1;e=t.get(e);return!!e&&!!e.length}function N(){f.clear(),y.clear(),R.forEach(K),R.clear()}function J(e,t,r,n,i,a,o){i=te.resolveModuleName(e,t,r,n,f,i,o);if(!M.getGlobalCache)return i;var o=M.getGlobalCache();if(!(void 0===o||te.isExternalModuleNameRelative(e)||i.resolvedModule&&te.extensionIsTS(i.resolvedModule.extension))){n=te.loadModuleFromGlobalCache(te.Debug.checkDefined(M.globalCacheResolutionModuleName)(e),M.projectName,r,n,o,f),o=n.resolvedModule,n=n.failedLookupLocations;if(o)return i.resolvedModule=o,(o=i.failedLookupLocations).push.apply(o,n),i}return i}function A(e,t,r,n,i,a,o){return te.resolveTypeReferenceDirective(e,t,r,n,i,y,o)}function F(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,l=e.reusedNames,u=e.logChanges,_=e.containingSourceFile,d=e.containingSourceFileMode,p=M.toPath(r),f=i.get(p)||i.set(p,te.createModeAwareCache()).get(p),i=te.getDirectoryPath(p),a=a.getOrCreateMapOfCacheRedirects(n),g=a.get(i);g||(g=te.createModeAwareCache(),a.set(i,g));for(var m,y,h,v,b=[],x=M.getCompilationSettings(),D=u&&j(p),i=M.getCurrentProgram(),i=i&&i.getResolvedProjectReferenceToRedirect(r),S=i?!n||n.sourceFile.path!==i.sourceFile.path:!!n,T=te.createModeAwareCache(),C=0,k=0,E=t;k<E.length;k++){var N=E[k],A=te.isString(N)?N:N.fileName.toLowerCase(),F=te.isString(N)?_?te.getModeForResolutionAtIndex(_,C):void 0:te.getModeForFileReference(N,d);C++;var P,w,I,O=f.get(A,F);!T.has(A,F)&&S||!O||O.isInvalidated||D&&!te.isExternalModuleNameRelative(A)&&c(O)?(P=O,(N=g.get(A,F))?(O=N,w=(null===(m=M.getCompilerHost)||void 0===m?void 0:m.call(M))||M,te.isTraceEnabled(x,w)&&(I=s(O),te.trace(w,o===J?null!=I&&I.resolvedFileName?I.packagetId?te.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:te.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:te.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:null!=I&&I.resolvedFileName?I.packagetId?te.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:te.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:te.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,A,r,te.getDirectoryPath(r),null==I?void 0:I.resolvedFileName,(null==I?void 0:I.packagetId)&&te.packageIdToString(I.packagetId)))):(O=o(A,r,x,(null===(y=M.getCompilerHost)||void 0===y?void 0:y.call(M))||M,n,_,F),g.set(A,F,O),M.onDiscoveredSymlink&&(v=void 0,!!(null!==(v=(h=O).resolvedModule)&&void 0!==v&&v.originalPath||null!==(h=h.resolvedTypeReferenceDirective)&&void 0!==h&&h.originalPath))&&M.onDiscoveredSymlink()),f.set(A,F,O),m=A,y=p,v=s,(h=O).refCount?(h.refCount++,te.Debug.assertIsDefined(h.files)):(h.refCount=1,te.Debug.assert(0===te.length(h.files)),te.isExternalModuleNameRelative(m)?z(h):R.add(m,h),(v=v(h))&&v.resolvedFileName&&B.add(M.toPath(v.resolvedFileName),h)),(h.files||(h.files=[])).push(y),P&&V(P,p,s),u&&L&&!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}(P,O)&&(L.push(p),u=!1)):(w=(null===(P=M.getCompilerHost)||void 0===P?void 0:P.call(M))||M,te.isTraceEnabled(x,w)&&!T.has(A,F)&&(I=s(O),te.trace(w,o===J?null!=I&&I.resolvedFileName?I.packagetId?te.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:te.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:te.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:null!=I&&I.resolvedFileName?I.packagetId?te.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:te.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:te.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,A,r,null==I?void 0:I.resolvedFileName,(null==I?void 0:I.packagetId)&&te.packageIdToString(I.packagetId)))),te.Debug.assert(void 0!==O&&!O.isInvalidated),T.set(A,F,!0),b.push(s(O))}return f.forEach(function(e,t,r){T.has(t,r)||te.contains(l,t)||(V(e,p,s),f.delete(t,r))}),b}function P(e){return te.endsWith(e,"/node_modules/@types")}function w(e,t){if(E(D,t)){e=te.isRootedDiskPath(e)?te.normalizePath(e):te.getNormalizedAbsolutePath(e,o());var r=t.split(te.directorySeparator),n=e.split(te.directorySeparator);return te.Debug.assert(n.length===r.length,"FailedLookup: ".concat(e," failedLookupLocationPath: ").concat(t)),r.length>S+1?{dir:n.slice(0,S+1).join(te.directorySeparator),dirPath:r.slice(0,S+1).join(te.directorySeparator)}:{dir:x,dirPath:D,nonRecursive:!1}}return I(te.getDirectoryPath(te.getNormalizedAbsolutePath(e,o())),te.getDirectoryPath(t))}function I(e,t){for(;te.pathContainsNodeModules(t);)e=te.getDirectoryPath(e),t=te.getDirectoryPath(t);if(te.isNodeModulesDirectory(t))return ne(te.getDirectoryPath(t))?{dir:e,dirPath:t}:void 0;var r,n,i=!0;if(void 0!==D)for(;!E(t,D);){var a=te.getDirectoryPath(t);if(a===t)break;i=!1,r=t,n=e,t=a,e=te.getDirectoryPath(e)}return ne(t)?{dir:n||e,dirPath:r||t,nonRecursive:i}:void 0}function O(e){return te.fileExtensionIsOneOf(e,h)}function z(e){te.Debug.assert(!!e.refCount);var t=e.failedLookupLocations;if(t.length){u.push(e);for(var r=!1,n=0,i=t;n<i.length;n++){var a,o,s=i[n],c=M.toPath(s),l=w(s,c);l&&(a=l.dir,o=l.dirPath,s=l.nonRecursive,O(c)||(l=v.get(c)||0,v.set(c,l+1)),o===D?(te.Debug.assert(!s),r=!0):U(a,o,s))}r&&U(x,D,!0)}}function K(e,t){var r=M.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(z)}function U(e,t,r){var n,i=b.get(t);i?(te.Debug.assert(!!r==!!i.nonRecursive),i.refCount++):b.set(t,{watcher:(e=e,n=t,t=r,M.watchDirectoryOfFailedLookupLocation(e,function(e){var t=M.toPath(e);s&&s.addOrDeleteFileOrDirectory(e,t),Q(t,n===t)},t?0:1)),refCount:1,nonRecursive:r})}function V(e,t,r){if(te.unorderedRemoveItem(te.Debug.checkDefined(e.files),t),e.refCount--,!e.refCount){r=r(e);if(r&&r.resolvedFileName&&B.remove(M.toPath(r.resolvedFileName),e),te.unorderedRemoveItem(u,e)){for(var n=!1,i=0,a=e.failedLookupLocations;i<a.length;i++){var o=a[i],s=M.toPath(o),c=w(o,s);c&&(o=c.dirPath,(c=v.get(s))&&(1===c?v.delete(s):(te.Debug.assert(1<c),v.set(s,c-1))),o===D?n=!0:q(o))}n&&q(D)}}}function q(e){b.get(e).refCount--}function W(e,t,r){var n=e.get(t);n&&(n.forEach(function(e){return V(e,t,r)}),e.delete(t))}function H(e){W(c,e,C),W(g,e,k)}function G(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=te.Debug.checkDefined(a.files);o<s.length;o++){var c=s[o];(l=l||new te.Set).add(c),_=_||te.endsWith(c,te.inferredTypesContainingFile)}}}return r}function Q(e,t){if(t)(i=i||[]).push(e);else{t=re(e);if(!t)return;if(e=t,M.fileIsOpen(e))return;t=te.getDirectoryPath(e);if(P(e)||te.isNodeModulesDirectory(e)||P(t)||te.isNodeModulesDirectory(t))(r=r||[]).push(e),(n=n||new te.Set).add(e);else{if(!O(e)&&!v.has(e))return;if(te.isEmittedFileOfProgram(M.getCurrentProgram(),e))return;(r=r||[]).push(e);e=te.parseNodeModuleFromPath(e);e&&(n=n||new te.Set).add(e)}}M.scheduleInvalidateResolutionsOfFailedLookupLocations()}function X(){if(!r&&!n&&!i)return!1;var e=G(u,Y);return i=n=r=void 0,e}function Y(e){return e.failedLookupLocations.some(function(e){var t=M.toPath(e);return te.contains(r,t)||te.firstDefinedIterator((null==n?void 0:n.keys())||te.emptyIterator,function(e){return!!te.startsWith(t,e)||void 0})||(null==i?void 0:i.some(function(e){return E(e,t)}))})}function Z(){te.clearMap(T,te.closeFileWatcher)}function $(n,i){return M.watchTypeRootsDirectory(i,function(e){var t=M.toPath(e);s&&s.addOrDeleteFileOrDirectory(e,t),_=!0,M.onChangedAutomaticTypeDirectiveNames();var r,e=(r=i,E(D,e=n)?D:(e=I(r,e))&&b.has(e.dirPath)?e.dirPath:void 0);e&&Q(t,e===t)},1)}function ee(e){e=te.getDirectoryPath(te.getDirectoryPath(e)),e=M.toPath(e);return e===D||ne(e)}}}(ts=ts||{}),function(b){var e,t;function x(e,t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:"project-relative"===i?3:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(e){e=e.imports;return b.firstDefined(e,function(e){e=e.text;return b.pathIsRelative(e)?b.hasJSFileExtension(e):void 0})||!1}(n)||s(r,n.path,e)?2:b.getEmitModuleResolutionKind(r)!==b.ModuleResolutionKind.NodeJs?1:0}}()}}function s(e,t,r){return(b.getEmitModuleResolutionKind(e)===b.ModuleResolutionKind.Node16||b.getEmitModuleResolutionKind(e)===b.ModuleResolutionKind.NodeNext)&&b.getImpliedNodeFormatForFile(t,null===(t=r.getPackageJsonInfoCache)||void 0===t?void 0:t.call(r),{fileExists:(t=r).fileExists,readFile:b.Debug.checkDefined(t.readFile),directoryExists:t.directoryExists,getCurrentDirectory:t.getCurrentDirectory,realpath:t.realpath,useCaseSensitiveFileNames:null===(r=t.useCaseSensitiveFileNames)||void 0===r?void 0:r.call(t)},e)!==b.ModuleKind.CommonJS}function c(t,r,e,n,i,a,o,s){void 0===s&&(s={});var c=y(e,i),e=g(e,n,i,o,s);return b.firstDefined(e,function(e){return v(e,c,r,i,t,o,void 0,s.overrideImportMode)})||h(n,c,t,i,a)}function u(e,t,r,n,i){void 0===i&&(i={});var a=b.getSourceFileOfModule(e);if(!a)return b.emptyArray;r=null===(e=r.getModuleSpecifierCache)||void 0===e?void 0:e.call(r),i=null==r?void 0:r.get(t.path,a.path,n,i);return[null==i?void 0:i.moduleSpecifiers,a,null==i?void 0:i.modulePaths,r]}function l(e,t,r,n,i,a,o){void 0===o&&(o={});var s=!1,c=function(e,n){var t=null===(t=e.declarations)||void 0===t?void 0:t.find(function(e){return b.isNonGlobalAmbientModule(e)&&(!b.isExternalModuleAugmentation(e)||!b.isExternalModuleNameRelative(b.getTextOfIdentifierOrLiteral(e.name)))});if(t)return t.name.text;e=b.mapDefined(e.declarations,function(e){if(b.isModuleDeclaration(e)){var t=function(e){for(;4&e.flags;)e=e.parent;return e}(e);if(null!==(r=null==t?void 0:t.parent)&&void 0!==r&&r.parent&&b.isModuleBlock(t.parent)&&b.isAmbientModule(t.parent.parent)&&b.isSourceFile(t.parent.parent.parent)){var r=null===(r=null===(r=null===(r=t.parent.parent.symbol.exports)||void 0===r?void 0:r.get("export="))||void 0===r?void 0:r.valueDeclaration)||void 0===r?void 0:r.expression;if(r){r=n.getSymbolAtLocation(r);if(r)return(2097152&(null==r?void 0:r.flags)?n.getAliasedSymbol(r):r)===e.symbol?t.parent.parent:void 0}}}})[0];if(e)return e.name.text}(e,t);if(c)return{moduleSpecifiers:[c],computedWithoutCache:s};var l=u(e,n,i,a,o),t=l[0],c=l[1],e=l[2],l=l[3];if(t)return{moduleSpecifiers:t,computedWithoutCache:s};if(!c)return{moduleSpecifiers:b.emptyArray,computedWithoutCache:s};s=!0;i=function(e,t,r,n,i,a){void 0===a&&(a={});var o=y(r.path,n),s=x(n,i,t,r),c=b.forEach(e,function(e){return b.forEach(n.getFileIncludeReasons().get(b.toPath(e.path,n.getCurrentDirectory(),o.getCanonicalFileName)),function(e){if(e.kind===b.FileIncludeKind.Import&&e.file===r.path&&(!r.impliedNodeFormat||r.impliedNodeFormat===b.getModeForResolutionAtIndex(r,e.index))){e=b.getModuleNameStringLiteralAt(r,e.index).text;return 1===s.relativePreference&&b.pathIsRelative(e)?void 0:e}})});if(c)return[c];for(var l,u,_,d=b.some(e,function(e){return e.isInNodeModules}),p=0,f=e;p<f.length;p++){var g=f[p],m=v(g,o,r,n,t,i,void 0,a.overrideImportMode);if(l=b.append(l,m),m&&g.isRedirect)return l;m||g.isRedirect||(m=h(g.path,o,t,n,s),b.pathIsBareSpecifier(m)?u=b.append(u,m):d&&!g.isInNodeModules||(_=b.append(_,m)))}return null!=u&&u.length?u:null!=l&&l.length?l:b.Debug.checkDefined(_)}(e=e||m(n.path,c.originalFileName,i),r,n,i,a,o);return null!=l&&l.set(n.path,c.path,a,o,e,i),{moduleSpecifiers:i,computedWithoutCache:s}}function y(e,t){return{getCanonicalFileName:b.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),importingSourceFileName:e,sourceDirectory:b.getDirectoryPath(e)}}function h(e,t,r,n,i){var a=i.ending,o=i.relativePreference,s=r.baseUrl,c=r.paths,l=r.rootDirs,u=t.sourceDirectory,_=t.getCanonicalFileName,i=l&&function(e,t,r,n,i,a){t=S(t,e,n);if(void 0===t)return;e=S(r,e,n),t=void 0!==e?b.ensurePathIsNonModuleName(b.getRelativePathFromDirectory(e,t,n)):t;return b.getEmitModuleResolutionKind(a)===b.ModuleResolutionKind.NodeJs?T(t,i,a):b.removeFileExtension(t)}(l,e,u,_,a,r)||T(b.ensurePathIsNonModuleName(b.getRelativePathFromDirectory(u,e,_)),a,r);if(!s&&!c||0===o)return i;l=k(e,b.getNormalizedAbsolutePath(b.getPathsBasePath(r,n)||s,n.getCurrentDirectory()),_);if(!l)return i;a=T(l,a,r),c=c&&D(b.removeFileExtension(l),a,c),c=void 0===c&&void 0!==s?a:c;if(!c)return i;if(1===o)return c;if(3!==o)return 2!==o&&b.Debug.assertNever(o),E(c)||d(i)<d(c)?i:c;t=r.configFilePath?b.toPath(b.getDirectoryPath(r.configFilePath),n.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(n.getCurrentDirectory()),e=b.toPath(e,t,_),_=b.startsWith(u,t),t=b.startsWith(e,t);if(_&&!t||!_&&t)return c;e=p(n,b.getDirectoryPath(e));return p(n,u)!==e?c:i}function d(e){for(var t=0,r=b.startsWith(e,"./")?2:0;r<e.length;r++)47===e.charCodeAt(r)&&t++;return t}function _(e,t){return b.compareBooleans(t.isRedirect,e.isRedirect)||b.compareNumberOfDirectorySeparators(e.path,t.path)}function p(t,e){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(e):!!b.forEachAncestorDirectory(e,function(e){return!!t.fileExists(b.combinePaths(e,"package.json"))||void 0})}function f(e,t,r,n,s){var c=b.hostGetCanonicalFileName(r),i=r.getCurrentDirectory(),l=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,a=b.toPath(t,i,c),a=r.redirectTargetsMap.get(a)||b.emptyArray,u=__spreadArray(__spreadArray(__spreadArray([],l?[l]:b.emptyArray,!0),[t],!1),a,!0).map(function(e){return b.getNormalizedAbsolutePath(e,i)}),_=!b.every(u,b.containsIgnoredPath);if(!n){var o=b.forEach(u,function(e){return!(_&&b.containsIgnoredPath(e))&&s(e,l===e)});if(o)return o}var d=null===(o=r.getSymlinkCache)||void 0===o?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),t=b.getNormalizedAbsolutePath(t,i);return d&&b.forEachAncestorDirectory(b.getDirectoryPath(t),function(a){var o=d.get(b.ensureTrailingDirectorySeparator(b.toPath(a,i,c)));if(o)return!b.startsWithDirectory(e,a,c)&&b.forEach(u,function(e){if(b.startsWithDirectory(e,a,c))for(var t=b.getRelativePathFromDirectory(a,e,c),r=0,n=o;r<n.length;r++){var i=n[r],i=b.resolvePath(i,t),i=s(i,e===l);if(_=!0,i)return i}})})||(n?b.forEach(u,function(e){return _&&b.containsIgnoredPath(e)?void 0:s(e,e===l)}):void 0)}function g(e,t,r,n,i){void 0===i&&(i={});var a=b.toPath(t,r.getCurrentDirectory(),b.hostGetCanonicalFileName(r)),o=null===(s=r.getModuleSpecifierCache)||void 0===s?void 0:s.call(r);if(o){var s=o.get(e,a,n,i);if(null!=s&&s.modulePaths)return s.modulePaths}r=m(e,t,r);return o&&o.setModulePaths(e,a,n,i,r),r}function m(e,t,r){var n=b.hostGetCanonicalFileName(r),o=new b.Map;f(e,t,r,!0,function(e,t){var r=b.pathContainsNodeModules(e);o.set(e,{path:n(e),isRedirect:t,isInNodeModules:r}),0});for(var s,c=[],i=b.getDirectoryPath(e);0!==o.size;){var a=function(e){var i,a=b.ensureTrailingDirectorySeparator(e);o.forEach(function(e,t){var r=e.path,n=e.isRedirect,e=e.isInNodeModules;b.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=b.getDirectoryPath(e);if(t===e)return s=e,"break";s=e=t}(i),i=s;if("break"===a)break}return o.size&&(1<(e=b.arrayFrom(o.values())).length&&e.sort(_),c.push.apply(c,e)),c}function D(e,t,r){for(var n in r)for(var i=0,a=r[n];i<a.length;i++){var o=a[i],s=b.removeFileExtension(b.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&&b.startsWith(t,o)&&b.endsWith(t,c)||!c&&t===b.removeTrailingDirectorySeparator(o)){o=t.substr(o.length,t.length-c.length-o.length);return n.replace("*",o)}}else if(s===t||s===e)return n}}function v(e,t,s,c,l,r,n,u){var _=e.path,e=e.isRedirect,d=t.getCanonicalFileName,t=t.sourceDirectory;if(c.fileExists&&c.readFile){var p=b.getNodeModulePathParts(_);if(p){var i=_,a=!1;if(!n)for(var o=x(c,r,l,s),f=p.packageRootIndex,g=void 0;;){var m=function(e){var t=_.substring(0,e),r=b.combinePaths(t,"package.json"),n=_,e=null===(e=null===(e=c.getPackageJsonInfoCache)||void 0===e?void 0:e.call(c))||void 0===e?void 0:e.getPackageJsonInfo(r);if("object"==typeof e||void 0===e&&c.fileExists(r)){r=(null==e?void 0:e.packageJsonContent)||JSON.parse(c.readFile(r));if(b.getEmitModuleResolutionKind(l)===b.ModuleResolutionKind.Node16||b.getEmitModuleResolutionKind(l)===b.ModuleResolutionKind.NodeNext){var i=["node",u||s.impliedNodeFormat===b.ModuleKind.ESNext?"import":"require","types"],i=r.exports&&"string"==typeof r.name?function n(i,a,o,s,c,l,e){if(void 0===e&&(e=0),"string"==typeof c){var t=b.getNormalizedAbsolutePath(b.combinePaths(o,c),void 0),r=b.hasTSFileExtension(a)?b.removeFileExtension(a)+C(a,i):void 0;switch(e){case 0:if(0===b.comparePaths(a,t)||r&&0===b.comparePaths(r,t))return{moduleFileToTry:s};break;case 1:if(b.containsPath(t,a)){var u=b.getRelativePathFromDirectory(t,a,!1);return{moduleFileToTry:b.getNormalizedAbsolutePath(b.combinePaths(b.combinePaths(s,c),u),void 0)}}break;case 2:var _=t.indexOf("*"),u=t.slice(0,_),_=t.slice(_+1);if(b.startsWith(a,u)&&b.endsWith(a,_)){var d=a.slice(u.length,a.length-_.length);return{moduleFileToTry:s.replace("*",d)}}if(r&&b.startsWith(r,u)&&b.endsWith(r,_))return d=r.slice(u.length,r.length-_.length),{moduleFileToTry:s.replace("*",d)}}}else{if(Array.isArray(c))return b.forEach(c,function(e){return n(i,a,o,s,e,l)});if("object"==typeof c&&null!==c){if(b.allKeysStartWithDot(c))return b.forEach(b.getOwnKeys(c),function(e){var t=b.getNormalizedAbsolutePath(b.combinePaths(s,e),void 0),r=b.endsWith(e,"/")?1:b.stringContains(e,"*")?2:0;return n(i,a,o,t,c[e],l,r)});for(var p=0,f=b.getOwnKeys(c);p<f.length;p++){var g=f[p];if(("default"===g||0<=l.indexOf(g)||b.isApplicableVersionedTypesKey(l,g))&&(g=c[g],g=n(i,a,o,s,g,l)))return g}}}}(l,_,t,b.getPackageNameFromTypesPackageName(r.name),r.exports,i):void 0;if(i){var a=b.hasTSFileExtension(i.moduleFileToTry)?{moduleFileToTry:b.removeFileExtension(i.moduleFileToTry)+C(i.moduleFileToTry,l)}:i;return __assign(__assign({},a),{verbatimFromExports:!0})}if(r.exports)return{moduleFileToTry:_,blockedByExports:!0}}i=r.typesVersions?b.getPackageJsonTypesVersionsPaths(r.typesVersions):void 0;i&&(a=_.slice(t.length+1),void 0!==(i=D(b.removeFileExtension(a),T(a,0,l),i.paths))&&(n=b.combinePaths(t,i)));r=r.typings||r.types||r.main||"index.js";if(b.isString(r)){var o=b.toPath(r,t,d);if(b.removeFileExtension(o)===b.removeFileExtension(d(n)))return{packageRootPath:t,moduleFileToTry:n}}}else{o=d(n.substring(p.packageRootIndex+1));if("index.d.ts"===o||"index.js"===o||"index.ts"===o||"index.tsx"===o)return{moduleFileToTry:n,packageRootPath:t}}return{moduleFileToTry:n}}(f),y=m.moduleFileToTry,h=m.packageRootPath,v=m.blockedByExports,m=m.verbatimFromExports;if(b.getEmitModuleResolutionKind(l)!==b.ModuleResolutionKind.Classic){if(v)return;if(m)return y}if(h){i=h,a=!0;break}if(g=g||y,-1===(f=_.indexOf(b.directorySeparator,f+1))){i=T(g,o.ending,l,c);break}}if(!e||a){r=c.getGlobalTypingsCacheLocation&&c.getGlobalTypingsCacheLocation(),e=d(i.substring(0,p.topLevelNodeModulesIndex));if(b.startsWith(t,e)||r&&b.startsWith(d(r),e)){r=i.substring(p.topLevelPackageNameIndex+1),e=b.getPackageNameFromTypesPackageName(r);return b.getEmitModuleResolutionKind(l)===b.ModuleResolutionKind.Classic&&e===r?void 0:e}}}}}function S(t,e,r){return b.firstDefined(e,function(e){e=k(t,e,r);return void 0!==e&&E(e)?void 0:e})}function T(e,t,r,n){if(b.fileExtensionIsOneOf(e,[".json",".mjs",".cjs"]))return e;var i=b.removeFileExtension(e);if(e===i)return e;if(b.fileExtensionIsOneOf(e,[".d.mts",".mts",".d.cts",".cts"]))return i+o(e,r);switch(t){case 0:var a=b.removeSuffix(i,"/index");return n&&a!==i&&function(e,t){if(e.fileExists)for(var r=0,n=b.flatten(b.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));r<n.length;r++){var i=t+n[r];if(e.fileExists(i))return i}}(n,a)?i:a;case 1:return i;case 2:return i+o(e,r);default:return b.Debug.assertNever(t)}}function o(e,t){return null!==(t=C(e,t))&&void 0!==t?t:b.Debug.fail("Extension ".concat(b.extensionFromPath(e)," is unsupported:: FileName:: ").concat(e))}function C(e,t){var r=b.tryGetExtensionFromPath(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".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function k(e,t,r){r=b.getRelativePathToDirectoryOrUrl(t,e,t,r,!1);return b.isRootedDiskPath(r)?void 0:r}function E(e){return b.startsWith(e,"..")}e=b.moduleSpecifiers||(b.moduleSpecifiers={}),(t={})[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Shortest=2]="Shortest",t[t.ExternalNonRelative=3]="ExternalNonRelative",(t={})[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",e.updateModuleSpecifier=function(e,t,r,n,i,a,o){if(void 0===o&&(o={}),(o=c(e,t,r,n,i,(n=e,e=a,r=r,i=i,{relativePreference:b.isExternalModuleNameRelative(e)?0:1,ending:b.hasJSFileExtension(e)||s(n,r,i)?2:b.getEmitModuleResolutionKind(n)!==b.ModuleResolutionKind.NodeJs||b.endsWith(e,"index")?1:0}),{},o))!==a)return o},e.getModuleSpecifier=function(e,t,r,n,i,a){return void 0===a&&(a={}),c(e,t,r,n,i,x(i,{},e,t),{},a)},e.getNodeModulesPackageName=function(t,r,e,n,i,a){void 0===a&&(a={});var o=y(r.path,n),e=g(r.path,e,n,i,a);return b.firstDefined(e,function(e){return v(e,o,r,n,t,i,!0,a.overrideImportMode)})},e.tryGetModuleSpecifiersFromCache=function(e,t,r,n,i){return void 0===i&&(i={}),u(e,t,r,n,i)[0]},e.getModuleSpecifiers=function(e,t,r,n,i,a,o){return void 0===o&&(o={}),l(e,t,r,n,i,a,o).moduleSpecifiers},e.getModuleSpecifiersWithCacheInfo=l,e.countPathComponents=d,e.forEachFileNameOfModule=f,(t={})[t.Exact=0]="Exact",t[t.Directory=1]="Directory",t[t.Pattern=2]="Pattern",e.tryGetJSExtensionForFile=C}(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 l(t,e){var r=t===d.sys&&i?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="[".concat(d.formatColorAndReset(o(i),d.ForegroundColorEscapeSequences.Grey),"] ");r+="".concat(d.flattenDiagnosticMessageText(e.messageText,i.newLine)).concat(t+t),i.write(r)}:function(e,t,r){var n="";a(i,e,r)||(n+=t),n+="".concat(o(i)," - "),n+="".concat(d.flattenDiagnosticMessageText(e.messageText,i.newLine)).concat((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 f(r){return d.filter(r,function(e){return e.category===d.DiagnosticCategory.Error}).map(function(e){if(void 0!==e.file)return"".concat(e.file.fileName)}).map(function(t){var e=d.find(r,function(e){return void 0!==e.file&&e.file.fileName===t});if(void 0!==e){e=d.getLineAndCharacterOfPosition(e.file,e.start).line;return{fileName:t,line:e+1}}})}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 u(e,t){var r=d.formatColorAndReset(":"+e.line,d.ForegroundColorEscapeSequences.Grey);return d.pathIsAbsolute(e.fileName)&&d.pathIsAbsolute(t)?d.getRelativePathFromDirectory(t,e.fileName,!1)+r:e.fileName+r}function c(e,t,r,n){if(0===e)return"";var i=t.filter(function(e){return void 0!==e}),a=i.map(function(e){return"".concat(e.fileName,":").concat(e.line)}).filter(function(e,t,r){return r.indexOf(e)===t}),o=i[0]&&u(i[0],n.getCurrentDirectory()),o=1===e?d.createCompilerDiagnostic(void 0!==t[0]?d.Diagnostics.Found_1_error_in_1:d.Diagnostics.Found_1_error,e,o):d.createCompilerDiagnostic(0===a.length?d.Diagnostics.Found_0_errors:1===a.length?d.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:d.Diagnostics.Found_0_errors_in_1_files,e,1===a.length?o:a.length),n=1<a.length?function(e,n){var t=e.filter(function(t,e,r){return e===r.findIndex(function(e){return(null==e?void 0:e.fileName)===(null==t?void 0:t.fileName)})});if(0===t.length)return"";function r(e){return Math.log(e)*Math.LOG10E+1}var i=t.map(function(t){return[t,d.countWhere(e,function(e){return e.fileName===t.fileName})]}),a=i.reduce(function(e,t){return Math.max(e,t[1]||0)},0),o=d.Diagnostics.Errors_Files.message,t=o.split(" ")[0].length,s=Math.max(t,r(a)),t=Math.max(r(a)-t,0),c="";return c+=" ".repeat(t)+o+"\n",i.forEach(function(e){var t=e[0],r=e[1],e=Math.log(r)*Math.LOG10E+1|0,e=e<s?" ".repeat(s-e):"",t=u(t,n.getCurrentDirectory());c+="".concat(e).concat(r,"  ").concat(t,"\n")}),c}(i,n):"";return"".concat(r).concat(d.flattenDiagnosticMessageText(o.messageText,r)).concat(r).concat(r).concat(n)}function n(e){return!!e.getState}function g(e,t){var r=e.getCompilerOptions();r.explainFiles?_(n(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&d.forEach(e.getSourceFiles(),function(e){t(e.fileName)})}function _(t,r){for(var e,n=t.getFileIncludeReasons(),i=d.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),a=function(e){return d.convertToRelativePath(e,t.getCurrentDirectory(),i)},o=0,s=t.getSourceFiles();o<s.length;o++){var c=s[o];r("".concat(b(c,a))),null!==(e=n.get(c.path))&&void 0!==e&&e.forEach(function(e){return r("  ".concat(v(t,e,a).messageText))}),null!==(c=m(c,a))&&void 0!==c&&c.forEach(function(e){return r("  ".concat(e.messageText))})}}function m(e,t){var r;return e.path!==e.resolvedPath&&(r=r||[]).push(d.chainDiagnosticMessages(void 0,d.Diagnostics.File_is_output_of_project_reference_source_0,b(e.originalFileName,t))),e.redirectInfo&&(r=r||[]).push(d.chainDiagnosticMessages(void 0,d.Diagnostics.File_redirects_to_file_0,b(e.redirectInfo.redirectTarget,t))),r}function y(e,t){var r,n=e.getCompilerOptions().configFile;if(null!==(r=null==n?void 0:n.configFileSpecs)&&void 0!==r&&r.validatedFilesSpec){var i=d.createGetCanonicalFileName(e.useCaseSensitiveFileNames()),a=i(t),o=d.getDirectoryPath(d.getNormalizedAbsolutePath(n.fileName,e.getCurrentDirectory()));return d.find(n.configFileSpecs.validatedFilesSpec,function(e){return i(d.getNormalizedAbsolutePath(e,o))===a})}}function h(e,t){var r,n=e.getCompilerOptions().configFile;if(null!==(r=null==n?void 0:n.configFileSpecs)&&void 0!==r&&r.validatedIncludeSpecs){var i=d.fileExtensionIs(t,".json"),a=d.getDirectoryPath(d.getNormalizedAbsolutePath(n.fileName,e.getCurrentDirectory())),o=e.useCaseSensitiveFileNames();return d.find(null===(n=null==n?void 0:n.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs,function(e){if(i&&!d.endsWith(e,".json"))return!1;e=d.getPatternFromSpec(e,a,"files");return!!e&&d.getRegexFromPattern("(".concat(e,")$"),o).test(t)})}}function v(t,e,r){var n=t.getCompilerOptions();if(d.isReferencedFile(e)){var i=d.getReferencedFileLocation(function(e){return t.getSourceFileByPath(e)},e),a=d.isReferenceFileLocation(i)?i.file.text.substring(i.pos,i.end):'"'.concat(i.text,'"'),o=void 0;switch(d.Debug.assert(d.isReferenceFileLocation(i)||e.kind===d.FileIncludeKind.Import,"Only synthetic references are imports"),e.kind){case d.FileIncludeKind.Import:o=d.isReferenceFileLocation(i)?i.packageId?d.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:d.Diagnostics.Imported_via_0_from_file_1:i.text===d.externalHelpersModuleNameText?i.packageId?d.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:d.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:i.packageId?d.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:d.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case d.FileIncludeKind.ReferenceFile:d.Debug.assert(!i.packageId),o=d.Diagnostics.Referenced_via_0_from_file_1;break;case d.FileIncludeKind.TypeReferenceDirective:o=i.packageId?d.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:d.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case d.FileIncludeKind.LibReferenceDirective:d.Debug.assert(!i.packageId),o=d.Diagnostics.Library_referenced_via_0_from_file_1;break;default:d.Debug.assertNever(e)}return d.chainDiagnosticMessages(void 0,o,a,b(i.file,r),i.packageId&&d.packageIdToString(i.packageId))}switch(e.kind){case d.FileIncludeKind.RootFile:if(null===(s=n.configFile)||void 0===s||!s.configFileSpecs)return d.chainDiagnosticMessages(void 0,d.Diagnostics.Root_file_specified_for_compilation);var s=d.getNormalizedAbsolutePath(t.getRootFileNames()[e.index],t.getCurrentDirectory());if(y(t,s))return d.chainDiagnosticMessages(void 0,d.Diagnostics.Part_of_files_list_in_tsconfig_json);s=h(t,s);return s?d.chainDiagnosticMessages(void 0,d.Diagnostics.Matched_by_include_pattern_0_in_1,s,b(n.configFile,r)):d.chainDiagnosticMessages(void 0,d.Diagnostics.Root_file_specified_for_compilation);case d.FileIncludeKind.SourceFromProjectReference:case d.FileIncludeKind.OutputFromProjectReference:var s=e.kind===d.FileIncludeKind.OutputFromProjectReference,c=d.Debug.checkDefined(null===(c=t.getResolvedProjectReferences())||void 0===c?void 0:c[e.index]);return d.chainDiagnosticMessages(void 0,d.outFile(n)?s?d.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:d.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:s?d.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:d.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,b(c.sourceFile.fileName,r),n.outFile?"--outFile":"--out");case d.FileIncludeKind.AutomaticTypeDirectiveFile:return d.chainDiagnosticMessages(void 0,n.types?e.packageId?d.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:d.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:e.packageId?d.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:d.Diagnostics.Entry_point_for_implicit_type_library_0,e.typeReference,e.packageId&&d.packageIdToString(e.packageId));case d.FileIncludeKind.LibFile:if(void 0!==e.index)return d.chainDiagnosticMessages(void 0,d.Diagnostics.Library_0_specified_in_compilerOptions,n.lib[e.index]);c=d.forEachEntry(d.targetOptionDeclaration.type,function(e,t){return e===d.getEmitScriptTarget(n)?t:void 0});return d.chainDiagnosticMessages(void 0,c?d.Diagnostics.Default_library_for_target_0:d.Diagnostics.Default_library,c);default:d.Debug.assertNever(e)}}function b(e,t){e=d.isString(e)?e:e.fileName;return t?t(e):e}function x(e,t,r,n,i,a,o,s){var c=!!e.getCompilerOptions().listFilesOnly,l=e.getConfigFileParsingDiagnostics().slice(),u=l.length;d.addRange(l,e.getSyntacticDiagnostics(void 0,a)),l.length===u&&(d.addRange(l,e.getOptionsDiagnostics(a)),c||(d.addRange(l,e.getGlobalDiagnostics(a)),l.length===u&&d.addRange(l,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(l,s);var _,l=d.sortAndDeduplicateDiagnostics(l);return l.forEach(t),r&&(_=e.getCurrentDirectory(),d.forEach(o,function(e){e=d.getNormalizedAbsolutePath(e,_);r("TSFILE: ".concat(e))}),g(e,r)),n&&n(p(l),f(l)),{emitResult:a,diagnostics:l}}function D(e,t,r,n,i,a,o,s){o=x(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 S(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 T(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,disableUseFileVersionAsSignature:a.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:a.storeFilesChangingSignatureDuringEmit}}function C(n,e,i,t){void 0===n&&(n=d.sys);function a(e){return n.write(e+n.newLine)}var o=T(n,e);return d.copyProperties(o,S(n,t)),o.afterProgramCreate=function(e){var t=e.getCompilerOptions(),r=d.getNewLineCharacter(t,function(){return n.newLine});x(e,i,a,function(e){return o.onWatchStatusChange(d.createCompilerDiagnostic(s(e),e),r,t,e)})},o}function k(e,t,r){t(r),e.exit(d.ExitStatus.DiagnosticsPresent_OutputsSkipped)}d.createDiagnosticReporter=l,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,a){var o=i;return o.onUnRecoverableConfigFileDiagnostic=function(e){return k(i,a,e)},n=d.getParsedCommandLineOfConfigFile(e,t,o,r,n),o.onUnRecoverableConfigFileDiagnostic=void 0,n},d.getErrorCountForSummary=p,d.getFilesInErrorForSummary=f,d.getWatchErrorSummaryDiagnosticMessage=s,d.getErrorSummaryText=c,d.isBuilderProgram=n,d.listFiles=g,d.explainFiles=_,d.explainIfFileIsRedirect=m,d.getMatchedFileSpec=y,d.getMatchedIncludeSpec=h,d.fileIncludeReasonToDiagnostics=v,d.emitFilesAndReportErrors=x,d.emitFilesAndReportErrorsAndGetExitStatus=D,d.noopFileWatcher={close:d.noop},d.returnNoopFileWatcher=function(){return d.noopFileWatcher},d.createWatchHost=S,d.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"},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(t,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),disableUseFileVersionAsSignature:i.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:i.storeFilesChangingSignatureDuringEmit}},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,__spreadArray([n],e,!1));return r&&(r.version=a(r.text)),r}},d.createProgramHost=T,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||l(a);return(e=C(a,o,c,e)).onUnRecoverableConfigFileDiagnostic=function(e){return k(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=C(a,o,s||l(a),e)).rootFiles=t,e.options=r,e.watchOptions=n,e.projectReferences=i,e},d.performIncrementalCompilation=function(e){var r=e.system||d.sys,n=e.host||(e.host=d.createIncrementalCompilerHost(e.options,r)),t=d.createIncrementalProgram(e),i=D(t,e.reportDiagnostic||l(r),function(e){return n.trace&&n.trace(e)},e.reportErrorSummary||e.options.pretty?function(e,t){return r.write(c(e,t,r.newLine,n))}:void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(t),i}}(ts=ts||{}),function(De){function Se(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),r.disableUseFileVersionAsSignature=t.disableUseFileVersionAsSignature,r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,De.setGetSourceFileAsHashVersioned(r,t),De.changeCompilerHostLikeToUseCache(r,function(e){return De.toPath(e,r.getCurrentDirectory(),r.getCanonicalFileName)}),r}De.readBuilderProgram=Se,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,Se(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(l){var o,a,s,e,t,r,u,c,_,n,d,p=l.extendedConfigCache,i=!1,f=!1,g=new De.Map,m=!1,y=l.useCaseSensitiveFileNames(),h=l.getCurrentDirectory(),v=l.configFileName,b=l.optionsToExtend,x=void 0===b?{}:b,D=l.watchOptionsToExtend,S=l.extraFileExtensions,T=l.createProgram,C=l.rootFiles,k=l.options,E=l.watchOptions,N=l.projectReferences,A=!1,F=!1,P=void 0===v?void 0:De.createCachedDirectoryStructureHost(l,h,y),w=P||l,I=De.parseConfigHostFromCompilerHostLike(l,w),O=Q();v&&l.configFileParsingResult&&(ue(l.configFileParsingResult),O=Q()),re(De.Diagnostics.Starting_compilation_in_watch_mode),v&&!l.configFileParsingResult&&(O=De.getNewLineCharacter(x,function(){return l.getNewLine()}),De.Debug.assert(!C),le(),O=Q());var M,L=(b=De.createWatchFactory(l,k)).watchFile,R=b.watchDirectory,B=b.writeLog,j=De.createGetCanonicalFileName(y);B("Current directory: ".concat(h," CaseSensitiveFileNames: ").concat(y)),v&&(M=L(v,function(){De.Debug.assert(!!v),o=De.ConfigFileProgramReloadLevel.Full,oe()},De.PollingInterval.High,E,De.WatchType.ConfigFile));var J=De.createCompilerHostFromProgramHost(l,function(){return k},w);De.setGetSourceFileAsHashVersioned(J,l);var z=J.getSourceFile;J.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return $.apply(void 0,__spreadArray([e,X(e)],t,!1))},J.getSourceFileByPath=$,J.getNewLine=function(){return O},J.fileExists=Z,J.onReleaseOldSourceFile=function(e,t,r){var n=g.get(e.resolvedPath);void 0!==n&&(Y(n)?(_=_||[]).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),g.delete(e.resolvedPath),r||K.removeResolutionsOfFile(e.path)))},J.onReleaseParsedCommandLine=function(e){var t=X(e),e=null==u?void 0:u.get(t);if(!e)return;u.delete(t),e.watchedDirectories&&De.clearMap(e.watchedDirectories,De.closeFileWatcherOf);null!==(e=e.watcher)&&void 0!==e&&e.close(),De.clearSharedExtendedConfigFileWatcher(t,c)},J.toPath=X,J.getCompilationSettings=function(){return k},J.useSourceOfProjectReferenceRedirect=De.maybeBind(l,l.useSourceOfProjectReferenceRedirect),J.watchDirectoryOfFailedLookupLocation=function(e,t,r){return R(e,t,r,E,De.WatchType.FailedLookupLocations)},J.watchTypeRootsDirectory=function(e,t,r){return R(e,t,r,E,De.WatchType.TypeRoots)},J.getCachedDirectoryStructureHost=function(){return P},J.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!l.setTimeout||!l.clearTimeout)return K.invalidateResolutionsOfFailedLookupLocations();var e=ie();B("Scheduling invalidateFailedLookup".concat(e?", Cancelled earlier one":"")),r=l.setTimeout(ae,250)},J.onInvalidatedResolution=oe,J.onChangedAutomaticTypeDirectiveNames=oe,J.fileIsOpen=De.returnFalse,J.getCurrentProgram=H,J.writeLog=B,J.getParsedCommandLine=_e;var K=De.createResolutionCache(J,v?De.getDirectoryPath(De.getNormalizedAbsolutePath(v,h)):h,!1);J.resolveModuleNames=l.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolveModuleNames.apply(l,e)}:function(e,t,r,n,i,a){return K.resolveModuleNames(e,t,r,n,a)},J.resolveTypeReferenceDirectives=l.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolveTypeReferenceDirectives.apply(l,e)}:function(e,t,r,n,i){return K.resolveTypeReferenceDirectives(e,t,r,i)};var U=!!l.resolveModuleNames||!!l.resolveTypeReferenceDirectives,V=Se(k,J);return G(),ve(),v&&xe(X(v),k,E,De.WatchType.ExtendedConfigFile),v?{getCurrentProgram:W,getProgram:ce,close:q}:{getCurrentProgram:W,getProgram:ce,updateRootFileNames:function(e){De.Debug.assert(!v,"Cannot update root file names with config file watch mode"),C=e,oe()},close:q};function q(){ie(),K.clear(),De.clearMap(g,function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),M&&(M.close(),M=void 0),null!=p&&p.clear(),p=void 0,c&&(De.clearMap(c,De.closeFileWatcherOf),c=void 0),e&&(De.clearMap(e,De.closeFileWatcherOf),e=void 0),a&&(De.clearMap(a,De.closeFileWatcher),a=void 0),u&&(De.clearMap(u,function(e){var t;null!==(t=e.watcher)&&void 0!==t&&t.close(),e.watcher=void 0,e.watchedDirectories&&De.clearMap(e.watchedDirectories,De.closeFileWatcherOf),e.watchedDirectories=void 0}),u=void 0),s&&(De.clearMap(s,De.closeFileWatcher),s=void 0)}function W(){return V}function H(){return V&&V.getProgramOrUndefined()}function G(){B("Synchronizing program"),ie();var e=V;m&&(O=Q(),e&&(i||De.changesAffectModuleResolution(e.getCompilerOptions(),k))&&K.clear());var t=K.createHasInvalidatedResolution(U||i);return De.isProgramUptoDate(H(),C,k,te,Z,t,ne,_e,N)?F&&(f&&re(De.Diagnostics.File_change_detected_Starting_incremental_compilation),V=T(void 0,void 0,J,V,d,N),F=!1):(f&&re(De.Diagnostics.File_change_detected_Starting_incremental_compilation),function(e){B("CreatingProgramWith::"),B("  roots: ".concat(JSON.stringify(C))),B("  options: ".concat(JSON.stringify(k))),N&&B("  projectReferences: ".concat(JSON.stringify(N)));var t=m||!H();if(F=m=!1,K.startCachingPerDirectoryResolution(),J.hasInvalidatedResolution=e,J.hasChangedAutomaticTypeDirectiveNames=ne,V=T(C,k,J,V,d,N),e=De.map(K.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(e){var t=e[0],e=e[1];return[J.realpath?X(J.realpath(t)):t,e]}),K.finishCachingPerDirectoryResolution(),De.updateMissingFilePathsWatch(V.getProgram(),a=a||new De.Map,ge),De.updatePackageJsonWatch(e,s=s||new De.Map,me),t&&K.updateTypeRootsWatch(),_){for(var r=0,n=_;r<n.length;r++){var i=n[r];a.has(i)||g.delete(i)}_=void 0}}(t)),f=i=!1,l.afterProgramCreate&&e!==V&&l.afterProgramCreate(V),V}function Q(){return De.getNewLineCharacter(k||x,function(){return l.getNewLine()})}function X(e){return De.toPath(e,h,j)}function Y(e){return"boolean"==typeof e}function Z(e){var t=X(e);return!Y(g.get(t))&&w.fileExists(e)}function $(e,t,r,n,i){var a=g.get(t);if(!Y(a)){if(void 0===a||i||"boolean"==typeof a.version){n=z(e,r,n);return a?n?(a.sourceFile=n,a.version=n.version,a.fileWatcher||(a.fileWatcher=de(t,e,pe,De.PollingInterval.Low,E,De.WatchType.SourceFile))):(a.fileWatcher&&a.fileWatcher.close(),g.set(t,!1)):n?(e=de(t,e,pe,De.PollingInterval.Low,E,De.WatchType.SourceFile),g.set(t,{sourceFile:n,version:n.version,fileWatcher:e})):g.set(t,!1),n&&(n.impliedNodeFormat=De.getImpliedNodeFormatForFile(t,K.getModuleResolutionCache().getPackageJsonInfoCache(),J,J.getCompilationSettings())),n}return a.sourceFile}}function ee(e){var t=g.get(e);void 0!==t&&(Y(t)?g.set(e,{version:!1}):t.version=!1)}function te(e){e=g.get(e);return e&&e.version?e.version:void 0}function re(e){l.onWatchStatusChange&&l.onWatchStatusChange(De.createCompilerDiagnostic(e),O,k||x)}function ne(){return K.hasChangedAutomaticTypeDirectiveNames()}function ie(){return!!r&&(l.clearTimeout(r),!(r=void 0))}function ae(){r=void 0,K.invalidateResolutionsOfFailedLookupLocations()&&oe()}function oe(){l.setTimeout&&l.clearTimeout&&(t&&l.clearTimeout(t),B("Scheduling update"),t=l.setTimeout(se,250))}function se(){f=!(t=void 0),ce()}function ce(){switch(o){case De.ConfigFileProgramReloadLevel.Partial:De.perfLogger.logStartUpdateProgram("PartialConfigReload"),B("Reloading new file names and options"),C=De.getFileNamesFromConfigSpecs(k.configFile.configFileSpecs,De.getNormalizedAbsolutePath(De.getDirectoryPath(v),h),k,I,S),De.updateErrorForNoInputFiles(C,De.getNormalizedAbsolutePath(v,h),k.configFile.configFileSpecs,d,A)&&(F=!0),G();break;case De.ConfigFileProgramReloadLevel.Full:De.perfLogger.logStartUpdateProgram("FullConfigReload"),B("Reloading config file: ".concat(v)),o=De.ConfigFileProgramReloadLevel.None,P&&P.clearCache(),le(),m=!0,G(),ve(),xe(X(v),k,E,De.WatchType.ExtendedConfigFile);break;default:De.perfLogger.logStartUpdateProgram("SynchronizeProgram"),G()}return De.perfLogger.logStopUpdateProgram("Done"),V}function le(){ue(De.getParsedCommandLineOfConfigFile(v,x,I,p=p||new De.Map,D,S))}function ue(e){C=e.fileNames,k=e.options,E=e.watchOptions,N=e.projectReferences,n=e.wildcardDirectories,d=De.getConfigFileParsingDiagnostics(e).slice(),A=De.canJsonReportNoInputFiles(e.raw),F=!0}function _e(e){var t=X(e),r=null==u?void 0:u.get(t);if(r){if(!r.reloadLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&r.reloadLevel===De.ConfigFileProgramReloadLevel.Partial&&!l.getParsedCommandLine){B("Reloading new file names and options");var n=De.getFileNamesFromConfigSpecs(r.parsedCommandLine.options.configFile.configFileSpecs,De.getNormalizedAbsolutePath(De.getDirectoryPath(e),h),k,I);return r.parsedCommandLine=__assign(__assign({},r.parsedCommandLine),{fileNames:n}),r.reloadLevel=void 0,r.parsedCommandLine}}B("Loading config file: ".concat(e));var i,a,o,s,c,n=l.getParsedCommandLine?l.getParsedCommandLine(e):function(e){var t=I.onUnRecoverableConfigFileDiagnostic;I.onUnRecoverableConfigFileDiagnostic=De.noop;e=De.getParsedCommandLineOfConfigFile(e,void 0,I,p=p||new De.Map,D);return I.onUnRecoverableConfigFileDiagnostic=t,e}(e);return r?(r.parsedCommandLine=n,r.reloadLevel=void 0):(u=u||new De.Map).set(t,r={parsedCommandLine:n}),i=e,a=t,(o=r).watcher||(o.watcher=L(i,function(e,t){fe(i,a,t);t=null==u?void 0:u.get(a);t&&(t.reloadLevel=De.ConfigFileProgramReloadLevel.Full),K.removeResolutionsFromProjectReferenceRedirects(a),oe()},De.PollingInterval.High,(null===(s=o.parsedCommandLine)||void 0===s?void 0:s.watchOptions)||E,De.WatchType.ConfigFileOfReferencedProject)),null!==(s=o.parsedCommandLine)&&void 0!==s&&s.wildcardDirectories?De.updateWatchingWildcardDirectories(o.watchedDirectories||(o.watchedDirectories=new De.Map),new De.Map(De.getEntries(null===(c=o.parsedCommandLine)||void 0===c?void 0:c.wildcardDirectories)),function(n,e){return R(n,function(e){var t=X(e);P&&P.addOrDeleteFileOrDirectory(e,t),ee(t);var r=null==u?void 0:u.get(a);null!=r&&r.parsedCommandLine&&(De.isIgnoredFileFromWildCardWatching({watchedDirPath:X(n),fileOrDirectory:e,fileOrDirectoryPath:t,configFileName:i,options:r.parsedCommandLine.options,program:r.parsedCommandLine.fileNames,currentDirectory:h,useCaseSensitiveFileNames:y,writeLog:B,toPath:X})||r.reloadLevel!==De.ConfigFileProgramReloadLevel.Full&&(r.reloadLevel=De.ConfigFileProgramReloadLevel.Partial,oe()))},e,(null===(e=o.parsedCommandLine)||void 0===e?void 0:e.watchOptions)||E,De.WatchType.WildcardDirectoryOfReferencedProject)}):o.watchedDirectories&&(De.clearMap(o.watchedDirectories,De.closeFileWatcherOf),o.watchedDirectories=void 0),xe(a,null===(c=o.parsedCommandLine)||void 0===c?void 0:c.options,(null===(c=o.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||E,De.WatchType.ExtendedConfigOfReferencedProject),n}function de(r,e,n,t,i,a){return L(e,function(e,t){return n(e,t,r)},t,i,a)}function pe(e,t,r){fe(e,r,t),t===De.FileWatcherEventKind.Deleted&&g.has(r)&&K.invalidateResolutionOfFile(r),ee(r),oe()}function fe(e,t,r){P&&P.addOrDeleteFile(e,t,r)}function ge(e){return null!=u&&u.has(e)?De.noopFileWatcher:de(e,e,he,De.PollingInterval.Medium,E,De.WatchType.MissingFile)}function me(e){return g.has(e)?De.noopFileWatcher:de(e,e,ye,De.PollingInterval.High,E,De.WatchType.PackageJson)}function ye(e,t,r){fe(e,r,t),o=De.ConfigFileProgramReloadLevel.Full,i=!0,oe()}function he(e,t,r){fe(e,r,t),t===De.FileWatcherEventKind.Created&&a.has(r)&&(a.get(r).close(),a.delete(r),ee(r),oe())}function ve(){n?De.updateWatchingWildcardDirectories(e=e||new De.Map,new De.Map(De.getEntries(n)),be):e&&De.clearMap(e,De.closeFileWatcherOf)}function be(r,e){return R(r,function(e){De.Debug.assert(!!v);var t=X(e);P&&P.addOrDeleteFileOrDirectory(e,t),ee(t),De.isIgnoredFileFromWildCardWatching({watchedDirPath:X(r),fileOrDirectory:e,fileOrDirectoryPath:t,configFileName:v,extraFileExtensions:S,options:k,program:V||C,currentDirectory:h,useCaseSensitiveFileNames:y,writeLog:B,toPath:X})||o!==De.ConfigFileProgramReloadLevel.Full&&(o=De.ConfigFileProgramReloadLevel.Partial,oe())},e,E,De.WatchType.WildcardDirectory)}function xe(e,t,i,a){De.updateSharedExtendedConfigFileWatcher(e,t,c=c||new De.Map,function(r,n){return L(r,function(e,t){fe(r,n,t),p&&De.cleanExtendedConfigCache(p,n,X);t=null===(t=c.get(n))||void 0===t?void 0:t.projects;null!=t&&t.size&&t.forEach(function(e){var t;X(v)===e?o=De.ConfigFileProgramReloadLevel.Full:((t=null==u?void 0:u.get(e))&&(t.reloadLevel=De.ConfigFileProgramReloadLevel.Full),K.removeResolutionsFromProjectReferenceRedirects(e)),oe()})},De.PollingInterval.High,i,a)},X)}}}(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(P){var T,C,k,e,w=new Date(-864e13),I=new Date(864e13);function t(e,t){return r=t,n=function(){return new P.Map},(e=(t=e).get(r))||(i=n(),t.set(r,i)),e||i;var r,n,i}function O(e,t){return e<t?t:e}function f(e){return!!e&&!!e.buildOrder}function u(e){return f(e)?e.buildOrder:e}function i(r,n){return function(e){var t=n?"[".concat(P.formatColorAndReset(P.getLocaleTimeString(r),P.ForegroundColorEscapeSequences.Grey),"] "):"".concat(P.getLocaleTimeString(r)," - ");t+="".concat(P.flattenDiagnosticMessageText(e.messageText,r.newLine)).concat(r.newLine+r.newLine),r.write(t)}}function a(r,e,t,n){e=P.createProgramHost(r,e);return e.getModifiedTime=r.getModifiedTime?function(e){return r.getModifiedTime(e)}:P.returnUndefined,e.setModifiedTime=r.setModifiedTime?function(e,t){return r.setModifiedTime(e,t)}:P.noop,e.deleteFile=r.deleteFile?function(e){return r.deleteFile(e)}:P.noop,e.reportDiagnostic=t||P.createDiagnosticReporter(r),e.reportSolutionBuilderStatus=n||i(r),e.now=P.maybeBind(r,r.now),e}function o(e,t,r,n,i){var a,o,s=t,c=t,l=s.getCurrentDirectory(),u=P.createGetCanonicalFileName(s.useCaseSensitiveFileNames()),_=(a=n,o={},P.commonOptionsWithBuild.forEach(function(e){P.hasProperty(a,e.name)&&(o[e.name]=a[e.name])}),o),d=P.createCompilerHostFromProgramHost(s,function(){return v.projectCompilerOptions});P.setGetSourceFileAsHashVersioned(d,s),d.getParsedCommandLine=function(e){return L(v,e,M(v,e))},d.resolveModuleNames=P.maybeBind(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=P.maybeBind(s,s.resolveTypeReferenceDirectives);var p,f,g=d.resolveModuleNames?void 0:P.createModuleResolutionCache(l,u),m=d.resolveTypeReferenceDirectives?void 0:P.createTypeReferenceDirectiveResolutionCache(l,u,void 0,null==g?void 0:g.getPackageJsonInfoCache());d.resolveModuleNames||(p=function(e,t,r,n){return P.resolveModuleName(e,r,v.projectCompilerOptions,d,g,n,t).resolvedModule},d.resolveModuleNames=function(e,t,r,n,i,a){return P.loadWithModeAwareCache(P.Debug.checkEachDefined(e),P.Debug.checkDefined(a),t,n,p)},d.getModuleResolutionCache=function(){return g}),d.resolveTypeReferenceDirectives||(f=function(e,t,r,n){return P.resolveTypeReferenceDirective(e,t,v.projectCompilerOptions,d,r,v.typeReferenceDirectiveResolutionCache,n).resolvedTypeReferenceDirective},d.resolveTypeReferenceDirectives=function(e,t,r,n,i){return P.loadWithTypeDirectiveCache(P.Debug.checkEachDefined(e),t,r,i,f)});var y=P.createWatchFactory(c,n),h=y.watchFile,t=y.watchDirectory,y=y.writeLog,v={host:s,hostWithWatch:c,currentDirectory:l,getCanonicalFileName:u,parseConfigFileHost:P.parseConfigHostFromCompilerHostLike(s),write:P.maybeBind(s,s.trace),options:n,baseCompilerOptions:_,rootNames:r,baseWatchOptions:i,resolvedConfigFilePaths:new P.Map,configFileCache:new P.Map,projectStatus:new P.Map,buildInfoChecked:new P.Map,extendedConfigCache:new P.Map,builderPrograms:new P.Map,diagnostics:new P.Map,projectPendingBuild:new P.Map,projectErrorsReported:new P.Map,compilerHost:d,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:m,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 P.Map,allWatchedInputFiles:new P.Map,allWatchedConfigFiles:new P.Map,allWatchedExtendedConfigFiles:new P.Map,allWatchedPackageJsonFiles:new P.Map,lastCachedPackageJsonLookups:new P.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:h,watchDirectory:t,writeLog:y};return v}function E(e,t){return P.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=E(e,t);return r.set(t,e),e}function _(e){return e.options}function L(e,t,r){var n,i=e.configFileCache,a=i.get(r);if(a)return _(a)?a:void 0;var o,s=e.parseConfigFileHost,c=e.baseCompilerOptions,l=e.baseWatchOptions,a=e.extendedConfigCache,e=e.host;return e.getParsedCommandLine?(o=e.getParsedCommandLine(t))||(n=P.createCompilerDiagnostic(P.Diagnostics.File_0_not_found,t)):(s.onUnRecoverableConfigFileDiagnostic=function(e){return n=e},o=P.getParsedCommandLineOfConfigFile(t,c,s,a,l),s.onUnRecoverableConfigFileDiagnostic=P.noop),i.set(r,o||n),o}function N(e,t){return P.resolveConfigFileProjectName(P.resolvePath(e.currentDirectory,t))}function s(l,e){for(var u,_,d=new P.Map,p=new P.Map,f=[],t=0,r=e;t<r.length;t++)!function e(t,r){var n=M(l,t);if(p.has(n))return;if(d.has(n))return void(r||(_=_||[]).push(P.createCompilerDiagnostic(P.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(l,t,n);if(i&&i.projectReferences)for(var a=0,o=i.projectReferences;a<o.length;a++){var s=o[a],c=N(l,s.path);e(c,r||s.circular)}f.pop();p.set(n,!0);(u=u||[]).push(t)}(r[t]);return _?{buildOrder:u||P.emptyArray,circularDiagnostics:_}:u||P.emptyArray}function c(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 P.Map(u(e).map(function(e){return[M(t,e),!0]})),n={onDeleteValue:P.noop};P.mutateMapSkippingNewValues(t.configFileCache,r,n),P.mutateMapSkippingNewValues(t.projectStatus,r,n),P.mutateMapSkippingNewValues(t.buildInfoChecked,r,n),P.mutateMapSkippingNewValues(t.builderPrograms,r,n),P.mutateMapSkippingNewValues(t.diagnostics,r,n),P.mutateMapSkippingNewValues(t.projectPendingBuild,r,n),P.mutateMapSkippingNewValues(t.projectErrorsReported,r,n),t.watch&&(P.mutateMapSkippingNewValues(t.allWatchedConfigFiles,r,{onDeleteValue:P.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach(function(t){t.projects.forEach(function(e){r.has(e)||t.projects.delete(e)}),t.close()}),P.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,r,{onDeleteValue:function(e){return e.forEach(P.closeFileWatcherOf)}}),P.mutateMapSkippingNewValues(t.allWatchedInputFiles,r,{onDeleteValue:function(e){return e.forEach(P.closeFileWatcher)}}),P.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles,r,{onDeleteValue:function(e){return e.forEach(P.closeFileWatcher)}}));return t.buildOrder=e}(e)}function g(t,e,r){var n=e&&N(t,e),e=c(t);if(f(e))return e;if(n){var i=M(t,n);if(-1===P.findIndex(e,function(e){return M(t,e)===i}))return}e=n?s(t,[n]):e;return P.Debug.assert(!f(e)),P.Debug.assert(!r||void 0!==n),P.Debug.assert(!r||e[e.length-1]===n),r?e.slice(0,e.length-1):e}function n(t){t.cache&&d(t);var r=t.compilerHost,e=t.host,n=t.readFileWithCache,i=r.getSourceFile,a=P.changeCompilerHostLikeToUseCache(e,function(e){return E(t,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.call.apply(i,__spreadArray([r],e,!1))}),o=a.originalReadFile,s=a.originalFileExists,c=a.originalDirectoryExists,l=a.originalCreateDirectory,u=a.originalWriteFile,e=a.getSourceFileWithCache,a=a.readFileWithCache;t.readFileWithCache=a,r.getSourceFile=e,t.cache={originalReadFile:o,originalFileExists:s,originalDirectoryExists:c,originalCreateDirectory:l,originalWriteFile:u,originalReadFileWithCache:n,originalGetSourceFile:i}}function d(e){var t,r,n,i,a,o;e.cache&&(t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache,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(),null!=a&&a.clear(),null!=o&&o.clear(),e.cache=void 0)}function A(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function F(e,t,r){var n=e.projectPendingBuild,e=n.get(t);(void 0===e||e<r)&&n.set(t,r)}function p(t,e){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&Z(t,P.Diagnostics.Starting_compilation_in_watch_mode),n(t),u(c(t)).forEach(function(e){return t.projectPendingBuild.set(M(t,e),P.ConfigFileProgramReloadLevel.None)}),e&&e.throwIfCancellationRequested())}function R(e,t){return e.projectPendingBuild.delete(t),e.currentInvalidatedProject=void 0,e.diagnostics.has(t)?P.ExitStatus.DiagnosticsPresent_OutputsSkipped:P.ExitStatus.Success}function B(r,f,g,m,s,y,c){var h,v,l,b=r===C.Build?k.CreateProgram:k.EmitBundle;return r===C.Build?{kind:r,project:g,projectPath:m,buildOrder:c,getCompilerOptions:function(){return y.options},getCurrentDirectory:function(){return f.currentDirectory},getBuilderProgram:function(){return u(P.identity)},getProgram:function(){return u(function(e){return e.getProgramOrUndefined()})},getSourceFile:function(t){return u(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 u(function(e){return e.getSemanticDiagnosticsOfNextAffectedFile&&e.getSemanticDiagnosticsOfNextAffectedFile(t,r)})},emit:function(r,n,i,a,o){return r||a?u(function(e){var t;return e.emit(r,n,i,a,o||(null===(e=(t=f.host).getCustomTransformers)||void 0===e?void 0:e.call(t,g)))}):(S(k.SemanticDiagnostics,i),b===k.EmitBuildInfo?p(n,i):b===k.Emit?d(n,i,o):void 0)},done:e}:{kind:r,project:g,projectPath:m,buildOrder:c,getCompilerOptions:function(){return y.options},getCurrentDirectory:function(){return f.currentDirectory},emit:function(e,t){return b!==k.EmitBundle?l:D(e,t)},done:e};function e(e,t,r){return S(k.Done,e,t,r),R(f,m)}function u(e){return S(k.CreateProgram),h&&e(h)}function n(e){return u(e)||P.emptyArray}function o(){var e;if(P.Debug.assert(void 0===h),f.options.dry)return Y(f,P.Diagnostics.A_non_dry_build_would_build_project_0,g),v=T.Success,void(b=k.QueueReferencingProjects);if(f.options.verbose&&Y(f,P.Diagnostics.Building_project_0,g),0===y.fileNames.length)return ee(f,m,P.getConfigFileParsingDiagnostics(y)),v=T.None,void(b=k.QueueReferencingProjects);var t=f.host,r=f.compilerHost;f.projectCompilerOptions=y.options,null!==(e=f.moduleResolutionCache)&&void 0!==e&&e.update(y.options),null!==(e=f.typeReferenceDirectiveResolutionCache)&&void 0!==e&&e.update(y.options),h=t.createProgram(y.fileNames,y.options,r,function(e,t,r){var n=e.options,i=e.builderPrograms,e=e.compilerHost;if(n.force)return;t=i.get(t);return t||P.readBuilderProgram(r.options,e)}(f,m,y),P.getConfigFileParsingDiagnostics(y),y.projectReferences),f.watch&&(f.lastCachedPackageJsonLookups.set(m,f.moduleResolutionCache&&P.map(f.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(e){var t=e[0],e=e[1];return[f.host.realpath&&e?E(f,f.host.realpath(t)):t,e]})),f.builderPrograms.set(m,h)),b++}function _(e,t,r){e.length?(r=z(f,m,h,y,e,t,r),v=r.buildResult,b=r.step):b++}function d(i,e,t){var r,n;P.Debug.assertIsDefined(h),P.Debug.assert(b===k.Emit),h.backupState();var a=[],o=P.emitFilesAndReportErrors(h,function(e){return(n=n||[]).push(e)},void 0,void 0,function(e,t,r){return a.push({name:e,text:t,writeByteOrderMark:r})},e,!1,t||(null===(o=(r=f.host).getCustomTransformers)||void 0===o?void 0:o.call(r,g))).emitResult;if(n)return h.restoreState(),r=z(f,m,h,y,n,T.DeclarationEmitErrors,"Declaration file"),v=r.buildResult,b=r.step,{emitSkipped:!0,diagnostics:o.diagnostics};var s=f.host,c=f.compilerHost,l=T.DeclarationOutputUnchanged,u=w,_=!1,d=P.createDiagnosticCollection(),p=new P.Map;return a.forEach(function(e){var t,r=e.name,n=e.text,e=e.writeByteOrderMark;!_&&P.isDeclarationFileName(r)&&(s.fileExists(r)&&f.readFileWithCache(r)===n?t=s.getModifiedTime(r):(l&=~T.DeclarationOutputUnchanged,_=!0)),p.set(E(f,r),r),P.writeFile(i?{writeFile:i}:c,d,r,n,e),void 0!==t&&(u=O(t,u))}),x(d,p,u,_,a.length?a[0].name:P.getFirstProjectOutput(y,!s.useCaseSensitiveFileNames()),l),o}function p(e,t){P.Debug.assertIsDefined(h),P.Debug.assert(b===k.EmitBuildInfo);t=h.emitBuildInfo(e,t);return t.diagnostics.length&&($(f,t.diagnostics),f.diagnostics.set(m,__spreadArray(__spreadArray([],f.diagnostics.get(m),!0),t.diagnostics,!0)),v=T.EmitErrors&v),t.emittedFiles&&f.write&&t.emittedFiles.forEach(function(e){return j(f,y,e)}),J(f,h,y),b=k.QueueReferencingProjects,t}function x(e,t,r,n,i,a){var o=e.getDiagnostics();if(o.length)return e=z(f,m,h,y,o,T.EmitErrors,"Emit"),v=e.buildResult,b=e.step,o;f.write&&t.forEach(function(e){return j(f,y,e)});t=V(f,y,r,P.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,t);return f.diagnostics.delete(m),f.projectStatus.set(m,{type:P.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:n?I:t,oldestOutputFileName:i}),J(f,h,y),b=k.QueueReferencingProjects,v=a,o}function D(n,e){if(P.Debug.assert(r===C.UpdateBundle),f.options.dry)return Y(f,P.Diagnostics.A_non_dry_build_would_update_output_of_project_0,g),v=T.Success,void(b=k.QueueReferencingProjects);f.options.verbose&&Y(f,P.Diagnostics.Updating_output_of_project_0,g);var i=f.compilerHost;f.projectCompilerOptions=y.options;var t=P.emitUsingBuildInfo(y,i,function(e){e=N(f,e.path);return L(f,e,M(f,e))},e||(null===(e=(t=f.host).getCustomTransformers)||void 0===e?void 0:e.call(t,g)));if(P.isString(t))return Y(f,P.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,g,X(f,t)),b=k.BuildInvalidatedProjectOfBundle,l=B(C.Build,f,g,m,s,y,c);P.Debug.assert(!!t.length);var a=P.createDiagnosticCollection(),o=new P.Map;return t.forEach(function(e){var t=e.name,r=e.text,e=e.writeByteOrderMark;o.set(E(f,t),t),P.writeFile(n?{writeFile:n}:i,a,t,r,e)}),{emitSkipped:!1,diagnostics:x(a,o,w,!1,t[0].name,T.DeclarationOutputUnchanged)}}function S(e,t,r,n){for(;b<=e&&b<k.Done;){var i=b;switch(b){case k.CreateProgram:o();break;case k.SyntaxDiagnostics:a=t,P.Debug.assertIsDefined(h),_(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],h.getConfigFileParsingDiagnostics(),!0),h.getOptionsDiagnostics(a),!0),h.getGlobalDiagnostics(a),!0),h.getSyntacticDiagnostics(void 0,a),!0),T.SyntaxErrors,"Syntactic");break;case k.SemanticDiagnostics:a=t,_(P.Debug.checkDefined(h).getSemanticDiagnostics(void 0,a),T.TypeErrors,"Semantic");break;case k.Emit:d(r,t,n);break;case k.EmitBuildInfo:p(r,t);break;case k.EmitBundle:D(r,n);break;case k.BuildInvalidatedProjectOfBundle:P.Debug.checkDefined(l).done(t,r,n),b=k.Done;break;case k.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],l=M(e,c);if(!e.projectPendingBuild.has(l)){c=L(e,c,l);if(c&&c.projectReferences)for(var u=0,_=c.projectReferences;u<_.length;u++){var d=_[u],p=N(e,d.path);if(M(e,p)===r){var f=e.projectStatus.get(l);if(f)switch(f.type){case P.UpToDateStatusType.UpToDate:if(o&T.DeclarationOutputUnchanged){d.prepend?e.projectStatus.set(l,{type:P.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:f.oldestOutputFileName,newerProjectName:t}):f.type=P.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case P.UpToDateStatusType.UpToDateWithUpstreamTypes:case P.UpToDateStatusType.OutOfDateWithPrepend:o&T.DeclarationOutputUnchanged||e.projectStatus.set(l,{type:P.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:f.type===P.UpToDateStatusType.OutOfDateWithPrepend?f.outOfDateOutputFileName:f.oldestOutputFileName,newerProjectName:t});break;case P.UpToDateStatusType.UpstreamBlocked:M(e,N(e,f.upstreamProjectName))===r&&A(e,l)}F(e,l,P.ConfigFileProgramReloadLevel.None);break}}}}}(f,g,m,s,y,c,P.Debug.checkDefined(v)),b++;break;case k.Done:default:P.assertType(b)}P.Debug.assert(i<b)}var a}}function m(e,t,r){if(e.projectPendingBuild.size&&!f(t)){if(e.currentInvalidatedProject)return P.arrayIsEqualTo(e.currentInvalidatedProject.buildOrder,t)?e.currentInvalidatedProject:void 0;for(var n,i,a=e.options,o=e.projectPendingBuild,s=0;s<t.length;s++){var c=t[s],l=M(e,c),u=e.projectPendingBuild.get(l);if(void 0!==u){r&&(r=!1,ne(e,t));var _=L(e,c,l);if(_){u===P.ConfigFileProgramReloadLevel.Full?(S(e,c,l,_),q(e,l,_),W(e,c,l,_),H(e,c,l,_),G(e,c,l,_)):u===P.ConfigFileProgramReloadLevel.Partial&&(_.fileNames=P.getFileNamesFromConfigSpecs(_.options.configFile.configFileSpecs,P.getDirectoryPath(c),_.options,e.parseConfigFileHost),P.updateErrorForNoInputFiles(_.fileNames,c,_.options.configFile.configFileSpecs,_.errors,P.canJsonReportNoInputFiles(_.raw)),H(e,c,l,_),G(e,c,l,_));var d=U(e,_,l);if(n=c,i=d,(u=e).options.verbose&&function(e,t,r){if(e.options.force&&(r.type===P.UpToDateStatusType.UpToDate||r.type===P.UpToDateStatusType.UpToDateWithUpstreamTypes))return Y(e,P.Diagnostics.Project_0_is_being_forcibly_rebuilt,X(e,t)),0;switch(r.type){case P.UpToDateStatusType.OutOfDateWithSelf:return Y(e,P.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 P.UpToDateStatusType.OutOfDateWithUpstream:return Y(e,P.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 P.UpToDateStatusType.OutputMissing:return Y(e,P.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,X(e,t),X(e,r.missingOutputFileName)),0;case P.UpToDateStatusType.UpToDate:if(void 0!==r.newestInputFileTime)return Y(e,P.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 P.UpToDateStatusType.OutOfDateWithPrepend:return Y(e,P.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,X(e,t),X(e,r.newerProjectName)),0;case P.UpToDateStatusType.UpToDateWithUpstreamTypes:return Y(e,P.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,X(e,t)),0;case P.UpToDateStatusType.UpstreamOutOfDate:return Y(e,P.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,X(e,t),X(e,r.upstreamProjectName)),0;case P.UpToDateStatusType.UpstreamBlocked:return Y(e,r.upstreamProjectBlocked?P.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:P.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,X(e,t),X(e,r.upstreamProjectName)),0;case P.UpToDateStatusType.Unbuildable:return Y(e,P.Diagnostics.Failed_to_parse_file_0_Colon_1,X(e,t),r.reason),0;case P.UpToDateStatusType.TsVersionOutputOfDate:return Y(e,P.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,P.version),0;case P.UpToDateStatusType.ContainerOnly:case P.UpToDateStatusType.ComputingUpstream:break;default:P.assertType(r)}}(u,n,i),!a.force){if(d.type===P.UpToDateStatusType.UpToDate){ee(e,l,P.getConfigFileParsingDiagnostics(_)),o.delete(l),a.dry&&Y(e,P.Diagnostics.Project_0_is_up_to_date,c);continue}if(d.type===P.UpToDateStatusType.UpToDateWithUpstreamTypes)return ee(e,l,P.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(){y(e,n,r),a=!1},done:function(){return a&&y(e,n,r),R(e,r)}}}(e,c,l,_,t)}if(d.type!==P.UpToDateStatusType.UpstreamBlocked){if(d.type!==P.UpToDateStatusType.ContainerOnly)return B((u=d,n=_,i=(i=e).options,u.type!==P.UpToDateStatusType.OutOfDateWithPrepend||i.force||(0===n.fileNames.length||P.getConfigFileParsingDiagnostics(n).length||!P.isIncrementalCompilation(n.options))?C.Build:C.UpdateBundle),e,c,l,s,_,t);ee(e,l,P.getConfigFileParsingDiagnostics(_)),o.delete(l)}else ee(e,l,P.getConfigFileParsingDiagnostics(_)),o.delete(l),a.verbose&&Y(e,d.upstreamProjectBlocked?P.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:P.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,d.upstreamProjectName)}else te(e,l),o.delete(l)}}}}function j(e,t,r){e=e.write;e&&t.options.listEmittedFiles&&e("TSFILE: ".concat(r))}function J(e,t,r){t?(t&&e.write&&P.listFiles(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function z(e,t,r,n,i,a,o){var s=!(a&T.SyntaxErrors)&&r&&!P.outFile(r.getCompilerOptions());return ee(e,t,i),e.projectStatus.set(t,{type:P.UpToDateStatusType.Unbuildable,reason:"".concat(o," errors")}),s?{buildResult:a,step:k.EmitBuildInfo}:(J(e,r,n),{buildResult:a,step:k.QueueReferencingProjects})}function K(e,t,r,n){if(r<P.getModifiedTime(e.host,t))return{type:P.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:n,newerInputFileName:t}}function U(e,t,r){if(void 0===t)return{type:P.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=!!t.options.force,i=void 0,a=w,o=t.host,s=0,c=e.fileNames;s<c.length;s++){var l,u=c[s];if(!o.fileExists(u))return{type:P.UpToDateStatusType.Unbuildable,reason:"".concat(u," does not exist")};n||a<(l=P.getModifiedTime(o,u))&&(i=u,a=l)}if(!e.fileNames.length&&!P.canJsonReportNoInputFiles(e.raw))return{type:P.UpToDateStatusType.ContainerOnly};var _,d=P.getAllProjectOutputs(e,!o.useCaseSensitiveFileNames()),p="(none)",f=I,g="(none)",m=w,y=w,h=!1;if(!n)for(var v=0,b=d;v<b.length;v++){var x=b[v];if(!o.fileExists(x)){_=x;break}var D=P.getModifiedTime(o,x);if(D<f&&(f=D,p=x),D<a){h=!0;break}m<D&&(m=D,g=x),P.isDeclarationFileName(x)&&(y=O(y,P.getModifiedTime(o,x)))}var S,T=!1,C=!1;if(e.projectReferences){t.projectStatus.set(r,{type:P.UpToDateStatusType.ComputingUpstream});for(var k=0,E=e.projectReferences;k<E.length;k++){var N=E[k],C=C||!!N.prepend,A=P.resolveProjectReferencePath(N),F=M(t,A),F=U(t,L(t,A,F),F);if(F.type!==P.UpToDateStatusType.ComputingUpstream&&F.type!==P.UpToDateStatusType.ContainerOnly){if(F.type===P.UpToDateStatusType.Unbuildable||F.type===P.UpToDateStatusType.UpstreamBlocked)return{type:P.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:N.path,upstreamProjectBlocked:F.type===P.UpToDateStatusType.UpstreamBlocked};if(F.type!==P.UpToDateStatusType.UpToDate)return{type:P.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:N.path};if(!(n||_||F.newestInputFileTime&&F.newestInputFileTime<=f)){if(!(F.newestDeclarationFileContentChangedTime&&F.newestDeclarationFileContentChangedTime<=f))return P.Debug.assert(void 0!==p,"Should have an oldest output filename here"),{type:P.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:p,newerProjectName:N.path};T=!0,S=N.path}}}}if(void 0!==_)return{type:P.UpToDateStatusType.OutputMissing,missingOutputFileName:_};if(h)return{type:P.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:p,newerInputFileName:i};if(d=K(t,e.options.configFilePath,f,p))return d;if(d=P.forEach(e.options.configFile.extendedSourceFiles||P.emptyArray,function(e){return K(t,e,f,p)}))return d;if(d=P.forEach(t.lastCachedPackageJsonLookups.get(r)||P.emptyArray,function(e){e=e[0];return K(t,e,f,p)}))return d;if(!n&&!t.buildInfoChecked.has(r)){t.buildInfoChecked.set(r,!0);e=P.getTsBuildInfoEmitOutputFilePath(e.options);if(e){e=t.readFileWithCache(e),e=e&&P.getBuildInfo(e);if(e&&(e.bundle||e.program)&&e.version!==P.version)return{type:P.UpToDateStatusType.TsVersionOutputOfDate,version:e.version}}}return C&&T?{type:P.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:p,newerProjectName:S}:{type:T?P.UpToDateStatusType.UpToDateWithUpstreamTypes:P.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:y,newestInputFileTime:a,newestOutputFileTime:m,newestInputFileName:i,newestOutputFileName:g,oldestOutputFileName:p}}(e,t,r);return e.projectStatus.set(r,t),t}function V(e,t,r,n,i){if(t.options.noEmit)return r;var a=e.host,o=P.getAllProjectOutputs(t,!a.useCaseSensitiveFileNames());if(!i||o.length!==i.size)for(var s=!!e.options.verbose,c=a.now?a.now():new Date,l=0,u=o;l<u.length;l++){var _=u[l];i&&i.has(E(e,_))||(s&&(s=!1,Y(e,n,t.options.configFilePath)),P.isDeclarationFileName(_)&&(r=O(r,P.getModifiedTime(a,_))),a.setModifiedTime(_,c))}return r}function y(e,t,r){if(e.options.dry)return Y(e,P.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath),0;var n=V(e,t,w,P.Diagnostics.Updating_output_timestamps_of_project_0);e.projectStatus.set(r,{type:P.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:n,oldestOutputFileName:P.getFirstProjectOutput(t,!e.host.useCaseSensitiveFileNames())})}function l(t,e,r,n,i,a){var o=g(t,e,a);if(!o)return P.ExitStatus.InvalidProject_OutputsSkipped;p(t,r);for(var s=!0,c=0;;){var l=m(t,o,s);if(!l)break;s=!1,l.done(r,n,null==i?void 0:i(l.project)),t.diagnostics.has(l.projectPath)||c++}return d(t),re(t,o),function(e,t){if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=u(t);r<n.length;r++){var i=n[r],a=M(e,i),o=L(e,i,a);S(e,i,a,o),q(e,a,o),o&&(W(e,i,a,o),H(e,i,a,o),G(e,i,a,o))}}}(t,o),f(o)?P.ExitStatus.ProjectReferenceCycle_OutputsSkipped:o.some(function(e){return t.diagnostics.has(M(t,e))})?c?P.ExitStatus.DiagnosticsPresent_OutputsGenerated:P.ExitStatus.DiagnosticsPresent_OutputsSkipped:P.ExitStatus.Success}function h(t,e,r){e=g(t,e,r);if(!e)return P.ExitStatus.InvalidProject_OutputsSkipped;if(f(e))return $(t,e.circularDiagnostics),P.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var r=t.options,n=t.host,i=r.dry?[]:void 0,a=0,o=e;a<o.length;a++){var s=o[a],c=M(t,s),l=L(t,s,c);if(void 0!==l){s=P.getAllProjectOutputs(l,!n.useCaseSensitiveFileNames());if(s.length)for(var u=new P.Set(l.fileNames.map(function(e){return E(t,e)})),_=0,d=s;_<d.length;_++){var p=d[_];u.has(E(t,p))||n.fileExists(p)&&(i?i.push(p):(n.deleteFile(p),v(t,c,P.ConfigFileProgramReloadLevel.None)))}}else te(t,c)}return i&&Y(t,P.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,i.map(function(e){return"\r\n * ".concat(e)}).join("")),P.ExitStatus.Success}function v(e,t,r){e.host.getParsedCommandLine&&r===P.ConfigFileProgramReloadLevel.Partial&&(r=P.ConfigFileProgramReloadLevel.Full),r===P.ConfigFileProgramReloadLevel.Full&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,A(e,t),F(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(),Z(e,P.Diagnostics.File_change_detected_Starting_incremental_compilation));var t=c(e),r=m(e,t,!1);r&&(r.done(),e.projectPendingBuild.size)?e.watch&&!e.timerToBuildInvalidatedProject&&x(e):(d(e),re(e,t))}function S(e,t,r,n){e.watch&&!e.allWatchedConfigFiles.has(r)&&e.allWatchedConfigFiles.set(r,e.watchFile(t,function(){b(e,r,P.ConfigFileProgramReloadLevel.Full)},P.PollingInterval.High,null==n?void 0:n.watchOptions,P.WatchType.ConfigFile,t))}function q(r,e,n){P.updateSharedExtendedConfigFileWatcher(e,null==n?void 0:n.options,r.allWatchedExtendedConfigFiles,function(e,t){return r.watchFile(e,function(){var e;return null===(e=r.allWatchedExtendedConfigFiles.get(t))||void 0===e?void 0:e.projects.forEach(function(e){return b(r,e,P.ConfigFileProgramReloadLevel.Full)})},P.PollingInterval.High,null==n?void 0:n.watchOptions,P.WatchType.ExtendedConfigFile)},function(e){return E(r,e)})}function W(r,n,i,a){r.watch&&P.updateWatchingWildcardDirectories(t(r.allWatchedWildcardDirectories,i),new P.Map(P.getEntries(a.wildcardDirectories)),function(t,e){return r.watchDirectory(t,function(e){P.isIgnoredFileFromWildCardWatching({watchedDirPath:E(r,t),fileOrDirectory:e,fileOrDirectoryPath:E(r,e),configFileName:n,currentDirectory:r.currentDirectory,options:a.options,program:r.builderPrograms.get(i)||(null===(e=i,e=(e=r.configFileCache.get(e))&&_(e)?e:void 0)||void 0===e?void 0:e.fileNames),useCaseSensitiveFileNames:r.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return r.writeLog(e)},toPath:function(e){return E(r,e)}})||b(r,i,P.ConfigFileProgramReloadLevel.Partial)},e,null==a?void 0:a.watchOptions,P.WatchType.WildcardDirectory,n)})}function H(r,n,i,a){r.watch&&P.mutateMap(t(r.allWatchedInputFiles,i),P.arrayToMap(a.fileNames,function(e){return E(r,e)}),{createNewValue:function(e,t){return r.watchFile(t,function(){return b(r,i,P.ConfigFileProgramReloadLevel.None)},P.PollingInterval.Low,null==a?void 0:a.watchOptions,P.WatchType.SourceFile,n)},onDeleteValue:P.closeFileWatcher})}function G(r,n,i,a){r.watch&&r.lastCachedPackageJsonLookups&&P.mutateMap(t(r.allWatchedPackageJsonFiles,i),new P.Map(r.lastCachedPackageJsonLookups.get(i)),{createNewValue:function(e,t){return r.watchFile(e,function(){return b(r,i,P.ConfigFileProgramReloadLevel.None)},P.PollingInterval.High,null==a?void 0:a.watchOptions,P.WatchType.PackageJson,n)},onDeleteValue:P.closeFileWatcher})}function Q(e,t,r,n,i){var a=o(e,t,r,n,i);return{build:function(e,t,r,n){return l(a,e,t,r,n)},clean:function(e){return h(a,e)},buildReferences:function(e,t,r,n){return l(a,e,t,r,n,!0)},cleanReferences:function(e){return h(a,e,!0)},getNextInvalidatedProject:function(e){return p(a,e),m(a,c(a),!1)},getBuildOrder:function(){return c(a)},getUpToDateStatusOfProject:function(e){var t=N(a,e),e=M(a,t);return U(a,L(a,t,e),e)},invalidateProject:function(e,t){return v(a,e,t||P.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return D(a)},getAllParsedConfigs:function(){return P.arrayFrom(P.mapDefinedIterator(a.configFileCache.values(),function(e){return _(e)?e:void 0}))},close:function(){return e=a,P.clearMap(e.allWatchedConfigFiles,P.closeFileWatcher),P.clearMap(e.allWatchedExtendedConfigFiles,P.closeFileWatcherOf),P.clearMap(e.allWatchedWildcardDirectories,function(e){return P.clearMap(e,P.closeFileWatcherOf)}),P.clearMap(e.allWatchedInputFiles,function(e){return P.clearMap(e,P.closeFileWatcher)}),void P.clearMap(e.allWatchedPackageJsonFiles,function(e){return P.clearMap(e,P.closeFileWatcher)});var e}}}function X(t,e){return P.convertToRelativePath(e,t.currentDirectory,function(e){return t.getCanonicalFileName(e)})}function Y(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e.host.reportSolutionBuilderStatus(P.createCompilerDiagnostic.apply(void 0,__spreadArray([t],r,!1)))}function Z(e,t){for(var r,n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];null!==(n=(r=e.hostWithWatch).onWatchStatusChange)&&void 0!==n&&n.call(r,P.createCompilerDiagnostic.apply(void 0,__spreadArray([t],i,!1)),e.host.getNewLine(),e.baseCompilerOptions)}function $(e,t){var r=e.host;t.forEach(function(e){return r.reportDiagnostic(e)})}function ee(e,t,r){$(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function te(e,t){ee(e,t,[e.configFileCache.get(t)])}function re(t,e){var r,n,i,a;t.needsSummary&&(t.needsSummary=!1,r=t.watch||!!t.host.reportErrorSummary,n=t.diagnostics,i=0,a=[],f(e)?(ne(t,e.buildOrder),$(t,e.circularDiagnostics),r&&(i+=P.getErrorCountForSummary(e.circularDiagnostics)),r&&(a=__spreadArray(__spreadArray([],a,!0),P.getFilesInErrorForSummary(e.circularDiagnostics),!0))):(e.forEach(function(e){e=M(t,e);t.projectErrorsReported.has(e)||$(t,n.get(e)||P.emptyArray)}),r&&n.forEach(function(e){return i+=P.getErrorCountForSummary(e)}),r&&n.forEach(function(e){return __spreadArray(__spreadArray([],a,!0),P.getFilesInErrorForSummary(e),!0)})),t.watch?Z(t,P.getWatchErrorSummaryDiagnosticMessage(i),i):t.host.reportErrorSummary&&t.host.reportErrorSummary(i,a))}function ne(t,e){t.options.verbose&&Y(t,P.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",P.isCircularBuildOrder=f,P.getBuildOrderFromAnyBuildOrder=u,P.createBuilderStatusReporter=i,P.createSolutionBuilderHost=function(e,t,r,n,i){return void 0===e&&(e=P.sys),(n=a(e,t,r,n)).reportErrorSummary=i,n},P.createSolutionBuilderWithWatchHost=function(e,t,r,n,i){return void 0===e&&(e=P.sys),n=a(e,t,r,n),i=P.createWatchHost(e,i),P.copyProperties(n,i),n},P.createSolutionBuilder=function(e,t,r){return Q(!1,e,t,r)},P.createSolutionBuilderWithWatch=function(e,t,r,n){return Q(!0,e,t,r,n)},(e=C=P.InvalidatedProjectKind||(P.InvalidatedProjectKind={}))[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",(e=k=k||{})[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"".concat(t.padLeft(e.getHours().toString(),2,"0"),":").concat(t.padLeft(e.getMinutes().toString(),2,"0"),":").concat(t.padLeft(e.getSeconds().toString(),2,"0"),".").concat(t.padLeft(e.getMilliseconds().toString(),3,"0"))}}(ts=ts||{}),function(S){!function(t){function x(e,t){return new S.Version(S.getProperty(t,"ts".concat(S.versionMajorMinor))||S.getProperty(t,"latest")).compareTo(e.version)<=0}t.isTypingUpToDate=x;var e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];function D(e){return t.nodeCoreModules.has(e)?"node":e}t.prefixedNodeCoreModuleList=e.map(function(e){return"node:".concat(e)}),t.nodeCoreModuleList=__spreadArray(__spreadArray([],e,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new S.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=D,t.loadSafeList=function(t,e){return e=S.readConfigFile(e,function(e){return t.readFile(e)}),new S.Map(S.getEntries(e.config))},t.loadTypesMap=function(t,e){if((e=S.readConfigFile(e,function(e){return t.readFile(e)})).config)return new S.Map(S.getEntries(e.config.simpleMap))},t.discoverTypings=function(p,f,e,t,r,n,i,a,o){if(!i||!i.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var g=new S.Map;e=S.mapDefined(e,function(e){e=S.normalizePath(e);if(S.hasJSFileExtension(e))return e});var s=[];i.include&&v(i.include,"Explicitly included types");var c=i.exclude||[],l=new S.Set(e.map(S.getDirectoryPath));l.add(t),l.forEach(function(e){b(e,"bower.json","bower_components",s),b(e,"package.json","node_modules",s)}),i.disableFilenameBasedTypeAcquisition||(i=e,(e=S.mapDefined(i,function(e){if(S.hasJSFileExtension(e)){e=S.removeFileExtension(S.getBaseFileName(e.toLowerCase())),e=S.removeMinAndVersionNumbers(e);return r.get(e)}})).length&&v(e,"Inferred typings from file names"),S.some(i,function(e){return S.fileExtensionIs(e,".jsx")})&&(f&&f("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))),a&&v(S.deduplicate(a.map(D),S.equateStringsCaseSensitive,S.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),n.forEach(function(e,t){var r=o.get(t);g.has(t)&&void 0===g.get(t)&&void 0!==r&&x(e,r)&&g.set(t,e.typingLocation)});for(var u=0,_=c;u<_.length;u++){var d=_[u];g.delete(d)&&f&&f("Typing for ".concat(d," is in exclude list, will be ignored."))}var m=[],y=[];return g.forEach(function(e,t){void 0!==e?y.push(e):m.push(t)}),c={cachedTypingPaths:y,newTypingNames:m,filesToWatch:s},f&&f("Result: ".concat(JSON.stringify(c))),c;function h(e){g.has(e)||g.set(e,void 0)}function v(e,t){f&&f("".concat(t,": ").concat(JSON.stringify(e))),S.forEach(e,h)}function b(e,r,n,t){var i=S.combinePaths(e,r);p.fileExists(i)&&(t.push(i),s=S.readConfigFile(i,function(e){return p.readFile(e)}).config,v(s=S.flatMap([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],S.getOwnKeys),"Typing names in '".concat(i,"' dependencies")));var a=S.combinePaths(e,n);if(t.push(a),p.directoryExists(a)){var o=[],s=s?s.map(function(e){return S.combinePaths(a,e,r)}):p.readDirectory(a,[".json"],void 0,void 0,3).filter(function(e){if(S.getBaseFileName(e)!==r)return!1;var t=S.getPathComponents(S.normalizePath(e)),e="@"===t[t.length-3][0];return e&&t[t.length-4].toLowerCase()===n||!e&&t[t.length-3].toLowerCase()===n});f&&f("Searching for typing names in ".concat(a,"; all files: ").concat(JSON.stringify(s)));for(var c=0,l=s;c<l.length;c++){var u=l[c],_=S.normalizePath(u),d=S.readConfigFile(_,function(e){return p.readFile(e)}).config;d.name&&((u=d.types||d.typings)?(_=S.getNormalizedAbsolutePath(u,S.getDirectoryPath(_)),p.fileExists(_)?(f&&f("    Package '".concat(d.name,"' provides its own types.")),g.set(d.name,_)):f&&f("    Package '".concat(d.name,"' provides its own types but they are missing."))):o.push(d.name))}v(o,"    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"'".concat(e,"':: ").concat(i," name '").concat(r,"' cannot be empty");case 2:return"'".concat(e,"':: ").concat(i," name '").concat(r,"' should be less than ").concat(a," characters");case 3:return"'".concat(e,"':: ").concat(i," name '").concat(r,"' cannot start with '.'");case 4:return"'".concat(e,"':: ").concat(i," name '").concat(r,"' cannot start with '_'");case 5:return"'".concat(e,"':: ").concat(i," name '").concat(r,"' contains non URI safe characters");case 0:return S.Debug.fail();default:throw S.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)}}(S.JsTyping||(S.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.CompletionTriggerKind||(e.CompletionTriggerKind={}))[i.Invoked=1]="Invoked",i[i.TriggerCharacter=2]="TriggerCharacter",i[i.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(i=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",i.Parameter="Parameter",i.Enum="Enum",(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[i.link=22]="link",i[i.linkName=23]="linkName",i[i.linkText=24]="linkText",(i=e.CompletionInfoFlags||(e.CompletionInfoFlags={}))[i.None=0]="None",i[i.MayIncludeAutoImports=1]="MayIncludeAutoImports",i[i.IsImportStatementCompletion=2]="IsImportStatementCompletion",i[i.IsContinuation=4]="IsContinuation",i[i.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",i[i.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",i[i.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",(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.link="link",i.linkName="link name",i.linkText="link text",(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.dmtsModifier=".d.mts",i.mtsModifier=".mts",i.mjsModifier=".mjs",i.dctsModifier=".d.cts",i.ctsModifier=".cts",i.cjsModifier=".cjs",(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 254:return g.isInJSFile(e)&&g.getJSDocEnumTag(e)?7:1;case 164:case 203:case 167:case 166:case 296:case 297:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 292:case 285:return 1;case 163:case 258:case 259:case 182:return 2;case 345:return void 0===e.name?3:2;case 299:case 257:return 3;case 261:return g.isAmbientModule(e)||1===g.getModuleInstanceState(e)?5:4;case 260:case 269:case 270:case 265:case 266:case 271:case 272:return 7;case 305:return 5}return 7}function n(e){for(;161===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?l: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 l(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 u(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){var t=(e=F(e)).parent;return 305===e.kind?1:g.isExportAssignment(t)||g.isExportSpecifier(t)||g.isExternalModuleReference(t)||g.isImportSpecifier(t)||g.isImportClause(t)||g.isImportEqualsDeclaration(t)&&e===t.name?7:n(e)?function(e){e=161===e.kind?e:g.isQualifiedName(e.parent)&&e.parent.right===e?e.parent:void 0;return e&&265===e.parent.kind?7:4}(e):g.isDeclarationName(e)?r(t):g.isEntityName(e)&&g.findAncestor(e,g.or(g.isJSDocNameReference,g.isJSDocLinkLike,g.isJSDocMemberName))?7:function(e){g.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent);switch(e.kind){case 108:return!g.isExpressionNode(e);case 192:return!0}switch(e.parent.kind){case 178:return!0;case 200:return!e.parent.isTypeOf;case 228:return g.isPartOfTypeNode(e.parent)}return!1}(e)?2:function(e){var t=e,r=!0;if(161===t.parent.kind){for(;t.parent&&161===t.parent.kind;)t=t.parent;r=t.right===e}return 178===t.parent.kind&&!r}(e=e)||function(e){var t=e,r=!0;if(206===t.parent.kind){for(;t.parent&&206===t.parent.kind;)t=t.parent;r=t.name===e}if(r||228!==t.parent.kind||291!==t.parent.parent.kind)return!1;r=t.parent.parent.parent;return 257===r.kind&&117===t.parent.parent.token||258===r.kind&&94===t.parent.parent.token}(e)?4:g.isTypeParameterDeclaration(t)?(g.Debug.assert(g.isJSDocTemplateTag(t.parent)),2):g.isLiteralTypeNode(t)?3:1},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=l,g.getTargetLabel=function(e,t){for(;e;){if(250===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=u,g.isLabelName=function(e){return u(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 167:case 166:case 296:case 299:case 169:case 168:case 172:case 173:case 261:return g.getNameOfDeclaration(e.parent)===e;case 207:return e.parent.argumentExpression===e;case 162:return!0;case 196:return 194===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 305:case 169:case 168:case 256:case 213:case 172:case 173:case 257:case 258:case 260:case 261:return e}}},g.getNodeKind=function e(t){switch(t.kind){case 305:return g.isExternalModule(t)?"module":"script";case 261:return"module";case 257:case 226:return"class";case 258:return"interface";case 259:case 338:case 345:return"type";case 260:return"enum";case 254:return o(t);case 203:return o(g.getRootDeclaration(t));case 214:case 256:case 213:return"function";case 172:return"getter";case 173:return"setter";case 169:case 168:return"method";case 296:var r=t.initializer;return g.isFunctionLike(r)?"method":"property";case 167:case 166:case 297:case 298:return"property";case 176:return"index";case 175:return"construct";case 174:return"call";case 171:case 170:return"constructor";case 163:return"type parameter";case 299:return"enum member";case 164:return g.hasSyntacticModifier(t,16476)?"property":"parameter";case 265:case 270:case 275:case 268:case 274:return"alias";case 221: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 79:return g.isImportClause(t.parent)?"alias":"";case 271: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 108:return!0;case 79:return g.identifierIsThisKeyword(e)&&164===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 88===e.kind}function T(e){return 84===e.kind}function C(e){return 98===e.kind}function k(e,t){if(!t)switch(e.kind){case 257:case 226:return function(e){if(g.isNamedDeclaration(e))return e.name;if(g.isClassDeclaration(e)){var t=e.modifiers&&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 256:case 213: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 E(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||88!==e.kind)?g.contains(n.modifiers,e):84===e.kind?g.isClassDeclaration(n)||g.isClassExpression(e):98===e.kind?g.isFunctionDeclaration(n)||g.isFunctionExpression(e):118===e.kind?g.isInterfaceDeclaration(n):92===e.kind?g.isEnumDeclaration(n):152===e.kind?g.isTypeAliasDeclaration(n):142===e.kind||141===e.kind?g.isModuleDeclaration(n):100===e.kind?g.isImportEqualsDeclaration(n):136===e.kind?g.isGetAccessorDeclaration(n):149===e.kind&&g.isSetAccessorDeclaration(n))&&(r=k(n,t)))return r;if((113===e.kind||85===e.kind||119===e.kind)&&g.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(g.isIdentifier(i.name))return i.name}if(152===e.kind){if(g.isImportClause(n)&&n.isTypeOnly)if(r=E(n.parent,t))return r;if(g.isExportDeclaration(n)&&n.isTypeOnly)if(r=N(n,t))return r}if(127===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(100===e.kind&&g.isImportDeclaration(n)&&(r=E(n,t)))return r;if(93===e.kind){if(g.isExportDeclaration(n))if(r=N(n,t))return r;if(g.isExportAssignment(n))return g.skipOuterExpressions(n.expression)}if(146===e.kind&&g.isExternalModuleReference(n))return n.expression;if(156===e.kind&&(g.isImportDeclaration(n)||g.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===e.kind||117===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(94===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(137===e.kind&&g.isInferTypeNode(n))return n.typeParameter.name;if(101===e.kind&&g.isTypeParameterDeclaration(n)&&g.isMappedTypeNode(n.parent))return n.name;if(140===e.kind&&g.isTypeOperatorNode(n)&&140===n.operator&&g.isTypeReferenceNode(n.type))return n.type.typeName;if(145===e.kind&&g.isTypeOperatorNode(n)&&145===n.operator&&g.isArrayTypeNode(n.type)&&g.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!t){if((103===e.kind&&g.isNewExpression(n)||114===e.kind&&g.isVoidExpression(n)||112===e.kind&&g.isTypeOfExpression(n)||132===e.kind&&g.isAwaitExpression(n)||125===e.kind&&g.isYieldExpression(n)||89===e.kind&&g.isDeleteExpression(n))&&n.expression)return g.skipOuterExpressions(n.expression);if((101===e.kind||102===e.kind)&&g.isBinaryExpression(n)&&n.operatorToken===e)return g.skipOuterExpressions(n.right);if(127===e.kind&&g.isAsExpression(n)&&g.isTypeReferenceNode(n.type))return n.type.typeName;if(101===e.kind&&g.isForInStatement(n)||160===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(i,a,o,s,r){for(var c,t=i;;){var e=function(){var n=t.getChildren(i),e=g.binarySearchKey(n,a,function(e,t){return t},function(e,t){var r=o?n[e].getFullStart():n[e].getStart(i,!0);return a<r?1:l(n[e])?n[e-1]&&l(n[e-1])?1:0:s&&r===a&&n[e-1]&&n[e-1].getEnd()===a&&l(n[e-1])?1:-1});return c?{value:c}:0<=e&&n[e]?(t=n[e],"continue-outer"):{value:t}}();if("object"==typeof e)return e.value}function l(e){var t=o?e.getFullStart():e.getStart(i,!0);if(!(a<t)){t=e.getEnd();if(a<t||a===t&&(1===e.kind||r))return 1;if(s&&t===a){e=M(a,i,e);if(e&&s(e))return c=e,1}}}}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,l){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,!l),a=o<=a||!q(i,s)||j(i);if(a){var n=B(r,n,s,t.kind);return n&&R(n,s)}return e(i)}}g.Debug.assert(void 0!==c||305===t.kind||1===t.kind||g.isJSDocCommentContainingNode(t));var t=B(r,r.length,s,t.kind);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;e=B(r,r.length,t,e.kind);return e&&R(e,t)}function B(e,t,r,n){for(var i=t-1;0<=i;i--)if(j(e[i]))0!==i||11!==n&&279!==n||g.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(e[i],r))return e[i]}function j(e){return g.isJsxText(e)&&e.containsOnlyTriviaWhiteSpaces}function J(e,t,r){var n=g.tokenToString(e.kind),i=g.tokenToString(t),a=e.getFullStart(),i=r.text.lastIndexOf(i,a);if(-1!==i){if(r.text.lastIndexOf(n,a-1)<i){i=M(i+1,r);if(i&&i.kind===t)return i}for(var o=e.kind,s=0;;){var c=M(e.getFullStart(),r);if(!c)return;if((e=c).kind===t){if(0===s)return e;s--}else e.kind===o&&s++}}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function K(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 U(e,t){if(-1!==t.text.lastIndexOf("<",e?e.pos:t.text.length))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 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(g.isTypeNode(r))break;return}r=M(r.getFullStart(),t)}}function V(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=V(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 Q(e,t){return{span:e,newText:t}}function X(e){return 152===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,getModuleSpecifierCache:g.maybeBind(e,e.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:g.maybeBind(e,e.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:g.maybeBind(e,e.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}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,void 0)}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&&79===e.kind?e.escapedText:void 0})}function ie(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ae(e){e=e.declarations?g.firstOrUndefined(e.declarations):void 0;return!!g.findAncestor(e,function(e){return!!g.isParameter(e)||!(g.isBindingElement(e)||g.isObjectBindingPattern(e)||g.isArrayBindingPattern(e))&&"quit"})}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 257:case 258:case 260:case 205:case 201:case 182:case 235:case 262:case 263:case 269:case 273:return v(t,19,r);case 292:return e(t.block,r);case 209:if(!t.arguments)return!0;case 208:case 212:case 191:return v(t,21,r);case 179:case 180:return e(t.type,r);case 171:case 172:case 173:case 256:case 213:case 169:case 168:case 175:case 174:case 214:return t.body?e(t.body,r):t.type?e(t.type,r):b(t,21,r);case 261:return!!t.body&&e(t.body,r);case 239:return t.elseStatement?e(t.elseStatement,r):e(t.thenStatement,r);case 238:return e(t.expression,r)||b(t,26,r);case 204:case 202:case 207:case 162:case 184:return v(t,23,r);case 176:return t.type?e(t.type,r):b(t,23,r);case 289:case 290:return!1;case 242:case 243:case 244:case 241:return e(t.statement,r);case 240:return b(t,115,r)?v(t,21,r):e(t.statement,r);case 181:return e(t.exprName,r);case 216:case 215:case 217:case 224:case 225:var n=t;return e(n.expression,r);case 210:return e(t.template,r);case 223:var n=g.lastOrUndefined(t.templateSpans);return e(n,r);case 233:return g.nodeIsPresent(t.literal);case 272:case 266:return g.nodeIsPresent(t.moduleSpecifier);case 219:return e(t.operand,r);case 221:return e(t.right,r);case 222: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.getContextualTypeFromParentOrAncestorTypeNode=function(e,t){var r,n=Pe(e,t);return n||(e=(e=e,g.findAncestor(e,function(e){return g.isTypeNode(e)&&(r=e),!g.isQualifiedName(e.parent)&&!g.isTypeNode(e.parent)&&!g.isTypeElement(e.parent)}),r))&&t.getTypeAtLocation(e)},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.findFirstNonJsxWhitespaceToken=function(e,t){for(var r=w(e,t);j(r);){var n=O(r,r.parent,e);if(!n)return;r=n}return r},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&&288===t.parent.kind||(!(!t||19!==t.kind||288!==t.parent.kind)||29===t.kind&&281===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(279<=e.kind&&e.kind<=288||11===e.kind||29===e.kind||31===e.kind||79===e.kind||19===e.kind||18===e.kind||43===e.kind)e=e.parent;else{if(278!==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=U(t,r);return void 0!==t&&(g.isPartOfTypeNode(t.called)||0!==K(t.called,t.nTypeArguments,n).length||e(t.called,r,n))},g.getPossibleGenericSignatures=K,g.getPossibleTypeArgumentsInfo=U,g.isInComment=V,g.hasDocComment=function(e,t){return t=w(e,t),!!g.findAncestor(t,g.isJSDoc)},g.getNodeModifiers=function(e,t){void 0===t&&(t=0);var r=[];return 8&(t=g.isDeclaration(e)?g.getCombinedNodeFlagsAlwaysIncludeJSDoc(e)&~t:0)&&r.push("private"),16&t&&r.push("protected"),4&t&&r.push("public"),(32&t||g.isClassStaticBlockDeclaration(e))&&r.push("static"),128&t&&r.push("abstract"),1&t&&r.push("export"),8192&t&&r.push("deprecated"),16777216&e.flags&&r.push("declare"),271===e.kind&&r.push("export"),0<r.length?r.join(","):""},g.getTypeArgumentOrTypeParameterList=function(e){return 178===e.kind||208===e.kind?e.typeArguments:g.isFunctionLike(e)||257===e.kind||258===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<=78},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 123:case 121:case 122: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(204===t.kind||205===t.kind){if(221===t.parent.kind&&t.parent.left===t&&63===t.parent.operatorToken.kind)return!0;if(244===t.parent.kind&&t.parent.initializer===t)return!0;if(e((296===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 Q(g.createTextSpan(e,t),r)},g.createTextChange=Q,g.typeKeywords=[130,128,158,133,95,137,140,143,104,147,148,145,150,151,110,114,153,154,155],g.isTypeKeyword=function(e){return g.contains(g.typeKeywords,e)},g.isTypeKeywordToken=X,g.isTypeKeywordTokenOrIdentifier=function(e){return X(e)||g.isIdentifier(e)&&"type"===e.text},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 162===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.programContainsEsModules=function(t){return t.getSourceFiles().some(function(e){return!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator})},g.compilerOptionsIndicateEsModules=function(e){return!!e.module||2<=g.getEmitScriptTarget(e)||!!e.noEmit},g.createModuleSpecifierResolutionHost=Y,g.getModuleSpecifierResolverHost=Z,g.moduleResolutionRespectsExports=function(e){return e>=g.ModuleResolutionKind.Node16&&e<=g.ModuleResolutionKind.NodeNext},g.moduleResolutionUsesNodeModules=function(e){return e===g.ModuleResolutionKind.NodeJs||e>=g.ModuleResolutionKind.Node16&&e<=g.ModuleResolutionKind.NodeNext},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.isModuleSpecifierLike=function(e){return g.isStringLiteralLike(e)&&(g.isExternalModuleReference(e.parent)||g.isImportDeclaration(e.parent)||g.isRequireCall(e.parent,!1)&&e.parent.arguments[0]===e||g.isImportCall(e.parent)&&e.parent.arguments[0]===e)},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.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=237===(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,l=s[o],u=g.OrganizeImports.getImportDeclarationInsertionIndex(a,l);0===u?(c=a[0]===t.statements[0]?{leadingTriviaOption:g.textChanges.LeadingTriviaOption.Exclude}:{},e.insertNodeBefore(t,a[0],l,!1,c)):(u=a[u-1],e.insertNodeAfter(t,u,l))}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),X)},g.textSpansEqual=ie,g.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&ie(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=ae;var oe=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(ce(" ",g.SymbolDisplayPartKind.space)),r.push(ce("...",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(se(e,t))},writeLine:function(){if(a<i)return;i+=1,r.push(fe()),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:function(){return!1},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(ce(e,g.SymbolDisplayPartKind.space))),t=!1)}function s(e,t){a<i||(o(),i+=e.length,r.push(ce(e,t)))}function c(){r=[],t=!0,i=n=0}}();function se(e,t){return ce(e,function(e){var t=e.flags;if(3&t)return ae(e)?g.SymbolDisplayPartKind.parameterName:g.SymbolDisplayPartKind.localName;return 4&t||32768&t||65536&t?g.SymbolDisplayPartKind.propertyName:8&t?g.SymbolDisplayPartKind.enumMemberName:16&t?g.SymbolDisplayPartKind.functionName:32&t?g.SymbolDisplayPartKind.className:64&t?g.SymbolDisplayPartKind.interfaceName:384&t?g.SymbolDisplayPartKind.enumName:1536&t?g.SymbolDisplayPartKind.moduleName:8192&t?g.SymbolDisplayPartKind.methodName:262144&t?g.SymbolDisplayPartKind.typeParameterName:524288&t||2097152&t?g.SymbolDisplayPartKind.aliasName:g.SymbolDisplayPartKind.text}(t))}function ce(e,t){return{text:e,kind:g.SymbolDisplayPartKind[t]}}function le(e){return ce(g.tokenToString(e),g.SymbolDisplayPartKind.keyword)}function ue(e){return ce(e,g.SymbolDisplayPartKind.text)}function _e(e){return ce(e,g.SymbolDisplayPartKind.linkText)}function de(e,t){return{text:e,kind:g.SymbolDisplayPartKind[g.SymbolDisplayPartKind.linkName],target:{fileName:g.getSourceFileOfNode(t).fileName,textSpan:H(t)}}}function pe(e){return ce(e,g.SymbolDisplayPartKind.link)}function fe(){return ce("\n",g.SymbolDisplayPartKind.lineBreak)}function ge(e){try{return e(oe),oe.displayParts()}finally{oe.clear()}}function me(e){return 0!=(33554432&e.flags)}function ye(e,t){void 0===t&&(t=!0);e=e&&ve(e);return e&&!t&&De(e),e}function he(e,t,r){var n=r(e);return n?g.setOriginalNode(n,e):n=ve(e,r),n&&!t&&De(n),n}function ve(e,t){var r=t?function(e){return he(e,!0,t)}:ye,n=t?function(e){return e&&xe(e,!0,t)}:function(e){return e&&be(e)},r=g.visitEachChild(e,r,g.nullTransformationContext,n,r);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 be(e,t){return void 0===t&&(t=!0),e&&g.factory.createNodeArray(e.map(function(e){return ye(e,t)}),e.hasTrailingComma)}function xe(e,t,r){return g.factory.createNodeArray(e.map(function(e){return he(e,t,r)}),e.hasTrailingComma)}function De(e){Se(e),Te(e)}function Se(e){Ce(e,512,ke)}function Te(e){Ce(e,1024,g.getLastChild)}function Ce(e,t,r){g.addEmitFlags(e,t);e=r(e);e&&Ce(e,t,r)}function ke(e){return e.forEachChild(function(e){return e})}function Ee(e,t,r,n,i){g.forEachLeadingCommentRange(r.text,e.pos,Fe(t,r,n,i,g.addSyntheticLeadingComment))}function Ne(e,t,r,n,i){g.forEachTrailingCommentRange(r.text,e.end,Fe(t,r,n,i,g.addSyntheticTrailingComment))}function Ae(e,t,r,n,i){g.forEachTrailingCommentRange(r.text,e.pos,Fe(t,r,n,i,g.addSyntheticLeadingComment))}function Fe(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 Pe(e,t){var r=e.parent;switch(r.kind){case 209:return t.getContextualType(r);case 221:var n=r.left,i=r.operatorToken,a=r.right;return we(i.kind)?t.getTypeAtLocation(e===a?n:a):t.getContextualType(e);case 289:return r.expression===e?Ie(r,t):void 0;default:return t.getContextualType(e)}}function we(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ie(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Oe(e){return 174===e||175===e||176===e||166===e||168===e}function Me(e){return 256===e||171===e||169===e||172===e||173===e}function Le(e){return 261===e}function Re(e){return 237===e||238===e||240===e||245===e||246===e||247===e||251===e||253===e||167===e||259===e||266===e||265===e||272===e||264===e||271===e}function Be(n){var i=0,a=0;return g.forEachChild(n,function e(t){var r;return Re(t.kind)?26===(null==(r=t.getLastToken(n))?void 0:r.kind)?i++:a++:Oe(t.kind)&&(26===(null==(r=t.getLastToken(n))?void 0:r.kind)?i++:r&&27!==r.kind&&g.getLineAndCharacterOfPosition(n,r.getStart(n)).line!==g.getLineAndCharacterOfPosition(n,g.getSpanOfTokenAtPosition(n,r.end).start).line&&a++),5<=i+a||g.forEachChild(t,e)}),0===i&&a<=1||.2<i/a}function je(e,t){return ze(e,e.fileExists,t)}function Je(e){try{return e()}catch(e){return}}function ze(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Je(function(){return t&&t.apply(e,r)})}function Ke(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=Ue(e,t))&&r.push(e)}),r}function Ue(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,l=new g.Map;for(c in s)l.set(c,s[c]);n[o]=l}}var u=[[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=u;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 Ve(e){return g.some(e.imports,function(e){e=e.text;return g.JsTyping.nodeCoreModules.has(e)})}function qe(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function We(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function He(e){return g.firstDefined(e.declarations,function(e){var t;return!g.isExportAssignment(e)||null===(t=g.tryCast(g.skipOuterExpressions(e.expression),g.isIdentifier))||void 0===t?void 0:t.text})}function Ge(e){return g.Debug.checkDefined(e.parent,"Symbol parent was undefined. Flags: ".concat(g.Debug.formatSymbolFlags(e.flags),". ")+"Declarations: ".concat(null===(e=e.declarations)||void 0===e?void 0:e.map(function(e){var t=g.Debug.formatSyntaxKind(e.kind),r=g.isInJSFile(e),e=e.expression;return(r?"[JS]":"")+t+(e?" (expression: ".concat(g.Debug.formatSyntaxKind(e.kind),")"):"")}).join(", "),"."))}function Qe(e){var t=e.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(g.isInJSFile(e)||!g.findAncestor(e,g.isGlobalScopeAugmentation))}g.symbolPart=se,g.displayPart=ce,g.spacePart=function(){return ce(" ",g.SymbolDisplayPartKind.space)},g.keywordPart=le,g.punctuationPart=function(e){return ce(g.tokenToString(e),g.SymbolDisplayPartKind.punctuation)},g.operatorPart=function(e){return ce(g.tokenToString(e),g.SymbolDisplayPartKind.operator)},g.parameterNamePart=function(e){return ce(e,g.SymbolDisplayPartKind.parameterName)},g.propertyNamePart=function(e){return ce(e,g.SymbolDisplayPartKind.propertyName)},g.textOrKeywordPart=function(e){var t=g.stringToToken(e);return void 0===t?ue(e):le(t)},g.textPart=ue,g.typeAliasNamePart=function(e){return ce(e,g.SymbolDisplayPartKind.aliasName)},g.typeParameterNamePart=function(e){return ce(e,g.SymbolDisplayPartKind.typeParameterName)},g.linkTextPart=_e,g.linkNamePart=de,g.linkPart=pe,g.buildLinkParts=function(e,t){var r,n,i,a=g.isJSDocLink(e)?"link":g.isJSDocLinkCode(e)?"linkcode":"linkplain",o=[pe("{@".concat(a," "))];return e.name?(r=null==t?void 0:t.getSymbolAtLocation(e.name),n=function(e){if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;var t=0,r=0;for(;r<e.length;)if("<"===e[r]&&t++,">"===e[r]&&t--,r++,!t)return r;return 0}(e.text),a=g.getTextOfNode(e.name)+e.text.slice(0,n),t=function(e){var t=0;if(124!==e.charCodeAt(t++))return e;for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}(e.text.slice(n)),(i=(null==r?void 0:r.valueDeclaration)||(null===(i=null==r?void 0:r.declarations)||void 0===i?void 0:i[0]))?(o.push(de(a,i)),t&&o.push(_e(t))):o.push(_e(a+(n||0===t.indexOf("://")?"":" ")+t))):e.text&&o.push(_e(e.text)),o.push(pe("}")),o},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=fe,g.mapToDisplayParts=ge,g.typeToDisplayParts=function(t,r,n,i){return void 0===i&&(i=0),ge(function(e){t.writeType(r,n,17408|i,e)})},g.symbolToDisplayParts=function(t,r,n,i,a){return void 0===a&&(a=0),ge(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,ge(function(e){t.writeSignature(r,n,i,void 0,e)})},g.nodeToDisplayParts=function(t,e){var r=e.getSourceFile();return ge(function(e){g.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}).writeNode(4,t,r,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)||me(r)&&r.target;)r=me(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=ye,g.getSynthesizedDeepCloneWithReplacements=he,g.getSynthesizedDeepClones=be,g.getSynthesizedDeepClonesWithReplacements=xe,g.suppressLeadingAndTrailingTrivia=De,g.suppressLeadingTrivia=Se,g.suppressTrailingTrivia=Te,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)?Ae:Ee)(e,t,r),Ne(e,t,r)},g.getUniqueName=function(e,t){for(var r=e,n=1;!g.isFileLevelUniqueName(t,r);n++)r="".concat(e,"_").concat(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],l=c.fileName,c=c.textChanges;g.Debug.assert(l===t);for(var u=0,_=c;u<_.length;u++){var d=_[u],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=Ee,g.copyTrailingComments=Ne,g.copyTrailingAsLeadingComments=Ae,g.needsParentheses=function(e){return g.isBinaryExpression(e)&&27===e.operatorToken.kind||g.isObjectLiteralExpression(e)||g.isAsExpression(e)&&g.isObjectLiteralExpression(e.expression)},g.getContextualTypeFromParent=Pe,g.quote=function(e,t,r){return t=re(e,t),r=JSON.stringify(r),0===t?"'".concat(g.stripQuotes(r).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):r},g.isEqualityOperatorKind=we,g.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 223:case 210:return!0;default:return!1}},g.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},g.getSwitchedType=Ie,g.ANONYMOUS="anonymous function",g.getTypeNodeIfAccessible=function(e,t,r,n){function i(){return o=!1}var a=r.getTypeChecker(),o=!0,n=a.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(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.syntaxRequiresTrailingSemicolonOrASI=Re,g.syntaxMayBeASICandidate=g.or(Oe,Me,Le,Re),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(Oe(e.kind)){if(r&&27===r.kind)return!1}else if(Le(e.kind)){if((n=g.last(e.getChildren(t)))&&g.isModuleBlock(n))return!1}else if(Me(e.kind)){if((n=g.last(e.getChildren(t)))&&g.isFunctionBlock(n))return!1}else if(!Re(e.kind))return!1;if(240===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=Be,g.tryGetDirectories=function(e,t){return ze(e,e.getDirectories,t)||[]},g.tryReadDirectory=function(e,t,r,n,i){return ze(e,e.readDirectory,t,r,n,i)||g.emptyArray},g.tryFileExists=je,g.tryDirectoryExists=function(e,t){return Je(function(){return g.directoryProbablyExists(t,e)})||!1},g.tryAndIgnoreErrors=Je,g.tryIOAndConsumeErrors=ze,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");je(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 je(t,e)},"package.json"))||void 0)}),r},g.getPackageJsonsVisibleToFile=Ke,g.createPackageJsonInfo=Ue,g.createPackageJsonImportFilter=function(r,n,i){var t,a=(i.getPackageJsonsVisibleToFile&&i.getPackageJsonsVisibleToFile(r.fileName)||Ke(r.fileName,i)).filter(function(e){return e.parseable});return{allowsImportingAmbientModule:function(e,t){if(!a.length||!e.valueDeclaration)return!0;t=c(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===t)return!0;e=g.stripQuotes(e.getName());if(s(e))return!0;return o(t)||o(e)},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;t=c(e.fileName,t);return!t||o(t)},allowsImportingSpecifier:function(e){if(!a.length||s(e))return!0;if(g.pathIsRelative(e)||g.isRootedDiskPath(e))return!0;return o(e)}};function o(e){for(var t=l(e),r=0,n=a;r<n.length;r++){var i=n[r];if(i.has(t)||i.has(g.getTypesPackageName(t)))return!0}return!1}function s(e){return!!(g.isSourceFileJS(r)&&g.JsTyping.nodeCoreModules.has(e)&&(void 0===t&&(t=Ve(r)),t))}function c(e,t){if(g.stringContains(e,"node_modules")){t=g.moduleSpecifiers.getNodeModulesPackageName(i.getCompilationSettings(),r,e,t,n);if(t)return g.pathIsRelative(t)||g.isRootedDiskPath(t)?void 0:l(t)}}function l(e){e=g.getPathComponents(g.getPackageNameFromTypesPackageName(e)).slice(1);return g.startsWith(e[0],"@")?"".concat(e[0],"/").concat(e[1]):e[0]}},g.consumesNodeCoreModules=Ve,g.isInsideNodeModules=function(e){return g.contains(g.getPathComponents(e),"node_modules")},g.isDiagnosticWithLocation=qe,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,qe)}},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],qe);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.getFixableErrorSpanExpression=function(t,r){var e=w(t,r.start);return g.findAncestor(e,function(e){return e.getStart(t)<r.start||e.getEnd()>g.textSpanEnd(r)?"quit":g.isExpression(e)&&ie(r,H(e,t))})},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.getNamesForExportedSymbol=function(e,t){if(We(e)){var r=He(e);if(r)return r;r=g.codefix.moduleSymbolToValidIdentifier(Ge(e),t,!1),t=g.codefix.moduleSymbolToValidIdentifier(Ge(e),t,!0);return r===t?r:[r,t]}return e.name},g.getNameForExportedSymbol=function(e,t,r){return We(e)?He(e)||g.codefix.moduleSymbolToValidIdentifier(Ge(e),t,!!r):e.name},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!Qe(e)},g.isNonGlobalDeclaration=Qe,g.isDeprecatedDeclaration=function(e){return!!(8192&g.getCombinedNodeFlagsAlwaysIncludeJSDoc(e))},g.shouldUseUriStyleNodeCoreModules=function(e,t){return null!=(e=g.firstDefined(e.imports,function(e){if(g.JsTyping.nodeCoreModules.has(e.text))return g.startsWith(e.text,"node:")}))?e:t.usesUriStyleNodeCoreModules},g.getNewLineKind=function(e){return"\n"===e?1:0},g.diagnosticToString=function(e){return g.isArray(e)?g.formatStringFromArgs(g.getLocaleSpecificMessage(e[0]),e.slice(1)):g.getLocaleSpecificMessage(e)},g.getFormatCodeSettingsForWriting=function(e,t){var r=e.options,e=!r.semicolons||r.semicolons===g.SemicolonPreference.Ignore,t=r.semicolons===g.SemicolonPreference.Remove||e&&!Be(t);return __assign(__assign({},r),{semicolons:t?g.SemicolonPreference.Remove:g.SemicolonPreference.Ignore})},g.jsxModeNeedsExplicitImport=function(e){return 2===e||3===e}}(ts=ts||{}),function(x){var e;function a(l){var g,m=1,y=x.createMultiMap(),h=new x.Map,v=new x.Map,b={isUsableByFile:function(e){return e===g},isEmpty:function(){return!y.size},clear:function(){y.clear(),h.clear(),g=void 0},add:function(e,t,r,n,i,a,o,s){var c;e!==g&&(b.clear(),g=e),!i||(l=x.getNodeModulePathParts(i.fileName))&&(p=l.topLevelNodeModulesIndex,_=l.topLevelPackageNameIndex,u=l.packageRootIndex,c=x.unmangleScopedPackageName(x.getPackageNameFromTypesPackageName(i.fileName.substring(_+1,u))),x.startsWith(e,i.path.substring(0,p))&&(d=v.get(c),f=i.fileName.substring(0,_+1),(!d||d.indexOf(x.nodeModulesPathPart)<p)&&v.set(c,f)));var l=1===a&&x.getLocalSymbolForExportDefault(t)||t,u=0===a||x.isExternalModuleSymbol(l)?x.unescapeLeadingUnderscores(r):x.getNamesForExportedSymbol(l,void 0),e="string"==typeof u?u:u[0],_="string"==typeof u?void 0:u[1],d=x.stripQuotes(n.name),p=m++,f=x.skipAlias(t,s),l=33554432&t.flags?void 0:t,u=33554432&n.flags?void 0:n;l&&u||h.set(p,[t,n]),y.add(function(e,t,r,n){r=r||"";return"".concat(e,"|").concat(x.getSymbolId(x.skipAlias(t,n)),"|").concat(r)}(e,t,x.isExternalModuleNameRelative(d)?void 0:d,s),{id:p,symbolTableKey:r,symbolName:e,capitalizedSymbolName:_,moduleName:d,moduleFile:i,moduleFileName:null==i?void 0:i.fileName,packageName:c,exportKind:a,targetFlags:f.flags,isFromPackageJson:o,symbol:l,moduleSymbol:u})},get:function(e,t){if(e===g){t=y.get(t);return null==t?void 0:t.map(c)}},search:function(e,a,o,s){e===g&&y.forEach(function(r,e){var t,n,i=(n=(t=e).substring(0,t.indexOf("|")),t=t.substring(t.lastIndexOf("|")+1),{symbolName:n,ambientModuleName:t=""===t?void 0:t}),n=i.symbolName,t=i.ambientModuleName,i=a&&r[0].capitalizedSymbolName||n;!o(i,r[0].targetFlags)||(n=r.map(c).filter(function(e,t){return function(e,t){if(!t||!e.moduleFileName)return!0;var r=l.getGlobalTypingsCacheLocation();if(r&&x.startsWith(e.moduleFileName,r))return!0;t=v.get(t);return!t||x.startsWith(e.moduleFileName,t)}(e,r[t].packageName)})).length&&s(n,i,!!t,e)})},releaseSymbols:function(){h.clear()},onFileChanged:function(e,t,r){return(!n(e)||!n(t))&&(g&&g!==t.path||r&&x.consumesNodeCoreModules(e)!==x.consumesNodeCoreModules(t)||!x.arrayIsEqualTo(e.moduleAugmentations,t.moduleAugmentations)||!function(r,n){if(!x.arrayIsEqualTo(r.ambientModuleNames,n.ambientModuleNames))return!1;for(var i=-1,a=-1,e=0,t=n.ambientModuleNames;e<t.length;e++){var o=function(t){function e(e){return x.isNonGlobalAmbientModule(e)&&e.name.text===t}if(i=x.findIndex(r.statements,e,i+1),a=x.findIndex(n.statements,e,a+1),r.statements[i]!==n.statements[a])return{value:!1}}(t[e]);if("object"==typeof o)return o.value}return!0}(e,t)?(b.clear(),!0):(g=t.path,!1))}};return x.Debug.isDebugging&&Object.defineProperty(b,"__cache",{get:function(){return y}}),b;function c(e){if(e.symbol&&e.moduleSymbol)return e;var t=e.id,r=e.exportKind,n=e.targetFlags,i=e.isFromPackageJson,a=e.moduleFileName,o=h.get(t)||x.emptyArray,s=o[0],c=o[1];if(s&&c)return{symbol:s,moduleSymbol:c,moduleFileName:a,exportKind:r,targetFlags:n,isFromPackageJson:i};o=(i?l.getPackageJsonAutoImportProvider():l.getCurrentProgram()).getTypeChecker(),c=e.moduleSymbol||c||x.Debug.checkDefined(e.moduleFile?o.getMergedSymbol(e.moduleFile.symbol):o.tryFindAmbientModule(e.moduleName)),e=e.symbol||s||x.Debug.checkDefined(2===r?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(x.unescapeLeadingUnderscores(e.symbolTableKey),c),"Could not find symbol '".concat(e.symbolName,"' by key '").concat(e.symbolTableKey,"' in module ").concat(c.name));return h.set(t,[e,c]),{symbol:e,moduleSymbol:c,moduleFileName:a,exportKind:r,targetFlags:n,isFromPackageJson:i}}function n(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function o(r,e,t,n){var i;s(r.getTypeChecker(),r.getSourceFiles(),function(e,t){return n(e,t,r,!1)});var a=t&&(null===(i=e.getPackageJsonAutoImportProvider)||void 0===i?void 0:i.call(e));a&&(t=x.timestamp(),s(a.getTypeChecker(),a.getSourceFiles(),function(e,t){return n(e,t,a,!0)}),null!==(i=e.log)&&void 0!==i&&i.call(e,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(x.timestamp()-t)))}function s(e,t,r){for(var n=0,i=e.getAmbientModules();n<i.length;n++){var a=i[n];x.stringContains(a.name,"*")||r(a,void 0)}for(var o=0,s=t;o<s.length;o++){var c=s[o];x.isExternalOrCommonJsModule(c)&&r(e.getMergedSymbol(c.symbol),c)}}function p(e,t,r){var n=function(e,t){var r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};e=t.tryGetMemberInModuleExports("default",e);if(e)return{symbol:e,exportKind:1}}(e,t);if(n){e=n.symbol,n=n.exportKind,r=function e(t,r,n){var i=x.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};i=c(t);if(void 0!==i)return{symbolForMeaning:t,name:i};if(2097152&t.flags){var i=r.getImmediateAliasedSymbol(t);if(i&&i.parent)return e(i,r,n)}if("default"!==t.escapedName&&"export="!==t.escapedName)return{symbolForMeaning:t,name:t.getName()};return{symbolForMeaning:t,name:x.getNameForExportedSymbol(t,n.target)}}(e,t,r);return r&&__assign({symbol:e,exportKind:n},r)}}function f(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||x.isKnownSymbol(e)||x.isPrivateIdentifierSymbol(e))}function c(e){return e.declarations&&x.firstDefined(e.declarations,function(e){var t;return x.isExportAssignment(e)?null===(t=x.tryCast(x.skipOuterExpressions(e.expression),x.isIdentifier))||void 0===t?void 0:t.text:x.isExportSpecifier(e)?(x.Debug.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text):void 0})}(e=x.ImportKind||(x.ImportKind={}))[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",(e=x.ExportKind||(x.ExportKind={}))[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",x.createCacheableExportInfoMap=a,x.isImportableFile=function(r,n,i,e,t,a,o){if(n===i)return!1;if(void 0!==(null==(l=null==o?void 0:o.get(n.path,i.path,e,{}))?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies;var s=x.hostGetCanonicalFileName(a),c=null===(l=a.getGlobalTypingsCacheLocation)||void 0===l?void 0:l.call(a),l=!!x.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=x.forEachAncestorDirectory(t,function(e){return"node_modules"===x.getBaseFileName(e)?e:void 0}),t=t&&x.getDirectoryPath(r(t));return void 0===t||x.startsWith(r(e),t)||!!n&&x.startsWith(r(n),t)}(n.fileName,e,s,c)});if(t){a=l&&t.allowsImportingSourceFile(i,a);return null!=o&&o.setBlockedByPackageJsonDependencies(n.path,i.path,e,{},!a),a}return l},x.forEachExternalModuleToImportFrom=o,x.getExportInfoMap=function(c,t,e,l){var r,n,i=x.timestamp();null!==(r=t.getPackageJsonAutoImportProvider)&&void 0!==r&&r.call(t);var u=(null===(r=t.getCachedExportInfoMap)||void 0===r?void 0:r.call(t))||a({getCurrentProgram:function(){return e},getPackageJsonAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getGlobalTypingsCacheLocation:function(){var e;return null===(e=t.getGlobalTypingsCacheLocation)||void 0===e?void 0:e.call(t)}});if(u.isUsableByFile(c.path))return null!==(n=t.log)&&void 0!==n&&n.call(t,"getExportInfoMap: cache hit"),u;null!==(n=t.log)&&void 0!==n&&n.call(t,"getExportInfoMap: cache miss or empty; calculating new results");var _=e.getCompilerOptions(),d=0;try{o(e,t,!0,function(r,n,e,i){++d%100==0&&null!=l&&l.throwIfCancellationRequested();var a=new x.Map,o=e.getTypeChecker(),s=p(r,o,_);s&&f(s.symbol,o)&&u.add(c.path,s.symbol,1===s.exportKind?"default":"export=",r,n,s.exportKind,i,o),o.forEachExportAndPropertyOfModule(r,function(e,t){e!==(null==s?void 0:s.symbol)&&f(e,o)&&x.addToSeen(a,t)&&u.add(c.path,e,t,r,n,0,i,o)})})}catch(e){throw u.clear(),e}return null!==(n=t.log)&&void 0!==n&&n.call(t,"getExportInfoMap: done in ".concat(x.timestamp()-i," ms")),u},x.getDefaultLikeExportInfo=p}(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,l,u,_,d,p=0,f=[],g=0;do{n=y.scan(),h.isTrivia(n)||(function(){switch(n){case 43:case 68:v[i]||13!==y.reScanSlashToken()||(n=13);break;case 29:79===i&&g++;break;case 31:0<g&&g--;break;case 130:case 150:case 147:case 133:case 151:0<g&&!r&&(n=79);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 136:case 149:case 134:case 124:return!0;default:return!1}}(i,n))&&(n=79)}}(),i=n);var m=y.getTextPos();c=y.getTokenPos(),l=m,u=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 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(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<=78)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 79:default:return h.isTemplateLiteralKind(e)?6:2}}(n),d=f,!void(8!==_&&(0===c&&0<u&&(c+=u),0<(l-=c)&&d.push(c-u,l,_))),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],l=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}}(l)}),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([79,10,8,9,13,108,45,46,21,23,19,110,95],function(e){return e},function(){return!0});function m(e,t){switch(t){case 261:case 257:case 258:case 256:case 226:case 213:case 214:e.throwIfCancellationRequested()}}function a(a,o,s,c,l){var u=[];return s.forEachChild(function e(t){var r,n,i;t&&h.textSpanIntersectsWith(l,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 ".concat(n)),u.push(r),u.push(n),u.push(i)),t.forEachChild(e))}),{spans:u,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,l,e){var a=e.start,o=e.length,s=h.createScanner(99,!1,l.languageVariant,l.text),c=h.createScanner(99,!1,l.languageVariant,l.text),n=[];return g(l),{spans:n,endOfLineState:0};function _(e,t,r){n.push(e),n.push(t),n.push(r)}function u(e){for(s.setTextPos(e.pos);;){var t=s.getTextPos();if(!h.couldStartTrivia(l.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(l.text,r,n);if(i&&i.jsDoc)return h.setParent(i.jsDoc,e),function(e){var t,r,n=e.pos;if(e.tags)for(var i=0,a=e.tags;i<a.length;i++){var o=a[i];o.pos!==n&&d(n,o.pos-n),_(o.pos,1,10),_(o.tagName.pos,o.tagName.end-o.tagName.pos,18),n=o.tagName.end;var s=o.tagName.end;switch(o.kind){case 340:var c=o;!function(e){e.isNameFirst&&(d(n,e.name.pos-n),_(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end),e.typeExpression&&(d(n,e.typeExpression.pos-n),g(e.typeExpression),n=e.typeExpression.end),e.isNameFirst||(d(n,e.name.pos-n),_(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end)}(c),s=c.isNameFirst&&(null===(t=c.typeExpression)||void 0===t?void 0:t.end)||c.name.end;break;case 347:var l=o;s=l.isNameFirst&&(null===(u=l.typeExpression)||void 0===u?void 0:u.end)||l.name.end;break;case 344:!function(){for(var e=0,t=o.getChildren();e<t.length;e++)g(t[e])}(),n=o.end,s=o.typeParameters.end;break;case 345:var u=o;s=309===(null===(l=u.typeExpression)||void 0===l?void 0:l.kind)&&(null===(l=u.fullName)||void 0===l?void 0:l.end)||(null===(u=u.typeExpression)||void 0===u?void 0:u.end)||s;break;case 338:s=o.typeExpression.end;break;case 343:g(o.typeExpression),n=o.end,s=o.typeExpression.end;break;case 342:case 339:s=o.typeExpression.end;break;case 341:g(o.typeExpression),n=o.end,s=(null===(r=o.typeExpression)||void 0===r?void 0:r.end)||s;break;case 346:s=(null===(r=o.name)||void 0===r?void 0:r.end)||s;break;case 328:case 329:s=o.class.end}"object"==typeof o.comment?d(o.comment.pos,o.comment.end-o.comment.pos):"string"==typeof o.comment&&d(s,o.end-s)}n!==e.end&&d(n,e.end-n)}(i.jsDoc),0}else if(2===t&&function(e,t){var r=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,n=l.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),_(i+=n[1].length,n[2].length,10),_(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+s[1].length;o<c&&(d(o,c-o),o=c),_(o,s[2].length,22),o+=s[2].length,s[3].length&&(d(o,s[3].length),o+=s[3].length),_(o,s[4].length,5),o+=s[4].length,s[5].length&&(d(o,s[5].length),o+=s[5].length),_(o,s[6].length,24),o+=s[6].length}(i+=n[4].length)>o&&d(o,i-o);n[5]&&(_(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=l.text,o=a.charCodeAt(t);if(60===o||62===o){_(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(_(t,n-t,1),c.setTextPos(n);c.getTextPos()<r;)!function(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos();(t=f(t))&&_(e,r-e,t)}()}(a,t,n);break;case 6:break;default:h.Debug.assertNever(r)}}}function d(e,t){_(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 280:if(e.parent.tagName===e)return 19;break;case 281:if(e.parent.tagName===e)return 20;break;case 279:if(e.parent.tagName===e)return 21;break;case 285: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:u(e),n=e.end-r;return h.Debug.assert(0<=n),0<n&&((e=t||f(e.kind,e))&&_(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(63===e&&(254===r.kind||167===r.kind||164===r.kind||285===r.kind))return 5;if(221===r.kind||219===r.kind||220===r.kind||222===r.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 25;if(10===e)return t&&285===t.parent.kind?24:6;if(13===e)return 6;if(h.isTemplateLiteralKind(e))return 6;if(11===e)return 23;if(79===e){if(t){switch(t.parent.kind){case 257:return t.parent.name===t?11:void 0;case 163:return t.parent.name===t?15:void 0;case 258:return t.parent.name===t?13:void 0;case 260:return t.parent.name===t?12:void 0;case 261:return t.parent.name===t?14:void 0;case 164:return t.parent.name===t?h.isThisIdentifier(t)?3:17:void 0}if(h.isConstTypeReference(t.parent))return 3}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(l);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(l,u,_,d,p){var f=l.getTypeChecker(),g=!1;!function e(t){switch(t.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 214: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)||v.isInfinityOrNaNString(t.escapedText)||(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,u)||(a|=32),l.isSourceFileDefaultLibrary(o.getSourceFile())&&(a|=16)):n.declarations&&n.declarations.some(function(e){return l.isSourceFileDefaultLibrary(e.getSourceFile())})&&(a|=16),d(t,i,a))),v.forEachChild(t,e),g=r)}(u)}(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([[254,7],[164,6],[167,9],[261,3],[260,1],[299,8],[257,0],[169,11],[256,10],[213,10],[168,11],[172,9],[173,9],[166,9],[258,2],[259,5],[163,4],[296,9],[297,9]])}((e=v.classifier||(v.classifier={})).v2020||(e.v2020={}))}(ts=ts||{}),function(F){var P;!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:l(e.extension),sortText:P.SortText.LocationPriority,replacementSpan:n}})}}function l(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return F.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return F.Debug.assertNever(e)}}function _(e,t,r,n,i,a,o){var s,c,l,u,_,d,p,f=S(t.parent);switch(f.kind){case 196:var g=S(f.parent);switch(g.kind){case 178:var m=g,y=F.findAncestor(f,function(e){return e.parent===m});return y?{kind:2,types:C(n.getTypeArgumentConstraint(y)),isNewIdentifier:!1}:void 0;case 194:var y=g.indexType,h=g.objectType;return F.rangeContainsPosition(y,r)?T(n.getTypeFromTypeNode(h)):void 0;case 200:return{kind:0,paths:k(e,t,i,a,n,o)};case 187:if(!F.isTypeReferenceNode(g.parent))return;var v=(h=g,p=f,F.mapDefined(h.types,function(e){return e!==p&&F.isLiteralTypeNode(e)&&F.isStringLiteral(e.literal)?e.literal.text:void 0}));return{kind:2,types:C(n.getTypeArgumentConstraint(g)).filter(function(e){return!F.contains(v,e.value)}),isNewIdentifier:!1};default:return}case 296:return F.isObjectLiteralExpression(f.parent)&&f.name===t?function(e,t){var r=e.getContextualType(t);if(!r)return;var n=e.getContextualType(t,4);return{kind:1,symbols:P.getPropertiesForObjectExpression(r,n,t,e),hasIndexSignature:F.hasIndexSignature(r)}}(n,f.parent):D();case 207:var b=f.expression,x=f.argumentExpression;return t===F.skipParentheses(x)?T(n.getTypeAtLocation(b)):void 0;case 208:case 209:case 285:if(x=t,!(F.isCallExpression(x.parent)&&F.firstOrUndefined(x.parent.arguments)===x&&F.isIdentifier(x.parent.expression)&&"require"===x.parent.expression.escapedText||F.isImportCall(f))){var b=F.SignatureHelp.getArgumentInfoForCompletions(285===f.kind?f.parent:t,r,e);return b?(s=b.invocation,x=t,c=b,l=n,u=!1,_=new F.Map,b=[],d=F.isJsxOpeningLikeElement(s)?F.Debug.checkDefined(F.findAncestor(x.parent,F.isJsxAttribute)):x,l.getResolvedSignatureForStringLiteralCompletions(s,d,b),{kind:2,types:F.flatMap(b,function(e){if(F.signatureHasRestParameter(e)||!(c.argumentCount>e.parameters.length)){var t=e.getTypeParameterAtPosition(c.argumentIndex);return!F.isJsxOpeningLikeElement(s)||(e=l.getTypeOfPropertyOfType(t,d.name.text))&&(t=e),u=u||!!(4&t.flags),C(t,_)}}),isNewIdentifier:u}):D()}case 266:case 272:case 277:return{kind:0,paths:k(e,t,i,a,n,o)};default:return D()}function D(){return{kind:2,types:C(F.getContextualTypeFromParent(t,n)),isNewIdentifier:!1}}}function S(e){switch(e.kind){case 191:return F.walkUpParenthesizedTypes(e);case 212:return F.walkUpParenthesizedExpressions(e);default:return e}}function T(e){return e&&{kind:1,symbols:F.filter(e.getApparentProperties(),function(e){return!(e.valueDeclaration&&F.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration))}),hasIndexSignature:F.hasIndexSignature(e)}}function C(e,t){return void 0===t&&(t=new F.Map),e?(e=F.skipConstraint(e)).isUnion()?F.flatMap(e.types,function(e){return C(e,t)}):!e.isStringLiteral()||1024&e.flags||!F.addToSeen(t,e.value)?F.emptyArray:[e]:F.emptyArray}function v(e,t,r){return{name:e,kind:t,extension:r}}function b(e){return v(e,"directory",void 0)}function d(e,t,r){var n,i,a,o,s=(n=e,i=t,a=Math.max(n.lastIndexOf(F.directorySeparator),n.lastIndexOf(F.altDirectorySeparator)),o=-1!==a?a+1:0,0==(a=n.length-o)||F.isIdentifierText(n.substr(o,a),99)?void 0:F.createTextSpan(i+o,a)),c=0===e.length?void 0:F.createTextSpan(t,e.length);return r.map(function(e){var t=e.name,r=e.kind,e=e.extension;return-1!==Math.max(t.indexOf(F.directorySeparator),t.indexOf(F.altDirectorySeparator))?{name:t,kind:r,extension:e,span:c}:{name:t,kind:r,extension:e,span:s}})}function k(e,t,r,n,i,a){return d(t.text,t.getStart(e)+1,(o=e,s=t,e=r,t=n,r=i,c=a,n=F.normalizeSlashes(s.text),i=o.path,a=F.getDirectoryPath(i),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}(n)||!e.baseUrl&&(F.isRootedDiskPath(n)||F.isUrl(n))?function(e,t,r,n,i,a){a=y(r,a);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 F.normalizePath(F.isRootedDiskPath(e)?e:F.combinePaths(t,e))});var i=F.firstDefined(e,function(e){return F.containsPath(e,r,t,n)?r.substr(e.length):void 0});return F.deduplicate(__spreadArray(__spreadArray([],e.map(function(e){return F.combinePaths(e,i)}),!0),[r],!1),F.equateStringsCaseSensitive,F.compareStringsCaseSensitive)}(e,s,r,i);return F.flatMap(i,function(e){return x(t,e,n,a,o)})}(r.rootDirs,e,t,a,r,n,i):x(e,t,a,n,i)}(n,a,e,t,i,function(){var e=F.isStringLiteralLike(s)?F.getModeForUsageLocation(o,s):void 0;return"js"===c.importModuleSpecifierEnding||e===F.ModuleKind.ESNext?2:0}()):function(a,e,t,o,r){var n=t.baseUrl,i=t.paths,s=[],c=y(t);{var l;n&&(l=t.project||o.getCurrentDirectory(),n=F.normalizePath(F.combinePaths(l,n)),x(a,n,c,o,void 0,s),i&&D(s,a,n,c.extensions,i,o))}for(var i=E(a),u=0,_=function(t,e,r){r=r.getAmbientModules().map(function(e){return F.stripQuotes(e.name)}).filter(function(e){return F.startsWith(e,t)});if(void 0===e)return r;var n=F.ensureTrailingDirectorySeparator(e);return r.map(function(e){return F.removePrefix(e,n)})}(a,i,r);u<_.length;u++){var d=_[u];s.push(v(d,"external module name",void 0))}if(N(o,t,e,i,c,s),h(t)){var p,f=!1;if(void 0===i)for(var g=0,m=function(e,t){if(!e.readFile||!e.fileExists)return F.emptyArray;for(var r=[],n=0,i=F.findPackageJsons(t,e);n<i.length;n++)for(var a=i[n],o=F.readJson(a,e),s=0,c=A;s<c.length;s++){var l=c[s],u=o[l];if(u)for(var _ in u)u.hasOwnProperty(_)&&!F.startsWith(_,"@types/")&&r.push(_)}return r}(o,e);g<m.length;g++)!function(t){s.some(function(e){return e.name===t})||(f=!0,s.push(v(t,"external module name",void 0)))}(m[g]);f||(r=function(e){e=F.combinePaths(e,"node_modules");F.tryDirectoryExists(o,e)&&x(a,e,c,o,void 0,s)},i&&function(e){return F.getEmitModuleResolutionKind(e)===F.ModuleResolutionKind.Node16||F.getEmitModuleResolutionKind(e)===F.ModuleResolutionKind.NodeNext}(t)&&(p=r,r=function(e){var t=F.getPathComponents(a);t.shift();var r=t.shift();if(!r)return p(e);if(F.startsWith(r,"@")){var n=t.shift();if(!n)return p(e);r=F.combinePaths(r,n)}r=F.combinePaths(e,"node_modules",r,"package.json");if(F.tryFileExists(o,r)){r=F.readJson(r,o).exports;if(r){if("object"!=typeof r||null===r)return;var r=F.getOwnKeys(r),i=t.join("/"),r=F.mapDefined(r,function(e){if("."!==e&&F.startsWith(e,"./")){e=e.substring(2);if(F.startsWith(e,i))return F.stringContains(e,"*")?e.slice(0,e.indexOf("*")):e}});return void F.forEach(r,function(e){e&&s.push(v(e,"external module name",void 0))})}}return p(e)}),F.forEachAncestorDirectory(e,r))}return s}(n,a,e,t,r)));var o,s,c}function y(e,t){return void 0===t&&(t=0),{extensions:F.flatten((r=e,e=F.getSupportedExtensions(r),h(r)?F.getSupportedExtensionsWithJsonIfResolveJsonModule(r,e):e)),includeExtensionsOption:t};var r}function h(e){return F.getEmitModuleResolutionKind(e)===F.ModuleResolutionKind.NodeJs||F.getEmitModuleResolutionKind(e)===F.ModuleResolutionKind.Node16||F.getEmitModuleResolutionKind(e)===F.ModuleResolutionKind.NodeNext}function x(e,t,r,n,i,a){var o=r.extensions,s=r.includeExtensionsOption;void 0===a&&(a=[]),void 0===e&&(e=""),e=F.normalizeSlashes(e),F.hasTrailingDirectorySeparator(e)||(e=F.getDirectoryPath(e)),""===e&&(e="."+F.directorySeparator),e=F.ensureTrailingDirectorySeparator(e);var c=F.resolvePath(t,e),r=F.hasTrailingDirectorySeparator(c)?c:F.getDirectoryPath(c),l=!(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames());if(!F.tryDirectoryExists(n,r))return a;e=F.tryReadDirectory(n,r,o,void 0,["./*"]);if(e){for(var u=new F.Map,_=0,d=e;_<d.length;_++){var p,f,g=d[_],g=F.normalizePath(g);i&&0===F.comparePaths(g,i,t,l)||(p=void 0,f=F.moduleSpecifiers.tryGetJSExtensionForFile(g,n.getCompilationSettings()),0!==s||F.fileExtensionIsOneOf(g,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(F.fileExtensionIsOneOf(g,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||2===s)&&f?(p=F.changeExtension(F.getBaseFileName(g),f),u.set(p,f)):(p=F.getBaseFileName(g),u.set(p,F.tryGetExtensionFromPath(g))):(p=F.removeFileExtension(F.getBaseFileName(g)),u.set(p,F.tryGetExtensionFromPath(g))))}u.forEach(function(e,t){a.push(v(t,"script",e))})}e=F.tryGetDirectories(n,r);if(e)for(var m=0,y=e;m<y.length;m++){var h=y[m],h=F.getBaseFileName(F.normalizePath(h));"@types"!==h&&a.push(b(h))}e=F.findPackageJson(r,n);return!e||"object"==typeof(e=F.readJson(e,n).typesVersions)&&(e=(e=F.getPackageJsonTypesVersionsPaths(e))&&e.paths,c=c.slice(F.ensureTrailingDirectorySeparator(r).length),e&&D(a,c,r,o,e,n)),a}function D(n,e,t,r,i,a){for(var o in i)if(F.hasProperty(i,o)){var s=i[o];if(s)for(var c=0,l=function(e,t,r,n,i,a){if(!F.endsWith(e,"*"))return F.stringContains(e,"*")?F.emptyArray:s(e);var e=e.slice(0,e.length-1),o=F.tryRemovePrefix(r,e);return void 0===o?s(e):F.flatMap(t,function(e){return function(e,t,r,n,i){if(!i.readDirectory)return;var a=F.tryParsePattern(r);if(void 0===a||F.isString(a))return;var o=F.resolvePath(a.prefix),s=F.hasTrailingDirectorySeparator(a.prefix)?o:F.getDirectoryPath(o),r=F.hasTrailingDirectorySeparator(a.prefix)?"":F.getBaseFileName(o),o=f(e),e=o?F.hasTrailingDirectorySeparator(e)?e:F.getDirectoryPath(e):void 0,s=o?F.combinePaths(s,r+e):s,c=F.normalizePath(a.suffix),l=F.normalizePath(F.combinePaths(t,s)),u=o?l:F.ensureTrailingDirectorySeparator(l)+r,r=c?"**/*":"./*",r=F.mapDefined(F.tryReadDirectory(i,l,n,void 0,[r]),function(e){var t=F.tryGetExtensionFromPath(e),e=_(e);return void 0===e?void 0:v(F.removeFileExtension(e),"script",t)}),i=F.mapDefined(F.tryGetDirectories(i,l).map(function(e){return F.combinePaths(l,e)}),function(e){e=_(e);return void 0===e?void 0:b(e)});return __spreadArray(__spreadArray([],r,!0),i,!0);function _(e){var t,r,e=(t=F.normalizePath(e),r=u,e=c,F.startsWith(t,r)&&F.endsWith(t,e)?t.slice(r.length,t.length-e.length):void 0);return void 0===e?void 0:(e=e)[0]===F.directorySeparator?e.slice(1):e}}(o,n,e,i,a)});function s(e){return F.startsWith(e,r)?[b(e)]:F.emptyArray}}(o,s,e,t,r,a);c<l.length;c++){var u=l[c];!function(t,e,r){n.some(function(e){return e.name===t})||n.push(v(t,e,r))}(u.name,u.kind,u.extension)}}}function E(e){return f(e)?F.hasTrailingDirectorySeparator(e)?e:F.getDirectoryPath(e):void 0}function N(a,o,e,s,c,l){void 0===l&&(l=[]);for(var u=new F.Map,t=0,r=F.tryAndIgnoreErrors(function(){return F.getEffectiveTypeRoots(o,a)})||F.emptyArray;t<r.length;t++)d(r[t]);for(var n=0,i=F.findPackageJsons(e,a);n<i.length;n++){var _=i[n];d(F.combinePaths(F.getDirectoryPath(_),"node_modules/@types"))}return l;function d(e){if(F.tryDirectoryExists(a,e))for(var t=0,r=F.tryGetDirectories(a,e);t<r.length;t++){var n=r[t],i=F.unmangleScopedPackageName(n);o.types&&!F.contains(o.types,i)||(void 0===s?u.has(i)||(l.push(v(i,"external module name",void 0)),u.set(i,!0)):(n=F.combinePaths(e,n),void 0!==(i=F.tryRemoveDirectoryPrefix(s,i,F.hostGetCanonicalFileName(a)))&&x(i,n,c,a,void 0,l)))}}}e.getStringLiteralCompletions=function(e,t,r,n,i,a,o,s){var c;if(F.isInReferenceComment(e,t))return(c=function(e,t,r,n){var i=F.getTokenAtPosition(e,t),a=F.getLeadingCommentRanges(e.text,i.pos),o=a&&F.find(a,function(e){return t>=e.pos&&t<=e.end});if(!o)return;var s=e.text.slice(o.pos,t),c=p.exec(s);if(!c)return;i=c[1],a=c[2],s=c[3],c=F.getDirectoryPath(e.path),r="path"===a?x(s,c,y(r,1),n,e.path):"types"===a?N(n,r,c,E(s),y(r)):F.Debug.fail();return d(s,o.pos+i.length,r)}(e,t,n,i))&&u(c);if(F.isInString(e,t,r)&&r&&F.isStringLiteralLike(r))return function(e,t,r,n,i,a,o,s){if(void 0===e)return;var c=F.createTextSpanFromStringLiteralLikeContent(t);switch(e.kind){case 0:return u(e.paths);case 1:var l=F.createSortedArray();return P.getCompletionEntriesFromSymbols(e.symbols,l,t,t,r,r,n,i,99,a,4,s,o,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:c,entries:l};case 2:l=e.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:P.SortText.LocationPriority,replacementSpan:F.getReplacementSpanForContextToken(t)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:c,entries:l};default:return F.Debug.assertNever(e)}}(c=_(e,r,t,a.getTypeChecker(),n,i,s),r,e,i,a,o,n,s)},e.getStringLiteralCompletionDetails=function(e,t,r,n,i,a,o,s,c){if(n&&F.isStringLiteralLike(n)){c=_(t,n,r,i,a,o,c);return c&&function(t,e,r,n,i,a){switch(r.kind){case 0:return(o=F.find(r.paths,function(e){return e.name===t}))&&P.createCompletionDetails(t,l(o.extension),o.kind,[F.textPart(t)]);case 1:var o;return(o=F.find(r.symbols,function(e){return e.name===t}))&&P.createCompletionDetailsForSymbol(o,i,n,e,a);case 2:return F.find(r.types,function(e){return e.value===t})?P.createCompletionDetails(t,"","type",[F.textPart(t)]):void 0;default:return F.Debug.assertNever(r)}}(e,n,c,t,i,s)}},(e={})[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types",(e={})[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion";var p=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,A=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function f(e){return F.stringContains(e,F.directorySeparator)}}((P=F.Completions||(F.Completions={})).StringCompletions||(P.StringCompletions={}))}(ts=ts||{}),function(Fe){!function(_e){var I,e;function O(e){return!!(e&&4&e.kind)}function M(e){return!(!e||32!==e.kind)}function L(e){return!!(e&&64&e.kind)}function R(e){return e&&128&e.kind}function de(e,i,a,o,s,c,t,l,r){var n=Fe.timestamp(),u=Fe.createPackageJsonImportFilter(o,c,i),_=t||Fe.moduleResolutionRespectsExports(Fe.getEmitModuleResolutionKind(a.getCompilerOptions())),d=!1,p=0,f=0,g=0,m=0,y=r({tryResolve:function(e,t,r){if(r){var n=Fe.codefix.getModuleSpecifierForBestExportInfo(e,t,s,l,o,a,i,c);return n&&p++,n||"failed"}r=_||c.allowIncompleteCompletions&&f<_e.moduleSpecifierResolutionLimit,n=!r&&c.allowIncompleteCompletions&&m<_e.moduleSpecifierResolutionCacheAttemptLimit,t=r||n?Fe.codefix.getModuleSpecifierForBestExportInfo(e,t,s,l,o,a,i,c,u,n):void 0;(!r&&!n||n&&!t)&&(d=!0);f+=(null==t?void 0:t.computedWithoutCacheCount)||0,g+=e.length-((null==t?void 0:t.computedWithoutCacheCount)||0),n&&m++;return t||(_?"failed":"skipped")},skippedAny:function(){return d},resolvedAny:function(){return 0<f},resolvedBeyondLimit:function(){return f>_e.moduleSpecifierResolutionLimit}}),t=m?" (".concat((g/m*100).toFixed(1),"% hit rate)"):"";return null!==(r=i.log)&&void 0!==r&&r.call(i,"".concat(e,": resolved ").concat(f," module specifiers, plus ").concat(p," ambient and ").concat(g," from cache").concat(t)),null!==(t=i.log)&&void 0!==t&&t.call(i,"".concat(e,": response is ").concat(d?"incomplete":"complete")),null!==(t=i.log)&&void 0!==t&&t.call(i,"".concat(e,": ").concat(Fe.timestamp()-n)),y}function J(e,t){var r,n,i=Fe.compareStringsCaseSensitiveUI(e.sortText,t.sortText);return 0===i&&(i=Fe.compareStringsCaseSensitiveUI(e.name,t.name)),0===i&&null!==(r=e.data)&&void 0!==r&&r.moduleSpecifier&&null!==(n=t.data)&&void 0!==n&&n.moduleSpecifier&&(i=Fe.compareNumberOfDirectorySeparators(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function y(e){return null!=e&&e.moduleSpecifier}function h(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function pe(e,t,r){return{kind:4,keywordCompletions:W(e,t),isNewIdentifierLocation:r}}function fe(e,t){return Fe.isSourceFileJS(e)&&!Fe.isCheckJsEnabledForFile(e,t)}function z(e,t,r){return"object"==typeof r?Fe.pseudoBigIntToString(r)+"n":Fe.isString(r)?Fe.quote(e,t,r):JSON.stringify(r)}function B(e,t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x){var D,S,T,C,k,E,N=Fe.getReplacementSpanForContextToken(r),A=V(u),F=s.getTypeChecker(),P=u&&!!(16&u.kind),r=u&&!!(2&u.kind)||l;if(u&&1&u.kind)k=l?"this".concat(P?"?.":"","[").concat(U(a,y,c),"]"):"this".concat(P?"?.":".").concat(c);else if((r||P)&&d){k=r?"[".concat(l?U(a,y,c):c,"]"):c,(P||d.questionDotToken)&&(k="?.".concat(k));r=Fe.findChildOfKind(d,24,a)||Fe.findChildOfKind(d,28,a);if(!r)return;var w=(Fe.startsWith(c,d.name.text)?d.name:r).end,N=Fe.createTextSpanFromBounds(r.getStart(a),w)}if(p&&(void 0===k&&(k=c),k="{".concat(k,"}"),"boolean"!=typeof p&&(N=Fe.createTextSpanFromNode(p,a))),u&&8&u.kind&&d&&(void 0===k&&(k=c),w="",(p=Fe.findPrecedingToken(d.pos,a))&&Fe.positionIsASICandidate(p.end,p.parent,a)&&(w=";"),w+="(await ".concat(d.expression.getText(),")"),k=(l?"".concat(w):"".concat(w).concat(P?"?.":".")).concat(k),N=Fe.createTextSpanFromBounds(d.getStart(a),d.end)),M(u)&&(S=[Fe.textPart(u.moduleSpecifier)],f&&(k=(E=function(e,t,r,n,i,a,o){var s=t.getSourceFile(),c=Fe.createTextSpanFromNode(Fe.findAncestor(t,Fe.or(Fe.isImportDeclaration,Fe.isImportEqualsDeclaration))||t,s),l=Fe.quote(s,o,n.moduleSpecifier),n=n.isDefaultExport?1:"export="===n.exportName?2:0,u=o.includeCompletionsWithSnippetText?"$1":"",n=Fe.codefix.getImportKind(s,n,a,!0),_=(null===(a=null===(a=Fe.tryCast(t,Fe.isImportDeclaration))||void 0===a?void 0:a.importClause)||void 0===a?void 0:a.isTypeOnly)||(null===(_=Fe.tryCast(t,Fe.isImportEqualsDeclaration))||void 0===_?void 0:_.isTypeOnly),r=Ee(t,r),d=_?" ".concat(Fe.tokenToString(152)," "):" ",p=r?"".concat(Fe.tokenToString(152)," "):"",f=i?";":"";switch(n){case 3:return{replacementSpan:c,insertText:"import".concat(d).concat(Fe.escapeSnippetText(e)).concat(u," = require(").concat(l,")").concat(f)};case 1:return{replacementSpan:c,insertText:"import".concat(d).concat(Fe.escapeSnippetText(e)).concat(u," from ").concat(l).concat(f)};case 2:return{replacementSpan:c,insertText:"import".concat(d,"* as ").concat(Fe.escapeSnippetText(e)," from ").concat(l).concat(f)};case 0:return{replacementSpan:c,insertText:"import".concat(d,"{ ").concat(p).concat(Fe.escapeSnippetText(e)).concat(u," } from ").concat(l).concat(f)}}}(c,f,n,u,g,m,y)).insertText,N=E.replacementSpan,E=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(T=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===h&&function(e,t){if(Fe.isInJSFile(t))return!1;return!!(106500&e.flags)&&(Fe.isClassLike(t)||t.parent&&t.parent.parent&&Fe.isClassElement(t.parent)&&t===t.parent.name&&Fe.isClassLike(t.parent.parent)||t.parent&&Fe.isSyntaxList(t)&&Fe.isClassLike(t.parent))}(e,i)&&(h=void 0,k=(v=j(o,s,m,y,c,e,i,n,v)).insertText,E=v.isSnippet,h=v.importAdder,N=v.replacementSpan,t=_e.SortText.ClassMemberSnippets,null!=h&&h.hasFixes()&&(T=!0,A=I.ClassMemberSnippet)),u&&R(u)&&(k=u.insertText,E=u.isSnippet,C=u.labelDetails,y.useLabelDetailsInCompletionEntries||(c+=C.detail,C=void 0),A=I.ObjectLiteralMethodSnippet,t=_e.SortText.SortBelow(t)),b&&!x&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(b="braces"===y.jsxAttributeCompletionStyle,x=F.getTypeOfSymbolAtLocation(e,i),"auto"!==y.jsxAttributeCompletionStyle||528&x.flags||1048576&x.flags&&Fe.find(x.types,function(e){return!!(528&e.flags)})||(402653316&x.flags||1048576&x.flags&&Fe.every(x.types,function(e){return!!(402686084&e.flags)})?(k="".concat(Fe.escapeSnippetText(c),"=").concat(Fe.quote(a,y,"$1")),E=!0):b=!0),b&&(k="".concat(Fe.escapeSnippetText(c),"={$1}"),E=!0)),void 0===k||y.includeCompletionsWithInsertText)return(O(u)||M(u))&&(D=K(u),T=!f),{name:c,kind:Fe.SymbolDisplay.getSymbolKind(F,e,i),kindModifiers:Fe.SymbolDisplay.getSymbolModifiers(F,e),sortText:t,source:A,hasAction:!!T||void 0,isRecommended:(F=F,(e=e)===(_=_)||!!(1048576&e.flags)&&F.getExportSymbolOfSymbol(e)===_||void 0),insertText:k,replacementSpan:N,sourceDisplay:S,labelDetails:C,isSnippet:E,isPackageJsonImport:(O(u=u)||M(u))&&!!u.isFromPackageJson||void 0,isImportStatementCompletion:!!f||void 0,data:D}}function j(e,t,r,n,i,a,o,s,c){var l,u=Fe.findAncestor(o,Fe.isClassLike);if(!u)return{insertText:i};var _,d=i,p=t.getTypeChecker(),f=o.getSourceFile(),i=b({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:Fe.getNewLineKind(Fe.getNewLineCharacter(r,Fe.maybeBind(e,e.getNewLine)))}),o=Fe.codefix.createImportAdder(f,t,n,e);n.includeCompletionsWithSnippetText?(l=!0,r=Fe.factory.createEmptyStatement(),_=Fe.factory.createBlock([r],!0),Fe.setSnippetElement(r,{kind:0,order:0})):_=Fe.factory.createBlock([],!0);var g,m=0,s=function(e){if(!e)return{modifiers:0};var t,r,n=0;(r=function(e){if(Fe.isModifier(e))return e.kind;if(Fe.isIdentifier(e)&&e.originalKeywordKind&&Fe.isModifierKind(e.originalKeywordKind))return e.originalKeywordKind;return}(e))&&(n|=Fe.modifierToFlag(r),t=Fe.createTextSpanFromNode(e));Fe.isPropertyDeclaration(e.parent)&&(n|=Fe.modifiersToFlags(e.parent.modifiers),t=Fe.createTextSpanFromNode(e.parent));return{modifiers:n,span:t}}(s),y=s.modifiers,s=s.span,h=!!(128&y),v=[];return Fe.codefix.addNewNodeForMemberSymbol(a,u,f,{program:t,host:e},n,o,function(e){var t=0;h&&(t|=128),Fe.isClassElement(e)&&1===p.getMemberOverrideModifierStatus(u,e)&&(t|=16384),v.length||(m=e.modifierFlagsCache|t|y),e=Fe.factory.updateModifiers(e,m),v.push(e)},_,2,h),v.length&&(g=s,d=c?i.printAndFormatSnippetList(131073,Fe.factory.createNodeArray(v),f,c):i.printSnippetList(131073,Fe.factory.createNodeArray(v),f)),{insertText:d,isSnippet:l,importAdder:o,replacementSpan:g}}function ge(e,t,r,n,i,a,o,s){var c=o.includeCompletionsWithSnippetText||void 0,l=t,t=r.getSourceFile(),o=function(e,t,r,n,i,a){var o=e.getDeclarations();if(!o||!o.length)return;var s=n.getTypeChecker(),o=o[0],c=Fe.getSynthesizedDeepClone(Fe.getNameOfDeclaration(o),!1),l=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=0===Fe.getQuotePreference(r,a)?268435456:void 0;switch(o.kind){case 166:case 167:case 168:case 169:var _=1048576&l.flags&&l.types.length<10?s.getUnionType(l.types,2):l;if(1048576&_.flags){var d=Fe.filter(_.types,function(e){return 0<s.getSignaturesOfType(e,0).length});if(1!==d.length)return;_=d[0]}if(1!==s.getSignaturesOfType(_,0).length)return;var p=s.typeToTypeNode(_,t,u,Fe.codefix.getNoopSymbolTrackerWithResolver({program:n,host:i}));if(!p||!Fe.isFunctionTypeNode(p))return;d=void 0;a.includeCompletionsWithSnippetText?(_=Fe.factory.createEmptyStatement(),d=Fe.factory.createBlock([_],!0),Fe.setSnippetElement(_,{kind:0,order:0})):d=Fe.factory.createBlock([],!0);p=p.parameters.map(function(e){return Fe.factory.createParameterDeclaration(void 0,void 0,e.dotDotDotToken,e.name,e.questionToken,void 0,e.initializer)});return Fe.factory.createMethodDeclaration(void 0,void 0,void 0,c,void 0,void 0,p,void 0,d);default:return}}(e,r,t,n,i,o);if(o){i=b({removeComments:!0,module:a.module,target:a.target,omitTrailingSemicolon:!1,newLine:Fe.getNewLineKind(Fe.getNewLineCharacter(a,Fe.maybeBind(i,i.getNewLine)))}),l=s?i.printAndFormatSnippetList(80,Fe.factory.createNodeArray([o],!0),t,s):i.printSnippetList(80,Fe.factory.createNodeArray([o],!0),t),a=Fe.createPrinter({removeComments:!0,module:a.module,target:a.target,omitTrailingSemicolon:!0}),o=Fe.factory.createMethodSignature(void 0,"",o.questionToken,o.typeParameters,o.parameters,o.type);return{isSnippet:c,insertText:l,labelDetails:{detail:a.printNode(4,o,t)}}}}function b(e){var o,i=Fe.textChanges.createWriter(Fe.getNewLineCharacter(e)),n=Fe.createPrinter(e,i),a=__assign(__assign({},i),{write:function(e){return r(e,function(){return i.write(e)})},nonEscapingWrite:i.write,writeLiteral:function(e){return r(e,function(){return i.writeLiteral(e)})},writeStringLiteral:function(e){return r(e,function(){return i.writeStringLiteral(e)})},writeSymbol:function(e,t){return r(e,function(){return i.writeSymbol(e,t)})},writeParameter:function(e){return r(e,function(){return i.writeParameter(e)})},writeComment:function(e){return r(e,function(){return i.writeComment(e)})},writeProperty:function(e){return r(e,function(){return i.writeProperty(e)})}});return{printSnippetList:function(e,t,r){r=s(e,t,r);return o?Fe.textChanges.applyChanges(r,o):r},printAndFormatSnippetList:function(e,t,r,n){var i={text:s(e,t,r),getLineAndCharacterOfPosition:function(e){return Fe.getLineAndCharacterOfPosition(this,e)}},a=Fe.getFormatCodeSettingsForWriting(n,r),t=Fe.flatMap(t,function(e){e=Fe.textChanges.assignPositionsToNode(e);return Fe.formatting.formatNodeGivenIndentation(e,i,r.languageVariant,0,0,__assign(__assign({},n),{options:a}))}),t=o?Fe.stableSort(Fe.concatenate(t,o),function(e,t){return Fe.compareTextSpans(e.span,t.span)}):t;return Fe.textChanges.applyChanges(i.text,t)}};function r(e,t){var r,n=Fe.escapeSnippetText(e);n!==e?(r=i.getTextPos(),t(),e=i.getTextPos(),o=Fe.append(o=o||[],{newText:n,span:{start:r,length:e-r}})):t()}function s(e,t,r){return o=void 0,a.clear(),n.writeList(e,t,r,a),a.getText()}}function K(e){var t=e.fileName?void 0:Fe.stripQuotes(e.moduleSymbol.name),r=!!e.isFromPackageJson||void 0;return M(e)?{exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Fe.stripQuotes(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function U(e,t,r){return/^\d+$/.test(r)?r:Fe.quote(e,t,r)}function V(e){return O(e)?Fe.stripQuotes(e.moduleSymbol.name):M(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?I.ThisProperty:64===(null==e?void 0:e.kind)?I.TypeOnlyAlias:void 0}function q(e,t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x,D,S){for(var T,C=Fe.timestamp(),k=(T=i,Fe.findAncestor(T,function(e){return Fe.isFunctionBlock(e)||(t=e).parent&&Fe.isArrowFunction(t.parent)&&t.parent.body===t||Fe.isBindingPattern(e)?"quit":Fe.isVariableDeclaration(e);var t})),E=Fe.probablyUsesSemicolons(a),N=s.getTypeChecker(),A=new Fe.Map,F=0;F<e.length;F++){var P,w,I=e[F],O=null==b?void 0:b[F],M=he(I,c,O,u,!!m);M&&(!A.get(M.name)||O&&R(O))&&(1!==u||!x||function(e,t){var r=e.flags;if(!Fe.isSourceFile(i)){if(Fe.isExportAssignment(i.parent))return!0;if(k&&e.valueDeclaration===k)return!1;var n=Fe.skipAlias(e,N);if(a.externalModuleIndicator&&!d.allowUmdGlobalAccess&&t[Fe.getSymbolId(e)]===_e.SortText.GlobalsOrKeywords&&(t[Fe.getSymbolId(n)]===_e.SortText.AutoImportSuggestions||t[Fe.getSymbolId(n)]===_e.SortText.LocationPriority))return!1;if(r|=Fe.getCombinedLocalAndExportSymbolFlags(n),Fe.isInRightSideOfInternalImportEqualsDeclaration(i))return!!(1920&r);if(f)return Ne(e,N)}return!!(111551&r)}(I,x))&&(P=M.name,w=M.needsConvertPropertyAccess,M=null!==(M=null==x?void 0:x[Fe.getSymbolId(I)])&&void 0!==M?M:_e.SortText.LocationPriority,(w=B(I,function(e,t){t=Fe.skipAlias(e,t).declarations;return!!Fe.length(t)&&Fe.every(t,Fe.isDeprecatedDeclaration)}(I,N)?_e.SortText.Deprecated(M):M,r,n,i,a,o,s,P,w,O,v,g,y,h,E,d,_,u,p,D,S))&&(I=(!O||L(O))&&!(void 0===I.parent&&!Fe.some(I.declarations,function(e){return e.getSourceFile()===i.getSourceFile()})),A.set(P,I),Fe.insertSorted(t,w,J,!0)))}return l("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Fe.timestamp()-C)),{has:function(e){return A.has(e)},add:function(e){return A.set(e,!0)}}}function D(e,t,r,n,i,a,o){if(i.data){var s=x(i.name,i.data,e,a);if(s){var c=ye(n,r),l=c.contextToken,c=c.previousToken;return{type:"symbol",symbol:s.symbol,location:Fe.getTouchingPropertyName(r,n),previousToken:c,contextToken:l,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:s.origin}}}var u=e.getCompilerOptions(),_=v(e,t,r,u,n,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,a,void 0);if(!_)return{type:"none"};if(0!==_.kind)return{type:"request",request:_};var n=_.symbols,a=_.literals,d=_.location,p=_.completionKind,f=_.symbolToOriginInfoMap,g=_.contextToken,m=_.previousToken,y=_.isJsxInitializer,h=_.isTypeOnlyLocation,a=Fe.find(a,function(e){return z(r,o,e)===i.name});return void 0!==a?{type:"literal",literal:a}:Fe.firstDefined(n,function(e,t){var r=f[t],t=he(e,Fe.getEmitScriptTarget(u),r,p,_.isJsxIdentifierExpected);return t&&t.name===i.name&&(i.source===I.ClassMemberSnippet&&106500&e.flags||i.source===I.ObjectLiteralMethodSnippet&&8196&e.flags||V(r)===i.source)?{type:"symbol",symbol:e,location:d,origin:r,contextToken:g,previousToken:m,isJsxInitializer:y,isTypeOnlyLocation:h}:void 0})||{type:"none"}}function S(e,t,r){return u(e,"",t,[Fe.displayPart(e,r)])}function T(t,e,r,n,i,a,o){var s=e.runWithCancellationToken(i,function(e){return Fe.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,t,r,n,n,7)}),c=s.displayParts,l=s.documentation,i=s.symbolKind,s=s.tags;return u(t.name,Fe.SymbolDisplay.getSymbolModifiers(e,t),i,c,l,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,sourceDisplay:s}}function me(e,t,r){var n=r.getAccessibleSymbolChain(e,t,67108863,!1);return n?Fe.first(n):e.parent&&(null===(n=(n=e.parent).declarations)||void 0===n||!n.some(function(e){return 305===e.kind})?me(e.parent,t,r):e)}function v(_,e,g,s,d,m,l,p,c,o){var y=_.getTypeChecker(),u=fe(g,s),t=Fe.timestamp(),r=Fe.getTokenAtPosition(g,d);e("getCompletionData: Get current token: "+(Fe.timestamp()-t)),t=Fe.timestamp();var n=Fe.isInComment(g,d,r);e("getCompletionData: Is inside comment: "+(Fe.timestamp()-t));var i,h=!1,f=!1;if(n){if(Fe.hasDocComment(g,d)){if(64===g.text.charCodeAt(d-1))return{kind:1};var a=Fe.getLineStartPositionForPosition(d,g);if(!/[^\*|\s(/)]/.test(g.text.substring(a,d)))return{kind:2}}a=(a=r,i=d,Fe.findAncestor(a,function(e){return!(!Fe.isJSDocTag(e)||!Fe.rangeContainsPosition(e,i))||!!Fe.isJSDoc(e)&&"quit"}));if(a){if(a.tagName.pos<=d&&d<=a.tagName.end)return{kind:1};var v=function(e){if(function(e){switch(e.kind){case 340:case 347:case 341:case 343:case 345:return!0;case 344:return!!e.constraint;default:return!1}}(e)){e=Fe.isJSDocTemplateTag(e)?e.constraint:e.typeExpression;return e&&309===e.kind?e:void 0}return}(a);if(v&&((r=Fe.getTokenAtPosition(g,d))&&(Fe.isDeclarationName(r)||347===r.parent.kind&&r.parent.name===r)||(h=ue(v))),!h&&Fe.isJSDocParameterTag(a)&&(Fe.nodeIsMissing(a.name)||a.name.pos<=d&&d<=a.name.end))return{kind:3,tag:a}}if(!h)return void e("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}t=Fe.timestamp();var v=!h&&Fe.isSourceFileJS(g),a=ye(d,g),b=a.previousToken,x=a.contextToken;e("getCompletionData: Get previous token: "+(Fe.timestamp()-t));var D,S,T,C,k=r,E=!1,N=!1,A=!1,F=!1,P=!1,w=!1,I=Fe.getTouchingPropertyName(g,d),O=0,M=!1,L=0;if(x){var R=ke(x),M=R.isNewIdentifierLocation;if(R.keywordCompletion){if(R.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(J=R.keywordCompletion,{name:Fe.tokenToString(J),kind:"keyword",kindModifiers:"",sortText:_e.SortText.GlobalsOrKeywords})],isNewIdentifierLocation:M};O=function(e){if(152===e)return 8;Fe.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(R.keywordCompletion)}if(R.replacementNode&&m.includeCompletionsForImportStatements&&m.includeCompletionsWithInsertText&&(S=R.replacementNode,L|=2),!S&&(T=x,C=Fe.timestamp(),T=function(e){return(Fe.isRegularExpressionLiteral(e)||Fe.isStringTextContainingNode(e))&&(Fe.rangeContainsPositionExclusive(Fe.createTextRangeFromSpan(Fe.createTextSpanFromNode(e)),d)||d===e.end&&(!!e.isUnterminated||Fe.isRegularExpressionLiteral(e)))}(T)||function(e){var t=e.parent,r=t.kind;switch(e.kind){case 27:return 254===r||function(e){return 255===e.parent.kind&&!Fe.isPossiblyTypeArgumentPosition(e,g,y)}(e)||237===r||260===r||oe(r)||258===r||202===r||259===r||Fe.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 24:return 202===r;case 58:return 203===r;case 22:return 202===r;case 20:return 292===r||oe(r);case 18:return 260===r;case 29:return 257===r||226===r||258===r||259===r||Fe.isFunctionLikeKind(r);case 124:return 167===r&&!Fe.isClassLike(t.parent);case 25:return 164===r||!!t.parent&&202===t.parent.kind;case 123:case 121:case 122:return 164===r&&!Fe.isConstructorDeclaration(t.parent);case 127:return 270===r||275===r||268===r;case 136:case 149:return!Te(e);case 79:if(270===r&&e===t.name&&"type"===e.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 152:return 270!==r;case 41:return Fe.isFunctionLike(e.parent)&&!Fe.isMethodDeclaration(e.parent)}if(be(xe(e))&&Te(e))return!1;if(ie(e)&&(!Fe.isIdentifier(e)||Fe.isParameterPropertyModifier(xe(e))||ue(e)))return!1;switch(xe(e)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return Fe.isPropertyDeclaration(e.parent)}if(Fe.findAncestor(e.parent,Fe.isClassLike)&&e===b&&ae(e,d))return!1;var n=Fe.getAncestor(e.parent,167);if(n&&e!==b&&Fe.isClassLike(b.parent.parent)&&d<=b.end){if(ae(e,b.end))return!1;if(63!==e.kind&&(Fe.isInitializedProperty(n)||Fe.hasType(n)))return!0}return Fe.isDeclarationName(e)&&!Fe.isShorthandPropertyAssignment(e.parent)&&!Fe.isJsxAttribute(e.parent)&&!(Fe.isClassLike(e.parent)&&(e!==b||d>b.end))}(T)||function(e){if(8!==e.kind)return!1;e=e.getFullText();return"."===e.charAt(e.length-1)}(T)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(I===e.parent&&(280===I.kind||279===I.kind))return!1;if(280===e.parent.kind)return 280!==I.parent.kind;if(281===e.parent.kind||279===e.parent.kind)return!!e.parent.parent&&278===e.parent.parent.kind}return!1}(T)||Fe.isBigIntLiteral(T),e("getCompletionsAtPosition: isCompletionListBlocker: "+(Fe.timestamp()-C)),T))return e("Returning an empty list because completion was requested in an invalid position."),O?pe(O,v,ne()):void 0;var B=x.parent;if(24===x.kind||28===x.kind)switch(E=24===x.kind,N=28===x.kind,B.kind){case 206:k=(D=B).expression;var j=Fe.getLeftmostAccessExpression(D);if(Fe.nodeIsMissing(j)||(Fe.isCallExpression(k)||Fe.isFunctionLike(k))&&k.end===x.pos&&k.getChildCount(g)&&21!==Fe.last(k.getChildren(g)).kind)return;break;case 161:k=B.left;break;case 261:k=B.name;break;case 200:k=B;break;case 231:k=B.getFirstToken(g),Fe.Debug.assert(100===k.kind||103===k.kind);break;default:return}else if(!S&&1===g.languageVariant){if(B&&206===B.kind&&(B=(x=B).parent),r.parent===I)switch(r.kind){case 31:278!==r.parent.kind&&280!==r.parent.kind||(I=r);break;case 43:279===r.parent.kind&&(I=r)}switch(B.kind){case 281:43===x.kind&&(F=!0,I=x);break;case 221:if(!Ce(B))break;case 279:case 278:case 280:w=!0,29===x.kind&&(A=!0,I=x);break;case 288:case 287:19===b.kind&&31===r.kind&&(w=!0);break;case 285:if(B.initializer===b&&b.end<d){w=!0;break}switch(b.kind){case 63:P=!0;break;case 79:w=!0,B!==b.parent&&!B.initializer&&Fe.findChildOfKind(B,63,g)&&(P=b)}}}}var J=Fe.timestamp(),z=5,K=!1,U=!1,V=[],q=[],W=[],H=new Fe.Map,G=h||!!S&&Fe.isTypeOnlyImportOrExportDeclaration(I.parent)||!function(e){return e&&(112===e.kind&&(181===e.parent.kind||Fe.isTypeOfExpression(e.parent))||128===e.kind&&177===e.parent.kind)}(x)&&(Fe.isPossiblyTypeArgumentPosition(x,g,y)||Fe.isPartOfTypeNode(I)||function(e){if(e){var t=e.parent.kind;switch(e.kind){case 58:return 167===t||166===t||164===t||254===t||Fe.isFunctionLikeKind(t);case 63:return 259===t;case 127:return 229===t;case 29:return 178===t||211===t;case 94:return 163===t}}return!1}(x)),Q=Fe.memoizeOne(function(e){return Fe.createModuleSpecifierResolutionHost(e?p.getPackageJsonAutoImportProvider():_,p)});if(E||N)!function(){z=2;var e,t,r,n=Fe.isLiteralImportTypeNode(k),i=h||n&&!k.isTypeOf||Fe.isPartOfTypeNode(k.parent)||Fe.isPossiblyTypeArgumentPosition(x,g,y),a=Fe.isInRightSideOfInternalImportEqualsDeclaration(k);if(Fe.isEntityName(k)||n||Fe.isPropertyAccessExpression(k)){var o=Fe.isModuleDeclaration(k.parent);o&&(M=!0);var s=y.getSymbolAtLocation(k);if(s&&1920&(s=Fe.skipAlias(s,y)).flags){var c=y.getExportsOfModule(s);Fe.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var l=function(e){return y.isValidPropertyAccess(n?k:k.parent,e.name)},u=function(e){return Ne(e,y)},_=o?function(e){return!(!(1920&e.flags)||null!==(e=e.declarations)&&void 0!==e&&e.every(function(e){return e.parent===k.parent}))}:a?function(e){return u(e)||l(e)}:i?u:l,d=0,p=c;d<p.length;d++){var f=p[d];_(f)&&V.push(f)}return!i&&s.declarations&&s.declarations.some(function(e){return 305!==e.kind&&261!==e.kind&&260!==e.kind})&&(e=y.getTypeOfSymbolAtLocation(s,k).getNonOptionalType(),t=!1,e.isNullableType()&&((r=E&&!N&&!1!==m.includeAutomaticOptionalChainCompletions)||N)&&(e=e.getNonNullableType(),r&&(t=!0)),$(e,!!(32768&k.flags),t))}}i||(y.tryGetThisTypeAt(k,!1),e=y.getTypeAtLocation(k).getNonOptionalType(),t=!1,e.isNullableType()&&((r=E&&!N&&!1!==m.includeAutomaticOptionalChainCompletions)||N)&&(e=e.getNonNullableType(),r&&(t=!0)),$(e,!!(32768&k.flags),t))}();else if(A)V=y.getJsxIntrinsicTagNamesAt(I),Fe.Debug.assertEachIsDefined(V,"getJsxIntrinsicTagNames() should all be defined"),te(),z=1,O=0;else if(F){R=x.parent.parent.openingElement.tagName,R=y.getSymbolAtLocation(R);R&&(V=[R]),z=1,O=0}else if(!te())return O?pe(O,v,M):void 0;e("getCompletionData: Semantic work: "+(Fe.timestamp()-J));var X,Y,Z,v=b&&function(e,t,r,n){var i=e.parent;switch(e.kind){case 79:return Fe.getContextualTypeFromParent(e,n);case 63:switch(i.kind){case 254:return n.getContextualType(i.initializer);case 221:return n.getTypeAtLocation(i.left);case 285:return n.getContextualTypeForJsxAttribute(i);default:return}case 103:return n.getContextualType(i);case 82:var a=Fe.tryCast(i,Fe.isCaseClause);return a?Fe.getSwitchedType(a,n):void 0;case 18:return!Fe.isJsxExpression(i)||Fe.isJsxElement(i.parent)||Fe.isJsxFragment(i.parent)?void 0:n.getContextualTypeForJsxAttribute(i.parent);default:a=Fe.SignatureHelp.getArgumentInfoForCompletions(e,t,r);return a?n.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(27===e.kind?1:0)):Fe.isEqualityOperatorKind(e.kind)&&Fe.isBinaryExpression(i)&&Fe.isEqualityOperatorKind(i.operatorToken.kind)?n.getTypeAtLocation(i.left):n.getContextualType(e)}}(b,d,g,y),J=Fe.mapDefined(v&&(v.isUnion()?v.types:[v]),function(e){return!e.isLiteral()||1024&e.flags?void 0:e.value}),Y=b&&v&&(X=b,Y=v,Z=y,Fe.firstDefined(Y&&(Y.isUnion()?Y.types:[Y]),function(e){e=e&&e.symbol;return e&&424&e.flags&&!Fe.isAbstractConstructorSymbol(e)?me(e,X,Z):void 0}));return{kind:0,symbols:V,completionKind:z,isInSnippetScope:f,propertyAccessToConvert:D,isNewIdentifierLocation:M,location:I,keywordFilters:O,literals:J,symbolToOriginInfoMap:q,recommendedCompletion:Y,previousToken:b,contextToken:x,isJsxInitializer:P,insideJsDocTagTypeExpression:h,symbolToSortTextMap:W,isTypeOnlyLocation:G,isJsxIdentifierExpected:w,isRightOfOpenTag:A,importCompletionNode:S,hasUnresolvedAutoImports:U,flags:L};function $(t,e,r){M=!!t.getStringIndexType(),N&&Fe.some(t.getCallSignatures())&&(M=!0);var n=200===k.kind?k:k.parent;if(u)V.push.apply(V,Fe.filter(Se(t,y),function(e){return y.isValidPropertyAccessForCompletions(n,t,e)}));else for(var i=0,a=t.getApparentProperties();i<a.length;i++){var o=a[i];y.isValidPropertyAccessForCompletions(n,t,o)&&ee(o,!1,r)}if(e&&m.includeCompletionsWithInsertText){var s=y.getPromisedTypeOfPromise(t);if(s)for(var c=0,l=s.getApparentProperties();c<l.length;c++){o=l[c];y.isValidPropertyAccessForCompletions(n,s,o)&&ee(o,!0,r)}}}function ee(e,t,r){var n,i,a,o,s=Fe.firstDefined(e.declarations,function(e){return Fe.tryCast(Fe.getNameOfDeclaration(e),Fe.isComputedPropertyName)});function c(e){var t;(t=e).valueDeclaration&&32&Fe.getEffectiveModifierFlags(t.valueDeclaration)&&Fe.isClassLike(t.valueDeclaration.parent)&&(W[Fe.getSymbolId(e)]=_e.SortText.LocalDeclarationPriority)}function l(e){m.includeCompletionsWithInsertText&&(t&&Fe.addToSeen(H,Fe.getSymbolId(e))?q[V.length]={kind:u(8)}:r&&(q[V.length]={kind:16}))}function u(e){return r?16|e:e}s?(n=(a=(i=function e(t){return Fe.isIdentifier(t)?t:Fe.isPropertyAccessExpression(t)?e(t.expression):void 0}(s.expression))&&y.getSymbolAtLocation(i))&&me(a,x,y))&&Fe.addToSeen(H,Fe.getSymbolId(n))?(s=V.length,V.push(n),(i=n.parent)&&Fe.isExternalModuleSymbol(i)&&y.tryGetMemberInModuleExportsAndProperties(n.name,i)===n?(a=!Fe.isExternalModuleNameRelative(Fe.stripQuotes(i.name))||null===(o=Fe.getSourceFileOfModule(i))||void 0===o?void 0:o.fileName,(o=(Fe.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:i,symbol:n,targetFlags:Fe.skipAlias(n,y).flags}],n.name,d,Fe.isValidTypeOnlyAliasUseSite(I),g,_,p,m)||{}).moduleSpecifier)&&(o={kind:u(6),moduleSymbol:i,isDefaultExport:!1,symbolName:n.name,exportName:n.name,fileName:a,moduleSpecifier:o},q[s]=o)):q[s]={kind:u(2)}):m.includeCompletionsWithInsertText&&(l(e),c(e),V.push(e)):(l(e),c(e),V.push(e))}function te(){return 1===(function(){var e=function(e){if(!e)return;var t=e.parent;switch(e.kind){case 18:if(Fe.isTypeLiteralNode(t))return t;break;case 26:case 27:case 79:if(166===t.kind&&Fe.isTypeLiteralNode(t.parent))return t.parent}return}(x);if(!e)return 0;var t=(Fe.isIntersectionTypeNode(e.parent)?e.parent:void 0)||e,e=function e(t,r){if(!t)return;if(Fe.isTypeNode(t)&&Fe.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=e(t.parent,r);if(!n)return;switch(t.kind){case 166:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 188:case 182:case 187:return n}}(t,y);if(!e)return 0;var t=y.getTypeFromTypeNode(t),e=Se(e,y),t=Se(t,y),r=new Fe.Set;return t.forEach(function(e){return r.add(e.escapedName)}),V=Fe.concatenate(V,Fe.filter(e,function(e){return!r.has(e.escapedName)})),M=!(z=0),1}()||function(){var a=V.length,t=function(e){if(e){var t=e.parent;switch(e.kind){case 18:case 27:if(Fe.isObjectLiteralExpression(t)||Fe.isObjectBindingPattern(t))return t;break;case 41:return Fe.isMethodDeclaration(t)?Fe.tryCast(t.parent,Fe.isObjectLiteralExpression):void 0;case 79:return"async"===e.text&&Fe.isShorthandPropertyAssignment(e.parent)?e.parent.parent:void 0}}return}(x);if(!t)return 0;if(z=0,205===t.kind){var e=function(e,t){var r=t.getContextualType(e);if(r)return r;r=Fe.walkUpParenthesizedExpressions(e.parent);if(Fe.isBinaryExpression(r)&&63===r.operatorToken.kind&&e===r.left)return t.getTypeAtLocation(r);if(Fe.isExpression(r))return t.getContextualType(r);return}(t,y);if(void 0===e)return 33554432&t.flags?2:(K=!0,0);var r=y.getContextualType(t,4),n=(r||e).getStringIndexType(),i=(r||e).getNumberIndexType();if(M=!!n||!!i,n=De(e,r,t,y),e=t.properties,0===n.length&&!i)return K=!0,0}else{Fe.Debug.assert(201===t.kind),M=!1;r=Fe.getRootDeclaration(t.parent);if(!Fe.isVariableLike(r))return Fe.Debug.fail("Root declaration is not variable-like.");i=Fe.hasInitializer(r)||!!Fe.getEffectiveTypeAnnotationNode(r)||244===r.parent.parent.kind;if(i||164!==r.kind||(Fe.isExpression(r.parent)?i=!!y.getContextualType(r.parent):169!==r.parent.kind&&173!==r.parent.kind||(i=Fe.isExpression(r.parent.parent)&&!!y.getContextualType(r.parent.parent))),i){var o=y.getTypeAtLocation(t);if(!o)return 2;n=y.getPropertiesOfType(o).filter(function(e){return y.isPropertyAccessible(t,!1,!1,o,e)}),e=t.elements}}n&&0<n.length&&(e=function(e,t){if(0===t.length)return e;for(var r=new Fe.Set,n=new Fe.Set,i=0,a=t;i<a.length;i++){var o,s=a[i];296!==s.kind&&297!==s.kind&&203!==s.kind&&169!==s.kind&&172!==s.kind&&173!==s.kind&&298!==s.kind||ue(s)||(o=void 0,Fe.isSpreadAssignment(s)?se(s,r):Fe.isBindingElement(s)&&s.propertyName?79===s.propertyName.kind&&(o=s.propertyName.escapedText):(s=Fe.getNameOfDeclaration(s),o=s&&Fe.isPropertyNameLiteral(s)?Fe.getEscapedTextOfIdentifierOrLiteral(s):void 0),void 0!==o&&n.add(o))}e=e.filter(function(e){return!n.has(e.escapedName)});return le(r,e),e}(n,Fe.Debug.checkDefined(e)),V=Fe.concatenate(V,e),ce(),205===t.kind&&m.includeCompletionsWithObjectLiteralMethodSnippets&&m.includeCompletionsWithInsertText&&(function(){for(var e=a;e<V.length;e++){var t=V[e],r=Fe.getSymbolId(t),n=null==q?void 0:q[e],i=Fe.getEmitScriptTarget(s),i=he(t,i,n,0,!1);i&&(n=null!==(n=W[r])&&void 0!==n?n:_e.SortText.LocationPriority,i=i.name,W[r]=_e.SortText.ObjectLiteralProperty(n,i))}}(),function(e,r){Fe.isInJSFile(I)||e.forEach(function(e){var t;8196&e.flags&&(!(t=he(e,Fe.getEmitScriptTarget(s),void 0,0,!1))||(t=ge(e,t.name,r,_,p,s,m,c))&&(t=__assign({kind:128},t),L|=32,q[V.length]=t,V.push(e)))})}(e,t)));return 1}()||(S?(M=!0,re(),1):0)||function(){if(!x)return 0;var e=18===x.kind||27===x.kind?Fe.tryCast(x.parent,Fe.isNamedImportsOrExports):Fe.isTypeKeywordTokenOrIdentifier(x)?Fe.tryCast(x.parent.parent,Fe.isNamedImportsOrExports):void 0;if(!e)return 0;Fe.isTypeKeywordTokenOrIdentifier(x)||(O=8);var t=(269===e.kind?e.parent:e).parent.moduleSpecifier;if(!t)return M=!0,269===e.kind?2:0;t=y.getSymbolAtLocation(t);if(!t)return M=!0,2;z=3,M=!1;var t=y.getExportsAndPropertiesOfModule(t),r=new Fe.Set(e.elements.filter(function(e){return!ue(e)}).map(function(e){return(e.propertyName||e.name).escapedText})),t=t.filter(function(e){return"default"!==e.escapedName&&!r.has(e.escapedName)});V=Fe.concatenate(V,t),t.length||(O=0);return 1}()||function(){var e=!x||18!==x.kind&&27!==x.kind?void 0:Fe.tryCast(x.parent,Fe.isNamedExports);if(!e)return 0;var n=Fe.findAncestor(e,Fe.or(Fe.isSourceFile,Fe.isModuleDeclaration));return M=!(z=5),null===(e=n.locals)||void 0===e||e.forEach(function(e,t){var r;V.push(e),null!==(r=null===(r=n.symbol)||void 0===r?void 0:r.exports)&&void 0!==r&&r.has(t)&&(W[Fe.getSymbolId(e)]=_e.SortText.OptionalMember)}),1}()||(function(e){if(e){var t=e.parent;switch(e.kind){case 20:case 27:return Fe.isConstructorDeclaration(e.parent)?e.parent:void 0;default:if(ie(e))return t.parent}}return}(x)?(z=5,M=!0,O=4,1):0)||function(){var t=function(e,t,r,n){switch(r.kind){case 348:return Fe.tryCast(r.parent,Fe.isObjectTypeDeclaration);case 1:var i=Fe.tryCast(Fe.lastOrUndefined(Fe.cast(r.parent,Fe.isSourceFile).statements),Fe.isObjectTypeDeclaration);if(i&&!Fe.findChildOfKind(i,19,e))return i;break;case 79:if(Fe.isPropertyDeclaration(r.parent)&&r.parent.initializer===r)return;if(Te(r))return Fe.findAncestor(r,Fe.isObjectTypeDeclaration)}if(!t)return;if(134===r.kind||Fe.isIdentifier(t)&&Fe.isPropertyDeclaration(t.parent)&&Fe.isClassLike(r))return Fe.findAncestor(t,Fe.isClassLike);switch(t.kind){case 63:return;case 26:case 19:return Te(r)&&r.parent.name===r?r.parent.parent:Fe.tryCast(r,Fe.isObjectTypeDeclaration);case 18:case 27:return Fe.tryCast(t.parent,Fe.isObjectTypeDeclaration);default:if(!Te(t))return Fe.getLineAndCharacterOfPosition(e,t.getEnd()).line!==Fe.getLineAndCharacterOfPosition(e,n).line&&Fe.isObjectTypeDeclaration(r)?r:void 0;var a=Fe.isClassLike(t.parent.parent)?be:ve;return a(t.kind)||41===t.kind||Fe.isIdentifier(t)&&a(Fe.stringToToken(t.text))?t.parent.parent:void 0}}(g,x,I,d);if(!t)return 0;if(z=3,M=!0,O=41===x.kind?0:Fe.isClassLike(t)?2:3,!Fe.isClassLike(t))return 1;var e=(26===x.kind?x.parent:x).parent,r=Fe.isClassElement(e)?Fe.getEffectiveModifierFlags(e):0;if(79===x.kind&&!ue(x))switch(x.getText()){case"private":r|=8;break;case"static":r|=32;break;case"override":r|=16384}Fe.isClassStaticBlockDeclaration(e)&&(r|=32);8&r||(e=Fe.isClassLike(t)&&16384&r?Fe.singleElementArray(Fe.getEffectiveBaseTypeNode(t)):Fe.getAllSuperTypeNodes(t),e=Fe.flatMap(e,function(e){e=y.getTypeAtLocation(e);return 32&r?(null==e?void 0:e.symbol)&&y.getPropertiesOfType(y.getTypeOfSymbolAtLocation(e.symbol,t)):e&&y.getPropertiesOfType(e)}),V=Fe.concatenate(V,function(e,t,r){for(var n=new Fe.Set,i=0,a=t;i<a.length;i++){var o=a[i];167!==o.kind&&169!==o.kind&&172!==o.kind&&173!==o.kind||ue(o)||Fe.hasEffectiveModifier(o,8)||Fe.isStatic(o)!==!!(32&r)||(o=Fe.getPropertyNameForPropertyNameNode(o.name))&&n.add(o)}return e.filter(function(e){return!(n.has(e.escapedName)||!e.declarations||8&Fe.getDeclarationModifierFlagsFromSymbol(e)||e.valueDeclaration&&Fe.isPrivateIdentifierClassElementDeclaration(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 79:case 206:case 286:case 285:case 287:if(t&&(279===t.kind||280===t.kind)){if(31===e.kind){var r=Fe.findPrecedingToken(e.pos,g,void 0);if(!t.typeArguments||r&&43===r.kind)break}return t}if(285===t.kind)return t.parent.parent;break;case 10:if(t&&(285===t.kind||287===t.kind))return t.parent.parent;break;case 19:if(t&&288===t.kind&&t.parent&&285===t.parent.kind)return t.parent.parent.parent;if(t&&287===t.kind)return t.parent.parent}}return}(x),t=e&&y.getContextualType(e.attributes);if(!t)return 0;var r=e&&y.getContextualType(e.attributes,4);return V=Fe.concatenate(V,function(e,t){for(var r=new Fe.Set,n=new Fe.Set,i=0,a=t;i<a.length;i++){var o=a[i];ue(o)||(285===o.kind?r.add(o.name.escapedText):Fe.isJsxSpreadAttribute(o)&&se(o,n))}e=e.filter(function(e){return!r.has(e.escapedName)});return le(n,e),e}(De(t,r,e.attributes,y),e.attributes.properties)),ce(),M=!(z=3),1}()||(function(){O=function(e){if(e){var t,e=Fe.findAncestor(e.parent,function(e){return Fe.isClassLike(e)?"quit":!(!Fe.isFunctionLikeDeclaration(e)||t!==e.body)||(t=e,!1)});return e&&e}}(x)?5:1,z=1,M=ne(),b!==x&&Fe.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&&!Fe.positionBelongsToNode(n,t,r);)n=n.parent;return n}(x,e,g)||g;f=function(e){switch(e.kind){case 305:case 223:case 288:case 235:return!0;default:return Fe.isStatement(e)}}(t);var e=2887656|(G?0:111551),r=b&&!Fe.isValidTypeOnlyAliasUseSite(b);V=Fe.concatenate(V,y.getSymbolsInScope(t,e)),Fe.Debug.assertEachIsDefined(V,"getSymbolsInScope() should all be defined");for(var n=0;n<V.length;n++){var i,a=V[n];y.isArgumentsSymbol(a)||Fe.some(a.declarations,function(e){return e.getSourceFile()===g})||(W[Fe.getSymbolId(a)]=_e.SortText.GlobalsOrKeywords),!r||111551&a.flags||(i=a.declarations&&Fe.find(a.declarations,Fe.isTypeOnlyImportOrExportDeclaration))&&(i={kind:64,declaration:i},q[n]=i)}if(m.includeCompletionsWithInsertText&&305!==t.kind){t=y.tryGetThisTypeAt(t,!1);if(t&&!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}(t,g,y))for(var o=0,s=Se(t,y);o<s.length;o++){a=s[o];q[V.length]={kind:1},V.push(a),W[Fe.getSymbolId(a)]=_e.SortText.SuggestedClassMembers}}re(),G&&(O=x&&Fe.isAssertionExpression(x.parent)?6:7)}(),1))}function re(){var e,r,n,t,i,a;function c(e){var t=Fe.tryCast(e.moduleSymbol.valueDeclaration,Fe.isSourceFile);if(t)return Fe.isImportableFile(e.isFromPackageJson?i:_,g,t,m,a,Q(e.isFromPackageJson),n);t=Fe.stripQuotes(e.moduleSymbol.name);return(!Fe.JsTyping.nodeCoreModules.has(t)||Fe.startsWith(t,"node:")===Fe.shouldUseUriStyleNodeCoreModules(g,_))&&(!a||a.allowsImportingAmbientModule(e.moduleSymbol,Q(e.isFromPackageJson)))}(S||!K&&m.includeCompletionsForModuleExports&&(g.externalModuleIndicator||g.commonJsModuleIndicator||Fe.compilerOptionsIndicateEsModules(_.getCompilerOptions())||Fe.programContainsModules(_)))&&(Fe.Debug.assert(!(null!=l&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source||(L|=1,r=!(b===x&&S&&Ee(S,x))&&b&&Fe.isIdentifier(b)?b.text.toLowerCase():"",n=null===(e=p.getModuleSpecifierCache)||void 0===e?void 0:e.call(p),t=Fe.getExportInfoMap(g,p,_,o),i=null===(e=p.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(p),a=l?void 0:Fe.createPackageJsonImportFilter(g,m,p),de("collectAutoImports",p,_,g,d,m,!!S,Fe.isValidTypeOnlyAliasUseSite(I),function(s){t.search(g.path,A,function(e,t){if(!Fe.isIdentifierText(e,Fe.getEmitScriptTarget(p.getCompilationSettings())))return!1;if(!l&&Fe.isStringANonContextualKeyword(e))return!1;if(!(G||S||111551&t))return!1;if(G&&!(790504&t))return!1;t=e.charCodeAt(0);return(!A||!(t<65||90<t))&&(!!l||Ae(e,r))},function(e,t,r,n){var i,a,o;l&&!Fe.some(e,function(e){return l.source===Fe.stripQuotes(e.moduleSymbol.name)})||(!(i=Fe.find(e,c))||"failed"!==(e=s.tryResolve(e,t,r)||{})&&(r=i,"skipped"!==e&&(r=void 0===(o=e.exportInfo)?i:o,a=e.moduleSpecifier),e=(o=1===r.exportKind)&&Fe.getLocalSymbolForExportDefault(r.symbol)||r.symbol,e=e,o={kind:a?32:4,moduleSpecifier:a,symbolName:t,exportMapKey:n,exportName:2===r.exportKind?"export=":r.symbol.name,fileName:r.moduleFileName,isDefaultExport:o,moduleSymbol:r.moduleSymbol,isFromPackageJson:r.isFromPackageJson},r=Fe.getSymbolId(e),W[r]!==_e.SortText.GlobalsOrKeywords&&(q[V.length]=o,W[r]=S?_e.SortText.LocationPriority:_e.SortText.AutoImportSuggestions,V.push(e))))}),U=s.skippedAny(),L|=s.resolvedAny()?8:0,L|=s.resolvedBeyondLimit()?16:0})))}function ne(){if(x){var e=x.parent.kind,t=xe(x);switch(t){case 27:return 208===e||171===e||209===e||204===e||221===e||179===e||205===e;case 20:return 208===e||171===e||209===e||212===e||191===e;case 22:return 204===e||176===e||162===e;case 141:case 142:case 100:return!0;case 24:return 261===e;case 18:return 257===e||205===e;case 63:return 254===e||221===e;case 15:return 223===e;case 16:return 233===e;case 131:return 169===e||297===e;case 41:return 169===e}if(be(t))return!0}return!1}function ie(e){return e.parent&&Fe.isParameter(e.parent)&&Fe.isConstructorDeclaration(e.parent.parent)&&(Fe.isParameterPropertyModifier(e.kind)||Fe.isDeclarationName(e))}function ae(e,t){return 63!==e.kind&&(26===e.kind||!Fe.positionsAreOnSameLine(e.end,t,g))}function oe(e){return Fe.isFunctionLikeKind(e)&&171!==e}function se(e,t){var r=e.expression,e=y.getSymbolAtLocation(r),r=e&&y.getTypeOfSymbolAtLocation(e,r),r=r&&r.properties;r&&r.forEach(function(e){t.add(e.name)})}function ce(){V.forEach(function(e){16777216&e.flags&&(e=Fe.getSymbolId(e),W[e]=null!==(e=W[e])&&void 0!==e?e:_e.SortText.OptionalMember)})}function le(e,t){if(0!==e.size)for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.name)&&(W[Fe.getSymbolId(i)]=_e.SortText.MemberDeclaredBySpreadAssignment)}}function ue(e){return e.getStart(g)<=d&&d<=e.getEnd()}}function ye(e,t){var r=Fe.findPrecedingToken(e,t);return r&&e<=r.end&&(Fe.isMemberName(r)||Fe.isKeyword(r.kind))?{contextToken:Fe.findPrecedingToken(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function x(e,t,r,n){var i=t.isPackageJsonImport?n.getPackageJsonAutoImportProvider():r,n=i.getTypeChecker(),r=t.ambientModuleName?n.tryFindAmbientModule(t.ambientModuleName):t.fileName?n.getMergedSymbol(Fe.Debug.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(r){i="export="===t.exportName?n.resolveExternalModuleSymbol(r):n.tryGetMemberInModuleExportsAndProperties(t.exportName,r);if(i)return{symbol:i="default"===t.exportName&&Fe.getLocalSymbolForExportDefault(i)||i,origin:(n=e,i=r,r="default"===(e=t).exportName,t=!!e.isPackageJsonImport,y(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:n,fileName:e.fileName,moduleSymbol:i,isDefaultExport:r,isFromPackageJson:t}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:n,fileName:e.fileName,moduleSymbol:i,isDefaultExport:r,isFromPackageJson:t})}}}function he(e,t,r,n,i){var a,o=O(a=r)||M(a)?r.symbolName:e.name;if(!(void 0===o||1536&e.flags&&Fe.isSingleOrDoubleQuote(o.charCodeAt(0))||Fe.isKnownSymbol(e))){var s={name:o,needsConvertPropertyAccess:!1};if(Fe.isIdentifierText(o,t,i?1:0)||e.valueDeclaration&&Fe.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration))return s;switch(n){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:Fe.Debug.assertNever(n)}}}_e.moduleSpecifierResolutionLimit=100,_e.moduleSpecifierResolutionCacheAttemptLimit=1e3,_e.SortText={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:function(e){return"z"+e},ObjectLiteralProperty:function(e,t){return"".concat(e,"\0").concat(t,"\0")},SortBelow:function(e){return e+"1"}},(e=I=_e.CompletionSource||(_e.CompletionSource={})).ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",(e={})[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.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.TypeKeyword=8]="TypeKeyword",e[e.Last=8]="Last",(e={})[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail",_e.getCompletionsAtPosition=function(e,t,r,n,i,a,o,s,c,l){var u,_=ye(i,n).previousToken;if(!o||Fe.isInString(n,i,_)||function(e,t,r,n){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Fe.isStringLiteralOrTemplate(r)&&n===r.getStart(e)+1;case"#":return!!r&&Fe.isPrivateIdentifier(r)&&!!Fe.getContainingClass(r);case"<":return!!r&&29===r.kind&&(!Fe.isBinaryExpression(r.parent)||Ce(r.parent));case"/":return!!r&&(Fe.isStringLiteralLike(r)?!!Fe.tryGetImportFromModuleSpecifier(r):43===r.kind&&Fe.isJsxClosingElement(r.parent));case" ":return!!r&&Fe.isImportKeyword(r)&&305===r.parent.kind;default:return Fe.Debug.assertNever(t)}}(n,o,_,i)){if(" "===o)return a.includeCompletionsForImportStatements&&a.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var d=t.getCompilerOptions(),p=!a.allowIncompleteCompletions||null===(u=e.getIncompleteCompletionsCache)||void 0===u?void 0:u.call(e);if(p&&3===s&&_&&Fe.isIdentifier(_)){var f=function(e,a,t,o,s,r,n){var c=e.get();if(!c)return;var l=t.text.toLowerCase(),u=Fe.getExportInfoMap(a,s,o,n),t=de("continuePreviousIncompleteResponse",s,o,a,t.getStart(),r,!1,Fe.isValidTypeOnlyAliasUseSite(t),function(i){var e=Fe.mapDefined(c.entries,function(e){if(!e.hasAction||!e.source||!e.data||y(e.data))return e;if(Ae(e.name,l)){var t=Fe.Debug.checkDefined(x(e.name,e.data,o,s)).origin,r=u.get(a.path,e.data.exportMapKey),r=r&&i.tryResolve(r,e.name,!Fe.isExternalModuleNameRelative(Fe.stripQuotes(t.moduleSymbol.name)));if("skipped"===r)return e;if(r&&"failed"!==r){var n=__assign(__assign({},t),{kind:32,moduleSpecifier:r.moduleSpecifier});return e.data=K(n),e.source=V(n),e.sourceDisplay=[Fe.textPart(n.moduleSpecifier)],e}null!==(n=s.log)&&void 0!==n&&n.call(s,"Unexpected failure resolving auto import for '".concat(e.name,"' from '").concat(e.source,"'"))}});return i.skippedAny()||(c.isIncomplete=void 0),e});return c.entries=t,c.flags=4|(c.flags||0),c}(p,n,_,t,e,a,c);if(f)return f}else null!=p&&p.clear();f=_e.StringCompletions.getStringLiteralCompletions(n,i,_,d,e,t,r,a);if(f)return f;if(_&&Fe.isBreakOrContinueStatement(_.parent)&&(81===_.kind||86===_.kind||79===_.kind))return function(e){e=function(e){var t=[],r=new Fe.Map,n=e;for(;n&&!Fe.isFunctionLike(n);){var i;Fe.isLabeledStatement(n)&&(i=n.label.text,r.has(i)||(r.set(i,!0),t.push({name:i,kindModifiers:"",kind:"label",sortText:_e.SortText.LocationPriority}))),n=n.parent}return t}(e);if(e.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}(_.parent);var g=v(t,r,n,d,i,a,void 0,e,l,c);if(g)switch(g.kind){case 0:var m=function(e,t,r,n,i,a,o,s,c){var l=a.symbols,u=a.contextToken,_=a.completionKind,d=a.isInSnippetScope,p=a.isNewIdentifierLocation,f=a.location,g=a.propertyAccessToConvert,m=a.keywordFilters,y=a.literals,h=a.symbolToOriginInfoMap,v=a.recommendedCompletion,b=a.isJsxInitializer,x=a.isTypeOnlyLocation,D=a.isJsxIdentifierExpected,S=a.isRightOfOpenTag,T=a.importCompletionNode,C=a.insideJsDocTagTypeExpression,k=a.symbolToSortTextMap,E=a.hasUnresolvedAutoImports;if(1===Fe.getLanguageVariant(e.scriptKind)){var N=function(e,t){var r=Fe.findAncestor(e,function(e){switch(e.kind){case 281:return!0;case 43:case 31:case 79:case 206:return!1;default:return"quit"}});if(r){e=!!Fe.findChildOfKind(r,31,t),e=r.parent.openingElement.tagName.getText(t)+(e?"":">"),r=Fe.createTextSpanFromNode(r.tagName),e={name:e,kind:"class",kindModifiers:void 0,sortText:_e.SortText.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:r,entries:[e]}}return}(f,e);if(N)return N}var A=Fe.createSortedArray();if(fe(e,n)){N=q(l,A,void 0,u,f,e,t,r,Fe.getEmitScriptTarget(n),i,_,o,n,s,x,g,D,b,T,v,h,k,D,S);!function(e,r,n,i,a){Fe.getNameTable(e).forEach(function(e,t){e!==r&&(t=Fe.unescapeLeadingUnderscores(t),!n.has(t)&&Fe.isIdentifierText(t,i)&&(n.add(t),Fe.insertSorted(a,{name:t,kind:"warning",kindModifiers:"",sortText:_e.SortText.JavascriptIdentifiers,isFromUncheckedFile:!0},J)))})}(e,f.pos,N,Fe.getEmitScriptTarget(n),A)}else{if(!(p||l&&0!==l.length||0!==m))return;q(l,A,void 0,u,f,e,t,r,Fe.getEmitScriptTarget(n),i,_,o,n,s,x,g,D,b,T,v,h,k,D,S)}if(0!==m)for(var F=new Fe.Set(A.map(function(e){return e.name})),P=0,w=W(m,!C&&Fe.isSourceFileJS(e));P<w.length;P++){var I=w[P];(x&&Fe.isTypeKeyword(Fe.stringToToken(I.name))||!F.has(I.name))&&Fe.insertSorted(A,I,J,!0)}for(var O=new Fe.Set(A.map(function(e){return e.name})),M=0,L=function(e,t){var r=[];{var n,i,a;e&&(n=e.getSourceFile(),i=e.parent,a=n.getLineAndCharacterOfPosition(e.end).line,t=n.getLineAndCharacterOfPosition(t).line,(Fe.isImportDeclaration(i)||Fe.isExportDeclaration(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&a===t&&r.push({name:Fe.tokenToString(129),kind:"keyword",kindModifiers:"",sortText:_e.SortText.GlobalsOrKeywords}))}return r}(u,c);M<L.length;M++){I=L[M];O.has(I.name)||Fe.insertSorted(A,I,J,!0)}for(var R=0,B=y;R<B.length;R++){var j=B[R];Fe.insertSorted(A,function(e,t,r){return{name:z(e,t,r),kind:"string",kindModifiers:"",sortText:_e.SortText.LocationPriority}}(e,o,j),J,!0)}return{flags:a.flags,isGlobalCompletion:d,isIncomplete:!(!o.allowIncompleteCompletions||!E)||void 0,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(_),isNewIdentifierLocation:p,optionalReplacementSpan:function(e){return 79===(null==e?void 0:e.kind)?Fe.createTextSpanFromNode(e):void 0}(f),entries:A}}(n,e,t,d,r,g,a,l,i);return null!=m&&m.isIncomplete&&null!=p&&p.set(m),m;case 1:return h(Fe.JsDoc.getJSDocTagNameCompletions());case 2:return h(Fe.JsDoc.getJSDocTagCompletions());case 3:return h(Fe.JsDoc.getJSDocParameterNameCompletions(g.tag));case 4:return m=g.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:g.isNewIdentifierLocation,entries:m.slice()};default:return Fe.Debug.assertNever(g)}}},_e.getCompletionEntriesFromSymbols=q,_e.getCompletionEntryDetails=function(e,t,r,n,i,a,o,s,c){var l=e.getTypeChecker(),u=e.getCompilerOptions(),_=i.name,d=i.source,p=i.data,f=Fe.findPrecedingToken(n,r);if(Fe.isInString(r,n,f))return _e.StringCompletions.getStringLiteralCompletionDetails(_,r,n,f,l,u,a,c,s);var g=D(e,t,r,n,i,a,s);switch(g.type){case"request":var m=g.request;switch(m.kind){case 1:return Fe.JsDoc.getJSDocTagNameCompletionDetails(_);case 2:return Fe.JsDoc.getJSDocTagCompletionDetails(_);case 3:return Fe.JsDoc.getJSDocParameterNameCompletionDetails(_);case 4:return Fe.some(m.keywordCompletions,function(e){return e.name===_})?S(_,"keyword",Fe.SymbolDisplayPartKind.keyword):void 0;default:return Fe.Debug.assertNever(m)}case"symbol":var y=g.symbol,h=g.location,v=g.contextToken,b=g.origin,x=g.previousToken,x=function(e,t,r,n,i,a,o,s,c,l,u,_,d,p,f){if(null!=p&&p.moduleSpecifier&&u&&ke(r||u).replacementNode)return{codeActions:void 0,sourceDisplay:[Fe.textPart(p.moduleSpecifier)]};if(f===I.ClassMemberSnippet){t=j(o,a,s,d,e,i,t,r,_).importAdder;if(t)return{sourceDisplay:void 0,codeActions:[{changes:Fe.textChanges.ChangeTracker.with({host:o,formatContext:_,preferences:d},t.writeFixes),description:Fe.diagnosticToString([Fe.Diagnostics.Includes_imports_of_types_referenced_by_0,e])}]}}if(L(n)){var g=Fe.codefix.getPromoteTypeOnlyCompletionAction(c,n.declaration.name,a,o,_,d);return Fe.Debug.assertIsDefined(g,"Expected to have a code action for promoting type-only alias"),{codeActions:[g],sourceDisplay:void 0}}if(!n||!O(n)&&!M(n))return{codeActions:void 0,sourceDisplay:void 0};g=(n.isFromPackageJson?o.getPackageJsonAutoImportProvider():a).getTypeChecker(),n=n.moduleSymbol,g=g.getMergedSymbol(Fe.skipAlias(i.exportSymbol||i,g)),r=29===(null==r?void 0:r.kind)&&Fe.isJsxOpeningLikeElement(r.parent),l=Fe.codefix.getImportCompletionAction(g,n,c,Fe.getNameForExportedSymbol(i,Fe.getEmitScriptTarget(s),r),r,o,a,_,u&&Fe.isIdentifier(u)?u.getStart(c):l,d),d=l.moduleSpecifier,l=l.codeAction;return Fe.Debug.assert(!(null!=p&&p.moduleSpecifier)||d===p.moduleSpecifier),{sourceDisplay:[Fe.textPart(d)],codeActions:[l]}}(_,h,v,b,y,e,a,u,r,n,x,o,s,p,d);return T(y,l,r,h,c,x.codeActions,x.sourceDisplay);case"literal":x=g.literal;return S(z(r,s,x),"string","string"==typeof x?Fe.SymbolDisplayPartKind.stringLiteral:Fe.SymbolDisplayPartKind.numericLiteral);case"none":return C().some(function(e){return e.name===_})?S(_,"keyword",Fe.SymbolDisplayPartKind.keyword):void 0;default:Fe.Debug.assertNever(g)}},_e.createCompletionDetailsForSymbol=T,_e.createCompletionDetails=u,_e.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){return"symbol"===(o=D(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[e.Keywords=4]="Keywords",(e=_e.CompletionKind||(_e.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 n=[],C=Fe.memoize(function(){for(var e=[],t=81;t<=160;t++)e.push({name:Fe.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:_e.SortText.GlobalsOrKeywords});return e});function W(e,t){if(!t)return r(e);t=e+8+1;return n[t]||(n[t]=r(e).filter(function(e){return!function(e){switch(e){case 126:case 130:case 158:case 133:case 135:case 92:case 157:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 147:case 148:case 159:case 121:case 122:case 123:case 145:case 150:case 151:case 152:case 154:case 155:return!0;default:return!1}}(Fe.stringToToken(e.name))}))}function r(r){return n[r]||(n[r]=C().filter(function(e){var t=Fe.stringToToken(e.name);switch(r){case 0:return!1;case 1:return i(t)||135===t||141===t||152===t||142===t||126===t||Fe.isTypeKeyword(t)&&153!==t;case 5:return i(t);case 2:return be(t);case 3:return ve(t);case 4:return Fe.isParameterPropertyModifier(t);case 6:return Fe.isTypeKeyword(t)||85===t;case 7:return Fe.isTypeKeyword(t);case 8:return 152===t;default:return Fe.Debug.assertNever(r)}}))}function ve(e){return 145===e}function be(e){switch(e){case 126:case 134:case 136:case 149:case 131:case 135:case 159:return!0;default:return Fe.isClassMemberModifier(e)}}function i(e){return 131===e||132===e||127===e||!Fe.isContextualKeyword(e)&&!be(e)}function xe(e){return Fe.isIdentifier(e)?e.originalKeywordKind||0:e.kind}function De(e,t,r,n){var i,a,o=t&&t!==e,t=!o||3&t.flags?e:n.getUnionType([e,t]),n=(i=r,a=n,(n=t).isUnion()?a.getAllPossiblePropertiesOfTypes(Fe.filter(n.types,function(e){return!(131068&e.flags||a.isArrayLikeType(e)||a.isTypeInvalidDueToUnionDiscriminant(e,i)||Fe.typeHasCallOrConstructSignatures(e,a)||e.isClass()&&s(e.getApparentProperties()))})):n.getApparentProperties());return t.isClass()&&s(n)?[]:o?Fe.filter(n,function(e){return!Fe.length(e.declarations)||Fe.some(e.declarations,function(e){return e.parent!==r})}):n}function s(e){return Fe.some(e,function(e){return!!(24&Fe.getDeclarationModifierFlagsFromSymbol(e))})}function Se(e,t){return e.isUnion()?Fe.Debug.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):Fe.Debug.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Te(e){return e.parent&&Fe.isClassOrTypeElement(e.parent)&&Fe.isObjectTypeDeclaration(e.parent.parent)}function Ce(e){e=e.left;return Fe.nodeIsMissing(e)}function ke(t){var r,n=!1,e=function(){var e=t.parent;if(Fe.isImportEqualsDeclaration(e))return r=152===t.kind?void 0:152,o(e.moduleReference)?e:void 0;if(Ee(e,t)&&a(e.parent))return e;if(Fe.isNamedImports(e)||Fe.isNamespaceImport(e)){if(e.parent.isTypeOnly||18!==t.kind&&100!==t.kind&&27!==t.kind||(r=152),a(e)){if(19!==t.kind&&79!==t.kind)return e.parent.parent;n=!0,r=156}return}if(Fe.isImportKeyword(t)&&Fe.isSourceFile(e))return r=152,t;if(Fe.isImportKeyword(t)&&Fe.isImportDeclaration(e))return r=152,o(e.moduleSpecifier)?e:void 0;return}();return{isKeywordOnlyCompletion:n,keywordCompletion:r,isNewIdentifierLocation:!(!e&&152!==r),replacementNode:e&&Fe.rangeIsOnSingleLine(e,e.getSourceFile())?e:void 0}}function Ee(e,t){return Fe.isImportSpecifier(e)&&(e.isTypeOnly||t===e.name&&Fe.isTypeKeywordTokenOrIdentifier(t))}function a(e){return o(e.parent.parent.moduleSpecifier)&&(Fe.isNamespaceImport(e)||e.elements.length<2)&&!e.parent.name}function o(e){return!!Fe.nodeIsMissing(e)||!(null!==(e=Fe.tryCast(Fe.isExternalModuleReference(e)?e.expression:e,Fe.isStringLiteralLike))&&void 0!==e&&e.text)}function Ne(e,t,r){return void 0===r&&(r=new Fe.Map),n(e)||n(Fe.skipAlias(e.exportSymbol||e,t));function n(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&Fe.addToSeen(r,Fe.getSymbolId(e))&&t.getExportsOfModule(e).some(function(e){return Ne(e,t,r)})}}function Ae(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=t.charCodeAt(i);if((s===c||s===function(e){if(97<=e&&e<=122)return e-32;return e}(c))&&((n=n||(void 0===r||97<=r&&r<=122&&65<=s&&s<=90||95===r&&95!==s))&&i++,i===t.length))return!0;r=s}return!1}_e.getPropertiesForObjectExpression=De}(Fe.Completions||(Fe.Completions={}))}(ts=ts||{}),function(l){function u(e,t){return{fileName:t.fileName,textSpan:l.createTextSpanFromNode(e,t),kind:"none"}}function n(e){return l.isThrowStatement(e)?[e]:l.isTryStatement(e)?l.concatenate(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):l.isFunctionLike(e)?void 0:t(e,n)}function i(e){return l.isBreakOrContinueStatement(e)?[e]:l.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,l.toArray(e))}),r}function a(e,t){t=r(t);return t&&t===e}function r(n){return l.findAncestor(n,function(e){switch(e.kind){case 249:if(245===n.kind)return!1;case 242:case 243:case 244:case 241:case 240:return!n.label||(t=e,r=n.label.escapedText,!!l.findAncestor(t.parent,function(e){return l.isLabeledStatement(e)?e.label.escapedText===r:"quit"}));default:return l.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&&l.contains(r,t.kind)&&(e.push(t),1)}function s(t){var r=[];if(_(r,t.getFirstToken(),97,115,90)&&240===t.kind)for(var e=t.getChildren(),n=e.length-1;0<=n&&!_(r,e[n],115);n--);return l.forEach(i(t.statement),function(e){a(t,e)&&_(r,e.getFirstToken(),81,86)}),r}function c(e){var t=r(e);if(t)switch(t.kind){case 242:case 243:case 244:case 240:case 241:return s(t);case 249:return d(t)}}function d(t){var r=[];return _(r,t.getFirstToken(),107),l.forEach(t.caseBlock.clauses,function(e){_(r,e.getFirstToken(),82,88),l.forEach(i(e),function(e){a(t,e)&&_(r,e.getFirstToken(),81)})}),r}function p(e,t){var r=[];return _(r,e.getFirstToken(),111),e.catchClause&&_(r,e.catchClause.getFirstToken(),83),e.finallyBlock&&_(r,l.findChildOfKind(e,96,t),96),r}function f(e,t){e=function(e){for(var t=e;t.parent;){var r=t.parent;if(l.isFunctionBlock(r)||305===r.kind)return r;if(l.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(e);if(e){var r=[];return l.forEach(n(e),function(e){r.push(l.findChildOfKind(e,109,t))}),l.isFunctionBlock(e)&&l.forEachReturnStatement(e,function(e){r.push(l.findChildOfKind(e,105,t))}),r}}function g(e,t){e=l.getContainingFunction(e);if(e){var r=[];return l.forEachReturnStatement(l.cast(e.body,l.isBlock),function(e){r.push(l.findChildOfKind(e,105,t))}),l.forEach(n(e.body),function(e){r.push(l.findChildOfKind(e,109,t))}),r}}function m(e){e=l.getContainingFunction(e);if(e){var t=[];return e.modifiers&&e.modifiers.forEach(function(e){_(t,e,131)}),l.forEachChild(e,function(e){y(e,function(e){l.isAwaitExpression(e)&&_(t,e.getFirstToken(),132)})}),t}}function y(e,t){t(e),l.isFunctionLike(e)||l.isClassLike(e)||l.isInterfaceDeclaration(e)||l.isModuleDeclaration(e)||l.isTypeAliasDeclaration(e)||l.isTypeNode(e)||l.forEachChild(e,function(e){return y(e,t)})}(l.DocumentHighlights||(l.DocumentHighlights={})).getDocumentHighlights=function(e,t,r,n,i){var a=l.getTouchingPropertyName(r,n);if(a.parent&&(l.isJsxOpeningElement(a.parent)&&a.parent.tagName===a||l.isJsxClosingElement(a.parent))){var o=a.parent.parent,o=[o.openingElement,o.closingElement].map(function(e){return u(e.tagName,r)});return[{fileName:r.fileName,highlightSpans:o}]}return function(e,t,n,r,i){var a=new l.Set(i.map(function(e){return e.fileName})),r=l.FindAllReferences.getReferenceEntriesForNode(e,t,n,i,r,void 0,a);if(!r)return;var r=l.arrayToMultiMap(r.map(l.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span}),o=l.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return l.mapDefined(l.arrayFrom(r.entries()),function(e){var t=e[0],e=e[1];if(!a.has(t)){if(!n.redirectTargetsMap.has(l.toPath(t,n.getCurrentDirectory(),o)))return;var r=n.getSourceFile(t),t=l.find(i,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===r}).fileName;l.Debug.assert(a.has(t))}return{fileName:t,highlightSpans:e}})}(n,a,e,t,i)||function(e,t){e=function(e,n){switch(e.kind){case 99:case 91:return l.isIfStatement(e.parent)?function(e,t){for(var r=function(e,t){var r=[];for(;l.isIfStatement(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var n=e.getChildren(t);_(r,n[0],99);for(var i=n.length-1;0<=i&&!_(r,n[i],91);i--);if(!e.elseStatement||!l.isIfStatement(e.elseStatement))break;e=e.elseStatement}return r}(e,t),n=[],i=0;i<r.length;i++){if(91===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(!l.isWhiteSpaceSingleLine(t.text.charCodeAt(c))){s=!1;break}if(s){n.push({fileName:t.fileName,textSpan:l.createTextSpanFromBounds(a.getStart(),o.end),kind:"reference"}),i++;continue}}n.push(u(r[i],t))}return n}(e.parent,n):void 0;case 105:return i(e.parent,l.isReturnStatement,g);case 109:return i(e.parent,l.isThrowStatement,f);case 111:case 83:case 96:return i((83===e.kind?e.parent:e).parent,l.isTryStatement,p);case 107:return i(e.parent,l.isSwitchStatement,d);case 82:case 88:return l.isDefaultClause(e.parent)||l.isCaseClause(e.parent)?i(e.parent.parent.parent,l.isSwitchStatement,d):void 0;case 81:case 86:return i(e.parent,l.isBreakOrContinueStatement,c);case 97:case 115:case 90:return i(e.parent,function(e){return l.isIterationStatement(e,!0)},s);case 134:return t(l.isConstructorDeclaration,[134]);case 136:case 149:return t(l.isAccessor,[136,149]);case 132:return i(e.parent,l.isAwaitExpression,m);case 131:return a(m(e));case 125:return a(function(e){e=l.getContainingFunction(e);if(!e)return;var t=[];return l.forEachChild(e,function(e){y(e,function(e){l.isYieldExpression(e)&&_(t,e.getFirstToken(),125)})}),t}(e));case 101:return;default:return l.isModifierKind(e.kind)&&(l.isDeclaration(e.parent)||l.isVariableStatement(e.parent))?a(function(t,e){return l.mapDefined(function(e,t){var r=e.parent;switch(r.kind){case 262:case 305:case 235:case 289:case 290:return 128&t&&l.isClassDeclaration(e)?__spreadArray(__spreadArray([],e.members,!0),[e],!1):r.statements;case 171:case 169:case 256:return __spreadArray(__spreadArray([],r.parameters,!0),l.isClassLike(r.parent)?r.parent.members:[],!0);case 257:case 226:case 258:case 182:var n=r.members;if(92&t){var i=l.find(r.members,l.isConstructorDeclaration);if(i)return __spreadArray(__spreadArray([],n,!0),i.parameters,!0)}else if(128&t)return __spreadArray(__spreadArray([],n,!0),[r],!1);return n;case 205:return;default:l.Debug.assertNever(r,"Invalid container kind.")}}(e,l.modifierToFlag(t)),function(e){return l.findModifier(e,t)})}(e.kind,e.parent)):void 0}function t(t,r){return i(e.parent,t,function(e){return l.mapDefined(e.symbol.declarations,function(e){return t(e)?l.find(e.getChildren(n),function(e){return l.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 u(e,n)})}}(e,t);return e&&[{fileName:t.fileName,highlightSpans:e}]}(a,r)}}(ts=ts||{}),function(b){function x(e){return e.sourceFile}function r(e,a,m){void 0===a&&(a="");var y=new b.Map,o=b.createGetCanonicalFileName(!!e);function h(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,r,n,i,a,o){return l(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return l(e,t,h(r),n,i,a,!1,o)}function v(e,t){e=x(e)?e:e.get(b.Debug.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return b.Debug.assert(void 0===t||!e||e.sourceFile.scriptKind===t,"Script kind should match provided ScriptKind:".concat(t," and sourceFile.scriptKind: ").concat(null==e?void 0:e.sourceFile.scriptKind,", !entry: ").concat(!e)),e}function l(e,r,t,n,i,a,o,s){s=b.ensureScriptKind(e,s);var c=h(t),l=t===c?void 0:t,u={languageVersion:6===s?100:b.getEmitScriptTarget(c),impliedNodeFormat:l&&b.getImpliedNodeFormatForFile(r,null===(u=null===(t=null===(u=null===(t=l.getCompilerHost)||void 0===t?void 0:t.call(l))||void 0===u?void 0:u.getModuleResolutionCache)||void 0===t?void 0:t.call(u))||void 0===u?void 0:u.getPackageJsonInfoCache(),l,c),setExternalModuleIndicator:b.getSetExternalModuleIndicator(c)},l=y.size,_=b.getOrUpdate(y,n,function(){return new b.Map});b.tracing&&(y.size>l&&b.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:c.configFilePath,key:n}),(c=!b.isDeclarationFileName(r)&&b.forEachEntry(y,function(e,t){return t!==n&&e.has(r)&&t}))&&b.tracing.instant("session","documentRegistryBucketOverlap",{path:r,key1:c,key2:n}));var d,p=_.get(r),f=p&&v(p,s);return!f&&m&&(d=m.getDocument(n,r))&&(b.Debug.assert(o),f={sourceFile:d,languageServiceRefCount:0},g()),f?(f.sourceFile.version!==a&&(f.sourceFile=b.updateLanguageServiceSourceFile(f.sourceFile,i,a,i.getChangeRange(f.sourceFile.scriptSnapshot)),m&&m.setDocument(n,r,f.sourceFile)),o&&f.languageServiceRefCount++):(d=b.createLanguageServiceSourceFile(e,i,u,a,!1,s),m&&m.setDocument(n,r,d),f={sourceFile:d,languageServiceRefCount:1},g()),b.Debug.assert(0!==f.languageServiceRefCount),f.sourceFile;function g(){var e;p?x(p)?((e=new b.Map).set(p.sourceFile.scriptKind,p),e.set(s,f),_.set(r,e)):p.set(s,f):_.set(r,f)}}function n(e,t,r){var n=b.Debug.checkDefined(y.get(t)),i=n.get(e),t=v(i,r);t.languageServiceRefCount--,b.Debug.assert(0<=t.languageServiceRefCount),0===t.languageServiceRefCount&&(x(i)?n.delete(e):(i.delete(r),1===i.size&&n.set(e,b.firstDefinedIterator(i.values(),b.identity))))}return{acquireDocument:function(e,t,r,n,i){return s(e,b.toPath(e,a,o),t,u(h(t)),r,n,i)},acquireDocumentWithKey:s,updateDocument:function(e,t,r,n,i){return c(e,b.toPath(e,a,o),t,u(h(t)),r,n,i)},updateDocumentWithKey:c,releaseDocument:function(e,t,r){return n(b.toPath(e,a,o),u(t),r)},releaseDocumentWithKey:n,getLanguageServiceRefCounts:function(r,n){return b.arrayFrom(y.entries(),function(e){var t=e[0],e=e[1].get(r),e=e&&v(e,n);return[t,e&&e.languageServiceRefCount]})},reportStats:function(){var e=b.arrayFrom(y.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=y.get(e),n=[];return t.forEach(function(e,r){x(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})})}),n.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:u}}function u(t){return b.sourceFileAffectingCompilerOptions.map(function(e){return function e(t){var r;if(null===t||"object"!=typeof t)return""+t;if(b.isArray(t))return"[".concat(null===(r=b.map(t,e))||void 0===r?void 0:r.join(","),"]");var n,i="{";for(n in t)b.hasOwnProperty.call(t,n)&&(i+="".concat(n,": ").concat(e(t[n])));return i+"}"}(b.getCompilerOptionValue(t,e))}).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}b.createDocumentRegistry=function(e,t){return r(e,t)},b.createDocumentRegistryInternal=r}(ts=ts||{}),function(k){var e,t;function E(e,t){return k.forEach((305===e.kind?e:e.body).statements,function(e){return t(e)||F(e)&&k.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(k.importFromModuleSpecifier(i),i)}else E(e,function(e){switch(e.kind){case 272:case 266:(t=e).moduleSpecifier&&k.isStringLiteral(t.moduleSpecifier)&&r(t,t.moduleSpecifier);break;case 265:var t;P(t=e)&&r(t,t.moduleReference.expression)}})}function r(e,t,r){e=e.parent;if(e){e=r.getMergedSymbol(e);return k.isExternalModuleSymbol(e)?{exportingModuleSymbol:e,exportKind:t}:void 0}}function N(e,t){return t.getMergedSymbol(A(e).symbol)}function A(e){if(208===e.kind)return e.getSourceFile();e=e.parent;return 305===e.kind?e:(k.Debug.assert(262===e.kind),k.cast(e.parent,F))}function F(e){return 261===e.kind&&10===e.name.kind}function P(e){return 277===e.moduleReference.kind&&10===e.moduleReference.expression.kind}(e=k.FindAllReferences||(k.FindAllReferences={})).createImportTracker=function(x,D,S,T){var C=function(e,n,t){for(var i=new k.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=k.getSymbolId(r).toString(),(r=i.get(t))||i.set(t,r=[]),r.push(e))})}return i}(x,S,T);return function(e,t,r){var n,i,a,o,s,c,l,u,_,d,p,f,g,o=(n=x,i=D,a=C,s=S,c=T,l=(o=t).exportingModuleSymbol,u=o.exportKind,_=k.nodeSeenTracker(),d=k.nodeSeenTracker(),p=[],f=!!l.globalExports,g=f?void 0:[],function e(t){var t=b(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 208:if(k.isImportCall(i)){m(i);break}if(!f){var a=i.parent;if(2===u&&254===a.kind){var o=a.name;if(79===o.kind){p.push(o);break}}}break;case 79:break;case 265:h(i,i.name,k.hasSyntacticModifier(i,1),!1);break;case 266:p.push(i);var o=i.importClause&&i.importClause.namedBindings;o&&268===o.kind?h(i,o.name,!1,!0):!f&&k.isDefaultImport(i)&&v(A(i));break;case 272:i.exportClause?274===i.exportClause.kind?v(A(i),!0):p.push(i):e(N(i,s));break;case 200:i.isTypeOf&&!i.qualifier&&y(i)&&v(i.getSourceFile(),!0),p.push(i);break;default:k.Debug.failBadSyntaxKind(i,"Unexpected import kind.")}}}(l),{directImports:p,indirectUsers:function(){if(f)return n;if(l.declarations)for(var e=0,t=l.declarations;e<t.length;e++){var r=t[e];k.isExternalModuleAugmentation(r)&&i.has(r.getSourceFile().fileName)&&v(r)}return g.map(k.getSourceFileOfNode)}()});function m(e){v(k.findAncestor(e,F)||e.getSourceFile(),!!y(e,!0))}function y(e,t){return void 0===t&&(t=!1),k.findAncestor(e,function(e){return t&&F(e)?"quit":k.some(e.modifiers,function(e){return 93===e.kind})})}function h(e,t,r,n){var i,a;2===u?n||p.push(e):f||(e=A(e),k.Debug.assert(305===e.kind||261===e.kind),r||(r=e,t=t,a=(i=s).getSymbolAtLocation(t),!!E(r,function(e){if(k.isExportDeclaration(e)){var t=e.exportClause;return!e.moduleSpecifier&&t&&k.isNamedExports(t)&&t.elements.some(function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a})}}))?v(e,!0):v(e))}function v(e,t){void 0===t&&(t=!1),k.Debug.assert(!f);var r=d(e);if(r&&(g.push(e),t)){e=s.getMergedSymbol(e.symbol);if(e){k.Debug.assert(!!(1536&e.flags));e=b(e);if(e)for(var n=0,i=e;n<i.length;n++){var a=i[n];k.isImportTypeNode(a)||v(A(a),!0)}}}}function b(e){return a.get(k.getSymbolId(e).toString())}return __assign({indirectUsers:o.indirectUsers},function(e,o,n,s,c){var r=[],l=[];function u(e,t){r.push([e,t])}if(e)for(var t=0,i=e;t<i.length;t++)!function(e){if(265===e.kind)return P(e)&&a(e.name);if(79===e.kind)return a(e),0;if(200===e.kind)return e.qualifier?(t=k.getFirstIdentifier(e.qualifier)).escapedText===k.symbolName(o)&&l.push(t):2===n&&l.push(e.argument.literal);if(10===e.moduleSpecifier.kind){if(272===e.kind)return e.exportClause&&k.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 268:a(r.name);break;case 269:0!==n&&1!==n||_(r);break;default:k.Debug.assertNever(r)}!e||1!==n&&2!==n||c&&e.escapedText!==k.symbolEscapedNameNoDefault(o)||(t=s.getSymbolAtLocation(e),u(e,t))}}(i[t]);return{importSearches:r,singleReferences:l};function a(e){2!==n||c&&!d(e.escapedText)||u(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?(l.push(a),c&&i.escapedText!==o.escapedName||u(i,s.getSymbolAtLocation(i))):u(i,275===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,S,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(305===(null==c?void 0:c.kind)){for(var l=0,u=s.referencedFiles;l<u.length;l++){var _=u[l];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,_.resolutionMode||s.impliedNodeFormat);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,l,u){return u?e():e()||function(){if(!function(e){var t=e.parent;switch(t.kind){case 265:return t.name===e&&P(t);case 270:return!t.propertyName;case 267:case 268:return k.Debug.assert(t.name===e),1;case 203:return k.isInJSFile(e)&&k.isVariableDeclarationInitializedToBareOrAccessedRequire(t);default:return}}(s))return;var e=l.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(k.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(i);if(k.isPropertyAccessExpression(i)&&k.isModuleExportsAccessExpression(i.expression)&&!k.isPrivateIdentifier(i.name))return t.getSymbolAtLocation(i);if(k.isShorthandPropertyAssignment(i)&&k.isBinaryExpression(i.parent.parent)&&2===k.getAssignmentDeclarationKind(i.parent.parent))return t.getExportSpecifierLocalTargetSymbol(i.name)}return e}(e,l)).escapedName&&(e=function(e,t){if(2097152&e.flags)return k.Debug.checkDefined(t.getImmediateAliasedSymbol(e));e=k.Debug.checkDefined(e.valueDeclaration);{if(k.isExportAssignment(e))return k.Debug.checkDefined(e.expression.symbol);if(k.isBinaryExpression(e))return k.Debug.checkDefined(e.right.symbol);if(k.isSourceFile(e))return k.Debug.checkDefined(e.symbol)}return k.Debug.fail()}(e,l));var t=k.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 206===t.kind?null!==(i=c.declarations)&&void 0!==i&&i.some(function(e){return e===t})&&k.isBinaryExpression(e)?o(e,!1):void 0:_(c.exportSymbol,d(t));var r,n,i,r=(r=t,n=s,(i=k.isVariableDeclaration(r)?r:k.isBindingElement(r)?k.walkUpBindingElementsAndPatterns(r):void 0)?r.name===n&&!k.isCatchClause(i.parent)&&k.isVariableStatement(i.parent.parent)?i.parent.parent:void 0:r);return r&&k.hasSyntacticModifier(r,1)?k.isImportEqualsDeclaration(r)&&r.moduleReference===s?u?void 0:{kind:0,symbol:l.getSymbolAtLocation(r.name)}:_(c,d(r)):k.isNamespaceExport(t)?_(c,0):k.isExportAssignment(t)?a(t):k.isExportAssignment(e)?a(e):k.isBinaryExpression(t)?o(t,!0):k.isBinaryExpression(e)?o(e,!0):k.isJSDocTypedefTag(t)?_(c,0):void 0;function a(e){if(e.symbol.parent){var t=e.isExportEquals?2:1;return{kind:1,symbol:c,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}}function o(e,t){var r;switch(k.getAssignmentDeclarationKind(e)){case 1:r=0;break;case 2:r=2;break;default:return}e=t?l.getSymbolAtLocation(k.getNameOfAccessExpression(k.cast(e.left,k.isAccessExpression))):c;return e&&_(e,r)}}function _(e,t){t=r(e,t,l);return t&&{kind:1,symbol:e,exportInfo:t}}function d(e){return k.hasSyntacticModifier(e,512)?1:0}},e.getExportInfo=r}(ts=ts||{}),function(B){var j,e,s;function J(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:function(e){if(B.isDeclaration(e))return _(e);if(!e.parent)return;if(!B.isDeclaration(e.parent)&&!B.isExportAssignment(e.parent)){if(B.isInJSFile(e)){var t=B.isBinaryExpression(e.parent)?e.parent:B.isAccessExpression(e.parent)&&B.isBinaryExpression(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==B.getAssignmentDeclarationKind(t))return _(t)}if(B.isJsxOpeningElement(e.parent)||B.isJsxClosingElement(e.parent))return e.parent.parent;if(B.isJsxSelfClosingElement(e.parent)||B.isLabeledStatement(e.parent)||B.isBreakOrContinueStatement(e.parent))return e.parent;if(B.isStringLiteralLike(e)){t=B.tryGetImportFromModuleSpecifier(e);if(t){var r=B.findAncestor(t,function(e){return B.isDeclaration(e)||B.isStatement(e)||B.isJSDocTag(e)});return B.isDeclaration(r)?_(r):r}}r=B.findAncestor(e,B.isComputedPropertyName);return r?_(r.parent):void 0}if(e.parent.name===e||B.isConstructorDeclaration(e.parent)||B.isExportAssignment(e.parent)||(B.isImportOrExportSpecifier(e.parent)||B.isBindingElement(e.parent))&&e.parent.propertyName===e||88===e.kind&&B.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 254:return B.isVariableDeclarationList(e.parent)&&1===e.parent.declarations.length?B.isVariableStatement(e.parent.parent)?e.parent.parent:B.isForInOrOfStatement(e.parent.parent)?_(e.parent.parent):e.parent:e;case 203:return _(e.parent.parent);case 270:return e.parent.parent.parent;case 275:case 268:return e.parent.parent;case 267:case 274:return e.parent;case 221:return B.isExpressionStatement(e.parent)?e.parent:e;case 244:case 243:return{start:e.initializer,end:e.expression};case 296:case 297:return B.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)?_(B.findAncestor(e.parent,function(e){return B.isBinaryExpression(e)||B.isForInOrOfStatement(e)})):e;default:return e}}function d(e,t,r){if(r){t=n(r)?i(r.start,t,r.end):i(r,t);return t.start!==e.start||t.length!==e.length?{contextSpan:t}:void 0}}function u(e,t,r,n,i){if(305!==n.kind){var a=e.getTypeChecker();if(297===n.parent.kind){var o=[];return s.getReferenceEntriesForShorthandPropertyAssignment(n,a,function(e){return o.push(J(e))}),o}if(106===n.kind||B.isSuperProperty(n.parent)){a=a.getSymbolAtLocation(n);return a.valueDeclaration&&[J(a.valueDeclaration)]}return c(i,n,e,r,t,{implementations:!0,use:1})}}function c(e,t,r,n,i,a,o){return void 0===a&&(a={}),void 0===o&&(o=new B.Set(n.map(function(e){return e.fileName}))),l(s.getReferencedSymbolsForNode(e,t,r,n,i,a,o))}function l(e){return e&&B.flatMap(e,function(e){return e.references})}function p(e){var t=e.getSourceFile();return{sourceFile:t,textSpan:i(B.isComputedPropertyName(e)?e.expression:e,t)}}function f(e,t,r){var n=s.getIntersectingMeaningFromDeclarations(r,e),r=e.declarations&&B.firstOrUndefined(e.declarations)||r,n=B.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r.getSourceFile(),r,r,n);return{displayParts:n.displayParts,kind:n.symbolKind}}function g(e){var t=m(e);if(0===e.kind)return __assign(__assign({},t),{isWriteAccess:!1});var r=e.kind,e=e.node;return __assign(__assign({},t),{isWriteAccess:a(e),isInString:2===r||void 0})}function m(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=i(e.node,t);return __assign({textSpan:r,fileName:t.fileName},d(r,t,e.context))}function i(e,t,r){var n=e.getStart(t),t=(r||e).getEnd();return B.isStringLiteralLike(e)&&2<t-n&&(B.Debug.assert(void 0===r),n+=1,--t),B.createTextSpanFromBounds(n,t)}function z(e){return 0===e.kind?e.textSpan:i(e.node,e.node.getSourceFile())}function a(e){var t=B.getDeclarationFromName(e);return!!t&&function(e){if(16777216&e.flags)return!0;switch(e.kind){case 221:case 203:case 257:case 226:case 88:case 260:case 299:case 275:case 267:case 265:case 270:case 258:case 338:case 345:case 285:case 261:case 264:case 268:case 274:case 164:case 297:case 259:case 163:return!0;case 296:return!B.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent);case 256:case 213:case 171:case 169:case 172:case 173:return!!e.body;case 254:case 167:return!!e.initializer||B.isCatchClause(e.parent);case 168:case 166:case 347:case 340:return!1;default:return B.Debug.failBadSyntaxKind(e)}}(t)||88===e.kind||B.isWriteAccess(e)}j=B.FindAllReferences||(B.FindAllReferences={}),(e=j.DefinitionKind||(j.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[e.TripleSlashReference=5]="TripleSlashReference",(e=j.EntryKind||(j.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",j.nodeEntry=J,j.isContextWithStartAndEndNode=n,j.getContextNode=_,j.toContextSpan=d,(e=j.FindReferencesUse||(j.FindReferencesUse={}))[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",j.findReferencedSymbols=function(e,t,r,n,i){var u=B.getTouchingPropertyName(n,i),n={use:1},r=s.getReferencedSymbolsForNode(i,u,e,r,t,n),a=e.getTypeChecker(),e=s.getAdjustedNode(u,n),o=88===(n=e).kind||!!B.getDeclarationFromName(n)||B.isLiteralComputedPropertyDeclarationName(n)||134===n.kind&&B.isConstructorDeclaration(n.parent)?a.getSymbolAtLocation(e):void 0;return r&&r.length?B.mapDefined(r,function(e){var l=e.definition,e=e.references;return l&&{definition:a.runWithCancellationToken(t,function(e){return o=l,s=e,c=u,t=function(){switch(o.type){case 0:var e=f(a=o.symbol,s,c),t=e.displayParts,r=e.kind,n=t.map(function(e){return e.text}).join(""),i=a.declarations&&B.firstOrUndefined(a.declarations),e=i?B.getNameOfDeclaration(i)||i:c;return __assign(__assign({},p(e)),{name:n,kind:r,displayParts:t,context:_(i)});case 1:e=o.node;return __assign(__assign({},p(e)),{name:e.text,kind:"label",displayParts:[B.displayPart(e.text,B.SymbolDisplayPartKind.text)]});case 2:e=o.node,i=B.tokenToString(e.kind);return __assign(__assign({},p(e)),{name:i,kind:"keyword",displayParts:[{text:i,kind:"keyword"}]});case 3:var e=o.node,a=(a=s.getSymbolAtLocation(e))&&B.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(s,a,e.getSourceFile(),B.getContainerNode(e),e).displayParts||[B.textPart("this")];return __assign(__assign({},p(e)),{name:"this",kind:"var",displayParts:a});case 4:e=o.node;return __assign(__assign({},p(e)),{name:e.text,kind:"var",displayParts:[B.displayPart(B.getTextOfNode(e),B.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:B.createTextSpanFromRange(o.reference),sourceFile:o.file,name:o.reference.fileName,kind:"string",displayParts:[B.displayPart('"'.concat(o.reference.fileName,'"'),B.SymbolDisplayPartKind.stringLiteral)]};default:return B.Debug.assertNever(o)}}(),r=t.sourceFile,n=t.textSpan,i=t.name,a=t.kind,e=t.displayParts,t=t.context,__assign({containerKind:"",containerName:"",fileName:r.fileName,kind:a,name:i,textSpan:n,displayParts:e},d(n,r,t));var o,s,c,t,r,n,i,a}),references:e.map(function(e){return r=o,e=g(t=e),r?__assign(__assign({},e),{isDefinition:0!==t.kind&&function(e,t){var r;if(!t)return!1;var n=B.getDeclarationFromName(e)||(88===e.kind?e.parent:B.isLiteralComputedPropertyDeclarationName(e)||134===e.kind&&B.isConstructorDeclaration(e.parent)?e.parent.parent:void 0),i=n&&B.isBinaryExpression(n)?n.left:void 0;return!(!n||null===(r=t.declarations)||void 0===r||!r.some(function(e){return e===n||e===i}))}(t.node,r)}):e;var t,r})}}):void 0},j.getImplementationsAtPosition=function(e,t,r,n,i){var a,n=B.getTouchingPropertyName(n,i),i=u(e,t,r,n,i);if(206===n.parent.kind||203===n.parent.kind||207===n.parent.kind||106===n.kind)a=i&&__spreadArray([],i,!0);else for(var o=i&&__spreadArray([],i,!0),s=new B.Map;o&&o.length;){var c=o.shift();B.addToSeen(s,B.getNodeId(c.node))&&(a=B.append(a,c),(c=u(e,t,r,c.node,c.node.pos))&&o.push.apply(o,c))}var l=e.getTypeChecker();return B.map(a,function(e){return function(e,t){var r=m(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(B.isDeclaration(e)&&e.name?e.name:e);return r?f(r,t,e):205===e.kind?{kind:"interface",displayParts:[B.punctuationPart(20),B.textPart("object literal"),B.punctuationPart(21)]}:226===e.kind?{kind:"local class",displayParts:[B.punctuationPart(20),B.textPart("anonymous local class"),B.punctuationPart(21)]}:{kind:B.getNodeKind(e),displayParts:[]}}(e,t))}}(e,l)})},j.findReferenceOrRenameEntries=function(t,e,r,n,i,a,o){return B.map(l(s.getReferencedSymbolsForNode(i,n,t,r,e,a)),function(e){return o(e,n,t.getTypeChecker())})},j.getReferenceEntriesForNode=c,j.toRenameLocation=function(e,t,r,n){return __assign(__assign({},m(e)),n&&function(e,t,r){if(0!==e.kind&&B.isIdentifier(t)){var n=e.node,i=e.kind,a=n.parent,o=t.text,s=B.isShorthandPropertyAssignment(a);if(s||B.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 B.isObjectLiteralExpression(s)&&B.isBinaryExpression(s.parent)&&B.isModuleExportsAccessExpression(s.parent.left)?c:n}return c}if(B.isImportSpecifier(a)&&!a.propertyName){c=B.isExportSpecifier(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return B.contains(c.declarations,a)?{prefixText:o+" as "}:B.emptyOptions}if(B.isExportSpecifier(a)&&!a.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:o+" as "}:{suffixText:" as "+o}}return B.emptyOptions}(e,t,r))},j.toReferenceEntry=g,j.toHighlightSpan=function(e){var t=m(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=a(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}},j.getTextSpanOfEntry=z,function(e){function g(e,t){return 1===t.use?e=B.getAdjustedReferenceLocation(e):2===t.use&&(e=B.getAdjustedRenameLocation(e)),e}function m(e,t,r){for(var n,i=0,a=t.get(e.path)||B.emptyArray;i<a.length;i++){var o,s=a[i];B.isReferencedFile(s)&&(o=r.getSourceFileByPath(s.file),s=B.getReferencedFileLocation(r.getSourceFileByPath,s),B.isReferenceFileLocation(s)&&(n=B.append(n,{kind:0,fileName:o.fileName,textSpan:B.createTextSpanFromRange(s)})))}return n}function y(e,t,r){if(e.parent&&B.isNamespaceExportDeclaration(e.parent)){t=r.getAliasedSymbol(t),r=r.getMergedSymbol(t);if(t!==r)return r}}function h(e,t,r,n,i,a){var o=1536&e.flags&&e.declarations&&B.find(e.declarations,B.isSourceFile);if(o){var s=e.exports.get("export="),c=b(t,e,!!s,r,a);if(!s||!a.has(o.fileName))return c;o=t.getTypeChecker();return v(t,c,D(e=B.skipAlias(s,o),void 0,r,a,o,n,i))}}function v(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=B.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=l(i,e),n=l(i,t);if(r!==n)return B.compareValues(r,n);e=z(e),t=z(t);return e.start!==t.start?B.compareValues(e.start,t.start):B.compareValues(e.length,t.length)})}}(c[s]);else a=o}return a}function l(e,t){t=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function b(e,t,r,n,i){B.Debug.assert(!!t.valueDeclaration);var a=B.mapDefined(j.findModuleReferences(e,n,t),function(e){if("import"!==e.kind)return{kind:0,fileName:e.referencingFile.fileName,textSpan:B.createTextSpanFromRange(e.ref)};var t=e.literal.parent;if(B.isLiteralTypeNode(t)){t=B.cast(t.parent,B.isImportTypeNode);if(r&&!t.qualifier)return}return J(e.literal)});if(t.declarations)for(var o=0,s=t.declarations;o<s.length;o++)switch((u=s[o]).kind){case 305:break;case 261:i.has(u.getSourceFile().fileName)&&a.push(J(u.name));break;default:B.Debug.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}n=t.exports.get("export=");if(null!=n&&n.declarations)for(var c=0,l=n.declarations;c<l.length;c++){var u,_=(u=l[c]).getSourceFile();i.has(_.fileName)&&(_=B.isBinaryExpression(u)&&B.isPropertyAccessExpression(u.left)?u.left.expression:B.isExportAssignment(u)?B.Debug.checkDefined(B.findChildOfKind(u,93,_)):B.getNameOfDeclaration(u)||u,a.push(J(_)))}return a.length?[{definition:{type:0,symbol:t},references:a}]:B.emptyArray}function x(e){return 145===e.kind&&B.isTypeOperatorNode(e.parent)&&145===e.parent.operator}function D(e,t,r,n,i,a,o){var s,c,l,u,_=t&&function(t,r,n,e){var i=r.parent;if(B.isExportSpecifier(i)&&e)return P(r,t,i,n);return B.firstDefined(t.declarations,function(e){if(!e.parent){if(33554432&t.flags)return;B.Debug.fail("Unexpected symbol at ".concat(B.Debug.formatSyntaxKind(r.kind),": ").concat(B.Debug.formatSymbol(t)))}return B.isTypeLiteralNode(e.parent)&&B.isUnionTypeNode(e.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(e.parent.parent),t.name):void 0})}(e,t,i,!R(o))||e,d=t?L(t,_):7,p=[],a=new S(r,n,t?function(e){switch(e.kind){case 171:case 134:return 1;case 79:if(B.isClassLike(e.parent))return B.Debug.assert(e.parent.name===e),2;default:return 0}}(t):0,i,a,d,o,p),d=R(o)&&_.declarations?B.find(_.declarations,B.isExportSpecifier):void 0;return d?F(d.name,_,d,a.createSearch(t,e,void 0),a,!0,!0):t&&88===t.kind&&"default"===_.escapedName&&_.parent?(w(t,_,a),T(t,_,{exportingModuleSymbol:_.parent,exportKind:1},a)):(c=a.createSearch(t,_,void 0,{allSearchSymbols:t?(s=_,e=t,t=i,i=2===o.use,c=!!o.providePrefixAndSuffixTextForRename,l=!!o.implementations,u=[],O(s,e,t,i,!(i&&c),function(e,t,r){r&&M(s)!==M(r)&&(r=void 0),u.push(r||t||e)},function(){return!l}),u):[_]}),f(_,a,c)),p}function f(e,t,r){e=function(e){var t=e.declarations,r=e.flags,n=e.parent,i=e.valueDeclaration;if(i&&(213===i.kind||226===i.kind))return i;if(!t)return;if(8196&r){r=B.find(t,function(e){return B.hasEffectiveModifier(e,8)||B.isPrivateIdentifierClassElementDeclaration(e)});return r?B.getAncestor(r,257):void 0}if(t.some(B.isObjectBindingElementWithoutPropertyName))return;var a,e=n&&!(262144&e.flags);if(e&&(!B.isExternalModuleSymbol(n)||n.globalExports))return;for(var o=0,s=t;o<s.length;o++){var c=s[o],c=B.getContainerNode(c);if(a&&a!==c)return;if(!c||305===c.kind&&!B.isExternalOrCommonJsModule(c))return;if(a=c,B.isFunctionExpression(a))for(var l=void 0;l=B.getNextJSDocCommentLocation(a);)a=l}return e?a.getSourceFile():a}(e);if(e)o(e,e.getSourceFile(),r,t,!(B.isSourceFile(e)&&!B.contains(t.sourceFiles,e)));else for(var n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];t.cancellationToken.throwIfCancellationRequested(),C(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 B.Set(n.map(function(e){return e.fileName}))),t=g(t,a),B.isSourceFile(t)){var s=B.GoToDefinition.getReferenceAtPosition(t,e,r);if(null==s||!s.file)return;e=r.getTypeChecker().getMergedSymbol(s.file.symbol);return e?b(r,e,!1,n,o):(p=r.getFileIncludeReasons())?[{definition:{type:5,reference:s.reference,file:t},references:m(s.file,p,r)||B.emptyArray}]:void 0}if(!a.implementations){var c=function(e,t,r){if(B.isTypeKeyword(e.kind))return(114!==e.kind||!B.isVoidExpression(e.parent))&&(145!==e.kind||x(e))?function(e,t,r,n){e=B.flatMap(e,function(e){return r.throwIfCancellationRequested(),B.mapDefined(k(e,B.tokenToString(t),e),function(e){if(e.kind===t&&(!n||n(e)))return J(e)})});return e.length?[{definition:{type:2,node:e[0].node},references:e}]:void 0}(t,e.kind,r,145===e.kind?x:void 0):void 0;if(B.isImportMeta(e.parent)&&e.parent.name===e)return function(e,t){e=B.flatMap(e,function(e){return t.throwIfCancellationRequested(),B.mapDefined(k(e,"meta",e),function(e){e=e.parent;if(B.isImportMeta(e))return J(e)})});return e.length?[{definition:{type:2,node:e[0].node},references:e}]:void 0}(t,r);if(B.isStaticModifier(e)&&B.isClassStaticBlockDeclaration(e.parent))return[{definition:{type:2,node:e},references:[J(e)]}];{if(B.isJumpStatementTarget(e)){var n=B.getTargetLabel(e.parent,e.text);return n&&E(n.parent,n)}if(B.isLabelOfLabeledStatement(e))return E(e.parent,e)}if(B.isThis(e))return function(e,t,r){var n=B.getThisContainer(e,!1),i=32;switch(n.kind){case 169:case 168:if(B.isObjectLiteralMethod(n)){i&=B.getSyntacticModifierFlags(n),n=n.parent;break}case 167:case 166:case 171:case 172:case 173:i&=B.getSyntacticModifierFlags(n),n=n.parent;break;case 305:if(B.isExternalModule(n)||I(e))return;case 256:case 213:break;default:return}t=B.flatMap(305===n.kind?t:[n.getSourceFile()],function(e){return r.throwIfCancellationRequested(),k(e,"this",B.isSourceFile(n)?e:n).filter(function(e){if(!B.isThis(e))return!1;var t=B.getThisContainer(e,!1);switch(n.kind){case 213:case 256:return n.symbol===t.symbol;case 169:case 168:return B.isObjectLiteralMethod(n)&&n.symbol===t.symbol;case 226:case 257:case 205:return t.parent&&n.symbol===t.parent.symbol&&B.isStatic(t)===!!i;case 305:return 305===t.kind&&!B.isExternalModule(t)&&!I(e)}})}).map(function(e){return J(e)});return[{definition:{type:3,node:B.firstDefined(t,function(e){return B.isParameter(e.node.parent)?e.node:void 0})||e},references:t}]}(e,t,r);return 106!==e.kind?void 0:function(e){var r=B.getSuperContainer(e,!1);if(!r)return;var n=32;switch(r.kind){case 167:case 166:case 169:case 168:case 171:case 172:case 173:n&=B.getSyntacticModifierFlags(r),r=r.parent;break;default:return}e=r.getSourceFile(),e=B.mapDefined(k(e,"super",r),function(e){if(106===e.kind){var t=B.getSuperContainer(e,!1);return t&&B.isStatic(t)===!!n&&t.parent.symbol===r.symbol?J(e):void 0}});return[{definition:{type:0,symbol:r.symbol},references:e}]}(e)}(t,n,i);if(c)return c}var l,u,_,d,s=r.getTypeChecker();if(c=s.getSymbolAtLocation(B.isConstructorDeclaration(t)&&t.parent.name||t))return"export="===c.escapedName?b(r,c.parent,!1,n,o):!(p=h(c,r,n,i,a,o))||33554432&c.flags?(f=(f=y(t,c,s))&&h(f,r,n,i,a,o),v(r,p,D(c,t,n,o,s,i,a),f)):p;if(a.implementations||!B.isStringLiteralLike(t))return;if(B.isModuleSpecifierLike(t)){var p=r.getFileIncludeReasons(),f=null===(f=null===(f=t.getSourceFile().resolvedModules)||void 0===f?void 0:f.get(t.text,B.getModeForUsageLocation(t.getSourceFile(),t)))||void 0===f?void 0:f.resolvedFileName,f=f?r.getSourceFile(f):void 0;if(f)return[{definition:{type:4,node:t},references:m(f,p,r)||B.emptyArray}]}return l=t,f=n,u=s,_=i,d=B.getContextualTypeFromParentOrAncestorTypeNode(l,u),f=B.flatMap(f,function(r){return _.throwIfCancellationRequested(),B.mapDefined(k(r,l.text),function(e){if(B.isStringLiteralLike(e)&&e.text===l.text){if(!d)return B.isNoSubstitutionTemplateLiteral(e)&&!B.rangeIsOnSingleLine(e,r)?void 0:J(e,2);var t=B.getContextualTypeFromParentOrAncestorTypeNode(e,u);return d!==u.getStringType()&&d===t?J(e,2):void 0}})}),[{definition:{type:4,node:l},references:f}]},e.getAdjustedNode=g,e.getReferencesForFileName=function(e,t,r,n){void 0===n&&(n=new B.Set(r.map(function(e){return e.fileName})));var i=null===(i=t.getSourceFile(e))||void 0===i?void 0:i.symbol;if(i)return(null===(a=b(t,i,!1,r,n)[0])||void 0===a?void 0:a.references)||B.emptyArray;var a=t.getFileIncludeReasons();return(e=t.getSourceFile(e))&&a&&m(e,a,t)||B.emptyArray},(t={})[t.None=0]="None",t[t.Constructor=1]="Constructor",t[t.Class=2]="Class";var S=(r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=j.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?B.stripQuotes(B.symbolName(B.getLocalSymbolForExportDefault(t)||function(e){if(33555968&e.flags){e=e.declarations&&B.find(e.declarations,function(e){return!B.isSourceFile(e)&&!B.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:B.escapeLeadingUnderscores(i),parents:this.options.implementations&&e?function(e,t,r){e=B.isRightSideOfPropertyAccess(e)?e.parent:void 0,e=e&&r.getTypeAtLocation(e.expression),e=B.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 B.contains(a,e)}}},r.prototype.referenceAdder=function(e){var t=B.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(J(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=B.getNodeId(e),r=this.sourceFileToSeenSymbols[e]||(this.sourceFileToSeenSymbols[e]=new B.Set),n=!1,i=0,a=t;i<a.length;i++)var o=a[i],n=B.tryAddToSet(r,B.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 B.Map,this.markSeenContainingTypeReference=B.nodeSeenTracker(),this.markSeenReExportRHS=B.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}function T(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 l=n.referenceAdder(t),u=0,_=c;u<_.length;u++){var d=_[u];!A(i=d,a=n)||2===a.options.use&&(!B.isIdentifier(i)||B.isImportOrExportSpecifier(i.parent)&&"default"===i.escapedText)||l(d)}for(var p=0,f=s;p<f.length;p++){var g=f[p],m=g[0],g=g[1];N(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++)C(v[h],y,n)}}function d(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();N(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function C(e,t,r){void 0!==B.getNameTable(e).get(t.escapedText)&&N(e,t,r)}function i(e,t,r,n,i){void 0===i&&(i=r);var a=B.isParameterPropertyDeclaration(e.parent,e.parent.parent)?B.first(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(a)for(var o=0,s=k(r,a.name,i);o<s.length;o++){var c=s[o];if(B.isIdentifier(c)&&c!==e&&c.escapedText===e.escapedText){var l=t.getSymbolAtLocation(c);if(l===a||t.getShorthandAssignmentValueSymbol(c.parent)===a||B.isExportSpecifier(c.parent)&&P(c,l,c.parent,t)===a){c=n(c);if(c)return c}}}}function k(t,e,r){return void 0===r&&(r=t),s(t,e,r).map(function(e){return B.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&&B.isIdentifierPart(i.charCodeAt(s-1),99)||c!==a&&B.isIdentifierPart(i.charCodeAt(c),99)||n.push(s),s=i.indexOf(t,s+o+1)}return n}function E(e,t){var r=e.getSourceFile(),n=t.text,e=B.mapDefined(k(r,n,e),function(e){return e===t||B.isJumpStatementTarget(e)&&B.getTargetLabel(e,n)===t?J(e):void 0});return[{definition:{type:1,node:t},references:e}]}function N(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=B.getTouchingPropertyName(e,t);if(!function(e,t){switch(e.kind){case 80:if(B.isJSDocMemberName(e.parent))return 1;case 79:return e.text.length===t.length;case 14:case 10:var r=e;return(B.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||B.isNameOfModuleDeclaration(e)||B.isExpressionOfExternalModuleImportEqualsDeclaration(e)||B.isCallExpression(e.parent)&&B.isBindableObjectDefinePropertyCall(e.parent)&&e.parent.arguments[1]===e)&&r.text.length===t.length;case 8:return B.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)&&e.text.length===t.length;case 88:return"default".length===t.length;default:return}}(a,r.text))return!n.options.implementations&&(n.options.findInStrings&&B.isInString(e,t)||n.options.findInComments&&B.isInNonReferenceComment(e,t))&&n.addStringOrCommentReference(e.fileName,B.createTextSpan(t,r.text.length));if(A(a,n)){var o=n.checker.getSymbolAtLocation(a);if(o&&(t=a.parent,!B.isImportSpecifier(t)||t.propertyName!==a)){if(B.isExportSpecifier(t))return B.Debug.assert(79===a.kind),F(a,o,t,r,n,i),0;var s=function(i,a,e,r){var n=r.checker;return O(a,e,n,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,function(e,t,r,n){return r&&M(a)!==M(r)&&(r=void 0),i.includes(r||t||e)?{symbol:!t||6&B.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=B.getSymbolId(e)+","+B.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 B.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&&B.getNameOfDeclaration(i);33554432&n||!i||!t.includes(e)||w(i,e,r)}(o,r,n),0;switch(n.specialSearchKind){case 0:i&&w(a,s,n);break;case 1:!function(e,t,r,n){function i(){return n.referenceAdder(r.symbol)}B.isNewExpressionTarget(e)&&w(e,r.symbol,n),B.isClassLike(e.parent)?(B.Debug.assert(88===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=B.findChildOfKind(o,134,t);B.Debug.assert(171===o.kind&&!!s),r(s)}e.exports&&e.exports.forEach(function(e){e=e.valueDeclaration;!e||169!==e.kind||(e=e.body)&&u(e,108,function(e){B.isNewExpressionTarget(e)&&r(e)})})}(r.symbol,t,i())):(e=function(e){return B.tryGetClassExtendingExpressionWithTypeArguments(B.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];B.Debug.assert(171===i.kind);i=i.body;i&&u(i,106,function(e){B.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),f(r,t,e))}(e,n))}(a,e,r,n);break;case 2:!function(e,t,r){w(e,t.symbol,r);var n=e.parent;if(2!==r.options.use&&B.isClassLike(n)){B.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];B.isMethodOrAccessor(s)&&B.isStatic(s)&&s.body&&s.body.forEachChild(function e(t){108===t.kind?i(t):B.isFunctionLike(t)||B.isClassLike(t)||t.forEachChild(e)})}}}(a,r,n);break;default:B.Debug.assertNever(n.specialSearchKind)}B.isInJSFile(a)&&203===a.parent.kind&&B.isVariableDeclarationInitializedToBareOrAccessedRequire(a.parent)&&!(o=a.parent.symbol)||function(e,t,r,n){(t=j.getImportOrExportSymbol(e,t,n.checker,1===r.comingFrom))&&(r=t.symbol,0===t.kind?R(n.options)||d(r,n):T(e,r,t.exportInfo,n))}(a,o,r,n)}}}(t,o[a],r,n,i)}function A(e,t){return B.getMeaningFromLocation(e)&t.searchMeaning}function F(e,t,r,n,i,a,o){B.Debug.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var s=r.parent,c=r.propertyName,l=r.name,s=s.parent,u=P(e,t,r,i.checker);function _(){a&&w(e,u,i)}(o||n.includes(u))&&(c?e===c?(s.moduleSpecifier||_(),a&&2!==i.options.use&&i.markSeenReExportRHS(l)&&w(l,B.Debug.checkDefined(r.symbol),i)):i.markSeenReExportRHS(e)&&_():2===i.options.use&&"default"===l.escapedText||_(),R(i.options)&&!o||(l=88===e.originalKeywordKind||88===r.name.originalKeywordKind?1:0,o=B.Debug.checkDefined(r.symbol),(l=j.getExportInfo(o,l,i.checker))&&T(e,o,l,i)),1===n.comingFrom||!s.moduleSpecifier||c||R(i.options)||(r=i.checker.getExportSpecifierLocalTargetSymbol(r))&&d(r,i))}function P(e,t,r,n){return i=e,o=(a=r).parent,e=a.propertyName,a=a.name,B.Debug.assert(e===i||a===i),(e?e===i:!o.parent.moduleSpecifier)&&n.getExportSpecifierLocalTargetSymbol(r)||t;var i,a,o}function w(e,t,r){var n="kind"in t?t:{kind:void 0,symbol:t},t=n.kind,n=n.symbol;2===r.options.use&&88===e.kind||(n=r.referenceAdder(n),r.options.implementations?function(e,t,r){if(B.isDeclarationName(e)&&function(e){return 16777216&e.flags?!(B.isInterfaceDeclaration(e)||B.isTypeAliasDeclaration(e)):B.isVariableLike(e)?B.hasInitializer(e):B.isFunctionLikeDeclaration(e)?!!e.body:B.isClassLike(e)||B.isModuleOrEnumDeclaration(e)}(e.parent))return t(e);if(79===e.kind){297===e.parent.kind&&a(e,r.checker,t);var n=function e(t){return B.isIdentifier(t)||B.isPropertyAccessExpression(t)?e(t.parent):B.isExpressionWithTypeArguments(t)?B.tryCast(t.parent.parent,B.isClassLike):void 0}(e);if(n)return t(n);n=B.findAncestor(e,function(e){return!B.isQualifiedName(e.parent)&&!B.isTypeNode(e.parent)&&!B.isTypeElement(e.parent)}),e=n.parent,B.hasType(e)&&e.type===n&&r.markSeenContainingTypeReference(e)&&(B.hasInitializer(e)?i(e.initializer):B.isFunctionLike(e)&&e.body?235===(r=e.body).kind?B.forEachReturnStatement(r,function(e){e.expression&&i(e.expression)}):i(r):B.isAssertionExpression(e)&&i(e.expression))}function i(e){!function e(t){switch(t.kind){case 212:return e(t.expression);case 214:case 213:case 205:case 226:case 204: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 I(e){return 79===e.kind&&164===e.parent.kind&&e.parent.name===e}function O(e,t,c,r,n,l,u){var i=B.getContainingObjectLiteralElement(t);if(i){var a=c.getShorthandAssignmentValueSymbol(t.parent);if(a&&r)return l(a,void 0,void 0,3);var o=c.getContextualType(i.parent),i=o&&B.firstDefined(B.getPropertySymbolsFromContextualType(i,c,o,!0),function(e){return p(e,4)});if(i)return i;o=(o=t,i=c,B.isArrayLiteralOrObjectLiteralDestructuringPattern(o.parent.parent)?i.getPropertySymbolOfDestructuringAssignment(o):void 0),o=o&&l(o,void 0,void 0,4);if(o)return o;a=a&&l(a,void 0,void 0,3);if(a)return a}a=y(t,e,c);if(a){var s=l(a,void 0,void 0,1);if(s)return s}s=p(e);if(s)return s;if(e.valueDeclaration&&B.isParameterPropertyDeclaration(e.valueDeclaration,e.valueDeclaration.parent)){var _=c.getSymbolsOfParameterPropertyDeclaration(B.cast(e.valueDeclaration,B.isParameter),e.name);return B.Debug.assert(2===_.length&&!!(1&_[0].flags)&&!!(4&_[1].flags)),p(1&e.flags?_[1]:_[0])}_=B.getDeclarationOfKind(e,275);if(!r||_&&!_.propertyName){_=_&&c.getExportSpecifierLocalTargetSymbol(_);if(_){_=l(_,void 0,void 0,1);if(_)return _}}if(r)return B.Debug.assert(r),n?(d=f(e,c))&&p(d,4):void 0;var d=void 0;return(d=n?B.isObjectBindingElementWithoutPropertyName(t.parent)?B.getPropertySymbolFromBindingElement(c,t.parent):void 0:f(e,c))&&p(d,4);function p(r,s){return B.firstDefined(c.getRootSymbols(r),function(t){return l(r,t,void 0,s)||(t.parent&&96&t.parent.flags&&u(t)?(e=t.parent,n=t.name,i=c,a=function(e){return l(r,t,e,s)},o=new B.Map,function r(e){if(!(96&e.flags&&B.addToSeen(o,B.getSymbolId(e))))return;return B.firstDefined(e.declarations,function(e){return B.firstDefined(B.getAllSuperTypeNodes(e),function(e){var t=i.getTypeAtLocation(e),e=t&&t.symbol&&i.getPropertyOfType(t,n);return t&&e&&(B.firstDefined(i.getRootSymbols(e),a)||r(t.symbol))})})}(e)):void 0);var e,n,i,a,o})}function f(e,t){e=B.getDeclarationOfKind(e,203);if(e&&B.isObjectBindingElementWithoutPropertyName(e))return B.getPropertySymbolFromBindingElement(t,e)}}function M(e){return!!e.valueDeclaration&&!!(32&B.getEffectiveModifierFlags(e.valueDeclaration))}function L(e,t){var r=B.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=B.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&B.getMeaningFromDeclaration(a)&&r(a)}}function u(e,t,r){B.forEachChild(e,function(e){e.kind===t&&r(e),u(e,t,r)})}function R(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,r,n,i,a,o,s){for(var r=(e=j.createImportTracker(e,new B.Set(e.map(function(e){return e.fileName})),t,r)(n,{exportKind:o?1:0,exportingModuleSymbol:i},!1)).importSearches,i=e.indirectUsers,e=e.singleReferences,c=0,l=r;c<l.length;c++)s(l[c][0]);for(var u=0,_=e;u<_.length;u++){var d=_[u];B.isIdentifier(d)&&B.isImportTypeNode(d.parent)&&s(d)}for(var p=0,f=i;p<f.length;p++)for(var g=0,m=k(f[p],o?"default":a);g<m.length;g++){var y=m[g],h=t.getSymbolAtLocation(y),v=B.some(null==h?void 0:h.declarations,function(e){return!!B.tryCast(e,B.isExportAssignment)});!B.isIdentifier(y)||B.isImportOrExportSpecifier(y.parent)||h!==n&&!v||s(y)}},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.getTopMostDeclarationNamesInFile=function(e,t){return B.filter(k(t,e),function(e){return!!B.getDeclarationFromName(e)}).reduce(function(e,t){var r=function(e){var t=0;for(;e;)e=B.getContainerNode(e),t++;return t}(t);return B.some(e.declarationNames)&&r!==e.depth?r<e.depth&&(e.declarationNames=[t],e.depth=r):(e.declarationNames.push(t),e.depth=r),e},{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,t,r,n){if(!e.name||!B.isIdentifier(e.name))return!1;for(var i=B.Debug.checkDefined(r.getSymbolAtLocation(e.name)),a=0,o=t;a<o.length;a++)for(var s=0,c=k(o[a],i.name);s<c.length;s++){var l=c[s];if(B.isIdentifier(l)&&l!==e.name&&l.escapedText===e.name.escapedText){var u=B.climbPastPropertyAccess(l),_=B.isCallExpression(u.parent)&&u.parent.expression===u?u.parent:void 0,u=r.getSymbolAtLocation(l);if(u&&r.getRootSymbols(u).some(function(e){return e===i})&&n(l,_))return!0}}return!1},e.getIntersectingMeaningFromDeclarations=L,e.getReferenceEntriesForShorthandPropertyAssignment=a}(s=j.Core||(j.Core={}))}(ts=ts||{}),function(l){var e;function c(e){return(l.isFunctionExpression(e)||l.isArrowFunction(e)||l.isClassExpression(e))&&l.isVariableDeclaration(e.parent)&&e===e.parent.initializer&&l.isIdentifier(e.parent.name)&&!!(2&l.getCombinedNodeFlags(e.parent))}function o(e){return l.isSourceFile(e)||l.isModuleDeclaration(e)||l.isFunctionDeclaration(e)||l.isFunctionExpression(e)||l.isClassDeclaration(e)||l.isClassExpression(e)||l.isClassStaticBlockDeclaration(e)||l.isMethodDeclaration(e)||l.isMethodSignature(e)||l.isGetAccessorDeclaration(e)||l.isSetAccessorDeclaration(e)}function u(e){return l.isSourceFile(e)||l.isModuleDeclaration(e)&&l.isIdentifier(e.name)||l.isFunctionDeclaration(e)||l.isClassDeclaration(e)||l.isClassStaticBlockDeclaration(e)||l.isMethodDeclaration(e)||l.isMethodSignature(e)||l.isGetAccessorDeclaration(e)||l.isSetAccessorDeclaration(e)||(t=e,(l.isFunctionExpression(t)||l.isClassExpression(t))&&l.isNamedDeclaration(t))||c(e);var t}function n(e){return l.isSourceFile(e)?e:l.isNamedDeclaration(e)?e.name:c(e)?e.parent.name:l.Debug.checkDefined(e.modifiers&&l.find(e.modifiers,_))}function _(e){return 88===e.kind}function d(e,t){t=n(t);return t&&e.getSymbolAtLocation(t)}function p(e,t){if(t.body)return t;if(l.isConstructorDeclaration(t))return l.getFirstConstructorWithBody(t.parent);if(l.isFunctionDeclaration(t)||l.isMethodDeclaration(t)){e=d(e,t);return e&&e.valueDeclaration&&l.isFunctionLikeDeclaration(e.valueDeclaration)&&e.valueDeclaration.body?e.valueDeclaration:void 0}return t}function i(e,t){var r,n=d(e,t);if(n&&n.declarations){var t=l.indicesOf(n.declarations),i=l.map(n.declarations,function(e){return{file:e.getSourceFile().fileName,pos:e.pos}});t.sort(function(e,t){return l.compareStringsCaseSensitive(i[e].file,i[t].file)||i[e].pos-i[t].pos});for(var a=void 0,o=0,s=l.map(t,function(e){return n.declarations[e]});o<s.length;o++){var c=s[o];u(c)&&(a&&a.parent===c.parent&&a.end===c.pos||(r=l.append(r,c)),a=c)}}return r}function s(e,t){var r;return l.isClassStaticBlockDeclaration(t)?t:l.isFunctionLikeDeclaration(t)?null!==(r=null!==(r=p(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(u(t))return s(n,t);if(o(t))return(r=l.findAncestor(t,u))&&s(n,r);if(l.isDeclarationName(t))return u(t.parent)?s(n,t.parent):o(t.parent)?(r=l.findAncestor(t.parent,u))&&s(n,r):l.isVariableDeclaration(t.parent)&&t.parent.initializer&&c(t.parent.initializer)?t.parent.initializer:void 0;if(l.isConstructorDeclaration(t))return u(t.parent)?t.parent:void 0;if(124!==t.kind||!l.isClassStaticBlockDeclaration(t.parent)){if(l.isVariableDeclaration(t)&&t.initializer&&c(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}t=t.parent}}function a(e,t){var r=t.getSourceFile(),n=function(e,t){if(l.isSourceFile(t))return{text:t.fileName,pos:0,end:0};if((l.isFunctionDeclaration(t)||l.isClassDeclaration(t))&&!l.isNamedDeclaration(t)){var r=t.modifiers&&l.find(t.modifiers,_);if(r)return{text:"default",pos:r.getStart(),end:r.getEnd()}}if(l.isClassStaticBlockDeclaration(t)){var r=t.getSourceFile(),n=l.skipTrivia(r.text,l.moveRangePastModifiers(t).pos),i=n+6,r=(o=(a=e.getTypeChecker()).getSymbolAtLocation(t.parent))?"".concat(a.symbolToString(o,t.parent)," "):"";return{text:"".concat(r,"static {}"),pos:n,end:i}}var a,o,s,n=c(t)?t.parent.name:l.Debug.checkDefined(l.getNameOfDeclaration(t),"Expected call hierarchy item to have a name");return void 0===(i=l.isIdentifier(n)?l.idText(n):l.isStringOrNumericLiteralLike(n)?n.text:l.isComputedPropertyName(n)&&l.isStringOrNumericLiteralLike(n.expression)?n.expression.text:void 0)&&(o=(a=e.getTypeChecker()).getSymbolAtLocation(n))&&(i=a.symbolToString(o,t)),void 0===i&&(s=l.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),i=l.usingSingleLineStringWriter(function(e){return s.writeNode(4,t,t.getSourceFile(),e)})),{text:i,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t;if(c(e))return l.isModuleBlock(e.parent.parent.parent.parent)&&l.isIdentifier(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 172:case 173:case 169:return 205===e.parent.kind?null===(t=l.getAssignedName(e.parent))||void 0===t?void 0:t.getText():null===(t=l.getNameOfDeclaration(e.parent))||void 0===t?void 0:t.getText();case 256:case 257:case 261:if(l.isModuleBlock(e.parent)&&l.isIdentifier(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),a=l.getNodeKind(t),o=l.getNodeModifiers(t),e=l.createTextSpanFromBounds(l.skipTrivia(r.text,t.getFullStart(),!1,!0),t.getEnd()),t=l.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(l.isCallOrNewExpressionTarget(t,!0,!0)||l.isTaggedTemplateTag(t,!0,!0)||l.isDecoratorTarget(t,!0,!0)||l.isJsxOpeningLikeElementTagName(t,!0,!0)||l.isRightSideOfPropertyAccess(t)||l.isArgumentExpressionOfElementAccess(t)){e=t.getSourceFile();return{declaration:l.findAncestor(t,u)||e,range:l.createTextRangeFromNode(t,e)}}}}function y(e){return l.getNodeId(e.declaration)}function h(s,c){function a(e){var t=l.isTaggedTemplateExpression(e)?e.tag:l.isJsxOpeningLikeElement(e)?e.tagName:l.isAccessExpression(e)||l.isClassStaticBlockDeclaration(e)?e:e.expression,r=f(s,t);if(r){var n=l.createTextRangeFromNode(t,e.getSourceFile());if(l.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&&!(16777216&t.flags))if(u(t)){if(l.isClassLike(t))for(var r=0,n=t.members;r<n.length;r++){var i=n[r];i.name&&l.isComputedPropertyName(i.name)&&e(i.name.expression)}}else{switch(t.kind){case 79:case 265:case 266:case 272:case 258:case 259:return;case 170:return void a(t);case 211:case 229:return void e(t.expression);case 254:case 164:return e(t.name),void e(t.initializer);case 208:case 209:return a(t),e(t.expression),void l.forEach(t.arguments,e);case 210:return a(t),e(t.tag),void e(t.template);case 280:case 279:return a(t),e(t.tagName),void e(t.attributes);case 165:return a(t),void e(t.expression);case 206:case 207:a(t),l.forEachChild(t,e)}l.isPartOfTypeNode(t)||l.forEachChild(t,e)}}}function r(e,t){var r,n,i,a,o=[],s=h(e,o);switch(t.kind){case 305:i=t,a=s,l.forEach(i.statements,a);break;case 261:r=t,n=s,!l.hasSyntacticModifier(r,2)&&r.body&&l.isModuleBlock(r.body)&&l.forEach(r.body.statements,n);break;case 256:case 213:case 214:case 169:case 172:case 173:r=e.getTypeChecker(),n=s,(r=p(r,r=t))&&(l.forEach(r.parameters,n),n(r.body));break;case 257:case 226:!function(e,t){l.forEach(e.decorators,t);var r=l.getClassExtendsHeritageElement(e);r&&t(r.expression);for(var n=0,i=e.members;n<i.length;n++){var a=i[n];l.forEach(a.decorators,t),l.isPropertyDeclaration(a)?t(a.initializer):l.isConstructorDeclaration(a)&&a.body?(l.forEach(a.parameters,t),t(a.body)):l.isClassStaticBlockDeclaration(a)&&t(a)}}(t,s);break;case 170:s(t.body);break;default:l.Debug.assertNever(t)}return o}(e=l.CallHierarchy||(l.CallHierarchy={})).resolveCallHierarchyDeclaration=f,e.createCallHierarchyItem=a,e.getIncomingCalls=function(t,e,r){return l.isSourceFile(e)||l.isModuleDeclaration(e)||l.isClassStaticBlockDeclaration(e)?[]:(e=n(e),(e=l.filter(l.FindAllReferences.findReferenceOrRenameEntries(t,r,t.getSourceFiles(),e,0,{use:1},m),g))?l.group(e,y,function(e){return{from:a(t,(e=e)[0].declaration),fromSpans:l.map(e,function(e){return l.createTextSpanFromRange(e.range)})}}):[])},e.getOutgoingCalls=function(t,e){return 16777216&e.flags||l.isMethodSignature(e)?[]:l.group(r(t,e),y,function(e){return{to:a(t,(e=e)[0].declaration),fromSpans:l.map(e,function(e){return l.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,t,r,n){if(t){if(t.resolvedModule){var i=o(t.resolvedModule.resolvedFileName);if(i)return i}e=x.forEach(t.failedLookupLocations,function(e){var t=r(e);return t&&x.find(n,function(e){return e.fileName===t})?a(e):void 0})||x.pathIsRelative(e.text)&&x.forEach(t.failedLookupLocations,a);return e||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function a(e){return x.endsWith(e,"/package.json")?void 0:o(e)}function o(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,!u)}var t,o,r,s,c,l,u,_,d;t=p,o=e,r=v,s=f,c=g,l=m.getCurrentDirectory(),u=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":if(n(e)||"include"!==t||!x.isArrayLiteralExpression(e.initializer))return;var r=x.mapDefined(e.initializer.elements,function(e){return x.isStringLiteral(e)?e.text:void 0});if(0===r.length)return;r=x.getFileMatcherPatterns(_,[],r,u,l);return void(x.getRegexFromPattern(x.Debug.checkDefined(r.includeFilePattern),u).test(s)&&!x.getRegexFromPattern(x.Debug.checkDefined(r.includeFilePattern),u).test(c)&&o.insertNodeAfter(d,x.last(e.initializer.elements),x.factory.createStringLiteral(a(c))));case"compilerOptions":return void 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,l,u,_,d,p){for(var f=c.getSourceFiles(),e=function(r){var e=u(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!==(l=r(o.fileName))&&l!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,l)}for(var s=0,c=e.imports;s<c.length;s++){var l,u=c[s];void 0!==(l=n(u))&&l!==u.text&&t.replaceRangeWithText(e,T(u,e),l)}}(r,l,function(e){if(x.pathIsRelative(e)){e=D(o,e),e=u(e);return void 0===e?void 0:x.ensurePathIsNonModuleName(x.getRelativePathFromDirectory(t,e,p))}},function(e){var t=c.getTypeChecker().getSymbolAtLocation(e);if(null==t||!t.declarations||!t.declarations.some(function(e){return x.isAmbientModule(e)})){t=void 0!==i?S(e,x.resolveModuleName(e.text,a,c.getCompilerOptions(),d),u,f):function(e,t,r,n,i,a){{if(e){var e=x.find(e.declarations,x.isSourceFile).fileName,o=a(e);return void 0===o?{newFileName:e,updated:!1}:{newFileName:o,updated:!0}}o=x.getModeForUsageLocation(r,t),o=i.resolveModuleNames?i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,o):n.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,o);return S(t,o,a,n.getSourceFiles())}}(t,e,r,c,d,u);return void 0!==t&&(t.updated||s&&x.pathIsRelative(e.text))?x.moduleSpecifiers.updateModuleSpecifier(c.getCompilerOptions(),r,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(T){var e;function i(e,t,r,n,i){var a,o,s,c=k(t,r,e),s=c?[(a=c.reference.fileName,o=c.fileName,s=c.unverified,{fileName:o,textSpan:T.createTextSpanFromBounds(0,0),kind:"script",name:a,containerName:void 0,containerKind:void 0,unverified:s})]:T.emptyArray;if(null!=c&&c.file)return s;var l=T.getTouchingPropertyName(t,r);if(l!==t){var c=l.parent,u=e.getTypeChecker();if(159===l.kind||T.isJSDocOverrideTag(l)&&T.rangeContainsPosition(l.tagName,r))return function(e,t){var r=T.findAncestor(t,T.isClassElement);if(!r||!r.name)return;var n=T.findAncestor(r,T.isClassLike);if(!n)return;var i=T.getEffectiveBaseTypeNode(n),a=i?e.getTypeAtLocation(i):void 0;if(!a)return;i=T.unescapeLeadingUnderscores(T.getTextOfPropertyName(r.name)),i=T.hasStaticModifier(r)?e.getPropertyOfType(e.getTypeOfSymbolAtLocation(a.symbol,n),i):e.getPropertyOfType(a,i);return i?N(e,i,t):void 0}(u,l)||T.emptyArray;if(T.isJumpStatementTarget(l)){var _=T.getTargetLabel(l.parent,l.text);return _?[F(u,_,"label",l.text,void 0)]:void 0}if(T.isStaticModifier(l)&&T.isClassStaticBlockDeclaration(l.parent)){var d=l.parent.parent,p=E(d,u,i),_=p.symbol,f=p.failedAliasResolution,p=T.filter(d.members,T.isClassStaticBlockDeclaration),g=_?u.symbolToString(_,d):"",m=l.getSourceFile();return T.map(p,function(e){var t=T.moveRangePastModifiers(e).pos,t=T.skipTrivia(m.text,t);return F(u,e,"constructor","static {}",g,!1,f,{start:t,length:"static".length})})}var y,d=E(l,u,i),p=d.symbol,h=d.failedAliasResolution,d=l;if(n&&h&&((v=(v=T.forEach(__spreadArray([l],(null==p?void 0:p.declarations)||T.emptyArray,!0),function(e){return T.findAncestor(e,T.isAnyImportOrBareOrAccessedRequire)}))&&T.tryGetModuleSpecifierFromDeclaration(v))&&(p=(i=E(v,u,i)).symbol,h=i.failedAliasResolution,d=v)),!p&&T.isModuleSpecifierLike(d)){var v=null===(v=t.resolvedModules)||void 0===v?void 0:v.get(d.text,T.getModeForUsageLocation(t,d));if(v)return[{name:d.text,fileName:v.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:T.createTextSpan(0,0),failedAliasResolution:h,isAmbient:T.isDeclarationFileName(v.resolvedFileName),unverified:d!==l}]}if(!p)return T.concatenate(s,(d=l,y=u,T.mapDefined(y.getIndexInfosAtLocation(d),function(e){return e.declaration&&P(y,e.declaration)})));if(!n||!T.every(p.declarations,function(e){return e.getSourceFile().fileName===t.fileName})){var b=function(e,t){t=function(e){var t=T.findAncestor(e,function(e){return!T.isRightSideOfPropertyAccess(e)}),e=null==t?void 0:t.parent;return e&&T.isCallLikeExpression(e)&&T.getInvokedExpression(e)===t?e:void 0}(t),t=t&&e.getResolvedSignature(t);return T.tryCast(t&&t.declaration,function(e){return T.isFunctionLike(e)&&!T.isFunctionTypeNode(e)})}(u,l);if(b&&(!T.isJsxOpeningLikeElement(l.parent)||!function(e){switch(e.kind){case 171:case 180:case 175:return!0;default:return!1}}(b))){var x=P(u,b,h);if(u.getRootSymbols(p).some(function(e){return(t=e)===(e=b).symbol||t===e.symbol.parent||T.isAssignmentExpression(e.parent)||!T.isCallLikeExpression(e.parent)&&t===e.parent.symbol;var t}))return[x];n=N(u,p,l,h,b)||T.emptyArray;return 106===l.kind?__spreadArray([x],n,!0):__spreadArray(__spreadArray([],n,!0),[x],!1)}if(297===l.parent.kind){var D=u.getShorthandAssignmentValueSymbol(p.valueDeclaration),x=null!=D&&D.declarations?D.declarations.map(function(e){return A(e,u,D,l,!1,h)}):T.emptyArray;return T.concatenate(x,C(u,l)||T.emptyArray)}if(T.isPropertyName(l)&&T.isBindingElement(c)&&T.isObjectBindingPattern(c.parent)&&l===(c.propertyName||c.name)){var S=T.getNameFromPropertyName(l),c=u.getTypeAtLocation(c.parent);return void 0===S?T.emptyArray:T.flatMap(c.isUnion()?c.types:[c],function(e){e=e.getProperty(S);return e&&N(u,e,l)})}return T.concatenate(s,C(u,l)||N(u,p,l,h))}}}function C(t,r){var e=T.getContainingObjectLiteralElement(r);if(e){var n=e&&t.getContextualType(e.parent);if(n)return T.flatMap(T.getPropertySymbolsFromContextualType(e,t,n,!1),function(e){return N(t,e,r)})}}function k(e,t,r){var n=s(e.referencedFiles,t);if(n)return(a=r.getSourceFileFromReference(e,n))&&{reference:n,fileName:a.fileName,file:a,unverified:!1};var i=s(e.typeReferenceDirectives,t);if(i){n=r.getResolvedTypeReferenceDirectives().get(i.fileName,i.resolutionMode||e.impliedNodeFormat);return(a=n&&r.getSourceFile(n.resolvedFileName))&&{reference:i,fileName:a.fileName,file:a,unverified:!1}}i=s(e.libReferenceDirectives,t);if(i)return(a=r.getLibFileFromReference(i))&&{reference:i,fileName:a.fileName,file:a,unverified:!1};if(null!==(a=e.resolvedModules)&&void 0!==a&&a.size()){var a=T.getTouchingToken(e,t);if(T.isModuleSpecifierLike(a)&&T.isExternalModuleNameRelative(a.text)&&e.resolvedModules.has(a.text,T.getModeForUsageLocation(e,a))){t=null===(t=e.resolvedModules.get(a.text,T.getModeForUsageLocation(e,a)))||void 0===t?void 0:t.resolvedFileName,e=t||T.resolvePath(T.getDirectoryPath(e.fileName),a.text);return{file:r.getSourceFile(e),fileName:e,reference:{pos:a.getStart(),end:a.getEnd(),fileName:a.text},unverified:!t}}}}function o(e,t,r,n){return T.flatMap(!e.isUnion()||32&e.flags?[e]:e.types,function(e){return e.symbol&&N(t,e.symbol,r,n)})}function E(e,t,r){var n=t.getSymbolAtLocation(e),i=!1;if(null!=n&&n.declarations&&2097152&n.flags&&!r&&(r=e,e=n.declarations[0],79===r.kind&&(r.parent===e||268!==e.kind))){t=t.getAliasedSymbol(n);if(t.declarations)return{symbol:t};i=!0}return{symbol:n,failedAliasResolution:i}}function N(r,n,i,a,t){var e=T.filter(n.declarations,function(e){return e!==t}),o=T.filter(e,function(e){return!function(e){if(T.isAssignmentDeclaration(e)){e=T.findAncestor(e,function(e){return!!T.isAssignmentExpression(e)||!T.isAssignmentDeclaration(e)&&"quit"});return e&&5===T.getAssignmentDeclarationKind(e)}}(e)}),o=T.some(o)?o:e;return function(){if(32&n.flags&&!(19&n.flags)&&(T.isNewExpressionTarget(i)||134===i.kind))return s((T.find(e,T.isClassLike)||T.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(T.isCallOrNewExpressionTarget(i)||T.isNameOfFunctionDeclaration(i)?s(e,!1):void 0)||T.map(o,function(e){return A(e,r,n,i,!1,a)});function s(e,t){if(e){e=e.filter(t?T.isConstructorDeclaration:T.isFunctionLike),t=e.filter(function(e){return!!e.body});return e.length?0!==t.length?t.map(function(e){return A(e,r,n,i)}):[A(T.last(e),r,n,i,!1,a)]:void 0}}}function A(e,t,r,n,i,a){var o=t.symbolToString(r),s=T.SymbolDisplay.getSymbolKind(t,r,n),n=r.parent?t.symbolToString(r.parent,n):"";return F(t,e,s,o,n,i,a)}function F(e,t,r,n,i,a,o,s){var c,l=t.getSourceFile();return s||(c=T.getNameOfDeclaration(t)||t,s=T.createTextSpanFromNode(c,l)),__assign(__assign({fileName:l.fileName,textSpan:s,kind:r,name:n,containerKind:void 0,containerName:i},T.FindAllReferences.toContextSpan(s,l,T.FindAllReferences.getContextNode(t))),{isLocal:!function e(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(T.hasInitializer(r.parent)&&r.parent.initializer===r)return e(t,r.parent);switch(r.kind){case 167:case 172:case 173:case 169:if(T.hasEffectiveModifier(r,8))return!1;case 171:case 296:case 297:case 205:case 226:case 214:case 213:return e(t,r.parent);default:return!1}}(e,t),isAmbient:!!(16777216&t.flags),unverified:a,failedAliasResolution:o})}function P(e,t,r){return A(t,e,t.symbol,t,!1,r)}function s(e,t){return T.find(e,function(e){return T.textRangeContainsPositionInclusive(e,t)})}(e=T.GoToDefinition||(T.GoToDefinition={})).getDefinitionAtPosition=i,e.getReferenceAtPosition=k,e.getTypeDefinitionAtPosition=function(e,t,r){var n=T.getTouchingPropertyName(t,r);if(n!==t){if(T.isImportMeta(n.parent)&&n.parent.name===n)return o(e.getTypeAtLocation(n.parent),e,n.parent,!1);var i=E(n,e,!1),a=i.symbol,r=i.failedAliasResolution;if(a){t=e.getTypeOfSymbolAtLocation(a,n),i=function(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&T.isVariableDeclaration(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){t=t.getCallSignatures();if(1===t.length)return r.getReturnTypeOfSignature(T.first(t))}return}(a,t,e),i=i&&o(i,e,n,r),t=i&&0!==i.length?i:o(t,e,n,r);return t.length?t:!(111551&a.flags)&&788968&a.flags?N(e,T.skipAlias(a,e),n,r):void 0}}},e.getDefinitionAndBoundSpan=function(e,t,r){var n=i(e,t,r);if(n&&0!==n.length){e=s(t.referencedFiles,r)||s(t.typeReferenceDirectives,r)||s(t.libReferenceDirectives,r);if(e)return{definitions:n,textSpan:T.createTextSpanFromRange(e)};r=T.getTouchingPropertyName(t,r);return{definitions:n,textSpan:T.createTextSpan(r.getStart(),r.getWidth())}}},e.createDefinitionInfo=A,e.findReferenceInPosition=s}(ts=ts||{}),function(f){var e,t,r,n;function o(e,t){return f.arraysEqual(e,t,function(e,t){return e.kind===t.kind&&e.text===t.text})}function l(e,t){return"string"==typeof e?[f.textPart(e)]:f.flatMap(e,function(e){return 321===e.kind?[f.textPart(e.text)]:f.buildLinkParts(e,t)})}function i(e){return{name:e,kind:"",kindModifiers:"",displayParts:[f.textPart(e)],documentation:f.emptyArray,tags:void 0,codeActions:void 0}}function g(e,t){return!(null==t||!t.generateReturnInDocTemplate)&&(f.isArrowFunction(e)&&f.isExpression(e.body)||f.isFunctionLikeDeclaration(e)&&e.body&&f.isBlock(e.body)&&!!f.forEachReturnStatement(e.body,function(e){return e}))}function m(e){for(;212===e.kind;)e=e.expression;switch(e.kind){case 213:case 214:return e;case 226:return f.find(e.members,f.isConstructorDeclaration)}}e=f.JsDoc||(f.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","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],e.getJsDocCommentsFromDeclarations=function(e,i){var a=[];return f.forEachUnique(e,function(e){for(var t=0,r=function(e){switch(e.kind){case 340:case 347:return[e];case 338:case 345:return[e,e.parent];default:return f.getJSDocCommentsAndTags(e)}}(e);t<r.length;t++){var n=r[t];void 0===n.comment||f.isJSDoc(n)&&345!==e.kind&&338!==e.kind&&n.tags&&n.tags.some(function(e){return 345===e.kind||338===e.kind})&&!n.tags.some(function(e){return 340===e.kind||341===e.kind})||(n=l(n.comment,i),f.contains(a,n,o)||a.push(n))}}),f.flatten(f.intersperse(a,[f.lineBreakPart()]))},e.getJsDocTagsFromDeclarations=function(e,i){var a=[];return f.forEachUnique(e,function(e){e=f.getJSDocTags(e);if(!e.some(function(e){return 345===e.kind||338===e.kind})||e.some(function(e){return 340===e.kind||341===e.kind}))for(var t=0,r=e;t<r.length;t++){var n=r[t];a.push({name:n.tagName.text,text:function(e,t){var r=e.comment,n=e.kind,i=function(e){switch(e){case 340:return f.parameterNamePart;case 347:return f.propertyNamePart;case 344:return f.typeParameterNamePart;case 345:case 338:return f.typeAliasNamePart;default:return f.textPart}}(n);switch(n){case 329:case 328:return c(e.class);case 344:var a,o=e,s=[];return o.constraint&&s.push(f.textPart(o.constraint.getText())),f.length(o.typeParameters)&&(f.length(s)&&s.push(f.spacePart()),a=o.typeParameters[o.typeParameters.length-1],f.forEach(o.typeParameters,function(e){s.push(i(e.getText())),a!==e&&s.push.apply(s,[f.punctuationPart(27),f.spacePart()])})),r&&s.push.apply(s,__spreadArray([f.spacePart()],l(r,t),!0)),s;case 343:return c(e.typeExpression);case 345:case 338:case 347:case 340:case 346:o=e.name;return o?c(o):void 0===r?void 0:l(r,t);default:return void 0===r?void 0:l(r,t)}function c(e){return e=e.getText(),r?e.match(/^https?$/)?__spreadArray([f.textPart(e)],l(r,t),!0):__spreadArray([i(e),f.spacePart()],l(r,t),!0):[f.textPart(e)]}}(n,i)})}}),a},e.getJSDocTagNameCompletions=function(){return t=t||f.map(n,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:f.Completions.SortText.LocationPriority}})},e.getJSDocTagNameCompletionDetails=i,e.getJSDocTagCompletions=function(){return r=r||f.map(n,function(e){return{name:"@".concat(e),kind:"keyword",kindModifiers:"",sortText:f.Completions.SortText.LocationPriority}})},e.getJSDocTagCompletionDetails=i,e.getJSDocParameterNameCompletions=function(r){if(!f.isIdentifier(r.name))return f.emptyArray;var n=r.name.text,i=r.parent,e=i.parent;return f.isFunctionLike(e)?f.mapDefined(e.parameters,function(e){if(f.isIdentifier(e.name)){var t=e.name.text;if(!i.tags.some(function(e){return e!==r&&f.isJSDocParameterTag(e)&&f.isIdentifier(e.name)&&e.name.escapedText===t})&&(void 0===n||f.startsWith(t,n)))return{name:t,kind:"parameter",kindModifiers:"",sortText:f.Completions.SortText.LocationPriority}}}):[]},e.getJSDocParameterNameCompletionDetails=function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[f.textPart(e)],documentation:f.emptyArray,tags:void 0,codeActions:void 0}},e.getDocCommentTemplateAtPosition=function(e,t,r,n){var i=f.getTokenAtPosition(t,r);if(!(d=f.findAncestor(i,f.isJSDoc))||void 0===d.comment&&!f.length(d.tags)){var a=i.getStart(t);if(d||!(a<r)){var o,s=(c=i,o=n,f.forEachAncestor(c,function(e){return function e(t,r){switch(t.kind){case 256:case 213:case 169:case 171:case 168:case 214:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:g(n,r)};case 296:return e(t.initializer,r);case 257:case 258:case 166:case 260:case 299:case 259:return{commentOwner:t};case 237:var n=t,n=n.declarationList.declarations,n=1===n.length&&n[0].initializer?m(n[0].initializer):void 0;return n?{commentOwner:t,parameters:n.parameters,hasReturn:g(n,r)}:{commentOwner:t};case 305:return"quit";case 261:return 261===t.parent.kind?void 0:{commentOwner:t};case 238:return e(t.expression,r);case 221:var i=t;return 0===f.getAssignmentDeclarationKind(i)?"quit":f.isFunctionLike(i.right)?{commentOwner:t,parameters:i.right.parameters,hasReturn:g(i.right,r)}:{commentOwner:t};case 167:var i=t.initializer;if(i&&(f.isFunctionExpression(i)||f.isArrowFunction(i)))return{commentOwner:t,parameters:i.parameters,hasReturn:g(i,r)}}}(e,o)}));if(s){var i=s.commentOwner,n=s.parameters,c=s.hasReturn,s=f.hasJSDocNodes(i)&&i.jsDoc?f.lastOrUndefined(i.jsDoc):void 0;if(!(i.getStart(t)<r||s&&s!==d)){var l,u,_,d=function(e,t){for(var r=e.text,e=f.getLineStartPositionForPosition(t,e),n=e;n<=t&&f.isWhiteSpaceSingleLine(r.charCodeAt(n));n++);return r.slice(e,n)}(t,r),t=f.hasJSFileExtension(t.fileName),c=(n?(l=t,u=d,_=e,(n||[]).map(function(e,t){var r=e.name,e=e.dotDotDotToken,t=79===r.kind?r.text:"param"+t,e=l?e?"{...any} ":"{any} ":"";return"".concat(u," * @param ").concat(e).concat(t).concat(_)}).join("")):"")+(c?(p=e,"".concat(d," * @returns").concat(p)):"");if(c){var p="/**"+e+d+" * ";return{newText:p+e+c+d+" */"+(a===r?e+d:""),caretOffset:p.length}}return{newText:"/** */",caretOffset:3}}}}}}}(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 l,u=c[s];!function(e,t){switch(e.kind){case 267:case 270:case 265:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}(u,n)||(e.patternContainsDots?(l=e.getFullMatch(function(e){var t=[],r=_.getNameOfDeclaration(e);if(r&&162===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)||162===e.kind&&d(e.expression,t))}(n,t))return _.emptyArray;n=_.getContainerNode(n)}return t.reverse()}(u),t))&&a.push({name:t,fileName:i,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:u}):a.push({name:t,fileName:i,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:u}))}}(o,t,e,n,r.fileName,s)})},l=0,u=e;l<u.length;l++)c(u[l]);return s.sort(f),(void 0===i?s:s.slice(0,i)).map(g)}}(ts=ts||{}),function(V){!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 l(e){return U(e.getText(n))}function u(e){return e.node.kind}function _(e,t){e.children?e.children.push(t):e.children=[t]}function d(e){V.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++)O(n[r]);return F(),V.Debug.assert(!i&&!o.length),t}function C(e,t){_(i,p(e,t))}function p(e,t){return{node:e,name:t||(V.isDeclaration(e)||V.isExpression(e)?V.getNameOfDeclaration(e):void 0),additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function k(e){(T=T||new V.Map).set(e,!0)}function E(e){for(var t=0;t<e;t++)F()}function N(e,t){for(var r=[];!V.isPropertyNameLiteral(t);){var n=V.getNameOrArgument(t),i=V.getElementOrPropertyAccessName(t);t=t.expression,"prototype"===i||V.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),v(i.children)),i=o.pop(),T=s.pop()}function P(e,t,r){A(e,r),O(t),F()}function w(e){e.initializer&&function(e){switch(e.kind){case 214:case 213:case 226:return!0;default:return!1}}(e.initializer)?(A(e),V.forEachChild(e.initializer,O),F()):P(e,e.initializer)}function I(e){return!V.hasDynamicName(e)||221!==e.kind&&V.isPropertyAccessExpression(e.name.expression)&&V.isIdentifier(e.name.expression.expression)&&"Symbol"===V.idText(e.name.expression.expression)}function O(e){var t;if(S.throwIfCancellationRequested(),e&&!V.isToken(e))switch(e.kind){case 171:var r=e;P(r,r.body);for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n];V.isParameterPropertyDeclaration(a,r)&&C(a)}break;case 169:case 172:case 173:case 168:I(e)&&P(e,e.body);break;case 167:I(e)&&w(e);break;case 166:I(e)&&C(e);break;case 267:var o=e;o.name&&C(o.name);o=o.namedBindings;if(o)if(268===o.kind)C(o);else for(var s=0,c=o.elements;s<c.length;s++)C(c[s]);break;case 297:P(e,e.name);break;case 298:o=e.expression;V.isIdentifier(o)?C(e,o):C(e);break;case 203:case 296:case 254:var l=e;V.isBindingPattern(l.name)?O(l.name):w(l);break;case 256:var u=e.name;u&&V.isIdentifier(u)&&k(u.text),P(e,e.body);break;case 214:case 213:P(e,e.body);break;case 260:A(e);for(var _=0,d=e.members;_<d.length;_++){var p=d[_];(t=p).name&&162!==t.name.kind&&C(p)}F();break;case 257:case 226:case 258:A(e);for(var f=0,g=e.members;f<g.length;f++)O(p=g[f]);F();break;case 261:P(e,function e(t){return t.body&&V.isModuleDeclaration(t.body)?e(t.body):t}(e).body);break;case 271:u=e.expression;(l=V.isObjectLiteralExpression(u)||V.isCallExpression(u)?u:V.isArrowFunction(u)||V.isFunctionExpression(u)?u.body:void 0)?(A(e),O(l),F()):C(e);break;case 275:case 265:case 176:case 174:case 175:case 259:C(e);break;case 208:case 221:var m=V.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=V.isIdentifier(h.expression)?(k(h.expression.text),h.expression):(v=(x=N(D,h.expression))[0],x[1]),6===m?V.isObjectLiteralExpression(D.right)&&0<D.right.properties.length&&(A(D,b),V.forEachChild(D.right,O),F()):V.isFunctionExpression(D.right)||V.isArrowFunction(D.right)?P(e,D.right,b):(A(D,b),P(e,D.right,y.name),F()),void E(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,V.setTextRange(V.factory.createIdentifier(x.text),x)),O(e.arguments[2]),F(),F(),void E(v);case 5:var D,v=(y=(D=e).left).expression;if(V.isIdentifier(v)&&"prototype"!==V.getElementOrPropertyAccessName(y)&&T&&T.has(v.text))return void(V.isFunctionExpression(D.right)||V.isArrowFunction(D.right)?P(e,D.right,v):V.isBindableStaticAccessExpression(y)&&(A(D,v),P(D.left,D.right,V.getNameOrArgument(y)),F()));break;case 4:case 0:case 8:break;default:V.Debug.assertNever(m)}default:V.hasJSDocNodes(e)&&V.forEach(e.jsDoc,function(e){V.forEach(e.tags,function(e){V.isJSDocTypeAlias(e)&&C(e)})}),V.forEachChild(e,O)}}function f(e,s){var c=new V.Map;V.filterMutate(e,function(e,t){var r=e.name||V.getNameOfDeclaration(e.node),n=r&&l(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 V.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),L)}finally{c()}function a(e){if(e.children)return 1;switch(u(e)){case 257:case 226:case 260:case 258:case 261:case 305:case 259:case 345:case 338:return 1;case 214:case 256:case 213:return function(e){if(!e.node.body)return;switch(u(e.parent)){case 262:case 305:case 169:case 171:return 1;default:return}}(e);default:return}}var r,o},e.getNavigationTree=function(e,t){S=t,n=e;try{return M(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 V.isFunctionExpression(e)||V.isFunctionDeclaration(e)||V.isVariableDeclaration(e)}var a=V.isBinaryExpression(t.node)||V.isCallExpression(t.node)?V.getAssignmentDeclarationKind(t.node):0,o=V.isBinaryExpression(e.node)||V.isCallExpression(e.node)?V.getAssignmentDeclarationKind(e.node):0;if(g[a]&&g[o]||i(e.node)&&g[a]||i(t.node)&&g[o]||V.isClassDeclaration(e.node)&&y(e.node)&&g[a]||V.isClassDeclaration(t.node)&&g[o]||V.isClassDeclaration(e.node)&&y(e.node)&&i(t.node)||V.isClassDeclaration(t.node)&&i(e.node)&&y(e.node)){var s=e.additionalNodes&&V.lastOrUndefined(e.additionalNodes)||e.node;!V.isClassDeclaration(e.node)&&!V.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(V.setTextRange(V.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?V.concatenate([c],t.children||[t]):V.concatenate(e.children||[__assign({},e)],[c])):(e.children||t.children)&&(e.children=V.concatenate(e.children||[__assign({},e)],t.children||[t]),e.children&&(f(e.children,e),v(e.children))),s=e.node=V.setTextRange(V.factory.createClassDeclaration(void 0,void 0,e.name||V.factory.createIdentifier("__class__"),void 0,void 0,[]),e.node)):(e.children=V.concatenate(e.children,t.children),e.children&&f(e.children,e));var c=t.node;return n.children[r-1].node.end===s.end?V.setTextRange(s,{pos:s.pos,end:c.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(V.setTextRange(V.factory.createClassDeclaration(void 0,void 0,e.name||V.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&&(!h(e,r)||!h(t,r)))return!1;switch(e.kind){case 167:case 169:case 172:case 173:return V.isStatic(e)===V.isStatic(t);case 261:return function e(t,r){if(!t.body||!r.body)return t.body===r.body;return t.body.kind===r.body.kind&&(261!==t.body.kind||e(t.body,r.body))}(e,t)&&j(e)===j(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=V.concatenate(t.children,n.children),t.children&&(f(t.children,t),v(t.children)),1)}function y(e){return 8&e.flags}function h(e,t){e=(V.isModuleBlock(e.parent)?e.parent:e).parent;return e===t.node||V.contains(t.additionalNodes,e)}function v(e){e.sort(b)}function b(e,t){return V.compareStringsCaseSensitiveUI(x(e.node),x(t.node))||V.compareValues(u(e),u(t))}function x(e){if(261===e.kind)return B(e);var t=V.getNameOfDeclaration(e);if(t&&V.isPropertyName(t)){t=V.getPropertyNameForPropertyNameNode(t);return t&&V.unescapeLeadingUnderscores(t)}switch(e.kind){case 213:case 214:case 226:return K(e);default:return}}function D(e,t){if(261===e.kind)return U(B(e));if(t){t=V.isIdentifier(t)?t.text:V.isElementAccessExpression(t)?"[".concat(l(t.argumentExpression),"]"):l(t);if(0<t.length)return U(t)}switch(e.kind){case 305:var r=e;return V.isExternalModule(r)?'"'.concat(V.escapeString(V.getBaseFileName(V.removeFileExtension(V.normalizePath(r.fileName)))),'"'):"<global>";case 271:return V.isExportAssignment(e)&&e.isExportEquals?"export=":"default";case 214:case 256:case 213:case 257:case 226:return 512&V.getSyntacticModifierFlags(e)?"default":K(e);case 171:return"constructor";case 175:return"new()";case 174:return"()";case 176:return"[]";default:return"<unknown>"}}function M(e){return{text:D(e.node,e.name),kind:V.getNodeKind(e.node),kindModifiers:z(e.node),spans:R(e),nameSpan:e.name&&J(e.name),childItems:V.map(e.children,M)}}function L(e){return{text:D(e.node,e.name),kind:V.getNodeKind(e.node),kindModifiers:z(e.node),spans:R(e),childItems:V.map(e.children,function(e){return{text:D(e.node,e.name),kind:V.getNodeKind(e.node),kindModifiers:V.getNodeModifiers(e.node),spans:R(e),childItems:t,indent:0,bolded:!1,grayed:!1}})||t,indent:e.indent,bolded:!1,grayed:!1}}function R(e){var t=[J(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(J(i))}return t}function B(e){return V.isAmbientModule(e)?V.getTextOfNode(e.name):j(e)}function j(e){for(var t=[V.getTextOfIdentifierOrLiteral(e.name)];e.body&&261===e.body.kind;)e=e.body,t.push(V.getTextOfIdentifierOrLiteral(e.name));return t.join(".")}function J(e){return 305===e.kind?V.createTextSpanFromRange(e):V.createTextSpanFromNode(e,n)}function z(e){return e.parent&&254===e.parent.kind&&(e=e.parent),V.getNodeModifiers(e)}function K(e){var t=e.parent;if(e.name&&0<V.getFullWidth(e.name))return U(V.declarationNameToString(e.name));if(V.isVariableDeclaration(t))return U(V.declarationNameToString(t.name));if(V.isBinaryExpression(t)&&63===t.operatorToken.kind)return l(t.left).replace(r,"");if(V.isPropertyAssignment(t))return l(t.name);if(512&V.getSyntacticModifierFlags(e))return"default";if(V.isClassLike(e))return"<class>";if(V.isCallExpression(t)){e=function e(t){{if(V.isIdentifier(t))return t.text;if(V.isPropertyAccessExpression(t)){var r=e(t.expression),t=t.name.text;return void 0===r?t:"".concat(r,".").concat(t)}}}(t.expression);if(void 0!==e){if((e=U(e)).length>a)return"".concat(e," callback");t=U(V.mapDefined(t.arguments,function(e){return V.isStringLiteralLike(e)?e.getText(n):void 0}).join(", "));return"".concat(e,"(").concat(t,") callback")}}return"<function>"}function U(e){return(e=e.length>a?e.substring(0,a)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(V.NavigationBar||(V.NavigationBar={}))}(ts=ts||{}),function(b){var e;function d(e,t){for(var r=b.createScanner(e.languageVersion,!1,e.languageVariant),n=[],i=0,a=0,o=t;a<o.length;a++){var s=o[a];!function(e,t,r){var n=t.getFullStart(),i=t.getStart();r.setText(e.text,n,i-n);var a=0;for(;r.getTokenPos()<i;){var o=r.scan();if(4===o&&2<=++a)return!0}return!1}(e,s,r)||i++,n[i]||(n[i]=[]),n[i].push(s)}return n}function p(e){return void 0!==e&&b.isStringLiteralLike(e)?e.text:void 0}function f(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,l=a[i];void 0!==l.importClause?(o=l.importClause.isTypeOnly?r:n,c=l.importClause,s=c.name,c=c.namedBindings,s&&o.defaultImports.push(l),c&&(b.isNamespaceImport(c)?o.namespaceImports:o.namedImports).push(l)):t=t||l}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,l=o.namespaceImports,u=o.namedImports;if(s||1!==c.length||1!==l.length||0!==u.length){for(var _=0,d=b.stableSort(l,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!==u.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(!1,b.factory.createIdentifier("default"),v.importClause.name))}g.push.apply(g,(h=u,b.flatMap(h,function(e){return b.map(null!==(e=(t=e).importClause)&&void 0!==e&&e.namedBindings&&b.isNamedImports(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0,function(e){return e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?b.factory.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e});var t})));var o=D(g),h=(0<c.length?c:u)[0],o=0===o.length?f?void 0:b.factory.createNamedImports(b.emptyArray):0===u.length?b.factory.createNamedImports(o):b.factory.updateNamedImports(u[0].importClause.namedBindings,o);s&&f&&o?(n.push(x(h,f,void 0)),n.push(x(null!==(u=u[0])&&void 0!==u?u:h,void 0,o))):n.push(x(h,f,o))}}else{var v=c[0];n.push(x(v,v.importClause.name,l[0].importClause.namedBindings))}}return n}function g(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,s.assertClause)))}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,e.assertClause)}function D(e){return b.stableSort(e,r)}function r(e,t){return b.compareBooleans(e.isTypeOnly,t.isTypeOnly)||S(e.propertyName||e.name,t.propertyName||t.name)||S(e.name,t.name)}function m(e,t){e=void 0===e?void 0:p(e),t=void 0===t?void 0:p(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 265:return null===(t=b.tryCast(e.moduleReference,b.isExternalModuleReference))||void 0===t?void 0:t.expression;case 266:return e.moduleSpecifier;case 237:return e.declarationList.declarations[0].initializer.arguments[0]}}function y(e,t){return m(n(e),n(t))||(e=e,t=t,b.compareValues(i(e),i(t)))}function i(e){var t;switch(e.kind){case 266:return e.importClause?e.importClause.isTypeOnly?1:268===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 265:return 5;case 237:return 6}}(e=b.OrganizeImports||(b.OrganizeImports={})).organizeImports=function(i,a,o,t,e,r){function n(e){return b.stableSort(f(function(e,t,r,n){if(n)return e;for(var i=r.getTypeChecker(),a=r.getCompilerOptions(),o=i.getJsxNamespace(t),s=i.getJsxFragmentFactory(t),c=!!(2&t.transformFlags),l=[],u=0,_=e;u<_.length;u++){var d,p,f=_[u],g=f.importClause,m=f.moduleSpecifier;g?(d=g.name,p=g.namedBindings,d&&!y(d)&&(d=void 0),p&&(b.isNamespaceImport(p)?y(p.name)||(p=void 0):(g=p.elements.filter(function(e){return y(e.name)})).length<p.elements.length&&(p=g.length?b.factory.updateNamedImports(p,g):void 0)),d||p?l.push(x(f,d,p)):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,m)&&(t.isDeclarationFile?l.push(b.factory.createImportDeclaration(f.decorators,f.modifiers,void 0,m,void 0)):l.push(f))):l.push(f)}return l;function y(e){return c&&(e.text===o||s&&e.text===s)&&b.jsxModeNeedsExplicitImport(a.jsx)||b.FindAllReferences.Core.isSymbolReferencedInFile(e,i,t)}}(e,i,t,r)),y)}var s=b.textChanges.ChangeTracker.fromContext({host:o,formatContext:a,preferences:e});d(i,i.statements.filter(b.isImportDeclaration)).forEach(function(e){return _(e,n)}),_(i.statements.filter(b.isExportDeclaration),g);for(var c=0,l=i.statements.filter(b.isAmbientModule);c<l.length;c++){var u=l[c];u.body&&(d(i,u.body.statements.filter(b.isImportDeclaration)).forEach(function(e){return _(e,n)}),_(u.body.statements.filter(b.isExportDeclaration),g))}return s.getChanges();function _(e,t){var r,n;0!==b.length(e)&&(b.suppressLeadingTrivia(e[0]),r=b.group(e,function(e){return p(e.moduleSpecifier)}),n=b.stableSort(r,function(e,t){return m(e[0].moduleSpecifier,t[0].moduleSpecifier)}),0===(r=b.flatMap(n,function(e){return p(e[0].moduleSpecifier)?t(e):e})).length?s.deleteNodes(i,e,{trailingTriviaOption:b.textChanges.TrailingTriviaOption.Include},!0):(n={leadingTriviaOption:b.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:b.textChanges.TrailingTriviaOption.Include,suffix:b.getNewLineOrDefaultFromHost(o,a.options)},s.replaceNodeWithNodes(i,e[0],r,n),n=s.nodeHasTrailingComment(i,e[0],n),s.deleteNodes(i,e.slice(1),{trailingTriviaOption:b.textChanges.TrailingTriviaOption.Include},n)))}},e.coalesceImports=f,e.coalesceExports=g,e.compareImportOrExportSpecifiers=r,e.compareModuleSpecifiers=m,e.importsAreSorted=function(e){return b.arrayIsSorted(e,y)},e.importSpecifiersAreSorted=function(e){return b.arrayIsSorted(e,r)},e.getImportDeclarationInsertionIndex=function(e,t){return(t=b.binarySearch(e,t,b.identity,y))<0?~t:t},e.getImportSpecifierInsertionIndex=function(e,t){return(t=b.binarySearch(e,t,b.identity,r))<0?~t:t},e.compareImportsOrRequireStatements=y}(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=__spreadArray(__spreadArray([],r.statements,!0),[r.endOfFileToken],!1),o=t.length;e<o;){for(;e<o&&!y.isAnyImportSyntax(t[e]);)l(t[e]),e++;if(e===o)break;for(var s=e;e<o&&y.isAnyImportSyntax(t[e]);)_(t[e],r,n,i),e++;var c=e-1;c!==s&&i.push(m(y.findChildOfKind(t[s],100,r).getStart(r),t[c].getEnd(),"imports"))}function l(e){var t;0!==a&&(n.throwIfCancellationRequested(),(y.isDeclaration(e)||y.isVariableStatement(e)||y.isReturnStatement(e)||y.isCallOrNewExpression(e)||1===e.kind)&&_(e,r,n,i),y.isFunctionLike(e)&&y.isBinaryExpression(e.parent)&&y.isPropertyAccessExpression(e.parent.left)&&_(e.parent.left,r,n,i),(y.isBlock(e)||y.isModuleBlock(e))&&u(e.statements.end,r,n,i),(y.isClassLike(e)||y.isInterfaceDeclaration(e))&&u(e.members.end,r,n,i),(t=function(a,o){switch(a.kind){case 235: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&&d(n,t,e,r,214!==e.kind)}(a.parent,a,o);switch(a.parent.kind){case 240:case 243:case 244:case 242:case 239:case 241:case 248:case 292:return r(a.parent);case 252:var e=a.parent;if(e.tryBlock===a)return r(a.parent);if(e.finallyBlock===a){e=y.findChildOfKind(e,96,o);if(e)return r(e)}default:return p(y.createTextSpanFromNode(a,o),"code")}case 262:return r(a.parent);case 257:case 226:case 258:case 260:case 263:case 182:case 201:return r(a);case 184:return r(a,!1,!y.isTupleTypeNode(a.parent),22);case 289:case 290:return function(e){return e.length?p(y.createTextSpanFromRange(e),"code"):void 0}(a.statements);case 205:return t(a);case 204:return t(a,22);case 278:return function(e){var t=y.createTextSpanFromBounds(e.openingElement.getStart(o),e.closingElement.getEnd()),e=e.openingElement.tagName.getText(o);return p(t,"code",t,!1,"<"+e+">...</"+e+">")}(a);case 282:return function(e){e=y.createTextSpanFromBounds(e.openingFragment.getStart(o),e.closingFragment.getEnd());return p(e,"code",e,!1,"<>...</>")}(a);case 279:case 280:return function(e){return 0!==e.properties.length?m(e.getStart(o),e.getEnd(),"code"):void 0}(a.attributes);case 223:case 14:return function(e){return 14!==e.kind||0!==e.text.length?m(e.getStart(o),e.getEnd(),"code"):void 0}(a);case 202:return r(a,!1,!y.isBindingElement(a.parent),22);case 214:return function(e){if(y.isBlock(e.body)||y.isParenthesizedExpression(e.body)||y.positionsAreOnSameLine(e.body.getFullStart(),e.body.getEnd(),o))return;return p(y.createTextSpanFromBounds(e.body.getFullStart(),e.body.getEnd()),"code",y.createTextSpanFromNode(e))}(a);case 208: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)?d(t,r,e,o,!1,!0):void 0}(a);case 212:return function(e){return y.positionsAreOnSameLine(e.getStart(),e.getEnd(),o)?void 0:p(y.createTextSpanFromBounds(e.getStart(),e.getEnd()),"code",y.createTextSpanFromNode(e))}(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&&d(n,i,e,o,t,r)}}(e,r))&&i.push(t),a--,y.isCallExpression(e)?(a++,l(e.expression),a--,e.arguments.forEach(l),null!==(t=e.typeArguments)&&void 0!==t&&t.forEach(l)):y.isIfStatement(e)&&e.elseStatement&&y.isIfStatement(e.elseStatement)?(l(e.expression),l(e.thenStatement),a++,l(e.elseStatement),a--):e.forEachChild(l),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),l=g(e.text.substring(s,c));l&&!y.isInComment(e,s)&&(l[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(p(c,"region",c,!1,l[2]||"#region"))))}}(e,r),r.sort(function(e,t){return e.textSpan.start-t.textSpan.start})};var t=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function g(e){return e=y.trimStringStart(e),y.startsWith(e,"//")?(e=y.trimString(e.slice(2)),t.exec(e)):null}function u(e,t,r,n){e=y.getLeadingCommentRanges(t.text,e);if(e){for(var i=-1,a=-1,o=0,s=t.getFullText(),c=0,l=e;c<l.length;c++){var u=l[c],_=u.kind,d=u.pos,p=u.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 _(e,t,r,n){y.isJsxText(e)||u(e.pos,t,r,n)}function m(e,t,r){return p(y.createTextSpanFromBounds(e,t),r)}function d(e,t,r,n,i,a){return void 0===i&&(i=!1),void 0===a&&(a=!0),p(y.createTextSpanFromBounds(a?e.getFullStart():e.getStart(n),t.getEnd()),"code",y.createTextSpanFromNode(r,n),i)}function p(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 l(e,t){var r=t.get(e);return r||t.set(e,r=i(e)),r}function u(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=l(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=l(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=u(e,t.totalTextChunk,r);if(n)return n}for(var i=0,a=t.subWordTextChunks;i<a.length;i++)var o=p(o,u(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],l=!1;s<a.length;s++){var u=a[s];if(l&&(!m(r.text.charCodeAt(a[s-1].start))||!m(r.text.charCodeAt(a[s].start))))break;if(!f(e,c,r.text,n,u))break;l=!0,i=void 0===i||i,c=d.createTextSpan(c.start+u.length,c.length-u.length)}l||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)),l=v(e.charCodeAt(s)),u=(n=t,u=s,i=void 0,i=m((r=e).charCodeAt(u-1)),m(r.charCodeAt(u))&&(!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!==l||u||_)&&(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(S){S.preProcessFile=function(r,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var t,i,a,o={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],c=0,l=!1;function u(){return i=a,18===(a=S.scanner.scan())?c++:19===a&&c--,a}function _(){var e=S.scanner.getTokenValue(),t=S.scanner.getTokenPos();return{fileName:e,pos:t,end:t+e.length}}function d(){s.push(_()),p()}function p(){0===c&&(l=!0)}function f(){var e=S.scanner.getToken();return 135===e&&(141===u()&&10===u()&&(t=t||[]).push({ref:_(),depth:c}),1)}function g(){if(24!==i){var e=S.scanner.getToken();if(100===e){if(20===(e=u())){if(10===(e=u())||14===e)return d(),1}else{if(10===e)return d(),1;if(152===e&&S.scanner.lookAhead(function(){var e=S.scanner.scan();return 156!==e&&(41===e||18===e||79===e||S.isKeyword(e))})&&(e=u()),79===e||S.isKeyword(e))if(156===(e=u())){if(10===(e=u()))return d(),1}else if(63===e){if(m(!0))return 1}else{if(27!==e)return 1;e=u()}if(18===e){for(e=u();19!==e&&1!==e;)e=u();19===e&&156===(e=u())&&10===(e=u())&&d()}else 41===e&&127===(e=u())&&(79!==(e=u())&&!S.isKeyword(e)||156!==(e=u())||10!==(e=u())||d())}return 1}}}function m(e,t){void 0===t&&(t=!1);e=e?u():S.scanner.getToken();return 146===e&&(20===(e=u())&&(10===(e=u())||t&&14===e)&&d(),1)}if(e&&function(){for(S.scanner.setText(r),u();1!==S.scanner.getToken();){if(15===S.scanner.getToken()){var e=[S.scanner.getToken()],t=S.scanner.scan();e:for(;S.length(e);){switch(t){case 1:break e;case 100:g();break;case 15:e.push(t);break;case 18:S.length(e)&&e.push(t);break;case 19:!S.length(e)||15===S.lastOrUndefined(e)&&17!==S.scanner.reScanTemplateToken(!1)||e.pop()}t=S.scanner.scan()}u()}f()||g()||function(){if(93===(e=S.scanner.getToken())){if(p(),152===(e=u())&&S.scanner.lookAhead(function(){var e=S.scanner.scan();return 41===e||18===e})&&(e=u()),18===e){for(e=u();19!==e&&1!==e;)e=u();19===e&&156===(e=u())&&10===(e=u())&&d()}else if(41===e)156===(e=u())&&10===(e=u())&&d();else if(100===e){var e=u();if(152===e&&S.scanner.lookAhead(function(){var e=S.scanner.scan();return 79===e||S.isKeyword(e)})&&(e=u()),(79===e||S.isKeyword(e))&&(e=u(),63===e&&m(!0)))return 1}return 1}}()||n&&(m(!1,!0)||function(){var e=S.scanner.getToken();if(79===e&&"define"===S.scanner.getTokenValue()){if(20!==(e=u()))return 1;if(10===(e=u())||14===e){if(27!==(e=u()))return 1;e=u()}if(22!==e)return 1;for(e=u();23!==e&&1!==e;)10!==e&&14!==e||d(),e=u();return 1}}())||u()}S.scanner.setText(void 0)}(),S.processCommentPragmas(o,r),S.processPragmasIntoFields(o,S.noop),l){if(t)for(var y=0,h=t;y<h.length;y++){var v=h[y];s.push(v.ref)}return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:void 0}}var b=void 0;if(t)for(var x=0,D=t;x<D.length;x++)0===(v=D[x]).depth?(b=b||[]).push(v.ref.fileName):s.push(v.ref);return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:b}}}(ts=ts||{}),function(c){var e;function l(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);c.isStringLiteralLike(e)&&(r+=1,t-=2);return c.createTextSpan(r,t)}(i,a)}}function u(e){return{canRename:!1,localizedErrorMessage:c.getLocaleSpecificMessage(e)}}function i(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return c.isLiteralNameOfPropertyDeclarationOrIndexAccess(e);default:return!1}}(e=c.Rename||(c.Rename={})).getRenameInfo=function(e,t,r,n){if(i(r=c.getAdjustedRenameLocation(c.getTouchingPropertyName(t,r)))){n=function(e,t,r,n,i){var a=t.getSymbolAtLocation(e);if(!a){if(c.isStringLiteralLike(e)){var o=c.getContextualTypeFromParentOrAncestorTypeNode(e,t);if(o&&(128&o.flags||1048576&o.flags&&c.every(o.types,function(e){return!!(128&e.flags)})))return l(e.text,e.text,"string","",e,r)}else if(c.isLabelName(e)){var s=c.getTextOfNode(e);return l(s,s,"label","",e,r)}return}o=a.declarations;if(!o||0===o.length)return;if(o.some(function(e){return function(e,t){t=t.getSourceFile();return e.isSourceFileDefaultLibrary(t)&&c.fileExtensionIs(t.fileName,".d.ts")}(n,e)}))return u(c.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(c.isIdentifier(e)&&88===e.originalKeywordKind&&a.parent&&1536&a.parent.flags)return;if(c.isStringLiteralLike(e)&&c.tryGetImportFromModuleSpecifier(e))return i&&i.allowRenameOfImportPath?function(e,t,r){if(!c.isExternalModuleNameRelative(e.text))return u(c.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var n=r.declarations&&c.find(r.declarations,c.isSourceFile);if(!n)return;var i=c.endsWith(e.text,"/index")||c.endsWith(e.text,"/index.js")?void 0:c.tryRemoveSuffix(c.removeFileExtension(n.fileName),"/index"),r=void 0===i?n.fileName:i,n=void 0===i?"module":"directory",i=e.text.lastIndexOf("/")+1,i=c.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;s=c.SymbolDisplay.getSymbolKind(t,a,e),o=c.isImportOrExportSpecifierName(e)||c.isStringOrNumericLiteralLike(e)&&162===e.parent.kind?c.stripQuotes(c.getTextOfIdentifierOrLiteral(e)):void 0,i=o||t.symbolToString(a),o=o||t.getFullyQualifiedName(a);return l(i,o,s,c.SymbolDisplay.getSymbolModifiers(t,a),e,r)}(r,e.getTypeChecker(),t,e,n);if(n)return n}return u(c.Diagnostics.You_cannot_rename_this_element)},e.nodeIsEligibleForRename=i}(ts=ts||{}),function(m){!function(){(m.SmartSelectionRange||(m.SmartSelectionRange={})).getSmartSelectionRange=function(r,n){var e,i={textSpan:m.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},t=n;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||145===e.kind||e===t.questionToken||57===e.kind}),e=p(e,function(e){e=e.kind;return 22===e||163===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 63===e.kind})}if(m.isBindingElement(t))return f(t.getChildren(),function(e){return 63===e.kind});return t.getChildren()}(t);if(!a.length)break;for(var o=0;o<a.length;o++){var s=a[o-1],c=a[o],l=a[o+1];if(m.getTokenPosOfNode(c,n,!0)>r)break e;var u=m.singleOrUndefined(m.getTrailingCommentRanges(n.text,c.end));if(u&&2===u.kind&&function(e,t){_(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;_(r,t)}(u.pos,u.end),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}(n,r,c)){if(m.isBlock(c)||m.isTemplateSpan(c)||m.isTemplateHead(c)||m.isTemplateTail(c)||s&&m.isTemplateHead(s)||m.isVariableDeclarationList(c)&&m.isVariableStatement(t)||m.isSyntaxList(c)&&m.isVariableDeclarationList(t)||m.isVariableDeclaration(c)&&m.isSyntaxList(t)&&1===a.length||m.isJSDocTypeExpression(c)||m.isJSDocSignature(c)||m.isJSDocTypeLiteral(c)){t=c;break}m.isTemplateSpan(t)&&l&&m.isTemplateMiddleOrTemplateTail(l)&&_(c.getFullStart()-"${".length,l.getStart()+"}".length);u=m.isSyntaxList(c)&&function(e){e=e&&e.kind;return 18===e||22===e||20===e||280===e}(s)&&function(e){e=e&&e.kind;return 19===e||23===e||21===e||281===e}(l)&&!m.positionsAreOnSameLine(s.getStart(),l.getStart(),n),s=u?s.getEnd():c.getStart(),l=u?l.getStart():function(e,t){switch(t.kind){case 340:case 338:case 347:case 345:case 342:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}(n,c);m.hasJSDocNodes(c)&&null!==(e=c.jsDoc)&&void 0!==e&&e.length&&_(m.first(c.jsDoc).getStart(),l),_(s,l),(m.isStringLiteral(c)||m.isTemplateLiteral(c))&&_(s+1,l-1),t=c;break}if(o===a.length-1)break e}}return i;function _(e,t){e!==t&&(t=m.createTextSpanFromBounds(e,t),i&&(m.textSpansEqual(t,i.textSpan)||!m.textSpanIntersectsWithPosition(t,r))||(i=__assign({textSpan:t},i&&{parent:i})))}};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(E){!function(e){var t;function _(e,t,r){for(var n=e.getFullStart(),i=e.parent;i;){var a=E.findPrecedingToken(n,t,i,!0);if(a)return E.rangeContainsRange(r,a);i=i.parent}return E.Debug.fail("Could not find preceding token")}function p(e,t,r){var n=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 E.Debug.assert(0<=t&&r.length>t+1),r[t+1]}(e.parent,e,t),argumentIndex:0};t=E.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,r);if(n){var i=n.list,n=n.argumentIndex,e=function(e,t){var r=e.getChildren(),e=E.countWhere(r,function(e){return 27!==e.kind});!t&&0<r.length&&27===E.last(r).kind&&e++;return e}(i,E.isInString(r,t,e));return 0!==n&&E.Debug.assertLessThan(n,e),{list:i,argumentIndex:n,argumentCount:e,argumentsSpan:(e=r,i=(r=i).getFullStart(),r=E.skipTrivia(e.text,r.getEnd(),!1),E.createTextSpan(i,r-i))}}}function d(e,t,r){var n=e.parent;if(E.isCallOrNewExpression(n)){var i=n,a=p(e,t,r);if(a){var o=a.list,s=a.argumentIndex,c=a.argumentCount,l=a.argumentsSpan;return{isTypeParameterList:!!n.typeArguments&&n.typeArguments.pos===o.pos,invocation:{kind:0,node:i},argumentsSpan:l,argumentIndex:s,argumentCount:c}}}else if(E.isNoSubstitutionTemplateLiteral(e)&&E.isTaggedTemplateExpression(n)){if(E.isInsideTemplateLiteral(e,t,r))return g(n,0,r)}else{if(E.isTemplateHead(e)&&210===n.parent.kind){var u=n.parent;return E.Debug.assert(223===n.kind),g(u,s=E.isInsideTemplateLiteral(e,t,r)?0:1,r)}if(E.isTemplateSpan(n)&&E.isTaggedTemplateExpression(n.parent.parent)){c=n,u=n.parent.parent;if(!E.isTemplateTail(e)||E.isInsideTemplateLiteral(e,t,r))return g(u,s=function(e,t,r,n){if(E.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),E.isTemplateLiteralToken(t))return E.isInsideTemplateLiteral(t,r,n)?0:e+2;return e+1}(c.parent.templateSpans.indexOf(c),e,t,r),r)}else{if(E.isJsxOpeningLikeElement(n)){var _=n.attributes.pos,d=E.skipTrivia(r.text,n.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:E.createTextSpan(_,d-_),argumentIndex:0,argumentCount:1}}d=E.getPossibleTypeArgumentsInfo(e,r);if(d){_=d.called,d=d.nTypeArguments;return{isTypeParameterList:!0,invocation:i={kind:1,called:_},argumentsSpan:l=E.createTextSpanFromBounds(_.getStart(r),e.end),argumentIndex:d,argumentCount:d+1}}}}}function f(e){return E.isBinaryExpression(e.left)?f(e.left)+1:2}function g(e,t,r){var n=E.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&E.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();223===r.kind&&0===E.last(r.templateSpans).literal.getFullWidth()&&(e=E.skipTrivia(t.text,e,!1));return E.createTextSpan(n,e-n)}(e,r),argumentIndex:t,argumentCount:n}}function D(e){return 0===e.kind?E.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=E.findTokenOnLeftOfPosition(c,t);if(a){var o=!!r&&"characterTyped"===r.kind;if(!o||!E.isInString(c,t,a)&&!E.isInComment(c,t)){var r=!!r&&"invoked"===r.kind,l=function(e,i,a,o,t){for(var r=function(e){E.Debug.assert(E.rangeContainsRange(e.parent,e),"Not a subspan",function(){return"Child: ".concat(E.Debug.formatSyntaxKind(e.kind),", parent: ").concat(E.Debug.formatSyntaxKind(e.parent.kind))});var t,r,n,n=function(e,t,r,n){var i=function(e,t,r,n){if(20!==e.kind&&27!==e.kind)return;var i=e.parent;switch(i.kind){case 212:case 169:case 213:case 214:var a=p(e,r,t);if(!a)return;var o=a.argumentIndex,s=a.argumentCount,c=a.argumentsSpan,a=E.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return a&&{contextualType:a,argumentIndex:o,argumentCount:s,argumentsSpan:c};case 221:o=function e(t){return E.isBinaryExpression(t.parent)?e(t.parent):t}(i),s=n.getContextualType(o),c=20===e.kind?0:f(i)-1,o=f(o);return s&&{contextualType:s,argumentIndex:c,argumentCount:o,argumentsSpan:E.createTextSpanFromNode(i)};default:return}}(e,r,t,n);if(!i)return;var a=i.contextualType,r=i.argumentIndex,t=i.argumentCount,n=i.argumentsSpan,i=a.getNonNullableType(),a=i.symbol;if(void 0===a)return;i=E.lastOrUndefined(i.getCallSignatures());return void 0===i?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:i,node:e,symbol:function(e){return"__type"===e.name&&E.firstDefined(e.declarations,function(e){return E.isFunctionTypeNode(e)?e.parent.symbol:void 0})||e}(a)},argumentsSpan:n,argumentIndex:r,argumentCount:t}}(t=e,r=i,n=a,o)||d(t,r,n);if(n)return{value:n}},n=e;!E.isSourceFile(n)&&(t||!E.isBlock(n));n=n.parent){var s=r(n);if("object"==typeof s)return s.value}return}(a,t,c,i,r);if(l){n.throwIfCancellationRequested();var u=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(!E.isCallOrNewExpression(t))return!1;var n=t.getChildren(r);switch(e.kind){case 20:return E.contains(n,e);case 27:var i=E.findContainingList(e);return!!i&&E.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,E.isIdentifier(c)?c.parent:c))return;if(0!==(s=E.getPossibleGenericSignatures(c,o,t)).length)return{kind:0,candidates:s,resolvedSignature:E.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 E.Debug.assertNever(a)}}(l,i,c,a,o);return n.throwIfCancellationRequested(),u?i.runWithCancellationToken(n,function(e){return 0===u.kind?m(u.candidates,u.resolvedSignature,l,c,e):(t=u.symbol,n=c,i=e,a=(r=l).argumentCount,o=r.argumentsSpan,s=r.invocation,e=r.argumentIndex,(r=i.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t))?{items:[function(e,t,r,n,i){var a=E.symbolToDisplayParts(r,e),o=E.createPrinter({removeComments:!0}),s=t.map(function(e){return k(e,r,n,i,o)}),t=e.getDocumentationComment(r),e=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:__spreadArray(__spreadArray([],a,!0),[E.punctuationPart(29)],!1),suffixDisplayParts:[E.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}):E.isSourceFileJS(c)?function(n,e,i){if(2===n.invocation.kind)return;var t=D(n.invocation),a=E.isPropertyAccessExpression(t)?t.name.text:void 0,o=e.getTypeChecker();return void 0===a?void 0:E.firstDefined(e.getSourceFiles(),function(r){return E.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)})})})}(l,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,l=r.invocation,r=r.argumentIndex,u=S(l),_=2===l.kind?l.symbol:i.getSymbolAtLocation(D(l))||a&&(null===(_=t.declaration)||void 0===_?void 0:_.symbol),d=_?E.symbolToDisplayParts(i,_,a?n:void 0,void 0):E.emptyArray,p=E.map(e,function(e){return function(l,u,e,_,d,t){t=(e?function(e,r,n,i){var t=(e.target||e).typeParameters,a=E.createPrinter({removeComments:!0}),o=(t||E.emptyArray).map(function(e){return k(e,r,n,i,a)}),s=e.thisParameter?[r.symbolToParameterDeclaration(e.thisParameter,n,T)]:[];return r.getExpandedParameters(e).map(function(e){var t=E.factory.createNodeArray(__spreadArray(__spreadArray([],s,!0),E.map(e,function(e){return r.symbolToParameterDeclaration(e,n,T)}),!0)),e=E.mapToDisplayParts(function(e){a.writeList(2576,t,i,e)});return{isVariadic:!1,parameters:o,prefix:[E.punctuationPart(29)],suffix:__spreadArray([E.punctuationPart(31)],e,!0)}})}:function(r,c,l,u){var _=E.createPrinter({removeComments:!0}),t=E.mapToDisplayParts(function(e){var t;r.typeParameters&&r.typeParameters.length&&(t=E.factory.createNodeArray(r.typeParameters.map(function(e){return c.typeParameterToDeclaration(e,l,T)})),_.writeList(53776,t,u,e))}),e=c.getExpandedParameters(r),n=c.hasEffectiveRestParameter(r)?1===e.length?function(e){return!0}:function(e){return!!(e.length&&32768&e[e.length-1].checkFlags)}:function(e){return!1};return e.map(function(e){return{isVariadic:n(e),parameters:e.map(function(e){return r=e,n=c,i=l,a=u,o=_,t=E.mapToDisplayParts(function(e){var t=n.symbolToParameterDeclaration(r,i,T);o.writeNode(4,t,a,e)}),s=n.isOptionalParameter(r.valueDeclaration),e=!!(32768&r.checkFlags),{name:r.name,documentation:r.getDocumentationComment(n),displayParts:t,isOptional:s,isRest:e};var r,n,i,a,o,t,s}),prefix:__spreadArray(__spreadArray([],t,!0),[E.punctuationPart(20)],!1),suffix:[E.punctuationPart(21)]}})})(l,_,d,t);return E.map(t,function(e){var r,n,i,t=e.isVariadic,a=e.parameters,o=e.prefix,s=e.suffix,c=__spreadArray(__spreadArray([],u,!0),o,!0),e=__spreadArray(__spreadArray([],s,!0),(r=l,n=d,i=_,E.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)})),!0),o=l.getDocumentationComment(_),s=l.getJsDocTags();return{isVariadic:t,prefixDisplayParts:c,suffixDisplayParts:e,separatorDisplayParts:C,parameters:a,documentation:o,tags:s}})}(e,d,o,i,u,n)});0!==r&&E.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}E.Debug.assert(-1!==f);a={items:E.flatMapToMutable(p,E.identity),applicableSpan:c,selectedItemIndex:f,argumentIndex:r,argumentCount:s},c=a.items[f];return c.isVariadic&&(-1<(r=E.findIndex(c.parameters,function(e){return!!e.isRest}))&&r<c.parameters.length-1?a.argumentIndex=c.parameters.length:a.argumentIndex=Math.min(a.argumentIndex,c.parameters.length-1)),a}var C=[E.punctuationPart(27),E.spacePart()];function k(r,n,i,a,o){var e=E.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,isRest:!1}}}(E.SignatureHelp||(E.SignatureHelp={}))}(ts=ts||{}),function(b){function x(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(b.InlayHints||(b.InlayHints={})).provideInlayHints=function(e){var u=e.file,t=e.program,r=e.span,n=e.cancellationToken,_=e.preferences,d=u.text,p=t.getCompilerOptions(),f=t.getTypeChecker(),g=[];return function e(t){if(!t||0===t.getFullWidth())return;switch(t.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 169:case 214:n.throwIfCancellationRequested()}if(!b.textSpanIntersectsWith(r,t.pos,t.getFullWidth()))return;if(b.isTypeNode(t))return;_.includeInlayVariableTypeHints&&b.isVariableDeclaration(t)||_.includeInlayPropertyDeclarationTypeHints&&b.isPropertyDeclaration(t)?c(t):_.includeInlayEnumMemberValueHints&&b.isEnumMember(t)?o(t):x(_)&&(b.isCallExpression(t)||b.isNewExpression(t))?l(t):(_.includeInlayFunctionParameterTypeHints&&b.isFunctionLikeDeclaration(t)&&b.hasContextSensitiveParameters(t)&&y(t),_.includeInlayFunctionLikeReturnTypeHints&&i(t)&&m(t));return b.forEachChild(t,e)}(u),g;function i(e){return b.isArrowFunction(e)||b.isFunctionExpression(e)||b.isFunctionDeclaration(e)||b.isMethodDeclaration(e)||b.isGetAccessorDeclaration(e)}function a(e,t){g.push({text:": ".concat(h(e,30)),position:t,kind:"Type",whitespaceBefore:!0})}function o(e){var t;e.initializer||void 0!==(t=f.getConstantValue(e))&&(t=t.toString(),e=e.end,g.push({text:"= ".concat(h(t,30)),position:e,kind:"Enum",whitespaceBefore:!0}))}function s(e){return e.symbol&&1536&e.symbol.flags}function c(e){var t;e.initializer&&!b.isBindingPattern(e.name)&&(b.getEffectiveTypeAnnotationNode(e)||(s(t=f.getTypeAtLocation(e))||(t=v(t))&&a(t,e.name.end)))}function l(e){var t=e.arguments;if(t&&t.length){var r=[],n=f.getResolvedSignatureForSignatureHelp(e,r);if(n&&r.length)for(var i=0;i<t.length;++i){var a,o,s,c=t[i],l=b.skipParentheses(c);"literals"===_.includeInlayParameterNameHints&&!function(e){switch(e.kind){case 219:var t=e.operand;return b.isLiteralExpression(t)||b.isIdentifier(t)&&b.isInfinityOrNaNString(t.escapedText);case 110:case 95:case 104:case 14:case 223:return!0;case 79:t=e.escapedText;return"undefined"===t||b.isInfinityOrNaNString(t)}return b.isLiteralExpression(e)}(l)||(o=f.getParameterIdentifierNameAtPosition(n,i))&&(a=o[0],o=o[1],!_.includeInlayParameterNameHintsWhenArgumentMatchesName&&function(e,t){if(b.isIdentifier(e))return e.text===t;if(b.isPropertyAccessExpression(e))return e.name.text===t;return!1}(l,a)&&!o||function(e,t){if(!b.isIdentifierText(t,p.target,b.getLanguageVariant(u.scriptKind)))return!1;e=b.getLeadingCommentRanges(d,e.pos);if(null==e||!e.length)return!1;var r=function(e){return new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$"))}(t);return b.some(e,function(e){return r.test(d.substring(e.pos,e.end))})}(l,s=b.unescapeLeadingUnderscores(a))||(a=s,c=c.getStart(),o=o,g.push({text:"".concat(o?"...":"").concat(h(a,30),":"),position:c,kind:"Parameter",whitespaceAfter:!0})))}}}function m(e){var t;b.isArrowFunction(e)&&!b.findChildOfKind(e,20,u)||b.getEffectiveReturnTypeNode(e)||!e.body||(t=f.getSignatureFromDeclaration(e))&&(s(t=f.getReturnTypeOfSignature(t))||(t=v(t))&&a(t,function(e){var t=b.findChildOfKind(e,21,u);if(t)return t.end;return e.parameters.end}(e)))}function y(e){var t=f.getSignatureFromDeclaration(e);if(t)for(var r=0;r<e.parameters.length&&r<t.parameters.length;++r){var n,i=e.parameters[r];b.getEffectiveTypeAnnotationNode(i)||(n=function(e){var t=e.valueDeclaration;if(!t||!b.isParameter(t))return;t=f.getTypeOfSymbolAtLocation(e,t);if(s(t))return;return v(t)}(t.parameters[r]))&&a(n,(i.questionToken||i.name).end)}}function h(e,t){return e.length>t?e.substr(0,t-"...".length)+"...":e}function v(r){var n=b.createPrinter({removeComments:!0});return b.usingSingleLineStringWriter(function(e){var t=f.typeToTypeNode(r,void 0,71286784,e);b.Debug.assertIsDefined(t,"should always get typenode"),n.writeNode(4,t,u,e)})}}}(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=u(t.fileName);if(!r)return;var r=l(t.fileName).getSourcePosition(t);return r&&r!==t?e(r)||r:void 0},tryGetGeneratedPosition:function(e){if(d.isDeclarationFileName(e.fileName))return;var t=u(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=l(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 l(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 u(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):u(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 l=c[s],u=d.getNormalizedAbsolutePath(l,d.getDirectoryPath(t)),l=n(u,o);if(d.isString(l))return p(e,l,u);if(void 0!==l)return l||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,t){return!!_.forEachReturnStatement(e,function(e){return a(e,t)})}(n.body,t)&&i(n,t)&&!d.has(c(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,t){e=t.getSignatureFromDeclaration(e),e=e?t.getReturnTypeOfSignature(e):void 0;return!!e&&!!t.getPromisedTypeOfPromise(e)}function a(e,t){return _.isReturnStatement(e)&&!!e.expression&&r(e.expression,t)}function r(e,t){if(!n(e)||!o(e)||!e.arguments.every(function(e){return s(e,t)}))return!1;for(var r=e.expression.expression;n(r)||_.isPropertyAccessExpression(r);)if(_.isCallExpression(r)){if(!o(r)||!r.arguments.every(function(e){return s(e,t)}))return!1;r=r.expression.expression}else r=r.expression;return!0}function n(e){return _.isCallExpression(e)&&(_.hasPropertyAccessExpressionWithName(e,"then")||_.hasPropertyAccessExpressionWithName(e,"catch")||_.hasPropertyAccessExpressionWithName(e,"finally"))}function o(e){var t=e.expression.name.text,t="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>t)&&(e.arguments.length<t||(1==t||_.some(e.arguments,function(e){return 104===e.kind||_.isIdentifier(e)&&"undefined"===e.text})))}function s(e,t){switch(e.kind){case 256:case 213:if(1&_.getFunctionFlags(e))return!1;case 214:d.set(c(e),!0);case 104:return!0;case 79:case 206:var r=t.getSymbolAtLocation(e);return r?t.isUndefinedSymbol(r)||_.some(_.skipAlias(r,t).declarations,function(e){return _.isFunctionLike(e)||_.hasInitializer(e)&&!!e.initializer&&_.isFunctionLike(e.initializer)}):!1;default:return!1}}function c(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function f(e,t){var r,n;if(213!==e.kind)return 256===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)}function g(e){switch(e.kind){case 256:case 169:case 213:case 214:return!0;default:return!1}}_.computeSuggestionDiagnostics=function(n,e,t){e.getSemanticDiagnostics(n,t);var r,i=[],a=e.getTypeChecker();n.impliedNodeFormat!==_.ModuleKind.CommonJS&&!_.fileExtensionIsOneOf(n.fileName,[".cts",".cjs"])&&n.commonJsModuleIndicator&&(_.programContainsEsModules(e)||_.compilerOptionsIndicateEsModules(e.getCompilerOptions()))&&n.statements.some(function(e){switch(e.kind){case 237: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 238: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_ES_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)))}g(t)&&p(t,a,i);t.forEachChild(e)}(n),_.getAllowSyntheticDefaultImports(e.getCompilerOptions()))for(var s=0,c=n.imports;s<c.length;s++){var l=c[s],u=function(e){switch(e.kind){case 266:var t=e.importClause,r=e.moduleSpecifier;return t&&!t.name&&t.namedBindings&&268===t.namedBindings.kind&&_.isStringLiteral(r)?t.namedBindings.name:void 0;case 265:return e.name;default:return}}(_.importFromModuleSpecifier(l));u&&((l=(l=_.getResolvedModule(n,l.text,_.getModeForUsageLocation(n,l)))&&e.getSourceFile(l.resolvedFileName))&&l.externalModuleIndicator&&!0!==l.externalModuleIndicator&&_.isExportAssignment(l.externalModuleIndicator)&&l.externalModuleIndicator.isExportEquals&&i.push(_.createDiagnosticForNode(u,_.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})},_.returnsPromise=i,_.isReturnStatementWithFixablePromiseHandler=a,_.isFixablePromiseHandler=r,_.canBeConvertedToAsync=g}(ts=ts||{}),function(U){var e,V;function q(e,t,r){e=W(e,t,r);if(""!==e)return e;r=U.getCombinedLocalAndExportSymbolFlags(t);return 32&r?U.getDeclarationOfKind(t,226)?"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 W(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(108===r.kind&&U.isExpression(r)||U.isThisInTypeQuery(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){if(98311&e.getFlags())return"property"});return n?n:e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property"}return"property"}return""}function n(e){if(e.declarations&&e.declarations.length){var t=e.declarations,e=t[0],t=t.slice(1),t=U.length(t)&&U.isDeprecatedDeclaration(e)&&U.some(t,function(e){return!U.isDeprecatedDeclaration(e)})?8192:0,t=U.getNodeModifiers(e,t);if(t)return t.split(",")}return[]}function i(e){return!e.parent&&U.forEach(e.declarations,function(e){if(213===e.kind)return!0;if(254!==e.kind&&256!==e.kind)return!1;for(var t=e.parent;!U.isFunctionBlock(t);t=t.parent)if(305===t.kind||262===t.kind)return!1;return!0})}e=U.SymbolDisplay||(U.SymbolDisplay={}),V=70246400,e.getSymbolKind=q,e.getSymbolModifiers=function(e,t){if(!t)return"";var r=new U.Set(n(t));return 2097152&t.flags&&((e=e.getAliasedSymbol(t))!==t&&U.forEach(n(e),function(e){r.add(e)})),16777216&t.flags&&r.add("optional"),0<r.size?U.arrayFrom(r.values()).join(","):""},e.getSymbolDisplayPartsDocumentationAndSymbolKind=function e(i,r,n,a,t,o,s){void 0===o&&(o=U.getMeaningFromLocation(t));var c,l,u,_,d,p,f,g=[],m=[],y=[],h=U.getCombinedLocalAndExportSymbolFlags(r),v=1&o?W(i,r,t):"",b=!1,x=108===t.kind&&U.isInExpressionContext(t)||U.isThisInTypeQuery(t),D=!1;if(108===t.kind&&!x)return{displayParts:[U.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&h||2097152&h){if("getter"===v||"setter"===v)if(F=U.find(r.declarations,function(e){return e.name===t}))switch(F.kind){case 172:v="getter";break;case 173:v="setter";break;default:U.Debug.assertNever(F)}else v="property";var S=void 0,T=x?i.getTypeAtLocation(t):i.getTypeOfSymbolAtLocation(r,t);!t.parent||206!==t.parent.kind||((k=t.parent.name)===t||k&&0===k.getFullWidth())&&(t=t.parent);var C,k=void 0;if(U.isCallOrNewExpression(t)?k=t:(U.isCallExpressionTarget(t)||U.isNewExpressionTarget(t)||t.parent&&(U.isJsxOpeningLikeElement(t.parent)||U.isTaggedTemplateExpression(t.parent))&&U.isFunctionLike(r.valueDeclaration))&&(k=t.parent),k){S=i.getResolvedSignature(k);var E=209===k.kind||U.isCallExpression(k)&&106===k.expression.kind,N=E?T.getConstructSignatures():T.getCallSignatures();if(!S||U.contains(N,S.target)||U.contains(N,S)||(S=N.length?N[0]:void 0),S){switch(E&&32&h?(v="constructor",j(T.symbol,v)):2097152&h?(J(v="alias"),g.push(U.spacePart()),E&&(4&S.flags&&(g.push(U.keywordPart(126)),g.push(U.spacePart())),g.push(U.keywordPart(103)),g.push(U.spacePart())),B(r)):j(r,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(U.punctuationPart(58)),g.push(U.spacePart()),16&U.getObjectFlags(T)||!T.symbol||(U.addRange(g,U.symbolToDisplayParts(i,T.symbol,a,void 0,5)),g.push(U.lineBreakPart())),E&&(4&S.flags&&(g.push(U.keywordPart(126)),g.push(U.spacePart())),g.push(U.keywordPart(103)),g.push(U.spacePart())),z(S,N,262144);break;default:z(S,N)}b=!0,D=1<N.length}}else(U.isNameOfFunctionDeclaration(t)&&!(98304&h)||134===t.kind&&171===t.parent.kind)&&(C=t.parent,r.declarations&&U.find(r.declarations,function(e){return e===(134===t.kind?C.parent:C)})&&(N=171===C.kind?T.getNonNullableType().getConstructSignatures():T.getNonNullableType().getCallSignatures(),S=i.isImplementationOfOverload(C)?N[0]:i.getSignatureFromDeclaration(C),171===C.kind?(v="constructor",j(T.symbol,v)):j(174!==C.kind||2048&T.symbol.flags||4096&T.symbol.flags?r:T.symbol,v),S&&z(S,N),b=!0,D=1<N.length))}if(32&h&&!b&&!x&&(L(),U.getDeclarationOfKind(r,226)?J("local class"):g.push(U.keywordPart(84)),g.push(U.spacePart()),B(r),K(r,n)),64&h&&2&o&&(M(),g.push(U.keywordPart(118)),g.push(U.spacePart()),B(r),K(r,n)),524288&h&&2&o&&(M(),g.push(U.keywordPart(152)),g.push(U.spacePart()),B(r),K(r,n),g.push(U.spacePart()),g.push(U.operatorPart(63)),g.push(U.spacePart()),U.addRange(g,U.typeToDisplayParts(i,U.isConstTypeReference(t.parent)?i.getTypeAtLocation(t.parent):i.getDeclaredTypeOfSymbol(r),a,8388608))),384&h&&(M(),U.some(r.declarations,function(e){return U.isEnumDeclaration(e)&&U.isEnumConst(e)})&&(g.push(U.keywordPart(85)),g.push(U.spacePart())),g.push(U.keywordPart(92)),g.push(U.spacePart()),B(r)),1536&h&&!x&&(M(),A=(F=U.getDeclarationOfKind(r,261))&&F.name&&79===F.name.kind,g.push(U.keywordPart(A?142:141)),g.push(U.spacePart()),B(r)),262144&h&&2&o)if(M(),g.push(U.punctuationPart(20)),g.push(U.textPart("type parameter")),g.push(U.punctuationPart(21)),g.push(U.spacePart()),B(r),r.parent)R(),B(r.parent,a),K(r.parent,a);else{var A=U.getDeclarationOfKind(r,163);if(void 0===A)return U.Debug.fail();(F=A.parent)&&(U.isFunctionLikeKind(F.kind)?(R(),S=i.getSignatureFromDeclaration(F),175===F.kind?(g.push(U.keywordPart(103)),g.push(U.spacePart())):174!==F.kind&&F.name&&B(F.symbol),U.addRange(g,U.signatureToDisplayParts(i,S,n,32))):259===F.kind&&(R(),g.push(U.keywordPart(152)),g.push(U.spacePart()),B(F.symbol),K(F.symbol,n)))}if(8&h&&(j(r,v="enum member"),299!==(null==(F=null===(l=r.declarations)||void 0===l?void 0:l[0])?void 0:F.kind)||void 0!==(u=i.getConstantValue(F))&&(g.push(U.spacePart()),g.push(U.operatorPart(63)),g.push(U.spacePart()),g.push(U.displayPart(U.getTextOfConstantValue(u),"number"==typeof u?U.SymbolDisplayPartKind.numericLiteral:U.SymbolDisplayPartKind.stringLiteral)))),2097152&r.flags){if(M(),b||(l=i.getAliasedSymbol(r))!==r&&l.declarations&&0<l.declarations.length&&(d=l.declarations[0],d=(u=U.getNameOfDeclaration(d))?(_=U.isModuleWithStringLiteralName(d)&&U.hasSyntacticModifier(d,2),_="default"!==r.name&&!_,o=e(i,l,U.getSourceFileOfNode(d),d,u,o,_?r:l),g.push.apply(g,o.displayParts),g.push(U.lineBreakPart()),_=o.documentation,o.tags):(_=l.getContextualDocumentationComment(d,i),l.getJsDocTags(i))),r.declarations)switch(r.declarations[0].kind){case 264:g.push(U.keywordPart(93)),g.push(U.spacePart()),g.push(U.keywordPart(142));break;case 271:g.push(U.keywordPart(93)),g.push(U.spacePart()),g.push(U.keywordPart(r.declarations[0].isExportEquals?63:88));break;case 275:g.push(U.keywordPart(93));break;default:g.push(U.keywordPart(100))}g.push(U.spacePart()),B(r),U.forEach(r.declarations,function(e){if(265===e.kind)return U.isExternalModuleImportEqualsDeclaration(e)?(g.push(U.spacePart()),g.push(U.operatorPart(63)),g.push(U.spacePart()),g.push(U.keywordPart(146)),g.push(U.punctuationPart(20)),g.push(U.displayPart(U.getTextOfNode(U.getExternalModuleImportEqualsDeclarationExpression(e)),U.SymbolDisplayPartKind.stringLiteral)),g.push(U.punctuationPart(21))):(e=i.getSymbolAtLocation(e.moduleReference))&&(g.push(U.spacePart()),g.push(U.operatorPart(63)),g.push(U.spacePart()),B(e,a)),!0})}if(b||(""!==v?T&&(x?(M(),g.push(U.keywordPart(108))):j(r,v),"property"===v||"getter"===v||"setter"===v||"JSX attribute"===v||3&h||"local var"===v||x?(g.push(U.punctuationPart(58)),g.push(U.spacePart()),T.symbol&&262144&T.symbol.flags?(p=U.mapToDisplayParts(function(e){var t=i.typeParameterToDeclaration(T,a,V);O().writeNode(4,t,U.getSourceFileOfNode(U.getParseTreeNode(a)),e)}),U.addRange(g,p)):U.addRange(g,U.typeToDisplayParts(i,T,a)),r.target&&r.target.tupleLabelDeclaration&&(p=r.target.tupleLabelDeclaration,U.Debug.assertNode(p.name,U.isIdentifier),g.push(U.spacePart()),g.push(U.punctuationPart(20)),g.push(U.textPart(U.idText(p.name))),g.push(U.punctuationPart(21)))):(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v)&&(N=T.getNonNullableType().getCallSignatures()).length&&(z(N[0],N),D=1<N.length)):v=q(i,r,t)),0!==m.length||D||(m=r.getContextualDocumentationComment(a,i)),0===m.length&&4&h&&r.parent&&r.declarations&&U.forEach(r.parent.declarations,function(e){return 305===e.kind}))for(var F,P=0,w=r.declarations;P<w.length;P++)if((F=w[P]).parent&&221===F.parent.kind){var I=i.getSymbolAtLocation(F.parent.right);if(I&&(m=I.getDocumentationComment(i),y=I.getJsDocTags(i),0<m.length))break}return 0===m.length&&U.isIdentifier(t)&&r.valueDeclaration&&U.isBindingElement(r.valueDeclaration)&&(h=(F=r.valueDeclaration).parent,U.isIdentifier(F.name)&&U.isObjectBindingPattern(h)&&(f=U.getTextOfIdentifierOrLiteral(F.name),h=i.getTypeAtLocation(h),m=U.firstDefined(h.isUnion()?h.types:[h],function(e){return(e=e.getProperty(f))?e.getDocumentationComment(i):void 0})||U.emptyArray)),0!==y.length||D||(y=r.getContextualJsDocTags(a,i)),0===m.length&&_&&(m=_),0===y.length&&d&&(y=d),{displayParts:g,documentation:m,symbolKind:v,tags:0===y.length?void 0:y};function O(){return c=c||U.createPrinter({removeComments:!0})}function M(){g.length&&g.push(U.lineBreakPart()),L()}function L(){s&&(J("alias"),g.push(U.spacePart()))}function R(){g.push(U.spacePart()),g.push(U.keywordPart(101)),g.push(U.spacePart())}function B(e,t){s&&e===r&&(e=s),t=U.symbolToDisplayParts(i,e,t||n,void 0,7),U.addRange(g,t),16777216&r.flags&&g.push(U.punctuationPart(57))}function j(e,t){M(),t&&(J(t),e&&!U.some(e.declarations,function(e){return U.isArrowFunction(e)||(U.isFunctionExpression(e)||U.isClassExpression(e))&&!e.name})&&(g.push(U.spacePart()),B(e)))}function J(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void g.push(U.textOrKeywordPart(e));default:return g.push(U.punctuationPart(20)),g.push(U.textOrKeywordPart(e)),void g.push(U.punctuationPart(21))}}function z(e,t,r){void 0===r&&(r=0),U.addRange(g,U.signatureToDisplayParts(i,e,a,32|r)),1<t.length&&(g.push(U.spacePart()),g.push(U.punctuationPart(20)),g.push(U.operatorPart(39)),g.push(U.displayPart((t.length-1).toString(),U.SymbolDisplayPartKind.numericLiteral)),g.push(U.spacePart()),g.push(U.textPart(2===t.length?"overload":"overloads")),g.push(U.punctuationPart(21))),m=e.getDocumentationComment(i),y=e.getJsDocTags(),1<t.length&&0===m.length&&0===y.length&&(m=t[0].getDocumentationComment(i),y=t[0].getJsDocTags())}function K(r,n){var e=U.mapToDisplayParts(function(e){var t=i.symbolToTypeParameterDeclarations(r,n,V);O().writeList(53776,t,U.getSourceFileOfNode(U.getParseTreeNode(n)),e)});U.addRange(g,e)}}}(ts=ts||{}),function(g){function a(e,t){var r,n=[],i=t.compilerOptions?m(t.compilerOptions,n):{},a=g.getDefaultCompilerOptions();for(r in a)g.hasProperty(a,r)&&void 0===i[r]&&(i[r]=a[r]);for(var o=0,s=g.transpileOptionValueCompilerOptions;o<s.length;o++){var c=s[o];i[c.name]=c.transpileOptionValue}i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;var l,u,_=g.getNewLineCharacter(i),d={getSourceFile:function(e){return e===g.normalizePath(p)?f:void 0},writeFile:function(e,t){g.fileExtensionIs(e,".map")?(g.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(g.Debug.assertEqual(l,void 0,"Unexpected multiple outputs, file:",e),l=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return _},fileExists:function(e){return e===p},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},p=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=g.createSourceFile(p,e,{languageVersion:g.getEmitScriptTarget(i),impliedNodeFormat:g.getImpliedNodeFormatForFile(g.toPath(p,"",d.getCanonicalFileName),void 0,d,i),setExternalModuleIndicator:g.getSetExternalModuleIndicator(i)});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new g.Map(g.getEntries(t.renamedDependencies)));d=g.createProgram([p],i,d);return t.reportDiagnostics&&(g.addRange(n,d.getSyntacticDiagnostics(f)),g.addRange(n,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===l?g.Debug.fail("Output generation failed"):{outputText:l,diagnostics:n,sourceMapText:u}}var i;function m(r,n){i=i||g.filter(g.optionDeclarations,function(e){return"object"==typeof e.type&&!g.forEachEntry(e.type,function(e){return"number"!=typeof e})}),r=g.cloneCompilerOptions(r);for(var e=0,t=i;e<t.length;e++)!function(e){var t;g.hasProperty(r,e.name)&&(t=r[e.name],g.isString(t)?r[e.name]=g.parseCustomTypeOption(e,t,n):g.forEachEntry(e.type,function(e){return e===t})||n.push(g.createCompilerDiagnosticForInvalidCustomType(e)))}(t[e]);return r}g.transpileModule=a,g.transpile=function(e,t,r,n,i){return i=a(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!n,moduleName:i}),g.addRange(n,i.diagnostics),i.outputText},g.fixupCompilerOptions=m}(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,l,u=!0,n=n({advance:function(){_=void 0,a.getStartPos()!==r?u=!!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 71:case 72: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 285:case 280:case 281:case 279:return g.isKeyword(e.kind)||79===e.kind}return!1}(e)?4:function(e){return g.isJsxText(e)}(e)?5:function(e){return e.parent&&g.isJsxAttribute(e.parent)&&e.parent.initializer===e}(e)?6:0;if(_&&t===l)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(l=0,t){case 1:if(31!==r)break;l=1;var n=a.reScanGreaterToken();return g.Debug.assert(e.kind===n),n;case 2:if(function(e){return 43===e||68===e}(r)){l=2;n=a.reScanSlashToken();return g.Debug.assert(e.kind===n),n}break;case 3:if(19===r)return l=3,a.reScanTemplateToken(!1);break;case 4:return l=4,a.scanJsxIdentifier();case 5:return l=5,a.reScanJsxToken(!1);case 6:return l=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 u},skipToEndOf:function(e){a.setTextPos(e.end),c=a.getStartPos(),l=void 0,_=void 0,u=!1,o=void 0,s=void 0},skipToStartOf:function(e){a.setTextPos(e.pos),c=a.getStartPos(),l=void 0,_=void 0,u=!1,o=void 0,s=void 0},getStartPos:function(){var e;return null!==(e=null==_?void 0:_.token.pos)&&void 0!==e?e:a.getTokenPos()}}),_=void 0;return a.setText(void 0),n;function d(){var e=_?_.token.kind:a.getToken();return 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 242===e.contextNode.kind}function C(e){return!T(e)}function k(e){switch(e.contextNode.kind){case 221:return 27!==e.contextNode.operatorToken.kind;case 222:case 189:case 229:case 275:case 270:case 177:case 187:case 188:return!0;case 203:case 259:case 265:case 271:case 254:case 164:case 299:case 167:case 166:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 243:case 163:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 244:return 160===e.currentTokenSpan.kind||160===e.nextTokenSpan.kind}return!1}function E(e){return!k(e)}function N(e){return!A(e)}function A(e){e=e.contextNode.kind;return 167===e||166===e||164===e||254===e||p.isFunctionLikeKind(e)}function F(e){return 222===e.contextNode.kind||189===e.contextNode.kind}function P(e){return e.TokensAreOnSameLine()||M(e)}function w(e){return 201===e.contextNode.kind||195===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 235:case 263:case 205:case 262:return!0}return!1}function L(e){switch(e.contextNode.kind){case 256:case 169:case 168:case 172:case 173:case 174:case 213:case 171:case 214:case 258:return!0}return!1}function R(e){return!L(e)}function B(e){return 256===e.contextNode.kind||213===e.contextNode.kind}function j(e){return n(e.contextNode)}function n(e){switch(e.kind){case 257:case 226:case 258:case 260:case 182:case 261:case 272:case 273:case 266:case 269:return!0}return!1}function J(e){switch(e.currentTokenParent.kind){case 257:case 261:case 260:case 292:case 262:case 249:return!0;case 235:var t=e.currentTokenParent.parent;if(!t||214!==t.kind&&213!==t.kind)return!0}return!1}function z(e){switch(e.contextNode.kind){case 239:case 249:case 242:case 243:case 244:case 241:case 252:case 240:case 248:case 292:return!0;default:return!1}}function K(e){return 205===e.contextNode.kind}function U(e){return 208===e.contextNode.kind||209===e.contextNode.kind}function V(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 214===e.contextNode.kind}function G(e){return 200===e.contextNode.kind}function Q(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function X(e){return 11!==e.contextNode.kind}function Y(e){return 278!==e.contextNode.kind&&282!==e.contextNode.kind}function Z(e){return 288===e.contextNode.kind||287===e.contextNode.kind}function $(e){return 285===e.nextTokenParent.kind}function ee(e){return 285===e.contextNode.kind}function te(e){return 279===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 165===e.kind}function ie(e){return 255===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function ae(e){return 2!==e.formattingRequestKind}function oe(e){return 261===e.contextNode.kind}function se(e){return 182===e.contextNode.kind}function ce(e){return 175===e.contextNode.kind}function a(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 178:case 211:case 259:case 257:case 226:case 258:case 256:case 213:case 214:case 169:case 168:case 174:case 175:case 208:case 209:case 228:return!0;default:return!1}}function le(e){return a(e.currentTokenSpan,e.currentTokenParent)||a(e.nextTokenSpan,e.nextTokenParent)}function ue(e){return 211===e.contextNode.kind}function _e(e){return 114===e.currentTokenSpan.kind&&217===e.currentTokenParent.kind}function de(e){return 224===e.contextNode.kind&&void 0!==e.contextNode.expression}function pe(e){return 230===e.contextNode.kind}function fe(e){return!function(e){switch(e.contextNode.kind){case 239:case 242:case 243:case 244:case 240:case 241: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:234!==t&&26!==t&&(258===e.contextNode.kind||259===e.contextNode.kind?!p.isPropertySignature(e.currentTokenParent)||!!e.currentTokenParent.type||20!==t:p.isPropertyDeclaration(e.currentTokenParent)?!e.currentTokenParent.initializer:242!==e.currentTokenParent.kind&&236!==e.currentTokenParent.kind&&234!==e.currentTokenParent.kind&&22!==t&&20!==t&&39!==t&&40!==t&&43!==t&&13!==t&&27!==t&&223!==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<=160;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(__spreadArray(__spreadArray([],r,!0),[3],!1)),a=m(__spreadArray(__spreadArray([],r,!0),[1],!1)),o=y(81,160),s=y(29,78),c=[101,102,160,127,139],l=__spreadArray([79],p.typeKeywords,!0),u=i,_=m([79,3,84,93,100]),d=m([21,3,90,111,96,91]),l=[g("IgnoreBeforeComment",n,[2,3],f.anyContext,1),g("IgnoreAfterLineComment",2,n,f.anyContext,1),g("NotSpaceBeforeColon",n,58,[Q,E,N],16),g("SpaceAfterColon",58,n,[Q,E],4),g("NoSpaceBeforeQuestionMark",n,57,[Q,E,N],16),g("SpaceAfterQuestionMarkInConditionalOperator",57,n,[Q,F],4),g("NoSpaceAfterQuestionMark",57,n,[Q],16),g("NoSpaceBeforeDot",n,[24,28],[Q],16),g("NoSpaceAfterDot",[24,28],n,[Q],16),g("NoSpaceBetweenImportParenInImportType",100,20,[Q,G],16),g("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[Q,E],16),g("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[Q],16),g("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[Q],16),g("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[Q,fe],16),g("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[Q,fe],16),g("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[Q,k],4),g("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[Q,k],4),g("SpaceAfterAddWhenFollowedByPreincrement",39,45,[Q,k],4),g("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[Q,k],4),g("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[Q,k],4),g("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[Q,k],4),g("NoSpaceAfterCloseBrace",19,[27,26],[Q],16),g("NewLineBeforeCloseBraceInBlockContext",i,19,[O],8),g("SpaceAfterCloseBrace",19,t(21),[Q,J],4),g("SpaceBetweenCloseBraceAndElse",19,91,[Q],4),g("SpaceBetweenCloseBraceAndWhile",19,115,[Q],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[Q,K],16),g("SpaceAfterConditionalClosingParen",21,22,[z],4),g("NoSpaceBetweenFunctionKeywordAndStar",98,41,[B],16),g("SpaceAfterStarInGeneratorDeclaration",41,79,[B],4),g("SpaceAfterFunctionInFuncDecl",98,n,[L],4),g("NewLineAfterOpenBraceInBlockContext",18,n,[O],8),g("SpaceAfterGetSetInMember",[136,149],79,[L],4),g("NoSpaceBetweenYieldKeywordAndStar",125,41,[Q,de],16),g("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],n,[Q,de],4),g("NoSpaceBetweenReturnAndSemicolon",105,26,[Q],16),g("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],n,[Q],4),g("SpaceAfterLetConstInVariableDeclaration",[119,85],n,[Q,ie],4),g("NoSpaceBeforeOpenParenInFuncCall",n,20,[Q,U,V],16),g("SpaceBeforeBinaryKeywordOperator",n,c,[Q,k],4),g("SpaceAfterBinaryKeywordOperator",c,n,[Q,k],4),g("SpaceAfterVoidOperator",114,n,[Q,_e],4),g("SpaceBetweenAsyncAndOpenParen",131,20,[H,Q],4),g("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[Q],4),g("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[Q],16),g("SpaceBeforeJsxAttribute",n,79,[$,Q],4),g("SpaceBeforeSlashInJsxOpeningElement",n,43,[te,Q],4),g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[te,Q],16),g("NoSpaceBeforeEqualInJsxAttribute",n,63,[ee,Q],16),g("NoSpaceAfterEqualInJsxAttribute",63,n,[ee,Q],16),g("NoSpaceAfterModuleImport",[141,146],20,[Q],16),g("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,145,149,124,152,156,140,137],n,[Q],4),g("SpaceBeforeCertainTypeScriptKeywords",n,[94,117,156],[Q],4),g("SpaceAfterModuleName",10,18,[oe],4),g("SpaceBeforeArrow",n,38,[Q],4),g("SpaceAfterArrow",38,n,[Q],4),g("NoSpaceAfterEllipsis",25,79,[Q],16),g("NoSpaceAfterOptionalParameters",57,[21,27],[Q,E],16),g("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Q,se],16),g("NoSpaceBeforeOpenAngularBracket",l,29,[Q,le],16),g("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Q,le],16),g("NoSpaceAfterOpenAngularBracket",29,n,[Q,le],16),g("NoSpaceBeforeCloseAngularBracket",n,31,[Q,le],16),g("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Q,le,R],16),g("SpaceBeforeAt",[21,79],59,[Q],4),g("NoSpaceAfterAt",59,n,[Q],16),g("SpaceAfterDecorator",n,[126,79,93,88,84,124,123,121,122,136,149,22,41],[ne],4),g("NoSpaceBeforeNonNullAssertionOperator",n,53,[Q,pe],16),g("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[Q,ce],16),g("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Q],4)],a=[g("SpaceAfterConstructor",134,20,[v("insertSpaceAfterConstructor"),Q],4),g("NoSpaceAfterConstructor",134,20,[x("insertSpaceAfterConstructor"),Q],16),g("SpaceAfterComma",27,n,[v("insertSpaceAfterCommaDelimiter"),Q,Y,q,W],4),g("NoSpaceAfterComma",27,n,[x("insertSpaceAfterCommaDelimiter"),Q,Y],16),g("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[v("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),L],4),g("NoSpaceAfterAnonymousFunctionKeyword",[98,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"),Q],4),g("SpaceBeforeCloseParen",n,21,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Q],4),g("SpaceBetweenOpenParens",20,20,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Q],4),g("NoSpaceBetweenParens",20,21,[Q],16),g("NoSpaceAfterOpenParen",20,n,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Q],16),g("NoSpaceBeforeCloseParen",n,21,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Q],16),g("SpaceAfterOpenBracket",22,n,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Q],4),g("SpaceBeforeCloseBracket",n,23,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Q],4),g("NoSpaceBetweenBrackets",22,23,[Q],16),g("NoSpaceAfterOpenBracket",22,n,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Q],16),g("NoSpaceBeforeCloseBracket",n,23,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Q],16),g("SpaceAfterOpenBrace",18,n,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],4),g("SpaceBeforeCloseBrace",n,19,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[Q,K],16),g("NoSpaceAfterOpenBrace",18,n,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Q],16),g("NoSpaceBeforeCloseBrace",n,19,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Q],16),g("SpaceBetweenEmptyBraceBrackets",18,19,[v("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[b("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Q],16),g("SpaceAfterTemplateHeadAndMiddle",[15,16],n,[v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),X],4,1),g("SpaceBeforeTemplateMiddleAndTail",n,[16,17],[v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],4),g("NoSpaceAfterTemplateHeadAndMiddle",[15,16],n,[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),X],16,1),g("NoSpaceBeforeTemplateMiddleAndTail",n,[16,17],[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],16),g("SpaceAfterOpenBraceInJsxExpression",18,n,[v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Z],4),g("SpaceBeforeCloseBraceInJsxExpression",n,19,[v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Z],4),g("NoSpaceAfterOpenBraceInJsxExpression",18,n,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Z],16),g("NoSpaceBeforeCloseBraceInJsxExpression",n,19,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Z],16),g("SpaceAfterSemicolonInFor",26,n,[v("insertSpaceAfterSemicolonInForStatements"),Q,T],4),g("NoSpaceAfterSemicolonInFor",26,n,[x("insertSpaceAfterSemicolonInForStatements"),Q,T],16),g("SpaceBeforeBinaryOperator",n,s,[v("insertSpaceBeforeAndAfterBinaryOperators"),Q,k],4),g("SpaceAfterBinaryOperator",s,n,[v("insertSpaceBeforeAndAfterBinaryOperators"),Q,k],4),g("NoSpaceBeforeBinaryOperator",n,s,[x("insertSpaceBeforeAndAfterBinaryOperators"),Q,k],16),g("NoSpaceAfterBinaryOperator",s,n,[x("insertSpaceBeforeAndAfterBinaryOperators"),Q,k],16),g("SpaceBeforeOpenParenInFuncDecl",n,20,[v("insertSpaceBeforeFunctionParenthesis"),Q,L],4),g("NoSpaceBeforeOpenParenInFuncDecl",n,20,[x("insertSpaceBeforeFunctionParenthesis"),Q,L],16),g("NewLineBeforeOpenBraceInControl",d,18,[v("placeOpenBraceOnNewLineForControlBlocks"),z,I],8,1),g("NewLineBeforeOpenBraceInFunction",u,18,[v("placeOpenBraceOnNewLineForFunctions"),L,I],8,1),g("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,18,[v("placeOpenBraceOnNewLineForFunctions"),j,I],8,1),g("SpaceAfterTypeAssertion",31,n,[v("insertSpaceAfterTypeAssertion"),Q,ue],4),g("NoSpaceAfterTypeAssertion",31,n,[x("insertSpaceAfterTypeAssertion"),Q,ue],16),g("SpaceBeforeTypeAnnotation",n,[57,58],[v("insertSpaceBeforeTypeAnnotation"),Q,A],4),g("NoSpaceBeforeTypeAnnotation",n,[57,58],[x("insertSpaceBeforeTypeAnnotation"),Q,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,[Q],16),g("SpaceBeforeOpenBraceInControl",d,18,[D("placeOpenBraceOnNewLineForControlBlocks"),z,ae,P],4,1),g("SpaceBeforeOpenBraceInFunction",u,18,[D("placeOpenBraceOnNewLineForFunctions"),L,M,ae,P],4,1),g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,18,[D("placeOpenBraceOnNewLineForFunctions"),j,ae,P],4,1),g("NoSpaceBeforeComma",n,27,[Q],16),g("NoSpaceBeforeOpenBracket",t(131,82),22,[Q],16),g("NoSpaceAfterCloseBracket",23,n,[Q,re],16),g("SpaceAfterSemicolon",26,n,[Q],4),g("SpaceBetweenForAndAwaitKeyword",97,132,[Q],4),g("SpaceBetweenStatements",[21,90,91,82],n,[Q,Y,C],4),g("SpaceAfterTryCatchFinally",[111,83,96],18,[Q],4)];return __spreadArray(__spreadArray(__spreadArray([],l,!0),a,!0),n,!0)}}(ts=ts||{}),function(b){!function(f){var r;function g(e,t){return b.Debug.assert(e<=160&&t<=160,"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 l=c[s],u=0,_=a.rightTokenRange.tokens;u<_.length;u++){var d=_[u],d=g(l,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=161;(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(I){var O,e,a,o,s;function i(e,t,r){r=I.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 257:case 258:return I.rangeContainsRange(e.members,t);case 261:var r=e.body;return!!r&&262===r.kind&&I.rangeContainsRange(r.statements,t);case 305:case 235:case 262:return I.rangeContainsRange(e.statements,t);case 292:return I.rangeContainsRange(e.block.statements,t)}return!1}(t.parent,t);)t=t.parent;return t}function l(n,i){return function e(t){var r=I.forEachChild(t,function(e){return I.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?u({pos:I.getLineStartPositionForPosition(e.getStart(t),t),end:e.end},t,r,n):[]}function u(t,r,n,i){var e,a,o,s,c=l(t,r);return O.getFormattingScanner(r.text,r.languageVariant,(a=t,o=r,(s=(e=c).getStart(o))===a.pos&&e.end===a.end?s:!(o=I.findPrecedingToken(a.pos,o))||o.end>=a.pos?e.pos:o.end),t.end,function(e){return _(t,c,O.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(O.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 I.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(I.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,o,s,S,a,c,T=n.options,u=n.getRules,_=n.host,d=new O.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(I.getNonDecoratorTokenPosOfNode(t,x)).line),function p(g,e,t,r,n,i){if(!I.rangeOverlapsWithStartEnd(h,g.getStart(x),g.getEnd()))return;var a=N(g,t,n,i);var f=e;I.forEachChild(g,function(e){m(e,-1,g,a,t,r,!1)},function(e){s(e,g,t,a)});for(;v.isOnToken()&&v.getStartPos()<h.end;){var o=v.readTokenInfo(g);if(o.token.end>Math.min(g.end,h.end))break;y(o,g,a,g)}function m(e,t,r,n,i,a,o,s){if(I.nodeIsMissing(e))return t;var c=e.getStart(x),l=x.getLineAndCharacterOfPosition(c).line,u=l;e.decorators&&(u=x.getLineAndCharacterOfPosition(I.getNonDecoratorTokenPosOfNode(e,x)).line);var _=-1;if(o&&I.rangeContainsRange(h,r)&&-1!==(_=k(c,e.end,i,h,t))&&(t=_),!I.rangeOverlapsWithStartEnd(h,e.pos,e.end))return e.end<h.pos&&v.skipToEndOf(e),t;if(0===e.getFullWidth())return t;for(;v.isOnToken()&&v.getStartPos()<h.end;){var d=v.readTokenInfo(g);if(d.token.end>h.end)return t;if(d.token.end>c){d.token.pos>c&&v.skipToStartOf(e);break}y(d,g,n,g)}if(!v.isOnToken()||v.getStartPos()>=h.end)return t;if(I.isToken(e)){var d=v.readTokenInfo(e);if(11!==e.kind)return I.Debug.assert(d.token.end===e.end,"Token end is child end"),y(d,g,n,e),t}var a=165===e.kind?l:a,a=E(e,l,_,g,n,a);return p(e,f,l,u,a.indentation,a.delta),f=g,s&&204===r.kind&&-1===t&&(t=a.indentation),t}function s(e,t,r,n){I.Debug.assert(I.isNodeArray(e));var i=M(t,e),a=n,o=r;if(I.rangeOverlapsWithStartEnd(h,e.pos,e.end)){if(0!==i)for(;v.isOnToken()&&v.getStartPos()<h.end;){var s,c,l=v.readTokenInfo(t);if(l.token.end>e.pos)break;l.token.kind===i?(o=x.getLineAndCharacterOfPosition(l.token.pos).line,y(l,t,n,t),s=void 0,s=-1!==C?C:(c=I.getLineStartPositionForPosition(l.token.pos,x),O.SmartIndenter.findFirstNonWhitespaceColumn(c,l.token.pos,x,T)),a=N(t,r,s,T.indentSize)):y(l,t,n,t)}for(var u=-1,_=0;_<e.length;_++){var d=e[_];u=m(d,u,g,a,o,o,!0,0===_)}var p,f=L(i);0!==f&&v.isOnToken()&&v.getStartPos()<h.end&&(27===(l=v.readTokenInfo(t)).token.kind&&I.isCallLikeExpression(t)&&(p=x.getLineAndCharacterOfPosition(l.token.pos).line,o!==p&&(v.advance(),l=v.isOnToken()?v.readTokenInfo(t):void 0)),l&&l.token.kind===f&&I.rangeContainsRange(t,l.token)&&y(l,t,a,t,!0))}else e.end<h.pos&&v.skipToEndOf(e)}function y(e,t,r,n,i){I.Debug.assert(I.rangeContainsRange(t,e.token));var a=v.lastTrailingTriviaWasNewLine(),o=!1;e.leadingTrivia&&F(e.leadingTrivia,t,f,r);var s,c,l,u=0,_=I.rangeContainsRange(h,e.token),d=x.getLineAndCharacterOfPosition(e.token.pos);_&&(s=b(e.token),c=D,u=P(e.token,d,t,f,r),s||(o=0===u?(c=c&&x.getLineAndCharacterOfPosition(c.end).line,a&&d.line!==c):1===u)),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&&(l=r.getIndentationForComment(e.token.kind,_,n),i=A(e.leadingTrivia,l,i,function(e){return w(e.pos,l,!1),0})),-1!==_&&i&&(w(e.token.pos,_,1===u),S=d.line,C=_)),v.advance(),f=t}}(t,t,n,i,e,r)),v.isOnToken()||(c=O.SmartIndenter.nodeWillIndentChild(T,t,void 0,x,!1)?e+T.indentSize:e,(a=v.getCurrentLeadingTrivia())&&(A(a,c,!1,function(e){return P(e,x.getLineAndCharacterOfPosition(e.pos),t,t,void 0)}),!1!==T.trimTrailingWhitespace&&function(){for(var e=D?D.end:h.pos,t=0,r=a;t<r.length;t++){var n=r[t];I.isComment(n.kind)&&(e<n.pos&&g(e,n.pos-1,D),e=n.end+1)}e<h.end&&g(e,h.end,D)}())),D&&v.getStartPos()>=h.end&&((e=v.isOnEOF()?v.readEOFTokenRange():v.isOnToken()?v.readTokenInfo(t).token:void 0)&&(c=(null===(c=I.findPrecedingToken(e.end,x,t))||void 0===c?void 0:c.parent)||o,l(e,x.getLineAndCharacterOfPosition(e.pos).line,c,D,s,o,c,void 0))),p;function k(e,t,r,n,i){if(I.rangeOverlapsWithStartEnd(n,e,t)||I.rangeContainsStartEnd(n,e,t)){if(-1!==i)return i}else{t=x.getLineAndCharacterOfPosition(e).line,i=I.getLineStartPositionForPosition(e,x),i=O.SmartIndenter.findFirstNonWhitespaceColumn(i,e,x,T);if(t!==r||e===i){e=O.SmartIndenter.getBaseIndentation(T);return i<e?e:i}}return-1}function E(e,t,r,n,i,a){var o=O.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)}:O.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(n,e,t,x)||O.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(n,e,t,x)||O.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 91:case 115:case 59:return!1;case 43:case 31:switch(r.kind){case 280:case 281:case 279:case 228:return!1}break;case 22:case 23:if(195!==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 257:return 84;case 258:return 118;case 256:return 98;case 260:return 260;case 172:return 136;case 173:return 149;case 169:if(e.asteriskToken)return 41;case 167:case 164:var t=I.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){O.SmartIndenter.shouldIndentChildNode(T,t,i,x)&&(o+=e?T.indentSize:-T.indentSize,r=O.SmartIndenter.shouldIndentChildNode(T,i)?T.indentSize:0)}};function s(e){return O.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=I.rangeContainsRange(h,o);switch(o.kind){case 3:s&&function(e,t,r,n){void 0===n&&(n=!0);var i=x.getLineAndCharacterOfPosition(e.pos).line,a=x.getLineAndCharacterOfPosition(e.end).line;if(i===a)return r||w(e.pos,t,!1);for(var o=[],s=e.pos,c=i;c<a;c++){var l=I.getEndLinePosition(c,x);o.push({pos:s,end:l}),s=I.getStartPositionOfLine(c+1,x)}if(n&&o.push({pos:s,end:e.end}),0!==o.length){var e=I.getStartPositionOfLine(i,x),u=O.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(e,o[0].pos,x,T),e=0;r&&(e=1,i++);for(var _=t-u.column,d=e;d<o.length;d++,i++){var p=I.getStartPositionOfLine(i,x),f=0===d?u:O.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(o[d].pos,o[d].end,x,T),g=f.column+_;0<g?(g=R(g,T),y(p,f.character,g)):m(p,f.character)}}}(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];I.isComment(o.kind)&&I.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=l(e,t.line,r,D,s,o,n,i):f(x.getLineAndCharacterOfPosition(h.pos).line,t.line)),D=e,o=r,s=t.line,a}function l(t,r,n,i,a,e,o,s){d.updateContext(i,e,t,n,o);var e=u(d),c=!1!==d.options.trimTrailingWhitespace,l=0;return e?I.forEachRight(e,function(e){if(l=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 m(t.end,n.pos-t.end),a?2:0;break;case 32:m(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&r!==i)return 0;if(1!=i-r)return y(t.end,n.pos-t.end,I.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 y(t.end,n.pos-t.end," "),a?2:0;break;case 64:!function(e,t){t&&p.push(I.createTextChangeFromStartLength(e,0,t))}(t.end,";")}return 0}(e,i,a,t,r),s)switch(l){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:I.Debug.assert(0===l)}c=c&&!(16&e.action)&&1!==e.flags}):c=c&&1!==t.kind,r!==a&&c&&f(a,r,i),l}function w(e,t,r){var n,i=R(t,T);r?y(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=I.getStartPositionOfLine(n.line,x),n.character)&&(e=r,(t=i)===x.text.substr(e,t.length))||y(r,n.character,i))}function f(e,t,r){for(var n=e;n<t;n++){var i,a=I.getStartPositionOfLine(n,x),o=I.getEndLinePosition(n,x);r&&(I.isComment(r.kind)||I.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o||-1!==(i=function(e,t){var r=t;for(;e<=r&&I.isWhiteSpaceSingleLine(x.text.charCodeAt(r));)r--;return r===t?-1:r+1}(a,o))&&(I.Debug.assert(i===a||!I.isWhiteSpaceSingleLine(x.text.charCodeAt(i-1))),m(i,o+1-i))}}function g(e,t,r){f(x.getLineAndCharacterOfPosition(e).line,x.getLineAndCharacterOfPosition(t).line+1,r)}function m(e,t){t&&p.push(I.createTextChangeFromStartLength(e,t,""))}function y(e,t,r){(t||r)&&p.push(I.createTextChangeFromStartLength(e,t,r))}}function M(e,t){switch(e.kind){case 171:case 256:case 213:case 169:case 168:case 214:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 208:case 209:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 178:if(e.typeArguments===t)return 29;break;case 182:return 18}return 0}function L(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function R(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=I.repeatString(" ",t.indentSize*n),s[n]=r):r=s[n],i?r+I.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=I.repeatString("\t",r):t=o[r],e?t+I.repeatString(" ",e):t}(O=I.formatting||(I.formatting={})).createTextRangeWithKind=function(e,t,r){return t={pos:e,end:t,kind:r},I.Debug.isDebugging&&Object.defineProperty(t,"__debugKind",{get:function(){return I.Debug.formatSyntaxKind(r)}}),t},(e={})[e.Unknown=-1]="Unknown",O.formatOnEnter=function(e,t,r){if(0===(e=t.getLineAndCharacterOfPosition(e).line))return[];for(var n=I.getEndLinePosition(e,t);I.isWhiteSpaceSingleLine(t.text.charCodeAt(n));)n--;return I.isLineBreak(t.text.charCodeAt(n))&&n--,u({pos:I.getStartPositionOfLine(e-1,t),end:n+1},t,r,2)},O.formatOnSemicolon=function(e,t,r){return n(c(i(e,26,t)),t,r,3)},O.formatOnOpeningCurly=function(e,t,r){var n=i(e,18,t);return n?(n=c(n.parent),u({pos:I.getLineStartPositionForPosition(n.getStart(t),t),end:e},t,r,4)):[]},O.formatOnClosingCurly=function(e,t,r){return n(c(i(e,19,t)),t,r,5)},O.formatDocument=function(e,t){return u({pos:0,end:e.text.length},e,t,0)},O.formatSelection=function(e,t,r,n){return u({pos:I.getLineStartPositionForPosition(e,r),end:t},r,n,1)},O.formatNodeGivenIndentation=function(t,r,e,n,i,a){var o={pos:t.pos,end:t.end};return O.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",O.getRangeOfEnclosingComment=function(t,r,e,n){void 0===n&&(n=I.getTokenAtPosition(t,r));var i=I.findAncestor(n,I.isJSDoc);if(i&&(n=i.parent),!(n.getStart(t)<=r&&r<n.getEnd())){e=(e=null===e?void 0:void 0===e?I.findPrecedingToken(r,t):e)&&I.getTrailingCommentRanges(t.text,e.end),n=I.getLeadingCommentRangesOfNode(n,t),n=I.concatenate(e,n);return n&&I.find(n,function(e){return I.rangeContainsPositionExclusive(e,r)||r===e.end&&(2===e.kind||r===t.getFullWidth())})}},O.getIndentationString=R}(ts=ts||{}),function(y){var u,e,t;function h(e){return e.baseIndentSize||0}function _(e,t,r,n,i,a,o){for(var s,c,l,u=e.parent;u;){var _,d=!0;r&&(d=(_=e.getStart(i))<r.pos||_>r.end);var p=function(e,t,r){t=D(t,r),e=t?t.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(e)}(u,e,i),f=p.line===t.line||x(u,e,t.line,i);if(d){var g=null===(l=D(e,i))||void 0===l?void 0:l[0],m=S(e,i,o,!!g&&v(g,i).line>p.line);if(-1!==m)return m+n;if(s=e,c=u,_=t,d=f,l=i,g=o,-1!==(m=!y.isDeclaration(s)&&!y.isStatementButNotDeclaration(s)||305!==c.kind&&d?-1:T(_,l,g)))return m+n}C(o,u,e,i,a)&&!f&&(n+=o.indentSize);f=b(u,e,t.line,i),u=(e=u).parent;t=f?i.getLineAndCharacterOfPosition(e.getStart(i)):p}return n+h(o)}function v(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function b(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 x(e,t,r,n){if(239!==e.kind||e.elseStatement!==t)return!1;e=y.findChildOfKind(e,91,n);return y.Debug.assert(void 0!==e),v(e,n).line===r}function D(e,t){return e.parent&&d(e.getStart(t),e.getEnd(),e.parent,t)}function d(t,r,n,i){switch(n.kind){case 178:return e(n.typeArguments);case 205:return e(n.properties);case 204:return e(n.elements);case 182:return e(n.members);case 256:case 213:case 214:case 169:case 168:case 174:case 171:case 180:case 175:return e(n.typeParameters)||e(n.parameters);case 172:return e(n.parameters);case 257:case 226:case 258:case 259:case 344:return e(n.typeParameters);case 209:case 208:return e(n.typeArguments)||e(n.arguments);case 255:return e(n.declarations);case 269:case 273:return e(n.elements);case 201:case 202: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?T(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function S(e,t,r,n){if(e.parent&&255===e.parent.kind)return-1;var i=D(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=v(e[t],r),a=t-1;0<=a;a--)if(27!==e[a].kind){if(r.getLineAndCharacterOfPosition(e[a].end).line!==i.line)return T(i,r,n);i=v(e[a],r)}return-1}function T(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 238:case 257:case 226:case 258:case 260:case 259:case 204:case 235:case 262:case 205:case 182:case 195:case 184:case 263:case 290:case 289:case 212:case 206:case 208:case 209:case 237:case 271:case 247:case 222:case 202:case 201:case 280:case 283:case 279:case 288:case 168:case 174:case 175:case 164:case 179:case 180:case 191:case 210:case 218:case 273:case 269:case 275:case 270:case 167:return!0;case 254:case 296:case 221:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&n&&205===a)return o(n,r);if(221===t.kind&&n&&r&&278===a)return n.getLineAndCharacterOfPosition(y.skipTrivia(n.text,t.pos)).line!==n.getLineAndCharacterOfPosition(y.skipTrivia(n.text,r.pos)).line;if(221!==t.kind)return!0;break;case 240:case 241:case 243:case 244:case 242:case 239:case 256:case 213:case 169:case 171:case 172:case 173:return 235!==a;case 214:return n&&212===a?o(n,r):235!==a;case 272:return 273!==a;case 266:return 267!==a||!!r.namedBindings&&269!==r.namedBindings.kind;case 278:return 281!==a;case 282:return 284!==a;case 188:case 187:if(182===a||184===a)return!1}return i}function C(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 247:case 251:case 245:case 246:return 235!==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=t.getLineAndCharacterOfPosition(e).line,s=y.getTokenAtPosition(t,e),c=18===s.kind&&205===s.parent.kind;if(r.indentStyle===y.IndentStyle.Block||c)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&&221!==a.parent.kind){var l=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!==l)return l}return i=e,c=a.parent,l=t,!(l=c&&d(i,i,c,l))||y.rangeContainsRange(l,a)?function(e,t,r,n,i,a){var o,s=r;for(;s;){if(y.positionBelongsToNode(s,t,e)&&C(a,s,o,e,!0)){var c=v(s,e),l=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=v(t,n).line;return r===n?2:0}}return 0}(r,s,n,e),l=0!==l?i&&2===l?a.indentSize:0:n!==c.line?a.indentSize:0;return _(s,c,void 0,l,e,!0,a)}l=S(s,e,a,!0);if(-1!==l)return l;s=(o=s).parent}return h(a)}(t,e,a,o,n,r):(s=-1!==[213,214].indexOf(s.parent.kind)?0:r.indentSize,p(l,t,r)+s)},e.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return _(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=b,e.childStartsOnTheSameLineWithElseInIfStatement=x,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,r,n){if(!y.isConditionalExpression(e)||t!==e.whenTrue&&t!==e.whenFalse)return!1;var i=y.getLineAndCharacterOfPosition(n,e.condition.end).line;return t===e.whenTrue?r===i:(t=v(e.whenTrue,n).line,e=y.getLineAndCharacterOfPosition(n,e.whenTrue.end).line,i===t&&e===r)},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=D,e.findFirstNonWhitespaceCharacterAndColumn=g,e.findFirstNonWhitespaceColumn=m,e.nodeWillIndentChild=a,e.shouldIndentChildNode=C}(ts=ts||{}),function(w){!function(e){function a(e){e=e.__pos;return w.Debug.assert("number"==typeof e),e}function t(e,t){w.Debug.assert("number"==typeof t),e.__pos=t}function o(e){e=e.__end;return w.Debug.assert("number"==typeof e),e}function s(e,t){w.Debug.assert("number"==typeof t),e.__end=t}var l,u;function d(e,t){return w.skipTrivia(e,t,!1,!0)}(r=l=e.LeadingTriviaOption||(e.LeadingTriviaOption={}))[r.Exclude=0]="Exclude",r[r.IncludeAll=1]="IncludeAll",r[r.JSDoc=2]="JSDoc",r[r.StartLine=3]="StartLine",(r=u=e.TrailingTriviaOption||(e.TrailingTriviaOption={}))[r.Exclude=0]="Exclude",r[r.ExcludeWhitespace=1]="ExcludeWhitespace",r[r.Include=2]="Include";var _,c={leadingTriviaOption:l.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(e,t,r,n){void 0===n&&(n=!1);var i=r.leadingTriviaOption;if(i===l.Exclude)return t.getStart(e);if(i===l.StartLine){var a=t.getStart(e),r=w.getLineStartPositionForPosition(a,e);return w.rangeContainsPosition(t,r)?r:a}if(i===l.JSDoc){var o=w.getJSDocCommentRanges(t,e.text);if(null!=o&&o.length)return w.getLineStartPositionForPosition(o[0].pos,e)}a=t.getFullStart(),o=t.getStart(e);if(a===o)return o;t=w.getLineStartPositionForPosition(a,e);if(w.getLineStartPositionForPosition(o,e)===t)return i===l.IncludeAll?a:o;if(n){var s=(null===(n=w.getLeadingCommentRanges(e.text,a))||void 0===n?void 0:n[0])||(null===(s=w.getTrailingCommentRanges(e.text,a))||void 0===s?void 0:s[0]);if(s)return w.skipTrivia(e.text,s.end,!0,!0)}a=0<a?1:0,a=w.getStartPositionOfLine(w.getLineOfLocalPosition(e,t)+a,e),a=d(e.text,a);return w.getStartPositionOfLine(w.getLineOfLocalPosition(e,a),e)}function g(e,t,r){var n=t.end;if(r.trailingTriviaOption===u.Include){n=w.getTrailingCommentRanges(e.text,n);if(n)for(var i=w.getLineOfLocalPosition(e,t.end),a=0,o=n;a<o.length;a++){var s=o[a];if(2===s.kind||w.getLineOfLocalPosition(e,s.pos)>i)break;if(i<w.getLineOfLocalPosition(e,s.end))return w.skipTrivia(e.text,s.end,!0,!0)}}}function m(e,t,r){var n=t.end,i=r.trailingTriviaOption;if(i===u.Exclude)return n;if(i===u.ExcludeWhitespace){var a=w.concatenate(w.getTrailingCommentRanges(e.text,n),w.getLeadingCommentRanges(e.text,n)),a=null===(a=null==a?void 0:a[a.length-1])||void 0===a?void 0:a.end;return a?a:n}r=g(e,t,r);if(r)return r;r=w.skipTrivia(e.text,n,!0);return r===n||i!==u.Include&&!w.isLineBreak(e.text.charCodeAt(r-1))?n:r}function y(e,t){return t&&e.parent&&(27===t.kind||26===t.kind&&205===e.parent.kind)}(r=_=_||{})[r.Remove=0]="Remove",r[r.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",r[r.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",r[r.Text=3]="Text",e.isThisTypeAnnotatable=function(e){return w.isFunctionExpression(e)||w.isFunctionDeclaration(e)};var h,r=(n.fromContext=function(e){return new n(w.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),e.formatContext)},n.with=function(e,t){e=n.fromContext(e);return t(e),e.getChanges()},n.prototype.pushRaw=function(e,t){w.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:w.createTextRangeFromSpan(i.span)})}},n.prototype.deleteRange=function(e,t){this.changes.push({kind:_.Remove,sourceFile:e,range:t})},n.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},n.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:l.IncludeAll}),this.deleteRange(e,p(e,t,t,r))},n.prototype.deleteNodes=function(e,t,r,n){void 0===r&&(r={leadingTriviaOption:l.IncludeAll});for(var i=0,a=t;i<a.length;i++){var o=a[i],s=f(e,o,r,n),c=m(e,o,r);this.deleteRange(e,{pos:s,end:c}),n=!!g(e,o,r)}},n.prototype.deleteModifier=function(e,t){this.deleteRange(e,{pos:t.getStart(e),end:w.skipTrivia(e.text,t.end,!0)})},n.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:l.IncludeAll});t=f(e,t,n),n=m(e,r,n);this.deleteRange(e,{pos:t,end:n})},n.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:l.IncludeAll});t=f(e,t,n),n=void 0===r?e.text.length:f(e,r,n);this.deleteRange(e,{pos:t,end:n})},n.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},n.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=c),this.replaceRange(e,p(e,t,t,n),r,n)},n.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=c),this.replaceRange(e,p(e,t,r,i),n,i)},n.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},n.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=c),this.replaceRangeWithNodes(e,p(e,t,t,n),r,n)},n.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,p(e,t,t,c),r)},n.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=c),this.replaceRangeWithNodes(e,p(e,t,r,i),n,i)},n.prototype.nodeHasTrailingComment=function(e,t,r){return void 0===r&&(r=c),!!g(e,t,r)},n.prototype.nextCommaToken=function(e,t){e=w.findNextToken(t,t.parent,e);return e&&27===e.kind?e:void 0},n.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},n.prototype.insertNodeAt=function(e,t,r,n){void 0===n&&(n={}),this.replaceRange(e,w.createRange(t),r,n)},n.prototype.insertNodesAt=function(e,t,r,n){void 0===n&&(n={}),this.replaceRangeWithNodes(e,w.createRange(t),r,n)},n.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},n.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},n.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(!w.isPrologueDirective(i))break;t=i}var a=0,o=e.text;if(t)return a=t.end,f(),a;var s=w.getShebang(o);void 0!==s&&(a=s.length,f());var c,l,s=w.getLeadingCommentRanges(o,a);if(!s)return a;for(var u=0,_=s;u<_.length;u++){var d=_[u];if(3===d.kind){if(w.isPinnedComment(o,d.pos)){c={range:d,pinnedOrTripleSlash:!0};continue}}else if(w.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===l&&(l=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);p=e.getLineAndCharacterOfPosition(d.end).line;if(l<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),w.isLineBreak(e)&&++a<o.length&&13===e&&10===o.charCodeAt(a)&&a++)}}(e),r={prefix:0===n?void 0:this.newLineCharacter,suffix:(w.isLineBreak(e.text.charCodeAt(n))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};w.isArray(t)?this.insertNodesAt(e,n,t,r):this.insertNodeAt(e,n,t,r)},n.prototype.insertFirstParameter=function(e,t,r){var n=w.firstOrUndefined(t);n?this.insertNodeBefore(e,n,r):this.insertNodeAt(e,t.pos,r)},n.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,f(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},n.prototype.insertModifierAt=function(e,t,r,n){void 0===n&&(n={}),this.insertNodeAt(e,t,w.factory.createToken(r),n)},n.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},n.prototype.insertCommentBeforeLine=function(e,t,r,n){var i=w.getStartPositionOfLine(t,e),a=w.getFirstNonSpaceCharacterPosition(e.text,i),t=N(e,a),r=w.getTouchingToken(e,t?a:r),a=e.text.slice(i,a),a="".concat(t?"":this.newLineCharacter,"//").concat(n).concat(this.newLineCharacter).concat(a);this.insertText(e,r.getStart(e),a)},n.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:w.getLineStartPositionForPosition(o.getStart(e),e),end:m(e,o,{})})}t=w.getPrecedingNonSpaceCharacterPosition(e.text,n-1),t=e.text.slice(t,n);this.insertNodeAt(e,n,r,{suffix:this.newLineCharacter+t})},n.prototype.createJSDocText=function(e,t){var r=w.flatMap(t.jsDoc,function(e){return w.isString(e.comment)?w.factory.createJSDocText(e.comment):e.comment}),t=w.singleOrUndefined(t.jsDoc);return t&&w.positionsAreOnSameLine(t.pos,t.end,e)&&0===w.length(r)?void 0:w.factory.createNodeArray(w.intersperse(r,w.factory.createJSDocText("\n")))},n.prototype.replaceJSDocComment=function(e,t,r){this.insertJsdocCommentBefore(e,function(e){if(214!==e.kind)return e;var t=(167===e.parent.kind?e:e.parent).parent;return t.jsDoc=e.jsDoc,t.jsDocCache=e.jsDocCache,t}(t),w.factory.createJSDocComment(this.createJSDocText(e,t),w.factory.createNodeArray(r)))},n.prototype.addJSDocTags=function(e,t,r){var n=w.flatMapToMutable(t.jsDoc,function(e){return e.tags}),r=r.filter(function(r){return!n.some(function(e,t){e=function(e,t){if(e.kind!==t.kind)return;switch(e.kind){case 340:var r=e,n=t;return w.isIdentifier(r.name)&&w.isIdentifier(n.name)&&r.name.escapedText===n.name.escapedText?w.factory.createJSDocParameterTag(void 0,n.name,!1,n.typeExpression,n.isNameFirst,r.comment):void 0;case 341:return w.factory.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 343:return w.factory.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(e,r);return e&&(n[t]=e),!!e})});this.replaceJSDocComment(e,t,__spreadArray(__spreadArray([],n,!0),r,!0))},n.prototype.filterJSDocTags=function(e,t,r){this.replaceJSDocComment(e,t,w.filter(w.flatMapToMutable(t.jsDoc,function(e){return e.tags}),r))},n.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:_.Text,sourceFile:e,range:t,text:r})},n.prototype.insertText=function(e,t,r){this.replaceRangeWithText(e,w.createRange(t),r)},n.prototype.tryInsertTypeAnnotation=function(e,t,r){var n,i;if(w.isFunctionLike(t)){if(!(i=w.findChildOfKind(t,21,e))){if(!w.isArrowFunction(t))return!1;i=w.first(t.parameters)}}else i=null!==(n=254===t.kind?t.exclamationToken:t.questionToken)&&void 0!==n?n:t.name;return this.insertNodeAt(e,i.end,r,{prefix:": "}),!0},n.prototype.tryInsertThisTypeAnnotation=function(e,t,r){var n=w.findChildOfKind(t,20,e).getStart(e)+1,t=t.parameters.length?", ":"";this.insertNodeAt(e,n,r,{prefix:"this: ",suffix:t})},n.prototype.insertTypeParameters=function(e,t,r){t=(w.findChildOfKind(t,20,e)||w.first(t.parameters)).getStart(e);this.insertNodesAt(e,t,r,{prefix:"<",suffix:">",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(e,t,r){return w.isStatement(e)||w.isClassElement(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:w.isVariableDeclaration(e)?{suffix:", "}:w.isParameter(e)?w.isParameter(t)?{suffix:", "}:{}:w.isStringLiteral(e)&&w.isImportDeclaration(e.parent)||w.isNamedImports(e)?{suffix:", "}:w.isImportSpecifier(e)?{suffix:","+(r?this.newLineCharacter:" ")}:w.Debug.failBadSyntaxKind(e)},n.prototype.insertNodeAtConstructorStart=function(e,t,r){var n=w.firstOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeBefore(e,n,r):this.replaceConstructorBody(e,t,__spreadArray([r],t.body.statements,!0))},n.prototype.insertNodeAtConstructorStartAfterSuperCall=function(e,t,r){var n=w.find(t.body.statements,function(e){return w.isExpressionStatement(e)&&w.isSuperCall(e.expression)});n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,__spreadArray(__spreadArray([],t.body.statements,!0),[r],!1))},n.prototype.insertNodeAtConstructorEnd=function(e,t,r){var n=w.lastOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,__spreadArray(__spreadArray([],t.body.statements,!0),[r],!1))},n.prototype.replaceConstructorBody=function(e,t,r){this.replaceNode(e,t.body,w.factory.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(e,t,r){var n=f(e,t.getLastToken(),{});this.insertNodeAt(e,n,r,{prefix:w.isLineBreak(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.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,b(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,n))},n.prototype.guessIndentationFromExistingMembers=function(e,t){for(var r,n=t,i=0,a=b(t);i<a.length;i++){var o=a[i];if(w.rangeStartPositionsAreOnSameLine(n,o,e))return;var s=o.getStart(e),s=w.formatting.SmartIndenter.findFirstNonWhitespaceColumn(w.getLineStartPositionForPosition(s,e),s,e,this.formatContext.options);if(void 0===r)r=s;else if(s!==r)return;n=o}return r},n.prototype.computeIndentationForNewMember=function(e,t){t=t.getStart(e);return w.formatting.SmartIndenter.findFirstNonWhitespaceColumn(w.getLineStartPositionForPosition(t,e),t,e,this.formatContext.options)+(null!==(e=this.formatContext.options.indentSize)&&void 0!==e?e:4)},n.prototype.getInsertNodeAtStartInsertOptions=function(e,t,r){var n=0===b(t).length,i=w.addToSeen(this.classesWithNodesInsertedAtStart,w.getNodeId(t),{node:t,sourceFile:e}),a=w.isObjectLiteralExpression(t)&&(!w.isJsonSourceFile(e)||!n);return{indentation:r,prefix:(w.isObjectLiteralExpression(t)&&w.isJsonSourceFile(e)&&n&&!i?",":"")+this.newLineCharacter,suffix:a?",":""}},n.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))},n.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},n.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},n.prototype.insertNodesAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,w.first(r));this.insertNodesAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},n.prototype.insertNodeAfterWorker=function(e,t,r){var n;return n=t,r=r,!((w.isPropertySignature(n)||w.isPropertyDeclaration(n))&&w.isClassOrTypeElement(r)&&162===r.name.kind||w.isStatementButNotDeclaration(n)&&w.isStatementButNotDeclaration(r))||59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,w.createRange(t.end),w.factory.createToken(26)),m(e,t,{})},n.prototype.getInsertNodeAfterOptions=function(e,t){var r=this.getInsertNodeAfterOptionsWorker(t);return __assign(__assign({},r),{prefix:t.end===e.end&&w.isStatement(t)?r.prefix?"\n".concat(r.prefix):"\n":r.prefix})},n.prototype.getInsertNodeAfterOptionsWorker=function(e){switch(e.kind){case 257:case 261:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 254:case 10:case 79:return{prefix:", "};case 296:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 164:return{};default:return w.Debug.assert(w.isStatement(e)||w.isClassOrTypeElement(e)),{suffix:this.newLineCharacter}}},n.prototype.insertName=function(e,t,r){var n,i;w.Debug.assert(!t.name),214===t.kind?(n=w.findChildOfKind(t,38,e),(i=w.findChildOfKind(t,20,e))?(this.insertNodesAt(e,i.getStart(e),[w.factory.createToken(98),w.factory.createIdentifier(r)],{joiner:" "}),F(this,e,n)):(this.insertText(e,w.first(t.parameters).getStart(e),"function ".concat(r,"(")),this.replaceRange(e,n,w.factory.createToken(21))),235!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[w.factory.createToken(18),w.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[w.factory.createToken(26),w.factory.createToken(19)],{joiner:" "}))):(t=w.findChildOfKind(t,213===t.kind?98:84,e).end,this.insertNodeAt(e,t,w.factory.createIdentifier(r),{prefix:" "}))},n.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},n.prototype.insertImportSpecifierAtIndex=function(e,t,r,n){n=r.elements[n-1];n?this.insertNodeInListAfter(e,n,t):this.insertNodeBefore(e,r.elements[0],t,!w.positionsAreOnSameLine(r.elements[0].getStart(),r.parent.parent.getStart(),e))},n.prototype.insertNodeInListAfter=function(e,t,r,n){if(void 0===n&&(n=w.formatting.SmartIndenter.getContainingList(t,e)),n){var i=w.indexOfNode(n,t);if(!(i<0)){var a=t.getEnd();if(i!==n.length-1){var o=w.getTokenAtPosition(e,t.end);o&&y(t,o)&&(l=n[i+1],u=d(e.text,l.getFullStart()),s="".concat(w.tokenToString(o.kind)).concat(e.text.substring(o.end,u)),this.insertNodesAt(e,u,[r],{suffix:s}))}else{var s,c=t.getStart(e),l=w.getLineStartPositionForPosition(c,e),o=void 0,u=!1;if(1===n.length?o=27:(o=y(t,s=w.findPrecedingToken(t.pos,e))?s.kind:27,u=w.getLineStartPositionForPosition(n[i-1].getStart(e),e)!==l),function(e,t){for(var r=t;r<e.length;){var n=e.charCodeAt(r);if(!w.isWhiteSpaceSingleLine(n))return 47===n;r++}}(e.text,t.end)&&(u=!0),u){this.replaceRange(e,w.createRange(a),w.factory.createToken(o));for(var c=w.formatting.SmartIndenter.findFirstNonWhitespaceColumn(l,c,e,this.formatContext.options),_=w.skipTrivia(e.text,a,!0,!1);_!==a&&w.isLineBreak(e.text.charCodeAt(_-1));)_--;this.replaceRange(e,w.createRange(_),r,{indentation:c,prefix:this.newLineCharacter})}else this.replaceRange(e,w.createRange(a),r,{prefix:"".concat(w.tokenToString(o)," ")})}}}else w.Debug.fail("node is not a list element")},n.prototype.parenthesizeExpression=function(e,t){this.replaceRange(e,w.rangeOfNode(t),w.factory.createParenthesizedExpression(t))},n.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=w.findChildOfKind(r,18,t),t=w.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===b(n).length,n=w.positionsAreOnSameLine(e,t,i),r&&n&&e!==t-1&&a.deleteRange(i,w.createRange(e,t-1)),n&&a.insertText(i,t-1,a.newLineCharacter))})},n.prototype.finishDeleteDeclarations=function(){for(var n=this,i=new w.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&&w.rangeContainsRangeExclusive(e.node,r)})||(w.isArray(r)?e.deleteRange(t,w.rangeOfTypeParameters(t,r)):T.deleteDeclaration(e,i,t,r))}(a.sourceFile,a.node)}i.forEach(function(e){var t=e.getSourceFile(),r=w.formatting.SmartIndenter.getContainingList(e,t);e!==w.last(r)||-1!==(e=w.findLastIndex(r,function(e){return!i.has(e)},r.length-2))&&n.deleteRange(t,{pos:r[e].end,end:v(t,r[e+1])})})},n.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},n.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},n);function n(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new w.Map,this.deletedNodes=[]}function v(e,t){return w.skipTrivia(e.text,f(e,t,{leadingTriviaOption:l.IncludeAll}),!1,!0)}function b(e){return w.isObjectLiteralExpression(e)?e.properties:e.members}function x(t,e,r,n,i){r=r.map(function(e){return 4===e?"":D(e,t,n).text}).join(n),e=w.createSourceFile("any file name",r,99,!0,e);return S(r,w.formatting.formatDocument(e,i))+n}function D(e,t,r){var n=E(r),r=w.getNewLineKind(r);return w.createPrinter({newLine:r,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},n).writeNode(4,e,t,n),{text:n.getText(),node:C(e)}}function S(e,t){for(var r=t.length-1;0<=r;r--){var n=t[r],i=n.span,n=n.newText;e="".concat(e.substring(0,i.start)).concat(n).concat(e.substring(w.textSpanEnd(i)))}return e}e.ChangeTracker=r,e.getNewFileText=function(e,t,r,n){return h.newFileChangesWorker(void 0,t,e,r,n)},(r=h=h||{}).getTextChangesFromChanges=function(e,i,a,o){return w.mapDefined(w.group(e,function(e){return e.sourceFile.path}),function(e){for(var r=e[0].sourceFile,t=w.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){w.Debug.assert(t[e].range.end<=t[e+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(t[e].range)," and ").concat(JSON.stringify(t[e+1].range))})}(n);e=w.mapDefined(t,function(e){var t=w.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,l=n.delta,u=D(e,t,i),n=u.node,u=u.text;o&&o(n,u);o=w.getFormatCodeSettingsForWriting(a,t),r=void 0!==s?s:w.formatting.SmartIndenter.getIndentation(r,t,o,c===i||w.getLineStartPositionForPosition(r,t)===r);void 0===l&&(l=w.formatting.SmartIndenter.shouldIndentChildNode(o,e)&&o.indentSize||0);e={text:u,getLineAndCharacterOfPosition:function(e){return w.getLineAndCharacterOfPosition(this,e)}},o=w.formatting.formatNodeGivenIndentation(n,e,t.languageVariant,r,l,__assign(__assign({},a),{options:o}));return S(u,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 w.removeSuffix(a(e),r)}).join((null===(o=e.options)||void 0===o?void 0:o.joiner)||r):a(e.node),e=void 0!==s.indentation||w.getLineStartPositionForPosition(c,t)===c?e:e.replace(/^\s+/,"");return(s.prefix||"")+e+(!s.suffix||w.endsWith(e,s.suffix)?"":s.suffix)}(e,r,i,a,o);if(t.length!==e.length||!w.stringContainsAt(r.text,e,t.start))return w.createTextChange(t,e)});return 0<e.length?{fileName:r.fileName,textChanges:e}:void 0})},r.newFileChanges=function(e,t,r,n,i){return i=x(e,w.getScriptKindFromFileName(t),r,n,i),{fileName:t,textChanges:[w.createTextChange(w.createTextSpan(0,0),i)],isNewFile:!0}},r.newFileChangesWorker=x,r.getNonformattedText=D,e.applyChanges=S;var T,i=__assign(__assign({},w.nullTransformationContext),{factory:w.createNodeFactory(1|w.nullTransformationContext.factory.flags,w.nullTransformationContext.factory.baseFactory)});function C(e){var t=w.visitEachChild(e,C,i,k,C),t=w.nodeIsSynthesized(t)?t:Object.create(t);return w.setTextRangePosEnd(t,a(e),o(e)),t}function k(e,t,r,n,i){i=w.visitNodes(e,t,r,n,i);if(!i)return i;i=i===e?w.factory.createNodeArray(i.slice(0)):i;return w.setTextRangePosEnd(i,a(e),o(e)),i}function E(e){var n=0,i=w.createTextWriter(e);function r(e,t){if(t||(t=e,w.skipTrivia(t,0)!==t.length)){n=i.getTextPos();for(var r=0;w.isWhiteSpaceLike(e.charCodeAt(e.length-r-1));)r++;n-=r}}return{onBeforeEmitNode:function(e){e&&t(e,n)},onAfterEmitNode:function(e){e&&s(e,n)},onBeforeEmitNodeArray:function(e){e&&t(e,n)},onAfterEmitNodeArray:function(e){e&&s(e,n)},onBeforeEmitToken:function(e){e&&t(e,n)},onAfterEmitToken:function(e){e&&s(e,n)},write:function(e){i.write(e),r(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),r(e,!1)},writeOperator:function(e){i.writeOperator(e),r(e,!1)},writePunctuation:function(e){i.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){i.writeParameter(e),r(e,!1)},writeProperty:function(e){i.writeProperty(e),r(e,!1)},writeSpace:function(e){i.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),r(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),r(e,!1)},writeLiteral:function(e){i.writeLiteral(e),r(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),n=0}}}function N(e,t){return!(w.isInComment(e,t)||w.isInString(e,t)||w.isInTemplateString(e,t)||w.isInJSXText(e,t))}function A(e,t,r){var n;r.parent.name?(n=w.Debug.checkDefined(w.getTokenAtPosition(t,r.pos-1)),e.deleteRange(t,{pos:n.getStart(t),end:r.end})):F(e,t,w.getAncestor(r,266))}function F(e,t,r,n){void 0===n&&(n={leadingTriviaOption:l.IncludeAll});var i=f(t,r,n),n=m(t,r,n);e.deleteRange(t,{pos:i,end:n})}function P(e,t,r,n){var i=w.Debug.checkDefined(w.formatting.SmartIndenter.getContainingList(n,r)),a=w.indexOfNode(i,n);w.Debug.assert(-1!==a),1!==i.length?(w.Debug.assert(!t.has(n),"Deleting a node twice"),t.add(n),e.deleteRange(r,{pos:v(r,n),end:a===i.length-1?m(r,n,{}):v(r,i[a+1])})):F(e,r,n)}e.assignPositionsToNode=C,e.createWriter=E,e.isValidLocationToAddComment=N,(T||(T={})).deleteDeclaration=function(e,t,r,n){switch(n.kind){case 164:var i=n.parent;w.isArrowFunction(i)&&1===i.parameters.length&&!w.findChildOfKind(i,20,r)?e.replaceNodeWithText(r,n,"()"):P(e,t,r,n);break;case 266:case 265:F(e,r,n,{leadingTriviaOption:r.imports.length&&n===w.first(r.imports).parent||n===w.find(r.statements,w.isAnyImportSyntax)?l.Exclude:w.hasJSDocNodes(n)?l.JSDoc:l.StartLine});break;case 203:var a=n.parent;202===a.kind&&n!==w.last(a.elements)?F(e,r,n):P(e,t,r,n);break;case 254:!function(e,t,r,n){var i=n.parent;if(292===i.kind)return e.deleteNodeRange(r,w.findChildOfKind(i,20,r),w.findChildOfKind(i,21,r));if(1!==i.declarations.length)return P(e,t,r,n),0;var a=i.parent;switch(a.kind){case 244:case 243:e.replaceNode(r,n,w.factory.createObjectLiteralExpression());break;case 242:F(e,r,i);break;case 237:F(e,r,a,{leadingTriviaOption:w.hasJSDocNodes(a)?l.JSDoc:l.StartLine});break;default:w.Debug.assertNever(a)}}(e,t,r,n);break;case 163:P(e,t,r,n);break;case 270:var o=n.parent;1===o.elements.length?A(e,r,o):P(e,t,r,n);break;case 268:A(e,r,n);break;case 26:F(e,r,n,{trailingTriviaOption:u.Exclude});break;case 98:F(e,r,n,{leadingTriviaOption:l.Exclude});break;case 257:case 256:F(e,r,n,{leadingTriviaOption:w.hasJSDocNodes(n)?l.JSDoc:l.StartLine});break;default:n.parent?w.isImportClause(n.parent)&&n.parent.name===n?(s=e,c=r,(i=n.parent).namedBindings?(a=i.name.getStart(c),(o=w.getTokenAtPosition(c,i.name.end))&&27===o.kind?(o=w.skipTrivia(c.text,o.end,!1,!0),s.deleteRange(c,{pos:a,end:o})):F(s,c,i.name)):F(s,c,i.parent)):w.isCallExpression(n.parent)&&w.contains(n.parent.arguments,n)?P(e,t,r,n):F(e,r,n):F(e,r,n)}var s,c},e.deleteNode=F}(w.textChanges||(w.textChanges={}))}(ts=ts||{}),function(c){var e,s,l;function o(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=u(e);n<i.length;n++){var a=i[n];c.contains(t,a.code)&&r(a)}}function u(e){var t=e.program,r=e.sourceFile,e=e.cancellationToken;return __spreadArray(__spreadArray(__spreadArray([],t.getSemanticDiagnostics(r,e),!0),t.getSyntacticDiagnostics(r,e),!0),c.computeSuggestionDiagnostics(r,t,e),!0)}e=c.codefix||(c.codefix={}),s=c.createMultiMap(),l=new c.Map,e.createCodeFixActionWithoutFixAll=function(e,t,r){return o(e,c.diagnosticToString(r),t,void 0,void 0)},e.createCodeFixAction=function(e,t,r,n,i,a){return o(e,c.diagnosticToString(r),t,n,c.diagnosticToString(i),a)},e.createCodeFixActionMaybeFixAll=function(e,t,r,n,i,a){return o(e,c.diagnosticToString(r),t,n,i&&c.diagnosticToString(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(!l.has(o)),l.set(o,e)}},e.getSupportedErrorCodes=function(){return c.arrayFrom(s.keys())},e.getFixes=function(t){var r=u(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 l.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 n,i;n=e.refactor||(e.refactor={}),i=new e.Map,n.registerRefactor=function(e,t){i.set(e,t)},n.getApplicableRefactors=function(r){return e.arrayFrom(e.flatMapIterator(i.values(),function(e){var t;return r.cancellationToken&&r.cancellationToken.isCancellationRequested()||null===(t=e.kinds)||void 0===t||!t.some(function(e){return n.refactorKindBeginsWith(e,r.kind)})?void 0:e.getAvailableActions(r)}))},n.getEditsForRefactor=function(e,t,r){return(t=i.get(t))&&t.getEditsForAction(e,r)}}(ts=ts||{}),function(i){var n,a,t;function o(e,t,r){var n=i.isAsExpression(r)?i.factory.createAsExpression(r.expression,i.factory.createKeywordTypeNode(155)):i.factory.createTypeAssertion(i.factory.createKeywordTypeNode(155),r.expression);e.replaceNode(t,r.expression,n)}function s(e,t){if(!i.isInJSFile(e))return i.findAncestor(i.getTokenAtPosition(e,t),function(e){return i.isAsExpression(e)||i.isTypeAssertionExpression(e)})}n=i.codefix||(i.codefix={}),a="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],n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var r=s(t.sourceFile,t.span.start);if(void 0!==r){var e=i.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,r)});return[n.createCodeFixAction(a,e,i.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,a,i.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[a],getAllCodeActions:function(e){return n.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&o(e,t.file,r)})}})}(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,n.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(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 l(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 u(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.getTypeChecker().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=u(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[l(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=u(n,e);if(e)return l(r,e,function(e){return e(t),[]},i)})}})}(ts=ts||{}),function(d){var u,o,_,p,f;function g(e,t,r,n,i){var a=d.getFixableErrorSpanExpression(e,r);return a&&function(e,i,a,t,r){t=r.getTypeChecker().getDiagnostics(e,t);return d.some(t,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},a)&&e===i&&!!n&&d.some(n,function(e){return e.code===d.Diagnostics.Did_you_forget_to_use_await.code})})}(e,t,r,n,i)&&h(a)?a:void 0}function m(e,r,n,i,t,a){var o=e.sourceFile,s=e.program,e=e.cancellationToken,c=function(e,s,i,c,l){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,l);if(!e)return;for(var u,_=e.isCompleteFix,t=function(a){var e=l.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,237);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,l,s,function(e){return a!==e&&(t=e,r=o,n=s,e=l,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";(u=u||[]).push({expression:t.initializer,declarationSymbol:e})},r=0,n=e.identifiers;r<n.length;r++){var a=n[r];t(a)}return u&&{initializers:u,needsSecondPassForFixAll:!_}}(r,o,e,s,i);if(c){t=t(function(t){d.forEach(c.initializers,function(e){e=e.expression;return l(t,n,o,i,e,a)}),a&&c.needsSecondPassForFixAll&&l(t,n,o,i,r,a)});return u.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 y(t,r,n,i,e,a){e=e(function(e){return l(e,n,t.sourceFile,i,r,a)});return u.createCodeFixAction(o,e,d.Diagnostics.Add_await,o,d.Diagnostics.Fix_all_expressions_possibly_missing_await)}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)&&(256===e.parent.kind||213===e.parent.kind||214===e.parent.kind||169===e.parent.kind)})}function l(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((u=n.getSymbolAtLocation(c))&&a.has(d.getSymbolId(u)))continue;var l=n.getTypeAtLocation(c),l=n.getPromisedTypeOfPromise(l)?d.factory.createAwaitExpression(c):c;e.replaceNode(r,c,l)}else if(t===_&&d.isPropertyAccessExpression(i.parent)){if(a&&d.isIdentifier(i.parent.expression))if((u=n.getSymbolAtLocation(i.parent.expression))&&a.has(d.getSymbolId(u)))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((u=n.getSymbolAtLocation(i))&&a.has(d.getSymbolId(u)))return;e.replaceNode(r,i,d.factory.createParenthesizedExpression(d.factory.createAwaitExpression(i))),v(e,i,r)}else{var u;if(a&&d.isVariableDeclaration(i.parent)&&d.isIdentifier(i.parent.name))if((u=n.getSymbolAtLocation(i.parent.name))&&!d.tryAddToSet(a,d.getSymbolId(u)))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),";")}u=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=__spreadArray([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.This_condition_will_always_return_true_since_this_0_is_always_defined.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_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.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,!0),u.registerCodeFix({fixIds:[o],errorCodes:f,getCodeActions:function(t){var e=t.sourceFile,r=t.errorCode,n=g(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([m(t,n,r,i,e),y(t,n,r,i,e)])}},getAllCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.cancellationToken,c=i.program.getTypeChecker(),l=new d.Set;return u.codeFixAll(i,f,function(t,e){var r=g(a,e.code,e,s,o);if(r){var n=function(e){return e(t),[]};return m(i,r,e.code,c,n,l)||y(i,r,e.code,c,n,l)}})}})}(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 79:case 204:case 205:case 296:case 297:return!0;default:return!1}}(e)&&"quit"});if(r)return c(e,r,t,i);r=a.parent;if(s.isBinaryExpression(r)&&63===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 79:case 221: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 63===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,85,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)&&(167!==(r=r.parent).kind||n&&!i.tryAddToSet(n,r)||e.insertModifierBefore(t,135,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),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.");n=a.factory.createTypeReferenceNode(i.name,void 0),n=a.factory.createParameterDeclaration(void 0,i.modifiers,i.dotDotDotToken,"arg"+r,i.questionToken,i.dotDotDotToken?a.factory.createArrayTypeNode(n):n,i.initializer);e.replaceNode(t,i,n)}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(o){var n,i,e;n=o.codefix||(o.codefix={}),i="addOptionalPropertyUndefined",e=[o.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,o.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,o.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.program.getTypeChecker(),r=function(e,t,r){var e=function e(t,r){{if(!t)return;if(o.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(o.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(o.isCallExpression(t.parent)){var n=r.getSymbolAtLocation(t.parent.expression);if(null==n||!n.valueDeclaration||!o.isFunctionLikeKind(n.valueDeclaration.kind))return;if(!o.isExpression(t))return;var i=t.parent.arguments.indexOf(t);if(-1===i)return;var i=n.valueDeclaration.parameters[i].name;if(o.isIdentifier(i))return{source:t,target:i}}else if(o.isPropertyAssignment(t.parent)&&o.isIdentifier(t.parent.name)||o.isShorthandPropertyAssignment(t.parent)){i=e(t.parent.parent,r);if(!i)return;var i=r.getPropertyOfType(r.getTypeAtLocation(i.target),t.parent.name.text),i=null===(i=null==i?void 0:i.declarations)||void 0===i?void 0:i[0];return i?{source:o.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:i}:void 0}}return}(o.getFixableErrorSpanExpression(e,t),r);if(!e)return o.emptyArray;var t=e.source,e=e.target,t=function(e,t,r){return o.isPropertyAccessExpression(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}(t,e,r)?r.getTypeAtLocation(e.expression):r.getTypeAtLocation(e);if(null!==(e=null===(e=t.symbol)||void 0===e?void 0:e.declarations)&&void 0!==e&&e.some(function(e){return o.getSourceFileOfNode(e).fileName.match(/\.d\.ts$/)}))return o.emptyArray;return r.getExactOptionalProperties(t)}(e.sourceFile,e.span,t);if(r.length){e=o.textChanges.ChangeTracker.with(e,function(e){return function(e,t){for(var r=0,n=t;r<n.length;r++){var i,a=n[r].valueDeclaration;a&&(o.isPropertySignature(a)||o.isPropertyDeclaration(a))&&a.type&&(i=o.factory.createUnionTypeNode(__spreadArray(__spreadArray([],187===a.type.kind?a.type.types:[a.type],!0),[o.factory.createTypeReferenceNode("undefined")],!1)),e.replaceNode(a.getSourceFile(),a.type,i))}}(e,r)});return[n.createCodeFixActionWithoutFixAll(i,e,o.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[i]})}(ts=ts||{}),function(l){var n,i,t;function a(e,t){t=l.getTokenAtPosition(e,t);return l.tryCast((l.isParameter(t.parent)?t.parent:t).parent,r)}function r(e){return t=e,(l.isFunctionLikeDeclaration(t)||254===t.kind||166===t.kind||167===t.kind)&&o(e);var t}function o(e){return l.isFunctionLikeDeclaration(e)?e.parameters.some(o)||!e.type&&!!l.getJSDocReturnType(e):!e.type&&!!l.getJSDocType(e)}function s(e,t,r){if(l.isFunctionLikeDeclaration(r)&&(l.getJSDocReturnType(r)||r.parameters.some(function(e){return!!l.getJSDocType(e)}))){r.typeParameters||(n=l.getJSDocTypeParameterDeclarations(r)).length&&e.insertTypeParameters(t,r,n);var n=l.isArrowFunction(r)&&!l.findChildOfKind(r,20,t);n&&e.insertNodeBefore(t,l.first(r.parameters),l.factory.createToken(20));for(var i=0,a=r.parameters;i<a.length;i++){var o,s=a[i];s.type||(o=l.getJSDocType(s))&&e.tryInsertTypeAnnotation(t,s,u(o))}n&&e.insertNodeAfter(t,l.last(r.parameters),l.factory.createToken(21)),r.type||(c=l.getJSDocReturnType(r))&&e.tryInsertTypeAnnotation(t,r,u(c))}else{var c=l.Debug.checkDefined(l.getJSDocType(r),"A JSDocType for this declaration should exist");l.Debug.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,u(c))}}function u(e){switch(e.kind){case 312:case 313:return l.factory.createTypeReferenceNode("any",l.emptyArray);case 316:return n=e,l.factory.createUnionTypeNode([l.visitNode(n.type,u),l.factory.createTypeReferenceNode("undefined",l.emptyArray)]);case 315:return u(e.type);case 314:return r=e,l.factory.createUnionTypeNode([l.visitNode(r.type,u),l.factory.createTypeReferenceNode("null",l.emptyArray)]);case 318:return r=e,l.factory.createArrayTypeNode(l.visitNode(r.type,u));case 317:return t=e,l.factory.createFunctionTypeNode(l.emptyArray,t.parameters.map(c),null!==(t=t.type)&&void 0!==t?t:l.factory.createKeywordTypeNode(130));case 178:return function(e){var t=e.typeName,r=e.typeArguments;if(l.isIdentifier(e.typeName)){if(l.isJSDocIndexSignature(e))return function(e){var t=l.factory.createParameterDeclaration(void 0,void 0,void 0,147===e.typeArguments[0].kind?"n":"s",void 0,l.factory.createTypeReferenceNode(147===e.typeArguments[0].kind?"number":"string",[]),void 0),e=l.factory.createTypeLiteralNode([l.factory.createIndexSignature(void 0,void 0,[t],e.typeArguments[1])]);return l.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=l.factory.createIdentifier(n),r="Array"!==n&&"Promise"!==n||e.typeArguments?l.visitNodes(e.typeArguments,u):l.factory.createNodeArray([l.factory.createTypeReferenceNode("any",l.emptyArray)])}return l.factory.createTypeReferenceNode(t,r)}(e);default:t=l.visitEachChild(e,u,l.nullTransformationContext);return l.setEmitFlags(t,1),t}var t,r,n}function c(e){var t=e.parent.parameters.indexOf(e),r=318===e.type.kind&&t===e.parent.parameters.length-1,t=e.name||(r?"rest":"arg"+t),r=r?l.factory.createToken(25):e.dotDotDotToken;return l.factory.createParameterDeclaration(e.decorators,e.modifiers,r,t,e.questionToken,l.visitNode(e.type,u),e.initializer)}n=l.codefix||(l.codefix={}),i="annotateWithTypeFromJSDoc",t=[l.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=l.textChanges.ChangeTracker.with(t,function(e){return s(e,t.sourceFile,r)});return[n.createCodeFixAction(i,e,l.Diagnostics.Annotate_with_type_from_JSDoc,i,l.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(p){var n,r,e;function i(l,u,e,t,_,d){var r,n=t.getSymbolAtLocation(p.getTokenAtPosition(u,e));function i(r){var n=[];return r.exports&&r.exports.forEach(function(e){var t;"prototype"===e.name&&e.declarations?(t=e.declarations[0],1===e.declarations.length&&p.isPropertyAccessExpression(t)&&p.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&p.isObjectLiteralExpression(t.parent.right)&&i(t.parent.right.symbol,void 0,n)):i(e,[p.factory.createToken(124)],n)}),r.members&&r.members.forEach(function(e,t){"constructor"===t&&e.valueDeclaration?(t=null===(t=null===(t=null===(t=null===(t=r.exports)||void 0===t?void 0:t.get("prototype"))||void 0===t?void 0:t.declarations)||void 0===t?void 0:t[0])||void 0===t?void 0:t.parent)&&p.isBinaryExpression(t)&&p.isObjectLiteralExpression(t.right)&&p.some(t.right.properties,g)||l.delete(u,e.valueDeclaration.parent):i(e,void 0,n)}),n;function i(t,s,r){var e,c,n,i,a;function o(e,t,r){return p.isFunctionExpression(t)?(n=e,i=t,a=r,o=p.concatenate(s,f(i,131)),i=p.factory.createMethodDeclaration(void 0,o,void 0,a,void 0,void 0,i.parameters,void 0,i.body),p.copyLeadingComments(c,i,u),n.push(i)):function(e,t,r){var n=t.body;i=235===n.kind?n:p.factory.createBlock([p.factory.createReturnStatement(n)]);var n=p.concatenate(s,f(t,131)),i=p.factory.createMethodDeclaration(void 0,n,void 0,r,void 0,void 0,t.parameters,void 0,i);p.copyLeadingComments(c,i,u),e.push(i)}(e,t,r),0;var n,i,a,o}(8192&t.flags||4096&t.flags)&&(e=t.valueDeclaration,a=(c=e.parent).right,i=e,n=a,(p.isAccessExpression(i)?p.isPropertyAccessExpression(i)&&g(i)||p.isFunctionLike(n):p.every(i.properties,function(e){return!(!p.isMethodDeclaration(e)&&!p.isGetOrSetAccessorDeclaration(e))||(!!(p.isPropertyAssignment(e)&&p.isFunctionExpression(e.initializer)&&e.name)||!!g(e))}))&&(p.some(r,function(e){e=p.getNameOfDeclaration(e);return!(!e||!p.isIdentifier(e)||p.idText(e)!==p.symbolName(t))})||(i=c.parent&&238===c.parent.kind?c.parent:c,l.delete(u,i),a?p.isAccessExpression(e)&&(p.isFunctionExpression(a)||p.isArrowFunction(a))?(i=p.getQuotePreference(u,_),(i=function(e,t,r){if(p.isPropertyAccessExpression(e))return e.name;e=e.argumentExpression;if(p.isNumericLiteral(e))return e;if(p.isStringLiteralLike(e))return p.isIdentifierText(e.text,p.getEmitScriptTarget(t))?p.factory.createIdentifier(e.text):p.isNoSubstitutionTemplateLiteral(e)?p.factory.createStringLiteral(e.text,0===r):e;return}(e,d,i))&&o(r,a,i)):p.isObjectLiteralExpression(a)?p.forEach(a.properties,function(e){(p.isMethodDeclaration(e)||p.isGetOrSetAccessorDeclaration(e))&&r.push(e),p.isPropertyAssignment(e)&&p.isFunctionExpression(e.initializer)&&o(r,e.initializer,e.name),g(e)}):p.isSourceFileJS(u)||p.isPropertyAccessExpression(e)&&(a=p.factory.createPropertyDeclaration(void 0,s,e.name,void 0,void 0,a),p.copyLeadingComments(c.parent,a,u),r.push(a)):r.push(p.factory.createPropertyDeclaration([],s,t.name,void 0,void 0,void 0)))))}}n&&n.valueDeclaration&&19&n.flags&&(r=n.valueDeclaration,p.isFunctionDeclaration(r)?l.replaceNode(u,r,function(e){var t=i(n);e.body&&t.unshift(p.factory.createConstructorDeclaration(void 0,void 0,e.parameters,e.body));var r=f(e,93);return p.factory.createClassDeclaration(void 0,r,e.name,void 0,void 0,t)}(r)):!p.isVariableDeclaration(r)||(t=function(e){var t=e.initializer;if(!t||!p.isFunctionExpression(t)||!p.isIdentifier(e.name))return;var r=i(e.symbol);t.body&&r.unshift(p.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));t=f(e.parent.parent,93);return p.factory.createClassDeclaration(void 0,t,e.name,void 0,void 0,r)}(r))&&(e=r.parent.parent,p.isVariableDeclarationList(r.parent)&&1<r.parent.declarations.length?(l.delete(u,r),l.insertNodeAfter(u,e,t)):l.replaceNode(u,e,t)))}function f(e,t){return p.filter(e.modifiers,function(e){return e.kind===t})}function g(e){return!!e.name&&!(!p.isIdentifier(e.name)||"constructor"!==e.name.text)}n=p.codefix||(p.codefix={}),r="convertFunctionToEs6Class",e=[p.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=p.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions())});return[n.createCodeFixAction(r,e,p.Diagnostics.Convert_function_to_an_ES2015_class,r,p.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(),r.preferences,r.program.getCompilerOptions())})}})}(ts=ts||{}),function(v){var n,e,r,t,b;function i(i,a,e,t){var r=v.getTokenAtPosition(a,e),n=v.isIdentifier(r)&&v.isVariableDeclaration(r.parent)&&r.parent.initializer&&v.isFunctionLikeDeclaration(r.parent.initializer)?r.parent.initializer:v.tryCast(v.getContainingFunction(v.getTokenAtPosition(a,e)),v.canBeConvertedToAsync);if(n){var c,l,u,_,o=new v.Map,s=v.isInJSFile(n),r=function(e,r){if(!e.body)return new v.Set;var n=new v.Set;return v.forEachChild(e.body,function e(t){x(t,r,"then")?(n.add(v.getNodeId(t)),v.forEach(t.arguments,e)):x(t,r,"catch")||x(t,r,"finally")?(n.add(v.getNodeId(t)),v.forEachChild(t,e)):D(t,r)?n.add(v.getNodeId(t)):v.forEachChild(t,e)}),n}(n,t),e=(e=n,c=t,l=o,u=new v.Map,_=v.createMultiMap(),v.forEachChild(e,function e(t){var r,n,i,a,o,s;v.isIdentifier(t)?(r=c.getSymbolAtLocation(t))&&(o=k(c.getTypeAtLocation(t),c),n=v.getSymbolId(r).toString(),!o||v.isParameter(t.parent)||v.isFunctionLikeDeclaration(t.parent)||l.has(n)?t.parent&&(v.isParameter(t.parent)||v.isVariableDeclaration(t.parent)||v.isBindingElement(t.parent))&&(s=t.text,(i=_.get(s))&&i.some(function(e){return e!==r})?(a=S(t,_),u.set(n,a.identifier),l.set(n,a)):(a=v.getSynthesizedDeepClone(t),l.set(n,N(a))),_.add(s,r)):(s=S(o=(null==(s=v.firstOrUndefined(o.parameters))?void 0:s.valueDeclaration)&&v.isParameter(s.valueDeclaration)&&v.tryCast(s.valueDeclaration.name,v.isIdentifier)||v.factory.createUniqueName("result",16),_),l.set(n,s),_.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))&&u.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))&&u.get(String(v.getSymbolId(t))))return v.factory.createIdentifier(r.text)}));if(v.returnsPromise(e,t)){var d,p,f,d=e.body&&v.isBlock(e.body)?(d=e.body,p=t,f=[],v.forEachReturnStatement(d,function(e){v.isReturnStatementWithFixablePromiseHandler(e,p)&&f.push(e)}),f):v.emptyArray,g={checker:t,synthNamesMap:o,setOfExpressionsToReturn:r,isInJSFile:s};if(d.length){s=n.modifiers?n.modifiers.end:n.decorators?v.skipTrivia(a.text,n.decorators.end):n.getStart(a),n=n.modifiers?{prefix:" "}:{suffix:" "};i.insertModifierAt(a,s,131,n);for(var m=0,y=d;m<y.length;m++){var h=function(n){if(v.forEachChild(n,function e(t){if(v.isCallExpression(t)){var r=T(t,t,g,!1);if(!b)return!0;i.replaceNodeWithNodes(a,n,r)}else if(!v.isFunctionLike(t)&&(v.forEachChild(t,e),!b))return!0}),!b)return{value:void 0}}(y[m]);if("object"==typeof h)return h.value}}}}}function x(e,t,r){if(v.isCallExpression(e)){e=v.hasPropertyAccessExpressionWithName(e,r)&&t.getTypeAtLocation(e);return e&&t.getPromisedTypeOfPromise(e)}}function a(e,t){return 0!=(4&v.getObjectFlags(e))&&e.target===t}function g(e,t,r){if("finally"!==e.expression.name.escapedText){var n=r.getTypeAtLocation(e.expression.expression);return a(n,r.getPromiseType())||a(n,r.getPromiseLikeType())?"then"!==e.expression.name.escapedText||t===v.elementAt(e.arguments,0)?v.elementAt(e.typeArguments,0):t===v.elementAt(e.arguments,1)?v.elementAt(e.typeArguments,1):void 0:void 0}}function D(e,t){return v.isExpression(e)&&t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function S(e,t){t=(t.get(e.text)||v.emptyArray).length;return N(0===t?e:v.factory.createIdentifier(e.text+"_"+t))}function m(){return b=!1,v.emptyArray}function T(e,t,r,n,i){if(x(t,r.checker,"then"))return function(e,t,r,n,i,a){if(!t||c(n,t))return s(e,r,n,i,a);if(r&&!c(n,r))return m();var o=d(t,n),r=T(e.expression.expression,e.expression.expression,n,!0,o);if(!b)return m();n=_(t,i,a,o,e,n);return b?v.concatenate(r,n):m()}(t,v.elementAt(t.arguments,0),v.elementAt(t.arguments,1),r,n,i);if(x(t,r.checker,"catch"))return s(t,v.elementAt(t.arguments,0),r,n,i);if(x(t,r.checker,"finally"))return function(e,t,r,n,i){if(!t||c(r,t))return T(e,e.expression.expression,r,n,i);var a=l(e,r,i),o=T(e,e.expression.expression,r,!0,a);if(!b)return m();n=_(t,n,void 0,void 0,e,r);if(!b)return m();o=v.factory.createBlock(o),n=v.factory.createBlock(n),n=v.factory.createTryStatement(o,void 0,n);return u(e,r,n,a,i)}(t,v.elementAt(t.arguments,0),r,n,i);if(v.isPropertyAccessExpression(t))return T(e,t.expression,r,n,i);var a=r.checker.getTypeAtLocation(t);return a&&r.checker.getPromisedTypeOfPromise(a)?(v.Debug.assertNode(v.getOriginalNode(t).parent,v.isPropertyAccessExpression),function(e,t,r,n,i){if(I(e,r)){r=v.getSynthesizedDeepClone(t);return n&&(r=v.factory.createAwaitExpression(r)),[v.factory.createReturnStatement(r)]}return y(i,v.factory.createAwaitExpression(t),void 0)}(e,t,r,n,i)):m()}function c(e,t){e=e.checker;if(104===t.kind)return 1;if(v.isIdentifier(t)&&!v.isGeneratedIdentifier(t)&&"undefined"===v.idText(t)){t=e.getSymbolAtLocation(t);return!t||e.isUndefinedSymbol(t)}}function l(e,r,n){var t;return n&&!I(e,r)&&(w(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),P(t)),t}function u(e,t,r,n,i){var a,o=[];return n&&!I(e,t)&&(a=v.getSynthesizedDeepClone(P(n)),n=n.types,n=t.checker.getUnionType(n,2),n=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),n=[v.factory.createVariableDeclaration(a,void 0,n)],n=v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList(n,1)),o.push(n)),o.push(r),i&&a&&1===i.kind&&o.push(v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(v.getSynthesizedDeepClone(f(i)),void 0,void 0,a)],2))),o}function s(e,t,r,n,i){if(!t||c(r,t))return T(e,e.expression.expression,r,n,i);var a=d(t,r),o=l(e,r,i),s=T(e,e.expression.expression,r,!0,o);if(!b)return m();n=_(t,n,o,a,e,r);if(!b)return m();s=v.factory.createBlock(s),n=v.factory.createCatchClause(a&&v.getSynthesizedDeepClone(F(a)),v.factory.createBlock(n));return u(e,r,v.factory.createTryStatement(s,n,void 0),o,i)}function y(e,t,r){return!e||o(e)?[v.factory.createExpressionStatement(t)]:w(e)&&e.hasBeenDeclared?[v.factory.createExpressionStatement(v.factory.createAssignment(v.getSynthesizedDeepClone(A(e)),t))]:[v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(v.getSynthesizedDeepClone(F(e)),void 0,r,t)],2))]}function h(e,t){if(t&&e){var r=v.factory.createUniqueName("result",16);return __spreadArray(__spreadArray([],y(N(r),e,t),!0),[v.factory.createReturnStatement(r)],!1)}return[v.factory.createReturnStatement(e)]}function _(e,t,r,n,i,a){switch(e.kind){case 104:break;case 206:case 79:if(!n)break;var o=v.factory.createCallExpression(v.getSynthesizedDeepClone(e),void 0,w(n)?[A(n)]:[]);if(I(i,a))return h(o,g(i,e,a.checker));var s=a.checker.getTypeAtLocation(e),s=a.checker.getSignaturesOfType(s,0);if(!s.length)return m();var s=s[0].getReturnType(),o=y(r,v.factory.createAwaitExpression(o),g(i,e,a.checker));return r&&r.types.push(a.checker.getAwaitedType(s)||s),o;case 213:case 214:var s=e.body,c=null===(o=k(a.checker.getTypeAtLocation(e),a.checker))||void 0===o?void 0:o.getReturnType();if(v.isBlock(s)){for(var l=[],u=!1,_=0,d=s.statements;_<d.length;_++){var p=d[_];if(v.isReturnStatement(p)){u=!0;v.isReturnStatementWithFixablePromiseHandler(p,a.checker)?l=l.concat(E(a,p,t,r)):(f=c&&p.expression?C(a.checker,c,p.expression):p.expression,l.push.apply(l,h(f,g(i,e,a.checker))))}else{if(t&&v.forEachReturnStatement(p,v.returnTrue))return m();l.push(p)}}return I(i,a)?l.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=D(c.expression,r.checker)?v.factory.createAwaitExpression(c.expression):c.expression,void 0===t?i.push(v.factory.createExpressionStatement(s)):w(t)&&t.hasBeenDeclared?i.push(v.factory.createExpressionStatement(v.factory.createAssignment(A(t),s))):i.push(v.factory.createVariableStatement(void 0,v.factory.createVariableDeclarationList([v.factory.createVariableDeclaration(F(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(F(t),void 0,void 0,v.factory.createIdentifier("undefined"))],2)));return i}(l,r,a,u)}o=v.isFixablePromiseHandler(s,a.checker)?E(a,v.factory.createReturnStatement(s),t,r):v.emptyArray;if(0<o.length)return o;if(c){var f=C(a.checker,c,s);if(I(i,a))return h(f,g(i,e,a.checker));s=y(r,f,void 0);return r&&r.types.push(a.checker.getAwaitedType(c)||c),s}return m();default:return m()}return v.emptyArray}function C(e,t,r){r=v.getSynthesizedDeepClone(r);return e.getPromisedTypeOfPromise(t)?v.factory.createAwaitExpression(r):r}function k(e,t){e=t.getSignaturesOfType(e,0);return v.lastOrUndefined(e)}function E(n,e,i,a){var o=[];return v.forEachChild(e,function e(t){var r;v.isCallExpression(t)?(r=T(t,t,n,i,a),(o=o.concat(r)).length):v.isFunctionLike(t)||v.forEachChild(t,e)}),o}function d(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 p(e,r)}(e.parameters[0].name)):v.isIdentifier(e)?t=i(e):v.isPropertyAccessExpression(e)&&v.isIdentifier(e.name)&&(t=i(e.name)),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||(w(e)?!e.identifier.text:v.every(e.elements,o))}function N(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function p(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 e.hasBeenReferenced=!0,e.identifier}function F(e){return(w(e)?P:f)(e)}function f(e){for(var t=0,r=e.elements;t<r.length;t++)F(r[t]);return e.bindingPattern}function P(e){return e.hasBeenDeclared=!0,e.identifier}function w(e){return 0===e.kind}function I(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],b=!0,n.registerCodeFix({errorCodes:t,getCodeActions:function(t){b=!0;var e=v.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.program.getTypeChecker())});return b?[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 i(e,t.file,t.start,r.program.getTypeChecker())})}}),(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&&63===r.operatorToken.kind)),t.forEachChild(e)})}function h(n,e,t,i,a,o,s){var r,c=e.declarationList,l=!1,u=m.map(c.declarations,function(e){var t=e.name,r=e.initializer;if(r){if(m.isExportsOrModuleExportsOrAlias(n,r))return l=!0,E([]);if(m.isRequireCall(r,!0))return l=!0,function(e,t,r,n,i,a){switch(e.kind){case 201: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 E([m.makeImport(void 0,o,t,a)]);case 202:o=D(_.moduleSpecifierToValidIdentifier(t.text,i),n);return E([m.makeImport(m.factory.createIdentifier(o),void 0,t,a),C(void 0,m.getSynthesizedDeepClone(e),m.factory.createIdentifier(o))]);case 79:return function(e,t,r,n,i){for(var a,o=r.getSymbolAtLocation(e),s=new m.Map,c=!1,l=0,u=n.original.get(e.text);l<u.length;l++){var _,d,p,f=u[l];r.getSymbolAtLocation(f)===o&&f!==e&&(_=f.parent,m.isPropertyAccessExpression(_)?"default"===(d=_.name.text)?(c=!0,p=f.getText(),(null!=a?a:a=new m.Map).set(_,m.factory.createIdentifier(p))):(m.Debug.assert(_.expression===f,"Didn't expect expression === use"),void 0===(f=s.get(d))&&(f=D(d,n),s.set(d,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(!1,t===e?void 0:m.factory.createIdentifier(t),m.factory.createIdentifier(e))}));g||(c=!0);return E([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 ES module got invalid name kind ".concat(e.kind))}}(t,r.arguments[0],i,a,o,s);if(m.isPropertyAccessExpression(r)&&m.isRequireCall(r.expression,!0))return l=!0,function(e,t,r,n,i){switch(e.kind){case 201:case 202:var a=D(t,n);return E([d(a,t,r,i),C(void 0,e,m.factory.createIdentifier(a))]);case 79:return E([d(e.text,t,r,i)]);default:return m.Debug.assertNever(e,"Convert to ES module got invalid syntax form ".concat(e.kind))}}(t,r.name.text,r.expression.arguments[0],a,s)}return E([m.factory.createVariableStatement(void 0,m.factory.createVariableDeclarationList([e],c.flags))])});if(l)return t.replaceNodeWithNodes(n,e,m.flatMap(u,function(e){return e.newImports})),m.forEach(u,function(e){e.useSitesToUnqualify&&m.copyEntries(e.useSitesToUnqualify,null!=r?r:r=new m.Map)}),r}function v(e){return k(void 0,e)}function b(e){return k([m.factory.createExportSpecifier(!1,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(206===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="_".concat(e);return t.additional.add(e),e}function S(e){var t=e.parent;switch(t.kind){case 206:return t.name!==e;case 203:case 270: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(!1,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 k(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 E(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_ES_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("_".concat(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,l=0,u=m.filter(r.statements,m.isVariableStatement);l<u.length;l++){var _=u[l],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 237:return h(e,t,n,r,i,a,c),!1;case 238:var l=t.expression;switch(l.kind){case 208:return m.isRequireCall(l,!0)&&n.replaceNode(e,t,m.makeImport(void 0,void 0,l.arguments[0],c)),!1;case 221:return 63===l.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 172:case 173:case 297:case 298:return;case 296:return m.isIdentifier(e.name)?function(e,t,r){var n=[m.factory.createToken(93)];switch(t.kind){case 213:var i=t.name;if(i&&i.text!==e)return a();case 214:return T(e,n,t,r);case 226: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 169:return m.isIdentifier(e.name)?T(e.name.text,[m.factory.createToken(93)],e,t):void 0;default:m.Debug.assertNever(e,"Convert to ES6 got invalid prop kind ".concat(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),k([m.factory.createExportSpecifier(!1,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(93),m.factory.createToken(85)],{joiner:" ",suffix:" "}):(r.replaceRange(t,{pos:n.getStart(t),end:i.getStart(t)},m.factory.createToken(93),{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,l,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,m.getEmitScriptTarget(a.getCompilerOptions()),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,m.getModeForUsageLocation(e,o));if(s&&s.resolvedFileName===t.fileName){var c=m.importFromModuleSpecifier(o);switch(c.kind){case 265:r.replaceNode(e,c,m.makeImport(c.name,void 0,o,n));break;case 208:m.isRequireCall(c,!1)&&r.replaceNode(e,c,m.factory.createPropertyAccessExpression(m.getSynthesizedDeepClone(c),"default"))}}}}(n,i,e,m.getQuotePreference(n,o))}});return[_.createCodeFixActionWithoutFixAll("convertToEsModule",e,m.Diagnostics.Convert_to_ES_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="".concat(r.left.text,'["').concat(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,152,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,void 0),a=o.factory.createExportDeclaration(void 0,void 0,!0,o.factory.createNamedExports(i),n.moduleSpecifier,void 0),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,void 0))))}n=i.codefix||(i.codefix={}),e=[i.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_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 l(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(void 0,r,o.factory.createTypeReferenceNode(a)),void 0,void 0,i,void 0))}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 l(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&&l(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 l(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),l=o.getPropertiesOfType(c).filter(p.and(g,function(e){return!s.has(e.escapedName)})),e=o.getTypeAtLocation(i),u=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){t=o.getIndexInfoOfType(e,t);t&&d(n,i,o.indexInfoToIndexSignatureDeclaration(t,i,void 0,f.getNoopSymbolTrackerWithResolver(r)))}function d(e,t,r){u?a.insertNodeAfter(e,u,r):a.insertMemberAtStart(e,t,r)}f.createMissingMemberNodes(i,l,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 l(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];l(o,a,t.file,r,e,o.preferences)}})}})}(ts=ts||{}),function(O){!function(c){c.importFixName="import";var e,l="fixMissingImport",n=[O.Diagnostics.Cannot_find_name_0.code,O.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,O.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,O.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,O.Diagnostics.Cannot_find_namespace_0.code,O.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,O.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,O.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,O.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];function i(c,a,o,l,s){var u=a.getCompilerOptions(),f=[],g=[],m=new O.Map,y=new O.Map;return{addImportFromDiagnostic:function(e,t){e=x(t,e.code,e.start,o);if(!e||!e.fixes.length)return;_(e)},addImportFromExportedSymbol:function(e,t){var r=O.Debug.checkDefined(e.parent),n=O.getNameForExportedSymbol(e,O.getEmitScriptTarget(u)),i=a.getTypeChecker(),e=i.getMergedSymbol(O.skipAlias(e,i)),i=h(c,e,r,n,!1,s,a,l,o),e=b(c,a),e=d(c,i,r,a,void 0,!!t,e,s,l);e&&_({fixes:[e],symbolName:n,errorIdentifierText:void 0})},writeFixes:function(n){for(var a=O.getQuotePreference(c,l),e=0,t=f;e<t.length;e++){var r=t[e];k(n,c,r)}for(var o,i=0,s=g;i<s.length;i++){r=s[i];E(n,c,r,a)}m.forEach(function(e){var t=e.importClauseOrBindingPattern,r=e.defaultImport,e=e.namedImports;C(n,c,t,r,O.arrayFrom(e.entries(),function(e){var t=e[0];return{addAsTypeOnly:e[1],name:t}}),u)}),y.forEach(function(e,t){var r=e.useRequire,n=e.defaultImport,i=e.namedImports,e=e.namespaceLikeImport,e=(r?P:F)(t.slice(2),a,n,i&&O.arrayFrom(i.entries(),function(e){var t=e[0];return{addAsTypeOnly:e[1],name:t}}),e);o=O.combine(o,e)}),o&&O.insertImports(n,c,o,!0)},hasFixes:function(){return 0<f.length||0<g.length||0<m.size||0<y.size}};function _(e){var t,r=e.fixes,n=e.symbolName,i=O.first(r);switch(i.kind){case 0:f.push(i);break;case 1:g.push(i);break;case 2:var a=i.importClauseOrBindingPattern,o=i.importKind,s=i.addAsTypeOnly,c=String(O.getNodeId(a));(u=m.get(c))||m.set(c,u={importClauseOrBindingPattern:a,defaultImport:void 0,namedImports:new O.Map}),0===o?(_=null==u?void 0:u.namedImports.get(n),u.namedImports.set(n,d(_,s))):(O.Debug.assert(void 0===u.defaultImport||u.defaultImport.name===n,"(Add to Existing) Default import should be missing or match symbolName"),u.defaultImport={name:n,addAsTypeOnly:d(null===(l=u.defaultImport)||void 0===l?void 0:l.addAsTypeOnly,s)});break;case 3:var a=i.moduleSpecifier,o=i.importKind,l=i.useRequire,u=function(e,t,r,n){var i=p(e,!0),a=p(e,!1),o=y.get(i),e=y.get(a),r={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};if(1===t&&2===n)return o||(y.set(i,r),r);if(1===n&&(o||e))return o||e;if(e)return e;return y.set(a,r),r}(a,o,l,s=i.addAsTypeOnly);switch(O.Debug.assert(u.useRequire===l,"(Add new) Tried to add an `import` and a `require` for the same module"),o){case 1:O.Debug.assert(void 0===u.defaultImport||u.defaultImport.name===n,"(Add new) Default import should be missing or match symbolName"),u.defaultImport={name:n,addAsTypeOnly:d(null===(t=u.defaultImport)||void 0===t?void 0:t.addAsTypeOnly,s)};break;case 0:var _=(u.namedImports||(u.namedImports=new O.Map)).get(n);u.namedImports.set(n,d(_,s));break;case 3:case 2:O.Debug.assert(void 0===u.namespaceLikeImport||u.namespaceLikeImport.name===n,"Namespacelike import shoudl be missing or match symbolName"),u.namespaceLikeImport={importKind:o,name:n,addAsTypeOnly:s}}break;case 4:break;default:O.Debug.assertNever(i,"fix wasn't never - got kind ".concat(i.kind))}function d(e,t){return Math.max(null!=e?e:0,t)}function p(e,t){return"".concat(t?1:0,"|").concat(e)}}}function d(e,t,r,n,i,a,o,s,c){O.Debug.assert(t.some(function(e){return e.moduleSymbol===r||e.symbol.parent===r}),"Some exportInfo should match the specified moduleSymbol");var l=O.createPackageJsonImportFilter(e,c,s);return u(f(t,i,a,o,n,e,s,c).fixes,e,n,l,s)}function p(e){return{description:e.description,changes:e.changes,commands:e.commands}}function h(l,u,_,d,p,n,t,i,e){var f=[],g=t.getCompilerOptions(),a=O.memoizeOne(function(e){return O.createModuleSpecifierResolutionHost(e?n.getPackageJsonAutoImportProvider():t,n)});return O.forEachExternalModuleToImportFrom(t,n,e,function(e,t,r,n){var i=r.getTypeChecker();if(!t||e===_||!O.startsWith(l.fileName,O.getDirectoryPath(t.fileName))){var a=O.getDefaultLikeExportInfo(e,i,g);a&&(a.name===d||I(e,O.getEmitScriptTarget(g),p)===d)&&O.skipAlias(a.symbol,i)===u&&m(r,t,n)&&f.push({symbol:a.symbol,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:a.exportKind,targetFlags:O.skipAlias(a.symbol,i).flags,isFromPackageJson:n});for(var o=0,s=i.getExportsAndPropertiesOfModule(e);o<s.length;o++){var c=s[o];c.name===d&&i.getMergedSymbol(O.skipAlias(c,i))===u&&m(r,t,n)&&f.push({symbol:c,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:0,targetFlags:O.skipAlias(c,i).flags,isFromPackageJson:n})}}}),f;function m(e,t,r){return!t||O.isImportableFile(e,l,t,i,void 0,a(r),null===(r=n.getModuleSpecifierCache)||void 0===r?void 0:r.call(n))}}function f(e,t,r,n,i,a,o,s,c){var l,u,_,d,p,f,g,m=i.getTypeChecker(),y=O.flatMap(e,function(e){return function(e,r,t,n){var i=e.moduleSymbol,a=e.exportKind,o=e.targetFlags,s=e.symbol;if(!(111551&o)&&O.isSourceFileJS(t))return O.emptyArray;var c=D(t,a,n);return O.mapDefined(t.imports,function(e){var t=O.importFromModuleSpecifier(e);return O.isVariableDeclarationInitializedToRequire(t.parent)?r.resolveExternalModuleName(e)===i?{declaration:t.parent,importKind:c,symbol:s,targetFlags:o}:void 0:(266===t.kind||265===t.kind)&&r.getSymbolAtLocation(e)===i?{declaration:t,importKind:c,symbol:s,targetFlags:o}:void 0})}(e,m,a,i.getCompilerOptions())}),h=t&&(d=y,l=t.symbolName,u=t.position,_=m,O.firstDefined(d,function(e){var t=e.declaration,r=function(e){var t;switch(e.kind){case 254:return null===(t=O.tryCast(e.name,O.isIdentifier))||void 0===t?void 0:t.text;case 265:return e.name.text;case 266:return null===(t=O.tryCast(null===(t=e.importClause)||void 0===t?void 0:t.namedBindings,O.isNamespaceImport))||void 0===t?void 0:t.name.text;default:return O.Debug.assertNever(e)}}(t),e=null===(e=O.tryGetModuleSpecifierFromDeclaration(t))||void 0===e?void 0:e.text;if(r&&e){t=function(e,t){switch(e.kind){case 254:return t.resolveExternalModuleName(e.initializer.arguments[0]);case 265:return t.getAliasedSymbol(e.symbol);case 266:var r=O.tryCast(null===(r=e.importClause)||void 0===r?void 0:r.namedBindings,O.isNamespaceImport);return r&&t.getAliasedSymbol(r.symbol);default:return O.Debug.assertNever(e)}}(t,_);if(t&&t.exports.has(O.escapeLeadingUnderscores(l)))return{kind:0,namespacePrefix:r,position:u,moduleSpecifier:e}}})),d=(d=y,p=r,f=m,g=i.getCompilerOptions(),O.firstDefined(d,function(e){var t=e.declaration,r=e.importKind,n=e.symbol,i=e.targetFlags;if(3!==r&&2!==r&&265!==t.kind){if(254===t.kind)return 0!==r&&1!==r||201!==t.name.kind?void 0:{kind:2,importClauseOrBindingPattern:t.name,importKind:r,moduleSpecifier:t.initializer.arguments[0].text,addAsTypeOnly:4};var a=t.importClause;if(a&&O.isStringLiteralLike(t.moduleSpecifier)){var o=a.name,e=a.namedBindings;if(!a.isTypeOnly||0===r&&e){i=v(p,!1,n,i,f,g);if(!(1===r&&(o||2===i&&e)||0===r&&268===(null==e?void 0:e.kind)))return{kind:2,importClauseOrBindingPattern:a,importKind:r,moduleSpecifier:t.moduleSpecifier.text,addAsTypeOnly:i}}}}}));if(d)return{computedWithoutCacheCount:0,fixes:__spreadArray(__spreadArray([],h?[h]:O.emptyArray,!0),[d],!1)};s=function(e,t,r,n,i,a,o,s,c,l){t=O.firstDefined(t,function(e){return function(e,t,r,n,i){var a=e.declaration,o=e.importKind,s=e.symbol,e=e.targetFlags,a=null===(a=O.tryGetModuleSpecifierFromDeclaration(a))||void 0===a?void 0:a.text;if(a){i=r?4:v(t,!0,s,e,n,i);return{kind:3,moduleSpecifier:a,importKind:o,addAsTypeOnly:i,useRequire:r}}}(e,a,o,r.getTypeChecker(),r.getCompilerOptions())});return t?{fixes:[t]}:function(t,s,c,l,u,e,r,n,i){var _=O.isSourceFileJS(s),d=t.getCompilerOptions(),a=O.createModuleSpecifierResolutionHost(t,r),p=O.memoizeOne(function(e){return(e?r.getPackageJsonAutoImportProvider():t).getTypeChecker()}),f=O.moduleResolutionUsesNodeModules(O.getEmitModuleResolutionKind(d)),g=i?function(e){return{moduleSpecifiers:O.moduleSpecifiers.tryGetModuleSpecifiersFromCache(e,s,a,n),computedWithoutCache:!1}}:function(e,t){return O.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(e,t,d,s,a,n)},m=0,e=O.flatMap(e,function(t,r){var e=p(t.isFromPackageJson),n=g(t.moduleSymbol,e),i=n.computedWithoutCache,n=n.moduleSpecifiers,a=!!(111551&t.targetFlags),o=v(l,!0,t.symbol,t.targetFlags,e,d);return m+=i?1:0,O.mapDefined(n,function(e){return f&&O.pathContainsNodeModules(e)?void 0:!a&&_&&void 0!==c?{kind:1,moduleSpecifier:e,position:c,exportInfo:t,isReExport:0<r}:{kind:3,moduleSpecifier:e,importKind:D(s,t.exportKind,d),useRequire:u,addAsTypeOnly:o,exportInfo:t,isReExport:0<r}})});return{computedWithoutCacheCount:m,fixes:e}}(r,n,i,a,o,e,s,c,l)}(e,y,i,a,null==t?void 0:t.position,r,n,o,s,c),c=s.fixes,s=s.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===s?0:s,fixes:__spreadArray(__spreadArray([],h?[h]:O.emptyArray,!0),c,!0)}}function v(e,t,r,n,i,a){return e?(!t||2!==a.importsNotUsedAsValues)&&(!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r))?1:2:4}function b(e,t){if(!O.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 O.getEmitModuleKind(r)<O.ModuleKind.ES2015;for(var n=0,i=t.getSourceFiles();n<i.length;n++){var a=i[n];if(a!==e&&O.isSourceFileJS(a)&&!t.isSourceFileFromExternalLibrary(a)){if(a.commonJsModuleIndicator&&!a.externalModuleIndicator)return!0;if(a.externalModuleIndicator&&!a.commonJsModuleIndicator)return!1}}return!0}function x(e,t,r,n){var i=O.getTokenAtPosition(e.sourceFile,r);if(t===O.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)a=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=O.isIdentifier(e)?t.getSymbolAtLocation(e):void 0;if(O.isUMDExportSymbol(r))return r;r=e.parent;return O.isJsxOpeningLikeElement(r)&&r.tagName===e||O.isJsxOpeningFragment(r)?O.tryCast(t.resolveName(t.getJsxNamespace(r),O.isJsxOpeningLikeElement(r)?e:r,111551,!1),O.isUMDExportSymbol):void 0}(t,o);if(!s)return;var c=o.getAliasedSymbol(s),e=s.name,o=[{symbol:s,moduleSymbol:c,moduleFileName:void 0,exportKind:3,targetFlags:c.flags,isFromPackageJson:!1}],s=b(r,n),c=O.isIdentifier(t)?t.getStart(r):void 0;return{fixes:f(o,c?{position:c,symbolName:e}:void 0,!1,s,n,r,i,a).fixes,symbolName:e,errorIdentifierText:null===(t=O.tryCast(t,O.isIdentifier))||void 0===t?void 0:t.text}}(e,i);else{if(!O.isIdentifier(i))return;if(t===O.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){r=y(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions()),t=m(e.sourceFile,i,r,e.program);return t&&{fixes:[t],symbolName:r,errorIdentifierText:i.text}}a=function(e,t,r){var n=e.sourceFile,i=e.program,a=e.cancellationToken,o=e.host,s=e.preferences,c=i.getTypeChecker(),e=i.getCompilerOptions(),l=y(n,c,t,e);if("default"===l)return;var u=O.isValidTypeOnlyAliasUseSite(t),_=b(n,i),r=function(s,c,l,u,_,t,e,r,d){var n,p=O.createMultiMap(),f=O.createPackageJsonImportFilter(_,d,r),g=null===(n=r.getModuleSpecifierCache)||void 0===n?void 0:n.call(r),m=O.memoizeOne(function(e){return O.createModuleSpecifierResolutionHost(e?r.getPackageJsonAutoImportProvider():t,r)});function y(e,t,r,n,i,a){var o=m(a);(t&&O.isImportableFile(i,_,t,d,f,o,g)||!t&&f.allowsImportingAmbientModule(e,o))&&(i=i.getTypeChecker(),p.add(O.getUniqueSymbolId(r,i).toString(),{symbol:r,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:n,targetFlags:O.skipAlias(r,i).flags,isFromPackageJson:a}))}return O.forEachExternalModuleToImportFrom(t,r,e,function(e,t,r,n){var i=r.getTypeChecker();u.throwIfCancellationRequested();var a=r.getCompilerOptions(),o=O.getDefaultLikeExportInfo(e,i,a);o&&(o.name===s||I(e,O.getEmitScriptTarget(a),c)===s)&&w(o.symbolForMeaning,l)&&y(e,t,o.symbol,o.exportKind,r,n);i=i.tryGetMemberInModuleExportsAndProperties(s,e);i&&w(i,l)&&y(e,t,i,0,r,n)}),p}(l,O.isJSXTagName(t),O.getMeaningFromLocation(t),a,n,i,r,o,s);return{fixes:O.arrayFrom(O.flatMapIterator(r.entries(),function(e){e[0];return f(e[1],{symbolName:l,position:t.getStart(n)},u,_,i,n,o,s).fixes})),symbolName:l,errorIdentifierText:t.text}}(e,i,n)}var a,o,s,c,l,n=O.createPackageJsonImportFilter(e.sourceFile,e.preferences,e.host);return a&&__assign(__assign({},a),{fixes:(a=a.fixes,o=e.sourceFile,s=e.program,c=n,l=e.host,O.sort(a,function(e,t){return O.compareValues(e.kind,t.kind)||_(e,t,o,s,c.allowsImportingSpecifier,u)}))});function u(e){return O.toPath(e,l.getCurrentDirectory(),O.hostGetCanonicalFileName(l))}}function u(e,r,n,i,a){if(O.some(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(function(e,t){return-1===_(t,e,r,n,i.allowsImportingSpecifier,function(e){return O.toPath(e,a.getCurrentDirectory(),O.hostGetCanonicalFileName(a))})?t:e})}function _(e,t,r,n,i,a){return 0!==e.kind&&0!==t.kind?O.compareBooleans(i(t.moduleSpecifier),i(e.moduleSpecifier))||(o=e.moduleSpecifier,s=t.moduleSpecifier,c=r,i=n,O.startsWith(o,"node:")&&!O.startsWith(s,"node:")?O.shouldUseUriStyleNodeCoreModules(c,i)?-1:1:O.startsWith(s,"node:")&&!O.startsWith(o,"node:")?O.shouldUseUriStyleNodeCoreModules(c,i)?1:-1:0)||O.compareBooleans(g(e,r,n.getCompilerOptions(),a),g(t,r,n.getCompilerOptions(),a))||O.compareNumberOfDirectorySeparators(e.moduleSpecifier,t.moduleSpecifier):0;var o,s,c}function g(e,t,r,n){var i;if(e.isReExport&&null!==(i=e.exportInfo)&&void 0!==i&&i.moduleFileName&&O.getEmitModuleResolutionKind(r)===O.ModuleResolutionKind.NodeJs&&(r=e.exportInfo.moduleFileName,"index"===O.getBaseFileName(r,[".js",".jsx",".d.ts",".ts",".tsx"],!0))){e=n(O.getDirectoryPath(e.exportInfo.moduleFileName));return O.startsWith(t.path,e)}return!1}function D(e,t,r,n){switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,r){var n=O.getAllowSyntheticDefaultImports(t),i=O.isInJSFile(e);if(!i&&O.getEmitModuleKind(t)>=O.ModuleKind.ES2015)return n?1:2;if(i)return O.isExternalModule(e)||r?n?1:2:3;for(var a=0,o=e.statements;a<o.length;a++){var s=o[a];if(O.isImportEqualsDeclaration(s)&&!O.nodeIsMissing(s.moduleReference))return 3}return n?1:3}(e,r,!!n);case 3:return function(e,t,r){if(O.getAllowSyntheticDefaultImports(t))return 1;var n=O.getEmitModuleKind(t);switch(n){case O.ModuleKind.AMD:case O.ModuleKind.CommonJS:case O.ModuleKind.UMD:return O.isInJSFile(e)?O.isExternalModule(e)||r?2:3:3;case O.ModuleKind.System:case O.ModuleKind.ES2015:case O.ModuleKind.ES2020:case O.ModuleKind.ES2022:case O.ModuleKind.ESNext:case O.ModuleKind.None:return 2;case O.ModuleKind.Node16:case O.ModuleKind.NodeNext:return e.impliedNodeFormat===O.ModuleKind.ESNext?2:3;default:return O.Debug.assertNever(n,"Unexpected moduleKind ".concat(n))}}(e,r,!!n);default:return O.Debug.assertNever(t)}}function m(e,t,r,n){n=n.getTypeChecker(),t=n.resolveName(r,t,111551,!0);if(t){t=n.getTypeOnlyAliasDeclaration(t);if(t&&O.getSourceFileOfNode(t)===e)return{kind:4,typeOnlyAliasDeclaration:t}}}function y(e,t,r,n){var i=r.parent;if((O.isJsxOpeningLikeElement(i)||O.isJsxClosingElement(i))&&i.tagName===r&&O.jsxModeNeedsExplicitImport(n.jsx)){e=t.getJsxNamespace(e);if(function(e,t,r){if(O.isIntrinsicJsxName(t.text))return!0;t=r.resolveName(e,t,111551,!0);return!t||O.some(t.declarations,O.isTypeOnlyImportOrExportDeclaration)&&!(111551&t.flags)}(e,r,t))return e}return r.text}function S(e,t,r,n,i,a,o){var s,e=O.textChanges.ChangeTracker.with(e,function(e){s=function(e,t,r,n,i,a,o){switch(n.kind){case 0:return k(e,t,n),[O.Diagnostics.Change_0_to_1,r,"".concat(n.namespacePrefix,".").concat(r)];case 1:return E(e,t,n,a),[O.Diagnostics.Change_0_to_1,r,N(n.moduleSpecifier,a)+r];case 2:var s=n.importClauseOrBindingPattern,c=n.importKind,l=n.addAsTypeOnly,u=n.moduleSpecifier;C(e,t,s,1===c?{name:r,addAsTypeOnly:l}:void 0,0===c?[{name:r,addAsTypeOnly:l}]:O.emptyArray,o);var _=O.stripQuotes(u);return i?[O.Diagnostics.Import_0_from_1,r,_]:[O.Diagnostics.Update_import_from_0,_];case 3:var c=n.importKind,u=n.moduleSpecifier,l=n.addAsTypeOnly,d=n.useRequire?P:F,s=1===c?{name:r,addAsTypeOnly:l}:void 0,_=0===c?[{name:r,addAsTypeOnly:l}]:void 0,l=2===c||3===c?{importKind:c,name:r,addAsTypeOnly:l}:void 0;return O.insertImports(e,t,d(u,a,s,_,l),!0),i?[O.Diagnostics.Import_0_from_1,r,u]:[O.Diagnostics.Add_import_from_0,u];case 4:u=n.typeOnlyAliasDeclaration,u=function(i,a,e,o){var s=e.preserveValueImports&&e.isolatedModules;switch(a.kind){case 270:var t,r;return a.isTypeOnly?(1<a.parent.elements.length&&O.OrganizeImports.importSpecifiersAreSorted(a.parent.elements)?(i.delete(o,a),t=O.factory.updateImportSpecifier(a,!1,a.propertyName,a.name),r=O.OrganizeImports.getImportSpecifierInsertionIndex(a.parent.elements,t),i.insertImportSpecifierAtIndex(o,t,a.parent,r)):i.deleteRange(o,a.getFirstToken()),a):(O.Debug.assert(a.parent.parent.isTypeOnly),n(a.parent.parent),a.parent.parent);case 267:return n(a),a;case 268:return n(a.parent),a.parent;case 265:return i.deleteRange(o,a.getChildAt(1)),a;default:O.Debug.failBadSyntaxKind(a)}function n(e){if(i.delete(o,O.getTypeKeywordOfTypeOnlyImport(e,o)),s){e=O.tryCast(e.namedBindings,O.isNamedImports);if(e&&1<e.elements.length){O.OrganizeImports.importSpecifiersAreSorted(e.elements)&&270===a.kind&&0!==e.elements.indexOf(a)&&(i.delete(o,a),i.insertImportSpecifierAtIndex(o,a,e,0));for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];n===a||n.isTypeOnly||i.insertModifierBefore(o,152,n)}}}}}(e,u,o,t);return 270===u.kind?[O.Diagnostics.Remove_type_from_import_of_0_from_1,r,T(u.parent.parent)]:[O.Diagnostics.Remove_type_from_import_declaration_from_0,T(u)];default:return O.Debug.assertNever(n,"Unexpected fix kind ".concat(n.kind))}}(e,t,r,n,i,a,o)});return c.createCodeFixAction(c.importFixName,e,s,l,O.Diagnostics.Add_all_missing_imports)}function T(e){var t;return 265===e.kind?(null===(t=O.tryCast(null===(t=O.tryCast(e.moduleReference,O.isExternalModuleReference))||void 0===t?void 0:t.expression,O.isStringLiteralLike))||void 0===t?void 0:t.text)||e.moduleReference.getText():O.cast(e.parent.moduleSpecifier,O.isStringLiteral).text}function C(n,i,t,e,r,a){var o;if(201!==t.kind){var s=t.isTypeOnly&&O.some(__spreadArray([e],r,!0),function(e){return 4===(null==e?void 0:e.addAsTypeOnly)}),c=t.namedBindings&&(null===(o=O.tryCast(t.namedBindings,O.isNamedImports))||void 0===o?void 0:o.elements),l=s&&a.preserveValueImports&&a.isolatedModules;if(e&&(O.Debug.assert(!t.name,"Cannot add a default import to an import clause that already has one"),n.insertNodeAt(i,t.getStart(i),O.factory.createIdentifier(e.name),{suffix:", "})),r.length){a=O.stableSort(r.map(function(e){return O.factory.createImportSpecifier((!t.isTypeOnly||s)&&A(e),void 0,O.factory.createIdentifier(e.name))}),O.OrganizeImports.compareImportOrExportSpecifiers);if(null!=c&&c.length&&O.OrganizeImports.importSpecifiersAreSorted(c))for(var u=0,_=a;u<_.length;u++){var d=_[u],p=l&&!d.isTypeOnly?0:O.OrganizeImports.getImportSpecifierInsertionIndex(c,d);n.insertImportSpecifierAtIndex(i,d,t.namedBindings,p)}else if(null!=c&&c.length)for(var f=0,g=a;f<g.length;f++){d=g[f];n.insertNodeInListAfter(i,O.last(c),d,c)}else a.length&&(a=O.factory.createNamedImports(a),t.namedBindings?n.replaceNode(i,t.namedBindings,a):n.insertNodeAfter(i,O.Debug.checkDefined(t.name,"Import clause must have either named imports or a default import"),a))}if(s&&(n.delete(i,O.getTypeKeywordOfTypeOnlyImport(t,i)),l&&c))for(var m=0,y=c;m<y.length;m++){b=y[m];n.insertModifierBefore(i,152,b)}}else{e&&x(t,e.name,"default");for(var h=0,v=r;h<v.length;h++){var b=v[h];x(t,b.name,void 0)}}function x(e,t,r){t=O.factory.createBindingElement(void 0,r,t);e.elements.length?n.insertNodeInListAfter(i,O.last(e.elements),t):n.replaceNode(i,e,O.factory.createObjectBindingPattern([t]))}}function k(e,t,r){var n=r.namespacePrefix,r=r.position;e.insertText(t,r,n+".")}function E(e,t,r,n){var i=r.moduleSpecifier,r=r.position;e.insertText(t,r,N(i,n))}function N(e,t){t=O.getQuoteFromPreference(t);return"import(".concat(t).concat(e).concat(t,").")}function A(e){return 2===e.addAsTypeOnly}function F(e,t,r,n,i){var a,o,s=O.makeStringLiteral(e,t);return(void 0!==r||null!=n&&n.length)&&(a=(!r||A(r))&&O.every(n,A),o=O.combine(o,O.makeImport(r&&O.factory.createIdentifier(r.name),null==n?void 0:n.map(function(e){var t=e.addAsTypeOnly,e=e.name;return O.factory.createImportSpecifier(!a&&2===t,void 0,O.factory.createIdentifier(e))}),e,t,a))),i&&(s=3===i.importKind?O.factory.createImportEqualsDeclaration(void 0,void 0,A(i),O.factory.createIdentifier(i.name),O.factory.createExternalModuleReference(s)):O.factory.createImportDeclaration(void 0,void 0,O.factory.createImportClause(A(i),void 0,O.factory.createNamespaceImport(O.factory.createIdentifier(i.name))),s,void 0),o=O.combine(o,s)),O.Debug.checkDefined(o)}function P(e,t,r,n,i){var a,o,t=O.makeStringLiteral(e,t);return(r||null!=n&&n.length)&&(o=(null==n?void 0:n.map(function(e){e=e.name;return O.factory.createBindingElement(void 0,void 0,e)}))||[],r&&o.unshift(O.factory.createBindingElement(void 0,"default",r.name)),o=s(O.factory.createObjectBindingPattern(o),t),a=O.combine(a,o)),i&&(o=s(i.name,t),a=O.combine(a,o)),O.Debug.checkDefined(a)}function s(e,t){return O.factory.createVariableStatement(void 0,O.factory.createVariableDeclarationList([O.factory.createVariableDeclaration("string"==typeof e?O.factory.createIdentifier(e):e,void 0,void 0,O.factory.createCallExpression(O.factory.createIdentifier("require"),void 0,[t]))],2))}function w(e,t){e=e.declarations;return O.some(e,function(e){return!!(O.getMeaningFromDeclaration(e)&t)})}function I(e,t,r){return a(O.removeFileExtension(O.stripQuotes(e.name)),t,r)}function a(e,t,r){var n=O.getBaseFileName(O.removeSuffix(e,"/index")),i="",a=!0,e=n.charCodeAt(0);O.isIdentifierStart(e,t)?(i+=String.fromCharCode(e),r&&(i=i.toUpperCase())):a=!1;for(var o=1;o<n.length;o++){var s=n.charCodeAt(o),c=O.isIdentifierPart(s,t);c&&(s=String.fromCharCode(s),a||(s=s.toUpperCase()),i+=s),a=c}return O.isStringANonContextualKeyword(i)?"_".concat(i):i||"_"}c.registerCodeFix({errorCodes:n,getCodeActions:function(t){var e=t.errorCode,r=t.preferences,n=t.sourceFile,i=t.span,a=t.program,e=x(t,e,i.start,!0);if(e){var i=e.fixes,o=e.symbolName,s=e.errorIdentifierText,c=O.getQuotePreference(n,r);return i.map(function(e){return S(t,n,o,e,o!==s,c,a.getCompilerOptions())})}},fixIds:[l],getAllCodeActions:function(t){var r=i(t.sourceFile,t.program,!0,t.preferences,t.host);return c.eachDiagnostic(t,n,function(e){return r.addImportFromDiagnostic(e,t)}),c.createCombinedCodeActions(O.textChanges.ChangeTracker.with(t,r.writeFixes))}}),c.createImportAdder=function(e,t,r,n){return i(e,t,!1,r,n)},(e={})[e.UseNamespace=0]="UseNamespace",e[e.JsdocTypeImport=1]="JsdocTypeImport",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",e[e.PromoteTypeOnly=4]="PromoteTypeOnly",(e={})[e.Allowed=1]="Allowed",e[e.Required=2]="Required",e[e.NotAllowed=4]="NotAllowed",c.getImportCompletionAction=function(e,t,r,n,i,a,o,s,c,l){var u=o.getCompilerOptions(),_=O.pathIsBareSpecifier(O.stripQuotes(t.name))?[function(n,i,e,t){var a=e.getCompilerOptions(),e=r(e.getTypeChecker(),!1);if(e)return e;t=null===(t=null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t))||void 0===t?void 0:t.getTypeChecker();return O.Debug.checkDefined(t&&r(t,!0),"Could not find symbol in specified module for code actions");function r(e,t){var r=O.getDefaultLikeExportInfo(i,e,a);if(r&&O.skipAlias(r.symbol,e)===n)return{symbol:r.symbol,moduleSymbol:i,moduleFileName:void 0,exportKind:r.exportKind,targetFlags:O.skipAlias(n,e).flags,isFromPackageJson:t};r=e.tryGetMemberInModuleExportsAndProperties(n.name,i);return r&&O.skipAlias(r,e)===n?{symbol:r,moduleSymbol:i,moduleFileName:void 0,exportKind:0,targetFlags:O.skipAlias(n,e).flags,isFromPackageJson:t}:void 0}}(e,t,o,a)]:h(r,e,t,n,i,a,o,l,!0),e=b(r,o),i=O.isValidTypeOnlyAliasUseSite(O.getTokenAtPosition(r,c));return{moduleSpecifier:(e=O.Debug.checkDefined(d(r,_,t,o,{symbolName:n,position:c},i,e,a,l))).moduleSpecifier,codeAction:p(S({host:a,formatContext:s,preferences:l},r,n,e,!1,O.getQuotePreference(r,l),u))}},c.getPromoteTypeOnlyCompletionAction=function(e,t,r,n,i,a){var o=r.getCompilerOptions(),s=y(e,r.getTypeChecker(),t,o),r=m(e,t,s,r),t=s!==t.text;return r&&p(S({host:n,formatContext:i,preferences:a},e,s,r,t,1,o))},c.getModuleSpecifierForBestExportInfo=function(e,t,r,n,i,a,o,s,c,l){return n=f(e,{symbolName:t,position:r},n,!1,a,i,o,s,l),l=n.fixes,n=n.computedWithoutCacheCount,(o=u(l,i,a,c||O.createPackageJsonImportFilter(i,s,o),o))&&__assign(__assign({},o),{computedWithoutCacheCount:n})},c.getImportKind=D,c.moduleSymbolToValidIdentifier=I,c.moduleSpecifierToValidIdentifier=a}(O.codefix||(O.codefix={}))}(ts=ts||{}),function(s){var c,e,l,t,r,n,u;function _(e,t,r,n){switch(r){case s.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case s.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case s.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case s.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case s.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,r){var n=o(t,r);if(s.isSourceFileJS(t))return void e.addJSDocTags(t,n,[s.factory.createJSDocOverrideTag(s.factory.createIdentifier("override"))]);var i=n.modifiers||s.emptyArray,a=s.find(i,s.isStaticModifier),r=s.find(i,s.isAbstractModifier),i=s.find(i,function(e){return s.isAccessibilityModifier(e.kind)}),n=r?r.end:a?a.end:i?i.end:n.decorators?s.skipTrivia(t.text,n.decorators.end):n.getStart(t),r=i||a||r?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,n,159,r)}(e,t.sourceFile,n);case s.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case s.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,r){r=o(t,r);if(s.isSourceFileJS(t))return void e.filterJSDocTags(t,r,s.not(s.isJSDocOverrideTag));r=r.modifiers&&s.find(r.modifiers,function(e){return 159===e.kind});s.Debug.assertIsDefined(r),e.deleteModifier(t,r)}(e,t.sourceFile,n);default:s.Debug.fail("Unexpected error code: "+r)}}function i(e){switch(e.kind){case 171:case 167:case 169:case 172:case 173:return!0;case 164:return s.isParameterPropertyDeclaration(e,e.parent);default:return!1}}function o(e,t){t=s.getTokenAtPosition(e,t),t=s.findAncestor(t,function(e){return s.isClassLike(e)?"quit":i(e)});return s.Debug.assert(t&&i(t)),t}c=s.codefix||(s.codefix={}),l="fixOverrideModifier",t="fixAddOverrideModifier",r="fixRemoveOverrideModifier",n=[s.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,s.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,s.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,s.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,s.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,s.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,s.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],(e={})[s.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:s.Diagnostics.Add_override_modifier,fixId:t,fixAllDescriptions:s.Diagnostics.Add_all_missing_override_modifiers},e[s.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:s.Diagnostics.Add_override_modifier,fixId:t,fixAllDescriptions:s.Diagnostics.Add_all_missing_override_modifiers},e[s.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:s.Diagnostics.Remove_override_modifier,fixId:r,fixAllDescriptions:s.Diagnostics.Remove_all_unnecessary_override_modifiers},e[s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:s.Diagnostics.Remove_override_modifier,fixId:r,fixAllDescriptions:s.Diagnostics.Remove_override_modifier},e[s.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:s.Diagnostics.Add_override_modifier,fixId:t,fixAllDescriptions:s.Diagnostics.Add_all_missing_override_modifiers},e[s.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:s.Diagnostics.Add_override_modifier,fixId:t,fixAllDescriptions:s.Diagnostics.Add_all_missing_override_modifiers},e[s.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:s.Diagnostics.Add_override_modifier,fixId:t,fixAllDescriptions:s.Diagnostics.Remove_all_unnecessary_override_modifiers},e[s.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:s.Diagnostics.Remove_override_modifier,fixId:r,fixAllDescriptions:s.Diagnostics.Remove_all_unnecessary_override_modifiers},e[s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:s.Diagnostics.Remove_override_modifier,fixId:r,fixAllDescriptions:s.Diagnostics.Remove_all_unnecessary_override_modifiers},u=e,c.registerCodeFix({errorCodes:n,getCodeActions:function(t){var r=t.errorCode,n=t.span,e=u[r];if(!e)return s.emptyArray;var i=e.descriptions,a=e.fixId,o=e.fixAllDescriptions,e=s.textChanges.ChangeTracker.with(t,function(e){return _(e,t,r,n.start)});return[c.createCodeFixActionMaybeFixAll(l,e,i,a,o)]},fixIds:[l,t,r],getAllCodeActions:function(i){return c.codeFixAll(i,n,function(e,t){var r=t.code,n=t.start,t=u[r];t&&t.fixId===i.fixId&&_(e,i,r,n)})}})}(ts=ts||{}),function(a){var o,s,e;function c(e,t,r,n){n=a.getQuotePreference(t,n),n=a.factory.createStringLiteral(r.name.text,0===n);e.replaceNode(t,r,a.isPropertyAccessChain(r)?a.factory.createElementAccessChain(r.expression,r.questionDotToken,n):a.factory.createElementAccessExpression(r.expression,n))}function l(e,t){return a.cast(a.getTokenAtPosition(e,t).parent,a.isPropertyAccessExpression)}o=a.codefix||(a.codefix={}),s="fixNoPropertyAccessFromIndexSignature",e=[a.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],o.registerCodeFix({errorCodes:e,fixIds:[s],getCodeActions:function(t){var e=t.sourceFile,r=t.span,n=t.preferences,i=l(e,r.start),r=a.textChanges.ChangeTracker.with(t,function(e){return c(e,t.sourceFile,i,n)});return[o.createCodeFixAction(s,r,[a.Diagnostics.Use_element_access_for_0,i.name.text],s,a.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(r){return o.codeFixAll(r,e,function(e,t){return c(e,t.file,l(t.file,t.start),r.preferences)})}})}(ts=ts||{}),function(s){var a,o,e;function c(e,t,r,n){var i=s.getTokenAtPosition(t,r);if(s.isThis(i)){var a=s.getThisContainer(i,!1);if((s.isFunctionDeclaration(a)||s.isFunctionExpression(a))&&!s.isSourceFile(s.getThisContainer(a,!1))){var o=s.Debug.checkDefined(s.findChildOfKind(a,98,t)),r=a.name,i=s.Debug.checkDefined(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(85)),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 197===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(;185===n.kind||186===n.kind||191===n.kind;)185===n.kind?i=!0:186===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,l,n=r.program.getTypeChecker();return u.isPropertyAccessExpression(t)&&t.name===i?(u.Debug.assert(u.isMemberName(i),"Expected an identifier for spelling (property access)"),a=n.getTypeAtLocation(t.expression),32&t.flags&&(a=n.getNonNullableType(a)),a=n.getSuggestedSymbolForNonexistentProperty(i,a)):u.isBinaryExpression(t)&&101===t.operatorToken.kind&&t.left===i&&u.isPrivateIdentifier(i)?(o=n.getTypeAtLocation(t.right),a=n.getSuggestedSymbolForNonexistentProperty(i,o)):u.isQualifiedName(t)&&t.right===i?(o=n.getSymbolAtLocation(t.left))&&1536&o.flags&&(a=n.getSuggestedSymbolForNonexistentModule(t.right,o)):u.isImportSpecifier(t)&&t.name===i?(u.Debug.assertNode(i,u.isIdentifier,"Expected an identifier for spelling (import)"),(s=function(e,t,r){if(!r||!u.isStringLiteralLike(r.moduleSpecifier))return;r=u.getResolvedModule(e,r.moduleSpecifier.text,u.getModeForUsageLocation(e,r.moduleSpecifier));return r?t.program.getSourceFile(r.resolvedFileName):void 0}(e,r,u.findAncestor(i,u.isImportDeclaration)))&&s.symbol&&(a=n.getSuggestedSymbolForNonexistentModule(i,s.symbol))):u.isJsxAttribute(t)&&t.name===i?(u.Debug.assertNode(i,u.isIdentifier,"Expected an identifier for JSX attribute"),s=u.findAncestor(i,u.isJsxOpeningLikeElement),s=n.getContextualTypeForArgumentAtIndex(s,0),a=n.getSuggestedSymbolForNonexistentJSXAttribute(i,s)):u.hasSyntacticModifier(t,16384)&&u.isClassElement(t)&&t.name===i?(l=(c=(l=u.findAncestor(i,u.isClassLike))?u.getEffectiveBaseTypeNode(l):void 0)?n.getTypeAtLocation(c):void 0)&&(a=n.getSuggestedSymbolForNonexistentClassMember(u.getTextOfNode(i),l)):(c=u.getMeaningFromLocation(i),l=u.getTextOfNode(i),u.Debug.assert(void 0!==l,"name should be defined"),a=n.getSuggestedSymbolForNonexistentSymbol(i,l,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(c))),void 0===a?void 0:{node:i,suggestedSymbol:a}}}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)))}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.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,u.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,u.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,u.Diagnostics.Cannot_find_namespace_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.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,u.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,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=u.getEmitScriptTarget(e.host.getCompilationSettings()),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=u.getEmitScriptTarget(n.host.getCompilationSettings());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,[],[],[])}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)&&l(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(l(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(l(e,t,s(e,o.label,o.statement.expression),r,n))return{declaration:t,kind:y.MissingReturnStatement,expression:a,statement:i,commentSource:o}}}}}function l(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],[],[])):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 254:case 164:case 203:case 167:case 296:return e.initializer;case 285:return e.initializer&&(g.isJsxExpression(e.initializer)?e.initializer.expression:void 0);case 297:case 166:case 299:case 347:case 340: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,l,u,_=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,l=p.expression,u=p.statement,f=g.textChanges.ChangeTracker.with(c,function(e){return S(e,c.sourceFile,l,u)}),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,u,a,o,s,t;function f(e,t,r,n,i){var t=d.getTokenAtPosition(e,t),a=t.parent;if(r===d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==t.kind||!d.isObjectLiteralExpression(a)||!d.isCallExpression(a.parent))return;var o=d.findIndex(a.parent.arguments,function(e){return e===a});if(o<0)return;r=d.singleOrUndefined(n.getSignaturesOfType(n.getTypeAtLocation(a.parent.expression),0));if(!(r&&r.declaration&&r.parameters[o]))return;var s=r.parameters[o].valueDeclaration;if(!(s&&d.isParameter(s)&&d.isIdentifier(s.name)))return;o=d.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(a),n.getParameterType(r,o),!1,!1));return d.length(o)?{kind:3,token:s.name,properties:o,parentDeclaration:a}:void 0}if(d.isMemberName(t)){if(d.isIdentifier(t)&&d.hasInitializer(a)&&a.initializer&&d.isObjectLiteralExpression(a.initializer)){o=d.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(a.initializer),n.getTypeAtLocation(t),!1,!1));return d.length(o)?{kind:3,token:t,properties:o,parentDeclaration:a.initializer}:void 0}if(d.isIdentifier(t)&&d.isJsxOpeningLikeElement(t.parent)){var c=function(e,t,r){var n=e.getContextualType(r.attributes);if(void 0===n)return d.emptyArray;n=n.getProperties();if(!d.length(n))return d.emptyArray;for(var i=new d.Set,a=0,o=r.attributes.properties;a<o.length;a++){var s=o[a];if(d.isJsxAttribute(s)&&i.add(s.name.escapedText),d.isJsxSpreadAttribute(s))for(var s=e.getTypeAtLocation(s.expression),c=0,l=s.getProperties();c<l.length;c++){var u=l[c];i.add(u.escapedName)}}return d.filter(n,function(e){return d.isIdentifierText(e.name,t,1)&&!(16777216&e.flags||48&d.getCheckFlags(e)||i.has(e.escapedName))})}(n,d.getEmitScriptTarget(i.getCompilerOptions()),t.parent);return d.length(c)?{kind:4,token:t,attributes:c,parentDeclaration:t.parent}:void 0}if(d.isIdentifier(t)&&d.isCallExpression(a))return{kind:2,token:t,call:a,sourceFile:e,modifierFlags:0,parentDeclaration:e};if(d.isPropertyAccessExpression(a)){s=d.skipConstraint(n.getTypeAtLocation(a.expression)),o=s.symbol;if(o&&o.declarations){if(d.isIdentifier(t)&&d.isCallExpression(a.parent)){var l=d.find(o.declarations,d.isModuleDeclaration),c=null==l?void 0:l.getSourceFile();if(l&&c&&!_(i,c))return{kind:2,token:t,call:a.parent,sourceFile:e,modifierFlags:1,parentDeclaration:l};l=d.find(o.declarations,d.isSourceFile);if(e.commonJsModuleIndicator)return;if(l&&!_(i,l))return{kind:2,token:t,call:a.parent,sourceFile:l,modifierFlags:1,parentDeclaration:l}}e=d.find(o.declarations,d.isClassLike);if(e||!d.isPrivateIdentifier(t)){l=e||d.find(o.declarations,function(e){return d.isInterfaceDeclaration(e)||d.isTypeLiteralNode(e)});if(l&&!_(i,l.getSourceFile())){e=!d.isTypeLiteralNode(l)&&(s.target||s)!==n.getDeclaredTypeOfSymbol(o);if(e&&(d.isPrivateIdentifier(t)||d.isInterfaceDeclaration(l)))return;s=l.getSourceFile(),n=d.isTypeLiteralNode(l)?0:(e?32:0)|(d.startsWithUnderscore(t.text)?8:0),e=d.isSourceFileJS(s);return{kind:0,token:t,call:d.tryCast(a.parent,d.isCallExpression),modifierFlags:n,parentDeclaration:l,declSourceFile:s,isJSFile:e}}o=d.find(o.declarations,d.isEnumDeclaration);return!o||d.isPrivateIdentifier(t)||_(i,o.getSourceFile())?void 0:{kind:1,token:t,parentDeclaration:o}}}}}}function _(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function g(e,t,r,n,i){var a,o=n.text;i?226!==r.kind&&(a=r.name.getText(),a=c(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=l(r))?e.insertNodeAfter(t,n,a):e.insertMemberAtStart(t,r,a)):(r=d.getFirstConstructorWithBody(r))&&(o=c(d.factory.createThis(),o),e.insertNodeAtConstructorEnd(t,r,o))}function c(e,t){return d.factory.createExpressionStatement(d.factory.createAssignment(d.factory.createPropertyAccessExpression(e,t),T()))}function m(e,t,r){var n;return(221===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,1)):(r=e.getContextualType(r.parent))?e.typeToTypeNode(r,void 0,1):void 0)||d.factory.createKeywordTypeNode(130)}function y(e,t,r,n,i,a){a=a?d.factory.createNodeArray(d.factory.createModifiersFromModifierFlags(a)):void 0,n=d.isClassLike(r)?d.factory.createPropertyDeclaration(void 0,a,n,void 0,i,void 0):d.factory.createPropertySignature(void 0,n,void 0,i),i=l(r);i?e.insertNodeAfter(t,i,n):e.insertMemberAtStart(t,r,n)}function l(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 h(e,t,r,n,i,a,o){var s=p.createImportAdder(o,e.program,e.preferences,e.host),c=d.isClassLike(a)?169:168,i=p.createSignatureDeclarationFromCallExpression(c,e,s,r,n,i,a),r=function(e,t){if(d.isTypeLiteralNode(e))return;t=d.findAncestor(t,function(e){return d.isMethodDeclaration(e)||d.isConstructorDeclaration(e)});return t&&t.parent===e?t:void 0}(a,r);r?t.insertNodeAfter(o,r,i):t.insertMemberAtStart(o,a,i),s.writeFixes(t)}function v(e,t,r){var n=r.token,i=r.parentDeclaration,r=d.some(i.members,function(e){e=t.getTypeAtLocation(e);return!!(e&&402653316&e.flags)}),n=d.factory.createEnumMember(n,r?d.factory.createStringLiteral(n.text):void 0);e.replaceNode(i.getSourceFile(),i,d.factory.updateEnumDeclaration(i,i.decorators,i.modifiers,i.name,d.concatenate(i.members,d.singleElementArray(n))),{leadingTriviaOption:d.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:d.textChanges.TrailingTriviaOption.Exclude})}function b(e,t,r){var n=p.createImportAdder(t.sourceFile,t.program,t.preferences,t.host),n=p.createSignatureDeclarationFromCallExpression(256,t,n,r.call,d.idText(r.token),r.modifierFlags,r.parentDeclaration);e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,n)}function x(e,r,t){var n=p.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),i=d.getQuotePreference(r.sourceFile,r.preferences),a=r.program.getTypeChecker(),o=t.parentDeclaration.attributes,s=d.some(o.properties,d.isJsxSpreadAttribute),t=d.map(t.attributes,function(e){var t=S(r,a,n,i,a.getTypeOfSymbol(e)),e=d.factory.createIdentifier(e.name),t=d.factory.createJsxAttribute(e,d.factory.createJsxExpression(void 0,t));return d.setParent(e,t),t}),s=d.factory.createJsxAttributes(s?__spreadArray(__spreadArray([],t,!0),o.properties,!0):__spreadArray(__spreadArray([],o.properties,!0),t,!0)),t={prefix:o.pos===o.end?" ":void 0};e.replaceNode(r.sourceFile,o,s,t)}function D(e,r,t){var n=p.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),i=d.getQuotePreference(r.sourceFile,r.preferences),a=d.getEmitScriptTarget(r.program.getCompilerOptions()),o=r.program.getTypeChecker(),s=d.map(t.properties,function(e){var t=S(r,o,n,i,o.getTypeOfSymbol(e));return d.factory.createPropertyAssignment(d.createPropertyNameNodeForIdentifierOrLiteral(e.name,a,0===i),t)}),c={leadingTriviaOption:d.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:d.textChanges.TrailingTriviaOption.Exclude,indentation:t.indentation};e.replaceNode(r.sourceFile,t.parentDeclaration,d.factory.createObjectLiteralExpression(__spreadArray(__spreadArray([],t.parentDeclaration.properties,!0),s,!0),!0),c)}function S(r,n,i,a,e){if(3&e.flags)return T();if(134217732&e.flags)return d.factory.createStringLiteral("",0===a);if(8&e.flags)return d.factory.createNumericLiteral(0);if(64&e.flags)return d.factory.createBigIntLiteral("0n");if(16&e.flags)return d.factory.createFalse();if(1056&e.flags){var t=e.symbol.exports?d.firstOrUndefined(d.arrayFrom(e.symbol.exports.values())):e.symbol,o=n.symbolToExpression(e.symbol.parent||e.symbol,111551,void 0,void 0);return void 0===t||void 0===o?d.factory.createNumericLiteral(0):d.factory.createPropertyAccessExpression(o,n.symbolToString(t))}if(256&e.flags)return d.factory.createNumericLiteral(e.value);if(2048&e.flags)return d.factory.createBigIntLiteral(e.value);if(128&e.flags)return d.factory.createStringLiteral(e.value,0===a);if(512&e.flags)return e===n.getFalseType()||e===n.getFalseType(!0)?d.factory.createFalse():d.factory.createTrue();if(65536&e.flags)return d.factory.createNull();if(1048576&e.flags){var s=d.firstDefined(e.types,function(e){return S(r,n,i,a,e)});return null!=s?s:T()}if(n.isArrayLikeType(e))return d.factory.createArrayLiteralExpression();if(524288&(s=e).flags&&(128&d.getObjectFlags(s)||s.symbol&&d.tryCast(d.singleOrUndefined(s.symbol.declarations),d.isTypeLiteralNode))){s=d.map(n.getPropertiesOfType(e),function(e){var t=e.valueDeclaration?S(r,n,i,a,n.getTypeAtLocation(e.valueDeclaration)):T();return d.factory.createPropertyAssignment(e.name,t)});return d.factory.createObjectLiteralExpression(s,!0)}if(16&d.getObjectFlags(e)){if(void 0===d.find(e.symbol.declarations||d.emptyArray,d.or(d.isFunctionTypeNode,d.isMethodSignature,d.isMethodDeclaration)))return T();var c=n.getSignaturesOfType(e,0);if(void 0===c)return T();c=p.createSignatureDeclarationFromSignature(213,r,a,c[0],p.createStubbedBody(d.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,void 0,i);return null!=c?c:T()}if(1&d.getObjectFlags(e)){c=d.getClassLikeDeclarationOfSymbol(e.symbol);if(void 0===c||d.hasAbstractModifier(c))return T();c=d.getFirstConstructorWithBody(c);return c&&d.length(c.parameters)?T():d.factory.createNewExpression(d.factory.createIdentifier(e.symbol.name),void 0,void 0)}return T()}function T(){return d.factory.createIdentifier("undefined")}p=d.codefix||(d.codefix={}),u="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",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,d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,d.Diagnostics.Cannot_find_name_0.code],p.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=t.program.getTypeChecker(),r=f(t.sourceFile,t.span.start,t.errorCode,e,t.program);if(r){if(3===r.kind){var n=d.textChanges.ChangeTracker.with(t,function(e){return D(e,t,r)});return[p.createCodeFixAction(a,n,d.Diagnostics.Add_missing_properties,a,d.Diagnostics.Add_all_missing_properties)]}if(4===r.kind){n=d.textChanges.ChangeTracker.with(t,function(e){return x(e,t,r)});return[p.createCodeFixAction(o,n,d.Diagnostics.Add_missing_attributes,o,d.Diagnostics.Add_all_missing_attributes)]}if(2===r.kind){n=d.textChanges.ChangeTracker.with(t,function(e){return b(e,t,r)});return[p.createCodeFixAction(s,n,[d.Diagnostics.Add_missing_function_declaration_0,r.token.text],s,d.Diagnostics.Add_all_missing_function_declarations)]}if(1!==r.kind)return d.concatenate(function(r,e){var n=e.parentDeclaration,i=e.declSourceFile,t=e.modifierFlags,a=e.token,o=e.call;if(void 0===o)return;if(d.isPrivateIdentifier(a))return;function s(t){return d.textChanges.ChangeTracker.with(r,function(e){return h(r,e,o,a,t,n,i)})}var c=a.text,e=[p.createCodeFixAction(u,s(32&t),[32&t?d.Diagnostics.Declare_static_method_0:d.Diagnostics.Declare_method_0,c],u,d.Diagnostics.Add_all_missing_members)];8&t&&e.unshift(p.createCodeFixActionWithoutFixAll(u,s(8),[d.Diagnostics.Declare_private_method_0,c]));return e}(t,r),(i=t,(e=r).isJSFile?d.singleElementArray(function(e,t){var r=t.parentDeclaration,n=t.declSourceFile,i=t.modifierFlags,a=t.token;if(d.isInterfaceDeclaration(r)||d.isTypeLiteralNode(r))return;t=d.textChanges.ChangeTracker.with(e,function(e){return g(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(u,t,[e,a.text],u,d.Diagnostics.Add_all_missing_members)}(i,e)):function(e,t){function r(t){return d.textChanges.ChangeTracker.with(e,function(e){return y(e,i,n,s,l,t)})}var n=t.parentDeclaration,i=t.declSourceFile,a=t.modifierFlags,o=t.token,s=o.text,c=32&a,l=m(e.program.getTypeChecker(),n,o),t=[p.createCodeFixAction(u,r(32&a),[c?d.Diagnostics.Declare_static_property_0:d.Diagnostics.Declare_property_0,s],u,d.Diagnostics.Add_all_missing_members)];if(c||d.isPrivateIdentifier(o))return t;8&a&&t.unshift(p.createCodeFixActionWithoutFixAll(u,r(8),[d.Diagnostics.Declare_private_property_0,s]));return t.push(function(e,t,r,n,i){var a=d.factory.createKeywordTypeNode(150),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.insertMemberAtStart(t,r,o)});return p.createCodeFixActionWithoutFixAll(u,e,[d.Diagnostics.Add_index_signature_for_property_0,n])}(e,i,n,o.text,l)),t}(i,e)));var i,n=d.textChanges.ChangeTracker.with(t,function(e){return v(e,t.program.getTypeChecker(),r)});return[p.createCodeFixAction(u,n,[d.Diagnostics.Add_missing_enum_member_0,r.token.text],u,d.Diagnostics.Add_all_missing_members)]}},fixIds:[u,s,a,o],getAllCodeActions:function(l){var e=l.program,n=l.fixId,u=e.getTypeChecker(),i=new d.Map,_=new d.Map;return p.createCombinedCodeActions(d.textChanges.ChangeTracker.with(l,function(c){p.eachDiagnostic(l,t,function(e){var t,r=f(e.file,e.start,e.code,u,l.program);r&&d.addToSeen(i,d.getNodeId(r.parentDeclaration)+"#"+r.token.text)&&(n===s&&2===r.kind?b(c,l,r):n===a&&3===r.kind?D(c,l,r):n===o&&4===r.kind?x(c,l,r):(1===r.kind&&v(c,u,r),0===r.kind&&(e=r.parentDeclaration,t=r.token,(e=d.getOrUpdate(_,e,function(){return[]})).some(function(e){return e.token.text===t.text})||e.push(r))))}),_.forEach(function(e,t){for(var s=d.isTypeLiteralNode(t)?void 0:p.getAllSupers(t,u),r=0,n=e;r<n.length;r++)!function(t){var e,r,n,i,a,o;null!=s&&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)?h(l,c,a,i,32&n,e,r):!o||d.isInterfaceDeclaration(e)||d.isTypeLiteralNode(e)?(o=m(u,e,i),y(c,r,e,i.text,o,32&n)):g(c,r,e,i,!!(32&n)))}(n[r])})}))}}),(e={})[e.TypeLikeDeclaration=0]="TypeLikeDeclaration",e[e.Enum=1]="Enum",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"}(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 l(e,t){t=a.tryCast(a.getTokenAtPosition(e,t),a.isStringLiteral);if(t){t=t.text,t=a.parsePackageName(t).packageName;return a.isExternalModuleNameRelative(t)?void 0:t}}function u(e,t,r){return r===n?a.JsTyping.nodeCoreModules.has(e)?"@types/node":void 0:null!==(r=t.isKnownTypesPackageName)&&void 0!==r&&r.call(t,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=l(r,e.span.start);if(void 0!==n){e=u(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=l(t.file,t.start);void 0!==n&&(i.fixId===s?(n=u(n,i.host,t.code))&&r.push(c(t.file.fileName,n)):a.Debug.fail("Bad fixId: ".concat(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(l),a=c.createImportAdder(r,e.program,i,e.host);c.createMissingMemberNodes(t,o,r,e,i,a,function(e){return n.insertMemberAtStart(r,t,e)}),a.writeFixes(n)}function l(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 l(e,t){var r=a.getTokenAtPosition(e,t);if(108===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=l(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=l(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_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,o.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_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 94===e.kind?{extendsToken:e,heritageClauses:t}:void 0}function l(e,t,r,n){if(e.replaceNode(t,r,o.factory.createToken(117)),2===n.length&&94===n[0].token&&117===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 l(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&&l(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)||i.isPrivateIdentifier(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_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,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(u){!function(a){var o="fixInvalidJsxCharacters_expression",s="fixInvalidJsxCharacters_htmlEntity",e=[u.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,u.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=u.textChanges.ChangeTracker.with(e,function(e){return l(e,r,t,n.start,!1)}),e=u.textChanges.ChangeTracker.with(e,function(e){return l(e,r,t,n.start,!0)});return[a.createCodeFixAction(o,i,u.Diagnostics.Wrap_invalid_character_in_an_expression_container,o,u.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),a.createCodeFixAction(s,e,u.Diagnostics.Convert_invalid_character_to_its_html_entity_code,s,u.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){return l(e,r.preferences,t.file,t.start,r.fixId===s)})}});var c={">":"&gt;","}":"&rbrace;"};function l(e,t,r,n,i){var a,o=r.getText()[n];a=o,u.hasProperty(c,a)&&(o=i?c[o]:"{".concat(u.quote(r,t,o),"}"),e.replaceRangeWithText(r,{pos:n,end:n+1},o))}}(u.codefix||(u.codefix={}))}(ts=ts||{}),function(d){var p,c,f,e;function l(e,t){var r=d.getTokenAtPosition(e,t);if(r.parent&&d.isJSDocParameterTag(r.parent)&&d.isIdentifier(r.parent.name)){e=r.parent,t=d.getHostSignatureFromJSDoc(e);if(t)return{signature:t,name:r.parent.name,jsDocParameterTag:e}}}p=d.codefix||(d.codefix={}),c="deleteUnmatchedParameter",f="renameUnmatchedParameter",e=[d.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],p.registerCodeFix({fixIds:[c,f],errorCodes:e,getCodeActions:function(e){var t,r,n,i,a,o=[],s=l(e.sourceFile,e.span.start);if(s)return d.append(o,(t=e,n=(r=s).name,i=r.signature,a=r.jsDocParameterTag,r=d.textChanges.ChangeTracker.with(t,function(e){return e.filterJSDocTags(t.sourceFile,i,function(e){return e!==a})}),p.createCodeFixAction(c,r,[d.Diagnostics.Delete_unused_param_tag_0,n.getText(t.sourceFile)],c,d.Diagnostics.Delete_all_unused_param_tags))),d.append(o,function(e,t){var r=t.name,n=t.signature,i=t.jsDocParameterTag;if(!d.length(n.parameters))return;for(var a=e.sourceFile,o=d.getJSDocTags(n),s=new d.Set,c=0,l=o;c<l.length;c++){var u=l[c];d.isJSDocParameterTag(u)&&d.isIdentifier(u.name)&&s.add(u.name.escapedText)}t=d.firstDefined(n.parameters,function(e){return d.isIdentifier(e.name)&&!s.has(e.name.escapedText)?e.name.getText(a):void 0});if(void 0===t)return;var _=d.factory.updateJSDocParameterTag(i,i.tagName,d.factory.createIdentifier(t),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),e=d.textChanges.ChangeTracker.with(e,function(e){return e.replaceJSDocComment(a,n,d.map(o,function(e){return e===i?_:e}))});return p.createCodeFixActionWithoutFixAll(f,e,[d.Diagnostics.Rename_param_tag_name_0_to_1,r.getText(a),t])}(e,s)),o},getAllCodeActions:function(i){var t=new d.Map;return p.createCombinedCodeActions(d.textChanges.ChangeTracker.with(i,function(n){p.eachDiagnostic(i,e,function(e){e=l(e.file,e.start);e&&t.set(e.signature,d.append(t.get(e.signature),e.jsDocParameterTag))}),t.forEach(function(e,t){var r;i.fixId===c&&(r=new d.Set(e),n.filterJSDocTags(t.getSourceFile(),t,function(e){return!r.has(e)}))})}))}})}(ts=ts||{}),function(o){var n,s,e;n=o.codefix||(o.codefix={}),s="fixUnreferenceableDecoratorMetadata",e=[o.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(i){var a=function(e,t,r){r=o.tryCast(o.getTokenAtPosition(e,r),o.isIdentifier);if(!r||178!==r.parent.kind)return;r=t.getTypeChecker().getSymbolAtLocation(r);return o.find((null==r?void 0:r.declarations)||o.emptyArray,o.or(o.isImportClause,o.isImportSpecifier,o.isImportEqualsDeclaration))}(i.sourceFile,i.program,i.span.start);if(a){var e,t=o.textChanges.ChangeTracker.with(i,function(e){return 270===a.kind&&(t=e,r=i.sourceFile,n=a,e=i.program,void o.refactor.doChangeNamedToNamespaceOrDefault(r,e,t,n.parent));var t,r,n}),r=o.textChanges.ChangeTracker.with(i,function(e){return function(e,t,r,n){if(265===r.kind)return void e.insertModifierBefore(t,152,r.name);r=267===r.kind?r:r.parent.parent;if(r.name&&r.namedBindings)return;var i=n.getTypeChecker();if(o.forEachImportClauseDeclaration(r,function(e){if(111551&o.skipAlias(e.symbol,i).flags)return!0}))return;e.insertModifierBefore(t,152,r)}(e,i.sourceFile,a,i.program)});return t.length&&(e=o.append(e,n.createCodeFixActionWithoutFixAll(s,t,o.Diagnostics.Convert_named_imports_to_namespace_import))),r.length&&(e=o.append(e,n.createCodeFixActionWithoutFixAll(s,r,o.Diagnostics.Convert_to_type_only_import))),e}},fixIds:[s]})}(ts=ts||{}),function(h){var p,f,g,u,m,y,e;function v(e,t,r){e.replaceNode(t,r.parent,h.factory.createKeywordTypeNode(155))}function b(e,t){return p.createCodeFixAction(f,e,t,u,h.Diagnostics.Delete_all_unused_declarations)}function x(e,t,r){e.delete(t,h.Debug.checkDefined(h.cast(r.parent,h.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function D(e){return 100===e.kind||79===e.kind&&(270===e.parent.kind||267===e.parent.kind)}function S(e){return 100===e.kind?h.tryCast(e.parent,h.isImportDeclaration):void 0}function T(e,t){return h.isVariableDeclarationList(t.parent)&&h.first(t.parent.getChildren(e))===t}function C(e,t,r){e.delete(t,237===r.parent.kind?r.parent:r)}function k(t,e,r,n){e!==h.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===n.kind&&(n=h.cast(n.parent,h.isInferTypeNode).typeParameter.name),h.isIdentifier(n)&&function(e){switch(e.parent.kind){case 164:case 163:return!0;case 254:switch(e.parent.parent.parent.kind){case 244:case 243:return!0}}return!1}(n)&&(t.replaceNode(r,n,h.factory.createIdentifier("_".concat(n.text))),h.isParameter(n.parent)&&h.getJSDocParameterTags(n.parent).forEach(function(e){h.isIdentifier(e.name)&&t.replaceNode(r,e.name,h.factory.createIdentifier("_".concat(e.name.text)))})))}function E(r,e,n,t,i,a,o,s){var c,l,u,_,d,p;c=n,l=r,u=t,_=i,d=a,p=o,i=s,o=(a=e).parent,h.isParameter(o)?function(t,r,e,n,i,a){void 0===a&&(a=!1),function(e,t,r,n,i,a,o){var s=r.parent;switch(s.kind){case 169:case 171:var c=s.parameters.indexOf(r),l=h.isMethodDeclaration(s)?s.name:s,l=h.FindAllReferences.Core.getReferencedSymbolsForNode(s.pos,l,i,n,a);if(l)for(var u=0,_=l;u<_.length;u++)for(var d=_[u],p=0,f=d.references;p<f.length;p++){var g=f[p];if(1===g.kind){var m=h.isSuperKeyword(g.node)&&h.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>c,y=h.isPropertyAccessExpression(g.node.parent)&&h.isSuperKeyword(g.node.parent.expression)&&h.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>c,g=(h.isMethodDeclaration(g.node.parent)||h.isMethodSignature(g.node.parent))&&g.node.parent!==r.parent&&g.node.parent.parameters.length>c;if(m||y||g)return!1}}return!0;case 256:return!s.name||!function(e,t,r){return!!h.FindAllReferences.Core.eachSymbolReferenceInFile(r,e,t,function(e){return h.isIdentifier(e)&&h.isCallExpression(e.parent)&&0<=e.parent.arguments.indexOf(e)})}(e,t,s.name)||A(s,r,o);case 213:case 214:return A(s,r,o);case 173:return!1;case 172:return!0;default:return h.Debug.failBadSyntaxKind(s)}}(n,r,e,i,d,p,a)&&(e.modifiers&&0<e.modifiers.length&&(!h.isIdentifier(e.name)||h.FindAllReferences.Core.isSymbolReferencedInFile(e.name,n,r))?e.modifiers.forEach(function(e){return t.deleteModifier(r,e)}):!e.initializer&&N(e,n,i)&&t.delete(r,e))}(c,l,o,u,_,i):i&&h.isIdentifier(a)&&h.FindAllReferences.Core.isSymbolReferencedInFile(a,u,l)||(o=h.isImportClause(o)?a:h.isComputedPropertyName(o)?o.parent:o,h.Debug.assert(o!==l,"should not delete whole source file"),c.delete(l,o)),h.isIdentifier(e)&&h.FindAllReferences.Core.eachSymbolReferenceInFile(e,t,r,function(e){var t;h.isPropertyAccessExpression(e.parent)&&e.parent.name===e&&(e=e.parent),!s&&(t=e,(h.isBinaryExpression(t.parent)&&t.parent.left===t||(h.isPostfixUnaryExpression(t.parent)||h.isPrefixUnaryExpression(t.parent))&&t.parent.operand===t)&&h.isExpressionStatement(t.parent.parent))&&n.delete(r,e.parent.parent)})}function N(e,t,r){var n=e.parent.parameters.indexOf(e);return!h.FindAllReferences.Core.someSignatureUsage(e.parent,r,t,function(e,t){return!t||t.arguments.length>n})}function A(e,t,r){e=e.parameters,t=e.indexOf(t);return h.Debug.assert(-1!==t,"The parameter should already be in the list"),r?e.slice(t+1).every(function(e){return h.isIdentifier(e.name)&&!e.symbol.isReferenced}):t===e.length-1}p=h.codefix||(h.codefix={}),f="unusedIdentifier",g="unusedIdentifier_prefix",u="unusedIdentifier_delete",m="unusedIdentifier_deleteImports",y="unusedIdentifier_infer",e=[h.Diagnostics._0_is_declared_but_its_value_is_never_read.code,h.Diagnostics._0_is_declared_but_never_used.code,h.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,h.Diagnostics.All_imports_in_import_declaration_are_unused.code,h.Diagnostics.All_destructured_elements_are_unused.code,h.Diagnostics.All_variables_are_unused.code,h.Diagnostics.All_type_parameters_are_unused.code],p.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.errorCode,n=e.sourceFile,r=e.program,i=e.cancellationToken,a=r.getTypeChecker(),o=r.getSourceFiles(),s=h.getTokenAtPosition(n,e.span.start);if(h.isJSDocTemplateTag(s))return[b(h.textChanges.ChangeTracker.with(e,function(e){return e.delete(n,s)}),h.Diagnostics.Remove_template_tag)];if(29===s.kind)return[b(l=h.textChanges.ChangeTracker.with(e,function(e){return x(e,n,s)}),h.Diagnostics.Remove_type_parameters)];var c=S(s);if(c){var l=h.textChanges.ChangeTracker.with(e,function(e){return e.delete(n,c)});return[p.createCodeFixAction(f,l,[h.Diagnostics.Remove_import_from_0,h.showModuleSpecifier(c)],m,h.Diagnostics.Delete_all_unused_imports)]}if(D(s)&&(_=h.textChanges.ChangeTracker.with(e,function(e){return E(n,s,e,a,o,r,i,!1)})).length)return[p.createCodeFixAction(f,_,[h.Diagnostics.Remove_unused_declaration_for_Colon_0,s.getText(n)],m,h.Diagnostics.Delete_all_unused_imports)];if(h.isObjectBindingPattern(s.parent)||h.isArrayBindingPattern(s.parent)){if(h.isParameter(s.parent.parent)){var u=s.parent.elements,u=[1<u.length?h.Diagnostics.Remove_unused_declarations_for_Colon_0:h.Diagnostics.Remove_unused_declaration_for_Colon_0,h.map(u,function(e){return e.getText(n)}).join(", ")];return[b(h.textChanges.ChangeTracker.with(e,function(e){return t=e,r=n,e=s.parent,void h.forEach(e.elements,function(e){return t.delete(r,e)});var t,r}),u)]}return[b(h.textChanges.ChangeTracker.with(e,function(e){return e.delete(n,s.parent.parent)}),h.Diagnostics.Remove_unused_destructuring_declaration)]}if(T(n,s))return[b(h.textChanges.ChangeTracker.with(e,function(e){return C(e,n,s.parent)}),h.Diagnostics.Remove_variable_statement)];var _,d,u=[];137===s.kind?(l=h.textChanges.ChangeTracker.with(e,function(e){return v(e,n,s)}),d=h.cast(s.parent,h.isInferTypeNode).typeParameter.name.text,u.push(p.createCodeFixAction(f,l,[h.Diagnostics.Replace_infer_0_with_unknown,d],y,h.Diagnostics.Replace_all_unused_infer_with_unknown))):(_=h.textChanges.ChangeTracker.with(e,function(e){return E(n,s,e,a,o,r,i,!1)})).length&&(d=h.isComputedPropertyName(s.parent)?s.parent:s,u.push(b(_,[h.Diagnostics.Remove_unused_declaration_for_Colon_0,d.getText(n)])));e=h.textChanges.ChangeTracker.with(e,function(e){return k(e,t,n,s)});return e.length&&u.push(p.createCodeFixAction(f,e,[h.Diagnostics.Prefix_0_with_an_underscore,s.getText(n)],g,h.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),u},fixIds:[g,u,m,y],getAllCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.cancellationToken,c=o.getTypeChecker(),l=o.getSourceFiles();return p.codeFixAll(i,e,function(e,t){var r=h.getTokenAtPosition(a,t.start);switch(i.fixId){case g:k(e,t.code,a,r);break;case m:var n=S(r);n?e.delete(a,n):D(r)&&E(a,r,e,c,l,o,s,!0);break;case u:if(137===r.kind||D(r))break;if(h.isJSDocTemplateTag(r))e.delete(a,r);else if(29===r.kind)x(e,a,r);else if(h.isObjectBindingPattern(r.parent)){if(r.parent.parent.initializer)break;h.isParameter(r.parent.parent)&&!N(r.parent.parent,c,l)||e.delete(a,r.parent.parent)}else{if(h.isArrayBindingPattern(r.parent.parent)&&r.parent.parent.parent.initializer)break;T(a,r)?C(e,a,r.parent):E(a,r,e,c,l,o,s,!0)}break;case y:137===r.kind&&v(e,a,r);break;default:h.Debug.fail(JSON.stringify(i.fixId))}})}})}(ts=ts||{}),function(l){var r,n,t;function i(e,t,r,n,i){var a=l.getTokenAtPosition(t,r),o=l.findAncestor(a,l.isStatement);o.getStart(t)!==a.getStart(t)&&(i=JSON.stringify({statementKind:l.Debug.formatSyntaxKind(o.kind),tokenKind:l.Debug.formatSyntaxKind(a.kind),errorCode:i,start:r,length:n}),l.Debug.fail("Token and statement should start at the same point. "+i));var s,c=(l.isBlock(o.parent)?o.parent:o).parent;if(!l.isBlock(o.parent)||o===l.first(o.parent.statements))switch(c.kind){case 239:if(c.elseStatement){if(l.isBlock(o.parent))break;return void e.replaceNode(t,o,l.factory.createBlock(l.emptyArray))}case 241:case 242:return void e.delete(t,c)}l.isBlock(o.parent)?(s=r+n,n=l.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}(l.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=l.codefix||(l.codefix={}),n="fixUnreachableCode",t=[l.Diagnostics.Unreachable_code_detected.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){if(!t.program.getSyntacticDiagnostics(t.sourceFile,t.cancellationToken).length){var e=l.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.span.length,t.errorCode)});return[r.createCodeFixAction(n,e,l.Diagnostics.Remove_unreachable_code,n,l.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(l){var u,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=l.findAncestor(l.getTokenAtPosition(e,t),i),t=t&&t.type;return t&&{typeNode:t,type:r.getTypeFromTypeNode(t)}}function i(e){switch(e.kind){case 229:case 174:case 175:case 256:case 172:case 176:case 195:case 169:case 168:case 164:case 167:case 166:case 173:case 259:case 211:case 254:return!0;default:return!1}}u=l.codefix||(l.codefix={}),n="fixJSDocTypes_plain",_="fixJSDocTypes_nullable",r=[l.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code],u.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,l.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 314===s.kind&&e.push(r(o.getNullableType(t,32768),_,l.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),e}function r(t,e,r){var n=l.textChanges.ChangeTracker.with(i,function(e){return d(e,a,s,t,o)});return u.createCodeFixAction("jdocTypes",n,[l.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 u.codeFixAll(e,r,function(e,t){var r=p(t.file,t.start,a);r&&(t=r.typeNode,r=r.type,r=314===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,"".concat(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_this_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 t=a.getTokenAtPosition(e,t),r=a.getContainingFunction(t);if(r){switch(r.kind){case 169:i=r.name;break;case 256:case 213:i=a.findChildOfKind(r,98,e);break;case 214:var n=r.typeParameters?29:20,i=a.findChildOfKind(r,n,e)||a.first(r.parameters);break;default:return}return i&&{insertBefore:i,returnType:(t=r).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))&&79===r.kind&&"Promise"===r.text||e.replaceNode(t,i,a.factory.createTypeReferenceNode("Promise",a.factory.createNodeArray([i])))),e.insertModifierBefore(t,131,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.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,a.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.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 l,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(l.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 l.generateAccessorFromProperty(e,i.program,a,o,i,c.Diagnostics.Generate_get_and_set_accessors.message)}l=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",l.registerCodeFix({errorCodes:e,getCodeActions:function(e){e=o(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(e)return[l.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 l.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,u,t;function _(e,t,r,n,i,a,o,s,c){if(D.isParameterPropertyModifier(r.kind)||79===r.kind||25===r.kind||108===r.kind){var l=r.parent,u=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(l)&&o(l)||D.isPropertyDeclaration(l)||D.isPropertySignature(l))return T(e,u,t,l,i,s,a),u.writeFixes(e),l;if(D.isPropertyAccessExpression(l)){var _=A(l.name,i,a),_=D.getTypeNodeIfAccessible(_,l,i,s);return _&&(d=D.factory.createJSDocTypeTag(void 0,D.factory.createJSDocTypeExpression(_),void 0),e.addJSDocTags(t,D.cast(l.parent.parent,D.isExpressionStatement),[d])),u.writeFixes(e),l}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,u,D.getSourceFileOfNode(d.valueDeclaration),d.valueDeclaration,i,s,a),u.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,u,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))E(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,l=n;c<l.length;c++){var u=l[c],_=u.declaration,u=u.type;!_||_.type||_.initializer||k(e,t,r,_,u,a,o)}s&&e.insertNodeAfter(r,D.last(i.parameters),D.factory.createToken(21))}}(e,u,t,b=D.cast(l,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)&&(k(e,u,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,u,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)?f.addJSDocTags(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 u.writeFixes(e),p}}}function T(e,t,r,n,i,a,o){D.isIdentifier(n.name)&&k(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)?E(e,r,[{declaration:c,type:s}],i,a):k(e,t,r,c,s,i,a))}function k(e,t,r,n,i,a,o){var s=D.getTypeNodeIfAccessible(i,n,a,o);s&&(D.isInJSFile(r)&&166!==n.kind?(i=D.isVariableDeclaration(n)?D.tryCast(n.parent.parent,D.isVariableStatement):n)&&(o=D.factory.createJSDocTypeExpression(s),o=D.isGetAccessorDeclaration(n)?D.factory.createJSDocReturnTag(void 0,o,void 0):D.factory.createJSDocTypeTag(void 0,o,void 0),e.addJSDocTags(r,i,[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 E(r,n,e,i,a){var t,o=e.length&&e[0].declaration.parent;!o||(t=D.mapDefined(e,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,i,a);if(r){var n=D.factory.cloneNode(t.name);return D.setEmitFlags(n,3584),{name:D.factory.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:r}}}})).length&&(D.isArrowFunction(o)||D.isFunctionExpression(o)?((e=D.isArrowFunction(o)&&!D.findChildOfKind(o,20,n))&&r.insertNodeBefore(n,D.first(o.parameters),D.factory.createToken(20)),D.forEach(t,function(e){var t=e.typeNode,e=e.param,t=D.factory.createJSDocTypeTag(void 0,D.factory.createJSDocTypeExpression(t)),t=D.factory.createJSDocComment(void 0,[t]);r.insertNodeAt(n,e.getStart(n),t,{suffix:" "})}),e&&r.insertNodeAfter(n,D.last(o.parameters),D.factory.createToken(21))):(t=D.map(t,function(e){var t=e.name,r=e.typeNode,e=e.isOptional;return D.factory.createJSDocParameterTag(void 0,t,!!e,D.factory.createJSDocTypeExpression(r),!1,void 0)}),r.addJSDocTags(n,o,t)))}function N(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,N(e,t,r),r).single()}function F(e,t,r,n){switch(e.kind){case 171:a=D.findChildOfKind(e,134,t);break;case 214:case 213:var i=e.parent,a=((D.isVariableDeclaration(i)||D.isPropertyDeclaration(i))&&D.isIdentifier(i.name)?i:e).name;break;case 256:case 169:case 168:a=e.name}if(a)return N(a,r,n)}function P(d,i,p){var y=d.getTypeChecker(),a={string:function(){return y.getStringType()},number:function(){return y.getNumberType()},Array:function(e){return y.createArrayType(e)},Promise:function(e){return y.createPromiseType(e)}},o=[y.getStringType(),y.getNumberType(),y.createArrayType(y.getAnyType()),y.createPromiseType(y.getAnyType())];return{single:function(){return g(f(i))},parameters:function(u){if(0===i.length||!u.parameters)return;for(var e=c(),t=0,r=i;t<r.length;t++){var n=r[t];p.throwIfCancellationRequested(),l(n,e)}var _=__spreadArray(__spreadArray([],e.constructs||[],!0),e.calls||[],!0);return u.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(u),r.push(y.getUndefinedType());else if(n)for(var c=t;c<s.argumentTypes.length;c++)r.push(y.getBaseTypeOfLiteralType(s.argumentTypes[c]));else r.push(y.getBaseTypeOfLiteralType(s.argumentTypes[t]))}D.isIdentifier(e.name)&&(l=f(N(e.name,d,p)),r.push.apply(r,n?D.mapDefined(l,y.getElementTypeOfArrayType):l));var l=g(r);return{type:n?y.createArrayType(l):l,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(),l(n,e)}return g(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(),l(i,t)}return _(t)}function l(e,t){for(;D.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;switch(e.parent.kind){case 238:s=e,b(t,D.isCallExpression(s)?y.getVoidType():y.getAnyType());break;case 220:t.isNumber=!0;break;case 219:!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 221:!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 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var n=y.getTypeAtLocation(t.left===e?t.right:t.left);1056&n.flags?b(r,n):r.isNumber=!0;break;case 64:case 39:n=y.getTypeAtLocation(t.left===e?t.right:t.left);1056&n.flags?b(r,n):296&n.flags?r.isNumber=!0:402653316&n.flags?r.isString=!0:1&n.flags||(r.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:b(r,y.getTypeAtLocation(t.left===e?t.right:t.left));break;case 101:e===t.left&&(r.isString=!0);break;case 56:case 60:e!==t.left||254!==e.parent.parent.kind&&!D.isAssignmentExpression(e.parent.parent,!0)||b(r,y.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 289:case 290:o=e.parent,b(t,y.getTypeAtLocation(o.parent.parent.expression));break;case 208:case 209: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(y.getTypeAtLocation(a))}l(e,r.return_),(208===e.kind?t.calls||(t.calls=[]):t.constructs||(t.constructs=[])).push(r)}(e.parent,t):u(e,t);break;case 206:!function(e,t){var r=D.escapeLeadingUnderscores(e.name.text);t.properties||(t.properties=new D.Map);var n=t.properties.get(r)||c();l(e,n),t.properties.set(r,n)}(e.parent,t);break;case 207:i=e.parent,s=t,!void((a=e)===i.argumentExpression?s.isNumberOrString=!0:(o=y.getTypeAtLocation(i.argumentExpression),a=c(),l(i,a),296&o.flags?s.numberIndex=a:s.stringIndex=a));break;case 296:case 297:n=e.parent,a=t,n=(D.isVariableDeclaration(n.parent.parent)?n.parent:n).parent,!void x(a,y.getTypeAtLocation(n));break;case 167:r=e.parent,x(t,y.getTypeAtLocation(r.parent));break;case 254:n=e.parent,r=n.name,n=n.initializer;if(e===r){n&&b(t,y.getTypeAtLocation(n));break}default:return u(e,t),0}var r,n,i,a,o,s}function u(e,t){D.isExpressionNode(e)&&b(t,y.getContextualType(e))}function s(e){return g(_(e))}function g(e){if(!e.length)return y.getAnyType();var t=y.getUnionType([y.getStringType(),y.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],l=c.high,c=c.low;l(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===y.getStringType()||e===y.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,l=n;c<l.length;c++){for(var u=l[c],_=0,d=y.getPropertiesOfType(u);_<d.length;_++){var p=d[_];s.add(p.name,p.valueDeclaration?y.getTypeOfSymbolAtLocation(p,p.valueDeclaration):y.getAnyType())}e.push.apply(e,y.getSignaturesOfType(u,0)),t.push.apply(t,y.getSignaturesOfType(u,1));var f=y.getIndexInfoOfType(u,0);f&&(r.push(f.type),a=a||f.isReadonly);u=y.getIndexInfoOfType(u,1);u&&(i.push(u.type),o=o||u.isReadonly)}var g=D.mapEntries(s,function(e,t){var r=t.length<n.length?16777216:0,r=y.createSymbol(4|r,e);return r.type=y.getUnionType(t),[e,r]}),m=[];r.length&&m.push(y.createIndexInfo(y.getStringType(),y.getUnionType(r),a));i.length&&m.push(y.createIndexInfo(y.getNumberType(),y.getUnionType(i),o));return y.createAnonymousType(n[0].symbol,g,e,t,m)}(e)),y.getWidenedType(y.getUnionType(r.map(y.getBaseTypeOfLiteralType),2))}function _(e){var t=[];e.isNumber&&t.push(y.getNumberType()),e.isString&&t.push(y.getStringType()),e.isNumberOrString&&t.push(y.getUnionType([y.getStringType(),y.getNumberType()])),e.numberIndex&&t.push(y.createArrayType(s(e.numberIndex))),(null!==(r=e.properties)&&void 0!==r&&r.size||null!==(n=e.constructs)&&void 0!==n&&n.length||e.stringIndex)&&t.push(m(e));var r=(e.candidateTypes||[]).map(function(e){return y.getBaseTypeOfLiteralType(e)}),n=null!==(n=e.calls)&&void 0!==n&&n.length?m(e):void 0;return n&&r?t.push(y.getUnionType(__spreadArray([n],r,!0),2)):(n&&t.push(n),D.length(r)&&t.push.apply(t,r)),t.push.apply(t,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=y.getTypeOfPropertyOfType(n,t);return!r||(e.calls?!y.getSignaturesOfType(r,0).length||!y.isTypeAssignableTo(r,(t=e.calls,y.createAnonymousType(void 0,D.createSymbolTable(),[v(t)],D.emptyArray,D.emptyArray))):!y.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=y.getTypeOfPropertyOfType(r,t);D.Debug.assert(!!t,"generic should have all the properties of its reference."),i.push.apply(i,h(t,s(e),n))}),a[e.symbol.escapedName](g(i))}(e,t)});return[]}(e)),t}function m(e){var n=new D.Map;e.properties&&e.properties.forEach(function(e,t){var r=y.createSymbol(4,t);r.type=s(e),n.set(t,r)});var t=e.calls?[v(e.calls)]:[],r=e.constructs?[v(e.constructs)]:[],e=e.stringIndex?[y.createIndexInfo(y.getStringType(),s(e.stringIndex),!1)]:[];return y.createAnonymousType(void 0,n,t,r,e)}function h(e,t,r){if(e===r)return[t];if(3145728&e.flags)return D.flatMap(e.types,function(e){return h(e,t,r)});if(4&D.getObjectFlags(e)&&4&D.getObjectFlags(t)){var n=y.getTypeArguments(e),i=y.getTypeArguments(t),a=[];if(n&&i)for(var o=0;o<n.length;o++)i[o]&&a.push.apply(a,h(n[o],i[o],r));return a}var s=y.getSignaturesOfType(e,0),e=y.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=a.valueDeclaration?y.getTypeOfSymbolAtLocation(a,a.valueDeclaration):y.getAnyType(),s=s&&y.getElementTypeOfArrayType(a);s&&(a=s);o=o.type||(o.valueDeclaration?y.getTypeOfSymbolAtLocation(o,o.valueDeclaration):y.getAnyType());n.push.apply(n,h(a,o,r))}var c=y.getReturnTypeOfSignature(e),l=y.getReturnTypeOfSignature(t);return n.push.apply(n,h(c,l,r)),n}(s[0],e[0],r):[]}function v(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=y.createSymbol(1,D.escapeLeadingUnderscores("arg".concat(t)));e.type=g(r.map(function(e){return e.argumentTypes[t]||y.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 y.createSignature(void 0,void 0,void 0,n,i,void 0,e,0)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function x(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}S=D.codefix||(D.codefix={}),u="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,l=D.getTokenAtPosition(r,i),i=D.textChanges.ChangeTracker.with(e,function(e){t=_(e,r,l,a,n,o,D.returnTrue,s,c)}),e=t&&D.getNameOfDeclaration(t);return e&&0!==i.length?[S.createCodeFixAction(u,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,l),D.getTextOfNode(e)],u,D.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[u],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)})}})}(ts=ts||{}),function(s){var c,l,e;function u(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={}),l="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:[l],getCodeActions:function(e){var t=e.sourceFile,r=e.program,n=e.span,i=r.getTypeChecker(),r=u(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(l,e,[s.Diagnostics.Replace_0_with_Promise_1,i.typeToString(n),i.typeToString(r)],l,s.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(n){return c.codeFixAll(n,e,function(e,t){var r=u(t.file,n.program.getTypeChecker(),t.start);r&&_(e,t.file,r.returnTypeNode,r.promisedTypeNode)})}})}(ts=ts||{}),function(o){var s,c,l,t;function u(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={}),l=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".concat(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 u(e,t,n.start)}),o.Diagnostics.Ignore_this_error_message,l,o.Diagnostics.Add_ts_ignore_to_all_error_messages)),a}},fixIds:[l],getAllCodeActions:function(e){var r=new o.Set;return s.codeFixAll(e,t,function(e,t){o.textChanges.isValidLocationToAddComment(t.file,t.start)&&u(e,t.file,t.start,r)})}})}(ts=ts||{}),function(P){var e,t;function w(e){return{trackSymbol:function(){return!1},moduleResolverHost:P.getModuleSpecifierResolverHost(e.program,e.host)}}function _(e,a,t,o,r,s,c,n,l,i){void 0===l&&(l=3),void 0===i&&(i=!1);var u=e.getDeclarations();if(u&&u.length){var _=o.program.getTypeChecker(),d=P.getEmitScriptTarget(o.program.getCompilerOptions()),p=u[0],f=P.getSynthesizedDeepClone(P.getNameOfDeclaration(p),!1),g=function(e){{if(4&e)return P.factory.createToken(123);if(16&e)return P.factory.createToken(122)}return}(P.getEffectiveModifierFlags(p)),m=g?P.factory.createNodeArray([g]):void 0,y=_.getWidenedType(_.getTypeOfSymbolAtLocation(e,a)),h=!!(16777216&e.flags),v=!!(16777216&a.flags)||i,b=P.getQuotePreference(t,r);switch(p.kind){case 166:case 167:var x=0===b?268435456:void 0,x=_.typeToTypeNode(y,a,x,w(o));s&&(D=L(x,d))&&(x=D.typeNode,R(s,D.symbols)),c(P.factory.createPropertyDeclaration(void 0,m,f,h&&2&l?P.factory.createToken(57):void 0,x,void 0));break;case 172:case 173:var D,S=_.typeToTypeNode(y,a,void 0,w(o)),T=P.getAllAccessorDeclarations(u,p),T=T.secondAccessor?[T.firstAccessor,T.secondAccessor]:[T.firstAccessor];s&&(D=L(S,d))&&(S=D.typeNode,R(s,D.symbols));for(var C=0,k=T;C<k.length;C++){var E=k[C];P.isGetAccessorDeclaration(E)?c(P.factory.createGetAccessorDeclaration(void 0,m,f,P.emptyArray,S,v?void 0:n||M(b))):(P.Debug.assertNode(E,P.isSetAccessorDeclaration,"The counterpart to a getter should be a setter"),E=(E=P.getSetAccessorValueParameter(E))&&P.isIdentifier(E.name)?P.idText(E.name):void 0,c(P.factory.createSetAccessorDeclaration(void 0,m,f,O(1,[E],[S],1,!1),v?void 0:n||M(b))))}break;case 168:case 169:T=_.getSignaturesOfType(y,0);if(!P.some(T))break;if(1===u.length){P.Debug.assert(1===T.length,"One declaration implies one signature"),F(b,T[0],m,f,v?void 0:n||M(b));break}for(var N=0,A=T;N<A.length;N++)F(b,A[N],P.getSynthesizedDeepClones(m,!1),P.getSynthesizedDeepClone(f,!1));v||(u.length>T.length?F(b,_.getSignatureFromDeclaration(u[u.length-1]),m,f,n||M(b)):(P.Debug.assert(u.length===T.length,"Declarations and signatures should match count"),c(function(e,t,r,n,i,a,o,s,c){for(var l=n[0],u=n[0].minArgumentCount,_=!1,d=0,p=n;d<p.length;d++){var f=p[d];u=Math.min(f.minArgumentCount,u),P.signatureHasRestParameter(f)&&(_=!0),f.parameters.length>=l.parameters.length&&(!P.signatureHasRestParameter(f)||P.signatureHasRestParameter(l))&&(l=f)}var g=l.parameters.length-(P.signatureHasRestParameter(l)?1:0),m=l.parameters.map(function(e){return e.name}),y=O(g,m,void 0,u,!1);_&&(g=P.factory.createParameterDeclaration(void 0,void 0,P.factory.createToken(25),m[g]||"rest",u<=g?P.factory.createToken(57):void 0,P.factory.createArrayTypeNode(P.factory.createKeywordTypeNode(155)),void 0),y.push(g));return function(e,t,r,n,i,a,o,s){return P.factory.createMethodDeclaration(void 0,e,void 0,t,r?P.factory.createToken(57):void 0,n,i,a,s||M(o))}(o,i,a,void 0,y,function(e,t,r,n){if(P.length(e)){e=t.getUnionType(P.map(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(e,n,void 0,w(r))}}(n,e,t,r),s,c)}(_,o,a,T,f,h&&!!(1&l),m,b,n))))}}function F(e,t,r,n,i){r=I(169,o,e,t,i,n,r,h&&!!(1&l),a,s);r&&c(r)}}function I(e,t,r,n,i,a,o,s,c,l){var u=t.program,_=u.getTypeChecker(),d=P.getEmitScriptTarget(u.getCompilerOptions()),r=524545|(0===r?268435456:0),e=_.signatureToSignatureDeclaration(n,e,c,r,w(t));if(e){var p,c=e.typeParameters,r=e.parameters,t=e.type;l&&(!c||c!==(p=P.sameMap(c,function(e){var t,r=e.constraint,n=e.default;return r&&(t=L(r,d))&&(r=t.typeNode,R(l,t.symbols)),n&&(t=L(n,d))&&(n=t.typeNode,R(l,t.symbols)),P.factory.updateTypeParameterDeclaration(e,e.modifiers,e.name,r,n)}))&&(c=P.setTextRange(P.factory.createNodeArray(p,c.hasTrailingComma),c)),r!==(p=P.sameMap(r,function(e){var t=L(e.type,d),r=e.type;return t&&(r=t.typeNode,R(l,t.symbols)),P.factory.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,r,e.initializer)}))&&(r=P.setTextRange(P.factory.createNodeArray(p,r.hasTrailingComma),r)),!t||(f=L(t,d))&&(t=f.typeNode,R(l,f.symbols)));var f=s?P.factory.createToken(57):void 0,s=e.asteriskToken;return P.isFunctionExpression(e)?P.factory.updateFunctionExpression(e,o,e.asteriskToken,P.tryCast(a,P.isIdentifier),c,r,t,null!=i?i:e.body):P.isArrowFunction(e)?P.factory.updateArrowFunction(e,o,c,r,t,e.equalsGreaterThanToken,null!=i?i:e.body):P.isMethodDeclaration(e)?P.factory.updateMethodDeclaration(e,void 0,o,s,null!=a?a:P.factory.createIdentifier(""),f,c,r,t,i):void 0}}function x(e,t,r,n,i,a,o){o=e.typeToTypeNode(r,n,a,o);return o&&P.isImportTypeNode(o)&&((i=L(o,i))&&(R(t,i.symbols),o=i.typeNode)),P.getSynthesizedDeepClone(o)}function O(e,t,r,n,i){for(var a=[],o=0;o<e;o++){var s=P.factory.createParameterDeclaration(void 0,void 0,void 0,t&&t[o]||"arg".concat(o),void 0!==n&&n<=o?P.factory.createToken(57):void 0,i?void 0:r&&r[o]||P.factory.createKeywordTypeNode(155),void 0);a.push(s)}return a}function M(e){return D(P.Diagnostics.Method_not_implemented.message,e)}function D(e,t){return P.factory.createBlock([P.factory.createThrowStatement(P.factory.createNewExpression(P.factory.createIdentifier("Error"),void 0,[P.factory.createStringLiteral(e,0===t)]))],!0)}function i(e,t,r){var n=P.getTsConfigObjectLiteralExpression(t);if(n){var i=p(n,"compilerOptions");if(void 0!==i){var a=i.initializer;if(P.isObjectLiteralExpression(a))for(var o=0,s=r;o<s.length;o++){var c=s[o],l=c[0],u=c[1],c=p(a,l);void 0===c?e.insertNodeAtObjectStart(t,a,d(l,u)):e.replaceNode(t,c.initializer,u)}}else e.insertNodeAtObjectStart(t,n,d("compilerOptions",P.factory.createObjectLiteralExpression(r.map(function(e){return d(e[0],e[1])}),!0)))}}function d(e,t){return P.factory.createPropertyAssignment(P.factory.createStringLiteral(e),t)}function p(e,t){return P.find(e.properties,function(e){return P.isPropertyAssignment(e)&&!!e.name&&P.isStringLiteral(e.name)&&e.name.text===t})}function L(e,i){var a,e=P.visitNode(e,function e(t){if(P.isLiteralImportTypeNode(t)&&t.qualifier){var r=P.getFirstIdentifier(t.qualifier),n=P.getNameForExportedSymbol(r.symbol,i),n=n!==r.text?o(t.qualifier,P.factory.createIdentifier(n)):t.qualifier;a=P.append(a,r.symbol);var r=null===(r=t.typeArguments)||void 0===r?void 0:r.map(e);return P.factory.createTypeReferenceNode(n,r)}return P.visitEachChild(t,e,P.nullTransformationContext)});if(a&&e)return{typeNode:e,symbols:a}}function o(e,t){return 79===e.kind?t:P.factory.createQualifiedName(o(e.left,t),e.right)}function R(t,e){e.forEach(function(e){return t.addImportFromExportedSymbol(e,!0)})}(e=P.codefix||(P.codefix={})).createMissingMemberNodes=function(e,t,r,n,i,a,o){for(var s=e.symbol.members,c=0,l=t;c<l.length;c++){var u=l[c];s.has(u.escapedName)||_(u,e,r,n,i,a,o,void 0)}},e.getNoopSymbolTrackerWithResolver=w,(t=e.PreserveOptionalFlags||(e.PreserveOptionalFlags={}))[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",e.addNewNodeForMemberSymbol=_,e.createSignatureDeclarationFromSignature=I,e.createSignatureDeclarationFromCallExpression=function(e,t,r,n,i,a,o){var s=P.getQuotePreference(t.sourceFile,t.preferences),c=P.getEmitScriptTarget(t.program.getCompilerOptions()),l=w(t),u=t.program.getTypeChecker(),_=P.isInJSFile(o),d=n.typeArguments,p=n.arguments,f=n.parent,g=_?void 0:u.getContextualType(n),t=P.map(p,function(e){return P.isIdentifier(e)?e.text:P.isPropertyAccessExpression(e)&&P.isIdentifier(e.name)?e.name.text:void 0}),n=_?[]:P.map(p,function(e){return x(u,r,u.getBaseTypeOfLiteralType(u.getTypeAtLocation(e)),o,c,void 0,l)}),m=a?P.factory.createNodeArray(P.factory.createModifiersFromModifierFlags(a)):void 0,y=P.isYieldExpression(f)?P.factory.createToken(41):void 0,h=_||void 0===d?void 0:P.map(d,function(e,t){return P.factory.createTypeParameterDeclaration(void 0,84+d.length-1<=90?String.fromCharCode(84+t):"T".concat(t))}),v=O(p.length,t,n,void 0,_),b=_||void 0===g?void 0:u.typeToTypeNode(g,o,void 0,l);switch(e){case 169:return P.factory.createMethodDeclaration(void 0,m,y,i,void 0,h,v,b,M(s));case 168:return P.factory.createMethodSignature(m,i,void 0,h,v,b);case 256:return P.factory.createFunctionDeclaration(void 0,m,y,i,h,v,b,D(P.Diagnostics.Function_not_implemented.message,s));default:P.Debug.fail("Unexpected kind")}},e.typeToAutoImportableTypeNode=x,e.createStubbedBody=D,e.setJsonCompilerOptionValues=i,e.setJsonCompilerOptionValue=function(e,t,r,n){i(e,t,[[r,n]])},e.createJsonPropertyAssignment=d,e.findJsonProperty=p,e.tryGetAutoImportableReferenceFromTypeNode=L,e.importSymbols=R}(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 k(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 E(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("_".concat(n),e),a.name),n=s(i?C.getUniqueName(n.substring(1),e):n,a.name);return{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(__spreadArray(__spreadArray([],t,!0),[C.factory.createKeywordTypeNode(153)],!1))}}return r}(a,t),container:(164===a.kind?a.parent:a).parent,originalName:a.name.text,declaration:a,fieldName:r,accessorName:n,renameAccessor:i}}function N(e,t,r,n,i){C.isParameterPropertyDeclaration(n,n.parent)?e.insertMemberAtStart(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){if((T=E(e,t,r,n))&&!C.refactor.isRefactorErrorInfo(T)){var o,s,c=C.textChanges.ChangeTracker.fromContext(i),l=T.isStatic,u=T.isReadonly,_=T.fieldName,d=T.accessorName,p=T.originalName,f=T.type,t=T.container,r=T.declaration;C.suppressLeadingAndTrailingTrivia(_),C.suppressLeadingAndTrailingTrivia(d),C.suppressLeadingAndTrailingTrivia(r),C.suppressLeadingAndTrailingTrivia(t),C.isClassLike(t)&&(y=C.getEffectiveModifierFlags(r),m=C.isSourceFileJS(e)?h=C.createModifiers(y):(h=C.createModifiers(function(e){e&=-65,16&(e&=-9)||(e|=4);return e}(y)),C.createModifiers((g=y,g&=-5,g&=-17,g|=8)))),n=c,i=e,T=r,y=f,o=_,s=m,C.isPropertyDeclaration(T)?function(e,t,r,n){n=C.factory.updatePropertyDeclaration(r,r.decorators,s,o,r.questionToken||r.exclamationToken,n,r.initializer),e.replaceNode(t,r,n)}(n,i,T,y):C.isPropertyAssignment(T)?function(e,t,r,n){n=C.factory.updatePropertyAssignment(r,n,r.initializer),e.replacePropertyAssignment(t,r,n)}(n,i,T,o):n.replaceNode(i,T,C.factory.updateParameterDeclaration(T,T.decorators,s,T.dotDotDotToken,C.cast(o,C.isIdentifier),T.questionToken,T.type,T.initializer));var g,m,y,h,v,b,x,D,S,T=(g=_,m=d,y=f,n=h,i=l,T=t,C.factory.createGetAccessorDeclaration(void 0,n,m,void 0,y,C.factory.createBlock([C.factory.createReturnStatement(k(g,i,T))],!0)));return C.suppressLeadingAndTrailingTrivia(T),N(c,e,T,r,t),u?(u=C.getFirstConstructorWithBody(t))&&(v=c,b=e,x=u,D=_.text,S=p,x.body&&x.body.forEachChild(function e(t){C.isElementAccessExpression(t)&&108===t.expression.kind&&C.isStringLiteral(t.argumentExpression)&&t.argumentExpression.text===S&&C.isWriteAccess(t)&&v.replaceNode(b,t.argumentExpression,C.factory.createStringLiteral(D)),C.isPropertyAccessExpression(t)&&108===t.expression.kind&&t.name.text===S&&C.isWriteAccess(t)&&v.replaceNode(b,t.name,C.factory.createIdentifier(D)),C.isFunctionLike(t)||C.isClassLike(t)||t.forEachChild(e)})):(x=_,_=d,d=f,f=h,h=l,l=t,l=C.factory.createSetAccessorDeclaration(void 0,f,_,[C.factory.createParameterDeclaration(void 0,void 0,void 0,C.factory.createIdentifier("value"),void 0,d)],C.factory.createBlock([C.factory.createExpressionStatement(C.factory.createAssignment(k(x,h,l),C.factory.createIdentifier("value")))],!0)),C.suppressLeadingAndTrailingTrivia(l),N(c,e,l,r,t)),c.getChanges()}},e.getAccessorConvertiblePropertyAtPosition=E,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=n.declarations&&C.find(n.declarations,C.isClassLike);if(!n)break;r.push(n),e=n}return r}}(ts=ts||{}),function(u){var _,d;function p(e,t,r,n){e=u.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(t,r,n)});return _.createCodeFixActionWithoutFixAll(d,e,[u.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=[],l=r.symbol.originatingImport;return u.isImportCall(l)||u.addRange(c,(n=e,i=l,a=u.getSourceFileOfNode(i),o=u.getNamespaceDeclarationNode(i),r=n.program.getCompilerOptions(),(l=[]).push(p(n,a,i,u.makeImport(o.name,void 0,i.moduleSpecifier,u.getQuotePreference(a,n.preferences)))),u.getEmitModuleKind(r)===u.ModuleKind.CommonJS&&l.push(p(n,a,i,u.factory.createImportEqualsDeclaration(void 0,void 0,!1,o.name,u.factory.createExternalModuleReference(i.moduleSpecifier)))),l)),!u.isExpression(t)||u.isNamedDeclaration(t.parent)&&t.parent.name===t||(s=e.sourceFile,e=u.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(s,t,u.factory.createPropertyAccessExpression(t,"default"),{})}),c.push(_.createCodeFixActionWithoutFixAll(d,e,u.Diagnostics.Use_synthetic_default_member))),c}_=u.codefix||(u.codefix={}),d="invalidImportSyntax",_.registerCodeFix({errorCodes:[u.Diagnostics.This_expression_is_not_callable.code,u.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(e){var t=e.sourceFile,r=u.Diagnostics.This_expression_is_not_callable.code===e.errorCode?208:209,t=u.findAncestor(u.getTokenAtPosition(t,e.span.start),function(e){return e.kind===r});if(!t)return[];t=t.expression;return n(e,t)}}),_.registerCodeFix({errorCodes:[u.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,u.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,u.Diagnostics.Type_0_is_not_assignable_to_type_1.code,u.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,u.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,u.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,u.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,u.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,u.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,u.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,u.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=u.findAncestor(u.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(o){var s,c,l,u,_,e;function d(e,t){e=o.getTokenAtPosition(e,t);if(o.isIdentifier(e)&&o.isPropertyDeclaration(e.parent)){t=o.getEffectiveTypeAnnotationNode(e.parent);if(t)return{type:t,prop:e.parent,isJs:o.isInJSFile(e.parent)}}}function p(e,t,r){o.suppressLeadingAndTrailingTrivia(r);var n=o.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,o.factory.createToken(53),r.type,r.initializer);e.replaceNode(t,r,n)}function f(e,t,r){var n=o.factory.createKeywordTypeNode(153),n=o.isUnionTypeNode(r.type)?r.type.types.concat(n):[r.type,n],n=o.factory.createUnionTypeNode(n);r.isJs?e.addJSDocTags(t,r.prop,[o.factory.createJSDocTypeTag(void 0,o.factory.createJSDocTypeExpression(n))]):e.replaceNode(t,r.type,n)}function g(e,t,r,n){o.suppressLeadingAndTrailingTrivia(r);n=o.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,n);e.replaceNode(t,r,n)}function m(e,t){return function t(r,e){{if(512&e.flags)return e===r.getFalseType()||e===r.getFalseType(!0)?o.factory.createFalse():o.factory.createTrue();if(e.isStringLiteral())return o.factory.createStringLiteral(e.value);if(e.isNumberLiteral())return o.factory.createNumericLiteral(e.value);if(2048&e.flags)return o.factory.createBigIntLiteral(e.value);if(e.isUnion())return o.firstDefined(e.types,function(e){return t(r,e)});if(e.isClass()){var n=o.getClassLikeDeclarationOfSymbol(e.symbol);if(!n||o.hasSyntacticModifier(n,128))return;var n=o.getFirstConstructorWithBody(n);return n&&n.parameters.length?void 0:o.factory.createNewExpression(o.factory.createIdentifier(e.symbol.name),void 0,void 0)}if(r.isArrayLikeType(e))return o.factory.createArrayLiteralExpression()}return}(e,e.getTypeFromTypeNode(t.type))}s=o.codefix||(o.codefix={}),c="strictClassInitialization",l="addMissingPropertyDefiniteAssignmentAssertions",u="addMissingPropertyUndefinedType",_="addMissingPropertyInitializer",e=[o.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],s.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=d(e.sourceFile,e.span.start);if(t){var r,n,i,a=[];return o.append(a,(r=e,n=t,i=o.textChanges.ChangeTracker.with(r,function(e){return f(e,r.sourceFile,n)}),s.createCodeFixAction(c,i,[o.Diagnostics.Add_undefined_type_to_property_0,n.prop.name.getText()],u,o.Diagnostics.Add_undefined_type_to_all_uninitialized_properties))),o.append(a,function(t,r){if(r.isJs)return;var e=o.textChanges.ChangeTracker.with(t,function(e){return p(e,t.sourceFile,r.prop)});return s.createCodeFixAction(c,e,[o.Diagnostics.Add_definite_assignment_assertion_to_property_0,r.prop.getText()],l,o.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),o.append(a,function(t,r){if(r.isJs)return;var n=m(t.program.getTypeChecker(),r.prop);if(!n)return;var e=o.textChanges.ChangeTracker.with(t,function(e){return g(e,t.sourceFile,r.prop,n)});return s.createCodeFixAction(c,e,[o.Diagnostics.Add_initializer_to_property_0,r.prop.name.getText()],_,o.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(e,t)),a}},fixIds:[l,u,_],getAllCodeActions:function(i){return s.codeFixAll(i,e,function(e,t){var r=d(t.file,t.start);if(r)switch(i.fixId){case l:p(e,t.file,r.prop);break;case u:f(e,t.file,r);break;case _:var n=m(i.program.getTypeChecker(),r.prop);if(!n)return;g(e,t.file,r.prop,n);break;default:o.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,!1,i,s.factory.createExternalModuleReference(r)):s.factory.createImportDeclaration(void 0,void 0,s.factory.createImportClause(!1,i,a),r,void 0))}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(!1,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(100===t.kind,"This token should be an ImportKeyword"),i.Debug.assert(200===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.sourceFile,r=e.span,n=s(t,r.start);if(n){e=i.textChanges.ChangeTracker.with(e,function(e){return c(e,t,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){e=o.getTokenAtPosition(e,t),t=o.tryCast(e.parent.parent,o.isIndexSignatureDeclaration);if(t){e=o.isInterfaceDeclaration(t.parent)?t.parent:o.tryCast(t.parent.parent,o.isTypeAliasDeclaration);if(e)return{indexSignature:t,container:e}}}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(void 0,o.cast(r.name,o.isIdentifier),r.type),n=o.factory.createMappedTypeNode(o.hasEffectiveReadonlyModifier(n)?o.factory.createModifier(145):void 0,r,void 0,n.questionToken,n.type,void 0),a=o.factory.createIntersectionTypeNode(__spreadArray(__spreadArray(__spreadArray([],o.getAllSuperTypeNodes(i),!0),[n],!1),a.length?[o.factory.createTypeLiteralNode(a)]:o.emptyArray,!0));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_literal_type_or_generic_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 132===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))&&103!==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,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,i.factory.createImportDeclaration(void 0,void 0,i.factory.updateImportClause(n,n.isTypeOnly,void 0,n.namedBindings),t.moduleSpecifier,t.assertClause)))}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 n=e.sourceFile,t=e.span,r=e.program,i=function(e,t,r){var t=r.getTypeChecker().getSymbolAtLocation(a.getTokenAtPosition(e,t)),t=a.tryCast(null===(t=null==t?void 0:t.valueDeclaration)||void 0===t?void 0:t.parent,a.isVariableDeclarationList);if(void 0===t)return;e=a.findChildOfKind(t,85,e);return void 0===e?void 0:a.createRange(e.pos,e.end)}(n,t.start,r);if(void 0!==i){e=a.textChanges.ChangeTracker.with(e,function(e){return t=n,r=i,void e.replaceRangeWithText(t,r,"let");var t,r});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(114)]).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_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,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(p){var r,n,i,s;function c(e,t){void 0===t&&(t=!0);var r=e.file,n=e.program,i=p.getRefactorContextSpan(e),e=p.getTokenAtPosition(r,i.start),a=e.parent&&1&p.getSyntacticModifierFlags(e.parent)&&t?e.parent:p.getParentNodeInSpan(e,r,i);if(!(a&&(p.isSourceFile(a.parent)||p.isModuleBlock(a.parent)&&p.isAmbientModule(a.parent.parent))))return{error:p.getLocaleSpecificMessage(p.Diagnostics.Could_not_find_export_statement)};var o=(p.isSourceFile(a.parent)?a:a.parent).parent.symbol,i=p.getSyntacticModifierFlags(a)||(p.isExportAssignment(a)&&!a.isExportEquals?513:0),s=!!(512&i);if(!(1&i)||!s&&o.exports.has("default"))return{error:p.getLocaleSpecificMessage(p.Diagnostics.This_file_already_has_a_default_export)};function c(e){return p.isIdentifier(e)&&u.getSymbolAtLocation(e)?void 0:{error:p.getLocaleSpecificMessage(p.Diagnostics.Can_only_convert_named_export)}}var l,u=n.getTypeChecker();switch(a.kind){case 256:case 257:case 258:case 260:case 259:case 261:return(l=a).name?c(l.name)||{exportNode:l,exportName:l.name,wasDefault:s,exportingModuleSymbol:o}:void 0;case 237:var _=a;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var d=p.first(_.declarationList.declarations);return d.initializer?(p.Debug.assert(!s,"Can't have a default flag here"),c(d.name)||{exportNode:_,exportName:d.name,wasDefault:s,exportingModuleSymbol:o}):void 0;case 271:return(l=a).isExportEquals?void 0:c(l.expression)||{exportNode:l,exportName:l.expression,wasDefault:s,exportingModuleSymbol:o};default:return}}function l(e,t){return p.factory.createImportSpecifier(!1,e===t?void 0:p.factory.createIdentifier(e),p.factory.createIdentifier(t))}function u(e,t){return p.factory.createExportSpecifier(!1,e===t?void 0:p.factory.createIdentifier(e),p.factory.createIdentifier(t))}r=p.refactor||(p.refactor={}),n="Convert export",i={name:"Convert default export to named export",description:p.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},s={name:"Convert named export to default export",description:p.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},r.registerRefactor(n,{kinds:[i.kind,s.kind],getAvailableActions:function(e){var t=c(e,"invoked"===e.triggerReason);if(!t)return p.emptyArray;if(r.isRefactorErrorInfo(t))return e.preferences.provideRefactorNotApplicableReason?[{name:n,description:p.Diagnostics.Convert_default_export_to_named_export.message,actions:[__assign(__assign({},i),{notApplicableReason:t.error}),__assign(__assign({},s),{notApplicableReason:t.error})]}]:p.emptyArray;t=t.wasDefault?i:s;return[{name:n,description:t.description,actions:[t]}]},getEditsForAction:function(a,e){p.Debug.assert(e===i.name||e===s.name,"Unexpected action name");var o=c(a);return p.Debug.assert(o&&!r.isRefactorErrorInfo(o),"Expected applicable refactor info"),{edits:p.textChanges.ChangeTracker.with(a,function(e){return t=a.file,r=a.program,n=o,i=e,e=a.cancellationToken,function(e,t,r,n){var i=t.wasDefault,a=t.exportNode,o=t.exportName;if(i)p.isExportAssignment(a)&&!a.isExportEquals?(i=u((i=a.expression).text,i.text),r.replaceNode(e,a,p.factory.createExportDeclaration(void 0,void 0,!1,p.factory.createNamedExports([i])))):r.delete(e,p.Debug.checkDefined(p.findModifier(a,88),"Should find a default keyword in modifier list"));else{var s=p.Debug.checkDefined(p.findModifier(a,93),"Should find an export keyword in modifier list");switch(a.kind){case 256:case 257:case 258:r.insertNodeAfter(e,s,p.factory.createToken(88));break;case 237:var c=p.first(a.declarationList.declarations);if(!p.FindAllReferences.Core.isSymbolReferencedInFile(o,n,e)&&!c.type){r.replaceNode(e,a,p.factory.createExportDefault(p.Debug.checkDefined(c.initializer,"Initializer was previously known to be present")));break}case 260:case 259:case 261:r.deleteModifier(e,s),r.insertNodeAfter(e,a,p.factory.createExportDefault(p.factory.createIdentifier(o.text)));break;default:p.Debug.fail("Unexpected exportNode kind ".concat(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=p.Debug.checkDefined(s.getSymbolAtLocation(a),"Export name should resolve to a symbol");p.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 206:r.replaceNode(e,t,p.factory.createIdentifier(n));break;case 270:case 275:var a=i;r.replaceNode(e,a,l(n,a.name.text));break;case 267:var o=i;p.Debug.assert(o.name===t,"Import clause name should match provided ref");var s,a=l(n,t.text),c=o.namedBindings;c?268===c.kind?(r.deleteRange(e,{pos:t.getStart(e),end:c.getStart(e)}),s=p.isStringLiteral(o.parent.moduleSpecifier)?p.quotePreferenceFromString(o.parent.moduleSpecifier,e):1,s=p.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,p.factory.createNamedImports([a]));break;case 200:a=i;r.replaceNode(e,i,p.factory.createImportTypeNode(a.argument,p.factory.createIdentifier(n),a.typeArguments,a.isTypeOf));break;default:p.Debug.failBadSyntaxKind(i)}}(t,e,r,a.text):function(e,t,r){var n=t.parent;switch(n.kind){case 206:r.replaceNode(e,t,p.factory.createIdentifier("default"));break;case 270:var i=p.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 275:r.replaceNode(e,n,u("default",n.name.text));break;default:p.Debug.assertNever(n,"Unexpected parent kind ".concat(n.kind))}}(t,e,r)})}(r,n,i,e);var t,r,n,i}),renameFilename:void 0,renameLocation:void 0}}})}(ts=ts||{}),function(m){var r,e,n,i;function s(e,t){void 0===t&&(t=!0);var r=e.file,n=m.getRefactorContextSpan(e),i=m.getTokenAtPosition(r,n.start),i=t?m.findAncestor(i,m.isImportDeclaration):m.getParentNodeInSpan(i,r,n);if(!i||!m.isImportDeclaration(i))return{error:"Selection is not an import declaration."};n=n.start+n.length,r=m.findNextToken(i,i.parent,r);if(!(r&&n>r.getStart())){i=i.importClause;return i?i.namedBindings?268===i.namedBindings.kind?{convertTo:0,import:i.namedBindings}:p(e.program,i)?{convertTo:1,import:i.namedBindings}:{convertTo:2,import:i.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 p(e,t){return m.getAllowSyntheticDefaultImports(e.getCompilerOptions())&&function(e,t){e=t.resolveExternalModuleName(e);if(!e)return!1;t=t.resolveExternalModuleSymbol(e);return e!==t}(t.parent.moduleSpecifier,e.getTypeChecker())}function y(e){return m.isPropertyAccessExpression(e)?e.name:e.right}function c(i,e,a,t,r){void 0===r&&(r=p(e,t.parent));var o=e.getTypeChecker(),n=t.parent.parent,e=n.moduleSpecifier,s=new m.Set;t.elements.forEach(function(e){e=o.getSymbolAtLocation(e.name);e&&s.add(e)});var c=e&&m.isStringLiteral(e)?m.codefix.moduleSpecifierToValidIdentifier(e.text,99):"module";for(var l=t.elements.some(function(e){return!!m.FindAllReferences.Core.eachSymbolReferenceInFile(e.name,o,i,function(e){var t=o.resolveName(c,e,67108863,!0);return!!t&&(!s.has(t)||m.isExportSpecifier(e.parent))})})?m.getUniqueName(c,i):c,u=new m.Set,_=0,d=t.elements;_<d.length;_++)!function(r){var n=(r.propertyName||r.name).text;m.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,i,function(e){var t=m.factory.createPropertyAccessExpression(m.factory.createIdentifier(l),n);m.isShorthandPropertyAssignment(e.parent)?a.replaceNode(i,e.parent,m.factory.createPropertyAssignment(e.text,t)):m.isExportSpecifier(e.parent)?u.add(r):a.replaceNode(i,e,t)})}(d[_]);a.replaceNode(i,t,r?m.factory.createIdentifier(l):m.factory.createNamespaceImport(m.factory.createIdentifier(l))),u.size&&(r=m.arrayFrom(u.values()).map(function(e){return m.factory.createImportSpecifier(e.isTypeOnly,e.propertyName&&m.factory.createIdentifier(e.propertyName.text),m.factory.createIdentifier(e.name.text))}),a.insertNodeAfter(i,t.parent.parent,h(n,void 0,r)))}function h(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,void 0)}r=m.refactor||(m.refactor={}),n="Convert import",(e={})[0]={name:"Convert namespace import to named imports",description:m.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},e[2]={name:"Convert named imports to namespace import",description:m.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},e[1]={name:"Convert named imports to default import",description:m.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},i=e,r.registerRefactor(n,{kinds:m.getOwnValues(i).map(function(e){return e.kind}),getAvailableActions:function(e){var t=s(e,"invoked"===e.triggerReason);if(!t)return m.emptyArray;if(r.isRefactorErrorInfo(t))return e.preferences.provideRefactorNotApplicableReason?m.getOwnValues(i).map(function(e){return{name:n,description:e.description,actions:[__assign(__assign({},e),{notApplicableReason:t.error})]}}):m.emptyArray;e=i[t.convertTo];return[{name:n,description:e.description,actions:[e]}]},getEditsForAction:function(a,t){m.Debug.assert(m.some(m.getOwnValues(i),function(e){return e.name===t}),"Unexpected action name");var o=s(a);return m.Debug.assert(o&&!r.isRefactorErrorInfo(o),"Expected applicable refactor info"),{edits:m.textChanges.ChangeTracker.with(a,function(e){return t=a.file,r=a.program,n=e,i=o,e=r.getTypeChecker(),void(0===i.convertTo?function(e,r,t,n,i){var a=!1,o=[],s=new m.Map;m.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,e,function(e){var t;m.isPropertyAccessOrQualifiedName(e.parent)?(t=y(e.parent).text,r.resolveName(t,e,67108863,!0)&&s.set(t,!0),m.Debug.assert((t=e.parent,(m.isPropertyAccessExpression(t)?t.expression:t.left)===e),"Parent expression should match id"),o.push(e.parent)):a=!0});for(var c=new m.Map,l=0,u=o;l<u.length;l++){var _=u[l],d=y(_).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(!1,e===t?void 0:m.factory.createIdentifier(t),m.factory.createIdentifier(e)))});var g=n.parent.parent;a&&!i?t.insertNodeAfter(e,g,h(g,void 0,f)):t.replaceNode(e,g,h(g,a?m.factory.createIdentifier(n.name.text):void 0,f))}(t,e,n,i.import,m.getAllowSyntheticDefaultImports(r.getCompilerOptions())):c(t,r,n,i.import,1===i.convertTo));var t,r,n,i}),renameFilename:void 0,renameLocation:void 0}}}),r.doChangeNamedToNamespaceOrDefault=c}(ts=ts||{}),function(l){var r,n,i,a;function o(e){return l.isBinaryExpression(e)||l.isConditionalExpression(e)}function s(e){return o(e)||(e=e,l.isExpressionStatement(e)||l.isReturnStatement(e)||l.isVariableStatement(e))}function u(e,t){void 0===t&&(t=!0);var r=e.file,n=e.program,i=l.getRefactorContextSpan(e),e=0===i.length;if(!e||t){t=l.getTokenAtPosition(r,i.start),i=l.findTokenOnLeftOfPosition(r,i.start+i.length),i=l.createTextSpanFromBounds(t.pos,(i&&i.end>=t.pos?i:t).getEnd()),i=e?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}return}(t):function(e,t){for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(t,i),i=i&&s(i)?function(e){if(o(e))return e;if(l.isVariableStatement(e)){var t=l.getSingleVariableOfVariableStatement(e),t=null==t?void 0:t.initializer;return t&&o(t)?t:void 0}return e.expression&&o(e.expression)?e.expression:void 0}(i):void 0;if(!i)return{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression)};n=n.getTypeChecker();return l.isConditionalExpression(i)?function(e,t){var r=e.condition,n=p(e.whenTrue);if(!n||t.isNullableType(t.getTypeAtLocation(n)))return{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression)};{if((l.isPropertyAccessExpression(r)||l.isIdentifier(r))&&_(r,n.expression))return{finalExpression:n,occurrences:[r],expression:e};if(l.isBinaryExpression(r)){r=c(n.expression,r);return r?{finalExpression:n,occurrences:r,expression:e}:{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_matching_access_expressions)}}}}(i,n):function(e){if(55!==e.operatorToken.kind)return{error:l.getLocaleSpecificMessage(l.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=p(e.right);if(!t)return{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression)};var r=c(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_matching_access_expressions)}}(i)}}function c(e,t){for(var r=[];l.isBinaryExpression(t)&&55===t.operatorToken.kind;){var n=_(l.skipParentheses(e),l.skipParentheses(t.right));if(!n)break;r.push(n),e=n,t=t.left}var i=_(e,t);return i&&r.push(i),0<r.length?r:void 0}function _(e,t){if(l.isIdentifier(t)||l.isPropertyAccessExpression(t)||l.isElementAccessExpression(t))return function(e,t){for(;(l.isCallExpression(e)||l.isPropertyAccessExpression(e)||l.isElementAccessExpression(e))&&d(e)!==d(t);)e=e.expression;for(;l.isPropertyAccessExpression(e)&&l.isPropertyAccessExpression(t)||l.isElementAccessExpression(e)&&l.isElementAccessExpression(t);){if(d(e)!==d(t))return!1;e=e.expression,t=t.expression}return l.isIdentifier(e)&&l.isIdentifier(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function d(e){return l.isIdentifier(e)||l.isStringOrNumericLiteralLike(e)?e.getText():l.isPropertyAccessExpression(e)?d(e.name):l.isElementAccessExpression(e)?d(e.argumentExpression):void 0}function p(e){return e=l.skipParentheses(e),l.isBinaryExpression(e)?p(e.left):(l.isPropertyAccessExpression(e)||l.isElementAccessExpression(e)||l.isCallExpression(e))&&!l.isOptionalChain(e)?e:void 0}(r=l.refactor||(l.refactor={})).convertToOptionalChainExpression||(r.convertToOptionalChainExpression={}),n="Convert to optional chain expression",i=l.getLocaleSpecificMessage(l.Diagnostics.Convert_to_optional_chain_expression),a={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"},r.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(s,e){var c=u(s);return l.Debug.assert(c&&!r.isRefactorErrorInfo(c),"Expected applicable refactor info"),{edits:l.textChanges.ChangeTracker.with(s,function(e){return t=s.file,r=s.program.getTypeChecker(),n=e,a=(i=c).finalExpression,o=i.occurrences,e=i.expression,i=o[o.length-1],void((o=function e(t,r,n){if(l.isPropertyAccessExpression(r)||l.isElementAccessExpression(r)||l.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(),l.isCallExpression(r))return t?l.factory.createCallChain(i,l.factory.createToken(28),r.typeArguments,r.arguments):l.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(l.isPropertyAccessExpression(r))return t?l.factory.createPropertyAccessChain(i,l.factory.createToken(28),r.name):l.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(l.isElementAccessExpression(r))return t?l.factory.createElementAccessChain(i,l.factory.createToken(28),r.argumentExpression):l.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}(r,a,o))&&(l.isPropertyAccessExpression(o)||l.isElementAccessExpression(o)||l.isCallExpression(o))&&(l.isBinaryExpression(e)?n.replaceNodeRange(t,i,a,o):l.isConditionalExpression(e)&&n.replaceNode(t,e,l.factory.createBinaryExpression(o,l.factory.createToken(60),e.whenFalse))));var t,r,n,i,a,o}),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){var t=u(e,"invoked"===e.triggerReason);if(!t)return l.emptyArray;if(!r.isRefactorErrorInfo(t))return[{name:n,description:i,actions:[a]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:n,description:i,actions:[__assign(__assign({},a),{notApplicableReason:t.error})]}];return l.emptyArray}})}(ts=ts||{}),function(_){var e,n,i,a;function s(e){switch(e.kind){case 168:case 169:case 174:case 171:case 175:case 256: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,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"},e.registerRefactor(n,{kinds:[a.kind],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 168:s=_.factory.updateMethodSignature(o,o.modifiers,o.name,o.questionToken,o.typeParameters,c(i),o.type);break;case 169:s=_.factory.updateMethodDeclaration(o,o.decorators,o.modifiers,o.asteriskToken,o.name,o.questionToken,o.typeParameters,c(i),o.type,o.body);break;case 174:s=_.factory.updateCallSignature(o,o.typeParameters,c(i),o.type);break;case 171:s=_.factory.updateConstructorDeclaration(o,o.decorators,o.modifiers,c(i),o.body);break;case 175:s=_.factory.updateConstructSignature(o,o.typeParameters,c(i),o.type);break;case 256: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,l)))])}function l(e){e=_.map(e.parameters,u);return _.setEmitFlags(_.factory.createTupleTypeNode(e),_.some(e,function(e){return!!_.length(_.getSyntheticLeadingComments(e))})?0:1)}function u(e){_.Debug.assert(_.isIdentifier(e.name));var t=_.setTextRange(_.factory.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||_.factory.createKeywordTypeNode(130)),e),e=e.symbol&&e.symbol.getDocumentationComment(a);return!e||(e=_.displayPartsToString(e)).length&&_.setSyntheticLeadingComments(t,[{text:"*\n".concat(e.split("\n").map(function(e){return" * ".concat(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:[a]}]:_.emptyArray}})}(ts=ts||{}),function(M){var b,e,L,R,t,x,D,S;function r(e){var t=e.kind,r=T(e.file,M.getRefactorContextSpan(e),"invoked"===e.triggerReason),n=r.targetRange;if(void 0===n){if(!r.errors||0===r.errors.length||!e.preferences.provideRefactorNotApplicableReason)return M.emptyArray;var i=[];return b.refactorKindBeginsWith(S.kind,t)&&i.push({name:x,description:S.description,actions:[__assign(__assign({},S),{notApplicableReason:v(r.errors)})]}),b.refactorKindBeginsWith(D.kind,t)&&i.push({name:x,description:D.description,actions:[__assign(__assign({},D),{notApplicableReason:v(r.errors)})]}),i}var s,c,n=(n=(i=C(i=n,n=e)).scopes,i=i.readsAndWrites,s=i.functionErrorsPerScope,c=i.constantErrorsPerScope,n.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 171:return"constructor";case 213:case 256:return e.name?"function '".concat(e.name.text,"'"):M.ANONYMOUS;case 214:return"arrow function";case 169:return"method '".concat(e.name.getText(),"'");case 172:return"'get ".concat(e.name.getText(),"'");case 173:return"'set ".concat(e.name.getText(),"'");default:throw M.Debug.assertNever(e,"Unexpected scope kind ".concat(e.kind))}}(e):M.isClassLike(e)?257===(r=e).kind?r.name?"class '".concat(r.name.text,"'"):"anonymous class declaration":r.name?"class expression '".concat(r.name.text,"'"):"anonymous class expression":262===(o=e).kind?"namespace '".concat(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===n)return M.emptyArray;for(var a,o,l=[],u=new M.Map,_=[],d=new M.Map,p=0,f=0,g=n;f<g.length;f++){var m=g[f],y=m.functionExtraction,h=m.constantExtraction,m=y.description;b.refactorKindBeginsWith(S.kind,t)&&(0===y.errors.length?u.has(m)||(u.set(m,!0),l.push({description:m,name:"function_scope_".concat(p),kind:S.kind})):a=a||{description:m,name:"function_scope_".concat(p),notApplicableReason:v(y.errors),kind:S.kind}),b.refactorKindBeginsWith(D.kind,t)&&(0===h.errors.length?(y=h.description,d.has(y)||(d.set(y,!0),_.push({description:y,name:"constant_scope_".concat(p),kind:D.kind}))):o=o||{description:m,name:"constant_scope_".concat(p),notApplicableReason:v(h.errors),kind:D.kind}),p++}n=[];return l.length?n.push({name:x,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),actions:l}):e.preferences.provideRefactorNotApplicableReason&&a&&n.push({name:x,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),actions:[a]}),_.length?n.push({name:x,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&o&&n.push({name:x,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),actions:[o]}),n.length?n:M.emptyArray;function v(e){e=e[0].messageText;return"string"!=typeof e&&(e=e.messageText),e}}function n(e,t){var r,n,i,a=T(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=C(c=a,l=e),n=r.scopes,u=r.readsAndWrites,i=u.target,o=u.usagesPerScope,r=u.functionErrorsPerScope,u=u.exposedVariableDeclarations,M.Debug.assert(!r[_].length,"The extraction went missing? How?"),l.cancellationToken.throwIfCancellationRequested(),function(e,n,t,r,i,a){var o,s,c=t.usages,l=t.typeParameterUsages,u=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),y=M.factory.createIdentifier(g),h=[],v=[];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);h.push(r),2===e.usage&&(s=s||[]).push(e),v.push(M.factory.createIdentifier(t))});t=M.arrayFrom(l.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(O),f=0===t.length?void 0:t.map(function(e){return e.declaration}),c=void 0!==f?f.map(function(e){return M.factory.createTypeReferenceNode(e.name,void 0)}):void 0;M.isExpression(e)&&!m&&(b=_.getContextualType(e),o=_.typeToTypeNode(b,n,1));var l=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 l=!1,r=M.factory.createNodeArray(M.isBlock(e)?e.statements.slice(0):[M.isStatement(e)?e:M.factory.createReturnStatement(M.skipParentheses(e))]);{if(c||o.size){var n=M.visitNodes(r,function e(t){{if(!l&&M.isReturnStatement(t)&&c){var r=B(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=l;l=l||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 l=n,t}}).slice();return c&&!t&&M.isStatement(e)&&(1===(e=B(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,u,!!(i.facts&R.HasReturn)),t=l.body,b=l.returnValueProperty;M.suppressLeadingAndTrailingTrivia(t);u=!!(i.facts&R.UsesThisInFunction);y=M.isClassLike(n)?(l=m?[]:[M.factory.createModifier(121)],i.facts&R.InStaticRegion&&l.push(M.factory.createModifier(124)),i.facts&R.IsAsyncFunction&&l.push(M.factory.createModifier(131)),M.factory.createMethodDeclaration(void 0,l.length?l:void 0,i.facts&R.IsGenerator?M.factory.createToken(41):void 0,y,void 0,f,h,o,t)):(u&&h.unshift(M.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(i.thisNode),n,1),void 0)),M.factory.createFunctionDeclaration(void 0,i.facts&R.IsAsyncFunction?[M.factory.createToken(131)]:void 0,i.facts&R.IsGenerator?M.factory.createToken(41):void 0,y,f,h,o,t));f=M.textChanges.ChangeTracker.fromContext(a),t=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)})}((j(i.range)?M.last(i.range):i.range).end,n);t?f.insertNodeBefore(a.file,t,y,!0):f.insertNodeAtEndOfScope(a.file,n,y);p.writeFixes(f);var x=[],y=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&&v.unshift(M.factory.createIdentifier("this"));c=M.factory.createCallExpression(u?M.factory.createPropertyAccessExpression(y,"call"):y,c,v);i.facts&R.IsGenerator&&(c=M.factory.createYieldExpression(M.factory.createToken(41),c));i.facts&R.IsAsyncFunction&&(c=M.factory.createAwaitExpression(c));J(e)&&(c=M.factory.createJsxExpression(void 0,c));if(r.length&&!s)if(M.Debug.assert(!b,"Expected no returnValueProperty"),M.Debug.assert(!(i.facts&R.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===r.length){var D=r[0];x.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(M.getSynthesizedDeepClone(D.name),void 0,M.getSynthesizedDeepClone(D.type),c)],D.parent.flags)))}else{for(var S=[],T=[],C=r[0].parent.flags,k=!1,E=0,N=r;E<N.length;E++){D=N[E];S.push(M.factory.createBindingElement(void 0,void 0,M.getSynthesizedDeepClone(D.name)));var A=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(D)),n,1);T.push(M.factory.createPropertySignature(void 0,D.symbol.name,void 0,A)),k=k||void 0!==D.type,C&=D.parent.flags}e=k?M.factory.createTypeLiteralNode(T):void 0;e&&M.setEmitFlags(e,1),x.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(M.factory.createObjectBindingPattern(S),void 0,e,c)],C)))}else if(r.length||s){if(r.length)for(var F=0,P=r;F<P.length;F++){var w=(D=P[F]).parent.flags;2&w&&(w=-3&w|1),x.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(D.symbol.name,void 0,I(D.type))],w)))}b&&x.push(M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(b,void 0,I(o))],1)));r=B(r,s);b&&r.unshift(M.factory.createShorthandPropertyAssignment(b)),1===r.length?(M.Debug.assert(!b,"Shouldn't have returnValueProperty here"),x.push(M.factory.createExpressionStatement(M.factory.createAssignment(r[0].name,c))),i.facts&R.HasReturn&&x.push(M.factory.createReturnStatement())):(x.push(M.factory.createExpressionStatement(M.factory.createAssignment(M.factory.createObjectLiteralExpression(r),c))),b&&x.push(M.factory.createReturnStatement(M.factory.createIdentifier(b))))}else i.facts&R.HasReturn?x.push(M.factory.createReturnStatement(c)):j(i.range)?x.push(M.factory.createExpressionStatement(c)):x.push(c);j(i.range)?f.replaceNodeRangeWithNodes(a.file,M.first(i.range),M.last(i.range),x):f.replaceNodeWithNodes(a.file,i.range,x);f=f.getChanges(),i=(j(i.range)?M.first(i.range):i.range).getSourceFile().fileName,g=M.getRenameLocation(f,i,g,!1);return{renameFilename:i,renameLocation:g,edits:f};function I(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 153===e.kind})?e:M.factory.createUnionTypeNode([e,M.factory.createKeywordTypeNode(153)])}}}(i,n[_],o[_],u,c,l)}var c,l,u,_=/^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"),u=s,t=C(c=a,l=e),_=t.scopes,s=t.readsAndWrites,a=s.target,e=s.usagesPerScope,t=s.constantErrorsPerScope,s=s.exposedVariableDeclarations,M.Debug.assert(!t[u].length,"The extraction went missing? How?"),M.Debug.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),l.cancellationToken.throwIfCancellationRequested(),function(u,_,e,t,r){var n=e.substitutions,d=r.program.getTypeChecker(),i=_.getSourceFile(),a=!M.isPropertyAccessExpression(u)||M.isClassLike(_)||d.resolveName(u.name.text,u,111551,!1)||M.isPrivateIdentifier(u.name)||M.isKeyword(u.name.originalKeywordKind)?M.getUniqueName(M.isClassLike(_)?"newProperty":"newLocal",i):u.name.text,o=M.isInJSFile(_),e=o||!d.isContextSensitive(u)?void 0:d.typeToTypeNode(d.getContextualType(u),_,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}(M.skipParentheses(u),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(u),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,l=s[o];l.type?i.push(l):((c=d.getTypeAtLocation(l))===d.getAnyType()&&(a=!0),i.push(M.factory.updateParameterDeclaration(l,l.decorators,l.modifiers,l.dotDotDotToken,l.name,l.questionToken,l.type||d.typeToTypeNode(c,_,1),l.initializer)))}if(a)return{variableType:e,initializer:t};e=void 0,t=M.isArrowFunction(t)?M.factory.updateArrowFunction(t,u.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,u),i.splice(0,0,M.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,d.typeToTypeNode(r,_,1))))),M.factory.updateFunctionExpression(t,u.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(121)),t&R.InStaticRegion&&c.push(M.factory.createModifier(124)),c.push(M.factory.createModifier(145)),o=M.factory.createPropertyDeclaration(void 0,c,a,void 0,e,i),l=M.factory.createPropertyAccessExpression(t&R.InStaticRegion?M.factory.createIdentifier(_.name.getText()):M.factory.createThis(),M.factory.createIdentifier(a)),J(u)&&(l=M.factory.createJsxExpression(void 0,l)),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}(u.pos,_),n.insertNodeBefore(r.file,c,o,!0),n.replaceNode(r.file,u,l)):(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}}(u,_))?(n.insertNodeBefore(r.file,i,e),l=M.factory.createIdentifier(a),n.replaceNode(r.file,u,l)):238===u.parent.kind&&_===M.findAncestor(u,p)?(s=M.factory.createVariableStatement(void 0,M.factory.createVariableDeclarationList([e],2)),n.replaceNode(r.file,u.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(k(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")}}(u,_)).pos?n.insertNodeAtTopOfFile(r.file,s,!1):n.insertNodeBefore(r.file,c,s,!1),238===u.parent.kind?n.delete(r.file,u.parent):(l=M.factory.createIdentifier(a),J(u)&&(l=M.factory.createJsxExpression(void 0,l)),n.replaceNode(r.file,u,l))))}var l=n.getChanges(),n=u.getSourceFile().fileName,a=M.getRenameLocation(l,n,a,!0);return{renameFilename:n,renameLocation:a,edits:l}}(M.isExpression(a)?a:a.statements[0].expression,_[u],e[u],c.facts,l)}M.Debug.fail("Unrecognized action name")}function i(e){return{message:e,code:0,category:M.DiagnosticCategory.Message,key:e}}function T(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 l,n=0===r&&t,i=M.findFirstNonJsxWhitespaceToken(e,c.start),a=M.findTokenOnLeftOfPosition(e,M.textSpanEnd(c)),o=i&&a&&t?function(e,t,r){e=e.getStart(r),t=t.getEnd();59===r.text.charCodeAt(t)&&t++;return{start:e,length:t-e}}(i,a,e):c,s=n?(t=i,M.findAncestor(t,function(e){return e.parent&&v(e)&&!M.isBinaryExpression(e.parent)})):M.getParentNodeInSpan(i,e,o),u=n?s:M.getParentNodeInSpan(a,e,o),_=[],d=R.None;if(!s||!u)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};if(8388608&s.flags)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractJSDoc)]};if(s.parent!==u.parent)return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};if(s!==u){if(!k(s.parent))return{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]};for(var p=[],f=0,g=s.parent.statements;f<g.length;f++){var m=g[f];if(m===s||p.length){var y=h(m);if(y)return{errors:y};p.push(m)}if(m===u)break}return p.length?{targetRange:{range:p,facts:d,declarations:_,thisNode:l}}:{errors:[M.createFileDiagnostic(e,c.start,r,L.cannotExtractRange)]}}if(M.isReturnStatement(s)&&!s.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)||M.isVariableDeclarationList(e)){for(var t=(M.isVariableStatement(e)?e.declarationList:e).declarations,r=0,n=void 0,i=0,a=t;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(M.isVariableDeclaration(e)&&e.initializer)return e.initializer;return e}(s),r=function(e){if(M.isIdentifier(M.isExpressionStatement(e)?e.expression:e))return[M.createDiagnosticForNode(e,L.cannotExtractIdentifier)];return}(e)||h(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;if(E(e))return e;return}(e),facts:d,declarations:_,thisNode:l}};function h(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)&&v(r)||E(r)))return[M.createDiagnosticForNode(r,L.statementOrExpressionExpected)];if(16777216&r.flags)return[M.createDiagnosticForNode(r,L.cannotExtractAmbientBlock)];var a,e=M.getContainingClass(r);e&&function(e){for(var t=r;t!==e;){if(167===t.kind){M.isStatic(t)&&(d|=R.InStaticRegion);break}if(164===t.kind){171===M.getContainingFunction(t).kind&&(d|=R.InStaticRegion);break}169===t.kind&&M.isStatic(t)&&(d|=R.InStaticRegion),t=t.parent}}(e);var o,s=4;return function e(r){if(a)return!0;if(M.isDeclaration(r)){var t=254===r.kind?r.parent.parent:r;if(M.hasSyntacticModifier(t,1))return(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractExportedEntity)),!0;_.push(r.symbol)}switch(r.kind){case 266:return(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractImport)),!0;case 271:return(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractExportedEntity)),!0;case 106:if(208===r.parent.kind){var n=M.getContainingClass(r);if(void 0===n||n.pos<c.start||n.end>=c.start+c.length)return(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractSuper)),!0}else d|=R.UsesThis,l=r;break;case 214:M.forEachChild(r,function e(t){if(M.isThis(t))d|=R.UsesThis,l=r;else{if(M.isClassLike(t)||M.isFunctionLike(t)&&!M.isArrowFunction(t))return!1;M.forEachChild(t,e)}});case 257:case 256:M.isSourceFile(r.parent)&&void 0===r.parent.externalModuleIndicator&&(a=a||[]).push(M.createDiagnosticForNode(r,L.functionWillNotBeVisibleInTheNewScope));case 226:case 213:case 169:case 171:case 172:case 173:return!1}var t=s;switch(r.kind){case 239:case 252:s=0;break;case 235:r.parent&&252===r.parent.kind&&r.parent.finallyBlock===r&&(s=4);break;case 290:case 289:s|=1;break;default:M.isIterationStatement(r,!1)&&(s|=3)}switch(r.kind){case 192:case 108:d|=R.UsesThis,l=r;break;case 250:var i=r.label;(o=o||[]).push(i.escapedText),M.forEachChild(r,e),o.pop();break;case 246:case 245:var i=r.label;i?M.contains(o,i.escapedText)||(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(246===r.kind?1:2)||(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 218:d|=R.IsAsyncFunction;break;case 224:d|=R.IsGenerator;break;case 247:4&s?d|=R.HasReturn:(a=a||[]).push(M.createDiagnosticForNode(r,L.cannotExtractRangeContainingConditionalReturnStatement));break;default:M.forEachChild(r,e)}s=t}(r),d&R.UsesThis&&((256===(e=M.getThisContainer(r,!1)).kind||169===e.kind&&205===e.parent.kind||213===e.kind)&&(d|=R.UsesThisInFunction)),a}}function p(e){return M.isArrowFunction(e)?M.isFunctionBody(e.body):M.isFunctionLikeDeclaration(e)||M.isSourceFile(e)||M.isModuleBlock(e)||M.isClassLike(e)}function C(e,t){var r=t.file,n=function(e){var t=j(e.range)?M.first(e.range):e.range;if(e.facts&R.UsesThis&&!(e.facts&R.UsesThisInFunction)){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,164===t.kind&&(t=M.findAncestor(t,function(e){return M.isFunctionLikeDeclaration(e)}).parent),p(t)&&(n.push(t),305===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,l=[],t=j(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,u=y;n<u.length;n++){var _=u[n];x.push({usages:new M.Map,typeParameterUsages:new M.Map,substitutions:new M.Map}),D.push(new M.Map),S.push([]);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=j(m.range)?M.factory.createBlock(m.range):m.range,t=j(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||j(m.range)||M.isJsxAttribute(m.range)||w(b.getContextualType(m.range));if(0<o.size){for(var g=new M.Map,k=0,E=t;void 0!==E&&k<y.length;E=E.parent)if(E===y[k]&&(g.forEach(function(e,t){x[k].typeParameterUsages.set(t,e)}),k++),M.isDeclarationWithTypeParameters(E))for(var N=0,A=M.getEffectiveTypeParameterDeclarations(E);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(k===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||j(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)||(l.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=j(m.range)?m.range[0]:m.range,T[e].push(M.createDiagnosticForNode(t,L.cannotAccessVariablesFromNestedScopes))),m.facts&R.UsesThisInFunction&&M.isClassLike(y[e])&&S[e].push(M.createDiagnosticForNode(m.thisNode,L.cannotExtractFunctionsContainingThisToMethod));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(j(m.range)||0===l.length,"No variable declarations expected if something was extracted"),i&&!j(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:l};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 l=M.createDiagnosticForNode(e,L.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),u=0,_=S;u<_.length;u++)_[u].push(l);for(var d=0,p=T;d<p.length;d++)p[d].push(l)}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||(l=M.createDiagnosticForNode(e,L.typeWillNotBeVisibleInTheNewScope),S[f].push(l),T[f].push(l)):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,j((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 O(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 B(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 j(e){return M.isArray(e)}function v(e){var t=e.parent;if(299===t.kind)return!1;switch(e.kind){case 10:return 266!==t.kind&&270!==t.kind;case 225:case 201:case 203:return!1;case 79:return 203!==t.kind&&270!==t.kind&&275!==t.kind}return!0}function k(e){switch(e.kind){case 235:case 305:case 262:case 289:return 1;default:return}}function J(e){return E(e)||(M.isJsxElement(e)||M.isJsxSelfClosingElement(e)||M.isJsxFragment(e))&&(M.isJsxElement(e.parent)||M.isJsxFragment(e.parent))}function E(e){return M.isStringLiteral(e)&&e.parent&&M.isJsxAttribute(e.parent)}b=M.refactor||(M.refactor={}),e=b.extractSymbol||(b.extractSymbol={}),x="Extract Symbol",D={name:"Extract Constant",description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},S={name:"Extract Function",description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),kind:"refactor.extract.function"},b.registerRefactor(x,{kinds:[D.kind,S.kind],getEditsForAction:n,getAvailableActions:r}),e.getRefactorActionsToExtractSymbol=r,e.getRefactorEditsToExtractSymbol=n,(t=L=e.Messages||(e.Messages={})).cannotExtractRange=i("Cannot extract range."),t.cannotExtractImport=i("Cannot extract import statement."),t.cannotExtractSuper=i("Cannot extract super call."),t.cannotExtractJSDoc=i("Cannot extract JSDoc."),t.cannotExtractEmpty=i("Cannot extract empty range."),t.expressionExpected=i("expression expected."),t.uselessConstantType=i("No reason to extract constant of type."),t.statementOrExpressionExpected=i("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=i("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=i("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=i("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=i("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=i("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=i("Function will not visible in the new scope."),t.cannotExtractIdentifier=i("Select more than a single identifier."),t.cannotExtractExportedEntity=i("Cannot extract exported declaration"),t.cannotWriteInExpression=i("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=i("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=i("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=i("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=i("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=i("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=i("Cannot extract functions containing this to method"),(t=R=R||{})[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",e.getRangeToExtract=T,(e={})[e.Module=0]="Module",e[e.Global=1]="Global",(e={})[e.Read=1]="Read",e[e.Write=2]="Write"}(ts=ts||{}),function(f){var r,n,p,g,m;function i(e,t){void 0===t&&(t=!0);var r=e.file,n=e.startPosition,i=f.isSourceFileJS(r),a=f.getTokenAtPosition(r,n),o=f.createTextRangeFromSpan(f.getRefactorContextSpan(e)),s=o.pos===o.end&&t,c=f.findAncestor(a,function(e){return e.parent&&f.isTypeNode(e)&&!y(o,e.parent,r)&&(s||f.nodeOverlapsWithStartEnd(a,r,o.pos,o.end))});if(!c||!f.isTypeNode(c))return{error:f.getLocaleSpecificMessage(f.Diagnostics.Selection_is_not_a_valid_type_node)};var l,u,_,d,p,n=e.program.getTypeChecker(),t=f.Debug.checkDefined(f.findAncestor(c,f.isStatement),"Should find a statement"),e=(l=n,_=t,d=r,p=[],function e(t){if(f.isTypeReferenceNode(t)){if(f.isIdentifier(t.typeName))for(var r=t.typeName,n=l.resolveName(r.text,r,262144,!0),i=0,a=(null==n?void 0:n.declarations)||f.emptyArray;i<a.length;i++){var o=a[i];if(f.isTypeParameterDeclaration(o)&&o.getSourceFile()===d){if(o.name.escapedText===r.escapedText&&y(o,u,d))return!0;if(y(_,o,d)&&!y(u,o,d)){f.pushIfUnique(p,o);break}}}}else if(f.isInferTypeNode(t)){var s=f.findAncestor(t,function(e){return f.isConditionalTypeNode(e)&&y(e.extendsType,t,d)});if(!s||!y(u,s,d))return!0}else if(f.isTypePredicateNode(t)||f.isThisTypeNode(t)){var s=f.findAncestor(t.parent,f.isFunctionLike);if(s&&s.type&&y(s.type,t,d)&&!y(u,s,d))return!0}else if(f.isTypeQueryNode(t))if(f.isIdentifier(t.exprName)){var n=l.resolveName(t.exprName.text,t.exprName,111551,!1);if(null!=n&&n.valueDeclaration&&y(_,n.valueDeclaration,d)&&!y(u,n.valueDeclaration,d))return!0}else if(f.isThisIdentifier(t.exprName.left)&&!y(u,t.parent,d))return!0;d&&f.isTupleTypeNode(t)&&f.getLineAndCharacterOfPosition(d,t.pos).line===f.getLineAndCharacterOfPosition(d,t.end).line&&f.setEmitFlags(t,1);return f.forEachChild(t,e)}(u=c)?void 0:p);return e?{isJS:i,selection:c,firstStatement:t,typeParameters:e,typeElements:function e(t,r){if(!r)return;{if(f.isIntersectionTypeNode(r)){for(var n=[],i=new f.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&&f.addToSeen(i,f.getNameFromPropertyName(e.name))}))return;f.addRange(n,s)}return n}if(f.isParenthesizedTypeNode(r))return e(t,r.type);if(f.isTypeLiteralNode(r))return r.members}return}(n,c)}:{error:f.getLocaleSpecificMessage(f.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function y(e,t,r){return f.rangeContainsStartEnd(e,f.skipTrivia(r.text,t.pos),t.end)}r=f.refactor||(f.refactor={}),n="Extract type",p={name:"Extract to type alias",description:f.getLocaleSpecificMessage(f.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},g={name:"Extract to interface",description:f.getLocaleSpecificMessage(f.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},m={name:"Extract to typedef",description:f.getLocaleSpecificMessage(f.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"},r.registerRefactor(n,{kinds:[p.kind,g.kind,m.kind],getAvailableActions:function(e){var t=i(e,"invoked"===e.triggerReason);return t?r.isRefactorErrorInfo(t)?e.preferences.provideRefactorNotApplicableReason?[{name:n,description:f.getLocaleSpecificMessage(f.Diagnostics.Extract_type),actions:[__assign(__assign({},m),{notApplicableReason:t.error}),__assign(__assign({},p),{notApplicableReason:t.error}),__assign(__assign({},g),{notApplicableReason:t.error})]}]:f.emptyArray:[{name:n,description:f.getLocaleSpecificMessage(f.Diagnostics.Extract_type),actions:t.isJS?[m]:f.append([p],t.typeElements&&g)}]:f.emptyArray},getEditsForAction:function(e,l){var u=e.file,_=i(e);f.Debug.assert(_&&!r.isRefactorErrorInfo(_),"Expected to find a range to extract");var d=f.getUniqueName("NewType",u),t=f.textChanges.ChangeTracker.with(e,function(e){switch(l){case p.name:return f.Debug.assert(!_.isJS,"Invalid actionName/JS combo"),r=e,n=u,i=d,o=(a=_).firstStatement,s=a.selection,c=a.typeParameters,a=f.factory.createTypeAliasDeclaration(void 0,void 0,i,c.map(function(e){return f.factory.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0)}),s),r.insertNodeBefore(n,o,f.ignoreSourceNewlines(a),!0),void r.replaceNode(n,s,f.factory.createTypeReferenceNode(i,c.map(function(e){return f.factory.createTypeReferenceNode(e.name,void 0)})),{leadingTriviaOption:f.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:f.textChanges.TrailingTriviaOption.ExcludeWhitespace});case m.name:return f.Debug.assert(_.isJS,"Invalid actionName/JS combo"),function(e,t,r,n){var i=n.firstStatement,a=n.selection,o=n.typeParameters;f.setEmitFlags(a,3584);var n=f.factory.createJSDocTypedefTag(f.factory.createIdentifier("typedef"),f.factory.createJSDocTypeExpression(a),f.factory.createIdentifier(r)),s=[];f.forEach(o,function(e){var t=f.getEffectiveConstraintOfTypeParameter(e),e=f.factory.createTypeParameterDeclaration(void 0,e.name),e=f.factory.createJSDocTemplateTag(f.factory.createIdentifier("template"),t&&f.cast(t,f.isJSDocTypeExpression),[e]);s.push(e)}),e.insertNodeBefore(t,i,f.factory.createJSDocComment(void 0,f.factory.createNodeArray(f.concatenate(s,[n]))),!0),e.replaceNode(t,a,f.factory.createTypeReferenceNode(r,o.map(function(e){return f.factory.createTypeReferenceNode(e.name,void 0)})))}(e,u,d,_);case g.name:return f.Debug.assert(!_.isJS&&!!_.typeElements,"Invalid actionName/JS combo"),t=e,o=u,a=d,n=(r=_).firstStatement,s=r.selection,i=r.typeParameters,c=r.typeElements,r=f.factory.createInterfaceDeclaration(void 0,void 0,a,i,void 0,c),f.setTextRange(r,null===(c=c[0])||void 0===c?void 0:c.parent),t.insertNodeBefore(o,n,f.ignoreSourceNewlines(r),!0),void t.replaceNode(o,s,f.factory.createTypeReferenceNode(a,i.map(function(e){return f.factory.createTypeReferenceNode(e.name,void 0)})),{leadingTriviaOption:f.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:f.textChanges.TrailingTriviaOption.ExcludeWhitespace});default:f.Debug.fail("Unexpected action name")}var t,r,n,i,a,o,s,c}),e=u.fileName;return{edits:t,renameFilename:e,renameLocation:f.getRenameLocation(t,e,d,!1)}}})}(ts=ts||{}),function(i){var a,r,n,o;(a=i.refactor||(i.refactor={})).generateGetAccessorAndSetAccessor||(a.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=i.Diagnostics.Generate_get_and_set_accessors.message,o={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},a.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(e,t){if(e.endPosition){var r=i.codefix.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);i.Debug.assert(r&&!a.isRefactorErrorInfo(r),"Expected applicable refactor info");var n=i.codefix.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(n){t=e.file.fileName,e=r.renameAccessor?r.accessorName:r.fieldName;return{renameFilename:t,renameLocation:(i.isIdentifier(e)?0:-1)+i.getRenameLocation(n,t,e.text,i.isParameter(r.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?a.isRefactorErrorInfo(t)?e.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[__assign(__assign({},o),{notApplicableReason:t.error})]}]:i.emptyArray:[{name:r,description:n,actions:[o]}]:i.emptyArray}})}(ts=ts||{}),function(e){(e=e.refactor||(e.refactor={})).isRefactorErrorInfo=function(e){return void 0!==e.error},e.refactorKindBeginsWith=function(e,t){return!t||e.substr(0,t.length)===t}}(ts=ts||{}),function(N){!function(e){var r="Move to a new file",n=N.getLocaleSpecificMessage(N.Diagnostics.Move_to_a_new_file),i={name:r,description:n,kind:"refactor.move.newFile"};function a(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,t,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 t(e){return!function(e){switch(e.kind){case 266:return!0;case 265:return!N.hasSyntacticModifier(e,1);case 237: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 266===e.kind?e.moduleSpecifier:265===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(!1,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?o(N.factory.createObjectBindingPattern(t),void 0,h(N.factory.createStringLiteral(r))):void 0}function o(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 266:!function(e,t,r,n){if(t.importClause){var i=(s=t.importClause).name,a=s.namedBindings,o=!i||n(i),s=!a||(268===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(269===a.kind)for(var c=0,l=a.elements;c<l.length;c++){var u=l[c];n(u.name)&&r.delete(e,u)}}}(e,t,r,n);break;case 265:n(t.name)&&r.delete(e,t);break;case 254:!function(e,t,r,n){var i=t.name;switch(i.kind){case 79:n(i)&&r.delete(e,i);break;case 202:break;case 201: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 ".concat(t.kind))}}function v(e){switch(e.kind){case 265:case 270:case 267:case 268:return!0;case 254:return s(e);case 203:return N.isVariableDeclaration(e.parent.parent)&&s(e.parent.parent);default:return!1}}function s(e){return N.isSourceFile(e.parent.parent.parent)&&!!e.initializer&&N.isRequireCall(e.initializer,!0)}function b(e,t,r){switch(e.kind){case 266: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(268===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):void 0;case 265:return r(e.name)?e:void 0;case 254:n=function(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 202:return e;case 201: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?o(n,e.type,h(t),e.parent.flags):void 0;default:return N.Debug.assertNever(e,"Unexpected import kind ".concat(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(r,{kinds:[i.kind],getAvailableActions:function(e){var t=a(e);return e.preferences.allowTextChangesInNewFiles&&t?[{name:r,description:n,actions:[i]}]:e.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[__assign(__assign({},i),{notApplicableReason:N.getLocaleSpecificMessage(N.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:N.emptyArray},getEditsForAction:function(u,e){N.Debug.assert(e===r,"Wrong refactor invoked");var _=N.Debug.checkDefined(a(u));return{edits:N.textChanges.ChangeTracker.with(u,function(e){return t=u.file,r=u.program,n=_,i=e,a=u.host,o=u.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 l=0,u=e;l<u.length;l++)x(g=u[l],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),l=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="".concat(e,".").concat(a)}}(function(e){return e.forEachEntry(N.symbolNameNoDefault)||"newFile"}(c.movedSymbols),e,l,a),e=s+e,i.createNewFile(t,N.combinePaths(l,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),__spreadArray(__spreadArray([],c,!0),n.all,!0);var l=!!e.externalModuleIndicator,u=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,l,u);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 l=e.getTypeChecker(),t=function(i){if(i===o)return"continue";for(var e=function(n){m(n,function(e){var t,r;l.getSymbolAtLocation(g(e))===o.symbol&&(p(i,e,a,r=function(e){e=N.isBindingElement(e.parent)?N.getPropertySymbolFromBindingElement(l,e.parent):N.skipAlias(l.getSymbolAtLocation(e),l);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 266:return e.importClause&&e.importClause.namedBindings&&268===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 265:return e.name;case 254:return N.tryCast(e.name,N.isIdentifier);default:return N.Debug.assertNever(e,"Unexpected node kind ".concat(e.kind))}}(e))&&function(e,t,r,n,i,a,o,s){var c=N.codefix.moduleSpecifierToValidIdentifier(i,99),l=!1,u=[];if(N.FindAllReferences.Core.eachSymbolReferenceInFile(o,r,t,function(e){N.isPropertyAccessExpression(e.parent)&&(l=l||!!r.resolveName(c,e,67108863,!0),n.has(r.getSymbolAtLocation(e.parent.name))&&u.push(e))}),u.length){for(var _=l?N.getUniqueName(c,t):c,d=0,p=u;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 266:return N.factory.createImportDeclaration(void 0,void 0,N.factory.createImportClause(!1,void 0,N.factory.createNamespaceImport(n)),i,void 0);case 265:return N.factory.createImportEqualsDeclaration(void 0,void 0,!1,n,N.factory.createExternalModuleReference(i));case 254:return N.factory.createVariableDeclaration(n,void 0,void 0,h(i));default:return N.Debug.assertNever(e,"Unexpected node kind ".concat(e.kind))}}(s,i,a))}}(a,i,l,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);u=function(l,t,e,u,r,_,n){for(var d,i=[],a=0,o=l.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){if(e.declarations)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 254:return t.parent.parent;case 203:return e(N.cast(t.parent.parent,function(e){return N.isVariableDeclaration(e)||N.isBindingElement(e)}));default:return t}}(c),f(s)&&(r=u,C(t=l,n=s,s=_,o)||(s?N.isExpressionStatement(n)||r.insertExportModifier(t,n):0!==(s=k(n)).length&&r.insertNodesAfter(t,n,s.map(E)))),N.hasSyntacticModifier(c,512)?d=o:p.push(o.text)))}}),N.append(i,y(d,p,N.removeFileExtension(N.getBaseFileName(l.fileName)),_,n)),i}(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,s,l,u),l=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(93)],e.modifiers);switch(e.kind){case 256:return N.factory.updateFunctionDeclaration(e,e.decorators,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 257:return N.factory.updateClassDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 237:return N.factory.updateVariableStatement(e,t,e.declarationList);case 261:return N.factory.updateModuleDeclaration(e,e.decorators,t,e.name,e.body);case 260:return N.factory.updateEnumDeclaration(e,e.decorators,t,e.name,e.members);case 259:return N.factory.updateTypeAliasDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.type);case 258:return N.factory.updateInterfaceDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 265:return N.factory.updateImportEqualsDeclaration(e,e.decorators,t,e.isTypeOnly,e.name,e.moduleReference);case 238:return N.Debug.fail();default:return N.Debug.assertNever(e,"Unexpected declaration kind ".concat(e.kind))}}(t)]:function(e){return __spreadArray([e],k(e).map(E),!0)}(t));if(t)return t}var t;return e})}(e,n.all,t.oldFileImportsFromNewFile,l);if(u.length&&l.length)return __spreadArray(__spreadArray(__spreadArray(__spreadArray([],c,!0),u,!0),[4],!1),l,!0);return __spreadArray(__spreadArray(__spreadArray([],c,!0),u,!0),l,!0)}(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,l}),renameFilename:void 0,renameLocation:void 0}}});var D=(c.prototype.add=function(e){this.map.set(String(N.getSymbolId(e)),e)},c.prototype.has=function(e){return this.map.has(String(N.getSymbolId(e)))},c.prototype.delete=function(e){this.map.delete(String(N.getSymbolId(e)))},c.prototype.forEach=function(e){this.map.forEach(e)},c.prototype.forEachEntry=function(e){return N.forEachEntry(this.map,e)},c.prototype.clone=function(){var e=new c;return N.copyEntries(this.map,e.map),e},c);function c(){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 256:case 257:case 261:case 260:case 259:case 258:case 265:return!0;default:return!1}}function T(e,t){switch(e.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return t(e);case 237:return N.firstDefined(e.declarationList.declarations,function(e){return function t(e,r){switch(e.kind){case 79:return r(N.cast(e.parent,function(e){return N.isVariableDeclaration(e)||N.isBindingElement(e)}));case 202:case 201: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 ".concat(e.kind))}}(e.name,t)});case 238:var r=e.expression;return N.isBinaryExpression(r)&&1===N.getAssignmentDeclarationKind(r)&&t(e)}}function C(t,e,r,n){var i;return r?!N.isExpressionStatement(e)&&N.hasSyntacticModifier(e,1)||n&&null!==(i=t.symbol.exports)&&void 0!==i&&i.has(n.escapedText):k(e).some(function(e){return t.symbol.exports.has(N.escapeLeadingUnderscores(e))})}function k(e){switch(e.kind){case 256:case 257:return[e.name.text];case 237:return N.mapDefined(e.declarationList.declarations,function(e){return N.isIdentifier(e.name)?e.name.text:void 0});case 261:case 260:case 259:case 258:case 265:return N.emptyArray;case 238:return N.Debug.fail("Can't export an ExpressionStatement");default:return N.Debug.assertNever(e,"Unexpected decl kind ".concat(e.kind))}}function E(e){return N.factory.createExpressionStatement(N.factory.createBinaryExpression(N.factory.createPropertyAccessExpression(N.factory.createIdentifier("exports"),N.factory.createIdentifier(e)),63,N.factory.createIdentifier(e)))}}(N.refactor||(N.refactor={}))}(ts=ts||{}),function(c){var l,i,a,u,_;function d(e,t,r,n){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(l.refactorKindBeginsWith(u.kind,n)&&c.isExpression(t.body))return{func:t,addBraces:!0,expression:t.body};if(l.refactorKindBeginsWith(_.kind,n)&&c.isBlock(t.body)&&1===t.body.statements.length){n=c.first(t.body.statements);if(c.isReturnStatement(n))return{func:t,addBraces:!1,expression:n.expression,returnStatement:n}}}}(l=c.refactor||(c.refactor={})).addOrRemoveBracesToArrowFunction||(l.addOrRemoveBracesToArrowFunction={}),i="Add or remove braces in an arrow function",a=c.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,u={name:"Add braces to arrow function",description:c.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},_={name:"Remove braces from arrow function",description:c.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},l.registerRefactor(i,{kinds:[_.kind],getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,i=d(r,n);c.Debug.assert(i&&!l.isRefactorErrorInfo(i),"Expected applicable refactor info");var a,o=i.expression,n=i.returnStatement,s=i.func;t===u.name?(i=c.factory.createReturnStatement(o),a=c.factory.createBlock([i],!0),c.copyLeadingComments(o,i,r,3,!0)):t===_.name&&n?(o=o||c.factory.createVoidZero(),a=c.needsParentheses(o)?c.factory.createParenthesizedExpression(o):o,c.copyTrailingAsLeadingComments(n,a,r,3,!1),c.copyLeadingComments(n,a,r,3,!1),c.copyTrailingComments(n,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=d(t,r,"invoked"===n);if(!n)return c.emptyArray;if(!l.isRefactorErrorInfo(n))return[{name:i,description:a,actions:[n.addBraces?u:_]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:i,description:a,actions:[__assign(__assign({},u),{notApplicableReason:n.error}),__assign(__assign({},_),{notApplicableReason:n.error})]}];return c.emptyArray}})}(ts=ts||{}),function(h){var e,c,n,i,a;function v(e,t){e=h.getContainingObjectLiteralElement(e);if(e){e=t.getContextualTypeForObjectLiteralElement(e),e=null==e?void 0:e.getSymbol();if(e&&!(6&h.getCheckFlags(e)))return e}}function b(e){e=e.node;return h.isImportSpecifier(e.parent)||h.isImportClause(e.parent)||h.isImportEqualsDeclaration(e.parent)||h.isNamespaceImport(e.parent)||h.isExportSpecifier(e.parent)||h.isExportAssignment(e.parent)?e:void 0}function x(e){if(h.isDeclaration(e.node.parent))return e.node}function D(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 208:case 209:var n=h.tryCast(r,h.isCallOrNewExpression);if(n&&n.expression===t)return n;break;case 206:var i=h.tryCast(r,h.isPropertyAccessExpression);if(i&&i.parent&&i.name===t){var a=h.tryCast(i.parent,h.isCallOrNewExpression);if(a&&a.expression===i)return a}break;case 207:i=h.tryCast(r,h.isElementAccessExpression);if(i&&i.parent&&i.argumentExpression===t){a=h.tryCast(i.parent,h.isCallOrNewExpression);if(a&&a.expression===i)return a}}}}function l(e,t,r){e=h.getTouchingToken(e,t),t=h.getContainingFunctionDeclaration(e);if(!function(e){e=h.findAncestor(e,h.isJSDocNode);if(e){e=h.findAncestor(e,function(e){return!h.isJSDocNode(e)});return!!e&&h.isFunctionLikeDeclaration(e)}return!1}(e))return!(t&&function(e,t){if(!function(e,t){return function(e){if(_(e))return e.length-1;return e.length}(e)>=n&&h.every(e,function(e){return function(e,t){if(h.isRestParameter(e)){var r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&!e.decorators&&h.isIdentifier(e.name)}(e,t)})}(e.parameters,t))return!1;switch(e.kind){case 256:return s(e)&&o(e,t);case 169:if(h.isObjectLiteralExpression(e.parent)){var r=v(e.name,t);return 1===(null===(r=null==r?void 0:r.declarations)||void 0===r?void 0:r.length)&&o(e,t)}return o(e,t);case 171:return h.isClassDeclaration(e.parent)?s(e.parent)&&o(e,t):u(e.parent.parent)&&o(e,t);case 213:case 214:return u(e.parent)}return!1}(t,r)&&h.rangeContainsRange(t,e))||t.body&&h.rangeContainsRange(t.body,e)?void 0:t}function o(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function s(e){return!!e.name||!!h.findModifier(e,88)}function u(e){return h.isVariableDeclaration(e)&&h.isVarConst(e)&&h.isIdentifier(e.name)&&!e.type}function _(e){return 0<e.length&&h.isThis(e[0].name)}function p(e){return _(e)&&(e=h.factory.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function f(e,i,a){var o=i.getTypeChecker(),t=p(e.parameters),r=h.map(t,function(e){var t=h.factory.createBindingElement(void 0,void 0,g(e),h.isRestParameter(e)&&l(e)?h.factory.createArrayLiteralExpression():e.initializer);h.suppressLeadingAndTrailingTrivia(t),e.initializer&&t.initializer&&h.copyComments(e.initializer,t.initializer);return t}),n=h.factory.createObjectBindingPattern(r),r=function(e){e=h.map(e,c);return h.addEmitFlags(h.factory.createTypeLiteralNode(e),1)}(t);h.every(t,l)&&(s=h.factory.createObjectLiteralExpression());r=h.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,r,s);if(_(e.parameters)){var s=e.parameters[0],e=h.factory.createParameterDeclaration(void 0,void 0,void 0,s.name,void 0,s.type);return h.suppressLeadingAndTrailingTrivia(e.name),h.copyComments(s.name,e.name),s.type&&(h.suppressLeadingAndTrailingTrivia(e.type),h.copyComments(s.type,e.type)),h.factory.createNodeArray([e,r])}return h.factory.createNodeArray([r]);function c(e){var t,r,n=e.type;n||!e.initializer&&!h.isRestParameter(e)||(t=e,r=o.getTypeAtLocation(t),n=h.getTypeNodeIfAccessible(r,t,i,a));n=h.factory.createPropertySignature(void 0,g(e),l(e)?h.factory.createToken(57):e.questionToken,n);return h.suppressLeadingAndTrailingTrivia(n),h.copyComments(e.name,n.name),e.type&&n.type&&h.copyComments(e.type,n.type),n}function l(e){if(h.isRestParameter(e)){var t=o.getTypeAtLocation(e);return!o.isTupleType(t)}return o.isOptionalParameter(e)}}function g(e){return h.getTextOfIdentifierOrLiteral(e.name)}(e=h.refactor||(h.refactor={})).convertParamsToDestructuredObject||(e.convertParamsToDestructuredObject={}),c="Convert parameters to destructured object",n=1,i=h.getLocaleSpecificMessage(h.Diagnostics.Convert_parameters_to_destructured_object),a={name:c,description:i,kind:"refactor.rewrite.parameters.toDestructured"},e.registerRefactor(c,{kinds:[a.kind],getEditsForAction:function(e,t){h.Debug.assert(t===c,"Unexpected action name");var r=e.file,n=e.startPosition,i=e.program,t=e.cancellationToken,a=e.host,o=l(r,n,i.getTypeChecker());if(!o||!t)return;var s=function(p,t,r){var f=function(e){switch(e.kind){case 256:return e.name?[e.name]:[h.Debug.checkDefined(h.findModifier(e,88),"Nameless function declaration should be a default export")];case 169:return[e.name];case 171:var t=h.Debug.checkDefined(h.findChildOfKind(e,134,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 226!==e.parent.kind?[t]:[e.parent.parent.name,t];case 214:return[e.parent.name];case 213:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return h.Debug.assertNever(e,"Unexpected function declaration kind ".concat(e.kind))}}(p),g=h.isConstructorDeclaration(p)?function(e){switch(e.parent.kind){case 257:var t=e.parent;return t.name?[t.name]:[h.Debug.checkDefined(h.findModifier(t,88),"Nameless class declaration should be a default export")];case 226:var r=e.parent,t=e.parent.parent,r=r.name;return r?[r,t.name]:[t.name]}}(p):[],n=h.deduplicate(__spreadArray(__spreadArray([],f,!0),g,!0),h.equateValues),m=t.getTypeChecker(),e=function(e){for(var t={accessExpressions:[],typeUsages:[]},r={functionCalls:[],declarations:[],classReferences:t,valid:!0},n=h.map(f,y),i=h.map(g,y),a=h.isConstructorDeclaration(p),o=h.map(f,function(e){return v(e,m)}),s=0,c=e;s<c.length;s++){var l=c[s];if(0!==l.kind){if(h.contains(o,y(l.node))){if(function(e){return h.isMethodSignature(e)&&(h.isInterfaceDeclaration(e.parent)||h.isTypeLiteralNode(e.parent))}(l.node.parent)){r.signature=l.node.parent;continue}if(u=D(l)){r.functionCalls.push(u);continue}}var u,_,d=v(l.node,m);if(d&&h.contains(o,d))if(_=x(l)){r.declarations.push(_);continue}if(h.contains(n,y(l.node))||h.isNewExpressionTarget(l.node)){if(b(l))continue;if(_=x(l)){r.declarations.push(_);continue}if(u=D(l)){r.functionCalls.push(u);continue}}if(a&&h.contains(i,y(l.node))){if(b(l))continue;if(_=x(l)){r.declarations.push(_);continue}d=function(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 206:var n=h.tryCast(r,h.isPropertyAccessExpression);if(n&&n.expression===t)return n;break;case 207:n=h.tryCast(r,h.isElementAccessExpression);if(n&&n.expression===t)return n}}return}(l);if(d){t.accessExpressions.push(d);continue}if(h.isClassDeclaration(p.parent)){l=function(e){e=e.node;if(2===h.getMeaningFromLocation(e)||h.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent))return e;return}(l);if(l){t.typeUsages.push(l);continue}}}r.valid=!1}else r.valid=!1}return r}(h.flatMap(n,function(e){return h.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r)}));h.every(e.declarations,function(e){return h.contains(n,e)})||(e.valid=!1);return e;function y(e){e=m.getSymbolAtLocation(e);return e&&h.getSymbolTarget(e,m)}}(o,i,t);if(s.valid)return{renameFilename:void 0,renameLocation:void 0,edits:h.textChanges.ChangeTracker.with(e,function(e){return function(r,e,t,n,i,a){var o=a.signature,s=h.map(f(i,e,t),function(e){return h.getSynthesizedDeepClone(e)});o&&(t=h.map(f(o,e,t),function(e){return h.getSynthesizedDeepClone(e)}),d(o,t));d(i,s);for(var a=h.sortAndDeduplicate(a.functionCalls,function(e,t){return h.compareValues(e.pos,t.pos)}),c=0,l=a;c<l.length;c++){var u,_=l[c];_.arguments&&_.arguments.length&&(u=h.getSynthesizedDeepClone(function(e,t){var r=p(e.parameters),n=h.isRestParameter(h.last(r)),e=n?t.slice(0,r.length-1):t,e=h.map(e,function(e,t){t=function(e,t){if(h.isIdentifier(t)&&h.getTextOfIdentifierOrLiteral(t)===e)return h.factory.createShorthandPropertyAssignment(e);return h.factory.createPropertyAssignment(e,t)}(g(r[t]),e);return h.suppressLeadingAndTrailingTrivia(t.name),h.isPropertyAssignment(t)&&h.suppressLeadingAndTrailingTrivia(t.initializer),h.copyComments(e,t),t});n&&t.length>=r.length&&(t=t.slice(r.length-1),t=h.factory.createPropertyAssignment(g(h.last(r)),h.factory.createArrayLiteralExpression(t)),e.push(t));return h.factory.createObjectLiteralExpression(e,!1)}(i,_.arguments),!0),n.replaceNodeRange(h.getSourceFileOfNode(_),h.first(_.arguments),h.last(_.arguments),u,{leadingTriviaOption:h.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:h.textChanges.TrailingTriviaOption.Include}))}function d(e,t){n.replaceNodeRangeWithNodes(r,h.first(e.parameters),h.last(e.parameters),t,{joiner:", ",indentation:0,leadingTriviaOption:h.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:h.textChanges.TrailingTriviaOption.Include})}}(r,i,a,e,o,s)})};return{edits:[]}},getAvailableActions:function(e){var t=e.file,r=e.startPosition;return!h.isSourceFileJS(t)&&l(t,r,e.program.getTypeChecker())?[{name:c,description:i,actions:[a]}]:h.emptyArray}})}(ts=ts||{}),function(h){var e;!function(){var n="Convert to template string",i=h.getLocaleSpecificMessage(h.Diagnostics.Convert_to_template_string),a={name:n,description:i,kind:"refactor.rewrite.string"};function o(e,t){e=h.getTokenAtPosition(e,t),t=s(e);return!c(t).isValidConcatenation&&h.isParenthesizedExpression(t.parent)&&h.isBinaryExpression(t.parent.parent)?t.parent.parent:e}function s(e){return h.findAncestor(e.parent,function(e){switch(e.kind){case 206:case 207:return!1;case 223:case 221:return!(h.isBinaryExpression(e.parent)&&63!==e.parent.operatorToken.kind);default:return"quit"}})||e}function c(e){var a=function(e){if(!h.isBinaryExpression(e))return{nodes:[e],operators:[],validOperators:!0,hasString:h.isStringLiteral(e)||h.isNoSubstitutionTemplateLiteral(e)};var t=a(e.left),r=t.nodes,n=t.operators,i=t.hasString,t=t.validOperators;if(!(i||h.isStringLiteral(e.right)||h.isTemplateExpression(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};i=39===e.operatorToken.kind,i=t&&i;return r.push(e.right),n.push(e.operatorToken),{nodes:r,operators:n,hasString:!0,validOperators:i}},t=a(e),r=t.nodes,n=t.operators,e=t.validOperators,t=t.hasString;return{nodes:r,operators:n,isValidConcatenation:e&&t}}e.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,n=o(r,n);return t!==i?h.Debug.fail("invalid action"):{edits:function(e,t){var r=s(t),n=e.file,i=function(e,t){var c=e.nodes,r=e.operators,l=p(r,t),u=f(c,t,l),n=m(0,c),i=n[0],e=n[1],r=n[2],t=n[3];if(i===c.length){n=h.factory.createNoSubstitutionTemplateLiteral(e,r);return u(t,n),n}var _=[],r=h.factory.createTemplateHead(e,r);u(t,r);for(var d,a=function(e){var i=function(e){h.isParenthesizedExpression(e)&&(y(e),e=e.expression);return e}(c[e]);l(e,i);var t,r=m(e+1,c),n=r[0],a=r[1],o=r[2],r=r[3],s=(e=n-1)===c.length-1;h.isTemplateExpression(i)?(t=h.map(i.templateSpans,function(e,t){y(e);var r=t===i.templateSpans.length-1,n=e.literal.text+(r?a:""),t=g(e.literal)+(r?o:"");return h.factory.createTemplateSpan(e.expression,s&&r?h.factory.createTemplateTail(n,t):h.factory.createTemplateMiddle(n,t))}),_.push.apply(_,t)):(t=s?h.factory.createTemplateTail(a,o):h.factory.createTemplateMiddle(a,o),u(r,t),_.push(h.factory.createTemplateSpan(i,t))),d=e},o=i;o<c.length;o++)a(o),o=d;return h.factory.createTemplateExpression(r,_)}(c(r),n),a=h.getTrailingCommentRanges(n.text,r.end);{if(a){var t=a[a.length-1],o={pos:a[0].pos,end:t.end};return h.textChanges.ChangeTracker.with(e,function(e){e.deleteRange(n,o),e.replaceNode(n,r,i)})}return h.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,r,i)})}}(e,n)}},getAvailableActions:function(e){var t=e.file,r=e.startPosition,t=s(o(t,r)),r={name:n,description:i,actions:[]};{if(h.isBinaryExpression(t)&&c(t).isValidConcatenation)return r.actions.push(a),[r];if(e.preferences.provideRefactorNotApplicableReason)return r.actions.push(__assign(__assign({},a),{notApplicableReason:h.getLocaleSpecificMessage(h.Diagnostics.Can_only_convert_string_concatenation)})),[r]}return h.emptyArray}});var p=function(r,n){return function(e,t){e<r.length&&h.copyTrailingComments(r[e],t,n,3,!1)}},f=function(n,i,a){return function(e,t){for(;0<e.length;){var r=e.shift();h.copyTrailingComments(n[r],t,i,3,!1),a(r,t)}}};function g(e){var t=h.isTemplateHead(e)||h.isTemplateMiddle(e)?-2:-1;return h.getTextOfNode(e).slice(1,t)}function m(e,t){for(var r=[],n="",i="";e<t.length;){var a=t[e];if(!h.isStringLiteralLike(a)){if(h.isTemplateExpression(a)){n+=a.head.text,i+=g(a.head);break}break}n+=a.text,i+=h.getTextOfNode(a).slice(1,-1).replace(/\\.|[$`]/g,function(e){return"\\"===e[0]?e:"\\"+e}),r.push(e),e++}return[e,n,i,r]}function y(e){var t=e.getSourceFile();h.copyTrailingComments(e,e.expression,t,3,!1),h.copyTrailingAsLeadingComments(e.expression,e.expression,t,3,!1)}}((e=h.refactor||(h.refactor={})).convertStringOrTemplateLiteral||(e.convertStringOrTemplateLiteral={}))}(ts=ts||{}),function(u){var s,c,l,_,d,p;function i(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 f(e,t,r){var n=u.getTokenAtPosition(e,t),t=r.getTypeChecker(),r=function(e,t,r){if(!function(e){return u.isVariableDeclaration(e)||u.isVariableDeclarationList(e)&&1===e.declarations.length}(r))return;r=(u.isVariableDeclaration(r)?r:u.first(r.declarations)).initializer;if(r&&(u.isArrowFunction(r)||u.isFunctionExpression(r)&&!a(e,t,r)))return r;return}(e,t,n.parent);if(r&&!i(r.body)&&!t.containsArgumentsReference(r))return{selectedVariableDeclaration:!0,func:r};r=u.getContainingFunction(n);return!r||!u.isFunctionExpression(r)&&!u.isArrowFunction(r)||u.rangeContainsRange(r.body,n)||i(r.body)||t.containsArgumentsReference(r)||u.isFunctionExpression(r)&&a(e,t,r)?void 0:{selectedVariableDeclaration:!1,func:r}}function g(e){if(u.isExpression(e)){var t=u.factory.createReturnStatement(e),r=e.getSourceFile();return u.suppressLeadingAndTrailingTrivia(t),u.copyTrailingAsLeadingComments(e,t,r,void 0,!0),u.factory.createBlock([t],!0)}return e}function a(e,t,r){return r.name&&u.FindAllReferences.Core.isSymbolReferencedInFile(r.name,t,e)}(s=u.refactor||(u.refactor={})).convertArrowFunctionOrFunctionExpression||(s.convertArrowFunctionOrFunctionExpression={}),c="Convert arrow function or function expression",l=u.getLocaleSpecificMessage(u.Diagnostics.Convert_arrow_function_or_function_expression),_={name:"Convert to anonymous function",description:u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},d={name:"Convert to named function",description:u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},p={name:"Convert to arrow function",description:u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},s.registerRefactor(c,{kinds:[_.kind,d.kind,p.kind],getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,i=e.program,i=f(r,n,i);if(!i)return;var a=i.func,o=[];switch(t){case _.name:o.push.apply(o,function(e,t){var r=e.file,n=g(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 d.name: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=g(t.body),a=r.variableDeclaration,o=r.variableDeclarationList,s=r.statement,c=r.name;u.suppressLeadingTrivia(s);var r=1&u.getCombinedModifierFlags(a)|u.getEffectiveModifierFlags(t),r=u.factory.createModifiersFromModifierFlags(r),l=u.factory.createFunctionDeclaration(t.decorators,u.length(r)?r:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===o.declarations.length?u.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,s,l)}):u.textChanges.ChangeTracker.with(e,function(e){e.delete(n,a),e.insertNodeAfter(n,s,l)})}(e,a,s));break;case p.name: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,n=e.program,i=e.kind,a=f(t,r,n);if(!a)return u.emptyArray;t=a.selectedVariableDeclaration,r=a.func,n=[],a=[];s.refactorKindBeginsWith(d.kind,i)&&((o=t||u.isArrowFunction(r)&&u.isVariableDeclaration(r.parent)?void 0:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_convert_to_named_function))?a.push(__assign(__assign({},d),{notApplicableReason:o})):n.push(d));s.refactorKindBeginsWith(_.kind,i)&&((o=!t&&u.isArrowFunction(r)?void 0:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_convert_to_anonymous_function))?a.push(__assign(__assign({},_),{notApplicableReason:o})):n.push(_));{var o;s.refactorKindBeginsWith(p.kind,i)&&((o=u.isFunctionExpression(r)?void 0:u.getLocaleSpecificMessage(u.Diagnostics.Could_not_convert_to_arrow_function))?a.push(__assign(__assign({},p),{notApplicableReason:o})):n.push(p))}return[{name:c,description:l,actions:0===n.length&&e.preferences.provideRefactorNotApplicableReason?a:n}]}})}(ts=ts||{}),function(c){var n,r,i,a;function l(e){if(!c.isInJSFile(e.file)&&n.refactorKindBeginsWith(a.kind,e.kind)){var t=c.getTokenAtPosition(e.file,e.startPosition),r=c.findAncestor(t,function(e){return c.isBlock(e)||e.parent&&c.isArrowFunction(e.parent)&&(38===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 256:case 213:case 214:case 169:return!0;default:return!1}}(e)});if(!r||!r.body||r.type)return{error:c.getLocaleSpecificMessage(c.Diagnostics.Return_type_must_be_inferred_from_a_function)};t=e.program.getTypeChecker(),e=function(e,t){if(e.isImplementationOfOverload(t)){var r=e.getTypeAtLocation(t).getCallSignatures();if(1<r.length)return e.getUnionType(c.mapDefined(r,function(e){return e.getReturnType()}))}t=e.getSignatureFromDeclaration(t);if(t)return e.getReturnTypeOfSignature(t)}(t,r);if(!e)return{error:c.getLocaleSpecificMessage(c.Diagnostics.Could_not_determine_function_return_type)};e=t.typeToTypeNode(e,r,1);return e?{declaration:r,returnTypeNode:e}:void 0}}(n=c.refactor||(c.refactor={})).inferFunctionReturnType||(n.inferFunctionReturnType={}),r="Infer function return type",i=c.Diagnostics.Infer_function_return_type.message,a={name:r,description:i,kind:"refactor.rewrite.function.returnType"},n.registerRefactor(r,{kinds:[a.kind],getEditsForAction:function(o){var s=l(o);if(!s||n.isRefactorErrorInfo(s))return;var e=c.textChanges.ChangeTracker.with(o,function(e){return t=o.file,r=e,n=s.declaration,i=s.returnTypeNode,a=c.findChildOfKind(n,21,t),e=c.isArrowFunction(n)&&void 0===a,void((a=e?c.first(n.parameters):a)&&(e&&(r.insertNodeBefore(t,a,c.factory.createToken(20)),r.insertNodeAfter(t,a,c.factory.createToken(21))),r.insertNodeAt(t,a.end,i,{prefix:": "})));var t,r,n,i,a});return{renameFilename:void 0,renameLocation:void 0,edits:e}},getAvailableActions:function(e){var t=l(e);if(!t)return c.emptyArray;if(!n.isRefactorErrorInfo(t))return[{name:r,description:i,actions:[a]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:r,description:i,actions:[__assign(__assign({},a),{notApplicableReason:t.error})]}];return c.emptyArray}})}(ts=ts||{}),function(P){function s(e,t,r,n){r=P.isNodeKind(e)?new i(e,t,r):79===e?new p(79,t,r):80===e?new m(80,t,r):new u(e,t,r);return r.parent=n,r.flags=50720768&n.flags,r}P.servicesVersion="0.8";var i=(e.prototype.assertHasRealPosition=function(e){P.Debug.assert(!P.positionIsSynthesized(this.pos)&&!P.positionIsSynthesized(this.end),e||"Node must have a real position for this operation")},e.prototype.getSourceFile=function(){return P.getSourceFileOfNode(this)},e.prototype.getStart=function(e,t){return this.assertHasRealPosition(),P.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(!P.isNodeKind(t.kind))return P.emptyArray;var r=[];if(P.isJSDocCommentContainingNode(t))return t.forEachChild(function(e){r.push(e)}),r;P.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 P.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),P.scanner.setText(void 0),r}(this,e))},e.prototype.getFirstToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e);if(t.length){t=P.find(t,function(e){return e.kind<309||347<e.kind});return t.kind<161?t:t.getFirstToken(e)}},e.prototype.getLastToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e),t=P.lastOrUndefined(t);if(t)return t.kind<161?t:t.getLastToken(e)},e.prototype.forEachChild=function(e,t){return P.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(P.scanner.setTextPos(t);t<r;){var i=P.scanner.scan(),a=P.scanner.getTextPos();if(a<=r&&(79===i&&P.Debug.fail("Did not expect ".concat(P.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(348,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 P.getSourceFileOfNode(this)},r.prototype.getStart=function(e,t){return P.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 this.getChildren().length},r.prototype.getChildAt=function(e){return this.getChildren()[e]},r.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||P.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 P.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=P.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration?(t=this.target.tupleLabelDeclaration,this.documentationComment=T([t],e)):this.documentationComment=T(this.declarations,e)),this.documentationComment},o.prototype.getContextualDocumentationComment=function(e,t){switch(null==e?void 0:e.kind){case 172:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=T(P.filter(this.declarations,P.isGetAccessor),t)),this.contextualGetAccessorDocumentationComment;case 173:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=T(P.filter(this.declarations,P.isSetAccessor),t)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(t)}},o.prototype.getJsDocTags=function(e){return void 0===this.tags&&(this.tags=S(this.declarations,e)),this.tags},o.prototype.getContextualJsDocTags=function(e,t){switch(null==e?void 0:e.kind){case 172:return this.contextualGetAccessorTags||(this.contextualGetAccessorTags=S(P.filter(this.declarations,P.isGetAccessor),t)),this.contextualGetAccessorTags;case 173:return this.contextualSetAccessorTags||(this.contextualSetAccessorTags=S(P.filter(this.declarations,P.isSetAccessor),t)),this.contextualSetAccessorTags;default:return this.getJsDocTags(t)}},o);function o(e,t){this.flags=e,this.escapedName=t}var l,u=(__extends(_,l=t),_);function _(e,t,r){r=l.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 P.idText(this)},enumerable:!1,configurable:!0}),f);function f(e,t,r){r=d.call(this,t,r)||this;return r.kind=79,r}p.prototype.kind=79;var g,m=(__extends(y,g=t),Object.defineProperty(y.prototype,"text",{get:function(){return P.idText(this)},enumerable:!1,configurable:!0}),y);function y(e,t,r){return g.call(this,t,r)||this}m.prototype.kind=80;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&P.getObjectFlags(this))},v.prototype.isClass=function(){return!!(1&P.getObjectFlags(this))},v.prototype.isIndexType=function(){return!!(4194304&this.flags)},Object.defineProperty(v.prototype,"typeArguments",{get:function(){if(4&P.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.getTypeParameterAtPosition=function(e){var t=this.checker.getParameterType(this,e);if(t.isIndexType()&&P.isThisTypeParameter(t.type)){e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t},x.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=T(P.singleElementArray(this.declaration),this.checker))},x.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=S(P.singleElementArray(this.declaration),this.checker))},x);function x(e,t){this.checker=e,this.flags=t}function D(e){return P.getJSDocTags(e).some(function(e){return"inheritDoc"===e.tagName.text})}function S(e,n){if(!e)return P.emptyArray;var t=P.JsDoc.getJsDocTagsFromDeclarations(e,n);if(n&&(0===t.length||e.some(D)))for(var i=new P.Set,r=0,a=e;r<a.length;r++)!function(r){var e=C(n,r,function(e){var t;if(!i.has(e))return i.add(e),172===r.kind||173===r.kind?e.getContextualJsDocTags(r,n):1===(null===(t=e.declarations)||void 0===t?void 0:t.length)?e.getJsDocTags():void 0});e&&(t=__spreadArray(__spreadArray([],e,!0),t,!0))}(a[r]);return t}function T(e,r){if(!e)return P.emptyArray;var n=P.JsDoc.getJsDocCommentsFromDeclarations(e,r);if(r&&(0===n.length||e.some(D)))for(var i=new P.Set,t=0,a=e;t<a.length;t++)!function(t){var e=C(r,t,function(e){if(!i.has(e))return i.add(e),172===t.kind||173===t.kind?e.getContextualDocumentationComment(t,r):e.getDocumentationComment(r)});e&&(n=0===n.length?e.slice():e.concat(P.lineBreakPart(),n))}(a[t]);return n}function C(t,r,n){if(!P.hasStaticModifier(r)){var e=(171===(null===(e=r.parent)||void 0===e?void 0:e.kind)?r.parent:r).parent;if(e)return P.firstDefined(P.getAllSuperTypeNodes(e),function(e){e=t.getPropertyOfType(t.getTypeAtLocation(e),r.symbol.name);return e?n(e):void 0})}}var k,E=(__extends(N,k=i),N.prototype.update=function(e,t){return P.updateSourceFile(this,e,t)},N.prototype.getLineAndCharacterOfPosition=function(e){return P.getLineAndCharacterOfPosition(this,e)},N.prototype.getLineStarts=function(){return P.getLineStarts(this)},N.prototype.getPositionOfLineAndCharacter=function(e,t,r){return P.computePositionOfLineAndCharacter(P.getLineStarts(this),e,t,this.text,r)},N.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},N.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},N.prototype.computeNamedDeclarations=function(){var r=P.createMultiMap();return this.forEachChild(function e(t){switch(t.kind){case 256:case 213:case 169:case 168:var r,n=t,i=c(n);i&&(r=s(i),(i=P.lastOrUndefined(r))&&n.parent===i.parent&&n.symbol===i.symbol?n.body&&!i.body&&(r[r.length-1]=n):r.push(n)),P.forEachChild(t,e);break;case 257:case 226:case 258:case 259:case 260:case 261:case 265:case 275:case 270:case 267:case 268:case 172:case 173:case 182:o(t),P.forEachChild(t,e);break;case 164:if(!P.hasSyntacticModifier(t,16476))break;case 254:case 203:var n=t;if(P.isBindingPattern(n.name)){P.forEachChild(n.name,e);break}n.initializer&&e(n.initializer);case 299:case 167:case 166:o(t);break;case 272:var a=t;a.exportClause&&(P.isNamedExports(a.exportClause)?P.forEach(a.exportClause.elements,e):e(a.exportClause.name));break;case 266:var a=t.importClause;a&&(a.name&&o(a.name),a.namedBindings&&(268===a.namedBindings.kind?o(a.namedBindings):P.forEach(a.namedBindings.elements,e)));break;case 221:0!==P.getAssignmentDeclarationKind(t)&&o(t);default:P.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=P.getNonAssignedNameOfDeclaration(e);return e&&(P.isComputedPropertyName(e)&&P.isPropertyAccessExpression(e.expression)?e.expression.name.text:P.isPropertyName(e)?P.getNameFromPropertyName(e):void 0)}},N);function N(e,t,r){r=k.call(this,e,t,r)||this;return r.kind=305,r}var A=(F.prototype.getLineAndCharacterOfPosition=function(e){return P.getLineAndCharacterOfPosition(this,e)},F);function F(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}function w(e){var t=!0;for(r in e)if(P.hasProperty(e,r)&&!I(r)){t=!1;break}if(t)return e;var r,n={};for(r in e)P.hasProperty(e,r)&&(n[I(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]);return n}function I(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function O(){return{target:1,jsx:1}}P.toEditorSettings=w,P.displayPartsToString=function(e){return e?P.map(e,function(e){return e.text}).join(""):""},P.getDefaultCompilerOptions=O,P.getSupportedCodeFixes=function(){return P.codefix.getSupportedErrorCodes()};var M=(L.prototype.createEntry=function(e,t){var r=this.host.getScriptSnapshot(e),e=r?{hostFileName:e,version:this.host.getScriptVersion(e),scriptSnapshot:r,scriptKind:P.getScriptKind(e,this.host)}:e;return this.fileNameToEntry.set(t,e),e},L.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},L.prototype.getHostFileInformation=function(e){e=this.fileNameToEntry.get(e);return P.isString(e)?void 0:e},L.prototype.getOrCreateEntryByPath=function(e,t){t=this.getEntryByPath(t)||this.createEntry(e,t);return P.isString(t)?void 0:t},L.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach(function(e){P.isString(e)?t.push(e):t.push(e.hostFileName)}),t},L.prototype.getScriptSnapshot=function(e){e=this.getHostFileInformation(e);return e&&e.scriptSnapshot},L);function L(e,t){this.host=e,this.currentDirectory=e.getCurrentDirectory(),this.fileNameToEntry=new P.Map;e=e.getScriptFileNames();null!==P.tracing&&void 0!==P.tracing&&P.tracing.push("session","initializeHostCache",{count:e.length});for(var r=0,n=e;r<n.length;r++){var i=n[r];this.createEntry(i,P.toPath(i,this.currentDirectory,t))}null!==P.tracing&&void 0!==P.tracing&&P.tracing.pop()}var R=(B.prototype.getCurrentSourceFile=function(e){var t,r=this.host.getScriptSnapshot(e);if(!r)throw new Error("Could not find file: '"+e+"'.");var n,i=P.getScriptKind(e,this.host),a=this.host.getScriptVersion(e);return this.currentFileName!==e?n=J(e,r,{languageVersion:99,impliedNodeFormat:P.getImpliedNodeFormatForFile(P.toPath(e,this.host.getCurrentDirectory(),(null===(n=null===(n=(t=this.host).getCompilerHost)||void 0===n?void 0:n.call(t))||void 0===n?void 0:n.getCanonicalFileName)||P.hostGetCanonicalFileName(this.host)),null===(n=null===(t=null===(n=null===(n=(t=this.host).getCompilerHost)||void 0===n?void 0:n.call(t))||void 0===n?void 0:n.getModuleResolutionCache)||void 0===t?void 0:t.call(n))||void 0===n?void 0:n.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:P.getSetExternalModuleIndicator(this.host.getCompilationSettings())},a,!0,i):this.currentFileVersion!==a&&(i=r.getChangeRange(this.currentFileScriptSnapshot),n=z(this.currentSourceFile,r,a,i)),n&&(this.currentFileVersion=a,this.currentFileName=e,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},B);function B(e){this.host=e}function j(e,t,r){e.version=r,e.scriptSnapshot=t}function J(e,t,r,n,i,a){a=P.createSourceFile(e,P.getSnapshotText(t),r,i,a);return j(a,t,n),a}function z(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=P.textSpanEnd(n.span)!==e.text.length?e.text.substr(P.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);o=P.updateSourceFile(e,o,n,i);return j(o,t,r),o.nameTable=void 0,e!==o&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),o}o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return J(e.fileName,t,o,r,!0,e.scriptKind)}P.createLanguageServiceSourceFile=J,P.updateLanguageServiceSourceFile=z;var K={isCancellationRequested:P.returnFalse,throwIfCancellationRequested:P.noop},U=(V.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},V.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null!==P.tracing&&void 0!==P.tracing&&P.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new P.OperationCanceledException},V);function V(e){this.cancellationToken=e}function q(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}q.prototype.isCancellationRequested=function(){var e=P.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},q.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null!==P.tracing&&void 0!==P.tracing&&P.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new P.OperationCanceledException},t=q,P.ThrottledCancellationToken=t;var W=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],H=__spreadArray(__spreadArray([],W,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function G(e){e=function(e){switch(e.kind){case 10:case 14:case 8:if(162===e.parent.kind)return P.isObjectLiteralElement(e.parent.parent)?e.parent.parent:void 0;case 79:return!P.isObjectLiteralElement(e.parent)||205!==e.parent.parent.kind&&286!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return e&&(P.isObjectLiteralExpression(e.parent)||P.isJsxAttributes(e.parent))?e:void 0}function Q(t,r,e,n){var i=P.getNameFromPropertyName(t.name);if(!i)return P.emptyArray;if(!e.isUnion())return(a=e.getProperty(i))?[a]:P.emptyArray;var a,o=P.mapDefined(e.types,function(e){return(P.isObjectLiteralExpression(t.parent)||P.isJsxAttributes(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?P.mapDefined(e.types,function(e){return e.getProperty(i)}):o}P.createLanguageService=function(m,y,e){var h;void 0===y&&(y=P.createDocumentRegistry(m.useCaseSensitiveFileNames&&m.useCaseSensitiveFileNames(),m.getCurrentDirectory())),h=void 0===e?P.LanguageServiceMode.Semantic:"boolean"==typeof e?e?P.LanguageServiceMode.Syntactic:P.LanguageServiceMode.Semantic:e;var v,b,S=new R(m),x=0,D=m.getCancellationToken?new U(m.getCancellationToken()):K,T=m.getCurrentDirectory();function C(e){m.log&&m.log(e)}P.maybeSetLocalizedDiagnosticMessages(null===(e=m.getLocalizedDiagnosticMessages)||void 0===e?void 0:e.bind(m));var k=P.hostUsesCaseSensitiveFileNames(m),E=P.createGetCanonicalFileName(k),N=P.getSourceMapper({useCaseSensitiveFileNames:function(){return k},getCurrentDirectory:function(){return T},getProgram:o,fileExists:P.maybeBind(m,m.fileExists),readFile:P.maybeBind(m,m.readFile),getDocumentPositionMapper:P.maybeBind(m,m.getDocumentPositionMapper),getSourceFileLike:P.maybeBind(m,m.getSourceFileLike),log:C});function p(e){var t=v.getSourceFile(e);if(t)return t;e=new Error("Could not find source file: '".concat(e,"'."));throw e.ProgramFiles=v.getSourceFiles().map(function(e){return e.fileName}),e}function f(){if(P.Debug.assert(h!==P.LanguageServiceMode.Syntactic),m.getProjectVersion){var e=m.getProjectVersion();if(e){if(b===e&&(null===(a=m.hasChangedAutomaticTypeDirectiveNames)||void 0===a||!a.call(m)))return;b=e}}var t=m.getTypeRootsVersion?m.getTypeRootsVersion():0;x!==t&&(C("TypeRoots version has changed; provide new program"),v=void 0,x=t);var i,o,s=new M(m,E),r=s.getRootFileNames(),n=m.getCompilationSettings()||O(),a=m.hasInvalidatedResolution||P.returnFalse,e=P.maybeBind(m,m.hasChangedAutomaticTypeDirectiveNames),t=null===(t=m.getProjectReferences)||void 0===t?void 0:t.call(m),c={useCaseSensitiveFileNames:k,fileExists:u,readFile:_,readDirectory:d,trace:P.maybeBind(m,m.trace),getCurrentDirectory:function(){return T},onUnRecoverableConfigFileDiagnostic:P.noop};function l(e){var t=P.toPath(e,T,E),r=null==i?void 0:i.get(t);if(void 0!==r)return r||void 0;var n,n=m.getParsedCommandLine?m.getParsedCommandLine(e):(e=f(n=e,100))?(e.path=P.toPath(n,T,E),e.resolvedPath=e.path,e.originalFileName=e.fileName,P.parseJsonSourceFileConfigFileContent(e,c,P.getNormalizedAbsolutePath(P.getDirectoryPath(n),T),void 0,P.getNormalizedAbsolutePath(n,T))):void 0;return(i=i||new P.Map).set(t,n||!1),n}function u(e){var t=P.toPath(e,T,E),t=s&&s.getEntryByPath(t);return t?!P.isString(t):!!m.fileExists&&m.fileExists(e)}function _(e){var t=P.toPath(e,T,E),t=s&&s.getEntryByPath(t);return t?P.isString(t)?void 0:P.getSnapshotText(t.scriptSnapshot):m.readFile&&m.readFile(e)}function d(e,t,r,n,i){return P.Debug.checkDefined(m.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),m.readDirectory(e,t,r,n,i)}function p(e,t){t=y.getKeyForCompilationSettings(t);y.releaseDocumentWithKey(e.resolvedPath,t,e.scriptKind)}function f(e,t,r,n){return g(e,P.toPath(e,T,E),0,0,n)}function g(e,t,r,n,i){P.Debug.assert(void 0!==s,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var a=s&&s.getOrCreateEntryByPath(e,t);if(a){if(!i){i=v&&v.getSourceFileByPath(t);if(i){if(a.scriptKind===i.scriptKind)return y.updateDocumentWithKey(e,t,m,o,a.scriptSnapshot,a.version,a.scriptKind);y.releaseDocumentWithKey(i.resolvedPath,y.getKeyForCompilationSettings(v.getCompilerOptions()),i.scriptKind)}}return y.acquireDocumentWithKey(e,t,m,o,a.scriptSnapshot,a.version,a.scriptKind)}}P.isProgramUptoDate(v,r,n,function(e,t){return m.getScriptVersion(t)},u,a,e,l,t)||(a={getSourceFile:f,getSourceFileByPath:g,getCancellationToken:function(){return D},getCanonicalFileName:E,useCaseSensitiveFileNames:function(){return k},getNewLine:function(){return P.getNewLineCharacter(n,function(){return P.getNewLineOrDefaultFromHost(m)})},getDefaultLibFileName:function(e){return m.getDefaultLibFileName(e)},writeFile:P.noop,getCurrentDirectory:function(){return T},fileExists:u,readFile:_,getSymlinkCache:P.maybeBind(m,m.getSymlinkCache),realpath:P.maybeBind(m,m.realpath),directoryExists:function(e){return P.directoryProbablyExists(e,m)},getDirectories:function(e){return m.getDirectories?m.getDirectories(e):[]},readDirectory:d,onReleaseOldSourceFile:p,onReleaseParsedCommandLine:function(e,t,r){var n;m.getParsedCommandLine?null!==(n=m.onReleaseParsedCommandLine)&&void 0!==n&&n.call(m,e,t,r):t&&p(t.sourceFile,r)},hasInvalidatedResolution:a,hasChangedAutomaticTypeDirectiveNames:e,trace:c.trace,resolveModuleNames:P.maybeBind(m,m.resolveModuleNames),getModuleResolutionCache:P.maybeBind(m,m.getModuleResolutionCache),resolveTypeReferenceDirectives:P.maybeBind(m,m.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:P.maybeBind(m,m.useSourceOfProjectReferenceRedirect),getParsedCommandLine:l},null!==(e=m.setCompilerHost)&&void 0!==e&&e.call(m,a),o=y.getKeyForCompilationSettings(n),t={rootNames:r,options:n,host:a,oldProgram:v,projectReferences:t},v=P.createProgram(t),i=s=void 0,N.clearCache(),v.getTypeChecker())}function o(){if(h!==P.LanguageServiceMode.Syntactic)return f(),v;P.Debug.assert(void 0===v)}function r(e,t,r){var n=P.normalizePath(e);P.Debug.assert(r.some(function(e){return P.normalizePath(e)===n})),f();r=P.mapDefined(r,function(e){return v.getSourceFile(e)}),e=p(e);return P.DocumentHighlights.getDocumentHighlights(v,D,e,t,r)}function s(e,t,r,n){f();var i=r&&2===r.use?v.getSourceFiles().filter(function(e){return!v.isSourceFileDefaultLibrary(e)}):v.getSourceFiles();return P.FindAllReferences.findReferenceOrRenameEntries(v,D,i,e,t,r,n)}var n=new P.Map(P.getEntries(((e={})[18]=19,e[20]=21,e[22]=23,e[31]=29,e)));function i(e){var t;return P.Debug.assertEqual(e.type,"install package"),m.installPackage?m.installPackage({fileName:(t=e.file,P.toPath(t,T,E)),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`")}function A(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=A(n,t),o=a.lineStarts,s=a.firstLine,c=a.lastLine,l=r||!1,u=Number.MAX_VALUE,_=new P.Map,d=new RegExp(/\S/),p=P.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&&(u=Math.min(u,y.index),_.set(g.toString(),y.index),m.substr(y.index,f.length)!==f&&(l=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,F(e,{pos:o[g]+u,end:n.getLineEndOfPosition(o[g])},l,p)):l?i.push({newText:f,span:{length:0,start:o[g]+u}}):n.text.substr(o[g]+h,f.length)===f&&i.push({newText:"",span:{length:f.length,start:o[g]+h}}));return i}function F(e,t,r,n){for(var i=S.getCurrentSourceFile(e),a=[],o=i.text,s=!1,c=r||!1,l=[],u=t.pos,_=void 0!==n?n:P.isInsideJsxElement(i,u),d=_?"{/*":"/*",p=_?"*/}":"*/",f=_?"\\{\\/\\*":"\\/\\*",g=_?"\\*\\/\\}":"\\*\\/";u<=t.end;){var m=o.substr(u,d.length)===d?d.length:0,y=P.isInComment(i,u+m);u=y?(_&&(y.pos--,y.end++),l.push(y.pos),3===y.kind&&l.push(y.end),s=!0,y.end+1):(y=o.substring(u,t.end).search("(".concat(f,")|(").concat(g,")")),c=void 0!==r?r:c||!P.isTextWhiteSpaceLike(o,u,-1===y?t.end:u+y),-1===y?t.end+1:u+y+p.length)}if(c||!s){2!==(null===(n=P.isInComment(i,t.pos))||void 0===n?void 0:n.kind)&&P.insertSorted(l,t.pos,P.compareValues),P.insertSorted(l,t.end,P.compareValues);n=l[0];o.substr(n,d.length)!==d&&a.push({newText:d,span:{length:0,start:n}});for(var h=1;h<l.length-1;h++)o.substr(l[h]-p.length,p.length)!==p&&a.push({newText:p,span:{length:0,start:l[h]}}),o.substr(l[h],d.length)!==d&&a.push({newText:d,span:{length:0,start:l[h]}});a.length%2!=0&&a.push({newText:p,span:{length:0,start:l[l.length-1]}})}else for(var v=0,b=l;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 l(e,t,r,n,i,a){t="number"==typeof t?[t,void 0]:[t.pos,t.end];return{file:e,startPosition:t[0],endPosition:t[1],program:o(),host:m,formatContext:P.formatting.getFormatContext(n,m),cancellationToken:D,preferences:r,triggerReason:i,kind:a}}n.forEach(function(e,t){return n.set(e.toString(),Number(t))});var t={dispose:function(){var t;v&&(t=y.getKeyForCompilationSettings(v.getCompilerOptions()),P.forEach(v.getSourceFiles(),function(e){return y.releaseDocumentWithKey(e.resolvedPath,t,e.scriptKind)}),v=void 0),m=void 0},cleanupSemanticCache:function(){v=void 0},getSyntacticDiagnostics:function(e){return f(),v.getSyntacticDiagnostics(p(e),D).slice()},getSemanticDiagnostics:function(e){f();var t=p(e),e=v.getSemanticDiagnostics(t,D);return P.getEmitDeclarations(v.getCompilerOptions())?(t=v.getDeclarationDiagnostics(t,D),__spreadArray(__spreadArray([],e,!0),t,!0)):e.slice()},getSuggestionDiagnostics:function(e){return f(),P.computeSuggestionDiagnostics(p(e),v,D)},getCompilerOptionsDiagnostics:function(){return f(),__spreadArray(__spreadArray([],v.getOptionsDiagnostics(D),!0),v.getGlobalDiagnostics(D),!0)},getSyntacticClassifications:function(e,t){return P.getSyntacticClassifications(D,S.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,r){return f(),"2020"===(r||"original")?P.classifier.v2020.getSemanticClassifications(v,D,p(e),t):P.getSemanticClassifications(v.getTypeChecker(),D,p(e),v.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return P.getEncodedSyntacticClassifications(D,S.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,r){return f(),"original"===(r||"original")?P.getEncodedSemanticClassifications(v.getTypeChecker(),D,p(e),v.getClassifiableNames(),t):P.classifier.v2020.getEncodedSemanticClassifications(v,D,p(e),t)},getCompletionsAtPosition:function(e,t,r,n){void 0===r&&(r=P.emptyOptions);var i=__assign(__assign({},P.identity(r)),{includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions});return f(),P.Completions.getCompletionsAtPosition(m,v,C,p(e),t,i,r.triggerCharacter,r.triggerKind,D,n&&P.formatting.getFormatContext(n,m))},getCompletionEntryDetails:function(e,t,r,n,i,a,o){return void 0===a&&(a=P.emptyOptions),f(),P.Completions.getCompletionEntryDetails(v,C,p(e),t,{name:r,source:i,data:o},m,n&&P.formatting.getFormatContext(n,m),a,D)},getCompletionEntrySymbol:function(e,t,r,n,i){return void 0===i&&(i=P.emptyOptions),f(),P.Completions.getCompletionEntrySymbol(v,C,p(e),t,{name:r,source:n},m,i)},getSignatureHelpItems:function(e,t,r){return r=(void 0===r?P.emptyOptions:r).triggerReason,f(),e=p(e),P.SignatureHelp.getSignatureHelpItems(v,e,t,r,D)},getQuickInfoAtPosition:function(e,t){f();var r=p(e);if((c=P.getTouchingPropertyName(r,t))!==r){var n=v.getTypeChecker(),i=function(e){if(P.isNewExpression(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(P.isNamedTupleMember(e.parent)&&e.pos===e.parent.pos)return e.parent;if(P.isImportMeta(e.parent)&&e.parent.name===e)return e.parent;return e}(c),a=function(e,t){var r=G(e);if(r){var n=t.getContextualType(r.parent),n=n&&Q(r,t,n,!1);if(n&&1===n.length)return P.first(n)}return t.getSymbolAtLocation(e)}(i,n);if(!a||n.isUnknownSymbol(a)){var o=function(e,t,r){switch(t.kind){case 79:return!P.isLabelName(t)&&!P.isTagName(t)&&!P.isConstTypeReference(t.parent);case 206:case 161:return!P.isInComment(e,r);case 108:case 192:case 106:case 197:return!0;case 231:return P.isImportMeta(t);default:return!1}}(r,i,t)?n.getTypeAtLocation(i):void 0;return o&&{kind:"",kindModifiers:"",textSpan:P.createTextSpanFromNode(i,r),displayParts:n.runWithCancellationToken(D,function(e){return P.typeToDisplayParts(e,o,P.getContainerNode(i))}),documentation:o.symbol?o.symbol.getDocumentationComment(n):void 0,tags:o.symbol?o.symbol.getJsDocTags(n):void 0}}var s=n.runWithCancellationToken(D,function(e){return P.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,a,r,P.getContainerNode(i),i)}),e=s.symbolKind,c=s.displayParts,t=s.documentation,s=s.tags;return{kind:e,kindModifiers:P.SymbolDisplay.getSymbolModifiers(n,a),textSpan:P.createTextSpanFromNode(i,r),displayParts:c,documentation:t,tags:s}}},getDefinitionAtPosition:function(e,t,r,n){return f(),P.GoToDefinition.getDefinitionAtPosition(v,p(e),t,r,n)},getDefinitionAndBoundSpan:function(e,t){return f(),P.GoToDefinition.getDefinitionAndBoundSpan(v,p(e),t)},getImplementationAtPosition:function(e,t){return f(),P.FindAllReferences.getImplementationsAtPosition(v,D,v.getSourceFiles(),p(e),t)},getTypeDefinitionAtPosition:function(e,t){return f(),P.GoToDefinition.getTypeDefinitionAtPosition(v.getTypeChecker(),p(e),t)},getReferencesAtPosition:function(e,t){return f(),s(P.getTouchingPropertyName(p(e),t),t,{use:1},P.FindAllReferences.toReferenceEntry)},findReferences:function(e,t){return f(),P.FindAllReferences.findReferencedSymbols(v,D,v.getSourceFiles(),p(e),t)},getFileReferences:function(e){return f(),P.FindAllReferences.Core.getReferencesForFileName(e,v,v.getSourceFiles()).map(P.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(e,t){return P.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},e.isInString&&{isInString:!0}),e.contextSpan&&{contextSpan:e.contextSpan})})})},getDocumentHighlights:r,getNameOrDottedNameSpan:function(e,t,r){if(e=S.getCurrentSourceFile(e),(t=P.getTouchingPropertyName(e,t))!==e){switch(t.kind){case 206:case 161:case 10:case 95:case 110:case 104:case 106:case 108:case 192:case 79:break;default:return}for(var n=t;;)if(P.isRightSideOfPropertyAccess(n)||P.isRightSideOfQualifiedName(n))n=n.parent;else{if(!P.isNameOfModuleDeclaration(n))break;if(261!==n.parent.parent.kind||n.parent.parent.body!==n.parent)break;n=n.parent.parent.name}return P.createTextSpanFromBounds(n.getStart(),t.getEnd())}},getBreakpointStatementAtPosition:function(e,t){return e=S.getCurrentSourceFile(e),P.BreakpointResolver.spanInSourceFileAtLocation(e,t)},getNavigateToItems:function(e,t,r,n){return void 0===n&&(n=!1),f(),r=r?[p(r)]:v.getSourceFiles(),P.NavigateTo.getNavigateToItems(r,v.getTypeChecker(),D,e,t,n)},getRenameInfo:function(e,t,r){return f(),P.Rename.getRenameInfo(v,p(e),t,r)},getSmartSelectionRange:function(e,t){return P.SmartSelectionRange.getSmartSelectionRange(t,S.getCurrentSourceFile(e))},findRenameLocations:function(e,t,r,n,i){f();var a=p(e),o=P.getAdjustedRenameLocation(P.getTouchingPropertyName(a,t));if(P.Rename.nodeIsEligibleForRename(o)){if(P.isIdentifier(o)&&(P.isJsxOpeningElement(o.parent)||P.isJsxClosingElement(o.parent))&&P.isIntrinsicJsxName(o.escapedText)){e=o.parent.parent;return[e.openingElement,e.closingElement].map(function(e){var t=P.createTextSpanFromNode(e.tagName,a);return __assign({fileName:a.fileName,textSpan:t},P.FindAllReferences.toContextSpan(t,a,e.parent))})}return s(o,t,{findInStrings:r,findInComments:n,providePrefixAndSuffixTextForRename:i,use:2},function(e,t,r){return P.FindAllReferences.toRenameLocation(e,t,r,i||!1)})}},getNavigationBarItems:function(e){return P.NavigationBar.getNavigationBarItems(S.getCurrentSourceFile(e),D)},getNavigationTree:function(e){return P.NavigationBar.getNavigationTree(S.getCurrentSourceFile(e),D)},getOutliningSpans:function(e){return e=S.getCurrentSourceFile(e),P.OutliningElementsCollector.collectElements(e,D)},getTodoComments:function(e,t){f();var r=p(e);D.throwIfCancellationRequested();var n,i,a=r.text,o=[];if(0<t.length&&(i=r.fileName,!P.stringContains(i,"/node_modules/")))for(var s,c=(e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",i="(?:"+P.map(t,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(e+"("+i+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim"));s=c.exec(a);){D.throwIfCancellationRequested();P.Debug.assert(s.length===t.length+3);var l=s[1],u=s.index+l.length;if(P.isInComment(r,u)){for(var _=void 0,d=0;d<t.length;d++)s[d+3]&&(_=t[d]);if(void 0===_)return P.Debug.fail();97<=(n=a.charCodeAt(u+_.text.length))&&n<=122||65<=n&&n<=90||48<=n&&n<=57||(l=s[2],o.push({descriptor:_,message:l,position:u}))}}return o},getBraceMatchingAtPosition:function(e,t){var r=S.getCurrentSourceFile(e),e=P.getTouchingToken(r,t);return(t=(t=e.getStart(r)===t?n.get(e.kind.toString()):void 0)&&P.findChildOfKind(e.parent,t,r))?[P.createTextSpanFromNode(e,r),P.createTextSpanFromNode(t,r)].sort(function(e,t){return e.start-t.start}):P.emptyArray},getIndentationAtPosition:function(e,t,r){var n=P.timestamp(),r=w(r),e=S.getCurrentSourceFile(e);return C("getIndentationAtPosition: getCurrentSourceFile: "+(P.timestamp()-n)),n=P.timestamp(),r=P.formatting.SmartIndenter.getIndentation(t,e,r),C("getIndentationAtPosition: computeIndentation  : "+(P.timestamp()-n)),r},getFormattingEditsForRange:function(e,t,r,n){return e=S.getCurrentSourceFile(e),P.formatting.formatSelection(t,r,e,P.formatting.getFormatContext(w(n),m))},getFormattingEditsForDocument:function(e,t){return P.formatting.formatDocument(S.getCurrentSourceFile(e),P.formatting.getFormatContext(w(t),m))},getFormattingEditsAfterKeystroke:function(e,t,r,n){var i=S.getCurrentSourceFile(e),a=P.formatting.getFormatContext(w(n),m);if(!P.isInComment(i,t))switch(r){case"{":return P.formatting.formatOnOpeningCurly(t,i,a);case"}":return P.formatting.formatOnClosingCurly(t,i,a);case";":return P.formatting.formatOnSemicolon(t,i,a);case"\n":return P.formatting.formatOnEnter(t,i,a)}return[]},getDocCommentTemplateAtPosition:function(e,t,r){return P.JsDoc.getDocCommentTemplateAtPosition(P.getNewLineOrDefaultFromHost(m),S.getCurrentSourceFile(e),t,r)},isValidBraceCompletionAtPosition:function(e,t,r){if(60===r)return!1;var n=S.getCurrentSourceFile(e);if(P.isInString(n,t))return!1;if(P.isInsideJsxElementOrAttribute(n,t))return 123===r;if(P.isInTemplateString(n,t))return!1;switch(r){case 39:case 34:case 96:return!P.isInComment(n,t)}return!0},getJsxClosingTagAtPosition:function(e,t){var r=S.getCurrentSourceFile(e);if(e=P.findPrecedingToken(t,r)){t=31===e.kind&&P.isJsxOpeningElement(e.parent)?e.parent.parent:P.isJsxText(e)&&P.isJsxElement(e.parent)?e.parent:void 0;if(t&&function e(t){var r=t.openingElement,n=t.closingElement,t=t.parent;return!P.tagNamesAreEquivalent(r.tagName,n.tagName)||P.isJsxElement(t)&&P.tagNamesAreEquivalent(r.tagName,t.openingElement.tagName)&&e(t)}(t))return{newText:"</".concat(t.openingElement.tagName.getText(r),">")};e=31===e.kind&&P.isJsxOpeningFragment(e.parent)?e.parent.parent:P.isJsxText(e)&&P.isJsxFragment(e.parent)?e.parent:void 0;return e&&function e(t){var r=t.closingFragment,t=t.parent;return!!(131072&r.flags)||P.isJsxFragment(t)&&e(t)}(e)?{newText:"</>"}:void 0}},getSpanOfEnclosingComment:function(e,t,r){return e=S.getCurrentSourceFile(e),!(t=P.formatting.getRangeOfEnclosingComment(e,t))||r&&3!==t.kind?void 0:P.createTextSpanFromRange(t)},getCodeFixesAtPosition:function(e,t,r,n,i,a){void 0===a&&(a=P.emptyOptions),f();var o=p(e),s=P.createTextSpanFromBounds(t,r),c=P.formatting.getFormatContext(i,m);return P.flatMap(P.deduplicate(n,P.equateValues,P.compareValues),function(e){return D.throwIfCancellationRequested(),P.codefix.getFixes({errorCode:e,sourceFile:o,span:s,program:v,host:m,cancellationToken:D,formatContext:c,preferences:a})})},getCombinedCodeFix:function(e,t,r,n){return void 0===n&&(n=P.emptyOptions),f(),P.Debug.assert("file"===e.type),e=p(e.fileName),r=P.formatting.getFormatContext(r,m),P.codefix.getAllFixes({fixId:t,sourceFile:e,program:v,host:m,cancellationToken:D,formatContext:r,preferences:n})},applyCodeActionCommand:function(e,t){return e="string"==typeof e?t:e,P.isArray(e)?Promise.all(e.map(i)):i(e)},organizeImports:function(e,t,r){void 0===r&&(r=P.emptyOptions),f(),P.Debug.assert("file"===e.type);var n=p(e.fileName),t=P.formatting.getFormatContext(t,m);return P.OrganizeImports.organizeImports(n,t,m,v,r,e.skipDestructiveCodeActions)},getEditsForFileRename:function(e,t,r,n){return void 0===n&&(n=P.emptyOptions),P.getEditsForFileRename(o(),e,t,m,P.formatting.getFormatContext(r,m),n,N)},getEmitOutput:function(e,t,r){f();var n=p(e),e=m.getCustomTransformers&&m.getCustomTransformers();return P.getFileEmitOutput(v,n,!!t,D,e,r)},getNonBoundSourceFile:function(e){return S.getCurrentSourceFile(e)},getProgram:o,getAutoImportProvider:function(){var e;return null===(e=m.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(m)},getApplicableRefactors:function(e,t,r,n,i){return void 0===r&&(r=P.emptyOptions),f(),e=p(e),P.refactor.getApplicableRefactors(l(e,t,r,P.emptyOptions,n,i))},getEditsForRefactor:function(e,t,r,n,i,a){return void 0===a&&(a=P.emptyOptions),f(),e=p(e),P.refactor.getEditsForRefactor(l(e,r,a,t),n,i)},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:N.toLineColumnOffset(e,t)},getSourceMapper:function(){return N},clearSourceMapperCache:function(){return N.clearCache()},prepareCallHierarchy:function(e,t){return f(),(t=P.CallHierarchy.resolveCallHierarchyDeclaration(v,P.getTouchingPropertyName(p(e),t)))&&P.mapOneOrMany(t,function(e){return P.CallHierarchy.createCallHierarchyItem(v,e)})},provideCallHierarchyIncomingCalls:function(e,t){return f(),e=p(e),(t=P.firstOrOnly(P.CallHierarchy.resolveCallHierarchyDeclaration(v,0===t?e:P.getTouchingPropertyName(e,t))))?P.CallHierarchy.getIncomingCalls(v,t,D):[]},provideCallHierarchyOutgoingCalls:function(e,t){return f(),e=p(e),(t=P.firstOrOnly(P.CallHierarchy.resolveCallHierarchyDeclaration(v,0===t?e:P.getTouchingPropertyName(e,t))))?P.CallHierarchy.getOutgoingCalls(v,t):[]},toggleLineComment:c,toggleMultilineComment:F,commentSelection:function(e,t){var r=A(S.getCurrentSourceFile(e),t);return(r.firstLine===r.lastLine&&t.pos!==t.end?F:c)(e,t,!0)},uncommentSelection:function(e,t){var r=S.getCurrentSourceFile(e),n=[],i=t.pos,a=t.end;i===a&&(a+=P.isInsideJsxElement(r,i)?2:1);for(var o=i;o<=a;o++){var s=P.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,F(e,{end:s.end,pos:s.pos+1},!1))}o=s.end+1}}return n},provideInlayHints:function(e,t,r){return void 0===r&&(r=P.emptyOptions),f(),e=p(e),P.InlayHints.provideInlayHints((t=t,r=r,{file:e,program:o(),host:m,span:t,preferences:r,cancellationToken:D}))}};switch(h){case P.LanguageServiceMode.Semantic:break;case P.LanguageServiceMode.PartialSemantic:W.forEach(function(e){return t[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case P.LanguageServiceMode.Syntactic:H.forEach(function(e){return t[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}});break;default:P.Debug.assertNever(h)}return t},P.getNameTable=function(e){var t,s;return e.nameTable||(s=(t=e).nameTable=new P.Map,t.forEachChild(function e(t){var r,n;if(P.isIdentifier(t)&&!P.isTagName(t)&&t.escapedText||P.isStringOrNumericLiteralLike(t)&&(n=t,P.isDeclarationName(n)||277===n.parent.kind||function(e){return e&&e.parent&&207===e.parent.kind&&e.parent.argumentExpression===e}(n)||P.isLiteralComputedPropertyDeclarationName(n))?(r=P.getEscapedTextOfIdentifierOrLiteral(t),s.set(r,void 0===s.get(r)?t.pos:-1)):P.isPrivateIdentifier(t)&&(r=t.escapedText,s.set(r,void 0===s.get(r)?t.pos:-1)),P.forEachChild(t,e),P.hasJSDocNodes(t))for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];P.forEachChild(o,e)}})),e.nameTable},P.getContainingObjectLiteralElement=G,P.getPropertySymbolsFromContextualType=Q,P.getDefaultLibFilePath=function(e){if("undefined"!=typeof __dirname)return __dirname+P.directorySeparator+P.getDefaultLibFileName(e);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},P.setObjectAllocator({getNodeConstructor:function(){return i},getTokenConstructor:function(){return u},getIdentifierConstructor:function(){return p},getPrivateIdentifierConstructor:function(){return m},getSourceFileConstructor:function(){return E},getSymbolConstructor:function(){return n},getTypeConstructor:function(){return h},getSignatureConstructor:function(){return b},getSourceMapSourceConstructor:function(){return A}})}(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(!(16777216&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 237:return _(e.declarationList.declarations[0]);case 254:case 167:case 166:return _(e);case 164: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 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return function(e){if(!e.body)return;if(p(e))return v(e);return T(e.body)}(e);case 235: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 262:return f(e);case 292:return f(e.block);case 238:return v(e.expression);case 247:return v(e.getChildAt(0),e.expression);case 241:return b(e,e.expression);case 240:return T(e.statement);case 253:return v(e.getChildAt(0));case 239:return b(e,e.expression);case 250:return T(e.statement);case 246:case 245:return v(e.getChildAt(0),e.label);case 242: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 243:return b(e,e.expression);case 244:return g(e);case 249:return b(e,e.expression);case 289:case 290:return T(e.statements[0]);case 252:return f(e.tryBlock);case 251:case 271:return v(e,e.expression);case 265:return v(e,e.moduleReference);case 266:case 272:return v(e,e.moduleSpecifier);case 261:if(1!==C.getModuleInstanceState(e))return;case 257:case 260:case 299:case 203:return v(e);case 248:return T(e.statement);case 165:return n=t.decorators,C.createTextSpanFromBounds(C.skipTrivia(h.text,n.pos),n.end);case 201:case 202:return m(e);case 258:case 259: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 260:var t=e.parent;return x(C.findPrecedingToken(e.pos,h,e.parent),t.members.length?t.members[0]:t.getLastToken(h));case 257:t=e.parent;return x(C.findPrecedingToken(e.pos,h,e.parent),t.members.length?t.members[0]:t.getLastToken(h));case 263:return x(e.parent.parent,e.parent.clauses[0])}return T(e.parent)}(e);case 19:return function(e){switch(e.parent.kind){case 262:if(1!==C.getModuleInstanceState(e.parent.parent))return;case 260:case 257:return v(e);case 235:if(C.isFunctionBlock(e.parent))return v(e);case 292:return T(C.lastOrUndefined(e.parent.statements));case 263:var t=e.parent,t=C.lastOrUndefined(t.clauses);return t?T(C.lastOrUndefined(t.statements)):void 0;case 201: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(202===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 240!==(l=e).parent.kind&&208!==l.parent.kind&&209!==l.parent.kind?212!==l.parent.kind?T(l.parent):S(l):D(l);case 21:return function(e){switch(e.parent.kind){case 213:case 256:case 214:case 169:case 168:case 172:case 173:case 171:case 241:case 240:case 242:case 244:case 208:case 209:case 212:return D(e);default:return T(e.parent)}}(e);case 58:return function(e){if(C.isFunctionLike(e.parent)||296===e.parent.kind||164===e.parent.kind)return D(e);return T(e.parent)}(e);case 31:case 29:return 211!==(c=e).parent.kind?T(c.parent):S(c);case 115:return 240!==(s=e).parent.kind?T(s.parent):b(s,s.parent.expression);case 91:case 83:case 96:return S(e);case 160:return 244!==(o=e).parent.kind?T(o.parent):S(o);default:if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(e))return y(e);if((79===e.kind||225===e.kind||296===e.kind||297===e.kind)&&C.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return v(e);if(221===e.kind){var r=e.left,n=e.operatorToken;if(C.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return y(r);if(63===n.kind&&C.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return v(e);if(27===n.kind)return T(r)}if(C.isExpressionNode(e))switch(t.kind){case 240:return D(e);case 165:return T(e.parent);case 242:case 244:return v(e);case 221:if(27===e.parent.operatorToken.kind)return v(e);break;case 214:if(e.parent.body===e)return v(e)}switch(e.parent.kind){case 296:if(e.parent.name===e&&!C.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent))return T(e.parent.initializer);break;case 211:if(e.parent.type===e)return S(e.parent.type);break;case 254:case 164:var i=e.parent,a=i.initializer,i=i.type;if(a===e||i===e||C.isAssignmentOperator(e.kind))return D(e);break;case 221: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,l,n;function u(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(243===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)||244===t.parent.kind?u(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)||257===e.parent.kind&&171!==e.kind}function f(e){switch(e.parent.kind){case 261:if(1!==C.getModuleInstanceState(e.parent))return;case 241:case 239:case 243:return x(e.parent,e.statements[0]);case 242:case 244:return x(C.findPrecedingToken(e.pos,h,e.parent),e.statements[0])}return T(e.statements[0])}function g(e){if(255!==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 227!==e.kind?e:void 0});return t?T(t):(203===e.parent.kind?v:u)(e.parent)}function y(e){C.Debug.assert(202!==e.kind&&201!==e.kind);var t=204===e.kind?e.elements:e.properties,t=C.forEach(t,function(e){return 227!==e.kind?e:void 0});return t?T(t):v(221===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,o.isString(e)?e:e.fileName.toLowerCase())})})}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 l(e,t,!0,r,n)}function l(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("".concat(t," completed in ").concat(n-i," msec")),o.isString(r)&&(128<(i=r).length&&(i=i.substring(0,128)+"..."),e.log("  result.length=".concat(i.length,", result='").concat(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 u=(_.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=u),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(".concat(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('".concat(e,"', ").concat(t,", ").concat(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('".concat(e,"', ").concat(t,", ").concat(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('".concat(e,"', ").concat(t,", ").concat(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('".concat(e,"', ").concat(t,", ").concat(r,")"),function(){return m(n.languageService.getEncodedSemanticClassifications(e,o.createTextSpan(t,r)))})},g.prototype.getSyntacticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(t,"')"),function(){var e=r.languageService.getSyntacticDiagnostics(t);return r.realizeDiagnostics(e)})},g.prototype.getSemanticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(t,"')"),function(){var e=r.languageService.getSemanticDiagnostics(t);return r.realizeDiagnostics(e)})},g.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(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('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getQuickInfoAtPosition(e,t)})},g.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},g.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},g.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getSignatureHelpItems(e,t,r)})},g.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getDefinitionAtPosition(e,t)})},g.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},g.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},g.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getImplementationAtPosition(e,t)})},g.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getRenameInfo(e,t,r)})},g.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getSmartSelectionRange(e,t)})},g.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),function(){return a.languageService.findRenameLocations(e,t,r,n,i)})},g.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},g.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},g.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},g.prototype.getIndentationAtPosition=function(t,r,n){var i=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(t,"', ").concat(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('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getReferencesAtPosition(e,t)})},g.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),function(){return r.languageService.findReferences(e,t)})},g.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),function(){return t.languageService.getFileReferences(e)})},g.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getOccurrencesAtPosition(e,t)})},g.prototype.getDocumentHighlights=function(r,n,i){var a=this;return this.forwardJSONCall("getDocumentHighlights('".concat(r,"', ").concat(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,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),function(){return i.languageService.getCompletionsAtPosition(e,t,r,n)})},g.prototype.getCompletionEntryDetails=function(t,r,n,i,a,o,s){var c=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(t,"', ").concat(r,", '").concat(n,"')"),function(){var e=void 0===i?void 0:JSON.parse(i);return c.languageService.getCompletionEntryDetails(t,r,n,e,a,o,s)})},g.prototype.getFormattingEditsForRange=function(t,r,n,i){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(t,"', ").concat(r,", ").concat(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('".concat(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('".concat(t,"', ").concat(r,", '").concat(n,"')"),function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsAfterKeystroke(t,r,n,e)})},g.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)})},g.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),function(){return n.languageService.getNavigateToItems(e,t,r)})},g.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),function(){return t.languageService.getNavigationBarItems(e)})},g.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),function(){return t.languageService.getNavigationTree(e)})},g.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),function(){return t.languageService.getOutliningSpans(e)})},g.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},g.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),function(){return r.languageService.prepareCallHierarchy(e,t)})},g.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)})},g.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)})},g.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),function(){return n.languageService.provideInlayHints(e,t,r)})},g.prototype.getEmitOutput=function(r){var n=this;return this.forwardJSONCall("getEmitOutput('".concat(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 l(this.logger,"getEmitOutput('".concat(e,"')"),!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},g.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return r.languageService.toggleLineComment(e,t)})},g.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return r.languageService.toggleMultilineComment(e,t)})},g.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return r.languageService.commentSelection(e,t)})},g.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(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=u),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=u),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('".concat(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(".concat(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('".concat(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('".concat(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('".concat(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(__spreadArray(__spreadArray([],e.parseDiagnostics,!0),t.errors,!0),"\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")},u=S,o.TypeScriptServicesFactory=u}(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(function(e,t,r){return s.factory.createConstructorTypeNode(void 0,e,t,r)},e),s.updateConstructorTypeNode=s.Debug.deprecate(function(e,t,r,n){return s.factory.updateConstructorTypeNode(e,e.modifiers,t,r,n)},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,140);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.assertClause)},e),s.createJSDocParamTag=s.Debug.deprecate(function(e,t,r,n){return s.factory.createJSDocParameterTag(void 0,e,t,r,!1,n?s.factory.createNodeArray([s.factory.createJSDocText(n)]):void 0)},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(305===e?s.parseBaseNodeFactory.createBaseSourceFileNode(e):79===e?s.parseBaseNodeFactory.createBaseIdentifierNode(e):80===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 an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),s.isTypeAssertion=s.Debug.deprecate(function(e){return 211===e.kind},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),s.isIdentifierOrPrivateIdentifier=s.Debug.deprecate(function(e){return s.isMemberName(e)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(ts=ts||{});